@sheetxl/studio-mui 0.8.0-beta.10 → 0.8.0-beta.11
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.
- package/browser/esm/0BWO0bLZ8Vm_dKd2.mjs +582 -0
- package/browser/esm/BAbq4-I5f5oUiNaF.mjs +141 -0
- package/browser/esm/BED6h6YAwCf1HEQJ.mjs +161 -0
- package/browser/esm/{CEvZe2cZK-voZTif.mjs → BXhNFzyEGokTF-BL.mjs} +5 -5
- package/browser/esm/BYE9gCDWKyx6mnVs.mjs +381 -0
- package/browser/esm/{DBtc4lku0uHVcqWn.mjs → BjvD_4t2KGsZP5V8.mjs} +3 -3
- package/browser/esm/{DU3J8Gcf-WpBxNYg.mjs → BknfGJouygmnpFIU.mjs} +4 -4
- package/browser/esm/{D8al_cJ4U-NgzwoK.mjs → BlE_8o8tO2AgAlaj.mjs} +19 -17
- package/browser/esm/BokqKEpU6TFgfRs6.mjs +252 -0
- package/browser/esm/{DHY19rkSiiRZxShC.mjs → Brsh5yscJ_4uKFXp.mjs} +3 -3
- package/browser/esm/Bujtz_Guj88d03vI.mjs +831 -0
- package/browser/esm/Buqcl7J75MJrhpVE.mjs +1379 -0
- package/browser/esm/BvhYPwX3GrRaO9CM.mjs +319 -0
- package/browser/esm/C0wlMAIn9iREPK6w.mjs +87 -0
- package/browser/esm/C8JU4KsMasmLvojI.mjs +103 -0
- package/browser/esm/{CjznclrKqJRi7u9O.mjs → C9pIZVACtl9unFOp.mjs} +2 -2
- package/browser/esm/CBD4RiRKbbZtSXV-.mjs +318 -0
- package/browser/esm/{Blaj2R5hYxtLAW__.mjs → CEtXsBzEjEKk9GOj.mjs} +6 -6
- package/browser/esm/{CIu1bjPJe_x31Oww.mjs → COlZu93LRwuBvjE-.mjs} +3 -3
- package/browser/esm/{CoSiOS-og0zFw4Ws.mjs → CTjqDD-swFMZzI-Y.mjs} +2 -2
- package/browser/esm/CWkOgdL7mOKiTR62.mjs +975 -0
- package/browser/esm/ChSVxkPTIjgcC8PL.mjs +412 -0
- package/browser/esm/{5cbK03T_Oh3tNdR7.mjs → ClBvNPeNCAhuVWrG.mjs} +1 -1
- package/browser/esm/CyLn6zOOp_biA3xU.mjs +335 -0
- package/browser/esm/CynTY0oNtyJnoaBq.mjs +14 -0
- package/browser/esm/{xKiLJKiLxto8SayF.mjs → D3rRUK4dIM5gUSmj.mjs} +2 -2
- package/browser/esm/D9ISy7VkaRRFJl46.mjs +515 -0
- package/browser/esm/{fb126BNj3F8URR19.mjs → DDc6rDuU9JAo1DH_.mjs} +3 -3
- package/browser/esm/DDczwkXhz_MHub4z.mjs +197 -0
- package/browser/esm/{X1Db3b_7b_7OuCk6.mjs → DEv4pIEgYr5C7etm.mjs} +1 -1
- package/browser/esm/DG21x7RKDpge6zAE.mjs +31 -0
- package/browser/esm/DJOOed_OtB-XT7f3.mjs +437 -0
- package/browser/esm/{9eKCkvqpMQwqcXiw.mjs → DKtJxrpN0axtuQ0l.mjs} +1 -1
- package/browser/esm/DRSCS6aLiYmPjUz1.mjs +1543 -0
- package/browser/esm/{ByeL_BZuJ2kl8gtf.mjs → DTpRkgsTm_zYnWfW.mjs} +1 -1
- package/browser/esm/DV6i9RQZfJiKtEaJ.mjs +2552 -0
- package/browser/esm/DdcZrjMLWVukWcU5.mjs +7473 -0
- package/browser/esm/Di3BUxA0SqFWWgeg.mjs +94 -0
- package/browser/esm/DnGaP5F7mLwCGUYG.mjs +408 -0
- package/browser/esm/DpD4fg2WcyiKX_2K.mjs +414 -0
- package/browser/esm/{C1Rp2hZrApo5MUc8.mjs → Ds3XRkne7HxcXD8J.mjs} +2 -2
- package/browser/esm/{sFOAxZpxXo-qvDSp.mjs → DsoNMWDwHZP8UXQd.mjs} +1 -1
- package/browser/esm/G0Inqm6Eqw47dMpa.mjs +212 -0
- package/browser/esm/{B1Yp_uy1vFHcJB3U.mjs → HViD4Wfoi0mmqk9w.mjs} +1 -1
- package/browser/esm/LZoYSQAYV2wksnDv.mjs +386 -0
- package/browser/esm/{CtEFHbzYNvYjDYvi.mjs → QgaAIDUMmBQBsXP9.mjs} +8 -8
- package/browser/esm/{D6S8kVTzOjCn0-SK.mjs → YThnrg3PadGs7B4j.mjs} +51 -51
- package/browser/esm/index.mjs +1028 -170
- package/browser/esm/ttjcNHcFn8O6hfnd.mjs +1288 -0
- package/browser/esm/{yZxC4qUENOlMhVUH.mjs → w_JrR69vEpvoyeMy.mjs} +1 -1
- package/browser/esm/{DmCQbW4zwkT_Rq88.mjs → xFqkfN8QMCxvsetB.mjs} +1 -1
- package/browser/esm/{IQLeaAbtGTipUsOD.mjs → zqilJefihVd7At2T.mjs} +22 -21
- package/licenses/dependencies.txt +94 -94
- package/node/esm/{BYsG3KYVmxSe_CIQ.mjs → 1bf4gn-2vld4BZ9u.mjs} +1 -1
- package/node/esm/{CKu1AtRgyltyEdEN.mjs → 3WghtBXAvCDwcVrq.mjs} +1 -1
- package/node/esm/{cqzp431iNSLWictb.mjs → 4HmLH0bPVJCZLgik.mjs} +22 -22
- package/node/esm/{BYVLi0md4AYuDsB_.mjs → B0bdb_6p7fQI_ivo.mjs} +28 -28
- package/node/esm/BIMkjQUwG4Ih-6Sh.mjs +142 -0
- package/node/esm/BNg4QQY0WAPLE0q7.mjs +141 -0
- package/node/esm/BPzcW4BejRqso338.mjs +72 -0
- package/node/esm/BR45ogAR-hY2bE60.mjs +318 -0
- package/node/esm/BlN7G0DVC24zauig.mjs +197 -0
- package/node/esm/{ah3CUg4-VmNstGk_.mjs → Bph-sR3l6AYWeuxK.mjs} +2 -2
- package/node/esm/CPq-MIdEnc-53JpF.mjs +319 -0
- package/node/esm/CSAnTp5rwId0DUb8.mjs +380 -0
- package/node/esm/CWcv7UVXF8IUB0PC.mjs +1379 -0
- package/node/esm/{D9rzScOA9pEYFrtz.mjs → CYIoK22I6Yvv12_x.mjs} +20 -20
- package/node/esm/CZyA9uD4SkTvqp_G.mjs +1283 -0
- package/node/esm/{ci8d-mF1H9wnYzix.mjs → CjC6s3RUJQNCF7mP.mjs} +1 -1
- package/node/esm/{D6oQL8knsPpgdXuk.mjs → CuMePia6i_8yfJ6S.mjs} +9 -9
- package/node/esm/CvRbu8JPxFarsSR-.mjs +412 -0
- package/node/esm/{DNSjK5DAH3M14Qbc.mjs → CyafafEgfmjLqE5O.mjs} +1 -1
- package/node/esm/D-xqQ5qOSd6WrzwJ.mjs +94 -0
- package/node/esm/DLqBHdFp6wvm6EGs.mjs +212 -0
- package/node/esm/{BcwMb6CyVfvEwbHn.mjs → DMXLxp3T0E0SRTQc.mjs} +1 -1
- package/node/esm/{DZzvTQxIKr9LbEsA.mjs → DWqvf4H5F2wMnZ0L.mjs} +32 -30
- package/node/esm/DatM6eEYPpAtIMy-.mjs +405 -0
- package/node/esm/Db3dbaYLKUO66T9s.mjs +1689 -0
- package/node/esm/{B_jRGdwGFkudwmL-.mjs → DdEzhVqYTrGODXrz.mjs} +1 -1
- package/node/esm/DeZJlLk8WJ3BLtLs.mjs +975 -0
- package/node/esm/DfCuL8AUxMFoEG2s.mjs +519 -0
- package/node/esm/{Bb1sLMqXWKjdve23.mjs → Do-zCKziWhoG5eAv.mjs} +2 -2
- package/node/esm/{B8SQfjKjzYHLxzZR.mjs → DpJ2gmZJioCyq8La.mjs} +67 -67
- package/node/esm/{ETK6T6G0SIcFXDe5.mjs → XEDcegsv5AGKBfu2.mjs} +40 -40
- package/node/esm/index.mjs +8941 -13558
- package/node/esm/yCUxQuqVuC4DHKPx.mjs +385 -0
- package/node/esm/zITjZ7R4raDqhP-n.mjs +515 -0
- package/package.json +9 -9
- package/resources/locales/de/ui.msg.json +97 -0
- package/resources/locales/en/ui.msg.json +97 -0
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
- package/types/src/anomalies/AnomaliesPlugin.d.ts +5 -0
- package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
- package/types/src/anomalies/index.d.ts +3 -0
- package/types/src/border/BorderTemplateIcon.d.ts +6 -1
- package/types/src/chart/ChartFormatPanel.d.ts +20 -0
- package/types/src/chart/ChartPlugin.d.ts +6 -0
- package/types/src/chart/index.d.ts +3 -0
- package/types/src/comments/CommentCard.d.ts +2 -2
- package/types/src/conditions/useFormulaOption.d.ts +2 -2
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
- package/types/src/format/BorderPreview.d.ts +11 -4
- package/types/src/format/useFormatSelection.d.ts +4 -4
- package/types/src/formulaBar/MobileFormulaBar.d.ts +18 -6
- package/types/src/formulaBar/MobileInputToolbar.d.ts +9 -3
- package/types/src/formulaBar/useFormulaBarSession.d.ts +6 -3
- package/types/src/index.d.ts +15 -6
- package/types/src/protection/ProtectedCellsPanel.d.ts +2 -2
- package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
- package/types/src/protection/index.d.ts +1 -1
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +2 -2
- package/types/src/workbook/DefaultRenderers.d.ts +2 -2
- package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
- package/browser/esm/Biy7bhzzzPb5sfRN.mjs +0 -152
- package/browser/esm/COv-m-c2byCgvU3M.mjs +0 -14861
- package/browser/esm/Die9NXVFveHvcCT-.mjs +0 -4205
- package/browser/esm/sam1KGQZ59B_fADz.mjs +0 -1941
- package/node/esm/BYwXhrEwkRAt9nJS.mjs +0 -71
- package/node/esm/Cmt8Wv806N7NmE4Y.mjs +0 -3344
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
|
|
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 "./BED6h6YAwCf1HEQJ.mjs";
|
|
8
|
+
import { t } from "./BYE9gCDWKyx6mnVs.mjs";
|
|
9
|
+
import { externalBookFileName as n, externalBookLocation as r } from "@sheetxl/sdk";
|
|
10
|
+
import { DynamicIcon as i, NotifierType as a, useNotifier as o, useTranslator as s } from "@sheetxl/utils-react";
|
|
11
|
+
import { forwardRef as c, memo as l, useMemo as u, useReducer as d, useState as f } from "react";
|
|
12
|
+
import { SimpleTooltip as p } from "@sheetxl/utils-mui";
|
|
13
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
14
|
+
import { Box as g, Button as _, FormControl as v, FormControlLabel as y, FormLabel as b, Radio as x, RadioGroup as S, Tab as C, Tabs as w, Typography as T } from "@mui/material";
|
|
15
|
+
import { messageKey as E } from "@sheetxl/utils";
|
|
16
|
+
var D = ({ item: e }) => {
|
|
17
|
+
let t = s(), n = e.getSheetNames(), r = [], i = !1;
|
|
18
|
+
for (let t = 0; t < n.length; t++) {
|
|
19
|
+
let a = e.getSheetData(t);
|
|
20
|
+
a && (r.push(n[t]), a.refreshError && (i = !0));
|
|
21
|
+
}
|
|
22
|
+
return h(g, {
|
|
23
|
+
sx: {
|
|
24
|
+
display: "flex",
|
|
25
|
+
flexDirection: "column",
|
|
26
|
+
gap: (e) => e.spacing(.5)
|
|
27
|
+
},
|
|
28
|
+
children: [
|
|
29
|
+
m(T, {
|
|
30
|
+
variant: "caption",
|
|
31
|
+
sx: { color: "text.secondary" },
|
|
32
|
+
children: r.length > 0 ? t("externalLink.cached", { sheets: r.join(", ") }) : t("externalLink.cachedNone")
|
|
33
|
+
}),
|
|
34
|
+
i ? m(T, {
|
|
35
|
+
variant: "caption",
|
|
36
|
+
sx: { color: "error.main" },
|
|
37
|
+
children: t("externalLink.refreshError")
|
|
38
|
+
}) : null,
|
|
39
|
+
m(T, {
|
|
40
|
+
variant: "caption",
|
|
41
|
+
sx: { color: "text.secondary" },
|
|
42
|
+
children: t("externalLink.dependents", { count: e.getDependents().length })
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
}, O = l((t) => {
|
|
47
|
+
let { size: n = 28, ...r } = t, a = s();
|
|
48
|
+
return m(e, {
|
|
49
|
+
className: "sxl-external-link-chip",
|
|
50
|
+
title: a("externalLink.linkedWorkbook"),
|
|
51
|
+
sx: {
|
|
52
|
+
width: "auto",
|
|
53
|
+
minWidth: 1.7 * n + "px",
|
|
54
|
+
height: `${n}px`,
|
|
55
|
+
color: "text.secondary"
|
|
56
|
+
},
|
|
57
|
+
...r,
|
|
58
|
+
children: m(i, {
|
|
59
|
+
iconKey: "ExternalLinked",
|
|
60
|
+
size: Math.round(.7 * n)
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
O.displayName = "ExternalLinkChip";
|
|
65
|
+
var k = ({ item: e }) => {
|
|
66
|
+
let t = r(e);
|
|
67
|
+
if (!t) return null;
|
|
68
|
+
let n = Math.max(t.lastIndexOf("/"), t.lastIndexOf("\\")), i = n === -1 ? "" : t.substring(0, n + 1), a = n === -1 ? t : t.substring(n + 1);
|
|
69
|
+
return m(p, {
|
|
70
|
+
title: t,
|
|
71
|
+
children: h(g, {
|
|
72
|
+
className: "sxl-external-link-location",
|
|
73
|
+
sx: {
|
|
74
|
+
display: "flex",
|
|
75
|
+
alignItems: "baseline",
|
|
76
|
+
minWidth: 0,
|
|
77
|
+
typography: "subtitle2",
|
|
78
|
+
fontWeight: 600
|
|
79
|
+
},
|
|
80
|
+
children: [i ? m(T, {
|
|
81
|
+
variant: "subtitle2",
|
|
82
|
+
sx: {
|
|
83
|
+
fontWeight: 600,
|
|
84
|
+
minWidth: 0,
|
|
85
|
+
overflow: "hidden",
|
|
86
|
+
textOverflow: "ellipsis",
|
|
87
|
+
whiteSpace: "nowrap"
|
|
88
|
+
},
|
|
89
|
+
children: i
|
|
90
|
+
}) : null, m(T, {
|
|
91
|
+
variant: "subtitle2",
|
|
92
|
+
sx: {
|
|
93
|
+
fontWeight: 600,
|
|
94
|
+
flex: "0 0 auto",
|
|
95
|
+
whiteSpace: "nowrap"
|
|
96
|
+
},
|
|
97
|
+
children: a
|
|
98
|
+
})]
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
}, A = l(c((e, r) => {
|
|
102
|
+
let { workbook: i, ...c } = e, l = s(), d = o(), f = u(() => ({
|
|
103
|
+
key: "external-link",
|
|
104
|
+
messageKeys: {
|
|
105
|
+
none: E("externalLink.none"),
|
|
106
|
+
delete: E("externalLink.breakLink"),
|
|
107
|
+
search: E("externalLink.search"),
|
|
108
|
+
clearSearch: E("externalLink.clearSearch"),
|
|
109
|
+
noMatches: E("externalLink.noMatches")
|
|
110
|
+
},
|
|
111
|
+
getItems: (e) => e.getExternalBooks().getItems(),
|
|
112
|
+
subscribe: (e, t) => {
|
|
113
|
+
let n = e.getExternalBooks().addListeners({ onCollectionChange: () => t.onChange() }, { transactional: !1 }), r = e.getCalculation().addListeners({ onComplete: () => t.onChange() }, { transactional: !1 }), i = e.addListeners({ onProtectionChange: () => t.onChange() }, { transactional: !1 });
|
|
114
|
+
return () => {
|
|
115
|
+
n?.(), r?.(), i?.();
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
isReadOnly: (e) => !e.getProtection().isStructureAllowed(),
|
|
119
|
+
getItemKey: (e) => e.getId(),
|
|
120
|
+
delete: (e, t) => {
|
|
121
|
+
e.breakLink();
|
|
122
|
+
},
|
|
123
|
+
getSearchText: (e) => [
|
|
124
|
+
n(e),
|
|
125
|
+
e.getDisplayName(),
|
|
126
|
+
...e.getSheetNames(),
|
|
127
|
+
...e.getSources().map((e) => e.target)
|
|
128
|
+
].join("\n"),
|
|
129
|
+
CardMedia: () => m(O, { size: 32 }),
|
|
130
|
+
getCardTitle: (e) => n(e),
|
|
131
|
+
CardSubtitle: k,
|
|
132
|
+
CardBody: (e) => m(D, { ...e })
|
|
133
|
+
}), []), p = !i.getProtection().isStructureAllowed(), v = i.getExternalBooks().getCount() > 0, y = u(() => {
|
|
134
|
+
let e = {
|
|
135
|
+
flex: "0 0 auto",
|
|
136
|
+
textTransform: "none",
|
|
137
|
+
whiteSpace: "nowrap"
|
|
138
|
+
};
|
|
139
|
+
return h(g, {
|
|
140
|
+
sx: {
|
|
141
|
+
display: "flex",
|
|
142
|
+
gap: .5,
|
|
143
|
+
flex: "0 0 auto"
|
|
144
|
+
},
|
|
145
|
+
children: [m(_, {
|
|
146
|
+
size: "small",
|
|
147
|
+
disabled: p || !v,
|
|
148
|
+
sx: e,
|
|
149
|
+
onClick: () => {
|
|
150
|
+
i.getExternalBooks().refreshAll().then((e) => {
|
|
151
|
+
let t = {
|
|
152
|
+
refreshed: 0,
|
|
153
|
+
failed: 0,
|
|
154
|
+
unavailable: 0
|
|
155
|
+
};
|
|
156
|
+
for (let n of e) t[n.status]++;
|
|
157
|
+
t.refreshed === 0 && t.failed === 0 ? d.showMessage?.(l("externalLink.refreshUnavailable"), { type: a.Warning }) : d.showMessage?.(l("externalLink.refreshSummary", t), { type: t.failed ? a.Warning : a.Info });
|
|
158
|
+
}, (e) => {
|
|
159
|
+
d.showMessage?.(e.message, { type: a.Error });
|
|
160
|
+
});
|
|
161
|
+
},
|
|
162
|
+
children: l("externalLink.refreshAll")
|
|
163
|
+
}), m(_, {
|
|
164
|
+
size: "small",
|
|
165
|
+
disabled: p || !v,
|
|
166
|
+
sx: e,
|
|
167
|
+
onClick: () => {
|
|
168
|
+
try {
|
|
169
|
+
i.getExternalBooks().breakAll();
|
|
170
|
+
} catch (e) {
|
|
171
|
+
d.showMessage?.(e.message, { type: a.Error });
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
children: l("externalLink.breakAll")
|
|
175
|
+
})]
|
|
176
|
+
});
|
|
177
|
+
}, [
|
|
178
|
+
i,
|
|
179
|
+
p,
|
|
180
|
+
v,
|
|
181
|
+
d,
|
|
182
|
+
l
|
|
183
|
+
]);
|
|
184
|
+
return m(t, {
|
|
185
|
+
ref: r,
|
|
186
|
+
workbook: i,
|
|
187
|
+
descriptor: f,
|
|
188
|
+
headerActions: y,
|
|
189
|
+
...c
|
|
190
|
+
});
|
|
191
|
+
}));
|
|
192
|
+
A.displayName = "ExternalLinksPanel";
|
|
193
|
+
var j = [
|
|
194
|
+
"userSet",
|
|
195
|
+
"always",
|
|
196
|
+
"never"
|
|
197
|
+
], M = {
|
|
198
|
+
userSet: E("externalLink.updateLinks.userSet"),
|
|
199
|
+
always: E("externalLink.updateLinks.always"),
|
|
200
|
+
never: E("externalLink.updateLinks.never")
|
|
201
|
+
}, N = l(c((e, t) => {
|
|
202
|
+
let { workbook: n, ...r } = e, i = s(), [a, o] = d((e) => e + 1, 0), c = n.getUpdateLinks() ?? "userSet", l = !n.getProtection().isStructureAllowed();
|
|
203
|
+
return h(g, {
|
|
204
|
+
ref: t,
|
|
205
|
+
...r,
|
|
206
|
+
sx: {
|
|
207
|
+
display: "flex",
|
|
208
|
+
flexDirection: "column",
|
|
209
|
+
boxSizing: "border-box",
|
|
210
|
+
gap: (e) => e.spacing(1.5),
|
|
211
|
+
padding: (e) => e.spacing(1.5),
|
|
212
|
+
overflowX: "hidden",
|
|
213
|
+
overflowY: "auto"
|
|
214
|
+
},
|
|
215
|
+
children: [h(v, {
|
|
216
|
+
disabled: l,
|
|
217
|
+
children: [m(b, {
|
|
218
|
+
sx: { typography: "body2" },
|
|
219
|
+
children: i("externalLink.updateLinks.label")
|
|
220
|
+
}), m(S, {
|
|
221
|
+
value: c,
|
|
222
|
+
onChange: (e, t) => {
|
|
223
|
+
n.setUpdateLinks(t), o();
|
|
224
|
+
},
|
|
225
|
+
children: j.map((e) => m(y, {
|
|
226
|
+
value: e,
|
|
227
|
+
control: m(x, { size: "small" }),
|
|
228
|
+
label: m(T, {
|
|
229
|
+
variant: "body2",
|
|
230
|
+
children: i(M[e])
|
|
231
|
+
})
|
|
232
|
+
}, e))
|
|
233
|
+
})]
|
|
234
|
+
}), m(T, {
|
|
235
|
+
variant: "caption",
|
|
236
|
+
sx: { color: "text.secondary" },
|
|
237
|
+
children: i("externalLink.updateLinks.note")
|
|
238
|
+
})]
|
|
239
|
+
});
|
|
240
|
+
}));
|
|
241
|
+
N.displayName = "ExternalLinkSettingsTab";
|
|
242
|
+
var P = {
|
|
243
|
+
links: E("externalLink.tab.links"),
|
|
244
|
+
settings: E("externalLink.tab.settings")
|
|
245
|
+
}, F = Object.keys(P), I = (e) => F.includes(e) ? e : null, L = l((e) => {
|
|
246
|
+
let { model: t, args: n, defaultTab: r = "links", entryKey: i, frame: a, ref: o, ...c } = e, l = s(), [u, d] = f(() => I(n?.tab) ?? r), [p, _] = f(n);
|
|
247
|
+
if (n !== p) {
|
|
248
|
+
_(n);
|
|
249
|
+
let e = I(n?.tab);
|
|
250
|
+
e && d(e);
|
|
251
|
+
}
|
|
252
|
+
return t ? h(g, {
|
|
253
|
+
ref: o,
|
|
254
|
+
...c,
|
|
255
|
+
sx: {
|
|
256
|
+
display: "flex",
|
|
257
|
+
flexDirection: "column",
|
|
258
|
+
width: "100%",
|
|
259
|
+
minWidth: 0,
|
|
260
|
+
flex: "1 1 auto",
|
|
261
|
+
height: "100%",
|
|
262
|
+
minHeight: 0,
|
|
263
|
+
overflowX: "hidden"
|
|
264
|
+
},
|
|
265
|
+
children: [m(w, {
|
|
266
|
+
value: u,
|
|
267
|
+
onChange: (e, t) => d(t),
|
|
268
|
+
variant: "fullWidth",
|
|
269
|
+
sx: {
|
|
270
|
+
width: "100%",
|
|
271
|
+
flex: "0 0 auto",
|
|
272
|
+
minHeight: "36px",
|
|
273
|
+
borderBottom: 1,
|
|
274
|
+
borderColor: "divider",
|
|
275
|
+
"& .MuiTab-root": {
|
|
276
|
+
minHeight: "36px",
|
|
277
|
+
textTransform: "none",
|
|
278
|
+
pt: .5,
|
|
279
|
+
pb: .5,
|
|
280
|
+
px: .5,
|
|
281
|
+
minWidth: 0
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
children: F.map((e) => m(C, {
|
|
285
|
+
value: e,
|
|
286
|
+
label: l(P[e])
|
|
287
|
+
}, e))
|
|
288
|
+
}), h(g, {
|
|
289
|
+
sx: {
|
|
290
|
+
flex: "1 1 auto",
|
|
291
|
+
minHeight: 0,
|
|
292
|
+
minWidth: 0,
|
|
293
|
+
width: "100%",
|
|
294
|
+
display: "flex",
|
|
295
|
+
flexDirection: "column"
|
|
296
|
+
},
|
|
297
|
+
children: [u === "links" ? m(A, {
|
|
298
|
+
workbook: t,
|
|
299
|
+
style: {
|
|
300
|
+
flex: "1 1 auto",
|
|
301
|
+
minHeight: 0,
|
|
302
|
+
minWidth: 0,
|
|
303
|
+
width: "100%"
|
|
304
|
+
}
|
|
305
|
+
}) : null, u === "settings" ? m(N, {
|
|
306
|
+
workbook: t,
|
|
307
|
+
style: {
|
|
308
|
+
flex: "1 1 auto",
|
|
309
|
+
minHeight: 0,
|
|
310
|
+
minWidth: 0,
|
|
311
|
+
width: "100%"
|
|
312
|
+
}
|
|
313
|
+
}) : null]
|
|
314
|
+
})]
|
|
315
|
+
}) : null;
|
|
316
|
+
});
|
|
317
|
+
L.displayName = "ExternalLinksTaskPane";
|
|
318
|
+
export { L as ExternalLinksTaskPane, L 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.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
|
|
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
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { n as e } from "./DDc6rDuU9JAo1DH_.mjs";
|
|
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";
|
|
11
11
|
import { memo as a, useCallback as o, useMemo as s, useState as c } from "react";
|
|
@@ -22,7 +22,7 @@ var h = ["Ok", "Cancel"], g = "table.defaultName", _ = a((a) => {
|
|
|
22
22
|
return t;
|
|
23
23
|
}
|
|
24
24
|
}), R = s(() => {
|
|
25
|
-
let e = T?.ranges?.
|
|
25
|
+
let e = T?.ranges?.getWorksheet?.()?.getName();
|
|
26
26
|
return e ? { scope: e } : void 0;
|
|
27
27
|
}, [T]), z = n().getMode()?.mode === "point", B = r((e) => {
|
|
28
28
|
let t = N ? {
|
|
@@ -79,14 +79,14 @@ var h = ["Ok", "Cancel"], g = "table.defaultName", _ = a((a) => {
|
|
|
79
79
|
flexDirection: "column"
|
|
80
80
|
},
|
|
81
81
|
children: [
|
|
82
|
-
u(
|
|
82
|
+
u(t, {
|
|
83
83
|
formName: "name",
|
|
84
84
|
value: I,
|
|
85
85
|
onChangeInput: L,
|
|
86
86
|
onValidate: V,
|
|
87
87
|
onFocus: U
|
|
88
88
|
}),
|
|
89
|
-
u(
|
|
89
|
+
u(e, {
|
|
90
90
|
grammar: "reference",
|
|
91
91
|
classNameInput: "autoFocus",
|
|
92
92
|
formName: "range",
|
|
@@ -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.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
|
|
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
|
-
import { n as e, t } from "./
|
|
7
|
+
import { n as e, t } from "./DDc6rDuU9JAo1DH_.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";
|
|
@@ -328,7 +328,7 @@ var j = g((r) => {
|
|
|
328
328
|
});
|
|
329
329
|
}, [K]);
|
|
330
330
|
_(() => {
|
|
331
|
-
let e = D ? D.
|
|
331
|
+
let e = D ? D.getSelectedWorksheet()?.getCalculation() ?? D.getCalculation() : null, t = U.some((e, t) => !e.optional && !O[t]?.trim());
|
|
332
332
|
if (!e || t || U.length > 0 && !O.some((e) => e?.trim())) return K(-1), void F(null);
|
|
333
333
|
let n = K(-1);
|
|
334
334
|
(async () => {
|
|
@@ -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.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
|
|
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
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./ClBvNPeNCAhuVWrG.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";
|