Skip to content

Commit

Permalink
build(3.1.0): New Release
Browse files Browse the repository at this point in the history
  • Loading branch information
mattelen committed Sep 13, 2024
1 parent f018993 commit 59a3c5f
Show file tree
Hide file tree
Showing 39 changed files with 344 additions and 164 deletions.
71 changes: 44 additions & 27 deletions dist/vue-multiselect.common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vue-multiselect.common.js.map

Large diffs are not rendered by default.

26 changes: 21 additions & 5 deletions dist/vue-multiselect.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,15 @@ var script = {
type: Boolean,
default: false
},
/**
* Enables search input's spellcheck if true.
* @default false
* @type {Boolean}
*/
spellcheck: {
type: Boolean,
default: false
},
/**
* Fixed opening direction
* @default ''
Expand All @@ -1024,6 +1033,10 @@ var script = {
tabindex: {
type: Number,
default: 0
},
required: {
type: Boolean,
default: false
}
},
computed: {
Expand Down Expand Up @@ -1197,8 +1210,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
id: _ctx.id,
type: "text",
autocomplete: "off",
spellcheck: false,
spellcheck: $props.spellcheck,
placeholder: _ctx.placeholder,
required: $props.required,
style: $options.inputStyle,
value: _ctx.search,
disabled: $props.disabled,
Expand All @@ -1215,7 +1229,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
onKeypress: _cache[8] || (_cache[8] = withKeys(withModifiers($event => (_ctx.addPointerElement($event)), ["prevent","stop","self"]), ["enter"])),
class: "multiselect__input",
"aria-controls": 'listbox-'+_ctx.id
}, null, 44 /* STYLE, PROPS, HYDRATE_EVENTS */, ["name", "id", "placeholder", "value", "disabled", "tabindex", "aria-controls"]))
}, null, 44 /* STYLE, PROPS, HYDRATE_EVENTS */, ["name", "id", "spellcheck", "placeholder", "required", "value", "disabled", "tabindex", "aria-controls"]))
: createCommentVNode("v-if", true),
($options.isSingleLabelVisible)
? (openBlock(), createBlock("span", {
Expand Down Expand Up @@ -1254,7 +1268,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
class: "multiselect__content",
style: $options.contentStyle,
role: "listbox",
id: 'listbox-'+_ctx.id
id: 'listbox-'+_ctx.id,
"aria-multiselectable": _ctx.multiple
}, [
renderSlot(_ctx.$slots, "beforeList"),
(_ctx.multiple && _ctx.max === _ctx.internalValue.length)
Expand All @@ -1271,6 +1286,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
return (openBlock(), createBlock("li", {
class: "multiselect__element",
key: index,
"aria-selected": _ctx.isSelected(option),
id: _ctx.id + '-' + index,
role: !(option && (option.$isLabel || option.$isDisabled)) ? 'option' : null
}, [
Expand Down Expand Up @@ -1311,7 +1327,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
])
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, ["data-select", "data-deselect", "onMouseenter", "onMousedown"]))
: createCommentVNode("v-if", true)
], 8 /* PROPS */, ["id", "role"]))
], 8 /* PROPS */, ["aria-selected", "id", "role"]))
}), 128 /* KEYED_FRAGMENT */))
: createCommentVNode("v-if", true),
withDirectives(createVNode("li", null, [
Expand All @@ -1333,7 +1349,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
[vShow, $props.showNoOptions && ((_ctx.options.length === 0 || ($options.hasOptionGroup === true && _ctx.filteredOptions.length === 0)) && !_ctx.search && !$props.loading)]
]),
renderSlot(_ctx.$slots, "afterList")
], 12 /* STYLE, PROPS */, ["id"])
], 12 /* STYLE, PROPS */, ["id", "aria-multiselectable"])
], 36 /* STYLE, HYDRATE_EVENTS */), [
[vShow, _ctx.isOpen]
])
Expand Down
26 changes: 21 additions & 5 deletions dist/vue-multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,15 @@ var VueMultiselect = (function (exports, vue) {
type: Boolean,
default: false
},
/**
* Enables search input's spellcheck if true.
* @default false
* @type {Boolean}
*/
spellcheck: {
type: Boolean,
default: false
},
/**
* Fixed opening direction
* @default ''
Expand All @@ -1025,6 +1034,10 @@ var VueMultiselect = (function (exports, vue) {
tabindex: {
type: Number,
default: 0
},
required: {
type: Boolean,
default: false
}
},
computed: {
Expand Down Expand Up @@ -1198,8 +1211,9 @@ var VueMultiselect = (function (exports, vue) {
id: _ctx.id,
type: "text",
autocomplete: "off",
spellcheck: false,
spellcheck: $props.spellcheck,
placeholder: _ctx.placeholder,
required: $props.required,
style: $options.inputStyle,
value: _ctx.search,
disabled: $props.disabled,
Expand All @@ -1216,7 +1230,7 @@ var VueMultiselect = (function (exports, vue) {
onKeypress: _cache[8] || (_cache[8] = vue.withKeys(vue.withModifiers($event => (_ctx.addPointerElement($event)), ["prevent","stop","self"]), ["enter"])),
class: "multiselect__input",
"aria-controls": 'listbox-'+_ctx.id
}, null, 44 /* STYLE, PROPS, HYDRATE_EVENTS */, ["name", "id", "placeholder", "value", "disabled", "tabindex", "aria-controls"]))
}, null, 44 /* STYLE, PROPS, HYDRATE_EVENTS */, ["name", "id", "spellcheck", "placeholder", "required", "value", "disabled", "tabindex", "aria-controls"]))
: vue.createCommentVNode("v-if", true),
($options.isSingleLabelVisible)
? (vue.openBlock(), vue.createBlock("span", {
Expand Down Expand Up @@ -1255,7 +1269,8 @@ var VueMultiselect = (function (exports, vue) {
class: "multiselect__content",
style: $options.contentStyle,
role: "listbox",
id: 'listbox-'+_ctx.id
id: 'listbox-'+_ctx.id,
"aria-multiselectable": _ctx.multiple
}, [
vue.renderSlot(_ctx.$slots, "beforeList"),
(_ctx.multiple && _ctx.max === _ctx.internalValue.length)
Expand All @@ -1272,6 +1287,7 @@ var VueMultiselect = (function (exports, vue) {
return (vue.openBlock(), vue.createBlock("li", {
class: "multiselect__element",
key: index,
"aria-selected": _ctx.isSelected(option),
id: _ctx.id + '-' + index,
role: !(option && (option.$isLabel || option.$isDisabled)) ? 'option' : null
}, [
Expand Down Expand Up @@ -1312,7 +1328,7 @@ var VueMultiselect = (function (exports, vue) {
])
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, ["data-select", "data-deselect", "onMouseenter", "onMousedown"]))
: vue.createCommentVNode("v-if", true)
], 8 /* PROPS */, ["id", "role"]))
], 8 /* PROPS */, ["aria-selected", "id", "role"]))
}), 128 /* KEYED_FRAGMENT */))
: vue.createCommentVNode("v-if", true),
vue.withDirectives(vue.createVNode("li", null, [
Expand All @@ -1334,7 +1350,7 @@ var VueMultiselect = (function (exports, vue) {
[vue.vShow, $props.showNoOptions && ((_ctx.options.length === 0 || ($options.hasOptionGroup === true && _ctx.filteredOptions.length === 0)) && !_ctx.search && !$props.loading)]
]),
vue.renderSlot(_ctx.$slots, "afterList")
], 12 /* STYLE, PROPS */, ["id"])
], 12 /* STYLE, PROPS */, ["id", "aria-multiselectable"])
], 36 /* STYLE, HYDRATE_EVENTS */), [
[vue.vShow, _ctx.isOpen]
])
Expand Down
Loading

0 comments on commit 59a3c5f

Please sign in to comment.