@progress/kendo-react-grid 15.2.0-develop.7 → 15.2.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.
Files changed (55) hide show
  1. package/GridClientWrapper.d.ts +1 -0
  2. package/GridClientWrapper.js +1 -1
  3. package/GridClientWrapper.mjs +478 -450
  4. package/GridColumn.d.ts +18 -1
  5. package/GridComponent.js +1 -1
  6. package/GridComponent.mjs +509 -433
  7. package/cells/groupcell/GridGroupCell.js +1 -1
  8. package/cells/groupcell/GridGroupCell.mjs +60 -10
  9. package/cells/groupcell/GridGroupCellServer.js +1 -1
  10. package/cells/groupcell/GridGroupCellServer.mjs +31 -18
  11. package/cells/groupcell/utils.d.ts +19 -4
  12. package/cells/groupcell/utils.js +1 -1
  13. package/cells/groupcell/utils.mjs +255 -33
  14. package/cells/selectioncell/GridSelectionCellInput.d.ts +1 -0
  15. package/cells/selectioncell/GridSelectionCellInput.js +1 -1
  16. package/cells/selectioncell/GridSelectionCellInput.mjs +19 -14
  17. package/components/StickyGroupTable.d.ts +2 -0
  18. package/components/StickyGroupTable.js +1 -1
  19. package/components/StickyGroupTable.mjs +29 -27
  20. package/dist/cdn/js/kendo-react-grid.js +1 -1
  21. package/drag/GroupingIndicator.d.ts +1 -0
  22. package/drag/GroupingIndicator.js +1 -1
  23. package/drag/GroupingIndicator.mjs +33 -30
  24. package/getRowContents.d.ts +5 -0
  25. package/getRowContents.js +1 -1
  26. package/getRowContents.mjs +77 -67
  27. package/header/GridHeaderCell.js +1 -1
  28. package/header/GridHeaderCell.mjs +17 -8
  29. package/header/GroupPanel.d.ts +3 -0
  30. package/header/GroupPanel.js +1 -1
  31. package/header/GroupPanel.mjs +35 -33
  32. package/header/HeaderRow.js +1 -1
  33. package/header/HeaderRow.mjs +48 -47
  34. package/index.d.mts +4 -2
  35. package/index.d.ts +4 -2
  36. package/interfaces/GridCellProps.d.ts +21 -0
  37. package/interfaces/GridCellsSettings.d.ts +60 -0
  38. package/interfaces/GridGroupColumnSettings.d.ts +170 -0
  39. package/interfaces/GridGroupableSettings.d.ts +66 -0
  40. package/interfaces/GridHeaderCellProps.d.ts +4 -0
  41. package/messages/index.d.ts +5 -0
  42. package/messages/index.js +2 -2
  43. package/messages/index.mjs +149 -147
  44. package/package-metadata.js +1 -1
  45. package/package-metadata.mjs +2 -2
  46. package/package.json +17 -17
  47. package/rows/GridRowRenderer.d.ts +2 -0
  48. package/rows/GridRowRenderer.js +1 -1
  49. package/rows/GridRowRenderer.mjs +21 -19
  50. package/stacked/StackedModeRow.d.ts +2 -0
  51. package/stacked/StackedModeRow.js +1 -1
  52. package/stacked/StackedModeRow.mjs +97 -85
  53. package/utils/index.d.ts +7 -1
  54. package/utils/index.js +1 -1
  55. package/utils/index.mjs +67 -62
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react"),l=require("@progress/kendo-react-common"),h=require("../utils/GridContext.js"),j=require("../rows/GridRowRenderer.js"),q=require("../getRowContents.js");function x(o){const n=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(n,e,i.get?i:{enumerable:!0,get:()=>o[e]})}}return n.default=o,Object.freeze(n)}const r=x(O),z=({size:o,colGroups:n,dataRowContext:e,position:i,isStackedMode:k,groupLevelCount:g,stackedLayoutSettings:I,rowHeight:C})=>{const u=l.useUnstyled(),f=u!=null&&u.uGrid?u.uGrid:l.uGrid,t=r.useContext(h.GridContext),c=i==="top",d=c?t.stickyHeaderRef:t.stickyFooterRef,b=(c?t.stickyHeaderItems:t.stickyFooterItems)||[],G=b.length>0,w=l.classNames(f.stickyContainer({bottom:!c})),S=l.classNames(f.table({size:o})),m=r.useRef(null),N=c?t.stickyHeaderTableRef:t.stickyFooterTableRef;r.useImperativeHandle(N,()=>({setWidth:s=>{m.current&&(m.current.style.width=s?s+"px":"")},setScrollLeft:s=>{d.current&&d.current.scrollLeft!==s&&(d.current.scrollLeft=s)}}));const T=r.useCallback(s=>{var a;(a=t.columnResizeRef)!=null&&a.current&&(c?t.columnResizeRef.current.colGroupStickyHeader=s:t.columnResizeRef.current.colGroupStickyFooter=s)},[t.columnResizeRef,c]),E=n?r.cloneElement(n,{colGroupRef:T}):null,v=()=>b.map((s,a)=>{const{item:y,flatIndex:p}=s,R=e.dataItemKey&&l.getter(e.dataItemKey)(y.dataItem)||"ai"+p,H=q.getRowContents(e,{},y,R,a,!1);return r.createElement(j.GridRowRenderer,{key:R,isStackedMode:!!k,item:y,rowId:R,dataIndex:-1,ariaRowIndex:a,absoluteRowIndex:p,isAltRow:!1,isHidden:!1,isRowReorderable:!1,rowHeight:C,rows:void 0,leafColumns:e.leafColumns,groupLevelCount:g||0,stackedLayoutSettings:I,cells:e.cells,isSelected:!1,isInEdit:!1,preparedCells:H.row,showDetailToggle:!1,isDetailExpanded:!1})});return r.createElement("div",{ref:d,className:w,style:{display:G?"":"none"}},r.createElement("table",{ref:m,className:S},E,r.createElement("tbody",{className:l.classNames(f.tbody({}))},v())))};exports.StickyGroupTable=z;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react"),l=require("@progress/kendo-react-common"),q=require("../utils/GridContext.js"),v=require("../rows/GridRowRenderer.js"),z=require("../getRowContents.js");function M(o){const n=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(n,e,i.get?i:{enumerable:!0,get:()=>o[e]})}}return n.default=o,Object.freeze(n)}const r=M(j),x=({size:o,colGroups:n,dataRowContext:e,position:i,isStackedMode:g,groupLevelCount:k,stackedLayoutSettings:I,rowHeight:C,rows:G})=>{const u=l.useUnstyled(),f=u!=null&&u.uGrid?u.uGrid:l.uGrid,t=r.useContext(q.GridContext),c=i==="top",d=c?t.stickyHeaderRef:t.stickyFooterRef,p=(c?t.stickyHeaderItems:t.stickyFooterItems)||[],S=p.length>0,w=l.classNames(f.stickyContainer({bottom:!c})),N=l.classNames(f.table({size:o})),m=r.useRef(null),T=c?t.stickyHeaderTableRef:t.stickyFooterTableRef;r.useImperativeHandle(T,()=>({setWidth:s=>{m.current&&(m.current.style.width=s?s+"px":"")},setScrollLeft:s=>{d.current&&d.current.scrollLeft!==s&&(d.current.scrollLeft=s)}}));const E=r.useCallback(s=>{var a;(a=t.columnResizeRef)!=null&&a.current&&(c?t.columnResizeRef.current.colGroupStickyHeader=s:t.columnResizeRef.current.colGroupStickyFooter=s)},[t.columnResizeRef,c]),H=n?r.cloneElement(n,{colGroupRef:E}):null,O=()=>p.map((s,a)=>{const{item:y,flatIndex:b}=s,R=e.dataItemKey&&l.getter(e.dataItemKey)(y.dataItem)||"ai"+b,h=z.getRowContents(e,{},y,R,a,!1);return r.createElement(v.GridRowRenderer,{key:R,isStackedMode:!!g,item:y,rowId:R,dataIndex:-1,ariaRowIndex:a,absoluteRowIndex:b,isAltRow:!1,isHidden:!1,isRowReorderable:!1,rowHeight:C,rows:G,leafColumns:e.leafColumns,groupLevelCount:k||0,groupingMode:e.groupingMode,stackedLayoutSettings:I,cells:e.cells,isSelected:!1,isInEdit:!1,preparedCells:h.row,showDetailToggle:!1,isDetailExpanded:!1})});return r.createElement("div",{ref:d,className:w,style:{display:S?"":"none"}},r.createElement("table",{ref:m,className:N},H,r.createElement("tbody",{className:l.classNames(f.tbody({}))},O())))};exports.StickyGroupTable=x;
@@ -7,39 +7,40 @@
7
7
  */
8
8
  "use client";
9
9
  import * as s from "react";
10
- import { useUnstyled as T, uGrid as v, classNames as f, getter as z } from "@progress/kendo-react-common";
11
- import { GridContext as F } from "../utils/GridContext.mjs";
12
- import { GridRowRenderer as K } from "../rows/GridRowRenderer.mjs";
13
- import { getRowContents as L } from "../getRowContents.mjs";
14
- const j = ({
10
+ import { useUnstyled as z, uGrid as F, classNames as f, getter as K } from "@progress/kendo-react-common";
11
+ import { GridContext as v } from "../utils/GridContext.mjs";
12
+ import { GridRowRenderer as L } from "../rows/GridRowRenderer.mjs";
13
+ import { getRowContents as M } from "../getRowContents.mjs";
14
+ const q = ({
15
15
  size: p,
16
16
  colGroups: u,
17
- dataRowContext: o,
17
+ dataRowContext: r,
18
18
  position: k,
19
19
  isStackedMode: I,
20
20
  groupLevelCount: b,
21
- stackedLayoutSettings: C,
22
- rowHeight: g
21
+ stackedLayoutSettings: g,
22
+ rowHeight: C,
23
+ rows: G
23
24
  }) => {
24
- const n = T(), c = n != null && n.uGrid ? n.uGrid : v, e = s.useContext(F), r = k === "top", a = r ? e.stickyHeaderRef : e.stickyFooterRef, R = (r ? e.stickyHeaderItems : e.stickyFooterItems) || [], G = R.length > 0, w = f(c.stickyContainer({ bottom: !r })), E = f(c.table({ size: p })), i = s.useRef(null), H = r ? e.stickyHeaderTableRef : e.stickyFooterTableRef;
25
- s.useImperativeHandle(H, () => ({
25
+ const n = z(), a = n != null && n.uGrid ? n.uGrid : F, e = s.useContext(v), o = k === "top", c = o ? e.stickyHeaderRef : e.stickyFooterRef, y = (o ? e.stickyHeaderItems : e.stickyFooterItems) || [], E = y.length > 0, w = f(a.stickyContainer({ bottom: !o })), H = f(a.table({ size: p })), i = s.useRef(null), N = o ? e.stickyHeaderTableRef : e.stickyFooterTableRef;
26
+ s.useImperativeHandle(N, () => ({
26
27
  setWidth: (t) => {
27
28
  i.current && (i.current.style.width = t ? t + "px" : "");
28
29
  },
29
30
  setScrollLeft: (t) => {
30
- a.current && a.current.scrollLeft !== t && (a.current.scrollLeft = t);
31
+ c.current && c.current.scrollLeft !== t && (c.current.scrollLeft = t);
31
32
  }
32
33
  }));
33
- const N = s.useCallback(
34
+ const S = s.useCallback(
34
35
  (t) => {
35
36
  var l;
36
- (l = e.columnResizeRef) != null && l.current && (r ? e.columnResizeRef.current.colGroupStickyHeader = t : e.columnResizeRef.current.colGroupStickyFooter = t);
37
+ (l = e.columnResizeRef) != null && l.current && (o ? e.columnResizeRef.current.colGroupStickyHeader = t : e.columnResizeRef.current.colGroupStickyFooter = t);
37
38
  },
38
- [e.columnResizeRef, r]
39
- ), S = u ? s.cloneElement(u, { colGroupRef: N }) : null, h = () => R.map((t, l) => {
40
- const { item: d, flatIndex: y } = t, m = o.dataItemKey && z(o.dataItemKey)(d.dataItem) || "ai" + y, x = L(o, {}, d, m, l, !1);
39
+ [e.columnResizeRef, o]
40
+ ), h = u ? s.cloneElement(u, { colGroupRef: S }) : null, T = () => y.map((t, l) => {
41
+ const { item: d, flatIndex: R } = t, m = r.dataItemKey && K(r.dataItemKey)(d.dataItem) || "ai" + R, x = M(r, {}, d, m, l, !1);
41
42
  return /* @__PURE__ */ s.createElement(
42
- K,
43
+ L,
43
44
  {
44
45
  key: m,
45
46
  isStackedMode: !!I,
@@ -47,16 +48,17 @@ const j = ({
47
48
  rowId: m,
48
49
  dataIndex: -1,
49
50
  ariaRowIndex: l,
50
- absoluteRowIndex: y,
51
+ absoluteRowIndex: R,
51
52
  isAltRow: !1,
52
53
  isHidden: !1,
53
54
  isRowReorderable: !1,
54
- rowHeight: g,
55
- rows: void 0,
56
- leafColumns: o.leafColumns,
55
+ rowHeight: C,
56
+ rows: G,
57
+ leafColumns: r.leafColumns,
57
58
  groupLevelCount: b || 0,
58
- stackedLayoutSettings: C,
59
- cells: o.cells,
59
+ groupingMode: r.groupingMode,
60
+ stackedLayoutSettings: g,
61
+ cells: r.cells,
60
62
  isSelected: !1,
61
63
  isInEdit: !1,
62
64
  preparedCells: x.row,
@@ -68,15 +70,15 @@ const j = ({
68
70
  return /* @__PURE__ */ s.createElement(
69
71
  "div",
70
72
  {
71
- ref: a,
73
+ ref: c,
72
74
  className: w,
73
75
  style: {
74
- display: G ? "" : "none"
76
+ display: E ? "" : "none"
75
77
  }
76
78
  },
77
- /* @__PURE__ */ s.createElement("table", { ref: i, className: E }, S, /* @__PURE__ */ s.createElement("tbody", { className: f(c.tbody({})) }, h()))
79
+ /* @__PURE__ */ s.createElement("table", { ref: i, className: H }, h, /* @__PURE__ */ s.createElement("tbody", { className: f(a.tbody({})) }, T()))
78
80
  );
79
81
  };
80
82
  export {
81
- j as StickyGroupTable
83
+ q as StickyGroupTable
82
84
  };