@progress/kendo-vue-dropdowns 5.3.0-dev.202410141143 → 5.3.0-develop.1

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 (273) hide show
  1. package/AutoComplete/AutoComplete.js +8 -0
  2. package/AutoComplete/AutoComplete.mjs +526 -0
  3. package/ComboBox/ComboBox.js +8 -0
  4. package/ComboBox/ComboBox.mjs +776 -0
  5. package/DropDownList/DropDownList.js +8 -0
  6. package/DropDownList/DropDownList.mjs +781 -0
  7. package/DropDownTree/DropDownTree.js +8 -0
  8. package/DropDownTree/DropDownTree.mjs +709 -0
  9. package/DropDownTree/ListNoData.js +8 -0
  10. package/DropDownTree/ListNoData.mjs +21 -0
  11. package/MultiSelect/MultiSelect.js +8 -0
  12. package/MultiSelect/MultiSelect.mjs +872 -0
  13. package/MultiSelect/TagList.js +8 -0
  14. package/MultiSelect/TagList.mjs +119 -0
  15. package/MultiSelectTree/MultiSelectTree.js +8 -0
  16. package/MultiSelectTree/MultiSelectTree.mjs +759 -0
  17. package/MultiSelectTree/utils.js +8 -0
  18. package/MultiSelectTree/utils.mjs +73 -0
  19. package/README.md +28 -43
  20. package/common/ClearButton.js +8 -0
  21. package/common/ClearButton.mjs +54 -0
  22. package/common/DropDownBase.js +8 -0
  23. package/common/DropDownBase.mjs +193 -0
  24. package/common/GroupStickyHeader.js +8 -0
  25. package/common/GroupStickyHeader.mjs +38 -0
  26. package/common/List.js +8 -0
  27. package/common/List.mjs +139 -0
  28. package/common/ListContainer.js +8 -0
  29. package/common/ListContainer.mjs +103 -0
  30. package/common/ListDefaultItem.js +8 -0
  31. package/common/ListDefaultItem.mjs +47 -0
  32. package/common/ListFilter.js +8 -0
  33. package/common/ListFilter.mjs +147 -0
  34. package/common/ListGroupItem.js +8 -0
  35. package/common/ListGroupItem.mjs +46 -0
  36. package/common/ListItem.js +8 -0
  37. package/common/ListItem.mjs +73 -0
  38. package/common/Navigation.js +8 -0
  39. package/common/Navigation.mjs +28 -0
  40. package/common/SearchBar.js +8 -0
  41. package/common/SearchBar.mjs +129 -0
  42. package/common/VirtualScroll.js +8 -0
  43. package/common/VirtualScroll.mjs +95 -0
  44. package/common/constants.js +8 -0
  45. package/common/constants.mjs +12 -0
  46. package/common/settings.js +8 -0
  47. package/common/settings.mjs +11 -0
  48. package/common/utils.js +8 -0
  49. package/common/utils.mjs +104 -0
  50. package/dist/cdn/js/kendo-vue-dropdowns.js +8 -1
  51. package/index.d.mts +4037 -0
  52. package/index.d.ts +4037 -0
  53. package/index.js +8 -0
  54. package/index.mjs +25 -0
  55. package/messages/main.js +8 -0
  56. package/messages/main.mjs +26 -0
  57. package/package-metadata.js +8 -0
  58. package/package-metadata.mjs +18 -0
  59. package/package.json +24 -58
  60. package/dist/es/AutoComplete/AutoComplete.d.ts +0 -107
  61. package/dist/es/AutoComplete/AutoComplete.js +0 -825
  62. package/dist/es/AutoComplete/AutoCompleteProps.d.ts +0 -234
  63. package/dist/es/AutoComplete/AutoCompleteProps.js +0 -2
  64. package/dist/es/ComboBox/ComboBox.d.ts +0 -99
  65. package/dist/es/ComboBox/ComboBox.js +0 -1315
  66. package/dist/es/ComboBox/ComboBoxProps.d.ts +0 -277
  67. package/dist/es/ComboBox/ComboBoxProps.js +0 -2
  68. package/dist/es/DropDownList/DropDownList.d.ts +0 -103
  69. package/dist/es/DropDownList/DropDownList.js +0 -1314
  70. package/dist/es/DropDownList/DropDownListProps.d.ts +0 -307
  71. package/dist/es/DropDownList/DropDownListProps.js +0 -2
  72. package/dist/es/DropDownTree/DropDownTree.d.ts +0 -49
  73. package/dist/es/DropDownTree/DropDownTree.js +0 -1090
  74. package/dist/es/DropDownTree/DropDownTreeProps.d.ts +0 -301
  75. package/dist/es/DropDownTree/DropDownTreeProps.js +0 -2
  76. package/dist/es/DropDownTree/ListNoData.d.ts +0 -42
  77. package/dist/es/DropDownTree/ListNoData.js +0 -32
  78. package/dist/es/MultiSelect/MultiSelect.d.ts +0 -115
  79. package/dist/es/MultiSelect/MultiSelect.js +0 -1515
  80. package/dist/es/MultiSelect/MultiSelectProps.d.ts +0 -290
  81. package/dist/es/MultiSelect/MultiSelectProps.js +0 -2
  82. package/dist/es/MultiSelect/TagList.d.ts +0 -54
  83. package/dist/es/MultiSelect/TagList.js +0 -176
  84. package/dist/es/MultiSelectTree/MultiSelectTree.d.ts +0 -48
  85. package/dist/es/MultiSelectTree/MultiSelectTree.js +0 -1220
  86. package/dist/es/MultiSelectTree/MultiSelectTreeProps.d.ts +0 -322
  87. package/dist/es/MultiSelectTree/MultiSelectTreeProps.js +0 -2
  88. package/dist/es/MultiSelectTree/utils.d.ts +0 -17
  89. package/dist/es/MultiSelectTree/utils.js +0 -109
  90. package/dist/es/additionalTypes.ts +0 -21
  91. package/dist/es/common/ClearButton.d.ts +0 -21
  92. package/dist/es/common/ClearButton.js +0 -73
  93. package/dist/es/common/DropDownBase.d.ts +0 -95
  94. package/dist/es/common/DropDownBase.js +0 -298
  95. package/dist/es/common/GroupStickyHeader.d.ts +0 -32
  96. package/dist/es/common/GroupStickyHeader.js +0 -60
  97. package/dist/es/common/List.d.ts +0 -60
  98. package/dist/es/common/List.js +0 -201
  99. package/dist/es/common/ListContainer.d.ts +0 -40
  100. package/dist/es/common/ListContainer.js +0 -161
  101. package/dist/es/common/ListDefaultItem.d.ts +0 -29
  102. package/dist/es/common/ListDefaultItem.js +0 -60
  103. package/dist/es/common/ListFilter.d.ts +0 -49
  104. package/dist/es/common/ListFilter.js +0 -175
  105. package/dist/es/common/ListGroupItem.d.ts +0 -41
  106. package/dist/es/common/ListGroupItem.js +0 -71
  107. package/dist/es/common/ListItem.d.ts +0 -71
  108. package/dist/es/common/ListItem.js +0 -101
  109. package/dist/es/common/Navigation.d.ts +0 -12
  110. package/dist/es/common/Navigation.js +0 -34
  111. package/dist/es/common/SearchBar.d.ts +0 -66
  112. package/dist/es/common/SearchBar.js +0 -177
  113. package/dist/es/common/VirtualScroll.d.ts +0 -42
  114. package/dist/es/common/VirtualScroll.js +0 -163
  115. package/dist/es/common/constants.d.ts +0 -4
  116. package/dist/es/common/constants.js +0 -4
  117. package/dist/es/common/events.d.ts +0 -63
  118. package/dist/es/common/events.js +0 -1
  119. package/dist/es/common/filterDescriptor.d.ts +0 -41
  120. package/dist/es/common/filterDescriptor.js +0 -2
  121. package/dist/es/common/settings.d.ts +0 -107
  122. package/dist/es/common/settings.js +0 -8
  123. package/dist/es/common/utils.d.ts +0 -70
  124. package/dist/es/common/utils.js +0 -202
  125. package/dist/es/main.d.ts +0 -18
  126. package/dist/es/main.js +0 -10
  127. package/dist/es/messages/main.d.ts +0 -40
  128. package/dist/es/messages/main.js +0 -41
  129. package/dist/es/package-metadata.d.ts +0 -5
  130. package/dist/es/package-metadata.js +0 -11
  131. package/dist/esm/AutoComplete/AutoComplete.d.ts +0 -107
  132. package/dist/esm/AutoComplete/AutoComplete.js +0 -825
  133. package/dist/esm/AutoComplete/AutoCompleteProps.d.ts +0 -234
  134. package/dist/esm/AutoComplete/AutoCompleteProps.js +0 -2
  135. package/dist/esm/ComboBox/ComboBox.d.ts +0 -99
  136. package/dist/esm/ComboBox/ComboBox.js +0 -1315
  137. package/dist/esm/ComboBox/ComboBoxProps.d.ts +0 -277
  138. package/dist/esm/ComboBox/ComboBoxProps.js +0 -2
  139. package/dist/esm/DropDownList/DropDownList.d.ts +0 -103
  140. package/dist/esm/DropDownList/DropDownList.js +0 -1314
  141. package/dist/esm/DropDownList/DropDownListProps.d.ts +0 -307
  142. package/dist/esm/DropDownList/DropDownListProps.js +0 -2
  143. package/dist/esm/DropDownTree/DropDownTree.d.ts +0 -49
  144. package/dist/esm/DropDownTree/DropDownTree.js +0 -1090
  145. package/dist/esm/DropDownTree/DropDownTreeProps.d.ts +0 -301
  146. package/dist/esm/DropDownTree/DropDownTreeProps.js +0 -2
  147. package/dist/esm/DropDownTree/ListNoData.d.ts +0 -42
  148. package/dist/esm/DropDownTree/ListNoData.js +0 -32
  149. package/dist/esm/MultiSelect/MultiSelect.d.ts +0 -115
  150. package/dist/esm/MultiSelect/MultiSelect.js +0 -1515
  151. package/dist/esm/MultiSelect/MultiSelectProps.d.ts +0 -290
  152. package/dist/esm/MultiSelect/MultiSelectProps.js +0 -2
  153. package/dist/esm/MultiSelect/TagList.d.ts +0 -54
  154. package/dist/esm/MultiSelect/TagList.js +0 -176
  155. package/dist/esm/MultiSelectTree/MultiSelectTree.d.ts +0 -48
  156. package/dist/esm/MultiSelectTree/MultiSelectTree.js +0 -1220
  157. package/dist/esm/MultiSelectTree/MultiSelectTreeProps.d.ts +0 -322
  158. package/dist/esm/MultiSelectTree/MultiSelectTreeProps.js +0 -2
  159. package/dist/esm/MultiSelectTree/utils.d.ts +0 -17
  160. package/dist/esm/MultiSelectTree/utils.js +0 -109
  161. package/dist/esm/additionalTypes.ts +0 -21
  162. package/dist/esm/common/ClearButton.d.ts +0 -21
  163. package/dist/esm/common/ClearButton.js +0 -73
  164. package/dist/esm/common/DropDownBase.d.ts +0 -95
  165. package/dist/esm/common/DropDownBase.js +0 -298
  166. package/dist/esm/common/GroupStickyHeader.d.ts +0 -32
  167. package/dist/esm/common/GroupStickyHeader.js +0 -60
  168. package/dist/esm/common/List.d.ts +0 -60
  169. package/dist/esm/common/List.js +0 -201
  170. package/dist/esm/common/ListContainer.d.ts +0 -40
  171. package/dist/esm/common/ListContainer.js +0 -161
  172. package/dist/esm/common/ListDefaultItem.d.ts +0 -29
  173. package/dist/esm/common/ListDefaultItem.js +0 -60
  174. package/dist/esm/common/ListFilter.d.ts +0 -49
  175. package/dist/esm/common/ListFilter.js +0 -175
  176. package/dist/esm/common/ListGroupItem.d.ts +0 -41
  177. package/dist/esm/common/ListGroupItem.js +0 -71
  178. package/dist/esm/common/ListItem.d.ts +0 -71
  179. package/dist/esm/common/ListItem.js +0 -101
  180. package/dist/esm/common/Navigation.d.ts +0 -12
  181. package/dist/esm/common/Navigation.js +0 -34
  182. package/dist/esm/common/SearchBar.d.ts +0 -66
  183. package/dist/esm/common/SearchBar.js +0 -177
  184. package/dist/esm/common/VirtualScroll.d.ts +0 -42
  185. package/dist/esm/common/VirtualScroll.js +0 -163
  186. package/dist/esm/common/constants.d.ts +0 -4
  187. package/dist/esm/common/constants.js +0 -4
  188. package/dist/esm/common/events.d.ts +0 -63
  189. package/dist/esm/common/events.js +0 -1
  190. package/dist/esm/common/filterDescriptor.d.ts +0 -41
  191. package/dist/esm/common/filterDescriptor.js +0 -2
  192. package/dist/esm/common/settings.d.ts +0 -107
  193. package/dist/esm/common/settings.js +0 -8
  194. package/dist/esm/common/utils.d.ts +0 -70
  195. package/dist/esm/common/utils.js +0 -202
  196. package/dist/esm/main.d.ts +0 -18
  197. package/dist/esm/main.js +0 -10
  198. package/dist/esm/messages/main.d.ts +0 -40
  199. package/dist/esm/messages/main.js +0 -41
  200. package/dist/esm/package-metadata.d.ts +0 -5
  201. package/dist/esm/package-metadata.js +0 -11
  202. package/dist/esm/package.json +0 -3
  203. package/dist/npm/AutoComplete/AutoComplete.d.ts +0 -107
  204. package/dist/npm/AutoComplete/AutoComplete.js +0 -832
  205. package/dist/npm/AutoComplete/AutoCompleteProps.d.ts +0 -234
  206. package/dist/npm/AutoComplete/AutoCompleteProps.js +0 -3
  207. package/dist/npm/ComboBox/ComboBox.d.ts +0 -99
  208. package/dist/npm/ComboBox/ComboBox.js +0 -1322
  209. package/dist/npm/ComboBox/ComboBoxProps.d.ts +0 -277
  210. package/dist/npm/ComboBox/ComboBoxProps.js +0 -3
  211. package/dist/npm/DropDownList/DropDownList.d.ts +0 -103
  212. package/dist/npm/DropDownList/DropDownList.js +0 -1321
  213. package/dist/npm/DropDownList/DropDownListProps.d.ts +0 -307
  214. package/dist/npm/DropDownList/DropDownListProps.js +0 -3
  215. package/dist/npm/DropDownTree/DropDownTree.d.ts +0 -49
  216. package/dist/npm/DropDownTree/DropDownTree.js +0 -1095
  217. package/dist/npm/DropDownTree/DropDownTreeProps.d.ts +0 -301
  218. package/dist/npm/DropDownTree/DropDownTreeProps.js +0 -3
  219. package/dist/npm/DropDownTree/ListNoData.d.ts +0 -42
  220. package/dist/npm/DropDownTree/ListNoData.js +0 -39
  221. package/dist/npm/MultiSelect/MultiSelect.d.ts +0 -115
  222. package/dist/npm/MultiSelect/MultiSelect.js +0 -1522
  223. package/dist/npm/MultiSelect/MultiSelectProps.d.ts +0 -290
  224. package/dist/npm/MultiSelect/MultiSelectProps.js +0 -3
  225. package/dist/npm/MultiSelect/TagList.d.ts +0 -54
  226. package/dist/npm/MultiSelect/TagList.js +0 -183
  227. package/dist/npm/MultiSelectTree/MultiSelectTree.d.ts +0 -48
  228. package/dist/npm/MultiSelectTree/MultiSelectTree.js +0 -1227
  229. package/dist/npm/MultiSelectTree/MultiSelectTreeProps.d.ts +0 -322
  230. package/dist/npm/MultiSelectTree/MultiSelectTreeProps.js +0 -3
  231. package/dist/npm/MultiSelectTree/utils.d.ts +0 -17
  232. package/dist/npm/MultiSelectTree/utils.js +0 -114
  233. package/dist/npm/additionalTypes.ts +0 -21
  234. package/dist/npm/common/ClearButton.d.ts +0 -21
  235. package/dist/npm/common/ClearButton.js +0 -80
  236. package/dist/npm/common/DropDownBase.d.ts +0 -95
  237. package/dist/npm/common/DropDownBase.js +0 -303
  238. package/dist/npm/common/GroupStickyHeader.d.ts +0 -32
  239. package/dist/npm/common/GroupStickyHeader.js +0 -67
  240. package/dist/npm/common/List.d.ts +0 -60
  241. package/dist/npm/common/List.js +0 -208
  242. package/dist/npm/common/ListContainer.d.ts +0 -40
  243. package/dist/npm/common/ListContainer.js +0 -168
  244. package/dist/npm/common/ListDefaultItem.d.ts +0 -29
  245. package/dist/npm/common/ListDefaultItem.js +0 -67
  246. package/dist/npm/common/ListFilter.d.ts +0 -49
  247. package/dist/npm/common/ListFilter.js +0 -182
  248. package/dist/npm/common/ListGroupItem.d.ts +0 -41
  249. package/dist/npm/common/ListGroupItem.js +0 -78
  250. package/dist/npm/common/ListItem.d.ts +0 -71
  251. package/dist/npm/common/ListItem.js +0 -108
  252. package/dist/npm/common/Navigation.d.ts +0 -12
  253. package/dist/npm/common/Navigation.js +0 -37
  254. package/dist/npm/common/SearchBar.d.ts +0 -66
  255. package/dist/npm/common/SearchBar.js +0 -184
  256. package/dist/npm/common/VirtualScroll.d.ts +0 -42
  257. package/dist/npm/common/VirtualScroll.js +0 -168
  258. package/dist/npm/common/constants.d.ts +0 -4
  259. package/dist/npm/common/constants.js +0 -10
  260. package/dist/npm/common/events.d.ts +0 -63
  261. package/dist/npm/common/events.js +0 -2
  262. package/dist/npm/common/filterDescriptor.d.ts +0 -41
  263. package/dist/npm/common/filterDescriptor.js +0 -3
  264. package/dist/npm/common/settings.d.ts +0 -107
  265. package/dist/npm/common/settings.js +0 -11
  266. package/dist/npm/common/utils.d.ts +0 -70
  267. package/dist/npm/common/utils.js +0 -221
  268. package/dist/npm/main.d.ts +0 -18
  269. package/dist/npm/main.js +0 -36
  270. package/dist/npm/messages/main.d.ts +0 -40
  271. package/dist/npm/messages/main.js +0 -44
  272. package/dist/npm/package-metadata.d.ts +0 -5
  273. package/dist/npm/package-metadata.js +0 -14
@@ -1,322 +0,0 @@
1
- import { FormComponentProps } from '@progress/kendo-vue-common';
2
- import { ItemRenderProps } from '@progress/kendo-vue-treeview';
3
- import { FilterChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, DropdownEvent } from '../common/events';
4
- import { DropDownsPopupSettings } from '../common/settings';
5
- import { TagData } from '../MultiSelect/TagList';
6
- /**
7
- * Represents the object of the `onFilterChange` MultiSelectTree event.
8
- */
9
- export interface MultiSelectTreeFilterChangeEvent extends FilterChangeEvent {
10
- }
11
- export declare type MultiSelectTreeChangeEventOperation = 'clear' | 'delete' | 'toggle';
12
- /**
13
- * Represents the object of the `onChange` MultiSelectTree event.
14
- */
15
- export interface MultiSelectTreeChangeEvent extends DropdownEvent {
16
- /**
17
- * The items related to current operation.
18
- */
19
- items: any[];
20
- /**
21
- * The new value.
22
- */
23
- value: any[];
24
- /**
25
- * Describes the current operation:
26
- * * `clear` - clear button is clicked and value is cleared. Null value is returned.
27
- * * `delete` - tag is deleted using keyboard or mouse. The items contained in current tag are returned.
28
- * * `toggle` - item in TreeView is toggled. Single item is returned.
29
- */
30
- operation: MultiSelectTreeChangeEventOperation;
31
- }
32
- /**
33
- * Represents the object of the `onOpen` MultiSelectTree event.
34
- */
35
- export interface MultiSelectTreeOpenEvent extends OpenEvent {
36
- }
37
- /**
38
- * Represents the object of the `onClose` MultiSelectTree event.
39
- */
40
- export interface MultiSelectTreeCloseEvent extends CloseEvent {
41
- }
42
- /**
43
- * Represents the object of the `onFocus` MultiSelectTree event.
44
- */
45
- export interface MultiSelectTreeFocusEvent extends FocusEvent {
46
- }
47
- /**
48
- * Represents the object of the `onBlur` MultiSelectTree event.
49
- */
50
- export interface MultiSelectTreeBlurEvent extends BlurEvent {
51
- }
52
- /**
53
- * Represents the object of the `onExpandChange` MultiSelectTree event.
54
- */
55
- export interface MultiSelectTreeExpandEvent extends DropdownEvent {
56
- item: any;
57
- level: number[];
58
- }
59
- /**
60
- * The props of component that will be used for rendering each of the MultiSelectTree items
61
- * ([see example]({% slug customrendering_multiselecttree %}#toc-items-and-value-element)).
62
- */
63
- export interface MultiSelectTreeItemProps extends ItemRenderProps {
64
- }
65
- /**
66
- * The props of component that will be used for rendering each of the MultiSelectTree tags
67
- */
68
- export interface MultiSelectTreeTagProps {
69
- tagData: TagData;
70
- guid: string;
71
- focusedTag?: TagData;
72
- onTagDelete: (items: Array<any>, event: any) => void;
73
- }
74
- /**
75
- * The props of the `ListNoData` component ([see example]({% slug customrendering_multiselecttree %}#toc-no-data)).
76
- */
77
- export interface MultiSelectTreeListNoDataProps {
78
- }
79
- /**
80
- * Represents the props of the [Kendo UI for Vue MultiSelectTree component]({% slug overview_multiselecttree %}).
81
- */
82
- export interface MultiSelectTreeProps extends FormComponentProps {
83
- /**
84
- * Sets the data of the MultiSelectTree ([see example]({% slug overview_multiselecttree %})).
85
- */
86
- dataItems?: any[];
87
- /**
88
- * Sets the opened state of the MultiSelectTree.
89
- */
90
- opened?: boolean;
91
- /**
92
- * Sets the value of the MultiSelectTree. It can either be an array of the primitive (string, numbers) or of the complex (objects) type.
93
- */
94
- value?: Array<any>;
95
- /**
96
- * Sets the modelValue of the MultiSelectTree. It can either be an array of the primitive (string, numbers) or of the complex (objects) type.
97
- */
98
- modelValue?: Array<any>;
99
- /**
100
- * The hint that is displayed when the MultiSelectTree is empty.
101
- */
102
- placeholder?: string;
103
- /**
104
- * Sets the key for comparing the data items of the MultiSelectTree ([see example]({% slug overview_multiselecttree %})).
105
- * If `dataItemKey` is not set, the MultiSelectTree compares the items by reference.
106
- */
107
- dataItemKey: string;
108
- /**
109
- * Sets additional classes to the MultiSelectTree.
110
- */
111
- className?: string;
112
- /**
113
- * Sets the disabled state of the MultiSelectTree.
114
- */
115
- disabled?: boolean;
116
- /**
117
- * Represents the `dir` HTML attribute.
118
- */
119
- dir?: string;
120
- /**
121
- * Renders a floating label for the MultiSelectTree.
122
- */
123
- label?: string;
124
- /**
125
- * Specifies the id of the component.
126
- */
127
- id?: string;
128
- /**
129
- * Specifies the validationMessage of the component.
130
- */
131
- validationMessage?: string;
132
- /**
133
- * If set to `false`, no visual representation of the invalid state of the component will be applied.
134
- *
135
- */
136
- validityStyles?: boolean;
137
- /**
138
- * Overrides the validity state of the component.
139
- * If `valid` is set, the `required` property will be ignored.
140
- *
141
- */
142
- valid?: boolean;
143
- /**
144
- * Specifies the `name` property of the `input` DOM element.
145
- *
146
- */
147
- name?: string;
148
- /**
149
- * Specifies if `null` is a valid value for the component.
150
- *
151
- */
152
- required?: boolean;
153
- /**
154
- * Sets the tags of the MultiSelect ([see example]({% slug customtags_multiselect %})).
155
- */
156
- tags?: Array<TagData>;
157
- /**
158
- * 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).
159
- * For example these elements could contain error or hint message.
160
- */
161
- ariaDescribedBy?: string;
162
- /**
163
- * Identifies the element(s) which will label the component.
164
- */
165
- ariaLabelledBy?: string;
166
- /**
167
- * Enables the filtering functionality of the MultiSelectTree ([more information and examples]({% slug filtering_multiselecttree %})).
168
- */
169
- filterable?: boolean;
170
- /**
171
- * Sets the value of filtering input.
172
- * Useful for making the filtering input a controlled component.
173
- */
174
- filter?: string;
175
- /**
176
- * Sets the loading state of the MultiSelectTree ([see example]({% slug filtering_multiselecttree %}#toc-visualize-filtering)).
177
- */
178
- loading?: boolean;
179
- /**
180
- * Specifies the `tabIndex` of the MultiSelectTree.
181
- */
182
- tabIndex?: number;
183
- /**
184
- * Specifies the `accessKey` of the MultiSelectTree.
185
- */
186
- accessKey?: string;
187
- /**
188
- * Sets the data item field that represents the item text ([see example]({% slug overview_multiselecttree %})).
189
- */
190
- textField: string;
191
- /**
192
- * Specifies the name of the field which will provide a Boolean representation of the checked state of the item.
193
- */
194
- checkField?: string;
195
- /**
196
- * Specifies the name of the field which will provide a Boolean representation of the checked indeterminaet state of the item.
197
- */
198
- checkIndeterminateField?: string;
199
- /**
200
- * Specifies the name of the field which will provide a Boolean representation of the expanded state of the item.
201
- */
202
- expandField?: string;
203
- /**
204
- * Specifies the name of the field which will provide an array representation of the item subitems.
205
- * Defaults to 'items'.
206
- */
207
- subItemsField?: string;
208
- /**
209
- * Configures the popup of the MultiSelectTree.
210
- */
211
- popupSettings?: DropDownsPopupSettings;
212
- /**
213
- * Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden `select` element.
214
- *
215
- * @example
216
- * ```jsx-no-run
217
- * class App extends React.Component {
218
- * render() {
219
- * return (
220
- * <form>
221
- * <MultiSelectTree
222
- * data={[ { text: "Austria", id: 1 } , { text: "Belarus", id: 2 } ]}
223
- * valueMap={value => value && value.id}
224
- * />
225
- * <button type="submit">Submit</button>
226
- * </form>
227
- * );
228
- * }
229
- * }
230
- * ReactDOM.render(<App />, document.querySelector('my-app'));
231
- * ```
232
- */
233
- valueMap?: (value: Array<any>) => any;
234
- /**
235
- * Fires each time the popup of the MultiSelectTree is about to open.
236
- */
237
- onOpen?: (event: MultiSelectTreeOpenEvent) => void;
238
- /**
239
- * Fires each time the popup of the MultiSelectTree is about to close.
240
- */
241
- onClose?: (event: MultiSelectTreeCloseEvent) => void;
242
- /**
243
- * Fires each time the user focuses the MultiSelectTree.
244
- */
245
- onFocus?: (event: MultiSelectTreeFocusEvent) => void;
246
- /**
247
- * Fires each time the MultiSelectTree gets blurred.
248
- */
249
- onBlur?: (event: MultiSelectTreeBlurEvent) => void;
250
- /**
251
- * Fires each time the value of the MultiSelectTree is about to change ([see examples]({% slug overview_multiselecttree %})).
252
- */
253
- onChange?: (event: MultiSelectTreeChangeEvent) => void;
254
- /**
255
- * Fires each time the user types in the filter input
256
- * ([see example]({% slug filtering_multiselecttree %}#toc-basic-configuration)).
257
- * You can filter the source based on the passed filtration value.
258
- */
259
- onFilterChange?: (event: MultiSelectTreeFilterChangeEvent) => void;
260
- /**
261
- * Fires when the expanding or collapsing of an item is requested ([see examples]({% slug overview_multiselecttree %})).
262
- */
263
- onExpandChange?: (event: any) => void;
264
- /**
265
- * Defines the component that will be used for rendering each of the MultiSelectTree items
266
- * ([see example]({% slug customrendering_multiselecttree %}#toc-items-and-value-element)).
267
- */
268
- item?: any;
269
- /**
270
- * Defines the component that will be rendered in the MultiSelectTree popup when no data is available
271
- * ([see example]({% slug customrendering_multiselecttree %}#toc-no-data)).
272
- */
273
- listNoData?: any;
274
- tag?: any;
275
- header?: any;
276
- footer?: any;
277
- /**
278
- * Configures the `size` of the MultiSelectTree.
279
- *
280
- * The available options are:
281
- * - small
282
- * - medium
283
- * - large
284
- * - null&mdash;Does not set a size `className`.
285
- *
286
- * @default `medium`
287
- */
288
- size?: null | 'small' | 'medium' | 'large' | string;
289
- /**
290
- * Configures the `roundness` of the MultiSelectTree.
291
- *
292
- * The available options are:
293
- * - small
294
- * - medium
295
- * - large
296
- * - full
297
- * - null&mdash;Does not set a rounded `className`.
298
- *
299
- * @default `medium`
300
- */
301
- rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
302
- /**
303
- * Configures the `fillMode` of the MultiSelectTree.
304
- *
305
- * The available options are:
306
- * - solid
307
- * - flat
308
- * - outline
309
- * - null&mdash;Does not set a fillMode `className`.
310
- *
311
- * @default `solid`
312
- */
313
- fillMode?: null | 'solid' | 'flat' | 'outline' | string;
314
- /**
315
- * Provides different rendering of the popup element based on the screen dimensions.
316
- */
317
- adaptive?: boolean;
318
- /**
319
- * Specifies the text that is rendered as title in the adaptive popup.
320
- */
321
- adaptiveTitle?: string;
322
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- // tslint:enable:max-line-length
@@ -1,17 +0,0 @@
1
- import { MultiSelectTreeChangeEventOperation } from './MultiSelectTreeProps';
2
- /** @hidden */
3
- export declare const getValueMap: (value: any[], idGetter: any) => any;
4
- /**
5
- * Get MultiSelectTree new value from the component `onChange` event.
6
- *
7
- * @param {any[]} data
8
- * @param {object} options
9
- * @returns {any[]}
10
- */
11
- export declare const getMultiSelectTreeValue: (data: any[], options: {
12
- subItemsField?: string;
13
- dataItemKey: string;
14
- items: any;
15
- value: Array<any>;
16
- operation: MultiSelectTreeChangeEventOperation;
17
- }) => any[];
@@ -1,109 +0,0 @@
1
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
- if (ar || !(i in from)) {
4
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
- ar[i] = from[i];
6
- }
7
- }
8
- return to.concat(ar || Array.prototype.slice.call(from));
9
- };
10
- import { getter } from '@progress/kendo-vue-common';
11
- /** @hidden */
12
- export var getValueMap = function (value, idGetter) {
13
- var map = {};
14
- if (value && value.length) {
15
- value.forEach(function (item) {
16
- map[idGetter(item)] = true;
17
- });
18
- }
19
- return map;
20
- };
21
- /**
22
- * Get MultiSelectTree new value from the component `onChange` event.
23
- *
24
- * @param {any[]} data
25
- * @param {object} options
26
- * @returns {any[]}
27
- */
28
- export var getMultiSelectTreeValue = function (data, options) {
29
- var items = options.items, dataItemKey = options.dataItemKey, value = options.value, _a = options.subItemsField, subItemsField = _a === void 0 ? 'items' : _a, operation = options.operation;
30
- var idGetter = getter(dataItemKey);
31
- var valueMap = getValueMap(value, idGetter);
32
- if (operation === 'clear') {
33
- return [];
34
- }
35
- else if (operation === 'delete') {
36
- var deletedItemsMap_1 = getValueMap(items, idGetter);
37
- return value.filter(function (item) { return !deletedItemsMap_1[idGetter(item)]; });
38
- }
39
- // operation === 'toggle'
40
- var selectedItem = items[0];
41
- var selectedId = idGetter(selectedItem);
42
- var subItemGetter = getter(subItemsField);
43
- var stack = __spreadArray([], data, true);
44
- var context = [];
45
- var parents = [];
46
- var foundItem;
47
- while (stack.length) {
48
- var currentItem = stack.pop();
49
- if (selectedId === idGetter(currentItem)) {
50
- parents = context.map(function (contextItem) { return contextItem.item; });
51
- foundItem = currentItem;
52
- break;
53
- }
54
- else {
55
- if (context &&
56
- context.length &&
57
- context[context.length - 1].parentPosition === stack.length) {
58
- context.pop();
59
- }
60
- var subItems = subItemGetter(currentItem);
61
- if (subItems && subItems.length) {
62
- context.push({ item: currentItem, parentPosition: stack.length });
63
- stack.push.apply(stack, subItems);
64
- }
65
- }
66
- }
67
- var childrenStack = __spreadArray([], (subItemGetter(foundItem) || []), true);
68
- var children = [];
69
- while (childrenStack.length) {
70
- var currentItem = childrenStack.pop();
71
- children.push(currentItem);
72
- var subItems = subItemGetter(currentItem);
73
- if (subItems && subItems.length) {
74
- childrenStack.push.apply(childrenStack, subItems);
75
- }
76
- }
77
- var isChecked = !valueMap[selectedId];
78
- var newValue = [];
79
- if (isChecked) {
80
- newValue.push.apply(newValue, value);
81
- newValue.push(foundItem);
82
- newValue.push.apply(newValue, children.filter(function (item) { return !valueMap[idGetter(item)]; }));
83
- var parentCandidates = parents.filter(function (item) { return !valueMap[idGetter(item)]; });
84
- var newValueMap_1 = getValueMap(newValue, idGetter);
85
- for (var i = parentCandidates.length - 1; i > -1; i--) {
86
- var candidate = parentCandidates[i];
87
- var subItems = subItemGetter(candidate);
88
- var checkedChildrenLength = subItems.filter(function (item) { return newValueMap_1[idGetter(item)]; }).length;
89
- if (checkedChildrenLength < subItems.length) {
90
- break;
91
- }
92
- else {
93
- newValue.push(candidate);
94
- newValueMap_1[idGetter(candidate)] = true;
95
- }
96
- }
97
- }
98
- else {
99
- var foundId_1 = idGetter(foundItem);
100
- var childrenMap_1 = getValueMap(children, idGetter);
101
- var parentsMap_1 = getValueMap(parents, idGetter);
102
- newValue.push.apply(newValue, (value
103
- .filter(function (item) {
104
- var itemId = idGetter(item);
105
- return !childrenMap_1[itemId] && foundId_1 !== itemId && !parentsMap_1[itemId];
106
- })));
107
- }
108
- return newValue;
109
- };
@@ -1,21 +0,0 @@
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 };
@@ -1,21 +0,0 @@
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 };
@@ -1,73 +0,0 @@
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 { xIcon } from '@progress/kendo-svg-icons';
8
- import { provideLocalizationService } from '@progress/kendo-vue-intl';
9
- import { messages, clear } from '../messages/main.js';
10
- import { Icon } from '@progress/kendo-vue-common';
11
- /**
12
- * @hidden
13
- */
14
- var ClearButtonVue2 = {
15
- name: 'clear-button',
16
- inject: {
17
- kendoLocalizationService: {
18
- default: null
19
- }
20
- },
21
- // @ts-ignore
22
- setup: !isV3 ? undefined : function () {
23
- var v3 = !!isV3;
24
- var kendoLocalizationService = inject('kendoLocalizationService', {});
25
- return {
26
- v3: v3,
27
- kendoLocalizationService: kendoLocalizationService
28
- };
29
- },
30
- methods: {
31
- onMouseDown: function onMouseDown(e) {
32
- e.preventDefault();
33
- },
34
- onClickHandler: function onClickHandler(e) {
35
- this.$emit('clearclick', e);
36
- }
37
- },
38
- // @ts-ignore
39
- render: function render(createElement) {
40
- var h = gh || createElement;
41
- var title = provideLocalizationService(this).toLanguageString(clear, messages[clear]);
42
- return h("span", {
43
- "class": "k-clear-value",
44
- role: "button",
45
- attrs: this.v3 ? undefined : {
46
- role: "button",
47
- tabindex: -1,
48
- title: title
49
- },
50
- onClick: this.onClickHandler,
51
- on: this.v3 ? undefined : {
52
- "click": this.onClickHandler,
53
- "mousedown": this.onMouseDown
54
- },
55
- onMousedown: this.onMouseDown,
56
- tabindex: -1,
57
- title: title,
58
- key: "clearbutton"
59
- }, [h(Icon, {
60
- name: "x",
61
- attrs: this.v3 ? undefined : {
62
- name: "x",
63
- icon: xIcon
64
- },
65
- icon: xIcon
66
- })]);
67
- }
68
- };
69
- /**
70
- * @hidden
71
- */
72
- var ClearButton = ClearButtonVue2;
73
- export { ClearButton, ClearButtonVue2 };
@@ -1,95 +0,0 @@
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
- import { DropDownListAll } from '../DropDownList/DropDownList';
6
- import { ComboBoxAll } from '../ComboBox/ComboBox';
7
- import { DropDownTreeAll } from '../DropDownTree/DropDownTree';
8
- import { MultiSelectAll } from '../MultiSelect/MultiSelect';
9
- import { CreateElement } from 'vue';
10
- /**
11
- * @hidden
12
- */
13
- export interface DropDownComponentProps {
14
- data?: any[];
15
- opened?: boolean;
16
- value?: any;
17
- disabled?: boolean;
18
- tabIndex?: number;
19
- dir?: string;
20
- defaultItem?: any;
21
- filterable?: boolean;
22
- filter?: string | null;
23
- textField?: string;
24
- dataItemKey?: string;
25
- popupSettings?: DropDownsPopupSettings;
26
- style?: any;
27
- virtual?: VirtualizationSettings;
28
- onOpen?: (event: any) => void;
29
- onClose?: (event: any) => void;
30
- onFocus?: (event: any) => void;
31
- onBlur?: (event: any) => void;
32
- onChange?: (event: any) => void;
33
- onFilterchange?: (event: any) => void;
34
- onPagechange?: (event: any) => void;
35
- onScrollchange?: (event: any) => void;
36
- itemRender?: (li: Element, itemProps: ListItemProps) => any;
37
- listNoDataRender?: (element: any) => any;
38
- header?: any;
39
- footer?: any;
40
- }
41
- /**
42
- * @hidden
43
- */
44
- export interface DropDownComponent {
45
- state: DropDownStateBase;
46
- element: HTMLSpanElement | null;
47
- handleItemSelect: Function;
48
- value: any;
49
- currentOpened: boolean;
50
- currentFocused: boolean;
51
- popupWidth: string;
52
- }
53
- /**
54
- * @hidden
55
- */
56
- export default class DropDownBase {
57
- static defaultProps: {
58
- popupSettings: {
59
- animate: boolean;
60
- height: string;
61
- };
62
- required: boolean;
63
- validityStyles: boolean;
64
- };
65
- popupWidth?: string;
66
- wrapper: any;
67
- list: HTMLUListElement;
68
- dirCalculated?: string;
69
- readonly vs: VirtualScroll;
70
- readonly navigation: Navigation;
71
- readonly listBoxId: string;
72
- readonly guid: string;
73
- readonly component: DropDownComponent;
74
- constructor(component: any);
75
- didMount(): void;
76
- calculateDir(): void;
77
- calculatePopupWidth(): void;
78
- scrollToItem(itemIndex: number, vsEnabled?: boolean): void;
79
- handleItemClick: (index: number, event: any) => void;
80
- handleFocus: any;
81
- filterChanged: (text: string | null, state: InternalState) => void;
82
- repositionPopup(): void;
83
- initState(): InternalState;
84
- applyState(state: InternalState): void;
85
- togglePopup: (state: InternalState) => void;
86
- pageChange: (page: Page, event: any) => void;
87
- scrollChange: (event: any) => void;
88
- triggerOnPageChange(state: InternalState, skip: number, take: number): void;
89
- triggerPageChangeCornerItems(item: any, state: InternalState): void;
90
- scrollToVirtualItem: (virtual: VirtualizationSettings, selectedItemIndex: number) => void;
91
- getGroupedDataModernMode: (data: any[], groupField: string) => any[];
92
- resetGroupStickyHeader: (groupName: string, that: any) => void;
93
- getTemplateDef(this: DropDownListAll | ComboBoxAll | DropDownTreeAll | MultiSelectAll, template: string, h: CreateElement): any;
94
- getListItemHeight(listItem: HTMLElement): string | 0;
95
- }