Skip to content

Commit

Permalink
Merge pull request #1794 from shentao/1793-publish-31
Browse files Browse the repository at this point in the history
Publish 3.1.0
  • Loading branch information
mattelen authored Sep 13, 2024
2 parents 408eba4 + 59a3c5f commit d29fa28
Show file tree
Hide file tree
Showing 40 changed files with 348 additions and 168 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 d29fa28

Please sign in to comment.