@sheetxl/studio-mui 0.8.0-beta.14 → 0.8.0-beta.16

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 (120) hide show
  1. package/LICENSE.md +17 -7
  2. package/browser/esm/{DviYEVpPnQaWx-Tr.mjs → 2DGUEeY8au7Hbmze.mjs} +2 -2
  3. package/browser/esm/{D5ASCLEncVX6S3t7.mjs → 9V0gwYl3BcajPwBD.mjs} +2 -2
  4. package/browser/esm/B0mscuFChIInl6Mo.mjs +119 -0
  5. package/browser/esm/{cMMnySiLwLtz8_Zk.mjs → BGg5TSbhaUimavRf.mjs} +7 -7
  6. package/browser/esm/BL-h4RElQAdaeHPF.mjs +360 -0
  7. package/browser/esm/{XkkwDAFA6f5msXE4.mjs → BSrubs5qLEinR8Ew.mjs} +92 -87
  8. package/browser/esm/BUCQPr09aodgC88P.mjs +225 -0
  9. package/browser/esm/{BJn4i5eSKttOM7Va.mjs → Bg6bcIJsute7rxDL.mjs} +3 -3
  10. package/browser/esm/{b6OpGIOfqvVgPkpN.mjs → BjR7L3X6je3fXyQi.mjs} +2 -2
  11. package/browser/esm/{Cm7gnL7wtPzU7kH9.mjs → Bo_18UwXk7eK6QaM.mjs} +3 -3
  12. package/browser/esm/{C4-74xZS6PXqeP2-.mjs → Bp4rtdIKIFzTeJvr.mjs} +13 -9
  13. package/browser/esm/BxneVAXjYuQbCUQo.mjs +424 -0
  14. package/browser/esm/{BhurfBABcwf3sq1Y.mjs → C2V3kv29foh8dScC.mjs} +2 -2
  15. package/browser/esm/{4meV2QrzGwOTw-Wg.mjs → C8M4U_SswTd6auZd.mjs} +4 -4
  16. package/browser/esm/{DydtA0Kx0EIVeRVq.mjs → C9XRjC0yoGvS9Cm9.mjs} +3 -3
  17. package/browser/esm/{D1METLVOmQUWB2GY.mjs → CDgoQhayiKyo-7Br.mjs} +34 -33
  18. package/browser/esm/{DJytYYs6hwKzoGdK.mjs → CLgar8cakFC22X3w.mjs} +2 -2
  19. package/browser/esm/{DSMZVJXRlgHj6hnF.mjs → CUh56URLD9Vh5Ak9.mjs} +1807 -1200
  20. package/browser/esm/{D7SHK5F4crIKlHfX.mjs → CXgBRmauwDvHb3fQ.mjs} +2 -2
  21. package/browser/esm/{CM5uH7kPI6bp0Ynb.mjs → CYOaHHiaC7Ip5VLn.mjs} +2 -2
  22. package/browser/esm/C_qDBCzb8IHBlPhJ.mjs +294 -0
  23. package/browser/esm/{CouH7NfOLzq-7BFG.mjs → CfsYKmwU44jlvh2Y.mjs} +2 -2
  24. package/browser/esm/Ch1y4AkETfKCYDwf.mjs +106 -0
  25. package/browser/esm/{C7G22BSOh6ahi_YA.mjs → CnId_LC0EekuwaAF.mjs} +3 -3
  26. package/browser/esm/{DUMfNkupQUkMYbRX.mjs → CtVSJjciTocAi-ph.mjs} +3 -3
  27. package/browser/esm/{BSgsK2ctkA7acJ8B.mjs → CuQsEoKZJrSL989Q.mjs} +6 -6
  28. package/browser/esm/{B65gFGIGbaB2HJ7S.mjs → Cv99zJfRtzJQmM9a.mjs} +2 -2
  29. package/browser/esm/{9wRFUyQKqfHCPUiS.mjs → Cxk-oWZzE2jq5ul6.mjs} +3 -3
  30. package/browser/esm/{B0u4XScttbCbHUuj.mjs → D3XdTSymYMag6tor.mjs} +6 -6
  31. package/browser/esm/{BLWzmTXqRJp_rp2R.mjs → D4jGaUxHOgVc4qN0.mjs} +3 -3
  32. package/browser/esm/{D5ioZQTn_SJateKf.mjs → DAdhaGB933dfni3E.mjs} +3 -3
  33. package/browser/esm/{DYKsNTXsl78btQCN.mjs → DBx1Y3oFzB6gv-LQ.mjs} +3 -3
  34. package/browser/esm/{DROcTh8qOW1i6ktd.mjs → DIAnBUXPTvYAp5fm.mjs} +3 -3
  35. package/browser/esm/{CQmRcbXzQ2ZnzWkm.mjs → DIJh9jY37iVFn-tE.mjs} +2 -2
  36. package/browser/esm/{DC70OHr0cJy33grZ.mjs → DK1K-M9iJV-DK3lK.mjs} +2 -2
  37. package/browser/esm/{ATDkpSD6QYiZqoUd.mjs → DMhFcJsnKSKTDivl.mjs} +2 -2
  38. package/browser/esm/{C4UBegw-DrnYEN3U.mjs → DMj9kkIWw9chI5_u.mjs} +5 -5
  39. package/browser/esm/DUpW8HMoEhD3C9l6.mjs +235 -0
  40. package/browser/esm/{IF6KtCM-Yj_9GGEI.mjs → DVJ5AK0zcqSACGov.mjs} +9 -9
  41. package/browser/esm/{TJm3V2B1CMw1iZoU.mjs → DVaykBKx4eEsP4MI.mjs} +4 -4
  42. package/browser/esm/{Dh1o7OIOvCQaeaVN.mjs → Dex65RXS_A5CnMg3.mjs} +3 -3
  43. package/browser/esm/{DcF7yoU5XaD0TzDi.mjs → DfYtGsqDIMAG4Sp8.mjs} +2 -2
  44. package/browser/esm/{B2NGlVfdWvs2G_Fq.mjs → Dj0VEFe2ckEWgQjy.mjs} +5 -5
  45. package/browser/esm/{CSjn0SmASZfMzjJD.mjs → DjCDJhBfVI9O_Sq1.mjs} +6 -6
  46. package/browser/esm/DjjmLQLxU_U4JB3n.mjs +973 -0
  47. package/browser/esm/{dcZCjUD2UCAzFGTB.mjs → DmOrKFaiUUr5hlFl.mjs} +5 -4
  48. package/browser/esm/{BnRqW8S8uRFT1dsa.mjs → DoYSmj1LQHAAqt5b.mjs} +2 -2
  49. package/browser/esm/{DEu_fNm5LXqXGUqI.mjs → KhOxaZS8EeSaYFXZ.mjs} +2 -2
  50. package/browser/esm/{CqAaow0-s9wI-Zco.mjs → PvNtCGveCLbLAP3e.mjs} +14 -14
  51. package/browser/esm/{DGGNjWCfZChvgtCJ.mjs → ROOxAZY7YyHDmPcQ.mjs} +4 -4
  52. package/browser/esm/{C85QGz19eE9ggqzR.mjs → TfUaejwwWzu5qFVE.mjs} +3 -3
  53. package/browser/esm/{CeYt9oGNq5J48kA8.mjs → ZhI7zxDSTWb1DfaE.mjs} +3 -3
  54. package/browser/esm/{BPEGlembHUmOukt-.mjs → fqZt7Z0jR4illVKU.mjs} +5 -5
  55. package/browser/esm/index.mjs +278 -277
  56. package/browser/esm/{7GvHfNWduigxqNjI.mjs → r7bLyFzJfaGLKP_7.mjs} +2 -2
  57. package/browser/esm/{DGsTOxJVdwIgmFiF.mjs → tffjGixzP1Ze4DqB.mjs} +3 -3
  58. package/browser/esm/{CQ6F1l897Rr74YXa.mjs → tiC8hseLz66gO5BS.mjs} +804 -713
  59. package/licenses/dependencies.txt +33 -33
  60. package/node/esm/{CnHJuuebdiYB4hU1.mjs → -Il_piuBrbndDROB.mjs} +2 -2
  61. package/node/esm/0cm_0VYweOBWmzi7.mjs +972 -0
  62. package/node/esm/{Ua-hzH0IDC5UU7I1.mjs → 1gdwmt5CrQy4cGTH.mjs} +2 -2
  63. package/node/esm/{BXq4h4T2V5D0e0GE.mjs → 3Geel3fylTwbPuxf.mjs} +2 -2
  64. package/node/esm/{BPbOKZTCABQS1v4l.mjs → 4pRKBhUYhbbE6qVT.mjs} +2 -2
  65. package/node/esm/{DV7GtbZngmzKJkGC.mjs → 9qIZWfzxSaxNk6Cm.mjs} +16 -15
  66. package/node/esm/B9uLfbf5gMGnoUjH.mjs +224 -0
  67. package/node/esm/{C2ZhJJ6JogM32N6v.mjs → BFO2WxwRNbu-UmKe.mjs} +3 -3
  68. package/node/esm/{DrZYqa9k2cas_dpR.mjs → BIJXqUbAalnd-gXD.mjs} +2 -2
  69. package/node/esm/{DLa2dwTHx-TF9X28.mjs → BIviFvkWx6eP4dMd.mjs} +12 -12
  70. package/node/esm/{By9Y6KcwsjQGiP4W.mjs → BTOCej61y3MazK6r.mjs} +2 -2
  71. package/node/esm/{DNhFkzvStZYjYqlY.mjs → BV9hUarSGd3mWC8o.mjs} +3 -3
  72. package/node/esm/{ChAnZ_8BZXB8xGku.mjs → BX1cTEV3SpcqLcXx.mjs} +81 -80
  73. package/node/esm/{DINEK8QwAC2xbcJg.mjs → BZu-8gEXwIzW_YX9.mjs} +2 -2
  74. package/node/esm/{Dua4HsVMCVMOSuUP.mjs → B_jOG6MlKoiboP3D.mjs} +3 -3
  75. package/node/esm/{a4ksKvzRiZRS-LjD.mjs → BgObBW8ZUr50OufC.mjs} +8 -8
  76. package/node/esm/{BIbJ-RvwV7EKR1AK.mjs → BhiuBl2z87xThV1b.mjs} +2 -2
  77. package/node/esm/{Cv_gkzf1CvleEpGx.mjs → Bm054Lh36PSa5m1P.mjs} +2 -2
  78. package/node/esm/BtxNP8JWe16vSXAs.mjs +106 -0
  79. package/node/esm/BzT_zks-KORaryRo.mjs +118 -0
  80. package/node/esm/{DfRwTR3tR0Wx5I0U.mjs → C5dRM0ExMHpFgKd0.mjs} +3 -3
  81. package/node/esm/{DKJDmlxmNG0mVHmb.mjs → CQxu_KONf2yyKKnD.mjs} +2 -2
  82. package/node/esm/{D9neYUsRInmBz-7P.mjs → CdoFRzEug2L0LwNb.mjs} +7 -7
  83. package/node/esm/{Hp0ggyjuRLoV7Zkw.mjs → Ch7Ebxf0bFrlCJpW.mjs} +2 -2
  84. package/node/esm/{GkXvPmel2BbE1Yvo.mjs → CsQTJ4JQRxLcJDiZ.mjs} +2 -2
  85. package/node/esm/{D1RBCi056McbAuVe.mjs → CyKOmz26TaZSFxmi.mjs} +3 -3
  86. package/node/esm/D3TsBlOewIFj-VDW.mjs +294 -0
  87. package/node/esm/{rSq-rFZ2oBrx0daL.mjs → D4TlOO7hjvqTR2HX.mjs} +3 -3
  88. package/node/esm/{CLArZpAFWoKR9UXC.mjs → DYNM5HfUK0JbGHsx.mjs} +2 -2
  89. package/node/esm/{B74EJtfb07jNPG2i.mjs → DhPNzztIuq9WJwCz.mjs} +3 -3
  90. package/node/esm/{CMsWjZqAF2n3PniO.mjs → cl-bDkq8M4STBYJy.mjs} +2 -2
  91. package/node/esm/fazR-cWd-2-W82Nk.mjs +425 -0
  92. package/node/esm/index.mjs +3391 -2778
  93. package/node/esm/{CzQvRTTBIzvSAQWs.mjs → iyOc5Rm5x746Qd3R.mjs} +2 -2
  94. package/node/esm/{D3BoGAsVExHN5pzo.mjs → klLaIOeBuqaYuz_q.mjs} +2 -2
  95. package/node/esm/{0TWX9zLKXvPj1qMo.mjs → mmzQ-lse6yBavXnw.mjs} +603 -514
  96. package/node/esm/{C29ReEXb9EK4DP6E.mjs → rpHmm4X81z1orjHr.mjs} +3 -3
  97. package/node/esm/{Y0a0MfNj9jzVeoRQ.mjs → tRnEFhRlzQPziQif.mjs} +2 -2
  98. package/package.json +10 -10
  99. package/resources/locales/de/groups.cmd.json +3 -0
  100. package/resources/locales/de/ui.msg.json +41 -0
  101. package/resources/locales/en/groups.cmd.json +3 -0
  102. package/resources/locales/en/ui.msg.json +41 -0
  103. package/types/src/command/PresetPivotStylesCommandButton.d.ts +17 -0
  104. package/types/src/command/index.d.ts +1 -0
  105. package/types/src/dialog/PivotTableNewDialog.d.ts +11 -0
  106. package/types/src/filter/PivotMenu.d.ts +31 -0
  107. package/types/src/filter/index.d.ts +1 -0
  108. package/types/src/pivot/PivotChipMenu.d.ts +10 -0
  109. package/types/src/pivot/PivotPlugin.d.ts +3 -0
  110. package/types/src/pivot/PivotStyleCanvasPreview.d.ts +23 -0
  111. package/types/src/pivot/PivotTableHeader.d.ts +12 -0
  112. package/types/src/pivot/PivotValueSettingsDialog.d.ts +15 -0
  113. package/types/src/pivot/_pivotSource.d.ts +7 -0
  114. package/types/src/table/_drawStyleSwatch.d.ts +25 -0
  115. package/types/src/workbook/DefaultRenderers.d.ts +10 -4
  116. package/browser/esm/BJPuzqf8wzAaSBCD.mjs +0 -1379
  117. package/browser/esm/CUBCWkB6A5HH4u5Q.mjs +0 -319
  118. package/browser/esm/DKnuzGrJHk4qI0Zi.mjs +0 -582
  119. package/node/esm/BbCPG2xTU1rpAM5l.mjs +0 -318
  120. package/node/esm/DtxnTVIKKE8mp6rU.mjs +0 -1379
@@ -0,0 +1,106 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: MIT
6
+ */
7
+ import { InputField as e } from "./index.mjs";
8
+ import { memo as n, useRef as r } from "react";
9
+ import { jsx as t, jsxs as a } from "react/jsx-runtime";
10
+ import { Box as i, Typography as l } from "@mui/material";
11
+ var s = (e, n, r) => () => {
12
+ n === e && r();
13
+ }, o = n((n) => {
14
+ const { label: a, value: i, min: l, max: s, step: o = 1, decimals: m = !1, width: p, disabled: d, onChange: c } = n, u = r(null), x = (e) => Math.max(l, Math.min(s, e)), h = (e) => {
15
+ const n = m ? parseFloat(e) : parseInt(e, 10);
16
+ return Number.isNaN(n) ? null : x(n);
17
+ };
18
+ return t(e, {
19
+ label: a,
20
+ value: String(i),
21
+ disabled: d,
22
+ hideAdornment: !0,
23
+ helperText: null,
24
+ propsInput: {
25
+ type: "number",
26
+ min: l,
27
+ max: s,
28
+ step: o
29
+ },
30
+ sx: {
31
+ width: p,
32
+ minWidth: 0,
33
+ "& input": { textAlign: "right" }
34
+ },
35
+ onChangeInput: (e) => {
36
+ const n = h(e);
37
+ null !== n && (u.current = n, c(n));
38
+ },
39
+ onDone: (e) => {
40
+ const n = h(e) ?? x(0), r = u.current;
41
+ u.current = null, r !== n && c(n);
42
+ }
43
+ });
44
+ });
45
+ o.displayName = "FormatNumberField";
46
+ var m = {
47
+ display: "flex",
48
+ flexDirection: "column",
49
+ gap: 1.5,
50
+ minWidth: 0
51
+ }, p = n((e) => {
52
+ const { label: n, children: r, sx: s, ...o } = e;
53
+ return a(i, {
54
+ sx: {
55
+ display: "flex",
56
+ flexDirection: "column",
57
+ gap: .75,
58
+ minWidth: 0,
59
+ ...s
60
+ },
61
+ ...o,
62
+ children: [n ? t(l, {
63
+ variant: "caption",
64
+ component: "div",
65
+ sx: {
66
+ color: "text.secondary",
67
+ lineHeight: 1.4
68
+ },
69
+ children: n
70
+ }) : null, r]
71
+ });
72
+ });
73
+ p.displayName = "FormatSection";
74
+ var d = n((e) => {
75
+ const { children: n, sx: r, ...a } = e;
76
+ return t(i, {
77
+ sx: {
78
+ display: "flex",
79
+ flexWrap: "wrap",
80
+ alignItems: "center",
81
+ gap: 1,
82
+ minWidth: 0,
83
+ ...r
84
+ },
85
+ ...a,
86
+ children: n
87
+ });
88
+ });
89
+ d.displayName = "FormatRow";
90
+ var c = n((e) => {
91
+ const { children: n, sx: r, ...a } = e;
92
+ return t(i, {
93
+ sx: {
94
+ display: "flex",
95
+ alignItems: "center",
96
+ gap: .25,
97
+ flexWrap: "wrap",
98
+ minWidth: 0,
99
+ ...r
100
+ },
101
+ ...a,
102
+ children: n
103
+ });
104
+ });
105
+ c.displayName = "FormatButtonGroup";
106
+ export { s as a, p as i, o as n, m as o, d as r, c as t };
@@ -0,0 +1,118 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: MIT
6
+ */
7
+ import { FormulaField as e, InputField as o } from "./index.mjs";
8
+ import { n as t } from "./mmzQ-lse6yBavXnw.mjs";
9
+ import { useReferenceMode as n, useWorkbook as a } from "@sheetxl/react";
10
+ import { useCallbackRef as l, useTranslator as i } from "@sheetxl/utils-react";
11
+ import { memo as r, useCallback as c, useMemo as u, useState as s } from "react";
12
+ import { OptionsDialog as m } from "@sheetxl/utils-mui";
13
+ import { jsx as p, jsxs as d } from "react/jsx-runtime";
14
+ import { Box as f } from "@mui/material";
15
+ var g = ["Ok", "Cancel"], h = r((r) => {
16
+ const { onInput: h, onOption: v, onValidateOption: x, onDone: N, options: O = g, defaultOption: w = O?.[0], cancelOption: b = "Cancel", sx: F, initialValue: k, context: C, ...I } = r, y = i(), [M, T] = s(!1), [V, j] = s(() => k?.name ?? ""), [D, S] = s(() => k?.source ?? null), [W, A] = s(() => k?.location ?? null), B = C?.(), E = u(() => {
17
+ const e = k?.source, o = e && "string" != typeof e ? e.getWorksheet?.()?.getName() : void 0;
18
+ return o ? { scope: o } : void 0;
19
+ }, [k]), G = a(), [L] = s(() => {
20
+ const e = G?.getSelectedWorksheet()?.getName();
21
+ return e ? { scope: e } : void 0;
22
+ }), R = "point" === n().getMode()?.mode, q = u(() => W ? B?.checkLocation(W) ?? null : null, [W, B]), z = l((e) => {
23
+ B?.validateName(e, W);
24
+ }, [B, W]), H = l((e) => {
25
+ const o = D && W ? {
26
+ ...k,
27
+ name: V,
28
+ source: D,
29
+ location: W
30
+ } : null, t = e === b || !e;
31
+ h?.(!t && o ? o : void 0), v?.(e ?? b, t, e === w), N?.({
32
+ option: e,
33
+ value: o
34
+ });
35
+ }, [
36
+ N,
37
+ v,
38
+ w,
39
+ b,
40
+ V,
41
+ D,
42
+ W,
43
+ k
44
+ ]), J = c(async (e, o) => {
45
+ if (!D || !W || q) return !1;
46
+ try {
47
+ z(V);
48
+ } catch {
49
+ return !1;
50
+ }
51
+ return !0;
52
+ }, [
53
+ z,
54
+ V,
55
+ D,
56
+ W,
57
+ q
58
+ ]), K = (e) => {
59
+ M || e.target?.select(), T(!0);
60
+ };
61
+ return p(m, {
62
+ title: y("pivotTableNew.title"),
63
+ options: O,
64
+ onDone: H,
65
+ onValidateOption: J,
66
+ defaultOption: w,
67
+ cancelOption: b,
68
+ autoFocusSel: ".autoFocus",
69
+ suspendModal: R,
70
+ sx: {
71
+ width: "360px",
72
+ ...F
73
+ },
74
+ ...I,
75
+ children: d(f, {
76
+ sx: {
77
+ paddingTop: (e) => e.spacing(1),
78
+ paddingBottom: (e) => e.spacing(0),
79
+ rowGap: (e) => e.spacing(1),
80
+ display: "flex",
81
+ flexDirection: "column"
82
+ },
83
+ children: [
84
+ p(o, {
85
+ formName: "name",
86
+ value: V,
87
+ onChangeInput: j,
88
+ onValidate: z,
89
+ onFocus: K
90
+ }),
91
+ p(e, {
92
+ grammar: "reference",
93
+ classNameInput: "autoFocus",
94
+ formName: "source",
95
+ label: y("pivotTableNew.source"),
96
+ value: D,
97
+ allowMulti: !1,
98
+ home: E,
99
+ pickAs: "absolute",
100
+ onChangeInput: (e) => S(t(e)),
101
+ onFocus: K
102
+ }),
103
+ p(e, {
104
+ grammar: "reference",
105
+ formName: "location",
106
+ label: y("pivotTableNew.location"),
107
+ value: W,
108
+ allowMulti: !1,
109
+ home: L,
110
+ validationError: q,
111
+ onChangeInput: (e) => A(e?.getReferences() ?? null),
112
+ onFocus: K
113
+ })
114
+ ]
115
+ })
116
+ });
117
+ });
118
+ export { h as PivotTableNewDialog, h as default };
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: MIT
6
6
  */
7
- import { t as e } from "./C2ZhJJ6JogM32N6v.mjs";
7
+ import { t as e } from "./BFO2WxwRNbu-UmKe.mjs";
8
8
  import { FormulaField as t, InputField as n, PresetChip as a, c as r } from "./index.mjs";
9
9
  import { useModelSync as o, useWorkbook as i } from "@sheetxl/react";
10
10
  import { DynamicIcon as d, NotifierType as l, useCallbackRef as s, useNotifier as m, useTranslator as c } from "@sheetxl/utils-react";
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: MIT
6
6
  */
7
7
  import { memo as t, useMemo as r, useRef as e } from "react";
8
8
  import { jsx as n } from "react/jsx-runtime";
@@ -1,26 +1,26 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: MIT
6
6
  */
7
- import { a as t, i as e, n as a, r as i } from "./CzQvRTTBIzvSAQWs.mjs";
7
+ import { a as t, i as e, n as a, r as i } from "./iyOc5Rm5x746Qd3R.mjs";
8
8
  import { useTranslator as o } from "@sheetxl/utils-react";
9
9
  import { useCallback as r, useState as s } from "react";
10
10
  import { InternalWindow as n } from "@sheetxl/utils-mui";
11
11
  import { jsx as m, jsxs as c } from "react/jsx-runtime";
12
12
  import { Checkbox as p, DialogActions as d, DialogContent as h, FormControlLabel as u, Typography as x } from "@mui/material";
13
13
  var g = (l) => {
14
- const { title: g, templatePath: f, onSelectTemplate: v, showAtStartup: w, onShowAtStartupChange: S, sx: y, ...C } = l, b = o(), j = a({ path: f }), [A, k] = s(""), [I, M] = s([]), z = e(j.categories, A, I), [D, F] = s(w), H = r((t) => {
15
- F(t), S?.(t);
16
- }, [S]), L = r((t) => {
14
+ const { title: g, templatePath: f, onSelectTemplate: v, showAtStartup: w, onShowAtStartupChange: y, sx: S, ...C } = l, b = o(), j = a({ path: f }), [A, k] = s(""), [I, M] = s([]), z = e(j.categories, A, I), [D, F] = s(w), H = r((t) => {
15
+ F(t), y?.(t);
16
+ }, [y]), L = r((t) => {
17
17
  v?.(t);
18
18
  }, [v]);
19
19
  return c(n, {
20
20
  isModal: !0,
21
21
  sx: {
22
22
  width: "860px",
23
- ...y
23
+ ...S
24
24
  },
25
25
  title: g ?? b("dialog.template.title"),
26
26
  autoFocusSel: ".template-tile",
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: MIT
6
6
  */
7
7
  import { CommentCard as e } from "./index.mjs";
8
8
  import { getCommentCoords as t, useModelListener as l, useSheetComments as o } from "@sheetxl/react";
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: MIT
6
6
  */
7
7
  import { AutoFill as e, IRange as t } from "@sheetxl/sdk";
8
8
  import { AUTO_FILL_PRESET_LABELS as i } from "@sheetxl/react";
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: MIT
6
6
  */
7
- import { t as e } from "./C2ZhJJ6JogM32N6v.mjs";
7
+ import { t as e } from "./BFO2WxwRNbu-UmKe.mjs";
8
8
  import { FormulaField as t, s as r } from "./index.mjs";
9
9
  import { useModelSync as a } from "@sheetxl/react";
10
10
  import { NotifierType as n, useNotifier as o } from "@sheetxl/utils-react";
@@ -0,0 +1,294 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: MIT
6
+ */
7
+ import { t as e } from "./fazR-cWd-2-W82Nk.mjs";
8
+ import { useCallbackRef as t, useTranslator as n } from "@sheetxl/utils-react";
9
+ import { memo as i, useMemo as a, useState as o } from "react";
10
+ import { OptionsDialog as l } from "@sheetxl/utils-mui";
11
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
12
+ import { Box as u, List as p, ListItemButton as c, ListItemText as m, MenuItem as d, Tab as v, Tabs as f, TextField as g, Typography as h } from "@mui/material";
13
+ import { messageKey as b } from "@sheetxl/utils";
14
+ var S = ["Ok", "Cancel"], O = [
15
+ "sum",
16
+ "count",
17
+ "average",
18
+ "max",
19
+ "min",
20
+ "product",
21
+ "countNums",
22
+ "stdDev",
23
+ "stdDevp",
24
+ "var",
25
+ "varp"
26
+ ], V = {
27
+ sum: b("pivot.function.sum"),
28
+ count: b("pivot.function.count"),
29
+ average: b("pivot.function.average"),
30
+ max: b("pivot.function.max"),
31
+ min: b("pivot.function.min"),
32
+ product: b("pivot.function.product"),
33
+ countNums: b("pivot.function.countNums"),
34
+ stdDev: b("pivot.function.stdDev"),
35
+ stdDevp: b("pivot.function.stdDevp"),
36
+ var: b("pivot.function.var"),
37
+ varp: b("pivot.function.varp")
38
+ }, k = [
39
+ "normal",
40
+ "percentOfTotal",
41
+ "percentOfCol",
42
+ "percentOfRow",
43
+ "percent",
44
+ "percentOfParentRow",
45
+ "percentOfParentCol",
46
+ "percentOfParent",
47
+ "difference",
48
+ "percentDiff",
49
+ "runTotal",
50
+ "percentOfRunningTotal",
51
+ "rankAscending",
52
+ "rankDescending",
53
+ "index"
54
+ ], x = {
55
+ normal: b("pivotValueSettings.kind.normal"),
56
+ percentOfTotal: b("pivotValueSettings.kind.percentOfTotal"),
57
+ percentOfCol: b("pivotValueSettings.kind.percentOfCol"),
58
+ percentOfRow: b("pivotValueSettings.kind.percentOfRow"),
59
+ percent: b("pivotValueSettings.kind.percent"),
60
+ percentOfParentRow: b("pivotValueSettings.kind.percentOfParentRow"),
61
+ percentOfParentCol: b("pivotValueSettings.kind.percentOfParentCol"),
62
+ percentOfParent: b("pivotValueSettings.kind.percentOfParent"),
63
+ difference: b("pivotValueSettings.kind.difference"),
64
+ percentDiff: b("pivotValueSettings.kind.percentDiff"),
65
+ runTotal: b("pivotValueSettings.kind.runTotal"),
66
+ percentOfRunningTotal: b("pivotValueSettings.kind.percentOfRunningTotal"),
67
+ rankAscending: b("pivotValueSettings.kind.rankAscending"),
68
+ rankDescending: b("pivotValueSettings.kind.rankDescending"),
69
+ index: b("pivotValueSettings.kind.index")
70
+ }, F = /* @__PURE__ */ new Set([
71
+ "percent",
72
+ "percentOfParent",
73
+ "difference",
74
+ "percentDiff",
75
+ "runTotal",
76
+ "percentOfRunningTotal",
77
+ "rankAscending",
78
+ "rankDescending"
79
+ ]), w = /* @__PURE__ */ new Set([
80
+ "percent",
81
+ "difference",
82
+ "percentDiff"
83
+ ]), N = "(previous)", D = i((i) => {
84
+ const { initialValue: b, onOption: D, onValidateOption: C, onInput: A, onDone: T, options: P = S, defaultOption: R = P?.[0], cancelOption: I = "Cancel", sx: y, ...z } = i, j = n(), H = b.value, B = a(() => ({
85
+ name: H.getName(),
86
+ fn: H.getFunction(),
87
+ showAs: H.getShowAs(),
88
+ numberFormat: H.getNumberFormat()
89
+ }), [H]), M = a(() => H.getPivotTable().getFields(), [H]), [W, q] = o("function"), [E, G] = o(B.name), [J, K] = o(!1), [L, Q] = o(B.fn), [U, X] = o(B.showAs?.kind ?? "normal"), [Y, Z] = o(B.showAs?.baseField ?? M[0]?.getName() ?? ""), [$, _] = o(B.showAs?.baseItem ?? N), [ee, te] = o(B.numberFormat), [ne, ie] = o(!1), ae = a(() => {
90
+ const e = M.find((e) => e.getName() === Y);
91
+ return e ? e.getItems().map((e) => e.getName()) : [];
92
+ }, [M, Y]), oe = (e) => {
93
+ Q(e), J || G(H.getCaptionFor(e));
94
+ }, le = () => {
95
+ const e = "normal" === U ? null : {
96
+ kind: U,
97
+ ...F.has(U) ? { baseField: Y } : {},
98
+ ...w.has(U) ? { baseItem: $ } : {}
99
+ }, t = E.trim();
100
+ return {
101
+ ...L !== B.fn ? { function: L } : {},
102
+ ...(n = e, i = B.showAs, (n?.kind ?? null) !== (i?.kind ?? null) || n?.baseField !== i?.baseField || n?.baseItem !== i?.baseItem ? { showAs: e } : {}),
103
+ ...ne && ee !== B.numberFormat ? { numberFormat: ee } : {},
104
+ ...J && t && t !== H.getCaptionFor(L) ? { name: t } : {}
105
+ };
106
+ var n, i;
107
+ }, re = t(async (e) => {
108
+ const t = e === I;
109
+ t || A?.({
110
+ value: H,
111
+ changes: le()
112
+ }, e), D?.(e, t, e === R), T?.();
113
+ }, [
114
+ A,
115
+ T,
116
+ D,
117
+ I,
118
+ R,
119
+ H,
120
+ L,
121
+ U,
122
+ Y,
123
+ $,
124
+ ee,
125
+ ne,
126
+ E,
127
+ J
128
+ ]);
129
+ return r(l, {
130
+ title: j("pivotValueSettings.title"),
131
+ options: P,
132
+ onDone: T,
133
+ onOption: (e) => re(e),
134
+ onValidateOption: C,
135
+ defaultOption: R,
136
+ cancelOption: I,
137
+ autoFocusSel: ".autoFocus input",
138
+ sx: {
139
+ width: "440px",
140
+ ...y
141
+ },
142
+ ...z,
143
+ children: s(u, {
144
+ sx: {
145
+ display: "flex",
146
+ flexDirection: "column",
147
+ gap: (e) => e.spacing(1.5)
148
+ },
149
+ children: [
150
+ r(h, {
151
+ variant: "body2",
152
+ className: "pivot-source-name",
153
+ children: j("pivotValueSettings.sourceName", { name: H.getField().getName() })
154
+ }),
155
+ r(g, {
156
+ className: "autoFocus",
157
+ size: "small",
158
+ label: j("pivotValueSettings.customName"),
159
+ value: E,
160
+ onChange: (e) => {
161
+ G(e.target.value), K(!0);
162
+ }
163
+ }),
164
+ s(f, {
165
+ value: W,
166
+ onChange: (e, t) => q(t),
167
+ sx: {
168
+ minHeight: "36px",
169
+ borderBottom: 1,
170
+ borderColor: "divider",
171
+ "& .MuiTab-root": {
172
+ minHeight: "36px",
173
+ textTransform: "none",
174
+ pt: .5,
175
+ pb: .5,
176
+ px: 1.5,
177
+ minWidth: 0
178
+ }
179
+ },
180
+ children: [
181
+ r(v, {
182
+ value: "function",
183
+ label: j("pivotValueSettings.tabFunction")
184
+ }),
185
+ r(v, {
186
+ value: "showAs",
187
+ label: j("pivotValueSettings.tabShowAs")
188
+ }),
189
+ r(v, {
190
+ value: "numberFormat",
191
+ label: j("pivotValueSettings.tabNumberFormat")
192
+ })
193
+ ]
194
+ }),
195
+ s(u, {
196
+ sx: {
197
+ height: "300px",
198
+ overflow: "auto"
199
+ },
200
+ children: [
201
+ "function" === W ? r(p, {
202
+ dense: !0,
203
+ disablePadding: !0,
204
+ role: "listbox",
205
+ "aria-label": j("pivotValueSettings.tabFunction"),
206
+ className: "pivot-functions",
207
+ children: O.map((e) => r(c, {
208
+ role: "option",
209
+ "aria-selected": e === L,
210
+ selected: e === L,
211
+ onClick: () => oe(e),
212
+ onDoubleClick: () => {
213
+ oe(e), re(R);
214
+ },
215
+ children: r(m, { primary: j(V[e]) })
216
+ }, e))
217
+ }) : null,
218
+ "showAs" === W ? s(u, {
219
+ sx: {
220
+ display: "flex",
221
+ flexDirection: "column",
222
+ gap: (e) => e.spacing(2),
223
+ pt: 1
224
+ },
225
+ children: [
226
+ r(g, {
227
+ select: !0,
228
+ size: "small",
229
+ className: "pivot-show-as",
230
+ label: j("pivotValueSettings.showAs"),
231
+ value: U,
232
+ onChange: (e) => X(e.target.value),
233
+ children: k.map((e) => r(d, {
234
+ value: e,
235
+ children: j(x[e])
236
+ }, e))
237
+ }),
238
+ r(g, {
239
+ select: !0,
240
+ size: "small",
241
+ className: "pivot-base-field",
242
+ label: j("pivotValueSettings.baseField"),
243
+ value: Y,
244
+ disabled: !F.has(U),
245
+ onChange: (e) => {
246
+ Z(e.target.value), _(N);
247
+ },
248
+ children: M.map((e) => r(d, {
249
+ value: e.getName(),
250
+ children: e.getName()
251
+ }, e.getName()))
252
+ }),
253
+ s(g, {
254
+ select: !0,
255
+ size: "small",
256
+ className: "pivot-base-item",
257
+ label: j("pivotValueSettings.baseItem"),
258
+ value: $,
259
+ disabled: !w.has(U),
260
+ onChange: (e) => _(e.target.value),
261
+ children: [
262
+ r(d, {
263
+ value: N,
264
+ children: j("pivotValueSettings.previous")
265
+ }),
266
+ r(d, {
267
+ value: "(next)",
268
+ children: j("pivotValueSettings.next")
269
+ }),
270
+ ae.map((e) => r(d, {
271
+ value: e,
272
+ children: e
273
+ }, e))
274
+ ]
275
+ })
276
+ ]
277
+ }) : null,
278
+ "numberFormat" === W ? r(e, {
279
+ value: ee,
280
+ onChange: (e) => {
281
+ te(e), ie(!0);
282
+ },
283
+ onCommit: () => {
284
+ re(R);
285
+ }
286
+ }) : null
287
+ ]
288
+ })
289
+ ]
290
+ })
291
+ });
292
+ });
293
+ D.displayName = "PivotValueSettingsDialog";
294
+ export { D as PivotValueSettingsDialog, D as default };
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: MIT
6
6
  */
7
7
  import { PresetChip as a, c as e, i as t, n as i, r as l } from "./index.mjs";
8
- import { n as o, t as n } from "./D1RBCi056McbAuVe.mjs";
8
+ import { n as o, t as n } from "./CyKOmz26TaZSFxmi.mjs";
9
9
  import { ICondition as r, IDataValidation as d } from "@sheetxl/sdk";
10
10
  import { useModelSync as s } from "@sheetxl/react";
11
11
  import { DynamicIcon as p, useTranslator as m } from "@sheetxl/utils-react";
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: MIT
6
6
  */
7
7
  import { FormulaField as e, InputField as t } from "./index.mjs";
8
8
  import { useReferenceMode as a } from "@sheetxl/react";
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: MIT
6
6
  */
7
7
  import { AutoColorPosition as e, BorderPopupButton as o, ColorPopupButton as l, FormulaField as t, PresetChip as n, _ as a, a as r, b as i, c as d, d as s, f as c, g as p, h as u, i as m, m as g, n as h, p as y, r as x, u as C, v as f, x as v, y as b } from "./index.mjs";
8
- import { n as S, t as F } from "./D1RBCi056McbAuVe.mjs";
8
+ import { n as S, t as F } from "./CyKOmz26TaZSFxmi.mjs";
9
9
  import { Color as T, CommonUtils as k, ICellStyle as w, ICondition as P, IConditionalFormat as I, IFill as N, IFont as M } from "@sheetxl/sdk";
10
10
  import { COLOR_SCALE_PRESETS as B, DATA_BAR_PRESETS as O, ICON_CATALOG as z, IconSetGlyphs as A, NO_CELL_ICON as R, STYLE_PRESETS as D, defaultColorScale as j, defaultDataBar as W, defaultIconSet as $, defaultIconStops as K, getConditionalIconSet as E, iconSetSize as U, resolveIconSetIcons as L, useModelSync as _, withIconOverride as G } from "@sheetxl/react";
11
11
  import { DynamicIcon as V, useTranslator as H } from "@sheetxl/utils-react";
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: MIT
6
6
  */
7
7
  import { IRange as e } from "@sheetxl/sdk";
8
8
  import { KeyCodes as t, useCallbackRef as i, useTranslator as n } from "@sheetxl/utils-react";