@progress/kendo-vue-dropdowns 3.5.3 → 3.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
- package/dist/es/ComboBox/ComboBox.js +10 -8
- package/dist/es/DropDownList/DropDownList.js +9 -6
- package/dist/es/DropDownList/DropDownListProps.d.ts +4 -0
- package/dist/es/MultiSelect/MultiSelect.js +6 -2
- package/dist/es/MultiSelect/MultiSelectProps.d.ts +4 -0
- package/dist/es/MultiSelect/TagList.d.ts +1 -0
- package/dist/es/MultiSelect/TagList.js +10 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/ComboBox/ComboBox.js +10 -8
- package/dist/esm/DropDownList/DropDownList.js +9 -6
- package/dist/esm/DropDownList/DropDownListProps.d.ts +4 -0
- package/dist/esm/MultiSelect/MultiSelect.js +6 -2
- package/dist/esm/MultiSelect/MultiSelectProps.d.ts +4 -0
- package/dist/esm/MultiSelect/TagList.d.ts +1 -0
- package/dist/esm/MultiSelect/TagList.js +10 -1
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/ComboBox/ComboBox.js +10 -8
- package/dist/npm/DropDownList/DropDownList.js +9 -6
- package/dist/npm/DropDownList/DropDownListProps.d.ts +4 -0
- package/dist/npm/MultiSelect/MultiSelect.js +6 -2
- package/dist/npm/MultiSelect/MultiSelectProps.d.ts +4 -0
- package/dist/npm/MultiSelect/TagList.d.ts +1 -0
- package/dist/npm/MultiSelect/TagList.js +10 -1
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +5 -5
|
@@ -772,10 +772,12 @@ var ComboBoxVue2 = {
|
|
|
772
772
|
var renderList = function renderList() {
|
|
773
773
|
var _this2 = this;
|
|
774
774
|
|
|
775
|
-
var _a
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
775
|
+
var _a;
|
|
776
|
+
|
|
777
|
+
var _b = this.$props,
|
|
778
|
+
dataItemKey = _b.dataItemKey,
|
|
779
|
+
_c = _b.dataItems,
|
|
780
|
+
dataItems = _c === void 0 ? [] : _c;
|
|
779
781
|
var itemRender = templateRendering.call(this, this.$props.itemRender, getListeners.call(this));
|
|
780
782
|
var listNoDataRender = templateRendering.call(this, this.$props.listNoDataRender, getListeners.call(this));
|
|
781
783
|
|
|
@@ -805,7 +807,7 @@ var ComboBoxVue2 = {
|
|
|
805
807
|
wrapperStyle: {
|
|
806
808
|
maxHeight: popupSettings.height
|
|
807
809
|
},
|
|
808
|
-
wrapperCssClass: 'k-list-content',
|
|
810
|
+
wrapperCssClass: classNames('k-list-content', (_a = {}, _a['k-list-scroller'] = !this.$props.virtual, _a)),
|
|
809
811
|
listStyle: vs.enabled ? {
|
|
810
812
|
transform: translate
|
|
811
813
|
} : undefined,
|
|
@@ -824,7 +826,7 @@ var ComboBoxVue2 = {
|
|
|
824
826
|
wrapperStyle: {
|
|
825
827
|
maxHeight: popupSettings.height
|
|
826
828
|
},
|
|
827
|
-
wrapperCssClass: 'k-list-content',
|
|
829
|
+
wrapperCssClass: classNames('k-list-content', (_a = {}, _a['k-list-scroller'] = !this.$props.virtual, _a)),
|
|
828
830
|
listStyle: vs.enabled ? {
|
|
829
831
|
transform: translate
|
|
830
832
|
} : undefined,
|
|
@@ -1011,7 +1013,7 @@ var ComboBoxVue2 = {
|
|
|
1011
1013
|
size: size,
|
|
1012
1014
|
fillMode: fillMode,
|
|
1013
1015
|
rounded: null,
|
|
1014
|
-
iconClass: classNames('k-icon k-i-
|
|
1016
|
+
iconClass: classNames('k-icon k-i-caret-alt-down', iconClassName)
|
|
1015
1017
|
},
|
|
1016
1018
|
tabIndex: -1,
|
|
1017
1019
|
"aria-label": ariaLabelExpandButton,
|
|
@@ -1019,7 +1021,7 @@ var ComboBoxVue2 = {
|
|
|
1019
1021
|
fillMode: fillMode,
|
|
1020
1022
|
rounded: null,
|
|
1021
1023
|
"class": 'k-input-button',
|
|
1022
|
-
iconClass: classNames('k-icon k-i-
|
|
1024
|
+
iconClass: classNames('k-icon k-i-caret-alt-down', iconClassName),
|
|
1023
1025
|
onClick: this.toggleBtnClick,
|
|
1024
1026
|
on: this.v3 ? undefined : {
|
|
1025
1027
|
"click": this.toggleBtnClick,
|
|
@@ -141,6 +141,7 @@ var DropDownListVue2 = {
|
|
|
141
141
|
default: undefined
|
|
142
142
|
},
|
|
143
143
|
ariaLabelledBy: String,
|
|
144
|
+
ariaLabel: String,
|
|
144
145
|
ariaDescribedBy: String,
|
|
145
146
|
rounded: {
|
|
146
147
|
type: String,
|
|
@@ -995,13 +996,13 @@ var DropDownListVue2 = {
|
|
|
995
996
|
dir: dir,
|
|
996
997
|
tabindex: getTabIndex(tabIndex, disabled),
|
|
997
998
|
accesskey: this.$props.accessKey,
|
|
998
|
-
role: '
|
|
999
|
+
role: 'combobox',
|
|
999
1000
|
"aria-disabled": disabled || undefined,
|
|
1000
1001
|
"aria-haspopup": true,
|
|
1001
1002
|
"aria-expanded": opened || false,
|
|
1002
1003
|
"aria-owns": this.base.listBoxId,
|
|
1003
1004
|
"aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
|
|
1004
|
-
"aria-label": this.$props.label,
|
|
1005
|
+
"aria-label": this.$props.ariaLabel || this.$props.label,
|
|
1005
1006
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
1006
1007
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
1007
1008
|
id: this.$props.id,
|
|
@@ -1022,14 +1023,14 @@ var DropDownListVue2 = {
|
|
|
1022
1023
|
accesskey: this.$props.accessKey,
|
|
1023
1024
|
onKeydown: this.handleKeyDown,
|
|
1024
1025
|
onKeypress: this.handleKeyPress,
|
|
1025
|
-
role: '
|
|
1026
|
+
role: 'combobox',
|
|
1026
1027
|
onClick: disabled ? noop : this.handleWrapperClick,
|
|
1027
1028
|
"aria-disabled": disabled || undefined,
|
|
1028
1029
|
"aria-haspopup": true,
|
|
1029
1030
|
"aria-expanded": opened || false,
|
|
1030
1031
|
"aria-owns": this.base.listBoxId,
|
|
1031
1032
|
"aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
|
|
1032
|
-
"aria-label": this.$props.label,
|
|
1033
|
+
"aria-label": this.$props.ariaLabel || this.$props.label,
|
|
1033
1034
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
1034
1035
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
1035
1036
|
id: this.$props.id,
|
|
@@ -1046,14 +1047,16 @@ var DropDownListVue2 = {
|
|
|
1046
1047
|
size: size,
|
|
1047
1048
|
fillMode: fillMode,
|
|
1048
1049
|
rounded: null,
|
|
1049
|
-
iconClass: classNames('k-icon k-i-
|
|
1050
|
+
iconClass: classNames('k-icon k-i-caret-alt-down', iconClassName),
|
|
1051
|
+
"aria-hidden": true
|
|
1050
1052
|
},
|
|
1051
1053
|
tabIndex: -1,
|
|
1052
1054
|
size: size,
|
|
1053
1055
|
fillMode: fillMode,
|
|
1054
1056
|
rounded: null,
|
|
1055
1057
|
"class": 'k-input-button',
|
|
1056
|
-
iconClass: classNames('k-icon k-i-
|
|
1058
|
+
iconClass: classNames('k-icon k-i-caret-alt-down', iconClassName),
|
|
1059
|
+
"aria-hidden": true
|
|
1057
1060
|
}), dummySelect.call(this, value), renderListContainer.call(this)]);
|
|
1058
1061
|
return label ? h("span", {
|
|
1059
1062
|
"class": this.spanClassNames,
|
|
@@ -57,6 +57,10 @@ export interface DropDownListProps extends FormComponentProps {
|
|
|
57
57
|
* Identifies the element(s) which will label the component.
|
|
58
58
|
*/
|
|
59
59
|
ariaLabelledBy?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Adds aris-label for the component.
|
|
62
|
+
*/
|
|
63
|
+
ariaLabel?: string;
|
|
60
64
|
/**
|
|
61
65
|
* There is no placeholder concept when it comes to DropDownList/HTML select element. The approach
|
|
62
66
|
* that we recommend in such cases is to use the default Item as it is shown here ([see example]({% slug defaultitem_dropdownlist %})).
|
|
@@ -94,6 +94,7 @@ var MultiSelectVue2 = {
|
|
|
94
94
|
type: Boolean,
|
|
95
95
|
default: true
|
|
96
96
|
},
|
|
97
|
+
removeTagIcon: String,
|
|
97
98
|
allowCustom: Boolean,
|
|
98
99
|
modelValue: Array,
|
|
99
100
|
opened: {
|
|
@@ -902,7 +903,8 @@ var MultiSelectVue2 = {
|
|
|
902
903
|
size = _b.size,
|
|
903
904
|
fillMode = _b.fillMode,
|
|
904
905
|
rounded = _b.rounded,
|
|
905
|
-
tagsRounded = _b.tagsRounded
|
|
906
|
+
tagsRounded = _b.tagsRounded,
|
|
907
|
+
removeTagIcon = _b.removeTagIcon;
|
|
906
908
|
var focused = this.currentFocused;
|
|
907
909
|
var popupSettings = Object.assign({}, {
|
|
908
910
|
animate: true,
|
|
@@ -1196,8 +1198,9 @@ var MultiSelectVue2 = {
|
|
|
1196
1198
|
onMousedown: preventDefaultNonInputs
|
|
1197
1199
|
}, [tagsToRender.length > 0 && // @ts-ignore function children
|
|
1198
1200
|
h(TagList, {
|
|
1199
|
-
|
|
1201
|
+
removeTagIcon: removeTagIcon,
|
|
1200
1202
|
attrs: this.v3 ? undefined : {
|
|
1203
|
+
removeTagIcon: removeTagIcon,
|
|
1201
1204
|
tagsRounded: tagsRounded,
|
|
1202
1205
|
size: size,
|
|
1203
1206
|
fillMode: fillMode,
|
|
@@ -1208,6 +1211,7 @@ var MultiSelectVue2 = {
|
|
|
1208
1211
|
return matchTags(t, focusedTag, dataItemKey);
|
|
1209
1212
|
}) : undefined
|
|
1210
1213
|
},
|
|
1214
|
+
tagsRounded: tagsRounded,
|
|
1211
1215
|
size: size,
|
|
1212
1216
|
fillMode: fillMode,
|
|
1213
1217
|
tagRender: tagRender,
|
|
@@ -75,6 +75,10 @@ export interface MultiSelectProps extends FormComponentProps {
|
|
|
75
75
|
* The hint that is displayed when the MultiSelect is empty.
|
|
76
76
|
*/
|
|
77
77
|
placeholder?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the close icon of the tag items.
|
|
80
|
+
*/
|
|
81
|
+
removeTagIcon?: string;
|
|
78
82
|
/**
|
|
79
83
|
* Sets the tags of the MultiSelect ([see example]({% slug customtags_multiselect %})).
|
|
80
84
|
*/
|
|
@@ -37,6 +37,7 @@ var stopPropagation = function stopPropagation(event) {
|
|
|
37
37
|
var TagListVue2 = {
|
|
38
38
|
name: 'TagList',
|
|
39
39
|
props: {
|
|
40
|
+
removeTagIcon: String,
|
|
40
41
|
dataItems: Array,
|
|
41
42
|
guid: String,
|
|
42
43
|
focused: Object,
|
|
@@ -86,6 +87,14 @@ var TagListVue2 = {
|
|
|
86
87
|
'k-chip': true,
|
|
87
88
|
'k-disabled': disabled
|
|
88
89
|
}, _a["k-chip-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-".concat(kendoThemeMaps.roundedMap[tagsRounded] || tagsRounded)] = tagsRounded, _a["k-chip-".concat(fillMode)] = fillMode, _a["k-chip-".concat(fillMode, "-base")] = Boolean(fillMode), _a;
|
|
90
|
+
},
|
|
91
|
+
closeIcon: function closeIcon() {
|
|
92
|
+
var _a;
|
|
93
|
+
|
|
94
|
+
return _a = {
|
|
95
|
+
'k-icon': true,
|
|
96
|
+
'k-i-x-circle': !this.removeTagIcon
|
|
97
|
+
}, _a['k-i-' + this.removeTagIcon] = this.removeTagIcon, _a;
|
|
89
98
|
}
|
|
90
99
|
},
|
|
91
100
|
// @ts-ignore
|
|
@@ -155,7 +164,7 @@ var TagListVue2 = {
|
|
|
155
164
|
}
|
|
156
165
|
}
|
|
157
166
|
}, [h("span", {
|
|
158
|
-
"class":
|
|
167
|
+
"class": this.closeIcon
|
|
159
168
|
})])]);
|
|
160
169
|
return getTemplate.call(this, {
|
|
161
170
|
h: h,
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-dropdowns',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1662729077,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -772,10 +772,12 @@ var ComboBoxVue2 = {
|
|
|
772
772
|
var renderList = function renderList() {
|
|
773
773
|
var _this2 = this;
|
|
774
774
|
|
|
775
|
-
var _a
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
775
|
+
var _a;
|
|
776
|
+
|
|
777
|
+
var _b = this.$props,
|
|
778
|
+
dataItemKey = _b.dataItemKey,
|
|
779
|
+
_c = _b.dataItems,
|
|
780
|
+
dataItems = _c === void 0 ? [] : _c;
|
|
779
781
|
var itemRender = templateRendering.call(this, this.$props.itemRender, getListeners.call(this));
|
|
780
782
|
var listNoDataRender = templateRendering.call(this, this.$props.listNoDataRender, getListeners.call(this));
|
|
781
783
|
|
|
@@ -805,7 +807,7 @@ var ComboBoxVue2 = {
|
|
|
805
807
|
wrapperStyle: {
|
|
806
808
|
maxHeight: popupSettings.height
|
|
807
809
|
},
|
|
808
|
-
wrapperCssClass: 'k-list-content',
|
|
810
|
+
wrapperCssClass: classNames('k-list-content', (_a = {}, _a['k-list-scroller'] = !this.$props.virtual, _a)),
|
|
809
811
|
listStyle: vs.enabled ? {
|
|
810
812
|
transform: translate
|
|
811
813
|
} : undefined,
|
|
@@ -824,7 +826,7 @@ var ComboBoxVue2 = {
|
|
|
824
826
|
wrapperStyle: {
|
|
825
827
|
maxHeight: popupSettings.height
|
|
826
828
|
},
|
|
827
|
-
wrapperCssClass: 'k-list-content',
|
|
829
|
+
wrapperCssClass: classNames('k-list-content', (_a = {}, _a['k-list-scroller'] = !this.$props.virtual, _a)),
|
|
828
830
|
listStyle: vs.enabled ? {
|
|
829
831
|
transform: translate
|
|
830
832
|
} : undefined,
|
|
@@ -1011,7 +1013,7 @@ var ComboBoxVue2 = {
|
|
|
1011
1013
|
size: size,
|
|
1012
1014
|
fillMode: fillMode,
|
|
1013
1015
|
rounded: null,
|
|
1014
|
-
iconClass: classNames('k-icon k-i-
|
|
1016
|
+
iconClass: classNames('k-icon k-i-caret-alt-down', iconClassName)
|
|
1015
1017
|
},
|
|
1016
1018
|
tabIndex: -1,
|
|
1017
1019
|
"aria-label": ariaLabelExpandButton,
|
|
@@ -1019,7 +1021,7 @@ var ComboBoxVue2 = {
|
|
|
1019
1021
|
fillMode: fillMode,
|
|
1020
1022
|
rounded: null,
|
|
1021
1023
|
"class": 'k-input-button',
|
|
1022
|
-
iconClass: classNames('k-icon k-i-
|
|
1024
|
+
iconClass: classNames('k-icon k-i-caret-alt-down', iconClassName),
|
|
1023
1025
|
onClick: this.toggleBtnClick,
|
|
1024
1026
|
on: this.v3 ? undefined : {
|
|
1025
1027
|
"click": this.toggleBtnClick,
|
|
@@ -141,6 +141,7 @@ var DropDownListVue2 = {
|
|
|
141
141
|
default: undefined
|
|
142
142
|
},
|
|
143
143
|
ariaLabelledBy: String,
|
|
144
|
+
ariaLabel: String,
|
|
144
145
|
ariaDescribedBy: String,
|
|
145
146
|
rounded: {
|
|
146
147
|
type: String,
|
|
@@ -995,13 +996,13 @@ var DropDownListVue2 = {
|
|
|
995
996
|
dir: dir,
|
|
996
997
|
tabindex: getTabIndex(tabIndex, disabled),
|
|
997
998
|
accesskey: this.$props.accessKey,
|
|
998
|
-
role: '
|
|
999
|
+
role: 'combobox',
|
|
999
1000
|
"aria-disabled": disabled || undefined,
|
|
1000
1001
|
"aria-haspopup": true,
|
|
1001
1002
|
"aria-expanded": opened || false,
|
|
1002
1003
|
"aria-owns": this.base.listBoxId,
|
|
1003
1004
|
"aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
|
|
1004
|
-
"aria-label": this.$props.label,
|
|
1005
|
+
"aria-label": this.$props.ariaLabel || this.$props.label,
|
|
1005
1006
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
1006
1007
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
1007
1008
|
id: this.$props.id,
|
|
@@ -1022,14 +1023,14 @@ var DropDownListVue2 = {
|
|
|
1022
1023
|
accesskey: this.$props.accessKey,
|
|
1023
1024
|
onKeydown: this.handleKeyDown,
|
|
1024
1025
|
onKeypress: this.handleKeyPress,
|
|
1025
|
-
role: '
|
|
1026
|
+
role: 'combobox',
|
|
1026
1027
|
onClick: disabled ? noop : this.handleWrapperClick,
|
|
1027
1028
|
"aria-disabled": disabled || undefined,
|
|
1028
1029
|
"aria-haspopup": true,
|
|
1029
1030
|
"aria-expanded": opened || false,
|
|
1030
1031
|
"aria-owns": this.base.listBoxId,
|
|
1031
1032
|
"aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
|
|
1032
|
-
"aria-label": this.$props.label,
|
|
1033
|
+
"aria-label": this.$props.ariaLabel || this.$props.label,
|
|
1033
1034
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
1034
1035
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
1035
1036
|
id: this.$props.id,
|
|
@@ -1046,14 +1047,16 @@ var DropDownListVue2 = {
|
|
|
1046
1047
|
size: size,
|
|
1047
1048
|
fillMode: fillMode,
|
|
1048
1049
|
rounded: null,
|
|
1049
|
-
iconClass: classNames('k-icon k-i-
|
|
1050
|
+
iconClass: classNames('k-icon k-i-caret-alt-down', iconClassName),
|
|
1051
|
+
"aria-hidden": true
|
|
1050
1052
|
},
|
|
1051
1053
|
tabIndex: -1,
|
|
1052
1054
|
size: size,
|
|
1053
1055
|
fillMode: fillMode,
|
|
1054
1056
|
rounded: null,
|
|
1055
1057
|
"class": 'k-input-button',
|
|
1056
|
-
iconClass: classNames('k-icon k-i-
|
|
1058
|
+
iconClass: classNames('k-icon k-i-caret-alt-down', iconClassName),
|
|
1059
|
+
"aria-hidden": true
|
|
1057
1060
|
}), dummySelect.call(this, value), renderListContainer.call(this)]);
|
|
1058
1061
|
return label ? h("span", {
|
|
1059
1062
|
"class": this.spanClassNames,
|
|
@@ -57,6 +57,10 @@ export interface DropDownListProps extends FormComponentProps {
|
|
|
57
57
|
* Identifies the element(s) which will label the component.
|
|
58
58
|
*/
|
|
59
59
|
ariaLabelledBy?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Adds aris-label for the component.
|
|
62
|
+
*/
|
|
63
|
+
ariaLabel?: string;
|
|
60
64
|
/**
|
|
61
65
|
* There is no placeholder concept when it comes to DropDownList/HTML select element. The approach
|
|
62
66
|
* that we recommend in such cases is to use the default Item as it is shown here ([see example]({% slug defaultitem_dropdownlist %})).
|
|
@@ -94,6 +94,7 @@ var MultiSelectVue2 = {
|
|
|
94
94
|
type: Boolean,
|
|
95
95
|
default: true
|
|
96
96
|
},
|
|
97
|
+
removeTagIcon: String,
|
|
97
98
|
allowCustom: Boolean,
|
|
98
99
|
modelValue: Array,
|
|
99
100
|
opened: {
|
|
@@ -902,7 +903,8 @@ var MultiSelectVue2 = {
|
|
|
902
903
|
size = _b.size,
|
|
903
904
|
fillMode = _b.fillMode,
|
|
904
905
|
rounded = _b.rounded,
|
|
905
|
-
tagsRounded = _b.tagsRounded
|
|
906
|
+
tagsRounded = _b.tagsRounded,
|
|
907
|
+
removeTagIcon = _b.removeTagIcon;
|
|
906
908
|
var focused = this.currentFocused;
|
|
907
909
|
var popupSettings = Object.assign({}, {
|
|
908
910
|
animate: true,
|
|
@@ -1196,8 +1198,9 @@ var MultiSelectVue2 = {
|
|
|
1196
1198
|
onMousedown: preventDefaultNonInputs
|
|
1197
1199
|
}, [tagsToRender.length > 0 && // @ts-ignore function children
|
|
1198
1200
|
h(TagList, {
|
|
1199
|
-
|
|
1201
|
+
removeTagIcon: removeTagIcon,
|
|
1200
1202
|
attrs: this.v3 ? undefined : {
|
|
1203
|
+
removeTagIcon: removeTagIcon,
|
|
1201
1204
|
tagsRounded: tagsRounded,
|
|
1202
1205
|
size: size,
|
|
1203
1206
|
fillMode: fillMode,
|
|
@@ -1208,6 +1211,7 @@ var MultiSelectVue2 = {
|
|
|
1208
1211
|
return matchTags(t, focusedTag, dataItemKey);
|
|
1209
1212
|
}) : undefined
|
|
1210
1213
|
},
|
|
1214
|
+
tagsRounded: tagsRounded,
|
|
1211
1215
|
size: size,
|
|
1212
1216
|
fillMode: fillMode,
|
|
1213
1217
|
tagRender: tagRender,
|
|
@@ -75,6 +75,10 @@ export interface MultiSelectProps extends FormComponentProps {
|
|
|
75
75
|
* The hint that is displayed when the MultiSelect is empty.
|
|
76
76
|
*/
|
|
77
77
|
placeholder?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the close icon of the tag items.
|
|
80
|
+
*/
|
|
81
|
+
removeTagIcon?: string;
|
|
78
82
|
/**
|
|
79
83
|
* Sets the tags of the MultiSelect ([see example]({% slug customtags_multiselect %})).
|
|
80
84
|
*/
|
|
@@ -37,6 +37,7 @@ var stopPropagation = function stopPropagation(event) {
|
|
|
37
37
|
var TagListVue2 = {
|
|
38
38
|
name: 'TagList',
|
|
39
39
|
props: {
|
|
40
|
+
removeTagIcon: String,
|
|
40
41
|
dataItems: Array,
|
|
41
42
|
guid: String,
|
|
42
43
|
focused: Object,
|
|
@@ -86,6 +87,14 @@ var TagListVue2 = {
|
|
|
86
87
|
'k-chip': true,
|
|
87
88
|
'k-disabled': disabled
|
|
88
89
|
}, _a["k-chip-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-".concat(kendoThemeMaps.roundedMap[tagsRounded] || tagsRounded)] = tagsRounded, _a["k-chip-".concat(fillMode)] = fillMode, _a["k-chip-".concat(fillMode, "-base")] = Boolean(fillMode), _a;
|
|
90
|
+
},
|
|
91
|
+
closeIcon: function closeIcon() {
|
|
92
|
+
var _a;
|
|
93
|
+
|
|
94
|
+
return _a = {
|
|
95
|
+
'k-icon': true,
|
|
96
|
+
'k-i-x-circle': !this.removeTagIcon
|
|
97
|
+
}, _a['k-i-' + this.removeTagIcon] = this.removeTagIcon, _a;
|
|
89
98
|
}
|
|
90
99
|
},
|
|
91
100
|
// @ts-ignore
|
|
@@ -155,7 +164,7 @@ var TagListVue2 = {
|
|
|
155
164
|
}
|
|
156
165
|
}
|
|
157
166
|
}, [h("span", {
|
|
158
|
-
"class":
|
|
167
|
+
"class": this.closeIcon
|
|
159
168
|
})])]);
|
|
160
169
|
return getTemplate.call(this, {
|
|
161
170
|
h: h,
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-dropdowns',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1662729077,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -791,10 +791,12 @@ var ComboBoxVue2 = {
|
|
|
791
791
|
var renderList = function renderList() {
|
|
792
792
|
var _this2 = this;
|
|
793
793
|
|
|
794
|
-
var _a
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
794
|
+
var _a;
|
|
795
|
+
|
|
796
|
+
var _b = this.$props,
|
|
797
|
+
dataItemKey = _b.dataItemKey,
|
|
798
|
+
_c = _b.dataItems,
|
|
799
|
+
dataItems = _c === void 0 ? [] : _c;
|
|
798
800
|
var itemRender = kendo_vue_common_1.templateRendering.call(this, this.$props.itemRender, kendo_vue_common_1.getListeners.call(this));
|
|
799
801
|
var listNoDataRender = kendo_vue_common_1.templateRendering.call(this, this.$props.listNoDataRender, kendo_vue_common_1.getListeners.call(this));
|
|
800
802
|
|
|
@@ -824,7 +826,7 @@ var ComboBoxVue2 = {
|
|
|
824
826
|
wrapperStyle: {
|
|
825
827
|
maxHeight: popupSettings.height
|
|
826
828
|
},
|
|
827
|
-
wrapperCssClass: 'k-list-content',
|
|
829
|
+
wrapperCssClass: (0, kendo_vue_common_1.classNames)('k-list-content', (_a = {}, _a['k-list-scroller'] = !this.$props.virtual, _a)),
|
|
828
830
|
listStyle: vs.enabled ? {
|
|
829
831
|
transform: translate
|
|
830
832
|
} : undefined,
|
|
@@ -843,7 +845,7 @@ var ComboBoxVue2 = {
|
|
|
843
845
|
wrapperStyle: {
|
|
844
846
|
maxHeight: popupSettings.height
|
|
845
847
|
},
|
|
846
|
-
wrapperCssClass: 'k-list-content',
|
|
848
|
+
wrapperCssClass: (0, kendo_vue_common_1.classNames)('k-list-content', (_a = {}, _a['k-list-scroller'] = !this.$props.virtual, _a)),
|
|
847
849
|
listStyle: vs.enabled ? {
|
|
848
850
|
transform: translate
|
|
849
851
|
} : undefined,
|
|
@@ -1030,7 +1032,7 @@ var ComboBoxVue2 = {
|
|
|
1030
1032
|
size: size,
|
|
1031
1033
|
fillMode: fillMode,
|
|
1032
1034
|
rounded: null,
|
|
1033
|
-
iconClass: (0, kendo_vue_common_1.classNames)('k-icon k-i-
|
|
1035
|
+
iconClass: (0, kendo_vue_common_1.classNames)('k-icon k-i-caret-alt-down', iconClassName)
|
|
1034
1036
|
},
|
|
1035
1037
|
tabIndex: -1,
|
|
1036
1038
|
"aria-label": ariaLabelExpandButton,
|
|
@@ -1038,7 +1040,7 @@ var ComboBoxVue2 = {
|
|
|
1038
1040
|
fillMode: fillMode,
|
|
1039
1041
|
rounded: null,
|
|
1040
1042
|
"class": 'k-input-button',
|
|
1041
|
-
iconClass: (0, kendo_vue_common_1.classNames)('k-icon k-i-
|
|
1043
|
+
iconClass: (0, kendo_vue_common_1.classNames)('k-icon k-i-caret-alt-down', iconClassName),
|
|
1042
1044
|
onClick: this.toggleBtnClick,
|
|
1043
1045
|
on: this.v3 ? undefined : {
|
|
1044
1046
|
"click": this.toggleBtnClick,
|
|
@@ -158,6 +158,7 @@ var DropDownListVue2 = {
|
|
|
158
158
|
default: undefined
|
|
159
159
|
},
|
|
160
160
|
ariaLabelledBy: String,
|
|
161
|
+
ariaLabel: String,
|
|
161
162
|
ariaDescribedBy: String,
|
|
162
163
|
rounded: {
|
|
163
164
|
type: String,
|
|
@@ -1012,13 +1013,13 @@ var DropDownListVue2 = {
|
|
|
1012
1013
|
dir: dir,
|
|
1013
1014
|
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
|
|
1014
1015
|
accesskey: this.$props.accessKey,
|
|
1015
|
-
role: '
|
|
1016
|
+
role: 'combobox',
|
|
1016
1017
|
"aria-disabled": disabled || undefined,
|
|
1017
1018
|
"aria-haspopup": true,
|
|
1018
1019
|
"aria-expanded": opened || false,
|
|
1019
1020
|
"aria-owns": this.base.listBoxId,
|
|
1020
1021
|
"aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
|
|
1021
|
-
"aria-label": this.$props.label,
|
|
1022
|
+
"aria-label": this.$props.ariaLabel || this.$props.label,
|
|
1022
1023
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
1023
1024
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
1024
1025
|
id: this.$props.id,
|
|
@@ -1039,14 +1040,14 @@ var DropDownListVue2 = {
|
|
|
1039
1040
|
accesskey: this.$props.accessKey,
|
|
1040
1041
|
onKeydown: this.handleKeyDown,
|
|
1041
1042
|
onKeypress: this.handleKeyPress,
|
|
1042
|
-
role: '
|
|
1043
|
+
role: 'combobox',
|
|
1043
1044
|
onClick: disabled ? kendo_vue_common_1.noop : this.handleWrapperClick,
|
|
1044
1045
|
"aria-disabled": disabled || undefined,
|
|
1045
1046
|
"aria-haspopup": true,
|
|
1046
1047
|
"aria-expanded": opened || false,
|
|
1047
1048
|
"aria-owns": this.base.listBoxId,
|
|
1048
1049
|
"aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
|
|
1049
|
-
"aria-label": this.$props.label,
|
|
1050
|
+
"aria-label": this.$props.ariaLabel || this.$props.label,
|
|
1050
1051
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
1051
1052
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
1052
1053
|
id: this.$props.id,
|
|
@@ -1063,14 +1064,16 @@ var DropDownListVue2 = {
|
|
|
1063
1064
|
size: size,
|
|
1064
1065
|
fillMode: fillMode,
|
|
1065
1066
|
rounded: null,
|
|
1066
|
-
iconClass: (0, kendo_vue_common_1.classNames)('k-icon k-i-
|
|
1067
|
+
iconClass: (0, kendo_vue_common_1.classNames)('k-icon k-i-caret-alt-down', iconClassName),
|
|
1068
|
+
"aria-hidden": true
|
|
1067
1069
|
},
|
|
1068
1070
|
tabIndex: -1,
|
|
1069
1071
|
size: size,
|
|
1070
1072
|
fillMode: fillMode,
|
|
1071
1073
|
rounded: null,
|
|
1072
1074
|
"class": 'k-input-button',
|
|
1073
|
-
iconClass: (0, kendo_vue_common_1.classNames)('k-icon k-i-
|
|
1075
|
+
iconClass: (0, kendo_vue_common_1.classNames)('k-icon k-i-caret-alt-down', iconClassName),
|
|
1076
|
+
"aria-hidden": true
|
|
1074
1077
|
}), dummySelect.call(this, value), renderListContainer.call(this)]);
|
|
1075
1078
|
return label ? h("span", {
|
|
1076
1079
|
"class": this.spanClassNames,
|
|
@@ -57,6 +57,10 @@ export interface DropDownListProps extends FormComponentProps {
|
|
|
57
57
|
* Identifies the element(s) which will label the component.
|
|
58
58
|
*/
|
|
59
59
|
ariaLabelledBy?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Adds aris-label for the component.
|
|
62
|
+
*/
|
|
63
|
+
ariaLabel?: string;
|
|
60
64
|
/**
|
|
61
65
|
* There is no placeholder concept when it comes to DropDownList/HTML select element. The approach
|
|
62
66
|
* that we recommend in such cases is to use the default Item as it is shown here ([see example]({% slug defaultitem_dropdownlist %})).
|
|
@@ -112,6 +112,7 @@ var MultiSelectVue2 = {
|
|
|
112
112
|
type: Boolean,
|
|
113
113
|
default: true
|
|
114
114
|
},
|
|
115
|
+
removeTagIcon: String,
|
|
115
116
|
allowCustom: Boolean,
|
|
116
117
|
modelValue: Array,
|
|
117
118
|
opened: {
|
|
@@ -920,7 +921,8 @@ var MultiSelectVue2 = {
|
|
|
920
921
|
size = _b.size,
|
|
921
922
|
fillMode = _b.fillMode,
|
|
922
923
|
rounded = _b.rounded,
|
|
923
|
-
tagsRounded = _b.tagsRounded
|
|
924
|
+
tagsRounded = _b.tagsRounded,
|
|
925
|
+
removeTagIcon = _b.removeTagIcon;
|
|
924
926
|
var focused = this.currentFocused;
|
|
925
927
|
var popupSettings = Object.assign({}, {
|
|
926
928
|
animate: true,
|
|
@@ -1214,8 +1216,9 @@ var MultiSelectVue2 = {
|
|
|
1214
1216
|
onMousedown: utils_1.preventDefaultNonInputs
|
|
1215
1217
|
}, [tagsToRender.length > 0 && // @ts-ignore function children
|
|
1216
1218
|
h(TagList_1.TagList, {
|
|
1217
|
-
|
|
1219
|
+
removeTagIcon: removeTagIcon,
|
|
1218
1220
|
attrs: this.v3 ? undefined : {
|
|
1221
|
+
removeTagIcon: removeTagIcon,
|
|
1219
1222
|
tagsRounded: tagsRounded,
|
|
1220
1223
|
size: size,
|
|
1221
1224
|
fillMode: fillMode,
|
|
@@ -1226,6 +1229,7 @@ var MultiSelectVue2 = {
|
|
|
1226
1229
|
return matchTags(t, focusedTag, dataItemKey);
|
|
1227
1230
|
}) : undefined
|
|
1228
1231
|
},
|
|
1232
|
+
tagsRounded: tagsRounded,
|
|
1229
1233
|
size: size,
|
|
1230
1234
|
fillMode: fillMode,
|
|
1231
1235
|
tagRender: tagRender,
|
|
@@ -75,6 +75,10 @@ export interface MultiSelectProps extends FormComponentProps {
|
|
|
75
75
|
* The hint that is displayed when the MultiSelect is empty.
|
|
76
76
|
*/
|
|
77
77
|
placeholder?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the close icon of the tag items.
|
|
80
|
+
*/
|
|
81
|
+
removeTagIcon?: string;
|
|
78
82
|
/**
|
|
79
83
|
* Sets the tags of the MultiSelect ([see example]({% slug customtags_multiselect %})).
|
|
80
84
|
*/
|
|
@@ -45,6 +45,7 @@ var stopPropagation = function stopPropagation(event) {
|
|
|
45
45
|
var TagListVue2 = {
|
|
46
46
|
name: 'TagList',
|
|
47
47
|
props: {
|
|
48
|
+
removeTagIcon: String,
|
|
48
49
|
dataItems: Array,
|
|
49
50
|
guid: String,
|
|
50
51
|
focused: Object,
|
|
@@ -94,6 +95,14 @@ var TagListVue2 = {
|
|
|
94
95
|
'k-chip': true,
|
|
95
96
|
'k-disabled': disabled
|
|
96
97
|
}, _a["k-chip-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-".concat(kendo_vue_common_1.kendoThemeMaps.roundedMap[tagsRounded] || tagsRounded)] = tagsRounded, _a["k-chip-".concat(fillMode)] = fillMode, _a["k-chip-".concat(fillMode, "-base")] = Boolean(fillMode), _a;
|
|
98
|
+
},
|
|
99
|
+
closeIcon: function closeIcon() {
|
|
100
|
+
var _a;
|
|
101
|
+
|
|
102
|
+
return _a = {
|
|
103
|
+
'k-icon': true,
|
|
104
|
+
'k-i-x-circle': !this.removeTagIcon
|
|
105
|
+
}, _a['k-i-' + this.removeTagIcon] = this.removeTagIcon, _a;
|
|
97
106
|
}
|
|
98
107
|
},
|
|
99
108
|
// @ts-ignore
|
|
@@ -163,7 +172,7 @@ var TagListVue2 = {
|
|
|
163
172
|
}
|
|
164
173
|
}
|
|
165
174
|
}, [h("span", {
|
|
166
|
-
"class":
|
|
175
|
+
"class": this.closeIcon
|
|
167
176
|
})])]);
|
|
168
177
|
return kendo_vue_common_1.getTemplate.call(this, {
|
|
169
178
|
h: h,
|