@progress/kendo-vue-treelist 8.0.3-develop.2 → 8.0.3-develop.4

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 (43) hide show
  1. package/ScrollMode.d.ts +8 -0
  2. package/TreeList.d.ts +194 -0
  3. package/TreeListNav.d.ts +37 -0
  4. package/cells/EditCells/TreeListBooleanEditor.d.ts +78 -0
  5. package/cells/EditCells/TreeListDateEditor.d.ts +76 -0
  6. package/cells/EditCells/TreeListNumericEditor.d.ts +75 -0
  7. package/cells/EditCells/TreeListTextEditor.d.ts +78 -0
  8. package/cells/FilterCells/TreeListBooleanFilter.d.ts +23 -0
  9. package/cells/FilterCells/TreeListDateFilter.d.ts +23 -0
  10. package/cells/FilterCells/TreeListNumericFilter.d.ts +23 -0
  11. package/cells/FilterCells/TreeListTextFilter.d.ts +26 -0
  12. package/cells/FilterCells/utils.d.ts +45 -0
  13. package/cells/FilterCells/utils.mjs +18 -18
  14. package/cells/TreeListCell.d.ts +80 -0
  15. package/cells/TreeListSelectionCell.d.ts +84 -0
  16. package/constants/main.d.ts +13 -0
  17. package/constants/main.mjs +2 -2
  18. package/dist/cdn/js/kendo-vue-treelist.js +1 -1
  19. package/index.d.mts +27 -1786
  20. package/index.d.ts +27 -1786
  21. package/interfaces/DataItemWrapper.d.ts +17 -0
  22. package/interfaces/TreeListCellProps.d.ts +62 -0
  23. package/interfaces/TreeListColumnProps.d.ts +40 -0
  24. package/interfaces/TreeListFilterCellProps.d.ts +13 -0
  25. package/interfaces/TreeListFilterOperator.d.ts +15 -0
  26. package/interfaces/TreeListHeaderCellProps.d.ts +13 -0
  27. package/interfaces/TreeListProps.d.ts +329 -0
  28. package/interfaces/TreeListRowProps.d.ts +99 -0
  29. package/interfaces/TreeListSelectableSettings.d.ts +25 -0
  30. package/interfaces/TreeListSortSettings.d.ts +16 -0
  31. package/interfaces/TreeListToolbarProps.d.ts +12 -0
  32. package/interfaces/events.d.ts +293 -0
  33. package/messages/main.d.ts +246 -0
  34. package/package-metadata.d.ts +12 -0
  35. package/package-metadata.js +1 -1
  36. package/package-metadata.mjs +2 -2
  37. package/package.json +15 -9
  38. package/rows/RowDragClue.d.ts +28 -0
  39. package/rows/TreeListDraggableRow.d.ts +26 -0
  40. package/rows/TreeListRow.d.ts +78 -0
  41. package/utils/data-operations.d.ts +122 -0
  42. package/utils/data-operations.mjs +6 -6
  43. package/utils/main.d.ts +24 -0
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { PropType } from 'vue';
9
+ /**
10
+ * @hidden
11
+ */
12
+ declare const TreeListRow: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
+ level: PropType<number[]>;
14
+ className: PropType<string>;
15
+ expanded: PropType<boolean>;
16
+ rowIndex: PropType<number>;
17
+ levels: PropType<number[][]>;
18
+ ariaSetSize: PropType<number>;
19
+ ariaPosInSet: PropType<number>;
20
+ isSelected: PropType<boolean>;
21
+ dataItem: PropType<any>;
22
+ isAltRow: PropType<boolean>;
23
+ onClick: PropType<any>;
24
+ selectedField: PropType<string>;
25
+ rowHeight: PropType<number>;
26
+ ariaRowIndex: PropType<number>;
27
+ render: PropType<any>;
28
+ }>, {}, {}, {
29
+ wrapperClass(): {
30
+ [x: number]: any;
31
+ 'k-table-row': boolean;
32
+ 'k-table-alt-row': any;
33
+ 'k-master-row': boolean;
34
+ 'k-selected': any;
35
+ 'k-group-footer': any;
36
+ };
37
+ }, {
38
+ handleClick(e: any): void;
39
+ handleDoubleClick(e: any): void;
40
+ handleContextMenu(e: any): void;
41
+ handleFocus(e: any): void;
42
+ handleBlur(e: any): void;
43
+ handleMousedown(e: any): void;
44
+ handleMouseup(e: any): void;
45
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
46
+ click: any;
47
+ dblclick: any;
48
+ contextmenu: any;
49
+ focus: any;
50
+ blur: any;
51
+ mousedown: any;
52
+ mouseup: any;
53
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
54
+ level: PropType<number[]>;
55
+ className: PropType<string>;
56
+ expanded: PropType<boolean>;
57
+ rowIndex: PropType<number>;
58
+ levels: PropType<number[][]>;
59
+ ariaSetSize: PropType<number>;
60
+ ariaPosInSet: PropType<number>;
61
+ isSelected: PropType<boolean>;
62
+ dataItem: PropType<any>;
63
+ isAltRow: PropType<boolean>;
64
+ onClick: PropType<any>;
65
+ selectedField: PropType<string>;
66
+ rowHeight: PropType<number>;
67
+ ariaRowIndex: PropType<number>;
68
+ render: PropType<any>;
69
+ }>> & Readonly<{
70
+ onClick?: (...args: any[] | unknown[]) => any;
71
+ onBlur?: (...args: any[] | unknown[]) => any;
72
+ onContextmenu?: (...args: any[] | unknown[]) => any;
73
+ onDblclick?: (...args: any[] | unknown[]) => any;
74
+ onFocus?: (...args: any[] | unknown[]) => any;
75
+ onMousedown?: (...args: any[] | unknown[]) => any;
76
+ onMouseup?: (...args: any[] | unknown[]) => any;
77
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
78
+ export { TreeListRow };
@@ -0,0 +1,122 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { SortDescriptor, FilterDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
9
+ import { DataItemWrapper } from '../interfaces/DataItemWrapper';
10
+ /**
11
+ * Orders the specified tree according to the provided sort descriptors.
12
+ *
13
+ * @param {T[]} data - The data that will be sorted.
14
+ * @param {SortDescriptor[]} descriptors - The descriptors by which the data will be sorted.
15
+ * @param {string} subItemsField - The field which points to the subitems collection of each data item.
16
+ * @returns {T[]} - The sorted data.
17
+ */
18
+ export declare function orderBy(data: any[], descriptors: SortDescriptor[], subItemsField: string): any[];
19
+ /**
20
+ * Filters the provided data tree according to the specified `Array<FilterDescriptor|CompositeFilterDescriptor>`.
21
+ *
22
+ * @param {T[]} data - The data that will be filtered.
23
+ * @param {FilterDescriptor[]|CompositeFilterDescriptor[]} descriptors - The filter criteria that will be applied.
24
+ * @param {string} subItemsField - The field which points to the subitems collection of each data item.
25
+ * @returns {T[]} - The filtered data.
26
+ */
27
+ export declare function filterBy(data: any[], descriptors: FilterDescriptor[] | CompositeFilterDescriptor[], subItemsField: string): any[];
28
+ /**
29
+ * Creates a new array with the results of calling the provided callback function
30
+ * on every element in the provided data tree.
31
+ *
32
+ * @param {any[]} tree - The data tree.
33
+ * @param {string} subItemsField - The field which points to the subitems collection of each data item.
34
+ * @param {(value: any) => any} callback - The callback function.
35
+ * @returns {any[]} - The new data tree.
36
+ */
37
+ export declare const mapTree: (tree: any[], subItemsField: string, callback: (value: any) => any) => any[];
38
+ /**
39
+ * Creates a new array with the results of calling the provided callback function
40
+ * on the element which match the `level` in the provided data tree.
41
+ *
42
+ * @param {any[]} tree - The data tree.
43
+ * @param {number[]} level - An array of indexes of each parent and current item in the data tree.
44
+ * @param {string} subItemsField - The field which points to the subitems collection of each data item.
45
+ * @param {(value: any) => any} callback - The callback function.
46
+ * @returns {any[]} - The new data tree.
47
+ */
48
+ export declare const mapTreeItem: (tree: any[], level: number[], subItemsField: string, callback: (value: any) => any) => void;
49
+ /**
50
+ * @hidden
51
+ */
52
+ export declare function flatData(data: any[], getChildren: (dataItem: any) => any[], itemMap: (item: any) => any): DataItemWrapper[];
53
+ /**
54
+ * Creates a flat data array from the passed tree dataset.
55
+ *
56
+ * @param {object[]} dataset - The source dataset of data items.
57
+ * @param {string} expandField - The field which points to the expanded value of each data item.
58
+ * @param {string} subItemsField - The field which points to the subitems collection of each data item.
59
+ * @returns {object[]} - A collection of the generated data items that are in a flat structure.
60
+ */
61
+ export declare const treeToFlat: (data: any[], expandField: string, subItemsField: string) => any[];
62
+ /**
63
+ * Creates a tree from the passed dataset.
64
+ *
65
+ * @param {object[]} dataset - The source dataset of data items.
66
+ * @param {(item: object) => any} getId - A function which will return the id of the data item.
67
+ * @param {(item: object) => any} getParentId - A function which will return the data item id of its parent data item.
68
+ * @param {string} subItemsField - The field which points to the subitems collection of each data item.
69
+ * @returns {object[]} - A collection of the generated data items that are structured in a tree.
70
+ */
71
+ export declare const createDataTree: (dataset: any[], getId: (item: any) => any, getParentId: (item: any) => any, subItemsField: string) => any[];
72
+ /**
73
+ * Similar to the `Object.assign` function. Additionally, creates a new array for the subitems.
74
+ *
75
+ * @param {object} item - The source data item.
76
+ * @param {string} subItemsField - The field which points to the subitems collection of each data item.
77
+ * @param {object} propsToExtend - The props with which the source data item will be extended.
78
+ * @returns {object} - The target data item.
79
+ */
80
+ export declare const extendDataItem: (item: any, subItemsField: string, propsToExtend?: any) => any;
81
+ /**
82
+ * Removes the items from the passed `data` which match the passed `condition`.
83
+ *
84
+ * @param {any[]} data - The data tree.
85
+ * @param {string} subItemsField - The field which points to the subitems collection of each data item.
86
+ * @param {(item: object) => Boolean} condition - A function that will be executed for each data item
87
+ * in the tree data and the items for which returns true will be removed.
88
+ * @returns {any[]} - The new data tree.
89
+ */
90
+ export declare const removeItems: (data: any, subItemsField: any, condition: any) => any[];
91
+ /**
92
+ * Changes the `subItems` collection of each data item which matches the passed `condition`.
93
+ *
94
+ * @param {any[]} data - The data tree.
95
+ * @param {string} subItemsField - The field which points to the subitems collection of each data item.
96
+ * @param {(item: object) => Boolean} condition - A function that will be executed for each data item and
97
+ * will return `true` for items that have to change the subitems collection.
98
+ * @param {(subItems: object[]) => object[]} change - A function which
99
+ * has as a parameter the subitems collection of the matched items and which will return the new subitems collection.
100
+ * @returns {any[]} - The new data tree.
101
+ */
102
+ export declare const modifySubItems: (data: any, subItemsField: any, condition: any, change: any) => any[];
103
+ /**
104
+ * Returns the data item path in the tree based on the level parameter.
105
+ *
106
+ * @param {any[]} tree - The data tree.
107
+ * @param {number[]} level - The level of the target tree item.
108
+ * @param {string} subItemsField - The field which points to the subitems collection of each data item.
109
+ * @returns {any[]} - The path of the data item.
110
+ */
111
+ export declare const getItemPath: (tree: any[], level: number[], subItemsField?: string) => any[];
112
+ /**
113
+ * Moves the targeted item in the tree to another position.
114
+ *
115
+ * @param {any[]} data - The data tree.
116
+ * @param {number[]} target - The level of the target tree item which will be moved.
117
+ * @param {number[] | null} destination - The level of the destination tree item where the target item will be moved in.
118
+ * If it is null, the target item will be added at the root level.
119
+ * @param {string} subItemsField - The field which points to the subitems collection of each data item.
120
+ * @returns {any[]} - The new data tree.
121
+ */
122
+ export declare const moveTreeItem: (data: any[], target: number[], destination: number[] | null, subItemsField: string) => any[];
@@ -6,15 +6,15 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import { getNestedValue as f } from "./main.mjs";
9
- import { orderBy as i, filterBy as v } from "@progress/kendo-vue-data-tools";
10
- import { extendDataItem as T, mapTree as x, mapTreeItem as B, getItemPath as D } from "@progress/kendo-vue-common";
9
+ import { filterBy as i, orderBy as v } from "@progress/kendo-vue-data-tools";
10
+ import { extendDataItem as T, getItemPath as x, mapTree as B, mapTreeItem as D } from "@progress/kendo-vue-common";
11
11
  function w(e, t, n) {
12
- return i(e, t, n);
12
+ return v(e, t, n);
13
13
  }
14
14
  function E(e, t, n) {
15
- return v(e, t, n);
15
+ return i(e, t, n);
16
16
  }
17
- const m = (e, t, n) => x(e, t, n), d = (e, t, n, o) => B(e, t, n, o);
17
+ const m = (e, t, n) => B(e, t, n), d = (e, t, n, o) => D(e, t, n, o);
18
18
  function I(e, t, n) {
19
19
  let o = [];
20
20
  const r = [];
@@ -78,7 +78,7 @@ const k = (e, t, n) => {
78
78
  e,
79
79
  t,
80
80
  (r) => n(r) ? { ...r, [t]: o(r[t] || []) } : r
81
- ), u = (e, t, n) => D(e, t, n), q = (e, t, n, o) => {
81
+ ), u = (e, t, n) => x(e, t, n), q = (e, t, n, o) => {
82
82
  const r = [...e], a = u(r, t, o), c = a.pop(), h = a.pop(), l = t[t.length - 1];
83
83
  if (n) {
84
84
  const s = u(r, n, o).pop();
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { DataItemWrapper } from '../interfaces/DataItemWrapper';
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare function getNestedValue(fieldName: string | undefined, dataItem: any): any;
13
+ /**
14
+ * @hidden
15
+ */
16
+ export declare function setHeaderRowsTop(table: HTMLTableElement, toolbarHeight: number, rowHeight?: (row: HTMLTableRowElement) => string | undefined): void;
17
+ /**
18
+ * @hidden
19
+ */
20
+ export declare function tableRowsVirtualization(args: {
21
+ rows: DataItemWrapper[];
22
+ tableViewPortHeight: number;
23
+ scrollTop: number;
24
+ }): DataItemWrapper[];