Skip to content

Commit

Permalink
chore: cl, version, build
Browse files Browse the repository at this point in the history
  • Loading branch information
adamberecz committed Mar 20, 2024
1 parent faf2d35 commit f0436f7
Show file tree
Hide file tree
Showing 10 changed files with 1,289 additions and 817 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## v2.6.7

> `2024-03-20`
### 🐞 Bug Fixes
- Clicking on scroll bar closes the dropdown fix #383
- Types for scoped slots #391
- Missing method types and typo fixes #376 #392
- Don't show dropdown id when id is not defined
- Avoid error when multiselect does not exist #394

## v2.6.6

> `2023-10-18`
Expand Down
2 changes: 1 addition & 1 deletion dist/multiselect.global.js

Large diffs are not rendered by default.

31 changes: 17 additions & 14 deletions dist/multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ function usePointer (props, context, dep)
});

watch(isOpen, (val) => {
if (val) {
if (val && multiselect?.value) {
let firstSelected = multiselect.value.querySelectorAll(`[data-selected]`)[0];

if (!firstSelected) {
Expand Down Expand Up @@ -3071,6 +3071,7 @@ function useDropdown (props, context, dep)
return
}

/* istanbul ignore next: popper mock */
popper.value = createPopper(multiselect.value, dropdown.value, {
strategy: hasFixedParent(multiselect.value) ? /* istanbul ignore next: UI feature */ 'fixed' : undefined,
placement: openDirection.value,
Expand Down Expand Up @@ -4399,10 +4400,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
class: normalizeClass(_ctx.classList.container),
id: $props.searchable ? undefined : $props.id,
dir: $props.rtl ? 'rtl' : undefined,
onFocusin: _cache[10] || (_cache[10] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))),
onFocusout: _cache[11] || (_cache[11] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))),
onKeyup: _cache[12] || (_cache[12] = (...args) => (_ctx.handleKeyup && _ctx.handleKeyup(...args))),
onKeydown: _cache[13] || (_cache[13] = (...args) => (_ctx.handleKeydown && _ctx.handleKeydown(...args)))
onFocusin: _cache[12] || (_cache[12] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))),
onFocusout: _cache[13] || (_cache[13] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))),
onKeyup: _cache[14] || (_cache[14] = (...args) => (_ctx.handleKeyup && _ctx.handleKeyup(...args))),
onKeydown: _cache[15] || (_cache[15] = (...args) => (_ctx.handleKeydown && _ctx.handleKeydown(...args)))
}, [
createElementVNode("div", mergeProps({
class: _ctx.classList.wrapper,
Expand Down Expand Up @@ -4478,7 +4479,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
}, null, 2 /* CLASS */)
], 10 /* CLASS, PROPS */, _hoisted_5))
: createCommentVNode("v-if", true)
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_4))
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_4))
])
}), 256 /* UNKEYED_FRAGMENT */)),
createElementVNode("div", {
Expand Down Expand Up @@ -4581,7 +4582,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
createElementVNode("span", {
class: normalizeClass(_ctx.classList.clearIcon)
}, null, 2 /* CLASS */)
], 34 /* CLASS, HYDRATE_EVENTS */)
], 34 /* CLASS, NEED_HYDRATION */)
])
: createCommentVNode("v-if", true),
createCommentVNode(" Caret "),
Expand All @@ -4605,10 +4606,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
disabled: !$props.appendToBody && !$props.appendTo
}, [
createElementVNode("div", {
id: `${$props.id}-dropdown`,
id: $props.id ? `${$props.id}-dropdown` : undefined,
class: normalizeClass(_ctx.classList.dropdown),
tabindex: "-1",
ref: "dropdown"
ref: "dropdown",
onFocusin: _cache[10] || (_cache[10] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))),
onFocusout: _cache[11] || (_cache[11] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args)))
}, [
renderSlot(_ctx.$slots, "beforelist", { options: _ctx.fo }),
createElementVNode("ul", {
Expand Down Expand Up @@ -4643,7 +4646,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
innerHTML: _ctx.localize(group[$props.groupLabel])
}, null, 8 /* PROPS */, _hoisted_12)
])
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11))
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11))
: createCommentVNode("v-if", true),
createElementVNode("ul", {
class: normalizeClass(_ctx.classList.groupOptions),
Expand Down Expand Up @@ -4671,7 +4674,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
}, () => [
createElementVNode("span", null, toDisplayString(_ctx.localize(option[$props.label])), 1 /* TEXT */)
])
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_14))
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14))
}), 128 /* KEYED_FRAGMENT */))
], 10 /* CLASS, PROPS */, _hoisted_13)
], 10 /* CLASS, PROPS */, _hoisted_10))
Expand All @@ -4697,7 +4700,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
}, () => [
createElementVNode("span", null, toDisplayString(_ctx.localize(option[$props.label])), 1 /* TEXT */)
])
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_15))
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15))
}), 128 /* KEYED_FRAGMENT */))
], 10 /* CLASS, PROPS */, _hoisted_9),
(_ctx.noOptions)
Expand Down Expand Up @@ -4730,7 +4733,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
], 2 /* CLASS */))
: createCommentVNode("v-if", true),
renderSlot(_ctx.$slots, "afterlist", { options: _ctx.fo })
], 10 /* CLASS, PROPS */, _hoisted_8)
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_8)
], 8 /* PROPS */, ["to", "disabled"])),
createCommentVNode(" Hacky input element to show HTML5 required warning "),
($props.required)
Expand Down Expand Up @@ -4775,7 +4778,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
createElementVNode("div", {
class: normalizeClass(_ctx.classList.spacer)
}, null, 2 /* CLASS */)
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1))
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_1))
}

script.render = render;
Expand Down
2 changes: 1 addition & 1 deletion dist/multiselect.min.js

Large diffs are not rendered by default.

31 changes: 17 additions & 14 deletions dist/multiselect.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ function usePointer (props, context, dep)
});

watch(isOpen, (val) => {
if (val) {
if (val && multiselect?.value) {
let firstSelected = multiselect.value.querySelectorAll(`[data-selected]`)[0];

if (!firstSelected) {
Expand Down Expand Up @@ -3071,6 +3071,7 @@ function useDropdown (props, context, dep)
return
}

/* istanbul ignore next: popper mock */
popper.value = createPopper(multiselect.value, dropdown.value, {
strategy: hasFixedParent(multiselect.value) ? /* istanbul ignore next: UI feature */ 'fixed' : undefined,
placement: openDirection.value,
Expand Down Expand Up @@ -4399,10 +4400,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
class: normalizeClass(_ctx.classList.container),
id: $props.searchable ? undefined : $props.id,
dir: $props.rtl ? 'rtl' : undefined,
onFocusin: _cache[10] || (_cache[10] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))),
onFocusout: _cache[11] || (_cache[11] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))),
onKeyup: _cache[12] || (_cache[12] = (...args) => (_ctx.handleKeyup && _ctx.handleKeyup(...args))),
onKeydown: _cache[13] || (_cache[13] = (...args) => (_ctx.handleKeydown && _ctx.handleKeydown(...args)))
onFocusin: _cache[12] || (_cache[12] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))),
onFocusout: _cache[13] || (_cache[13] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))),
onKeyup: _cache[14] || (_cache[14] = (...args) => (_ctx.handleKeyup && _ctx.handleKeyup(...args))),
onKeydown: _cache[15] || (_cache[15] = (...args) => (_ctx.handleKeydown && _ctx.handleKeydown(...args)))
}, [
createElementVNode("div", mergeProps({
class: _ctx.classList.wrapper,
Expand Down Expand Up @@ -4478,7 +4479,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
}, null, 2 /* CLASS */)
], 10 /* CLASS, PROPS */, _hoisted_5))
: createCommentVNode("v-if", true)
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_4))
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_4))
])
}), 256 /* UNKEYED_FRAGMENT */)),
createElementVNode("div", {
Expand Down Expand Up @@ -4581,7 +4582,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
createElementVNode("span", {
class: normalizeClass(_ctx.classList.clearIcon)
}, null, 2 /* CLASS */)
], 34 /* CLASS, HYDRATE_EVENTS */)
], 34 /* CLASS, NEED_HYDRATION */)
])
: createCommentVNode("v-if", true),
createCommentVNode(" Caret "),
Expand All @@ -4605,10 +4606,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
disabled: !$props.appendToBody && !$props.appendTo
}, [
createElementVNode("div", {
id: `${$props.id}-dropdown`,
id: $props.id ? `${$props.id}-dropdown` : undefined,
class: normalizeClass(_ctx.classList.dropdown),
tabindex: "-1",
ref: "dropdown"
ref: "dropdown",
onFocusin: _cache[10] || (_cache[10] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))),
onFocusout: _cache[11] || (_cache[11] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args)))
}, [
renderSlot(_ctx.$slots, "beforelist", { options: _ctx.fo }),
createElementVNode("ul", {
Expand Down Expand Up @@ -4643,7 +4646,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
innerHTML: _ctx.localize(group[$props.groupLabel])
}, null, 8 /* PROPS */, _hoisted_12)
])
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11))
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11))
: createCommentVNode("v-if", true),
createElementVNode("ul", {
class: normalizeClass(_ctx.classList.groupOptions),
Expand Down Expand Up @@ -4671,7 +4674,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
}, () => [
createElementVNode("span", null, toDisplayString(_ctx.localize(option[$props.label])), 1 /* TEXT */)
])
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_14))
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14))
}), 128 /* KEYED_FRAGMENT */))
], 10 /* CLASS, PROPS */, _hoisted_13)
], 10 /* CLASS, PROPS */, _hoisted_10))
Expand All @@ -4697,7 +4700,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
}, () => [
createElementVNode("span", null, toDisplayString(_ctx.localize(option[$props.label])), 1 /* TEXT */)
])
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_15))
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15))
}), 128 /* KEYED_FRAGMENT */))
], 10 /* CLASS, PROPS */, _hoisted_9),
(_ctx.noOptions)
Expand Down Expand Up @@ -4730,7 +4733,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
], 2 /* CLASS */))
: createCommentVNode("v-if", true),
renderSlot(_ctx.$slots, "afterlist", { options: _ctx.fo })
], 10 /* CLASS, PROPS */, _hoisted_8)
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_8)
], 8 /* PROPS */, ["to", "disabled"])),
createCommentVNode(" Hacky input element to show HTML5 required warning "),
($props.required)
Expand Down Expand Up @@ -4775,7 +4778,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
createElementVNode("div", {
class: normalizeClass(_ctx.classList.spacer)
}, null, 2 /* CLASS */)
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1))
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_1))
}

script.render = render;
Expand Down
2 changes: 1 addition & 1 deletion dist/multiselect.vue2.global.js

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions dist/multiselect.vue2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ function usePointer (props, context, dep)
});

watch(isOpen, (val) => {
if (val) {
if (val && multiselect?.value) {
let firstSelected = multiselect.value.querySelectorAll(`[data-selected]`)[0];

if (!firstSelected) {
Expand Down Expand Up @@ -3071,6 +3071,7 @@ function useDropdown (props, context, dep)
return
}

/* istanbul ignore next: popper mock */
popper.value = createPopper(multiselect.value, dropdown.value, {
strategy: hasFixedParent(multiselect.value) ? /* istanbul ignore next: UI feature */ 'fixed' : undefined,
placement: openDirection.value,
Expand Down Expand Up @@ -4830,7 +4831,11 @@ var __vue_render__ = function () {
{
ref: "dropdown",
class: _vm.classList.dropdown,
attrs: { id: _vm.id + "-dropdown", tabindex: "-1" },
attrs: {
id: _vm.id ? _vm.id + "-dropdown" : undefined,
tabindex: "-1",
},
on: { focusin: _vm.handleFocusIn, focusout: _vm.handleFocusOut },
},
[
_vm._t("beforelist", null, { options: _vm.fo }),
Expand Down
2 changes: 1 addition & 1 deletion dist/multiselect.vue2.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit f0436f7

Please sign in to comment.