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

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,161 +0,0 @@
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
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- // @ts-ignore
14
- import * as Vue from 'vue';
15
- var allVue = Vue;
16
- var gh = allVue.h;
17
- var isV3 = allVue.version && allVue.version[0] === '3';
18
- import { Popup } from '@progress/kendo-vue-popup';
19
- import { getDefaultSlots } from '@progress/kendo-vue-common';
20
- /**
21
- * @hidden
22
- */
23
- var ListContainerVue2 = {
24
- name: 'list-container',
25
- // @ts-ignore
26
- emits: {
27
- mousedown: null,
28
- blur: null,
29
- open: null,
30
- close: null
31
- },
32
- props: {
33
- width: [String, Number],
34
- dir: String,
35
- itemsCount: Number,
36
- popupSettings: {
37
- type: Object,
38
- default: function _default() {
39
- return {
40
- animate: true,
41
- height: '200px'
42
- };
43
- }
44
- }
45
- },
46
- created: function created() {
47
- this.kendoAnchorRef = undefined;
48
- },
49
- // @ts-ignore
50
- setup: !isV3 ? undefined : function () {
51
- var v3 = !!isV3;
52
- return {
53
- v3: v3
54
- };
55
- },
56
- methods: {
57
- onMouseDown: function onMouseDown(e) {
58
- this.$emit('mousedown', e);
59
- },
60
- onBlur: function onBlur(e) {
61
- this.$emit('blur', e);
62
- },
63
- onOpen: function onOpen(e) {
64
- this.$emit('open', e);
65
- },
66
- onClose: function onClose(e) {
67
- this.$emit('close', e);
68
- }
69
- },
70
- // @ts-ignore
71
- render: function render(createElement) {
72
- var _this = this;
73
- var h = gh || createElement;
74
- var defaultSlot = getDefaultSlots(this);
75
- var _a = this.$props,
76
- width = _a.width,
77
- dir = _a.dir,
78
- popupSettings = _a.popupSettings;
79
- // @ts-ignore
80
- var popupClass = popupSettings.popupClass,
81
- className = popupSettings.className,
82
- animate = popupSettings.animate,
83
- anchor = popupSettings.anchor,
84
- anchorAlign = popupSettings.anchorAlign,
85
- show = popupSettings.show,
86
- itemsCount = popupSettings.itemsCount,
87
- appendTo = popupSettings.appendTo,
88
- collision = popupSettings.collision,
89
- direction = popupSettings.direction,
90
- offset = popupSettings.offset,
91
- popupAlign = popupSettings.popupAlign,
92
- style = popupSettings.style,
93
- popupWidth = popupSettings.width,
94
- popupStyle = popupSettings.popupStyle;
95
- return (
96
- // @ts-ignore function children
97
- h(Popup, {
98
- ref: 'popup',
99
- style: __assign(__assign({}, style), {
100
- width: popupWidth ? popupWidth : width,
101
- direction: dir
102
- }),
103
- popupClass: className,
104
- attrs: this.v3 ? undefined : {
105
- popupClass: className,
106
- animate: animate,
107
- anchor: anchor,
108
- anchorAlign: anchorAlign,
109
- show: show,
110
- contentKey: itemsCount,
111
- appendTo: appendTo,
112
- collision: collision,
113
- direction: direction,
114
- offset: offset,
115
- popupAlign: popupAlign
116
- },
117
- animate: animate,
118
- anchor: anchor,
119
- anchorAlign: anchorAlign,
120
- show: show,
121
- contentKey: itemsCount,
122
- onOpen: this.onOpen,
123
- on: this.v3 ? undefined : {
124
- "open": this.onOpen,
125
- "close": this.onClose
126
- },
127
- onClose: this.onClose,
128
- appendTo: appendTo,
129
- collision: collision,
130
- direction: direction,
131
- offset: offset,
132
- popupAlign: popupAlign
133
- }, this.v3 ? function () {
134
- return [h("div", {
135
- "class": popupClass,
136
- style: popupStyle,
137
- onMousedown: _this.onMouseDown,
138
- on: _this.v3 ? undefined : {
139
- "mousedown": _this.onMouseDown,
140
- "focusout": _this.onBlur
141
- },
142
- onFocusout: _this.onBlur
143
- }, [defaultSlot])];
144
- } : [h("div", {
145
- "class": popupClass,
146
- style: popupStyle,
147
- onMousedown: _this.onMouseDown,
148
- on: _this.v3 ? undefined : {
149
- "mousedown": _this.onMouseDown,
150
- "focusout": _this.onBlur
151
- },
152
- onFocusout: _this.onBlur
153
- }, [defaultSlot])])
154
- );
155
- }
156
- };
157
- /**
158
- * @hidden
159
- */
160
- var ListContainer = ListContainerVue2;
161
- export { ListContainer, ListContainerVue2 };
@@ -1,29 +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 DefaultItemProps {
10
- defaultItem?: any;
11
- textField?: string;
12
- selected: boolean;
13
- }
14
- /**
15
- * @hidden
16
- */
17
- export interface ListDefaultItemMethods extends Vue2type {
18
- onMouseDown: (e: any) => void;
19
- onClick: (e: any) => void;
20
- }
21
- /**
22
- * @hidden
23
- */
24
- declare let ListDefaultItemVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListDefaultItemMethods>, {}, RecordPropsDefinition<DefaultItemProps>>;
25
- /**
26
- * @hidden
27
- */
28
- declare const ListDefaultItem: DefineComponent<DefaultItemProps, any, {}, {}, ListDefaultItemMethods, {}, {}, {}, string, DefaultItemProps, DefaultItemProps, {}>;
29
- export { ListDefaultItem, ListDefaultItemVue2 };
@@ -1,60 +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
- import { classNames } from '@progress/kendo-vue-common';
7
- import { getItemValue } from './utils';
8
- /**
9
- * @hidden
10
- */
11
- var ListDefaultItemVue2 = {
12
- name: 'list-default-item',
13
- props: {
14
- defaultItem: [Object, String],
15
- textField: String,
16
- selected: Boolean
17
- },
18
- // @ts-ignore
19
- setup: !isV3 ? undefined : function () {
20
- var v3 = !!isV3;
21
- return {
22
- v3: v3
23
- };
24
- },
25
- methods: {
26
- onMouseDown: function onMouseDown(e) {
27
- e.preventDefault();
28
- },
29
- onClick: function onClick(e) {
30
- this.$emit('defaultitemclick', e);
31
- }
32
- },
33
- // @ts-ignore
34
- render: function render(createElement) {
35
- var h = gh || createElement;
36
- var _a = this.$props,
37
- selected = _a.selected,
38
- defaultItem = _a.defaultItem,
39
- textField = _a.textField;
40
- return h("div", {
41
- onClick: this.onClick,
42
- on: this.v3 ? undefined : {
43
- "click": this.onClick,
44
- "mousedown": this.onMouseDown
45
- },
46
- onMousedown: this.onMouseDown,
47
- style: {
48
- position: 'unset'
49
- },
50
- "class": classNames('k-list-optionlabel', {
51
- 'k-selected': selected
52
- })
53
- }, [getItemValue(defaultItem, textField) || '']);
54
- }
55
- };
56
- /**
57
- * @hidden
58
- */
59
- var ListDefaultItem = ListDefaultItemVue2;
60
- export { ListDefaultItem, ListDefaultItemVue2 };
@@ -1,49 +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 ListFilterProps {
10
- value?: string;
11
- onChange?: any;
12
- onKeyDown?: any;
13
- size?: null | 'small' | 'medium' | 'large' | string;
14
- rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
15
- fillMode?: null | 'solid' | 'flat' | 'outline' | string;
16
- adaptiveMode?: boolean;
17
- ariaControlsId?: string;
18
- ariaActivedescendantId?: string;
19
- }
20
- /**
21
- * @hidden
22
- */
23
- export interface ListFilterMethods extends Vue2type {
24
- [key: string]: any;
25
- onKeyDown: (e: any) => void;
26
- onChange: (e: any) => void;
27
- }
28
- /**
29
- * @hidden
30
- */
31
- export interface ListFilterState {
32
- input: any;
33
- inputRef: any;
34
- v3: boolean;
35
- }
36
- /**
37
- * @hidden
38
- */
39
- export interface ListFilterAll extends ListFilterState, ListFilterMethods {
40
- }
41
- /**
42
- * @hidden
43
- */
44
- declare let ListFilterVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListFilterMethods>, {}, RecordPropsDefinition<ListFilterProps>>;
45
- /**
46
- * @hidden
47
- */
48
- declare const ListFilter: DefineComponent<ListFilterProps, any, {}, {}, ListFilterMethods, {}, {}, {}, string, ListFilterProps, ListFilterProps, {}>;
49
- export { ListFilter, ListFilterVue2 };
@@ -1,175 +0,0 @@
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
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- // @ts-ignore
14
- import * as Vue from 'vue';
15
- var allVue = Vue;
16
- var gh = allVue.h;
17
- var isV3 = allVue.version && allVue.version[0] === '3';
18
- var ref = allVue.ref;
19
- import { getRef, Icon, kendoThemeMaps, setRef } from '@progress/kendo-vue-common';
20
- import { searchIcon } from '@progress/kendo-svg-icons';
21
- import { TextBox } from '@progress/kendo-vue-inputs';
22
- import { provideLocalizationService } from '@progress/kendo-vue-intl';
23
- import { filterLabel, messages } from '../messages/main';
24
- var sizeMap = kendoThemeMaps.sizeMap,
25
- roundedMap = kendoThemeMaps.roundedMap;
26
- /**
27
- * @hidden
28
- */
29
- var ListFilterVue2 = {
30
- name: 'list-filter',
31
- // @ts-ignore
32
- emits: {
33
- keydown: null,
34
- change: null,
35
- focus: null,
36
- blur: null
37
- },
38
- props: {
39
- value: String,
40
- rounded: {
41
- type: String,
42
- default: 'medium',
43
- validator: function validator(value) {
44
- return ['small', 'medium', 'large', 'full'].includes(value);
45
- }
46
- },
47
- fillMode: {
48
- type: String,
49
- default: 'solid',
50
- validator: function validator(value) {
51
- return ['solid', 'flat', 'outline'].includes(value);
52
- }
53
- },
54
- size: {
55
- type: String,
56
- default: 'medium',
57
- validator: function validator(value) {
58
- return ['small', 'medium', 'large'].includes(value);
59
- }
60
- },
61
- adaptiveMode: {
62
- type: Boolean,
63
- default: false
64
- },
65
- ariaControlsId: String,
66
- ariaActivedescendantId: String
67
- },
68
- computed: {
69
- spanClass: function spanClass() {
70
- var _a;
71
- var _b = this.$props,
72
- size = _b.size,
73
- rounded = _b.rounded,
74
- fillMode = _b.fillMode;
75
- return _a = {
76
- 'k-searchbox k-input': true
77
- }, _a["k-input-".concat(sizeMap[size] || size)] = size, _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded, _a["k-input-".concat(fillMode)] = fillMode, _a;
78
- }
79
- },
80
- // @ts-ignore
81
- setup: !isV3 ? undefined : function () {
82
- var v3 = !!isV3;
83
- var inputRef = ref(null);
84
- return {
85
- v3: v3,
86
- inputRef: inputRef
87
- };
88
- },
89
- methods: {
90
- onKeyDown: function onKeyDown(e) {
91
- this.$emit('keydown', e);
92
- },
93
- onChange: function onChange(e) {
94
- this.$emit('change', e);
95
- },
96
- handleFocus: function handleFocus(e) {
97
- this.$emit('focus', e);
98
- },
99
- handleBlur: function handleBlur(e) {
100
- this.$emit('blur', e);
101
- },
102
- prefixRender: function prefixRender(h) {
103
- var iconProps = {
104
- class: 'k-input-icon',
105
- name: 'search',
106
- icon: searchIcon
107
- };
108
- return h(Icon, __assign({
109
- props: this.v3 ? undefined : iconProps
110
- }, iconProps));
111
- }
112
- },
113
- mounted: function mounted() {
114
- this.input = getRef(this, 'input')._input;
115
- },
116
- // @ts-ignore
117
- render: function render(createElement) {
118
- var h = gh || createElement;
119
- var _a = this.$props,
120
- size = _a.size,
121
- rounded = _a.rounded,
122
- fillMode = _a.fillMode,
123
- adaptiveMode = _a.adaptiveMode,
124
- ariaControlsId = _a.ariaControlsId,
125
- ariaActivedescendantId = _a.ariaActivedescendantId;
126
- var ariaLabel = provideLocalizationService(this).toLanguageString(filterLabel, messages[filterLabel]);
127
- var listFilterComponent = function listFilterComponent() {
128
- return h(TextBox, {
129
- ref: setRef(this, 'input'),
130
- value: this.$props.value,
131
- attrs: this.v3 ? undefined : {
132
- value: this.$props.value,
133
- size: size,
134
- fillMode: fillMode,
135
- rounded: rounded,
136
- inputPrefix: this.prefixRender,
137
- role: "searchbox",
138
- "aria-label": ariaLabel,
139
- "aria-haspopup": "listbox",
140
- "aria-autocomplete": "list",
141
- "aria-activedescendant": ariaActivedescendantId,
142
- "aria-controls": ariaControlsId
143
- },
144
- onInput: this.onChange,
145
- on: this.v3 ? undefined : {
146
- "input": this.onChange,
147
- "keydown": this.onKeyDown,
148
- "focus": this.handleFocus,
149
- "blur": this.handleBlur
150
- },
151
- onKeydown: this.onKeyDown,
152
- onFocus: this.handleFocus,
153
- onBlur: this.handleBlur,
154
- size: size,
155
- fillMode: fillMode,
156
- rounded: rounded,
157
- inputPrefix: this.prefixRender,
158
- role: "searchbox",
159
- "aria-label": ariaLabel,
160
- "aria-haspopup": "listbox",
161
- "aria-autocomplete": "list",
162
- "aria-activedescendant": ariaActivedescendantId,
163
- "aria-controls": ariaControlsId
164
- });
165
- };
166
- return !adaptiveMode ? h("div", {
167
- "class": "k-list-filter"
168
- }, [listFilterComponent.call(this)]) : listFilterComponent.call(this);
169
- }
170
- };
171
- /**
172
- * @hidden
173
- */
174
- var ListFilter = ListFilterVue2;
175
- export { ListFilter, ListFilterVue2 };
@@ -1,41 +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
- * Represents the props of the ListItem component.
8
- */
9
- export interface ListGroupItemProps {
10
- /**
11
- * Specifies the id that will be added to the group header item element.
12
- */
13
- id?: string;
14
- /**
15
- * The group that will be rendered.
16
- */
17
- group?: string;
18
- /**
19
- * @hidden
20
- */
21
- virtual?: boolean;
22
- /**
23
- * Fires when the group header item is about to be rendered. Used to override the default appearance of the group header item.
24
- */
25
- render?: any;
26
- }
27
- /**
28
- * @hidden
29
- */
30
- export interface ListItemAll extends Vue2type {
31
- itemClass: object;
32
- }
33
- /**
34
- * @hidden
35
- */
36
- declare let ListGroupItemVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListItemAll>, {}, RecordPropsDefinition<ListGroupItemProps>>;
37
- /**
38
- * @hidden
39
- */
40
- declare const ListGroupItem: DefineComponent<ListGroupItemProps, any, {}, {}, {}, {}, {}, {}, string, ListGroupItemProps, ListGroupItemProps, {}>;
41
- export { ListGroupItem, ListGroupItemVue2 };
@@ -1,71 +0,0 @@
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
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- // @ts-ignore
14
- import * as Vue from 'vue';
15
- var allVue = Vue;
16
- var gh = allVue.h;
17
- var isV3 = allVue.version && allVue.version[0] === '3';
18
- import { getTemplate } from '@progress/kendo-vue-common';
19
- /**
20
- * @hidden
21
- */
22
- var ListGroupItemVue2 = {
23
- name: 'KendoListItem',
24
- inheritAttrs: false,
25
- props: {
26
- id: String,
27
- group: String,
28
- render: Object
29
- },
30
- // @ts-ignore
31
- setup: !isV3 ? undefined : function () {
32
- var v3 = !!isV3;
33
- return {
34
- v3: v3
35
- };
36
- },
37
- // @ts-ignore
38
- render: function render(createElement) {
39
- var h = gh || createElement;
40
- var _a = this.$props,
41
- id = _a.id,
42
- group = _a.group,
43
- virtual = _a.virtual,
44
- renderer = _a.render;
45
- var defaultRendering = h("li", {
46
- id: id,
47
- attrs: this.v3 ? undefined : {
48
- id: id,
49
- role: "group"
50
- },
51
- role: "group",
52
- "class": 'k-list-group-item',
53
- style: {
54
- position: virtual ? 'relative' : 'unset'
55
- }
56
- }, [h("span", {
57
- "class": !renderer ? 'k-list-item-text' : undefined
58
- }, [group])]);
59
- return getTemplate.call(this, {
60
- h: h,
61
- template: this.$props.render,
62
- defaultRendering: defaultRendering,
63
- additionalProps: __assign({}, this.$props)
64
- });
65
- }
66
- };
67
- /**
68
- * @hidden
69
- */
70
- var ListGroupItem = ListGroupItemVue2;
71
- export { ListGroupItem, ListGroupItemVue2 };
@@ -1,71 +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
- * Represents the props of the ListItem component.
8
- */
9
- export interface ListItemProps {
10
- /**
11
- * Specifies the id that will be added to the list item element.
12
- */
13
- id?: string;
14
- /**
15
- * Represents the index of the list item element.
16
- */
17
- index: number;
18
- /**
19
- * Represents the data item of the list item element.
20
- */
21
- dataItem: any;
22
- /**
23
- * Sets the data item field that represents the item text. If the data contains only primitive values, do not define it.
24
- */
25
- textField?: string;
26
- /**
27
- * Indicates the focused state of the list item element.
28
- */
29
- focused: boolean;
30
- /**
31
- * Indicates the selected state of the list item element.
32
- */
33
- selected: boolean;
34
- /**
35
- * Fires when the list item is about to be rendered. Used to override the default appearance of the list item.
36
- */
37
- render?: any;
38
- /**
39
- * The `onClick` event handler of the list item element.
40
- */
41
- onClick?: (index: number, event: any) => void;
42
- }
43
- /**
44
- * @hidden
45
- */
46
- export interface ListItemMethods {
47
- [key: string]: any;
48
- handleClick: (e: any) => void;
49
- }
50
- /**
51
- * @hidden
52
- */
53
- export interface ListItemComputed {
54
- [key: string]: any;
55
- itemClass: object;
56
- }
57
- /**
58
- * @hidden
59
- */
60
- export interface ListItemAll extends Vue2type, ListItemMethods, ListItemComputed {
61
- itemClass: object;
62
- }
63
- /**
64
- * @hidden
65
- */
66
- declare let ListItemVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListItemAll>, ListItemComputed, RecordPropsDefinition<ListItemProps>>;
67
- /**
68
- * @hidden
69
- */
70
- declare const ListItem: DefineComponent<ListItemProps, any, {}, {}, ListItemMethods, {}, {}, {}, string, ListItemProps, ListItemProps, {}>;
71
- export { ListItem, ListItemVue2 };