@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,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 c=require("../../navigation/utils.js"),w=require("../ColumnProps.js");function o(t,r){const d=t[r].depth;let i=null;for(let h=r+1;h<t.length;h++)if(t[h].depth===d){i=t[h];break}return i}const f=t=>{let r=t.width?parseFloat(t.width.toString()):0;return!r&&t.children&&t.children.length&&(r=t.children.reduce((d,i)=>f(i)+d,0)),r};function I(t){const r=[[]];let d=0;for(let e=t.length-1;e>=0;e--)d=Math.max(d,t[e].depth),t[e].colSpan=t[e].colSpan||1,t[e].parentIndex!==-1&&(t[t[e].parentIndex].colSpan=(t[t[e].parentIndex].colSpan||0)+t[e].colSpan);const i=[];let h=1;return t.forEach((e,n)=>{r[e.depth]=r[e.depth]||[];let l=!1;r[e.depth].length===0&&(h<=1?h=1+(e.children.length>0?0:d-e.depth):(h--,l=!0)),e.rowSpan=1+(e.children.length>0?0:d-e.depth),e.kFirst=l,e.index=r[e.depth].length,r[e.depth].push(n),e.ariaColumnIndex=i[e.depth]?i[e.depth]+1:1;for(let a=e.depth;a<e.depth+e.rowSpan;a++)i[a]=(i[a]||0)+e.colSpan}),g(r,t),x(r,t),r}function g(t,r,d){let i=new Array(t.length).fill(0),h=0;r.forEach(e=>{if(e.locked&&(!e.left||d))if(e.left=i[e.depth],h=f(e),e.children.length===0)for(let n=e.depth;n<i.length;n++)i[n]+=h;else i[e.depth]+=h})}function x(t,r,d){let i=0,h=new Array(t.length).fill(0);for(let e=r.length-1;e>=0;e--){const n=r[e];if(n.locked&&(!n.right||d)){if(n.right=h[n.depth],i=f(n),n.children.length===0)for(let a=n.depth;a<h.length;a++)h[a]+=i;else h[n.depth]+=i;const l=o(r,e);n.rightBorder=!(l&&l.locked)}}}function s(t,r,d=0){let i=[];if(!t||!t.length)return[];t.forEach(e=>{const n=s(e.children||[],r,d+1);i.push(Object.assign({},{depth:d},w.ColumnDefaultProps,e,{id:e.id?e.id:c.generateNavigatableId(`${r.prevId++}`,r.idPrefix,"column"),declarationIndex:i.length,children:n,rowSpan:0,colSpan:0,isAccessible:!0}))});const h=(e,n)=>e.orderIndex===n.orderIndex?e.declarationIndex-n.declarationIndex:(e.orderIndex||0)-(n.orderIndex||0);if(i.sort(h),d===0){let e=[];const n=(l,a)=>l.forEach(p=>{p.parentIndex=a,n(p.children,e.push(p)-1)});return n(i,-1),e}return i}function S(t){return!!(t&&getComputedStyle(t).direction==="rtl")}function y(t,r){if(!r||!t||!t.originalEvent)return-1;const d={x:t.clientX,y:t.originalEvent.clientY};let i=r.ownerDocument?r.ownerDocument.elementFromPoint(d.x,d.y):null;for(;i&&i.parentElement!==r;)i=i.parentElement;if(!i&&r.matches("tr")){const e=n=>{const l=n.getBoundingClientRect();return d.x>l.left&&d.x<l.left+l.width&&d.y>l.top&&d.y<l.top+l.height};i=Array.from(r.children).find(e)||null}const h=r.children;for(let e=0;e<h.length;e++)if(h[e]===i)return e;return-1}exports.getIndex=y;exports.isRtl=S;exports.mapColumns=I;exports.nextColumn=o;exports.readColumns=s;exports.updateLeft=g;exports.updateRight=x;
|
|
@@ -0,0 +1,130 @@
|
|
|
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 { generateNavigatableId as o } from "../../navigation/utils.mjs";
|
|
10
|
+
import { ColumnDefaultProps as g } from "../ColumnProps.mjs";
|
|
11
|
+
function x(t, r) {
|
|
12
|
+
const d = t[r].depth;
|
|
13
|
+
let i = null;
|
|
14
|
+
for (let h = r + 1; h < t.length; h++)
|
|
15
|
+
if (t[h].depth === d) {
|
|
16
|
+
i = t[h];
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
return i;
|
|
20
|
+
}
|
|
21
|
+
const f = (t) => {
|
|
22
|
+
let r = t.width ? parseFloat(t.width.toString()) : 0;
|
|
23
|
+
return !r && t.children && t.children.length && (r = t.children.reduce((d, i) => f(i) + d, 0)), r;
|
|
24
|
+
};
|
|
25
|
+
function y(t) {
|
|
26
|
+
const r = [[]];
|
|
27
|
+
let d = 0;
|
|
28
|
+
for (let e = t.length - 1; e >= 0; e--)
|
|
29
|
+
d = Math.max(d, t[e].depth), t[e].colSpan = t[e].colSpan || 1, t[e].parentIndex !== -1 && (t[t[e].parentIndex].colSpan = (t[t[e].parentIndex].colSpan || 0) + t[e].colSpan);
|
|
30
|
+
const i = [];
|
|
31
|
+
let h = 1;
|
|
32
|
+
return t.forEach((e, n) => {
|
|
33
|
+
r[e.depth] = r[e.depth] || [];
|
|
34
|
+
let l = !1;
|
|
35
|
+
r[e.depth].length === 0 && (h <= 1 ? h = 1 + (e.children.length > 0 ? 0 : d - e.depth) : (h--, l = !0)), e.rowSpan = 1 + (e.children.length > 0 ? 0 : d - e.depth), e.kFirst = l, e.index = r[e.depth].length, r[e.depth].push(n), e.ariaColumnIndex = i[e.depth] ? i[e.depth] + 1 : 1;
|
|
36
|
+
for (let a = e.depth; a < e.depth + e.rowSpan; a++)
|
|
37
|
+
i[a] = (i[a] || 0) + e.colSpan;
|
|
38
|
+
}), c(r, t), s(r, t), r;
|
|
39
|
+
}
|
|
40
|
+
function c(t, r, d) {
|
|
41
|
+
let i = new Array(t.length).fill(0), h = 0;
|
|
42
|
+
r.forEach((e) => {
|
|
43
|
+
if (e.locked && (!e.left || d))
|
|
44
|
+
if (e.left = i[e.depth], h = f(e), e.children.length === 0)
|
|
45
|
+
for (let n = e.depth; n < i.length; n++)
|
|
46
|
+
i[n] += h;
|
|
47
|
+
else
|
|
48
|
+
i[e.depth] += h;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function s(t, r, d) {
|
|
52
|
+
let i = 0, h = new Array(t.length).fill(0);
|
|
53
|
+
for (let e = r.length - 1; e >= 0; e--) {
|
|
54
|
+
const n = r[e];
|
|
55
|
+
if (n.locked && (!n.right || d)) {
|
|
56
|
+
if (n.right = h[n.depth], i = f(n), n.children.length === 0)
|
|
57
|
+
for (let a = n.depth; a < h.length; a++)
|
|
58
|
+
h[a] += i;
|
|
59
|
+
else
|
|
60
|
+
h[n.depth] += i;
|
|
61
|
+
const l = x(r, e);
|
|
62
|
+
n.rightBorder = !(l && l.locked);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function w(t, r, d = 0) {
|
|
67
|
+
let i = [];
|
|
68
|
+
if (!t || !t.length)
|
|
69
|
+
return [];
|
|
70
|
+
t.forEach((e) => {
|
|
71
|
+
const n = w(e.children || [], r, d + 1);
|
|
72
|
+
i.push(
|
|
73
|
+
Object.assign(
|
|
74
|
+
{},
|
|
75
|
+
{ depth: d },
|
|
76
|
+
g,
|
|
77
|
+
e,
|
|
78
|
+
{
|
|
79
|
+
id: e.id ? e.id : o(`${r.prevId++}`, r.idPrefix, "column"),
|
|
80
|
+
declarationIndex: i.length,
|
|
81
|
+
children: n,
|
|
82
|
+
rowSpan: 0,
|
|
83
|
+
colSpan: 0,
|
|
84
|
+
isAccessible: !0
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
);
|
|
88
|
+
});
|
|
89
|
+
const h = (e, n) => e.orderIndex === n.orderIndex ? e.declarationIndex - n.declarationIndex : (e.orderIndex || 0) - (n.orderIndex || 0);
|
|
90
|
+
if (i.sort(h), d === 0) {
|
|
91
|
+
let e = [];
|
|
92
|
+
const n = (l, a) => l.forEach((p) => {
|
|
93
|
+
p.parentIndex = a, n(p.children, e.push(p) - 1);
|
|
94
|
+
});
|
|
95
|
+
return n(i, -1), e;
|
|
96
|
+
}
|
|
97
|
+
return i;
|
|
98
|
+
}
|
|
99
|
+
function C(t) {
|
|
100
|
+
return !!(t && getComputedStyle(t).direction === "rtl");
|
|
101
|
+
}
|
|
102
|
+
function E(t, r) {
|
|
103
|
+
if (!r || !t || !t.originalEvent)
|
|
104
|
+
return -1;
|
|
105
|
+
const d = { x: t.clientX, y: t.originalEvent.clientY };
|
|
106
|
+
let i = r.ownerDocument ? r.ownerDocument.elementFromPoint(d.x, d.y) : null;
|
|
107
|
+
for (; i && i.parentElement !== r; )
|
|
108
|
+
i = i.parentElement;
|
|
109
|
+
if (!i && r.matches("tr")) {
|
|
110
|
+
const e = (n) => {
|
|
111
|
+
const l = n.getBoundingClientRect();
|
|
112
|
+
return d.x > l.left && d.x < l.left + l.width && d.y > l.top && d.y < l.top + l.height;
|
|
113
|
+
};
|
|
114
|
+
i = Array.from(r.children).find(e) || null;
|
|
115
|
+
}
|
|
116
|
+
const h = r.children;
|
|
117
|
+
for (let e = 0; e < h.length; e++)
|
|
118
|
+
if (h[e] === i)
|
|
119
|
+
return e;
|
|
120
|
+
return -1;
|
|
121
|
+
}
|
|
122
|
+
export {
|
|
123
|
+
E as getIndex,
|
|
124
|
+
C as isRtl,
|
|
125
|
+
y as mapColumns,
|
|
126
|
+
x as nextColumn,
|
|
127
|
+
w as readColumns,
|
|
128
|
+
c as updateLeft,
|
|
129
|
+
s as updateRight
|
|
130
|
+
};
|