@sheetxl/studio-mui 0.7.28-beta.3 → 0.8.0-beta.1
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/cjs/Bte6P3MhSjajJmmY.cjs +7 -0
- package/browser/cjs/CYxc8vnRi8dNpDPk.cjs +1 -0
- package/browser/cjs/{DBJLJGiCGXesx5n6.cjs → Cm1APq2MraYNNhyI.cjs} +1 -1
- package/browser/cjs/{ByIEqNsvj52sihT9.cjs → DO8V31Z1ewgMA1di.cjs} +1 -1
- package/browser/cjs/index.cjs +1 -1
- package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +11 -0
- package/browser/esm/{BkyDtDdvSl_AV9Gt.mjs → 3ydDykDMtDYbfVVn.mjs} +2 -2
- package/browser/esm/{CmORsa6FH_sUlG09.mjs → BUGepznywvV0tUjW.mjs} +2 -2
- package/browser/esm/{kwpr8OkbF3lZEN1T.mjs → BZBJG2tDdD3-VujP.mjs} +2 -2
- package/browser/esm/{_1Rr-Es6ahuX7Qhz.mjs → BoLxSRdEWt-Yg2RI.mjs} +2 -2
- package/browser/esm/{CA-Mxp0a5qYu-eQC.mjs → BuY3uV47Bwbqpasq.mjs} +1 -1
- package/browser/esm/{BwGPqPTphFbyCgv1.mjs → Bz5LiUe3SZ8g42Ia.mjs} +1 -1
- package/browser/esm/{DqyGltio8npJVndh.mjs → CAs1MWvJTcRfJy26.mjs} +2 -2
- package/browser/esm/{FInOepzy3-iT5cjT.mjs → CBU3LgLYmqtQjJbu.mjs} +1 -1
- package/browser/esm/{D_YPZjHwcGU0e_CU.mjs → CDU0rqpLNVtMLI-f.mjs} +1 -1
- package/browser/esm/{CEQHdobx2heqC_xT.mjs → CVBub6pgTsJzCc5m.mjs} +1458 -1420
- package/browser/esm/{DgBl7UkteQ4zL4kL.mjs → CVfuCNRpODUw04IH.mjs} +1 -1
- package/browser/esm/{B5C5eyh4pBM5mSve.mjs → C_XvSsQ9BVdHffCO.mjs} +2 -2
- package/browser/esm/{DEEXBFwk1sZkiUlr.mjs → Cd6n1XUgF0VItpkH.mjs} +1 -1
- package/browser/esm/{CTXaV5uwcruyrMp0.mjs → ChwS_ougBsogOEsP.mjs} +2 -2
- package/browser/esm/{JyGi5nNsg4qKS5j4.mjs → Cj2pgCNqBCGl4rTX.mjs} +9 -5
- package/browser/esm/{CTaMCLRdYJ1uFxE2.mjs → DMLXV4EKl1NCp_jk.mjs} +2 -2
- package/browser/esm/{DnXdm8bvu4pg43G2.mjs → DNDrQKMTzKzNMjl-.mjs} +1 -1
- package/browser/esm/{B7brtmmNB6T3RNY2.mjs → FT29q8yNwsEpVZjt.mjs} +2057 -1677
- package/browser/esm/{C6TVYNeH2nr88ReK.mjs → Hb1rlHT4tE5hLcjM.mjs} +2 -2
- package/browser/esm/{gpMEXsQ5UNiXgQmz.mjs → UJOXCQv6KrG1gY3l.mjs} +1 -1
- package/browser/esm/index.mjs +22 -22
- package/browser/esm/rU8xNPVQtDSnujM-.mjs +236 -0
- package/browser/esm/{CKuKgvw5RwhXSGSf.mjs → s46El7mT6oKLSnYB.mjs} +2 -2
- package/browser/esm/{DuidI13hr0XjasSY.mjs → zWTZ8BvT4hjgC2ua.mjs} +2 -2
- package/licenses/dependencies.txt +34 -34
- package/node/esm/{0cz-6oYBrKiMBZM1.mjs → 9FY82fj1R1c-AczW.mjs} +1 -1
- package/node/esm/{CljT532ykR37FgiC.mjs → BA7VzUQ2sKRLTZ5c.mjs} +1 -1
- package/node/esm/{DvpO4eBfsgfawgqe.mjs → BhqI3pQFkV8K_612.mjs} +1 -1
- package/node/esm/{BKcg--YNK_xm5fas.mjs → BwZcoHDBmLPIVOT5.mjs} +1 -1
- package/node/esm/{OXH7uXxF8tahBwbJ.mjs → C-boHCnJditFzng3.mjs} +1 -1
- package/node/esm/{un1nvQ0PuZGhfCXp.mjs → CHi3AuWEwEPOg9IZ.mjs} +1 -1
- package/node/esm/{Dod4GwzFr8dcXjc0.mjs → CUMKTjYv6VTkcWYi.mjs} +1 -1
- package/node/esm/DM7K7-284z-PczVz.mjs +236 -0
- package/node/esm/{CA8JibkMn3a6soxi.mjs → DXZrzWee8K5FPOW1.mjs} +2 -2
- package/node/esm/DxXM8qHi0Oz4Zovl.mjs +4575 -0
- package/node/esm/{dLsmdAQ-_LdY1aTA.mjs → Qpuqm6xBr_da38Ht.mjs} +45 -45
- package/node/esm/index.mjs +2645 -2261
- package/node/esm/{TQrOnEDWuUSuD-8n.mjs → sQt2wWGTRLzqeJdG.mjs} +1 -1
- package/node/esm/{AndURfUyGlsYwOhZ.mjs → yCHAZKxJR7qY_ySy.mjs} +1 -1
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +5 -0
- package/resources/locales/de/ui.msg.json +8 -2
- package/resources/locales/en/groups.cmd.json +5 -0
- package/resources/locales/en/ui.msg.json +56 -2
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +1 -1
- package/types/src/command/CalculationOptionsCommandButton.d.ts +22 -0
- package/types/src/command/index.d.ts +1 -0
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +27 -0
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +10 -8
- package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts +30 -2
- package/types/src/conditionalFormat/RulePreview.d.ts +1 -1
- package/types/src/conditionalFormat/ScaleStopRow.d.ts +8 -2
- package/types/src/conditionalFormat/iconSetMessages.d.ts +9 -0
- package/types/src/formulaBar/IFormulaBar.d.ts +7 -0
- package/types/src/statusBar/CalculationRequiredStatus.d.ts +21 -0
- package/types/src/statusBar/CircularReferenceStatus.d.ts +23 -0
- package/types/src/statusBar/index.d.ts +2 -0
- package/browser/cjs/B1OGLm0sOXRWoOqW.cjs +0 -7
- package/browser/cjs/C3moehR3VOd0LnmM.cjs +0 -1
- package/browser/cjs/fNAtMntE00ehero6.cjs +0 -11
- package/browser/esm/CX2cBzzCg_tfihaC.mjs +0 -191
- package/node/esm/54CtbSkcZ9yo4h42.mjs +0 -190
- package/node/esm/DFkg2JcjAxeK_RNA.mjs +0 -4536
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
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 } from "./
|
|
7
|
+
import { n as e } from "./CAs1MWvJTcRfJy26.mjs";
|
|
8
8
|
import { useReferenceMode as t } from "@sheetxl/react";
|
|
9
9
|
import { useCallbackRef as n, useTranslator as r } from "@sheetxl/utils-react";
|
|
10
10
|
import { memo as i, useCallback as a, useMemo as o, useState as s } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
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.
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`._sheetxl-reset_11z3j_1{margin:0;padding:0;line-height:1;display:block}._sheetxl-reset_11z3j_1 table,._sheetxl-reset_11z3j_1 thead,._sheetxl-reset_11z3j_1 tbody,._sheetxl-reset_11z3j_1 tfoot,._sheetxl-reset_11z3j_1 tr,._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{border-collapse:inherit;border-spacing:0;border:none;border-color:inherit;width:auto;height:auto;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0;margin:0;padding:0;display:block}._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:inline}html{color:initial}._table-style-options-container_1kfn2_1{container-type:inline-size}._table-style-options_1kfn2_1{user-select:none;grid-template-columns:1fr;display:grid;@container (width>600px){grid-template-rows:repeat(3,auto);grid-auto-columns:1fr;grid-auto-flow:column;gap:2px}}._range-row_akhf4_1{flex-direction:column;flex:100%;align-items:center;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-between;gap:12px}}._action-row_akhf4_15{flex-direction:column;align-items:start;gap:4px;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-evenly;align-items:center}}._details-panel_mdq6z_1{box-sizing:border-box;background:0 0;flex-direction:column;flex:auto;align-items:stretch;width:100%;height:100%;display:flex;overflow:hidden}._editor_mdq6z_13{flex-direction:column;height:100%;display:flex}._editor-panel_mdq6z_19{flex-direction:column;display:flex}._editor-buttons_mdq6z_24{justify-content:flex-end;display:flex}._card_mdq6z_29{flex-direction:column;display:flex}._stats-items_151a8_1{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:2px;min-width:0;max-height:1rem;display:flex;overflow:hidden}._stats-item_151a8_1{flex-shrink:0}._stats-item-label_151a8_15{user-select:none;white-space:nowrap;cursor:pointer;border-radius:2px;align-items:center;gap:4px;padding:0 4px;transition:background-color .2s;display:flex}._stats-item-label_151a8_15:hover{background-color:#0000000a}._stats-item-label_151a8_15:active{background-color:#00000014}._formula-bar_uer84_1{flex-direction:row;flex:100%;align-items:start;display:flex}._card_h0jnt_7{width:100%}._actionRoot_h0jnt_11{justify-content:space-between;padding:8px 8px 8px 16px}._icons_h0jnt_16{align-items:center;margin-left:auto;display:flex}._expand_h0jnt_22{color:var(--sxl-color-error-content);padding:8px;transition:all .2s ease-in-out;transform:rotate(0)}._expandOpen_h0jnt_29{transform:rotate(180deg)}._stackTraceContainer_h0jnt_33{padding:16px}._paper_h0jnt_37{background-color:#fff;padding:16px}._checkIcon_h0jnt_42{padding-right:4px;font-size:20px}._button_h0jnt_47{text-transform:none;padding:0}._styled-resizer_fdl5y_3{background-color:var(--sxl-color-neutral,grey)}._styled-resizer_fdl5y_3:hover,.splitPane.dragging ._styled-resizer_fdl5y_3{background-color:var(--sxl-color-primary,blue)}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
3
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
4
4
|
*
|
|
5
5
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
7
|
*/
|
|
8
|
-
import { r as e, t } from "./
|
|
9
|
-
import { A as n, At as r, B as i, Bt as a, C as o, Ct as s, D as c, Dt as l, E as u, Et as d, F as f, Ft as p, G as m,
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { a as
|
|
14
|
-
import { useInputField as
|
|
15
|
-
import { DynamicIcon as q, useTranslator as
|
|
16
|
-
import { forwardRef as
|
|
8
|
+
import { r as e, t } from "./BuY3uV47Bwbqpasq.mjs";
|
|
9
|
+
import { A as n, At as r, B as i, Bt as a, C as o, Ct as s, D as c, Dt as l, E as u, Et as d, F as f, Ft as p, G as m, Gt as h, H as g, Ht as _, I as v, It as y, K as b, Kt as x, L as S, Lt as C, M as w, Mt as T, N as E, Nt as D, O, Ot as ee, P as te, Pt as ne, R as re, Rt as ie, S as ae, St as oe, T as se, Tt as k, U as A, Ut as j, V as M, Vt as N, W as P, Wt as F, _ as I, _t as L, a as R, b as z, bt as B, c as V, dt as H, ft as U, g as W, gt as G, ht as K, i as ce, j as le, jt as ue, k as de, kt as fe, l as pe, lt as me, m as he, mt as ge, n as _e, o as ve, pt as ye, q as be, qt as xe, r as Se, s as Ce, t as we, u as Te, ut as Ee, v as De, vt as Oe, w as ke, wt as Ae, x as je, xt as Me, y as Ne, yt as Pe, z as Fe, zt as Ie } from "./FT29q8yNwsEpVZjt.mjs";
|
|
10
|
+
import { t as Le } from "./Cd6n1XUgF0VItpkH.mjs";
|
|
11
|
+
import { t as Re } from "./s46El7mT6oKLSnYB.mjs";
|
|
12
|
+
import { n as ze, r as Be, t as Ve } from "./CAs1MWvJTcRfJy26.mjs";
|
|
13
|
+
import { a as He, i as Ue, n as We, o as Ge, r as Ke, t as qe } from "./BZBJG2tDdD3-VujP.mjs";
|
|
14
|
+
import { useInputField as Je } from "@sheetxl/react";
|
|
15
|
+
import { DynamicIcon as q, useTranslator as Ye } from "@sheetxl/utils-react";
|
|
16
|
+
import { forwardRef as Xe, memo as Ze, useEffect as Qe, useImperativeHandle as $e, useMemo as J, useRef as Y } from "react";
|
|
17
17
|
import { ExhibitIconButton as X } from "@sheetxl/utils-mui";
|
|
18
|
-
import { jsx as Z, jsxs as
|
|
19
|
-
import { FormControl as
|
|
18
|
+
import { jsx as Z, jsxs as et } from "react/jsx-runtime";
|
|
19
|
+
import { FormControl as tt, InputAdornment as nt, TextField as rt } from "@mui/material";
|
|
20
20
|
var Q = (e) => {
|
|
21
21
|
e.button === 0 && e.preventDefault();
|
|
22
|
-
}, $ =
|
|
23
|
-
let { disabled: n, className: r, sx: i, defaultInput: a, value: o, formName: s, formOptions: c, onChangeInput: l, onChangeText: u, onDone: d, changeOn: f, onValidate: p, apiRef: m, label: h, hideAdornment: g, onKeyDown: _, onFocus: v, ...y } = e, b =
|
|
22
|
+
}, $ = Ze(Xe((e, t) => {
|
|
23
|
+
let { disabled: n, className: r, sx: i, defaultInput: a, value: o, formName: s, formOptions: c, onChangeInput: l, onChangeText: u, onDone: d, changeOn: f, onValidate: p, apiRef: m, label: h, hideAdornment: g, onKeyDown: _, onFocus: v, ...y } = e, b = Ye(), x = h ?? b("namedInput.label"), S = Be(), C = s && S ? S.register(s, c) : null, w = Je({
|
|
24
24
|
value: o ?? "",
|
|
25
25
|
onChange: l,
|
|
26
26
|
onChangeText: u,
|
|
@@ -29,18 +29,18 @@ var Q = (e) => {
|
|
|
29
29
|
onValidate: p,
|
|
30
30
|
disabled: n
|
|
31
31
|
});
|
|
32
|
-
|
|
32
|
+
$e(m, () => w, [w]);
|
|
33
33
|
let T = Y(S);
|
|
34
34
|
T.current = S;
|
|
35
35
|
let E = Y(null);
|
|
36
|
-
|
|
36
|
+
Qe(() => {
|
|
37
37
|
if (!s || w.error === E.current) return;
|
|
38
38
|
E.current = w.error;
|
|
39
39
|
let e = T.current;
|
|
40
40
|
e && (w.error ? e.setError(s, { message: b(w.error) }) : e.clearErrors(s));
|
|
41
41
|
}, [w.error, s]);
|
|
42
|
-
let D = !!d, O =
|
|
43
|
-
if (!g && D) return
|
|
42
|
+
let D = !!d, O = J(() => {
|
|
43
|
+
if (!g && D) return et(nt, {
|
|
44
44
|
tabIndex: -1,
|
|
45
45
|
onMouseDown: Q,
|
|
46
46
|
"aria-hidden": !w.engaged,
|
|
@@ -95,7 +95,7 @@ var Q = (e) => {
|
|
|
95
95
|
w.cancel,
|
|
96
96
|
!!w.error
|
|
97
97
|
]);
|
|
98
|
-
return Z(
|
|
98
|
+
return Z(tt, {
|
|
99
99
|
sx: {
|
|
100
100
|
minWidth: 135,
|
|
101
101
|
width: "100%",
|
|
@@ -103,9 +103,9 @@ var Q = (e) => {
|
|
|
103
103
|
},
|
|
104
104
|
size: "small",
|
|
105
105
|
ref: t,
|
|
106
|
-
className:
|
|
106
|
+
className: Le("sxl-input-field", r),
|
|
107
107
|
...y,
|
|
108
|
-
children: Z(
|
|
108
|
+
children: Z(rt, {
|
|
109
109
|
label: x,
|
|
110
110
|
placeholder: a,
|
|
111
111
|
disabled: n,
|
|
@@ -150,4 +150,4 @@ var Q = (e) => {
|
|
|
150
150
|
});
|
|
151
151
|
}));
|
|
152
152
|
$.displayName = "InputField";
|
|
153
|
-
export {
|
|
153
|
+
export { H as AppearanceCommandButton, j as AutoColorPosition, p as BorderCommandButton, y as BorderPopupButton, C as BorderStylePopupButton, Ee as CalculationOptionsCommandButton, v as CalculationRequiredStatus, S as CircularReferenceStatus, _ as ColorButton, N as ColorButtonList, ue as ColorCommandButton, a as ColorPanel, F as ColorPanelType, Ie as ColorPopupButton, ae as ColumnMenu, we as DefaultTaskPaneRegistry, i as DefaultWorkbookToolbars, ye as DocThemeCommandButton, pe as DocumentTitle, Ve as FORMULA_FIELD_ABOVE_LABEL_HEIGHT, U as FileCommandButton, o as FilterList, r as FontFamilyCommandButton, ne as FontSizeCommandButton, ke as FormulaBar, ze as FormulaField, He as FunctionArgumentsPanel, Ge as FunctionSearchPanel, qe as INSERT_FUNCTION_PAGE_CLASS, $ as InputField, b as InsertFunctionCommandPopupButton, We as InsertFunctionOption, A as InsertFunctionSumCommandPopupButton, Ke as InsertFunctionWizard, _e as LicenseManager, de as NAMED_TYPE_FORMULA, te as NamedCollectionEditor, c as NamedDetailsPanel, u as NamedDetailsTaskPane, O as NamedEditorPanel, se as NamedPlugin, D as NumberFormatCommandButton, Re as NumberFormatPanel, je as NumberFormatTaskPane, re as NumberStats, ee as PasteCommandButton, l as PresetCellStylesCommandButton, B as PresetTableStylesCommandButton, Ne as SheetTabMenu, h as SheetZoomCommandButton, Fe as SheetZoomScale, De as SheetsAllMenu, f as StatusBar, Ce as Studio, ie as StyledStrokeIcon, s as TableDetailsPanel, oe as TableDetailsTaskPane, Me as TablePlugin, k as TableStyleCanvasPreview, Ae as TableStyleOptionsPanel, d as TableStylePreview, fe as TextEffectsCommandButton, x as TextRotateGroupButton, Pe as ThemeSelectButton, Oe as ThemeSelectPanel, L as ThemeSelectPopupButton, T as UndoRedoCommandButton, me as WalkingCopyCommandButton, W as WorkbookContextMenu, Te as WorkbookElement, Se as WorkbookIO, t as WorkbookProtectionDialog, e as WorkbookProtectionPanel, I as WorkbookStrip, M as WorkbookToolbars, n as createNamedDraft, ge as createStudioThemeCSS, K as createThemeFromMUITheme, le as expressionOf, w as isEditableNamed, Ue as optionsForPage, z as registerNumberFormatTaskPane, be as registerSheetCommandGroups, xe as registerStudioCommandCatalogs, P as registerStudioCommandGroups, m as registerWorkbookCommandGroups, he as renderWorkbookSheetTab, g as renderWorkbookToolbars, E as saveNamedDraft, V as setPrintExamplesOnLoad, G as tokensToMuiOptions, ce as useModelListener, R as useRangeListener, ve as useStudioApp };
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
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 { n as e } from "./CAs1MWvJTcRfJy26.mjs";
|
|
8
|
+
import { InputField as t } from "./index.mjs";
|
|
9
|
+
import { useReferenceMode as n } from "@sheetxl/react";
|
|
10
|
+
import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
|
|
11
|
+
import { memo as a, useEffect as o, useId as ee, useMemo as s, useRef as c, useState as l } from "react";
|
|
12
|
+
import { OptionsDialog as te } from "@sheetxl/utils-mui";
|
|
13
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
14
|
+
import { Box as ne, FormControl as p, InputLabel as re, MenuItem as m, Select as ie, TextField as ae } from "@mui/material";
|
|
15
|
+
var oe = ["Ok", "Cancel"], h = { paddingTop: (e) => e.spacing(1.5) }, g = "mailto:", _ = (e) => e.length >= 7 && e.substring(0, 7).toLowerCase() === g, v = (e) => {
|
|
16
|
+
if (!_(e)) return null;
|
|
17
|
+
let t = e.substring(7), n = t.indexOf("?");
|
|
18
|
+
if (n === -1) return {
|
|
19
|
+
address: t,
|
|
20
|
+
subject: ""
|
|
21
|
+
};
|
|
22
|
+
let r = "";
|
|
23
|
+
try {
|
|
24
|
+
r = new URLSearchParams(t.substring(n + 1)).get("subject") ?? "";
|
|
25
|
+
} catch {}
|
|
26
|
+
return {
|
|
27
|
+
address: t.substring(0, n),
|
|
28
|
+
subject: r
|
|
29
|
+
};
|
|
30
|
+
}, y = a((a) => {
|
|
31
|
+
let { initialValue: y = null, context: b, onInput: x, onOption: S, onValidateOption: C, onDone: w, options: T = oe, defaultOption: E = T?.[0], cancelOption: D = "Cancel", sx: se, ...ce } = a, O = i(), le = s(() => (y ?? b?.()?.getHyperlink()) !== null, []), k = s(() => {
|
|
32
|
+
let e = null, t = null;
|
|
33
|
+
y && (typeof y == "string" ? t = y : e = y);
|
|
34
|
+
let n = e ? null : b?.()?.getHyperlink();
|
|
35
|
+
return {
|
|
36
|
+
address: t ?? e?.address ?? n?.getAddress() ?? "",
|
|
37
|
+
textToDisplay: e?.textToDisplay ?? n?.getTextToDisplay() ?? ""
|
|
38
|
+
};
|
|
39
|
+
}, [y, b]), A = k.address.startsWith("#"), j = s(() => v(k.address), [k.address]), [M, N] = l(A ? "document" : j ? "email" : "url"), [P, F] = l(A || j ? "" : k.address), [I, L] = l(j?.address ?? ""), [R, z] = l(j?.subject ?? ""), [B, V] = l(() => A && k.address.substring(1) || null), [H, U] = l(A ? k.address.substring(1) : ""), [W, ue] = l(null), [G, de] = l(() => {
|
|
40
|
+
let e = b?.().getText({ useFormattingCategory: !0 }) ?? k.textToDisplay;
|
|
41
|
+
return e === k.address || j && e === j.address ? "" : e;
|
|
42
|
+
}), [K, q] = l(!1), J = ee(), Y = c(null), X = c(null), Z = r(() => {
|
|
43
|
+
Y.current?.querySelector("input.autoFocus")?.focus(), X.current?.engage();
|
|
44
|
+
}, []), Q = c(M);
|
|
45
|
+
o(() => {
|
|
46
|
+
Q.current !== M && (Q.current = M, Z());
|
|
47
|
+
}, [M]);
|
|
48
|
+
let fe = s(() => {
|
|
49
|
+
let e = b?.()?.getSheet()?.getName();
|
|
50
|
+
return e ? { scope: e } : void 0;
|
|
51
|
+
}, [b]), pe = n().getMode()?.mode === "point", me = r((e) => {
|
|
52
|
+
de(e.target.value);
|
|
53
|
+
}, []), $ = r(() => {
|
|
54
|
+
if (M === "document") {
|
|
55
|
+
if (typeof B == "string") {
|
|
56
|
+
let e = B.trim();
|
|
57
|
+
return e ? `#${e}` : null;
|
|
58
|
+
}
|
|
59
|
+
let e = B?.getReferences()?.getAddress();
|
|
60
|
+
return e ? `#${e}` : null;
|
|
61
|
+
}
|
|
62
|
+
return M === "email" ? ((e, t) => {
|
|
63
|
+
let n = e.trim();
|
|
64
|
+
if (_(n) && (n = n.substring(7)), !n) return null;
|
|
65
|
+
let r = t.trim();
|
|
66
|
+
return `${g}${n}${r ? `?subject=${encodeURIComponent(r)}` : ""}`;
|
|
67
|
+
})(I, R) : P === "" ? null : P;
|
|
68
|
+
}, [
|
|
69
|
+
M,
|
|
70
|
+
B,
|
|
71
|
+
P,
|
|
72
|
+
I,
|
|
73
|
+
R
|
|
74
|
+
]), he = r(async (e) => {
|
|
75
|
+
let t = e === D;
|
|
76
|
+
if (!t) {
|
|
77
|
+
let e = $(), t = e;
|
|
78
|
+
e?.startsWith("#") ? t = e.substring(1) : M === "email" && e && (t = v(e)?.address ?? e), x?.({
|
|
79
|
+
address: e,
|
|
80
|
+
textToDisplay: (G === "" ? t : G) ?? null
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
S?.(e, t, e === E), w?.();
|
|
84
|
+
}, [
|
|
85
|
+
$,
|
|
86
|
+
M,
|
|
87
|
+
G,
|
|
88
|
+
x,
|
|
89
|
+
w,
|
|
90
|
+
S,
|
|
91
|
+
E,
|
|
92
|
+
D
|
|
93
|
+
]), ge = r(async (e) => !1 !== await Promise.resolve(C?.(e)) && (M !== "document" || !W), [
|
|
94
|
+
C,
|
|
95
|
+
M,
|
|
96
|
+
W
|
|
97
|
+
]), _e = M === "document" ? H : M === "email" ? I : P;
|
|
98
|
+
return d(te, {
|
|
99
|
+
title: O(le ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
|
|
100
|
+
options: T,
|
|
101
|
+
onDone: w,
|
|
102
|
+
onOption: (e) => he(e),
|
|
103
|
+
onValidateOption: ge,
|
|
104
|
+
defaultOption: E,
|
|
105
|
+
cancelOption: D,
|
|
106
|
+
autoFocusSel: ".autoFocus",
|
|
107
|
+
suspendModal: pe,
|
|
108
|
+
sx: {
|
|
109
|
+
width: "480px",
|
|
110
|
+
...se
|
|
111
|
+
},
|
|
112
|
+
...ce,
|
|
113
|
+
children: f(ne, {
|
|
114
|
+
ref: Y,
|
|
115
|
+
sx: {
|
|
116
|
+
paddingTop: (e) => e.spacing(1),
|
|
117
|
+
paddingBottom: (e) => e.spacing(0),
|
|
118
|
+
rowGap: (e) => e.spacing(1),
|
|
119
|
+
display: "flex",
|
|
120
|
+
flexDirection: "column"
|
|
121
|
+
},
|
|
122
|
+
children: [
|
|
123
|
+
f(p, {
|
|
124
|
+
sx: {
|
|
125
|
+
minWidth: 135,
|
|
126
|
+
width: "100%"
|
|
127
|
+
},
|
|
128
|
+
size: "small",
|
|
129
|
+
children: [d(re, {
|
|
130
|
+
id: J,
|
|
131
|
+
children: O("hyperlink.linkTo")
|
|
132
|
+
}), f(ie, {
|
|
133
|
+
labelId: J,
|
|
134
|
+
value: M,
|
|
135
|
+
label: O("hyperlink.linkTo"),
|
|
136
|
+
MenuProps: {
|
|
137
|
+
disableRestoreFocus: !0,
|
|
138
|
+
slotProps: { transition: { onExited: Z } },
|
|
139
|
+
container: () => document.fullscreenElement
|
|
140
|
+
},
|
|
141
|
+
onChange: (e) => {
|
|
142
|
+
N(e.target.value);
|
|
143
|
+
},
|
|
144
|
+
children: [
|
|
145
|
+
d(m, {
|
|
146
|
+
value: "url",
|
|
147
|
+
children: O("hyperlink.typeWebPage")
|
|
148
|
+
}),
|
|
149
|
+
d(m, {
|
|
150
|
+
value: "document",
|
|
151
|
+
children: O("hyperlink.typeInDocument")
|
|
152
|
+
}),
|
|
153
|
+
d(m, {
|
|
154
|
+
value: "email",
|
|
155
|
+
children: O("hyperlink.typeEmail")
|
|
156
|
+
})
|
|
157
|
+
]
|
|
158
|
+
})]
|
|
159
|
+
}),
|
|
160
|
+
M === "email" ? f(u, { children: [d(t, {
|
|
161
|
+
sx: h,
|
|
162
|
+
label: O("hyperlink.emailAddress"),
|
|
163
|
+
defaultInput: O("hyperlink.emailPlaceholder"),
|
|
164
|
+
value: I,
|
|
165
|
+
onChangeInput: (e) => L(e),
|
|
166
|
+
onFocus: (e) => {
|
|
167
|
+
K || e.target?.select?.(), q(!0);
|
|
168
|
+
}
|
|
169
|
+
}), d(t, {
|
|
170
|
+
label: O("hyperlink.subject"),
|
|
171
|
+
defaultInput: "",
|
|
172
|
+
value: R,
|
|
173
|
+
onChangeInput: (e) => z(e),
|
|
174
|
+
onFocus: () => q(!0)
|
|
175
|
+
})] }) : M === "document" ? d(e, {
|
|
176
|
+
sx: h,
|
|
177
|
+
grammar: "reference",
|
|
178
|
+
apiRef: X,
|
|
179
|
+
classNameInput: "autoFocus",
|
|
180
|
+
label: O("hyperlink.reference"),
|
|
181
|
+
value: B,
|
|
182
|
+
allowMulti: !1,
|
|
183
|
+
home: fe,
|
|
184
|
+
onChangeInput: (e) => V(e),
|
|
185
|
+
onChangeText: (e) => U(e),
|
|
186
|
+
onChangeError: (e) => ue(e),
|
|
187
|
+
onFocus: (e) => {
|
|
188
|
+
K || e.target?.select?.(), q(!0);
|
|
189
|
+
}
|
|
190
|
+
}) : d(t, {
|
|
191
|
+
sx: h,
|
|
192
|
+
label: O("hyperlink.address"),
|
|
193
|
+
defaultInput: O("hyperlink.addressPlaceholder"),
|
|
194
|
+
value: P,
|
|
195
|
+
onChangeInput: (e) => F(e),
|
|
196
|
+
onFocus: (e) => {
|
|
197
|
+
K || e.target?.select?.(), q(!0);
|
|
198
|
+
}
|
|
199
|
+
}),
|
|
200
|
+
d(p, {
|
|
201
|
+
sx: {
|
|
202
|
+
paddingTop: (e) => e.spacing(1.5),
|
|
203
|
+
minWidth: 135,
|
|
204
|
+
width: "100%"
|
|
205
|
+
},
|
|
206
|
+
size: "small",
|
|
207
|
+
children: d(ae, {
|
|
208
|
+
label: O("hyperlink.displayText"),
|
|
209
|
+
placeholder: _e,
|
|
210
|
+
onFocus: () => {
|
|
211
|
+
q(!0);
|
|
212
|
+
},
|
|
213
|
+
sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
|
|
214
|
+
slotProps: {
|
|
215
|
+
inputLabel: { shrink: !0 },
|
|
216
|
+
htmlInput: {
|
|
217
|
+
spellCheck: !1,
|
|
218
|
+
autoComplete: "off",
|
|
219
|
+
sx: {
|
|
220
|
+
paddingTop: (e) => e.spacing(1.25),
|
|
221
|
+
paddingBottom: (e) => e.spacing(.75)
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
value: G,
|
|
226
|
+
onChange: me,
|
|
227
|
+
onContextMenu: (e) => {
|
|
228
|
+
e.stopPropagation();
|
|
229
|
+
}
|
|
230
|
+
})
|
|
231
|
+
})
|
|
232
|
+
]
|
|
233
|
+
})
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
export { y as HyperlinkDialog, y as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
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 "./Cd6n1XUgF0VItpkH.mjs";
|
|
8
8
|
import { NumberFormat as t } from "@sheetxl/sdk";
|
|
9
9
|
import { useCallbackRef as n, useTranslator as r } from "@sheetxl/utils-react";
|
|
10
10
|
import { forwardRef as i, memo as a, useEffect as o, useState as ee, version as s } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
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 { i as e, n as t, r as n } from "./
|
|
7
|
+
import { i as e, n as t, r as n } from "./BZBJG2tDdD3-VujP.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";
|
|
@@ -268,6 +268,40 @@ License Text:
|
|
|
268
268
|
|
|
269
269
|
---
|
|
270
270
|
|
|
271
|
+
Name: react-merge-refs
|
|
272
|
+
Version: 3.0.2
|
|
273
|
+
License: MIT
|
|
274
|
+
Private: false
|
|
275
|
+
Description: React utility to merge refs.
|
|
276
|
+
Repository: undefined
|
|
277
|
+
Author: Greg Bergé <berge.greg@gmail.com>
|
|
278
|
+
License Text:
|
|
279
|
+
===
|
|
280
|
+
|
|
281
|
+
MIT License
|
|
282
|
+
|
|
283
|
+
Copyright (c) 2020 Greg Bergé
|
|
284
|
+
|
|
285
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
286
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
287
|
+
in the Software without restriction, including without limitation the rights
|
|
288
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
289
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
290
|
+
furnished to do so, subject to the following conditions:
|
|
291
|
+
|
|
292
|
+
The above copyright notice and this permission notice shall be included in all
|
|
293
|
+
copies or substantial portions of the Software.
|
|
294
|
+
|
|
295
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
296
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
297
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
298
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
299
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
300
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
301
|
+
SOFTWARE.
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
271
305
|
Name: react-use
|
|
272
306
|
Version: 17.6.1
|
|
273
307
|
License: Unlicense
|
|
@@ -306,40 +340,6 @@ For more information, please refer to <https://unlicense.org>
|
|
|
306
340
|
|
|
307
341
|
---
|
|
308
342
|
|
|
309
|
-
Name: react-merge-refs
|
|
310
|
-
Version: 3.0.2
|
|
311
|
-
License: MIT
|
|
312
|
-
Private: false
|
|
313
|
-
Description: React utility to merge refs.
|
|
314
|
-
Repository: undefined
|
|
315
|
-
Author: Greg Bergé <berge.greg@gmail.com>
|
|
316
|
-
License Text:
|
|
317
|
-
===
|
|
318
|
-
|
|
319
|
-
MIT License
|
|
320
|
-
|
|
321
|
-
Copyright (c) 2020 Greg Bergé
|
|
322
|
-
|
|
323
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
324
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
325
|
-
in the Software without restriction, including without limitation the rights
|
|
326
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
327
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
328
|
-
furnished to do so, subject to the following conditions:
|
|
329
|
-
|
|
330
|
-
The above copyright notice and this permission notice shall be included in all
|
|
331
|
-
copies or substantial portions of the Software.
|
|
332
|
-
|
|
333
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
334
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
335
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
336
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
337
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
338
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
339
|
-
SOFTWARE.
|
|
340
|
-
|
|
341
|
-
---
|
|
342
|
-
|
|
343
343
|
Name: react-hook-form
|
|
344
344
|
Version: 7.83.0
|
|
345
345
|
License: MIT
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
|
|
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.
|