@progress/kendo-vue-dropdowns 3.5.0 → 3.5.1-dev.202208150613

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.
Files changed (90) hide show
  1. package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
  2. package/dist/es/AutoComplete/AutoComplete.js +9 -13
  3. package/dist/es/AutoComplete/AutoCompleteProps.js +1 -0
  4. package/dist/es/ComboBox/ComboBox.js +11 -14
  5. package/dist/es/ComboBox/ComboBoxProps.d.ts +1 -1
  6. package/dist/es/ComboBox/ComboBoxProps.js +1 -0
  7. package/dist/es/DropDownList/DropDownList.js +11 -21
  8. package/dist/es/DropDownList/DropDownListProps.js +1 -0
  9. package/dist/es/MultiSelect/MultiSelect.js +23 -30
  10. package/dist/es/MultiSelect/MultiSelectProps.d.ts +1 -1
  11. package/dist/es/MultiSelect/MultiSelectProps.js +1 -0
  12. package/dist/es/MultiSelect/TagList.js +3 -3
  13. package/dist/es/common/List.js +2 -2
  14. package/dist/es/common/ListContainer.js +8 -5
  15. package/dist/es/common/ListFilter.js +1 -1
  16. package/dist/es/common/events.js +1 -0
  17. package/dist/es/common/filterDescriptor.js +1 -0
  18. package/dist/es/package-metadata.js +1 -1
  19. package/dist/esm/AutoComplete/AutoComplete.d.ts +107 -0
  20. package/dist/esm/AutoComplete/AutoComplete.js +757 -0
  21. package/dist/esm/AutoComplete/AutoCompleteProps.d.ts +202 -0
  22. package/dist/esm/AutoComplete/AutoCompleteProps.js +2 -0
  23. package/dist/esm/ComboBox/ComboBox.d.ts +99 -0
  24. package/dist/esm/ComboBox/ComboBox.js +1060 -0
  25. package/dist/esm/ComboBox/ComboBoxProps.d.ts +244 -0
  26. package/dist/esm/ComboBox/ComboBoxProps.js +2 -0
  27. package/dist/esm/DropDownList/DropDownList.d.ts +100 -0
  28. package/dist/esm/DropDownList/DropDownList.js +1086 -0
  29. package/dist/esm/DropDownList/DropDownListProps.d.ts +274 -0
  30. package/dist/esm/DropDownList/DropDownListProps.js +2 -0
  31. package/dist/esm/MultiSelect/MultiSelect.d.ts +115 -0
  32. package/dist/esm/MultiSelect/MultiSelect.js +1246 -0
  33. package/dist/esm/MultiSelect/MultiSelectProps.d.ts +262 -0
  34. package/dist/esm/MultiSelect/MultiSelectProps.js +2 -0
  35. package/dist/esm/MultiSelect/TagList.d.ts +51 -0
  36. package/dist/esm/MultiSelect/TagList.js +180 -0
  37. package/dist/esm/additionalTypes.ts +21 -0
  38. package/dist/esm/common/ClearButton.d.ts +21 -0
  39. package/dist/esm/common/ClearButton.js +68 -0
  40. package/dist/esm/common/DropDownBase.d.ts +84 -0
  41. package/dist/esm/common/DropDownBase.js +303 -0
  42. package/dist/esm/common/List.d.ts +58 -0
  43. package/dist/esm/common/List.js +176 -0
  44. package/dist/esm/common/ListContainer.d.ts +40 -0
  45. package/dist/esm/common/ListContainer.js +134 -0
  46. package/dist/esm/common/ListDefaultItem.d.ts +29 -0
  47. package/dist/esm/common/ListDefaultItem.js +62 -0
  48. package/dist/esm/common/ListFilter.d.ts +46 -0
  49. package/dist/esm/common/ListFilter.js +112 -0
  50. package/dist/esm/common/ListItem.d.ts +71 -0
  51. package/dist/esm/common/ListItem.js +105 -0
  52. package/dist/esm/common/Navigation.d.ts +12 -0
  53. package/dist/esm/common/Navigation.js +34 -0
  54. package/dist/esm/common/SearchBar.d.ts +65 -0
  55. package/dist/esm/common/SearchBar.js +177 -0
  56. package/dist/esm/common/VirtualScroll.d.ts +42 -0
  57. package/dist/esm/common/VirtualScroll.js +196 -0
  58. package/dist/esm/common/events.d.ts +63 -0
  59. package/dist/esm/common/events.js +1 -0
  60. package/dist/esm/common/filterDescriptor.d.ts +41 -0
  61. package/dist/esm/common/filterDescriptor.js +2 -0
  62. package/dist/esm/common/settings.d.ts +102 -0
  63. package/dist/esm/common/settings.js +8 -0
  64. package/dist/esm/common/utils.d.ts +57 -0
  65. package/dist/esm/common/utils.js +184 -0
  66. package/dist/esm/main.d.ts +13 -0
  67. package/dist/esm/main.js +5 -0
  68. package/dist/esm/messages/index.d.ts +20 -0
  69. package/dist/esm/messages/index.js +21 -0
  70. package/dist/esm/package-metadata.d.ts +5 -0
  71. package/dist/esm/package-metadata.js +11 -0
  72. package/dist/esm/package.json +3 -0
  73. package/dist/npm/AutoComplete/AutoComplete.js +24 -28
  74. package/dist/npm/ComboBox/ComboBox.js +43 -46
  75. package/dist/npm/ComboBox/ComboBoxProps.d.ts +1 -1
  76. package/dist/npm/DropDownList/DropDownList.js +42 -52
  77. package/dist/npm/MultiSelect/MultiSelect.js +41 -48
  78. package/dist/npm/MultiSelect/MultiSelectProps.d.ts +1 -1
  79. package/dist/npm/MultiSelect/TagList.js +3 -3
  80. package/dist/npm/common/ClearButton.js +1 -1
  81. package/dist/npm/common/DropDownBase.js +6 -6
  82. package/dist/npm/common/List.js +8 -8
  83. package/dist/npm/common/ListContainer.js +9 -6
  84. package/dist/npm/common/ListDefaultItem.js +2 -2
  85. package/dist/npm/common/ListFilter.js +3 -3
  86. package/dist/npm/common/ListItem.js +2 -2
  87. package/dist/npm/common/Navigation.js +1 -1
  88. package/dist/npm/common/SearchBar.js +2 -2
  89. package/dist/npm/package-metadata.js +1 -1
  90. package/package.json +11 -5
@@ -0,0 +1,262 @@
1
+ import { FormComponentProps } from '@progress/kendo-vue-common';
2
+ import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events';
3
+ import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
4
+ import { TagData } from './TagList';
5
+ /**
6
+ * Represents the object of the `filterChange` MultiSelect event.
7
+ */
8
+ export interface MultiSelectFilterChangeEvent extends FilterChangeEvent {
9
+ }
10
+ /**
11
+ * Represents the object of the `change` MultiSelect event.
12
+ */
13
+ export interface MultiSelectChangeEvent extends ChangeEvent {
14
+ }
15
+ /**
16
+ * Represents the object of the `open` MultiSelect event.
17
+ */
18
+ export interface MultiSelectOpenEvent extends OpenEvent {
19
+ }
20
+ /**
21
+ * Represents the object of the `close` MultiSelect event.
22
+ */
23
+ export interface MultiSelectCloseEvent extends CloseEvent {
24
+ }
25
+ /**
26
+ * Represents the object of the `focus` MultiSelect event.
27
+ */
28
+ export interface MultiSelectFocusEvent extends FocusEvent {
29
+ }
30
+ /**
31
+ * Represents the object of the `blur` MultiSelect event.
32
+ */
33
+ export interface MultiSelectBlurEvent extends BlurEvent {
34
+ }
35
+ /**
36
+ * Represents the object of the `pageChange` MultiSelect event.
37
+ */
38
+ export interface MultiSelectPageChangeEvent extends PageChangeEvent {
39
+ }
40
+ /**
41
+ * Represents the props of the [Kendo UI for Vue MultiSelect component]({% slug overview_multiselect %}).
42
+ */
43
+ export interface MultiSelectProps extends FormComponentProps {
44
+ /**
45
+ * Specifies whether the MultiSelect allows user-defined values that are not present in the dataset ([see example]({% slug custom_values_multiselect %})). Defaults to `false`.
46
+ */
47
+ allowCustom?: boolean;
48
+ /**
49
+ * Sets the data of the MultiSelect ([see example]({% slug binding_multiselect %})).
50
+ */
51
+ dataItems?: any[];
52
+ /**
53
+ * Sets the opened and closed state of the MultiSelect.
54
+ */
55
+ opened?: boolean;
56
+ /**
57
+ * Determines whether to close the options list of the MultiSelect after the item selection is finished.
58
+ *
59
+ * @default true
60
+ */
61
+ autoClose?: boolean;
62
+ /**
63
+ * @hidden
64
+ */
65
+ modelValue?: any;
66
+ /**
67
+ * Sets the value of the MultiSelect ([see example]({% slug binding_multiselect %})). It can either be of the primitive (string, numbers) or of the complex (objects) type.
68
+ */
69
+ value?: Array<any>;
70
+ /**
71
+ * Sets the validate of the input.
72
+ */
73
+ validate?: boolean;
74
+ /**
75
+ * The hint that is displayed when the MultiSelect is empty.
76
+ */
77
+ placeholder?: string;
78
+ /**
79
+ * Sets the tags of the MultiSelect ([see example]({% slug customtags_multiselect %})).
80
+ */
81
+ tags?: Array<TagData>;
82
+ /**
83
+ * Sets the data item field that represents the item value.
84
+ */
85
+ valueField?: string;
86
+ /**
87
+ * Specifies the type of the selected value. If set to true, the selected value has to be of a primitive value.
88
+ */
89
+ valuePrimitive?: boolean;
90
+ /**
91
+ * Sets the key for comparing the data items of the MultiSelect ([see example]({% slug binding_multiselect %}#toc-datasets-of-objects)). If `dataItemKey` is not set, the MultiSelect compares the items by reference.
92
+ */
93
+ dataItemKey?: string;
94
+ /**
95
+ * Sets the default value of the MultiSelect. Similar to the native `select` HTML element.
96
+ */
97
+ defaultValue?: Array<any>;
98
+ /**
99
+ * Sets the disabled state of the MultiSelect.
100
+ */
101
+ disabled?: boolean;
102
+ /**
103
+ * Represents the `dir` HTML attribute.
104
+ */
105
+ dir?: string;
106
+ /**
107
+ * Enables the filtering functionality of the MultiSelect ([more information and examples]({% slug filtering_multiselect %})).
108
+ */
109
+ filterable?: boolean;
110
+ /**
111
+ * Specifies the id of the component.
112
+ */
113
+ id?: string;
114
+ /**
115
+ * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
116
+ * For example these elements could contain error or hint message.
117
+ */
118
+ ariaDescribedBy?: string;
119
+ /**
120
+ * Identifies the element(s) which will label the component.
121
+ */
122
+ ariaLabelledBy?: string;
123
+ /**
124
+ * If set, the MultiSelect will use it to get the focused item index.
125
+ *
126
+ * Default functionality returns the first item which starts with the input text.
127
+ *
128
+ */
129
+ focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
130
+ /**
131
+ * Sets the value of filtering input. Useful for making the filtering input a controlled component.
132
+ */
133
+ filter?: string;
134
+ /**
135
+ * Sets the loading state of the MultiSelect ([see example]({% slug filtering_multiselect %}#toc-basic-configuration)).
136
+ */
137
+ loading?: boolean;
138
+ /**
139
+ * Specifies the `tabIndex` of the MultiSelect.
140
+ */
141
+ tabIndex?: number;
142
+ /**
143
+ * Specifies the `accessKey` of the MultiSelect.
144
+ */
145
+ accessKey?: string;
146
+ /**
147
+ * Sets the data item field that represents the item text ([see example]({% slug binding_multiselect %}#toc-datasets-of-objects)). If the data contains only primitive values, do not define it.
148
+ */
149
+ textField?: string;
150
+ /**
151
+ * Renders a floating label for the MultiSelect.
152
+ */
153
+ label?: string;
154
+ /**
155
+ * Configures the popup of the MultiSelect.
156
+ */
157
+ popupSettings?: DropDownsPopupSettings;
158
+ /**
159
+ * Configures the virtual scrolling of the MultiSelect ([see example]({% slug virtualization_multiselect %})).
160
+ */
161
+ virtual?: VirtualizationSettings;
162
+ /**
163
+ * Fires each time the popup of the MultiSelect is about to open.
164
+ */
165
+ onOpen?: (event: MultiSelectOpenEvent) => void;
166
+ /**
167
+ * Fires each time the popup of the MultiSelect is about to close.
168
+ */
169
+ onClose?: (event: MultiSelectCloseEvent) => void;
170
+ /**
171
+ * Fires each time the user focuses the MultiSelect.
172
+ */
173
+ onFocus?: (event: MultiSelectFocusEvent) => void;
174
+ /**
175
+ * Fires each time the MultiSelect gets blurred.
176
+ */
177
+ onBlur?: (event: MultiSelectBlurEvent) => void;
178
+ /**
179
+ * Fires each time the value of the MultiSelect is about to change ([see examples]({% slug binding_multiselect %})).
180
+ */
181
+ onChange?: (event: MultiSelectChangeEvent) => void;
182
+ /**
183
+ * Fires each time the user types in the filter input ([see example]({% slug filtering_multiselect %}#toc-basic-configuration)). You can filter the source based on the passed filtration value.
184
+ */
185
+ onFilterchange?: (event: MultiSelectFilterChangeEvent) => void;
186
+ /**
187
+ * Fires when both the virtual scrolling of the MultiSelect is enabled and when the component requires data for another page ([see example]({% slug virtualization_multiselect %})).
188
+ */
189
+ onPagechange?: (event: MultiSelectPageChangeEvent) => void;
190
+ /**
191
+ * Fires when a MultiSelect item is about to be rendered ([see example]({% slug customrendering_multiselect %}#toc-items)). Used to override the default appearance of the list items.
192
+ */
193
+ itemRender?: any;
194
+ /**
195
+ * Fires when the element which indicates no data in the popup is about to be rendered ([see example]({% slug customrendering_multiselect %}#toc-no-data)). Used to override the default appearance of the element.
196
+ */
197
+ listNoDataRender?: any;
198
+ /**
199
+ * Fires when a tag element is about to be rendered ([see example]({% slug customrendering_multiselect %}#toc-tags)). Used to override the default appearance of the element.
200
+ */
201
+ tagRender?: any;
202
+ /**
203
+ * Sets the header component of the MultiSelect ([see example]({% slug customrendering_multiselect %}#toc-headers-and-footers)).
204
+ */
205
+ header?: any;
206
+ /**
207
+ * Sets the footer component of the MultiSelect ([see example]({% slug customrendering_multiselect %}#toc-headers-and-footers)).
208
+ */
209
+ footer?: any;
210
+ /**
211
+ * Configures the `size` of the MultiSelect.
212
+ *
213
+ * The available options are:
214
+ * - small
215
+ * - medium
216
+ * - large
217
+ * - null&mdash;Does not set a size `class`.
218
+ *
219
+ * @default `medium`
220
+ */
221
+ size?: null | 'small' | 'medium' | 'large' | string;
222
+ /**
223
+ * Configures the `roundness` of the MultiSelect.
224
+ *
225
+ * The available options are:
226
+ * - small
227
+ * - medium
228
+ * - large
229
+ * - full
230
+ * - null&mdash;Does not set a rounded `class`.
231
+ *
232
+ * @default `medium`
233
+ */
234
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
235
+ /**
236
+ * Configures the `roundness` of the tags in MultiSelect.
237
+ *
238
+ * The available options are:
239
+ * - small
240
+ * - medium
241
+ * - large
242
+ * - circle
243
+ * - full
244
+ * - null&mdash;Does not set a rounded `class`.
245
+ *
246
+ * @default `medium`
247
+ */
248
+ tagsRounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
249
+ /**
250
+ * Configures the `fillMode` of the MultiSelect.
251
+ *
252
+ * The available options are:
253
+ * - solid
254
+ * - outline
255
+ * - flat
256
+ * - link
257
+ * - null&mdash;Does not set a fillMode `class`.
258
+ *
259
+ * @default `solid`
260
+ */
261
+ fillMode?: null | 'solid' | 'outline' | 'flat' | string;
262
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ // tslint:enable:max-line-length
@@ -0,0 +1,51 @@
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
2
+ declare type DefaultData<V> = object | ((this: V) => TagListAll);
3
+ declare type DefaultMethods<V> = {
4
+ [key: string]: (this: V, ...args: any[]) => any;
5
+ };
6
+ /**
7
+ * Represents the tag data.
8
+ */
9
+ export interface TagData {
10
+ /**
11
+ * Represents the text of the tag.
12
+ */
13
+ text: string;
14
+ /**
15
+ * Represents the data items which correspond to the tag.
16
+ */
17
+ data: Array<any>;
18
+ }
19
+ /**
20
+ * @hidden
21
+ */
22
+ export interface TagListProps {
23
+ dataItems: Array<TagData>;
24
+ guid: string;
25
+ focused?: TagData;
26
+ tagRender?: any;
27
+ size?: null | 'small' | 'medium' | 'large' | string;
28
+ fillMode?: null | 'solid' | 'outline' | 'flat' | string;
29
+ tagsRounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
30
+ }
31
+ /**
32
+ * @hidden
33
+ */
34
+ export interface TagListMethods extends Vue2type {
35
+ [key: string]: any;
36
+ onTagDelete: (data: any, e: any) => void;
37
+ }
38
+ /**
39
+ * @hidden
40
+ */
41
+ export interface TagListAll extends TagListMethods {
42
+ }
43
+ /**
44
+ * @hidden
45
+ */
46
+ declare let TagListVue2: ComponentOptions<Vue2type, DefaultData<TagListAll>, DefaultMethods<TagListAll>, {}, RecordPropsDefinition<TagListProps>>;
47
+ /**
48
+ * @hidden
49
+ */
50
+ declare const TagList: DefineComponent<{}, any, {}, {}, TagListMethods, {}, {}, {}, string, {}, {}, {}>;
51
+ export { TagList, TagListVue2 };
@@ -0,0 +1,180 @@
1
+ var __assign = this && this.__assign || function () {
2
+ __assign = Object.assign || function (t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+
6
+ for (var p in s) {
7
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
+ }
9
+ }
10
+
11
+ return t;
12
+ };
13
+
14
+ return __assign.apply(this, arguments);
15
+ }; // @ts-ignore
16
+
17
+
18
+ import { getTemplate, kendoThemeMaps } from '@progress/kendo-vue-common';
19
+ import * as Vue from 'vue';
20
+ var allVue = Vue;
21
+ var gh = allVue.h;
22
+ var isV3 = allVue.version && allVue.version[0] === '3';
23
+ var ref = allVue.ref;
24
+
25
+ var preventDefault = function preventDefault(event) {
26
+ return event.preventDefault();
27
+ };
28
+
29
+ var stopPropagation = function stopPropagation(event) {
30
+ return event.stopPropagation();
31
+ };
32
+ /**
33
+ * @hidden
34
+ */
35
+
36
+
37
+ var TagListVue2 = {
38
+ name: 'TagList',
39
+ props: {
40
+ dataItems: Array,
41
+ guid: String,
42
+ focused: Object,
43
+ tagRender: [String, Function, Object],
44
+ tagsRounded: {
45
+ type: String,
46
+ default: 'medium',
47
+ validator: function validator(value) {
48
+ return ['small', 'medium', 'large', 'full'].includes(value);
49
+ }
50
+ },
51
+ fillMode: {
52
+ type: String,
53
+ default: 'solid',
54
+ validator: function validator(value) {
55
+ return ['solid', 'flat', 'outline'].includes(value);
56
+ }
57
+ },
58
+ size: {
59
+ type: String,
60
+ default: 'medium',
61
+ validator: function validator(value) {
62
+ return ['small', 'medium', 'large'].includes(value);
63
+ }
64
+ }
65
+ },
66
+ computed: {
67
+ wrapperClass: function wrapperClass() {
68
+ var _a;
69
+
70
+ var _b = this.$props,
71
+ size = _b.size,
72
+ disabled = _b.disabled;
73
+ return _a = {
74
+ 'k-chip-list': true
75
+ }, _a["k-chip-list-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-selection-single'] = true, _a['k-disabled'] = disabled, _a;
76
+ },
77
+ chipClass: function chipClass() {
78
+ var _a;
79
+
80
+ var _b = this.$props,
81
+ size = _b.size,
82
+ disabled = _b.disabled,
83
+ tagsRounded = _b.tagsRounded,
84
+ fillMode = _b.fillMode;
85
+ return _a = {
86
+ 'k-chip': true,
87
+ 'k-disabled': disabled
88
+ }, _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;
89
+ }
90
+ },
91
+ // @ts-ignore
92
+ setup: !isV3 ? undefined : function () {
93
+ var v3 = !!isV3;
94
+ return {
95
+ v3: v3
96
+ };
97
+ },
98
+ methods: {
99
+ onTagDelete: function onTagDelete(tagData, event) {
100
+ this.$emit('tagdelete', tagData, event);
101
+ }
102
+ },
103
+ render: function render(createElement) {
104
+ var h = gh || createElement;
105
+ var _a = this.$props,
106
+ dataItems = _a.dataItems,
107
+ guid = _a.guid;
108
+ return h("div", {
109
+ "class": this.wrapperClass,
110
+ role: "listbox",
111
+ attrs: this.v3 ? undefined : {
112
+ role: "listbox",
113
+ id: 'tagslist-' + guid
114
+ },
115
+ id: 'tagslist-' + guid
116
+ }, [dataItems.map(function (tagData, index) {
117
+ var _this = this;
118
+
119
+ var uniqueId = "tag-".concat(guid, "-").concat(tagData.text.toString().replace(/\s+/g, '-'));
120
+ var defaultRendering = h("div", {
121
+ "class": __assign(__assign({}, this.chipClass), {
122
+ 'k-focus': tagData === this.$props.focused
123
+ }),
124
+ key: uniqueId,
125
+ id: uniqueId,
126
+ attrs: this.v3 ? undefined : {
127
+ id: uniqueId,
128
+ "aria-selected": true,
129
+ role: "option",
130
+ "aria-setsize": dataItems.length
131
+ },
132
+ onMousedown: preventDefault,
133
+ on: this.v3 ? undefined : {
134
+ "mousedown": preventDefault,
135
+ "click": stopPropagation
136
+ },
137
+ onClick: stopPropagation,
138
+ "aria-selected": true,
139
+ role: "option",
140
+ "aria-setsize": dataItems.length
141
+ }, [h("span", {
142
+ "class": "k-chip-content"
143
+ }, [tagData.text]), h("span", {
144
+ "aria-label": "delete",
145
+ attrs: this.v3 ? undefined : {
146
+ "aria-label": "delete"
147
+ },
148
+ "class": "k-select",
149
+ onClick: function onClick(e) {
150
+ return _this.onTagDelete(tagData.data, e);
151
+ },
152
+ on: this.v3 ? undefined : {
153
+ "click": function onClick(e) {
154
+ return _this.onTagDelete(tagData.data, e);
155
+ }
156
+ }
157
+ }, [h("span", {
158
+ "class": "k-icon k-i-close"
159
+ })])]);
160
+ return getTemplate.call(this, {
161
+ h: h,
162
+ template: this.$props.tagRender,
163
+ defaultRendering: defaultRendering,
164
+ additionalProps: __assign(__assign({}, this.$props), {
165
+ tagData: tagData,
166
+ index: index
167
+ }),
168
+ additionalListeners: {
169
+ tagdelete: this.onTagDelete
170
+ }
171
+ });
172
+ }, this)]);
173
+ }
174
+ };
175
+ /**
176
+ * @hidden
177
+ */
178
+
179
+ var TagList = TagListVue2;
180
+ export { TagList, TagListVue2 };
@@ -0,0 +1,21 @@
1
+ // @ts-ignore
2
+ import { DefineComponent } from 'vue';
3
+ // @ts-ignore
4
+ import * as Vue from 'vue';
5
+
6
+ /**
7
+ * @hidden
8
+ */
9
+ // @ts-ignore
10
+ type Vue2type = Vue.default;
11
+
12
+ /**
13
+ * @hidden
14
+ */
15
+ // @ts-ignore
16
+ import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
17
+ /**
18
+ * @hidden
19
+ */
20
+ // @ts-ignore
21
+ export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
@@ -0,0 +1,21 @@
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
2
+ declare type DefaultData<V> = object | ((this: V) => {});
3
+ declare type DefaultMethods<V> = {
4
+ [key: string]: (this: V, ...args: any[]) => any;
5
+ };
6
+ /**
7
+ * @hidden
8
+ */
9
+ export interface ClearButtonMethods extends Vue2type {
10
+ onMouseDown: (e: any) => void;
11
+ onClickHandler: (e: any) => void;
12
+ }
13
+ /**
14
+ * @hidden
15
+ */
16
+ declare let ClearButtonVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ClearButtonMethods>, {}, RecordPropsDefinition<{}>>;
17
+ /**
18
+ * @hidden
19
+ */
20
+ declare const ClearButton: DefineComponent<{}, any, {}, {}, ClearButtonMethods, {}, {}, {}, string, {}, {}, {}>;
21
+ export { ClearButton, ClearButtonVue2 };
@@ -0,0 +1,68 @@
1
+ // @ts-ignore
2
+ import * as Vue from 'vue';
3
+ var allVue = Vue;
4
+ var gh = allVue.h;
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
+ var inject = allVue.inject;
7
+ import { provideLocalizationService } from '@progress/kendo-vue-intl';
8
+ import { messages, clear } from '../messages.js';
9
+ /**
10
+ * @hidden
11
+ */
12
+
13
+ var ClearButtonVue2 = {
14
+ name: 'clear-button',
15
+ inject: {
16
+ kendoLocalizationService: {
17
+ default: null
18
+ }
19
+ },
20
+ // @ts-ignore
21
+ setup: !isV3 ? undefined : function () {
22
+ var v3 = !!isV3;
23
+ var kendoLocalizationService = inject('kendoLocalizationService', {});
24
+ return {
25
+ v3: v3,
26
+ kendoLocalizationService: kendoLocalizationService
27
+ };
28
+ },
29
+ methods: {
30
+ onMouseDown: function onMouseDown(e) {
31
+ e.preventDefault();
32
+ },
33
+ onClickHandler: function onClickHandler(e) {
34
+ this.$emit('clearclick', e);
35
+ }
36
+ },
37
+ // @ts-ignore
38
+ render: function render(createElement) {
39
+ var h = gh || createElement;
40
+ var title = provideLocalizationService(this).toLanguageString(clear, messages[clear]);
41
+ return h("span", {
42
+ "class": "k-clear-value",
43
+ role: "button",
44
+ attrs: this.v3 ? undefined : {
45
+ role: "button",
46
+ tabindex: -1,
47
+ title: title
48
+ },
49
+ onClick: this.onClickHandler,
50
+ on: this.v3 ? undefined : {
51
+ "click": this.onClickHandler,
52
+ "mousedown": this.onMouseDown
53
+ },
54
+ onMousedown: this.onMouseDown,
55
+ tabindex: -1,
56
+ title: title,
57
+ key: "clearbutton"
58
+ }, [h("span", {
59
+ "class": "k-icon k-i-x"
60
+ })]);
61
+ }
62
+ };
63
+ /**
64
+ * @hidden
65
+ */
66
+
67
+ var ClearButton = ClearButtonVue2;
68
+ export { ClearButton, ClearButtonVue2 };
@@ -0,0 +1,84 @@
1
+ import VirtualScroll from './VirtualScroll';
2
+ import { Navigation } from './Navigation';
3
+ import { ListItemProps } from './ListItem';
4
+ import { InternalState, DropDownStateBase, Page, DropDownsPopupSettings, VirtualizationSettings } from './settings';
5
+ /**
6
+ * @hidden
7
+ */
8
+ export interface DropDownComponentProps {
9
+ data?: any[];
10
+ opened?: boolean;
11
+ value?: any;
12
+ disabled?: boolean;
13
+ tabIndex?: number;
14
+ dir?: string;
15
+ defaultItem?: any;
16
+ filterable?: boolean;
17
+ filter?: string | null;
18
+ textField?: string;
19
+ dataItemKey?: string;
20
+ popupSettings?: DropDownsPopupSettings;
21
+ style?: any;
22
+ virtual?: VirtualizationSettings;
23
+ onOpen?: (event: any) => void;
24
+ onClose?: (event: any) => void;
25
+ onFocus?: (event: any) => void;
26
+ onBlur?: (event: any) => void;
27
+ onChange?: (event: any) => void;
28
+ onFilterchange?: (event: any) => void;
29
+ onPagechange?: (event: any) => void;
30
+ onScrollchange?: (event: any) => void;
31
+ itemRender?: (li: Element, itemProps: ListItemProps) => any;
32
+ listNoDataRender?: (element: any) => any;
33
+ header?: any;
34
+ footer?: any;
35
+ }
36
+ /**
37
+ * @hidden
38
+ */
39
+ export interface DropDownComponent {
40
+ state: DropDownStateBase;
41
+ element: HTMLSpanElement | null;
42
+ handleItemSelect: Function;
43
+ value: any;
44
+ currentOpened: boolean;
45
+ currentFocused: boolean;
46
+ }
47
+ /**
48
+ * @hidden
49
+ */
50
+ export default class DropDownBase {
51
+ static defaultProps: {
52
+ popupSettings: {
53
+ animate: boolean;
54
+ height: string;
55
+ };
56
+ required: boolean;
57
+ validityStyles: boolean;
58
+ };
59
+ popupWidth?: string;
60
+ wrapper: any;
61
+ list: HTMLUListElement;
62
+ dirCalculated?: string;
63
+ readonly vs: VirtualScroll;
64
+ readonly navigation: Navigation;
65
+ readonly listBoxId: string;
66
+ readonly guid: string;
67
+ readonly component: DropDownComponent;
68
+ constructor(component: any);
69
+ didMount(): void;
70
+ calculateDir(): void;
71
+ calculatePopupWidth(): void;
72
+ scrollToItem(itemIndex: number, vsEnabled?: boolean): void;
73
+ handleItemClick: (index: number, event: any) => void;
74
+ handleFocus: any;
75
+ filterChanged: (text: string | null, state: InternalState) => void;
76
+ initState(): InternalState;
77
+ applyState(state: InternalState): void;
78
+ togglePopup: (state: InternalState) => void;
79
+ pageChange: (page: Page, event: any) => void;
80
+ scrollChange: (event: any) => void;
81
+ triggerOnPageChange(state: InternalState, skip: number, take: number): void;
82
+ triggerPageChangeCornerItems(item: any, state: InternalState): void;
83
+ scrollToVirtualItem: (virtual: VirtualizationSettings, selectedItemIndex: number) => void;
84
+ }