@progress/kendo-react-data-tools 7.2.4-develop.3 → 7.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.
- package/clipboard/clipboard.service.js +8 -0
- package/clipboard/clipboard.service.mjs +27 -0
- package/clipboard/common.js +13 -0
- package/clipboard/common.mjs +64 -0
- package/columnmenu/ColumnMenu.js +8 -0
- package/columnmenu/ColumnMenu.mjs +256 -0
- package/columnmenu/ColumnMenuFilterForm.js +8 -0
- package/columnmenu/ColumnMenuFilterForm.mjs +47 -0
- package/columnmenu/ColumnMenuFilterLogic.js +8 -0
- package/columnmenu/ColumnMenuFilterLogic.mjs +29 -0
- package/columnmenu/ColumnMenuFilters.js +8 -0
- package/columnmenu/ColumnMenuFilters.mjs +98 -0
- package/columnmenu/ColumnMenuItem.js +8 -0
- package/columnmenu/ColumnMenuItem.mjs +26 -0
- package/columnmenu/ColumnMenuOperators.js +8 -0
- package/columnmenu/ColumnMenuOperators.mjs +109 -0
- package/dist/cdn/js/kendo-react-datatools.js +8 -10
- package/drag/ColumnDraggable.js +8 -0
- package/drag/ColumnDraggable.mjs +40 -0
- package/drag/ColumnResize.js +8 -0
- package/drag/ColumnResize.mjs +58 -0
- package/drag/ColumnResizer.js +8 -0
- package/drag/ColumnResizer.mjs +56 -0
- package/drag/CommonDragLogic.js +8 -0
- package/drag/CommonDragLogic.mjs +89 -0
- package/drag/DragClue.js +8 -0
- package/drag/DragClue.mjs +52 -0
- package/drag/DropClue.js +8 -0
- package/drag/DropClue.mjs +43 -0
- package/filter/Expression.js +8 -0
- package/filter/Expression.mjs +113 -0
- package/filter/Filter.js +8 -0
- package/filter/Filter.mjs +84 -0
- package/filter/Group.js +8 -0
- package/filter/Group.mjs +163 -0
- package/filter/filters/BooleanFilter.js +8 -0
- package/filter/filters/BooleanFilter.mjs +43 -0
- package/filter/filters/DateFilter.js +8 -0
- package/filter/filters/DateFilter.mjs +43 -0
- package/filter/filters/EnumFilter.js +8 -0
- package/filter/filters/EnumFilter.mjs +59 -0
- package/filter/filters/NumericFilter.js +8 -0
- package/filter/filters/NumericFilter.mjs +54 -0
- package/filter/filters/TextFilter.js +8 -0
- package/filter/filters/TextFilter.mjs +46 -0
- package/filter/operators.js +8 -0
- package/filter/operators.mjs +114 -0
- package/filteringCells/BooleanFilter.js +8 -0
- package/filteringCells/BooleanFilter.mjs +49 -0
- package/filteringCells/DateFilter.js +8 -0
- package/filteringCells/DateFilter.mjs +22 -0
- package/filteringCells/FilterComponent.js +8 -0
- package/filteringCells/FilterComponent.mjs +81 -0
- package/filteringCells/NumericFilter.js +8 -0
- package/filteringCells/NumericFilter.mjs +22 -0
- package/filteringCells/TextFilter.js +8 -0
- package/filteringCells/TextFilter.mjs +22 -0
- package/header/ColumnProps.js +8 -0
- package/header/ColumnProps.mjs +19 -0
- package/header/FilterRow.js +8 -0
- package/header/FilterRow.mjs +54 -0
- package/header/Header.js +8 -0
- package/header/Header.mjs +36 -0
- package/header/HeaderCell.js +8 -0
- package/header/HeaderCell.mjs +18 -0
- package/header/HeaderRow.js +8 -0
- package/header/HeaderRow.mjs +132 -0
- package/header/HeaderSelectionCell.js +8 -0
- package/header/HeaderSelectionCell.mjs +32 -0
- package/header/HeaderThElement.js +8 -0
- package/header/HeaderThElement.mjs +47 -0
- package/header/SortSettings.js +8 -0
- package/header/SortSettings.mjs +12 -0
- package/header/utils/index.js +8 -0
- package/header/utils/index.mjs +130 -0
- package/index.d.mts +2398 -5
- package/index.d.ts +2398 -32
- package/index.js +8 -10
- package/index.mjs +152 -2987
- package/messages/index.js +8 -0
- package/messages/index.mjs +167 -0
- package/navigation/TableKeyboardNavigation.js +8 -0
- package/navigation/TableKeyboardNavigation.mjs +142 -0
- package/navigation/TableKeyboardNavigationContext.js +8 -0
- package/navigation/TableKeyboardNavigationContext.mjs +14 -0
- package/navigation/constants.js +8 -0
- package/navigation/constants.mjs +43 -0
- package/navigation/hooks.js +8 -0
- package/navigation/hooks.mjs +22 -0
- package/navigation/utils.js +8 -0
- package/navigation/utils.mjs +107 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +9 -9
- package/pager/Pager.js +8 -0
- package/pager/Pager.mjs +234 -0
- package/pager/PagerInput.js +8 -0
- package/pager/PagerInput.mjs +38 -0
- package/pager/PagerNumericButtons.js +8 -0
- package/pager/PagerNumericButtons.mjs +103 -0
- package/pager/PagerPageSizes.js +8 -0
- package/pager/PagerPageSizes.mjs +38 -0
- package/selection/TableSelection.js +8 -0
- package/selection/TableSelection.mjs +123 -0
- package/selection/constants.js +8 -0
- package/selection/constants.mjs +14 -0
- package/selection/utils.js +8 -0
- package/selection/utils.mjs +155 -0
- package/utils/data-operations.js +8 -0
- package/utils/data-operations.mjs +127 -0
- package/utils/group-operations.js +8 -0
- package/utils/group-operations.mjs +32 -0
- package/virtualization/columns.js +8 -0
- package/virtualization/columns.mjs +43 -0
- package/clipboard/clipboard.service.d.ts +0 -17
- package/clipboard/common.d.ts +0 -129
- package/columnmenu/ColumnMenu.d.ts +0 -83
- package/columnmenu/ColumnMenuFilterForm.d.ts +0 -17
- package/columnmenu/ColumnMenuFilterLogic.d.ts +0 -7
- package/columnmenu/ColumnMenuFilters.d.ts +0 -23
- package/columnmenu/ColumnMenuItem.d.ts +0 -15
- package/columnmenu/ColumnMenuOperators.d.ts +0 -69
- package/columnmenu/index.d.ts +0 -10
- package/drag/ColumnDraggable.d.ts +0 -34
- package/drag/ColumnResize.d.ts +0 -36
- package/drag/ColumnResizer.d.ts +0 -32
- package/drag/CommonDragLogic.d.ts +0 -42
- package/drag/DragClue.d.ts +0 -26
- package/drag/DropClue.d.ts +0 -23
- package/filter/Expression.d.ts +0 -50
- package/filter/FieldSettings.d.ts +0 -34
- package/filter/Filter.d.ts +0 -83
- package/filter/Group.d.ts +0 -58
- package/filter/filters/BooleanFilter.d.ts +0 -47
- package/filter/filters/DateFilter.d.ts +0 -30
- package/filter/filters/EnumFilter.d.ts +0 -47
- package/filter/filters/NumericFilter.d.ts +0 -37
- package/filter/filters/TextFilter.d.ts +0 -44
- package/filter/filters/index.d.ts +0 -9
- package/filter/index.d.ts +0 -10
- package/filter/operators.d.ts +0 -77
- package/filteringCells/BooleanFilter.d.ts +0 -12
- package/filteringCells/DateFilter.d.ts +0 -12
- package/filteringCells/FilterCellProps.d.ts +0 -39
- package/filteringCells/FilterComponent.d.ts +0 -21
- package/filteringCells/FilterComponentProps.d.ts +0 -27
- package/filteringCells/FilterOperator.d.ts +0 -17
- package/filteringCells/NumericFilter.d.ts +0 -12
- package/filteringCells/TextFilter.d.ts +0 -12
- package/filteringCells/index.d.ts +0 -12
- package/header/CellProps.d.ts +0 -72
- package/header/ColumnProps.d.ts +0 -157
- package/header/FilterRow.d.ts +0 -29
- package/header/Header.d.ts +0 -22
- package/header/HeaderCell.d.ts +0 -51
- package/header/HeaderRow.d.ts +0 -41
- package/header/HeaderSelectionCell.d.ts +0 -15
- package/header/HeaderThElement.d.ts +0 -26
- package/header/SortSettings.d.ts +0 -30
- package/header/index.d.ts +0 -14
- package/header/utils/index.d.ts +0 -87
- package/messages/index.d.ts +0 -394
- package/navigation/TableKeyboardNavigation.d.ts +0 -72
- package/navigation/TableKeyboardNavigationContext.d.ts +0 -10
- package/navigation/TableKeyboardNavigationContextType.d.ts +0 -11
- package/navigation/TableKeyboardNavigationStateType.d.ts +0 -14
- package/navigation/constants.d.ts +0 -58
- package/navigation/hooks.d.ts +0 -16
- package/navigation/utils.d.ts +0 -149
- package/package-metadata.d.ts +0 -9
- package/pager/Pager.d.ts +0 -208
- package/pager/PagerInput.d.ts +0 -29
- package/pager/PagerNumericButtons.d.ts +0 -32
- package/pager/PagerPageSizes.d.ts +0 -30
- package/selection/TableSelectableSettings.d.ts +0 -35
- package/selection/TableSelection.d.ts +0 -15
- package/selection/constants.d.ts +0 -10
- package/selection/events.d.ts +0 -98
- package/selection/utils.d.ts +0 -70
- package/utils/DataItemWrapper.d.ts +0 -14
- package/utils/data-operations.d.ts +0 -98
- package/utils/group-operations.d.ts +0 -33
- package/virtualization/columns.d.ts +0 -19
- package/virtualization/index.d.ts +0 -5
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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 client";
|
|
9
|
+
import { getter as A, mapTree as B, extendDataItem as N, Keys as O, hasRelativeStackingContext as F } from "@progress/kendo-react-common";
|
|
10
|
+
import { TABLE_ROW_INDEX_ATTRIBUTE as M, TABLE_COL_INDEX_ATTRIBUTE as G } from "./constants.mjs";
|
|
11
|
+
const U = "items", x = {}, X = (e, t) => !e || Array.isArray(e) && e.length === 0 ? [t] : e.findIndex((o) => o === t) > -1 ? e.filter((o) => o !== t) : [...e, t], v = (e, t) => {
|
|
12
|
+
let n = e;
|
|
13
|
+
for (; n; ) {
|
|
14
|
+
if (n.tagName === t)
|
|
15
|
+
return n;
|
|
16
|
+
if (n.tagName === "TABLE")
|
|
17
|
+
return null;
|
|
18
|
+
n = n.parentElement;
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
}, k = (e) => {
|
|
22
|
+
if (!e)
|
|
23
|
+
return;
|
|
24
|
+
const t = e.getAttribute(M);
|
|
25
|
+
return t ? parseInt(t, 10) : void 0;
|
|
26
|
+
}, H = (e) => {
|
|
27
|
+
if (!e)
|
|
28
|
+
return;
|
|
29
|
+
const t = e.getAttribute(G);
|
|
30
|
+
return t ? parseInt(t, 10) : void 0;
|
|
31
|
+
}, z = (e) => {
|
|
32
|
+
const t = e.subItemsField || U, n = A(e.dataItemKey);
|
|
33
|
+
return B(
|
|
34
|
+
e.data,
|
|
35
|
+
t,
|
|
36
|
+
(o) => N(o, t, {
|
|
37
|
+
[e.selectedField]: e.selectedState[n(o)]
|
|
38
|
+
})
|
|
39
|
+
);
|
|
40
|
+
}, J = (e) => {
|
|
41
|
+
const { event: t, dataItemKey: n, selectedState: o } = e, { syntheticEvent: a, nativeEvent: s, dataItems: f, componentId: l, mode: g, cell: E, selectedField: S } = t, { target: T, ctrlKey: p, metaKey: y, altKey: I, shiftKey: D } = s;
|
|
42
|
+
if (a.isDefaultPrevented() || s.keyCode !== O.enter)
|
|
43
|
+
return o;
|
|
44
|
+
const C = v(T, "TD"), i = v(T, "TR"), r = H(C), m = k(i);
|
|
45
|
+
let d = {};
|
|
46
|
+
return C && i && m !== void 0 && r !== void 0 && (d = V({
|
|
47
|
+
selectedState: o,
|
|
48
|
+
dataItemKey: n,
|
|
49
|
+
event: {
|
|
50
|
+
ctrlKey: p,
|
|
51
|
+
metaKey: y,
|
|
52
|
+
altKey: I,
|
|
53
|
+
shiftKey: D,
|
|
54
|
+
dataItems: f,
|
|
55
|
+
cell: E,
|
|
56
|
+
mode: g,
|
|
57
|
+
selectedField: S,
|
|
58
|
+
componentId: l,
|
|
59
|
+
startColIndex: r,
|
|
60
|
+
endColIndex: r,
|
|
61
|
+
startRowIndex: m,
|
|
62
|
+
endRowIndex: m,
|
|
63
|
+
isDrag: !1,
|
|
64
|
+
syntheticEvent: a,
|
|
65
|
+
nativeEvent: s,
|
|
66
|
+
target: t.target,
|
|
67
|
+
dataItem: null
|
|
68
|
+
}
|
|
69
|
+
})), d;
|
|
70
|
+
}, V = (e) => {
|
|
71
|
+
const { event: t, dataItemKey: n, selectedState: o } = e, {
|
|
72
|
+
dataItems: a,
|
|
73
|
+
startRowIndex: s,
|
|
74
|
+
endRowIndex: f,
|
|
75
|
+
startColIndex: l,
|
|
76
|
+
endColIndex: g,
|
|
77
|
+
cell: E,
|
|
78
|
+
isDrag: S,
|
|
79
|
+
ctrlKey: T,
|
|
80
|
+
shiftKey: p,
|
|
81
|
+
metaKey: y,
|
|
82
|
+
componentId: I,
|
|
83
|
+
mode: D,
|
|
84
|
+
dataItem: C
|
|
85
|
+
} = t, i = A(n);
|
|
86
|
+
let r = {};
|
|
87
|
+
const m = C !== null;
|
|
88
|
+
if (D === "single") {
|
|
89
|
+
const d = a.slice(s, s + 1)[0], u = i(d);
|
|
90
|
+
x[I] = {
|
|
91
|
+
rowIndex: s,
|
|
92
|
+
colIndex: l
|
|
93
|
+
}, r[u] = E ? [l] : !0;
|
|
94
|
+
} else if (S || !p && !T && !y && !m) {
|
|
95
|
+
S || (x[I] = {
|
|
96
|
+
rowIndex: s,
|
|
97
|
+
colIndex: l
|
|
98
|
+
});
|
|
99
|
+
const d = [];
|
|
100
|
+
for (let c = l; c <= g; c++)
|
|
101
|
+
d.push(c);
|
|
102
|
+
a.slice(s, f + 1).forEach((c) => {
|
|
103
|
+
const R = i(c);
|
|
104
|
+
r[R] = E ? [...d] : !0;
|
|
105
|
+
});
|
|
106
|
+
} else if (T || y || m) {
|
|
107
|
+
x[I] = {
|
|
108
|
+
rowIndex: s,
|
|
109
|
+
colIndex: l
|
|
110
|
+
};
|
|
111
|
+
const u = a.slice(s, f + 1)[0], c = i(u);
|
|
112
|
+
r = { ...o }, r[c] = E && !m ? X(r[c], l) : !r[c];
|
|
113
|
+
} else if (p) {
|
|
114
|
+
const d = x[I] && x[I].rowIndex || 0, u = x[I] && x[I].colIndex || 0, c = Math.min(d, s, f), R = Math.max(d, s, f), K = Math.min(u, l, g), _ = Math.max(u, l, g), h = [];
|
|
115
|
+
for (let w = K; w <= _; w++)
|
|
116
|
+
h.push(w);
|
|
117
|
+
a.slice(c, R + 1).forEach((w) => {
|
|
118
|
+
const L = i(w);
|
|
119
|
+
r[L] = E ? [...h] : !0;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
return r;
|
|
123
|
+
}, W = F(), Q = (e) => {
|
|
124
|
+
if (!e || !W)
|
|
125
|
+
return null;
|
|
126
|
+
let t = e.parentElement;
|
|
127
|
+
for (; t; ) {
|
|
128
|
+
if (window.getComputedStyle(t).transform !== "none")
|
|
129
|
+
return t;
|
|
130
|
+
t = t.parentElement;
|
|
131
|
+
}
|
|
132
|
+
}, Y = (e) => {
|
|
133
|
+
if (e && e.ownerDocument && e !== e.ownerDocument.body) {
|
|
134
|
+
const t = e.getBoundingClientRect();
|
|
135
|
+
return {
|
|
136
|
+
left: t.left - e.scrollLeft,
|
|
137
|
+
top: t.top - e.scrollTop
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
return { left: 0, top: 0 };
|
|
141
|
+
}, Z = (e) => {
|
|
142
|
+
const t = e ? typeof e.enabled == "boolean" ? e.enabled : !0 : !1, n = e ? !!e.drag : !1, o = e && e.mode ? e.mode : "multiple", a = !!(e && e.cell);
|
|
143
|
+
return { enabled: t, drag: n, mode: o, cell: a };
|
|
144
|
+
};
|
|
145
|
+
export {
|
|
146
|
+
v as closestTagName,
|
|
147
|
+
H as getColumnIndex,
|
|
148
|
+
Y as getOffset,
|
|
149
|
+
k as getRowIndex,
|
|
150
|
+
V as getSelectedState,
|
|
151
|
+
J as getSelectedStateFromKeyDown,
|
|
152
|
+
Z as getSelectionOptions,
|
|
153
|
+
Q as relativeContextElement,
|
|
154
|
+
z as setSelectedState
|
|
155
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("@progress/kendo-data-query"),f=require("@progress/kendo-react-common");function g(r,t,e){return e?{...r,[t]:e.length?[...e]:void 0}:r&&r[t]?[...r[t]]:[]}function s(r,t,e){if(r[e]){let n=g(r,e,v.orderBy(g(r,e),t)),o=g(n,e).map(a=>s(a,t,e));return{...n,[e]:o}}return r}function D(r,t,e){let n=v.orderBy(r,t);return n=n.map(o=>s(o,t,e)),n}function y(r,t,e){let n=g(r,e);if(n&&n.length){n=n.map(l=>y(l,t,e));const a={filters:[{filters:t,logic:"and"},{operator:l=>!!(l[e]||[]).length}],logic:"or"},c=v.filterBy(n,a);return g(r,e,c)}return r}function T(r,t,e){let n={[e]:[...r]};return n=y(n,t,e),n[e]||[]}function B(r,t,e){let n=[];const o=[];for(let a=r.length-1;a>=0;a--){const c=r[a];n.push({root:c,data:t(c),level:[a],levelCount:r.length})}for(;n.length>0;){let a=n.pop();if(o.push({dataItem:a.root,level:[...a.level],...e(a.root),levelCount:a.levelCount}),a.data.length)for(let c=a.data.length-1;c>=0;c--){const l=a.data[c];n.push({root:l,data:t(l),level:[...a.level,c],levelCount:a.data.length})}}return o}const P=(r,t,e)=>{const n=h=>!!f.getNestedValue(t,h),o=h=>!!f.getNestedValue(e,h),a=h=>{const p=[];return n(h)&&o(h)&&p.push(...f.getNestedValue(e,h)),p},c=(h,p,u)=>{p.push({...h,level:u}),a(h).forEach(C=>c(C,p,u+1))},l=[];return r.forEach(h=>c(h,l,0)),l},x=(r,t,e,n)=>{let o={},a=[],c;return r.forEach(l=>o[t(l)]={...l}),r.forEach(l=>{c=o[e(l)],c?(c[n]=c[n]||[],c[n].push(o[t(l)])):a.push(o[t(l)])}),a},k=(r,t,e)=>f.extendDataItem(r,t,e),w=(r,t,e)=>[...f.mapTree([{[t]:[...r]}],t,o=>E(o,e,t))[0][t]],E=(r,t,e)=>{const n=r[e]||[],o=n.findIndex(t);if(o!==-1){const a=[...n];return a.splice(o,1),{...r,[e]:a}}return r},S=(r,t,e,n)=>f.mapTree(r,t,o=>e(o)?{...o,[t]:n(o[t]||[])}:o),i=(r,t,e)=>f.getItemPath(r,t,e),d=(r,t,e,n)=>{const o=[...r],a=i(o,t,n),c=a.pop(),l=a.pop(),h=t[t.length-1];if(e){const u=i(o,e,n).pop();(l?l[n]:o).splice(h,1),u[n]=u[n]||[],u[n].push(c)}else(l?l[n]:o).splice(h,1),o.push(c);return o};exports.createDataTree=x;exports.extendDataItem=k;exports.filterBy=T;exports.flatData=B;exports.getItemPath=i;exports.modifySubItems=S;exports.moveTreeItem=d;exports.orderBy=D;exports.removeItems=w;exports.treeToFlat=P;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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 client";
|
|
9
|
+
import { orderBy as v, filterBy as D } from "@progress/kendo-data-query";
|
|
10
|
+
import { extendDataItem as y, mapTree as C, getItemPath as P, getNestedValue as g } from "@progress/kendo-react-common";
|
|
11
|
+
function i(e, t, n) {
|
|
12
|
+
return n ? { ...e, [t]: n.length ? [...n] : void 0 } : e && e[t] ? [...e[t]] : [];
|
|
13
|
+
}
|
|
14
|
+
function s(e, t, n) {
|
|
15
|
+
if (e[n]) {
|
|
16
|
+
let r = i(e, n, v(i(e, n), t)), o = i(r, n).map((c) => s(c, t, n));
|
|
17
|
+
return { ...r, [n]: o };
|
|
18
|
+
}
|
|
19
|
+
return e;
|
|
20
|
+
}
|
|
21
|
+
function $(e, t, n) {
|
|
22
|
+
let r = v(e, t);
|
|
23
|
+
return r = r.map((o) => s(o, t, n)), r;
|
|
24
|
+
}
|
|
25
|
+
function B(e, t, n) {
|
|
26
|
+
let r = i(e, n);
|
|
27
|
+
if (r && r.length) {
|
|
28
|
+
r = r.map((l) => B(l, t, n));
|
|
29
|
+
const a = D(r, {
|
|
30
|
+
filters: [
|
|
31
|
+
{ filters: t, logic: "and" },
|
|
32
|
+
{ operator: (l) => !!(l[n] || []).length }
|
|
33
|
+
],
|
|
34
|
+
logic: "or"
|
|
35
|
+
});
|
|
36
|
+
return i(e, n, a);
|
|
37
|
+
}
|
|
38
|
+
return e;
|
|
39
|
+
}
|
|
40
|
+
function k(e, t, n) {
|
|
41
|
+
let r = { [n]: [...e] };
|
|
42
|
+
return r = B(r, t, n), r[n] || [];
|
|
43
|
+
}
|
|
44
|
+
function N(e, t, n) {
|
|
45
|
+
let r = [];
|
|
46
|
+
const o = [];
|
|
47
|
+
for (let c = e.length - 1; c >= 0; c--) {
|
|
48
|
+
const a = e[c];
|
|
49
|
+
r.push({
|
|
50
|
+
root: a,
|
|
51
|
+
data: t(a),
|
|
52
|
+
level: [c],
|
|
53
|
+
levelCount: e.length
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
for (; r.length > 0; ) {
|
|
57
|
+
let c = r.pop();
|
|
58
|
+
if (o.push({
|
|
59
|
+
dataItem: c.root,
|
|
60
|
+
level: [...c.level],
|
|
61
|
+
...n(c.root),
|
|
62
|
+
levelCount: c.levelCount
|
|
63
|
+
}), c.data.length)
|
|
64
|
+
for (let a = c.data.length - 1; a >= 0; a--) {
|
|
65
|
+
const l = c.data[a];
|
|
66
|
+
r.push({
|
|
67
|
+
root: l,
|
|
68
|
+
data: t(l),
|
|
69
|
+
level: [...c.level, a],
|
|
70
|
+
levelCount: c.data.length
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return o;
|
|
75
|
+
}
|
|
76
|
+
const S = (e, t, n) => {
|
|
77
|
+
const r = (h) => !!g(t, h), o = (h) => !!g(n, h), c = (h) => {
|
|
78
|
+
const f = [];
|
|
79
|
+
return r(h) && o(h) && f.push(...g(n, h)), f;
|
|
80
|
+
}, a = (h, f, p) => {
|
|
81
|
+
f.push({ ...h, level: p }), c(h).forEach((x) => a(x, f, p + 1));
|
|
82
|
+
}, l = [];
|
|
83
|
+
return e.forEach((h) => a(h, l, 0)), l;
|
|
84
|
+
}, V = (e, t, n, r) => {
|
|
85
|
+
let o = {}, c = [], a;
|
|
86
|
+
return e.forEach((l) => o[t(l)] = { ...l }), e.forEach((l) => {
|
|
87
|
+
a = o[n(l)], a ? (a[r] = a[r] || [], a[r].push(o[t(l)])) : c.push(o[t(l)]);
|
|
88
|
+
}), c;
|
|
89
|
+
}, j = (e, t, n) => y(e, t, n), q = (e, t, n) => [...C(
|
|
90
|
+
[{ [t]: [...e] }],
|
|
91
|
+
t,
|
|
92
|
+
(o) => T(o, n, t)
|
|
93
|
+
)[0][t]], T = (e, t, n) => {
|
|
94
|
+
const r = e[n] || [], o = r.findIndex(t);
|
|
95
|
+
if (o !== -1) {
|
|
96
|
+
const c = [...r];
|
|
97
|
+
return c.splice(o, 1), {
|
|
98
|
+
...e,
|
|
99
|
+
[n]: c
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
return e;
|
|
103
|
+
}, z = (e, t, n, r) => C(
|
|
104
|
+
e,
|
|
105
|
+
t,
|
|
106
|
+
(o) => n(o) ? { ...o, [t]: r(o[t] || []) } : o
|
|
107
|
+
), u = (e, t, n) => P(e, t, n), A = (e, t, n, r) => {
|
|
108
|
+
const o = [...e], c = u(o, t, r), a = c.pop(), l = c.pop(), h = t[t.length - 1];
|
|
109
|
+
if (n) {
|
|
110
|
+
const p = u(o, n, r).pop();
|
|
111
|
+
(l ? l[r] : o).splice(h, 1), p[r] = p[r] || [], p[r].push(a);
|
|
112
|
+
} else
|
|
113
|
+
(l ? l[r] : o).splice(h, 1), o.push(a);
|
|
114
|
+
return o;
|
|
115
|
+
};
|
|
116
|
+
export {
|
|
117
|
+
V as createDataTree,
|
|
118
|
+
j as extendDataItem,
|
|
119
|
+
k as filterBy,
|
|
120
|
+
N as flatData,
|
|
121
|
+
u as getItemPath,
|
|
122
|
+
z as modifySubItems,
|
|
123
|
+
A as moveTreeItem,
|
|
124
|
+
$ as orderBy,
|
|
125
|
+
q as removeItems,
|
|
126
|
+
S as treeToFlat
|
|
127
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@progress/kendo-react-common"),d="groupId",n="items",r=(e,t,s)=>{e.items&&(e[d]=`${s}${s&&"_"}${e.value}${e.field}`,t>1&&e.items.forEach(o=>r(o,t-1,e[d])))},c=e=>{const{group:t}=e;if(t&&t.length&&e.data)return e.data.forEach(s=>r(s,t.length,""))},I=e=>{const t=[];return a.mapTree(e.data,n,s=>{s[d]&&t.push(s[d])}),t},u=e=>a.mapTree(e.data,n,t=>a.extendDataItem(t,n,{expanded:!e.collapsedIds.some(s=>s===t[d])}));exports.getGroupIds=I;exports.setExpandedState=u;exports.setGroupIds=c;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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 client";
|
|
9
|
+
import { mapTree as n, extendDataItem as I } from "@progress/kendo-react-common";
|
|
10
|
+
const a = "groupId", d = "items", c = (t, e, s) => {
|
|
11
|
+
t.items && (t[a] = `${s}${s && "_"}${t.value}${t.field}`, e > 1 && t.items.forEach((r) => c(r, e - 1, t[a])));
|
|
12
|
+
}, f = (t) => {
|
|
13
|
+
const { group: e } = t;
|
|
14
|
+
if (e && e.length && t.data)
|
|
15
|
+
return t.data.forEach((s) => c(s, e.length, ""));
|
|
16
|
+
}, l = (t) => {
|
|
17
|
+
const e = [];
|
|
18
|
+
return n(t.data, d, (s) => {
|
|
19
|
+
s[a] && e.push(s[a]);
|
|
20
|
+
}), e;
|
|
21
|
+
}, m = (t) => n(
|
|
22
|
+
t.data,
|
|
23
|
+
d,
|
|
24
|
+
(e) => I(e, d, {
|
|
25
|
+
expanded: !t.collapsedIds.some((s) => s === e[a])
|
|
26
|
+
})
|
|
27
|
+
);
|
|
28
|
+
export {
|
|
29
|
+
l as getGroupIds,
|
|
30
|
+
m as setExpandedState,
|
|
31
|
+
f as setGroupIds
|
|
32
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function y(m){const{enabled:p,columns:l=[],tableViewPortWidth:b,scrollLeft:f}=m,c=l.map(()=>1),i=l.map(()=>!1);if(!p)return{colSpans:c,hiddenColumns:i};const n=l.map(e=>parseFloat((e.width||"").toString())||10);let o=0;for(let e=0;e<l.length;e++){if(l[e].locked)continue;const u=e<n.length-1?n[e+1]:0;if(o+n[e]+u<f)i[e]=!0,o+=n[e];else break}const w=n.reduce((e,u)=>e+u,0);o=0;for(let e=l.length-1;e>=0;e--)if(!l[e].locked)if(o+2*n[e]<w-b-f)i[e]=!0,o+=n[e];else break;const t=[...i],r=e=>e;let s=t.lastIndexOf(!1),g=t.some(r),h=t.every(r),d,a;for(;g&&t.length&&(s!==-1||h);){for(s<t.length-1&&(d=h?t.length:t.length-s-1,a=t.length-d,a===0&&(a=d-1),i[a]=!1,c[a]=d,t.splice(s+1,d));t.length&&!t[t.length-1];)t.pop();s=t.lastIndexOf(!1),g=t.some(r),h=t.every(r)}return{colSpans:c,hiddenColumns:i}}exports.tableColumnsVirtualization=y;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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 client";
|
|
9
|
+
function x(p) {
|
|
10
|
+
const { enabled: m, columns: l = [], tableViewPortWidth: b, scrollLeft: u } = p, c = l.map(() => 1), i = l.map(() => !1);
|
|
11
|
+
if (!m)
|
|
12
|
+
return { colSpans: c, hiddenColumns: i };
|
|
13
|
+
const n = l.map((e) => parseFloat((e.width || "").toString()) || 10);
|
|
14
|
+
let o = 0;
|
|
15
|
+
for (let e = 0; e < l.length; e++) {
|
|
16
|
+
if (l[e].locked)
|
|
17
|
+
continue;
|
|
18
|
+
const f = e < n.length - 1 ? n[e + 1] : 0;
|
|
19
|
+
if (o + n[e] + f < u)
|
|
20
|
+
i[e] = !0, o += n[e];
|
|
21
|
+
else
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
const w = n.reduce((e, f) => e + f, 0);
|
|
25
|
+
o = 0;
|
|
26
|
+
for (let e = l.length - 1; e >= 0; e--)
|
|
27
|
+
if (!l[e].locked)
|
|
28
|
+
if (o + 2 * n[e] < w - b - u)
|
|
29
|
+
i[e] = !0, o += n[e];
|
|
30
|
+
else
|
|
31
|
+
break;
|
|
32
|
+
const t = [...i], h = (e) => e;
|
|
33
|
+
let s = t.lastIndexOf(!1), g = t.some(h), r = t.every(h), d, a;
|
|
34
|
+
for (; g && t.length && (s !== -1 || r); ) {
|
|
35
|
+
for (s < t.length - 1 && (d = r ? t.length : t.length - s - 1, a = t.length - d, a === 0 && (a = d - 1), i[a] = !1, c[a] = d, t.splice(s + 1, d)); t.length && !t[t.length - 1]; )
|
|
36
|
+
t.pop();
|
|
37
|
+
s = t.lastIndexOf(!1), g = t.some(h), r = t.every(h);
|
|
38
|
+
}
|
|
39
|
+
return { colSpans: c, hiddenColumns: i };
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
x as tableColumnsVirtualization
|
|
43
|
+
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ClipboardActionType } from './common';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare class ClipboardService {
|
|
10
|
-
private clipboardEvent;
|
|
11
|
-
constructor(ClipboardEventHandler: (clipboardType: ClipboardActionType, event: ClipboardEvent) => void);
|
|
12
|
-
private copyHandler;
|
|
13
|
-
private cutHandler;
|
|
14
|
-
private pasteHandler;
|
|
15
|
-
addEventListeners: (document: Document | undefined) => void;
|
|
16
|
-
removeEventListeners: (document: Document | undefined) => void;
|
|
17
|
-
}
|
package/clipboard/common.d.ts
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ColumnBaseProps } from '../header';
|
|
6
|
-
/**
|
|
7
|
-
* The possible values of the `type` property.
|
|
8
|
-
*/
|
|
9
|
-
export declare enum ClipboardActionType {
|
|
10
|
-
copy = "copy",
|
|
11
|
-
cut = "cut",
|
|
12
|
-
paste = "paste"
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Represents the object of the `onClipboardData` event.
|
|
16
|
-
*/
|
|
17
|
-
export interface ClipboardDataEvent {
|
|
18
|
-
/**
|
|
19
|
-
* Represents the type of the clipboard action.
|
|
20
|
-
*/
|
|
21
|
-
type: ClipboardActionType;
|
|
22
|
-
/**
|
|
23
|
-
* Represents the native clipboard event.
|
|
24
|
-
*/
|
|
25
|
-
nativeEvent?: ClipboardEvent;
|
|
26
|
-
/**
|
|
27
|
-
* All the Grid columns.
|
|
28
|
-
*/
|
|
29
|
-
columns: ColumnBaseProps[];
|
|
30
|
-
/**
|
|
31
|
-
* Passes the clipboard prop copyHeaders value in the clipboard action.
|
|
32
|
-
*/
|
|
33
|
-
copyHeaders?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Sets the cell delimiter used when manipulating the clipboard data Defaults to `\t`.
|
|
36
|
-
*/
|
|
37
|
-
cellDelimiter?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Sets the row delimiter used when manipulating the clipboard data Defaults to `\r\n`.
|
|
40
|
-
*/
|
|
41
|
-
newLineDelimiter?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Passes the dataItemKey prop in the clipboard action.
|
|
44
|
-
*/
|
|
45
|
-
dataItemKey: string;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Represents the `PopulateClipboardArgs` event argument.
|
|
49
|
-
*/
|
|
50
|
-
export interface PopulateClipboardArgs {
|
|
51
|
-
/**
|
|
52
|
-
* Represents the object of the `onClipboardData` event.
|
|
53
|
-
*/
|
|
54
|
-
event: ClipboardDataEvent;
|
|
55
|
-
/**
|
|
56
|
-
* Represents the current selected state of the data.
|
|
57
|
-
*/
|
|
58
|
-
selectedState: {
|
|
59
|
-
[key: string | number]: boolean | number[];
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Passes the data currently displayed.
|
|
63
|
-
*/
|
|
64
|
-
data: any[];
|
|
65
|
-
/**
|
|
66
|
-
* Passes dataItemKey name of the field that could be used to make difference between dataItems.
|
|
67
|
-
*/
|
|
68
|
-
dataItemKey?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Passes subItemsField that will be used in grouping cases.
|
|
71
|
-
*/
|
|
72
|
-
subItemsField?: string;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Represents the object that is returned form the `populateClipboardData` function.
|
|
76
|
-
*/
|
|
77
|
-
export interface ClipboardData {
|
|
78
|
-
/**
|
|
79
|
-
* A collection of the ClipboardItem that are selected.
|
|
80
|
-
*/
|
|
81
|
-
copiedItems: ClipboardItem[];
|
|
82
|
-
/**
|
|
83
|
-
* A collection of the ClipboardItem that are pasted.
|
|
84
|
-
*/
|
|
85
|
-
pastedItems: ClipboardItem[];
|
|
86
|
-
/**
|
|
87
|
-
* When the action is `copy` or `cut` - the Grid data, copied to the clipboard, in Excel-compatible format.
|
|
88
|
-
* When the action is `paste` - the current clipboard data, available in the original DOM event.
|
|
89
|
-
*/
|
|
90
|
-
clipboardData: string;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Represents the aria that is copied - the dataItem and the fields.
|
|
94
|
-
*/
|
|
95
|
-
export interface ClipboardItem {
|
|
96
|
-
/**
|
|
97
|
-
* Represents the dataItem used in the clipboard action.
|
|
98
|
-
*/
|
|
99
|
-
dataItem: any;
|
|
100
|
-
/**
|
|
101
|
-
* Represents the fields used in the clipboard action.
|
|
102
|
-
*/
|
|
103
|
-
fields: string[];
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Represents settings that can be added to the clipboard behavior.
|
|
107
|
-
*/
|
|
108
|
-
export interface ClipboardSettings {
|
|
109
|
-
/**
|
|
110
|
-
* Determines whether column titles or field names will be included in the generated data
|
|
111
|
-
* during the `copy` and `cut` actions.
|
|
112
|
-
* Defaults to `false`.
|
|
113
|
-
*/
|
|
114
|
-
copyHeaders: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Determines what is the delimiter used to separate the cells.
|
|
117
|
-
* Defaults to `\t`.
|
|
118
|
-
*/
|
|
119
|
-
cellDelimiter?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Determines what is the delimiter used to separate the rows.
|
|
122
|
-
* Defaults to `'\r\n'`.
|
|
123
|
-
*/
|
|
124
|
-
newLineDelimiter?: string;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* A function used to populate the Clipboard data.
|
|
128
|
-
*/
|
|
129
|
-
export declare const populateClipboardData: (args: PopulateClipboardArgs) => ClipboardData;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { SortDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
|
|
7
|
-
/**
|
|
8
|
-
* The props of the ColumnMenu component.
|
|
9
|
-
*/
|
|
10
|
-
export interface ColumnMenuProps {
|
|
11
|
-
/**
|
|
12
|
-
* The descriptors by which the data is sorted.
|
|
13
|
-
*/
|
|
14
|
-
sort?: SortDescriptor[];
|
|
15
|
-
/**
|
|
16
|
-
* Fires when the sorting of the ColumnMenu is changed.
|
|
17
|
-
*/
|
|
18
|
-
onSortChange?: (event: React.SyntheticEvent<any>, sort: SortDescriptor[], field: string) => void;
|
|
19
|
-
/**
|
|
20
|
-
* The descriptors by which the data is filtered.
|
|
21
|
-
*/
|
|
22
|
-
filter?: CompositeFilterDescriptor[];
|
|
23
|
-
/**
|
|
24
|
-
* Fires when the ColumnMenu filter is changed.
|
|
25
|
-
*/
|
|
26
|
-
onFilterChange?: (event: React.SyntheticEvent<any>, filter: CompositeFilterDescriptor[], field: string) => void;
|
|
27
|
-
/**
|
|
28
|
-
* The field to which the ColumnMenu is bound.
|
|
29
|
-
*/
|
|
30
|
-
field?: string;
|
|
31
|
-
/**
|
|
32
|
-
* If set to `true`, a button for sorting in `asc` direction will be rendered.
|
|
33
|
-
*/
|
|
34
|
-
sortAsc?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* If set to `true`, a button for sorting in `desc` direction will be rendered.
|
|
37
|
-
*/
|
|
38
|
-
sortDesc?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Defines the filtering UI and accepts an array with components.
|
|
41
|
-
*/
|
|
42
|
-
filterContent?: any[];
|
|
43
|
-
/**
|
|
44
|
-
* Defines the initial expand state of the filters.
|
|
45
|
-
* Defaults to `false`.
|
|
46
|
-
*/
|
|
47
|
-
expandFilters?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* A function that returns the initial filter descriptor base on the ColumnMenu field.
|
|
50
|
-
* Use it to customize the initial values of the filtering components.
|
|
51
|
-
*/
|
|
52
|
-
initialFilter?: (field: string) => CompositeFilterDescriptor;
|
|
53
|
-
/**
|
|
54
|
-
* Fires when the ColumnMenu items are about to be rendered. Use it to add or remove menu items.
|
|
55
|
-
* The `defaultRendering` is an array with the sorting and filtering components.
|
|
56
|
-
* `props` contains the column's field and the closeMenu function which closes the ColumnMenu.
|
|
57
|
-
*/
|
|
58
|
-
itemsRender?: (defaultRendering: (React.ReactElement<HTMLDivElement> | null)[], props: {
|
|
59
|
-
field?: string;
|
|
60
|
-
closeMenu: () => void;
|
|
61
|
-
}) => React.ReactNode;
|
|
62
|
-
/**
|
|
63
|
-
* Fires when the ColumnMenu is about to be rendered. Use it to override the default rendering of the ColumnMenu.
|
|
64
|
-
* The defaultRendering is an array with the button `React.ReactElement<HTMLSpanElement>` and popup `React.ReactElement<PopupProps>` components.
|
|
65
|
-
*/
|
|
66
|
-
render?: (defaultRendering: React.ReactElement<any>[]) => React.ReactNode;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* The `ColumnMenuTextColumn` component. Use it for `string` type columns.
|
|
70
|
-
*/
|
|
71
|
-
export declare const ColumnMenuTextColumn: React.FunctionComponent<ColumnMenuProps>;
|
|
72
|
-
/**
|
|
73
|
-
* The `ColumnMenuNumericColumn` component. Use it for `number` type columns.
|
|
74
|
-
*/
|
|
75
|
-
export declare const ColumnMenuNumericColumn: React.FunctionComponent<ColumnMenuProps>;
|
|
76
|
-
/**
|
|
77
|
-
* The `ColumnMenuDateColumn` component. Use it for `Date` type columns.
|
|
78
|
-
*/
|
|
79
|
-
export declare const ColumnMenuDateColumn: React.FunctionComponent<ColumnMenuProps>;
|
|
80
|
-
/**
|
|
81
|
-
* The `ColumnMenuBooleanColumn` component. Use it for `boolean` type columns.
|
|
82
|
-
*/
|
|
83
|
-
export declare const ColumnMenuBooleanColumn: React.FunctionComponent<ColumnMenuProps>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
export interface ColumnMenuFormProps {
|
|
7
|
-
show?: boolean;
|
|
8
|
-
onSubmit?: React.FormEventHandler<HTMLFormElement>;
|
|
9
|
-
onReset?: React.FormEventHandler<HTMLFormElement>;
|
|
10
|
-
actions?: React.ReactNode;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
export declare const ColumnMenuForm: React.FunctionComponent<ColumnMenuFormProps>;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare const ColumnMenuFilterForm: React.FunctionComponent<ColumnMenuFormProps>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { DropDownListProps } from '@progress/kendo-react-dropdowns';
|
|
7
|
-
export declare const ColumnMenuFilterLogic: React.FunctionComponent<DropDownListProps>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { FilterDescriptor } from '@progress/kendo-data-query';
|
|
7
|
-
export interface ColumnMenuFilterProps {
|
|
8
|
-
filter: FilterDescriptor;
|
|
9
|
-
onFilterChange: (event: React.SyntheticEvent<any>, nextFilter: FilterDescriptor, prevFilter: FilterDescriptor) => void;
|
|
10
|
-
operators?: {
|
|
11
|
-
text: string;
|
|
12
|
-
operator: string;
|
|
13
|
-
}[];
|
|
14
|
-
initialFilter?: FilterDescriptor;
|
|
15
|
-
input?: React.ComponentType<{
|
|
16
|
-
value: any;
|
|
17
|
-
onChange: any;
|
|
18
|
-
}>;
|
|
19
|
-
}
|
|
20
|
-
export declare const ColumnMenuBooleanFilter: React.FunctionComponent<ColumnMenuFilterProps>;
|
|
21
|
-
export declare const ColumnMenuTextFilter: React.FunctionComponent<ColumnMenuFilterProps>;
|
|
22
|
-
export declare const ColumnMenuNumericFilter: React.FunctionComponent<ColumnMenuFilterProps>;
|
|
23
|
-
export declare const ColumnMenuDateFilter: React.FunctionComponent<ColumnMenuFilterProps>;
|