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

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 (89) hide show
  1. package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
  2. package/dist/es/AutoComplete/AutoComplete.js +3 -3
  3. package/dist/es/AutoComplete/AutoCompleteProps.js +1 -0
  4. package/dist/es/ComboBox/ComboBox.js +4 -4
  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 +5 -13
  8. package/dist/es/DropDownList/DropDownListProps.js +1 -0
  9. package/dist/es/MultiSelect/MultiSelect.js +16 -20
  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/ListFilter.js +1 -1
  15. package/dist/es/common/events.js +1 -0
  16. package/dist/es/common/filterDescriptor.js +1 -0
  17. package/dist/es/package-metadata.js +1 -1
  18. package/dist/esm/AutoComplete/AutoComplete.d.ts +107 -0
  19. package/dist/esm/AutoComplete/AutoComplete.js +761 -0
  20. package/dist/esm/AutoComplete/AutoCompleteProps.d.ts +202 -0
  21. package/dist/esm/AutoComplete/AutoCompleteProps.js +2 -0
  22. package/dist/esm/ComboBox/ComboBox.d.ts +99 -0
  23. package/dist/esm/ComboBox/ComboBox.js +1063 -0
  24. package/dist/esm/ComboBox/ComboBoxProps.d.ts +244 -0
  25. package/dist/esm/ComboBox/ComboBoxProps.js +2 -0
  26. package/dist/esm/DropDownList/DropDownList.d.ts +100 -0
  27. package/dist/esm/DropDownList/DropDownList.js +1088 -0
  28. package/dist/esm/DropDownList/DropDownListProps.d.ts +274 -0
  29. package/dist/esm/DropDownList/DropDownListProps.js +2 -0
  30. package/dist/esm/MultiSelect/MultiSelect.d.ts +115 -0
  31. package/dist/esm/MultiSelect/MultiSelect.js +1249 -0
  32. package/dist/esm/MultiSelect/MultiSelectProps.d.ts +262 -0
  33. package/dist/esm/MultiSelect/MultiSelectProps.js +2 -0
  34. package/dist/esm/MultiSelect/TagList.d.ts +51 -0
  35. package/dist/esm/MultiSelect/TagList.js +180 -0
  36. package/dist/esm/additionalTypes.ts +21 -0
  37. package/dist/esm/common/ClearButton.d.ts +21 -0
  38. package/dist/esm/common/ClearButton.js +68 -0
  39. package/dist/esm/common/DropDownBase.d.ts +84 -0
  40. package/dist/esm/common/DropDownBase.js +303 -0
  41. package/dist/esm/common/List.d.ts +58 -0
  42. package/dist/esm/common/List.js +176 -0
  43. package/dist/esm/common/ListContainer.d.ts +40 -0
  44. package/dist/esm/common/ListContainer.js +131 -0
  45. package/dist/esm/common/ListDefaultItem.d.ts +29 -0
  46. package/dist/esm/common/ListDefaultItem.js +62 -0
  47. package/dist/esm/common/ListFilter.d.ts +46 -0
  48. package/dist/esm/common/ListFilter.js +112 -0
  49. package/dist/esm/common/ListItem.d.ts +71 -0
  50. package/dist/esm/common/ListItem.js +105 -0
  51. package/dist/esm/common/Navigation.d.ts +12 -0
  52. package/dist/esm/common/Navigation.js +34 -0
  53. package/dist/esm/common/SearchBar.d.ts +65 -0
  54. package/dist/esm/common/SearchBar.js +177 -0
  55. package/dist/esm/common/VirtualScroll.d.ts +42 -0
  56. package/dist/esm/common/VirtualScroll.js +196 -0
  57. package/dist/esm/common/events.d.ts +63 -0
  58. package/dist/esm/common/events.js +1 -0
  59. package/dist/esm/common/filterDescriptor.d.ts +41 -0
  60. package/dist/esm/common/filterDescriptor.js +2 -0
  61. package/dist/esm/common/settings.d.ts +102 -0
  62. package/dist/esm/common/settings.js +8 -0
  63. package/dist/esm/common/utils.d.ts +57 -0
  64. package/dist/esm/common/utils.js +184 -0
  65. package/dist/esm/main.d.ts +13 -0
  66. package/dist/esm/main.js +5 -0
  67. package/dist/esm/messages/index.d.ts +20 -0
  68. package/dist/esm/messages/index.js +21 -0
  69. package/dist/esm/package-metadata.d.ts +5 -0
  70. package/dist/esm/package-metadata.js +11 -0
  71. package/dist/esm/package.json +3 -0
  72. package/dist/npm/AutoComplete/AutoComplete.js +18 -18
  73. package/dist/npm/ComboBox/ComboBox.js +36 -36
  74. package/dist/npm/ComboBox/ComboBoxProps.d.ts +1 -1
  75. package/dist/npm/DropDownList/DropDownList.js +36 -44
  76. package/dist/npm/MultiSelect/MultiSelect.js +34 -38
  77. package/dist/npm/MultiSelect/MultiSelectProps.d.ts +1 -1
  78. package/dist/npm/MultiSelect/TagList.js +3 -3
  79. package/dist/npm/common/ClearButton.js +1 -1
  80. package/dist/npm/common/DropDownBase.js +6 -6
  81. package/dist/npm/common/List.js +8 -8
  82. package/dist/npm/common/ListContainer.js +1 -1
  83. package/dist/npm/common/ListDefaultItem.js +2 -2
  84. package/dist/npm/common/ListFilter.js +3 -3
  85. package/dist/npm/common/ListItem.js +2 -2
  86. package/dist/npm/common/Navigation.js +1 -1
  87. package/dist/npm/common/SearchBar.js +2 -2
  88. package/dist/npm/package-metadata.js +1 -1
  89. package/package.json +11 -5
@@ -0,0 +1,274 @@
1
+ import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events';
2
+ import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
3
+ import { FormComponentProps } from '@progress/kendo-vue-common';
4
+ /**
5
+ * Represents the object of the `filterChange` DropDownList event.
6
+ */
7
+ export interface DropDownListFilterChangeEvent extends FilterChangeEvent {
8
+ }
9
+ /**
10
+ * Represents the object of the `change` DropDownList event.
11
+ */
12
+ export interface DropDownListChangeEvent extends ChangeEvent {
13
+ }
14
+ /**
15
+ * Represents the object of the `open` DropDownList event.
16
+ */
17
+ export interface DropDownListOpenEvent extends OpenEvent {
18
+ }
19
+ /**
20
+ * Represents the object of the `close` DropDownList event.
21
+ */
22
+ export interface DropDownListCloseEvent extends CloseEvent {
23
+ }
24
+ /**
25
+ * Represents the object of the `focus` DropDownList event.
26
+ */
27
+ export interface DropDownListFocusEvent extends FocusEvent {
28
+ }
29
+ /**
30
+ * Represents the object of the `blur` DropDownList event.
31
+ */
32
+ export interface DropDownListBlurEvent extends BlurEvent {
33
+ }
34
+ /**
35
+ * Represents the object of the `pageChange` DropDownList event.
36
+ */
37
+ export interface DropDownListPageChangeEvent extends PageChangeEvent {
38
+ }
39
+ /**
40
+ * Represents the props of the [KendoVue DropDownList component]({% slug overview_dropdownlist %}).
41
+ */
42
+ export interface DropDownListProps extends FormComponentProps {
43
+ /**
44
+ * Specifies the id of the component.
45
+ */
46
+ id?: string;
47
+ /**
48
+ * Specifies the title of the component.
49
+ */
50
+ title?: string;
51
+ /**
52
+ * 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).
53
+ * For example these elements could contain error or hint message.
54
+ */
55
+ ariaDescribedBy?: string;
56
+ /**
57
+ * Identifies the element(s) which will label the component.
58
+ */
59
+ ariaLabelledBy?: string;
60
+ /**
61
+ * There is no placeholder concept when it comes to DropDownList/HTML select element. The approach
62
+ * that we recommend in such cases is to use the default Item as it is shown here ([see example]({% slug defaultitem_dropdownlist %})).
63
+ */
64
+ placeholder?: string;
65
+ /**
66
+ * Sets the validate of the input.
67
+ */
68
+ validate?: boolean;
69
+ /**
70
+ * Sets the data of the DropDownList ([see example]({% slug binding_dropdownlist %})).
71
+ */
72
+ dataItems?: any[];
73
+ /**
74
+ * Sets the text of the default empty item. The type of the defined value has to match the data type.
75
+ */
76
+ defaultItem?: any;
77
+ /**
78
+ * Sets the delay before an item search is performed. When filtration is disabled, use this option.
79
+ */
80
+ delay?: number;
81
+ /**
82
+ * Enables a case-insensitive search. When filtering is disabled, use this option.
83
+ */
84
+ ignoreCase?: boolean;
85
+ /**
86
+ * Sets the opened and closed state of the DropDownList.
87
+ */
88
+ opened?: boolean;
89
+ /**
90
+ * The styles that are applied to the DropDownList.
91
+ */
92
+ style?: any;
93
+ /**
94
+ * @hidden
95
+ */
96
+ modelValue?: any;
97
+ /**
98
+ * Sets the value of the DropDownList ([see example]({% slug binding_dropdownlist %})). It can either be of the primitive (string, numbers) or of the complex (objects) type.
99
+ */
100
+ value?: any;
101
+ /**
102
+ * Sets the default value of the DropDownList ([see example]({% slug defaultitem_dropdownlist %})). Similar to the native `select` HTML element.
103
+ */
104
+ defaultValue?: any;
105
+ /**
106
+ * Sets additional classes to the DropDownList.
107
+ */
108
+ className?: string;
109
+ /**
110
+ * Sets CSS classes to the expand `icon` DOM element.
111
+ */
112
+ iconClassName?: string;
113
+ /**
114
+ * Sets the disabled state of the DropDownList.
115
+ */
116
+ disabled?: boolean;
117
+ /**
118
+ * Represents the `dir` HTML attribute.
119
+ */
120
+ dir?: string;
121
+ /**
122
+ * Enables the filtering functionality of the DropDownList ([more information and examples]({% slug filtering_dropdownlist %})).
123
+ */
124
+ filterable?: boolean;
125
+ /**
126
+ * Sets the value of filtering input.
127
+ */
128
+ filter?: string;
129
+ /**
130
+ * Sets the loading state of the DropDownList.
131
+ */
132
+ loading?: boolean;
133
+ /**
134
+ * Specifies the `tabIndex` of the DropDownList.
135
+ */
136
+ tabIndex?: number;
137
+ /**
138
+ * Specifies the `accessKey` of the DropDownList.
139
+ */
140
+ accessKey?: string;
141
+ /**
142
+ * Sets the data item field that represents the item text ([see example]({% slug defaultitem_dropdownlist %})). If the data contains only primitive values, do not define it.
143
+ */
144
+ textField?: string;
145
+ /**
146
+ * Sets the data item field that represents the item value.
147
+ */
148
+ valueField?: string;
149
+ /**
150
+ * Specifies the type of the selected value. If set to true, the selected value has to be of a primitive value.
151
+ */
152
+ valuePrimitive?: boolean;
153
+ /**
154
+ * Sets the key for comparing the data items of the DropDownList. If `dataItemKey` is not set, the DropDownList compares the items by reference ([see example]({% slug binding_dropdownlist %}#toc-datasets-of-objects)).
155
+ */
156
+ dataItemKey?: string;
157
+ /**
158
+ * Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden `select` element.
159
+ */
160
+ valueMap?: (value: any) => any;
161
+ /**
162
+ * Renders a floating label for the DropDownList.
163
+ */
164
+ label?: string;
165
+ /**
166
+ * Configures the popup of the DropDownList.
167
+ */
168
+ popupSettings?: DropDownsPopupSettings;
169
+ /**
170
+ * Configures the virtual scrolling of the DropDownList ([see example]({% slug virtualization_dropdownlist %})).
171
+ */
172
+ virtual?: VirtualizationSettings;
173
+ /**
174
+ * If set, the DropDownList will use it to get the focused item index.
175
+ *
176
+ * Default functionality returns the first item which starts with the input text.
177
+ *
178
+ */
179
+ focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
180
+ /**
181
+ * Fires each time the popup of the DropDownList is about to open.
182
+ */
183
+ onOpen?: (event: DropDownListOpenEvent) => void;
184
+ /**
185
+ * Fires each time the popup of the DropDownList is about to close.
186
+ */
187
+ onClose?: (event: DropDownListCloseEvent) => void;
188
+ /**
189
+ * Fires each time the user focuses the DropDownList.
190
+ */
191
+ onFocus?: (event: DropDownListFocusEvent) => void;
192
+ /**
193
+ * Fires each time the DropDownList gets blurred.
194
+ */
195
+ onBlur?: (event: DropDownListBlurEvent) => void;
196
+ /**
197
+ * Fires each time the value of the DropDownList is about to change ([see examples]({% slug binding_dropdownlist %})).
198
+ */
199
+ onChange?: (event: DropDownListChangeEvent) => void;
200
+ /**
201
+ * Fires each time the user types in the filter input. You can filter the source based on the passed filtration value.
202
+ */
203
+ onFilterchange?: (event: DropDownListFilterChangeEvent) => void;
204
+ /**
205
+ * Fires when both the virtual scrolling of the DropDownList is enabled and the component requires data for another page ([see example]({% slug virtualization_dropdownlist %})).
206
+ */
207
+ onPagechange?: (event: DropDownListPageChangeEvent) => void;
208
+ /**
209
+ * Fires when a DropDownList item is about to be rendered ([see example]({% slug customrendering_dropdownlist %}#toc-items)). Used to override the default appearance of the list items.
210
+ */
211
+ itemRender?: any;
212
+ /**
213
+ * Fires when the element which renders the value is about to be rendered ([see example]({% slug customrendering_dropdownlist %}#toc-values)). Used to override the default appearance of the element.
214
+ */
215
+ valueRender?: any;
216
+ /**
217
+ * Fires when the element which indicates no data in the popup is about to be rendered ([see example]({% slug customrendering_dropdownlist %}#toc-no-data)). Used to override the default appearance of the element.
218
+ */
219
+ listNoDataRender?: any;
220
+ /**
221
+ * Sets the header component of the DropDownList ([see example]({% slug customrendering_dropdownlist %}#toc-headers-and-footers)).
222
+ */
223
+ header?: any;
224
+ /**
225
+ * Sets the footer component of the DropDownList ([see example]({% slug customrendering_dropdownlist %}#toc-headers-and-footers)).
226
+ */
227
+ footer?: any;
228
+ /**
229
+ * Specifies the `name` property of the `select` DOM element.
230
+ */
231
+ name?: string;
232
+ /**
233
+ * If set to `false`, the DropDownList will not navigate over its data through left and right keys.
234
+ * Useful when the DropDownList is placed inside a toolbar which needs to handle left and right keys.
235
+ */
236
+ leftRightKeysNavigation?: boolean;
237
+ /**
238
+ * Configures the `size` of the DropDownList.
239
+ *
240
+ * The available options are:
241
+ * - small
242
+ * - medium
243
+ * - large
244
+ * - null—Does not set a size `class`.
245
+ *
246
+ * @default `medium`
247
+ */
248
+ size?: null | 'small' | 'medium' | 'large' | string;
249
+ /**
250
+ * Configures the `roundness` of the DropDownList.
251
+ *
252
+ * The available options are:
253
+ * - small
254
+ * - medium
255
+ * - large
256
+ * - full
257
+ * - null—Does not set a rounded `class`.
258
+ *
259
+ * @default `medium`
260
+ */
261
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
262
+ /**
263
+ * Configures the `fillMode` of the DropDownList.
264
+ *
265
+ * The available options are:
266
+ * - solid
267
+ * - outline
268
+ * - flat
269
+ * - null—Does not set a fillMode `class`.
270
+ *
271
+ * @default `solid`
272
+ */
273
+ fillMode?: null | 'solid' | 'outline' | 'flat' | string;
274
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ // tslint:enable:max-line-length
@@ -0,0 +1,115 @@
1
+ declare type DefaultData<V> = object | ((this: V) => MultiSelectData);
2
+ declare type DefaultMethods<V> = {
3
+ [key: string]: (this: V, ...args: any[]) => any;
4
+ };
5
+ import { FormComponentValidity } from '@progress/kendo-vue-common';
6
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
7
+ import { TagData } from './TagList';
8
+ import { MultiSelectProps } from './MultiSelectProps';
9
+ import { DropDownStateBase, InternalState, ActiveDescendant } from './../common/settings';
10
+ declare enum FocusedItemType {
11
+ None = 0,
12
+ ListItem = 1,
13
+ CustomItem = 2
14
+ }
15
+ interface ListFocusedState {
16
+ focusedItem?: any;
17
+ focusedIndex: number;
18
+ focusedType: FocusedItemType;
19
+ }
20
+ /**
21
+ * @hidden
22
+ */
23
+ export interface MultiSelectInternalState extends InternalState {
24
+ data: MultiSelectData;
25
+ }
26
+ /**
27
+ * @hidden
28
+ */
29
+ export interface MultiSelectData extends DropDownStateBase {
30
+ hasMounted: boolean;
31
+ selectedItems?: Array<any>;
32
+ valuesItemsDuringOnChange?: Array<any> | null;
33
+ currentText?: string;
34
+ currentFocusedIndex?: number;
35
+ currentFocused?: boolean;
36
+ currentOpened?: boolean;
37
+ currentFocusedTag?: any;
38
+ currentValue?: Array<any>;
39
+ activedescendant?: ActiveDescendant;
40
+ _skipFocusEvent: boolean;
41
+ }
42
+ /**
43
+ * @hidden
44
+ */
45
+ export interface MultiSelectMethods {
46
+ [key: string]: any;
47
+ focus: (e: any) => void;
48
+ computedValue: () => any;
49
+ validity: () => FormComponentValidity;
50
+ handleItemSelect: (index: number, state: InternalState) => void;
51
+ onNavigate: (state: InternalState, keyCode: number) => void;
52
+ handleFocus: (event: any) => void;
53
+ handleBlur: (event: any) => void;
54
+ handleWrapperClick: (event: any) => void;
55
+ onTagDelete: (itemsToRemove: Array<any>, event: any) => void;
56
+ onPopupOpened: () => void;
57
+ onPopupClosed: () => void;
58
+ clearButtonClick: (event: any) => void;
59
+ searchBarRef: () => void;
60
+ onInputKeyDown: (event: any) => void;
61
+ onChangeHandler: (event: any) => void;
62
+ handleItemClick: (index: number, event: any) => void;
63
+ setItems: (srcItems: Array<any>, destItems: Array<any>) => void;
64
+ itemFocus: (index: number, state: MultiSelectInternalState) => void;
65
+ getFocusedState: () => ListFocusedState;
66
+ customItemSelect: (e: any) => void;
67
+ selectFocusedItem: (e: any) => void;
68
+ focusElement: (element: HTMLElement) => void;
69
+ onTagsNavigate: (event: any, state: MultiSelectInternalState) => void;
70
+ setValidity: () => void;
71
+ triggerOnChange: (item: any, state: InternalState) => void;
72
+ applyState: (state: InternalState) => void;
73
+ }
74
+ /**
75
+ * @hidden
76
+ */
77
+ export interface MultiSelectState {
78
+ anchor: string;
79
+ scrollToFocused: boolean;
80
+ base: any;
81
+ _tags: Array<TagData>;
82
+ input: any;
83
+ element: any;
84
+ inputId: string;
85
+ focusedIndex?: number;
86
+ focusedTag?: TagData;
87
+ prevOpened?: any;
88
+ virtualTotalHasChanged?: any;
89
+ prevCurrentOpened?: any;
90
+ baseWrapperRef: any;
91
+ inputRef: any;
92
+ kendoAnchorRef: any;
93
+ v3: boolean;
94
+ }
95
+ /**
96
+ * @hidden
97
+ */
98
+ export interface MultiSelectComputed {
99
+ [key: string]: any;
100
+ spanClassNames: any;
101
+ }
102
+ /**
103
+ * @hidden
104
+ */
105
+ export interface MultiSelectAll extends MultiSelectMethods, MultiSelectState, MultiSelectData, MultiSelectComputed, Vue2type {
106
+ }
107
+ /**
108
+ * @hidden
109
+ */
110
+ declare let MultiSelectVue2: ComponentOptions<Vue2type, DefaultData<MultiSelectData>, DefaultMethods<MultiSelectAll>, MultiSelectComputed, RecordPropsDefinition<MultiSelectProps>>;
111
+ /**
112
+ * @hidden
113
+ */
114
+ declare const MultiSelect: DefineComponent<MultiSelectProps, any, MultiSelectData, MultiSelectComputed, MultiSelectMethods, {}, {}, {}, string, MultiSelectProps, MultiSelectProps, {}>;
115
+ export { MultiSelect, MultiSelectVue2 };