@progress/kendo-vue-grid 8.3.0 → 8.4.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.
- package/BaseCSVExport.d.ts +98 -0
- package/BaseCSVExport.js +8 -0
- package/BaseCSVExport.mjs +121 -0
- package/Grid.d.ts +17 -14
- package/Grid.js +1 -1
- package/Grid.mjs +195 -177
- package/GridCsvExportButton.d.ts +98 -0
- package/GridCsvExportButton.js +8 -0
- package/GridCsvExportButton.mjs +71 -0
- package/GridState.d.ts +6 -14
- package/RootGrid.d.ts +6 -14
- package/common.d.ts +3 -7
- package/common.js +1 -1
- package/common.mjs +3 -1
- package/dist/cdn/js/kendo-vue-grid.js +1 -1
- package/index.d.mts +2 -0
- package/index.d.ts +2 -0
- package/index.js +1 -1
- package/index.mjs +27 -24
- package/interfaces/GridProps.d.ts +83 -7
- package/messages/main.d.ts +5 -0
- package/messages/main.js +2 -2
- package/messages/main.mjs +111 -109
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +15 -13
- package/utils/dataProcessing.d.ts +68 -0
- package/utils/dataProcessing.js +8 -0
- package/utils/dataProcessing.mjs +49 -0
package/messages/main.mjs
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
const e = "grid.noRecords", r = "grid.selectAllRows", t = "grid.pagerInfo", o = "grid.pagerFirstPage", l = "grid.pagerPreviousPage", i = "grid.pagerNextPage", a = "grid.pagerLastPage", n = "grid.pagerItemsPerPage", s = "grid.pagerPage", g = "grid.pagerPageSelection", d = "grid.pagerOf", p = "grid.pagerTotalPages", c = "grid.groupPanelEmpty", u = "grid.groupColumn",
|
|
8
|
+
const e = "grid.noRecords", r = "grid.selectAllRows", t = "grid.pagerInfo", o = "grid.pagerFirstPage", l = "grid.pagerPreviousPage", i = "grid.pagerNextPage", a = "grid.pagerLastPage", n = "grid.pagerItemsPerPage", s = "grid.pagerPage", g = "grid.pagerPageSelection", d = "grid.pagerOf", p = "grid.pagerTotalPages", c = "grid.groupPanelEmpty", u = "grid.groupColumn", C = "grid.ungroupColumn", b = "grid.columnMenu", A = "grid.filterApplyButton", m = "grid.filterClearButton", f = "grid.filterClearAllButton", h = "grid.filterResetButton", L = "grid.filterSubmitButton", P = "grid.filterTitle", S = "grid.sortAscending", T = "grid.sortDescending", I = "grid.sortClearButton", B = "grid.sortApplyButton", F = "grid.searchPlaceholder", x = "grid.searchboxPlaceholder", D = "grid.exportPDF", O = "grid.exportCSV", y = "grid.filterCheckAll", w = "grid.filterChooseOperator", E = "grid.filterSelectAll", R = "grid.filterSelectedItems", G = "grid.sortAriaLabel", v = "grid.sortableColumnAriaLabel", M = "grid.sortableColumnAscendingAriaLabel", q = "grid.sortableColumnDescendingAriaLabel", N = "grid.editDialogTitle", k = "grid.editDialogSaveButtonTitle", U = "grid.editDialogCancelButtonTitle", W = "grid.filterAriaLabel", H = "grid.numericFilterAriaLabel", V = "grid.groupPanelAriaLabel", z = "grid.groupExpand", j = "grid.groupCollapse", J = "grid.groupClearButton", K = "grid.groupApplyButton", Q = "grid.detailExpand", X = "grid.detailCollapse", Y = "grid.selectRow", Z = "grid.gridAriaLabel", _ = "grid.gridRowReorderAriaLabel", $ = "grid.gridPinCellAriaLabel", ee = "grid.gridPinToTop", re = "grid.gridPinToBottom", te = "grid.gridUnpin", oe = "grid.gridAdaptiveColumnMenuFilterTitle", le = "grid.columnMenuColumnChooserTitle", ie = "grid.columnMenuColumnChooserSelectedItems", ae = "grid.adaptiveColumnMenuChooserTitle", ne = "grid.adaptiveColumnMenuChooserSubTitle", se = "grid.columnChooserApplyButton", ge = "grid.columnChooserResetButton", de = "grid.adaptiveColumnMenuCheckboxFilterTitle", pe = "grid.adaptiveToolbarSortTitle", ce = "grid.adaptiveToolbarGroupTitle", ue = "grid.toolbarSort", Ce = "grid.dateFilterAriaLabel", be = "grid.textFilterAriaLabel", Ae = "grid.booleanFilterAriaLabel", me = "grid.groupHeaderAriaLabel", fe = "grid.groupCaretAriaLabelCollapse", he = "grid.groupCaretAriaLabelExpand", Le = "grid.expandDetailTemplateAriaLabel", Pe = "grid.collapseDetailTemplateAriaLabel", Se = "grid.toolbarAI", Te = "grid.aIResponseData", Ie = "grid.generatedWithAI", Be = "grid.toolbarAIApply", Fe = "grid.toolbarGroup", xe = "grid.toolbarFilter", De = "grid.toolbarColumnsChooser", Oe = "grid.toolbarCheckboxFilter", ye = "grid.headerGroupSpacerAccessibleLabel", we = "grid.pinnedTopRows", Ee = "grid.pinnedBottomRows", Re = {
|
|
9
9
|
[Q]: "Expand detail row",
|
|
10
|
-
[
|
|
10
|
+
[X]: "Collapse detail row",
|
|
11
11
|
[z]: "Expand group",
|
|
12
12
|
[j]: "Collapse Group",
|
|
13
13
|
[J]: "Clear grouping",
|
|
@@ -21,27 +21,27 @@ const e = "grid.noRecords", r = "grid.selectAllRows", t = "grid.pagerInfo", o =
|
|
|
21
21
|
[h]: "Reset",
|
|
22
22
|
[L]: "Filter",
|
|
23
23
|
[P]: "Filter",
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
24
|
+
[S]: "Sort Ascending",
|
|
25
|
+
[T]: "Sort Descending",
|
|
26
|
+
[I]: "Clear sorting",
|
|
27
27
|
[B]: "Done",
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
28
|
+
[G]: "Sortable",
|
|
29
|
+
[pe]: "Sort by",
|
|
30
|
+
[ce]: "Group by",
|
|
31
|
+
[ue]: "Sort",
|
|
32
|
+
[Se]: "AI Assistant",
|
|
33
|
+
[Be]: "Apply",
|
|
34
34
|
[Te]: `Operation is successful. Data is:
|
|
35
35
|
`,
|
|
36
36
|
[Ie]: "Generated with AI",
|
|
37
|
-
[
|
|
38
|
-
[Fe]: "Filter",
|
|
39
|
-
[De]: "Columns",
|
|
37
|
+
[Fe]: "Group",
|
|
40
38
|
[xe]: "Filter",
|
|
39
|
+
[De]: "Columns",
|
|
40
|
+
[Oe]: "Filter",
|
|
41
41
|
[u]: "Group Column",
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
42
|
+
[C]: "Ungroup Column",
|
|
43
|
+
[ye]: "Group",
|
|
44
|
+
[b]: "Column menu",
|
|
45
45
|
[n]: "items per page",
|
|
46
46
|
[t]: "{0} - {1} of {2} items",
|
|
47
47
|
[o]: "Go to the first page",
|
|
@@ -53,46 +53,47 @@ const e = "grid.noRecords", r = "grid.selectAllRows", t = "grid.pagerInfo", o =
|
|
|
53
53
|
[d]: "of",
|
|
54
54
|
[p]: "{0}",
|
|
55
55
|
[F]: "Search",
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[O]: "
|
|
59
|
-
[
|
|
60
|
-
[N]: "
|
|
61
|
-
[k]: "
|
|
62
|
-
[
|
|
56
|
+
[x]: "Search...",
|
|
57
|
+
[D]: "Export PDF",
|
|
58
|
+
[O]: "Export CSV",
|
|
59
|
+
[y]: "Check All",
|
|
60
|
+
[N]: "Edit Dialog",
|
|
61
|
+
[k]: "Save",
|
|
62
|
+
[U]: "Cancel",
|
|
63
|
+
[w]: "Choose Operator",
|
|
63
64
|
[R]: "selected items",
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
[
|
|
65
|
+
[E]: "Select All",
|
|
66
|
+
[v]: "Sortable Column",
|
|
67
|
+
[M]: "Sorted in ascending order",
|
|
68
|
+
[q]: "Sorted in descending order",
|
|
69
|
+
[W]: "Filter",
|
|
70
|
+
[H]: "Numeric Filter",
|
|
71
|
+
[Ce]: "Date Filter",
|
|
71
72
|
[be]: "Text Filter",
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
[
|
|
75
|
-
[
|
|
76
|
-
[
|
|
77
|
-
[
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
[
|
|
81
|
-
[
|
|
82
|
-
[
|
|
83
|
-
[
|
|
84
|
-
[
|
|
85
|
-
[
|
|
86
|
-
[
|
|
87
|
-
[
|
|
88
|
-
[
|
|
89
|
-
[
|
|
90
|
-
[
|
|
91
|
-
[
|
|
92
|
-
[
|
|
93
|
-
[
|
|
94
|
-
[
|
|
95
|
-
[
|
|
73
|
+
[Ae]: "Boolean Filter",
|
|
74
|
+
[me]: "Group Header",
|
|
75
|
+
[fe]: "Collapse Group",
|
|
76
|
+
[he]: "Expand Group",
|
|
77
|
+
[Le]: "Expand Details",
|
|
78
|
+
[Pe]: "Collapse Details",
|
|
79
|
+
[V]: "Group panel",
|
|
80
|
+
[Z]: "Table",
|
|
81
|
+
[_]: "Drag row",
|
|
82
|
+
[$]: "Pin row",
|
|
83
|
+
[ee]: "Pin row to top",
|
|
84
|
+
[re]: "Pin row to bottom",
|
|
85
|
+
[te]: "Unpin",
|
|
86
|
+
[we]: "Pinned top rows",
|
|
87
|
+
[Ee]: "Pinned bottom rows",
|
|
88
|
+
[Y]: "Select Row",
|
|
89
|
+
[le]: "Columns Chooser",
|
|
90
|
+
[oe]: "Filter by",
|
|
91
|
+
[ae]: "Columns Chooser",
|
|
92
|
+
[ne]: "Selected fields are visible",
|
|
93
|
+
[de]: "Filter by",
|
|
94
|
+
[ie]: "Selected items",
|
|
95
|
+
[se]: "Apply",
|
|
96
|
+
[ge]: "Reset",
|
|
96
97
|
// Filter operators
|
|
97
98
|
"grid.filterEqOperator": "Is equal to",
|
|
98
99
|
"grid.filterNotEqOperator": "Is not equal to",
|
|
@@ -120,59 +121,60 @@ const e = "grid.noRecords", r = "grid.selectAllRows", t = "grid.pagerInfo", o =
|
|
|
120
121
|
};
|
|
121
122
|
export {
|
|
122
123
|
Te as aIResponseData,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
124
|
+
de as adaptiveColumnMenuCheckboxFilterTitle,
|
|
125
|
+
ne as adaptiveColumnMenuChooserSubTitle,
|
|
126
|
+
ae as adaptiveColumnMenuChooserTitle,
|
|
127
|
+
oe as adaptiveColumnMenuFilterTitle,
|
|
128
|
+
ce as adaptiveToolbarGroupTitle,
|
|
129
|
+
pe as adaptiveToolbarSortTitle,
|
|
130
|
+
Ae as booleanFilterAriaLabel,
|
|
131
|
+
Pe as collapseDetailAriaLabel,
|
|
132
|
+
se as columnChooserApplyButton,
|
|
133
|
+
ge as columnChooserResetButton,
|
|
134
|
+
b as columnMenu,
|
|
135
|
+
ie as columnMenuColumnChooserSelectedItems,
|
|
136
|
+
le as columnMenuColumnChooserTitle,
|
|
137
|
+
Ce as dateFilterAriaLabel,
|
|
138
|
+
X as detailCollapse,
|
|
138
139
|
Q as detailExpand,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
U as editDialogCancelButtonTitle,
|
|
141
|
+
k as editDialogSaveButtonTitle,
|
|
142
|
+
N as editDialogTitle,
|
|
143
|
+
Le as expandDetailAriaLabel,
|
|
144
|
+
O as exportCSV,
|
|
145
|
+
D as exportPDF,
|
|
144
146
|
A as filterApplyButton,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
W as filterAriaLabel,
|
|
148
|
+
y as filterCheckAll,
|
|
149
|
+
w as filterChooseOperator,
|
|
148
150
|
f as filterClearAllButton,
|
|
149
151
|
m as filterClearButton,
|
|
150
152
|
h as filterResetButton,
|
|
151
|
-
|
|
153
|
+
E as filterSelectAll,
|
|
152
154
|
R as filterSelectedItems,
|
|
153
155
|
L as filterSubmitButton,
|
|
154
156
|
P as filterTitle,
|
|
155
157
|
Ie as generatedWithAI,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
Z as gridAriaLabel,
|
|
159
|
+
$ as gridPinCellAriaLabel,
|
|
160
|
+
re as gridPinToBottom,
|
|
161
|
+
ee as gridPinToTop,
|
|
162
|
+
_ as gridRowReorderAriaLabel,
|
|
163
|
+
te as gridUnpin,
|
|
162
164
|
K as groupApplyButton,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
+
fe as groupCaretAriaLabelCollapse,
|
|
166
|
+
he as groupCaretAriaLabelExpand,
|
|
165
167
|
J as groupClearButton,
|
|
166
168
|
j as groupCollapse,
|
|
167
169
|
u as groupColumn,
|
|
168
170
|
z as groupExpand,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
+
me as groupHeaderAriaLabel,
|
|
172
|
+
V as groupPanelAriaLabel,
|
|
171
173
|
c as groupPanelEmpty,
|
|
172
|
-
|
|
174
|
+
ye as headerGroupSpacerAccessibleLabel,
|
|
173
175
|
Re as messages,
|
|
174
176
|
e as noRecords,
|
|
175
|
-
|
|
177
|
+
H as numericFilterAriaLabel,
|
|
176
178
|
o as pagerFirstPage,
|
|
177
179
|
t as pagerInfo,
|
|
178
180
|
n as pagerItemPerPage,
|
|
@@ -183,27 +185,27 @@ export {
|
|
|
183
185
|
g as pagerPageSelection,
|
|
184
186
|
l as pagerPreviousPage,
|
|
185
187
|
p as pagerTotalPages,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
+
Ee as pinnedBottomRowsAriaLabel,
|
|
189
|
+
we as pinnedTopRowsAriaLabel,
|
|
188
190
|
F as searchPlaceholder,
|
|
189
|
-
|
|
191
|
+
x as searchboxPlaceholder,
|
|
190
192
|
r as selectAllRows,
|
|
191
|
-
|
|
193
|
+
Y as selectRow,
|
|
192
194
|
B as sortApplyButton,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
195
|
+
G as sortAriaLabel,
|
|
196
|
+
S as sortAscending,
|
|
197
|
+
I as sortClearButton,
|
|
198
|
+
T as sortDescending,
|
|
199
|
+
v as sortableColumnAriaLabel,
|
|
200
|
+
M as sortableColumnAscendingAriaLabel,
|
|
201
|
+
q as sortableColumnDescendingAriaLabel,
|
|
200
202
|
be as textFilterAriaLabel,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
Se as toolbarAI,
|
|
204
|
+
Be as toolbarAIApply,
|
|
205
|
+
Oe as toolbarCheckboxFilter,
|
|
204
206
|
De as toolbarColumnsChooser,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
xe as toolbarFilter,
|
|
208
|
+
Fe as toolbarGroup,
|
|
209
|
+
ue as toolbarSort,
|
|
210
|
+
C as ungroupColumn
|
|
209
211
|
};
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-grid",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-grid",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1778509558,version:"8.4.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "8.
|
|
13
|
+
publishDate: 1778509558,
|
|
14
|
+
version: "8.4.0-develop.1",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-grid",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0-develop.1",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -24,20 +24,22 @@
|
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"peerDependencies": {
|
|
27
|
+
"@progress/kendo-csv": "^1.0.0",
|
|
27
28
|
"@progress/kendo-data-query": "^1.7.0",
|
|
28
29
|
"@progress/kendo-drawing": "^1.21.1",
|
|
30
|
+
"@progress/kendo-file-saver": "^1.1.2",
|
|
29
31
|
"@progress/kendo-licensing": "^1.7.2",
|
|
30
|
-
"@progress/kendo-vue-animation": "8.
|
|
31
|
-
"@progress/kendo-vue-buttons": "8.
|
|
32
|
-
"@progress/kendo-vue-common": "8.
|
|
33
|
-
"@progress/kendo-vue-data-tools": "8.
|
|
34
|
-
"@progress/kendo-vue-dateinputs": "8.
|
|
35
|
-
"@progress/kendo-vue-indicators": "8.
|
|
36
|
-
"@progress/kendo-vue-dropdowns": "8.
|
|
37
|
-
"@progress/kendo-vue-inputs": "8.
|
|
38
|
-
"@progress/kendo-vue-intl": "8.
|
|
39
|
-
"@progress/kendo-vue-popup": "8.
|
|
40
|
-
"@progress/kendo-vue-layout": "8.
|
|
32
|
+
"@progress/kendo-vue-animation": "8.4.0-develop.1",
|
|
33
|
+
"@progress/kendo-vue-buttons": "8.4.0-develop.1",
|
|
34
|
+
"@progress/kendo-vue-common": "8.4.0-develop.1",
|
|
35
|
+
"@progress/kendo-vue-data-tools": "8.4.0-develop.1",
|
|
36
|
+
"@progress/kendo-vue-dateinputs": "8.4.0-develop.1",
|
|
37
|
+
"@progress/kendo-vue-indicators": "8.4.0-develop.1",
|
|
38
|
+
"@progress/kendo-vue-dropdowns": "8.4.0-develop.1",
|
|
39
|
+
"@progress/kendo-vue-inputs": "8.4.0-develop.1",
|
|
40
|
+
"@progress/kendo-vue-intl": "8.4.0-develop.1",
|
|
41
|
+
"@progress/kendo-vue-popup": "8.4.0-develop.1",
|
|
42
|
+
"@progress/kendo-vue-layout": "8.4.0-develop.1",
|
|
41
43
|
"@progress/kendo-svg-icons": "^4.4.0",
|
|
42
44
|
"vue": "^3.0.2"
|
|
43
45
|
},
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
"package": {
|
|
59
61
|
"productName": "Kendo UI for Vue",
|
|
60
62
|
"productCode": "KENDOUIVUE",
|
|
61
|
-
"publishDate":
|
|
63
|
+
"publishDate": 1778509558,
|
|
62
64
|
"licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/"
|
|
63
65
|
}
|
|
64
66
|
},
|
|
@@ -0,0 +1,68 @@
|
|
|
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 { CompositeFilterDescriptor, GroupDescriptor, SortDescriptor } from '@progress/kendo-data-query';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface AutoProcessDataConfig {
|
|
13
|
+
group?: boolean;
|
|
14
|
+
sort?: boolean;
|
|
15
|
+
filter?: boolean;
|
|
16
|
+
search?: boolean;
|
|
17
|
+
page?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Normalizes the autoProcessData prop value to a consistent config object.
|
|
21
|
+
* When `true` is passed, returns all options enabled.
|
|
22
|
+
* When an object is passed, returns it as-is.
|
|
23
|
+
* When falsy, returns `undefined`.
|
|
24
|
+
*
|
|
25
|
+
* @param autoProcessData - The autoProcessData prop value (boolean or config object)
|
|
26
|
+
* @returns Normalized config object or undefined
|
|
27
|
+
*
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
export declare const normalizeAutoProcessData: (autoProcessData: boolean | AutoProcessDataConfig | undefined) => AutoProcessDataConfig | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export interface ProcessDataOptions {
|
|
35
|
+
autoProcessData: AutoProcessDataConfig;
|
|
36
|
+
group?: GroupDescriptor[];
|
|
37
|
+
defaultGroup?: GroupDescriptor[];
|
|
38
|
+
sort?: SortDescriptor[];
|
|
39
|
+
defaultSort?: SortDescriptor[];
|
|
40
|
+
filter?: CompositeFilterDescriptor;
|
|
41
|
+
defaultFilter?: CompositeFilterDescriptor;
|
|
42
|
+
search?: CompositeFilterDescriptor;
|
|
43
|
+
pageable?: boolean | object;
|
|
44
|
+
take?: number;
|
|
45
|
+
skip?: number;
|
|
46
|
+
/** When provided, overrides the computed total in the result. Used internally by the Grid for virtual scrolling scenarios. */
|
|
47
|
+
total?: number;
|
|
48
|
+
isVirtualScroll?: boolean;
|
|
49
|
+
includePaging?: boolean;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
*/
|
|
54
|
+
export interface ProcessDataResult {
|
|
55
|
+
data: any[];
|
|
56
|
+
total: number;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Processes data based on autoProcessData configuration.
|
|
60
|
+
* Applies grouping, sorting, filtering, and optionally paging.
|
|
61
|
+
*
|
|
62
|
+
* @param data - The raw data array to process
|
|
63
|
+
* @param options - Processing options including autoProcessData config and descriptors
|
|
64
|
+
* @returns Processed data and total count
|
|
65
|
+
*
|
|
66
|
+
* @hidden
|
|
67
|
+
*/
|
|
68
|
+
export declare const processData: (data: any[], options: ProcessDataOptions) => ProcessDataResult;
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("@progress/kendo-data-query"),y=require("@progress/kendo-vue-data-tools"),F=t=>t===!0?{group:!0,sort:!0,filter:!0,search:!0,page:!0}:t||void 0,T=(t,a)=>{const{autoProcessData:e,group:i,defaultGroup:u,sort:c,defaultSort:l,filter:n,defaultFilter:p,search:d,pageable:o,take:s,skip:f,total:r,isVirtualScroll:g=!1,includePaging:v=!0}=a,D=v&&e.page&&!(g&&!o),k=e.group?i||u:void 0,P=e.sort?c||l:void 0,S=e.filter?n||p:void 0,{data:b,total:m}=h.process(t,{group:k,sort:P,filter:y.combineFilters(S,e.search?d:void 0),...D?{take:o?s||10:s,skip:f||0}:{}});return{data:b,total:r!=null?r:m}};exports.normalizeAutoProcessData=F;exports.processData=T;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { process as S } from "@progress/kendo-data-query";
|
|
9
|
+
import { combineFilters as b } from "@progress/kendo-vue-data-tools";
|
|
10
|
+
const z = (t) => t === !0 ? {
|
|
11
|
+
group: !0,
|
|
12
|
+
sort: !0,
|
|
13
|
+
filter: !0,
|
|
14
|
+
search: !0,
|
|
15
|
+
page: !0
|
|
16
|
+
} : t || void 0, A = (t, a) => {
|
|
17
|
+
const {
|
|
18
|
+
autoProcessData: e,
|
|
19
|
+
group: i,
|
|
20
|
+
defaultGroup: c,
|
|
21
|
+
sort: u,
|
|
22
|
+
defaultSort: l,
|
|
23
|
+
filter: p,
|
|
24
|
+
defaultFilter: f,
|
|
25
|
+
search: n,
|
|
26
|
+
pageable: o,
|
|
27
|
+
take: s,
|
|
28
|
+
skip: d,
|
|
29
|
+
total: r,
|
|
30
|
+
isVirtualScroll: g = !1,
|
|
31
|
+
includePaging: v = !0
|
|
32
|
+
} = a, m = v && e.page && !(g && !o), k = e.group ? i || c : void 0, h = e.sort ? u || l : void 0, D = e.filter ? p || f : void 0, { data: F, total: P } = S(t, {
|
|
33
|
+
group: k,
|
|
34
|
+
sort: h,
|
|
35
|
+
filter: b(D, e.search ? n : void 0),
|
|
36
|
+
...m ? {
|
|
37
|
+
take: o ? s || 10 : s,
|
|
38
|
+
skip: d || 0
|
|
39
|
+
} : {}
|
|
40
|
+
});
|
|
41
|
+
return {
|
|
42
|
+
data: F,
|
|
43
|
+
total: r != null ? r : P
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
z as normalizeAutoProcessData,
|
|
48
|
+
A as processData
|
|
49
|
+
};
|