@progress/kendo-react-grid 11.0.0-develop.6 → 11.0.0-develop.8
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/GridClientContextReader.js +1 -1
- package/GridClientContextReader.mjs +16 -13
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +419 -421
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +402 -395
- package/VirtualScroll.js +1 -1
- package/VirtualScroll.mjs +65 -107
- package/cells/GridDetailHierarchyCell.js +1 -1
- package/cells/GridDetailHierarchyCell.mjs +4 -4
- package/cells/datacell/GridCell.js +9 -0
- package/cells/datacell/GridCell.mjs +29 -0
- package/cells/datacell/GridCellServer.js +8 -0
- package/cells/datacell/GridCellServer.mjs +27 -0
- package/cells/datacell/GridCellServerContainer.js +9 -0
- package/cells/datacell/GridCellServerContainer.mjs +26 -0
- package/cells/datacell/useCellClientTdProps.js +9 -0
- package/cells/datacell/useCellClientTdProps.mjs +30 -0
- package/cells/datacell/utils.js +8 -0
- package/cells/datacell/utils.mjs +47 -0
- package/cells/detailcell/GridDetailCell.js +9 -0
- package/cells/detailcell/GridDetailCell.mjs +18 -0
- package/cells/detailcell/GridDetailCellServer.js +8 -0
- package/cells/detailcell/GridDetailCellServer.mjs +17 -0
- package/cells/detailcell/GridDetailCellServerContainer.js +9 -0
- package/cells/detailcell/GridDetailCellServerContainer.mjs +19 -0
- package/cells/detailcell/useDetailCellClientTdProps.js +9 -0
- package/cells/detailcell/useDetailCellClientTdProps.mjs +20 -0
- package/cells/detailcell/utils.js +8 -0
- package/cells/detailcell/utils.mjs +20 -0
- package/cells/editcell/GridEditCell.js +9 -0
- package/cells/editcell/GridEditCell.mjs +26 -0
- package/cells/editcell/GridEditCellServer.js +8 -0
- package/cells/editcell/GridEditCellServer.mjs +32 -0
- package/cells/editcell/GridEditCellServerContainer.js +9 -0
- package/cells/editcell/GridEditCellServerContainer.mjs +26 -0
- package/cells/editcell/useEditCellClientTdProps.js +9 -0
- package/cells/editcell/useEditCellClientTdProps.mjs +21 -0
- package/cells/editcell/utils.js +8 -0
- package/cells/editcell/utils.mjs +29 -0
- package/cells/groupcell/GridGroupCell.js +9 -0
- package/cells/groupcell/GridGroupCell.mjs +24 -0
- package/cells/groupcell/GridGroupCellServer.js +8 -0
- package/cells/groupcell/GridGroupCellServer.mjs +44 -0
- package/cells/groupcell/GridGroupCellServerContainer.js +9 -0
- package/cells/groupcell/GridGroupCellServerContainer.mjs +38 -0
- package/cells/groupcell/useGroupCellClientTdProps.js +9 -0
- package/cells/groupcell/useGroupCellClientTdProps.mjs +44 -0
- package/cells/groupcell/utils.js +8 -0
- package/cells/groupcell/utils.mjs +48 -0
- package/cells/hierarchycell/GridHierarchyCell.js +9 -0
- package/cells/hierarchycell/GridHierarchyCell.mjs +25 -0
- package/cells/hierarchycell/GridHierarchyCellServer.js +8 -0
- package/cells/hierarchycell/GridHierarchyCellServer.mjs +32 -0
- package/cells/hierarchycell/GridHierarchyCellServerContainer.js +9 -0
- package/cells/hierarchycell/GridHierarchyCellServerContainer.mjs +26 -0
- package/cells/hierarchycell/useHierarchyCellClientTdProps.js +9 -0
- package/cells/hierarchycell/useHierarchyCellClientTdProps.mjs +35 -0
- package/cells/hierarchycell/utils.js +8 -0
- package/cells/hierarchycell/utils.mjs +30 -0
- package/cells/hooks.js +9 -0
- package/cells/hooks.mjs +41 -0
- package/cells/rowreordercell/GridRowReorderCell.js +9 -0
- package/cells/rowreordercell/GridRowReorderCell.mjs +19 -0
- package/cells/rowreordercell/GridRowReorderCellServer.js +8 -0
- package/cells/rowreordercell/GridRowReorderCellServer.mjs +18 -0
- package/cells/rowreordercell/GridRowReorderCellServerContainer.js +9 -0
- package/cells/rowreordercell/GridRowReorderCellServerContainer.mjs +19 -0
- package/cells/rowreordercell/useRowReorderCellClientTdProps.js +9 -0
- package/cells/rowreordercell/useRowReorderCellClientTdProps.mjs +26 -0
- package/cells/rowreordercell/utils.js +8 -0
- package/cells/rowreordercell/utils.mjs +30 -0
- package/cells/selectioncell/GridSelectionCell.js +9 -0
- package/cells/selectioncell/GridSelectionCell.mjs +26 -0
- package/cells/selectioncell/GridSelectionCellServer.js +8 -0
- package/cells/selectioncell/GridSelectionCellServer.mjs +33 -0
- package/cells/selectioncell/GridSelectionCellServerContainer.js +9 -0
- package/cells/selectioncell/GridSelectionCellServerContainer.mjs +26 -0
- package/cells/selectioncell/useSelectionCellClientTdProps.js +9 -0
- package/cells/selectioncell/useSelectionCellClientTdProps.mjs +21 -0
- package/cells/selectioncell/utils.js +8 -0
- package/cells/selectioncell/utils.mjs +25 -0
- package/components/GridDraggableRowsContainer.js +1 -1
- package/components/GridDraggableRowsContainer.mjs +71 -67
- package/components/VirtualScrollHeightContainer.js +1 -1
- package/components/VirtualScrollHeightContainer.mjs +4 -4
- package/components/table/GridTableScrollable.js +1 -1
- package/components/table/GridTableScrollable.mjs +16 -15
- package/components/utils.js +1 -1
- package/components/utils.mjs +9 -10
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/index.d.mts +19 -5
- package/index.d.ts +19 -5
- package/index.js +1 -1
- package/index.mjs +5 -5
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +16 -16
- package/utils/index.js +1 -1
- package/utils/index.mjs +112 -104
- package/VirtualScrollFixed.js +0 -8
- package/VirtualScrollFixed.mjs +0 -52
- package/cells/GridCell.js +0 -8
- package/cells/GridCell.mjs +0 -52
- package/cells/GridDetailCell.js +0 -8
- package/cells/GridDetailCell.mjs +0 -26
- package/cells/GridEditCell.js +0 -8
- package/cells/GridEditCell.mjs +0 -35
- package/cells/GridGroupCell.js +0 -8
- package/cells/GridGroupCell.mjs +0 -74
- package/cells/GridHierarchyCell.js +0 -8
- package/cells/GridHierarchyCell.mjs +0 -33
- package/cells/GridRowReorderCell.js +0 -8
- package/cells/GridRowReorderCell.mjs +0 -42
- package/cells/GridSelectionCell.js +0 -8
- package/cells/GridSelectionCell.mjs +0 -30
- package/cells/client/DetailCellContainer.js +0 -9
- package/cells/client/DetailCellContainer.mjs +0 -27
- package/cells/client/GridCellContainer.js +0 -9
- package/cells/client/GridCellContainer.mjs +0 -69
- package/cells/client/GridEditCellContainer.js +0 -9
- package/cells/client/GridEditCellContainer.mjs +0 -61
- package/cells/client/GridGroupCellContainer.js +0 -9
- package/cells/client/GridGroupCellContainer.mjs +0 -88
- package/cells/client/GridHierarchyCellContainer.js +0 -9
- package/cells/client/GridHierarchyCellContainer.mjs +0 -64
- package/cells/client/GridRowReorderContainer.js +0 -9
- package/cells/client/GridRowReorderContainer.mjs +0 -31
- package/cells/client/GridSelectionCellContainer.js +0 -9
- package/cells/client/GridSelectionCellContainer.mjs +0 -61
- /package/cells/{client → editcell}/GridEditCellEditor.js +0 -0
- /package/cells/{client → editcell}/GridEditCellEditor.mjs +0 -0
- /package/cells/{client → groupcell}/GridGroupCellToggle.js +0 -0
- /package/cells/{client → groupcell}/GridGroupCellToggle.mjs +0 -0
- /package/cells/{client → hierarchycell}/GridHierarchyCellToggle.js +0 -0
- /package/cells/{client → hierarchycell}/GridHierarchyCellToggle.mjs +0 -0
- /package/cells/{client → selectioncell}/GridSelectionCellInput.js +0 -0
- /package/cells/{client → selectioncell}/GridSelectionCellInput.mjs +0 -0
package/VirtualScroll.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),h=require("./utils/index.js");function g(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,i.get?i:{enumerable:!0,get:()=>o[e]})}}return t.default=o,Object.freeze(t)}const d=g(f);class u{constructor(){this.table=null,this.tableBody=null,this.container=null,this.scrollHeightContainer=null,this.total=0,this.scrollableVirtual=!1,this.pageSize=0,this.PageChange=null,this.fixedScroll=!1,this.tableTransform="",this.reactVersion=Number.parseFloat(d.version),this.scrollSyncing=!1,this.firstToLoad=0,this.lastScrollTop=0,this.firstLoaded=0,this.lastLoaded=0,this.scrollHandler=this.scrollHandler.bind(this)}reset(){this.firstToLoad=0,this.firstLoaded=0,this.lastLoaded=0,this.rowHeightService=void 0,!this.fixedScroll&&this.container&&this.container.scrollTop!==0&&(this.scrollSyncing=!0,this.container.scrollTop=0,this.lastScrollTop=0,this.translate(0,!0))}scrollHandler(t){if(this.scrollSyncing){this.scrollSyncing=!1;return}if(!this.scrollableVirtual||!this.container||!this.table||!this.rowHeightService||!this.container)return;const e=this.container.scrollTop,i=this.lastScrollTop>=e,r=!i;this.lastScrollTop=e;const a=this.container.offsetHeight;let s=this.rowHeightService.index(e);const n=this.rowHeightService.index(e+a),l=Math.max(s+this.pageSize-this.total,0);if(s=Math.max(s-l,0),r&&n>=this.lastLoaded&&this.lastLoaded<this.total-1)this.firstToLoad=s,this.loadPage(t);else if(i&&s<this.firstToLoad){const c=Math.max(Math.floor(this.pageSize*.3)-l,0);this.firstToLoad=Math.max(s-c,0),this.loadPage(t)}}update(){var e;const t=this.getItemHeights();if(this.firstLoaded>this.firstToLoad){const i=Math.min(this.firstLoaded-this.firstToLoad,this.pageSize),r=this.getTotalHeight(i,t),a=this.getExpectedTotalHeight(i),s=r-a;s!==0&&this.adjustScroll(s)}(e=this.rowHeightService)==null||e.update(this.firstToLoad,t),this.setScrollHeightContainerHeight(),this.firstLoaded=this.firstToLoad,this.lastLoaded=this.firstLoaded+t.length-1}loadPage(t){this.rowHeightService&&(this.translate(this.rowHeightService.offset(this.firstToLoad)),this.changePage(this.firstToLoad,t))}translate(t,e){this.scrollableVirtual&&this.table&&(this.reactVersion<=17||e?this.table.style.transform="translateY("+t+"px)":this.tableTransform="translateY("+t+"px)")}changePage(t,e){this.PageChange&&this.PageChange({skip:Math.max(0,t),take:this.pageSize},e)}adjustScroll(t){this.scrollSyncing=!0,this.container&&(this.container.scrollTop+=t)}setScrollHeightContainerHeight(){var t;if(this.scrollableVirtual&&this.scrollHeightContainer){let e=((t=this.rowHeightService)==null?void 0:t.totalHeight())||0;e=h.firefox?Math.min(h.firefoxMaxHeight,e):e,this.scrollHeightContainer.style.height=e+"px"}}getItemHeights(){const t=[];return this.tableBody&&Array.from(this.tableBody.children).forEach(e=>{const i=e.getBoundingClientRect().height;e.classList.contains("k-detail-row")?t[t.length-1]+=i:t.push(i)}),t}getTotalHeight(t,e){return e.slice(0,t).reduce((i,r)=>i+r,0)}getExpectedTotalHeight(t){const e=this.rowHeightService;if(!e)return 0;const i=this.firstToLoad+(t-1);return e.offset(i)+e.height(i)-e.offset(this.firstToLoad)}}exports.VirtualScroll=u;
|
package/VirtualScroll.mjs
CHANGED
|
@@ -5,128 +5,86 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import * as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return { topItemsCount: 0, topItemsHeight: 0 };
|
|
14
|
-
const s = this.container.clientHeight, e = Math.ceil(s / t[0].line), o = Math.ceil((t.length - e) / 2);
|
|
15
|
-
let n = 0;
|
|
16
|
-
for (let a = 0; a < o; a++)
|
|
17
|
-
n += t[a].line + t[a].acc;
|
|
18
|
-
return {
|
|
19
|
-
topItemsCount: o,
|
|
20
|
-
topItemsHeight: n,
|
|
21
|
-
itemsNeededOnScreen: e + e / 2
|
|
22
|
-
};
|
|
23
|
-
}, this.horizontalScrollbarHeight = () => this.container ? this.container.offsetHeight - this.container.clientHeight : 0, i && (this.topCacheCount = 4, this.attendedSkip = -this.topCacheCount), this.scrollHandler = this.scrollHandler.bind(this);
|
|
8
|
+
import * as n from "react";
|
|
9
|
+
import { firefox as c, firefoxMaxHeight as f } from "./utils/index.mjs";
|
|
10
|
+
class u {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.table = null, this.tableBody = null, this.container = null, this.scrollHeightContainer = null, this.total = 0, this.scrollableVirtual = !1, this.pageSize = 0, this.PageChange = null, this.fixedScroll = !1, this.tableTransform = "", this.reactVersion = Number.parseFloat(n.version), this.scrollSyncing = !1, this.firstToLoad = 0, this.lastScrollTop = 0, this.firstLoaded = 0, this.lastLoaded = 0, this.scrollHandler = this.scrollHandler.bind(this);
|
|
24
13
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return (i = this.containerRef) == null ? void 0 : i.current;
|
|
14
|
+
reset() {
|
|
15
|
+
this.firstToLoad = 0, this.firstLoaded = 0, this.lastLoaded = 0, this.rowHeightService = void 0, !this.fixedScroll && this.container && this.container.scrollTop !== 0 && (this.scrollSyncing = !0, this.container.scrollTop = 0, this.lastScrollTop = 0, this.translate(0, !0));
|
|
28
16
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
17
|
+
scrollHandler(t) {
|
|
18
|
+
if (this.scrollSyncing) {
|
|
19
|
+
this.scrollSyncing = !1;
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (!this.scrollableVirtual || !this.container || !this.table || !this.rowHeightService || !this.container)
|
|
23
|
+
return;
|
|
24
|
+
const i = this.container.scrollTop, e = this.lastScrollTop >= i, o = !e;
|
|
25
|
+
this.lastScrollTop = i;
|
|
26
|
+
const r = this.container.offsetHeight;
|
|
27
|
+
let s = this.rowHeightService.index(i);
|
|
28
|
+
const a = this.rowHeightService.index(i + r), h = Math.max(s + this.pageSize - this.total, 0);
|
|
29
|
+
if (s = Math.max(s - h, 0), o && a >= this.lastLoaded && this.lastLoaded < this.total - 1)
|
|
30
|
+
this.firstToLoad = s, this.loadPage(t);
|
|
31
|
+
else if (e && s < this.firstToLoad) {
|
|
32
|
+
const l = Math.max(Math.floor(this.pageSize * 0.3) - h, 0);
|
|
33
|
+
this.firstToLoad = Math.max(s - l, 0), this.loadPage(t);
|
|
45
34
|
}
|
|
46
|
-
return i;
|
|
47
35
|
}
|
|
48
|
-
|
|
49
|
-
|
|
36
|
+
update() {
|
|
37
|
+
var i;
|
|
38
|
+
const t = this.getItemHeights();
|
|
39
|
+
if (this.firstLoaded > this.firstToLoad) {
|
|
40
|
+
const e = Math.min(this.firstLoaded - this.firstToLoad, this.pageSize), o = this.getTotalHeight(e, t), r = this.getExpectedTotalHeight(e), s = o - r;
|
|
41
|
+
s !== 0 && this.adjustScroll(s);
|
|
42
|
+
}
|
|
43
|
+
(i = this.rowHeightService) == null || i.update(this.firstToLoad, t), this.setScrollHeightContainerHeight(), this.firstLoaded = this.firstToLoad, this.lastLoaded = this.firstLoaded + t.length - 1;
|
|
44
|
+
}
|
|
45
|
+
loadPage(t) {
|
|
46
|
+
this.rowHeightService && (this.translate(this.rowHeightService.offset(this.firstToLoad)), this.changePage(this.firstToLoad, t));
|
|
47
|
+
}
|
|
48
|
+
translate(t, i) {
|
|
49
|
+
this.scrollableVirtual && this.table && (this.reactVersion <= 17 || i ? this.table.style.transform = "translateY(" + t + "px)" : this.tableTransform = "translateY(" + t + "px)");
|
|
50
|
+
}
|
|
51
|
+
changePage(t, i) {
|
|
52
|
+
this.PageChange && this.PageChange(
|
|
50
53
|
{
|
|
51
|
-
skip: Math.max(0,
|
|
54
|
+
skip: Math.max(0, t),
|
|
52
55
|
take: this.pageSize
|
|
53
56
|
},
|
|
54
|
-
|
|
57
|
+
i
|
|
55
58
|
);
|
|
56
59
|
}
|
|
57
|
-
|
|
58
|
-
this.
|
|
60
|
+
adjustScroll(t) {
|
|
61
|
+
this.scrollSyncing = !0, this.container && (this.container.scrollTop += t);
|
|
59
62
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return;
|
|
66
|
-
const t = this.rowHeights, l = this.container.scrollTop;
|
|
67
|
-
let s = this.tableTranslate, e = 0;
|
|
68
|
-
const { topItemsCount: o, topItemsHeight: n, itemsNeededOnScreen: a } = this.topItems(
|
|
69
|
-
t,
|
|
70
|
-
!!this.topCacheCount
|
|
71
|
-
), h = l - s;
|
|
72
|
-
if (!(h > n || t.length <= a)) {
|
|
73
|
-
for (; e < this.topCacheCount + this.attendedSkip - this.realSkip + o && this.propsSkip - e > 0 && !(s + (t[t.length - 1 - e].line + t[t.length - 1 - e].acc) + h <= l); )
|
|
74
|
-
s -= t[t.length - 1 - e].line + t[t.length - 1 - e].acc, e++;
|
|
75
|
-
if (e === 0 && this.topCacheCount === 0 && this.attendedSkip > 0 && (s = Math.max(s - t[0].line, 0), e = 1), this.propsSkip - e <= 0 && s > l) {
|
|
76
|
-
this.translate(0), this.changePage(0, i), this.container.scrollTop = 0;
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
if (s > l && (s = l), s !== this.tableTranslate) {
|
|
80
|
-
this.translate(Math.max(0, s - n));
|
|
81
|
-
const r = Math.max(0, this.propsSkip - e - o);
|
|
82
|
-
this.changePage(r, i);
|
|
83
|
-
}
|
|
63
|
+
setScrollHeightContainerHeight() {
|
|
64
|
+
var t;
|
|
65
|
+
if (this.scrollableVirtual && this.scrollHeightContainer) {
|
|
66
|
+
let i = ((t = this.rowHeightService) == null ? void 0 : t.totalHeight()) || 0;
|
|
67
|
+
i = c ? Math.min(f, i) : i, this.scrollHeightContainer.style.height = i + "px";
|
|
84
68
|
}
|
|
85
69
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
t,
|
|
93
|
-
!!this.topCacheCount
|
|
94
|
-
);
|
|
95
|
-
for (; e < t.length - this.topCacheCount && !(s + t[e].line + t[e].acc > l); )
|
|
96
|
-
s += t[e].line + t[e].acc, e++;
|
|
97
|
-
o > this.propsSkip + e || t.length <= a || (e >= t.length - this.topCacheCount && this.propsSkip + e >= this.total ? (this.translate(s - n), this.changePage(this.total - 1 - o, i)) : s !== this.tableTranslate && this.propsSkip + e - o !== this.propsSkip && (this.translate(s - n), this.changePage(this.propsSkip + e - o, i)));
|
|
70
|
+
getItemHeights() {
|
|
71
|
+
const t = [];
|
|
72
|
+
return this.tableBody && Array.from(this.tableBody.children).forEach((i) => {
|
|
73
|
+
const e = i.getBoundingClientRect().height;
|
|
74
|
+
i.classList.contains("k-detail-row") ? t[t.length - 1] += e : t.push(e);
|
|
75
|
+
}), t;
|
|
98
76
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
let l = Math.floor(t);
|
|
102
|
-
l >= this.total && (l = this.total - 1);
|
|
103
|
-
const s = Math.min(t - l, 1);
|
|
104
|
-
let e = 0;
|
|
105
|
-
const o = l - this.propsSkip, n = this.rowHeights;
|
|
106
|
-
o >= 0 && o <= 1 ? e = -((n[0].line + n[0].acc) * s) : o === -1 && (e = -((n[n.length - 1].line + n[n.length - 1].acc) * s));
|
|
107
|
-
const { topItemsCount: a, topItemsHeight: h } = this.topItems(n, !!this.topCacheCount);
|
|
108
|
-
this.translate(
|
|
109
|
-
Math.max(
|
|
110
|
-
0,
|
|
111
|
-
e - h - this.horizontalScrollbarHeight() + this.containerHeight * t / this.total
|
|
112
|
-
)
|
|
113
|
-
), this.changePage(l - a, i);
|
|
77
|
+
getTotalHeight(t, i) {
|
|
78
|
+
return i.slice(0, t).reduce((e, o) => e + o, 0);
|
|
114
79
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
const t = this.container.scrollTop, l = this.prevScrollPos;
|
|
123
|
-
if (this.prevScrollPos = t, this.askedSkip !== void 0) {
|
|
124
|
-
this.translate(this.containerHeight * this.askedSkip / this.total), this.changePage(this.askedSkip, i), this.prevScrollPos = t, this.askedSkip = void 0;
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
t - l < 0 && t > this.tableTranslate - this.table.scrollHeight / 10 ? this.localScrollUp(i) : t - l > 0 && t < this.tableTranslate + this.table.scrollHeight * 2 / 3 ? this.localScrollDown(i) : this.scrollNonStrict(i), this.prevScrollPos = t;
|
|
80
|
+
getExpectedTotalHeight(t) {
|
|
81
|
+
const i = this.rowHeightService;
|
|
82
|
+
if (!i)
|
|
83
|
+
return 0;
|
|
84
|
+
const e = this.firstToLoad + (t - 1);
|
|
85
|
+
return i.offset(e) + i.height(e) - i.offset(this.firstToLoad);
|
|
128
86
|
}
|
|
129
87
|
}
|
|
130
88
|
export {
|
|
131
|
-
|
|
89
|
+
u as VirtualScroll
|
|
132
90
|
};
|
|
@@ -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 n=require("@progress/kendo-react-common")
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),n=require("@progress/kendo-react-common");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=l(a),i=e=>{const t=e.unstyled,r=t&&t.uGrid?t.uGrid:n.uGrid;return o.createElement("td",{className:n.classNames(r.hierarchyTd({})),role:"gridcell"})};exports.GridDetailHierarchyCell=i;
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import * as t from "react";
|
|
9
|
+
import { uGrid as l, classNames as a } from "@progress/kendo-react-common";
|
|
10
10
|
const c = (e) => {
|
|
11
|
-
const r = e.unstyled, s = r && r.uGrid ? r.uGrid :
|
|
12
|
-
return /* @__PURE__ */
|
|
11
|
+
const r = e.unstyled, s = r && r.uGrid ? r.uGrid : l;
|
|
12
|
+
return /* @__PURE__ */ t.createElement("td", { className: a(s.hierarchyTd({})), role: "gridcell" });
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
15
|
c as GridDetailHierarchyCell
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),p=require("./useCellClientTdProps.js"),f=require("../hooks.js"),i=require("./utils.js");function C(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,l.get?l:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const a=C(d),g=r=>{var u;const{cellProps:e}=r,{tdProps:t,content:l}=i.getCellTdProps(e),n=p.useCellClientTdProps(e),o=f.useLegacyCellProps(e);if(((u=e._rowSpan)==null?void 0:u.count)===null)return null;const c=i.getCustomCell(e);if(c)return a.createElement(c,{...e,...o,tdProps:{...t,...n}},l);const s=t?a.createElement("td",{...t,...n},l):null;return e.render?e.render.call(void 0,s,{...e,...o}):s};exports.GridCell=g;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 * as p from "react";
|
|
10
|
+
import { useCellClientTdProps as m } from "./useCellClientTdProps.mjs";
|
|
11
|
+
import { useLegacyCellProps as u } from "../hooks.mjs";
|
|
12
|
+
import { getCellTdProps as i, getCustomCell as C } from "./utils.mjs";
|
|
13
|
+
const g = (d) => {
|
|
14
|
+
var c;
|
|
15
|
+
const { cellProps: e } = d, { tdProps: t, content: r } = i(e), l = m(e), o = u(e);
|
|
16
|
+
if (((c = e._rowSpan) == null ? void 0 : c.count) === null)
|
|
17
|
+
return null;
|
|
18
|
+
const n = C(e);
|
|
19
|
+
if (n)
|
|
20
|
+
return /* @__PURE__ */ p.createElement(n, { ...e, ...o, tdProps: { ...t, ...l } }, r);
|
|
21
|
+
const s = t ? /* @__PURE__ */ p.createElement("td", { ...t, ...l }, r) : null;
|
|
22
|
+
return e.render ? e.render.call(void 0, s, {
|
|
23
|
+
...e,
|
|
24
|
+
...o
|
|
25
|
+
}) : s;
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
g as GridCell
|
|
29
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 p=require("react"),s=require("../../utils/index.js"),u=require("./GridCellServerContainer.js"),a=require("./utils.js");function f(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const l=f(p),m=r=>{var i;const{cellProps:t}=r,{tdProps:e,content:n}=a.getCellTdProps(t);if(((i=t._rowSpan)==null?void 0:i.count)===null)return null;const o=s.getClientCellProps(t),c=a.getCustomCell(t);if(c){const d=s.isClientReference(c);return l.createElement(u.GridCellServerContainer,{cellProps:o,tdProps:e,isCustom:!0,isClient:d},l.createElement(c,{...o,tdProps:e},n))}const C=e?l.createElement("td",{...e},n):null;return l.createElement(u.GridCellServerContainer,{cellProps:o,tdProps:e},C)};exports.GridCellServer=m;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 * as r from "react";
|
|
9
|
+
import { getClientCellProps as p, isClientReference as u } from "../../utils/index.mjs";
|
|
10
|
+
import { GridCellServerContainer as c } from "./GridCellServerContainer.mjs";
|
|
11
|
+
import { getCellTdProps as a, getCustomCell as f } from "./utils.mjs";
|
|
12
|
+
const E = (i) => {
|
|
13
|
+
var s;
|
|
14
|
+
const { cellProps: t } = i, { tdProps: e, content: o } = a(t);
|
|
15
|
+
if (((s = t._rowSpan) == null ? void 0 : s.count) === null)
|
|
16
|
+
return null;
|
|
17
|
+
const l = p(t), n = f(t);
|
|
18
|
+
if (n) {
|
|
19
|
+
const C = u(n);
|
|
20
|
+
return /* @__PURE__ */ r.createElement(c, { cellProps: l, tdProps: e, isCustom: !0, isClient: C }, /* @__PURE__ */ r.createElement(n, { ...l, tdProps: e }, o));
|
|
21
|
+
}
|
|
22
|
+
const m = e ? /* @__PURE__ */ r.createElement("td", { ...e }, o) : null;
|
|
23
|
+
return /* @__PURE__ */ r.createElement(c, { cellProps: l, tdProps: e }, m);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
E as GridCellServer
|
|
27
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),i=require("../../GridClientWrapper.js"),l=require("../../utils/index.js"),o=require("./useCellClientTdProps.js"),s=require("../hooks.js");function u(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=u(c),d=e=>{const r=a.useContext(i.GridContext),t=o.useCellClientTdProps(e.cellProps),n=s.useLegacyCellProps(e.cellProps);return e.isCustom&&(r.isClient||e.isClient)?l.cloneReactElement(e.children,{tdProps:{...e.tdProps,...t},...n}):e.children&&l.cloneReactElement(e.children,{...t})};exports.GridCellServerContainer=d;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 * as i from "react";
|
|
10
|
+
import { GridContext as n } from "../../GridClientWrapper.mjs";
|
|
11
|
+
import { cloneReactElement as r } from "../../utils/index.mjs";
|
|
12
|
+
import { useCellClientTdProps as c } from "./useCellClientTdProps.mjs";
|
|
13
|
+
import { useLegacyCellProps as s } from "../hooks.mjs";
|
|
14
|
+
const f = (e) => {
|
|
15
|
+
const l = i.useContext(n), t = c(e.cellProps), o = s(e.cellProps);
|
|
16
|
+
return e.isCustom && (l.isClient || e.isClient) ? r(e.children, {
|
|
17
|
+
// pass down to tdProps for client templates
|
|
18
|
+
tdProps: { ...e.tdProps, ...t },
|
|
19
|
+
...o
|
|
20
|
+
}) : e.children && r(e.children, {
|
|
21
|
+
...t
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
f as GridCellServerContainer
|
|
26
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),y=require("../../GridClientWrapper.js"),b=require("@progress/kendo-react-data-tools"),a=require("../hooks.js");function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const c=g(f),C=e=>{const t=c.useContext(y.GridContext),o=b.useTableKeyboardNavigation(e.id),n=a.useContextMenuHandler(e.dataItem,e.field),l=a.usePositionStyle(e),u=c.useCallback(d=>{var r;(r=t==null?void 0:t.cellClick)==null||r.call(t,d,e.dataItem,e.field)},[t,e.dataItem,e.field]),i=e.rowType==="groupFooter"||e.rowType!=="groupHeader"?{onContextMenu:n}:{},s=e.rowType!=="groupFooter"&&e.rowType!=="groupHeader"?{style:l}:{};return{...o,...i,...s,onClick:u}};exports.useCellClientTdProps=C;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 * as n from "react";
|
|
10
|
+
import { GridContext as s } from "../../GridClientWrapper.mjs";
|
|
11
|
+
import { useTableKeyboardNavigation as d } from "@progress/kendo-react-data-tools";
|
|
12
|
+
import { useContextMenuHandler as y, usePositionStyle as f } from "../hooks.mjs";
|
|
13
|
+
const w = (e) => {
|
|
14
|
+
const t = n.useContext(s), a = d(e.id), l = y(e.dataItem, e.field), i = f(e), r = n.useCallback(
|
|
15
|
+
(m) => {
|
|
16
|
+
var o;
|
|
17
|
+
(o = t == null ? void 0 : t.cellClick) == null || o.call(t, m, e.dataItem, e.field);
|
|
18
|
+
},
|
|
19
|
+
[t, e.dataItem, e.field]
|
|
20
|
+
), u = e.rowType === "groupFooter" || e.rowType !== "groupHeader" ? { onContextMenu: l } : {}, c = e.rowType !== "groupFooter" && e.rowType !== "groupHeader" ? { style: i } : {};
|
|
21
|
+
return {
|
|
22
|
+
...a,
|
|
23
|
+
...u,
|
|
24
|
+
...c,
|
|
25
|
+
onClick: r
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
w as useCellClientTdProps
|
|
30
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 s=require("../../utils/index.js"),r=require("../../constants/index.js"),c=require("@progress/kendo-react-common"),m=e=>{var d,i;let t=null,a=null;const n=e.unstyled,o=n&&n.uGrid?n.uGrid:c.uGrid;if(e.rowType==="groupFooter")t={className:e.className};else if(e.rowType!=="groupHeader"){if(e.field!==void 0){const l=s.getNestedValue(e.field,e.dataItem);l!=null&&(a=e.intl&&e.format?e.intl.format(e.format,l):l.toString())}const u=c.classNames(o.td({selected:e.isSelected,sorted:e.isSorted,alt:e.isAlt}),e.className);t={rowSpan:(i=(d=e._rowSpan)==null?void 0:d.count)!=null?i:void 0,colSpan:e.colSpan,style:e.style,className:u,role:"gridcell","aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[r.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex}}return{tdProps:t,content:a}},g=e=>{var t;return(t=e.cells)==null?void 0:t[e.rowType||"data"]};exports.getCellTdProps=m;exports.getCustomCell=g;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 { getNestedValue as m } from "../../utils/index.mjs";
|
|
9
|
+
import { GRID_COL_INDEX_ATTRIBUTE as u } from "../../constants/index.mjs";
|
|
10
|
+
import { uGrid as r, classNames as s } from "@progress/kendo-react-common";
|
|
11
|
+
const y = (e) => {
|
|
12
|
+
var i, n;
|
|
13
|
+
let t = null, d = null;
|
|
14
|
+
const a = e.unstyled, c = a && a.uGrid ? a.uGrid : r;
|
|
15
|
+
if (e.rowType === "groupFooter")
|
|
16
|
+
t = {
|
|
17
|
+
className: e.className
|
|
18
|
+
};
|
|
19
|
+
else if (e.rowType !== "groupHeader") {
|
|
20
|
+
if (e.field !== void 0) {
|
|
21
|
+
const l = m(e.field, e.dataItem);
|
|
22
|
+
l != null && (d = e.intl && e.format ? e.intl.format(e.format, l) : l.toString());
|
|
23
|
+
}
|
|
24
|
+
const o = s(
|
|
25
|
+
c.td({ selected: e.isSelected, sorted: e.isSorted, alt: e.isAlt }),
|
|
26
|
+
e.className
|
|
27
|
+
);
|
|
28
|
+
t = {
|
|
29
|
+
rowSpan: (n = (i = e._rowSpan) == null ? void 0 : i.count) != null ? n : void 0,
|
|
30
|
+
colSpan: e.colSpan,
|
|
31
|
+
style: e.style,
|
|
32
|
+
className: o,
|
|
33
|
+
role: "gridcell",
|
|
34
|
+
"aria-colindex": e.ariaColumnIndex,
|
|
35
|
+
"aria-selected": e.isSelected,
|
|
36
|
+
[u]: e.columnIndex
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return { tdProps: t, content: d };
|
|
40
|
+
}, N = (e) => {
|
|
41
|
+
var t;
|
|
42
|
+
return (t = e.cells) == null ? void 0 : t[e.rowType || "data"];
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
y as getCellTdProps,
|
|
46
|
+
N as getCustomCell
|
|
47
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),i=require("./utils.js"),o=require("./useDetailCellClientTdProps.js");function s(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const n=s(c),u=e=>{const{dataItem:l,dataIndex:t}=e,{tdProps:r}=i.getDetailCellTdProps(e),a=o.useDetailCellClientTdProps(e);return n.createElement("td",{...r,...a},n.createElement(e.detail,{dataItem:l,dataIndex:t}))};exports.GridDetailCell=u;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 * as e from "react";
|
|
10
|
+
import { getDetailCellTdProps as d } from "./utils.mjs";
|
|
11
|
+
import { useDetailCellClientTdProps as i } from "./useDetailCellClientTdProps.mjs";
|
|
12
|
+
const c = (t) => {
|
|
13
|
+
const { dataItem: l, dataIndex: r } = t, { tdProps: a } = d(t), o = i(t);
|
|
14
|
+
return /* @__PURE__ */ e.createElement("td", { ...a, ...o }, /* @__PURE__ */ e.createElement(t.detail, { dataItem: l, dataIndex: r }));
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
c as GridDetailCell
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 i=require("react"),c=require("./GridDetailCellServerContainer.js"),o=require("./utils.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=d(i),u=e=>{const{dataItem:t,dataIndex:r,id:n}=e,{tdProps:a}=o.getDetailCellTdProps(e);return l.createElement(c.GridDetailCellServerContainer,{id:n,dataItem:t},l.createElement("td",{...a},l.createElement(e.detail,{dataItem:t,dataIndex:r})))};exports.GridDetailCellServer=u;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 * as t from "react";
|
|
9
|
+
import { GridDetailCellServerContainer as o } from "./GridDetailCellServerContainer.mjs";
|
|
10
|
+
import { getDetailCellTdProps as d } from "./utils.mjs";
|
|
11
|
+
const c = (e) => {
|
|
12
|
+
const { dataItem: r, dataIndex: a, id: l } = e, { tdProps: i } = d(e);
|
|
13
|
+
return /* @__PURE__ */ t.createElement(o, { id: l, dataItem: r }, /* @__PURE__ */ t.createElement("td", { ...i }, /* @__PURE__ */ t.createElement(e.detail, { dataItem: r, dataIndex: a })));
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
c as GridDetailCellServer
|
|
17
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../utils/index.js"),r=require("./useDetailCellClientTdProps.js"),i=e=>{const t=r.useDetailCellClientTdProps(e);return l.cloneReactElement(e.children,{...t})};exports.GridDetailCellServerContainer=i;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 { cloneReactElement as t } from "../../utils/index.mjs";
|
|
10
|
+
import { useDetailCellClientTdProps as l } from "./useDetailCellClientTdProps.mjs";
|
|
11
|
+
const i = (e) => {
|
|
12
|
+
const r = l(e);
|
|
13
|
+
return t(e.children, {
|
|
14
|
+
...r
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
i as GridDetailCellServerContainer
|
|
19
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@progress/kendo-react-data-tools"),o=require("../hooks.js"),a=e=>{const t=n.useTableKeyboardNavigation(e.id);return{onContextMenu:o.useContextMenuHandler(e.dataItem),...t}};exports.useDetailCellClientTdProps=a;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 { useTableKeyboardNavigation as n } from "@progress/kendo-react-data-tools";
|
|
10
|
+
import { useContextMenuHandler as o } from "../hooks.mjs";
|
|
11
|
+
const u = (t) => {
|
|
12
|
+
const e = n(t.id);
|
|
13
|
+
return {
|
|
14
|
+
onContextMenu: o(t.dataItem),
|
|
15
|
+
...e
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
u as useDetailCellClientTdProps
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 t=require("@progress/kendo-react-common"),d=l=>{const{colSpan:o,ariaColIndex:r,unstyled:e}=l,s=e&&e.uGrid?e.uGrid:t.uGrid;return{tdProps:{className:t.classNames(s.detailTd({})),colSpan:o,"aria-colindex":r,role:"gridcell"}}};exports.getDetailCellTdProps=d;
|