@progress/kendo-react-pivotgrid 7.2.4-develop.3 → 7.2.4-develop.4

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 (87) hide show
  1. package/PivotGrid.js +8 -0
  2. package/PivotGrid.mjs +252 -0
  3. package/components/AxesEditor.js +8 -0
  4. package/components/AxesEditor.mjs +43 -0
  5. package/components/AxisEditor.js +8 -0
  6. package/components/AxisEditor.mjs +108 -0
  7. package/components/AxisFilterFieldsEditor.js +8 -0
  8. package/components/AxisFilterFieldsEditor.mjs +159 -0
  9. package/components/Cell.js +8 -0
  10. package/components/Cell.mjs +45 -0
  11. package/components/Column.js +8 -0
  12. package/components/Column.mjs +40 -0
  13. package/components/Configurator.js +8 -0
  14. package/components/Configurator.mjs +134 -0
  15. package/components/ConfiguratorButton.js +8 -0
  16. package/components/ConfiguratorButton.mjs +42 -0
  17. package/components/ConfiguratorEditor.js +8 -0
  18. package/components/ConfiguratorEditor.mjs +240 -0
  19. package/components/Container.js +8 -0
  20. package/components/Container.mjs +40 -0
  21. package/components/EditorContext.js +8 -0
  22. package/components/EditorContext.mjs +13 -0
  23. package/components/FieldsEditor.js +8 -0
  24. package/components/FieldsEditor.mjs +78 -0
  25. package/components/HeaderCell.js +8 -0
  26. package/components/HeaderCell.mjs +69 -0
  27. package/components/Row.js +8 -0
  28. package/components/Row.mjs +42 -0
  29. package/dist/cdn/js/kendo-react-pivotgrid.js +8 -5
  30. package/hooks/useExpansion.js +8 -0
  31. package/hooks/useExpansion.mjs +46 -0
  32. package/hooks/useHeaders.js +8 -0
  33. package/hooks/useHeaders.mjs +18 -0
  34. package/hooks/useHorizontalScrollSync.js +8 -0
  35. package/hooks/useHorizontalScrollSync.mjs +25 -0
  36. package/hooks/usePivotConfiguratorEditor.js +8 -0
  37. package/hooks/usePivotConfiguratorEditor.mjs +67 -0
  38. package/hooks/usePivotLocalDataService.js +8 -0
  39. package/hooks/usePivotLocalDataService.mjs +94 -0
  40. package/hooks/usePivotOLAPService.js +8 -0
  41. package/hooks/usePivotOLAPService.mjs +230 -0
  42. package/hooks/useVerticalScrollSync.js +8 -0
  43. package/hooks/useVerticalScrollSync.mjs +25 -0
  44. package/index.d.mts +1342 -5
  45. package/index.d.ts +1342 -22
  46. package/index.js +8 -5
  47. package/index.mjs +46 -1583
  48. package/messages/index.js +8 -0
  49. package/messages/index.mjs +39 -0
  50. package/package-metadata.js +8 -0
  51. package/package-metadata.mjs +19 -0
  52. package/package.json +9 -9
  53. package/shared/PivotGridConfiguratorEditorEventsContext.js +8 -0
  54. package/shared/PivotGridConfiguratorEditorEventsContext.mjs +13 -0
  55. package/shared/PivotGridConfiguratorEditorStateContext.js +8 -0
  56. package/shared/PivotGridConfiguratorEditorStateContext.mjs +28 -0
  57. package/utils/index.js +8 -0
  58. package/utils/index.mjs +59 -0
  59. package/PivotGrid.d.ts +0 -181
  60. package/components/AxesEditor.d.ts +0 -44
  61. package/components/AxisEditor.d.ts +0 -56
  62. package/components/AxisFilterFieldsEditor.d.ts +0 -118
  63. package/components/Cell.d.ts +0 -69
  64. package/components/Column.d.ts +0 -46
  65. package/components/Configurator.d.ts +0 -129
  66. package/components/ConfiguratorButton.d.ts +0 -44
  67. package/components/ConfiguratorEditor.d.ts +0 -130
  68. package/components/Container.d.ts +0 -50
  69. package/components/EditorContext.d.ts +0 -11
  70. package/components/FieldsEditor.d.ts +0 -78
  71. package/components/HeaderCell.d.ts +0 -100
  72. package/components/Row.d.ts +0 -54
  73. package/hooks/index.d.ts +0 -6
  74. package/hooks/useExpansion.d.ts +0 -23
  75. package/hooks/useHeaders.d.ts +0 -16
  76. package/hooks/useHorizontalScrollSync.d.ts +0 -9
  77. package/hooks/usePivotConfiguratorEditor.d.ts +0 -87
  78. package/hooks/usePivotLocalDataService.d.ts +0 -83
  79. package/hooks/usePivotOLAPService.d.ts +0 -45
  80. package/hooks/useVerticalScrollSync.d.ts +0 -9
  81. package/messages/index.d.ts +0 -74
  82. package/models/index.d.ts +0 -48
  83. package/package-metadata.d.ts +0 -9
  84. package/shared/PivotGridConfiguratorEditorEventsContext.d.ts +0 -17
  85. package/shared/PivotGridConfiguratorEditorStateContext.d.ts +0 -10
  86. package/shared/index.d.ts +0 -6
  87. package/utils/index.d.ts +0 -51
package/index.mjs CHANGED
@@ -1,1586 +1,49 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
5
8
  "use client";
6
- import * as t from "react";
7
- import { useMouse as he, classNames as ee, useCustomComponent as I, IconWrap as ot, validatePackage as kt, useIsomorphicLayoutEffect as Mt, setScrollbarWidth as Ye, noop as Tt, useDraggable as Lt, canUseRef as Fe, clone as Dt } from "@progress/kendo-react-common";
8
- import { useLocalization as xe } from "@progress/kendo-react-intl";
9
- import { headersReducer as Ht, toTree as pe, toRows as rt, toColumns as lt, toData as it, PivotGridNavigation as Gt, HEADERS_ACTION as We, PIVOT_CONFIGURATOR_ACTION as Ot, configuratorReducer as qt, compareAxes as Qe, fetchData as Bt, createDataState as zt, fetchDiscover as de, addKPI as Kt, buildKPIMeasures as Ut, rootFields as et, createDataTree as Vt, createFlatSchemaDimensions as $t, createLocalDataState as _t } from "@progress/kendo-pivotgrid-common";
10
- import { averageAggregate as qn, maxAggregate as Bn, minAggregate as zn, sumAggregate as Kn } from "@progress/kendo-pivotgrid-common";
11
- import { chevronUpIcon as Xt, chevronDownIcon as Zt, gridLayoutIcon as jt, gearIcon as Jt } from "@progress/kendo-svg-icons";
12
- import { Button as ye, Chip as Yt, ChipList as Wt } from "@progress/kendo-react-buttons";
13
- import { Field as se, Form as Qt, FormElement as en } from "@progress/kendo-react-form";
14
- import { Label as me } from "@progress/kendo-react-labels";
15
- import { ColumnMenuItem as tn, ColumnMenuForm as nn, ColumnMenuTextFilter as an, ColumnMenuTextColumn as on } from "@progress/kendo-react-data-tools";
16
- import { TreeView as st, TreeViewItemPropsContext as rn } from "@progress/kendo-react-treeview";
17
- import { Skeleton as ln } from "@progress/kendo-react-indicators";
18
- const sn = {
19
- name: "@progress/kendo-react-pivotgrid",
20
- productName: "KendoReact",
21
- productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
22
- publishDate: 1709632281,
23
- version: "",
24
- licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
25
- }, Re = "pivotgrid.emptyCellAriaLabel", Ne = "pivotgrid.fieldMenuReset", Se = "pivotgrid.fieldMenuApply", ke = "pivotgrid.configuratorTitle", Me = "pivotgrid.configuratorCancel", Te = "pivotgrid.configuratorApply", Le = "pivotgrid.configuratorColumnsTitle", De = "pivotgrid.configuratorRowsTitle", He = "pivotgrid.configuratorMeasuresTitle", Ge = "pivotgrid.configuratorEditorSearchTitle", cn = "pivotgrid.configuratorEditorSearchPlaceholder", ae = "pivotgrid.configuratorMissingFields", Oe = "pivotgrid.configuratorButtonLabel", Z = {
26
- [Re]: "PivotGrid component. Use the arrow keys to navigate.",
27
- [Ne]: "Reset",
28
- [Se]: "Apply",
29
- [Me]: "Cancel",
30
- [Te]: "Apply",
31
- [ke]: "Settings",
32
- [Ge]: "Fields",
33
- [cn]: "Search...",
34
- [Le]: "Columns",
35
- [De]: "Rows",
36
- [He]: "Values",
37
- [Oe]: "Change settings",
38
- [ae]: "Select some fields to begin setup"
39
- }, ct = t.forwardRef((e, a) => {
40
- const n = t.useRef(null), o = t.useRef(null);
41
- t.useImperativeHandle(n, () => ({
42
- element: o.current,
43
- props: e
44
- })), t.useImperativeHandle(a, () => n.current);
45
- const l = he(
46
- e,
47
- n
48
- );
49
- return /* @__PURE__ */ t.createElement(
50
- "tr",
51
- {
52
- ref: o,
53
- ...l,
54
- id: e.id,
55
- style: e.style,
56
- tabIndex: e.tabIndex,
57
- children: e.children,
58
- role: e.role,
59
- "aria-owns": e.ariaOwns,
60
- className: ee(
61
- "k-pivotgrid-row",
62
- e.className
63
- )
64
- }
65
- );
66
- });
67
- ct.displayName = "KendoReactPivotGridRow";
68
- const dt = t.forwardRef((e, a) => {
69
- const n = t.useRef(null), o = t.useRef(null);
70
- t.useImperativeHandle(n, () => ({
71
- element: o.current,
72
- props: e
73
- })), t.useImperativeHandle(a, () => n.current);
74
- const l = he(
75
- e,
76
- n
77
- );
78
- return /* @__PURE__ */ t.createElement(
79
- "td",
80
- {
81
- ref: o,
82
- ...l,
83
- id: e.id,
84
- style: e.style,
85
- tabIndex: e.tabIndex,
86
- role: e.role,
87
- "aria-describedby": e.ariaDescribedby,
88
- className: ee(
89
- "k-pivotgrid-cell",
90
- {
91
- "k-pivotgrid-header-total": e.total
92
- },
93
- e.className
94
- )
95
- },
96
- e.children
97
- );
98
- });
99
- dt.displayName = "KendoReactPivotGridCell";
100
- const tt = (e, a, n) => [e, (l, i) => {
101
- const u = Ht(e, { ...l, tree: a });
102
- n && n(u, i);
103
- }], Be = t.forwardRef((e, a) => {
104
- const n = t.useRef(null), o = t.useRef(null);
105
- t.useImperativeHandle(n, () => ({
106
- element: o.current,
107
- props: e
108
- })), t.useImperativeHandle(a, () => n.current);
109
- const [l, i] = I(e.icon || ut.icon), u = he(
110
- e,
111
- n
112
- ), s = (E) => {
113
- e.onIconClick && e.onIconClick.call(void 0, {
114
- syntheticEvent: E.syntheticEvent,
115
- target: n.current
116
- });
117
- };
118
- return /* @__PURE__ */ t.createElement(
119
- "th",
120
- {
121
- ref: o,
122
- ...u,
123
- colSpan: e.colSpan,
124
- rowSpan: e.rowSpan,
125
- id: e.id,
126
- style: e.style,
127
- tabIndex: e.tabIndex,
128
- role: e.role,
129
- ...e.expandable ? { "aria-expanded": e.expanded } : {},
130
- className: ee(
131
- "k-pivotgrid-cell",
132
- {
133
- "k-pivotgrid-header-total": e.total,
134
- "k-pivotgrid-header-root": e.root,
135
- "k-pivotgrid-expanded": e.expanded,
136
- "k-first": e.first
137
- },
138
- e.className
139
- )
140
- },
141
- e.expandable && /* @__PURE__ */ t.createElement(
142
- l,
143
- {
144
- ...i,
145
- onClick: s,
146
- name: `chevron-${e.expanded ? "up" : "down"}`,
147
- "aria-hidden": !0,
148
- icon: e.expanded ? Xt : Zt
149
- }
150
- ),
151
- e.children
152
- );
153
- }), ut = {
154
- icon: ot
155
- };
156
- Be.defaultProps = ut;
157
- Be.displayName = "KendoReactPivotGridHeaderCell";
158
- const dn = (...e) => {
159
- const a = t.useRef();
160
- return (o) => {
161
- a.current !== void 0 && window.cancelAnimationFrame(a.current);
162
- const l = o.currentTarget, i = l.scrollLeft;
163
- e.forEach((u) => {
164
- const s = u.current;
165
- s && s !== l && (a.current = window.requestAnimationFrame(() => {
166
- s.scrollLeft = Math.round(i);
167
- }));
168
- });
169
- };
170
- }, un = (...e) => {
171
- const a = t.useRef();
172
- return (o) => {
173
- a.current !== void 0 && window.cancelAnimationFrame(a.current);
174
- const l = o.currentTarget, i = l.scrollTop;
175
- e.forEach((u) => {
176
- const s = u.current;
177
- s && s !== l && (a.current = window.requestAnimationFrame(() => {
178
- s.scrollTop = Math.round(i);
179
- }));
180
- });
181
- };
182
- }, ze = t.forwardRef((e, a) => {
183
- const n = t.useRef(null), o = t.useRef(null);
184
- t.useImperativeHandle(n, () => ({
185
- element: o.current,
186
- props: e
187
- })), t.useImperativeHandle(a, () => n.current);
188
- const l = he(
189
- e,
190
- n
191
- );
192
- return /* @__PURE__ */ t.createElement(
193
- "col",
194
- {
195
- ref: o,
196
- ...l,
197
- id: e.id,
198
- style: e.style,
199
- tabIndex: e.tabIndex,
200
- children: e.children,
201
- className: e.className
202
- }
203
- );
204
- }), mn = {
205
- path: []
206
- };
207
- ze.defaultProps = mn;
208
- ze.displayName = "KendoReactPivotGridColumn";
209
- const Ln = (e, a, n) => {
210
- const o = JSON.parse(JSON.stringify(e || [])), l = JSON.parse(JSON.stringify(a || [])), i = JSON.parse(JSON.stringify(n || [])), u = pe(o), [, s, E] = rt(u), m = pe(l), [, x, , y] = lt(m);
211
- return it(
212
- i,
213
- x,
214
- s,
215
- y,
216
- E
217
- );
218
- }, we = (e = [], a = {}, n = null) => e.map((o) => {
219
- const l = { dataItem: o };
220
- return Object.keys(a).forEach((i) => {
221
- l[i] = a[i](l, n);
222
- }), l;
223
- }), Ke = (e = []) => {
224
- let a = [...e];
225
- return (e || []).forEach((n) => {
226
- a = a.concat(Ke(n.children));
227
- }), a;
228
- }, Pe = (e = []) => {
229
- const a = /* @__PURE__ */ new Set();
230
- return e.forEach((n) => {
231
- a.add(String(n.name));
232
- }), Array.from(a);
233
- }, oe = (e = []) => `${e.join(",")}`, fn = (e, a) => `${oe(e.map((n) => n.name))}|${oe(a.map((n) => n.name))}`, gn = (e, a, n) => {
234
- if (!e)
235
- return;
236
- let o = 0, l, i = e.length, u;
237
- for (; o < i; o++)
238
- u = e[o].operator, (!n && u !== "in" || u === n) && e[o].field === a && (l = e[o]);
239
- return l;
240
- }, nt = (e, a, n) => {
241
- if (!e)
242
- return [];
243
- let o = 0, l = [], i = e.length, u;
244
- for (; o < i; o++)
245
- u = e[o].operator, (!n && u !== "in" || u === n) && e[o].field === a && l.push(e[o]);
246
- return l;
247
- }, mt = (e, a) => e.uniqueName === a.uniqueName, hn = t.forwardRef((e, a) => {
248
- kt(sn);
249
- const {
250
- rows: n,
251
- rowAxes: o,
252
- columns: l,
253
- columnAxes: i,
254
- data: u
255
- } = { ...ue, ...e }, s = t.useRef(null), E = t.useRef(null), m = t.useRef(null), x = t.useRef(null), y = t.useRef(null), G = t.useRef(null), k = t.useRef(null), U = xe(), L = (h, R) => {
256
- e.onRowAxesChange && e.onRowAxesChange({
257
- value: h,
258
- target: E.current,
259
- syntheticEvent: R
260
- });
261
- }, V = (h, R) => {
262
- e.onColumnAxesChange && e.onColumnAxesChange({
263
- value: h,
264
- target: E.current,
265
- syntheticEvent: R
266
- });
267
- }, $ = pe((n || []).slice()), [, v] = tt((o || []).slice(), $, L), [N, f, z, K] = rt($), D = pe((l || []).slice()), [, c] = tt((i || []).slice(), D, V), [A, M, , P] = lt(D), p = it((u || []).slice(), M, f, P, z);
268
- t.useImperativeHandle(E, () => ({
269
- props: e,
270
- element: s.current,
271
- columnHeaderRows: A,
272
- rowHeaderRows: N,
273
- dataCells: p,
274
- rowHeaderBreadth: K,
275
- columnHeaderBreadth: P
276
- })), t.useImperativeHandle(a, () => E.current);
277
- const X = [], j = [], r = [], [g, C] = I(e.row || ue.row), [w, S] = I(e.column || ue.column), [O, _] = I(e.cell || ue.cell), [d, H] = I(e.headerCell || ue.headerCell), B = e.columnHeadersRow || g, T = e.columnHeadersColumn || w, W = e.columnHeadersCell || d, Y = e.rowHeadersRow || g, ne = e.rowHeadersColumn || w, pt = e.rowHeadersCell || d, yt = e.dataRow || g, wt = e.dataColumn || w;
278
- for (let h = 0; h < M.length; h++)
279
- X.push(/* @__PURE__ */ t.createElement(wt, { key: String(M[h].path), ...S, path: M[h].path })), r.push(/* @__PURE__ */ t.createElement(T, { key: String(M[h].path), ...S, path: M[h].path }));
280
- for (let h = 0; h < K; h++)
281
- j.push(/* @__PURE__ */ t.createElement(ne, { key: h, ...S }));
282
- const Ft = (h) => {
283
- h.target.props.expandable && c(
284
- {
285
- type: We.toggle,
286
- payload: h.target.props.dataItem.path
287
- },
288
- h.syntheticEvent
289
- );
290
- }, bt = (h) => {
291
- h.target.props.expandable && v(
292
- {
293
- type: We.toggle,
294
- payload: h.target.props.dataItem.path
295
- },
296
- h.syntheticEvent
297
- );
298
- }, Ze = dn(k, G), It = un(k, y), Pt = (h) => {
299
- Ze(h), It(h);
300
- }, je = t.useCallback(() => {
301
- s.current && x.current && (s.current.style.gridTemplateRows = "", s.current.style.gridTemplateRows = `${x.current.offsetHeight}px 1fr`);
302
- }, []), Je = t.useCallback(() => {
303
- s.current && m.current && (s.current.style.gridTemplateColumns = "", s.current.style.gridTemplateColumns = `${m.current.offsetWidth}px 1fr`);
304
- }, []), re = t.useRef(new Gt({ tabIndex: e.tabIndex || 0 }));
305
- t.useEffect(() => {
306
- if (s.current) {
307
- const h = e.tabIndex || 0;
308
- if (re.current.stop(), re.current.tabIndex = h, e.navigatable) {
309
- re.current.start(s.current);
310
- const R = re.current.first;
311
- R && R.setAttribute("tabindex", String(h));
312
- }
313
- }
314
- return () => {
315
- re.current.stop();
316
- };
317
- }, [e.tabIndex, e.navigatable]), t.useEffect(() => {
318
- re.current.update();
319
- }), t.useEffect(() => {
320
- if (x.current) {
321
- const h = new window.ResizeObserver(je);
322
- return h.observe(x.current), () => {
323
- h.disconnect();
324
- };
325
- }
326
- }, [je]), t.useEffect(() => {
327
- if (m.current) {
328
- const h = new window.ResizeObserver(Je);
329
- return h.observe(m.current), () => {
330
- h.disconnect();
331
- };
332
- }
333
- }, [Je]), Mt(() => {
334
- if (Ye(), m.current) {
335
- const h = new window.ResizeObserver(Ye);
336
- return h.observe(m.current), () => {
337
- h.disconnect();
338
- };
339
- }
340
- }, []);
341
- const le = new Array(A.length).fill([]).map(() => new Array(M.length));
342
- A.forEach((h, R) => {
343
- let F = 0;
344
- Array.from(h.cells).forEach((b) => {
345
- const J = !!(b && b.children && b.children.length), Ie = (b ? oe(b.normalizedPath) + (b.total ? "|[TOTAL]" : "") + (J ? "|[EXPANDED]" : "") : "").replace(/\s/g, "-");
346
- if (b)
347
- for (let Ce = 0; Ce < (b.colSpan || 1); Ce++) {
348
- for (let ie = 0; ie < (b.rowSpan || 1); ie++) {
349
- const Rt = le[R + ie].findIndex((Nt, St) => St >= F && !Nt);
350
- le[R + ie][Rt] = Ie;
351
- }
352
- F++;
353
- }
354
- });
355
- });
356
- const ve = p.map((h) => h.cells.map((R) => fn(R.rowTuple.members, R.columnTuple.members).replace(/\s/g, "-")));
357
- return /* @__PURE__ */ t.createElement(
358
- "div",
359
- {
360
- ref: s,
361
- id: e.id,
362
- style: e.style,
363
- tabIndex: e.navigatable ? void 0 : e.tabIndex,
364
- className: ee("k-pivotgrid", e.className),
365
- role: "grid"
366
- },
367
- /* @__PURE__ */ t.createElement("span", { className: "k-pivotgrid-empty-cell" }, /* @__PURE__ */ t.createElement("span", { className: "k-sr-only" }, U.toLanguageString(Re, Z[Re]))),
368
- /* @__PURE__ */ t.createElement("div", { ref: G, className: "k-pivotgrid-column-headers", onScroll: Ze }, /* @__PURE__ */ t.createElement("table", { ref: x, className: "k-pivotgrid-table", role: "none" }, /* @__PURE__ */ t.createElement("colgroup", null, r), /* @__PURE__ */ t.createElement("tbody", { className: "k-pivotgrid-tbody", role: "rowgroup" }, A.map((h, R) => {
369
- let F = !1;
370
- return /* @__PURE__ */ t.createElement(
371
- B,
372
- {
373
- key: h.name,
374
- role: "row",
375
- ...C
376
- },
377
- h.cells.map((b, J) => {
378
- const Ie = J !== 0 && !F;
379
- b && (F = !0);
380
- const Ce = b && !!(b.children && b.children.length), ie = b && b.hasChildren && (!b.total || b.total && b.parent.total);
381
- return b ? /* @__PURE__ */ t.createElement(
382
- W,
383
- {
384
- ...H,
385
- key: le[R][J],
386
- "data-key": le[R][J],
387
- id: le[R][J],
388
- columnPath: b.normalizedPath,
389
- rowSpan: b.rowSpan || void 0,
390
- colSpan: b.colSpan || void 0,
391
- onIconClick: Ft,
392
- dataItem: b,
393
- expanded: Ce,
394
- expandable: ie,
395
- total: b.total,
396
- first: Ie,
397
- root: b.levelNum === 0,
398
- role: "columnheader"
399
- },
400
- b.caption
401
- ) : null;
402
- })
403
- );
404
- })))),
405
- /* @__PURE__ */ t.createElement("div", { ref: y, className: "k-pivotgrid-row-headers" }, /* @__PURE__ */ t.createElement("table", { ref: m, className: "k-pivotgrid-table", role: "none" }, /* @__PURE__ */ t.createElement("colgroup", null, j), /* @__PURE__ */ t.createElement("tbody", { className: "k-pivotgrid-tbody", role: "rowgroup" }, N.map((h, R) => /* @__PURE__ */ t.createElement(
406
- Y,
407
- {
408
- key: oe(f[R].path),
409
- ...C,
410
- path: f[R].path,
411
- role: "row",
412
- ariaOwns: ve[R].join(" ")
413
- },
414
- h.cells.filter(Boolean).map(
415
- (F) => F ? /* @__PURE__ */ t.createElement(
416
- pt,
417
- {
418
- ...H,
419
- key: oe(F.normalizedPath) + (F.total ? "|[TOTAL]" : "") + (F.children && F.children.length ? "|[EXPANDED]" : ""),
420
- "data-key": oe(F.normalizedPath) + (F.total ? "|[TOTAL]" : "") + (F.children && F.children.length ? "|[EXPANDED]" : ""),
421
- rowPath: F.normalizedPath,
422
- rowSpan: F.rowSpan || void 0,
423
- colSpan: F.colSpan || void 0,
424
- dataItem: F,
425
- expanded: !!(F.children && F.children.length),
426
- expandable: F.hasChildren && !F.total,
427
- total: F.total,
428
- onIconClick: bt,
429
- root: F.levelNum === 0,
430
- role: "rowheader"
431
- },
432
- F.caption
433
- ) : null
434
- )
435
- ))))),
436
- /* @__PURE__ */ t.createElement("div", { ref: k, className: "k-pivotgrid-values", onScroll: Pt }, /* @__PURE__ */ t.createElement("table", { className: "k-pivotgrid-table", role: "none" }, /* @__PURE__ */ t.createElement("colgroup", null, X), /* @__PURE__ */ t.createElement("tbody", { className: "k-pivotgrid-tbody", role: "none" }, p.map((h, R) => /* @__PURE__ */ t.createElement(
437
- yt,
438
- {
439
- key: oe(f[R].path),
440
- ...C,
441
- path: f[R].path,
442
- role: "none"
443
- },
444
- h.cells.map(
445
- (F, b) => /* @__PURE__ */ t.createElement(
446
- O,
447
- {
448
- key: ve[R][b],
449
- "data-key": ve[R][b],
450
- id: ve[R][b],
451
- ..._,
452
- rowPath: F.rowTuple.members.map((J) => J.name),
453
- columnPath: F.columnTuple.members.map((J) => J.name),
454
- dataItem: F,
455
- total: f[R].total || M[b].total,
456
- role: "gridcell",
457
- ariaDescribedby: le.map((J) => J[b]).join(" ")
458
- },
459
- F && F.data && F.data.fmtValue ? F.data.fmtValue : " "
460
- )
461
- )
462
- )))))
463
- );
464
- }), ue = {
465
- rowAxes: [],
466
- columnAxes: [],
467
- data: [],
468
- row: ct,
469
- column: ze,
470
- cell: dt,
471
- headerCell: Be
472
- };
473
- hn.displayName = "KendoReactPivotGrid";
474
- const ft = t.forwardRef((e, a) => {
475
- const n = t.useRef(null), o = t.useRef(null);
476
- return t.useImperativeHandle(o, () => ({ props: e, element: n.current })), t.useImperativeHandle(a, () => o.current), /* @__PURE__ */ t.createElement(
477
- "div",
478
- {
479
- ref: n,
480
- id: e.id,
481
- style: e.style,
482
- tabIndex: e.tabIndex,
483
- className: ee(
484
- "k-d-flex k-pos-relative",
485
- {
486
- "k-flex-row": e.configuratorPosition === "right",
487
- "k-flex-row-reverse": e.configuratorPosition === "left",
488
- "k-flex-column": e.configuratorPosition === "bottom",
489
- "k-flex-column-reverse": e.configuratorPosition === "top"
490
- },
491
- e.className
492
- )
493
- },
494
- e.children
495
- );
496
- }), xn = {
497
- configuratorPosition: "right"
498
- };
499
- ft.defaultProps = xn;
500
- ft.displayName = "KendoReactPivotGridContainer";
501
- const gt = t.createContext({ axes: null });
502
- var Ue = /* @__PURE__ */ ((e) => (e.toggle = "EXPAND_TOGGLE", e.expand = "EXPAND_EXPAND", e.collapse = "EXPAND_COLLAPSE", e))(Ue || {});
503
- const vn = (e, a, n) => {
504
- switch (a.type) {
505
- case "EXPAND_TOGGLE":
506
- return Array.isArray(e) ? e.find((o) => n(o, a.payload)) ? [...e.filter((o) => !n(o, a.payload))] : [...e, a.payload] : n(e, a.payload) ? null : a.payload;
507
- case "EXPAND_EXPAND":
508
- if (Array.isArray(e)) {
509
- if (!e.find((o) => n(o, a.payload)))
510
- return [...e, a.payload];
511
- } else if (!n(e, a.payload))
512
- return a.payload;
513
- break;
514
- case "EXPAND_COLLAPSE":
515
- if (Array.isArray(e)) {
516
- if (e.find((o) => n(o, a.payload)))
517
- return [...e.filter((o) => !n(o, a.payload))];
518
- } else
519
- n(e, a.payload);
520
- break;
521
- default:
522
- return e;
523
- }
524
- }, ht = (e = [], a, n, o = (l, i) => l === i) => {
525
- const [l, i] = t.useState(e);
526
- return [l, (s, E) => {
527
- const m = vn(l, s, o);
528
- a && a.call(void 0, {
529
- value: m,
530
- target: n.current,
531
- syntheticEvent: E
532
- }), i(m);
533
- }];
534
- };
535
- var xt = /* @__PURE__ */ ((e) => (e.toggleExpansion = "PIVOT_CONFIGURATOR_ACTION_TOGGLE_EXPANSION", e))(xt || {});
536
- const q = {
537
- ...Ot,
538
- ...xt
539
- }, Cn = (e, a) => {
540
- const n = e.valueGetter("rowAxes"), o = e.valueGetter("columnAxes"), l = e.valueGetter("measureAxes"), i = e.valueGetter("sort"), u = e.valueGetter("filter"), [s, E] = ht(
541
- [],
542
- void 0,
543
- a,
544
- mt
545
- ), [m, x] = t.useState(null), [y, G] = t.useState(null), [k, U] = t.useState(null), [L, V] = t.useState(null);
546
- return [
547
- {
548
- dragItem: m,
549
- dropTarget: k,
550
- dropZone: y,
551
- dropDirection: L,
552
- columnAxes: o,
553
- rowAxes: n,
554
- measureAxes: l,
555
- sort: i,
556
- filter: u,
557
- expanded: s
558
- },
559
- (v, N) => {
560
- switch (v.type) {
561
- case q.toggleExpansion: {
562
- E({ type: Ue.toggle, payload: v.payload }, N);
563
- break;
564
- }
565
- default:
566
- const f = qt(
567
- {
568
- filter: v.override && v.override.filter !== void 0 ? v.override.filter : u,
569
- sort: v.override && v.override.sort !== void 0 ? v.override.sort : i,
570
- rowAxes: v.override && v.override.rowAxes !== void 0 ? v.override.rowAxes : n,
571
- columnAxes: v.override && v.override.columnAxes !== void 0 ? v.override.columnAxes : o,
572
- measureAxes: v.override && v.override.measureAxes !== void 0 ? v.override.measureAxes : l,
573
- dragItem: v.override && v.override.dragItem !== void 0 ? v.override.dragItem : m,
574
- dropDirection: v.override && v.override.dropDirection !== void 0 ? v.override.dropDirection : L,
575
- dropTarget: v.override && v.override.dropTarget !== void 0 ? v.override.dropTarget : k,
576
- dropZone: v.override && v.override.dropZone !== void 0 ? v.override.dropZone : y
577
- },
578
- v
579
- );
580
- f.columnAxes !== void 0 && e.onChange("columnAxes", { value: f.columnAxes }), f.rowAxes !== void 0 && e.onChange("rowAxes", { value: f.rowAxes }), f.measureAxes !== void 0 && e.onChange("measureAxes", { value: f.measureAxes }), f.sort !== void 0 && e.onChange("sort", { value: f.sort }), f.filter !== void 0 && e.onChange("filter", { value: f.filter }), f.dropDirection !== void 0 && V(f.dropDirection), f.dropTarget !== void 0 && U(f.dropTarget), f.dropZone !== void 0 && G(f.dropZone), f.dragItem !== void 0 && x(f.dragItem);
581
- break;
582
- }
583
- }
584
- ];
585
- }, vt = t.createContext({}), be = t.createContext(
586
- [
587
- {
588
- expanded: [],
589
- rowAxes: [],
590
- columnAxes: [],
591
- measureAxes: [],
592
- dragItem: null,
593
- dropZone: null,
594
- dropDirection: null,
595
- dropTarget: null
596
- },
597
- Tt
598
- ]
599
- ), Ve = t.forwardRef(
600
- (e, a) => {
601
- const {
602
- data: n,
603
- dataItem: o,
604
- defaultFilter: l
605
- } = { ...te, ...e }, i = t.useRef(null), u = t.useRef(null), s = xe(), [E, m] = I(e.columnMenuItem || te.columnMenuItem), [x, y] = I(e.columnMenuForm || te.columnMenuForm), [G, k] = I(e.resetButton || te.resetButton), [U, L] = I(e.applyButton || te.applyButton), [V, $] = I(e.treeView || te.treeView), [v, N] = I(e.noData || te.noData);
606
- t.useImperativeHandle(u, () => ({ props: e, element: i.current })), t.useImperativeHandle(a, () => u.current);
607
- const [f, z] = t.useState(!1), {
608
- onAxisFilterFieldsExpandChange: K,
609
- onAxisFilterFieldExpand: D
610
- } = t.useContext(vt), [, c] = t.useContext(be), [A, M] = t.useState(l), P = A ? A.value.split(",") : [], [p, X] = ht(
611
- [],
612
- void 0,
613
- u,
614
- mt
615
- ), j = {
616
- caption: (d) => d.dataItem.caption,
617
- id: (d) => d.dataItem.uniqueName,
618
- parent: (d, H) => H && H.value,
619
- value: (d) => d.dataItem.defaultHierarchy || d.dataItem.uniqueName,
620
- expanded: (d) => p.some((H) => H.uniqueName === d.id),
621
- checked: (d) => !P.length || (P || []).some((H) => H === d.dataItem.uniqueName),
622
- hasChildren: (d) => parseInt(d.dataItem.childrenCardinality, 10) > 0,
623
- children: (d) => we(d.dataItem.children, j, d),
624
- checkIndeterminate: (d) => {
625
- const H = (d.children || []).length && d.children.every((B) => B.checked);
626
- return H && (d.checked = !0), (d.children || []).some((B) => B.checked) && !H;
627
- }
628
- }, r = we(n, j), g = Ke(r), C = (d) => {
629
- z(!f), K && K({
630
- value: !f,
631
- target: u.current,
632
- syntheticEvent: d
633
- });
634
- }, w = (d) => {
635
- X({ type: Ue.toggle, payload: d.item.dataItem }, d.syntheticEvent), D && D({
636
- value: d.item.dataItem,
637
- target: u.current,
638
- syntheticEvent: d.syntheticEvent
639
- });
640
- }, S = (d) => {
641
- let H;
642
- d.item.checked ? H = {
643
- field: String(o.name),
644
- operator: "in",
645
- value: g.filter((B) => B.checked).map((B) => String(B.value)).filter((B) => B !== d.item.value && B !== d.item.parent).join(",")
646
- } : H = {
647
- field: String(o.name),
648
- operator: "in",
649
- value: g.filter((B) => B.checked).map((B) => String(B.value)).concat([d.item.value]).join(",")
650
- }, M(H);
651
- }, O = (d) => {
652
- z(!1), A && c({
653
- type: q.removeFilter,
654
- payload: A
655
- }, d);
656
- }, _ = (d) => {
657
- z(!1), A && c({
658
- type: l ? q.changeFilter : q.addFilter,
659
- payload: A
660
- }, d);
661
- };
662
- return /* @__PURE__ */ t.createElement(
663
- "div",
664
- {
665
- ref: i,
666
- id: e.id,
667
- tabIndex: e.tabIndex,
668
- style: e.style,
669
- className: ee("k-columnmenu-item-wrapper", e.className)
670
- },
671
- /* @__PURE__ */ t.createElement(
672
- E,
673
- {
674
- ...m,
675
- title: "Include Fields",
676
- iconClass: "k-i-grid-layout",
677
- svgIcon: jt,
678
- onClick: C
679
- }
680
- ),
681
- /* @__PURE__ */ t.createElement(
682
- x,
683
- {
684
- show: f,
685
- actions: /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
686
- G,
687
- {
688
- type: "reset",
689
- onClick: O,
690
- ...k
691
- },
692
- s.toLanguageString(Ne, Z[Ne])
693
- ), /* @__PURE__ */ t.createElement(
694
- U,
695
- {
696
- themeColor: "primary",
697
- onClick: _,
698
- ...L
699
- },
700
- s.toLanguageString(Se, Z[Se])
701
- )),
702
- ...y
703
- },
704
- r && r.length ? /* @__PURE__ */ t.createElement(
705
- V,
706
- {
707
- data: r,
708
- checkboxes: !0,
709
- onExpandChange: w,
710
- onCheckChange: S,
711
- textField: "caption",
712
- expandIcons: !0,
713
- hasChildrenField: "hasChildren",
714
- checkIndeterminateField: "checkIndeterminate",
715
- childrenField: "children",
716
- ...$
717
- }
718
- ) : /* @__PURE__ */ t.createElement(v, { ...N })
719
- )
720
- );
721
- }
722
- ), te = {
723
- data: [],
724
- resetButton: ye,
725
- applyButton: ye,
726
- treeView: st,
727
- noData: () => /* @__PURE__ */ t.createElement(ln, { shape: "rectangle", style: { height: "20px", width: "calc(100% - 16px)", margin: 8 } }),
728
- columnMenuItem: tn,
729
- columnMenuForm: nn
730
- };
731
- Ve.defaultProps = te;
732
- Ve.displayName = "KendoReactPivotGridAxisFilterFieldsEditor";
733
- const $e = t.forwardRef((e, a) => {
734
- const n = t.useRef(0), o = t.useRef(0), l = t.useRef(null), i = t.useRef(null), u = t.useRef(null), { axes: s } = t.useContext(gt), [E, m] = t.useState(!1), [x, y] = t.useContext(be);
735
- t.useImperativeHandle(i, () => l.current && l.current.element), t.useImperativeHandle(u, () => ({ props: e, element: i.current })), t.useImperativeHandle(a, () => u.current);
736
- const [G, k] = I(e.chip || fe.chip), [U, L] = I(e.dropClue || fe.dropClue), [V, $] = I(e.columnMenuTextColumn || fe.columnMenuTextColumn), [v, N] = I(e.filterFieldsEditor || fe.filterFieldsEditor), f = nt(x.filter, String(e.value), "in"), z = nt(x.filter, String(e.value)), K = (r, g) => {
737
- y({ type: q.setSort, payload: g }, r);
738
- }, D = (r, g) => {
739
- g.length ? y({
740
- type: q.setFilter,
741
- payload: [
742
- ...f || [],
743
- ...g.reduce((C, w) => [
744
- ...C,
745
- ...w.filters.filter((S) => S.value)
746
- ], [])
747
- ]
748
- }, r) : y({ type: q.setFilter, payload: f }, r);
749
- }, c = (r) => {
750
- y({ type: q.remove, payload: e.dataItem }, r.syntheticEvent);
751
- }, A = (r) => {
752
- const g = r.slice(), C = gn(x.filter, String(e.dataItem.name), "in");
753
- return g.splice(1, 0, /* @__PURE__ */ t.createElement(
754
- v,
755
- {
756
- key: "axis-filter-fields-editor",
757
- defaultFilter: C,
758
- dataItem: e.dataItem,
759
- data: e.dataItem.fields,
760
- axes: s,
761
- ...N
762
- }
763
- )), g;
764
- }, M = (r) => {
765
- n.current = r.clientX, o.current = r.clientY;
766
- }, P = (r) => {
767
- Math.abs(n.current - r.clientX) < 10 && Math.abs(o.current - r.clientY) < 10 || (i.current && (i.current.style.transform = `translate(${r.clientX - n.current}px, ${r.clientY - o.current}px)`), m(!0), y({ type: q.setDragItem, payload: e.dataItem }));
768
- }, p = () => {
769
- m(!1), x.dragItem && (i.current && (i.current.style.transform = ""), y({ type: q.drop, payload: e.dataItem }));
770
- }, X = (r) => {
771
- x.dragItem && (y({ type: q.setDropTarget, payload: e.dataItem }, r.syntheticEvent), y({ type: q.setDropZone, payload: s }, r.syntheticEvent));
772
- }, j = (r) => {
773
- if (x.dragItem && !E && i.current) {
774
- const g = i.current.getBoundingClientRect(), w = r.syntheticEvent.clientX - g.left < g.width / 2 ? "before" : "after";
775
- y({ type: q.setDropDirection, payload: w }, r.syntheticEvent);
776
- }
777
- };
778
- return Lt(i, {
779
- onPress: M,
780
- onDrag: P,
781
- onRelease: p
782
- }), /* @__PURE__ */ t.createElement(t.Fragment, null, x.dropTarget && Qe(x.dropTarget, e.dataItem) && x.dropDirection === "before" && /* @__PURE__ */ t.createElement(U, { ...L }), /* @__PURE__ */ t.createElement(
783
- G,
784
- {
785
- ref: Fe(G) ? l : void 0,
786
- ...e,
787
- removable: !0,
788
- onRemove: c,
789
- onMouseEnter: X,
790
- onMouseMove: j,
791
- style: { pointerEvents: E ? "none" : void 0 },
792
- rounded: "full",
793
- ...k
794
- },
795
- e.text,
796
- s !== "measureAxes" && /* @__PURE__ */ t.createElement(
797
- V,
798
- {
799
- field: String(e.value),
800
- itemsRender: A,
801
- sort: x.sort,
802
- onSortChange: K,
803
- filter: z && z.length ? [{ logic: "and", filters: z }] : void 0,
804
- onFilterChange: D,
805
- filterContent: [
806
- an
807
- ],
808
- ...$
809
- }
810
- )
811
- ), x.dropTarget && Qe(x.dropTarget, e.dataItem) && x.dropDirection === "after" && /* @__PURE__ */ t.createElement(U, { ...L }));
812
- }), fe = {
813
- chip: Yt,
814
- columnMenuTextColumn: on,
815
- filterFieldsEditor: Ve,
816
- dropClue: (e) => /* @__PURE__ */ t.createElement("div", { className: "k-grouping-dropclue", style: { position: "relative", zIndex: 1e4 }, ...e })
817
- };
818
- $e.defaultProps = fe;
819
- $e.displayName = "KendoReactPivotGridAxisEditor";
820
- const ce = t.forwardRef((e, a) => {
821
- const {
822
- value: n,
823
- field: o
824
- } = { ...qe, ...e }, l = t.useRef(null), i = t.useRef(null), u = t.useRef(null), [s, E] = I(e.chipList || qe.chipList);
825
- t.useImperativeHandle(i, () => l.current && l.current.element), t.useImperativeHandle(u, () => ({ props: e, element: i.current })), t.useImperativeHandle(a, () => u.current);
826
- const m = n.filter((x) => x.name.length === 1 && x.name.every((y) => y.indexOf("&") === -1)).map((x) => ({ ...x, text: String(x.name) }));
827
- return /* @__PURE__ */ t.createElement(gt.Provider, { value: { axes: o } }, /* @__PURE__ */ t.createElement(
828
- s,
829
- {
830
- ref: Fe(s) ? l : void 0,
831
- textField: "text",
832
- valueField: "name",
833
- data: m,
834
- chip: $e,
835
- style: { position: "relative" },
836
- className: e.className,
837
- selection: "none",
838
- ...E
839
- }
840
- ));
841
- }), qe = {
842
- value: [],
843
- chipList: Wt
844
- };
845
- ce.defaultProps = qe;
846
- ce.displayName = "KendoReactPivotGridAxesEditor";
847
- const _e = t.forwardRef((e, a) => {
848
- const {
849
- data: n,
850
- rowAxes: o,
851
- columnAxes: l,
852
- measureAxes: i,
853
- onExpand: u,
854
- onCheck: s
855
- } = { ...Ae, ...e }, E = t.useRef(null), m = t.useRef(null), [x, y] = I(e.treeView || Ae.treeView), [G, k] = I(e.noData || Ae.noData);
856
- t.useImperativeHandle(m, () => ({ props: e, element: E.current && E.current.element })), t.useImperativeHandle(a, () => m.current);
857
- const [U] = t.useContext(be), L = Pe(l), V = Pe(o), $ = Pe(i), N = Ke(n).filter((c) => [
858
- ...L,
859
- ...V,
860
- ...$
861
- ].some((A) => A === c.uniqueName || A === c.defaultHierarchy)), f = {
862
- caption: (c) => c.dataItem.caption,
863
- id: (c) => c.dataItem.uniqueName,
864
- value: (c) => c.dataItem.defaultHierarchy || c.dataItem.uniqueName,
865
- expanded: (c) => U.expanded.some((A) => A.uniqueName === c.dataItem.uniqueName),
866
- hasChildren: (c) => !("hierarchyUniqueName" in c.dataItem) && !("aggregator" in c.dataItem),
867
- selectable: (c) => !(!c.hasChildren && !c.dataItem.aggregator && !c.dataItem.measure || c.dataItem.type === 2 || c.dataItem.uniqueName === "[KPIs]"),
868
- children: (c) => we(c.dataItem.children, f, c),
869
- checked: (c) => N.some((A) => c.dataItem.defaultHierarchy ? A.defaultHierarchy === c.dataItem.defaultHierarchy : A.uniqueName === c.dataItem.uniqueName) || c.children.length && c.children.every((A) => A.checked)
870
- }, z = (c) => {
871
- u && u({
872
- value: c.item.dataItem,
873
- target: m.current,
874
- syntheticEvent: c.syntheticEvent
875
- });
876
- }, K = (c) => {
877
- s && s({
878
- value: c.item.dataItem,
879
- target: m.current,
880
- syntheticEvent: c.syntheticEvent
881
- });
882
- }, D = we(e.data, f);
883
- return /* @__PURE__ */ t.createElement(rn.Provider, { value: (c) => ({ ...c, checkboxes: c.item.selectable }) }, D && D.length ? /* @__PURE__ */ t.createElement(
884
- x,
885
- {
886
- ref: Fe(x) ? E : void 0,
887
- data: D,
888
- checkboxes: !0,
889
- onExpandChange: z,
890
- onCheckChange: K,
891
- textField: "caption",
892
- expandIcons: !0,
893
- hasChildrenField: "hasChildren",
894
- checkIndeterminateField: "checkIndeterminate",
895
- childrenField: "children",
896
- ...y
897
- }
898
- ) : /* @__PURE__ */ t.createElement(G, { ...k }));
899
- }), Ae = {
900
- data: [],
901
- rowAxes: [],
902
- columnAxes: [],
903
- measureAxes: [],
904
- treeView: st,
905
- noData: () => /* @__PURE__ */ t.createElement("div", null, "NO DATA")
906
- };
907
- _e.defaultProps = Ae;
908
- _e.displayName = "KendoReactPivotGridFieldsEditor";
909
- const Xe = t.forwardRef((e, a) => {
910
- const {
911
- onFieldsEditorFieldCheck: n,
912
- onFieldsEditorFieldCheckAction: o,
913
- onFieldsEditorFieldExpand: l,
914
- onFieldsEditorFieldExpandAction: i,
915
- onAxisFilterFieldExpand: u,
916
- onAxisFilterFieldsExpandChange: s
917
- } = e, [E, m] = I(e.fieldsLabel || Q.fieldsLabel), [x, y] = I(e.fieldsEditor || Q.fieldsEditor), [G, k] = I(e.columnAxesLabel || Q.columnAxesLabel), [U, L] = I(e.columnAxesEditor || Q.columnAxesEditor), [V, $] = I(e.rowAxesLabel || Q.rowAxesLabel), [v, N] = I(e.rowAxesEditor || Q.rowAxesEditor), [f, z] = I(e.measureAxesLabel || Q.measureAxesLabel), [K, D] = I(e.measureAxesEditor || Q.measureAxesEditor), c = t.useRef(null), A = t.useRef(null), M = xe(), [P, p] = Cn(e, A);
918
- t.useImperativeHandle(A, () => ({
919
- element: c.current,
920
- props: e,
921
- state: P
922
- })), t.useImperativeHandle(a, () => A.current);
923
- const X = () => {
924
- P.dragItem && p({ type: q.setDropZone, payload: "columnAxes" });
925
- }, j = () => {
926
- P.dragItem && p({ type: q.setDropZone, payload: null });
927
- }, r = () => {
928
- P.dragItem && p({ type: q.setDropZone, payload: "rowAxes" });
929
- }, g = () => {
930
- P.dragItem && p({ type: q.setDropZone, payload: null });
931
- }, C = () => {
932
- P.dragItem && p({ type: q.setDropZone, payload: "measureAxes" });
933
- }, w = () => {
934
- P.dragItem && p({ type: q.setDropZone, payload: null });
935
- }, S = (T) => {
936
- const W = {
937
- target: T.target,
938
- currentTarget: A.current,
939
- value: T.value,
940
- syntheticEvent: T.syntheticEvent
941
- };
942
- if (i) {
943
- const Y = i(W, e, P);
944
- Y && (Array.isArray(Y) ? Y.filter(Boolean).map((ne) => ne && p({ ...ne }, T.syntheticEvent)) : p({ ...Y }, T.syntheticEvent));
945
- }
946
- l && l({
947
- target: T.target,
948
- currentTarget: A.current,
949
- value: T.value,
950
- syntheticEvent: T.syntheticEvent
951
- });
952
- }, O = (T) => {
953
- const W = {
954
- target: T.target,
955
- currentTarget: A.current,
956
- value: T.value,
957
- syntheticEvent: T.syntheticEvent
958
- };
959
- if (o) {
960
- const Y = o(W, e, P);
961
- Y && (Array.isArray(Y) ? Y.filter(Boolean).map((ne) => ne && p({ ...ne }, T.syntheticEvent)) : p({ ...Y }, T.syntheticEvent));
962
- }
963
- n && n(W);
964
- }, _ = (T) => {
965
- const W = {
966
- target: T.target,
967
- currentTarget: A.current,
968
- value: T.value,
969
- syntheticEvent: T.syntheticEvent
970
- };
971
- u && u(W);
972
- }, d = (T) => {
973
- const W = {
974
- target: T.target,
975
- currentTarget: A.current,
976
- value: T.value,
977
- syntheticEvent: T.syntheticEvent
978
- };
979
- s && s(W);
980
- }, H = e.horizontal ? "div" : t.Fragment, B = e.horizontal ? { className: "k-form-field-wrapper" } : {};
981
- return /* @__PURE__ */ t.createElement(
982
- vt.Provider,
983
- {
984
- value: {
985
- onAxisFilterFieldExpand: _,
986
- onAxisFilterFieldsExpandChange: d
987
- }
988
- },
989
- /* @__PURE__ */ t.createElement(be.Provider, { value: [P, p] }, /* @__PURE__ */ t.createElement(H, { ...B }, /* @__PURE__ */ t.createElement("div", { className: "k-form-field" }, /* @__PURE__ */ t.createElement(E, { name: "", component: me, ...m }, M.toLanguageString(Ge, Z[Ge]))), /* @__PURE__ */ t.createElement("div", { className: "k-form-field" }, /* @__PURE__ */ t.createElement("div", { className: "k-fields-list-wrapper" }, /* @__PURE__ */ t.createElement(
990
- x,
991
- {
992
- data: e.data,
993
- onExpand: S,
994
- onCheck: O,
995
- columnAxes: P.columnAxes,
996
- rowAxes: P.rowAxes,
997
- measureAxes: P.measureAxes,
998
- ...y
999
- }
1000
- )))), /* @__PURE__ */ t.createElement(H, { ...B }, /* @__PURE__ */ t.createElement(
1001
- "div",
1002
- {
1003
- className: "k-form-field",
1004
- onMouseEnter: X,
1005
- onMouseLeave: j
1006
- },
1007
- /* @__PURE__ */ t.createElement(
1008
- se,
1009
- {
1010
- name: "columnAxes",
1011
- field: "columnAxes",
1012
- component: G,
1013
- ...k
1014
- },
1015
- M.toLanguageString(Le, Z[Le])
1016
- )
1017
- ), e.valueGetter("columnAxes").length ? /* @__PURE__ */ t.createElement(
1018
- se,
1019
- {
1020
- name: "columnAxes",
1021
- field: "columnAxes",
1022
- component: U,
1023
- onMouseEnter: X,
1024
- onMouseLeave: j,
1025
- className: "k-column-fields",
1026
- ...L
1027
- }
1028
- ) : /* @__PURE__ */ t.createElement(
1029
- "div",
1030
- {
1031
- className: "k-settings-description",
1032
- onMouseEnter: X,
1033
- onMouseLeave: j
1034
- },
1035
- M.toLanguageString(ae, Z[ae])
1036
- ), /* @__PURE__ */ t.createElement(
1037
- "div",
1038
- {
1039
- className: "k-form-field",
1040
- onMouseEnter: r,
1041
- onMouseLeave: g
1042
- },
1043
- /* @__PURE__ */ t.createElement(
1044
- se,
1045
- {
1046
- name: "rowAxes",
1047
- field: "rowAxes",
1048
- component: V,
1049
- ...$
1050
- },
1051
- M.toLanguageString(De, Z[De])
1052
- )
1053
- ), e.valueGetter("rowAxes").length ? /* @__PURE__ */ t.createElement(
1054
- se,
1055
- {
1056
- name: "rowAxes",
1057
- field: "rowAxes",
1058
- component: v,
1059
- onMouseEnter: r,
1060
- onMouseLeave: g,
1061
- className: "k-column-fields",
1062
- ...N
1063
- }
1064
- ) : /* @__PURE__ */ t.createElement(
1065
- "div",
1066
- {
1067
- className: "k-settings-description",
1068
- onMouseEnter: r,
1069
- onMouseLeave: g
1070
- },
1071
- M.toLanguageString(ae, Z[ae])
1072
- )), /* @__PURE__ */ t.createElement(H, { ...B }, /* @__PURE__ */ t.createElement(
1073
- "div",
1074
- {
1075
- className: "k-form-field",
1076
- onMouseEnter: C,
1077
- onMouseLeave: w
1078
- },
1079
- /* @__PURE__ */ t.createElement(
1080
- se,
1081
- {
1082
- name: "measureAxes",
1083
- field: "measureAxes",
1084
- component: f,
1085
- ...z
1086
- },
1087
- M.toLanguageString(He, Z[He])
1088
- )
1089
- ), e.valueGetter("measureAxes").length ? /* @__PURE__ */ t.createElement(
1090
- se,
1091
- {
1092
- name: "measureAxes",
1093
- field: "measureAxes",
1094
- component: K,
1095
- onMouseEnter: C,
1096
- onMouseLeave: w,
1097
- className: "k-column-fields",
1098
- ...D
1099
- }
1100
- ) : /* @__PURE__ */ t.createElement(
1101
- "div",
1102
- {
1103
- className: "k-settings-description",
1104
- onMouseEnter: C,
1105
- onMouseLeave: w
1106
- },
1107
- M.toLanguageString(ae, Z[ae])
1108
- )))
1109
- );
1110
- }), Q = {
1111
- data: [],
1112
- horizontal: !1,
1113
- fieldsLabel: me,
1114
- fieldsEditor: _e,
1115
- columnAxesLabel: me,
1116
- columnAxesEditor: ce,
1117
- rowAxesLabel: me,
1118
- rowAxesEditor: ce,
1119
- measureAxesLabel: me,
1120
- measureAxesEditor: ce,
1121
- axesEditor: ce,
1122
- onFieldsEditorFieldCheckAction: (e) => ({ type: q.toggleSelection, payload: e.value }),
1123
- onFieldsEditorFieldExpandAction: (e) => ({ type: q.toggleExpansion, payload: e.value })
1124
- };
1125
- Xe.defaultProps = Q;
1126
- Xe.displayName = "KendoReactPivotGridConfiguratorEditor";
1127
- const Ct = t.forwardRef((e, a) => {
1128
- const {
1129
- horizontal: n,
1130
- data: o,
1131
- rowAxes: l,
1132
- columnAxes: i,
1133
- measureAxes: u
1134
- } = { ...ge, ...e }, s = t.useRef(null), E = t.useRef(null), m = t.useRef(null), x = xe(), [y, G] = I(e.editor || ge.editor), [k, U] = I(e.form || ge.form), [L, V] = I(e.formElement || ge.formElement);
1135
- t.useImperativeHandle(E, () => ({ props: e, element: s.current })), t.useImperativeHandle(a, () => E.current);
1136
- const $ = (N, f) => {
1137
- e.onRowAxesChange && e.onRowAxesChange({
1138
- target: E.current,
1139
- value: N.rowAxes,
1140
- syntheticEvent: f
1141
- }), e.onColumnAxesChange && e.onColumnAxesChange({
1142
- target: E.current,
1143
- value: N.columnAxes,
1144
- syntheticEvent: f
1145
- }), e.onMeasureAxesChange && e.onMeasureAxesChange({
1146
- target: E.current,
1147
- value: N.measureAxes,
1148
- syntheticEvent: f
1149
- }), e.onSortChange && e.onSortChange({
1150
- target: E.current,
1151
- value: N.sort,
1152
- syntheticEvent: f
1153
- }), e.onFilterChange && e.onFilterChange({
1154
- target: E.current,
1155
- value: N.filter,
1156
- syntheticEvent: f
1157
- });
1158
- }, v = {
1159
- rowAxes: l,
1160
- columnAxes: i,
1161
- measureAxes: u,
1162
- sort: e.sort,
1163
- filter: e.filter
1164
- };
1165
- return t.useEffect(() => {
1166
- m.current && m.current.onChange("rowAxes", { value: l });
1167
- }, [l]), t.useEffect(() => {
1168
- m.current && m.current.onChange("columnAxes", { value: i });
1169
- }, [i]), t.useEffect(() => {
1170
- m.current && m.current.onChange("measureAxes", { value: u });
1171
- }, [u]), t.useEffect(() => {
1172
- m.current && m.current.onChange("sort", { value: e.sort });
1173
- }, [e.sort]), t.useEffect(() => {
1174
- m.current && m.current.onChange("filter", { value: e.filter });
1175
- }, [e.filter]), /* @__PURE__ */ t.createElement(
1176
- "div",
1177
- {
1178
- ref: s,
1179
- id: e.id,
1180
- tabIndex: e.tabIndex,
1181
- style: e.style,
1182
- className: ee(
1183
- "k-pivotgrid-configurator",
1184
- e.className
1185
- )
1186
- },
1187
- /* @__PURE__ */ t.createElement(
1188
- "div",
1189
- {
1190
- className: ee(
1191
- "k-pivotgrid-configurator-panel",
1192
- "k-pivotgrid-configurator-push",
1193
- {
1194
- "k-pivotgrid-configurator-horizontal": n,
1195
- "k-pivotgrid-configurator-vertical": !n
1196
- }
1197
- )
1198
- },
1199
- /* @__PURE__ */ t.createElement("div", { className: "k-pivotgrid-configurator-header" }, /* @__PURE__ */ t.createElement("div", { className: "k-pivotgrid-configurator-header-text" }, x.toLanguageString(ke, Z[ke]))),
1200
- /* @__PURE__ */ t.createElement(
1201
- k,
1202
- {
1203
- ref: Fe(k) ? m : void 0,
1204
- initialValues: v,
1205
- onSubmit: $,
1206
- render: (N) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", { className: "k-pivotgrid-configurator-content" }, /* @__PURE__ */ t.createElement(
1207
- L,
1208
- {
1209
- horizontal: n,
1210
- ...V
1211
- },
1212
- /* @__PURE__ */ t.createElement(
1213
- y,
1214
- {
1215
- ...N,
1216
- horizontal: e.horizontal,
1217
- onFieldsEditorFieldExpand: e.onFieldsEditorFieldExpand,
1218
- onFieldsEditorFieldCheck: e.onFieldsEditorFieldCheck,
1219
- onAxisFilterFieldExpand: e.onAxisFilterFieldExpand,
1220
- onAxisFilterFieldsExpandChange: e.onAxisFilterFieldsExpandChange,
1221
- data: o,
1222
- ...G
1223
- }
1224
- )
1225
- )), /* @__PURE__ */ t.createElement("div", { className: "k-pivotgrid-configurator-actions k-actions k-hstack k-justify-content-end" }, /* @__PURE__ */ t.createElement(ye, { type: "submit", onClick: N.onFormReset }, x.toLanguageString(Me, Z[Me])), /* @__PURE__ */ t.createElement(ye, { themeColor: "primary", type: "submit", onClick: N.onSubmit }, x.toLanguageString(Te, Z[Te])))),
1226
- ...U
1227
- }
1228
- )
1229
- )
1230
- );
1231
- }), ge = {
1232
- form: Qt,
1233
- formElement: en,
1234
- editor: Xe,
1235
- horizontal: !1,
1236
- data: [],
1237
- columnAxes: [],
1238
- rowAxes: [],
1239
- measureAxes: []
1240
- };
1241
- Ct.defaultProps = ge;
1242
- Ct.displayName = "KendoReactPivotGridConfigurator";
1243
- const Et = t.forwardRef((e, a) => {
1244
- const n = t.useRef(null), o = t.useRef(null), l = xe();
1245
- t.useImperativeHandle(n, () => ({ props: e, element: o.current })), t.useImperativeHandle(a, () => n.current);
1246
- const [i, u] = I(e.icon || At.icon), s = t.useMemo(
1247
- () => ee("k-pivotgrid-configurator-button", e.className),
1248
- [e.className]
1249
- ), E = he(
1250
- e,
1251
- n
1252
- );
1253
- return /* @__PURE__ */ t.createElement(
1254
- "div",
1255
- {
1256
- ref: o,
1257
- id: e.id,
1258
- className: s,
1259
- tabIndex: e.tabIndex,
1260
- ...E
1261
- },
1262
- /* @__PURE__ */ t.createElement("span", null, l.toLanguageString(Oe, Z[Oe]), /* @__PURE__ */ t.createElement(i, { name: "gear", icon: Jt, ...u }))
1263
- );
1264
- }), At = {
1265
- icon: ot
1266
- };
1267
- Et.defaultProps = At;
1268
- Et.displayName = "KendoReactPivotGridConfiguratorButton";
1269
- const En = (e) => {
1270
- const [a, n] = t.useState(!0), [o, l] = t.useState({ data: [], columns: [], rows: [] }), [i, u] = t.useState([]), [s, E] = t.useState(e.defaultColumnAxes || []), [m, x] = t.useState(e.defaultRowAxes || []), [y, G] = t.useState(e.defaultMeasureAxes || []), [k, U] = t.useState(e.defaultSort || []), [L, V] = t.useState(e.defaultFilter || []), $ = (r) => {
1271
- x(r.value);
1272
- }, v = (r) => {
1273
- E(r.value);
1274
- }, N = (r) => {
1275
- G(r.value);
1276
- }, f = (r) => {
1277
- U(r.value);
1278
- }, z = (r) => {
1279
- V(r.value);
1280
- };
1281
- t.useEffect(() => {
1282
- n(!0);
1283
- const r = {
1284
- connection: {
1285
- catalog: e.catalog,
1286
- cube: e.cube
1287
- },
1288
- columnAxes: s.slice(),
1289
- rowAxes: m.slice(),
1290
- measureAxes: y,
1291
- sort: k,
1292
- filter: L
1293
- };
1294
- setTimeout(() => {
1295
- Bt({ url: e.url }, Dt(r)).then(zt).then((g) => {
1296
- l(g), n(!1);
1297
- });
1298
- });
1299
- }, [s, m, y, L, k, e.cube, e.catalog, e.url]), t.useEffect(() => {
1300
- n(!0);
1301
- const r = {
1302
- connection: {
1303
- catalog: e.catalog,
1304
- cube: e.cube
1305
- },
1306
- restrictions: {
1307
- catalogName: e.catalog,
1308
- cubeName: e.cube
1309
- },
1310
- command: "schemaDimensions"
1311
- };
1312
- de({ url: e.url }, r).then((g) => {
1313
- Kt(g), u(g), n(!1);
1314
- });
1315
- }, [e.catalog, e.cube, e.url]);
1316
- const K = (r = [], g) => {
1317
- for (let C = 0; C < r.length; C++) {
1318
- const w = r[C];
1319
- if (String(w.name) === String(g.name))
1320
- return w;
1321
- }
1322
- return null;
1323
- }, D = (r = [], g) => {
1324
- for (let C = 0; C < r.length; C++) {
1325
- const w = r[C];
1326
- if (w.uniqueName === g.uniqueName)
1327
- return w;
1328
- let S = D(w.children, g);
1329
- if (S !== null)
1330
- return S;
1331
- }
1332
- return null;
1333
- }, c = async (r) => {
1334
- let g, C, w, S, O, _;
1335
- r.name && (g = "schemaMembers", S = `${String(r.name)}.[(ALL)]`);
1336
- const d = {
1337
- connection: {
1338
- catalog: e.catalog,
1339
- cube: e.cube
1340
- },
1341
- restrictions: {
1342
- catalogName: e.catalog,
1343
- cubeName: e.cube,
1344
- hierarchyUniqueName: w,
1345
- dimensionUniqueName: C,
1346
- levelUniqueName: S,
1347
- memberUniqueName: O,
1348
- treeOp: _
1349
- },
1350
- command: g
1351
- };
1352
- return de({ url: e.url }, d);
1353
- }, A = async (r) => {
1354
- let g, C, w, S, O, _;
1355
- r.uniqueName && (g = "schemaMembers", O = r.uniqueName.replace(/\&/g, "&amp;"), _ = 1);
1356
- const d = {
1357
- connection: {
1358
- catalog: e.catalog,
1359
- cube: e.cube
1360
- },
1361
- restrictions: {
1362
- catalogName: e.catalog,
1363
- cubeName: e.cube,
1364
- hierarchyUniqueName: w,
1365
- dimensionUniqueName: C,
1366
- levelUniqueName: S,
1367
- memberUniqueName: O,
1368
- treeOp: _
1369
- },
1370
- command: g
1371
- };
1372
- return de({ url: e.url }, d);
1373
- }, M = async (r) => {
1374
- let g, C, w, S, O, _;
1375
- r.type === 2 ? g = "schemaMeasures" : r.dimensionUniqueName ? (g = "schemaLevels", w = r.uniqueName) : (g = "schemaHierarchies", C = r.uniqueName);
1376
- const d = {
1377
- connection: {
1378
- catalog: e.catalog,
1379
- cube: e.cube
1380
- },
1381
- restrictions: {
1382
- catalogName: e.catalog,
1383
- cubeName: e.cube,
1384
- hierarchyUniqueName: w,
1385
- dimensionUniqueName: C,
1386
- levelUniqueName: S,
1387
- memberUniqueName: O,
1388
- treeOp: _
1389
- },
1390
- command: g
1391
- };
1392
- return de({ url: e.url }, d);
1393
- }, P = async () => {
1394
- const r = {
1395
- connection: {
1396
- catalog: e.catalog,
1397
- cube: e.cube
1398
- },
1399
- restrictions: {
1400
- catalogName: e.catalog,
1401
- cubeName: e.cube
1402
- },
1403
- command: "schemaKPIs"
1404
- };
1405
- return de({ url: e.url }, r);
1406
- }, p = async (r) => {
1407
- const g = i.slice(), C = D(g, r.value);
1408
- if (C && C.uniqueName === "[KPIs]") {
1409
- const w = An(await P());
1410
- C.children = w;
1411
- } else if (C && C.type === "kpi")
1412
- C.children = Ut(C);
1413
- else if (C && !C.children) {
1414
- const w = await M(C);
1415
- C.children = w;
1416
- }
1417
- u(g);
1418
- }, X = async (r) => {
1419
- if (!r)
1420
- return;
1421
- const g = {
1422
- rowAxes: [m, x],
1423
- columnAxes: [s, E],
1424
- measureAxes: [y, G]
1425
- }, [C, w] = g[r.target.props.axes], S = C.slice(), O = K(S, r.target.props.dataItem);
1426
- if (O && !O.fields) {
1427
- const _ = await c(O);
1428
- O.fields = _, w(S);
1429
- }
1430
- }, j = async (r) => {
1431
- if (!r)
1432
- return;
1433
- const g = {
1434
- rowAxes: [m, x],
1435
- columnAxes: [s, E],
1436
- measureAxes: [y, G]
1437
- }, [C, w] = g[r.target.props.axes], S = C.slice(), O = K(S, r.target.props.dataItem);
1438
- if (O) {
1439
- const _ = (O.fields || []).slice(), d = D(_, r.value);
1440
- if (d && (!d.children || !d.children.length)) {
1441
- const H = await A(d);
1442
- d.children = H, O.fields = _, w(S);
1443
- }
1444
- }
1445
- };
1446
- return {
1447
- pivotProps: {
1448
- rowAxes: m,
1449
- columnAxes: s,
1450
- data: o.data,
1451
- rows: o.rows,
1452
- columns: o.columns,
1453
- onRowAxesChange: $,
1454
- onColumnAxesChange: v
1455
- },
1456
- configuratorProps: {
1457
- sort: k,
1458
- onSortChange: f,
1459
- filter: L,
1460
- onFilterChange: z,
1461
- data: i,
1462
- rowAxes: m,
1463
- columnAxes: s,
1464
- measureAxes: y,
1465
- onRowAxesChange: $,
1466
- onColumnAxesChange: v,
1467
- onMeasureAxesChange: N,
1468
- onFieldsEditorFieldExpand: p,
1469
- onAxisFilterFieldExpand: j,
1470
- onAxisFilterFieldsExpandChange: X
1471
- },
1472
- state: {
1473
- loading: a
1474
- }
1475
- };
1476
- }, Dn = (e) => {
1477
- const a = En(e);
1478
- return e.children(a);
1479
- }, An = (e) => {
1480
- for (let a = 0, n = e.length; a < n; a++)
1481
- e[a].uniqueName = e[a].name, e[a].type = "kpi";
1482
- return e;
1483
- }, pn = "aggregate", yn = "columns", at = { dataField: pn, columnsData: yn }, Ee = "&", wn = (e) => {
1484
- const [a, n] = t.useState(!0), [o, l] = t.useState(e.defaultColumnAxes || []), [i, u] = t.useState(e.defaultRowAxes || []), [s, E] = t.useState(e.defaultMeasureAxes || []), [m, x] = t.useState(e.defaultSort || []), [y, G] = t.useState(e.defaultFilter || []), [k, U] = t.useState(/* @__PURE__ */ new Map()), L = t.useCallback((p) => {
1485
- u(p.value);
1486
- }, []), V = t.useCallback((p) => {
1487
- l(p.value);
1488
- }, []), $ = (p) => {
1489
- E(p.value);
1490
- }, v = (p) => {
1491
- x(p.value);
1492
- }, N = (p) => {
1493
- G(p.value);
1494
- }, f = t.useMemo(() => Array.from(et(o).keys()).join(Ee), [o]), z = t.useMemo(() => Array.from(et(i).keys()).join(Ee), [i]), K = t.useCallback(
1495
- (p) => ({ key: p, ...e.dimensions[p] }),
1496
- [e.dimensions]
1497
- ), D = t.useMemo(
1498
- () => f ? f.split(Ee).map(K) : [],
1499
- [f, K]
1500
- ), c = t.useMemo(
1501
- () => z ? z.split(Ee).map(K) : [],
1502
- [z, K]
1503
- ), A = t.useMemo(
1504
- () => s.map((p) => e.measures.find((X) => String(X.name) === String(p.name))).filter(Boolean),
1505
- [s, e.measures]
1506
- );
1507
- t.useEffect(
1508
- () => {
1509
- n(!0), setTimeout(() => {
1510
- const p = Vt(e.data, c, D, A, at, y);
1511
- U(p), n(!1);
1512
- }, 0);
1513
- },
1514
- [e.data, c, D, A, y]
1515
- );
1516
- const M = t.useMemo(
1517
- () => $t(e.dimensions, e.measures),
1518
- [e.dimensions, e.measures]
1519
- ), P = t.useMemo(
1520
- () => _t({
1521
- dataTree: k,
1522
- rowSettings: c,
1523
- columnSettings: D,
1524
- rowAxes: i,
1525
- columnAxes: o,
1526
- measures: A,
1527
- sort: m,
1528
- fields: at
1529
- }),
1530
- [o, D, k, i, c, m]
1531
- );
1532
- return {
1533
- pivotProps: {
1534
- rowAxes: i,
1535
- columnAxes: o,
1536
- data: P.data,
1537
- rows: P.rows,
1538
- columns: P.columns,
1539
- onRowAxesChange: L,
1540
- onColumnAxesChange: V
1541
- },
1542
- configuratorProps: {
1543
- sort: m,
1544
- onSortChange: v,
1545
- filter: y,
1546
- onFilterChange: N,
1547
- data: M,
1548
- rowAxes: i,
1549
- columnAxes: o,
1550
- measureAxes: s,
1551
- onRowAxesChange: L,
1552
- onColumnAxesChange: V,
1553
- onMeasureAxesChange: $
1554
- },
1555
- state: {
1556
- loading: a
1557
- }
1558
- };
1559
- }, Hn = (e) => {
1560
- const a = wn(e);
1561
- return e.children(a);
1562
- };
9
+ import { PivotGrid as t } from "./PivotGrid.mjs";
10
+ import { PivotGridColumn as e } from "./components/Column.mjs";
11
+ import { PivotGridRow as v } from "./components/Row.mjs";
12
+ import { PivotGridCell as x } from "./components/Cell.mjs";
13
+ import { PivotGridHeaderCell as f } from "./components/HeaderCell.mjs";
14
+ import { PivotGridContainer as p } from "./components/Container.mjs";
15
+ import { PivotGridConfigurator as l } from "./components/Configurator.mjs";
16
+ import { PivotGridConfiguratorEditor as s } from "./components/ConfiguratorEditor.mjs";
17
+ import { PivotGridConfiguratorButton as u } from "./components/ConfiguratorButton.mjs";
18
+ import { PivotGridFieldsEditor as C } from "./components/FieldsEditor.mjs";
19
+ import { PivotGridAxesEditor as E } from "./components/AxesEditor.mjs";
20
+ import { PivotGridAxisEditor as S } from "./components/AxisEditor.mjs";
21
+ import { PivotGridAxisFilterFieldsEditor as D } from "./components/AxisFilterFieldsEditor.mjs";
22
+ import { PivotOLAPService as w, usePivotOLAPService as B } from "./hooks/usePivotOLAPService.mjs";
23
+ import { PivotLocalDataService as R, usePivotLocalDataService as b } from "./hooks/usePivotLocalDataService.mjs";
24
+ import { dataCells as j } from "./utils/index.mjs";
25
+ import { averageAggregate as q, maxAggregate as y, minAggregate as z, sumAggregate as I } from "@progress/kendo-pivotgrid-common";
1563
26
  export {
1564
- hn as PivotGrid,
1565
- ce as PivotGridAxesEditor,
1566
- $e as PivotGridAxisEditor,
1567
- Ve as PivotGridAxisFilterFieldsEditor,
1568
- dt as PivotGridCell,
1569
- ze as PivotGridColumn,
1570
- Ct as PivotGridConfigurator,
1571
- Et as PivotGridConfiguratorButton,
1572
- Xe as PivotGridConfiguratorEditor,
1573
- ft as PivotGridContainer,
1574
- _e as PivotGridFieldsEditor,
1575
- Be as PivotGridHeaderCell,
1576
- ct as PivotGridRow,
1577
- Hn as PivotLocalDataService,
1578
- Dn as PivotOLAPService,
1579
- qn as averageAggregate,
1580
- Ln as dataCells,
1581
- Bn as maxAggregate,
1582
- zn as minAggregate,
1583
- Kn as sumAggregate,
1584
- wn as usePivotLocalDataService,
1585
- En as usePivotOLAPService
27
+ t as PivotGrid,
28
+ E as PivotGridAxesEditor,
29
+ S as PivotGridAxisEditor,
30
+ D as PivotGridAxisFilterFieldsEditor,
31
+ x as PivotGridCell,
32
+ e as PivotGridColumn,
33
+ l as PivotGridConfigurator,
34
+ u as PivotGridConfiguratorButton,
35
+ s as PivotGridConfiguratorEditor,
36
+ p as PivotGridContainer,
37
+ C as PivotGridFieldsEditor,
38
+ f as PivotGridHeaderCell,
39
+ v as PivotGridRow,
40
+ R as PivotLocalDataService,
41
+ w as PivotOLAPService,
42
+ q as averageAggregate,
43
+ j as dataCells,
44
+ y as maxAggregate,
45
+ z as minAggregate,
46
+ I as sumAggregate,
47
+ b as usePivotLocalDataService,
48
+ B as usePivotOLAPService
1586
49
  };