@sheetxl/studio-mui 0.8.0-beta.15 → 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 (119) hide show
  1. package/LICENSE.md +17 -7
  2. package/browser/esm/{CJWnWqGPw17cp9P3.mjs → 2DGUEeY8au7Hbmze.mjs} +2 -2
  3. package/browser/esm/{OmA1ClZ36ZMFrZe7.mjs → 9V0gwYl3BcajPwBD.mjs} +2 -2
  4. package/browser/esm/B0mscuFChIInl6Mo.mjs +119 -0
  5. package/browser/esm/{EFtp_C3sBnP3Nrns.mjs → BGg5TSbhaUimavRf.mjs} +7 -7
  6. package/browser/esm/BL-h4RElQAdaeHPF.mjs +360 -0
  7. package/browser/esm/{DOWfcHx0MO0J50de.mjs → BSrubs5qLEinR8Ew.mjs} +92 -87
  8. package/browser/esm/BUCQPr09aodgC88P.mjs +225 -0
  9. package/browser/esm/{BvpzsprI7cmVLuQn.mjs → Bg6bcIJsute7rxDL.mjs} +3 -3
  10. package/browser/esm/{CV-q-xCHVuNFhqEF.mjs → BjR7L3X6je3fXyQi.mjs} +2 -2
  11. package/browser/esm/{DMDi2lOps0veJKsM.mjs → Bo_18UwXk7eK6QaM.mjs} +3 -3
  12. package/browser/esm/{BfPTOOKhwUojRTef.mjs → Bp4rtdIKIFzTeJvr.mjs} +13 -9
  13. package/browser/esm/BxneVAXjYuQbCUQo.mjs +424 -0
  14. package/browser/esm/{BojGnpAWoIm5yCd8.mjs → C2V3kv29foh8dScC.mjs} +2 -2
  15. package/browser/esm/{BkxJY_YjMAEvhmuy.mjs → C8M4U_SswTd6auZd.mjs} +4 -4
  16. package/browser/esm/{BR51amBhaaHPBhpd.mjs → C9XRjC0yoGvS9Cm9.mjs} +3 -3
  17. package/browser/esm/{ghfcAaGu2CuZGdhi.mjs → CDgoQhayiKyo-7Br.mjs} +34 -33
  18. package/browser/esm/{Buzx8_zQYPX4DR7v.mjs → CLgar8cakFC22X3w.mjs} +2 -2
  19. package/browser/esm/{6SL2j-85OXrKJNZ5.mjs → CUh56URLD9Vh5Ak9.mjs} +1807 -1200
  20. package/browser/esm/{DLe9DT0DSurLSgiQ.mjs → CXgBRmauwDvHb3fQ.mjs} +2 -2
  21. package/browser/esm/{Bqba-3J9i8HsmusR.mjs → CYOaHHiaC7Ip5VLn.mjs} +2 -2
  22. package/browser/esm/C_qDBCzb8IHBlPhJ.mjs +294 -0
  23. package/browser/esm/{Cbkg5y4fYjLylYHF.mjs → CfsYKmwU44jlvh2Y.mjs} +2 -2
  24. package/browser/esm/Ch1y4AkETfKCYDwf.mjs +106 -0
  25. package/browser/esm/{By1IJOkvZJSlXs5f.mjs → CnId_LC0EekuwaAF.mjs} +3 -3
  26. package/browser/esm/{BsAoK_t2sn8IHtAO.mjs → CtVSJjciTocAi-ph.mjs} +3 -3
  27. package/browser/esm/{C8tci3dfo5lzeoK-.mjs → CuQsEoKZJrSL989Q.mjs} +6 -6
  28. package/browser/esm/{Cl_OUigCV04_zrRy.mjs → Cv99zJfRtzJQmM9a.mjs} +2 -2
  29. package/browser/esm/{BCDAnHFMvOd9XS8K.mjs → Cxk-oWZzE2jq5ul6.mjs} +3 -3
  30. package/browser/esm/{CcJHwg-rLMcCymSD.mjs → D3XdTSymYMag6tor.mjs} +6 -6
  31. package/browser/esm/{BH4eDAxZdwheO7d_.mjs → D4jGaUxHOgVc4qN0.mjs} +3 -3
  32. package/browser/esm/{BvbN9V67wFhTfq1-.mjs → DAdhaGB933dfni3E.mjs} +3 -3
  33. package/browser/esm/{DpAlQza0e5h3GGHC.mjs → DBx1Y3oFzB6gv-LQ.mjs} +3 -3
  34. package/browser/esm/{DJVpra0HoPH-4P7P.mjs → DIAnBUXPTvYAp5fm.mjs} +3 -3
  35. package/browser/esm/{idh3Y0jksygPSI3A.mjs → DIJh9jY37iVFn-tE.mjs} +2 -2
  36. package/browser/esm/{Ci74yk0whfoAP1TL.mjs → DK1K-M9iJV-DK3lK.mjs} +2 -2
  37. package/browser/esm/{BNas8wZuvrN45dRi.mjs → DMhFcJsnKSKTDivl.mjs} +2 -2
  38. package/browser/esm/{BWdpv2xf6GCyd4Te.mjs → DMj9kkIWw9chI5_u.mjs} +5 -5
  39. package/browser/esm/DUpW8HMoEhD3C9l6.mjs +235 -0
  40. package/browser/esm/{DzATG8XMcG6mmYbx.mjs → DVJ5AK0zcqSACGov.mjs} +9 -9
  41. package/browser/esm/{DYDnkmllpYTwfWir.mjs → DVaykBKx4eEsP4MI.mjs} +4 -4
  42. package/browser/esm/{C67SLDHwhVlVIMo0.mjs → Dex65RXS_A5CnMg3.mjs} +3 -3
  43. package/browser/esm/{BYnzaHXySiV-sc6w.mjs → DfYtGsqDIMAG4Sp8.mjs} +2 -2
  44. package/browser/esm/{IlX2PgLxvyTQu4Fh.mjs → Dj0VEFe2ckEWgQjy.mjs} +5 -5
  45. package/browser/esm/{DKkKac2vbeui2lDy.mjs → DjCDJhBfVI9O_Sq1.mjs} +6 -6
  46. package/browser/esm/DjjmLQLxU_U4JB3n.mjs +973 -0
  47. package/browser/esm/{CutWdrVA-c3x8IkL.mjs → DmOrKFaiUUr5hlFl.mjs} +5 -4
  48. package/browser/esm/{Bvq5aZyp5E79JB-s.mjs → DoYSmj1LQHAAqt5b.mjs} +2 -2
  49. package/browser/esm/{Dz20q7S5vmDWlO0p.mjs → KhOxaZS8EeSaYFXZ.mjs} +2 -2
  50. package/browser/esm/{DAYPqhHN3aQ2StjU.mjs → PvNtCGveCLbLAP3e.mjs} +14 -14
  51. package/browser/esm/{DfI4-5XM6AbILSti.mjs → ROOxAZY7YyHDmPcQ.mjs} +4 -4
  52. package/browser/esm/{DFAphWcDUw-gVtAl.mjs → TfUaejwwWzu5qFVE.mjs} +3 -3
  53. package/browser/esm/{DsM-NpB32hloRRR8.mjs → ZhI7zxDSTWb1DfaE.mjs} +3 -3
  54. package/browser/esm/{DY_EGsyx-zNiJS_0.mjs → fqZt7Z0jR4illVKU.mjs} +5 -5
  55. package/browser/esm/index.mjs +278 -277
  56. package/browser/esm/{OHvsc940xI-m_8cc.mjs → r7bLyFzJfaGLKP_7.mjs} +2 -2
  57. package/browser/esm/{DR9y7k4jB7stGPaZ.mjs → tffjGixzP1Ze4DqB.mjs} +3 -3
  58. package/browser/esm/{D90Bb0GPEwqYkf6R.mjs → tiC8hseLz66gO5BS.mjs} +804 -713
  59. package/node/esm/{-Adgw5-ltK-rfp33.mjs → -Il_piuBrbndDROB.mjs} +2 -2
  60. package/node/esm/0cm_0VYweOBWmzi7.mjs +972 -0
  61. package/node/esm/{CexPhV2NPh5ZGHus.mjs → 1gdwmt5CrQy4cGTH.mjs} +2 -2
  62. package/node/esm/{dUUbrmGMCILl8EOr.mjs → 3Geel3fylTwbPuxf.mjs} +2 -2
  63. package/node/esm/{CFi_Yls-gurU_CX3.mjs → 4pRKBhUYhbbE6qVT.mjs} +2 -2
  64. package/node/esm/{jGsHbOHP90nnx_hJ.mjs → 9qIZWfzxSaxNk6Cm.mjs} +16 -15
  65. package/node/esm/B9uLfbf5gMGnoUjH.mjs +224 -0
  66. package/node/esm/{BxIyViNSP0STSrfA.mjs → BFO2WxwRNbu-UmKe.mjs} +3 -3
  67. package/node/esm/{q2Byx8RdDnHk8YyG.mjs → BIJXqUbAalnd-gXD.mjs} +2 -2
  68. package/node/esm/{C4eVfVm_Omyt6NbE.mjs → BIviFvkWx6eP4dMd.mjs} +12 -12
  69. package/node/esm/{Cx4tBEsm3SjAafcw.mjs → BTOCej61y3MazK6r.mjs} +2 -2
  70. package/node/esm/{5etzEfk-28CCELyT.mjs → BV9hUarSGd3mWC8o.mjs} +3 -3
  71. package/node/esm/{DGtbmp72kfRXLtDu.mjs → BX1cTEV3SpcqLcXx.mjs} +81 -80
  72. package/node/esm/{DOuASwH2Lf83hMLe.mjs → BZu-8gEXwIzW_YX9.mjs} +2 -2
  73. package/node/esm/{CX13ASkhdJ0ZSAY4.mjs → B_jOG6MlKoiboP3D.mjs} +3 -3
  74. package/node/esm/{DwA7rfXJgzoNvjax.mjs → BgObBW8ZUr50OufC.mjs} +8 -8
  75. package/node/esm/{BKCNFVrdc_gTnOoS.mjs → BhiuBl2z87xThV1b.mjs} +2 -2
  76. package/node/esm/{B26ot2vO6Hd47uH0.mjs → Bm054Lh36PSa5m1P.mjs} +2 -2
  77. package/node/esm/BtxNP8JWe16vSXAs.mjs +106 -0
  78. package/node/esm/BzT_zks-KORaryRo.mjs +118 -0
  79. package/node/esm/{Bg3Yu66oJr6mNvAR.mjs → C5dRM0ExMHpFgKd0.mjs} +3 -3
  80. package/node/esm/{BZK6UksX7r-GgRms.mjs → CQxu_KONf2yyKKnD.mjs} +2 -2
  81. package/node/esm/{BaFRVcYZjcLoMQtk.mjs → CdoFRzEug2L0LwNb.mjs} +7 -7
  82. package/node/esm/{DybPyX8U-EqXKarV.mjs → Ch7Ebxf0bFrlCJpW.mjs} +2 -2
  83. package/node/esm/{CzKFdVrPSDYOUdWI.mjs → CsQTJ4JQRxLcJDiZ.mjs} +2 -2
  84. package/node/esm/{BFv2GzY6NjmJggAg.mjs → CyKOmz26TaZSFxmi.mjs} +3 -3
  85. package/node/esm/D3TsBlOewIFj-VDW.mjs +294 -0
  86. package/node/esm/{Ca31PUiJBGowHeob.mjs → D4TlOO7hjvqTR2HX.mjs} +3 -3
  87. package/node/esm/{TgwnKYh-WPxEgmyr.mjs → DYNM5HfUK0JbGHsx.mjs} +2 -2
  88. package/node/esm/{B7vbn_dO_cZnGyGM.mjs → DhPNzztIuq9WJwCz.mjs} +3 -3
  89. package/node/esm/{ISBEql8s7AnELTpd.mjs → cl-bDkq8M4STBYJy.mjs} +2 -2
  90. package/node/esm/fazR-cWd-2-W82Nk.mjs +425 -0
  91. package/node/esm/index.mjs +3391 -2778
  92. package/node/esm/{D9Ga7FFJDOO3Dpfu.mjs → iyOc5Rm5x746Qd3R.mjs} +2 -2
  93. package/node/esm/{CORxK68HpwPUYA6O.mjs → klLaIOeBuqaYuz_q.mjs} +2 -2
  94. package/node/esm/{D_JpopAVQopM26cb.mjs → mmzQ-lse6yBavXnw.mjs} +603 -514
  95. package/node/esm/{CkW8xNdW45Xg7jy7.mjs → rpHmm4X81z1orjHr.mjs} +3 -3
  96. package/node/esm/{HlNuwtpYoOARa894.mjs → tRnEFhRlzQPziQif.mjs} +2 -2
  97. package/package.json +10 -10
  98. package/resources/locales/de/groups.cmd.json +3 -0
  99. package/resources/locales/de/ui.msg.json +41 -0
  100. package/resources/locales/en/groups.cmd.json +3 -0
  101. package/resources/locales/en/ui.msg.json +41 -0
  102. package/types/src/command/PresetPivotStylesCommandButton.d.ts +17 -0
  103. package/types/src/command/index.d.ts +1 -0
  104. package/types/src/dialog/PivotTableNewDialog.d.ts +11 -0
  105. package/types/src/filter/PivotMenu.d.ts +31 -0
  106. package/types/src/filter/index.d.ts +1 -0
  107. package/types/src/pivot/PivotChipMenu.d.ts +10 -0
  108. package/types/src/pivot/PivotPlugin.d.ts +3 -0
  109. package/types/src/pivot/PivotStyleCanvasPreview.d.ts +23 -0
  110. package/types/src/pivot/PivotTableHeader.d.ts +12 -0
  111. package/types/src/pivot/PivotValueSettingsDialog.d.ts +15 -0
  112. package/types/src/pivot/_pivotSource.d.ts +7 -0
  113. package/types/src/table/_drawStyleSwatch.d.ts +25 -0
  114. package/types/src/workbook/DefaultRenderers.d.ts +10 -4
  115. package/browser/esm/C4ir9dn7q0RUoOm_.mjs +0 -319
  116. package/browser/esm/DEUzUShfyJLvgd6_.mjs +0 -1379
  117. package/browser/esm/xe1B8ohea8qfZlFg.mjs +0 -582
  118. package/node/esm/CKtnUYKjsTf7dYKS.mjs +0 -318
  119. package/node/esm/vf5X26EJO7Q1b8Ln.mjs +0 -1379
@@ -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.15
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 { ICellRange as e } from "@sheetxl/sdk";
8
8
  import { addRangeAnnotations as t, clearRangeAnnotations as n, useModelListener as r } 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.15
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 { IBorders as e } from "@sheetxl/sdk";
8
8
  import { StaticBorderRenderer as t } from "@sheetxl/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 "./BxneVAXjYuQbCUQo.mjs";
8
+ import { useCallbackRef as t, useTranslator as n } from "@sheetxl/utils-react";
9
+ import { memo as r, useMemo as i, useState as a } from "react";
10
+ import { OptionsDialog as ee } from "@sheetxl/utils-mui";
11
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
12
+ import { Box as c, List as te, ListItemButton as l, ListItemText as u, MenuItem as d, Tab as f, Tabs as p, TextField as m, Typography as h } from "@mui/material";
13
+ import { messageKey as g } from "@sheetxl/utils";
14
+ var _ = ["Ok", "Cancel"], v = [
15
+ "sum",
16
+ "count",
17
+ "average",
18
+ "max",
19
+ "min",
20
+ "product",
21
+ "countNums",
22
+ "stdDev",
23
+ "stdDevp",
24
+ "var",
25
+ "varp"
26
+ ], y = {
27
+ sum: g("pivot.function.sum"),
28
+ count: g("pivot.function.count"),
29
+ average: g("pivot.function.average"),
30
+ max: g("pivot.function.max"),
31
+ min: g("pivot.function.min"),
32
+ product: g("pivot.function.product"),
33
+ countNums: g("pivot.function.countNums"),
34
+ stdDev: g("pivot.function.stdDev"),
35
+ stdDevp: g("pivot.function.stdDevp"),
36
+ var: g("pivot.function.var"),
37
+ varp: g("pivot.function.varp")
38
+ }, ne = [
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
+ ], re = {
55
+ normal: g("pivotValueSettings.kind.normal"),
56
+ percentOfTotal: g("pivotValueSettings.kind.percentOfTotal"),
57
+ percentOfCol: g("pivotValueSettings.kind.percentOfCol"),
58
+ percentOfRow: g("pivotValueSettings.kind.percentOfRow"),
59
+ percent: g("pivotValueSettings.kind.percent"),
60
+ percentOfParentRow: g("pivotValueSettings.kind.percentOfParentRow"),
61
+ percentOfParentCol: g("pivotValueSettings.kind.percentOfParentCol"),
62
+ percentOfParent: g("pivotValueSettings.kind.percentOfParent"),
63
+ difference: g("pivotValueSettings.kind.difference"),
64
+ percentDiff: g("pivotValueSettings.kind.percentDiff"),
65
+ runTotal: g("pivotValueSettings.kind.runTotal"),
66
+ percentOfRunningTotal: g("pivotValueSettings.kind.percentOfRunningTotal"),
67
+ rankAscending: g("pivotValueSettings.kind.rankAscending"),
68
+ rankDescending: g("pivotValueSettings.kind.rankDescending"),
69
+ index: g("pivotValueSettings.kind.index")
70
+ }, b = /* @__PURE__ */ new Set([
71
+ "percent",
72
+ "percentOfParent",
73
+ "difference",
74
+ "percentDiff",
75
+ "runTotal",
76
+ "percentOfRunningTotal",
77
+ "rankAscending",
78
+ "rankDescending"
79
+ ]), x = /* @__PURE__ */ new Set([
80
+ "percent",
81
+ "difference",
82
+ "percentDiff"
83
+ ]), S = "(previous)", C = r((r) => {
84
+ let { initialValue: g, onOption: C, onValidateOption: w, onInput: T, onDone: E, options: D = _, defaultOption: O = D?.[0], cancelOption: k = "Cancel", sx: A, ...j } = r, M = n(), N = g.value, P = i(() => ({
85
+ name: N.getName(),
86
+ fn: N.getFunction(),
87
+ showAs: N.getShowAs(),
88
+ numberFormat: N.getNumberFormat()
89
+ }), [N]), F = i(() => N.getPivotTable().getFields(), [N]), [I, L] = a("function"), [R, z] = a(P.name), [B, V] = a(!1), [H, U] = a(P.fn), [W, G] = a(P.showAs?.kind ?? "normal"), [K, q] = a(P.showAs?.baseField ?? F[0]?.getName() ?? ""), [J, Y] = a(P.showAs?.baseItem ?? S), [X, ie] = a(P.numberFormat), [Z, ae] = a(!1), oe = i(() => {
90
+ let e = F.find((e) => e.getName() === K);
91
+ return e ? e.getItems().map((e) => e.getName()) : [];
92
+ }, [F, K]), Q = (e) => {
93
+ U(e), B || z(N.getCaptionFor(e));
94
+ }, se = () => {
95
+ let e = W === "normal" ? null : {
96
+ kind: W,
97
+ ...b.has(W) ? { baseField: K } : {},
98
+ ...x.has(W) ? { baseItem: J } : {}
99
+ }, t = R.trim();
100
+ return {
101
+ ...H === P.fn ? {} : { function: H },
102
+ ...(n = e, r = P.showAs, (n?.kind ?? null) !== (r?.kind ?? null) || n?.baseField !== r?.baseField || n?.baseItem !== r?.baseItem ? { showAs: e } : {}),
103
+ ...Z && X !== P.numberFormat ? { numberFormat: X } : {},
104
+ ...B && t && t !== N.getCaptionFor(H) ? { name: t } : {}
105
+ };
106
+ var n, r;
107
+ }, $ = t(async (e) => {
108
+ let t = e === k;
109
+ t || T?.({
110
+ value: N,
111
+ changes: se()
112
+ }, e), C?.(e, t, e === O), E?.();
113
+ }, [
114
+ T,
115
+ E,
116
+ C,
117
+ k,
118
+ O,
119
+ N,
120
+ H,
121
+ W,
122
+ K,
123
+ J,
124
+ X,
125
+ Z,
126
+ R,
127
+ B
128
+ ]);
129
+ return o(ee, {
130
+ title: M("pivotValueSettings.title"),
131
+ options: D,
132
+ onDone: E,
133
+ onOption: (e) => $(e),
134
+ onValidateOption: w,
135
+ defaultOption: O,
136
+ cancelOption: k,
137
+ autoFocusSel: ".autoFocus input",
138
+ sx: {
139
+ width: "440px",
140
+ ...A
141
+ },
142
+ ...j,
143
+ children: s(c, {
144
+ sx: {
145
+ display: "flex",
146
+ flexDirection: "column",
147
+ gap: (e) => e.spacing(1.5)
148
+ },
149
+ children: [
150
+ o(h, {
151
+ variant: "body2",
152
+ className: "pivot-source-name",
153
+ children: M("pivotValueSettings.sourceName", { name: N.getField().getName() })
154
+ }),
155
+ o(m, {
156
+ className: "autoFocus",
157
+ size: "small",
158
+ label: M("pivotValueSettings.customName"),
159
+ value: R,
160
+ onChange: (e) => {
161
+ z(e.target.value), V(!0);
162
+ }
163
+ }),
164
+ s(p, {
165
+ value: I,
166
+ onChange: (e, t) => L(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
+ o(f, {
182
+ value: "function",
183
+ label: M("pivotValueSettings.tabFunction")
184
+ }),
185
+ o(f, {
186
+ value: "showAs",
187
+ label: M("pivotValueSettings.tabShowAs")
188
+ }),
189
+ o(f, {
190
+ value: "numberFormat",
191
+ label: M("pivotValueSettings.tabNumberFormat")
192
+ })
193
+ ]
194
+ }),
195
+ s(c, {
196
+ sx: {
197
+ height: "300px",
198
+ overflow: "auto"
199
+ },
200
+ children: [
201
+ I === "function" ? o(te, {
202
+ dense: !0,
203
+ disablePadding: !0,
204
+ role: "listbox",
205
+ "aria-label": M("pivotValueSettings.tabFunction"),
206
+ className: "pivot-functions",
207
+ children: v.map((e) => o(l, {
208
+ role: "option",
209
+ "aria-selected": e === H,
210
+ selected: e === H,
211
+ onClick: () => Q(e),
212
+ onDoubleClick: () => {
213
+ Q(e), $(O);
214
+ },
215
+ children: o(u, { primary: M(y[e]) })
216
+ }, e))
217
+ }) : null,
218
+ I === "showAs" ? s(c, {
219
+ sx: {
220
+ display: "flex",
221
+ flexDirection: "column",
222
+ gap: (e) => e.spacing(2),
223
+ pt: 1
224
+ },
225
+ children: [
226
+ o(m, {
227
+ select: !0,
228
+ size: "small",
229
+ className: "pivot-show-as",
230
+ label: M("pivotValueSettings.showAs"),
231
+ value: W,
232
+ onChange: (e) => G(e.target.value),
233
+ children: ne.map((e) => o(d, {
234
+ value: e,
235
+ children: M(re[e])
236
+ }, e))
237
+ }),
238
+ o(m, {
239
+ select: !0,
240
+ size: "small",
241
+ className: "pivot-base-field",
242
+ label: M("pivotValueSettings.baseField"),
243
+ value: K,
244
+ disabled: !b.has(W),
245
+ onChange: (e) => {
246
+ q(e.target.value), Y(S);
247
+ },
248
+ children: F.map((e) => o(d, {
249
+ value: e.getName(),
250
+ children: e.getName()
251
+ }, e.getName()))
252
+ }),
253
+ s(m, {
254
+ select: !0,
255
+ size: "small",
256
+ className: "pivot-base-item",
257
+ label: M("pivotValueSettings.baseItem"),
258
+ value: J,
259
+ disabled: !x.has(W),
260
+ onChange: (e) => Y(e.target.value),
261
+ children: [
262
+ o(d, {
263
+ value: S,
264
+ children: M("pivotValueSettings.previous")
265
+ }),
266
+ o(d, {
267
+ value: "(next)",
268
+ children: M("pivotValueSettings.next")
269
+ }),
270
+ oe.map((e) => o(d, {
271
+ value: e,
272
+ children: e
273
+ }, e))
274
+ ]
275
+ })
276
+ ]
277
+ }) : null,
278
+ I === "numberFormat" ? o(e, {
279
+ value: X,
280
+ onChange: (e) => {
281
+ ie(e), ae(!0);
282
+ },
283
+ onCommit: () => {
284
+ $(O);
285
+ }
286
+ }) : null
287
+ ]
288
+ })
289
+ ]
290
+ })
291
+ });
292
+ });
293
+ C.displayName = "PivotValueSettingsDialog";
294
+ export { C as PivotValueSettingsDialog, C as default };
@@ -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.15
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 { useTranslator as e } from "@sheetxl/utils-react";
8
8
  import { useState as t } from "react";
@@ -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 t, useRef as n } from "react";
9
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
10
+ import { Box as a, Typography as o } from "@mui/material";
11
+ var s = (e, t, n) => () => {
12
+ t === e && n();
13
+ }, c = t((t) => {
14
+ let { label: i, value: a, min: o, max: s, step: c = 1, decimals: l = !1, width: u, disabled: d, onChange: f } = t, p = n(null), m = (e) => Math.max(o, Math.min(s, e)), h = (e) => {
15
+ let t = l ? parseFloat(e) : parseInt(e, 10);
16
+ return Number.isNaN(t) ? null : m(t);
17
+ };
18
+ return r(e, {
19
+ label: i,
20
+ value: String(a),
21
+ disabled: d,
22
+ hideAdornment: !0,
23
+ helperText: null,
24
+ propsInput: {
25
+ type: "number",
26
+ min: o,
27
+ max: s,
28
+ step: c
29
+ },
30
+ sx: {
31
+ width: u,
32
+ minWidth: 0,
33
+ "& input": { textAlign: "right" }
34
+ },
35
+ onChangeInput: (e) => {
36
+ let t = h(e);
37
+ t !== null && (p.current = t, f(t));
38
+ },
39
+ onDone: (e) => {
40
+ let t = h(e) ?? m(0), n = p.current;
41
+ p.current = null, n !== t && f(t);
42
+ }
43
+ });
44
+ });
45
+ c.displayName = "FormatNumberField";
46
+ var l = {
47
+ display: "flex",
48
+ flexDirection: "column",
49
+ gap: 1.5,
50
+ minWidth: 0
51
+ }, u = t((e) => {
52
+ let { label: t, children: n, sx: s, ...c } = e;
53
+ return i(a, {
54
+ sx: {
55
+ display: "flex",
56
+ flexDirection: "column",
57
+ gap: .75,
58
+ minWidth: 0,
59
+ ...s
60
+ },
61
+ ...c,
62
+ children: [t ? r(o, {
63
+ variant: "caption",
64
+ component: "div",
65
+ sx: {
66
+ color: "text.secondary",
67
+ lineHeight: 1.4
68
+ },
69
+ children: t
70
+ }) : null, n]
71
+ });
72
+ });
73
+ u.displayName = "FormatSection";
74
+ var d = t((e) => {
75
+ let { children: t, sx: n, ...i } = e;
76
+ return r(a, {
77
+ sx: {
78
+ display: "flex",
79
+ flexWrap: "wrap",
80
+ alignItems: "center",
81
+ gap: 1,
82
+ minWidth: 0,
83
+ ...n
84
+ },
85
+ ...i,
86
+ children: t
87
+ });
88
+ });
89
+ d.displayName = "FormatRow";
90
+ var f = t((e) => {
91
+ let { children: t, sx: n, ...i } = e;
92
+ return r(a, {
93
+ sx: {
94
+ display: "flex",
95
+ alignItems: "center",
96
+ gap: .25,
97
+ flexWrap: "wrap",
98
+ minWidth: 0,
99
+ ...n
100
+ },
101
+ ...i,
102
+ children: t
103
+ });
104
+ });
105
+ f.displayName = "FormatButtonGroup";
106
+ export { s as a, u as i, c as n, l as o, d as r, f as t };
@@ -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.15
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 e, i as t, n, r, t as i } from "./DMDi2lOps0veJKsM.mjs";
7
+ import { a as e, i as t, n, r, t as i } from "./Bo_18UwXk7eK6QaM.mjs";
8
8
  import { VERSION as a } from "@sheetxl/sdk";
9
9
  import { LogoTextNoPaddingIcon as o } from "@sheetxl/react";
10
10
  import { DynamicIcon as s, useTranslator as c } from "@sheetxl/utils-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.15
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 "./BNas8wZuvrN45dRi.mjs";
7
+ import { t as e } from "./DMhFcJsnKSKTDivl.mjs";
8
8
  import t, { createContext as n, memo as r, useCallback as i, useContext as a, useEffect as o, useLayoutEffect as s, useMemo as c, useReducer as l, useRef as u, useState as d } from "react";
9
9
  import { jsx as f } from "react/jsx-runtime";
10
10
  import { Box as p } from "@mui/material";
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.15
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 { n as e } from "./DYDnkmllpYTwfWir.mjs";
8
- import { t } from "./Ci74yk0whfoAP1TL.mjs";
9
- import { i as n } from "./DR9y7k4jB7stGPaZ.mjs";
10
- import { t as r } from "./EFtp_C3sBnP3Nrns.mjs";
7
+ import { n as e } from "./DVaykBKx4eEsP4MI.mjs";
8
+ import { t } from "./DK1K-M9iJV-DK3lK.mjs";
9
+ import { i as n } from "./tffjGixzP1Ze4DqB.mjs";
10
+ import { t as r } from "./BGg5TSbhaUimavRf.mjs";
11
11
  import { InputField as i } from "./index.mjs";
12
12
  import { useModelSync as a, useWorkbook as o } from "@sheetxl/react";
13
13
  import { DynamicIcon as s, NotifierType as c, useCallbackRef as l, useNotifier as u, useTranslator as d } 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.15
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 { DynamicIcon as e, KeyCodes as t, KeyModifiers as n, ReactUtils as r, keyEventCanonicals as i, keyStrokeToCanonical as a, useTranslator as o } from "@sheetxl/utils-react";
8
8
  import s, { useCallback as c, useEffect as l, useMemo as u, useRef as ee, useState as d } from "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.15
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 "./Buzx8_zQYPX4DR7v.mjs";
7
+ import { t as e } from "./CLgar8cakFC22X3w.mjs";
8
8
  import { ReactUtils as t } from "@sheetxl/utils-react";
9
9
  import { Component as n, PureComponent as r, memo as i, useCallback as a, useLayoutEffect as o, useState as s } from "react";
10
10
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.15
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 "./Ci74yk0whfoAP1TL.mjs";
8
- import { i as t } from "./DR9y7k4jB7stGPaZ.mjs";
9
- import { i as n, n as r, t as i } from "./BfPTOOKhwUojRTef.mjs";
10
- import { n as a, t as o } from "./DY_EGsyx-zNiJS_0.mjs";
7
+ import { t as e } from "./DK1K-M9iJV-DK3lK.mjs";
8
+ import { i as t } from "./tffjGixzP1Ze4DqB.mjs";
9
+ import { i as n, n as r, t as i } from "./Bp4rtdIKIFzTeJvr.mjs";
10
+ import { n as a, t as o } from "./fqZt7Z0jR4illVKU.mjs";
11
11
  import { ICondition as s, IDataValidation as c } from "@sheetxl/sdk";
12
12
  import { useModelSync as l } from "@sheetxl/react";
13
13
  import { DynamicIcon as u, useTranslator as d } from "@sheetxl/utils-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.15
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 { i as e, n as t, r as n } from "./DJVpra0HoPH-4P7P.mjs";
7
+ import { i as e, n as t, r as n } from "./DIAnBUXPTvYAp5fm.mjs";
8
8
  import { useReferenceMode as r, useWorkbook as i } from "@sheetxl/react";
9
9
  import { useCallbackRef as a, useTranslator as o } from "@sheetxl/utils-react";
10
10
  import { memo as s, useMemo as c, useRef as l, useState as u } from "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.15
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 { n as e } from "./DYDnkmllpYTwfWir.mjs";
7
+ import { n as e } from "./DVaykBKx4eEsP4MI.mjs";
8
8
  import { InputField as t } from "./index.mjs";
9
9
  import { useReferenceMode as n } from "@sheetxl/react";
10
10
  import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-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.15
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 { n as e } from "./DYDnkmllpYTwfWir.mjs";
7
+ import { n as e } from "./DVaykBKx4eEsP4MI.mjs";
8
8
  import { InputField as t } from "./index.mjs";
9
9
  import { useReferenceMode as n } from "@sheetxl/react";
10
10
  import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-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.15
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 { n as e, t } from "./DYDnkmllpYTwfWir.mjs";
7
+ import { n as e, t } from "./DVaykBKx4eEsP4MI.mjs";
8
8
  import { FunctionArgIcons as n, FunctionPreviewContent as r, FunctionSignature as i, NamedItemLabel as a, argTypeKey as o, assembleCall as s, createFunctionDescriptor as c, createFunctionHint as l, formatEvalValue as u, toArgRows as d, useWorkbook as f } from "@sheetxl/react";
9
9
  import { DynamicIcon as p, KeyCodes as m, useCallbackRef as h, useTranslator as ee } from "@sheetxl/utils-react";
10
10
  import { memo as g, useEffect as _, useId as te, useMemo as v, useRef as y, useState as b } from "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.15
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 n } 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.15
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 { Color as e } from "@sheetxl/sdk";
8
8
  import { useGridColorScheme as t, useModelListener as n, useWorkbook as r } 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.15
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
  function e(t) {
8
8
  var n, r, i = "";
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.15
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 { r as e, t } from "./BkxJY_YjMAEvhmuy.mjs";
8
- import { t as n } from "./Bqba-3J9i8HsmusR.mjs";
9
- import { c as r, l as i, o as a, r as o, s, t as c } from "./Ci74yk0whfoAP1TL.mjs";
7
+ import { r as e, t } from "./C8M4U_SswTd6auZd.mjs";
8
+ import { t as n } from "./CYOaHHiaC7Ip5VLn.mjs";
9
+ import { c as r, l as i, o as a, r as o, s, t as c } from "./DK1K-M9iJV-DK3lK.mjs";
10
10
  import { Color as l, IBorders as u, IColor as d, IConditionalFormat as f } from "@sheetxl/sdk";
11
11
  import { COLOR_SCALE_PRESETS as p, DATA_BAR_PRESETS as m, ICON_SET_GALLERY_BLOCKS as h, IconSetGlyphs as g, describeConditionalIcon as _, getConditionalIconSet as v, iconSetPreset as y, useWorkbook as b } from "@sheetxl/react";
12
12
  import { DynamicIcon as ee, themeSurfaceProps as x, useCallbackRef as S, useCommandButtonEntry as C, useCommands as w, useTranslator as T } from "@sheetxl/utils-react";