@sheetxl/studio-mui 0.8.0-beta.7 → 1.0.0
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/LICENSE.md +17 -7
- package/browser/esm/{B57WM1X24rsvTF_o.mjs → 2dGXbxSvPxpMpoQB.mjs} +2 -2
- package/browser/esm/AKfq7wiKunwYv5Co.mjs +87 -0
- package/browser/esm/{DyNZEBlugP-x15kP.mjs → B16SyYhTCohin7vO.mjs} +4 -4
- package/browser/esm/B4qh8uSPezvUgs_C.mjs +414 -0
- package/browser/esm/BGR0Hv_mjOPfYxiD.mjs +975 -0
- package/browser/esm/{DR95Rgl8ItgWla8V.mjs → BVbTWo0j5ttMcIWs.mjs} +3 -3
- package/browser/esm/BctMjTuii_LaWmHJ.mjs +119 -0
- package/browser/esm/{CH7ZfljN7ru0Y9Wg.mjs → Bf-pwjpYBKNwL4f8.mjs} +4 -4
- package/browser/esm/Bh7XfTPJIFjaL6fa.mjs +13 -0
- package/browser/esm/BjH_mK6445rm6PL1.mjs +94 -0
- package/browser/esm/BqJSEK805PP8lILC.mjs +197 -0
- package/browser/esm/BrIWEn7tabhEreBm.mjs +973 -0
- package/browser/esm/{D88iVsgfDG9k-qf_.mjs → BsFK55lPALVUu31_.mjs} +5 -5
- package/browser/esm/{3L04oqyfyjRxhmzg.mjs → C0PinnqWu_JwK9l_.mjs} +33 -31
- package/browser/esm/C1KcphZVjVAE638t.mjs +415 -0
- package/browser/esm/{C36WT3I3aIR8y7I6.mjs → C3V7EwPHHPx9aEkE.mjs} +47 -48
- package/browser/esm/CCAPeyEqlStPrh6B.mjs +294 -0
- package/browser/esm/CF2Az5oBVjAigMRt.mjs +68 -0
- package/browser/esm/CIqEqDyl8JZRMblX.mjs +225 -0
- package/browser/esm/CJERhz_1u40JkHfH.mjs +235 -0
- package/browser/esm/CNtF9Fix0G6BEVEl.mjs +424 -0
- package/browser/esm/{D7HOLngE_1FYF6y6.mjs → CWP52da2iNOs3Qtz.mjs} +82 -94
- package/browser/esm/CWpF_0HjYiRiddX6.mjs +31 -0
- package/browser/esm/CbedwfwBLBaagGD-.mjs +360 -0
- package/browser/esm/{DNhLiDpvz3lAR190.mjs → Cc9tcBSYzJIv-dZw.mjs} +156 -109
- package/browser/esm/CcPLziOAdWTbG7xx.mjs +141 -0
- package/browser/esm/CdRnGw_9tvkn9d9o.mjs +335 -0
- package/browser/esm/{BWAIbfQZ6h5xVLdB.mjs → CgLDSZ8XvBqAB-Y2.mjs} +20 -18
- package/browser/esm/CgZLR7ijzsUoawf8.mjs +1281 -0
- package/browser/esm/Cn6OsV-MbO0rIM-o.mjs +442 -0
- package/browser/esm/{0Rpk1T56LoSnDrmq.mjs → CnDnNU6GGzM05K8w.mjs} +4 -4
- package/browser/esm/CnVHQ6i6a8VCMsn1.mjs +106 -0
- package/browser/esm/D06He-Tw4moPdM5f.mjs +103 -0
- package/browser/esm/D9lQwTAJ9RO60ovS.mjs +72 -0
- package/browser/esm/{D3BwGfI_IEjay0dA.mjs → D9xw1YuRJUjPMaqA.mjs} +2 -2
- package/browser/esm/DBr6lCvWLLwnzSGy.mjs +386 -0
- package/browser/esm/DEdHwT-2JZO9HyZN.mjs +14 -0
- package/browser/esm/DH4SdW-02-I8082_.mjs +14 -0
- package/browser/esm/DHbnrUh5rdi62fgO.mjs +516 -0
- package/browser/esm/DJRKcOT0Xv-1r0OP.mjs +161 -0
- package/browser/esm/DPycoTH_4RNdK2hu.mjs +252 -0
- package/browser/esm/{CpTqhDZotYaKGbLl.mjs → DXQTN_6-MvPivCrz.mjs} +8 -6
- package/browser/esm/DaNVYYZLCql8_n0i.mjs +831 -0
- package/browser/esm/Dakiv-oEU8ty2ILI.mjs +77 -0
- package/browser/esm/DfCd-MxLjE3gZ5jl.mjs +392 -0
- package/browser/esm/DhZqt49Ue-lveZv3.mjs +2692 -0
- package/browser/esm/DkxgFV6jJb6pO6lM.mjs +490 -0
- package/browser/esm/{B_PhUn6yySwXt2wo.mjs → QKDgV7kur90Bzexo.mjs} +14 -13
- package/browser/esm/R8q92QTpUT-sB4Nq.mjs +8547 -0
- package/browser/esm/RaV_j7qhH97TUb6P.mjs +1550 -0
- package/browser/esm/S-MJsifSUY334In9.mjs +8 -0
- package/browser/esm/UW74C3TpyGhFEOFO.mjs +267 -0
- package/browser/esm/W-jkQJTDojDSK93k.mjs +242 -0
- package/browser/esm/czz-Du13p5saoAex.mjs +318 -0
- package/browser/esm/{DErAKw-lIK3RY8m-.mjs → ilgUW6eI60262DJU.mjs} +2 -2
- package/browser/esm/index.mjs +1910 -289
- package/browser/esm/kbx_7Y2kVGMGIWtW.mjs +633 -0
- package/browser/esm/vCWRBUPIH8HXlYjO.mjs +94 -0
- package/browser/esm/w0DasqEtSJvoQVk2.mjs +517 -0
- package/browser/esm/w5dY32V2IxkbDBsT.mjs +225 -0
- package/licenses/dependencies.txt +113 -366
- package/node/esm/7GlVS1uyKRUAAjw9.mjs +1831 -0
- package/node/esm/B0mjDApnDOWo9UGr.mjs +412 -0
- package/node/esm/B19kx8jtLWU7WYCa.mjs +142 -0
- package/node/esm/BAFf7hg6qgFyQDW8.mjs +73 -0
- package/node/esm/BDdBcx7cNTM1hIXu.mjs +972 -0
- package/node/esm/BGBolrjPvNncjS1h.mjs +94 -0
- package/node/esm/BI3dFg_vx1Vgxgps.mjs +516 -0
- package/node/esm/BO19LMEPFqVsK1xu.mjs +267 -0
- package/node/esm/BSrtVTtNqcTg8QKK.mjs +68 -0
- package/node/esm/BcLccq7CvZiJXCDZ.mjs +319 -0
- package/node/esm/BeZ1ZY1UJepW8u1f.mjs +118 -0
- package/node/esm/BkLwJxkD4pyrume5.mjs +425 -0
- package/node/esm/{YKY4d8_Ckc8nPQqI.mjs → Bl_AT6xOKzBqc3PT.mjs} +10 -10
- package/node/esm/{DQtpY5kX99aMHygs.mjs → Bqah1dCUEhmRmY3c.mjs} +2 -2
- package/node/esm/Bv5awmbwVUdl4rma.mjs +106 -0
- package/node/esm/C3mSFWiCu7iONlk6.mjs +638 -0
- package/node/esm/CAJhvJU0gj93fPWl.mjs +141 -0
- package/node/esm/CJobW3iRAQ5vHeQr.mjs +14 -0
- package/node/esm/{BbXHuDHRHOW_6Sbs.mjs → CSJTM9SCqIDkHlpm.mjs} +21 -21
- package/node/esm/CUnv4ewRTvuP0si8.mjs +1276 -0
- package/node/esm/CWnezGEPuX9UeJ8E.mjs +385 -0
- package/node/esm/{Cul_Vgip2OE8yFBQ.mjs → CarjiReyjevcMdlI.mjs} +190 -141
- package/node/esm/CoG2fq6dYCvhC5yu.mjs +224 -0
- package/node/esm/Cpegk2BA6FOrOkZ0.mjs +77 -0
- package/node/esm/Cq1V2i0dRTWnoU1K.mjs +94 -0
- package/node/esm/{Ccrq9TNkiiSHKw-m.mjs → CyPtKWjud-Y-Pvq8.mjs} +2 -2
- package/node/esm/DEVN1ZPedFq8Bnui.mjs +197 -0
- package/node/esm/{BlD3bHo8AAxK7O1j.mjs → DFUPAGKlHT2-8dyC.mjs} +33 -31
- package/node/esm/DMxfzW-UQdMaV-Gx.mjs +975 -0
- package/node/esm/DWbMD1KaT8mlCUfO.mjs +519 -0
- package/node/esm/{DifZAchLTKOmWpkv.mjs → DffuRwJI_5oVtzZb.mjs} +23 -23
- package/node/esm/Dg9rTwnydI2UVmGG.mjs +242 -0
- package/node/esm/{BTI9exTFHEYzVjw9.mjs → DmQMejdH1-aYq99z.mjs} +70 -71
- package/node/esm/{CbpkRpNbQYYOJbxH.mjs → DvSoGqy_51YQZzYM.mjs} +84 -96
- package/node/esm/DzTvKGqU1I9m-_qd.mjs +391 -0
- package/node/esm/{Dvvg1Yo2e7OGd8sv.mjs → PKRuDgaA8RrsqSNn.mjs} +29 -29
- package/node/esm/{v0BFuYjhq2G8zDRe.mjs → POUGgaN5BmOnEPPl.mjs} +2 -2
- package/node/esm/WqxW6Up5_6oeJrSr.mjs +489 -0
- package/node/esm/ehyFZGpXZSmR7Q7-.mjs +294 -0
- package/node/esm/index.mjs +9829 -8837
- package/package.json +16 -19
- package/resources/contents.json +6 -0
- package/resources/locales/contents.json +14 -0
- package/resources/locales/de/groups.cmd.json +61 -10
- package/resources/locales/de/ui.msg.json +273 -15
- package/resources/locales/de/workbookAnomalies.cmd.json +14 -0
- package/resources/locales/en/groups.cmd.json +71 -11
- package/resources/locales/en/ui.msg.json +278 -15
- package/resources/locales/en/workbookAnomalies.cmd.json +14 -0
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
- package/types/src/anomalies/AnomaliesCommands.d.ts +8 -0
- package/types/src/anomalies/AnomaliesMessages.d.ts +30 -0
- package/types/src/anomalies/AnomaliesPlugin.d.ts +12 -0
- package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
- package/types/src/anomalies/_source.d.ts +7 -0
- package/types/src/anomalies/index.d.ts +3 -0
- package/types/src/border/BorderPopupButton.d.ts +1 -1
- package/types/src/border/BorderTemplateIcon.d.ts +6 -1
- package/types/src/chart/ChartFormatPanel.d.ts +20 -0
- package/types/src/chart/ChartPlugin.d.ts +6 -0
- package/types/src/chart/index.d.ts +3 -0
- package/types/src/color/ColorPopupButton.d.ts +1 -1
- package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
- package/types/src/command/ColorCommandButton.d.ts +5 -0
- package/types/src/command/DocThemeCommandButton.d.ts +1 -1
- package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
- package/types/src/command/FontSizeCommandButton.d.ts +1 -1
- package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
- package/types/src/command/LanguageCommandButton.d.ts +1 -1
- package/types/src/command/LocaleCommandButton.d.ts +1 -1
- package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
- package/types/src/command/PresetPivotStylesCommandButton.d.ts +17 -0
- package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
- package/types/src/command/index.d.ts +2 -0
- package/types/src/comments/CommentCard.d.ts +2 -2
- package/types/src/comments/CommentsPlugin.d.ts +1 -1
- package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +1 -1
- package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +3 -3
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
- package/types/src/conditions/CombinatorOption.d.ts +7 -0
- package/types/src/conditions/ConditionEditor.d.ts +55 -3
- package/types/src/conditions/ConditionUtils.d.ts +34 -6
- package/types/src/conditions/ExpressionOption.d.ts +6 -0
- package/types/src/conditions/MembershipOption.d.ts +67 -0
- package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
- package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
- package/types/src/conditions/ScalarOption.d.ts +5 -4
- 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 +2 -2
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +9 -5
- package/types/src/dataValidation/DataValidationIcon.d.ts +1 -1
- package/types/src/dataValidation/DataValidationPlugin.d.ts +1 -1
- package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
- package/types/src/dialog/OutlineSettingsDialog.d.ts +12 -0
- package/types/src/dialog/PivotTableNewDialog.d.ts +11 -0
- package/types/src/dialog/SparklineEditDialog.d.ts +10 -0
- package/types/src/dialog/SparklineNewDialog.d.ts +23 -0
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
- package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
- package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
- package/types/src/externalLink/ExternalLinksPlugin.d.ts +1 -1
- package/types/src/fill/GradientEditor.d.ts +15 -13
- package/types/src/fill/GradientStopsBar.d.ts +43 -0
- package/types/src/fill/PatternPopupButton.d.ts +1 -1
- package/types/src/fill/index.d.ts +1 -0
- package/types/src/filter/ColumnMenu.d.ts +31 -1
- package/types/src/filter/PivotMenu.d.ts +31 -0
- package/types/src/filter/index.d.ts +1 -1
- package/types/src/form/FormulaField.d.ts +4 -4
- package/types/src/form/InputField.d.ts +5 -5
- package/types/src/format/BorderPreview.d.ts +11 -4
- package/types/src/format/FillPanel.d.ts +42 -2
- package/types/src/format/FormatPanelParts.d.ts +3 -1
- package/types/src/format/FormatPlugin.d.ts +1 -6
- package/types/src/format/LinePanel.d.ts +53 -0
- package/types/src/format/LinePreviews.d.ts +71 -0
- package/types/src/format/index.d.ts +1 -0
- package/types/src/format/useFormatSelection.d.ts +6 -6
- package/types/src/formulaBar/IFormulaBar.d.ts +32 -3
- package/types/src/formulaBar/MobileFormulaBar.d.ts +42 -0
- package/types/src/formulaBar/MobileInputToolbar.d.ts +43 -0
- package/types/src/formulaBar/index.d.ts +3 -0
- package/types/src/formulaBar/useFormulaBarSession.d.ts +68 -0
- package/types/src/index.d.ts +19 -6
- package/types/src/itemsPanel/ItemCard.d.ts +50 -7
- package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
- package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
- package/types/src/itemsPanel/index.d.ts +1 -0
- package/types/src/named/NamedDetailsPanel.d.ts +2 -2
- package/types/src/named/NamedPlugin.d.ts +1 -1
- package/types/src/picture/PicturePlugin.d.ts +6 -0
- package/types/src/picture/index.d.ts +2 -0
- package/types/src/pivot/PivotChipMenu.d.ts +10 -0
- package/types/src/pivot/PivotPlugin.d.ts +3 -0
- package/types/src/pivot/PivotStyleCanvasPreview.d.ts +23 -0
- package/types/src/pivot/PivotTableHeader.d.ts +12 -0
- package/types/src/pivot/PivotValueSettingsDialog.d.ts +15 -0
- package/types/src/pivot/_pivotSource.d.ts +7 -0
- package/types/src/presence/PresenceOverlay.d.ts +14 -0
- package/types/src/presence/PresencePlugin.d.ts +31 -0
- package/types/src/presence/PresenceStrip.d.ts +22 -0
- package/types/src/presence/PresenceTaskPane.d.ts +13 -0
- package/types/src/presence/Timeline.d.ts +29 -0
- package/types/src/presence/index.d.ts +5 -0
- package/types/src/protection/ProtectedCellsPanel.d.ts +3 -3
- package/types/src/protection/ProtectionPlugin.d.ts +1 -1
- package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
- package/types/src/protection/index.d.ts +1 -1
- package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
- package/types/src/shape/ShapeGalleryCommandButton.d.ts +18 -0
- package/types/src/shape/ShapePlugin.d.ts +8 -0
- package/types/src/shape/index.d.ts +3 -0
- package/types/src/slicer/InsertSlicerCommandButton.d.ts +13 -0
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +12 -0
- package/types/src/slicer/SlicerPlugin.d.ts +6 -0
- package/types/src/slicer/index.d.ts +3 -0
- package/types/src/statusBar/PendingStatus.d.ts +19 -0
- package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
- package/types/src/statusBar/index.d.ts +1 -0
- package/types/src/studio/StudioProps.d.ts +62 -27
- package/types/src/studio/formulaBarPlacement.d.ts +35 -0
- package/types/src/studio/useStudioApp.d.ts +25 -24
- package/types/src/table/TablePlugin.d.ts +1 -1
- package/types/src/table/_drawStyleSwatch.d.ts +25 -0
- package/types/src/template/TemplateDialog.d.ts +1 -1
- package/types/src/template/TemplatePanel.d.ts +5 -1
- package/types/src/template/TemplateSearchField.d.ts +17 -1
- package/types/src/template/categoryColor.d.ts +8 -0
- package/types/src/template/useTemplateCatalog.d.ts +2 -0
- package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
- package/types/src/theme/ThemeUtils.d.ts +8 -27
- package/types/src/toolbar/WorkbookToolbars.d.ts +2 -2
- package/types/src/workbook/DefaultRenderers.d.ts +44 -16
- package/types/src/workbook/OutlineButtons.d.ts +11 -0
- package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
- package/types/src/workbook/WorkbookElement.d.ts +5 -4
- package/types/src/workbook/WorkbookStrip.d.ts +8 -7
- package/types/src/workbook/index.d.ts +1 -1
- package/browser/cjs/2tG9HJLr-WjsOCP3.cjs +0 -1
- package/browser/cjs/3RXtLkq7wTAV6y_e.cjs +0 -1
- package/browser/cjs/3k_KqDFr-AybPztc.cjs +0 -5
- package/browser/cjs/4_Zy3pR6YXkzISoK.cjs +0 -1
- package/browser/cjs/BD50lsTki7wvzb5g.cjs +0 -1
- package/browser/cjs/BJ-wdkCaXqJaejKf.cjs +0 -1
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
- package/browser/cjs/Bc-YisjBtD56vBAW.cjs +0 -1
- package/browser/cjs/BcBrhEv9acaTxPkO.cjs +0 -13
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/ByIUHPOa02D7XbdC.cjs +0 -1
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
- package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
- package/browser/cjs/CkroJ2FmfFvk6Eyv.cjs +0 -1
- package/browser/cjs/Clzu4HOXk3QSlzUD.cjs +0 -8
- package/browser/cjs/CzJvR12QCQb-0Rtn.cjs +0 -1
- package/browser/cjs/D-Yo5aV9STT5KH4G.cjs +0 -1
- package/browser/cjs/DwkiLFWUtLC8ZcIQ.cjs +0 -1
- package/browser/cjs/HuPFsmz7kyZVo3c7.cjs +0 -1
- package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
- package/browser/cjs/M0_dvdYwhikqP9kg.cjs +0 -2
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
- package/browser/cjs/index.cjs +0 -2
- package/browser/esm/7gisHVXYgcPxWH8-.mjs +0 -223
- package/browser/esm/B7k8enrhC2Rvqhn1.mjs +0 -152
- package/browser/esm/BK4OEmeaw-kC-vAN.mjs +0 -5355
- package/browser/esm/DvYZOxsaTNeBKuFq.mjs +0 -411
- package/browser/esm/DzWcb3yuPXS0E4_P.mjs +0 -236
- package/browser/esm/WftYXVWvPKx99H0H.mjs +0 -115
- package/browser/esm/eoNyVUe5ZEpHwJ7k.mjs +0 -52
- package/browser/esm/hFLn30a6N1fEy7fz.mjs +0 -13582
- package/browser/esm/jkFhDHWwKoyTSSDL.mjs +0 -1150
- package/node/esm/CpteKzMPi39jxmYL.mjs +0 -236
- package/node/esm/DA2gosTk8L-FUVI5.mjs +0 -4503
- package/node/esm/DP23-d6_VRFro0_D.mjs +0 -415
- package/node/esm/lH1iFsECniBRMubb.mjs +0 -115
- package/types/src/conditions/DateTimeOption.d.ts +0 -43
- package/types/src/conditions/ListSourceOption.d.ts +0 -31
- package/types/src/filter/FilterList.d.ts +0 -31
package/browser/cjs/index.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Bo9Kx3L_XQkGPBJ5.cjs"),t=require("./BcBrhEv9acaTxPkO.cjs"),n=require("./CPcBvw4ZPwHVTUZF.cjs"),r=require("./CdDYyAfccXme8w6m.cjs"),i=require("./ByIUHPOa02D7XbdC.cjs"),a=require("./BD50lsTki7wvzb5g.cjs"),o=require("./CkroJ2FmfFvk6Eyv.cjs");let s=require("@sheetxl/sdk"),c=require("@sheetxl/react"),l=require("@sheetxl/utils-react"),u=require("react"),d=require("@sheetxl/utils-mui"),f=require("react/jsx-runtime"),p=require("@mui/material"),m=require("@sheetxl/utils");var h=function(e){var t=window.history,n=t[e];t[e]=function(t){var r=n.apply(this,arguments),i=new Event(e.toLowerCase());return i.state=t,window.dispatchEvent(i),r}};r.n&&(h(`pushState`),h(`replaceState`));var g=function(e){var t=window.history,n=t.state,r=t.length,i=window.location;return{trigger:e,state:n,length:r,hash:i.hash,host:i.host,hostname:i.hostname,href:i.href,origin:i.origin,pathname:i.pathname,port:i.port,protocol:i.protocol,search:i.search}},_=typeof Event==`function`,v=r.n&&_?function(){var e=(0,u.useState)(g(`load`)),t=e[0],n=e[1];return(0,u.useEffect)(function(){var e=function(){return n(g(`popstate`))},t=function(){return n(g(`pushstate`))},i=function(){return n(g(`replacestate`))};return r.i(window,`popstate`,e),r.i(window,`pushstate`,t),r.i(window,`replacestate`,i),function(){r.r(window,`popstate`,e),r.r(window,`pushstate`,t),r.r(window,`replacestate`,i)}},[]),t}:function(){return{trigger:`load`,length:1}},y=(0,u.memo)((0,u.forwardRef)((e,t)=>{let{groupKey:n=`workbook`,disabled:r,...i}=e,[a,o]=(0,u.useState)([]),s=c.WorkbookIO.canWrite(),p=c.WorkbookIO.canRead();(0,u.useEffect)(()=>{let e=!0;return c.WorkbookIO.getWriteFormats().then(t=>{e&&o(t)}),()=>{e=!1}},[]);let m=(0,c.useWorkbookFormat)((0,c.useWorkbook)()),h=(0,u.useMemo)(()=>{if(a.length===0)return null;let e=m?.toLowerCase();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]},[a,m]),[g]=(0,l.useCommands)(h?`saveWorkbookAs${h.key}`:[]),_=(0,l.useCommandButtonRegistry)(),v=_.resolveMembers(`newWorkbookOptions`)??[`newWorkbook`],y=(0,l.useCallbackRef)(e=>{let t={variant:l.CommandButtonType.Menuitem,groupKey:n,disabled:r},i=(0,f.jsxs)(f.Fragment,{children:[v.length>1?(0,f.jsx)(d.CommandPopupButton,{...t,quickCommand:`newWorkbook`,createPopupPanel:e=>{let t=(0,d.renderMembers)(v,{variant:l.CommandButtonType.Menuitem,dividerOrientation:`horizontal`,groupKey:`newWorkbookOptions`,registry:_,propsCommandButton:{disabled:r},propsCommandPopup:{disabled:r}});return(0,d.defaultCreatePopupPanel)({...e,children:t,onClick:()=>{e.closeFloatAll?.()}})}}):(0,f.jsx)(d.CommandButton,{...t,commandKey:`newWorkbook`}),(0,f.jsx)(d.ExhibitDivider,{orientation:`horizontal`}),p?(0,f.jsx)(d.CommandPopupButton,{...t,quickCommand:`openWorkbook`,createPopupPanel:e=>{let n={...t,groupKey:`openWorkbookOptions`},r=[(0,u.createElement)(d.CommandButton,{...n,key:`device`,commandKey:`openWorkbook`}),(0,u.createElement)(d.CommandButton,{...n,key:`web`,commandKey:`openWorkbookFromUrl`})];return(0,d.defaultCreatePopupPanel)({...e,children:r,onClick:()=>{e.closeFloatAll?.()}})}}):null,s&&a.length>0?(0,f.jsx)(d.CommandPopupButton,{...t,quickCommand:`saveWorkbook`,createPopupPanel:e=>{let n={...t,groupKey:`saveWorkbookOptions`},r=[(0,u.createElement)(d.CommandButton,{...n,key:`saveWorkbookAs`,commandKey:`saveWorkbookAs`,label:g?.getLabel(`saveWorkbookOptions`),icon:g?.getIcon(`saveWorkbookOptions`)})],i=a.filter(e=>!e.advanced&&e.key!==h?.key);return i.length>0&&r.push((0,f.jsx)(d.ExhibitDivider,{orientation:`horizontal`},`divider`)),i.forEach(e=>{let t=e.key,i=`saveWorkbookAs${t}`;r.push((0,u.createElement)(d.CommandButton,{...n,key:t,commandKey:i}))}),(0,d.defaultCreatePopupPanel)({...e,children:r,onClick:()=>{e.closeFloatAll?.()}})}}):null]});return(0,d.defaultCreatePopupPanel)({...e,children:i,onClick:t=>{t.isDefaultPrevented()||e.closeFloatAll?.()}})},[r,n,a,h,g,v,_]),b=(0,l.useCommandButtonEntry)(`fileOptions`),x=b?.getLabel?.()??`File`;return(0,f.jsx)(d.CommandPopupButton,{disabled:r,groupKey:n,label:x,tooltip:b?.getDescription?.()??`Options for saving and loading the workbook.`,sx:{paddingBottom:`0px`,"& button":{paddingTop:`0px`,paddingBottom:`0px`,height:e=>`calc(1.25rem + ${e.spacing(2)}px)`}},...i,createPopupPanel:y,icon:(0,f.jsx)(d.LabelIcon,{className:`label`,icon:null,label:x})})}));y.displayName=`FileCommandButton`;var b=(0,u.memo)((0,u.forwardRef)((e,t)=>{let{groupKey:n,disabled:r,...i}=e,[a]=(0,l.useCommands)([`themeMode`]),o=(0,l.useCommandButtonEntry)(`appearanceOptions`),s=(0,l.useCallbackRef)(e=>{let t={variant:l.CommandButtonType.Menuitem,groupKey:`appearanceOptions`,disabled:r},n=(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d.CommandButton,{...t,commandKey:`themeMode`}),(0,f.jsx)(d.CommandButton,{...t,commandKey:`defaultThemeMode`}),(0,f.jsx)(d.ExhibitDivider,{orientation:`horizontal`}),(0,f.jsx)(d.CommandButton,{...t,commandKey:`enableDarkGrid`}),(0,f.jsx)(d.CommandButton,{...t,commandKey:`enableDarkImages`})]});return(0,d.defaultCreatePopupPanel)({...e,children:n})},[r,a,n]),c=a?.getState(),u=(0,p.useMediaQuery)(`(prefers-color-scheme: dark)`),m=c===`dark`||c===null&&u,h=a?.getState()!==null;return(0,f.jsx)(d.CommandPopupButton,{ref:t,quickCommand:`themeMode`,createPopupPanel:s,label:o?.getLabel?.(),tooltip:o?.getDescription?.(),onQuickClick:()=>{a?.execute(m?`light`:`dark`)},selected:h,...i})})),x=(0,u.memo)((0,u.forwardRef)((e,t)=>{let{...n}=e;return(0,f.jsx)(d.CommandGroup,{ref:t,groupKey:`insertFunctionSumOptions`,...n})}));x.displayName=`InsertFunctionSumCommandPopupButton`;var S=e.t({PasswordDialog:()=>C,default:()=>C}),C=e=>{let t=(0,l.useTranslator)(),{description:n,requireCurrent:r=!1,onApply:i,title:a,sx:o,...s}=e,[c,m]=(0,u.useState)(``),[h,g]=(0,u.useState)(``),[_,v]=(0,u.useState)(``),[y,b]=(0,u.useState)(!1),x=h===``,S=_!==h,C=!x&&!S;return(0,f.jsx)(d.OptionsDialog,{title:a??t(r?`password.titleChange`:`password.title`),options:[`Ok`,`Cancel`],defaultOption:`Ok`,cancelOption:`Cancel`,autoFocusSel:`.autoFocus`,sx:{width:`380px`,...o},onValidateOption:e=>e===`Cancel`||(b(!0),C),onOption:(e,t)=>{if(!t&&e===`Ok`)return i(h,r?c:void 0)},...s,children:(0,f.jsxs)(p.Box,{sx:{display:`flex`,flexDirection:`column`,gap:e=>e.spacing(2),paddingTop:e=>e.spacing(1)},children:[n?(0,f.jsx)(p.Typography,{variant:`body2`,sx:{color:`text.secondary`},children:n}):null,r?(0,f.jsx)(p.TextField,{type:`password`,size:`small`,label:t(`password.current`),value:c,onChange:e=>m(e.target.value),slotProps:{inputLabel:{shrink:!0},htmlInput:{className:`autoFocus`,autoComplete:`current-password`,spellCheck:!1}}}):null,(0,f.jsx)(p.TextField,{type:`password`,size:`small`,label:t(r?`password.new`:`password.label`),value:h,error:y&&x,helperText:y&&x?t(`password.required`):` `,onChange:e=>g(e.target.value),slotProps:{inputLabel:{shrink:!0},htmlInput:{className:r?void 0:`autoFocus`,autoComplete:`new-password`,spellCheck:!1}}}),(0,f.jsx)(p.TextField,{type:`password`,size:`small`,label:t(`protection.passwordConfirm`),value:_,error:y&&!x&&S,helperText:y&&!x&&S?t(`protection.passwordMismatch`):` `,onChange:e=>v(e.target.value),slotProps:{inputLabel:{shrink:!0},htmlInput:{autoComplete:`new-password`,spellCheck:!1}}})]})})},w=new Set(`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(`.`)),T=()=>(0,f.jsx)(f.Fragment,{}),E=(0,m.defineLazyModule)(`studio:eagerStudio`,()=>Promise.resolve().then(()=>require("./Clzu4HOXk3QSlzUD.cjs")),{tier:`startup`}),D=({error:e,onShown:t})=>((0,u.useEffect)(()=>{t()},[]),(0,f.jsx)(d.LazyLoadErrorPanel,{error:e})),O=(0,u.memo)((0,u.forwardRef)((e,r)=>{let{sx:i,style:a,className:o,licenseKey:d,prefetch:h=`common`,renderDocumentLoading:g=t.s,propsDocumentLoading:_,onWorkbookLoad:v,onDocumentError:y,...b}=e,[x,S]=(e=>{let t={},n={};for(let r in e)(w.has(r)?t:n)[r]=e[r];return[t,n]})(b);d&&s.LicenseManager.setLicenseKey(d);let[C]=(0,l.usePersistentState)(c.ThemeStateKey.Mode,c.ThemeStateDefaults[c.ThemeStateKey.Mode]),{themeMode:O}=(0,l.useResolvedThemeMode)({mode:C??void 0}),k=O===`dark`,[A,j]=(0,u.useState)(null),M=(0,l.createThemeScopeClass)(`studio`,(0,u.useId)()),[N,P]=(0,u.useState)(!1),F=(0,u.useMemo)(()=>!g||N?null:(0,f.jsx)(p.Paper,{style:{backgroundColor:`var(--sxl-color-base-100, ${k?`#121212`:`#fff`})`,inset:0,width:`100%`,height:`100%`,position:`absolute`,display:`flex`,alignItems:`center`,justifyContent:`center`,zIndex:9900},children:g(_??{})}),[g,_,k,N]);(0,u.useEffect)(()=>{if(!N||h===`none`)return;let e=h===`all`?[`startup`,`common`,`rare`]:[`startup`,`common`],t=new AbortController,n=()=>{m.LazyModules.prefetch({tiers:e,signal:t.signal})};n();let r=navigator.connection;return window.addEventListener(`online`,n),r?.addEventListener?.(`change`,n),()=>{t.abort(),window.removeEventListener(`online`,n),r?.removeEventListener?.(`change`,n)}},[N,h]);let I=(0,u.useMemo)(()=>(0,l.lazyComponent)(E.load,{renderError:e=>(0,f.jsx)(D,{error:e,onShown:()=>P(!0)})}),[]);return(0,f.jsxs)(p.Box,{ref:j,className:n.t(`sheetxl-studio`,M,o),"data-sxl-theme-mode":O,sx:i,style:{display:`flex`,flexDirection:`column`,flex:`1 1 100%`,width:`100%`,height:`100%`,minWidth:0,minHeight:0,position:`relative`,overflow:`hidden`,...a},...S,children:[(0,f.jsx)(u.Suspense,{fallback:null,children:(0,f.jsx)(I,{...x,host:A,scopeClass:M,onWorkbookLoad:e=>(requestAnimationFrame(()=>requestAnimationFrame(()=>P(!0))),v?.(e)),onDocumentError:e=>(P(!0),y?.(e)),renderDocumentLoading:T,ref:r})}),F]})}));O.displayName=`Studio`,exports.AlignmentPanel=t.F,exports.AppearanceCommandButton=b,exports.AutoColorPosition=t.Fn,exports.BorderCommandButton=t.En,exports.BorderPanel=t.O,exports.BorderPopupButton=t.Dn,exports.BorderPreview=t.k,exports.BorderStylePopupButton=t.kn,exports.BorderTemplateIcon=t.On,exports.COMMENTS_FILTER_KEY=t.nt,exports.CalculationOptionsCommandButton=t.$t,exports.CalculationRequiredStatus=t.wt,exports.CircularReferenceStatus=t.Tt,exports.ColorButton=t.Pn,exports.ColorButtonList=t.Nn,exports.ColorCommandButton=t.yn,exports.ColorPanel=t.Mn,exports.ColorPanelType=t.In,exports.ColorPopupButton=t.jn,exports.ColumnMenu=t.$,exports.CommentCard=t.it,exports.CommentsPlugin=t.tt,exports.CommentsTaskPane=t.rt,exports.DEFAULT_GRADIENT=t.G,Object.defineProperty(exports,"DefaultTaskPaneRegistry",{enumerable:!0,get:function(){return c.DefaultTaskPaneRegistry}}),exports.DefaultWorkbookToolbars=t.Ot,exports.DocThemeCommandButton=t.en,exports.DocumentTitle=t.r,exports.ExternalLinkCardBody=t.dt,exports.ExternalLinkChip=t.ut,exports.ExternalLinkLocation=t.lt,exports.ExternalLinkSettingsTab=t.ct,exports.ExternalLinksPanel=t.st,exports.ExternalLinksPlugin=t.at,exports.ExternalLinksTaskPane=t.ot,exports.FORMAT_TAB_KEY=t.T,exports.FORMAT_TASK_PANE_KEY=t.C,exports.FORMULA_FIELD_ABOVE_LABEL_HEIGHT=i.t,exports.FileCommandButton=y,exports.FillMenu=t.u,exports.FillPanel=t.N,exports.FilterList=t.et,exports.FontFamilyCommandButton=t.vn,exports.FontPanel=t.P,exports.FontSizeCommandButton=t.Tn,exports.FormatButtonGroup=t.R,exports.FormatCellPreview=t.L,exports.FormatNumberField=t.z,exports.FormatPlugin=t.w,exports.FormatRow=t.B,exports.FormatSection=t.V,exports.FormatTab=t.E,exports.FormatTaskPane=t.D,exports.FormulaBar=t.ft,exports.FormulaField=i.n,exports.FunctionArgumentsPanel=o.a,exports.FunctionSearchPanel=o.o,exports.GradientEditor=t.K,exports.INSERT_FUNCTION_PAGE_CLASS=o.t,exports.InputField=a.t,exports.InsertFunctionCommandPopupButton=t.Nt,exports.InsertFunctionOption=o.n,exports.InsertFunctionSumCommandPopupButton=x,exports.InsertFunctionWizard=o.r,Object.defineProperty(exports,"LicenseManager",{enumerable:!0,get:function(){return s.LicenseManager}}),exports.ManageProtectionTaskPane=t.g,exports.NAMED_TYPE_FORMULA=t._t,exports.NamedCollectionEditor=t.St,exports.NamedDetailsPanel=t.ht,exports.NamedDetailsTaskPane=t.mt,exports.NamedEditorPanel=t.gt,exports.NamedPlugin=t.pt,exports.NumberFormatCommandButton=t.xn,exports.NumberFormatOption=t.Sn,exports.NumberFormatPanel=t.I,exports.NumberStats=t.Et,exports.PATTERN_GALLERY=t.X,exports.PREVIEW_EDGES=t.A,exports.PasswordDialog=C,exports.PasswordField=t.S,exports.PasteCommandButton=t.gn,exports.PatternPopupButton=t.J,exports.PatternSwatch=t.Z,exports.PresetCellStylesCommandButton=t.hn,exports.PresetTableStylesCommandButton=t.sn,exports.ProtectedCellsPanel=t.y,exports.ProtectedRangeDetailsTaskPane=t._,exports.ProtectionPlugin=t.h,exports.SheetProtectionPanel=t.b,exports.SheetTabMenu=t.m,exports.SheetZoomCommandButton=t.Ln,exports.SheetZoomScale=t.Dt,exports.SheetsAllMenu=t.p,exports.StatusBar=t.Ct,exports.Studio=O,exports.StyledStrokeIcon=t.An,exports.TableDetailsPanel=t.un,exports.TableDetailsTaskPane=t.ln,exports.TablePlugin=t.cn,exports.TableStyleCanvasPreview=t.pn,exports.TableStyleOptionsPanel=t.fn,exports.TableStylePreview=t.mn,exports.TextEffectsCommandButton=t._n,exports.TextRotateGroupButton=t.Rn,exports.ThemeSelectButton=t.on,exports.ThemeSelectPanel=t.an,exports.ThemeSelectPopupButton=t.in,exports.UndoRedoCommandButton=t.bn,exports.WalkingCopyCommandButton=t.Qt,exports.WorkbookContextMenu=t.d,exports.WorkbookElement=t.i,Object.defineProperty(exports,"WorkbookIO",{enumerable:!0,get:function(){return c.WorkbookIO}}),exports.WorkbookProtectionPanel=t.x,exports.WorkbookProtectionTab=t.v,exports.WorkbookStrip=t.f,exports.WorkbookToolbars=t.kt,exports.createNamedDraft=t.vt,exports.createStudioThemeCSS=t.tn,exports.createThemeFromMUITheme=t.nn,exports.edgeLabel=t.j,exports.edgesAt=t.M,exports.expressionOf=t.yt,exports.isEditableNamed=t.bt,exports.numberFormatCategoryLabel=t.Cn,exports.numberFormatTypeLabel=t.wn,exports.onReselect=t.H,exports.optionsForPage=o.i,exports.panelSx=t.U,exports.patternLabel=t.Y,exports.registerSheetCommandGroups=t.Pt,exports.registerStudioCommandCatalogs=t.zn,exports.registerStudioCommandGroups=t.jt,exports.registerWorkbookCommandGroups=t.Mt,exports.renderWorkbookSheetTab=t.c,exports.renderWorkbookToolbars=t.At,exports.saveNamedDraft=t.xt,Object.defineProperty(exports,"setPrintExamplesOnLoad",{enumerable:!0,get:function(){return c.setPrintExamplesOnLoad}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return S}}),exports.toGradientValue=t.q,exports.toPatternSlots=t.Q,exports.tokensToMuiOptions=t.rn,exports.useFormatSelection=t.W,Object.defineProperty(exports,"useModelListener",{enumerable:!0,get:function(){return c.useModelListener}}),Object.defineProperty(exports,"useRangeListener",{enumerable:!0,get:function(){return c.useRangeListener}}),exports.useStudioApp=(e={})=>{let{source:n,startWith:r,templatePath:i,onWorkbookLoad:a,documentTitle:o,confirmOnClose:s,keyboardGuard:l}=e,d=v(),[f,p]=(0,u.useState)(null),[m,h]=(0,u.useState)(!1);(0,c.useWindowChrome)((0,c.useWorkbookName)(f),m,{documentTitle:o,confirmOnClose:s,keyboardGuard:l});let{workbook:g,urlTitle:_}=(0,u.useMemo)(()=>{if(n!=null)return{workbook:typeof n==`string`?{source:n}:n,urlTitle:null};if(d.search){let e=new URLSearchParams(d.search),t=e.get(`source`);if(t)return{workbook:{source:t},urlTitle:e.get(`title`)}}return{workbook:void 0,urlTitle:null}},[n,d.search]),y=(0,u.useCallback)(e=>{e&&_&&e.getOrigin().setName(_),p(e)},[_]);(0,u.useEffect)(()=>{r===`welcome`&&g===void 0&&t.n(i)},[r,g,i]);let b=(0,u.useRef)(!1),x=(0,u.useRef)(a);return x.current=a,{workbook:g,onWorkbookChange:y,onDirtyChange:h,onWorkbookLoad:(0,u.useCallback)(e=>(b.current||(b.current=!0,r===`welcome`&&g===void 0&&requestAnimationFrame(()=>requestAnimationFrame(()=>{e.source?.getCommandScope?.()?.resolve(`showWelcome`)?.execute({templatePath:i,atStartup:!0})}))),x.current?.(e)),[r,i,g])}};
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { t as e } from "./CpTqhDZotYaKGbLl.mjs";
|
|
8
|
-
import { useFormulaInput as t, useFormulaInputParts as n } from "@sheetxl/react";
|
|
9
|
-
import { DynamicIcon as r, useTranslator as i } from "@sheetxl/utils-react";
|
|
10
|
-
import a, { forwardRef as o, memo as s, useEffect as c, useId as ee, useImperativeHandle as te, useMemo as ne, useRef as l } from "react";
|
|
11
|
-
import { ExhibitIconButton as u } from "@sheetxl/utils-mui";
|
|
12
|
-
import { Fragment as re, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
13
|
-
import { Box as ie, FormControl as ae, InputAdornment as p, TextField as m } from "@mui/material";
|
|
14
|
-
var h = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
15
|
-
a.createContext(null).displayName = "HookFormControlContext", h ? a.useLayoutEffect : a.useEffect;
|
|
16
|
-
var g = a.createContext(null);
|
|
17
|
-
g.displayName = "HookFormContext";
|
|
18
|
-
var _ = () => a.useContext(g), v = (e) => {
|
|
19
|
-
e.button === 0 && e.preventDefault();
|
|
20
|
-
}, y = "20px", b = "4px", x = `calc(${y} + ${b})`, S = s(o((a, o) => {
|
|
21
|
-
let { grammar: s = "formula", formName: h, formOptions: g, disabled: x, className: S, sx: C, onKeyDown: oe, onFocus: se, value: ce, onChangeInput: le, onChangeText: ue, onDone: w, changeOn: de, apiRef: fe, workbook: T, home: E, equals: pe, pickAs: me, pickSpills: he, allowMulti: ge, allowCrossSheet: _e, required: D, label: O, labelPlacement: k = "floating", placeholder: A, helperText: j, showError: M = !0, onChangeError: N, validationError: P, hideAdornment: F, classNameInput: I, argument: ve, id: ye, ...be } = a, L = i(), R = k === "above", xe = ee(), z = ye ?? xe, B = s === "formula", V = O === void 0 ? L(B ? "formulaInput.label" : "rangeInput.label") : O, Se = A ?? L(B ? "formulaInput.placeholder" : "rangeInput.placeholder"), H = _(), U = h && H ? H.register(h, g) : null, W = t({
|
|
22
|
-
value: ce,
|
|
23
|
-
onChange: le,
|
|
24
|
-
onChangeText: ue,
|
|
25
|
-
onDone: w,
|
|
26
|
-
changeOn: de,
|
|
27
|
-
workbook: T,
|
|
28
|
-
home: E,
|
|
29
|
-
equals: pe,
|
|
30
|
-
pickAs: me,
|
|
31
|
-
pickSpills: he,
|
|
32
|
-
allowMulti: ge,
|
|
33
|
-
allowCrossSheet: _e,
|
|
34
|
-
required: D,
|
|
35
|
-
disabled: x
|
|
36
|
-
}, s);
|
|
37
|
-
te(fe, () => W, [W]);
|
|
38
|
-
let G = n({
|
|
39
|
-
api: W,
|
|
40
|
-
grammar: s,
|
|
41
|
-
disabled: x,
|
|
42
|
-
workbook: T,
|
|
43
|
-
home: E,
|
|
44
|
-
argument: ve
|
|
45
|
-
}), K = !!W.error && !G.inputExpected, q = K || !!P, Ce = M && q ? L(K ? W.error : P) : j === void 0 ? " " : j, J = l(H);
|
|
46
|
-
J.current = H;
|
|
47
|
-
let Y = l(N);
|
|
48
|
-
Y.current = N;
|
|
49
|
-
let X = l(null), Z = K ? W.error : null, Q = l(null);
|
|
50
|
-
c(() => {
|
|
51
|
-
Z !== Q.current && (Q.current = Z, Y.current?.(Z));
|
|
52
|
-
}, [Z]), c(() => {
|
|
53
|
-
if (W.error === X.current || (X.current = W.error, !h)) return;
|
|
54
|
-
let e = J.current;
|
|
55
|
-
e && (W.error ? e.setError(h, { message: W.error }) : e.clearErrors(h));
|
|
56
|
-
}, [W.error, h]);
|
|
57
|
-
let $ = !!w, we = ne(() => F ? void 0 : d(p, {
|
|
58
|
-
tabIndex: -1,
|
|
59
|
-
onMouseDown: v,
|
|
60
|
-
sx: {
|
|
61
|
-
display: "flex",
|
|
62
|
-
position: "relative",
|
|
63
|
-
flex: "0"
|
|
64
|
-
},
|
|
65
|
-
position: "end",
|
|
66
|
-
children: W.engaged && $ ? f(re, { children: [d(u, {
|
|
67
|
-
dense: !0,
|
|
68
|
-
outlined: !1,
|
|
69
|
-
color: "primary",
|
|
70
|
-
"aria-label": "commit-reference",
|
|
71
|
-
icon: d(r, { iconKey: "CheckSuccess" }),
|
|
72
|
-
propsTooltip: {
|
|
73
|
-
label: L("referenceInput.commit"),
|
|
74
|
-
simple: !0
|
|
75
|
-
},
|
|
76
|
-
disabled: !!W.error,
|
|
77
|
-
tabIndex: -1,
|
|
78
|
-
onMouseDown: v,
|
|
79
|
-
onClick: () => {
|
|
80
|
-
W.commit();
|
|
81
|
-
}
|
|
82
|
-
}), d(u, {
|
|
83
|
-
dense: !0,
|
|
84
|
-
outlined: !1,
|
|
85
|
-
color: "warning",
|
|
86
|
-
"aria-label": "cancel-reference",
|
|
87
|
-
icon: d(r, { iconKey: "CloseError" }),
|
|
88
|
-
propsTooltip: {
|
|
89
|
-
label: L("referenceInput.cancel"),
|
|
90
|
-
simple: !0
|
|
91
|
-
},
|
|
92
|
-
tabIndex: -1,
|
|
93
|
-
onMouseDown: v,
|
|
94
|
-
onClick: () => {
|
|
95
|
-
W.cancel();
|
|
96
|
-
}
|
|
97
|
-
})] }) : d(u, {
|
|
98
|
-
dense: !0,
|
|
99
|
-
outlined: !1,
|
|
100
|
-
disabled: x || !W.canSelectCurrent,
|
|
101
|
-
sx: { "&.Mui-disabled": { opacity: .35 } },
|
|
102
|
-
"aria-label": "select-current-range",
|
|
103
|
-
icon: d(r, { iconKey: "SelectRangeMode" }),
|
|
104
|
-
propsTooltip: {
|
|
105
|
-
label: L("referenceInput.selectCurrent"),
|
|
106
|
-
simple: !0
|
|
107
|
-
},
|
|
108
|
-
tabIndex: -1,
|
|
109
|
-
onMouseDown: v,
|
|
110
|
-
onClick: () => {
|
|
111
|
-
W.engaged || W.togglePoint(), W.selectCurrent();
|
|
112
|
-
}
|
|
113
|
-
})
|
|
114
|
-
}), [
|
|
115
|
-
F,
|
|
116
|
-
x,
|
|
117
|
-
$,
|
|
118
|
-
W.engaged,
|
|
119
|
-
W.canSelectCurrent,
|
|
120
|
-
W.togglePoint,
|
|
121
|
-
W.selectCurrent,
|
|
122
|
-
W.commit,
|
|
123
|
-
W.cancel,
|
|
124
|
-
!!W.error
|
|
125
|
-
]);
|
|
126
|
-
return f(ae, {
|
|
127
|
-
sx: {
|
|
128
|
-
minWidth: 135,
|
|
129
|
-
width: "100%",
|
|
130
|
-
...C
|
|
131
|
-
},
|
|
132
|
-
size: "small",
|
|
133
|
-
ref: (e) => {
|
|
134
|
-
G.containerRef.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
|
|
135
|
-
},
|
|
136
|
-
className: e("sxl-formula-field", S),
|
|
137
|
-
"data-grammar": s,
|
|
138
|
-
...be,
|
|
139
|
-
children: [
|
|
140
|
-
R ? d(ie, {
|
|
141
|
-
component: "label",
|
|
142
|
-
htmlFor: z,
|
|
143
|
-
sx: {
|
|
144
|
-
lineHeight: y,
|
|
145
|
-
marginBottom: b,
|
|
146
|
-
paddingLeft: "14px",
|
|
147
|
-
display: "flex",
|
|
148
|
-
alignItems: "center",
|
|
149
|
-
gap: "4px",
|
|
150
|
-
overflow: "hidden",
|
|
151
|
-
whiteSpace: "nowrap",
|
|
152
|
-
fontSize: "0.8rem",
|
|
153
|
-
color: x ? "text.disabled" : "text.primary"
|
|
154
|
-
},
|
|
155
|
-
children: V
|
|
156
|
-
}) : null,
|
|
157
|
-
d(m, {
|
|
158
|
-
id: z,
|
|
159
|
-
label: R ? void 0 : V,
|
|
160
|
-
placeholder: Se,
|
|
161
|
-
disabled: x,
|
|
162
|
-
error: q,
|
|
163
|
-
helperText: Ce,
|
|
164
|
-
sx: { "& .MuiFormHelperText-root": {
|
|
165
|
-
marginTop: b,
|
|
166
|
-
...R ? { lineHeight: y } : null
|
|
167
|
-
} },
|
|
168
|
-
slotProps: {
|
|
169
|
-
input: { endAdornment: we },
|
|
170
|
-
inputLabel: { shrink: !0 },
|
|
171
|
-
htmlInput: {
|
|
172
|
-
className: I,
|
|
173
|
-
spellCheck: !1,
|
|
174
|
-
autoComplete: "off",
|
|
175
|
-
readOnly: x || W.inputProps.readOnly,
|
|
176
|
-
name: h,
|
|
177
|
-
sx: {
|
|
178
|
-
paddingTop: (e) => e.spacing(R || V == null ? 1 : 1.25),
|
|
179
|
-
paddingBottom: (e) => e.spacing(R || V == null ? 1 : .75),
|
|
180
|
-
...G.overlayActive ? {
|
|
181
|
-
color: "transparent",
|
|
182
|
-
caretColor: (e) => e.palette.text.primary
|
|
183
|
-
} : null
|
|
184
|
-
},
|
|
185
|
-
onSelect: (e) => {
|
|
186
|
-
W.inputProps.onSelect(e), G.inputHandlers.onSelect(e);
|
|
187
|
-
},
|
|
188
|
-
onScroll: G.inputHandlers.onScroll,
|
|
189
|
-
onMouseMove: G.inputHandlers.onMouseMove,
|
|
190
|
-
onMouseLeave: G.inputHandlers.onMouseLeave,
|
|
191
|
-
onDragStart: G.inputHandlers.onDragStart
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
value: W.inputProps.value,
|
|
195
|
-
inputRef: (e) => {
|
|
196
|
-
G.inputElRef.current = e, W.inputProps.ref(e), U?.ref && U.ref(e);
|
|
197
|
-
},
|
|
198
|
-
onChange: (e) => {
|
|
199
|
-
W.inputProps.onChange(e), G.inputHandlers.onSelect(e), U?.onChange(e);
|
|
200
|
-
},
|
|
201
|
-
onKeyDown: (e) => {
|
|
202
|
-
G.handleKeyDown(e) || (W.inputProps.onKeyDown(e), e.defaultPrevented || oe?.(e));
|
|
203
|
-
},
|
|
204
|
-
onPointerDown: G.inputHandlers.onPointerDown,
|
|
205
|
-
onMouseDown: W.inputProps.onMouseDown,
|
|
206
|
-
onFocus: (e) => {
|
|
207
|
-
W.inputProps.onFocus(e), se?.(e);
|
|
208
|
-
},
|
|
209
|
-
onBlur: (e) => {
|
|
210
|
-
W.inputProps.onBlur(e), U?.onBlur(e);
|
|
211
|
-
},
|
|
212
|
-
onContextMenu: (e) => {
|
|
213
|
-
e.stopPropagation();
|
|
214
|
-
}
|
|
215
|
-
}),
|
|
216
|
-
G.overlayElement,
|
|
217
|
-
G.tipElement,
|
|
218
|
-
G.hintElement
|
|
219
|
-
]
|
|
220
|
-
});
|
|
221
|
-
}));
|
|
222
|
-
S.displayName = "FormulaField";
|
|
223
|
-
export { S as n, _ as r, x as t };
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { t as e } from "./CpTqhDZotYaKGbLl.mjs";
|
|
8
|
-
import { r as t } from "./7gisHVXYgcPxWH8-.mjs";
|
|
9
|
-
import { useInputField as n } from "@sheetxl/react";
|
|
10
|
-
import { DynamicIcon as r, useTextSelectionDrag as i, useTranslator as a } from "@sheetxl/utils-react";
|
|
11
|
-
import { forwardRef as o, memo as s, useEffect as c, useImperativeHandle as l, useMemo as u, useRef as d } from "react";
|
|
12
|
-
import { ExhibitIconButton as f } from "@sheetxl/utils-mui";
|
|
13
|
-
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
14
|
-
import { FormControl as h, InputAdornment as g, TextField as _ } from "@mui/material";
|
|
15
|
-
var v = (e) => {
|
|
16
|
-
e.button === 0 && e.preventDefault();
|
|
17
|
-
}, y = s(o((o, s) => {
|
|
18
|
-
let { disabled: y, className: b, sx: x, defaultInput: S, value: C, formName: w, formOptions: T, onChangeInput: E, onChangeText: D, onDone: O, changeOn: k, onValidate: A, apiRef: j, label: M, helperText: N, showError: P = !0, onChangeError: F, hideAdornment: I, propsInput: L, onKeyDown: R, onFocus: z, ...B } = o, V = a(), H = i(), U = M ?? V("namedInput.label"), W = t(), G = w && W ? W.register(w, T) : null, K = n({
|
|
19
|
-
value: C ?? "",
|
|
20
|
-
onChange: E,
|
|
21
|
-
onChangeText: D,
|
|
22
|
-
onDone: O,
|
|
23
|
-
changeOn: k,
|
|
24
|
-
onValidate: A,
|
|
25
|
-
disabled: y
|
|
26
|
-
});
|
|
27
|
-
l(j, () => K, [K]);
|
|
28
|
-
let q = d(W);
|
|
29
|
-
q.current = W;
|
|
30
|
-
let J = d(F);
|
|
31
|
-
J.current = F;
|
|
32
|
-
let Y = d(null);
|
|
33
|
-
c(() => {
|
|
34
|
-
if (K.error === Y.current || (Y.current = K.error, J.current?.(K.error), !w)) return;
|
|
35
|
-
let e = q.current;
|
|
36
|
-
e && (K.error ? e.setError(w, { message: V(K.error) }) : e.clearErrors(w));
|
|
37
|
-
}, [K.error, w]);
|
|
38
|
-
let X = !!O, Z = u(() => {
|
|
39
|
-
if (!I && X) return m(g, {
|
|
40
|
-
tabIndex: -1,
|
|
41
|
-
onMouseDown: v,
|
|
42
|
-
"aria-hidden": !K.engaged,
|
|
43
|
-
sx: {
|
|
44
|
-
display: "flex",
|
|
45
|
-
position: "relative",
|
|
46
|
-
flex: "0",
|
|
47
|
-
...K.engaged ? null : {
|
|
48
|
-
visibility: "hidden",
|
|
49
|
-
pointerEvents: "none"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
position: "end",
|
|
53
|
-
children: [p(f, {
|
|
54
|
-
dense: !0,
|
|
55
|
-
outlined: !1,
|
|
56
|
-
color: "primary",
|
|
57
|
-
"aria-label": "commit-input",
|
|
58
|
-
icon: p(r, { iconKey: "CheckSuccess" }),
|
|
59
|
-
propsTooltip: {
|
|
60
|
-
label: V("referenceInput.commit"),
|
|
61
|
-
simple: !0
|
|
62
|
-
},
|
|
63
|
-
disabled: !!K.error,
|
|
64
|
-
tabIndex: -1,
|
|
65
|
-
onMouseDown: v,
|
|
66
|
-
onClick: () => {
|
|
67
|
-
K.commit();
|
|
68
|
-
}
|
|
69
|
-
}), p(f, {
|
|
70
|
-
dense: !0,
|
|
71
|
-
outlined: !1,
|
|
72
|
-
color: "warning",
|
|
73
|
-
"aria-label": "cancel-input",
|
|
74
|
-
icon: p(r, { iconKey: "CloseError" }),
|
|
75
|
-
propsTooltip: {
|
|
76
|
-
label: V("referenceInput.cancel"),
|
|
77
|
-
simple: !0
|
|
78
|
-
},
|
|
79
|
-
tabIndex: -1,
|
|
80
|
-
onMouseDown: v,
|
|
81
|
-
onClick: () => {
|
|
82
|
-
K.cancel();
|
|
83
|
-
}
|
|
84
|
-
})]
|
|
85
|
-
});
|
|
86
|
-
}, [
|
|
87
|
-
I,
|
|
88
|
-
X,
|
|
89
|
-
K.engaged,
|
|
90
|
-
K.commit,
|
|
91
|
-
K.cancel,
|
|
92
|
-
!!K.error
|
|
93
|
-
]);
|
|
94
|
-
return p(h, {
|
|
95
|
-
sx: {
|
|
96
|
-
minWidth: 135,
|
|
97
|
-
width: "100%",
|
|
98
|
-
...x
|
|
99
|
-
},
|
|
100
|
-
size: "small",
|
|
101
|
-
ref: s,
|
|
102
|
-
className: e("sxl-input-field", b),
|
|
103
|
-
...B,
|
|
104
|
-
children: p(_, {
|
|
105
|
-
label: U,
|
|
106
|
-
placeholder: S,
|
|
107
|
-
disabled: y,
|
|
108
|
-
error: !!K.error,
|
|
109
|
-
helperText: K.error && P ? V(K.error) : N === void 0 ? " " : N,
|
|
110
|
-
sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
|
|
111
|
-
slotProps: {
|
|
112
|
-
input: { endAdornment: Z },
|
|
113
|
-
inputLabel: { shrink: !0 },
|
|
114
|
-
htmlInput: {
|
|
115
|
-
spellCheck: !1,
|
|
116
|
-
autoComplete: "off",
|
|
117
|
-
onPointerDown: H.onPointerDown,
|
|
118
|
-
onDragStart: H.onDragStart,
|
|
119
|
-
...L,
|
|
120
|
-
className: e("autoFocus", L?.className),
|
|
121
|
-
name: w,
|
|
122
|
-
readOnly: y,
|
|
123
|
-
sx: {
|
|
124
|
-
paddingTop: (e) => e.spacing(1.25),
|
|
125
|
-
paddingBottom: (e) => e.spacing(.75)
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
value: K.inputProps.value,
|
|
130
|
-
inputRef: (e) => {
|
|
131
|
-
K.inputProps.ref(e), G?.ref && G.ref(e);
|
|
132
|
-
},
|
|
133
|
-
onChange: (e) => {
|
|
134
|
-
K.inputProps.onChange(e), G?.onChange(e);
|
|
135
|
-
},
|
|
136
|
-
onKeyDown: (e) => {
|
|
137
|
-
K.inputProps.onKeyDown(e), e.defaultPrevented || R?.(e);
|
|
138
|
-
},
|
|
139
|
-
onFocus: (e) => {
|
|
140
|
-
K.inputProps.onFocus(e), z?.(e);
|
|
141
|
-
},
|
|
142
|
-
onBlur: (e) => {
|
|
143
|
-
K.inputProps.onBlur(e), G?.onBlur(e);
|
|
144
|
-
},
|
|
145
|
-
onContextMenu: (e) => {
|
|
146
|
-
e.stopPropagation();
|
|
147
|
-
}
|
|
148
|
-
})
|
|
149
|
-
});
|
|
150
|
-
}));
|
|
151
|
-
y.displayName = "InputField";
|
|
152
|
-
export { y as t };
|