@sheetxl/studio-mui 0.7.28-beta.2 → 0.7.28-beta.4
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/6GrWBX-cyxTRJerw.mjs +236 -0
- package/browser/esm/{Bt_J_RX2M5EfualB.mjs → 6seXVm4fUaBp34tP.mjs} +2 -2
- package/browser/esm/{BlykPulAqes3JMee.mjs → BLjxQ1NUjmULb00s.mjs} +2 -2
- package/browser/esm/{Cwku0NEsbyq9Q_RE.mjs → BVC0iuc28yuEcyua.mjs} +1 -1
- package/browser/esm/{DN5ACcUVdZeTSdLP.mjs → C1PiodbCgkhztxU5.mjs} +2 -2
- package/browser/esm/{CIvpm_sHFmNjZQ7A.mjs → C5XQW-A03GP8EZ3s.mjs} +1 -1
- package/browser/esm/{Lds8JbV0rmFse8IO.mjs → C7WFuxTBA8MWoOQj.mjs} +2 -2
- package/browser/esm/{DP50mI7SOk1spPHv.mjs → CDyYtk9WscSzj5I5.mjs} +2 -2
- package/browser/esm/{DfZkO9tkYUlBUgXw.mjs → CVxEcB8lAnOQ-oPh.mjs} +2 -2
- package/browser/esm/{BGngIqHYTFzsezh-.mjs → CZGRaL9mjYTo8fAd.mjs} +1 -1
- package/browser/esm/{BNhUUeacBwGsPLBQ.mjs → CccE_2DTbTMNIfQM.mjs} +1 -1
- package/browser/esm/{gr4KpbaVpVfm8KOB.mjs → DTWkitCkayiinpgU.mjs} +1 -1
- package/browser/esm/{D4-E6nt8hrlNPIFy.mjs → DbHn3Fq4gYggsoXV.mjs} +1458 -1420
- package/browser/esm/{DxurARMNTQF7_rno.mjs → DdbgnOWM0tle1jeT.mjs} +2 -2
- package/browser/esm/{DLG0lDeb0t2L5dW4.mjs → DhMl3LbgjdX8Nz7b.mjs} +2 -2
- package/browser/esm/{EK3JudzGAPbSIzUc.mjs → DoOWIBDSfgrvMmNO.mjs} +9 -5
- package/browser/esm/{gdfNDmwpOOPidxVx.mjs → Drbpg4A9TaJUZd5A.mjs} +1 -1
- package/browser/esm/{D5kzg7IfEtrExqiB.mjs → DxBsD4nDbg_OWhYG.mjs} +2 -2
- package/browser/esm/{BH0fLaa4Vfda2U-T.mjs → GCJRjX28QYfxi-Lg.mjs} +1 -1
- package/browser/esm/{BkP8c-zrLAqdNL5E.mjs → HZXAXZqrC43FBvGk.mjs} +2 -2
- package/browser/esm/{DhSHhyt16cHMvS_1.mjs → RbGJTMzxMTlkFlTq.mjs} +2 -2
- package/browser/esm/{BKadOi_4tf3UqilJ.mjs → dgkVCh7lmm1Twqmo.mjs} +2057 -1678
- package/browser/esm/index.mjs +22 -22
- package/browser/esm/{BFnJuOSao7TjbB-2.mjs → l5BsxVQszkPy_n34.mjs} +1 -1
- package/licenses/dependencies.txt +34 -34
- package/node/esm/{Ck1Im-zWbwJqZNU1.mjs → -9Hcp_VKJtR9fWlC.mjs} +1 -1
- package/node/esm/{Ctakr7TocM8RykpC.mjs → 6PuhMTJrzLciGI0Z.mjs} +2 -2
- package/node/esm/{CWDr4rcpYux8bSQk.mjs → B-3Ypi8akR-GxIpw.mjs} +1 -1
- package/node/esm/{Dh2MI-_NSwxjrRP8.mjs → BxTFDoMd-nowfxfb.mjs} +1 -1
- package/node/esm/{CTVMIjaQZQtJ05F8.mjs → C2HawKeialuFRR9r.mjs} +1 -1
- package/node/esm/{DMhU1sS3kX-Im83k.mjs → CbhFnQCOA5TjhFB1.mjs} +1 -1
- package/node/esm/CgA8rdWVZEpIUpsM.mjs +236 -0
- package/node/esm/{CLqRv2FWsGMrPoB0.mjs → CxqL51jVpIL4ncWW.mjs} +1 -1
- package/node/esm/D-x3LVzppkKf5be_.mjs +4575 -0
- package/node/esm/{ED4g6Bsz9syAhAW3.mjs → DPhvWXmDun8bC0_v.mjs} +1 -1
- package/node/esm/{CSaiKMpmmQJY2xtl.mjs → DYlYrd0A73WoQQgM.mjs} +1 -1
- package/node/esm/{-xXP4QK8hYGcJeug.mjs → ELTc6e1FF88hBAev.mjs} +1 -1
- package/node/esm/index.mjs +2645 -2262
- package/node/esm/{BVNe-px0vKah_sh2.mjs → uJOy7zjNtP0IqGoa.mjs} +45 -45
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +5 -0
- package/resources/locales/de/ui.msg.json +8 -3
- package/resources/locales/en/groups.cmd.json +5 -0
- package/resources/locales/en/ui.msg.json +56 -3
- 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/B_WyRpeiesnEiNP4.cjs +0 -11
- package/browser/cjs/C3moehR3VOd0LnmM.cjs +0 -1
- package/browser/cjs/DLScL5AOXhHu9O9H.cjs +0 -7
- package/browser/esm/DxEzstNhMkJ0uzic.mjs +0 -191
- package/node/esm/CgDlduchq8t6DdhF.mjs +0 -190
- package/node/esm/VuLRDpv46Yib6fpp.mjs +0 -4536
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.7.28-beta.
|
|
3
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
|
|
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 "./DTWkitCkayiinpgU.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 "./dgkVCh7lmm1Twqmo.mjs";
|
|
10
|
+
import { t as Le } from "./Drbpg4A9TaJUZd5A.mjs";
|
|
11
|
+
import { t as Re } from "./C1PiodbCgkhztxU5.mjs";
|
|
12
|
+
import { n as ze, r as Be, t as Ve } from "./6seXVm4fUaBp34tP.mjs";
|
|
13
|
+
import { a as He, i as Ue, n as We, o as Ge, r as Ke, t as qe } from "./RbGJTMzxMTlkFlTq.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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
|
|
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.
|
|
@@ -53,6 +53,40 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
53
53
|
|
|
54
54
|
---
|
|
55
55
|
|
|
56
|
+
Name: react-merge-refs
|
|
57
|
+
Version: 3.0.2
|
|
58
|
+
License: MIT
|
|
59
|
+
Private: false
|
|
60
|
+
Description: React utility to merge refs.
|
|
61
|
+
Repository: undefined
|
|
62
|
+
Author: Greg Bergé <berge.greg@gmail.com>
|
|
63
|
+
License Text:
|
|
64
|
+
===
|
|
65
|
+
|
|
66
|
+
MIT License
|
|
67
|
+
|
|
68
|
+
Copyright (c) 2020 Greg Bergé
|
|
69
|
+
|
|
70
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
71
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
72
|
+
in the Software without restriction, including without limitation the rights
|
|
73
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
74
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
75
|
+
furnished to do so, subject to the following conditions:
|
|
76
|
+
|
|
77
|
+
The above copyright notice and this permission notice shall be included in all
|
|
78
|
+
copies or substantial portions of the Software.
|
|
79
|
+
|
|
80
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
81
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
82
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
83
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
84
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
85
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
86
|
+
SOFTWARE.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
56
90
|
Name: fuse.js
|
|
57
91
|
Version: 7.5.0
|
|
58
92
|
License: Apache-2.0
|
|
@@ -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.7.28-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
|
|
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,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
|
|
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 {
|
|
7
|
+
import { w as e } from "./index.mjs";
|
|
8
8
|
import { ReactUtils as t } from "@sheetxl/utils-react";
|
|
9
9
|
import { Component as n, PureComponent as i, memo as s, useCallback as r, useLayoutEffect as o, useState as a } from "react";
|
|
10
10
|
import { jsx as l, jsxs as h } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
|
|
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.7.28-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
|
|
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.7.28-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
|
|
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.7.28-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
|
|
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.
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
|
|
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 { FormulaField as e, InputField as t } from "./index.mjs";
|
|
8
|
+
import { useReferenceMode as n } from "@sheetxl/react";
|
|
9
|
+
import { useCallbackRef as l, useTranslator as r } from "@sheetxl/utils-react";
|
|
10
|
+
import { memo as s, useEffect as o, useId as a, useMemo as i, useRef as u, useState as d } from "react";
|
|
11
|
+
import { OptionsDialog as p } from "@sheetxl/utils-mui";
|
|
12
|
+
import { Fragment as c, jsx as m, jsxs as g } from "react/jsx-runtime";
|
|
13
|
+
import { Box as h, FormControl as f, InputLabel as y, MenuItem as x, Select as b, TextField as k } from "@mui/material";
|
|
14
|
+
var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto:", I = (e) => e.length >= 7 && e.substring(0, 7).toLowerCase() === v, F = (e) => {
|
|
15
|
+
if (!I(e)) return null;
|
|
16
|
+
const t = e.substring(7), n = t.indexOf("?");
|
|
17
|
+
if (-1 === n) return {
|
|
18
|
+
address: t,
|
|
19
|
+
subject: ""
|
|
20
|
+
};
|
|
21
|
+
let l = "";
|
|
22
|
+
try {
|
|
23
|
+
l = new URLSearchParams(t.substring(n + 1)).get("subject") ?? "";
|
|
24
|
+
} catch {}
|
|
25
|
+
return {
|
|
26
|
+
address: t.substring(0, n),
|
|
27
|
+
subject: l
|
|
28
|
+
};
|
|
29
|
+
}, O = s((s) => {
|
|
30
|
+
const { initialValue: O = null, context: D, onInput: P, onOption: j, onValidateOption: w, onDone: M, options: $ = T, defaultOption: E = $?.[0], cancelOption: R = "Cancel", sx: W, ...S } = s, A = r(), H = i(() => null !== (O ?? D?.()?.getHyperlink()), []), L = i(() => {
|
|
31
|
+
let e = null, t = null;
|
|
32
|
+
O && ("string" == typeof O ? t = O : e = O);
|
|
33
|
+
const n = e ? null : D?.()?.getHyperlink();
|
|
34
|
+
return {
|
|
35
|
+
address: t ?? e?.address ?? n?.getAddress() ?? "",
|
|
36
|
+
textToDisplay: e?.textToDisplay ?? n?.getTextToDisplay() ?? ""
|
|
37
|
+
};
|
|
38
|
+
}, [O, D]), V = L.address.startsWith("#"), z = i(() => F(L.address), [L.address]), [B, N] = d(V ? "document" : z ? "email" : "url"), [U, q] = d(V || z ? "" : L.address), [G, J] = d(z?.address ?? ""), [K, Q] = d(z?.subject ?? ""), [X, Y] = d(() => V && L.address.substring(1) || null), [Z, _] = d(V ? L.address.substring(1) : ""), [ee, te] = d(null), [ne, le] = d(() => {
|
|
39
|
+
const e = D?.().getText({ useFormattingCategory: !0 }) ?? L.textToDisplay;
|
|
40
|
+
return e === L.address || z && e === z.address ? "" : e;
|
|
41
|
+
}), [re, se] = d(!1), oe = a(), ae = u(null), ie = u(null), ue = l(() => {
|
|
42
|
+
ae.current?.querySelector("input.autoFocus")?.focus(), ie.current?.engage();
|
|
43
|
+
}, []), de = u(B);
|
|
44
|
+
o(() => {
|
|
45
|
+
de.current !== B && (de.current = B, ue());
|
|
46
|
+
}, [B]);
|
|
47
|
+
const pe = i(() => {
|
|
48
|
+
const e = D?.()?.getSheet()?.getName();
|
|
49
|
+
return e ? { scope: e } : void 0;
|
|
50
|
+
}, [D]), ce = "point" === n().getMode()?.mode, me = l((e) => {
|
|
51
|
+
le(e.target.value);
|
|
52
|
+
}, []), ge = l(() => {
|
|
53
|
+
if ("document" === B) {
|
|
54
|
+
if ("string" == typeof X) {
|
|
55
|
+
const e = X.trim();
|
|
56
|
+
return e ? `#${e}` : null;
|
|
57
|
+
}
|
|
58
|
+
const e = X?.getReferences()?.getAddress();
|
|
59
|
+
return e ? `#${e}` : null;
|
|
60
|
+
}
|
|
61
|
+
return "email" === B ? ((e, t) => {
|
|
62
|
+
let n = e.trim();
|
|
63
|
+
if (I(n) && (n = n.substring(7)), !n) return null;
|
|
64
|
+
const l = t.trim();
|
|
65
|
+
return `${v}${n}${l ? `?subject=${encodeURIComponent(l)}` : ""}`;
|
|
66
|
+
})(G, K) : "" === U ? null : U;
|
|
67
|
+
}, [
|
|
68
|
+
B,
|
|
69
|
+
X,
|
|
70
|
+
U,
|
|
71
|
+
G,
|
|
72
|
+
K
|
|
73
|
+
]), he = l(async (e) => {
|
|
74
|
+
const t = e === R;
|
|
75
|
+
if (!t) {
|
|
76
|
+
const e = ge();
|
|
77
|
+
let t = e;
|
|
78
|
+
e?.startsWith("#") ? t = e.substring(1) : "email" === B && e && (t = F(e)?.address ?? e), P?.({
|
|
79
|
+
address: e,
|
|
80
|
+
textToDisplay: ("" === ne ? t : ne) ?? null
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
j?.(e, t, e === E), M?.();
|
|
84
|
+
}, [
|
|
85
|
+
ge,
|
|
86
|
+
B,
|
|
87
|
+
ne,
|
|
88
|
+
P,
|
|
89
|
+
M,
|
|
90
|
+
j,
|
|
91
|
+
E,
|
|
92
|
+
R
|
|
93
|
+
]), fe = l(async (e) => !1 !== await Promise.resolve(w?.(e)) && ("document" !== B || !ee), [
|
|
94
|
+
w,
|
|
95
|
+
B,
|
|
96
|
+
ee
|
|
97
|
+
]), ye = "document" === B ? Z : "email" === B ? G : U;
|
|
98
|
+
return m(p, {
|
|
99
|
+
title: A(H ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
|
|
100
|
+
options: $,
|
|
101
|
+
onDone: M,
|
|
102
|
+
onOption: (e) => he(e),
|
|
103
|
+
onValidateOption: fe,
|
|
104
|
+
defaultOption: E,
|
|
105
|
+
cancelOption: R,
|
|
106
|
+
autoFocusSel: ".autoFocus",
|
|
107
|
+
suspendModal: ce,
|
|
108
|
+
sx: {
|
|
109
|
+
width: "480px",
|
|
110
|
+
...W
|
|
111
|
+
},
|
|
112
|
+
...S,
|
|
113
|
+
children: g(h, {
|
|
114
|
+
ref: ae,
|
|
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
|
+
g(f, {
|
|
124
|
+
sx: {
|
|
125
|
+
minWidth: 135,
|
|
126
|
+
width: "100%"
|
|
127
|
+
},
|
|
128
|
+
size: "small",
|
|
129
|
+
children: [m(y, {
|
|
130
|
+
id: oe,
|
|
131
|
+
children: A("hyperlink.linkTo")
|
|
132
|
+
}), g(b, {
|
|
133
|
+
labelId: oe,
|
|
134
|
+
value: B,
|
|
135
|
+
label: A("hyperlink.linkTo"),
|
|
136
|
+
MenuProps: {
|
|
137
|
+
disableRestoreFocus: !0,
|
|
138
|
+
slotProps: { transition: { onExited: ue } },
|
|
139
|
+
container: () => document.fullscreenElement
|
|
140
|
+
},
|
|
141
|
+
onChange: (e) => {
|
|
142
|
+
N(e.target.value);
|
|
143
|
+
},
|
|
144
|
+
children: [
|
|
145
|
+
m(x, {
|
|
146
|
+
value: "url",
|
|
147
|
+
children: A("hyperlink.typeWebPage")
|
|
148
|
+
}),
|
|
149
|
+
m(x, {
|
|
150
|
+
value: "document",
|
|
151
|
+
children: A("hyperlink.typeInDocument")
|
|
152
|
+
}),
|
|
153
|
+
m(x, {
|
|
154
|
+
value: "email",
|
|
155
|
+
children: A("hyperlink.typeEmail")
|
|
156
|
+
})
|
|
157
|
+
]
|
|
158
|
+
})]
|
|
159
|
+
}),
|
|
160
|
+
"email" === B ? g(c, { children: [m(t, {
|
|
161
|
+
sx: C,
|
|
162
|
+
label: A("hyperlink.emailAddress"),
|
|
163
|
+
defaultInput: A("hyperlink.emailPlaceholder"),
|
|
164
|
+
value: G,
|
|
165
|
+
onChangeInput: (e) => J(e),
|
|
166
|
+
onFocus: (e) => {
|
|
167
|
+
re || e.target?.select?.(), se(!0);
|
|
168
|
+
}
|
|
169
|
+
}), m(t, {
|
|
170
|
+
label: A("hyperlink.subject"),
|
|
171
|
+
defaultInput: "",
|
|
172
|
+
value: K,
|
|
173
|
+
onChangeInput: (e) => Q(e),
|
|
174
|
+
onFocus: () => se(!0)
|
|
175
|
+
})] }) : "document" === B ? m(e, {
|
|
176
|
+
sx: C,
|
|
177
|
+
grammar: "reference",
|
|
178
|
+
apiRef: ie,
|
|
179
|
+
classNameInput: "autoFocus",
|
|
180
|
+
label: A("hyperlink.reference"),
|
|
181
|
+
value: X,
|
|
182
|
+
allowMulti: !1,
|
|
183
|
+
home: pe,
|
|
184
|
+
onChangeInput: (e) => Y(e),
|
|
185
|
+
onChangeText: (e) => _(e),
|
|
186
|
+
onChangeError: (e) => te(e),
|
|
187
|
+
onFocus: (e) => {
|
|
188
|
+
re || e.target?.select?.(), se(!0);
|
|
189
|
+
}
|
|
190
|
+
}) : m(t, {
|
|
191
|
+
sx: C,
|
|
192
|
+
label: A("hyperlink.address"),
|
|
193
|
+
defaultInput: A("hyperlink.addressPlaceholder"),
|
|
194
|
+
value: U,
|
|
195
|
+
onChangeInput: (e) => q(e),
|
|
196
|
+
onFocus: (e) => {
|
|
197
|
+
re || e.target?.select?.(), se(!0);
|
|
198
|
+
}
|
|
199
|
+
}),
|
|
200
|
+
m(f, {
|
|
201
|
+
sx: {
|
|
202
|
+
paddingTop: (e) => e.spacing(1.5),
|
|
203
|
+
minWidth: 135,
|
|
204
|
+
width: "100%"
|
|
205
|
+
},
|
|
206
|
+
size: "small",
|
|
207
|
+
children: m(k, {
|
|
208
|
+
label: A("hyperlink.displayText"),
|
|
209
|
+
placeholder: ye,
|
|
210
|
+
onFocus: () => {
|
|
211
|
+
se(!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: ne,
|
|
226
|
+
onChange: me,
|
|
227
|
+
onContextMenu: (e) => {
|
|
228
|
+
e.stopPropagation();
|
|
229
|
+
}
|
|
230
|
+
})
|
|
231
|
+
})
|
|
232
|
+
]
|
|
233
|
+
})
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
export { O as HyperlinkDialog, O as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
|
|
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.
|