@progress/kendo-vue-dropdowns 3.7.4-dev.202212020747 → 3.7.4-dev.202301091431
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/README.md +1 -1
- package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
- package/dist/es/AutoComplete/AutoComplete.js +3 -3
- package/dist/es/ComboBox/ComboBox.js +7 -3
- package/dist/es/DropDownList/DropDownList.js +29 -6
- package/dist/es/MultiSelect/MultiSelect.js +17 -7
- package/dist/es/MultiSelect/TagList.js +4 -3
- package/dist/es/common/ClearButton.js +9 -2
- package/dist/es/common/ListFilter.js +10 -3
- package/dist/es/messages/main.d.ts +5 -0
- package/dist/es/messages/main.js +5 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/AutoComplete/AutoComplete.js +3 -3
- package/dist/esm/ComboBox/ComboBox.js +7 -3
- package/dist/esm/DropDownList/DropDownList.js +29 -6
- package/dist/esm/MultiSelect/MultiSelect.js +17 -7
- package/dist/esm/MultiSelect/TagList.js +4 -3
- package/dist/esm/common/ClearButton.js +9 -2
- package/dist/esm/common/ListFilter.js +10 -3
- package/dist/esm/messages/main.d.ts +5 -0
- package/dist/esm/messages/main.js +5 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/AutoComplete/AutoComplete.js +2 -2
- package/dist/npm/ComboBox/ComboBox.js +6 -2
- package/dist/npm/DropDownList/DropDownList.js +28 -5
- package/dist/npm/MultiSelect/MultiSelect.js +16 -6
- package/dist/npm/MultiSelect/TagList.js +4 -3
- package/dist/npm/common/ClearButton.js +9 -2
- package/dist/npm/common/ListFilter.js +9 -2
- package/dist/npm/messages/main.d.ts +5 -0
- package/dist/npm/messages/main.js +6 -1
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +9 -7
|
@@ -22,7 +22,7 @@ import { List } from './../common/List';
|
|
|
22
22
|
import DropDownBase from '../common/DropDownBase';
|
|
23
23
|
import { ClearButton } from '../common/ClearButton';
|
|
24
24
|
import { itemIndexStartsWith, getItemValue, areSame, getFocusedItem } from '../common/utils';
|
|
25
|
-
import { guid, Keys, classNames, templateRendering, getListeners, getTemplate, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
|
|
25
|
+
import { guid, Keys, classNames, templateRendering, getListeners, getTemplate, kendoThemeMaps, setRef, getRef, Icon } from '@progress/kendo-vue-common';
|
|
26
26
|
var sizeMap = kendoThemeMaps.sizeMap,
|
|
27
27
|
roundedMap = kendoThemeMaps.roundedMap;
|
|
28
28
|
var VALIDATION_MESSAGE = 'Please enter a valid value!';
|
|
@@ -676,8 +676,8 @@ var AutoCompleteVue2 = {
|
|
|
676
676
|
};
|
|
677
677
|
var renderLoading = function renderLoading(cloading) {
|
|
678
678
|
if (cloading) {
|
|
679
|
-
return h(
|
|
680
|
-
"class": "k-
|
|
679
|
+
return h(Icon, {
|
|
680
|
+
"class": "k-input-loading-icon"
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
683
|
return h("span");
|
|
@@ -18,7 +18,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
18
18
|
var ref = allVue.ref;
|
|
19
19
|
var inject = allVue.inject;
|
|
20
20
|
import DropDownBase from '../common/DropDownBase';
|
|
21
|
-
import { guid, classNames, Keys, templateRendering, getListeners, getTemplate, kendoThemeMaps, getRef, setRef } from '@progress/kendo-vue-common';
|
|
21
|
+
import { guid, classNames, Keys, templateRendering, getListeners, getTemplate, kendoThemeMaps, getRef, setRef, Icon } from '@progress/kendo-vue-common';
|
|
22
22
|
import { Button as KButton } from '@progress/kendo-vue-buttons';
|
|
23
23
|
var sizeMap = kendoThemeMaps.sizeMap,
|
|
24
24
|
roundedMap = kendoThemeMaps.roundedMap;
|
|
@@ -930,8 +930,12 @@ var ComboBoxVue2 = {
|
|
|
930
930
|
"clearclick": this.clearButtonClick
|
|
931
931
|
},
|
|
932
932
|
key: "clearbutton"
|
|
933
|
-
}), loading && h(
|
|
934
|
-
|
|
933
|
+
}), loading && h(Icon, {
|
|
934
|
+
name: 'loading',
|
|
935
|
+
attrs: this.v3 ? undefined : {
|
|
936
|
+
name: 'loading'
|
|
937
|
+
},
|
|
938
|
+
"class": "k-input-loading-icon",
|
|
935
939
|
key: "loading"
|
|
936
940
|
}),
|
|
937
941
|
// @ts-ignore
|
|
@@ -16,7 +16,7 @@ var allVue = Vue;
|
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
18
|
var ref = allVue.ref;
|
|
19
|
-
import { templateRendering, getListeners, classNames, Keys, guid, noop, getTemplate, kendoThemeMaps, getTabIndex, setRef, getRef } from '@progress/kendo-vue-common';
|
|
19
|
+
import { templateRendering, getListeners, classNames, Keys, guid, noop, getTemplate, kendoThemeMaps, getTabIndex, setRef, getRef, Icon } from '@progress/kendo-vue-common';
|
|
20
20
|
import { Button as KButton } from '@progress/kendo-vue-buttons';
|
|
21
21
|
var sizeMap = kendoThemeMaps.sizeMap,
|
|
22
22
|
roundedMap = kendoThemeMaps.roundedMap;
|
|
@@ -25,6 +25,8 @@ import { ListFilter } from '../common/ListFilter';
|
|
|
25
25
|
import { ListDefaultItem } from '../common/ListDefaultItem';
|
|
26
26
|
import { List } from '../common/List';
|
|
27
27
|
import DropDownBase from '../common/DropDownBase';
|
|
28
|
+
import { selectButton, messages } from '../messages/main';
|
|
29
|
+
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
28
30
|
import { isPresent, getItemValue, sameCharsOnly, shuffleData, matchText, areSame, preventDefaultNonInputs, getFocusedItem } from '../common/utils';
|
|
29
31
|
var VALIDATION_MESSAGE = 'Please select a value from the list!';
|
|
30
32
|
/**
|
|
@@ -160,6 +162,11 @@ var DropDownListVue2 = {
|
|
|
160
162
|
}
|
|
161
163
|
}
|
|
162
164
|
},
|
|
165
|
+
inject: {
|
|
166
|
+
kendoLocalizationService: {
|
|
167
|
+
default: null
|
|
168
|
+
}
|
|
169
|
+
},
|
|
163
170
|
data: function data() {
|
|
164
171
|
return {
|
|
165
172
|
hasMounted: false,
|
|
@@ -318,6 +325,11 @@ var DropDownListVue2 = {
|
|
|
318
325
|
'k-rtl': this.$props.dir === 'rtl'
|
|
319
326
|
};
|
|
320
327
|
}
|
|
328
|
+
},
|
|
329
|
+
dropDownListId: {
|
|
330
|
+
get: function get() {
|
|
331
|
+
return "value-".concat(this.base.guid).concat(this.$props.ariaDescribedBy ? ' ' + this.$props.ariaDescribedBy : '');
|
|
332
|
+
}
|
|
321
333
|
}
|
|
322
334
|
},
|
|
323
335
|
methods: {
|
|
@@ -695,6 +707,7 @@ var DropDownListVue2 = {
|
|
|
695
707
|
animate: true,
|
|
696
708
|
height: '200px'
|
|
697
709
|
}, this.$props.popupSettings);
|
|
710
|
+
var ariaLabelSelectButton = provideLocalizationService(this).toLanguageString(selectButton, messages[selectButton]);
|
|
698
711
|
var _d = this.$props,
|
|
699
712
|
dataItemKey = _d.dataItemKey,
|
|
700
713
|
_e = _d.dataItems,
|
|
@@ -710,7 +723,11 @@ var DropDownListVue2 = {
|
|
|
710
723
|
return areSame(i, value, dataItemKey);
|
|
711
724
|
});
|
|
712
725
|
var valueDefaultRendering = h("span", {
|
|
713
|
-
"class": "k-input-inner"
|
|
726
|
+
"class": "k-input-inner",
|
|
727
|
+
id: this.dropDownListId,
|
|
728
|
+
attrs: this.v3 ? undefined : {
|
|
729
|
+
id: this.dropDownListId
|
|
730
|
+
}
|
|
714
731
|
}, [h("span", {
|
|
715
732
|
"class": "k-input-value-text"
|
|
716
733
|
}, [text])]);
|
|
@@ -953,7 +970,7 @@ var DropDownListVue2 = {
|
|
|
953
970
|
"aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
|
|
954
971
|
"aria-label": this.$props.ariaLabel || this.$props.label,
|
|
955
972
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
956
|
-
"aria-
|
|
973
|
+
"aria-describedBy": this.dropDownListId,
|
|
957
974
|
title: this.$props.title
|
|
958
975
|
},
|
|
959
976
|
onMousedown: opened ? preventDefaultNonInputs : noop,
|
|
@@ -980,10 +997,14 @@ var DropDownListVue2 = {
|
|
|
980
997
|
"aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
|
|
981
998
|
"aria-label": this.$props.ariaLabel || this.$props.label,
|
|
982
999
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
983
|
-
"aria-
|
|
1000
|
+
"aria-describedBy": this.dropDownListId,
|
|
984
1001
|
title: this.$props.title
|
|
985
|
-
}, [valueElement, loading && h(
|
|
986
|
-
|
|
1002
|
+
}, [valueElement, loading && h(Icon, {
|
|
1003
|
+
name: 'loading',
|
|
1004
|
+
attrs: this.v3 ? undefined : {
|
|
1005
|
+
name: 'loading'
|
|
1006
|
+
},
|
|
1007
|
+
"class": "k-input-loading-icon",
|
|
987
1008
|
key: "loading"
|
|
988
1009
|
}),
|
|
989
1010
|
// @ts-ignore
|
|
@@ -995,6 +1016,7 @@ var DropDownListVue2 = {
|
|
|
995
1016
|
size: size,
|
|
996
1017
|
fillMode: fillMode,
|
|
997
1018
|
rounded: null,
|
|
1019
|
+
ariaLabel: ariaLabelSelectButton,
|
|
998
1020
|
iconClass: classNames('k-icon', iconClassName ? iconClassName : 'k-i-caret-alt-down'),
|
|
999
1021
|
"aria-hidden": true
|
|
1000
1022
|
},
|
|
@@ -1002,6 +1024,7 @@ var DropDownListVue2 = {
|
|
|
1002
1024
|
size: size,
|
|
1003
1025
|
fillMode: fillMode,
|
|
1004
1026
|
rounded: null,
|
|
1027
|
+
ariaLabel: ariaLabelSelectButton,
|
|
1005
1028
|
"class": 'k-input-button',
|
|
1006
1029
|
iconClass: classNames('k-icon', iconClassName ? iconClassName : 'k-i-caret-alt-down'),
|
|
1007
1030
|
"aria-hidden": true
|
|
@@ -25,7 +25,7 @@ var allVue = Vue;
|
|
|
25
25
|
var gh = allVue.h;
|
|
26
26
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
27
27
|
var ref = allVue.ref;
|
|
28
|
-
import { classNames, Keys, guid, templateRendering, getListeners, getTemplate, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
|
|
28
|
+
import { classNames, Keys, guid, templateRendering, getListeners, getTemplate, kendoThemeMaps, setRef, getRef, Icon } from '@progress/kendo-vue-common';
|
|
29
29
|
var sizeMap = kendoThemeMaps.sizeMap,
|
|
30
30
|
roundedMap = kendoThemeMaps.roundedMap;
|
|
31
31
|
import { ListContainer } from '../common/ListContainer';
|
|
@@ -36,6 +36,7 @@ import DropDownBase from '../common/DropDownBase';
|
|
|
36
36
|
import { ClearButton } from '../common/ClearButton';
|
|
37
37
|
import { ActiveDescendant } from './../common/settings';
|
|
38
38
|
import { itemIndexStartsWith, getItemValue, areSame, matchDataCollections, removeDataItems, isPresent, preventDefaultNonInputs } from '../common/utils';
|
|
39
|
+
import { plusIcon } from '@progress/kendo-svg-icons';
|
|
39
40
|
var VALIDATION_MESSAGE = 'Please enter a valid value!';
|
|
40
41
|
var preventDefault = function preventDefault(event) {
|
|
41
42
|
return event.preventDefault();
|
|
@@ -860,8 +861,12 @@ var MultiSelectVue2 = {
|
|
|
860
861
|
};
|
|
861
862
|
var renderLoading = function renderLoading(cloading) {
|
|
862
863
|
if (cloading) {
|
|
863
|
-
return h(
|
|
864
|
-
|
|
864
|
+
return h(Icon, {
|
|
865
|
+
name: 'loading',
|
|
866
|
+
attrs: this.v3 ? undefined : {
|
|
867
|
+
name: 'loading'
|
|
868
|
+
},
|
|
869
|
+
"class": "k-input-loading-icon"
|
|
865
870
|
});
|
|
866
871
|
}
|
|
867
872
|
return h("span");
|
|
@@ -889,7 +894,7 @@ var MultiSelectVue2 = {
|
|
|
889
894
|
expanded: opened,
|
|
890
895
|
owns: this.base.listBoxId,
|
|
891
896
|
activedescendant: ariaActivedescendant,
|
|
892
|
-
"aria-describedBy": "tagslist-".concat(this.base.guid
|
|
897
|
+
"aria-describedBy": "tagslist-".concat(this.base.guid).concat(this.$props.ariaDescribedBy ? ' ' + this.$props.ariaDescribedBy : ''),
|
|
893
898
|
"aria-labelledBy": this.$props.ariaLabelledBy
|
|
894
899
|
},
|
|
895
900
|
size: Math.max((placeholderToShow || '').length, searchText.length, 1),
|
|
@@ -912,7 +917,7 @@ var MultiSelectVue2 = {
|
|
|
912
917
|
expanded: opened,
|
|
913
918
|
owns: this.base.listBoxId,
|
|
914
919
|
activedescendant: ariaActivedescendant,
|
|
915
|
-
"aria-describedBy": "tagslist-".concat(this.base.guid
|
|
920
|
+
"aria-describedBy": "tagslist-".concat(this.base.guid).concat(this.$props.ariaDescribedBy ? ' ' + this.$props.ariaDescribedBy : ''),
|
|
916
921
|
"aria-labelledBy": this.$props.ariaLabelledBy
|
|
917
922
|
})
|
|
918
923
|
);
|
|
@@ -1020,8 +1025,13 @@ var MultiSelectVue2 = {
|
|
|
1020
1025
|
"class": classNames('k-item k-custom-item', {
|
|
1021
1026
|
'k-focus': isCustom(focusedType)
|
|
1022
1027
|
})
|
|
1023
|
-
}, [currentText, h(
|
|
1024
|
-
|
|
1028
|
+
}, [currentText, h(Icon, {
|
|
1029
|
+
name: "plus",
|
|
1030
|
+
attrs: this.v3 ? undefined : {
|
|
1031
|
+
name: "plus",
|
|
1032
|
+
icon: plusIcon
|
|
1033
|
+
},
|
|
1034
|
+
icon: plusIcon,
|
|
1025
1035
|
style: {
|
|
1026
1036
|
float: 'right'
|
|
1027
1037
|
}
|
|
@@ -64,9 +64,8 @@ var TagListVue2 = {
|
|
|
64
64
|
size = _b.size,
|
|
65
65
|
disabled = _b.disabled;
|
|
66
66
|
return _a = {
|
|
67
|
-
'k-input-values': true,
|
|
68
67
|
'k-chip-list': true
|
|
69
|
-
}, _a["k-chip-list-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-
|
|
68
|
+
}, _a["k-chip-list-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-disabled'] = disabled, _a;
|
|
70
69
|
}
|
|
71
70
|
},
|
|
72
71
|
// @ts-ignore
|
|
@@ -92,6 +91,8 @@ var TagListVue2 = {
|
|
|
92
91
|
tagsRounded = _a.tagsRounded,
|
|
93
92
|
removeTagIcon = _a.removeTagIcon;
|
|
94
93
|
return h("div", {
|
|
94
|
+
"class": 'k-input-values'
|
|
95
|
+
}, [h("div", {
|
|
95
96
|
"class": this.wrapperClass,
|
|
96
97
|
role: "listbox",
|
|
97
98
|
attrs: this.v3 ? undefined : {
|
|
@@ -152,7 +153,7 @@ var TagListVue2 = {
|
|
|
152
153
|
tagdelete: this.onTagDelete
|
|
153
154
|
}
|
|
154
155
|
});
|
|
155
|
-
}, this), defaultSlot]);
|
|
156
|
+
}, this), defaultSlot])]);
|
|
156
157
|
}
|
|
157
158
|
};
|
|
158
159
|
/**
|
|
@@ -4,8 +4,10 @@ var allVue = Vue;
|
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
var inject = allVue.inject;
|
|
7
|
+
import { xIcon } from '@progress/kendo-svg-icons';
|
|
7
8
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
8
9
|
import { messages, clear } from '../messages/main';
|
|
10
|
+
import { Icon } from '@progress/kendo-vue-common';
|
|
9
11
|
/**
|
|
10
12
|
* @hidden
|
|
11
13
|
*/
|
|
@@ -54,8 +56,13 @@ var ClearButtonVue2 = {
|
|
|
54
56
|
tabindex: -1,
|
|
55
57
|
title: title,
|
|
56
58
|
key: "clearbutton"
|
|
57
|
-
}, [h(
|
|
58
|
-
|
|
59
|
+
}, [h(Icon, {
|
|
60
|
+
name: "x",
|
|
61
|
+
attrs: this.v3 ? undefined : {
|
|
62
|
+
name: "x",
|
|
63
|
+
icon: xIcon
|
|
64
|
+
},
|
|
65
|
+
icon: xIcon
|
|
59
66
|
})]);
|
|
60
67
|
}
|
|
61
68
|
};
|
|
@@ -4,7 +4,8 @@ var allVue = Vue;
|
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
var ref = allVue.ref;
|
|
7
|
-
import { getRef, kendoThemeMaps, setRef } from '@progress/kendo-vue-common';
|
|
7
|
+
import { getRef, Icon, kendoThemeMaps, setRef } from '@progress/kendo-vue-common';
|
|
8
|
+
import { searchIcon } from '@progress/kendo-svg-icons';
|
|
8
9
|
var sizeMap = kendoThemeMaps.sizeMap,
|
|
9
10
|
roundedMap = kendoThemeMaps.roundedMap;
|
|
10
11
|
/**
|
|
@@ -80,8 +81,14 @@ var ListFilterVue2 = {
|
|
|
80
81
|
"class": "k-list-filter"
|
|
81
82
|
}, [h("span", {
|
|
82
83
|
"class": this.spanClass
|
|
83
|
-
}, [h(
|
|
84
|
-
|
|
84
|
+
}, [h(Icon, {
|
|
85
|
+
name: "search",
|
|
86
|
+
attrs: this.v3 ? undefined : {
|
|
87
|
+
name: "search",
|
|
88
|
+
icon: searchIcon
|
|
89
|
+
},
|
|
90
|
+
icon: searchIcon,
|
|
91
|
+
"class": "k-input-icon"
|
|
85
92
|
}), h("input", {
|
|
86
93
|
ref: setRef(this, 'input'),
|
|
87
94
|
type: "text",
|
|
@@ -10,6 +10,10 @@ export declare const expandButton = "dropdowns.expandbutton";
|
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
export declare const clear = "dropdowns.clear";
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const selectButton = "dropdowns.select";
|
|
13
17
|
/**
|
|
14
18
|
* @hidden
|
|
15
19
|
*/
|
|
@@ -17,4 +21,5 @@ export declare const messages: {
|
|
|
17
21
|
"dropdowns.clear": string;
|
|
18
22
|
"dropdowns.expandbutton": string;
|
|
19
23
|
"dropdowns.nodata": string;
|
|
24
|
+
"dropdowns.select": string;
|
|
20
25
|
};
|
package/dist/es/messages/main.js
CHANGED
|
@@ -11,6 +11,10 @@ export var expandButton = 'dropdowns.expandbutton';
|
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
export var clear = 'dropdowns.clear';
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export var selectButton = 'dropdowns.select';
|
|
14
18
|
/**
|
|
15
19
|
* @hidden
|
|
16
20
|
*/
|
|
@@ -18,4 +22,5 @@ export var messages = (_a = {},
|
|
|
18
22
|
_a[clear] = 'clear',
|
|
19
23
|
_a[expandButton] = 'expand button',
|
|
20
24
|
_a[nodata] = 'NO DATA FOUND.',
|
|
25
|
+
_a[selectButton] = 'Select',
|
|
21
26
|
_a);
|
|
@@ -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: 1673273441,
|
|
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
|
};
|
|
@@ -22,7 +22,7 @@ import { List } from './../common/List.js';
|
|
|
22
22
|
import DropDownBase from '../common/DropDownBase.js';
|
|
23
23
|
import { ClearButton } from '../common/ClearButton.js';
|
|
24
24
|
import { itemIndexStartsWith, getItemValue, areSame, getFocusedItem } from '../common/utils.js';
|
|
25
|
-
import { guid, Keys, classNames, templateRendering, getListeners, getTemplate, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
|
|
25
|
+
import { guid, Keys, classNames, templateRendering, getListeners, getTemplate, kendoThemeMaps, setRef, getRef, Icon } from '@progress/kendo-vue-common';
|
|
26
26
|
var sizeMap = kendoThemeMaps.sizeMap,
|
|
27
27
|
roundedMap = kendoThemeMaps.roundedMap;
|
|
28
28
|
var VALIDATION_MESSAGE = 'Please enter a valid value!';
|
|
@@ -676,8 +676,8 @@ var AutoCompleteVue2 = {
|
|
|
676
676
|
};
|
|
677
677
|
var renderLoading = function renderLoading(cloading) {
|
|
678
678
|
if (cloading) {
|
|
679
|
-
return h(
|
|
680
|
-
"class": "k-
|
|
679
|
+
return h(Icon, {
|
|
680
|
+
"class": "k-input-loading-icon"
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
683
|
return h("span");
|
|
@@ -18,7 +18,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
18
18
|
var ref = allVue.ref;
|
|
19
19
|
var inject = allVue.inject;
|
|
20
20
|
import DropDownBase from '../common/DropDownBase.js';
|
|
21
|
-
import { guid, classNames, Keys, templateRendering, getListeners, getTemplate, kendoThemeMaps, getRef, setRef } from '@progress/kendo-vue-common';
|
|
21
|
+
import { guid, classNames, Keys, templateRendering, getListeners, getTemplate, kendoThemeMaps, getRef, setRef, Icon } from '@progress/kendo-vue-common';
|
|
22
22
|
import { Button as KButton } from '@progress/kendo-vue-buttons';
|
|
23
23
|
var sizeMap = kendoThemeMaps.sizeMap,
|
|
24
24
|
roundedMap = kendoThemeMaps.roundedMap;
|
|
@@ -930,8 +930,12 @@ var ComboBoxVue2 = {
|
|
|
930
930
|
"clearclick": this.clearButtonClick
|
|
931
931
|
},
|
|
932
932
|
key: "clearbutton"
|
|
933
|
-
}), loading && h(
|
|
934
|
-
|
|
933
|
+
}), loading && h(Icon, {
|
|
934
|
+
name: 'loading',
|
|
935
|
+
attrs: this.v3 ? undefined : {
|
|
936
|
+
name: 'loading'
|
|
937
|
+
},
|
|
938
|
+
"class": "k-input-loading-icon",
|
|
935
939
|
key: "loading"
|
|
936
940
|
}),
|
|
937
941
|
// @ts-ignore
|
|
@@ -16,7 +16,7 @@ var allVue = Vue;
|
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
18
|
var ref = allVue.ref;
|
|
19
|
-
import { templateRendering, getListeners, classNames, Keys, guid, noop, getTemplate, kendoThemeMaps, getTabIndex, setRef, getRef } from '@progress/kendo-vue-common';
|
|
19
|
+
import { templateRendering, getListeners, classNames, Keys, guid, noop, getTemplate, kendoThemeMaps, getTabIndex, setRef, getRef, Icon } from '@progress/kendo-vue-common';
|
|
20
20
|
import { Button as KButton } from '@progress/kendo-vue-buttons';
|
|
21
21
|
var sizeMap = kendoThemeMaps.sizeMap,
|
|
22
22
|
roundedMap = kendoThemeMaps.roundedMap;
|
|
@@ -25,6 +25,8 @@ import { ListFilter } from '../common/ListFilter.js';
|
|
|
25
25
|
import { ListDefaultItem } from '../common/ListDefaultItem.js';
|
|
26
26
|
import { List } from '../common/List.js';
|
|
27
27
|
import DropDownBase from '../common/DropDownBase.js';
|
|
28
|
+
import { selectButton, messages } from '../messages/main.js';
|
|
29
|
+
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
28
30
|
import { isPresent, getItemValue, sameCharsOnly, shuffleData, matchText, areSame, preventDefaultNonInputs, getFocusedItem } from '../common/utils.js';
|
|
29
31
|
var VALIDATION_MESSAGE = 'Please select a value from the list!';
|
|
30
32
|
/**
|
|
@@ -160,6 +162,11 @@ var DropDownListVue2 = {
|
|
|
160
162
|
}
|
|
161
163
|
}
|
|
162
164
|
},
|
|
165
|
+
inject: {
|
|
166
|
+
kendoLocalizationService: {
|
|
167
|
+
default: null
|
|
168
|
+
}
|
|
169
|
+
},
|
|
163
170
|
data: function data() {
|
|
164
171
|
return {
|
|
165
172
|
hasMounted: false,
|
|
@@ -318,6 +325,11 @@ var DropDownListVue2 = {
|
|
|
318
325
|
'k-rtl': this.$props.dir === 'rtl'
|
|
319
326
|
};
|
|
320
327
|
}
|
|
328
|
+
},
|
|
329
|
+
dropDownListId: {
|
|
330
|
+
get: function get() {
|
|
331
|
+
return "value-".concat(this.base.guid).concat(this.$props.ariaDescribedBy ? ' ' + this.$props.ariaDescribedBy : '');
|
|
332
|
+
}
|
|
321
333
|
}
|
|
322
334
|
},
|
|
323
335
|
methods: {
|
|
@@ -695,6 +707,7 @@ var DropDownListVue2 = {
|
|
|
695
707
|
animate: true,
|
|
696
708
|
height: '200px'
|
|
697
709
|
}, this.$props.popupSettings);
|
|
710
|
+
var ariaLabelSelectButton = provideLocalizationService(this).toLanguageString(selectButton, messages[selectButton]);
|
|
698
711
|
var _d = this.$props,
|
|
699
712
|
dataItemKey = _d.dataItemKey,
|
|
700
713
|
_e = _d.dataItems,
|
|
@@ -710,7 +723,11 @@ var DropDownListVue2 = {
|
|
|
710
723
|
return areSame(i, value, dataItemKey);
|
|
711
724
|
});
|
|
712
725
|
var valueDefaultRendering = h("span", {
|
|
713
|
-
"class": "k-input-inner"
|
|
726
|
+
"class": "k-input-inner",
|
|
727
|
+
id: this.dropDownListId,
|
|
728
|
+
attrs: this.v3 ? undefined : {
|
|
729
|
+
id: this.dropDownListId
|
|
730
|
+
}
|
|
714
731
|
}, [h("span", {
|
|
715
732
|
"class": "k-input-value-text"
|
|
716
733
|
}, [text])]);
|
|
@@ -953,7 +970,7 @@ var DropDownListVue2 = {
|
|
|
953
970
|
"aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
|
|
954
971
|
"aria-label": this.$props.ariaLabel || this.$props.label,
|
|
955
972
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
956
|
-
"aria-
|
|
973
|
+
"aria-describedBy": this.dropDownListId,
|
|
957
974
|
title: this.$props.title
|
|
958
975
|
},
|
|
959
976
|
onMousedown: opened ? preventDefaultNonInputs : noop,
|
|
@@ -980,10 +997,14 @@ var DropDownListVue2 = {
|
|
|
980
997
|
"aria-activedescendant": opened ? 'option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0)) : undefined,
|
|
981
998
|
"aria-label": this.$props.ariaLabel || this.$props.label,
|
|
982
999
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
983
|
-
"aria-
|
|
1000
|
+
"aria-describedBy": this.dropDownListId,
|
|
984
1001
|
title: this.$props.title
|
|
985
|
-
}, [valueElement, loading && h(
|
|
986
|
-
|
|
1002
|
+
}, [valueElement, loading && h(Icon, {
|
|
1003
|
+
name: 'loading',
|
|
1004
|
+
attrs: this.v3 ? undefined : {
|
|
1005
|
+
name: 'loading'
|
|
1006
|
+
},
|
|
1007
|
+
"class": "k-input-loading-icon",
|
|
987
1008
|
key: "loading"
|
|
988
1009
|
}),
|
|
989
1010
|
// @ts-ignore
|
|
@@ -995,6 +1016,7 @@ var DropDownListVue2 = {
|
|
|
995
1016
|
size: size,
|
|
996
1017
|
fillMode: fillMode,
|
|
997
1018
|
rounded: null,
|
|
1019
|
+
ariaLabel: ariaLabelSelectButton,
|
|
998
1020
|
iconClass: classNames('k-icon', iconClassName ? iconClassName : 'k-i-caret-alt-down'),
|
|
999
1021
|
"aria-hidden": true
|
|
1000
1022
|
},
|
|
@@ -1002,6 +1024,7 @@ var DropDownListVue2 = {
|
|
|
1002
1024
|
size: size,
|
|
1003
1025
|
fillMode: fillMode,
|
|
1004
1026
|
rounded: null,
|
|
1027
|
+
ariaLabel: ariaLabelSelectButton,
|
|
1005
1028
|
"class": 'k-input-button',
|
|
1006
1029
|
iconClass: classNames('k-icon', iconClassName ? iconClassName : 'k-i-caret-alt-down'),
|
|
1007
1030
|
"aria-hidden": true
|
|
@@ -25,7 +25,7 @@ var allVue = Vue;
|
|
|
25
25
|
var gh = allVue.h;
|
|
26
26
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
27
27
|
var ref = allVue.ref;
|
|
28
|
-
import { classNames, Keys, guid, templateRendering, getListeners, getTemplate, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
|
|
28
|
+
import { classNames, Keys, guid, templateRendering, getListeners, getTemplate, kendoThemeMaps, setRef, getRef, Icon } from '@progress/kendo-vue-common';
|
|
29
29
|
var sizeMap = kendoThemeMaps.sizeMap,
|
|
30
30
|
roundedMap = kendoThemeMaps.roundedMap;
|
|
31
31
|
import { ListContainer } from '../common/ListContainer.js';
|
|
@@ -36,6 +36,7 @@ import DropDownBase from '../common/DropDownBase.js';
|
|
|
36
36
|
import { ClearButton } from '../common/ClearButton.js';
|
|
37
37
|
import { ActiveDescendant } from './../common/settings.js';
|
|
38
38
|
import { itemIndexStartsWith, getItemValue, areSame, matchDataCollections, removeDataItems, isPresent, preventDefaultNonInputs } from '../common/utils.js';
|
|
39
|
+
import { plusIcon } from '@progress/kendo-svg-icons';
|
|
39
40
|
var VALIDATION_MESSAGE = 'Please enter a valid value!';
|
|
40
41
|
var preventDefault = function preventDefault(event) {
|
|
41
42
|
return event.preventDefault();
|
|
@@ -860,8 +861,12 @@ var MultiSelectVue2 = {
|
|
|
860
861
|
};
|
|
861
862
|
var renderLoading = function renderLoading(cloading) {
|
|
862
863
|
if (cloading) {
|
|
863
|
-
return h(
|
|
864
|
-
|
|
864
|
+
return h(Icon, {
|
|
865
|
+
name: 'loading',
|
|
866
|
+
attrs: this.v3 ? undefined : {
|
|
867
|
+
name: 'loading'
|
|
868
|
+
},
|
|
869
|
+
"class": "k-input-loading-icon"
|
|
865
870
|
});
|
|
866
871
|
}
|
|
867
872
|
return h("span");
|
|
@@ -889,7 +894,7 @@ var MultiSelectVue2 = {
|
|
|
889
894
|
expanded: opened,
|
|
890
895
|
owns: this.base.listBoxId,
|
|
891
896
|
activedescendant: ariaActivedescendant,
|
|
892
|
-
"aria-describedBy": "tagslist-".concat(this.base.guid
|
|
897
|
+
"aria-describedBy": "tagslist-".concat(this.base.guid).concat(this.$props.ariaDescribedBy ? ' ' + this.$props.ariaDescribedBy : ''),
|
|
893
898
|
"aria-labelledBy": this.$props.ariaLabelledBy
|
|
894
899
|
},
|
|
895
900
|
size: Math.max((placeholderToShow || '').length, searchText.length, 1),
|
|
@@ -912,7 +917,7 @@ var MultiSelectVue2 = {
|
|
|
912
917
|
expanded: opened,
|
|
913
918
|
owns: this.base.listBoxId,
|
|
914
919
|
activedescendant: ariaActivedescendant,
|
|
915
|
-
"aria-describedBy": "tagslist-".concat(this.base.guid
|
|
920
|
+
"aria-describedBy": "tagslist-".concat(this.base.guid).concat(this.$props.ariaDescribedBy ? ' ' + this.$props.ariaDescribedBy : ''),
|
|
916
921
|
"aria-labelledBy": this.$props.ariaLabelledBy
|
|
917
922
|
})
|
|
918
923
|
);
|
|
@@ -1020,8 +1025,13 @@ var MultiSelectVue2 = {
|
|
|
1020
1025
|
"class": classNames('k-item k-custom-item', {
|
|
1021
1026
|
'k-focus': isCustom(focusedType)
|
|
1022
1027
|
})
|
|
1023
|
-
}, [currentText, h(
|
|
1024
|
-
|
|
1028
|
+
}, [currentText, h(Icon, {
|
|
1029
|
+
name: "plus",
|
|
1030
|
+
attrs: this.v3 ? undefined : {
|
|
1031
|
+
name: "plus",
|
|
1032
|
+
icon: plusIcon
|
|
1033
|
+
},
|
|
1034
|
+
icon: plusIcon,
|
|
1025
1035
|
style: {
|
|
1026
1036
|
float: 'right'
|
|
1027
1037
|
}
|
|
@@ -64,9 +64,8 @@ var TagListVue2 = {
|
|
|
64
64
|
size = _b.size,
|
|
65
65
|
disabled = _b.disabled;
|
|
66
66
|
return _a = {
|
|
67
|
-
'k-input-values': true,
|
|
68
67
|
'k-chip-list': true
|
|
69
|
-
}, _a["k-chip-list-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-
|
|
68
|
+
}, _a["k-chip-list-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-disabled'] = disabled, _a;
|
|
70
69
|
}
|
|
71
70
|
},
|
|
72
71
|
// @ts-ignore
|
|
@@ -92,6 +91,8 @@ var TagListVue2 = {
|
|
|
92
91
|
tagsRounded = _a.tagsRounded,
|
|
93
92
|
removeTagIcon = _a.removeTagIcon;
|
|
94
93
|
return h("div", {
|
|
94
|
+
"class": 'k-input-values'
|
|
95
|
+
}, [h("div", {
|
|
95
96
|
"class": this.wrapperClass,
|
|
96
97
|
role: "listbox",
|
|
97
98
|
attrs: this.v3 ? undefined : {
|
|
@@ -152,7 +153,7 @@ var TagListVue2 = {
|
|
|
152
153
|
tagdelete: this.onTagDelete
|
|
153
154
|
}
|
|
154
155
|
});
|
|
155
|
-
}, this), defaultSlot]);
|
|
156
|
+
}, this), defaultSlot])]);
|
|
156
157
|
}
|
|
157
158
|
};
|
|
158
159
|
/**
|
|
@@ -4,8 +4,10 @@ var allVue = Vue;
|
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
var inject = allVue.inject;
|
|
7
|
+
import { xIcon } from '@progress/kendo-svg-icons';
|
|
7
8
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
8
9
|
import { messages, clear } from '../messages/main.js';
|
|
10
|
+
import { Icon } from '@progress/kendo-vue-common';
|
|
9
11
|
/**
|
|
10
12
|
* @hidden
|
|
11
13
|
*/
|
|
@@ -54,8 +56,13 @@ var ClearButtonVue2 = {
|
|
|
54
56
|
tabindex: -1,
|
|
55
57
|
title: title,
|
|
56
58
|
key: "clearbutton"
|
|
57
|
-
}, [h(
|
|
58
|
-
|
|
59
|
+
}, [h(Icon, {
|
|
60
|
+
name: "x",
|
|
61
|
+
attrs: this.v3 ? undefined : {
|
|
62
|
+
name: "x",
|
|
63
|
+
icon: xIcon
|
|
64
|
+
},
|
|
65
|
+
icon: xIcon
|
|
59
66
|
})]);
|
|
60
67
|
}
|
|
61
68
|
};
|
|
@@ -4,7 +4,8 @@ var allVue = Vue;
|
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
var ref = allVue.ref;
|
|
7
|
-
import { getRef, kendoThemeMaps, setRef } from '@progress/kendo-vue-common';
|
|
7
|
+
import { getRef, Icon, kendoThemeMaps, setRef } from '@progress/kendo-vue-common';
|
|
8
|
+
import { searchIcon } from '@progress/kendo-svg-icons';
|
|
8
9
|
var sizeMap = kendoThemeMaps.sizeMap,
|
|
9
10
|
roundedMap = kendoThemeMaps.roundedMap;
|
|
10
11
|
/**
|
|
@@ -80,8 +81,14 @@ var ListFilterVue2 = {
|
|
|
80
81
|
"class": "k-list-filter"
|
|
81
82
|
}, [h("span", {
|
|
82
83
|
"class": this.spanClass
|
|
83
|
-
}, [h(
|
|
84
|
-
|
|
84
|
+
}, [h(Icon, {
|
|
85
|
+
name: "search",
|
|
86
|
+
attrs: this.v3 ? undefined : {
|
|
87
|
+
name: "search",
|
|
88
|
+
icon: searchIcon
|
|
89
|
+
},
|
|
90
|
+
icon: searchIcon,
|
|
91
|
+
"class": "k-input-icon"
|
|
85
92
|
}), h("input", {
|
|
86
93
|
ref: setRef(this, 'input'),
|
|
87
94
|
type: "text",
|
|
@@ -10,6 +10,10 @@ export declare const expandButton = "dropdowns.expandbutton";
|
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
export declare const clear = "dropdowns.clear";
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const selectButton = "dropdowns.select";
|
|
13
17
|
/**
|
|
14
18
|
* @hidden
|
|
15
19
|
*/
|
|
@@ -17,4 +21,5 @@ export declare const messages: {
|
|
|
17
21
|
"dropdowns.clear": string;
|
|
18
22
|
"dropdowns.expandbutton": string;
|
|
19
23
|
"dropdowns.nodata": string;
|
|
24
|
+
"dropdowns.select": string;
|
|
20
25
|
};
|