@sheetxl/studio-mui 0.8.0-beta.1 → 0.8.0-beta.2
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/3k_KqDFr-AybPztc.cjs +5 -0
- package/browser/cjs/{zQsyZpeXAvcVXJMs.cjs → 3uprnzi2l0iT17Dg.cjs} +1 -1
- package/browser/cjs/B9GcCj7sj8XdjPZF.cjs +1 -0
- package/browser/cjs/{CJLwX_A3y3TQUmzj.cjs → BGvoJjUs21bbuE1i.cjs} +1 -1
- package/browser/cjs/{CYxc8vnRi8dNpDPk.cjs → BHb7TnK1NmimV4OX.cjs} +1 -1
- package/browser/cjs/BJ-wdkCaXqJaejKf.cjs +1 -0
- package/browser/cjs/BNqyPYRxYISp-uEg.cjs +1 -0
- package/browser/cjs/BXkdjAb4jpTr412c.cjs +1 -0
- package/browser/cjs/Bc-YisjBtD56vBAW.cjs +1 -0
- package/browser/cjs/CuqM721PsKey3yMP.cjs +1 -0
- package/browser/cjs/Cy_XmYq6BsWmCXkk.cjs +3 -0
- package/browser/cjs/D948H7ell-f87BX3.cjs +1 -0
- package/browser/cjs/Dy6O3OWbDBKIj_Ak.cjs +8 -0
- package/browser/cjs/M0_dvdYwhikqP9kg.cjs +2 -0
- package/browser/cjs/QI6GKw7uo1f8gY8C.cjs +1 -0
- package/browser/cjs/eCw4rAEIYE3BftpG.cjs +1 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/rCZbExyf1Q3aHloQ.cjs +13 -0
- package/browser/esm/{UJOXCQv6KrG1gY3l.mjs → 894KM-_Oc5cB6ExA.mjs} +8 -16
- package/browser/esm/B1YOQZHyO_dmHUN4.mjs +293 -0
- package/browser/esm/BQSamOMBAoFdQdJe.mjs +12903 -0
- package/browser/esm/{BoLxSRdEWt-Yg2RI.mjs → BlZiWp3SB3wH5O38.mjs} +130 -103
- package/browser/esm/{DMLXV4EKl1NCp_jk.mjs → Bo74PCF42KVYJF0j.mjs} +3 -3
- package/browser/esm/{ChwS_ougBsogOEsP.mjs → C2Eke_9Dj_m6mtMj.mjs} +2 -2
- package/browser/esm/C5-J1xiO3O1-qaaP.mjs +268 -0
- package/browser/esm/CIbDvsCeLOFHzzId.mjs +152 -0
- package/browser/esm/CNLLwRPWnd4PJgPO.mjs +117 -0
- package/browser/esm/{3ydDykDMtDYbfVVn.mjs → CppDmJ4ckCH3alQf.mjs} +113 -111
- package/browser/esm/{CVBub6pgTsJzCc5m.mjs → CyHNVjgkMYZYlJpY.mjs} +2100 -2214
- package/browser/esm/{Bz5LiUe3SZ8g42Ia.mjs → D7fA9EyCNSzQMgxg.mjs} +1 -1
- package/browser/esm/D8VPmFDvXDE778_x.mjs +222 -0
- package/browser/esm/{Cj2pgCNqBCGl4rTX.mjs → DE7MVTTfExTzvyMW.mjs} +569 -540
- package/browser/esm/DEEnXLhYlUARg6MU.mjs +410 -0
- package/browser/esm/{Cd6n1XUgF0VItpkH.mjs → DIGlcemS7napWyKW.mjs} +1 -1
- package/browser/esm/{rU8xNPVQtDSnujM-.mjs → DN4cwAPYCrtR4gS9.mjs} +3 -3
- package/browser/esm/{DNDrQKMTzKzNMjl-.mjs → DSGFnb1gYyL22p0t.mjs} +1 -1
- package/browser/esm/DlEshYp6NPfHxFvI.mjs +115 -0
- package/browser/esm/{BZBJG2tDdD3-VujP.mjs → Dv3hSCyjvwo6GcH1.mjs} +195 -174
- package/browser/esm/{CBU3LgLYmqtQjJbu.mjs → GmQ9XFFY3hi1L_Ej.mjs} +1 -1
- package/browser/esm/{CVfuCNRpODUw04IH.mjs → _v6Wbw_y3QgJy3qY.mjs} +1 -1
- package/browser/esm/{BUGepznywvV0tUjW.mjs → iM5uEM9H4e8HGt5y.mjs} +2 -2
- package/browser/esm/index.mjs +466 -135
- package/browser/esm/{zWTZ8BvT4hjgC2ua.mjs → xGJU5xUJx3HF317Q.mjs} +2 -2
- package/browser/esm/{CDU0rqpLNVtMLI-f.mjs → z3zkU7Jf3WJ2_Z_P.mjs} +1 -1
- package/licenses/dependencies.txt +73 -73
- package/node/esm/{C-boHCnJditFzng3.mjs → BI8XFczUY--Db2n3.mjs} +32 -40
- package/node/esm/{yCHAZKxJR7qY_ySy.mjs → BJi0FlhIqCMEwROu.mjs} +143 -141
- package/node/esm/{BA7VzUQ2sKRLTZ5c.mjs → BMoRatciTqOi1HkT.mjs} +1 -1
- package/node/esm/BgxeTfCn3jZHGwd7.mjs +414 -0
- package/node/esm/{BhqI3pQFkV8K_612.mjs → BoDCV8cDmFVAYtaW.mjs} +1 -1
- package/node/esm/C0M1VbsIRuRauUI-.mjs +268 -0
- package/node/esm/{CUMKTjYv6VTkcWYi.mjs → CCWQ116Z67Kz78Uo.mjs} +1 -1
- package/node/esm/C_oV7ldFStOF_fAd.mjs +115 -0
- package/node/esm/DAji2BXelmIUxioS.mjs +116 -0
- package/node/esm/{DXZrzWee8K5FPOW1.mjs → DN-bhyNbuBbNB0Ky.mjs} +2 -2
- package/node/esm/{BwZcoHDBmLPIVOT5.mjs → DVaQ6xIbKQgBk0uw.mjs} +1 -1
- package/node/esm/{Qpuqm6xBr_da38Ht.mjs → DVshSSmP5QZU7GoY.mjs} +163 -135
- package/node/esm/{DM7K7-284z-PczVz.mjs → Dbv0IltYad9SQrj3.mjs} +1 -1
- package/node/esm/{CHi3AuWEwEPOg9IZ.mjs → DvMAUBSQsZmIsRxi.mjs} +1 -1
- package/node/esm/OmUP1AfaJcOxWQAg.mjs +4462 -0
- package/node/esm/cJDXopFIX6f3_oi3.mjs +294 -0
- package/node/esm/index.mjs +7716 -4114
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +24 -6
- package/resources/locales/de/studio.cmd.json +18 -1
- package/resources/locales/de/ui.msg.json +251 -30
- package/resources/locales/en/groups.cmd.json +24 -6
- package/resources/locales/en/studio.cmd.json +18 -1
- package/resources/locales/en/ui.msg.json +202 -30
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +11 -1
- package/types/src/anchorItems/AnchorItemsPanel.d.ts +14 -0
- package/types/src/anchorItems/AnchoredRangeField.d.ts +40 -0
- package/types/src/anchorItems/index.d.ts +1 -0
- package/types/src/border/BorderPopupButton.d.ts +6 -6
- package/types/src/border/BorderStylePopupButton.d.ts +3 -3
- package/types/src/border/BorderTemplateIcon.d.ts +24 -0
- package/types/src/border/index.d.ts +1 -0
- package/types/src/color/ColorPanel.d.ts +8 -2
- package/types/src/color/ColorPopupButton.d.ts +2 -1
- package/types/src/command/NumberFormatQuickButtons.d.ts +32 -0
- package/types/src/conditions/BetweenOption.d.ts +1 -1
- package/types/src/conditions/ConditionEditor.d.ts +6 -1
- package/types/src/conditions/ConditionUtils.d.ts +31 -0
- package/types/src/conditions/DateTimeOption.d.ts +4 -4
- package/types/src/conditions/ExpressionOption.d.ts +6 -6
- package/types/src/conditions/ListSourceOption.d.ts +31 -0
- package/types/src/conditions/ScalarOption.d.ts +6 -6
- package/types/src/conditions/index.d.ts +1 -1
- package/types/src/conditions/useFormulaOption.d.ts +54 -0
- package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +7 -1
- package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -2
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +9 -2
- package/types/src/dataValidation/DataValidationIcon.d.ts +22 -0
- package/types/src/dataValidation/DataValidationTitle.d.ts +13 -0
- package/types/src/dialog/FillSeriesDialog.d.ts +16 -0
- package/types/src/dialog/TableNewDialog.d.ts +1 -4
- package/types/src/dialog/index.d.ts +0 -1
- package/types/src/externalLink/ExternalLinkCardBody.d.ts +9 -0
- package/types/src/externalLink/ExternalLinkChip.d.ts +18 -0
- package/types/src/externalLink/ExternalLinkLocation.d.ts +18 -0
- package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +18 -0
- package/types/src/externalLink/ExternalLinksPanel.d.ts +11 -0
- package/types/src/externalLink/ExternalLinksPlugin.d.ts +5 -0
- package/types/src/externalLink/ExternalLinksTaskPane.d.ts +19 -0
- package/types/src/externalLink/index.d.ts +8 -0
- package/types/src/fill/GradientEditor.d.ts +39 -0
- package/types/src/fill/PatternPopupButton.d.ts +26 -0
- package/types/src/fill/PatternSwatch.d.ts +53 -0
- package/types/src/fill/index.d.ts +4 -0
- package/types/src/filter/FilterList.d.ts +9 -6
- package/types/src/form/FormulaField.d.ts +25 -2
- package/types/src/form/InputField.d.ts +30 -0
- package/types/src/format/AlignmentPanel.d.ts +14 -0
- package/types/src/format/BorderPanel.d.ts +22 -0
- package/types/src/format/BorderPreview.d.ts +84 -0
- package/types/src/format/FillPanel.d.ts +25 -0
- package/types/src/format/FontPanel.d.ts +12 -0
- package/types/src/format/FormatCellPreview.d.ts +35 -0
- package/types/src/format/FormatPanelParts.d.ts +83 -0
- package/types/src/format/FormatPlugin.d.ts +11 -0
- package/types/src/format/FormatTaskPane.d.ts +39 -0
- package/types/src/format/NumberFormatOption.d.ts +43 -0
- package/types/src/{numberFormat → format}/NumberFormatPanel.d.ts +20 -0
- package/types/src/format/index.d.ts +13 -0
- package/types/src/format/useFormatSelection.d.ts +92 -0
- package/types/src/index.d.ts +3 -1
- package/types/src/itemsPanel/EditorPanel.d.ts +5 -1
- package/types/src/itemsPanel/ItemCard.d.ts +10 -1
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +55 -19
- package/types/src/itemsPanel/ItemsPanel.d.ts +9 -0
- package/types/src/named/NamedDetailsPanel.d.ts +9 -2
- package/types/src/named/NamedDetailsTaskPane.d.ts +3 -2
- package/types/src/named/NamedEditorPanel.d.ts +1 -1
- package/types/src/named/NamedExpressionField.d.ts +32 -0
- package/types/src/named/NamedKindChip.d.ts +38 -0
- package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +6 -0
- package/types/src/protectedRange/ProtectedRangeDraft.d.ts +22 -0
- package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +0 -14
- package/types/src/protectedRange/index.d.ts +2 -1
- package/types/src/protection/ManageProtectionTaskPane.d.ts +29 -0
- package/types/src/protection/PasswordDialog.d.ts +32 -0
- package/types/src/protection/PasswordField.d.ts +35 -0
- package/types/src/protection/ProtectedCellsPanel.d.ts +20 -0
- package/types/src/protection/ProtectionPlugin.d.ts +11 -0
- package/types/src/protection/SheetProtectionPanel.d.ts +35 -0
- package/types/src/protection/WorkbookProtectionPanel.d.ts +34 -15
- package/types/src/protection/WorkbookProtectionTab.d.ts +22 -0
- package/types/src/protection/index.d.ts +7 -1
- package/types/src/studio/CommandsWrapper.d.ts +3 -0
- package/types/src/studio/EagerStudio.d.ts +14 -1
- package/types/src/studio/StudioCommandProvider.d.ts +3 -0
- package/types/src/studio/StudioCommands.d.ts +38 -2
- package/types/src/studio/StudioProps.d.ts +41 -0
- package/types/src/studio/splitStudioProps.d.ts +7 -0
- package/types/src/studio/useStudioApp.d.ts +20 -1
- package/types/src/template/TemplateCommands.d.ts +29 -0
- package/types/src/template/TemplateDialog.d.ts +19 -0
- package/types/src/template/TemplatePanel.d.ts +50 -0
- package/types/src/template/TemplateSearchField.d.ts +13 -0
- package/types/src/template/WelcomeDialog.d.ts +29 -0
- package/types/src/template/index.d.ts +3 -0
- package/types/src/template/useTemplateCatalog.d.ts +69 -0
- package/types/src/workbook/DefaultRenderers.d.ts +2 -0
- package/types/src/workbook/FillMenu.d.ts +21 -0
- package/types/src/workbook/index.d.ts +1 -0
- package/browser/cjs/B_D3JKseVvpRyX-E.cjs +0 -1
- package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +0 -2
- package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +0 -2
- package/browser/cjs/Bte6P3MhSjajJmmY.cjs +0 -7
- package/browser/cjs/CZm1jVZaHQ246prW.cjs +0 -1
- package/browser/cjs/Cm1APq2MraYNNhyI.cjs +0 -1
- package/browser/cjs/DO8V31Z1ewgMA1di.cjs +0 -5
- package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +0 -1
- package/browser/cjs/IASAYG6qgv7lJY7y.cjs +0 -1
- package/browser/cjs/UnMhi28mbvLiOXQe.cjs +0 -1
- package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +0 -1
- package/browser/cjs/w2GjebPlOFv3pCbm.cjs +0 -1
- package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +0 -11
- package/browser/esm/BuY3uV47Bwbqpasq.mjs +0 -219
- package/browser/esm/CAs1MWvJTcRfJy26.mjs +0 -217
- package/browser/esm/C_XvSsQ9BVdHffCO.mjs +0 -47
- package/browser/esm/FT29q8yNwsEpVZjt.mjs +0 -9257
- package/browser/esm/Hb1rlHT4tE5hLcjM.mjs +0 -82
- package/browser/esm/s46El7mT6oKLSnYB.mjs +0 -411
- package/node/esm/9FY82fj1R1c-AczW.mjs +0 -47
- package/node/esm/DxXM8qHi0Oz4Zovl.mjs +0 -4575
- package/node/esm/sQt2wWGTRLzqeJdG.mjs +0 -82
- package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +0 -32
- package/types/src/conditions/InSetOption.d.ts +0 -37
- package/types/src/dialog/NumberFormatDialog.d.ts +0 -12
- package/types/src/numberFormat/NumberFormatTaskPane.d.ts +0 -12
- package/types/src/numberFormat/index.d.ts +0 -8
- package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +0 -3
- package/types/src/protectedRange/ProtectedRangePlugin.d.ts +0 -2
- package/types/src/protection/WorkbookProtectionDialog.d.ts +0 -23
package/browser/esm/index.mjs
CHANGED
|
@@ -1,153 +1,484 @@
|
|
|
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-
|
|
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_1yps2_1{flex-direction:column;flex:100%;align-items:center;row-gap:8px;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-between;gap:12px}}._action-row_1yps2_17{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.8.0-beta.
|
|
3
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.2
|
|
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 {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import { a as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
let
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
onDone: d,
|
|
28
|
-
changeOn: f,
|
|
29
|
-
onValidate: p,
|
|
30
|
-
disabled: n
|
|
8
|
+
import { $ as e, $t as t, A as n, An as r, At as i, B as a, C as o, Cn as s, Ct as c, D as l, Dn as u, Dt as d, E as f, En as p, Et as m, F as h, G as g, H as _, I as v, J as y, Jt as b, K as x, L as S, M as C, Mn as ee, N as te, Nn as ne, O as re, On as ie, Ot as ae, P as oe, Pn as se, Q as ce, Qt as le, R as ue, S as de, Sn as fe, St as pe, T as me, Tn as he, Tt as ge, U as _e, V as ve, W as ye, X as be, Xt as xe, Y as Se, Yt as Ce, Z as we, Zt as Te, _ as Ee, _n as De, _t as Oe, an as ke, at as Ae, b as je, bn as Me, bt as Ne, c as Pe, cn as Fe, ct as Ie, d as Le, dn as Re, dt as ze, en as Be, et as Ve, f as He, fn as Ue, ft as We, g as Ge, gn as Ke, gt as qe, h as Je, hn as Ye, ht as Xe, i as Ze, in as Qe, it as $e, j as et, jn as tt, k as nt, kn as rt, kt as it, ln as at, lt as ot, m as st, mn as ct, mt as lt, n as ut, nn as dt, nt as ft, ot as pt, p as mt, pn as ht, pt as gt, q as _t, qt as vt, r as yt, rn as bt, rt as xt, s as St, sn as Ct, st as wt, tn as Tt, tt as Et, u as Dt, un as Ot, ut as kt, v as At, vn as jt, vt as Mt, w as Nt, wn as Pt, wt as Ft, x as It, xn as Lt, xt as Rt, y as zt, yn as Bt, yt as Vt, z as Ht } from "./BQSamOMBAoFdQdJe.mjs";
|
|
9
|
+
import { t as Ut } from "./DIGlcemS7napWyKW.mjs";
|
|
10
|
+
import { i as w, n as T, r as E } from "./z3zkU7Jf3WJ2_Z_P.mjs";
|
|
11
|
+
import { n as Wt, t as Gt } from "./D8VPmFDvXDE778_x.mjs";
|
|
12
|
+
import { t as Kt } from "./CIbDvsCeLOFHzzId.mjs";
|
|
13
|
+
import { a as qt, i as Jt, n as Yt, o as Xt, r as Zt, t as Qt } from "./Dv3hSCyjvwo6GcH1.mjs";
|
|
14
|
+
import { LicenseManager as $t, LicenseManager as en } from "@sheetxl/sdk";
|
|
15
|
+
import { DefaultTaskPaneRegistry as tn, ThemeStateKey as nn, WorkbookIO as rn, WorkbookIO as D, setPrintExamplesOnLoad as an, useModelListener as on, useRangeListener as sn, useWindowChrome as cn, useWorkbook as ln, useWorkbookFormat as un, useWorkbookName as dn } from "@sheetxl/react";
|
|
16
|
+
import { CommandButtonType as O, createThemeScopeClass as fn, lazyComponent as pn, useCallbackRef as k, useCommandButtonEntry as A, useCommandButtonRegistry as mn, useCommands as j, usePersistenceState as hn, useResolvedThemeMode as gn, useTranslator as _n } from "@sheetxl/utils-react";
|
|
17
|
+
import { Suspense as vn, createElement as M, forwardRef as N, memo as P, useCallback as F, useEffect as I, useId as yn, useMemo as L, useRef as R, useState as z } from "react";
|
|
18
|
+
import { CommandButton as B, CommandGroup as bn, CommandPopupButton as V, ExhibitDivider as H, LabelIcon as xn, LazyLoadErrorPanel as Sn, OptionsDialog as Cn, defaultCreatePopupPanel as U, renderMembers as wn } from "@sheetxl/utils-mui";
|
|
19
|
+
import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
|
|
20
|
+
import { Box as q, Paper as Tn, TextField as J, Typography as En, useMediaQuery as Dn } from "@mui/material";
|
|
21
|
+
import { LazyModules as On, defineLazyModule as kn } from "@sheetxl/utils";
|
|
22
|
+
var Y = Object.defineProperty, An = (e, t) => {
|
|
23
|
+
let n = {};
|
|
24
|
+
for (var r in e) Y(n, r, {
|
|
25
|
+
get: e[r],
|
|
26
|
+
enumerable: !0
|
|
31
27
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
28
|
+
return t || Y(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
29
|
+
}, X = function(e) {
|
|
30
|
+
var t = window.history, n = t[e];
|
|
31
|
+
t[e] = function(t) {
|
|
32
|
+
var r = n.apply(this, arguments), i = new Event(e.toLowerCase());
|
|
33
|
+
return i.state = t, window.dispatchEvent(i), r;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
T && (X("pushState"), X("replaceState"));
|
|
37
|
+
var Z = function(e) {
|
|
38
|
+
var t = window.history, n = t.state, r = t.length, i = window.location;
|
|
39
|
+
return {
|
|
40
|
+
trigger: e,
|
|
41
|
+
state: n,
|
|
42
|
+
length: r,
|
|
43
|
+
hash: i.hash,
|
|
44
|
+
host: i.host,
|
|
45
|
+
hostname: i.hostname,
|
|
46
|
+
href: i.href,
|
|
47
|
+
origin: i.origin,
|
|
48
|
+
pathname: i.pathname,
|
|
49
|
+
port: i.port,
|
|
50
|
+
protocol: i.protocol,
|
|
51
|
+
search: i.search
|
|
52
|
+
};
|
|
53
|
+
}, jn = T && typeof Event == "function" ? function() {
|
|
54
|
+
var e = z(Z("load")), t = e[0], n = e[1];
|
|
55
|
+
return I(function() {
|
|
56
|
+
var e = function() {
|
|
57
|
+
return n(Z("popstate"));
|
|
58
|
+
}, t = function() {
|
|
59
|
+
return n(Z("pushstate"));
|
|
60
|
+
}, r = function() {
|
|
61
|
+
return n(Z("replacestate"));
|
|
62
|
+
};
|
|
63
|
+
return w(window, "popstate", e), w(window, "pushstate", t), w(window, "replacestate", r), function() {
|
|
64
|
+
E(window, "popstate", e), E(window, "pushstate", t), E(window, "replacestate", r);
|
|
65
|
+
};
|
|
66
|
+
}, []), t;
|
|
67
|
+
} : function() {
|
|
68
|
+
return {
|
|
69
|
+
trigger: "load",
|
|
70
|
+
length: 1
|
|
71
|
+
};
|
|
72
|
+
}, Q = P(N((e, t) => {
|
|
73
|
+
let { groupKey: n = "workbook", disabled: r, ...i } = e, [a, o] = z([]), s = D.canWrite(), c = D.canRead();
|
|
74
|
+
I(() => {
|
|
75
|
+
let e = !0;
|
|
76
|
+
return D.getWriteFormats().then((t) => {
|
|
77
|
+
e && o(t);
|
|
78
|
+
}), () => {
|
|
79
|
+
e = !1;
|
|
80
|
+
};
|
|
81
|
+
}, []);
|
|
82
|
+
let l = un(ln()), u = L(() => {
|
|
83
|
+
if (a.length === 0) return null;
|
|
84
|
+
let e = l?.toLowerCase();
|
|
85
|
+
return (e ? a.find((t) => t.key.toLowerCase() === e) ?? a.find((t) => t.exts?.some((t) => t.toLowerCase() === e)) : void 0) ?? a.find((e) => e.exts?.some((e) => e.toLowerCase() === "sxl")) ?? a.find((e) => !e.advanced) ?? a[0];
|
|
86
|
+
}, [a, l]), [d] = j(u ? `saveWorkbookAs${u.key}` : []), f = mn(), p = f.resolveMembers("newWorkbookOptions") ?? ["newWorkbook"], m = k((e) => {
|
|
87
|
+
let t = {
|
|
88
|
+
variant: O.Menuitem,
|
|
89
|
+
groupKey: n,
|
|
90
|
+
disabled: r
|
|
91
|
+
}, i = K(W, { children: [
|
|
92
|
+
p.length > 1 ? G(V, {
|
|
93
|
+
...t,
|
|
94
|
+
quickCommand: "newWorkbook",
|
|
95
|
+
createPopupPanel: (e) => {
|
|
96
|
+
let t = wn(p, {
|
|
97
|
+
variant: O.Menuitem,
|
|
98
|
+
dividerOrientation: "horizontal",
|
|
99
|
+
groupKey: "newWorkbookOptions",
|
|
100
|
+
registry: f,
|
|
101
|
+
propsCommandButton: { disabled: r },
|
|
102
|
+
propsCommandPopup: { disabled: r }
|
|
103
|
+
});
|
|
104
|
+
return U({
|
|
105
|
+
...e,
|
|
106
|
+
children: t,
|
|
107
|
+
onClick: () => {
|
|
108
|
+
e.closeFloatAll?.();
|
|
109
|
+
}
|
|
110
|
+
});
|
|
54
111
|
}
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
112
|
+
}) : G(B, {
|
|
113
|
+
...t,
|
|
114
|
+
commandKey: "newWorkbook"
|
|
115
|
+
}),
|
|
116
|
+
G(H, { orientation: "horizontal" }),
|
|
117
|
+
c ? G(V, {
|
|
118
|
+
...t,
|
|
119
|
+
quickCommand: "openWorkbook",
|
|
120
|
+
createPopupPanel: (e) => {
|
|
121
|
+
let n = {
|
|
122
|
+
...t,
|
|
123
|
+
groupKey: "openWorkbookOptions"
|
|
124
|
+
}, r = [M(B, {
|
|
125
|
+
...n,
|
|
126
|
+
key: "device",
|
|
127
|
+
commandKey: "openWorkbook"
|
|
128
|
+
}), M(B, {
|
|
129
|
+
...n,
|
|
130
|
+
key: "web",
|
|
131
|
+
commandKey: "openWorkbookFromUrl"
|
|
132
|
+
})];
|
|
133
|
+
return U({
|
|
134
|
+
...e,
|
|
135
|
+
children: r,
|
|
136
|
+
onClick: () => {
|
|
137
|
+
e.closeFloatAll?.();
|
|
138
|
+
}
|
|
139
|
+
});
|
|
72
140
|
}
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
141
|
+
}) : null,
|
|
142
|
+
s && a.length > 0 ? G(V, {
|
|
143
|
+
...t,
|
|
144
|
+
quickCommand: "saveWorkbook",
|
|
145
|
+
createPopupPanel: (e) => {
|
|
146
|
+
let n = {
|
|
147
|
+
...t,
|
|
148
|
+
groupKey: "saveWorkbookOptions"
|
|
149
|
+
}, r = [M(B, {
|
|
150
|
+
...n,
|
|
151
|
+
key: "saveWorkbookAs",
|
|
152
|
+
commandKey: "saveWorkbookAs",
|
|
153
|
+
label: d?.getLabel("saveWorkbookOptions"),
|
|
154
|
+
icon: d?.getIcon("saveWorkbookOptions")
|
|
155
|
+
})], i = a.filter((e) => !e.advanced && e.key !== u?.key);
|
|
156
|
+
return i.length > 0 && r.push(G(H, { orientation: "horizontal" }, "divider")), i.forEach((e) => {
|
|
157
|
+
let t = e.key, i = `saveWorkbookAs${t}`;
|
|
158
|
+
r.push(M(B, {
|
|
159
|
+
...n,
|
|
160
|
+
key: t,
|
|
161
|
+
commandKey: i
|
|
162
|
+
}));
|
|
163
|
+
}), U({
|
|
164
|
+
...e,
|
|
165
|
+
children: r,
|
|
166
|
+
onClick: () => {
|
|
167
|
+
e.closeFloatAll?.();
|
|
168
|
+
}
|
|
169
|
+
});
|
|
87
170
|
}
|
|
88
|
-
})
|
|
171
|
+
}) : null
|
|
172
|
+
] });
|
|
173
|
+
return U({
|
|
174
|
+
...e,
|
|
175
|
+
children: i,
|
|
176
|
+
onClick: (t) => {
|
|
177
|
+
t.isDefaultPrevented() || e.closeFloatAll?.();
|
|
178
|
+
}
|
|
89
179
|
});
|
|
90
180
|
}, [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
181
|
+
r,
|
|
182
|
+
n,
|
|
183
|
+
a,
|
|
184
|
+
u,
|
|
185
|
+
d,
|
|
186
|
+
p,
|
|
187
|
+
f
|
|
188
|
+
]), h = A("fileOptions"), g = h?.getLabel?.() ?? "File";
|
|
189
|
+
return G(V, {
|
|
190
|
+
disabled: r,
|
|
191
|
+
groupKey: n,
|
|
192
|
+
label: g,
|
|
193
|
+
tooltip: h?.getDescription?.() ?? "Options for saving and loading the workbook.",
|
|
99
194
|
sx: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
195
|
+
paddingBottom: "0px",
|
|
196
|
+
"& button": {
|
|
197
|
+
paddingTop: "0px",
|
|
198
|
+
paddingBottom: "0px",
|
|
199
|
+
height: (e) => `calc(1.25rem + ${e.spacing(2)}px)`
|
|
200
|
+
}
|
|
103
201
|
},
|
|
104
|
-
|
|
202
|
+
...i,
|
|
203
|
+
createPopupPanel: m,
|
|
204
|
+
icon: G(xn, {
|
|
205
|
+
className: "label",
|
|
206
|
+
icon: null,
|
|
207
|
+
label: g
|
|
208
|
+
})
|
|
209
|
+
});
|
|
210
|
+
}));
|
|
211
|
+
Q.displayName = "FileCommandButton";
|
|
212
|
+
var Mn = P(N((e, t) => {
|
|
213
|
+
let { groupKey: n, disabled: r, ...i } = e, [a] = j(["themeMode"]), o = A("appearanceOptions"), s = k((e) => {
|
|
214
|
+
let t = {
|
|
215
|
+
variant: O.Menuitem,
|
|
216
|
+
groupKey: "appearanceOptions",
|
|
217
|
+
disabled: r
|
|
218
|
+
}, n = K(W, { children: [
|
|
219
|
+
G(B, {
|
|
220
|
+
...t,
|
|
221
|
+
commandKey: "themeMode"
|
|
222
|
+
}),
|
|
223
|
+
G(B, {
|
|
224
|
+
...t,
|
|
225
|
+
commandKey: "defaultThemeMode"
|
|
226
|
+
}),
|
|
227
|
+
G(H, { orientation: "horizontal" }),
|
|
228
|
+
G(B, {
|
|
229
|
+
...t,
|
|
230
|
+
commandKey: "enableDarkGrid"
|
|
231
|
+
}),
|
|
232
|
+
G(B, {
|
|
233
|
+
...t,
|
|
234
|
+
commandKey: "enableDarkImages"
|
|
235
|
+
})
|
|
236
|
+
] });
|
|
237
|
+
return U({
|
|
238
|
+
...e,
|
|
239
|
+
children: n
|
|
240
|
+
});
|
|
241
|
+
}, [
|
|
242
|
+
r,
|
|
243
|
+
a,
|
|
244
|
+
n
|
|
245
|
+
]), c = a?.getState(), l = Dn("(prefers-color-scheme: dark)"), u = c === "dark" || c === null && l, d = a?.getState() !== null;
|
|
246
|
+
return G(V, {
|
|
105
247
|
ref: t,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
248
|
+
quickCommand: "themeMode",
|
|
249
|
+
createPopupPanel: s,
|
|
250
|
+
label: o?.getLabel?.(),
|
|
251
|
+
tooltip: o?.getDescription?.(),
|
|
252
|
+
onQuickClick: () => {
|
|
253
|
+
a?.execute(u ? "light" : "dark");
|
|
254
|
+
},
|
|
255
|
+
selected: d,
|
|
256
|
+
...i
|
|
257
|
+
});
|
|
258
|
+
})), Nn = P(N((e, t) => {
|
|
259
|
+
let { ...n } = e;
|
|
260
|
+
return G(bn, {
|
|
261
|
+
ref: t,
|
|
262
|
+
groupKey: "insertFunctionSumOptions",
|
|
263
|
+
...n
|
|
264
|
+
});
|
|
265
|
+
}));
|
|
266
|
+
Nn.displayName = "InsertFunctionSumCommandPopupButton";
|
|
267
|
+
var Pn = An({
|
|
268
|
+
PasswordDialog: () => $,
|
|
269
|
+
default: () => $
|
|
270
|
+
}), $ = (e) => {
|
|
271
|
+
let t = _n(), { description: n, requireCurrent: r = !1, onApply: i, title: a, sx: o, ...s } = e, [c, l] = z(""), [u, d] = z(""), [f, p] = z(""), [m, h] = z(!1), g = u === "", _ = f !== u, v = !g && !_;
|
|
272
|
+
return G(Cn, {
|
|
273
|
+
title: a ?? t(r ? "password.titleChange" : "password.title"),
|
|
274
|
+
options: ["Ok", "Cancel"],
|
|
275
|
+
defaultOption: "Ok",
|
|
276
|
+
cancelOption: "Cancel",
|
|
277
|
+
autoFocusSel: ".autoFocus",
|
|
278
|
+
sx: {
|
|
279
|
+
width: "380px",
|
|
280
|
+
...o
|
|
281
|
+
},
|
|
282
|
+
onValidateOption: (e) => e === "Cancel" || (h(!0), v),
|
|
283
|
+
onOption: (e, t) => {
|
|
284
|
+
if (!t && e === "Ok") return i(u, r ? c : void 0);
|
|
285
|
+
},
|
|
286
|
+
...s,
|
|
287
|
+
children: K(q, {
|
|
288
|
+
sx: {
|
|
289
|
+
display: "flex",
|
|
290
|
+
flexDirection: "column",
|
|
291
|
+
gap: (e) => e.spacing(2),
|
|
292
|
+
paddingTop: (e) => e.spacing(1)
|
|
145
293
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
294
|
+
children: [
|
|
295
|
+
n ? G(En, {
|
|
296
|
+
variant: "body2",
|
|
297
|
+
sx: { color: "text.secondary" },
|
|
298
|
+
children: n
|
|
299
|
+
}) : null,
|
|
300
|
+
r ? G(J, {
|
|
301
|
+
type: "password",
|
|
302
|
+
size: "small",
|
|
303
|
+
label: t("password.current"),
|
|
304
|
+
value: c,
|
|
305
|
+
onChange: (e) => l(e.target.value),
|
|
306
|
+
slotProps: {
|
|
307
|
+
inputLabel: { shrink: !0 },
|
|
308
|
+
htmlInput: {
|
|
309
|
+
className: "autoFocus",
|
|
310
|
+
autoComplete: "current-password",
|
|
311
|
+
spellCheck: !1
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}) : null,
|
|
315
|
+
G(J, {
|
|
316
|
+
type: "password",
|
|
317
|
+
size: "small",
|
|
318
|
+
label: t(r ? "password.new" : "password.label"),
|
|
319
|
+
value: u,
|
|
320
|
+
error: m && g,
|
|
321
|
+
helperText: m && g ? t("password.required") : " ",
|
|
322
|
+
onChange: (e) => d(e.target.value),
|
|
323
|
+
slotProps: {
|
|
324
|
+
inputLabel: { shrink: !0 },
|
|
325
|
+
htmlInput: {
|
|
326
|
+
className: r ? void 0 : "autoFocus",
|
|
327
|
+
autoComplete: "new-password",
|
|
328
|
+
spellCheck: !1
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}),
|
|
332
|
+
G(J, {
|
|
333
|
+
type: "password",
|
|
334
|
+
size: "small",
|
|
335
|
+
label: t("protection.passwordConfirm"),
|
|
336
|
+
value: f,
|
|
337
|
+
error: m && !g && _,
|
|
338
|
+
helperText: m && !g && _ ? t("protection.passwordMismatch") : " ",
|
|
339
|
+
onChange: (e) => p(e.target.value),
|
|
340
|
+
slotProps: {
|
|
341
|
+
inputLabel: { shrink: !0 },
|
|
342
|
+
htmlInput: {
|
|
343
|
+
autoComplete: "new-password",
|
|
344
|
+
spellCheck: !1
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
})
|
|
348
|
+
]
|
|
149
349
|
})
|
|
150
350
|
});
|
|
351
|
+
}, Fn = /* @__PURE__ */ new Set(/* @__PURE__ */ "square.elevation.variant.title.onKeyDown.workbook.onWorkbookChange.onDocumentError.propsDocumentError.renderDocumentError.propsDocumentLoading.renderDocumentLoading.propsWorkbook.onWorkbookLoad.propsTaskPaneArea.renderTaskPaneArea.taskPaneSide.logo.onDirtyChange.propsDocumentTitle.showFormulaBar.propsFormulaBar.renderFormulaBar.editable.showStatusBar.propsStatusBar.renderStatusBar.propsToolbar.renderToolbar.topLeft.topRight.muiTheme.tokens.cssBaseline.autoFocus.licenseKey.prefetch".split(".")), In = () => G(W, {}), Ln = kn("studio:eagerStudio", () => import("./CyHNVjgkMYZYlJpY.mjs"), { tier: "startup" }), Rn = ({ error: e, onShown: t }) => (I(() => {
|
|
352
|
+
t();
|
|
353
|
+
}, []), G(Sn, { error: e })), zn = P(N((e, t) => {
|
|
354
|
+
let { sx: n, style: r, className: i, licenseKey: a, prefetch: o = "common", renderDocumentLoading: s = St, propsDocumentLoading: c, onWorkbookLoad: l, onDocumentError: u, ...d } = e, [f, p] = ((e) => {
|
|
355
|
+
let t = {}, n = {};
|
|
356
|
+
for (let r in e) (Fn.has(r) ? t : n)[r] = e[r];
|
|
357
|
+
return [t, n];
|
|
358
|
+
})(d);
|
|
359
|
+
a && en.setLicenseKey(a);
|
|
360
|
+
let [m] = hn(nn.Mode, void 0), { themeMode: h } = gn({ mode: m ?? void 0 }), g = h === "dark", [_, v] = z(null), y = fn("studio", yn()), [b, x] = z(!1), S = L(() => !s || b ? null : G(Tn, {
|
|
361
|
+
style: {
|
|
362
|
+
backgroundColor: `var(--sxl-color-base-100, ${g ? "#121212" : "#fff"})`,
|
|
363
|
+
inset: 0,
|
|
364
|
+
width: "100%",
|
|
365
|
+
height: "100%",
|
|
366
|
+
position: "absolute",
|
|
367
|
+
display: "flex",
|
|
368
|
+
alignItems: "center",
|
|
369
|
+
justifyContent: "center",
|
|
370
|
+
zIndex: 9900
|
|
371
|
+
},
|
|
372
|
+
children: s(c ?? {})
|
|
373
|
+
}), [
|
|
374
|
+
s,
|
|
375
|
+
c,
|
|
376
|
+
g,
|
|
377
|
+
b
|
|
378
|
+
]);
|
|
379
|
+
I(() => {
|
|
380
|
+
if (!b || o === "none") return;
|
|
381
|
+
let e = o === "all" ? [
|
|
382
|
+
"startup",
|
|
383
|
+
"common",
|
|
384
|
+
"rare"
|
|
385
|
+
] : ["startup", "common"], t = new AbortController(), n = () => {
|
|
386
|
+
On.prefetch({
|
|
387
|
+
tiers: e,
|
|
388
|
+
signal: t.signal
|
|
389
|
+
});
|
|
390
|
+
};
|
|
391
|
+
n();
|
|
392
|
+
let r = navigator.connection;
|
|
393
|
+
return window.addEventListener("online", n), r?.addEventListener?.("change", n), () => {
|
|
394
|
+
t.abort(), window.removeEventListener("online", n), r?.removeEventListener?.("change", n);
|
|
395
|
+
};
|
|
396
|
+
}, [b, o]);
|
|
397
|
+
let C = L(() => pn(Ln.load, { renderError: (e) => G(Rn, {
|
|
398
|
+
error: e,
|
|
399
|
+
onShown: () => x(!0)
|
|
400
|
+
}) }), []);
|
|
401
|
+
return K(q, {
|
|
402
|
+
ref: v,
|
|
403
|
+
className: Ut("sheetxl-studio", y, i),
|
|
404
|
+
"data-sxl-theme-mode": h,
|
|
405
|
+
sx: n,
|
|
406
|
+
style: {
|
|
407
|
+
display: "flex",
|
|
408
|
+
flexDirection: "column",
|
|
409
|
+
flex: "1 1 100%",
|
|
410
|
+
width: "100%",
|
|
411
|
+
height: "100%",
|
|
412
|
+
minWidth: 0,
|
|
413
|
+
minHeight: 0,
|
|
414
|
+
position: "relative",
|
|
415
|
+
overflow: "hidden",
|
|
416
|
+
...r
|
|
417
|
+
},
|
|
418
|
+
...p,
|
|
419
|
+
children: [G(vn, {
|
|
420
|
+
fallback: null,
|
|
421
|
+
children: G(C, {
|
|
422
|
+
...f,
|
|
423
|
+
host: _,
|
|
424
|
+
scopeClass: y,
|
|
425
|
+
onWorkbookLoad: (e) => (requestAnimationFrame(() => requestAnimationFrame(() => x(!0))), l?.(e)),
|
|
426
|
+
onDocumentError: (e) => (x(!0), u?.(e)),
|
|
427
|
+
renderDocumentLoading: In,
|
|
428
|
+
ref: t
|
|
429
|
+
})
|
|
430
|
+
}), S]
|
|
431
|
+
});
|
|
151
432
|
}));
|
|
152
|
-
|
|
153
|
-
|
|
433
|
+
zn.displayName = "Studio";
|
|
434
|
+
var Bn = (e = {}) => {
|
|
435
|
+
let { source: t, startWith: n, templatePath: r, onWorkbookLoad: i, documentTitle: a, confirmOnClose: o, keyboardGuard: s } = e, c = jn(), [l, u] = z(null), [d, f] = z(!1);
|
|
436
|
+
cn(dn(l), d, {
|
|
437
|
+
documentTitle: a,
|
|
438
|
+
confirmOnClose: o,
|
|
439
|
+
keyboardGuard: s
|
|
440
|
+
});
|
|
441
|
+
let { workbook: p, urlTitle: m } = L(() => {
|
|
442
|
+
if (t != null) return {
|
|
443
|
+
workbook: typeof t == "string" ? { source: t } : t,
|
|
444
|
+
urlTitle: null
|
|
445
|
+
};
|
|
446
|
+
if (c.search) {
|
|
447
|
+
let e = new URLSearchParams(c.search), t = e.get("source");
|
|
448
|
+
if (t) return {
|
|
449
|
+
workbook: { source: t },
|
|
450
|
+
urlTitle: e.get("title")
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
return {
|
|
454
|
+
workbook: void 0,
|
|
455
|
+
urlTitle: null
|
|
456
|
+
};
|
|
457
|
+
}, [t, c.search]), h = F((e) => {
|
|
458
|
+
e && m && e.getOrigin().setName(m), u(e);
|
|
459
|
+
}, [m]);
|
|
460
|
+
I(() => {
|
|
461
|
+
n === "welcome" && p === void 0 && ut(r);
|
|
462
|
+
}, [
|
|
463
|
+
n,
|
|
464
|
+
p,
|
|
465
|
+
r
|
|
466
|
+
]);
|
|
467
|
+
let g = R(!1), _ = R(i);
|
|
468
|
+
return _.current = i, {
|
|
469
|
+
workbook: p,
|
|
470
|
+
onWorkbookChange: h,
|
|
471
|
+
onDirtyChange: f,
|
|
472
|
+
onWorkbookLoad: F((e) => (g.current || (g.current = !0, n === "welcome" && p === void 0 && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
473
|
+
e.source?.getCommandScope?.()?.resolve("showWelcome")?.execute({
|
|
474
|
+
templatePath: r,
|
|
475
|
+
atStartup: !0
|
|
476
|
+
});
|
|
477
|
+
}))), _.current?.(e)), [
|
|
478
|
+
n,
|
|
479
|
+
r,
|
|
480
|
+
p
|
|
481
|
+
])
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
export { h as AlignmentPanel, Mn as AppearanceCommandButton, r as AutoColorPosition, Lt as BorderCommandButton, re as BorderPanel, fe as BorderPopupButton, nt as BorderPreview, Pt as BorderStylePopupButton, s as BorderTemplateIcon, b as CalculationOptionsCommandButton, Ne as CalculationRequiredStatus, Rt as CircularReferenceStatus, rt as ColorButton, ie as ColorButtonList, ct as ColorCommandButton, u as ColorPanel, tt as ColorPanelType, p as ColorPopupButton, e as ColumnMenu, g as DEFAULT_GRADIENT, tn as DefaultTaskPaneRegistry, Ft as DefaultWorkbookToolbars, Ce as DocThemeCommandButton, yt as DocumentTitle, wt as ExternalLinkCardBody, pt as ExternalLinkChip, Ae as ExternalLinkLocation, $e as ExternalLinkSettingsTab, xt as ExternalLinksPanel, Et as ExternalLinksPlugin, ft as ExternalLinksTaskPane, me as FORMAT_TAB_KEY, o as FORMAT_TASK_PANE_KEY, Gt as FORMULA_FIELD_ABOVE_LABEL_HEIGHT, Q as FileCommandButton, Dt as FillMenu, te as FillPanel, Ve as FilterList, ht as FontFamilyCommandButton, oe as FontPanel, Me as FontSizeCommandButton, ue as FormatButtonGroup, S as FormatCellPreview, Ht as FormatNumberField, Nt as FormatPlugin, a as FormatRow, ve as FormatSection, f as FormatTab, l as FormatTaskPane, Ie as FormulaBar, Wt as FormulaField, qt as FunctionArgumentsPanel, Xt as FunctionSearchPanel, x as GradientEditor, Qt as INSERT_FUNCTION_PAGE_CLASS, Kt as InputField, it as InsertFunctionCommandPopupButton, Yt as InsertFunctionOption, Nn as InsertFunctionSumCommandPopupButton, Zt as InsertFunctionWizard, $t as LicenseManager, Ge as ManageProtectionTaskPane, gt as NAMED_TYPE_FORMULA, Mt as NamedCollectionEditor, ze as NamedDetailsPanel, kt as NamedDetailsTaskPane, We as NamedEditorPanel, ot as NamedPlugin, Ke as NumberFormatCommandButton, De as NumberFormatOption, v as NumberFormatPanel, pe as NumberStats, be as PATTERN_GALLERY, n as PREVIEW_EDGES, $ as PasswordDialog, de as PasswordField, Re as PasteCommandButton, y as PatternPopupButton, we as PatternSwatch, Ot as PresetCellStylesCommandButton, dt as PresetTableStylesCommandButton, zt as ProtectedCellsPanel, Ee as ProtectedRangeDetailsTaskPane, Je as ProtectionPlugin, je as SheetProtectionPanel, st as SheetTabMenu, ee as SheetZoomCommandButton, c as SheetZoomScale, mt as SheetsAllMenu, Vt as StatusBar, zn as Studio, he as StyledStrokeIcon, ke as TableDetailsPanel, Qe as TableDetailsTaskPane, bt as TablePlugin, Fe as TableStyleCanvasPreview, Ct as TableStyleOptionsPanel, at as TableStylePreview, Ue as TextEffectsCommandButton, ne as TextRotateGroupButton, Tt as ThemeSelectButton, Be as ThemeSelectPanel, t as ThemeSelectPopupButton, Ye as UndoRedoCommandButton, vt as WalkingCopyCommandButton, Le as WorkbookContextMenu, Ze as WorkbookElement, rn as WorkbookIO, It as WorkbookProtectionPanel, At as WorkbookProtectionTab, He as WorkbookStrip, ge as WorkbookToolbars, lt as createNamedDraft, xe as createStudioThemeCSS, Te as createThemeFromMUITheme, et as edgeAt, C as edgeLabel, Xe as expressionOf, qe as isEditableNamed, jt as numberFormatCategoryLabel, Bt as numberFormatTypeLabel, _ as onReselect, Jt as optionsForPage, _e as panelSx, Se as patternLabel, i as registerSheetCommandGroups, se as registerStudioCommandCatalogs, d as registerStudioCommandGroups, ae as registerWorkbookCommandGroups, Pe as renderWorkbookSheetTab, m as renderWorkbookToolbars, Oe as saveNamedDraft, an as setPrintExamplesOnLoad, Pn as t, _t as toGradientValue, ce as toPatternSlots, le as tokensToMuiOptions, ye as useFormatSelection, on as useModelListener, sn as useRangeListener, Bn as useStudioApp };
|
|
@@ -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.2
|
|
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 "./Dv3hSCyjvwo6GcH1.mjs";
|
|
8
8
|
import { useReferenceMode as r, useWorkbook as i } from "@sheetxl/react";
|
|
9
9
|
import { useCallbackRef as a, useTranslator as o } from "@sheetxl/utils-react";
|
|
10
10
|
import { memo as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
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.2
|
|
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.
|