@progress/kendo-vue-dropdowns 3.7.4-dev.202301120847 → 3.7.4-dev.202301151601
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/AutoComplete/AutoComplete.js +11 -23
- package/dist/es/ComboBox/ComboBox.js +6 -4
- package/dist/es/ComboBox/ComboBoxProps.d.ts +9 -0
- package/dist/es/DropDownList/DropDownList.js +8 -4
- package/dist/es/DropDownList/DropDownListProps.d.ts +9 -0
- package/dist/es/MultiSelect/MultiSelect.js +10 -26
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/AutoComplete/AutoComplete.js +11 -23
- package/dist/esm/ComboBox/ComboBox.js +6 -4
- package/dist/esm/ComboBox/ComboBoxProps.d.ts +9 -0
- package/dist/esm/DropDownList/DropDownList.js +8 -4
- package/dist/esm/DropDownList/DropDownListProps.d.ts +9 -0
- package/dist/esm/MultiSelect/MultiSelect.js +10 -26
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/AutoComplete/AutoComplete.js +10 -22
- package/dist/npm/ComboBox/ComboBox.js +6 -4
- package/dist/npm/ComboBox/ComboBoxProps.d.ts +9 -0
- package/dist/npm/DropDownList/DropDownList.js +8 -4
- package/dist/npm/DropDownList/DropDownListProps.d.ts +9 -0
- package/dist/npm/MultiSelect/MultiSelect.js +10 -26
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +5 -5
|
@@ -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
|
|
25
|
+
import { guid, Keys, classNames, templateRendering, getListeners, getTemplate, kendoThemeMaps, setRef, getRef } 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!';
|
|
@@ -661,27 +661,6 @@ var AutoCompleteVue2 = {
|
|
|
661
661
|
}, [footer])])
|
|
662
662
|
);
|
|
663
663
|
};
|
|
664
|
-
var renderClearButton = function renderClearButton(cbutton) {
|
|
665
|
-
if (cbutton) {
|
|
666
|
-
// @ts-ignore function children
|
|
667
|
-
return h(ClearButton, {
|
|
668
|
-
onClearclick: this.clearButtonClick,
|
|
669
|
-
on: this.v3 ? undefined : {
|
|
670
|
-
"clearclick": this.clearButtonClick
|
|
671
|
-
},
|
|
672
|
-
key: "clearbutton"
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
return h("span");
|
|
676
|
-
};
|
|
677
|
-
var renderLoading = function renderLoading(cloading) {
|
|
678
|
-
if (cloading) {
|
|
679
|
-
return h(Icon, {
|
|
680
|
-
"class": "k-input-loading-icon"
|
|
681
|
-
});
|
|
682
|
-
}
|
|
683
|
-
return h("span");
|
|
684
|
-
};
|
|
685
664
|
var autoComplete = h("span", {
|
|
686
665
|
"class": classNames('k-autocomplete k-input', (_a = {}, _a["k-input-".concat(sizeMap[size] || size)] = size, _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded, _a["k-input-".concat(fillMode)] = fillMode, _a['k-invalid'] = !isValid, _a['k-focus'] = focused && !disabled, _a['k-loading'] = loading, _a['k-required'] = this.required, _a['k-disabled'] = disabled, _a)),
|
|
687
666
|
ref: setRef(this, 'kendoAnchor', this.anchor),
|
|
@@ -692,7 +671,16 @@ var AutoCompleteVue2 = {
|
|
|
692
671
|
attrs: this.v3 ? undefined : {
|
|
693
672
|
dir: dir
|
|
694
673
|
}
|
|
695
|
-
}, [renderSearchBar.call(this, value || '', id),
|
|
674
|
+
}, [renderSearchBar.call(this, value || '', id), clearButton && !loading &&
|
|
675
|
+
// @ts-ignore function children
|
|
676
|
+
h(ClearButton, {
|
|
677
|
+
onClearclick: this.clearButtonClick,
|
|
678
|
+
on: this.v3 ? undefined : {
|
|
679
|
+
"clearclick": this.clearButtonClick
|
|
680
|
+
}
|
|
681
|
+
}), h("span", {
|
|
682
|
+
"class": loading ? 'k-input-loading-icon k-icon k-i-loading' : undefined
|
|
683
|
+
}), renderListContainer.call(this)]);
|
|
696
684
|
return label ? h("span", {
|
|
697
685
|
"class": this.spanClassNames,
|
|
698
686
|
dir: this.$props.dir,
|
|
@@ -685,6 +685,8 @@ var ComboBoxVue2 = {
|
|
|
685
685
|
className = _b.className,
|
|
686
686
|
style = _b.style,
|
|
687
687
|
loading = _b.loading,
|
|
688
|
+
icon = _b.icon,
|
|
689
|
+
svgIcon = _b.svgIcon,
|
|
688
690
|
iconClassName = _b.iconClassName,
|
|
689
691
|
virtual = _b.virtual,
|
|
690
692
|
size = _b.size,
|
|
@@ -949,8 +951,8 @@ var ComboBoxVue2 = {
|
|
|
949
951
|
size: size,
|
|
950
952
|
fillMode: fillMode,
|
|
951
953
|
rounded: null,
|
|
952
|
-
icon: 'caret-alt-down',
|
|
953
|
-
svgIcon: caretAltDownIcon,
|
|
954
|
+
icon: icon || 'caret-alt-down',
|
|
955
|
+
svgIcon: svgIcon || caretAltDownIcon,
|
|
954
956
|
iconClass: iconClassName
|
|
955
957
|
},
|
|
956
958
|
tabIndex: -1,
|
|
@@ -959,8 +961,8 @@ var ComboBoxVue2 = {
|
|
|
959
961
|
fillMode: fillMode,
|
|
960
962
|
rounded: null,
|
|
961
963
|
"class": 'k-input-button',
|
|
962
|
-
icon: 'caret-alt-down',
|
|
963
|
-
svgIcon: caretAltDownIcon,
|
|
964
|
+
icon: icon || 'caret-alt-down',
|
|
965
|
+
svgIcon: svgIcon || caretAltDownIcon,
|
|
964
966
|
iconClass: iconClassName,
|
|
965
967
|
onClick: this.toggleBtnClick,
|
|
966
968
|
on: this.v3 ? undefined : {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events';
|
|
2
2
|
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
3
3
|
import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
|
|
4
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
4
5
|
/**
|
|
5
6
|
* Represents the object of the `FilterChange` ComboBox event.
|
|
6
7
|
*/
|
|
@@ -56,6 +57,14 @@ export interface ComboBoxProps extends FormComponentProps {
|
|
|
56
57
|
* Sets the default value of the ComboBox. Similar to the native `select` HTML element.
|
|
57
58
|
*/
|
|
58
59
|
defaultValue?: any;
|
|
60
|
+
/**
|
|
61
|
+
* Defines the name for an existing arrow icon.
|
|
62
|
+
*/
|
|
63
|
+
icon?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Defines the svg icon in a Kendo UI for Vue theme.
|
|
66
|
+
*/
|
|
67
|
+
svgIcon?: SVGIcon;
|
|
59
68
|
/**
|
|
60
69
|
* Sets CSS classes to the expand `icon` DOM element.
|
|
61
70
|
*/
|
|
@@ -91,6 +91,8 @@ var DropDownListVue2 = {
|
|
|
91
91
|
type: Boolean,
|
|
92
92
|
default: true
|
|
93
93
|
},
|
|
94
|
+
icon: String,
|
|
95
|
+
svgIcon: Object,
|
|
94
96
|
iconClassName: String,
|
|
95
97
|
defaultItem: [Object, String],
|
|
96
98
|
valueRender: [String, Function, Object],
|
|
@@ -716,6 +718,8 @@ var DropDownListVue2 = {
|
|
|
716
718
|
disabled = _d.disabled,
|
|
717
719
|
tabIndex = _d.tabIndex,
|
|
718
720
|
loading = _d.loading,
|
|
721
|
+
icon = _d.icon,
|
|
722
|
+
svgIcon = _d.svgIcon,
|
|
719
723
|
iconClassName = _d.iconClassName;
|
|
720
724
|
var valueRender = templateRendering.call(this, this.$props.valueRender, getListeners.call(this));
|
|
721
725
|
var focused = this.currentFocused;
|
|
@@ -1018,8 +1022,8 @@ var DropDownListVue2 = {
|
|
|
1018
1022
|
fillMode: fillMode,
|
|
1019
1023
|
rounded: null,
|
|
1020
1024
|
ariaLabel: ariaLabelSelectButton,
|
|
1021
|
-
icon: 'caret-alt-down',
|
|
1022
|
-
svgIcon: caretAltDownIcon,
|
|
1025
|
+
icon: icon || 'caret-alt-down',
|
|
1026
|
+
svgIcon: svgIcon || caretAltDownIcon,
|
|
1023
1027
|
iconClass: iconClassName,
|
|
1024
1028
|
"aria-hidden": true
|
|
1025
1029
|
},
|
|
@@ -1029,8 +1033,8 @@ var DropDownListVue2 = {
|
|
|
1029
1033
|
rounded: null,
|
|
1030
1034
|
ariaLabel: ariaLabelSelectButton,
|
|
1031
1035
|
"class": 'k-input-button',
|
|
1032
|
-
icon: 'caret-alt-down',
|
|
1033
|
-
svgIcon: caretAltDownIcon,
|
|
1036
|
+
icon: icon || 'caret-alt-down',
|
|
1037
|
+
svgIcon: svgIcon || caretAltDownIcon,
|
|
1034
1038
|
iconClass: iconClassName,
|
|
1035
1039
|
"aria-hidden": true
|
|
1036
1040
|
}), dummySelect.call(this, value), renderListContainer.call(this)]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events';
|
|
2
2
|
import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
|
|
3
3
|
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
4
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
4
5
|
/**
|
|
5
6
|
* Represents the object of the `filterChange` DropDownList event.
|
|
6
7
|
*/
|
|
@@ -110,6 +111,14 @@ export interface DropDownListProps extends FormComponentProps {
|
|
|
110
111
|
* Sets additional classes to the DropDownList.
|
|
111
112
|
*/
|
|
112
113
|
className?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Defines the name for an existing arrow icon.
|
|
116
|
+
*/
|
|
117
|
+
icon?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Defines the svg icon in a Kendo UI for Vue theme.
|
|
120
|
+
*/
|
|
121
|
+
svgIcon?: SVGIcon;
|
|
113
122
|
/**
|
|
114
123
|
* Sets CSS classes to the expand `icon` DOM element.
|
|
115
124
|
*/
|
|
@@ -846,31 +846,6 @@ var MultiSelectVue2 = {
|
|
|
846
846
|
}
|
|
847
847
|
this.setItems(tagsToRender, this._tags);
|
|
848
848
|
var isValid = !this.$props.validityStyles || this.validity().valid;
|
|
849
|
-
var renderClearButton = function renderClearButton(cbutton) {
|
|
850
|
-
if (cbutton) {
|
|
851
|
-
// @ts-ignore function children
|
|
852
|
-
return h(ClearButton, {
|
|
853
|
-
onClearclick: this.clearButtonClick,
|
|
854
|
-
on: this.v3 ? undefined : {
|
|
855
|
-
"clearclick": this.clearButtonClick
|
|
856
|
-
},
|
|
857
|
-
key: "clearbutton"
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
return h("span");
|
|
861
|
-
};
|
|
862
|
-
var renderLoading = function renderLoading(cloading) {
|
|
863
|
-
if (cloading) {
|
|
864
|
-
return h(Icon, {
|
|
865
|
-
name: 'loading',
|
|
866
|
-
attrs: this.v3 ? undefined : {
|
|
867
|
-
name: 'loading'
|
|
868
|
-
},
|
|
869
|
-
"class": "k-input-loading-icon"
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
return h("span");
|
|
873
|
-
};
|
|
874
849
|
var renderSearchBar = function renderSearchBar(searchId) {
|
|
875
850
|
var _this = this;
|
|
876
851
|
var activedescendant = this.activedescendant;
|
|
@@ -1132,7 +1107,16 @@ var MultiSelectVue2 = {
|
|
|
1132
1107
|
}) : undefined
|
|
1133
1108
|
}, this.v3 ? function () {
|
|
1134
1109
|
return [renderSearchBar.call(_this4, id)];
|
|
1135
|
-
} : [renderSearchBar.call(_this4, id)]),
|
|
1110
|
+
} : [renderSearchBar.call(_this4, id)]), clearButton && !loading &&
|
|
1111
|
+
// @ts-ignore function children
|
|
1112
|
+
h(ClearButton, {
|
|
1113
|
+
onClearclick: this.clearButtonClick,
|
|
1114
|
+
on: this.v3 ? undefined : {
|
|
1115
|
+
"clearclick": this.clearButtonClick
|
|
1116
|
+
}
|
|
1117
|
+
}), h("span", {
|
|
1118
|
+
"class": loading ? 'k-input-loading-icon k-icon k-i-loading' : undefined
|
|
1119
|
+
}), renderListContainer.call(this)]);
|
|
1136
1120
|
return label ? h("span", {
|
|
1137
1121
|
"class": this.spanClassNames,
|
|
1138
1122
|
dir: this.$props.dir,
|
|
@@ -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: 1673797537,
|
|
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
|
|
25
|
+
import { guid, Keys, classNames, templateRendering, getListeners, getTemplate, kendoThemeMaps, setRef, getRef } 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!';
|
|
@@ -661,27 +661,6 @@ var AutoCompleteVue2 = {
|
|
|
661
661
|
}, [footer])])
|
|
662
662
|
);
|
|
663
663
|
};
|
|
664
|
-
var renderClearButton = function renderClearButton(cbutton) {
|
|
665
|
-
if (cbutton) {
|
|
666
|
-
// @ts-ignore function children
|
|
667
|
-
return h(ClearButton, {
|
|
668
|
-
onClearclick: this.clearButtonClick,
|
|
669
|
-
on: this.v3 ? undefined : {
|
|
670
|
-
"clearclick": this.clearButtonClick
|
|
671
|
-
},
|
|
672
|
-
key: "clearbutton"
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
return h("span");
|
|
676
|
-
};
|
|
677
|
-
var renderLoading = function renderLoading(cloading) {
|
|
678
|
-
if (cloading) {
|
|
679
|
-
return h(Icon, {
|
|
680
|
-
"class": "k-input-loading-icon"
|
|
681
|
-
});
|
|
682
|
-
}
|
|
683
|
-
return h("span");
|
|
684
|
-
};
|
|
685
664
|
var autoComplete = h("span", {
|
|
686
665
|
"class": classNames('k-autocomplete k-input', (_a = {}, _a["k-input-".concat(sizeMap[size] || size)] = size, _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded, _a["k-input-".concat(fillMode)] = fillMode, _a['k-invalid'] = !isValid, _a['k-focus'] = focused && !disabled, _a['k-loading'] = loading, _a['k-required'] = this.required, _a['k-disabled'] = disabled, _a)),
|
|
687
666
|
ref: setRef(this, 'kendoAnchor', this.anchor),
|
|
@@ -692,7 +671,16 @@ var AutoCompleteVue2 = {
|
|
|
692
671
|
attrs: this.v3 ? undefined : {
|
|
693
672
|
dir: dir
|
|
694
673
|
}
|
|
695
|
-
}, [renderSearchBar.call(this, value || '', id),
|
|
674
|
+
}, [renderSearchBar.call(this, value || '', id), clearButton && !loading &&
|
|
675
|
+
// @ts-ignore function children
|
|
676
|
+
h(ClearButton, {
|
|
677
|
+
onClearclick: this.clearButtonClick,
|
|
678
|
+
on: this.v3 ? undefined : {
|
|
679
|
+
"clearclick": this.clearButtonClick
|
|
680
|
+
}
|
|
681
|
+
}), h("span", {
|
|
682
|
+
"class": loading ? 'k-input-loading-icon k-icon k-i-loading' : undefined
|
|
683
|
+
}), renderListContainer.call(this)]);
|
|
696
684
|
return label ? h("span", {
|
|
697
685
|
"class": this.spanClassNames,
|
|
698
686
|
dir: this.$props.dir,
|
|
@@ -685,6 +685,8 @@ var ComboBoxVue2 = {
|
|
|
685
685
|
className = _b.className,
|
|
686
686
|
style = _b.style,
|
|
687
687
|
loading = _b.loading,
|
|
688
|
+
icon = _b.icon,
|
|
689
|
+
svgIcon = _b.svgIcon,
|
|
688
690
|
iconClassName = _b.iconClassName,
|
|
689
691
|
virtual = _b.virtual,
|
|
690
692
|
size = _b.size,
|
|
@@ -949,8 +951,8 @@ var ComboBoxVue2 = {
|
|
|
949
951
|
size: size,
|
|
950
952
|
fillMode: fillMode,
|
|
951
953
|
rounded: null,
|
|
952
|
-
icon: 'caret-alt-down',
|
|
953
|
-
svgIcon: caretAltDownIcon,
|
|
954
|
+
icon: icon || 'caret-alt-down',
|
|
955
|
+
svgIcon: svgIcon || caretAltDownIcon,
|
|
954
956
|
iconClass: iconClassName
|
|
955
957
|
},
|
|
956
958
|
tabIndex: -1,
|
|
@@ -959,8 +961,8 @@ var ComboBoxVue2 = {
|
|
|
959
961
|
fillMode: fillMode,
|
|
960
962
|
rounded: null,
|
|
961
963
|
"class": 'k-input-button',
|
|
962
|
-
icon: 'caret-alt-down',
|
|
963
|
-
svgIcon: caretAltDownIcon,
|
|
964
|
+
icon: icon || 'caret-alt-down',
|
|
965
|
+
svgIcon: svgIcon || caretAltDownIcon,
|
|
964
966
|
iconClass: iconClassName,
|
|
965
967
|
onClick: this.toggleBtnClick,
|
|
966
968
|
on: this.v3 ? undefined : {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events';
|
|
2
2
|
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
3
3
|
import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
|
|
4
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
4
5
|
/**
|
|
5
6
|
* Represents the object of the `FilterChange` ComboBox event.
|
|
6
7
|
*/
|
|
@@ -56,6 +57,14 @@ export interface ComboBoxProps extends FormComponentProps {
|
|
|
56
57
|
* Sets the default value of the ComboBox. Similar to the native `select` HTML element.
|
|
57
58
|
*/
|
|
58
59
|
defaultValue?: any;
|
|
60
|
+
/**
|
|
61
|
+
* Defines the name for an existing arrow icon.
|
|
62
|
+
*/
|
|
63
|
+
icon?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Defines the svg icon in a Kendo UI for Vue theme.
|
|
66
|
+
*/
|
|
67
|
+
svgIcon?: SVGIcon;
|
|
59
68
|
/**
|
|
60
69
|
* Sets CSS classes to the expand `icon` DOM element.
|
|
61
70
|
*/
|
|
@@ -91,6 +91,8 @@ var DropDownListVue2 = {
|
|
|
91
91
|
type: Boolean,
|
|
92
92
|
default: true
|
|
93
93
|
},
|
|
94
|
+
icon: String,
|
|
95
|
+
svgIcon: Object,
|
|
94
96
|
iconClassName: String,
|
|
95
97
|
defaultItem: [Object, String],
|
|
96
98
|
valueRender: [String, Function, Object],
|
|
@@ -716,6 +718,8 @@ var DropDownListVue2 = {
|
|
|
716
718
|
disabled = _d.disabled,
|
|
717
719
|
tabIndex = _d.tabIndex,
|
|
718
720
|
loading = _d.loading,
|
|
721
|
+
icon = _d.icon,
|
|
722
|
+
svgIcon = _d.svgIcon,
|
|
719
723
|
iconClassName = _d.iconClassName;
|
|
720
724
|
var valueRender = templateRendering.call(this, this.$props.valueRender, getListeners.call(this));
|
|
721
725
|
var focused = this.currentFocused;
|
|
@@ -1018,8 +1022,8 @@ var DropDownListVue2 = {
|
|
|
1018
1022
|
fillMode: fillMode,
|
|
1019
1023
|
rounded: null,
|
|
1020
1024
|
ariaLabel: ariaLabelSelectButton,
|
|
1021
|
-
icon: 'caret-alt-down',
|
|
1022
|
-
svgIcon: caretAltDownIcon,
|
|
1025
|
+
icon: icon || 'caret-alt-down',
|
|
1026
|
+
svgIcon: svgIcon || caretAltDownIcon,
|
|
1023
1027
|
iconClass: iconClassName,
|
|
1024
1028
|
"aria-hidden": true
|
|
1025
1029
|
},
|
|
@@ -1029,8 +1033,8 @@ var DropDownListVue2 = {
|
|
|
1029
1033
|
rounded: null,
|
|
1030
1034
|
ariaLabel: ariaLabelSelectButton,
|
|
1031
1035
|
"class": 'k-input-button',
|
|
1032
|
-
icon: 'caret-alt-down',
|
|
1033
|
-
svgIcon: caretAltDownIcon,
|
|
1036
|
+
icon: icon || 'caret-alt-down',
|
|
1037
|
+
svgIcon: svgIcon || caretAltDownIcon,
|
|
1034
1038
|
iconClass: iconClassName,
|
|
1035
1039
|
"aria-hidden": true
|
|
1036
1040
|
}), dummySelect.call(this, value), renderListContainer.call(this)]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events';
|
|
2
2
|
import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
|
|
3
3
|
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
4
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
4
5
|
/**
|
|
5
6
|
* Represents the object of the `filterChange` DropDownList event.
|
|
6
7
|
*/
|
|
@@ -110,6 +111,14 @@ export interface DropDownListProps extends FormComponentProps {
|
|
|
110
111
|
* Sets additional classes to the DropDownList.
|
|
111
112
|
*/
|
|
112
113
|
className?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Defines the name for an existing arrow icon.
|
|
116
|
+
*/
|
|
117
|
+
icon?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Defines the svg icon in a Kendo UI for Vue theme.
|
|
120
|
+
*/
|
|
121
|
+
svgIcon?: SVGIcon;
|
|
113
122
|
/**
|
|
114
123
|
* Sets CSS classes to the expand `icon` DOM element.
|
|
115
124
|
*/
|
|
@@ -846,31 +846,6 @@ var MultiSelectVue2 = {
|
|
|
846
846
|
}
|
|
847
847
|
this.setItems(tagsToRender, this._tags);
|
|
848
848
|
var isValid = !this.$props.validityStyles || this.validity().valid;
|
|
849
|
-
var renderClearButton = function renderClearButton(cbutton) {
|
|
850
|
-
if (cbutton) {
|
|
851
|
-
// @ts-ignore function children
|
|
852
|
-
return h(ClearButton, {
|
|
853
|
-
onClearclick: this.clearButtonClick,
|
|
854
|
-
on: this.v3 ? undefined : {
|
|
855
|
-
"clearclick": this.clearButtonClick
|
|
856
|
-
},
|
|
857
|
-
key: "clearbutton"
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
return h("span");
|
|
861
|
-
};
|
|
862
|
-
var renderLoading = function renderLoading(cloading) {
|
|
863
|
-
if (cloading) {
|
|
864
|
-
return h(Icon, {
|
|
865
|
-
name: 'loading',
|
|
866
|
-
attrs: this.v3 ? undefined : {
|
|
867
|
-
name: 'loading'
|
|
868
|
-
},
|
|
869
|
-
"class": "k-input-loading-icon"
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
return h("span");
|
|
873
|
-
};
|
|
874
849
|
var renderSearchBar = function renderSearchBar(searchId) {
|
|
875
850
|
var _this = this;
|
|
876
851
|
var activedescendant = this.activedescendant;
|
|
@@ -1132,7 +1107,16 @@ var MultiSelectVue2 = {
|
|
|
1132
1107
|
}) : undefined
|
|
1133
1108
|
}, this.v3 ? function () {
|
|
1134
1109
|
return [renderSearchBar.call(_this4, id)];
|
|
1135
|
-
} : [renderSearchBar.call(_this4, id)]),
|
|
1110
|
+
} : [renderSearchBar.call(_this4, id)]), clearButton && !loading &&
|
|
1111
|
+
// @ts-ignore function children
|
|
1112
|
+
h(ClearButton, {
|
|
1113
|
+
onClearclick: this.clearButtonClick,
|
|
1114
|
+
on: this.v3 ? undefined : {
|
|
1115
|
+
"clearclick": this.clearButtonClick
|
|
1116
|
+
}
|
|
1117
|
+
}), h("span", {
|
|
1118
|
+
"class": loading ? 'k-input-loading-icon k-icon k-i-loading' : undefined
|
|
1119
|
+
}), renderListContainer.call(this)]);
|
|
1136
1120
|
return label ? h("span", {
|
|
1137
1121
|
"class": this.spanClassNames,
|
|
1138
1122
|
dir: this.$props.dir,
|
|
@@ -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: 1673797537,
|
|
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
|
};
|
|
@@ -667,27 +667,6 @@ var AutoCompleteVue2 = {
|
|
|
667
667
|
}, [footer])])
|
|
668
668
|
);
|
|
669
669
|
};
|
|
670
|
-
var renderClearButton = function renderClearButton(cbutton) {
|
|
671
|
-
if (cbutton) {
|
|
672
|
-
// @ts-ignore function children
|
|
673
|
-
return h(ClearButton_1.ClearButton, {
|
|
674
|
-
onClearclick: this.clearButtonClick,
|
|
675
|
-
on: this.v3 ? undefined : {
|
|
676
|
-
"clearclick": this.clearButtonClick
|
|
677
|
-
},
|
|
678
|
-
key: "clearbutton"
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
return h("span");
|
|
682
|
-
};
|
|
683
|
-
var renderLoading = function renderLoading(cloading) {
|
|
684
|
-
if (cloading) {
|
|
685
|
-
return h(kendo_vue_common_1.Icon, {
|
|
686
|
-
"class": "k-input-loading-icon"
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
return h("span");
|
|
690
|
-
};
|
|
691
670
|
var autoComplete = h("span", {
|
|
692
671
|
"class": (0, kendo_vue_common_1.classNames)('k-autocomplete k-input', (_a = {}, _a["k-input-".concat(sizeMap[size] || size)] = size, _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded, _a["k-input-".concat(fillMode)] = fillMode, _a['k-invalid'] = !isValid, _a['k-focus'] = focused && !disabled, _a['k-loading'] = loading, _a['k-required'] = this.required, _a['k-disabled'] = disabled, _a)),
|
|
693
672
|
ref: (0, kendo_vue_common_1.setRef)(this, 'kendoAnchor', this.anchor),
|
|
@@ -698,7 +677,16 @@ var AutoCompleteVue2 = {
|
|
|
698
677
|
attrs: this.v3 ? undefined : {
|
|
699
678
|
dir: dir
|
|
700
679
|
}
|
|
701
|
-
}, [renderSearchBar.call(this, value || '', id),
|
|
680
|
+
}, [renderSearchBar.call(this, value || '', id), clearButton && !loading &&
|
|
681
|
+
// @ts-ignore function children
|
|
682
|
+
h(ClearButton_1.ClearButton, {
|
|
683
|
+
onClearclick: this.clearButtonClick,
|
|
684
|
+
on: this.v3 ? undefined : {
|
|
685
|
+
"clearclick": this.clearButtonClick
|
|
686
|
+
}
|
|
687
|
+
}), h("span", {
|
|
688
|
+
"class": loading ? 'k-input-loading-icon k-icon k-i-loading' : undefined
|
|
689
|
+
}), renderListContainer.call(this)]);
|
|
702
690
|
return label ? h("span", {
|
|
703
691
|
"class": this.spanClassNames,
|
|
704
692
|
dir: this.$props.dir,
|
|
@@ -691,6 +691,8 @@ var ComboBoxVue2 = {
|
|
|
691
691
|
className = _b.className,
|
|
692
692
|
style = _b.style,
|
|
693
693
|
loading = _b.loading,
|
|
694
|
+
icon = _b.icon,
|
|
695
|
+
svgIcon = _b.svgIcon,
|
|
694
696
|
iconClassName = _b.iconClassName,
|
|
695
697
|
virtual = _b.virtual,
|
|
696
698
|
size = _b.size,
|
|
@@ -955,8 +957,8 @@ var ComboBoxVue2 = {
|
|
|
955
957
|
size: size,
|
|
956
958
|
fillMode: fillMode,
|
|
957
959
|
rounded: null,
|
|
958
|
-
icon: 'caret-alt-down',
|
|
959
|
-
svgIcon: kendo_svg_icons_1.caretAltDownIcon,
|
|
960
|
+
icon: icon || 'caret-alt-down',
|
|
961
|
+
svgIcon: svgIcon || kendo_svg_icons_1.caretAltDownIcon,
|
|
960
962
|
iconClass: iconClassName
|
|
961
963
|
},
|
|
962
964
|
tabIndex: -1,
|
|
@@ -965,8 +967,8 @@ var ComboBoxVue2 = {
|
|
|
965
967
|
fillMode: fillMode,
|
|
966
968
|
rounded: null,
|
|
967
969
|
"class": 'k-input-button',
|
|
968
|
-
icon: 'caret-alt-down',
|
|
969
|
-
svgIcon: kendo_svg_icons_1.caretAltDownIcon,
|
|
970
|
+
icon: icon || 'caret-alt-down',
|
|
971
|
+
svgIcon: svgIcon || kendo_svg_icons_1.caretAltDownIcon,
|
|
970
972
|
iconClass: iconClassName,
|
|
971
973
|
onClick: this.toggleBtnClick,
|
|
972
974
|
on: this.v3 ? undefined : {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events';
|
|
2
2
|
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
3
3
|
import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
|
|
4
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
4
5
|
/**
|
|
5
6
|
* Represents the object of the `FilterChange` ComboBox event.
|
|
6
7
|
*/
|
|
@@ -56,6 +57,14 @@ export interface ComboBoxProps extends FormComponentProps {
|
|
|
56
57
|
* Sets the default value of the ComboBox. Similar to the native `select` HTML element.
|
|
57
58
|
*/
|
|
58
59
|
defaultValue?: any;
|
|
60
|
+
/**
|
|
61
|
+
* Defines the name for an existing arrow icon.
|
|
62
|
+
*/
|
|
63
|
+
icon?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Defines the svg icon in a Kendo UI for Vue theme.
|
|
66
|
+
*/
|
|
67
|
+
svgIcon?: SVGIcon;
|
|
59
68
|
/**
|
|
60
69
|
* Sets CSS classes to the expand `icon` DOM element.
|
|
61
70
|
*/
|
|
@@ -97,6 +97,8 @@ var DropDownListVue2 = {
|
|
|
97
97
|
type: Boolean,
|
|
98
98
|
default: true
|
|
99
99
|
},
|
|
100
|
+
icon: String,
|
|
101
|
+
svgIcon: Object,
|
|
100
102
|
iconClassName: String,
|
|
101
103
|
defaultItem: [Object, String],
|
|
102
104
|
valueRender: [String, Function, Object],
|
|
@@ -722,6 +724,8 @@ var DropDownListVue2 = {
|
|
|
722
724
|
disabled = _d.disabled,
|
|
723
725
|
tabIndex = _d.tabIndex,
|
|
724
726
|
loading = _d.loading,
|
|
727
|
+
icon = _d.icon,
|
|
728
|
+
svgIcon = _d.svgIcon,
|
|
725
729
|
iconClassName = _d.iconClassName;
|
|
726
730
|
var valueRender = kendo_vue_common_1.templateRendering.call(this, this.$props.valueRender, kendo_vue_common_1.getListeners.call(this));
|
|
727
731
|
var focused = this.currentFocused;
|
|
@@ -1024,8 +1028,8 @@ var DropDownListVue2 = {
|
|
|
1024
1028
|
fillMode: fillMode,
|
|
1025
1029
|
rounded: null,
|
|
1026
1030
|
ariaLabel: ariaLabelSelectButton,
|
|
1027
|
-
icon: 'caret-alt-down',
|
|
1028
|
-
svgIcon: kendo_svg_icons_1.caretAltDownIcon,
|
|
1031
|
+
icon: icon || 'caret-alt-down',
|
|
1032
|
+
svgIcon: svgIcon || kendo_svg_icons_1.caretAltDownIcon,
|
|
1029
1033
|
iconClass: iconClassName,
|
|
1030
1034
|
"aria-hidden": true
|
|
1031
1035
|
},
|
|
@@ -1035,8 +1039,8 @@ var DropDownListVue2 = {
|
|
|
1035
1039
|
rounded: null,
|
|
1036
1040
|
ariaLabel: ariaLabelSelectButton,
|
|
1037
1041
|
"class": 'k-input-button',
|
|
1038
|
-
icon: 'caret-alt-down',
|
|
1039
|
-
svgIcon: kendo_svg_icons_1.caretAltDownIcon,
|
|
1042
|
+
icon: icon || 'caret-alt-down',
|
|
1043
|
+
svgIcon: svgIcon || kendo_svg_icons_1.caretAltDownIcon,
|
|
1040
1044
|
iconClass: iconClassName,
|
|
1041
1045
|
"aria-hidden": true
|
|
1042
1046
|
}), dummySelect.call(this, value), renderListContainer.call(this)]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events';
|
|
2
2
|
import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
|
|
3
3
|
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
4
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
4
5
|
/**
|
|
5
6
|
* Represents the object of the `filterChange` DropDownList event.
|
|
6
7
|
*/
|
|
@@ -110,6 +111,14 @@ export interface DropDownListProps extends FormComponentProps {
|
|
|
110
111
|
* Sets additional classes to the DropDownList.
|
|
111
112
|
*/
|
|
112
113
|
className?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Defines the name for an existing arrow icon.
|
|
116
|
+
*/
|
|
117
|
+
icon?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Defines the svg icon in a Kendo UI for Vue theme.
|
|
120
|
+
*/
|
|
121
|
+
svgIcon?: SVGIcon;
|
|
113
122
|
/**
|
|
114
123
|
* Sets CSS classes to the expand `icon` DOM element.
|
|
115
124
|
*/
|