@sheetxl/studio-mui 0.8.0-beta.10 → 0.8.0-beta.12

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 (150) hide show
  1. package/browser/esm/{ByeL_BZuJ2kl8gtf.mjs → 0IBZhOJaVmzJxuTv.mjs} +1 -1
  2. package/browser/esm/2nRxqrNYbmEn8fS8.mjs +386 -0
  3. package/browser/esm/{fb126BNj3F8URR19.mjs → 7fVZXXuonYb6Z7FU.mjs} +3 -3
  4. package/browser/esm/BAzhmMX4Fk_qnUTp.mjs +414 -0
  5. package/browser/esm/BGL3x0W74D7qZXlf.mjs +318 -0
  6. package/browser/esm/BHGr2gsFofTdAFxq.mjs +515 -0
  7. package/browser/esm/{DU3J8Gcf-WpBxNYg.mjs → BKhcJI-G15D3kGap.mjs} +4 -4
  8. package/browser/esm/BNbub9weuqm3mcoF.mjs +335 -0
  9. package/browser/esm/BSv9MVJaz1DVEffm.mjs +975 -0
  10. package/browser/esm/BWfLpYmd3cSgJ0C6.mjs +141 -0
  11. package/browser/esm/BZqwbIE8qzjSOYcJ.mjs +582 -0
  12. package/browser/esm/BZy9xUrYpAtnKeji.mjs +1288 -0
  13. package/browser/esm/{CIu1bjPJe_x31Oww.mjs → BnkwC5rsg9LZyhoP.mjs} +3 -3
  14. package/browser/esm/BpJsBv413cNQpyg0.mjs +319 -0
  15. package/browser/esm/BpVrgbVISiTDyFR3.mjs +197 -0
  16. package/browser/esm/BsngRDhvVYGVBJeK.mjs +1546 -0
  17. package/browser/esm/{C1Rp2hZrApo5MUc8.mjs → C29TKq47CbXs652l.mjs} +2 -2
  18. package/browser/esm/{CEvZe2cZK-voZTif.mjs → C8p2iMad_NNCwGI_.mjs} +5 -5
  19. package/browser/esm/CBzXksWnb-1gGEWZ.mjs +212 -0
  20. package/browser/esm/{IQLeaAbtGTipUsOD.mjs → CFIAWgpU3UyepLBn.mjs} +25 -24
  21. package/browser/esm/CJD4jF4m9cBGHzr_.mjs +31 -0
  22. package/browser/esm/{CjznclrKqJRi7u9O.mjs → CMc7G7cevxzPGxr9.mjs} +2 -2
  23. package/browser/esm/{B1Yp_uy1vFHcJB3U.mjs → CYtULLhY9M2m3DeH.mjs} +1 -1
  24. package/browser/esm/CeF35ZeFP28Do5Zx.mjs +1379 -0
  25. package/browser/esm/{xKiLJKiLxto8SayF.mjs → CjYKDxU4EP2Kf_vo.mjs} +2 -2
  26. package/browser/esm/{D8al_cJ4U-NgzwoK.mjs → Cq82lvdjyBvlJ8xJ.mjs} +19 -17
  27. package/browser/esm/{X1Db3b_7b_7OuCk6.mjs → CuRxFAO42JkQvMEx.mjs} +1 -1
  28. package/browser/esm/Cvk2yY90hpgXWMAt.mjs +103 -0
  29. package/browser/esm/D0slJycx3nq53qmf.mjs +14 -0
  30. package/browser/esm/{9eKCkvqpMQwqcXiw.mjs → D2jzliMwAo2ENpfi.mjs} +1 -1
  31. package/browser/esm/D5Fn0Hqllwv5HY6i.mjs +7581 -0
  32. package/browser/esm/D5N4nGaZsXtrHAOh.mjs +831 -0
  33. package/browser/esm/D7AqPfyhMiuda5l5.mjs +412 -0
  34. package/browser/esm/DHZA48ZMCETvHmeP.mjs +161 -0
  35. package/browser/esm/DX2_vf7WX6uRLaOZ.mjs +94 -0
  36. package/browser/esm/DaxpbAF1ShkT7hNU.mjs +490 -0
  37. package/browser/esm/{D6S8kVTzOjCn0-SK.mjs → Db3oHfXiRtcH015t.mjs} +162 -156
  38. package/browser/esm/Dt47Huh1l3C4_5_w.mjs +87 -0
  39. package/browser/esm/{DmCQbW4zwkT_Rq88.mjs → DtPt0phL7m56YfHZ.mjs} +1 -1
  40. package/browser/esm/{CoSiOS-og0zFw4Ws.mjs → DtTDaXmnWUoG4VBO.mjs} +2 -2
  41. package/browser/esm/{DHY19rkSiiRZxShC.mjs → DuuyN4-7K6_io2Py.mjs} +3 -3
  42. package/browser/esm/{yZxC4qUENOlMhVUH.mjs → NeGeLF3gbGMZyV6E.mjs} +1 -1
  43. package/browser/esm/PY3Br5Bo_TxcCnCU.mjs +252 -0
  44. package/browser/esm/WIhvQtBkGiw-oFUs.mjs +2566 -0
  45. package/browser/esm/WgIvwAENeO8LANax.mjs +437 -0
  46. package/browser/esm/{DBtc4lku0uHVcqWn.mjs → Yjq3p_7eVGFw2Jod.mjs} +3 -3
  47. package/browser/esm/index.mjs +1053 -192
  48. package/browser/esm/jFRFCWlkD7Dsrhkh.mjs +236 -0
  49. package/browser/esm/lKXEDVt2ow1NlWJj.mjs +392 -0
  50. package/browser/esm/{Blaj2R5hYxtLAW__.mjs → oC0OwOddhOD0OoCJ.mjs} +6 -6
  51. package/browser/esm/{sFOAxZpxXo-qvDSp.mjs → tIKqpsA0vNXH9EgU.mjs} +1 -1
  52. package/browser/esm/{5cbK03T_Oh3tNdR7.mjs → u84rSnESjxqB6gay.mjs} +1 -1
  53. package/licenses/dependencies.txt +94 -94
  54. package/node/esm/{BcwMb6CyVfvEwbHn.mjs → B8Ls4Eh1k8-Yiry_.mjs} +1 -1
  55. package/node/esm/{CKu1AtRgyltyEdEN.mjs → B9X3n8MglL4OitAV.mjs} +1 -1
  56. package/node/esm/{ETK6T6G0SIcFXDe5.mjs → BBGoyqs2L_ccSH1e.mjs} +40 -40
  57. package/node/esm/BLv99aovW4R3C5PE.mjs +515 -0
  58. package/node/esm/BUGU_5lUtnCRlp3n.mjs +519 -0
  59. package/node/esm/BalROFG_oa9PFs9Q.mjs +141 -0
  60. package/node/esm/{ah3CUg4-VmNstGk_.mjs → BqVxnA1mo52ubjdf.mjs} +2 -2
  61. package/node/esm/C3FCh9xju2SccUIE.mjs +1283 -0
  62. package/node/esm/{Bb1sLMqXWKjdve23.mjs → C4F6WY8M4nkLyxdb.mjs} +2 -2
  63. package/node/esm/CKWeipCqqpLnLE5e.mjs +391 -0
  64. package/node/esm/CTnVNfz4eqFnM92M.mjs +212 -0
  65. package/node/esm/Cfi_ly8fBDZZdiZT.mjs +72 -0
  66. package/node/esm/CgKa6JuyJ1tTodev.mjs +1703 -0
  67. package/node/esm/{cqzp431iNSLWictb.mjs → Cq53M7bAUSXMNq1f.mjs} +22 -22
  68. package/node/esm/{BYsG3KYVmxSe_CIQ.mjs → Cr8AYWUoU-XVt0hu.mjs} +1 -1
  69. package/node/esm/CyuOE595I2e-U4cG.mjs +236 -0
  70. package/node/esm/D72CupF9mfy2D1Xa.mjs +94 -0
  71. package/node/esm/{DNSjK5DAH3M14Qbc.mjs → DGDHFK8okuVbRCe5.mjs} +1 -1
  72. package/node/esm/{B8SQfjKjzYHLxzZR.mjs → DJFkALt4XrwkMbnU.mjs} +163 -157
  73. package/node/esm/DJpwI8PlKBI2rk0r.mjs +319 -0
  74. package/node/esm/{DZzvTQxIKr9LbEsA.mjs → DQaGPUYbgL4Y5YZW.mjs} +32 -30
  75. package/node/esm/{D9rzScOA9pEYFrtz.mjs → DsNYnq4NtYBxPmeA.mjs} +20 -20
  76. package/node/esm/DygDgOpa9sJ6YFVS.mjs +385 -0
  77. package/node/esm/Dz0Hg87UcJ-awwiI.mjs +489 -0
  78. package/node/esm/M7YxvRPGCuxuk9aK.mjs +142 -0
  79. package/node/esm/QNjtpX8rIpqGGLEJ.mjs +1379 -0
  80. package/node/esm/{B_jRGdwGFkudwmL-.mjs → ZzvsynJTCSuChYS-.mjs} +1 -1
  81. package/node/esm/{ci8d-mF1H9wnYzix.mjs → di_8-pXh90j4BO4j.mjs} +1 -1
  82. package/node/esm/dm8dmEaTIqfmgyeL.mjs +412 -0
  83. package/node/esm/{D6oQL8knsPpgdXuk.mjs → fmya3XQnTGyQisvT.mjs} +2 -2
  84. package/node/esm/gPYAb_A0T5ZwcQ1E.mjs +318 -0
  85. package/node/esm/index.mjs +8915 -13417
  86. package/node/esm/wB8xMpyJ_NvE16yG.mjs +975 -0
  87. package/node/esm/zGAcd4Jr7wkvXDBS.mjs +197 -0
  88. package/package.json +9 -9
  89. package/resources/locales/de/groups.cmd.json +4 -0
  90. package/resources/locales/de/ui.msg.json +100 -1
  91. package/resources/locales/en/groups.cmd.json +4 -0
  92. package/resources/locales/en/ui.msg.json +100 -1
  93. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
  94. package/types/src/anomalies/AnomaliesPlugin.d.ts +5 -0
  95. package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
  96. package/types/src/anomalies/index.d.ts +3 -0
  97. package/types/src/border/BorderPopupButton.d.ts +1 -1
  98. package/types/src/border/BorderTemplateIcon.d.ts +6 -1
  99. package/types/src/chart/ChartFormatPanel.d.ts +20 -0
  100. package/types/src/chart/ChartPlugin.d.ts +6 -0
  101. package/types/src/chart/index.d.ts +3 -0
  102. package/types/src/color/ColorPopupButton.d.ts +1 -1
  103. package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
  104. package/types/src/command/DocThemeCommandButton.d.ts +1 -1
  105. package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
  106. package/types/src/command/FontSizeCommandButton.d.ts +1 -1
  107. package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
  108. package/types/src/command/LanguageCommandButton.d.ts +1 -1
  109. package/types/src/command/LocaleCommandButton.d.ts +1 -1
  110. package/types/src/command/index.d.ts +1 -0
  111. package/types/src/comments/CommentCard.d.ts +2 -2
  112. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +1 -1
  113. package/types/src/conditions/ConditionEditor.d.ts +1 -1
  114. package/types/src/conditions/OperatorAndParamEditor.d.ts +1 -1
  115. package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
  116. package/types/src/conditions/useFormulaOption.d.ts +2 -2
  117. package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
  118. package/types/src/fill/PatternPopupButton.d.ts +1 -1
  119. package/types/src/format/BorderPreview.d.ts +11 -4
  120. package/types/src/format/useFormatSelection.d.ts +4 -4
  121. package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
  122. package/types/src/formulaBar/MobileFormulaBar.d.ts +18 -6
  123. package/types/src/formulaBar/MobileInputToolbar.d.ts +9 -3
  124. package/types/src/formulaBar/useFormulaBarSession.d.ts +6 -3
  125. package/types/src/index.d.ts +15 -6
  126. package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
  127. package/types/src/named/NamedDetailsPanel.d.ts +2 -2
  128. package/types/src/protection/ProtectedCellsPanel.d.ts +2 -2
  129. package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
  130. package/types/src/protection/index.d.ts +1 -1
  131. package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +2 -2
  132. package/types/src/statusBar/PendingStatus.d.ts +19 -0
  133. package/types/src/statusBar/index.d.ts +1 -0
  134. package/types/src/studio/StudioProps.d.ts +10 -10
  135. package/types/src/template/TemplatePanel.d.ts +5 -1
  136. package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
  137. package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
  138. package/types/src/workbook/DefaultRenderers.d.ts +31 -19
  139. package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
  140. package/types/src/workbook/WorkbookElement.d.ts +5 -4
  141. package/types/src/workbook/WorkbookStrip.d.ts +8 -7
  142. package/types/src/workbook/index.d.ts +1 -1
  143. package/browser/esm/Biy7bhzzzPb5sfRN.mjs +0 -152
  144. package/browser/esm/COv-m-c2byCgvU3M.mjs +0 -14861
  145. package/browser/esm/CtEFHbzYNvYjDYvi.mjs +0 -236
  146. package/browser/esm/Die9NXVFveHvcCT-.mjs +0 -4205
  147. package/browser/esm/sam1KGQZ59B_fADz.mjs +0 -1941
  148. package/node/esm/BYVLi0md4AYuDsB_.mjs +0 -236
  149. package/node/esm/BYwXhrEwkRAt9nJS.mjs +0 -71
  150. package/node/esm/Cmt8Wv806N7NmE4Y.mjs +0 -3344
@@ -0,0 +1,319 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.12
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { t as e } from "./CKWeipCqqpLnLE5e.mjs";
8
+ import { PresetChip as t } from "./index.mjs";
9
+ import { externalBookFileName as n, externalBookLocation as r } from "@sheetxl/sdk";
10
+ import { DynamicIcon as a, NotifierType as i, useNotifier as l, useTranslator as s } from "@sheetxl/utils-react";
11
+ import { forwardRef as o, memo as d, useMemo as c, useReducer as h, useState as x } from "react";
12
+ import { SimpleTooltip as m } from "@sheetxl/utils-mui";
13
+ import { jsx as u, jsxs as g } from "react/jsx-runtime";
14
+ import { Box as p, Button as k, FormControl as f, FormControlLabel as b, FormLabel as y, Radio as L, RadioGroup as w, Tab as v, Tabs as S, Typography as C } from "@mui/material";
15
+ import { messageKey as W } from "@sheetxl/utils";
16
+ var E = ({ item: e }) => {
17
+ const t = s(), n = e.getSheetNames(), r = [];
18
+ let a = !1;
19
+ for (let t = 0; t < n.length; t++) {
20
+ const i = e.getSheetData(t);
21
+ i && (r.push(n[t]), i.refreshError && (a = !0));
22
+ }
23
+ return g(p, {
24
+ sx: {
25
+ display: "flex",
26
+ flexDirection: "column",
27
+ gap: (e) => e.spacing(.5)
28
+ },
29
+ children: [
30
+ u(C, {
31
+ variant: "caption",
32
+ sx: { color: "text.secondary" },
33
+ children: r.length > 0 ? t("externalLink.cached", { sheets: r.join(", ") }) : t("externalLink.cachedNone")
34
+ }),
35
+ a ? u(C, {
36
+ variant: "caption",
37
+ sx: { color: "error.main" },
38
+ children: t("externalLink.refreshError")
39
+ }) : null,
40
+ u(C, {
41
+ variant: "caption",
42
+ sx: { color: "text.secondary" },
43
+ children: t("externalLink.dependents", { count: e.getDependents().length })
44
+ })
45
+ ]
46
+ });
47
+ }, M = d((e) => {
48
+ const { size: n = 28, ...r } = e, i = s();
49
+ return u(t, {
50
+ className: "sxl-external-link-chip",
51
+ title: i("externalLink.linkedWorkbook"),
52
+ sx: {
53
+ width: "auto",
54
+ minWidth: 1.7 * n + "px",
55
+ height: `${n}px`,
56
+ color: "text.secondary"
57
+ },
58
+ ...r,
59
+ children: u(a, {
60
+ iconKey: "ExternalLinked",
61
+ size: Math.round(.7 * n)
62
+ })
63
+ });
64
+ });
65
+ M.displayName = "ExternalLinkChip";
66
+ var N = ({ item: e }) => {
67
+ const t = r(e);
68
+ if (!t) return null;
69
+ const n = Math.max(t.lastIndexOf("/"), t.lastIndexOf("\\")), a = -1 === n ? "" : t.substring(0, n + 1), i = -1 === n ? t : t.substring(n + 1);
70
+ return u(m, {
71
+ title: t,
72
+ children: g(p, {
73
+ className: "sxl-external-link-location",
74
+ sx: {
75
+ display: "flex",
76
+ alignItems: "baseline",
77
+ minWidth: 0,
78
+ typography: "subtitle2",
79
+ fontWeight: 600
80
+ },
81
+ children: [a ? u(C, {
82
+ variant: "subtitle2",
83
+ sx: {
84
+ fontWeight: 600,
85
+ minWidth: 0,
86
+ overflow: "hidden",
87
+ textOverflow: "ellipsis",
88
+ whiteSpace: "nowrap"
89
+ },
90
+ children: a
91
+ }) : null, u(C, {
92
+ variant: "subtitle2",
93
+ sx: {
94
+ fontWeight: 600,
95
+ flex: "0 0 auto",
96
+ whiteSpace: "nowrap"
97
+ },
98
+ children: i
99
+ })]
100
+ })
101
+ });
102
+ }, A = d(o((t, r) => {
103
+ const { workbook: a, ...o } = t, d = s(), h = l(), x = c(() => ({
104
+ key: "external-link",
105
+ messageKeys: {
106
+ none: W("externalLink.none"),
107
+ delete: W("externalLink.breakLink"),
108
+ search: W("externalLink.search"),
109
+ clearSearch: W("externalLink.clearSearch"),
110
+ noMatches: W("externalLink.noMatches")
111
+ },
112
+ getItems: (e) => e.getExternalBooks().getItems(),
113
+ subscribe: (e, t) => {
114
+ const n = e.getExternalBooks().addListeners({ onCollectionChange: () => t.onChange() }, { transactional: !1 }), r = e.getCalculation().addListeners({ onComplete: () => t.onChange() }, { transactional: !1 }), a = e.addListeners({ onProtectionChange: () => t.onChange() }, { transactional: !1 });
115
+ return () => {
116
+ n?.(), r?.(), a?.();
117
+ };
118
+ },
119
+ isReadOnly: (e) => !e.getProtection().isStructureAllowed(),
120
+ getItemKey: (e) => e.getId(),
121
+ delete: (e, t) => {
122
+ e.breakLink();
123
+ },
124
+ getSearchText: (e) => [
125
+ n(e),
126
+ e.getDisplayName(),
127
+ ...e.getSheetNames(),
128
+ ...e.getSources().map((e) => e.target)
129
+ ].join("\n"),
130
+ CardMedia: () => u(M, { size: 32 }),
131
+ getCardTitle: (e) => n(e),
132
+ CardSubtitle: N,
133
+ CardBody: (e) => u(E, { ...e })
134
+ }), []), m = !a.getProtection().isStructureAllowed(), f = a.getExternalBooks().getCount() > 0, b = c(() => {
135
+ const e = {
136
+ flex: "0 0 auto",
137
+ textTransform: "none",
138
+ whiteSpace: "nowrap"
139
+ };
140
+ return g(p, {
141
+ sx: {
142
+ display: "flex",
143
+ gap: .5,
144
+ flex: "0 0 auto"
145
+ },
146
+ children: [u(k, {
147
+ size: "small",
148
+ disabled: m || !f,
149
+ sx: e,
150
+ onClick: () => {
151
+ a.getExternalBooks().refreshAll().then((e) => {
152
+ const t = {
153
+ refreshed: 0,
154
+ failed: 0,
155
+ unavailable: 0
156
+ };
157
+ for (const n of e) t[n.status]++;
158
+ 0 === t.refreshed && 0 === t.failed ? h.showMessage?.(d("externalLink.refreshUnavailable"), { type: i.Warning }) : h.showMessage?.(d("externalLink.refreshSummary", t), { type: t.failed ? i.Warning : i.Info });
159
+ }, (e) => {
160
+ h.showMessage?.(e.message, { type: i.Error });
161
+ });
162
+ },
163
+ children: d("externalLink.refreshAll")
164
+ }), u(k, {
165
+ size: "small",
166
+ disabled: m || !f,
167
+ sx: e,
168
+ onClick: () => {
169
+ try {
170
+ a.getExternalBooks().breakAll();
171
+ } catch (e) {
172
+ h.showMessage?.(e.message, { type: i.Error });
173
+ }
174
+ },
175
+ children: d("externalLink.breakAll")
176
+ })]
177
+ });
178
+ }, [
179
+ a,
180
+ m,
181
+ f,
182
+ h,
183
+ d
184
+ ]);
185
+ return u(e, {
186
+ ref: r,
187
+ workbook: a,
188
+ descriptor: x,
189
+ headerActions: b,
190
+ ...o
191
+ });
192
+ }));
193
+ A.displayName = "ExternalLinksPanel";
194
+ var I = [
195
+ "userSet",
196
+ "always",
197
+ "never"
198
+ ], T = {
199
+ userSet: W("externalLink.updateLinks.userSet"),
200
+ always: W("externalLink.updateLinks.always"),
201
+ never: W("externalLink.updateLinks.never")
202
+ }, z = d(o((e, t) => {
203
+ const { workbook: n, ...r } = e, a = s(), [i, l] = h((e) => e + 1, 0), o = n.getUpdateLinks() ?? "userSet", d = !n.getProtection().isStructureAllowed();
204
+ return g(p, {
205
+ ref: t,
206
+ ...r,
207
+ sx: {
208
+ display: "flex",
209
+ flexDirection: "column",
210
+ boxSizing: "border-box",
211
+ gap: (e) => e.spacing(1.5),
212
+ padding: (e) => e.spacing(1.5),
213
+ overflowX: "hidden",
214
+ overflowY: "auto"
215
+ },
216
+ children: [g(f, {
217
+ disabled: d,
218
+ children: [u(y, {
219
+ sx: { typography: "body2" },
220
+ children: a("externalLink.updateLinks.label")
221
+ }), u(w, {
222
+ value: o,
223
+ onChange: (e, t) => {
224
+ n.setUpdateLinks(t), l();
225
+ },
226
+ children: I.map((e) => u(b, {
227
+ value: e,
228
+ control: u(L, { size: "small" }),
229
+ label: u(C, {
230
+ variant: "body2",
231
+ children: a(T[e])
232
+ })
233
+ }, e))
234
+ })]
235
+ }), u(C, {
236
+ variant: "caption",
237
+ sx: { color: "text.secondary" },
238
+ children: a("externalLink.updateLinks.note")
239
+ })]
240
+ });
241
+ }));
242
+ z.displayName = "ExternalLinkSettingsTab";
243
+ var B = {
244
+ links: W("externalLink.tab.links"),
245
+ settings: W("externalLink.tab.settings")
246
+ }, D = Object.keys(B), j = (e) => D.includes(e) ? e : null, H = d((e) => {
247
+ const { model: t, args: n, defaultTab: r = "links", entryKey: a, frame: i, ref: l, ...o } = e, d = s(), [c, h] = x(() => j(n?.tab) ?? r), [m, k] = x(n);
248
+ if (n !== m) {
249
+ k(n);
250
+ const e = j(n?.tab);
251
+ e && h(e);
252
+ }
253
+ return t ? g(p, {
254
+ ref: l,
255
+ ...o,
256
+ sx: {
257
+ display: "flex",
258
+ flexDirection: "column",
259
+ width: "100%",
260
+ minWidth: 0,
261
+ flex: "1 1 auto",
262
+ height: "100%",
263
+ minHeight: 0,
264
+ overflowX: "hidden"
265
+ },
266
+ children: [u(S, {
267
+ value: c,
268
+ onChange: (e, t) => h(t),
269
+ variant: "fullWidth",
270
+ sx: {
271
+ width: "100%",
272
+ flex: "0 0 auto",
273
+ minHeight: "36px",
274
+ borderBottom: 1,
275
+ borderColor: "divider",
276
+ "& .MuiTab-root": {
277
+ minHeight: "36px",
278
+ textTransform: "none",
279
+ pt: .5,
280
+ pb: .5,
281
+ px: .5,
282
+ minWidth: 0
283
+ }
284
+ },
285
+ children: D.map((e) => u(v, {
286
+ value: e,
287
+ label: d(B[e])
288
+ }, e))
289
+ }), g(p, {
290
+ sx: {
291
+ flex: "1 1 auto",
292
+ minHeight: 0,
293
+ minWidth: 0,
294
+ width: "100%",
295
+ display: "flex",
296
+ flexDirection: "column"
297
+ },
298
+ children: ["links" === c ? u(A, {
299
+ workbook: t,
300
+ style: {
301
+ flex: "1 1 auto",
302
+ minHeight: 0,
303
+ minWidth: 0,
304
+ width: "100%"
305
+ }
306
+ }) : null, "settings" === c ? u(z, {
307
+ workbook: t,
308
+ style: {
309
+ flex: "1 1 auto",
310
+ minHeight: 0,
311
+ minWidth: 0,
312
+ width: "100%"
313
+ }
314
+ }) : null]
315
+ })]
316
+ }) : null;
317
+ });
318
+ H.displayName = "ExternalLinksTaskPane";
319
+ export { H as ExternalLinksTaskPane, H as default };
@@ -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.10
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  import { ScalarType as t } from "@sheetxl/sdk";
8
- import { useTranslator as e } from "@sheetxl/utils-react";
9
- import { Fragment as o, memo as r, useMemo as i } from "react";
8
+ import { useTranslator as o } from "@sheetxl/utils-react";
9
+ import { Fragment as e, memo as r, useMemo as i } from "react";
10
10
  import { OptionsDialog as a } from "@sheetxl/utils-mui";
11
11
  import { jsx as l, jsxs as n } from "react/jsx-runtime";
12
12
  import { Box as s, Typography as c } from "@mui/material";
@@ -17,54 +17,56 @@ var u = ["Ok"], g = [
17
17
  t.Boolean,
18
18
  t.Error
19
19
  ], p = r((r) => {
20
- const { context: p, onDone: m, options: b = u, defaultOption: k = b?.[0], sx: S, ...x } = r, y = e(), h = i(() => {
21
- const e = p?.().getWorkbook();
22
- if (!e) return null;
23
- const o = (e) => {
24
- const o = e.getTypedCounts(g);
20
+ const { context: p, onDone: m, options: b = u, defaultOption: k = b?.[0], sx: S, ...x } = r, y = o(), h = i(() => {
21
+ const o = p?.().getWorkbook();
22
+ if (!o) return null;
23
+ const e = (o) => {
24
+ const e = o.getTypedCounts(g);
25
25
  return [
26
26
  {
27
27
  labelKey: d("workbookStatistics.cellsWithData"),
28
- value: e.getCount().toLocaleString()
28
+ value: o.getCount().toLocaleString()
29
29
  },
30
30
  {
31
31
  labelKey: d("workbookStatistics.numbers"),
32
- value: (o[t.Number] ?? 0).toLocaleString()
32
+ value: (e[t.Number] ?? 0).toLocaleString()
33
33
  },
34
34
  {
35
35
  labelKey: d("workbookStatistics.text"),
36
- value: (o[t.String] ?? 0).toLocaleString()
36
+ value: (e[t.String] ?? 0).toLocaleString()
37
37
  },
38
38
  {
39
39
  labelKey: d("workbookStatistics.booleans"),
40
- value: (o[t.Boolean] ?? 0).toLocaleString()
40
+ value: (e[t.Boolean] ?? 0).toLocaleString()
41
41
  },
42
42
  {
43
43
  labelKey: d("workbookStatistics.errors"),
44
- value: (o[t.Error] ?? 0).toLocaleString()
44
+ value: (e[t.Error] ?? 0).toLocaleString()
45
45
  }
46
46
  ];
47
- }, r = e.getSelectedSheet(), i = r.getUsedRange()?.getCoords(), a = i ? r.getRange({
48
- rowStart: i.rowEnd,
49
- colStart: i.colEnd,
50
- rowEnd: i.rowEnd,
51
- colEnd: i.colEnd
47
+ }, r = {
48
+ titleKey: d("workbookStatistics.workbook"),
49
+ subTitle: null,
50
+ rows: [{
51
+ labelKey: d("workbookStatistics.sheets"),
52
+ value: o.getWorksheets().getCount().toLocaleString()
53
+ }, ...e(o.getStats({ onError: "ignore" }))]
54
+ }, i = o.getSelectedWorksheet();
55
+ if (!i) return [r];
56
+ const a = i.getUsedRange()?.getCoords(), l = a ? i.getRange({
57
+ rowStart: a.rowEnd,
58
+ colStart: a.colEnd,
59
+ rowEnd: a.rowEnd,
60
+ colEnd: a.colEnd
52
61
  }).getAddress() : "–";
53
62
  return [{
54
63
  titleKey: d("workbookStatistics.currentSheet"),
55
- subTitle: r.getName(),
64
+ subTitle: i.getName(),
56
65
  rows: [{
57
66
  labelKey: d("workbookStatistics.endOfSheet"),
58
- value: a
59
- }, ...o(r.getStats({ onError: "ignore" }))]
60
- }, {
61
- titleKey: d("workbookStatistics.workbook"),
62
- subTitle: null,
63
- rows: [{
64
- labelKey: d("workbookStatistics.sheets"),
65
- value: e.getSheets().getCount().toLocaleString()
66
- }, ...o(e.getStats({ onError: "ignore" }))]
67
- }];
67
+ value: l
68
+ }, ...e(i.getStats({ onError: "ignore" }))]
69
+ }, r];
68
70
  }, [p]);
69
71
  return l(a, {
70
72
  title: y("workbookStatistics.title"),
@@ -107,7 +109,7 @@ var u = ["Ok"], g = [
107
109
  columnGap: (t) => t.spacing(2),
108
110
  rowGap: (t) => t.spacing(.25)
109
111
  },
110
- children: t.rows.map((t) => n(o, { children: [l(c, {
112
+ children: t.rows.map((t) => n(e, { children: [l(c, {
111
113
  variant: "body2",
112
114
  component: "div",
113
115
  color: "text.secondary",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.10
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -11,21 +11,21 @@ import { memo as r, useMemo as c, useRef as s, useState as u } from "react";
11
11
  import { OptionsDialog as m, optionIdentity as p } from "@sheetxl/utils-mui";
12
12
  import { jsx as f } from "react/jsx-runtime";
13
13
  var x = r((r) => {
14
- const { initialValue: x = null, context: d, onOption: g, onDone: h, onInput: D, options: C, defaultOption: S, cancelOption: y = "Cancel", sx: O, ...k } = r, M = a(), v = n(), [F, w] = u("search"), [H, N] = u("string" == typeof x ? null : x), [I, j] = u(null), A = c(() => C ?? o(F, M), [
15
- C,
14
+ const { initialValue: x = null, context: d, onOption: g, onDone: h, onInput: D, options: k, defaultOption: C, cancelOption: y = "Cancel", sx: O, ...M } = r, S = a(), v = n(), [F, w] = u("search"), [H, N] = u("string" == typeof x ? null : x), [I, j] = u(null), A = c(() => k ?? o(F, S), [
15
+ k,
16
16
  F,
17
- M
18
- ]), B = S ?? A[0], T = p(B), [V] = u(() => {
19
- const e = v?.getSelectedSheet()?.getSelectedCell();
17
+ S
18
+ ]), B = C ?? A[0], T = p(B), [V] = u(() => {
19
+ const e = v?.getSelectedWorksheet()?.getSelectedCell();
20
20
  return e ? {
21
21
  ...e.getCoords(),
22
- scope: e.getSheet().getName()
22
+ scope: e.getWorksheet().getName()
23
23
  } : void 0;
24
- }), b = !!i().getMode()?.activeInput, z = s(!1), q = l((t, o, i) => {
24
+ }), W = !!i().getMode()?.activeInput, b = s(!1), z = l((t, o, i) => {
25
25
  if (o || t !== e.Next) if (o || t !== e.Back) {
26
26
  if (!o && H) {
27
27
  const e = "arguments" === F && !!I;
28
- z.current = !e, D?.(e ? I : H);
28
+ b.current = !e, D?.(e ? I : H);
29
29
  }
30
30
  g?.(t, o, i), h?.();
31
31
  } else w("search");
@@ -37,23 +37,23 @@ var x = r((r) => {
37
37
  D,
38
38
  g,
39
39
  h
40
- ]), E = l(async (t) => t === e.Back || !!H, [H]), G = l(async () => {
41
- !0 === await E(T) && q(T, !1, !0);
40
+ ]), q = l(async (t) => t === e.Back || !!H, [H]), E = l(async () => {
41
+ !0 === await q(T) && z(T, !1, !0);
42
42
  }, [
43
- E,
43
+ q,
44
44
  T,
45
- q
45
+ z
46
46
  ]);
47
47
  return f(m, {
48
- title: M("insertFunction.dialogTitle"),
48
+ title: S("insertFunction.dialogTitle"),
49
49
  options: A,
50
- onOption: q,
51
- onValidateOption: E,
50
+ onOption: z,
51
+ onValidateOption: q,
52
52
  defaultOption: B,
53
53
  cancelOption: y,
54
54
  autoFocusSel: ".autoFocus",
55
- suspendModal: b,
56
- restoreFocus: () => !z.current,
55
+ suspendModal: W,
56
+ restoreFocus: () => !b.current,
57
57
  sx: {
58
58
  width: "460px",
59
59
  maxHeight: "calc(100dvh - 16px)",
@@ -79,7 +79,7 @@ var x = r((r) => {
79
79
  "& .MuiDialogActions-root": { flexShrink: 0 },
80
80
  ...O
81
81
  },
82
- ...k,
82
+ ...M,
83
83
  children: f(t, {
84
84
  className: "insert-function-wizard",
85
85
  context: d,
@@ -87,7 +87,7 @@ var x = r((r) => {
87
87
  selected: H,
88
88
  onChangeSelected: N,
89
89
  onActivate: () => {
90
- G();
90
+ E();
91
91
  },
92
92
  onChangeCall: j,
93
93
  workbook: v,