@progress/kendo-vue-treelist 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 (263) hide show
  1. package/README.md +26 -34
  2. package/TreeList.js +8 -0
  3. package/TreeList.mjs +722 -0
  4. package/TreeListNav.js +8 -0
  5. package/TreeListNav.mjs +98 -0
  6. package/cells/EditCells/TreeListBooleanEditor.js +8 -0
  7. package/cells/EditCells/TreeListBooleanEditor.mjs +154 -0
  8. package/cells/EditCells/TreeListDateEditor.js +8 -0
  9. package/cells/EditCells/TreeListDateEditor.mjs +140 -0
  10. package/cells/EditCells/TreeListNumericEditor.js +8 -0
  11. package/cells/EditCells/TreeListNumericEditor.mjs +140 -0
  12. package/cells/EditCells/TreeListTextEditor.js +8 -0
  13. package/cells/EditCells/TreeListTextEditor.mjs +157 -0
  14. package/cells/FilterCells/TreeListBooleanFilter.js +8 -0
  15. package/cells/FilterCells/TreeListBooleanFilter.mjs +54 -0
  16. package/cells/FilterCells/TreeListDateFilter.js +8 -0
  17. package/cells/FilterCells/TreeListDateFilter.mjs +54 -0
  18. package/cells/FilterCells/TreeListNumericFilter.js +8 -0
  19. package/cells/FilterCells/TreeListNumericFilter.mjs +54 -0
  20. package/cells/FilterCells/TreeListTextFilter.js +8 -0
  21. package/cells/FilterCells/TreeListTextFilter.mjs +54 -0
  22. package/cells/FilterCells/utils.js +8 -0
  23. package/cells/FilterCells/utils.mjs +59 -0
  24. package/cells/TreeListCell.js +8 -0
  25. package/cells/TreeListCell.mjs +184 -0
  26. package/cells/TreeListSelectionCell.js +8 -0
  27. package/cells/TreeListSelectionCell.mjs +146 -0
  28. package/constants/main.js +8 -0
  29. package/constants/main.mjs +14 -0
  30. package/dist/cdn/js/kendo-vue-treelist.js +8 -1
  31. package/index.d.mts +1814 -0
  32. package/index.d.ts +1814 -0
  33. package/index.js +8 -0
  34. package/index.mjs +58 -0
  35. package/messages/main.js +8 -0
  36. package/messages/main.mjs +112 -0
  37. package/package-metadata.js +8 -0
  38. package/package-metadata.mjs +18 -0
  39. package/package.json +24 -61
  40. package/rows/RowDragClue.js +8 -0
  41. package/rows/RowDragClue.mjs +56 -0
  42. package/rows/TreeListDraggableRow.js +8 -0
  43. package/rows/TreeListDraggableRow.mjs +113 -0
  44. package/rows/TreeListRow.js +8 -0
  45. package/rows/TreeListRow.mjs +124 -0
  46. package/utils/data-operations.js +8 -0
  47. package/utils/data-operations.mjs +103 -0
  48. package/utils/main.js +8 -0
  49. package/utils/main.mjs +53 -0
  50. package/dist/es/ScrollMode.d.ts +0 -1
  51. package/dist/es/ScrollMode.js +0 -1
  52. package/dist/es/TreeList.d.ts +0 -56
  53. package/dist/es/TreeList.js +0 -1289
  54. package/dist/es/TreeListNav.d.ts +0 -46
  55. package/dist/es/TreeListNav.js +0 -123
  56. package/dist/es/additionalTypes.ts +0 -21
  57. package/dist/es/cells/EditCells/TreeListBooleanEditor.d.ts +0 -49
  58. package/dist/es/cells/EditCells/TreeListBooleanEditor.js +0 -194
  59. package/dist/es/cells/EditCells/TreeListDateEditor.d.ts +0 -49
  60. package/dist/es/cells/EditCells/TreeListDateEditor.js +0 -174
  61. package/dist/es/cells/EditCells/TreeListNumericEditor.d.ts +0 -49
  62. package/dist/es/cells/EditCells/TreeListNumericEditor.js +0 -174
  63. package/dist/es/cells/EditCells/TreeListTextEditor.d.ts +0 -50
  64. package/dist/es/cells/EditCells/TreeListTextEditor.js +0 -190
  65. package/dist/es/cells/FilterCells/TreeListBooleanFilter.d.ts +0 -22
  66. package/dist/es/cells/FilterCells/TreeListBooleanFilter.js +0 -89
  67. package/dist/es/cells/FilterCells/TreeListDateFilter.d.ts +0 -22
  68. package/dist/es/cells/FilterCells/TreeListDateFilter.js +0 -89
  69. package/dist/es/cells/FilterCells/TreeListNumericFilter.d.ts +0 -22
  70. package/dist/es/cells/FilterCells/TreeListNumericFilter.js +0 -89
  71. package/dist/es/cells/FilterCells/TreeListTextFilter.d.ts +0 -25
  72. package/dist/es/cells/FilterCells/TreeListTextFilter.js +0 -89
  73. package/dist/es/cells/FilterCells/utils.d.ts +0 -38
  74. package/dist/es/cells/FilterCells/utils.js +0 -66
  75. package/dist/es/cells/TreeListCell.d.ts +0 -41
  76. package/dist/es/cells/TreeListCell.js +0 -256
  77. package/dist/es/cells/TreeListSelectionCell.d.ts +0 -41
  78. package/dist/es/cells/TreeListSelectionCell.js +0 -181
  79. package/dist/es/constants/main.d.ts +0 -6
  80. package/dist/es/constants/main.js +0 -7
  81. package/dist/es/interfaces/DataItemWrapper.d.ts +0 -10
  82. package/dist/es/interfaces/DataItemWrapper.js +0 -1
  83. package/dist/es/interfaces/TreeListCellProps.d.ts +0 -35
  84. package/dist/es/interfaces/TreeListCellProps.js +0 -1
  85. package/dist/es/interfaces/TreeListColumnProps.d.ts +0 -33
  86. package/dist/es/interfaces/TreeListColumnProps.js +0 -1
  87. package/dist/es/interfaces/TreeListFilterCellProps.d.ts +0 -6
  88. package/dist/es/interfaces/TreeListFilterCellProps.js +0 -1
  89. package/dist/es/interfaces/TreeListFilterOperator.d.ts +0 -6
  90. package/dist/es/interfaces/TreeListFilterOperator.js +0 -1
  91. package/dist/es/interfaces/TreeListHeaderCellProps.d.ts +0 -6
  92. package/dist/es/interfaces/TreeListHeaderCellProps.js +0 -1
  93. package/dist/es/interfaces/TreeListProps.d.ts +0 -345
  94. package/dist/es/interfaces/TreeListProps.js +0 -1
  95. package/dist/es/interfaces/TreeListRowProps.d.ts +0 -92
  96. package/dist/es/interfaces/TreeListRowProps.js +0 -1
  97. package/dist/es/interfaces/TreeListSelectableSettings.d.ts +0 -18
  98. package/dist/es/interfaces/TreeListSelectableSettings.js +0 -1
  99. package/dist/es/interfaces/TreeListSortSettings.d.ts +0 -9
  100. package/dist/es/interfaces/TreeListSortSettings.js +0 -1
  101. package/dist/es/interfaces/TreeListToolbarProps.d.ts +0 -5
  102. package/dist/es/interfaces/TreeListToolbarProps.js +0 -1
  103. package/dist/es/interfaces/events.d.ts +0 -286
  104. package/dist/es/interfaces/events.js +0 -1
  105. package/dist/es/main.d.ts +0 -27
  106. package/dist/es/main.js +0 -17
  107. package/dist/es/messages/main.d.ts +0 -239
  108. package/dist/es/messages/main.js +0 -240
  109. package/dist/es/package-metadata.d.ts +0 -5
  110. package/dist/es/package-metadata.js +0 -11
  111. package/dist/es/rows/RowDragClue.d.ts +0 -40
  112. package/dist/es/rows/RowDragClue.js +0 -76
  113. package/dist/es/rows/TreeListDraggableRow.d.ts +0 -38
  114. package/dist/es/rows/TreeListDraggableRow.js +0 -175
  115. package/dist/es/rows/TreeListRow.d.ts +0 -36
  116. package/dist/es/rows/TreeListRow.js +0 -154
  117. package/dist/es/utils/data-operations.d.ts +0 -115
  118. package/dist/es/utils/data-operations.js +0 -250
  119. package/dist/es/utils/main.d.ts +0 -17
  120. package/dist/es/utils/main.js +0 -68
  121. package/dist/esm/ScrollMode.d.ts +0 -1
  122. package/dist/esm/ScrollMode.js +0 -1
  123. package/dist/esm/TreeList.d.ts +0 -56
  124. package/dist/esm/TreeList.js +0 -1289
  125. package/dist/esm/TreeListNav.d.ts +0 -46
  126. package/dist/esm/TreeListNav.js +0 -123
  127. package/dist/esm/additionalTypes.ts +0 -21
  128. package/dist/esm/cells/EditCells/TreeListBooleanEditor.d.ts +0 -49
  129. package/dist/esm/cells/EditCells/TreeListBooleanEditor.js +0 -194
  130. package/dist/esm/cells/EditCells/TreeListDateEditor.d.ts +0 -49
  131. package/dist/esm/cells/EditCells/TreeListDateEditor.js +0 -174
  132. package/dist/esm/cells/EditCells/TreeListNumericEditor.d.ts +0 -49
  133. package/dist/esm/cells/EditCells/TreeListNumericEditor.js +0 -174
  134. package/dist/esm/cells/EditCells/TreeListTextEditor.d.ts +0 -50
  135. package/dist/esm/cells/EditCells/TreeListTextEditor.js +0 -190
  136. package/dist/esm/cells/FilterCells/TreeListBooleanFilter.d.ts +0 -22
  137. package/dist/esm/cells/FilterCells/TreeListBooleanFilter.js +0 -89
  138. package/dist/esm/cells/FilterCells/TreeListDateFilter.d.ts +0 -22
  139. package/dist/esm/cells/FilterCells/TreeListDateFilter.js +0 -89
  140. package/dist/esm/cells/FilterCells/TreeListNumericFilter.d.ts +0 -22
  141. package/dist/esm/cells/FilterCells/TreeListNumericFilter.js +0 -89
  142. package/dist/esm/cells/FilterCells/TreeListTextFilter.d.ts +0 -25
  143. package/dist/esm/cells/FilterCells/TreeListTextFilter.js +0 -89
  144. package/dist/esm/cells/FilterCells/utils.d.ts +0 -38
  145. package/dist/esm/cells/FilterCells/utils.js +0 -66
  146. package/dist/esm/cells/TreeListCell.d.ts +0 -41
  147. package/dist/esm/cells/TreeListCell.js +0 -256
  148. package/dist/esm/cells/TreeListSelectionCell.d.ts +0 -41
  149. package/dist/esm/cells/TreeListSelectionCell.js +0 -181
  150. package/dist/esm/constants/main.d.ts +0 -6
  151. package/dist/esm/constants/main.js +0 -7
  152. package/dist/esm/interfaces/DataItemWrapper.d.ts +0 -10
  153. package/dist/esm/interfaces/DataItemWrapper.js +0 -1
  154. package/dist/esm/interfaces/TreeListCellProps.d.ts +0 -35
  155. package/dist/esm/interfaces/TreeListCellProps.js +0 -1
  156. package/dist/esm/interfaces/TreeListColumnProps.d.ts +0 -33
  157. package/dist/esm/interfaces/TreeListColumnProps.js +0 -1
  158. package/dist/esm/interfaces/TreeListFilterCellProps.d.ts +0 -6
  159. package/dist/esm/interfaces/TreeListFilterCellProps.js +0 -1
  160. package/dist/esm/interfaces/TreeListFilterOperator.d.ts +0 -6
  161. package/dist/esm/interfaces/TreeListFilterOperator.js +0 -1
  162. package/dist/esm/interfaces/TreeListHeaderCellProps.d.ts +0 -6
  163. package/dist/esm/interfaces/TreeListHeaderCellProps.js +0 -1
  164. package/dist/esm/interfaces/TreeListProps.d.ts +0 -345
  165. package/dist/esm/interfaces/TreeListProps.js +0 -1
  166. package/dist/esm/interfaces/TreeListRowProps.d.ts +0 -92
  167. package/dist/esm/interfaces/TreeListRowProps.js +0 -1
  168. package/dist/esm/interfaces/TreeListSelectableSettings.d.ts +0 -18
  169. package/dist/esm/interfaces/TreeListSelectableSettings.js +0 -1
  170. package/dist/esm/interfaces/TreeListSortSettings.d.ts +0 -9
  171. package/dist/esm/interfaces/TreeListSortSettings.js +0 -1
  172. package/dist/esm/interfaces/TreeListToolbarProps.d.ts +0 -5
  173. package/dist/esm/interfaces/TreeListToolbarProps.js +0 -1
  174. package/dist/esm/interfaces/events.d.ts +0 -286
  175. package/dist/esm/interfaces/events.js +0 -1
  176. package/dist/esm/main.d.ts +0 -27
  177. package/dist/esm/main.js +0 -17
  178. package/dist/esm/messages/main.d.ts +0 -239
  179. package/dist/esm/messages/main.js +0 -240
  180. package/dist/esm/package-metadata.d.ts +0 -5
  181. package/dist/esm/package-metadata.js +0 -11
  182. package/dist/esm/package.json +0 -3
  183. package/dist/esm/rows/RowDragClue.d.ts +0 -40
  184. package/dist/esm/rows/RowDragClue.js +0 -76
  185. package/dist/esm/rows/TreeListDraggableRow.d.ts +0 -38
  186. package/dist/esm/rows/TreeListDraggableRow.js +0 -175
  187. package/dist/esm/rows/TreeListRow.d.ts +0 -36
  188. package/dist/esm/rows/TreeListRow.js +0 -154
  189. package/dist/esm/utils/data-operations.d.ts +0 -115
  190. package/dist/esm/utils/data-operations.js +0 -250
  191. package/dist/esm/utils/main.d.ts +0 -17
  192. package/dist/esm/utils/main.js +0 -68
  193. package/dist/npm/ScrollMode.d.ts +0 -1
  194. package/dist/npm/ScrollMode.js +0 -2
  195. package/dist/npm/TreeList.d.ts +0 -56
  196. package/dist/npm/TreeList.js +0 -1296
  197. package/dist/npm/TreeListNav.d.ts +0 -46
  198. package/dist/npm/TreeListNav.js +0 -130
  199. package/dist/npm/additionalTypes.ts +0 -21
  200. package/dist/npm/cells/EditCells/TreeListBooleanEditor.d.ts +0 -49
  201. package/dist/npm/cells/EditCells/TreeListBooleanEditor.js +0 -201
  202. package/dist/npm/cells/EditCells/TreeListDateEditor.d.ts +0 -49
  203. package/dist/npm/cells/EditCells/TreeListDateEditor.js +0 -181
  204. package/dist/npm/cells/EditCells/TreeListNumericEditor.d.ts +0 -49
  205. package/dist/npm/cells/EditCells/TreeListNumericEditor.js +0 -181
  206. package/dist/npm/cells/EditCells/TreeListTextEditor.d.ts +0 -50
  207. package/dist/npm/cells/EditCells/TreeListTextEditor.js +0 -197
  208. package/dist/npm/cells/FilterCells/TreeListBooleanFilter.d.ts +0 -22
  209. package/dist/npm/cells/FilterCells/TreeListBooleanFilter.js +0 -96
  210. package/dist/npm/cells/FilterCells/TreeListDateFilter.d.ts +0 -22
  211. package/dist/npm/cells/FilterCells/TreeListDateFilter.js +0 -96
  212. package/dist/npm/cells/FilterCells/TreeListNumericFilter.d.ts +0 -22
  213. package/dist/npm/cells/FilterCells/TreeListNumericFilter.js +0 -96
  214. package/dist/npm/cells/FilterCells/TreeListTextFilter.d.ts +0 -25
  215. package/dist/npm/cells/FilterCells/TreeListTextFilter.js +0 -96
  216. package/dist/npm/cells/FilterCells/utils.d.ts +0 -38
  217. package/dist/npm/cells/FilterCells/utils.js +0 -70
  218. package/dist/npm/cells/TreeListCell.d.ts +0 -41
  219. package/dist/npm/cells/TreeListCell.js +0 -263
  220. package/dist/npm/cells/TreeListSelectionCell.d.ts +0 -41
  221. package/dist/npm/cells/TreeListSelectionCell.js +0 -188
  222. package/dist/npm/constants/main.d.ts +0 -6
  223. package/dist/npm/constants/main.js +0 -10
  224. package/dist/npm/interfaces/DataItemWrapper.d.ts +0 -10
  225. package/dist/npm/interfaces/DataItemWrapper.js +0 -2
  226. package/dist/npm/interfaces/TreeListCellProps.d.ts +0 -35
  227. package/dist/npm/interfaces/TreeListCellProps.js +0 -2
  228. package/dist/npm/interfaces/TreeListColumnProps.d.ts +0 -33
  229. package/dist/npm/interfaces/TreeListColumnProps.js +0 -2
  230. package/dist/npm/interfaces/TreeListFilterCellProps.d.ts +0 -6
  231. package/dist/npm/interfaces/TreeListFilterCellProps.js +0 -2
  232. package/dist/npm/interfaces/TreeListFilterOperator.d.ts +0 -6
  233. package/dist/npm/interfaces/TreeListFilterOperator.js +0 -2
  234. package/dist/npm/interfaces/TreeListHeaderCellProps.d.ts +0 -6
  235. package/dist/npm/interfaces/TreeListHeaderCellProps.js +0 -2
  236. package/dist/npm/interfaces/TreeListProps.d.ts +0 -345
  237. package/dist/npm/interfaces/TreeListProps.js +0 -2
  238. package/dist/npm/interfaces/TreeListRowProps.d.ts +0 -92
  239. package/dist/npm/interfaces/TreeListRowProps.js +0 -2
  240. package/dist/npm/interfaces/TreeListSelectableSettings.d.ts +0 -18
  241. package/dist/npm/interfaces/TreeListSelectableSettings.js +0 -2
  242. package/dist/npm/interfaces/TreeListSortSettings.d.ts +0 -9
  243. package/dist/npm/interfaces/TreeListSortSettings.js +0 -2
  244. package/dist/npm/interfaces/TreeListToolbarProps.d.ts +0 -5
  245. package/dist/npm/interfaces/TreeListToolbarProps.js +0 -5
  246. package/dist/npm/interfaces/events.d.ts +0 -286
  247. package/dist/npm/interfaces/events.js +0 -2
  248. package/dist/npm/main.d.ts +0 -27
  249. package/dist/npm/main.js +0 -52
  250. package/dist/npm/messages/main.d.ts +0 -239
  251. package/dist/npm/messages/main.js +0 -244
  252. package/dist/npm/package-metadata.d.ts +0 -5
  253. package/dist/npm/package-metadata.js +0 -14
  254. package/dist/npm/rows/RowDragClue.d.ts +0 -40
  255. package/dist/npm/rows/RowDragClue.js +0 -83
  256. package/dist/npm/rows/TreeListDraggableRow.d.ts +0 -38
  257. package/dist/npm/rows/TreeListDraggableRow.js +0 -182
  258. package/dist/npm/rows/TreeListRow.d.ts +0 -36
  259. package/dist/npm/rows/TreeListRow.js +0 -161
  260. package/dist/npm/utils/data-operations.d.ts +0 -115
  261. package/dist/npm/utils/data-operations.js +0 -265
  262. package/dist/npm/utils/main.d.ts +0 -17
  263. package/dist/npm/utils/main.js +0 -74
@@ -1,92 +0,0 @@
1
- /**
2
- * The props that the TreeList passes to the TreeListRow component when creating it.
3
- * Accessible during the `rowRender` callback of the TreeList.
4
- */
5
- export interface TreeListRowProps {
6
- /**
7
- * The class that is applied to the row.
8
- */
9
- className: string;
10
- /**
11
- * The `data` object that represents the current row.
12
- */
13
- dataItem: any;
14
- /**
15
- * The event that is fired when the row is clicked.
16
- */
17
- onClick?: any;
18
- /**
19
- * The event that is fired when the row is double clicked.
20
- */
21
- onDoubleClick?: any;
22
- /**
23
- * The event that is fired when the row context menu is triggered.
24
- */
25
- onContextmenu?: any;
26
- /**
27
- * The name of the field which will provide a Boolean representation of the selected state of the item.
28
- */
29
- selectedField?: string;
30
- /**
31
- * Sets the height of the row.
32
- */
33
- rowHeight?: number;
34
- /**
35
- * A function for overriding the default rendering of the row.
36
- */
37
- render?: any;
38
- /**
39
- * An array of indexes of each parent and current item in the data tree.
40
- */
41
- level: number[];
42
- /**
43
- * Fires when a row is dragged.
44
- */
45
- onDrag?: (event: {
46
- nativeEvent: any;
47
- dragged: number[];
48
- draggedOver: number[] | null;
49
- draggedItem: any;
50
- }) => void;
51
- /**
52
- * Fires when a row is dragged and dropped.
53
- */
54
- onDrop?: (event: {
55
- nativeEvent: any;
56
- dragged: number[];
57
- draggedOver: number[] | null;
58
- draggedItem: any;
59
- }) => void;
60
- /**
61
- * The expanded state of the row. Useful for applying `aria-expanded` accessibility attribute.
62
- */
63
- expanded: boolean;
64
- /**
65
- * The index of the row. Useful for applying `aria-rowindex` accessibility attribute.
66
- */
67
- rowIndex: number;
68
- /**
69
- * @hidden
70
- */
71
- levels: number[][];
72
- /**
73
- * @hidden
74
- */
75
- isAltRow?: boolean;
76
- /**
77
- * The index to be applied to the `aria-rowindex` attribute.
78
- */
79
- ariaRowIndex?: number;
80
- /**
81
- * The count of items on current level, applied to the `aria-setsize` attribute.
82
- */
83
- ariaSetSize?: number;
84
- /**
85
- * The index of the item on current level, applied to the `aria-posinset` attribute.
86
- */
87
- ariaPosInSet?: number;
88
- /**
89
- * Indicates if the row is selected.
90
- */
91
- isSelected: boolean;
92
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
1
- import { TableSelectableMode, TableSelectableSettings } from '@progress/kendo-vue-data-tools';
2
- /**
3
- * Represents the available selection modes.
4
- */
5
- export declare type TreeListSelectableMode = TableSelectableMode;
6
- /**
7
- * Represents the TreeList selectable settings.
8
- */
9
- export interface TreeListSelectableSettings extends TableSelectableSettings {
10
- /**
11
- * The available values are:
12
- * * `single`
13
- * * `multiple`
14
- *
15
- * @default "multiple"
16
- */
17
- mode?: TreeListSelectableMode;
18
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import { ColumnSortSettings, SortSettings } from '@progress/kendo-vue-data-tools';
2
- /**
3
- * The settings for sorting the TreeList columns.
4
- */
5
- export declare type TreeListColumnSortSettings = ColumnSortSettings;
6
- /**
7
- * The settings for sorting the TreeList data.
8
- */
9
- export declare type TreeListSortSettings = SortSettings;
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * The props of the TreeListToolbar component.
3
- */
4
- export interface TreeListToolbarProps {
5
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,286 +0,0 @@
1
- import { SortDescriptor, FilterDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
2
- import { TreeListColumnProps } from './TreeListColumnProps';
3
- import { TableDragSelectionReleaseEvent, TableKeyDownEvent, TableSelectionChangeEvent } from '@progress/kendo-vue-data-tools';
4
- /**
5
- * Represents the base event object of the TreeList.
6
- */
7
- export interface TreeListEvent {
8
- component?: any;
9
- event: any;
10
- }
11
- /**
12
- * Represents the object of the `onDataStateChange` TreeList event.
13
- */
14
- export interface TreeListDataStateChangeEvent extends TreeListEvent {
15
- /**
16
- * The state of the TreeList based on the user action.
17
- */
18
- data: {
19
- /**
20
- * The descriptors that are used for sorting.
21
- */
22
- sort?: Array<SortDescriptor>;
23
- /**
24
- * The descriptors that are used for filtering.
25
- */
26
- filter?: Array<FilterDescriptor>;
27
- /**
28
- * The field of the column which triggers the event.
29
- */
30
- field?: string;
31
- };
32
- }
33
- /**
34
- * Represents the object of the `onSortChange` TreeList event.
35
- */
36
- export interface TreeListSortChangeEvent extends TreeListEvent {
37
- /**
38
- * The new `SortDescriptor` according to the user action.
39
- */
40
- sort: SortDescriptor[];
41
- /**
42
- * The field of the column which triggers the event.
43
- */
44
- field: string;
45
- }
46
- /**
47
- * Represents the object of the `onFilterChange` TreeList event.
48
- */
49
- export interface TreeListFilterChangeEvent extends TreeListEvent {
50
- /**
51
- * The new `FilterDescriptor` based on the user action.
52
- */
53
- filter: FilterDescriptor[];
54
- /**
55
- * The field of the column which triggers the event.
56
- */
57
- field: string;
58
- }
59
- /**
60
- * Represents the object of the `onColumnMenuFilterChange` TreeList event.
61
- */
62
- export interface TreeListColumnMenuFilterChangeEvent extends TreeListEvent {
63
- /**
64
- * The new `CompositeFilterDescriptor` based on the user action.
65
- */
66
- filter: CompositeFilterDescriptor[];
67
- /**
68
- * The field of the column which triggers the event.
69
- */
70
- field: string;
71
- }
72
- /**
73
- * Represents the object of the `onExpandChange` TreeList event.
74
- */
75
- export interface TreeListExpandChangeEvent extends TreeListEvent {
76
- /**
77
- * The data item which is expanded or collapsed.
78
- */
79
- dataItem: any;
80
- /**
81
- * An array of indexes of each parent and current item in the data tree.
82
- */
83
- level: number[];
84
- /**
85
- * The available values are:
86
- * - `true`&mdash;If the data item is expanded.
87
- * - `false`&mdash;If the data item is collapsed.
88
- */
89
- value: boolean;
90
- }
91
- /**
92
- * Represents the object of the `onSelectionChange` TreeList event.
93
- */
94
- export interface TreeListSelectionChangeEvent extends TreeListEvent, TableSelectionChangeEvent {
95
- /**
96
- * An array of indexes of each parent and current item in the data tree.
97
- */
98
- level: number[];
99
- }
100
- /**
101
- * Represents the object of the `onKeyDownEvent` TreeList event.
102
- */
103
- export interface TreeListKeyDownEvent extends TreeListEvent, TableKeyDownEvent {
104
- }
105
- /** @hidden */
106
- export interface TreeListDragSelectionReleaseEvent extends TableDragSelectionReleaseEvent {
107
- }
108
- /**
109
- * Represents the object of the `onHeaderSelectionChange` TreeList event.
110
- */
111
- export interface TreeListHeaderSelectionChangeEvent extends TreeListEvent {
112
- /**
113
- * The field of the column in which the cell is located.
114
- */
115
- field?: string;
116
- /**
117
- * The current data as flatted array.
118
- */
119
- dataItems: any[];
120
- }
121
- /**
122
- * Represents the object of the `onRowEvent` TreeList event.
123
- */
124
- export interface TreeListRowEvent extends TreeListEvent {
125
- /**
126
- * The data item which corresponds to the row.
127
- */
128
- dataItem: any;
129
- /**
130
- * An array of indexes of each parent and current item in the data tree.
131
- */
132
- level: number[];
133
- }
134
- /**
135
- * Represents the object of the `onRowClick` TreeList event.
136
- */
137
- export interface TreeListRowClickEvent extends TreeListEvent {
138
- /**
139
- * The data item which corresponds to the clicked row.
140
- */
141
- dataItem: any;
142
- /**
143
- * An array of indexes of each parent and current item in the data tree.
144
- */
145
- level: number[];
146
- }
147
- /**
148
- * Represents the object of the `onRowDoubleClick` TreeList event.
149
- */
150
- export interface TreeListRowDoubleClickEvent extends TreeListEvent {
151
- /**
152
- * The data item which corresponds to the clicked row.
153
- */
154
- dataItem: any;
155
- /**
156
- * An array of indexes of each parent and current item in the data tree.
157
- */
158
- level: number[];
159
- }
160
- /**
161
- * Represents the object of the `onRowContextMenu` TreeList event.
162
- */
163
- export interface TreeListRowContextMenuEvent extends TreeListEvent {
164
- /**
165
- * The data item which corresponds to the clicked row.
166
- */
167
- dataItem: any;
168
- /**
169
- * An array of indexes of each parent and current item in the data tree.
170
- */
171
- level: number[];
172
- }
173
- /**
174
- * Represents the object of the `onItemChange` TreeList event.
175
- */
176
- export interface TreeListItemChangeEvent extends TreeListEvent {
177
- /**
178
- * The data item which corresponds to the current row.
179
- */
180
- dataItem: any;
181
- /**
182
- * An array of indexes of each parent and current item in the data tree.
183
- */
184
- level: number[];
185
- /**
186
- * The field to which the row is bound.
187
- */
188
- field?: string;
189
- /**
190
- * The value of the item.
191
- */
192
- value: any;
193
- }
194
- interface ColumnDragEvent {
195
- /**
196
- * An event target.
197
- */
198
- component: any;
199
- /**
200
- * A native DOM event.
201
- */
202
- event: any;
203
- /**
204
- * The current columns collection.
205
- */
206
- columns?: TreeListColumnProps[];
207
- }
208
- /**
209
- * Represents the object of the `onColumnResize` TreeList event.
210
- */
211
- export interface TreeListColumnResizeEvent extends ColumnDragEvent {
212
- /**
213
- * The index of the column.
214
- */
215
- index: number;
216
- /**
217
- * The new width of the column.
218
- */
219
- newWidth: number;
220
- /**
221
- * The actual width of the column prior to resizing.
222
- */
223
- oldWidth: number;
224
- /**
225
- * Indicates that resizing is complete and the user has dropped the resize handler.
226
- */
227
- end: boolean;
228
- /**
229
- * The total width of the columns after the resizing.
230
- */
231
- totalWidth: number;
232
- }
233
- /**
234
- * Represents the object of the `onColumnReorder` TreeList event.
235
- */
236
- export interface TreeListColumnReorderEvent extends ColumnDragEvent {
237
- /**
238
- * A previous column index.
239
- */
240
- prev: number;
241
- /**
242
- * A next column index.
243
- */
244
- next: number;
245
- }
246
- /**
247
- * Represents the object of the `onPageChange` TreeList event.
248
- */
249
- export interface TreeListPageChangeEvent extends TreeListEvent {
250
- /**
251
- * The number of records that will be skipped.
252
- */
253
- skip: number;
254
- /**
255
- * The number of records that will be taken.
256
- */
257
- take: number;
258
- }
259
- /**
260
- * Represents the object of the TreeList row Drag and Drop event.
261
- */
262
- export interface TreeListRowDragEvent {
263
- /**
264
- * A native DOM event.
265
- */
266
- event: any;
267
- /**
268
- * An event target.
269
- */
270
- component: any;
271
- /**
272
- * The level of the dragged row.
273
- * The level represents an array of indexes of each parent and current item in the data tree.
274
- */
275
- dragged: number[];
276
- /**
277
- * The level of the draggedOver row.
278
- * The level represents an array of indexes of each parent and current item in the data tree.
279
- */
280
- draggedOver: number[] | null;
281
- /**
282
- * The data item which corresponds to the dragged row.
283
- */
284
- draggedItem: any;
285
- }
286
- export {};
@@ -1 +0,0 @@
1
- export {};
package/dist/es/main.d.ts DELETED
@@ -1,27 +0,0 @@
1
- import { TreeList } from './TreeList';
2
- import { TreeListProps } from './interfaces/TreeListProps';
3
- import { TreeListColumnProps } from './interfaces/TreeListColumnProps';
4
- import { TreeListCellProps } from './interfaces/TreeListCellProps';
5
- import { TreeListCell } from './cells/TreeListCell';
6
- import { TreeListHeaderCellProps } from './interfaces/TreeListHeaderCellProps';
7
- import { TreeListSelectionCell } from './cells/TreeListSelectionCell';
8
- import { TreeListRow } from './rows/TreeListRow';
9
- import { TreeListRowProps } from './interfaces/TreeListRowProps';
10
- import { TreeListToolbarProps } from './interfaces/TreeListToolbarProps';
11
- import { TreeListDataStateChangeEvent, TreeListFilterChangeEvent, TreeListSortChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListItemChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListColumnMenuFilterChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListDragSelectionReleaseEvent, TreeListKeyDownEvent } from './interfaces/events';
12
- import { TreeListSortSettings, TreeListColumnSortSettings } from './interfaces/TreeListSortSettings';
13
- import { TreeListTextFilter, TreeListTextFilterProps } from './cells/FilterCells/TreeListTextFilter';
14
- import { TreeListNumericFilter, TreeListNumericFilterProps } from './cells/FilterCells/TreeListNumericFilter';
15
- import { TreeListDateFilter, TreeListDateFilterProps } from './cells/FilterCells/TreeListDateFilter';
16
- import { TreeListBooleanFilter, TreeListBooleanFilterProps } from './cells/FilterCells/TreeListBooleanFilter';
17
- import { TreeListTextEditor, TreeListTextEditorProps } from './cells/EditCells/TreeListTextEditor';
18
- import { TreeListNumericEditor, TreeListNumericEditorProps } from './cells/EditCells/TreeListNumericEditor';
19
- import { TreeListBooleanEditor, TreeListBooleanEditorProps } from './cells/EditCells/TreeListBooleanEditor';
20
- import { TreeListDateEditor, TreeListDateEditorProps } from './cells/EditCells/TreeListDateEditor';
21
- import { orderBy, filterBy, mapTreeItem, moveTreeItem, getItemPath, mapTree, createDataTree, extendDataItem, removeItems, modifySubItems, treeToFlat, flatData } from './utils/data-operations';
22
- import { DataItemWrapper } from './interfaces/DataItemWrapper';
23
- import { getNestedValue, setHeaderRowsTop, tableRowsVirtualization } from './utils/main';
24
- import { TREELIST_COL_INDEX_ATTRIBUTE, TREELIST_ROW_INDEX_ATTRIBUTE, TREELIST_PREVENT_SELECTION_ELEMENT } from './constants/main';
25
- import { getSelectedState, getSelectedStateFromKeyDown, setSelectedState } from '@progress/kendo-vue-data-tools';
26
- import { TreeListSelectableMode, TreeListSelectableSettings } from './interfaces/TreeListSelectableSettings';
27
- export { TreeList, TreeListProps, TreeListColumnProps, TreeListCell, TreeListCellProps, TreeListRow, TreeListRowProps, TreeListHeaderCellProps, TreeListSelectionCell, TreeListToolbarProps, TreeListSortSettings, TreeListColumnSortSettings, TreeListTextFilter, TreeListTextFilterProps, TreeListNumericFilter, TreeListNumericFilterProps, TreeListDateFilter, TreeListDateFilterProps, TreeListBooleanFilter, TreeListBooleanFilterProps, TreeListTextEditor, TreeListTextEditorProps, TreeListNumericEditor, TreeListNumericEditorProps, TreeListBooleanEditor, TreeListBooleanEditorProps, TreeListDateEditor, TreeListDateEditorProps, TreeListDataStateChangeEvent, TreeListFilterChangeEvent, TreeListColumnMenuFilterChangeEvent, TreeListSortChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListItemChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListDragSelectionReleaseEvent, TreeListKeyDownEvent, orderBy, filterBy, mapTree, createDataTree, extendDataItem, mapTreeItem, moveTreeItem, getItemPath, removeItems, modifySubItems, treeToFlat, DataItemWrapper, flatData, getNestedValue, setHeaderRowsTop, tableRowsVirtualization, TREELIST_COL_INDEX_ATTRIBUTE, TREELIST_ROW_INDEX_ATTRIBUTE, TREELIST_PREVENT_SELECTION_ELEMENT, getSelectedState, getSelectedStateFromKeyDown, setSelectedState, TreeListSelectableSettings, TreeListSelectableMode };
package/dist/es/main.js DELETED
@@ -1,17 +0,0 @@
1
- import { TreeList } from './TreeList';
2
- import { TreeListCell } from './cells/TreeListCell';
3
- import { TreeListSelectionCell } from './cells/TreeListSelectionCell';
4
- import { TreeListRow } from './rows/TreeListRow';
5
- import { TreeListTextFilter } from './cells/FilterCells/TreeListTextFilter';
6
- import { TreeListNumericFilter } from './cells/FilterCells/TreeListNumericFilter';
7
- import { TreeListDateFilter } from './cells/FilterCells/TreeListDateFilter';
8
- import { TreeListBooleanFilter } from './cells/FilterCells/TreeListBooleanFilter';
9
- import { TreeListTextEditor } from './cells/EditCells/TreeListTextEditor';
10
- import { TreeListNumericEditor } from './cells/EditCells/TreeListNumericEditor';
11
- import { TreeListBooleanEditor } from './cells/EditCells/TreeListBooleanEditor';
12
- import { TreeListDateEditor } from './cells/EditCells/TreeListDateEditor';
13
- import { orderBy, filterBy, mapTreeItem, moveTreeItem, getItemPath, mapTree, createDataTree, extendDataItem, removeItems, modifySubItems, treeToFlat, flatData } from './utils/data-operations';
14
- import { getNestedValue, setHeaderRowsTop, tableRowsVirtualization } from './utils/main';
15
- import { TREELIST_COL_INDEX_ATTRIBUTE, TREELIST_ROW_INDEX_ATTRIBUTE, TREELIST_PREVENT_SELECTION_ELEMENT } from './constants/main';
16
- import { getSelectedState, getSelectedStateFromKeyDown, setSelectedState } from '@progress/kendo-vue-data-tools';
17
- export { TreeList, TreeListCell, TreeListRow, TreeListSelectionCell, TreeListTextFilter, TreeListNumericFilter, TreeListDateFilter, TreeListBooleanFilter, TreeListTextEditor, TreeListNumericEditor, TreeListBooleanEditor, TreeListDateEditor, orderBy, filterBy, mapTree, createDataTree, extendDataItem, mapTreeItem, moveTreeItem, getItemPath, removeItems, modifySubItems, treeToFlat, flatData, getNestedValue, setHeaderRowsTop, tableRowsVirtualization, TREELIST_COL_INDEX_ATTRIBUTE, TREELIST_ROW_INDEX_ATTRIBUTE, TREELIST_PREVENT_SELECTION_ELEMENT, getSelectedState, getSelectedStateFromKeyDown, setSelectedState };