@progress/kendo-react-grid 9.4.1-develop.4 → 9.4.1-develop.5

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 (44) hide show
  1. package/GridClientContextReader.js +1 -1
  2. package/GridClientContextReader.mjs +16 -16
  3. package/cells/client/DetailCellContainer.js +1 -1
  4. package/cells/client/DetailCellContainer.mjs +7 -6
  5. package/cells/client/GridCellContainer.js +1 -1
  6. package/cells/client/GridCellContainer.mjs +27 -26
  7. package/cells/client/GridEditCellContainer.js +1 -1
  8. package/cells/client/GridEditCellContainer.mjs +32 -31
  9. package/cells/client/GridGroupCellContainer.js +1 -1
  10. package/cells/client/GridGroupCellContainer.mjs +26 -25
  11. package/cells/client/GridHierarchyCellContainer.js +1 -1
  12. package/cells/client/GridHierarchyCellContainer.mjs +30 -29
  13. package/cells/client/GridRowReorderContainer.js +1 -1
  14. package/cells/client/GridRowReorderContainer.mjs +15 -14
  15. package/cells/client/GridSelectionCellContainer.js +1 -1
  16. package/cells/client/GridSelectionCellContainer.mjs +31 -30
  17. package/components/GridContainerElementContainer.js +1 -1
  18. package/components/GridContainerElementContainer.mjs +8 -8
  19. package/components/GridCustomCellClientContainer.js +1 -1
  20. package/components/GridCustomCellClientContainer.mjs +8 -7
  21. package/components/GridDraggableRowsContainer.js +1 -1
  22. package/components/GridDraggableRowsContainer.mjs +10 -9
  23. package/components/GridElementContainer.js +1 -1
  24. package/components/GridElementContainer.mjs +6 -6
  25. package/components/PagerContainer.js +1 -1
  26. package/components/PagerContainer.mjs +9 -9
  27. package/components/table/GridTableBody.js +1 -1
  28. package/components/table/GridTableBody.mjs +9 -9
  29. package/dist/cdn/js/kendo-react-grid.js +1 -1
  30. package/footer/client/FooterCellContainer.js +1 -1
  31. package/footer/client/FooterCellContainer.mjs +10 -9
  32. package/header/client/GridFilterCellContainer.js +1 -1
  33. package/header/client/GridFilterCellContainer.mjs +13 -12
  34. package/header/client/GridFilterCellElementContainer.js +1 -1
  35. package/header/client/GridFilterCellElementContainer.mjs +4 -3
  36. package/header/client/GridHeaderCellContainer.js +1 -1
  37. package/header/client/GridHeaderCellContainer.mjs +13 -12
  38. package/header/client/GridHeaderCellElementContainer.js +1 -1
  39. package/header/client/GridHeaderCellElementContainer.mjs +11 -10
  40. package/package-metadata.js +1 -1
  41. package/package-metadata.mjs +2 -2
  42. package/package.json +13 -13
  43. package/utils/index.js +1 -1
  44. package/utils/index.mjs +119 -110
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react"),r=require("@progress/kendo-react-common"),s=require("@progress/kendo-react-intl"),g=require("./GridState.js");function y(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=y(p),C=e=>{const{children:t}=e,n=r.useId(),o=e.id||n,a=r.useUnstyled(),i=s.useLocalization(),l=s.useInternationalization(),[,u]=c.useReducer(m=>!m,!0),d=c.useRef([]),f=c.useRef(0),[R,,b]=g.useGridState();return c.cloneElement(t,{...t==null?void 0:t.props,...R,...b,id:o,unstyled:a,localization:i,intl:l,columnsRef:d,scrollLeftRef:f,forceUpdate:u,isClient:!0})};exports.GridClientContextReader=C;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),r=require("@progress/kendo-react-common"),s=require("@progress/kendo-react-intl"),g=require("./GridState.js"),y=require("./utils/index.js");function p(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const o=p(m),C=e=>{const n=r.useId(),t=e.id||n,c=r.useUnstyled(),i=s.useLocalization(),a=s.useInternationalization(),[,l]=o.useReducer(b=>!b,!0),u=o.useRef([]),d=o.useRef(0),[f,,R]=g.useGridState();return y.cloneReactElement(e.children,{...f,...R,id:t,unstyled:c,localization:i,intl:a,columnsRef:u,scrollLeftRef:d,forceUpdate:l,isClient:!0})};exports.GridClientContextReader=C;
@@ -6,26 +6,26 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as e from "react";
10
- import { useId as R, useUnstyled as p } from "@progress/kendo-react-common";
11
- import { useLocalization as z, useInternationalization as C } from "@progress/kendo-react-intl";
12
- import { useGridState as I } from "./GridState.mjs";
13
- const L = (o) => {
14
- const { children: t } = o, n = R(), s = o.id || n, c = p(), r = z(), i = C(), [, l] = e.useReducer((m) => !m, !0), a = e.useRef([]), u = e.useRef(0), [d, , f] = I();
15
- return e.cloneElement(t, {
16
- ...t == null ? void 0 : t.props,
9
+ import * as t from "react";
10
+ import { useId as f, useUnstyled as R } from "@progress/kendo-react-common";
11
+ import { useLocalization as p, useInternationalization as z } from "@progress/kendo-react-intl";
12
+ import { useGridState as C } from "./GridState.mjs";
13
+ import { cloneReactElement as I } from "./utils/index.mjs";
14
+ const U = (e) => {
15
+ const o = f(), n = e.id || o, s = R(), c = p(), i = z(), [, r] = t.useReducer((m) => !m, !0), l = t.useRef([]), a = t.useRef(0), [u, , d] = C();
16
+ return I(e.children, {
17
+ ...u,
17
18
  ...d,
18
- ...f,
19
- id: s,
20
- unstyled: c,
21
- localization: r,
19
+ id: n,
20
+ unstyled: s,
21
+ localization: c,
22
22
  intl: i,
23
- columnsRef: a,
24
- scrollLeftRef: u,
25
- forceUpdate: l,
23
+ columnsRef: l,
24
+ scrollLeftRef: a,
25
+ forceUpdate: r,
26
26
  isClient: !0
27
27
  });
28
28
  };
29
29
  export {
30
- L as GridClientContextReader
30
+ U as GridClientContextReader
31
31
  };
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),i=require("@progress/kendo-react-data-tools"),l=require("../../GridClientWrapper.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=u(c),s=e=>{const t=a.useContext(l.GridContext),n=i.useTableKeyboardNavigation(e.id),o=a.useCallback(r=>{t!=null&&t.onContextMenu&&t.onContextMenu.call(void 0,r,e.dataItem)},[t,e.dataItem]);return a.cloneElement(e.children,{onContextMenu:o,...n})};exports.DetailCellContainer=s;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),i=require("@progress/kendo-react-data-tools"),l=require("../../GridClientWrapper.js"),u=require("../../utils/index.js");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=s(c),d=e=>{const t=a.useContext(l.GridContext),n=i.useTableKeyboardNavigation(e.id),o=a.useCallback(r=>{t!=null&&t.onContextMenu&&t.onContextMenu.call(void 0,r,e.dataItem)},[t,e.dataItem]);return u.cloneReactElement(e.children,{onContextMenu:o,...n})};exports.DetailCellContainer=d;
@@ -7,20 +7,21 @@
7
7
  */
8
8
  "use client";
9
9
  import * as n from "react";
10
- import { useTableKeyboardNavigation as l } from "@progress/kendo-react-data-tools";
11
- import { GridContext as r } from "../../GridClientWrapper.mjs";
12
- const u = (e) => {
13
- const t = n.useContext(r), o = l(e.id), a = n.useCallback(
10
+ import { useTableKeyboardNavigation as r } from "@progress/kendo-react-data-tools";
11
+ import { GridContext as l } from "../../GridClientWrapper.mjs";
12
+ import { cloneReactElement as m } from "../../utils/index.mjs";
13
+ const d = (e) => {
14
+ const t = n.useContext(l), o = r(e.id), a = n.useCallback(
14
15
  (i) => {
15
16
  t != null && t.onContextMenu && t.onContextMenu.call(void 0, i, e.dataItem);
16
17
  },
17
18
  [t, e.dataItem]
18
19
  );
19
- return n.cloneElement(e.children, {
20
+ return m(e.children, {
20
21
  onContextMenu: a,
21
22
  ...o
22
23
  });
23
24
  };
24
25
  export {
25
- u as DetailCellContainer
26
+ d as DetailCellContainer
26
27
  };
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),y=require("@progress/kendo-react-data-tools"),P=require("../../GridClientWrapper.js");function b(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const l=b(g),p=n=>{var d;const{cellProps:e}=n,t=l.useContext(P.GridContext),a=y.useTableKeyboardNavigation(e.id),s=l.useCallback(o=>{var r;(r=t==null?void 0:t.cellClick)==null||r.call(t,o,e.dataItem,e.field)},[t,e.dataItem,e.field]),u=l.useCallback(o=>{var r;(r=t==null?void 0:t.onContextMenu)==null||r.call(void 0,o,e.dataItem,e.field)},[t,e.dataItem,e.field]),C=e.rowType==="groupFooter"||e.rowType!=="groupHeader"?{onContextMenu:u}:{},m=t.getCellPositionStyle(e.columnPosition),f=e.rowType!=="groupFooter"&&e.rowType!=="groupHeader"?{style:{...(d=n.tdProps)==null?void 0:d.style,...m}}:{},c={...a,...C,...f,onClick:s},i={onContextMenu:t.onContextMenu,onChange:t.itemChange,selectionChange:o=>{t.selectionChange({event:o,dataItem:e.dataItem,dataIndex:e.rowDataIndex,columnIndex:e.columnIndex})}};if(n.isCustom)return t.isClient||n.isClient?l.cloneElement(n.children,{tdProps:{...n.tdProps,...c},...i}):l.cloneElement(n.children,{...c});if(e.render){const o=e.rowType!=="groupHeader"?l.createElement("td",{...n.tdProps,...c},n.content):null;return e.render.call(void 0,o,{...e,...i})}return n.children&&l.cloneElement(n.children,{...c})};exports.GridCellContainer=p;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),P=require("@progress/kendo-react-data-tools"),b=require("../../GridClientWrapper.js"),i=require("../../utils/index.js");function p(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const c=p(y),I=n=>{var s;const{cellProps:e}=n,t=c.useContext(b.GridContext),r=P.useTableKeyboardNavigation(e.id),u=c.useCallback(o=>{var l;(l=t==null?void 0:t.cellClick)==null||l.call(t,o,e.dataItem,e.field)},[t,e.dataItem,e.field]),C=c.useCallback(o=>{var l;(l=t==null?void 0:t.onContextMenu)==null||l.call(void 0,o,e.dataItem,e.field)},[t,e.dataItem,e.field]),m=e.rowType==="groupFooter"||e.rowType!=="groupHeader"?{onContextMenu:C}:{},f=t.getCellPositionStyle(e.columnPosition),g=e.rowType!=="groupFooter"&&e.rowType!=="groupHeader"?{style:{...(s=n.tdProps)==null?void 0:s.style,...f}}:{},a={...r,...m,...g,onClick:u},d={onContextMenu:t.onContextMenu,onChange:t.itemChange,selectionChange:o=>{t.selectionChange({event:o,dataItem:e.dataItem,dataIndex:e.rowDataIndex,columnIndex:e.columnIndex})}};if(n.isCustom)return t.isClient||n.isClient?i.cloneReactElement(n.children,{tdProps:{...n.tdProps,...a},...d}):i.cloneReactElement(n.children,{...a});if(e.render){const o=e.rowType!=="groupHeader"?c.createElement("td",{...n.tdProps,...a},n.content):null;return e.render.call(void 0,o,{...e,...d})}return n.children&&i.cloneReactElement(n.children,{...a})};exports.GridCellContainer=I;
@@ -6,33 +6,34 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as l from "react";
10
- import { useTableKeyboardNavigation as f } from "@progress/kendo-react-data-tools";
11
- import { GridContext as y } from "../../GridClientWrapper.mjs";
12
- const h = (n) => {
13
- var c;
14
- const { cellProps: e } = n, t = l.useContext(y), d = f(e.id), s = l.useCallback(
9
+ import * as a from "react";
10
+ import { useTableKeyboardNavigation as y } from "@progress/kendo-react-data-tools";
11
+ import { GridContext as I } from "../../GridClientWrapper.mjs";
12
+ import { cloneReactElement as i } from "../../utils/index.mjs";
13
+ const p = (n) => {
14
+ var d;
15
+ const { cellProps: e } = n, t = a.useContext(I), s = y(e.id), u = a.useCallback(
15
16
  (o) => {
16
- var a;
17
- (a = t == null ? void 0 : t.cellClick) == null || a.call(t, o, e.dataItem, e.field);
17
+ var l;
18
+ (l = t == null ? void 0 : t.cellClick) == null || l.call(t, o, e.dataItem, e.field);
18
19
  },
19
20
  [t, e.dataItem, e.field]
20
- ), u = l.useCallback(
21
+ ), m = a.useCallback(
21
22
  (o) => {
22
- var a;
23
- (a = t == null ? void 0 : t.onContextMenu) == null || a.call(void 0, o, e.dataItem, e.field);
23
+ var l;
24
+ (l = t == null ? void 0 : t.onContextMenu) == null || l.call(void 0, o, e.dataItem, e.field);
24
25
  },
25
26
  [t, e.dataItem, e.field]
26
- ), m = e.rowType === "groupFooter" || e.rowType !== "groupHeader" ? {
27
- onContextMenu: u
28
- } : {}, C = t.getCellPositionStyle(e.columnPosition), P = e.rowType !== "groupFooter" && e.rowType !== "groupHeader" ? {
29
- style: { ...(c = n.tdProps) == null ? void 0 : c.style, ...C }
27
+ ), C = e.rowType === "groupFooter" || e.rowType !== "groupHeader" ? {
28
+ onContextMenu: m
29
+ } : {}, f = t.getCellPositionStyle(e.columnPosition), P = e.rowType !== "groupFooter" && e.rowType !== "groupHeader" ? {
30
+ style: { ...(d = n.tdProps) == null ? void 0 : d.style, ...f }
30
31
  } : {}, r = {
31
- ...d,
32
- ...m,
32
+ ...s,
33
+ ...C,
33
34
  ...P,
34
- onClick: s
35
- }, i = {
35
+ onClick: u
36
+ }, c = {
36
37
  onContextMenu: t.onContextMenu,
37
38
  onChange: t.itemChange,
38
39
  selectionChange: (o) => {
@@ -45,24 +46,24 @@ const h = (n) => {
45
46
  }
46
47
  };
47
48
  if (n.isCustom)
48
- return t.isClient || n.isClient ? l.cloneElement(n.children, {
49
+ return t.isClient || n.isClient ? i(n.children, {
49
50
  // pass down to tdProps for client templates
50
51
  tdProps: { ...n.tdProps, ...r },
51
- ...i
52
- }) : l.cloneElement(n.children, {
52
+ ...c
53
+ }) : i(n.children, {
53
54
  ...r
54
55
  });
55
56
  if (e.render) {
56
- const o = e.rowType !== "groupHeader" ? /* @__PURE__ */ l.createElement("td", { ...n.tdProps, ...r }, n.content) : null;
57
+ const o = e.rowType !== "groupHeader" ? /* @__PURE__ */ a.createElement("td", { ...n.tdProps, ...r }, n.content) : null;
57
58
  return e.render.call(void 0, o, {
58
59
  ...e,
59
- ...i
60
+ ...c
60
61
  });
61
62
  }
62
- return n.children && l.cloneElement(n.children, {
63
+ return n.children && i(n.children, {
63
64
  ...r
64
65
  });
65
66
  };
66
67
  export {
67
- h as GridCellContainer
68
+ p as GridCellContainer
68
69
  };
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),m=require("@progress/kendo-react-data-tools"),f=require("../../GridClientWrapper.js");function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=g(C),P=e=>{var c;const{cellProps:t}=e,n=o.useContext(f.GridContext),i=m.useTableKeyboardNavigation(t.id),d={onContextMenu:o.useCallback(l=>{n!=null&&n.onContextMenu&&n.onContextMenu.call(void 0,l,t.dataItem,t.field)},[n,t.dataItem,t.field])},s=n.getCellPositionStyle(t.columnPosition),u={style:{...(c=e.tdProps)==null?void 0:c.style,...s}},r={...i,...d,...u},a={onContextMenu:n.onContextMenu,onChange:n.itemChange,selectionChange:l=>{n.selectionChange({event:l,dataItem:t.dataItem,dataIndex:t.rowDataIndex,columnIndex:t.columnIndex})}};if(e.isCustom)return n.isClient||e.isClient?o.cloneElement(e.children,{tdProps:{...e.tdProps,...r},...a}):o.cloneElement(e.children,{...r});if(t.render){const l=o.createElement("td",{...e.tdProps,...r},e.content);return t.render.call(void 0,l,{...t,...a})}return e.children&&o.cloneElement(e.children,{...r})};exports.GridEditCellContainer=P;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),f=require("@progress/kendo-react-data-tools"),g=require("../../GridClientWrapper.js"),r=require("../../utils/index.js");function P(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=P(m),x=e=>{var d;const{cellProps:t}=e,n=c.useContext(g.GridContext),l=f.useTableKeyboardNavigation(t.id),s={onContextMenu:c.useCallback(o=>{n!=null&&n.onContextMenu&&n.onContextMenu.call(void 0,o,t.dataItem,t.field)},[n,t.dataItem,t.field])},u=n.getCellPositionStyle(t.columnPosition),C={style:{...(d=e.tdProps)==null?void 0:d.style,...u}},i={...l,...s,...C},a={onContextMenu:n.onContextMenu,onChange:n.itemChange,selectionChange:o=>{n.selectionChange({event:o,dataItem:t.dataItem,dataIndex:t.rowDataIndex,columnIndex:t.columnIndex})}};if(e.isCustom)return n.isClient||e.isClient?r.cloneReactElement(e.children,{tdProps:{...e.tdProps,...i},...a}):r.cloneReactElement(e.children,{...i});if(t.render){const o=c.createElement("td",{...e.tdProps,...i},e.content);return t.render.call(void 0,o,{...t,...a})}return e.children&&r.cloneReactElement(e.children,{...i})};exports.GridEditCellContainer=x;
@@ -6,55 +6,56 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as o from "react";
10
- import { useTableKeyboardNavigation as C } from "@progress/kendo-react-data-tools";
11
- import { GridContext as m } from "../../GridClientWrapper.mjs";
12
- const g = (n) => {
13
- var c;
14
- const { cellProps: e } = n, t = o.useContext(m), d = C(e.id), r = {
15
- onContextMenu: o.useCallback(
16
- (l) => {
17
- t != null && t.onContextMenu && t.onContextMenu.call(void 0, l, e.dataItem, e.field);
9
+ import * as l from "react";
10
+ import { useTableKeyboardNavigation as m } from "@progress/kendo-react-data-tools";
11
+ import { GridContext as x } from "../../GridClientWrapper.mjs";
12
+ import { cloneReactElement as a } from "../../utils/index.mjs";
13
+ const I = (t) => {
14
+ var d;
15
+ const { cellProps: e } = t, n = l.useContext(x), c = m(e.id), s = {
16
+ onContextMenu: l.useCallback(
17
+ (o) => {
18
+ n != null && n.onContextMenu && n.onContextMenu.call(void 0, o, e.dataItem, e.field);
18
19
  },
19
- [t, e.dataItem, e.field]
20
+ [n, e.dataItem, e.field]
20
21
  )
21
- }, s = t.getCellPositionStyle(e.columnPosition), u = {
22
- style: { ...(c = n.tdProps) == null ? void 0 : c.style, ...s }
22
+ }, u = n.getCellPositionStyle(e.columnPosition), C = {
23
+ style: { ...(d = t.tdProps) == null ? void 0 : d.style, ...u }
23
24
  }, i = {
24
- ...d,
25
- ...r,
26
- ...u
27
- }, a = {
28
- onContextMenu: t.onContextMenu,
29
- onChange: t.itemChange,
30
- selectionChange: (l) => {
31
- t.selectionChange({
32
- event: l,
25
+ ...c,
26
+ ...s,
27
+ ...C
28
+ }, r = {
29
+ onContextMenu: n.onContextMenu,
30
+ onChange: n.itemChange,
31
+ selectionChange: (o) => {
32
+ n.selectionChange({
33
+ event: o,
33
34
  dataItem: e.dataItem,
34
35
  dataIndex: e.rowDataIndex,
35
36
  columnIndex: e.columnIndex
36
37
  });
37
38
  }
38
39
  };
39
- if (n.isCustom)
40
- return t.isClient || n.isClient ? o.cloneElement(n.children, {
40
+ if (t.isCustom)
41
+ return n.isClient || t.isClient ? a(t.children, {
41
42
  // pass down to tdProps for client templates
42
- tdProps: { ...n.tdProps, ...i },
43
- ...a
44
- }) : o.cloneElement(n.children, {
43
+ tdProps: { ...t.tdProps, ...i },
44
+ ...r
45
+ }) : a(t.children, {
45
46
  ...i
46
47
  });
47
48
  if (e.render) {
48
- const l = /* @__PURE__ */ o.createElement("td", { ...n.tdProps, ...i }, n.content);
49
- return e.render.call(void 0, l, {
49
+ const o = /* @__PURE__ */ l.createElement("td", { ...t.tdProps, ...i }, t.content);
50
+ return e.render.call(void 0, o, {
50
51
  ...e,
51
- ...a
52
+ ...r
52
53
  });
53
54
  }
54
- return n.children && o.cloneElement(n.children, {
55
+ return t.children && a(t.children, {
55
56
  ...i
56
57
  });
57
58
  };
58
59
  export {
59
- g as GridEditCellContainer
60
+ I as GridEditCellContainer
60
61
  };
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),s=require("@progress/kendo-react-data-tools"),g=require("../../GridClientWrapper.js"),x=require("@progress/kendo-react-common");function I(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const d=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,d.get?d:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=I(y),b=e=>{var u;const{cellProps:t}=e,n=o.useContext(g.GridContext),d=s.useTableKeyboardNavigation(t.id),m=o.useCallback(l=>{l.isDefaultPrevented()||l.keyCode===x.Keys.enter&&(n!=null&&n.itemChange)&&(l.preventDefault(),n.itemChange({dataItem:t.dataItem,dataIndex:t.dataIndex,syntheticEvent:l,field:void 0,value:!t.expanded}),n==null||n.dispatchGroupExpand({type:s.GROUP_EXPAND_ACTION.TOGGLE,group:t.group},l))},[n,t.dataItem,t.dataIndex,t.expanded,t.group]),C=e.addKeyDownHandler?{onKeyDown:m}:{},r=o.useCallback(l=>{n!=null&&n.onContextMenu&&n.onContextMenu.call(void 0,l,t.dataItem,t.field)},[n,t.dataItem,t.field]),f=n.getCellPositionStyle(t.columnPosition),P={style:{...(u=e.tdProps)==null?void 0:u.style,...f}},a={...d,...C,onContextMenu:r,...P},c={onContextMenu:n.onContextMenu,onChange:n.itemChange,selectionChange:l=>{n.selectionChange({event:l,dataItem:t.dataItem,dataIndex:t.rowDataIndex,columnIndex:t.columnIndex})}};if(e.isCustom)return n.isClient||e.isClient?o.cloneElement(e.children,{tdProps:e.tdProps?{...e.tdProps,...a}:null,td2Props:e.td2Props?{...e.td2Props,onContextMenu:r}:null,...c}):o.cloneElement(e.children,{...a});const i=e.renderSecondCell?o.createElement("td",{...e.td2Props,onContextMenu:r}):null;if(t.render){let l=null;return e.renderFirstCell&&(e.renderSecondCell?l=o.createElement(o.Fragment,null,o.createElement("td",{...e.tdProps,...a},e.content),e.renderSecondCell&&i):l=o.createElement("td",{...e.tdProps,...a},e.content)),t.render.call(void 0,l,{...t,...c})}return o.createElement(o.Fragment,null,e.children&&o.cloneElement(e.children,{...a}),i)};exports.GridGroupCellContainer=b;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),m=require("@progress/kendo-react-data-tools"),x=require("../../GridClientWrapper.js"),I=require("@progress/kendo-react-common"),c=require("../../utils/index.js");function b(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const d=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,d.get?d:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=b(g),h=e=>{var s;const{cellProps:t}=e,n=o.useContext(x.GridContext),d=m.useTableKeyboardNavigation(t.id),C=o.useCallback(l=>{l.isDefaultPrevented()||l.keyCode===I.Keys.enter&&(n!=null&&n.itemChange)&&(l.preventDefault(),n.itemChange({dataItem:t.dataItem,dataIndex:t.dataIndex,syntheticEvent:l,field:void 0,value:!t.expanded}),n==null||n.dispatchGroupExpand({type:m.GROUP_EXPAND_ACTION.TOGGLE,group:t.group},l))},[n,t.dataItem,t.dataIndex,t.expanded,t.group]),f=e.addKeyDownHandler?{onKeyDown:C}:{},r=o.useCallback(l=>{n!=null&&n.onContextMenu&&n.onContextMenu.call(void 0,l,t.dataItem,t.field)},[n,t.dataItem,t.field]),P=n.getCellPositionStyle(t.columnPosition),y={style:{...(s=e.tdProps)==null?void 0:s.style,...P}},a={...d,...f,onContextMenu:r,...y},i={onContextMenu:n.onContextMenu,onChange:n.itemChange,selectionChange:l=>{n.selectionChange({event:l,dataItem:t.dataItem,dataIndex:t.rowDataIndex,columnIndex:t.columnIndex})}};if(e.isCustom)return n.isClient||e.isClient?c.cloneReactElement(e.children,{tdProps:e.tdProps?{...e.tdProps,...a}:null,td2Props:e.td2Props?{...e.td2Props,onContextMenu:r}:null,...i}):c.cloneReactElement(e.children,{...a});const u=e.renderSecondCell?o.createElement("td",{...e.td2Props,onContextMenu:r}):null;if(t.render){let l=null;return e.renderFirstCell&&(e.renderSecondCell?l=o.createElement(o.Fragment,null,o.createElement("td",{...e.tdProps,...a},e.content),e.renderSecondCell&&u):l=o.createElement("td",{...e.tdProps,...a},e.content)),t.render.call(void 0,l,{...t,...i})}return o.createElement(o.Fragment,null,e.children&&c.cloneReactElement(e.children,{...a}),u)};exports.GridGroupCellContainer=h;
@@ -7,14 +7,15 @@
7
7
  */
8
8
  "use client";
9
9
  import * as o from "react";
10
- import { useTableKeyboardNavigation as f, GROUP_EXPAND_ACTION as x } from "@progress/kendo-react-data-tools";
11
- import { GridContext as I } from "../../GridClientWrapper.mjs";
12
- import { Keys as y } from "@progress/kendo-react-common";
13
- const D = (e) => {
14
- var c;
15
- const { cellProps: n } = e, t = o.useContext(I), u = f(n.id), m = o.useCallback(
10
+ import { useTableKeyboardNavigation as x, GROUP_EXPAND_ACTION as I } from "@progress/kendo-react-data-tools";
11
+ import { GridContext as y } from "../../GridClientWrapper.mjs";
12
+ import { Keys as h } from "@progress/kendo-react-common";
13
+ import { cloneReactElement as r } from "../../utils/index.mjs";
14
+ const G = (e) => {
15
+ var u;
16
+ const { cellProps: n } = e, t = o.useContext(y), m = x(n.id), s = o.useCallback(
16
17
  (l) => {
17
- l.isDefaultPrevented() || l.keyCode === y.enter && (t != null && t.itemChange) && (l.preventDefault(), t.itemChange({
18
+ l.isDefaultPrevented() || l.keyCode === h.enter && (t != null && t.itemChange) && (l.preventDefault(), t.itemChange({
18
19
  dataItem: n.dataItem,
19
20
  dataIndex: n.dataIndex,
20
21
  syntheticEvent: l,
@@ -22,28 +23,28 @@ const D = (e) => {
22
23
  value: !n.expanded
23
24
  }), t == null || t.dispatchGroupExpand(
24
25
  {
25
- type: x.TOGGLE,
26
+ type: I.TOGGLE,
26
27
  group: n.group
27
28
  },
28
29
  l
29
30
  ));
30
31
  },
31
32
  [t, n.dataItem, n.dataIndex, n.expanded, n.group]
32
- ), s = e.addKeyDownHandler ? {
33
- onKeyDown: m
33
+ ), C = e.addKeyDownHandler ? {
34
+ onKeyDown: s
34
35
  } : {}, d = o.useCallback(
35
36
  (l) => {
36
37
  t != null && t.onContextMenu && t.onContextMenu.call(void 0, l, n.dataItem, n.field);
37
38
  },
38
39
  [t, n.dataItem, n.field]
39
- ), C = t.getCellPositionStyle(n.columnPosition), P = {
40
- style: { ...(c = e.tdProps) == null ? void 0 : c.style, ...C }
40
+ ), P = t.getCellPositionStyle(n.columnPosition), f = {
41
+ style: { ...(u = e.tdProps) == null ? void 0 : u.style, ...P }
41
42
  }, a = {
42
- ...u,
43
- ...s,
43
+ ...m,
44
+ ...C,
44
45
  onContextMenu: d,
45
- ...P
46
- }, r = {
46
+ ...f
47
+ }, i = {
47
48
  onContextMenu: t.onContextMenu,
48
49
  onChange: t.itemChange,
49
50
  selectionChange: (l) => {
@@ -56,7 +57,7 @@ const D = (e) => {
56
57
  }
57
58
  };
58
59
  if (e.isCustom)
59
- return t.isClient || e.isClient ? o.cloneElement(e.children, {
60
+ return t.isClient || e.isClient ? r(e.children, {
60
61
  // pass down to tdProps for client templates
61
62
  tdProps: e.tdProps ? {
62
63
  ...e.tdProps,
@@ -66,22 +67,22 @@ const D = (e) => {
66
67
  ...e.td2Props,
67
68
  onContextMenu: d
68
69
  } : null,
69
- ...r
70
- }) : o.cloneElement(e.children, {
70
+ ...i
71
+ }) : r(e.children, {
71
72
  ...a
72
73
  });
73
- const i = e.renderSecondCell ? /* @__PURE__ */ o.createElement("td", { ...e.td2Props, onContextMenu: d }) : null;
74
+ const c = e.renderSecondCell ? /* @__PURE__ */ o.createElement("td", { ...e.td2Props, onContextMenu: d }) : null;
74
75
  if (n.render) {
75
76
  let l = null;
76
- return e.renderFirstCell && (e.renderSecondCell ? l = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("td", { ...e.tdProps, ...a }, e.content), e.renderSecondCell && i) : l = /* @__PURE__ */ o.createElement("td", { ...e.tdProps, ...a }, e.content)), n.render.call(void 0, l, {
77
+ return e.renderFirstCell && (e.renderSecondCell ? l = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("td", { ...e.tdProps, ...a }, e.content), e.renderSecondCell && c) : l = /* @__PURE__ */ o.createElement("td", { ...e.tdProps, ...a }, e.content)), n.render.call(void 0, l, {
77
78
  ...n,
78
- ...r
79
+ ...i
79
80
  });
80
81
  }
81
- return /* @__PURE__ */ o.createElement(o.Fragment, null, e.children && o.cloneElement(e.children, {
82
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, e.children && r(e.children, {
82
83
  ...a
83
- }), i);
84
+ }), c);
84
85
  };
85
86
  export {
86
- D as GridGroupCellContainer
87
+ G as GridGroupCellContainer
87
88
  };
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),m=require("@progress/kendo-react-data-tools"),f=require("../../GridClientWrapper.js"),C=require("@progress/kendo-react-common");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const r=g(s),y=t=>{const{cellProps:e}=t,n=r.useContext(f.GridContext),a=m.useTableKeyboardNavigation(e.id),l=t.expanded,c=r.useCallback(o=>{o.isDefaultPrevented()||o.keyCode===C.Keys.enter&&(n!=null&&n.itemChange)&&(o.preventDefault(),n.itemChange({dataItem:e.dataItem,dataIndex:e.dataIndex,syntheticEvent:o,field:e.field,value:!l}))},[e.dataItem,e.dataIndex,e.field,n,l]),u=e.rowType!=="groupHeader"&&e.rowType!=="groupFooter"?{onKeyDown:c}:{},i={...a,...u},d={onContextMenu:n.onContextMenu,onChange:n.itemChange,selectionChange:o=>{n.selectionChange({event:o,dataItem:e.dataItem,dataIndex:e.rowDataIndex,columnIndex:e.columnIndex})}};if(t.isCustom)return n.isClient||t.isClient?r.cloneElement(t.children,{tdProps:{...t.tdProps,...i},...d}):r.cloneElement(t.children,{...i});if(e.render){const o=e.rowType!=="groupHeader"?r.createElement("td",{...t.tdProps,...i},t.content):null;return e.render.call(void 0,o,{...e,...d})}return t.children&&r.cloneElement(t.children,{...i})};exports.GridHierarchyCellContainer=y;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),f=require("@progress/kendo-react-data-tools"),C=require("../../GridClientWrapper.js"),g=require("@progress/kendo-react-common"),c=require("../../utils/index.js");function y(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const i=y(m),h=t=>{const{cellProps:e}=t,n=i.useContext(C.GridContext),r=f.useTableKeyboardNavigation(e.id),d=t.expanded,u=i.useCallback(a=>{a.isDefaultPrevented()||a.keyCode===g.Keys.enter&&(n!=null&&n.itemChange)&&(a.preventDefault(),n.itemChange({dataItem:e.dataItem,dataIndex:e.dataIndex,syntheticEvent:a,field:e.field,value:!d}))},[e.dataItem,e.dataIndex,e.field,n,d]),s=e.rowType!=="groupHeader"&&e.rowType!=="groupFooter"?{onKeyDown:u}:{},o={...r,...s},l={onContextMenu:n.onContextMenu,onChange:n.itemChange,selectionChange:a=>{n.selectionChange({event:a,dataItem:e.dataItem,dataIndex:e.rowDataIndex,columnIndex:e.columnIndex})}};if(t.isCustom)return n.isClient||t.isClient?c.cloneReactElement(t.children,{tdProps:{...t.tdProps,...o},...l}):c.cloneReactElement(t.children,{...o});if(e.render){const a=e.rowType!=="groupHeader"?i.createElement("td",{...t.tdProps,...o},t.content):null;return e.render.call(void 0,a,{...e,...l})}return t.children&&c.cloneReactElement(t.children,{...o})};exports.GridHierarchyCellContainer=h;
@@ -6,32 +6,33 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as a from "react";
10
- import { useTableKeyboardNavigation as u } from "@progress/kendo-react-data-tools";
11
- import { GridContext as s } from "../../GridClientWrapper.mjs";
12
- import { Keys as C } from "@progress/kendo-react-common";
13
- const h = (n) => {
14
- const { cellProps: e } = n, t = a.useContext(s), l = u(e.id), d = n.expanded, c = a.useCallback(
9
+ import * as r from "react";
10
+ import { useTableKeyboardNavigation as s } from "@progress/kendo-react-data-tools";
11
+ import { GridContext as C } from "../../GridClientWrapper.mjs";
12
+ import { Keys as f } from "@progress/kendo-react-common";
13
+ import { cloneReactElement as d } from "../../utils/index.mjs";
14
+ const I = (t) => {
15
+ const { cellProps: e } = t, n = r.useContext(C), c = s(e.id), i = t.expanded, m = r.useCallback(
15
16
  (o) => {
16
- o.isDefaultPrevented() || o.keyCode === C.enter && (t != null && t.itemChange) && (o.preventDefault(), t.itemChange({
17
+ o.isDefaultPrevented() || o.keyCode === f.enter && (n != null && n.itemChange) && (o.preventDefault(), n.itemChange({
17
18
  dataItem: e.dataItem,
18
19
  dataIndex: e.dataIndex,
19
20
  syntheticEvent: o,
20
21
  field: e.field,
21
- value: !d
22
+ value: !i
22
23
  }));
23
24
  },
24
- [e.dataItem, e.dataIndex, e.field, t, d]
25
- ), m = e.rowType !== "groupHeader" && e.rowType !== "groupFooter" ? {
26
- onKeyDown: c
27
- } : {}, r = {
28
- ...l,
29
- ...m
30
- }, i = {
31
- onContextMenu: t.onContextMenu,
32
- onChange: t.itemChange,
25
+ [e.dataItem, e.dataIndex, e.field, n, i]
26
+ ), u = e.rowType !== "groupHeader" && e.rowType !== "groupFooter" ? {
27
+ onKeyDown: m
28
+ } : {}, a = {
29
+ ...c,
30
+ ...u
31
+ }, l = {
32
+ onContextMenu: n.onContextMenu,
33
+ onChange: n.itemChange,
33
34
  selectionChange: (o) => {
34
- t.selectionChange({
35
+ n.selectionChange({
35
36
  event: o,
36
37
  dataItem: e.dataItem,
37
38
  dataIndex: e.rowDataIndex,
@@ -39,25 +40,25 @@ const h = (n) => {
39
40
  });
40
41
  }
41
42
  };
42
- if (n.isCustom)
43
- return t.isClient || n.isClient ? a.cloneElement(n.children, {
43
+ if (t.isCustom)
44
+ return n.isClient || t.isClient ? d(t.children, {
44
45
  // pass down to tdProps for client templates
45
- tdProps: { ...n.tdProps, ...r },
46
- ...i
47
- }) : a.cloneElement(n.children, {
48
- ...r
46
+ tdProps: { ...t.tdProps, ...a },
47
+ ...l
48
+ }) : d(t.children, {
49
+ ...a
49
50
  });
50
51
  if (e.render) {
51
- const o = e.rowType !== "groupHeader" ? /* @__PURE__ */ a.createElement("td", { ...n.tdProps, ...r }, n.content) : null;
52
+ const o = e.rowType !== "groupHeader" ? /* @__PURE__ */ r.createElement("td", { ...t.tdProps, ...a }, t.content) : null;
52
53
  return e.render.call(void 0, o, {
53
54
  ...e,
54
- ...i
55
+ ...l
55
56
  });
56
57
  }
57
- return n.children && a.cloneElement(n.children, {
58
- ...r
58
+ return t.children && d(t.children, {
59
+ ...a
59
60
  });
60
61
  };
61
62
  export {
62
- h as GridHierarchyCellContainer
63
+ I as GridHierarchyCellContainer
63
64
  };
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),m=require("@progress/kendo-react-intl"),w=require("@progress/kendo-react-data-tools"),f=require("../../GridClientWrapper.js"),n=require("../../messages/index.js"),q=a=>{const{cellProps:o,rowReorderable:i,children:r}=a,{id:l,dataItem:c}=o,s=m.useLocalization(),e=t.useContext(f.GridContext),d=w.useTableKeyboardNavigation(l),u=i,R=s.toLanguageString(n.gridRowReorderAriaLabel,n.messages[n.gridRowReorderAriaLabel]),g=()=>u?e.activeDragRowDataItemRef.current=c:null,b=t.useCallback(C=>{e!=null&&e.onContextMenu&&e.onContextMenu.call(void 0,C,o.dataItem,o.field)},[e,o.dataItem,o.field]);return r&&t.cloneElement(r,{"aria-label":R,...d,onMouseDown:g,onContextMenu:b})};exports.GridRowReorderCellContainer=q;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),C=require("@progress/kendo-react-intl"),m=require("@progress/kendo-react-data-tools"),w=require("../../GridClientWrapper.js"),n=require("../../messages/index.js"),q=require("../../utils/index.js"),x=o=>{const{cellProps:t,rowReorderable:a}=o,{id:i,dataItem:c}=t,l=C.useLocalization(),e=r.useContext(w.GridContext),s=m.useTableKeyboardNavigation(i),d=a,u=l.toLanguageString(n.gridRowReorderAriaLabel,n.messages[n.gridRowReorderAriaLabel]),R=()=>d?e.activeDragRowDataItemRef.current=c:null,g=r.useCallback(b=>{e!=null&&e.onContextMenu&&e.onContextMenu.call(void 0,b,t.dataItem,t.field)},[e,t.dataItem,t.field]);return o.children&&q.cloneReactElement(o.children,{"aria-label":u,...s,onMouseDown:R,onContextMenu:g})};exports.GridRowReorderCellContainer=x;
@@ -6,25 +6,26 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import t from "react";
10
- import { useLocalization as b } from "@progress/kendo-react-intl";
11
- import { useTableKeyboardNavigation as p } from "@progress/kendo-react-data-tools";
9
+ import n from "react";
10
+ import { useLocalization as g } from "@progress/kendo-react-intl";
11
+ import { useTableKeyboardNavigation as b } from "@progress/kendo-react-data-tools";
12
12
  import { GridContext as C } from "../../GridClientWrapper.mjs";
13
13
  import { gridRowReorderAriaLabel as a, messages as w } from "../../messages/index.mjs";
14
- const L = (r) => {
15
- const { cellProps: e, rowReorderable: i, children: n } = r, { id: l, dataItem: s } = e, c = b(), o = t.useContext(C), m = p(l), d = i, u = c.toLanguageString(a, w[a]), f = () => d ? o.activeDragRowDataItemRef.current = s : null, R = t.useCallback(
16
- (g) => {
17
- o != null && o.onContextMenu && o.onContextMenu.call(void 0, g, e.dataItem, e.field);
14
+ import { cloneReactElement as x } from "../../utils/index.mjs";
15
+ const h = (t) => {
16
+ const { cellProps: o, rowReorderable: r } = t, { id: i, dataItem: l } = o, c = g(), e = n.useContext(C), s = b(i), m = r, d = c.toLanguageString(a, w[a]), u = () => m ? e.activeDragRowDataItemRef.current = l : null, f = n.useCallback(
17
+ (R) => {
18
+ e != null && e.onContextMenu && e.onContextMenu.call(void 0, R, o.dataItem, o.field);
18
19
  },
19
- [o, e.dataItem, e.field]
20
+ [e, o.dataItem, o.field]
20
21
  );
21
- return n && t.cloneElement(n, {
22
- "aria-label": u,
23
- ...m,
24
- onMouseDown: f,
25
- onContextMenu: R
22
+ return t.children && x(t.children, {
23
+ "aria-label": d,
24
+ ...s,
25
+ onMouseDown: u,
26
+ onContextMenu: f
26
27
  });
27
28
  };
28
29
  export {
29
- L as GridRowReorderCellContainer
30
+ h as GridRowReorderCellContainer
30
31
  };
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),m=require("@progress/kendo-react-data-tools"),f=require("../../GridClientWrapper.js");function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=g(C),P=e=>{var a;const{cellProps:t}=e,n=o.useContext(f.GridContext),r=m.useTableKeyboardNavigation(t.id),d={onContextMenu:o.useCallback(l=>{n!=null&&n.onContextMenu&&n.onContextMenu.call(void 0,l,t.dataItem,t.field)},[n,t.dataItem,t.field])},s=n.getCellPositionStyle(t.columnPosition),u={style:{...(a=e.tdProps)==null?void 0:a.style,...s}},i={...r,...d,...u},c={onContextMenu:n.onContextMenu,onChange:n.itemChange,selectionChange:l=>{n.selectionChange({event:l,dataItem:t.dataItem,dataIndex:t.rowDataIndex,columnIndex:t.columnIndex})}};if(e.isCustom)return n.isClient||e.isClient?o.cloneElement(e.children,{tdProps:{...e.tdProps,...i},...c}):o.cloneElement(e.children,{...i});if(t.render){const l=t.rowType!=="groupHeader"?o.createElement("td",{...e.tdProps,...i},e.content):null;return t.render.call(void 0,l,{...t,...c})}return e.children&&o.cloneElement(e.children,{...i})};exports.GridSelectionCellContainer=P;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),f=require("@progress/kendo-react-data-tools"),g=require("../../GridClientWrapper.js"),c=require("../../utils/index.js");function P(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=P(m),x=e=>{var d;const{cellProps:t}=e,n=i.useContext(g.GridContext),l=f.useTableKeyboardNavigation(t.id),s={onContextMenu:i.useCallback(o=>{n!=null&&n.onContextMenu&&n.onContextMenu.call(void 0,o,t.dataItem,t.field)},[n,t.dataItem,t.field])},u=n.getCellPositionStyle(t.columnPosition),C={style:{...(d=e.tdProps)==null?void 0:d.style,...u}},r={...l,...s,...C},a={onContextMenu:n.onContextMenu,onChange:n.itemChange,selectionChange:o=>{n.selectionChange({event:o,dataItem:t.dataItem,dataIndex:t.rowDataIndex,columnIndex:t.columnIndex})}};if(e.isCustom)return n.isClient||e.isClient?c.cloneReactElement(e.children,{tdProps:{...e.tdProps,...r},...a}):c.cloneReactElement(e.children,{...r});if(t.render){const o=t.rowType!=="groupHeader"?i.createElement("td",{...e.tdProps,...r},e.content):null;return t.render.call(void 0,o,{...t,...a})}return e.children&&c.cloneReactElement(e.children,{...r})};exports.GridSelectionCellContainer=x;