@sheetxl/studio-mui 0.8.0-beta.1 → 0.8.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/{Cd6n1XUgF0VItpkH.mjs → 5cbK03T_Oh3tNdR7.mjs} +7 -5
- package/browser/esm/{Bz5LiUe3SZ8g42Ia.mjs → 9eKCkvqpMQwqcXiw.mjs} +1 -1
- package/browser/esm/B1Yp_uy1vFHcJB3U.mjs +13 -0
- package/browser/esm/Biy7bhzzzPb5sfRN.mjs +152 -0
- package/browser/esm/Blaj2R5hYxtLAW__.mjs +117 -0
- package/browser/esm/{ChwS_ougBsogOEsP.mjs → ByeL_BZuJ2kl8gtf.mjs} +46 -47
- package/browser/esm/{BUGepznywvV0tUjW.mjs → C1Rp2hZrApo5MUc8.mjs} +2 -2
- package/browser/esm/{DMLXV4EKl1NCp_jk.mjs → CEvZe2cZK-voZTif.mjs} +5 -5
- package/browser/esm/{BZBJG2tDdD3-VujP.mjs → CIu1bjPJe_x31Oww.mjs} +195 -174
- package/browser/esm/COv-m-c2byCgvU3M.mjs +14861 -0
- package/browser/esm/CjznclrKqJRi7u9O.mjs +77 -0
- package/browser/esm/{Cj2pgCNqBCGl4rTX.mjs → CoSiOS-og0zFw4Ws.mjs} +587 -556
- package/browser/esm/{rU8xNPVQtDSnujM-.mjs → CtEFHbzYNvYjDYvi.mjs} +7 -7
- package/browser/esm/D6S8kVTzOjCn0-SK.mjs +627 -0
- package/browser/esm/{DNDrQKMTzKzNMjl-.mjs → D8al_cJ4U-NgzwoK.mjs} +1 -1
- package/browser/esm/DBtc4lku0uHVcqWn.mjs +71 -0
- package/browser/esm/{BoLxSRdEWt-Yg2RI.mjs → DHY19rkSiiRZxShC.mjs} +130 -103
- package/browser/esm/{zWTZ8BvT4hjgC2ua.mjs → DU3J8Gcf-WpBxNYg.mjs} +11 -10
- package/browser/esm/Die9NXVFveHvcCT-.mjs +4205 -0
- package/browser/esm/{CVfuCNRpODUw04IH.mjs → DmCQbW4zwkT_Rq88.mjs} +1 -1
- package/browser/esm/IQLeaAbtGTipUsOD.mjs +516 -0
- package/browser/esm/{3ydDykDMtDYbfVVn.mjs → X1Db3b_7b_7OuCk6.mjs} +178 -129
- package/browser/esm/fb126BNj3F8URR19.mjs +225 -0
- package/browser/esm/index.mjs +418 -135
- package/browser/esm/sFOAxZpxXo-qvDSp.mjs +293 -0
- package/browser/esm/sam1KGQZ59B_fADz.mjs +1941 -0
- package/browser/esm/xKiLJKiLxto8SayF.mjs +256 -0
- package/browser/esm/yZxC4qUENOlMhVUH.mjs +68 -0
- package/licenses/dependencies.txt +58 -311
- package/node/esm/B8SQfjKjzYHLxzZR.mjs +632 -0
- package/node/esm/{DM7K7-284z-PczVz.mjs → BYVLi0md4AYuDsB_.mjs} +1 -1
- package/node/esm/BYsG3KYVmxSe_CIQ.mjs +294 -0
- package/node/esm/BYwXhrEwkRAt9nJS.mjs +71 -0
- package/node/esm/B_jRGdwGFkudwmL-.mjs +68 -0
- package/node/esm/Bb1sLMqXWKjdve23.mjs +77 -0
- package/node/esm/{BwZcoHDBmLPIVOT5.mjs → BcwMb6CyVfvEwbHn.mjs} +69 -70
- package/node/esm/{BhqI3pQFkV8K_612.mjs → CKu1AtRgyltyEdEN.mjs} +1 -1
- package/node/esm/Cmt8Wv806N7NmE4Y.mjs +3344 -0
- package/node/esm/{DXZrzWee8K5FPOW1.mjs → D6oQL8knsPpgdXuk.mjs} +2 -2
- package/node/esm/{BA7VzUQ2sKRLTZ5c.mjs → D9rzScOA9pEYFrtz.mjs} +1 -1
- package/node/esm/DNSjK5DAH3M14Qbc.mjs +521 -0
- package/node/esm/{CUMKTjYv6VTkcWYi.mjs → DZzvTQxIKr9LbEsA.mjs} +1 -1
- package/node/esm/{Qpuqm6xBr_da38Ht.mjs → ETK6T6G0SIcFXDe5.mjs} +163 -135
- package/node/esm/ah3CUg4-VmNstGk_.mjs +256 -0
- package/node/esm/{CHi3AuWEwEPOg9IZ.mjs → ci8d-mF1H9wnYzix.mjs} +1 -1
- package/node/esm/cqzp431iNSLWictb.mjs +116 -0
- package/node/esm/index.mjs +14783 -6793
- package/package.json +15 -18
- package/resources/locales/de/groups.cmd.json +29 -16
- package/resources/locales/de/studio.cmd.json +18 -1
- package/resources/locales/de/ui.msg.json +350 -40
- package/resources/locales/en/groups.cmd.json +39 -17
- package/resources/locales/en/studio.cmd.json +18 -1
- package/resources/locales/en/ui.msg.json +306 -40
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +17 -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/command/PresetCellStylesCommandButton.d.ts +3 -3
- package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
- package/types/src/comments/CommentCard.d.ts +41 -0
- package/types/src/comments/CommentsPlugin.d.ts +6 -0
- package/types/src/comments/CommentsTaskPane.d.ts +23 -0
- package/types/src/comments/index.d.ts +4 -0
- package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +2 -2
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
- package/types/src/conditions/BetweenOption.d.ts +6 -1
- package/types/src/conditions/CombinatorOption.d.ts +7 -0
- package/types/src/conditions/ConditionEditor.d.ts +61 -4
- package/types/src/conditions/ConditionUtils.d.ts +65 -6
- package/types/src/conditions/ExpressionOption.d.ts +12 -6
- package/types/src/conditions/MembershipOption.d.ts +67 -0
- package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
- package/types/src/conditions/ScalarOption.d.ts +25 -6
- package/types/src/conditions/SelectorSelect.d.ts +16 -7
- 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 +13 -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/OutlineSettingsDialog.d.ts +12 -0
- package/types/src/dialog/TableNewDialog.d.ts +1 -4
- package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
- package/types/src/dialog/index.d.ts +0 -2
- 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 +41 -0
- package/types/src/fill/GradientStopsBar.d.ts +43 -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 +5 -0
- package/types/src/filter/ColumnMenu.d.ts +31 -1
- package/types/src/filter/index.d.ts +0 -1
- package/types/src/form/FormulaField.d.ts +35 -6
- package/types/src/form/InputField.d.ts +35 -5
- package/types/src/format/AlignmentPanel.d.ts +13 -0
- package/types/src/format/BorderPanel.d.ts +22 -0
- package/types/src/format/BorderPreview.d.ts +94 -0
- package/types/src/format/FillPanel.d.ts +65 -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 +85 -0
- package/types/src/format/FormatPlugin.d.ts +11 -0
- package/types/src/format/FormatTaskPane.d.ts +39 -0
- package/types/src/format/LinePanel.d.ts +53 -0
- package/types/src/format/LinePreviews.d.ts +71 -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 +14 -0
- package/types/src/format/useFormatSelection.d.ts +93 -0
- package/types/src/formulaBar/IFormulaBar.d.ts +11 -0
- package/types/src/formulaBar/MobileFormulaBar.d.ts +21 -0
- package/types/src/formulaBar/MobileInputToolbar.d.ts +37 -0
- package/types/src/formulaBar/index.d.ts +3 -0
- package/types/src/formulaBar/useFormulaBarSession.d.ts +65 -0
- package/types/src/index.d.ts +7 -1
- package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
- package/types/src/itemsPanel/EditorPanel.d.ts +4 -1
- package/types/src/itemsPanel/ItemCard.d.ts +60 -8
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +68 -19
- package/types/src/itemsPanel/ItemsPanel.d.ts +9 -0
- package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
- package/types/src/itemsPanel/index.d.ts +2 -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/picture/PicturePlugin.d.ts +6 -0
- package/types/src/picture/index.d.ts +2 -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/shape/InsertShapeCommandButton.d.ts +20 -0
- package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
- package/types/src/shape/ShapePlugin.d.ts +6 -0
- package/types/src/shape/index.d.ts +3 -0
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +18 -0
- package/types/src/slicer/SlicerPlugin.d.ts +6 -0
- package/types/src/slicer/index.d.ts +3 -0
- package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
- package/types/src/studio/CommandsWrapper.d.ts +5 -0
- package/types/src/studio/EagerStudio.d.ts +14 -1
- package/types/src/studio/StudioCommandProvider.d.ts +10 -0
- package/types/src/studio/StudioCommands.d.ts +40 -4
- package/types/src/studio/StudioProps.d.ts +64 -2
- package/types/src/studio/StudioSplitPane.d.ts +1 -1
- package/types/src/studio/formulaBarPlacement.d.ts +35 -0
- package/types/src/studio/splitStudioProps.d.ts +7 -0
- package/types/src/studio/useStudioApp.d.ts +31 -18
- 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 +29 -0
- package/types/src/template/WelcomeDialog.d.ts +29 -0
- package/types/src/template/categoryColor.d.ts +8 -0
- package/types/src/template/index.d.ts +3 -0
- package/types/src/template/useTemplateCatalog.d.ts +71 -0
- package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
- package/types/src/workbook/DefaultRenderers.d.ts +15 -1
- package/types/src/workbook/FillMenu.d.ts +21 -0
- package/types/src/workbook/OutlineButtons.d.ts +11 -0
- package/types/src/workbook/WorkbookElement.d.ts +1 -1
- package/types/src/workbook/index.d.ts +1 -0
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
- 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/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/Bte6P3MhSjajJmmY.cjs +0 -7
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
- package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +0 -1
- package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CYxc8vnRi8dNpDPk.cjs +0 -1
- package/browser/cjs/CZm1jVZaHQ246prW.cjs +0 -1
- package/browser/cjs/CdDYyAfccXme8w6m.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/KZvriGbhEOVkQD0b.cjs +0 -1
- package/browser/cjs/UnMhi28mbvLiOXQe.cjs +0 -1
- package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +0 -1
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
- package/browser/cjs/index.cjs +0 -2
- package/browser/cjs/w2GjebPlOFv3pCbm.cjs +0 -1
- package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +0 -11
- package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +0 -1
- package/browser/esm/BuY3uV47Bwbqpasq.mjs +0 -219
- package/browser/esm/CAs1MWvJTcRfJy26.mjs +0 -217
- package/browser/esm/CBU3LgLYmqtQjJbu.mjs +0 -1150
- package/browser/esm/CDU0rqpLNVtMLI-f.mjs +0 -52
- package/browser/esm/CVBub6pgTsJzCc5m.mjs +0 -5429
- 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/UJOXCQv6KrG1gY3l.mjs +0 -105
- package/browser/esm/s46El7mT6oKLSnYB.mjs +0 -411
- package/node/esm/9FY82fj1R1c-AczW.mjs +0 -47
- package/node/esm/C-boHCnJditFzng3.mjs +0 -106
- package/node/esm/DxXM8qHi0Oz4Zovl.mjs +0 -4575
- package/node/esm/sQt2wWGTRLzqeJdG.mjs +0 -82
- package/node/esm/yCHAZKxJR7qY_ySy.mjs +0 -470
- package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +0 -32
- package/types/src/conditions/DateTimeOption.d.ts +0 -43
- package/types/src/conditions/InSetOption.d.ts +0 -37
- package/types/src/dialog/CommentsDialog.d.ts +0 -11
- package/types/src/dialog/NumberFormatDialog.d.ts +0 -12
- package/types/src/filter/FilterList.d.ts +0 -28
- 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,436 @@
|
|
|
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.10
|
|
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 { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { a as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
changeOn: f,
|
|
29
|
-
onValidate: p,
|
|
30
|
-
disabled: n
|
|
8
|
+
import { $ as e, $t as t, A as n, B as r, C as i, Cn as a, D as o, Dn as s, E as c, En as l, F as u, G as d, Gt as f, H as p, I as m, J as h, K as g, Kt as _, L as v, M as y, N as b, O as x, On as S, P as C, Q as w, Qt as T, R as E, S as ee, Sn as te, St as ne, T as re, Tn as ie, Tt as ae, U as oe, V as se, W as ce, X as le, Xt as ue, Y as de, Yt as fe, Z as pe, Zt as me, _ as he, _n as ge, _t as _e, an as ve, at as ye, b as be, bn as xe, bt as Se, c as Ce, ct as we, d as Te, dn as Ee, dt as De, en as Oe, et as ke, f as Ae, fn as je, ft as Me, g as Ne, gn as Pe, gt as Fe, h as Ie, hn as Le, ht as Re, i as ze, in as Be, it as Ve, j as He, k as Ue, kn as We, kt as Ge, lt as Ke, m as qe, mn as Je, mt as Ye, n as Xe, nn as Ze, nt as Qe, on as $e, ot as et, p as tt, pn as nt, pt as rt, q as it, qt as at, r as ot, rn as st, rt as ct, s as lt, sn as ut, st as dt, tn as ft, tt as pt, u as mt, un as ht, ut as gt, v as _t, vn as vt, vt as yt, w as bt, wn as xt, wt as St, x as Ct, xn as wt, xt as Tt, y as Et, yn as Dt, yt as Ot, z as kt } from "./COv-m-c2byCgvU3M.mjs";
|
|
9
|
+
import { C as At, E as jt, T as Mt, _ as Nt, a as Pt, b as Ft, c as It, d as Lt, f as Rt, g as zt, h as Bt, i as Vt, l as Ht, m as Ut, n as Wt, o as Gt, p as Kt, r as qt, s as Jt, t as Yt, u as Xt, v as Zt, w as Qt, x as $t, y as en } from "./sam1KGQZ59B_fADz.mjs";
|
|
10
|
+
import { t as tn } from "./5cbK03T_Oh3tNdR7.mjs";
|
|
11
|
+
import { t as nn } from "./Biy7bhzzzPb5sfRN.mjs";
|
|
12
|
+
import { n as rn, t as an } from "./fb126BNj3F8URR19.mjs";
|
|
13
|
+
import { a as on, i as sn, n as cn, o as ln, r as un, t as dn } from "./CIu1bjPJe_x31Oww.mjs";
|
|
14
|
+
import { t as fn } from "./IQLeaAbtGTipUsOD.mjs";
|
|
15
|
+
import { LicenseManager as pn, LicenseManager as mn } from "@sheetxl/sdk";
|
|
16
|
+
import { DefaultTaskPaneRegistry as hn, ThemeStateDefaults as gn, ThemeStateKey as D, WorkbookIO as _n, WorkbookIO as O, setPrintExamplesOnLoad as vn, useModelListener as yn, useRangeListener as bn, useWindowChrome as xn, useWorkbook as Sn, useWorkbookFormat as Cn, useWorkbookName as wn } from "@sheetxl/react";
|
|
17
|
+
import { CommandButtonType as k, createThemeScopeClass as Tn, lazyComponent as En, useCallbackRef as A, useCommandButtonEntry as j, useCommandButtonRegistry as Dn, useCommands as M, useLocationSearch as On, usePersistentState as kn, useResolvedThemeMode as An, useTranslator as jn } from "@sheetxl/utils-react";
|
|
18
|
+
import { Suspense as Mn, createElement as N, forwardRef as P, memo as F, useCallback as I, useEffect as L, useId as Nn, useMemo as R, useRef as z, useState as B } from "react";
|
|
19
|
+
import { CommandButton as V, CommandGroup as Pn, CommandPopupButton as H, ExhibitDivider as U, LabelIcon as Fn, LazyLoadErrorPanel as In, OptionsDialog as Ln, defaultCreatePopupPanel as W, renderMembers as Rn } from "@sheetxl/utils-mui";
|
|
20
|
+
import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
|
|
21
|
+
import { Box as J, Paper as zn, TextField as Y, Typography as Bn, useMediaQuery as Vn } from "@mui/material";
|
|
22
|
+
import { defineLazyModule as Hn } from "@sheetxl/utils";
|
|
23
|
+
var X = Object.defineProperty, Un = (e, t) => {
|
|
24
|
+
let n = {};
|
|
25
|
+
for (var r in e) X(n, r, {
|
|
26
|
+
get: e[r],
|
|
27
|
+
enumerable: !0
|
|
31
28
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
29
|
+
return t || X(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
30
|
+
}, Z = F(P((e, t) => {
|
|
31
|
+
let { groupKey: n = "workbook", disabled: r, ...i } = e, [a, o] = B([]), s = O.canWrite(), c = O.canRead();
|
|
32
|
+
L(() => {
|
|
33
|
+
let e = !0;
|
|
34
|
+
return O.getWriteFormats().then((t) => {
|
|
35
|
+
e && o(t);
|
|
36
|
+
}), () => {
|
|
37
|
+
e = !1;
|
|
38
|
+
};
|
|
39
|
+
}, []);
|
|
40
|
+
let l = Sn(), u = Cn(l), d = R(() => {
|
|
41
|
+
if (a.length === 0) return null;
|
|
42
|
+
let e = u?.toLowerCase();
|
|
43
|
+
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];
|
|
44
|
+
}, [a, u]), [f] = M(d ? `saveWorkbookAs${d.key}` : []), p = Dn(), m = p.resolveMembers("newWorkbookOptions") ?? ["newWorkbook"], h = A((e) => {
|
|
45
|
+
let t = {
|
|
46
|
+
variant: k.Menuitem,
|
|
47
|
+
groupKey: n,
|
|
48
|
+
disabled: r
|
|
49
|
+
}, i = q(G, { children: [
|
|
50
|
+
m.length > 1 ? K(H, {
|
|
51
|
+
...t,
|
|
52
|
+
quickCommand: "newWorkbook",
|
|
53
|
+
createPopupPanel: (e) => {
|
|
54
|
+
let t = Rn(m, {
|
|
55
|
+
variant: k.Menuitem,
|
|
56
|
+
dividerOrientation: "horizontal",
|
|
57
|
+
groupKey: "newWorkbookOptions",
|
|
58
|
+
registry: p,
|
|
59
|
+
propsCommandButton: { disabled: r },
|
|
60
|
+
propsCommandPopup: { disabled: r }
|
|
61
|
+
});
|
|
62
|
+
return W({
|
|
63
|
+
...e,
|
|
64
|
+
children: t,
|
|
65
|
+
onClick: () => {
|
|
66
|
+
e.closeFloatAll?.();
|
|
67
|
+
}
|
|
68
|
+
});
|
|
54
69
|
}
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
}) : K(V, {
|
|
71
|
+
...t,
|
|
72
|
+
commandKey: "newWorkbook"
|
|
73
|
+
}),
|
|
74
|
+
K(U, { orientation: "horizontal" }),
|
|
75
|
+
c ? K(H, {
|
|
76
|
+
...t,
|
|
77
|
+
quickCommand: "openWorkbook",
|
|
78
|
+
createPopupPanel: (e) => {
|
|
79
|
+
let n = {
|
|
80
|
+
...t,
|
|
81
|
+
groupKey: "openWorkbookOptions"
|
|
82
|
+
}, r = [N(V, {
|
|
83
|
+
...n,
|
|
84
|
+
key: "device",
|
|
85
|
+
commandKey: "openWorkbook"
|
|
86
|
+
}), N(V, {
|
|
87
|
+
...n,
|
|
88
|
+
key: "web",
|
|
89
|
+
commandKey: "openWorkbookFromUrl"
|
|
90
|
+
})];
|
|
91
|
+
return W({
|
|
92
|
+
...e,
|
|
93
|
+
children: r,
|
|
94
|
+
onClick: () => {
|
|
95
|
+
e.closeFloatAll?.();
|
|
96
|
+
}
|
|
97
|
+
});
|
|
72
98
|
}
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
99
|
+
}) : null,
|
|
100
|
+
s && a.length > 0 ? K(H, {
|
|
101
|
+
...t,
|
|
102
|
+
quickCommand: "saveWorkbook",
|
|
103
|
+
createPopupPanel: (e) => {
|
|
104
|
+
let n = {
|
|
105
|
+
...t,
|
|
106
|
+
groupKey: "saveWorkbookOptions"
|
|
107
|
+
}, r = [N(V, {
|
|
108
|
+
...n,
|
|
109
|
+
key: "saveWorkbookAs",
|
|
110
|
+
commandKey: "saveWorkbookAs",
|
|
111
|
+
label: f?.getLabel("saveWorkbookOptions"),
|
|
112
|
+
icon: f?.getIcon("saveWorkbookOptions")
|
|
113
|
+
})], i = a.filter((e) => !e.advanced && e.key !== d?.key);
|
|
114
|
+
return i.length > 0 && r.push(K(U, { orientation: "horizontal" }, "divider")), i.forEach((e) => {
|
|
115
|
+
let t = e.key, i = `saveWorkbookAs${t}`;
|
|
116
|
+
r.push(N(V, {
|
|
117
|
+
...n,
|
|
118
|
+
key: t,
|
|
119
|
+
commandKey: i
|
|
120
|
+
}));
|
|
121
|
+
}), W({
|
|
122
|
+
...e,
|
|
123
|
+
children: r,
|
|
124
|
+
onClick: () => {
|
|
125
|
+
e.closeFloatAll?.();
|
|
126
|
+
}
|
|
127
|
+
});
|
|
87
128
|
}
|
|
88
|
-
})
|
|
129
|
+
}) : null
|
|
130
|
+
] });
|
|
131
|
+
return W({
|
|
132
|
+
...e,
|
|
133
|
+
children: i,
|
|
134
|
+
onClick: (t) => {
|
|
135
|
+
t.isDefaultPrevented() || e.closeFloatAll?.();
|
|
136
|
+
}
|
|
89
137
|
});
|
|
90
138
|
}, [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
139
|
+
r,
|
|
140
|
+
n,
|
|
141
|
+
a,
|
|
142
|
+
d,
|
|
143
|
+
f,
|
|
144
|
+
m,
|
|
145
|
+
p
|
|
146
|
+
]), g = j("fileOptions"), _ = g?.getLabel?.() ?? "File", v = g?.getDescription?.() ?? "Options for saving and loading the workbook.";
|
|
147
|
+
return K(H, {
|
|
148
|
+
disabled: r,
|
|
149
|
+
groupKey: n,
|
|
150
|
+
label: _,
|
|
151
|
+
tooltip: v,
|
|
99
152
|
sx: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
153
|
+
paddingBottom: "0px",
|
|
154
|
+
"& button": {
|
|
155
|
+
paddingTop: "0px",
|
|
156
|
+
paddingBottom: "0px",
|
|
157
|
+
height: (e) => `calc(1.25rem + ${e.spacing(2)}px)`
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
...i,
|
|
161
|
+
createPopupPanel: h,
|
|
162
|
+
icon: K(Fn, {
|
|
163
|
+
className: "label",
|
|
164
|
+
icon: null,
|
|
165
|
+
label: _
|
|
166
|
+
})
|
|
167
|
+
});
|
|
168
|
+
}));
|
|
169
|
+
Z.displayName = "FileCommandButton";
|
|
170
|
+
var Wn = F(P((e, t) => {
|
|
171
|
+
let { groupKey: n, disabled: r, ...i } = e, [a] = M(["themeMode"]), o = j("appearanceOptions"), s = A((e) => {
|
|
172
|
+
let t = {
|
|
173
|
+
variant: k.Menuitem,
|
|
174
|
+
groupKey: "appearanceOptions",
|
|
175
|
+
disabled: r
|
|
176
|
+
}, n = q(G, { children: [
|
|
177
|
+
K(V, {
|
|
178
|
+
...t,
|
|
179
|
+
commandKey: "themeMode"
|
|
180
|
+
}),
|
|
181
|
+
K(V, {
|
|
182
|
+
...t,
|
|
183
|
+
commandKey: "defaultThemeMode"
|
|
184
|
+
}),
|
|
185
|
+
K(U, { orientation: "horizontal" }),
|
|
186
|
+
K(V, {
|
|
187
|
+
...t,
|
|
188
|
+
commandKey: "enableDarkGrid"
|
|
189
|
+
}),
|
|
190
|
+
K(V, {
|
|
191
|
+
...t,
|
|
192
|
+
commandKey: "enableDarkImages"
|
|
193
|
+
})
|
|
194
|
+
] });
|
|
195
|
+
return W({
|
|
196
|
+
...e,
|
|
197
|
+
children: n
|
|
198
|
+
});
|
|
199
|
+
}, [
|
|
200
|
+
r,
|
|
201
|
+
a,
|
|
202
|
+
n
|
|
203
|
+
]), c = a?.getState(), l = Vn("(prefers-color-scheme: dark)"), u = c === "dark" || c === null && l, d = a?.getState() !== null;
|
|
204
|
+
return K(H, {
|
|
205
|
+
ref: t,
|
|
206
|
+
quickCommand: "themeMode",
|
|
207
|
+
createPopupPanel: s,
|
|
208
|
+
label: o?.getLabel?.(),
|
|
209
|
+
tooltip: o?.getDescription?.(),
|
|
210
|
+
onQuickClick: () => {
|
|
211
|
+
a?.execute(u ? "light" : "dark");
|
|
103
212
|
},
|
|
104
|
-
|
|
213
|
+
selected: d,
|
|
214
|
+
...i
|
|
215
|
+
});
|
|
216
|
+
})), Gn = F(P((e, t) => {
|
|
217
|
+
let { ...n } = e;
|
|
218
|
+
return K(Pn, {
|
|
105
219
|
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
|
-
onKeyDown: (e) => {
|
|
138
|
-
w.inputProps.onKeyDown(e), e.defaultPrevented || _?.(e);
|
|
139
|
-
},
|
|
140
|
-
onFocus: (e) => {
|
|
141
|
-
w.inputProps.onFocus(e), v?.(e);
|
|
142
|
-
},
|
|
143
|
-
onBlur: (e) => {
|
|
144
|
-
w.inputProps.onBlur(e), C?.onBlur(e);
|
|
220
|
+
groupKey: "insertFunctionSumOptions",
|
|
221
|
+
...n
|
|
222
|
+
});
|
|
223
|
+
}));
|
|
224
|
+
Gn.displayName = "InsertFunctionSumCommandPopupButton";
|
|
225
|
+
var Kn = Un({
|
|
226
|
+
PasswordDialog: () => Q,
|
|
227
|
+
default: () => Q
|
|
228
|
+
}), Q = (e) => {
|
|
229
|
+
let t = jn(), { description: n, requireCurrent: r = !1, onApply: i, title: a, sx: o, ...s } = e, [c, l] = B(""), [u, d] = B(""), [f, p] = B(""), [m, h] = B(!1), g = u === "", _ = f !== u, v = !g && !_;
|
|
230
|
+
return K(Ln, {
|
|
231
|
+
title: a ?? t(r ? "password.titleChange" : "password.title"),
|
|
232
|
+
options: ["Ok", "Cancel"],
|
|
233
|
+
defaultOption: "Ok",
|
|
234
|
+
cancelOption: "Cancel",
|
|
235
|
+
autoFocusSel: ".autoFocus",
|
|
236
|
+
sx: {
|
|
237
|
+
width: "380px",
|
|
238
|
+
...o
|
|
239
|
+
},
|
|
240
|
+
onValidateOption: (e) => e === "Cancel" || (h(!0), v),
|
|
241
|
+
onOption: (e, t) => {
|
|
242
|
+
if (!t && e === "Ok") return i(u, r ? c : void 0);
|
|
243
|
+
},
|
|
244
|
+
...s,
|
|
245
|
+
children: q(J, {
|
|
246
|
+
sx: {
|
|
247
|
+
display: "flex",
|
|
248
|
+
flexDirection: "column",
|
|
249
|
+
gap: (e) => e.spacing(2),
|
|
250
|
+
paddingTop: (e) => e.spacing(1)
|
|
145
251
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
252
|
+
children: [
|
|
253
|
+
n ? K(Bn, {
|
|
254
|
+
variant: "body2",
|
|
255
|
+
sx: { color: "text.secondary" },
|
|
256
|
+
children: n
|
|
257
|
+
}) : null,
|
|
258
|
+
r ? K(Y, {
|
|
259
|
+
type: "password",
|
|
260
|
+
size: "small",
|
|
261
|
+
label: t("password.current"),
|
|
262
|
+
value: c,
|
|
263
|
+
onChange: (e) => l(e.target.value),
|
|
264
|
+
slotProps: {
|
|
265
|
+
inputLabel: { shrink: !0 },
|
|
266
|
+
htmlInput: {
|
|
267
|
+
className: "autoFocus",
|
|
268
|
+
autoComplete: "current-password",
|
|
269
|
+
spellCheck: !1
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}) : null,
|
|
273
|
+
K(Y, {
|
|
274
|
+
type: "password",
|
|
275
|
+
size: "small",
|
|
276
|
+
label: t(r ? "password.new" : "password.label"),
|
|
277
|
+
value: u,
|
|
278
|
+
error: m && g,
|
|
279
|
+
helperText: m && g ? t("password.required") : " ",
|
|
280
|
+
onChange: (e) => d(e.target.value),
|
|
281
|
+
slotProps: {
|
|
282
|
+
inputLabel: { shrink: !0 },
|
|
283
|
+
htmlInput: {
|
|
284
|
+
className: r ? void 0 : "autoFocus",
|
|
285
|
+
autoComplete: "new-password",
|
|
286
|
+
spellCheck: !1
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}),
|
|
290
|
+
K(Y, {
|
|
291
|
+
type: "password",
|
|
292
|
+
size: "small",
|
|
293
|
+
label: t("protection.passwordConfirm"),
|
|
294
|
+
value: f,
|
|
295
|
+
error: m && !g && _,
|
|
296
|
+
helperText: m && !g && _ ? t("protection.passwordMismatch") : " ",
|
|
297
|
+
onChange: (e) => p(e.target.value),
|
|
298
|
+
slotProps: {
|
|
299
|
+
inputLabel: { shrink: !0 },
|
|
300
|
+
htmlInput: {
|
|
301
|
+
autoComplete: "new-password",
|
|
302
|
+
spellCheck: !1
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
})
|
|
306
|
+
]
|
|
149
307
|
})
|
|
150
308
|
});
|
|
309
|
+
}, qn = /* @__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.formulaBarPlacement.manageVisualViewport.editable.showStatusBar.propsStatusBar.renderStatusBar.propsToolbar.renderToolbar.topLeft.topRight.muiTheme.tokens.cssBaseline.autoFocus.licenseKey.prefetch".split(".")), Jn = () => K(G, {}), Yn = Hn("studio:eagerStudio", () => import("./Die9NXVFveHvcCT-.mjs")), Xn = ({ error: e, onShown: t }) => (L(() => {
|
|
310
|
+
t();
|
|
311
|
+
}, []), K(In, { error: e })), $ = F(P((e, t) => {
|
|
312
|
+
let { sx: n, style: r, className: i, licenseKey: a, renderDocumentLoading: o = lt, propsDocumentLoading: s, onWorkbookLoad: c, onDocumentError: l, ...u } = e, [d, f] = ((e) => {
|
|
313
|
+
let t = {}, n = {};
|
|
314
|
+
for (let r in e) (qn.has(r) ? t : n)[r] = e[r];
|
|
315
|
+
return [t, n];
|
|
316
|
+
})(u);
|
|
317
|
+
a && mn.setLicenseKey(a);
|
|
318
|
+
let [p] = kn(D.Mode, gn[D.Mode]), { themeMode: m } = An({ mode: p ?? void 0 }), h = m === "dark", [g, _] = B(null), v = Tn("studio", Nn()), [y, b] = B(!1), x = R(() => !o || y ? null : K(zn, {
|
|
319
|
+
style: {
|
|
320
|
+
backgroundColor: `var(--sxl-color-base-100, ${h ? "#121212" : "#fff"})`,
|
|
321
|
+
inset: 0,
|
|
322
|
+
width: "100%",
|
|
323
|
+
height: "100%",
|
|
324
|
+
position: "absolute",
|
|
325
|
+
display: "flex",
|
|
326
|
+
alignItems: "center",
|
|
327
|
+
justifyContent: "center",
|
|
328
|
+
zIndex: 9900
|
|
329
|
+
},
|
|
330
|
+
children: o(s ?? {})
|
|
331
|
+
}), [
|
|
332
|
+
o,
|
|
333
|
+
s,
|
|
334
|
+
h,
|
|
335
|
+
y
|
|
336
|
+
]), S = R(() => En(Yn.load, { renderError: (e) => K(Xn, {
|
|
337
|
+
error: e,
|
|
338
|
+
onShown: () => b(!0)
|
|
339
|
+
}) }), []);
|
|
340
|
+
return q(J, {
|
|
341
|
+
ref: _,
|
|
342
|
+
className: tn("sheetxl-studio", v, i),
|
|
343
|
+
"data-sxl-theme-mode": m,
|
|
344
|
+
sx: n,
|
|
345
|
+
style: {
|
|
346
|
+
display: "flex",
|
|
347
|
+
flexDirection: "column",
|
|
348
|
+
flex: "1 1 100%",
|
|
349
|
+
width: "100%",
|
|
350
|
+
height: "100%",
|
|
351
|
+
minWidth: 0,
|
|
352
|
+
minHeight: 0,
|
|
353
|
+
position: "relative",
|
|
354
|
+
overflow: "hidden",
|
|
355
|
+
...r
|
|
356
|
+
},
|
|
357
|
+
...f,
|
|
358
|
+
children: [K(Mn, {
|
|
359
|
+
fallback: null,
|
|
360
|
+
children: K(S, {
|
|
361
|
+
...d,
|
|
362
|
+
host: g,
|
|
363
|
+
scopeClass: v,
|
|
364
|
+
onWorkbookLoad: (e) => (requestAnimationFrame(() => requestAnimationFrame(() => b(!0))), c?.(e)),
|
|
365
|
+
onDocumentError: (e) => (b(!0), l?.(e)),
|
|
366
|
+
renderDocumentLoading: Jn,
|
|
367
|
+
ref: t
|
|
368
|
+
})
|
|
369
|
+
}), x]
|
|
370
|
+
});
|
|
151
371
|
}));
|
|
152
|
-
$.displayName = "
|
|
153
|
-
|
|
372
|
+
$.displayName = "Studio";
|
|
373
|
+
var Zn = (e = {}) => {
|
|
374
|
+
let { source: t, startWith: n, templatePath: r, onWorkbookLoad: i, onWorkbookChange: a, onDirtyChange: o, documentTitle: s, confirmOnClose: c, keyboardGuard: l, ...u } = e, d = On(), [f, p] = B(null), [m, h] = B(!1), g = wn(f);
|
|
375
|
+
xn(g, m, {
|
|
376
|
+
documentTitle: s,
|
|
377
|
+
confirmOnClose: c,
|
|
378
|
+
keyboardGuard: l
|
|
379
|
+
});
|
|
380
|
+
let { workbook: _, urlTitle: v } = R(() => {
|
|
381
|
+
if (t != null) return {
|
|
382
|
+
workbook: typeof t == "string" ? { source: t } : t,
|
|
383
|
+
urlTitle: null
|
|
384
|
+
};
|
|
385
|
+
if (d) {
|
|
386
|
+
let e = new URLSearchParams(d), t = e.get("source");
|
|
387
|
+
if (t) return {
|
|
388
|
+
workbook: { source: t },
|
|
389
|
+
urlTitle: e.get("title")
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
return {
|
|
393
|
+
workbook: void 0,
|
|
394
|
+
urlTitle: null
|
|
395
|
+
};
|
|
396
|
+
}, [t, d]), y = z(null);
|
|
397
|
+
R(() => {
|
|
398
|
+
y.current = v;
|
|
399
|
+
}, [v]);
|
|
400
|
+
let b = z(a);
|
|
401
|
+
b.current = a;
|
|
402
|
+
let x = I((e) => {
|
|
403
|
+
e && y.current && (e.getOrigin().setName(y.current), y.current = null), p(e), b.current?.(e);
|
|
404
|
+
}, []), S = z(o);
|
|
405
|
+
S.current = o;
|
|
406
|
+
let C = I((e) => {
|
|
407
|
+
h(e), S.current?.(e);
|
|
408
|
+
}, []);
|
|
409
|
+
L(() => {
|
|
410
|
+
n === "welcome" && _ === void 0 && Xe(r);
|
|
411
|
+
}, [
|
|
412
|
+
n,
|
|
413
|
+
_,
|
|
414
|
+
r
|
|
415
|
+
]);
|
|
416
|
+
let w = z(!1), T = z(i);
|
|
417
|
+
T.current = i;
|
|
418
|
+
let E = I((e) => (w.current || (w.current = !0, n === "welcome" && _ === void 0 && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
419
|
+
e.source?.getCommandScope?.()?.resolve("showWelcome")?.execute({
|
|
420
|
+
templatePath: r,
|
|
421
|
+
atStartup: !0
|
|
422
|
+
});
|
|
423
|
+
}))), T.current?.(e)), [
|
|
424
|
+
n,
|
|
425
|
+
r,
|
|
426
|
+
_
|
|
427
|
+
]);
|
|
428
|
+
return {
|
|
429
|
+
...u,
|
|
430
|
+
workbook: _,
|
|
431
|
+
onWorkbookChange: x,
|
|
432
|
+
onDirtyChange: C,
|
|
433
|
+
onWorkbookLoad: E
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
export { C as AlignmentPanel, Wn as AppearanceCommandButton, Mt as AutoColorPosition, xt as BorderCommandButton, x as BorderPanel, ie as BorderPopupButton, Ue as BorderPreview, Zt as BorderStylePopupButton, l as BorderTemplateIcon, p as COMMENTS_FILTER_KEY, ue as CalculationOptionsCommandButton, Ye as CalculationRequiredStatus, Re as CircularReferenceStatus, Qt as ColorButton, At as ColorButtonList, ge as ColorCommandButton, $t as ColorPanel, jt as ColorPanelType, Ft as ColorPopupButton, r as ColumnMenu, ce as CommentCard, se as CommentsPlugin, oe as CommentsTaskPane, Ht as DEFAULT_GRADIENT, hn as DefaultTaskPaneRegistry, yt as DefaultWorkbookToolbars, me as DocThemeCommandButton, ot as DocumentTitle, pe as ExternalLinkCardBody, le as ExternalLinkChip, de as ExternalLinkLocation, h as ExternalLinkSettingsTab, it as ExternalLinksPanel, d as ExternalLinksPlugin, g as ExternalLinksTaskPane, re as FORMAT_TAB_KEY, i as FORMAT_TASK_PANE_KEY, pt as FORMULA_BAR_EDITOR_ID, an as FORMULA_FIELD_ABOVE_LABEL_HEIGHT, Z as FileCommandButton, mt as FillMenu, Yt as FillPanel, Pe as FontFamilyCommandButton, b as FontPanel, a as FontSizeCommandButton, qt as FormatButtonGroup, m as FormatCellPreview, Vt as FormatNumberField, bt as FormatPlugin, Pt as FormatRow, Gt as FormatSection, c as FormatTab, o as FormatTaskPane, ke as FormulaBar, rn as FormulaField, on as FunctionArgumentsPanel, ln as FunctionSearchPanel, Xt as GradientEditor, Rt as GradientStopsBar, dn as INSERT_FUNCTION_PAGE_CLASS, nn as InputField, St as InsertFunctionCommandPopupButton, cn as InsertFunctionOption, Gn as InsertFunctionSumCommandPopupButton, un as InsertFunctionWizard, _ as ItemCard, at as ItemCardAction, f as ItemsSearchField, pn as LicenseManager, fn as LinePanel, Ne as ManageProtectionTaskPane, w as MobileFormulaBar, e as MobileInputToolbar, dt as NAMED_TYPE_FORMULA, Me as NamedCollectionEditor, ye as NamedDetailsPanel, Ve as NamedDetailsTaskPane, et as NamedEditorPanel, ct as NamedPlugin, Dt as NumberFormatCommandButton, xe as NumberFormatOption, u as NumberFormatPanel, Fe as NumberStats, Bt as PATTERN_GALLERY, n as PREVIEW_EDGES, Q as PasswordDialog, ee as PasswordField, Je as PasteCommandButton, Kt as PatternPopupButton, zt as PatternSwatch, nt as PresetCellStylesCommandButton, Ge as PresetChip, kt as PresetSlicerStylesCommandButton, Be as PresetTableStylesCommandButton, Et as ProtectedCellsPanel, he as ProtectedRangeDetailsTaskPane, Ie as ProtectionPlugin, be as SheetProtectionPanel, qe as SheetTabMenu, s as SheetZoomCommandButton, _e as SheetZoomScale, tt as SheetsAllMenu, E as SlicerPlugin, rt as StatusBar, $ as Studio, en as StyledStrokeIcon, ut as TableDetailsPanel, $e as TableDetailsTaskPane, ve as TablePlugin, Ee as TableStyleCanvasPreview, ht as TableStyleOptionsPanel, je as TableStylePreview, Le as TextEffectsCommandButton, S as TextRotateGroupButton, st as ThemeSelectButton, Ze as ThemeSelectPanel, ft as ThemeSelectPopupButton, vt as UndoRedoCommandButton, fe as WalkingCopyCommandButton, Te as WorkbookContextMenu, ze as WorkbookElement, _n as WorkbookIO, Ct as WorkbookProtectionPanel, _t as WorkbookProtectionTab, Ae as WorkbookStrip, Ot as WorkbookToolbars, we as createNamedDraft, T as createStudioThemeCSS, t as createThemeFromMUITheme, He as edgeLabel, y as edgesAt, Ke as expressionOf, Wt as fillSelectionOf, gt as isEditableNamed, wt as numberFormatCategoryLabel, te as numberFormatTypeLabel, Jt as onReselect, sn as optionsForPage, It as panelSx, Ut as patternLabel, ae as registerSheetCommandGroups, We as registerStudioCommandCatalogs, Tt as registerStudioCommandGroups, ne as registerWorkbookCommandGroups, Ce as renderWorkbookSheetTab, Se as renderWorkbookToolbars, De as saveNamedDraft, vn as setPrintExamplesOnLoad, Kn as t, Lt as toGradientValue, Nt as toPatternSlots, Oe as tokensToMuiOptions, v as useFormatSelection, Qe as useFormulaBarSession, yn as useModelListener, bn as useRangeListener, Zn as useStudioApp };
|