@progress/kendo-react-pivotgrid 9.4.0-develop.6 → 9.4.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 (56) hide show
  1. package/PivotGrid.js +1 -1
  2. package/PivotGrid.mjs +56 -45
  3. package/components/AxesEditor.js +1 -1
  4. package/components/AxesEditor.mjs +3 -4
  5. package/components/AxisEditor.js +1 -1
  6. package/components/AxisEditor.mjs +0 -1
  7. package/components/AxisFilterFieldsEditor.js +1 -1
  8. package/components/AxisFilterFieldsEditor.mjs +19 -20
  9. package/components/Cell.js +1 -1
  10. package/components/Cell.mjs +0 -1
  11. package/components/Column.js +1 -1
  12. package/components/Column.mjs +10 -11
  13. package/components/Configurator.js +1 -1
  14. package/components/Configurator.mjs +0 -1
  15. package/components/ConfiguratorButton.js +1 -1
  16. package/components/ConfiguratorButton.mjs +0 -1
  17. package/components/ConfiguratorEditor.js +1 -1
  18. package/components/ConfiguratorEditor.mjs +0 -1
  19. package/components/Container.js +1 -1
  20. package/components/Container.mjs +4 -5
  21. package/components/EditorContext.js +1 -1
  22. package/components/EditorContext.mjs +2 -3
  23. package/components/FieldsEditor.js +1 -1
  24. package/components/FieldsEditor.mjs +0 -1
  25. package/components/HeaderCell.js +1 -1
  26. package/components/HeaderCell.mjs +7 -8
  27. package/components/Row.js +1 -1
  28. package/components/Row.mjs +7 -8
  29. package/dist/cdn/js/kendo-react-pivotgrid.js +1 -1
  30. package/hooks/useExpansion.js +1 -1
  31. package/hooks/useExpansion.mjs +11 -12
  32. package/hooks/useHeaders.js +1 -1
  33. package/hooks/useHeaders.mjs +7 -8
  34. package/hooks/useHorizontalScrollSync.js +1 -1
  35. package/hooks/useHorizontalScrollSync.mjs +4 -5
  36. package/hooks/usePivotConfiguratorEditor.js +1 -1
  37. package/hooks/usePivotConfiguratorEditor.mjs +5 -6
  38. package/hooks/usePivotLocalDataService.js +1 -1
  39. package/hooks/usePivotLocalDataService.mjs +10 -11
  40. package/hooks/usePivotOLAPService.js +1 -1
  41. package/hooks/usePivotOLAPService.mjs +0 -1
  42. package/hooks/useVerticalScrollSync.js +1 -1
  43. package/hooks/useVerticalScrollSync.mjs +5 -6
  44. package/index.js +2 -1
  45. package/index.mjs +4 -4
  46. package/messages/index.js +1 -1
  47. package/messages/index.mjs +5 -6
  48. package/package-metadata.js +1 -1
  49. package/package-metadata.mjs +2 -3
  50. package/package.json +10 -10
  51. package/shared/PivotGridConfiguratorEditorEventsContext.js +1 -1
  52. package/shared/PivotGridConfiguratorEditorEventsContext.mjs +0 -1
  53. package/shared/PivotGridConfiguratorEditorStateContext.js +1 -1
  54. package/shared/PivotGridConfiguratorEditorStateContext.mjs +2 -3
  55. package/utils/index.js +1 -1
  56. package/utils/index.mjs +0 -1
@@ -5,13 +5,12 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as d from "react";
10
9
  import { useExpansion as N, EXPANSION_ACTION as D } from "./useExpansion.mjs";
11
10
  import { compareFields as G } from "../utils/index.mjs";
12
- import { PIVOT_CONFIGURATOR_ACTION as _, configuratorReducer as c } from "@progress/kendo-pivotgrid-common";
11
+ import { PIVOT_CONFIGURATOR_ACTION as _, configuratorReducer as w } from "@progress/kendo-pivotgrid-common";
13
12
  var m = /* @__PURE__ */ ((o) => (o.toggleExpansion = "PIVOT_CONFIGURATOR_ACTION_TOGGLE_EXPANSION", o))(m || {});
14
- const w = {
13
+ const E = {
15
14
  ..._,
16
15
  ...m
17
16
  }, S = (o, x) => {
@@ -31,12 +30,12 @@ const w = {
31
30
  },
32
31
  (e, C) => {
33
32
  switch (e.type) {
34
- case w.toggleExpansion: {
33
+ case E.toggleExpansion: {
35
34
  f({ type: D.toggle, payload: e.payload }, C);
36
35
  break;
37
36
  }
38
37
  default:
39
- const r = c(
38
+ const r = w(
40
39
  {
41
40
  filter: e.override && e.override.filter !== void 0 ? e.override.filter : u,
42
41
  sort: e.override && e.override.sort !== void 0 ? e.override.sort : v,
@@ -57,6 +56,6 @@ const w = {
57
56
  ];
58
57
  };
59
58
  export {
60
- w as PIVOT_CONFIGURATOR_ACTION,
59
+ E as PIVOT_CONFIGURATOR_ACTION,
61
60
  S as usePivotConfiguratorEditor
62
61
  };
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),u=require("@progress/kendo-pivotgrid-common");function q(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const t=q(_),z="aggregate",B="columns",M={dataField:z,columnsData:B},m="&",b=e=>{const[n,a]=t.useState(!0),[s,w]=t.useState(e.defaultColumnAxes||[]),[r,D]=t.useState(e.defaultRowAxes||[]),[d,P]=t.useState(e.defaultMeasureAxes||[]),[S,F]=t.useState(e.defaultSort||[]),[f,y]=t.useState(e.defaultFilter||[]),[h,R]=t.useState(new Map),v=t.useCallback(o=>{D(o.value)},[]),p=t.useCallback(o=>{w(o.value)},[]),j=o=>{P(o.value)},k=o=>{F(o.value)},L=o=>{y(o.value)},g=t.useMemo(()=>Array.from(u.rootFields(s).keys()).join(m),[s]),A=t.useMemo(()=>Array.from(u.rootFields(r).keys()).join(m),[r]),c=t.useCallback(o=>({key:o,...e.dimensions[o]}),[e.dimensions]),l=t.useMemo(()=>g?g.split(m).map(c):[],[g,c]),i=t.useMemo(()=>A?A.split(m).map(c):[],[A,c]),C=t.useMemo(()=>d.map(o=>e.measures.find(T=>String(T.name)===String(o.name))).filter(Boolean),[d,e.measures]);t.useEffect(()=>{a(!0),setTimeout(()=>{const o=u.createDataTree(e.data,i,l,C,M,f);R(o),a(!1)},0)},[e.data,i,l,C,f]);const O=t.useMemo(()=>u.createFlatSchemaDimensions(e.dimensions,e.measures),[e.dimensions,e.measures]),x=t.useMemo(()=>u.createLocalDataState({dataTree:h,rowSettings:i,columnSettings:l,rowAxes:r,columnAxes:s,measures:C,sort:S,fields:M}),[s,l,h,r,i,S]);return{pivotProps:{rowAxes:r,columnAxes:s,data:x.data,rows:x.rows,columns:x.columns,onRowAxesChange:v,onColumnAxesChange:p},configuratorProps:{sort:S,onSortChange:k,filter:f,onFilterChange:L,data:O,rowAxes:r,columnAxes:s,measureAxes:d,onRowAxesChange:v,onColumnAxesChange:p,onMeasureAxesChange:j},state:{loading:n}}},E=e=>{const n=b(e);return e.children(n)};exports.PivotLocalDataService=E;exports.usePivotLocalDataService=b;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),u=require("@progress/kendo-pivotgrid-common");function q(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(a,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return a.default=e,Object.freeze(a)}const t=q(_),z="aggregate",B="columns",M={dataField:z,columnsData:B},m="&",b=e=>{const[a,n]=t.useState(!0),[s,w]=t.useState(e.defaultColumnAxes||[]),[r,D]=t.useState(e.defaultRowAxes||[]),[d,P]=t.useState(e.defaultMeasureAxes||[]),[S,F]=t.useState(e.defaultSort||[]),[f,y]=t.useState(e.defaultFilter||[]),[h,R]=t.useState(new Map),v=t.useCallback(o=>{D(o.value)},[]),p=t.useCallback(o=>{w(o.value)},[]),j=o=>{P(o.value)},k=o=>{F(o.value)},L=o=>{y(o.value)},g=t.useMemo(()=>Array.from(u.rootFields(s).keys()).join(m),[s]),A=t.useMemo(()=>Array.from(u.rootFields(r).keys()).join(m),[r]),c=t.useCallback(o=>({key:o,...e.dimensions[o]}),[e.dimensions]),l=t.useMemo(()=>g?g.split(m).map(c):[],[g,c]),i=t.useMemo(()=>A?A.split(m).map(c):[],[A,c]),C=t.useMemo(()=>d.map(o=>e.measures.find(T=>String(T.name)===String(o.name))).filter(Boolean),[d,e.measures]);t.useEffect(()=>{n(!0),setTimeout(()=>{const o=u.createDataTree(e.data,i,l,C,M,f);R(o),n(!1)},0)},[e.data,i,l,C,f]);const O=t.useMemo(()=>u.createFlatSchemaDimensions(e.dimensions,e.measures),[e.dimensions,e.measures]),x=t.useMemo(()=>u.createLocalDataState({dataTree:h,rowSettings:i,columnSettings:l,rowAxes:r,columnAxes:s,measures:C,sort:S,fields:M}),[s,l,h,r,i,S]);return{pivotProps:{rowAxes:r,columnAxes:s,data:x.data,rows:x.rows,columns:x.columns,onRowAxesChange:v,onColumnAxesChange:p},configuratorProps:{sort:S,onSortChange:k,filter:f,onFilterChange:L,data:O,rowAxes:r,columnAxes:s,measureAxes:d,onRowAxesChange:v,onColumnAxesChange:p,onMeasureAxesChange:j},state:{loading:a}}},E=e=>{const a=b(e);return e.children(a)};exports.PivotLocalDataService=E;exports.usePivotLocalDataService=b;
@@ -5,10 +5,9 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as t from "react";
10
9
  import { rootFields as p, createDataTree as B, createFlatSchemaDimensions as E, createLocalDataState as q } from "@progress/kendo-pivotgrid-common";
11
- const z = "aggregate", G = "columns", w = { dataField: z, columnsData: G }, r = "&", H = (e) => {
10
+ const z = "aggregate", G = "columns", w = { dataField: z, columnsData: G }, l = "&", H = (e) => {
12
11
  const [c, h] = t.useState(!0), [o, v] = t.useState(e.defaultColumnAxes || []), [a, D] = t.useState(e.defaultRowAxes || []), [i, F] = t.useState(e.defaultMeasureAxes || []), [m, R] = t.useState(e.defaultSort || []), [d, b] = t.useState(e.defaultFilter || []), [f, k] = t.useState(/* @__PURE__ */ new Map()), g = t.useCallback((s) => {
13
12
  D(s.value);
14
13
  }, []), M = t.useCallback((s) => {
@@ -20,16 +19,16 @@ const z = "aggregate", G = "columns", w = { dataField: z, columnsData: G }, r =
20
19
  }, T = (s) => {
21
20
  b(s.value);
22
21
  }, S = t.useMemo(
23
- () => Array.from(p(o).keys()).join(r),
22
+ () => Array.from(p(o).keys()).join(l),
24
23
  [o]
25
- ), A = t.useMemo(() => Array.from(p(a).keys()).join(r), [a]), n = t.useCallback(
24
+ ), A = t.useMemo(() => Array.from(p(a).keys()).join(l), [a]), n = t.useCallback(
26
25
  (s) => ({ key: s, ...e.dimensions[s] }),
27
26
  [e.dimensions]
28
27
  ), u = t.useMemo(
29
- () => S ? S.split(r).map(n) : [],
28
+ () => S ? S.split(l).map(n) : [],
30
29
  [S, n]
31
- ), l = t.useMemo(
32
- () => A ? A.split(r).map(n) : [],
30
+ ), r = t.useMemo(
31
+ () => A ? A.split(l).map(n) : [],
33
32
  [A, n]
34
33
  ), x = t.useMemo(
35
34
  () => i.map((s) => e.measures.find((j) => String(j.name) === String(s.name))).filter(Boolean),
@@ -39,7 +38,7 @@ const z = "aggregate", G = "columns", w = { dataField: z, columnsData: G }, r =
39
38
  h(!0), setTimeout(() => {
40
39
  const s = B(
41
40
  e.data,
42
- l,
41
+ r,
43
42
  u,
44
43
  x,
45
44
  w,
@@ -47,14 +46,14 @@ const z = "aggregate", G = "columns", w = { dataField: z, columnsData: G }, r =
47
46
  );
48
47
  k(s), h(!1);
49
48
  }, 0);
50
- }, [e.data, l, u, x, d]);
49
+ }, [e.data, r, u, x, d]);
51
50
  const y = t.useMemo(
52
51
  () => E(e.dimensions, e.measures),
53
52
  [e.dimensions, e.measures]
54
53
  ), C = t.useMemo(
55
54
  () => q({
56
55
  dataTree: f,
57
- rowSettings: l,
56
+ rowSettings: r,
58
57
  columnSettings: u,
59
58
  rowAxes: a,
60
59
  columnAxes: o,
@@ -62,7 +61,7 @@ const z = "aggregate", G = "columns", w = { dataField: z, columnsData: G }, r =
62
61
  sort: m,
63
62
  fields: w
64
63
  }),
65
- [o, u, f, a, l, m]
64
+ [o, u, f, a, r, m]
66
65
  );
67
66
  return {
68
67
  pivotProps: {
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),d=require("@progress/kendo-pivotgrid-common"),$=require("@progress/kendo-react-common");function B(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const h=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(l,i,h.get?h:{enumerable:!0,get:()=>e[i]})}}return l.default=e,Object.freeze(l)}const m=B(H),y=e=>{const[l,i]=m.useState(!0),[h,O]=m.useState({data:[],columns:[],rows:[]}),[q,v]=m.useState([]),[f,b]=m.useState(e.defaultColumnAxes||[]),[x,A]=m.useState(e.defaultRowAxes||[]),[p,N]=m.useState(e.defaultMeasureAxes||[]),[S,U]=m.useState(e.defaultSort||[]),[g,D]=m.useState(e.defaultFilter||[]),C=t=>{A(t.value)},P=t=>{b(t.value)},M=t=>{N(t.value)},E=t=>{U(t.value)},I=t=>{D(t.value)};m.useEffect(()=>{i(!0);const t={connection:{catalog:e.catalog,cube:e.cube},columnAxes:f.slice(),rowAxes:x.slice(),measureAxes:p,sort:S,filter:g};setTimeout(()=>{d.fetchData({url:e.url},$.clone(t)).then(d.createDataState).then(o=>{O(o),i(!1)})})},[f,x,p,g,S,e.cube,e.catalog,e.url]),m.useEffect(()=>{i(!0);const t={connection:{catalog:e.catalog,cube:e.cube},restrictions:{catalogName:e.catalog,cubeName:e.cube},command:"schemaDimensions"};d.fetchDiscover({url:e.url},t).then(o=>{d.addKPI(o),v(o),i(!1)})},[e.catalog,e.cube,e.url]);const w=(t=[],o)=>{for(let n=0;n<t.length;n++){const c=t[n];if(String(c.name)===String(o.name))return c}return null},F=(t=[],o)=>{for(let n=0;n<t.length;n++){const c=t[n];if(c.uniqueName===o.uniqueName)return c;const a=F(c.children,o);if(a!==null)return a}return null},L=async t=>{let o,n,c,a,s,u;t.name&&(o="schemaMembers",a=`${String(t.name)}.[(ALL)]`);const r={connection:{catalog:e.catalog,cube:e.cube},restrictions:{catalogName:e.catalog,cubeName:e.cube,hierarchyUniqueName:c,dimensionUniqueName:n,levelUniqueName:a,memberUniqueName:s,treeOp:u},command:o};return d.fetchDiscover({url:e.url},r)},R=async t=>{let o,n,c,a,s,u;t.uniqueName&&(o="schemaMembers",s=t.uniqueName.replace(/\&/g,"&amp;"),u=1);const r={connection:{catalog:e.catalog,cube:e.cube},restrictions:{catalogName:e.catalog,cubeName:e.cube,hierarchyUniqueName:c,dimensionUniqueName:n,levelUniqueName:a,memberUniqueName:s,treeOp:u},command:o};return d.fetchDiscover({url:e.url},r)},K=async t=>{let o,n,c,a,s,u;t.type===2?o="schemaMeasures":t.dimensionUniqueName?(o="schemaLevels",c=t.uniqueName):(o="schemaHierarchies",n=t.uniqueName);const r={connection:{catalog:e.catalog,cube:e.cube},restrictions:{catalogName:e.catalog,cubeName:e.cube,hierarchyUniqueName:c,dimensionUniqueName:n,levelUniqueName:a,memberUniqueName:s,treeOp:u},command:o};return d.fetchDiscover({url:e.url},r)},j=async()=>{const t={connection:{catalog:e.catalog,cube:e.cube},restrictions:{catalogName:e.catalog,cubeName:e.cube},command:"schemaKPIs"};return d.fetchDiscover({url:e.url},t)},k=async t=>{const o=q.slice(),n=F(o,t.value);if(n&&n.uniqueName==="[KPIs]"){const c=J(await j());n.children=c}else if(n&&n.type==="kpi")n.children=d.buildKPIMeasures(n);else if(n&&!n.children){const c=await K(n);n.children=c}v(o)},T=async t=>{if(!t)return;const o={rowAxes:[x,A],columnAxes:[f,b],measureAxes:[p,N]},[n,c]=o[t.target.props.axes],a=n.slice(),s=w(a,t.target.props.dataItem);if(s&&!s.fields){const u=await L(s);s.fields=u,c(a)}},_=async t=>{if(!t)return;const o={rowAxes:[x,A],columnAxes:[f,b],measureAxes:[p,N]},[n,c]=o[t.target.props.axes],a=n.slice(),s=w(a,t.target.props.dataItem);if(s){const u=(s.fields||[]).slice(),r=F(u,t.value);if(r&&(!r.children||!r.children.length)){const z=await R(r);r.children=z,s.fields=u,c(a)}}};return{pivotProps:{rowAxes:x,columnAxes:f,data:h.data,rows:h.rows,columns:h.columns,onRowAxesChange:C,onColumnAxesChange:P},configuratorProps:{sort:S,onSortChange:E,filter:g,onFilterChange:I,data:q,rowAxes:x,columnAxes:f,measureAxes:p,onRowAxesChange:C,onColumnAxesChange:P,onMeasureAxesChange:M,onFieldsEditorFieldExpand:k,onAxisFilterFieldExpand:_,onAxisFilterFieldsExpandChange:T},state:{loading:l}}},G=e=>{const l=y(e);return e.children(l)},J=e=>{for(let l=0,i=e.length;l<i;l++)e[l].uniqueName=e[l].name,e[l].type="kpi";return e};exports.PivotOLAPService=G;exports.usePivotOLAPService=y;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),d=require("@progress/kendo-pivotgrid-common"),$=require("@progress/kendo-react-common");function B(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const h=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(l,i,h.get?h:{enumerable:!0,get:()=>e[i]})}}return l.default=e,Object.freeze(l)}const m=B(H),y=e=>{const[l,i]=m.useState(!0),[h,O]=m.useState({data:[],columns:[],rows:[]}),[q,v]=m.useState([]),[f,b]=m.useState(e.defaultColumnAxes||[]),[x,A]=m.useState(e.defaultRowAxes||[]),[p,N]=m.useState(e.defaultMeasureAxes||[]),[S,U]=m.useState(e.defaultSort||[]),[g,D]=m.useState(e.defaultFilter||[]),C=t=>{A(t.value)},P=t=>{b(t.value)},M=t=>{N(t.value)},E=t=>{U(t.value)},I=t=>{D(t.value)};m.useEffect(()=>{i(!0);const t={connection:{catalog:e.catalog,cube:e.cube},columnAxes:f.slice(),rowAxes:x.slice(),measureAxes:p,sort:S,filter:g};setTimeout(()=>{d.fetchData({url:e.url},$.clone(t)).then(d.createDataState).then(o=>{O(o),i(!1)})})},[f,x,p,g,S,e.cube,e.catalog,e.url]),m.useEffect(()=>{i(!0);const t={connection:{catalog:e.catalog,cube:e.cube},restrictions:{catalogName:e.catalog,cubeName:e.cube},command:"schemaDimensions"};d.fetchDiscover({url:e.url},t).then(o=>{d.addKPI(o),v(o),i(!1)})},[e.catalog,e.cube,e.url]);const w=(t=[],o)=>{for(let n=0;n<t.length;n++){const c=t[n];if(String(c.name)===String(o.name))return c}return null},F=(t=[],o)=>{for(let n=0;n<t.length;n++){const c=t[n];if(c.uniqueName===o.uniqueName)return c;const a=F(c.children,o);if(a!==null)return a}return null},L=async t=>{let o,n,c,a,s,u;t.name&&(o="schemaMembers",a=`${String(t.name)}.[(ALL)]`);const r={connection:{catalog:e.catalog,cube:e.cube},restrictions:{catalogName:e.catalog,cubeName:e.cube,hierarchyUniqueName:c,dimensionUniqueName:n,levelUniqueName:a,memberUniqueName:s,treeOp:u},command:o};return d.fetchDiscover({url:e.url},r)},R=async t=>{let o,n,c,a,s,u;t.uniqueName&&(o="schemaMembers",s=t.uniqueName.replace(/\&/g,"&amp;"),u=1);const r={connection:{catalog:e.catalog,cube:e.cube},restrictions:{catalogName:e.catalog,cubeName:e.cube,hierarchyUniqueName:c,dimensionUniqueName:n,levelUniqueName:a,memberUniqueName:s,treeOp:u},command:o};return d.fetchDiscover({url:e.url},r)},K=async t=>{let o,n,c,a,s,u;t.type===2?o="schemaMeasures":t.dimensionUniqueName?(o="schemaLevels",c=t.uniqueName):(o="schemaHierarchies",n=t.uniqueName);const r={connection:{catalog:e.catalog,cube:e.cube},restrictions:{catalogName:e.catalog,cubeName:e.cube,hierarchyUniqueName:c,dimensionUniqueName:n,levelUniqueName:a,memberUniqueName:s,treeOp:u},command:o};return d.fetchDiscover({url:e.url},r)},j=async()=>{const t={connection:{catalog:e.catalog,cube:e.cube},restrictions:{catalogName:e.catalog,cubeName:e.cube},command:"schemaKPIs"};return d.fetchDiscover({url:e.url},t)},k=async t=>{const o=q.slice(),n=F(o,t.value);if(n&&n.uniqueName==="[KPIs]"){const c=J(await j());n.children=c}else if(n&&n.type==="kpi")n.children=d.buildKPIMeasures(n);else if(n&&!n.children){const c=await K(n);n.children=c}v(o)},T=async t=>{if(!t)return;const o={rowAxes:[x,A],columnAxes:[f,b],measureAxes:[p,N]},[n,c]=o[t.target.props.axes],a=n.slice(),s=w(a,t.target.props.dataItem);if(s&&!s.fields){const u=await L(s);s.fields=u,c(a)}},_=async t=>{if(!t)return;const o={rowAxes:[x,A],columnAxes:[f,b],measureAxes:[p,N]},[n,c]=o[t.target.props.axes],a=n.slice(),s=w(a,t.target.props.dataItem);if(s){const u=(s.fields||[]).slice(),r=F(u,t.value);if(r&&(!r.children||!r.children.length)){const z=await R(r);r.children=z,s.fields=u,c(a)}}};return{pivotProps:{rowAxes:x,columnAxes:f,data:h.data,rows:h.rows,columns:h.columns,onRowAxesChange:C,onColumnAxesChange:P},configuratorProps:{sort:S,onSortChange:E,filter:g,onFilterChange:I,data:q,rowAxes:x,columnAxes:f,measureAxes:p,onRowAxesChange:C,onColumnAxesChange:P,onMeasureAxesChange:M,onFieldsEditorFieldExpand:k,onAxisFilterFieldExpand:_,onAxisFilterFieldsExpandChange:T},state:{loading:l}}},G=e=>{const l=y(e);return e.children(l)},J=e=>{for(let l=0,i=e.length;l<i;l++)e[l].uniqueName=e[l].name,e[l].type="kpi";return e};exports.PivotOLAPService=G;exports.usePivotOLAPService=y;
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as u from "react";
10
9
  import { fetchData as $, createDataState as j, fetchDiscover as f, addKPI as B, buildKPIMeasures as G } from "@progress/kendo-pivotgrid-common";
11
10
  import { clone as J } from "@progress/kendo-react-common";
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react");function i(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 s=i(u),f=(...e)=>{const t=s.useRef();return n=>{t.current!==void 0&&window.cancelAnimationFrame(t.current);const o=n.currentTarget,l=o.scrollTop;e.forEach(a=>{const c=a.current;c&&c!==o&&(t.current=window.requestAnimationFrame(()=>{c.scrollTop=Math.round(l)}))})}};exports.useVerticalScrollSync=f;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react");function i(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 s=i(u),f=(...e)=>{const t=s.useRef();return n=>{t.current!==void 0&&window.cancelAnimationFrame(t.current);const o=n.currentTarget,l=o.scrollTop;e.forEach(a=>{const c=a.current;c&&c!==o&&(t.current=window.requestAnimationFrame(()=>{c.scrollTop=Math.round(l)}))})}};exports.useVerticalScrollSync=f;
@@ -5,17 +5,16 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as a from "react";
10
- const i = (...t) => {
9
+ const i = (...o) => {
11
10
  const r = a.useRef();
12
- return (c) => {
11
+ return (t) => {
13
12
  r.current !== void 0 && window.cancelAnimationFrame(r.current);
14
- const n = c.currentTarget, o = n.scrollTop;
15
- t.forEach((l) => {
13
+ const n = t.currentTarget, c = n.scrollTop;
14
+ o.forEach((l) => {
16
15
  const e = l.current;
17
16
  e && e !== n && (r.current = window.requestAnimationFrame(() => {
18
- e.scrollTop = Math.round(o);
17
+ e.scrollTop = Math.round(c);
19
18
  }));
20
19
  });
21
20
  };
package/index.js CHANGED
@@ -5,4 +5,5 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PivotGrid.js"),o=require("./components/Column.js"),d=require("./components/Row.js"),a=require("./components/Cell.js"),n=require("./components/HeaderCell.js"),u=require("./components/Container.js"),v=require("./components/Configurator.js"),P=require("./components/ConfiguratorEditor.js"),s=require("./components/ConfiguratorButton.js"),g=require("./components/FieldsEditor.js"),l=require("./components/AxesEditor.js"),c=require("./components/AxisEditor.js"),G=require("./components/AxisFilterFieldsEditor.js"),i=require("./hooks/usePivotOLAPService.js"),r=require("./hooks/usePivotLocalDataService.js"),C=require("./utils/index.js"),e=require("@progress/kendo-pivotgrid-common");exports.PivotGrid=t.PivotGrid;exports.PivotGridColumn=o.PivotGridColumn;exports.PivotGridRow=d.PivotGridRow;exports.PivotGridCell=a.PivotGridCell;exports.PivotGridHeaderCell=n.PivotGridHeaderCell;exports.PivotGridContainer=u.PivotGridContainer;exports.PivotGridConfigurator=v.PivotGridConfigurator;exports.PivotGridConfiguratorEditor=P.PivotGridConfiguratorEditor;exports.PivotGridConfiguratorButton=s.PivotGridConfiguratorButton;exports.PivotGridFieldsEditor=g.PivotGridFieldsEditor;exports.PivotGridAxesEditor=l.PivotGridAxesEditor;exports.PivotGridAxisEditor=c.PivotGridAxisEditor;exports.PivotGridAxisFilterFieldsEditor=G.PivotGridAxisFilterFieldsEditor;exports.PivotOLAPService=i.PivotOLAPService;exports.usePivotOLAPService=i.usePivotOLAPService;exports.PivotLocalDataService=r.PivotLocalDataService;exports.usePivotLocalDataService=r.usePivotLocalDataService;exports.dataCells=C.dataCells;Object.defineProperty(exports,"averageAggregate",{enumerable:!0,get:()=>e.averageAggregate});Object.defineProperty(exports,"maxAggregate",{enumerable:!0,get:()=>e.maxAggregate});Object.defineProperty(exports,"minAggregate",{enumerable:!0,get:()=>e.minAggregate});Object.defineProperty(exports,"sumAggregate",{enumerable:!0,get:()=>e.sumAggregate});
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PivotGrid.js"),o=require("./components/Column.js"),d=require("./components/Row.js"),a=require("./components/Cell.js"),n=require("./components/HeaderCell.js"),u=require("./components/Container.js"),v=require("./components/Configurator.js"),P=require("./components/ConfiguratorEditor.js"),s=require("./components/ConfiguratorButton.js"),g=require("./components/FieldsEditor.js"),l=require("./components/AxesEditor.js"),c=require("./components/AxisEditor.js"),G=require("./components/AxisFilterFieldsEditor.js"),i=require("./hooks/usePivotOLAPService.js"),r=require("./hooks/usePivotLocalDataService.js"),C=require("./utils/index.js"),e=require("@progress/kendo-pivotgrid-common");exports.PivotGrid=t.PivotGrid;exports.PivotGridColumn=o.PivotGridColumn;exports.PivotGridRow=d.PivotGridRow;exports.PivotGridCell=a.PivotGridCell;exports.PivotGridHeaderCell=n.PivotGridHeaderCell;exports.PivotGridContainer=u.PivotGridContainer;exports.PivotGridConfigurator=v.PivotGridConfigurator;exports.PivotGridConfiguratorEditor=P.PivotGridConfiguratorEditor;exports.PivotGridConfiguratorButton=s.PivotGridConfiguratorButton;exports.PivotGridFieldsEditor=g.PivotGridFieldsEditor;exports.PivotGridAxesEditor=l.PivotGridAxesEditor;exports.PivotGridAxisEditor=c.PivotGridAxisEditor;exports.PivotGridAxisFilterFieldsEditor=G.PivotGridAxisFilterFieldsEditor;exports.PivotOLAPService=i.PivotOLAPService;exports.usePivotOLAPService=i.usePivotOLAPService;exports.PivotLocalDataService=r.PivotLocalDataService;exports.usePivotLocalDataService=r.usePivotLocalDataService;exports.dataCells=C.dataCells;Object.defineProperty(exports,"averageAggregate",{enumerable:!0,get:()=>e.averageAggregate});Object.defineProperty(exports,"maxAggregate",{enumerable:!0,get:()=>e.maxAggregate});Object.defineProperty(exports,"minAggregate",{enumerable:!0,get:()=>e.minAggregate});Object.defineProperty(exports,"sumAggregate",{enumerable:!0,get:()=>e.sumAggregate});
package/index.mjs CHANGED
@@ -12,9 +12,9 @@ import { PivotGridRow as v } from "./components/Row.mjs";
12
12
  import { PivotGridCell as x } from "./components/Cell.mjs";
13
13
  import { PivotGridHeaderCell as f } from "./components/HeaderCell.mjs";
14
14
  import { PivotGridContainer as p } from "./components/Container.mjs";
15
- import { PivotGridConfigurator as l } from "./components/Configurator.mjs";
15
+ import { PivotGridConfigurator as G } from "./components/Configurator.mjs";
16
16
  import { PivotGridConfiguratorEditor as s } from "./components/ConfiguratorEditor.mjs";
17
- import { PivotGridConfiguratorButton as u } from "./components/ConfiguratorButton.mjs";
17
+ import { PivotGridConfiguratorButton as n } from "./components/ConfiguratorButton.mjs";
18
18
  import { PivotGridFieldsEditor as C } from "./components/FieldsEditor.mjs";
19
19
  import { PivotGridAxesEditor as E } from "./components/AxesEditor.mjs";
20
20
  import { PivotGridAxisEditor as S } from "./components/AxisEditor.mjs";
@@ -30,8 +30,8 @@ export {
30
30
  D as PivotGridAxisFilterFieldsEditor,
31
31
  x as PivotGridCell,
32
32
  e as PivotGridColumn,
33
- l as PivotGridConfigurator,
34
- u as PivotGridConfiguratorButton,
33
+ G as PivotGridConfigurator,
34
+ n as PivotGridConfiguratorButton,
35
35
  s as PivotGridConfiguratorEditor,
36
36
  p as PivotGridContainer,
37
37
  C as PivotGridFieldsEditor,
package/messages/index.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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="pivotgrid.emptyCellAriaLabel",t="pivotgrid.fieldMenuReset",i="pivotgrid.fieldMenuApply",e="pivotgrid.configuratorTitle",r="pivotgrid.configuratorCancel",n="pivotgrid.configuratorApply",l="pivotgrid.configuratorColumnsTitle",a="pivotgrid.configuratorRowsTitle",c="pivotgrid.configuratorMeasuresTitle",s="pivotgrid.configuratorEditorSearchTitle",g="pivotgrid.configuratorEditorSearchPlaceholder",u="pivotgrid.configuratorMissingFields",f="pivotgrid.configuratorButtonLabel",d={[o]:"PivotGrid component. Use the arrow keys to navigate.",[t]:"Reset",[i]:"Apply",[r]:"Cancel",[n]:"Apply",[e]:"Settings",[s]:"Fields",[g]:"Search...",[l]:"Columns",[a]:"Rows",[c]:"Values",[f]:"Change settings",[u]:"Select some fields to begin setup"};exports.configuratorApply=n;exports.configuratorButtonLabel=f;exports.configuratorCancel=r;exports.configuratorColumnsTitle=l;exports.configuratorEditorSearchPlaceholder=g;exports.configuratorEditorSearchTitle=s;exports.configuratorMeasuresTitle=c;exports.configuratorMissingFields=u;exports.configuratorRowsTitle=a;exports.configuratorTitle=e;exports.emptyCellAriaLabel=o;exports.fieldMenuApply=i;exports.fieldMenuReset=t;exports.messages=d;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="pivotgrid.emptyCellAriaLabel",t="pivotgrid.fieldMenuReset",i="pivotgrid.fieldMenuApply",r="pivotgrid.configuratorTitle",e="pivotgrid.configuratorCancel",n="pivotgrid.configuratorApply",a="pivotgrid.configuratorColumnsTitle",l="pivotgrid.configuratorRowsTitle",c="pivotgrid.configuratorMeasuresTitle",s="pivotgrid.configuratorEditorSearchTitle",g="pivotgrid.configuratorEditorSearchPlaceholder",u="pivotgrid.configuratorMissingFields",f="pivotgrid.configuratorButtonLabel",d={[o]:"PivotGrid component. Use the arrow keys to navigate.",[t]:"Reset",[i]:"Apply",[e]:"Cancel",[n]:"Apply",[r]:"Settings",[s]:"Fields",[g]:"Search...",[a]:"Columns",[l]:"Rows",[c]:"Values",[f]:"Change settings",[u]:"Select some fields to begin setup"};exports.configuratorApply=n;exports.configuratorButtonLabel=f;exports.configuratorCancel=e;exports.configuratorColumnsTitle=a;exports.configuratorEditorSearchPlaceholder=g;exports.configuratorEditorSearchTitle=s;exports.configuratorMeasuresTitle=c;exports.configuratorMissingFields=u;exports.configuratorRowsTitle=l;exports.configuratorTitle=r;exports.emptyCellAriaLabel=o;exports.fieldMenuApply=i;exports.fieldMenuReset=t;exports.messages=d;
@@ -5,19 +5,18 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
- const o = "pivotgrid.emptyCellAriaLabel", t = "pivotgrid.fieldMenuReset", i = "pivotgrid.fieldMenuApply", r = "pivotgrid.configuratorTitle", e = "pivotgrid.configuratorCancel", n = "pivotgrid.configuratorApply", c = "pivotgrid.configuratorColumnsTitle", s = "pivotgrid.configuratorRowsTitle", l = "pivotgrid.configuratorMeasuresTitle", a = "pivotgrid.configuratorEditorSearchTitle", g = "pivotgrid.configuratorEditorSearchPlaceholder", u = "pivotgrid.configuratorMissingFields", p = "pivotgrid.configuratorButtonLabel", d = {
8
+ const o = "pivotgrid.emptyCellAriaLabel", t = "pivotgrid.fieldMenuReset", i = "pivotgrid.fieldMenuApply", r = "pivotgrid.configuratorTitle", e = "pivotgrid.configuratorCancel", n = "pivotgrid.configuratorApply", c = "pivotgrid.configuratorColumnsTitle", s = "pivotgrid.configuratorRowsTitle", a = "pivotgrid.configuratorMeasuresTitle", l = "pivotgrid.configuratorEditorSearchTitle", g = "pivotgrid.configuratorEditorSearchPlaceholder", u = "pivotgrid.configuratorMissingFields", p = "pivotgrid.configuratorButtonLabel", d = {
10
9
  [o]: "PivotGrid component. Use the arrow keys to navigate.",
11
10
  [t]: "Reset",
12
11
  [i]: "Apply",
13
12
  [e]: "Cancel",
14
13
  [n]: "Apply",
15
14
  [r]: "Settings",
16
- [a]: "Fields",
15
+ [l]: "Fields",
17
16
  [g]: "Search...",
18
17
  [c]: "Columns",
19
18
  [s]: "Rows",
20
- [l]: "Values",
19
+ [a]: "Values",
21
20
  [p]: "Change settings",
22
21
  [u]: "Select some fields to begin setup"
23
22
  };
@@ -27,8 +26,8 @@ export {
27
26
  e as configuratorCancel,
28
27
  c as configuratorColumnsTitle,
29
28
  g as configuratorEditorSearchPlaceholder,
30
- a as configuratorEditorSearchTitle,
31
- l as configuratorMeasuresTitle,
29
+ l as configuratorEditorSearchTitle,
30
+ a as configuratorMeasuresTitle,
32
31
  u as configuratorMissingFields,
33
32
  s as configuratorRowsTitle,
34
33
  r as configuratorTitle,
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-pivotgrid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1737926150,version:"9.4.0-develop.6",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-pivotgrid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1738137390,version:"9.4.0-develop.8",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
@@ -5,14 +5,13 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  const e = {
10
9
  name: "@progress/kendo-react-pivotgrid",
11
10
  productName: "KendoReact",
12
11
  productCode: "KENDOUIREACT",
13
12
  productCodes: ["KENDOUIREACT"],
14
- publishDate: 1737926150,
15
- version: "9.4.0-develop.6",
13
+ publishDate: 1738137390,
14
+ version: "9.4.0-develop.8",
16
15
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
17
16
  };
18
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-pivotgrid",
3
- "version": "9.4.0-develop.6",
3
+ "version": "9.4.0-develop.8",
4
4
  "description": "React PivotGrid (also called Pivot Table) can be data-bound to an OLAP service and customized extensively. KendoReact PivotGrid package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -28,14 +28,14 @@
28
28
  "@progress/kendo-data-query": "^1.5.5",
29
29
  "@progress/kendo-licensing": "^1.3.4",
30
30
  "@progress/kendo-pivotgrid-common": "0.6.2",
31
- "@progress/kendo-react-buttons": "9.4.0-develop.6",
32
- "@progress/kendo-react-common": "9.4.0-develop.6",
33
- "@progress/kendo-react-data-tools": "9.4.0-develop.6",
34
- "@progress/kendo-react-form": "9.4.0-develop.6",
35
- "@progress/kendo-react-indicators": "9.4.0-develop.6",
36
- "@progress/kendo-react-intl": "9.4.0-develop.6",
37
- "@progress/kendo-react-labels": "9.4.0-develop.6",
38
- "@progress/kendo-react-treeview": "9.4.0-develop.6",
31
+ "@progress/kendo-react-buttons": "9.4.0-develop.8",
32
+ "@progress/kendo-react-common": "9.4.0-develop.8",
33
+ "@progress/kendo-react-data-tools": "9.4.0-develop.8",
34
+ "@progress/kendo-react-form": "9.4.0-develop.8",
35
+ "@progress/kendo-react-indicators": "9.4.0-develop.8",
36
+ "@progress/kendo-react-intl": "9.4.0-develop.8",
37
+ "@progress/kendo-react-labels": "9.4.0-develop.8",
38
+ "@progress/kendo-react-treeview": "9.4.0-develop.8",
39
39
  "@progress/kendo-svg-icons": "^4.0.0",
40
40
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
41
41
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
@@ -61,7 +61,7 @@
61
61
  "package": {
62
62
  "productName": "KendoReact",
63
63
  "productCode": "KENDOUIREACT",
64
- "publishDate": 1737926150,
64
+ "publishDate": 1738137390,
65
65
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
66
66
  }
67
67
  },
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react");function c(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const i=c(n),a=i.createContext({});exports.PivotGridConfiguratorEditorEventsContext=a;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react");function c(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const i=c(n),a=i.createContext({});exports.PivotGridConfiguratorEditorEventsContext=a;
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as t from "react";
10
9
  const o = t.createContext({});
11
10
  export {
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),a=require("@progress/kendo-react-common");function c(e){const o=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(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const i=c(n),u=i.createContext([{expanded:[],rowAxes:[],columnAxes:[],measureAxes:[],dragItem:null,dropZone:null,dropDirection:null,dropTarget:null},a.noop]);exports.PivotGridConfiguratorEditorStateContext=u;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),a=require("@progress/kendo-react-common");function c(e){const o=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(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const i=c(n),u=i.createContext([{expanded:[],rowAxes:[],columnAxes:[],measureAxes:[],dragItem:null,dropZone:null,dropDirection:null,dropTarget:null},a.noop]);exports.PivotGridConfiguratorEditorStateContext=u;
@@ -5,10 +5,9 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as o from "react";
10
9
  import { noop as e } from "@progress/kendo-react-common";
11
- const r = o.createContext([
10
+ const t = o.createContext([
12
11
  {
13
12
  expanded: [],
14
13
  rowAxes: [],
@@ -22,5 +21,5 @@ const r = o.createContext([
22
21
  e
23
22
  ]);
24
23
  export {
25
- r as PivotGridConfiguratorEditorStateContext
24
+ t as PivotGridConfiguratorEditorStateContext
26
25
  };
package/utils/index.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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@progress/kendo-pivotgrid-common"),g=(e,t,r)=>{const n=JSON.parse(JSON.stringify(e||[])),a=JSON.parse(JSON.stringify(t||[])),o=JSON.parse(JSON.stringify(r||[])),s=c.toTree(n),[,u,d]=c.toRows(s),f=c.toTree(a),[,p,,m]=c.toColumns(f);return c.toData(o,p,u,m,d)},h=(e=[],t={},r=null)=>e.map(n=>{const a={dataItem:n};return Object.keys(t).forEach(o=>{a[o]=t[o](a,r)}),a}),i=(e=[])=>{let t=[...e];return(e||[]).forEach(r=>{t=t.concat(i(r.children))}),t},y=(e=[])=>{const t=new Set;return e.forEach(r=>{t.add(String(r.name))}),Array.from(t)},l=(e=[])=>`${e.join(",")}`,O=(e,t)=>`${l(e.map(r=>r.name))}|${l(t.map(r=>r.name))}`,S=(e,t,r)=>{if(!e)return;let n=0,a;const o=e.length;let s;for(;n<o;n++)s=e[n].operator,s===r&&e[n].field===t&&(a=e[n]);return a},F=(e,t,r)=>{if(!e)return[];let n=0;const a=[],o=e.length;let s;for(;n<o;n++)s=e[n].operator,(!r&&s!=="in"||s===r)&&e[n].field===t&&a.push(e[n]);return a},N=(e,t)=>e.uniqueName===t.uniqueName;exports.compareFields=N;exports.dataCells=g;exports.extractDefaultFields=y;exports.findFilter=S;exports.findFilters=F;exports.flatMap=i;exports.generateDataKey=O;exports.generateKey=l;exports.recursiveMap=h;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@progress/kendo-pivotgrid-common"),g=(e,t,r)=>{const n=JSON.parse(JSON.stringify(e||[])),a=JSON.parse(JSON.stringify(t||[])),o=JSON.parse(JSON.stringify(r||[])),s=c.toTree(n),[,u,d]=c.toRows(s),f=c.toTree(a),[,p,,m]=c.toColumns(f);return c.toData(o,p,u,m,d)},h=(e=[],t={},r=null)=>e.map(n=>{const a={dataItem:n};return Object.keys(t).forEach(o=>{a[o]=t[o](a,r)}),a}),i=(e=[])=>{let t=[...e];return(e||[]).forEach(r=>{t=t.concat(i(r.children))}),t},y=(e=[])=>{const t=new Set;return e.forEach(r=>{t.add(String(r.name))}),Array.from(t)},l=(e=[])=>`${e.join(",")}`,O=(e,t)=>`${l(e.map(r=>r.name))}|${l(t.map(r=>r.name))}`,S=(e,t,r)=>{if(!e)return;let n=0,a;const o=e.length;let s;for(;n<o;n++)s=e[n].operator,s===r&&e[n].field===t&&(a=e[n]);return a},F=(e,t,r)=>{if(!e)return[];let n=0;const a=[],o=e.length;let s;for(;n<o;n++)s=e[n].operator,(!r&&s!=="in"||s===r)&&e[n].field===t&&a.push(e[n]);return a},N=(e,t)=>e.uniqueName===t.uniqueName;exports.compareFields=N;exports.dataCells=g;exports.extractDefaultFields=y;exports.findFilter=S;exports.findFilters=F;exports.flatMap=i;exports.generateDataKey=O;exports.generateKey=l;exports.recursiveMap=h;
package/utils/index.mjs CHANGED
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import { toTree as c, toRows as f, toColumns as h, toData as g } from "@progress/kendo-pivotgrid-common";
10
9
  const S = (e, t, r) => {
11
10
  const n = JSON.parse(JSON.stringify(e || [])), o = JSON.parse(JSON.stringify(t || [])), s = JSON.parse(JSON.stringify(r || [])), a = c(n), [, u, i] = f(a), p = c(o), [, d, , m] = h(p);