@sheetxl/studio-mui 0.8.0-beta.1 → 0.8.0-beta.11
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/0BWO0bLZ8Vm_dKd2.mjs +582 -0
- package/browser/esm/BAbq4-I5f5oUiNaF.mjs +141 -0
- package/browser/esm/BED6h6YAwCf1HEQJ.mjs +161 -0
- package/browser/esm/{DMLXV4EKl1NCp_jk.mjs → BXhNFzyEGokTF-BL.mjs} +2 -2
- package/browser/esm/BYE9gCDWKyx6mnVs.mjs +381 -0
- package/browser/esm/BjvD_4t2KGsZP5V8.mjs +71 -0
- package/browser/esm/{zWTZ8BvT4hjgC2ua.mjs → BknfGJouygmnpFIU.mjs} +13 -12
- package/browser/esm/{DNDrQKMTzKzNMjl-.mjs → BlE_8o8tO2AgAlaj.mjs} +19 -17
- package/browser/esm/BokqKEpU6TFgfRs6.mjs +252 -0
- package/browser/esm/{BoLxSRdEWt-Yg2RI.mjs → Brsh5yscJ_4uKFXp.mjs} +130 -103
- package/browser/esm/Bujtz_Guj88d03vI.mjs +831 -0
- package/browser/esm/Buqcl7J75MJrhpVE.mjs +1379 -0
- package/browser/esm/BvhYPwX3GrRaO9CM.mjs +319 -0
- package/browser/esm/C0wlMAIn9iREPK6w.mjs +87 -0
- package/browser/esm/C8JU4KsMasmLvojI.mjs +103 -0
- package/browser/esm/C9pIZVACtl9unFOp.mjs +77 -0
- package/browser/esm/CBD4RiRKbbZtSXV-.mjs +318 -0
- package/browser/esm/CEtXsBzEjEKk9GOj.mjs +117 -0
- package/browser/esm/{BZBJG2tDdD3-VujP.mjs → COlZu93LRwuBvjE-.mjs} +195 -174
- package/browser/esm/{Cj2pgCNqBCGl4rTX.mjs → CTjqDD-swFMZzI-Y.mjs} +587 -556
- package/browser/esm/CWkOgdL7mOKiTR62.mjs +975 -0
- package/browser/esm/ChSVxkPTIjgcC8PL.mjs +412 -0
- package/browser/esm/{Cd6n1XUgF0VItpkH.mjs → ClBvNPeNCAhuVWrG.mjs} +7 -5
- package/browser/esm/CyLn6zOOp_biA3xU.mjs +335 -0
- package/browser/esm/CynTY0oNtyJnoaBq.mjs +14 -0
- package/browser/esm/D3rRUK4dIM5gUSmj.mjs +256 -0
- package/browser/esm/D9ISy7VkaRRFJl46.mjs +515 -0
- package/browser/esm/DDc6rDuU9JAo1DH_.mjs +225 -0
- package/browser/esm/DDczwkXhz_MHub4z.mjs +197 -0
- package/browser/esm/{3ydDykDMtDYbfVVn.mjs → DEv4pIEgYr5C7etm.mjs} +178 -129
- package/browser/esm/DG21x7RKDpge6zAE.mjs +31 -0
- package/browser/esm/DJOOed_OtB-XT7f3.mjs +437 -0
- package/browser/esm/{Bz5LiUe3SZ8g42Ia.mjs → DKtJxrpN0axtuQ0l.mjs} +1 -1
- package/browser/esm/DRSCS6aLiYmPjUz1.mjs +1543 -0
- package/browser/esm/{ChwS_ougBsogOEsP.mjs → DTpRkgsTm_zYnWfW.mjs} +46 -47
- package/browser/esm/DV6i9RQZfJiKtEaJ.mjs +2552 -0
- package/browser/esm/DdcZrjMLWVukWcU5.mjs +7473 -0
- package/browser/esm/Di3BUxA0SqFWWgeg.mjs +94 -0
- package/browser/esm/DnGaP5F7mLwCGUYG.mjs +408 -0
- package/browser/esm/DpD4fg2WcyiKX_2K.mjs +414 -0
- package/browser/esm/{BUGepznywvV0tUjW.mjs → Ds3XRkne7HxcXD8J.mjs} +2 -2
- package/browser/esm/DsoNMWDwHZP8UXQd.mjs +293 -0
- package/browser/esm/G0Inqm6Eqw47dMpa.mjs +212 -0
- package/browser/esm/HViD4Wfoi0mmqk9w.mjs +13 -0
- package/browser/esm/LZoYSQAYV2wksnDv.mjs +386 -0
- package/browser/esm/{rU8xNPVQtDSnujM-.mjs → QgaAIDUMmBQBsXP9.mjs} +3 -3
- package/browser/esm/YThnrg3PadGs7B4j.mjs +627 -0
- package/browser/esm/index.mjs +1208 -67
- package/browser/esm/ttjcNHcFn8O6hfnd.mjs +1288 -0
- package/browser/esm/w_JrR69vEpvoyeMy.mjs +68 -0
- package/browser/esm/{CVfuCNRpODUw04IH.mjs → xFqkfN8QMCxvsetB.mjs} +1 -1
- package/browser/esm/zqilJefihVd7At2T.mjs +517 -0
- package/licenses/dependencies.txt +96 -349
- package/node/esm/1bf4gn-2vld4BZ9u.mjs +294 -0
- package/node/esm/{BhqI3pQFkV8K_612.mjs → 3WghtBXAvCDwcVrq.mjs} +1 -1
- package/node/esm/4HmLH0bPVJCZLgik.mjs +116 -0
- package/node/esm/{DM7K7-284z-PczVz.mjs → B0bdb_6p7fQI_ivo.mjs} +28 -28
- package/node/esm/BIMkjQUwG4Ih-6Sh.mjs +142 -0
- package/node/esm/BNg4QQY0WAPLE0q7.mjs +141 -0
- package/node/esm/BPzcW4BejRqso338.mjs +72 -0
- package/node/esm/BR45ogAR-hY2bE60.mjs +318 -0
- package/node/esm/BlN7G0DVC24zauig.mjs +197 -0
- package/node/esm/Bph-sR3l6AYWeuxK.mjs +256 -0
- package/node/esm/CPq-MIdEnc-53JpF.mjs +319 -0
- package/node/esm/CSAnTp5rwId0DUb8.mjs +380 -0
- package/node/esm/CWcv7UVXF8IUB0PC.mjs +1379 -0
- package/node/esm/{BA7VzUQ2sKRLTZ5c.mjs → CYIoK22I6Yvv12_x.mjs} +20 -20
- package/node/esm/CZyA9uD4SkTvqp_G.mjs +1283 -0
- package/node/esm/{CHi3AuWEwEPOg9IZ.mjs → CjC6s3RUJQNCF7mP.mjs} +1 -1
- package/node/esm/{DXZrzWee8K5FPOW1.mjs → CuMePia6i_8yfJ6S.mjs} +9 -9
- package/node/esm/CvRbu8JPxFarsSR-.mjs +412 -0
- package/node/esm/CyafafEgfmjLqE5O.mjs +521 -0
- package/node/esm/D-xqQ5qOSd6WrzwJ.mjs +94 -0
- package/node/esm/DLqBHdFp6wvm6EGs.mjs +212 -0
- package/node/esm/{BwZcoHDBmLPIVOT5.mjs → DMXLxp3T0E0SRTQc.mjs} +69 -70
- package/node/esm/{CUMKTjYv6VTkcWYi.mjs → DWqvf4H5F2wMnZ0L.mjs} +32 -30
- package/node/esm/DatM6eEYPpAtIMy-.mjs +405 -0
- package/node/esm/Db3dbaYLKUO66T9s.mjs +1689 -0
- package/node/esm/DdEzhVqYTrGODXrz.mjs +68 -0
- package/node/esm/DeZJlLk8WJ3BLtLs.mjs +975 -0
- package/node/esm/DfCuL8AUxMFoEG2s.mjs +519 -0
- package/node/esm/Do-zCKziWhoG5eAv.mjs +77 -0
- package/node/esm/DpJ2gmZJioCyq8La.mjs +632 -0
- package/node/esm/{Qpuqm6xBr_da38Ht.mjs → XEDcegsv5AGKBfu2.mjs} +165 -137
- package/node/esm/index.mjs +10124 -6751
- package/node/esm/yCUxQuqVuC4DHKPx.mjs +385 -0
- package/node/esm/zITjZ7R4raDqhP-n.mjs +515 -0
- 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 +447 -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 +403 -40
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +21 -5
- 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/anomalies/AnomaliesPlugin.d.ts +5 -0
- package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
- package/types/src/anomalies/index.d.ts +3 -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 +29 -0
- package/types/src/border/index.d.ts +1 -0
- 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/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/WorkbookStatisticsDialog.d.ts +1 -1
- 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 +101 -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 +33 -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 -4
- 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/WorkbookProtectionPanel.d.ts +34 -15
- package/types/src/protection/WorkbookProtectionTab.d.ts +22 -0
- package/types/src/protection/WorksheetProtectionPanel.d.ts +35 -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 +16 -2
- package/types/src/workbook/FillMenu.d.ts +21 -0
- 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 +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,26 +1,36 @@
|
|
|
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}.
|
|
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}._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}._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}._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}}._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.11
|
|
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 {
|
|
12
|
-
import {
|
|
13
|
-
import { a as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
8
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, W as S, X as C, Y as w, Z as T, _ as E, at as D, b as O, c as k, ct as A, d as j, et as M, f as N, g as P, h as F, i as ee, it as te, j as I, k as ne, m as re, n as L, nt as ie, ot as ae, p as oe, q as se, r as ce, rt as le, s as ue, st as de, tt as fe, u as pe, v as me, w as he, x as ge, y as _e, z as ve } from "./DdcZrjMLWVukWcU5.mjs";
|
|
9
|
+
import { c as ye, i as be, l as xe, n as Se, o as Ce, r as we, s as Te, t as Ee } from "./Bujtz_Guj88d03vI.mjs";
|
|
10
|
+
import { t as De } from "./C8JU4KsMasmLvojI.mjs";
|
|
11
|
+
import { a as Oe } from "./CyLn6zOOp_biA3xU.mjs";
|
|
12
|
+
import { t as R } from "./ClBvNPeNCAhuVWrG.mjs";
|
|
13
|
+
import { a as ke, c as Ae, n as je, o as Me, s as Ne, t as Pe } from "./0BWO0bLZ8Vm_dKd2.mjs";
|
|
14
|
+
import { n as Fe, r as Ie, t as Le } from "./DJOOed_OtB-XT7f3.mjs";
|
|
15
|
+
import { t as Re } from "./HViD4Wfoi0mmqk9w.mjs";
|
|
16
|
+
import { n as ze, t as Be } from "./DDc6rDuU9JAo1DH_.mjs";
|
|
17
|
+
import { t as Ve } from "./BED6h6YAwCf1HEQJ.mjs";
|
|
18
|
+
import { n as He, r as Ue, t as We } from "./BokqKEpU6TFgfRs6.mjs";
|
|
19
|
+
import { a as Ge, i as Ke, n as qe, o as Je, r as Ye, t as Xe } from "./COlZu93LRwuBvjE-.mjs";
|
|
20
|
+
import { t as Ze } from "./ChSVxkPTIjgcC8PL.mjs";
|
|
21
|
+
import { t as Qe } from "./C0wlMAIn9iREPK6w.mjs";
|
|
22
|
+
import { Color as $e, IFill as z, LicenseManager as et, LicenseManager as tt } from "@sheetxl/sdk";
|
|
23
|
+
import { DefaultTaskPaneRegistry as nt, ThemeStateDefaults as rt, ThemeStateKey as it, WorkbookIO as at, WorkbookIO as ot, setPrintExamplesOnLoad as st, useInputField as ct, useModelListener as lt, useRangeListener as ut, useWindowChrome as dt, useWorkbook as ft, useWorkbookFormat as pt, useWorkbookName as mt } from "@sheetxl/react";
|
|
24
|
+
import { CommandButtonType as ht, DynamicIcon as B, createThemeScopeClass as gt, lazyComponent as _t, useCallbackRef as V, useCommandButtonEntry as vt, useCommandButtonRegistry as yt, useCommands as bt, useFloatStack as xt, useLocationSearch as St, usePersistentState as Ct, useResolvedThemeMode as wt, useTextSelectionDrag as Tt, useTranslator as H } from "@sheetxl/utils-react";
|
|
25
|
+
import { Suspense as Et, createElement as Dt, forwardRef as Ot, memo as U, useCallback as W, useEffect as G, useId as kt, useImperativeHandle as At, useLayoutEffect as jt, useMemo as K, useRef as q, useState as J } from "react";
|
|
26
|
+
import { CommandButton as Y, CommandGroup as Mt, CommandPopupButton as X, ExhibitDivider as Nt, ExhibitIconButton as Pt, ExhibitPopupIconButton as Ft, ExhibitTooltip as It, LabelIcon as Lt, LazyLoadErrorPanel as Rt, SimpleTooltip as zt, defaultCreatePopupPanel as Bt, renderMembers as Vt } from "@sheetxl/utils-mui";
|
|
27
|
+
import { Fragment as Ht, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
28
|
+
import { Box as $, FormControl as Ut, InputAdornment as Wt, InputLabel as Gt, MenuItem as Kt, Paper as qt, Select as Jt, TextField as Yt, Typography as Xt, useMediaQuery as Zt, useTheme as Qt } from "@mui/material";
|
|
29
|
+
import { defineLazyModule as $t } from "@sheetxl/utils";
|
|
30
|
+
var en = (e) => {
|
|
21
31
|
e.button === 0 && e.preventDefault();
|
|
22
|
-
},
|
|
23
|
-
let { disabled: n, className: r, sx: i, defaultInput: a, value: o, formName: s, formOptions: c, onChangeInput: l, onChangeText: u, onDone: d, changeOn: f, onValidate: p, apiRef: m, label: h,
|
|
32
|
+
}, tn = U(Ot((e, t) => {
|
|
33
|
+
let { disabled: n, className: r, sx: i, defaultInput: a, value: o, formName: s, formOptions: c, onChangeInput: l, onChangeText: u, onDone: d, changeOn: f, onValidate: p, apiRef: m, label: h, helperText: g, showError: _ = !0, onChangeError: v, hideAdornment: y, propsInput: b, onKeyDown: x, onFocus: S, ...C } = e, w = H(), T = Tt(), E = h ?? w("namedInput.label"), D = Re(), O = s && D ? D.register(s, c) : null, k = ct({
|
|
24
34
|
value: o ?? "",
|
|
25
35
|
onChange: l,
|
|
26
36
|
onChangeText: u,
|
|
@@ -29,73 +39,74 @@ var Q = (e) => {
|
|
|
29
39
|
onValidate: p,
|
|
30
40
|
disabled: n
|
|
31
41
|
});
|
|
32
|
-
|
|
33
|
-
let
|
|
34
|
-
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
At(m, () => k, [k]);
|
|
43
|
+
let A = q(D);
|
|
44
|
+
A.current = D;
|
|
45
|
+
let j = q(v);
|
|
46
|
+
j.current = v;
|
|
47
|
+
let M = q(null);
|
|
48
|
+
G(() => {
|
|
49
|
+
if (k.error === M.current || (M.current = k.error, j.current?.(k.error), !s)) return;
|
|
50
|
+
let e = A.current;
|
|
51
|
+
e && (k.error ? e.setError(s, { message: w(k.error) }) : e.clearErrors(s));
|
|
52
|
+
}, [k.error, s]);
|
|
53
|
+
let N = f === "done", P = k.engaged && k.dirty, F = K(() => {
|
|
54
|
+
if (!y && N) return Q(Wt, {
|
|
44
55
|
tabIndex: -1,
|
|
45
|
-
onMouseDown:
|
|
46
|
-
"aria-hidden": !
|
|
56
|
+
onMouseDown: en,
|
|
57
|
+
"aria-hidden": !P,
|
|
47
58
|
sx: {
|
|
48
59
|
display: "flex",
|
|
49
60
|
position: "relative",
|
|
50
61
|
flex: "0",
|
|
51
|
-
...
|
|
62
|
+
...P ? null : {
|
|
52
63
|
visibility: "hidden",
|
|
53
64
|
pointerEvents: "none"
|
|
54
65
|
}
|
|
55
66
|
},
|
|
56
67
|
position: "end",
|
|
57
|
-
children: [Z(
|
|
68
|
+
children: [Z(Pt, {
|
|
58
69
|
dense: !0,
|
|
59
70
|
outlined: !1,
|
|
60
71
|
color: "primary",
|
|
61
72
|
"aria-label": "commit-input",
|
|
62
|
-
icon: Z(
|
|
73
|
+
icon: Z(B, { iconKey: "CheckSuccess" }),
|
|
63
74
|
propsTooltip: {
|
|
64
|
-
label:
|
|
75
|
+
label: w("referenceInput.commit"),
|
|
65
76
|
simple: !0
|
|
66
77
|
},
|
|
67
|
-
disabled: !!
|
|
78
|
+
disabled: !!k.error,
|
|
68
79
|
tabIndex: -1,
|
|
69
|
-
onMouseDown:
|
|
80
|
+
onMouseDown: en,
|
|
70
81
|
onClick: () => {
|
|
71
|
-
|
|
82
|
+
k.commit();
|
|
72
83
|
}
|
|
73
|
-
}), Z(
|
|
84
|
+
}), Z(Pt, {
|
|
74
85
|
dense: !0,
|
|
75
86
|
outlined: !1,
|
|
76
87
|
color: "warning",
|
|
77
88
|
"aria-label": "cancel-input",
|
|
78
|
-
icon: Z(
|
|
89
|
+
icon: Z(B, { iconKey: "CloseError" }),
|
|
79
90
|
propsTooltip: {
|
|
80
|
-
label:
|
|
91
|
+
label: w("referenceInput.cancel"),
|
|
81
92
|
simple: !0
|
|
82
93
|
},
|
|
83
94
|
tabIndex: -1,
|
|
84
|
-
onMouseDown:
|
|
95
|
+
onMouseDown: en,
|
|
85
96
|
onClick: () => {
|
|
86
|
-
|
|
97
|
+
k.cancel();
|
|
87
98
|
}
|
|
88
99
|
})]
|
|
89
100
|
});
|
|
90
101
|
}, [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
!!
|
|
102
|
+
y,
|
|
103
|
+
N,
|
|
104
|
+
P,
|
|
105
|
+
k.commit,
|
|
106
|
+
k.cancel,
|
|
107
|
+
!!k.error
|
|
97
108
|
]);
|
|
98
|
-
return Z(
|
|
109
|
+
return Z(Ut, {
|
|
99
110
|
sx: {
|
|
100
111
|
minWidth: 135,
|
|
101
112
|
width: "100%",
|
|
@@ -103,23 +114,26 @@ var Q = (e) => {
|
|
|
103
114
|
},
|
|
104
115
|
size: "small",
|
|
105
116
|
ref: t,
|
|
106
|
-
className:
|
|
107
|
-
...
|
|
108
|
-
children: Z(
|
|
109
|
-
label:
|
|
117
|
+
className: R("sxl-input-field", r),
|
|
118
|
+
...C,
|
|
119
|
+
children: Z(Yt, {
|
|
120
|
+
label: E,
|
|
110
121
|
placeholder: a,
|
|
111
122
|
disabled: n,
|
|
112
|
-
error: !!
|
|
113
|
-
helperText:
|
|
123
|
+
error: !!k.error,
|
|
124
|
+
helperText: k.error && _ ? w(k.error) : g === void 0 ? " " : g,
|
|
114
125
|
sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
|
|
115
126
|
slotProps: {
|
|
116
|
-
input: { endAdornment:
|
|
127
|
+
input: { endAdornment: F },
|
|
117
128
|
inputLabel: { shrink: !0 },
|
|
118
129
|
htmlInput: {
|
|
119
|
-
className: "autoFocus",
|
|
120
|
-
name: s,
|
|
121
130
|
spellCheck: !1,
|
|
122
131
|
autoComplete: "off",
|
|
132
|
+
onPointerDown: T.onPointerDown,
|
|
133
|
+
onDragStart: T.onDragStart,
|
|
134
|
+
...b,
|
|
135
|
+
className: R("autoFocus", b?.className),
|
|
136
|
+
name: s,
|
|
123
137
|
readOnly: n,
|
|
124
138
|
sx: {
|
|
125
139
|
paddingTop: (e) => e.spacing(1.25),
|
|
@@ -127,21 +141,21 @@ var Q = (e) => {
|
|
|
127
141
|
}
|
|
128
142
|
}
|
|
129
143
|
},
|
|
130
|
-
value:
|
|
144
|
+
value: k.inputProps.value,
|
|
131
145
|
inputRef: (e) => {
|
|
132
|
-
|
|
146
|
+
k.inputProps.ref(e), O?.ref && O.ref(e);
|
|
133
147
|
},
|
|
134
148
|
onChange: (e) => {
|
|
135
|
-
|
|
149
|
+
k.inputProps.onChange(e), O?.onChange(e);
|
|
136
150
|
},
|
|
137
151
|
onKeyDown: (e) => {
|
|
138
|
-
|
|
152
|
+
k.inputProps.onKeyDown(e), e.defaultPrevented || x?.(e);
|
|
139
153
|
},
|
|
140
154
|
onFocus: (e) => {
|
|
141
|
-
|
|
155
|
+
k.inputProps.onFocus(e), S?.(e);
|
|
142
156
|
},
|
|
143
157
|
onBlur: (e) => {
|
|
144
|
-
|
|
158
|
+
k.inputProps.onBlur(e), O?.onBlur(e);
|
|
145
159
|
},
|
|
146
160
|
onContextMenu: (e) => {
|
|
147
161
|
e.stopPropagation();
|
|
@@ -149,5 +163,1132 @@ var Q = (e) => {
|
|
|
149
163
|
})
|
|
150
164
|
});
|
|
151
165
|
}));
|
|
152
|
-
|
|
153
|
-
|
|
166
|
+
tn.displayName = "InputField";
|
|
167
|
+
var nn = U(Ot((e, t) => {
|
|
168
|
+
let { groupKey: n = "workbook", disabled: r, ...i } = e, [a, o] = J([]), s = ot.canWrite(), c = ot.canRead();
|
|
169
|
+
G(() => {
|
|
170
|
+
let e = !0;
|
|
171
|
+
return ot.getWriteFormats().then((t) => {
|
|
172
|
+
e && o(t);
|
|
173
|
+
}), () => {
|
|
174
|
+
e = !1;
|
|
175
|
+
};
|
|
176
|
+
}, []);
|
|
177
|
+
let l = ft(), u = pt(l), d = K(() => {
|
|
178
|
+
if (a.length === 0) return null;
|
|
179
|
+
let e = u?.toLowerCase();
|
|
180
|
+
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];
|
|
181
|
+
}, [a, u]), [f] = bt(d ? `saveWorkbookAs${d.key}` : []), p = yt(), m = p.resolveMembers("newWorkbookOptions") ?? ["newWorkbook"], h = V((e) => {
|
|
182
|
+
let t = {
|
|
183
|
+
variant: ht.Menuitem,
|
|
184
|
+
groupKey: n,
|
|
185
|
+
disabled: r
|
|
186
|
+
}, i = Q(Ht, { children: [
|
|
187
|
+
m.length > 1 ? Z(X, {
|
|
188
|
+
...t,
|
|
189
|
+
quickCommand: "newWorkbook",
|
|
190
|
+
createPopupPanel: (e) => {
|
|
191
|
+
let t = Vt(m, {
|
|
192
|
+
variant: ht.Menuitem,
|
|
193
|
+
dividerOrientation: "horizontal",
|
|
194
|
+
groupKey: "newWorkbookOptions",
|
|
195
|
+
registry: p,
|
|
196
|
+
propsCommandButton: { disabled: r },
|
|
197
|
+
propsCommandPopup: { disabled: r }
|
|
198
|
+
});
|
|
199
|
+
return Bt({
|
|
200
|
+
...e,
|
|
201
|
+
children: t,
|
|
202
|
+
onClick: () => {
|
|
203
|
+
e.closeFloatAll?.();
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}) : Z(Y, {
|
|
208
|
+
...t,
|
|
209
|
+
commandKey: "newWorkbook"
|
|
210
|
+
}),
|
|
211
|
+
Z(Nt, { orientation: "horizontal" }),
|
|
212
|
+
c ? Z(X, {
|
|
213
|
+
...t,
|
|
214
|
+
quickCommand: "openWorkbook",
|
|
215
|
+
createPopupPanel: (e) => {
|
|
216
|
+
let n = {
|
|
217
|
+
...t,
|
|
218
|
+
groupKey: "openWorkbookOptions"
|
|
219
|
+
}, r = [Dt(Y, {
|
|
220
|
+
...n,
|
|
221
|
+
key: "device",
|
|
222
|
+
commandKey: "openWorkbook"
|
|
223
|
+
}), Dt(Y, {
|
|
224
|
+
...n,
|
|
225
|
+
key: "web",
|
|
226
|
+
commandKey: "openWorkbookFromUrl"
|
|
227
|
+
})];
|
|
228
|
+
return Bt({
|
|
229
|
+
...e,
|
|
230
|
+
children: r,
|
|
231
|
+
onClick: () => {
|
|
232
|
+
e.closeFloatAll?.();
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}) : null,
|
|
237
|
+
s && a.length > 0 ? Z(X, {
|
|
238
|
+
...t,
|
|
239
|
+
quickCommand: "saveWorkbook",
|
|
240
|
+
createPopupPanel: (e) => {
|
|
241
|
+
let n = {
|
|
242
|
+
...t,
|
|
243
|
+
groupKey: "saveWorkbookOptions"
|
|
244
|
+
}, r = [Dt(Y, {
|
|
245
|
+
...n,
|
|
246
|
+
key: "saveWorkbookAs",
|
|
247
|
+
commandKey: "saveWorkbookAs",
|
|
248
|
+
label: f?.getLabel("saveWorkbookOptions"),
|
|
249
|
+
icon: f?.getIcon("saveWorkbookOptions")
|
|
250
|
+
})], i = a.filter((e) => !e.advanced && e.key !== d?.key);
|
|
251
|
+
return i.length > 0 && r.push(Z(Nt, { orientation: "horizontal" }, "divider")), i.forEach((e) => {
|
|
252
|
+
let t = e.key, i = `saveWorkbookAs${t}`;
|
|
253
|
+
r.push(Dt(Y, {
|
|
254
|
+
...n,
|
|
255
|
+
key: t,
|
|
256
|
+
commandKey: i
|
|
257
|
+
}));
|
|
258
|
+
}), Bt({
|
|
259
|
+
...e,
|
|
260
|
+
children: r,
|
|
261
|
+
onClick: () => {
|
|
262
|
+
e.closeFloatAll?.();
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
}) : null
|
|
267
|
+
] });
|
|
268
|
+
return Bt({
|
|
269
|
+
...e,
|
|
270
|
+
children: i,
|
|
271
|
+
onClick: (t) => {
|
|
272
|
+
t.isDefaultPrevented() || e.closeFloatAll?.();
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
}, [
|
|
276
|
+
r,
|
|
277
|
+
n,
|
|
278
|
+
a,
|
|
279
|
+
d,
|
|
280
|
+
f,
|
|
281
|
+
m,
|
|
282
|
+
p
|
|
283
|
+
]), g = vt("fileOptions"), _ = g?.getLabel?.() ?? "File", v = g?.getDescription?.() ?? "Options for saving and loading the workbook.";
|
|
284
|
+
return Z(X, {
|
|
285
|
+
disabled: r,
|
|
286
|
+
groupKey: n,
|
|
287
|
+
label: _,
|
|
288
|
+
tooltip: v,
|
|
289
|
+
sx: {
|
|
290
|
+
paddingBottom: "0px",
|
|
291
|
+
"& button": {
|
|
292
|
+
paddingTop: "0px",
|
|
293
|
+
paddingBottom: "0px",
|
|
294
|
+
height: (e) => `calc(1.25rem + ${e.spacing(2)}px)`
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
...i,
|
|
298
|
+
createPopupPanel: h,
|
|
299
|
+
icon: Z(Lt, {
|
|
300
|
+
className: "label",
|
|
301
|
+
icon: null,
|
|
302
|
+
label: _
|
|
303
|
+
})
|
|
304
|
+
});
|
|
305
|
+
}));
|
|
306
|
+
nn.displayName = "FileCommandButton";
|
|
307
|
+
var rn = U(Ot((e, t) => {
|
|
308
|
+
let { groupKey: n, disabled: r, ...i } = e, [a] = bt(["themeMode"]), o = vt("appearanceOptions"), s = V((e) => {
|
|
309
|
+
let t = {
|
|
310
|
+
variant: ht.Menuitem,
|
|
311
|
+
groupKey: "appearanceOptions",
|
|
312
|
+
disabled: r
|
|
313
|
+
}, n = Q(Ht, { children: [
|
|
314
|
+
Z(Y, {
|
|
315
|
+
...t,
|
|
316
|
+
commandKey: "themeMode"
|
|
317
|
+
}),
|
|
318
|
+
Z(Y, {
|
|
319
|
+
...t,
|
|
320
|
+
commandKey: "defaultThemeMode"
|
|
321
|
+
}),
|
|
322
|
+
Z(Nt, { orientation: "horizontal" }),
|
|
323
|
+
Z(Y, {
|
|
324
|
+
...t,
|
|
325
|
+
commandKey: "enableDarkGrid"
|
|
326
|
+
}),
|
|
327
|
+
Z(Y, {
|
|
328
|
+
...t,
|
|
329
|
+
commandKey: "enableDarkImages"
|
|
330
|
+
})
|
|
331
|
+
] });
|
|
332
|
+
return Bt({
|
|
333
|
+
...e,
|
|
334
|
+
children: n
|
|
335
|
+
});
|
|
336
|
+
}, [
|
|
337
|
+
r,
|
|
338
|
+
a,
|
|
339
|
+
n
|
|
340
|
+
]), c = a?.getState(), l = Zt("(prefers-color-scheme: dark)"), u = c === "dark" || c === null && l, d = a?.getState() !== null;
|
|
341
|
+
return Z(X, {
|
|
342
|
+
ref: t,
|
|
343
|
+
quickCommand: "themeMode",
|
|
344
|
+
createPopupPanel: s,
|
|
345
|
+
label: o?.getLabel?.(),
|
|
346
|
+
tooltip: o?.getDescription?.(),
|
|
347
|
+
onQuickClick: () => {
|
|
348
|
+
a?.execute(u ? "light" : "dark");
|
|
349
|
+
},
|
|
350
|
+
selected: d,
|
|
351
|
+
...i
|
|
352
|
+
});
|
|
353
|
+
})), an = U(Ot((e, t) => {
|
|
354
|
+
let { ...n } = e;
|
|
355
|
+
return Z(Mt, {
|
|
356
|
+
ref: t,
|
|
357
|
+
groupKey: "insertFunctionSumOptions",
|
|
358
|
+
...n
|
|
359
|
+
});
|
|
360
|
+
}));
|
|
361
|
+
function on(e, t, n) {
|
|
362
|
+
return e === z.BuiltInSheetPattern.Solid ? {
|
|
363
|
+
foreground: n,
|
|
364
|
+
background: t
|
|
365
|
+
} : {
|
|
366
|
+
foreground: t,
|
|
367
|
+
background: n
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
an.displayName = "InsertFunctionSumCommandPopupButton";
|
|
371
|
+
var sn = U((e) => {
|
|
372
|
+
let { patternType: t, foreground: n, background: r, createCell: i, darkMode: a = !1, className: o, style: s, ...c } = e, l = K(() => {
|
|
373
|
+
let e = on(t, n, r);
|
|
374
|
+
return i({ style: { fill: {
|
|
375
|
+
type: z.Type.Pattern,
|
|
376
|
+
patternType: t,
|
|
377
|
+
foreground: e.foreground ?? void 0,
|
|
378
|
+
background: e.background ?? void 0
|
|
379
|
+
} } })?.getStyle().getFill().toCSS(a) ?? {};
|
|
380
|
+
}, [
|
|
381
|
+
t,
|
|
382
|
+
n,
|
|
383
|
+
r,
|
|
384
|
+
i,
|
|
385
|
+
a
|
|
386
|
+
]);
|
|
387
|
+
return Z("div", {
|
|
388
|
+
className: R("sxl-pattern-swatch", o),
|
|
389
|
+
style: {
|
|
390
|
+
width: "100%",
|
|
391
|
+
height: "100%",
|
|
392
|
+
...l,
|
|
393
|
+
...s
|
|
394
|
+
},
|
|
395
|
+
...c
|
|
396
|
+
});
|
|
397
|
+
});
|
|
398
|
+
sn.displayName = "PatternSwatch";
|
|
399
|
+
var cn = Object.freeze([
|
|
400
|
+
z.BuiltInSheetPattern.Solid,
|
|
401
|
+
z.BuiltInSheetPattern.DarkGray,
|
|
402
|
+
z.BuiltInSheetPattern.MediumGray,
|
|
403
|
+
z.BuiltInSheetPattern.LightGray,
|
|
404
|
+
z.BuiltInSheetPattern.Gray125,
|
|
405
|
+
z.BuiltInSheetPattern.Gray0625,
|
|
406
|
+
z.BuiltInSheetPattern.DarkHorizontal,
|
|
407
|
+
z.BuiltInSheetPattern.DarkVertical,
|
|
408
|
+
z.BuiltInSheetPattern.DarkDown,
|
|
409
|
+
z.BuiltInSheetPattern.DarkUp,
|
|
410
|
+
z.BuiltInSheetPattern.DarkGrid,
|
|
411
|
+
z.BuiltInSheetPattern.DarkTrellis,
|
|
412
|
+
z.BuiltInSheetPattern.LightHorizontal,
|
|
413
|
+
z.BuiltInSheetPattern.LightVertical,
|
|
414
|
+
z.BuiltInSheetPattern.LightDown,
|
|
415
|
+
z.BuiltInSheetPattern.LightUp,
|
|
416
|
+
z.BuiltInSheetPattern.LightGrid,
|
|
417
|
+
z.BuiltInSheetPattern.LightTrellis
|
|
418
|
+
]);
|
|
419
|
+
function ln(e, t) {
|
|
420
|
+
switch (t) {
|
|
421
|
+
case z.BuiltInSheetPattern.None: return e("fill.pattern.none");
|
|
422
|
+
case z.BuiltInSheetPattern.Solid: return e("fill.pattern.solid");
|
|
423
|
+
case z.BuiltInSheetPattern.Gray0625: return e("fill.pattern.gray0625");
|
|
424
|
+
case z.BuiltInSheetPattern.Gray125: return e("fill.pattern.gray125");
|
|
425
|
+
case z.BuiltInSheetPattern.LightGray: return e("fill.pattern.lightGray");
|
|
426
|
+
case z.BuiltInSheetPattern.MediumGray: return e("fill.pattern.mediumGray");
|
|
427
|
+
case z.BuiltInSheetPattern.DarkGray: return e("fill.pattern.darkGray");
|
|
428
|
+
case z.BuiltInSheetPattern.LightHorizontal: return e("fill.pattern.lightHorizontal");
|
|
429
|
+
case z.BuiltInSheetPattern.LightVertical: return e("fill.pattern.lightVertical");
|
|
430
|
+
case z.BuiltInSheetPattern.LightDown: return e("fill.pattern.lightDown");
|
|
431
|
+
case z.BuiltInSheetPattern.LightUp: return e("fill.pattern.lightUp");
|
|
432
|
+
case z.BuiltInSheetPattern.LightGrid: return e("fill.pattern.lightGrid");
|
|
433
|
+
case z.BuiltInSheetPattern.LightTrellis: return e("fill.pattern.lightTrellis");
|
|
434
|
+
case z.BuiltInSheetPattern.DarkHorizontal: return e("fill.pattern.darkHorizontal");
|
|
435
|
+
case z.BuiltInSheetPattern.DarkVertical: return e("fill.pattern.darkVertical");
|
|
436
|
+
case z.BuiltInSheetPattern.DarkDown: return e("fill.pattern.darkDown");
|
|
437
|
+
case z.BuiltInSheetPattern.DarkUp: return e("fill.pattern.darkUp");
|
|
438
|
+
case z.BuiltInSheetPattern.DarkGrid: return e("fill.pattern.darkGrid");
|
|
439
|
+
case z.BuiltInSheetPattern.DarkTrellis: return e("fill.pattern.darkTrellis");
|
|
440
|
+
default: return t;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
var un = U((e) => {
|
|
444
|
+
let { selectedPattern: t, foreground: n, background: r, onSelectPattern: i, createCell: a, darkMode: o = !1, disabled: s, ...c } = e, l = H(), u = V(i ?? ((e) => {}), [i]), d = W((e) => {
|
|
445
|
+
let { closeFloat: i } = e;
|
|
446
|
+
return Z($, {
|
|
447
|
+
sx: {
|
|
448
|
+
display: "grid",
|
|
449
|
+
gridTemplateColumns: "repeat(6, 34px)",
|
|
450
|
+
gap: "4px",
|
|
451
|
+
padding: "8px"
|
|
452
|
+
},
|
|
453
|
+
children: cn.map((e) => Z(It, {
|
|
454
|
+
label: ln(l, e),
|
|
455
|
+
children: Z($, {
|
|
456
|
+
role: "button",
|
|
457
|
+
tabIndex: 0,
|
|
458
|
+
"aria-label": ln(l, e),
|
|
459
|
+
"aria-pressed": e === t,
|
|
460
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
461
|
+
onMouseUp: () => {
|
|
462
|
+
i?.(), u(e);
|
|
463
|
+
},
|
|
464
|
+
onKeyDown: (t) => {
|
|
465
|
+
t.key !== "Enter" && t.key !== " " || (t.preventDefault(), i?.(), u(e));
|
|
466
|
+
},
|
|
467
|
+
sx: {
|
|
468
|
+
width: "34px",
|
|
469
|
+
height: "34px",
|
|
470
|
+
cursor: "pointer",
|
|
471
|
+
borderRadius: "2px",
|
|
472
|
+
outline: (n) => e === t ? `2px solid ${n.palette.primary.main}` : `1px solid ${n.palette.divider}`,
|
|
473
|
+
outlineOffset: "-1px",
|
|
474
|
+
"&:hover": { outline: (e) => `2px solid ${e.palette.primary.light}` }
|
|
475
|
+
},
|
|
476
|
+
children: Z(sn, {
|
|
477
|
+
patternType: e,
|
|
478
|
+
foreground: n,
|
|
479
|
+
background: r,
|
|
480
|
+
createCell: a,
|
|
481
|
+
darkMode: o
|
|
482
|
+
})
|
|
483
|
+
})
|
|
484
|
+
}, e))
|
|
485
|
+
});
|
|
486
|
+
}, [
|
|
487
|
+
t,
|
|
488
|
+
n,
|
|
489
|
+
r,
|
|
490
|
+
a,
|
|
491
|
+
o,
|
|
492
|
+
u,
|
|
493
|
+
l
|
|
494
|
+
]);
|
|
495
|
+
return Z(Ft, {
|
|
496
|
+
disabled: s,
|
|
497
|
+
tooltip: l("fill.patternTooltip", { pattern: ln(l, t) }),
|
|
498
|
+
createPopupPanel: d,
|
|
499
|
+
icon: Z($, {
|
|
500
|
+
sx: {
|
|
501
|
+
width: "48px",
|
|
502
|
+
height: "20px",
|
|
503
|
+
borderRadius: "2px",
|
|
504
|
+
outline: (e) => `1px solid ${e.palette.divider}`,
|
|
505
|
+
outlineOffset: "-1px",
|
|
506
|
+
overflow: "hidden"
|
|
507
|
+
},
|
|
508
|
+
children: Z(sn, {
|
|
509
|
+
patternType: t,
|
|
510
|
+
foreground: n,
|
|
511
|
+
background: r,
|
|
512
|
+
createCell: a,
|
|
513
|
+
darkMode: o
|
|
514
|
+
})
|
|
515
|
+
}),
|
|
516
|
+
...c
|
|
517
|
+
});
|
|
518
|
+
});
|
|
519
|
+
un.displayName = "PatternPopupButton";
|
|
520
|
+
var dn = {
|
|
521
|
+
resizeOnOverflow: !1,
|
|
522
|
+
placement: "bottom",
|
|
523
|
+
offsets: [0, 2],
|
|
524
|
+
shift: { padding: 8 }
|
|
525
|
+
}, fn = ((e) => {
|
|
526
|
+
let t = [], n = e.length;
|
|
527
|
+
for (let r = 0; r < n; r++) {
|
|
528
|
+
let [i, a] = e[(r + n - 1) % n], [o, s, c] = e[r], [l, u] = e[(r + 1) % n], d = (e, t) => {
|
|
529
|
+
let n = Math.hypot(e - o, t - s) || 1, r = Math.min(c, n / 2);
|
|
530
|
+
return [o + (e - o) / n * r, s + (t - s) / n * r];
|
|
531
|
+
}, [f, p] = d(i, a), [m, h] = d(l, u);
|
|
532
|
+
t.push(`${r === 0 ? "M" : "L"}${f.toFixed(2)} ${p.toFixed(2)} Q${o} ${s} ${m.toFixed(2)} ${h.toFixed(2)}`);
|
|
533
|
+
}
|
|
534
|
+
return t.join(" ") + " Z";
|
|
535
|
+
})([
|
|
536
|
+
[
|
|
537
|
+
7,
|
|
538
|
+
.5,
|
|
539
|
+
1
|
|
540
|
+
],
|
|
541
|
+
[
|
|
542
|
+
13.5,
|
|
543
|
+
6,
|
|
544
|
+
1.5
|
|
545
|
+
],
|
|
546
|
+
[
|
|
547
|
+
13.5,
|
|
548
|
+
16.5,
|
|
549
|
+
2
|
|
550
|
+
],
|
|
551
|
+
[
|
|
552
|
+
.5,
|
|
553
|
+
16.5,
|
|
554
|
+
2
|
|
555
|
+
],
|
|
556
|
+
[
|
|
557
|
+
.5,
|
|
558
|
+
6,
|
|
559
|
+
1.5
|
|
560
|
+
]
|
|
561
|
+
]), pn = (e) => Math.max(0, Math.min(1, e)), mn = (e, t, n) => {
|
|
562
|
+
try {
|
|
563
|
+
return (e instanceof $e ? e : new $e(e, t)).toCSS(n);
|
|
564
|
+
} catch {
|
|
565
|
+
return "transparent";
|
|
566
|
+
}
|
|
567
|
+
}, hn = (e, t, n) => {
|
|
568
|
+
try {
|
|
569
|
+
let r = new $e(e, n).toRGBA(), i = new $e(t, n).toRGBA(), a = (e, t) => Math.round((e + t) / 2).toString(16).padStart(2, "0");
|
|
570
|
+
return `${a(r.red, i.red)}${a(r.green, i.green)}${a(r.blue, i.blue)}`;
|
|
571
|
+
} catch {
|
|
572
|
+
return e;
|
|
573
|
+
}
|
|
574
|
+
}, gn = (e, t) => e.offset === t.offset && String(e.color) === String(t.color), _n = (e, t) => e.length === t.length && e.every((e, n) => gn(e, t[n])), vn = U((e) => {
|
|
575
|
+
let { percent: t, disabled: n, inputRef: r, onChange: i } = e, a = H(), [o, s] = J(String(t)), [c, l] = J(!1);
|
|
576
|
+
return G(() => {
|
|
577
|
+
c || s(String(t));
|
|
578
|
+
}, [t, c]), Z(Yt, {
|
|
579
|
+
type: "number",
|
|
580
|
+
size: "small",
|
|
581
|
+
disabled: n,
|
|
582
|
+
inputRef: r,
|
|
583
|
+
label: a("fill.gradientPosition"),
|
|
584
|
+
value: o,
|
|
585
|
+
onFocus: () => l(!0),
|
|
586
|
+
onBlur: () => {
|
|
587
|
+
l(!1), s(String(t));
|
|
588
|
+
},
|
|
589
|
+
onChange: (e) => {
|
|
590
|
+
if (s(e.target.value), e.target.value === "") return;
|
|
591
|
+
let t = Math.max(0, Math.min(100, parseInt(e.target.value, 10) || 0));
|
|
592
|
+
i(t);
|
|
593
|
+
},
|
|
594
|
+
slotProps: {
|
|
595
|
+
htmlInput: {
|
|
596
|
+
min: 0,
|
|
597
|
+
max: 100,
|
|
598
|
+
step: 5,
|
|
599
|
+
style: { textAlign: "right" }
|
|
600
|
+
},
|
|
601
|
+
inputLabel: { shrink: !0 },
|
|
602
|
+
input: { endAdornment: Z(Wt, {
|
|
603
|
+
position: "end",
|
|
604
|
+
disableTypography: !0,
|
|
605
|
+
children: "%"
|
|
606
|
+
}) }
|
|
607
|
+
},
|
|
608
|
+
sx: { width: 120 }
|
|
609
|
+
});
|
|
610
|
+
});
|
|
611
|
+
vn.displayName = "StopPositionField";
|
|
612
|
+
var yn = U((e) => {
|
|
613
|
+
let { index: t, stop: n, offset: r, schemeLookup: i, recentColors: a, darkMode: o, disabled: s, canRemove: c, rampRef: l, onDrag: u, onMove: d, onPreviewColor: f, onChangeColor: p, onRemove: m, onOpenChange: h } = e, g = H(), _ = Qt(), v = K(() => new $e(n.color, i), [n.color, i]), [y, b] = J(void 0), [x, S] = J(null), [C, w] = J(!1), [T, E] = J(!1), [D, O] = J(!1), [k, A] = J(!1), j = q(null), M = q(!1), N = V((e) => {
|
|
614
|
+
b(e), f(t, e ?? null);
|
|
615
|
+
}, [t, f]), P = V((e) => {
|
|
616
|
+
d(t, e / 100);
|
|
617
|
+
}, [t, d]), F = Math.round(100 * r), ee = mn(y ?? v, i, o), te = W((e) => {
|
|
618
|
+
let { closeFloat: n } = e;
|
|
619
|
+
return Q($, {
|
|
620
|
+
className: "sxl-gradient-stop-popup",
|
|
621
|
+
sx: {
|
|
622
|
+
display: "flex",
|
|
623
|
+
flexDirection: "column"
|
|
624
|
+
},
|
|
625
|
+
children: [Z(be, {
|
|
626
|
+
selectedColor: v,
|
|
627
|
+
previewColor: y,
|
|
628
|
+
disableAlpha: !0,
|
|
629
|
+
schemeLookup: i,
|
|
630
|
+
recentColors: a,
|
|
631
|
+
darkMode: o,
|
|
632
|
+
onDone: n,
|
|
633
|
+
onPreviewColor: N,
|
|
634
|
+
onPreviewColorImmediate: N,
|
|
635
|
+
onSelectColor: (e) => {
|
|
636
|
+
N(void 0), e && p(t, e);
|
|
637
|
+
}
|
|
638
|
+
}), Z($, {
|
|
639
|
+
sx: {
|
|
640
|
+
display: "flex",
|
|
641
|
+
alignItems: "center",
|
|
642
|
+
gap: 1,
|
|
643
|
+
paddingX: 1,
|
|
644
|
+
paddingBottom: 1
|
|
645
|
+
},
|
|
646
|
+
children: Z(vn, {
|
|
647
|
+
percent: F,
|
|
648
|
+
disabled: s,
|
|
649
|
+
inputRef: j,
|
|
650
|
+
onChange: P
|
|
651
|
+
})
|
|
652
|
+
})]
|
|
653
|
+
});
|
|
654
|
+
}, [
|
|
655
|
+
v,
|
|
656
|
+
y,
|
|
657
|
+
F,
|
|
658
|
+
t,
|
|
659
|
+
i,
|
|
660
|
+
a,
|
|
661
|
+
o,
|
|
662
|
+
s,
|
|
663
|
+
N,
|
|
664
|
+
p,
|
|
665
|
+
P
|
|
666
|
+
]), I = xt({
|
|
667
|
+
anchor: x,
|
|
668
|
+
label: "gradient-stop",
|
|
669
|
+
createPopupPanel: te,
|
|
670
|
+
propsPopper: dn,
|
|
671
|
+
onOpen: () => {
|
|
672
|
+
w(!0), h(t, !0), M.current && (M.current = !1, requestAnimationFrame(() => j.current?.focus()));
|
|
673
|
+
},
|
|
674
|
+
onClose: () => {
|
|
675
|
+
w(!1), h(t, !1), N(void 0);
|
|
676
|
+
}
|
|
677
|
+
}), ne = V((e) => {
|
|
678
|
+
M.current = e, I.reference.open(0);
|
|
679
|
+
}, [I]), re = V(() => {
|
|
680
|
+
C ? I.reference.close(0) : ne(!1);
|
|
681
|
+
}, [
|
|
682
|
+
C,
|
|
683
|
+
I,
|
|
684
|
+
ne
|
|
685
|
+
]), L = q(null), ie = V((e) => {
|
|
686
|
+
s || e.button !== 0 || (e.currentTarget.setPointerCapture(e.pointerId), L.current = {
|
|
687
|
+
pointerId: e.pointerId,
|
|
688
|
+
startX: e.clientX,
|
|
689
|
+
startOffset: r,
|
|
690
|
+
moved: !1,
|
|
691
|
+
offset: r
|
|
692
|
+
});
|
|
693
|
+
}, [s, r]), ae = V((e) => {
|
|
694
|
+
let n = L.current;
|
|
695
|
+
if (!n || n.pointerId !== e.pointerId) return;
|
|
696
|
+
let r = e.clientX - n.startX;
|
|
697
|
+
if (!n.moved) {
|
|
698
|
+
if (Math.abs(r) < 3) return;
|
|
699
|
+
n.moved = !0, E(!0), A(!1), I.reference.close(0);
|
|
700
|
+
}
|
|
701
|
+
let i = l.current?.getBoundingClientRect().width ?? 0;
|
|
702
|
+
n.offset = i > 0 ? pn(n.startOffset + r / i) : n.startOffset, u(t, n.offset, !1);
|
|
703
|
+
}, [
|
|
704
|
+
t,
|
|
705
|
+
l,
|
|
706
|
+
I,
|
|
707
|
+
u
|
|
708
|
+
]), oe = V((e) => {
|
|
709
|
+
let n = L.current;
|
|
710
|
+
if (n && n.pointerId === e.pointerId) {
|
|
711
|
+
if (L.current = null, n.moved) return E(!1), u(t, n.offset, !0), void d(t, n.offset);
|
|
712
|
+
re();
|
|
713
|
+
}
|
|
714
|
+
}, [
|
|
715
|
+
t,
|
|
716
|
+
u,
|
|
717
|
+
d,
|
|
718
|
+
re
|
|
719
|
+
]), se = V((e) => {
|
|
720
|
+
let n = L.current;
|
|
721
|
+
n && n.pointerId === e.pointerId && (L.current = null, n.moved && (E(!1), u(t, n.startOffset, !0)));
|
|
722
|
+
}, [t, u]), ce = V((e) => {
|
|
723
|
+
if (s) return;
|
|
724
|
+
let n = e.shiftKey ? .1 : .01;
|
|
725
|
+
switch (e.key) {
|
|
726
|
+
case "ArrowLeft":
|
|
727
|
+
d(t, pn(r - n));
|
|
728
|
+
break;
|
|
729
|
+
case "ArrowRight":
|
|
730
|
+
d(t, pn(r + n));
|
|
731
|
+
break;
|
|
732
|
+
case "Home":
|
|
733
|
+
d(t, 0);
|
|
734
|
+
break;
|
|
735
|
+
case "End":
|
|
736
|
+
d(t, 1);
|
|
737
|
+
break;
|
|
738
|
+
case "Delete":
|
|
739
|
+
case "Backspace":
|
|
740
|
+
c && m(t);
|
|
741
|
+
break;
|
|
742
|
+
case "Enter":
|
|
743
|
+
case " ":
|
|
744
|
+
ne(!0);
|
|
745
|
+
break;
|
|
746
|
+
case "Escape":
|
|
747
|
+
if (!C) return;
|
|
748
|
+
I.reference.close(0);
|
|
749
|
+
break;
|
|
750
|
+
default: return;
|
|
751
|
+
}
|
|
752
|
+
e.preventDefault();
|
|
753
|
+
}, [
|
|
754
|
+
s,
|
|
755
|
+
t,
|
|
756
|
+
r,
|
|
757
|
+
c,
|
|
758
|
+
C,
|
|
759
|
+
I,
|
|
760
|
+
ne,
|
|
761
|
+
d,
|
|
762
|
+
m
|
|
763
|
+
]), le = C || T || D, ue = !s && !T && !C && k, de = Q($, {
|
|
764
|
+
className: "sxl-gradient-stop-toolbar",
|
|
765
|
+
onPointerDown: (e) => {
|
|
766
|
+
e.stopPropagation();
|
|
767
|
+
},
|
|
768
|
+
sx: {
|
|
769
|
+
display: "flex",
|
|
770
|
+
alignItems: "center",
|
|
771
|
+
gap: .25
|
|
772
|
+
},
|
|
773
|
+
children: [Z(Pt, {
|
|
774
|
+
tabIndex: -1,
|
|
775
|
+
propsTooltip: {
|
|
776
|
+
label: g("fill.gradientStopColor"),
|
|
777
|
+
simple: !0
|
|
778
|
+
},
|
|
779
|
+
icon: Z($, {
|
|
780
|
+
className: "color-wrapper",
|
|
781
|
+
sx: {
|
|
782
|
+
lineHeight: 0,
|
|
783
|
+
"& .activeColor": { fill: ee }
|
|
784
|
+
},
|
|
785
|
+
children: Z(B, { iconKey: "circle.colored" })
|
|
786
|
+
}),
|
|
787
|
+
onClick: () => {
|
|
788
|
+
A(!1), re();
|
|
789
|
+
}
|
|
790
|
+
}), Z(Pt, {
|
|
791
|
+
tabIndex: -1,
|
|
792
|
+
disabled: !c,
|
|
793
|
+
propsTooltip: {
|
|
794
|
+
label: g("fill.gradientRemoveStop"),
|
|
795
|
+
simple: !0
|
|
796
|
+
},
|
|
797
|
+
icon: Z(B, { iconKey: "Close" }),
|
|
798
|
+
onClick: () => m(t)
|
|
799
|
+
})]
|
|
800
|
+
});
|
|
801
|
+
return Q(Ht, { children: [Z(zt, {
|
|
802
|
+
title: de,
|
|
803
|
+
open: ue,
|
|
804
|
+
onOpen: () => A(!0),
|
|
805
|
+
onClose: () => A(!1),
|
|
806
|
+
enterDelay: 250,
|
|
807
|
+
enterNextDelay: 250,
|
|
808
|
+
leaveDelay: 400,
|
|
809
|
+
placement: "bottom",
|
|
810
|
+
disableFocusListener: !0,
|
|
811
|
+
disableTouchListener: !0,
|
|
812
|
+
slotProps: { tooltip: { sx: {
|
|
813
|
+
backgroundColor: (e) => e.palette.background.paper,
|
|
814
|
+
color: (e) => e.palette.text.primary,
|
|
815
|
+
border: (e) => `1px solid ${e.palette.divider}`,
|
|
816
|
+
boxShadow: (e) => e.shadows[3],
|
|
817
|
+
padding: "2px",
|
|
818
|
+
marginTop: "4px !important"
|
|
819
|
+
} } },
|
|
820
|
+
children: Z($, {
|
|
821
|
+
ref: S,
|
|
822
|
+
role: "button",
|
|
823
|
+
tabIndex: s ? -1 : 0,
|
|
824
|
+
"aria-label": g("fill.gradientStop", { position: F }),
|
|
825
|
+
"aria-disabled": s || void 0,
|
|
826
|
+
className: R("sxl-gradient-stop", {
|
|
827
|
+
"sxl-gradient-stop-open": C,
|
|
828
|
+
"sxl-gradient-stop-dragging": T
|
|
829
|
+
}),
|
|
830
|
+
onPointerDown: ie,
|
|
831
|
+
onPointerMove: ae,
|
|
832
|
+
onPointerUp: oe,
|
|
833
|
+
onPointerCancel: se,
|
|
834
|
+
onFocus: () => O(!0),
|
|
835
|
+
onBlur: () => O(!1),
|
|
836
|
+
onKeyDown: ce,
|
|
837
|
+
sx: {
|
|
838
|
+
position: "absolute",
|
|
839
|
+
left: 100 * r + "%",
|
|
840
|
+
top: "calc(100% - 4px)",
|
|
841
|
+
width: 14,
|
|
842
|
+
height: 17,
|
|
843
|
+
transform: "translateX(-50%)",
|
|
844
|
+
transition: T ? "none" : "left 120ms ease-out",
|
|
845
|
+
lineHeight: 0,
|
|
846
|
+
cursor: s ? "default" : T ? "grabbing" : "grab",
|
|
847
|
+
touchAction: "none",
|
|
848
|
+
outline: "none",
|
|
849
|
+
zIndex: +!!T,
|
|
850
|
+
filter: le ? `drop-shadow(0 1px 2px ${_.palette.action.active})` : void 0
|
|
851
|
+
},
|
|
852
|
+
children: Z("svg", {
|
|
853
|
+
width: 14,
|
|
854
|
+
height: 17,
|
|
855
|
+
viewBox: "0 0 14 17",
|
|
856
|
+
"aria-hidden": "true",
|
|
857
|
+
children: Z("path", {
|
|
858
|
+
d: fn,
|
|
859
|
+
fill: ee,
|
|
860
|
+
stroke: le ? _.palette.primary.main : _.palette.text.secondary,
|
|
861
|
+
strokeWidth: le ? 1.5 : 1,
|
|
862
|
+
strokeLinejoin: "round"
|
|
863
|
+
})
|
|
864
|
+
})
|
|
865
|
+
})
|
|
866
|
+
}), I.component] });
|
|
867
|
+
});
|
|
868
|
+
yn.displayName = "StopHandle";
|
|
869
|
+
var bn = U((e) => {
|
|
870
|
+
let { stops: t, onChange: n, minStops: r = 2, maxStops: i = 8, schemeLookup: a, recentColors: o, darkMode: s = !1, disabled: c = !1, className: l, ...u } = e, d = H(), f = q(null), p = q({
|
|
871
|
+
known: [],
|
|
872
|
+
next: 1
|
|
873
|
+
}), m = K(() => {
|
|
874
|
+
let e = p.current, n = ((e, t, n) => {
|
|
875
|
+
for (let n of t) if (_n(e, n.stops)) return n.keys;
|
|
876
|
+
let r = /* @__PURE__ */ new Set();
|
|
877
|
+
return e.map((e) => {
|
|
878
|
+
for (let n of t) {
|
|
879
|
+
let t = n.stops.findIndex((t, i) => !r.has(n.keys[i]) && gn(t, e));
|
|
880
|
+
if (t >= 0) return r.add(n.keys[t]), n.keys[t];
|
|
881
|
+
}
|
|
882
|
+
return -1;
|
|
883
|
+
}).map((e) => e >= 0 ? e : n());
|
|
884
|
+
})(t, e.known, () => e.next++);
|
|
885
|
+
return e.known[0]?.keys !== n && (e.known = [{
|
|
886
|
+
stops: t,
|
|
887
|
+
keys: n
|
|
888
|
+
}, ...e.known].slice(0, 3)), n;
|
|
889
|
+
}, [t]), [h, g] = J(null), [_, v] = J(null), [y, b] = J(null);
|
|
890
|
+
jt(() => {
|
|
891
|
+
g((e) => {
|
|
892
|
+
if (!e?.released) return e;
|
|
893
|
+
let n = m.indexOf(e.key);
|
|
894
|
+
return n >= 0 && t[n].offset === e.offset ? null : e;
|
|
895
|
+
});
|
|
896
|
+
}, [t, m]), jt(() => {
|
|
897
|
+
if (!h?.released) return;
|
|
898
|
+
let e = window.setTimeout(() => g((e) => e?.released ? null : e), 1e3);
|
|
899
|
+
return () => window.clearTimeout(e);
|
|
900
|
+
}, [h]);
|
|
901
|
+
let x = !c && t.length < i, S = !c && t.length > r, C = V((e) => {
|
|
902
|
+
let t = [...e].sort((e, t) => e.stop.offset - t.stop.offset), r = {
|
|
903
|
+
stops: t.map((e) => e.stop),
|
|
904
|
+
keys: t.map((e) => e.key)
|
|
905
|
+
}, i = p.current;
|
|
906
|
+
i.known = [r, ...i.known].slice(0, 3), n(r.stops.slice());
|
|
907
|
+
}, [n]), w = V(() => t.map((e, t) => ({
|
|
908
|
+
stop: e,
|
|
909
|
+
key: m[t]
|
|
910
|
+
})), [t, m]), T = V((e, t, n) => {
|
|
911
|
+
g({
|
|
912
|
+
key: m[e],
|
|
913
|
+
offset: t,
|
|
914
|
+
released: n
|
|
915
|
+
});
|
|
916
|
+
}, [m]), E = V((e, t) => {
|
|
917
|
+
C(w().map((n, r) => r === e ? {
|
|
918
|
+
...n,
|
|
919
|
+
stop: {
|
|
920
|
+
...n.stop,
|
|
921
|
+
offset: t
|
|
922
|
+
}
|
|
923
|
+
} : n));
|
|
924
|
+
}, [w, C]), D = V((e, t) => {
|
|
925
|
+
v(t ? {
|
|
926
|
+
key: m[e],
|
|
927
|
+
color: t
|
|
928
|
+
} : null);
|
|
929
|
+
}, [m]), O = V((e, t) => {
|
|
930
|
+
let n = m[e];
|
|
931
|
+
b((e) => t ? n : e === n ? null : e);
|
|
932
|
+
}, [m]), k = V((e, t) => {
|
|
933
|
+
C(w().map((n, r) => r === e ? {
|
|
934
|
+
...n,
|
|
935
|
+
stop: {
|
|
936
|
+
...n.stop,
|
|
937
|
+
color: t.toString()
|
|
938
|
+
}
|
|
939
|
+
} : n));
|
|
940
|
+
}, [w, C]), A = V((e) => {
|
|
941
|
+
t.length <= r || C(w().filter((t, n) => n !== e));
|
|
942
|
+
}, [
|
|
943
|
+
t,
|
|
944
|
+
r,
|
|
945
|
+
w,
|
|
946
|
+
C
|
|
947
|
+
]), j = V((e) => {
|
|
948
|
+
if (t.length >= i) return;
|
|
949
|
+
let n = [...t].sort((e, t) => e.offset - t.offset), r = e;
|
|
950
|
+
if (r === void 0) {
|
|
951
|
+
let e = -1;
|
|
952
|
+
for (let t = 0; t + 1 < n.length; t++) {
|
|
953
|
+
let i = n[t + 1].offset - n[t].offset;
|
|
954
|
+
i > e && (e = i, r = (n[t].offset + n[t + 1].offset) / 2);
|
|
955
|
+
}
|
|
956
|
+
r === void 0 && (r = 1);
|
|
957
|
+
}
|
|
958
|
+
let o = [...n].reverse().find((e) => e.offset <= r) ?? n[0], s = n.find((e) => e.offset >= r) ?? n[n.length - 1];
|
|
959
|
+
C([...w(), {
|
|
960
|
+
stop: {
|
|
961
|
+
offset: r,
|
|
962
|
+
color: hn(o.color, s.color, a)
|
|
963
|
+
},
|
|
964
|
+
key: p.current.next++
|
|
965
|
+
}]);
|
|
966
|
+
}, [
|
|
967
|
+
t,
|
|
968
|
+
i,
|
|
969
|
+
a,
|
|
970
|
+
w,
|
|
971
|
+
C
|
|
972
|
+
]), M = V((e) => {
|
|
973
|
+
if (!x || e.button !== 0 || y !== null || e.target.closest(".sxl-gradient-stop")) return;
|
|
974
|
+
let t = e.currentTarget.getBoundingClientRect();
|
|
975
|
+
t.width <= 0 || j(pn((e.clientX - t.left) / t.width));
|
|
976
|
+
}, [
|
|
977
|
+
x,
|
|
978
|
+
y,
|
|
979
|
+
j
|
|
980
|
+
]), N = K(() => {
|
|
981
|
+
let e = t.map((e, t) => ({
|
|
982
|
+
offset: h?.key === m[t] ? h.offset : e.offset,
|
|
983
|
+
css: mn(_?.key === m[t] ? _.color : e.color, a, s)
|
|
984
|
+
}));
|
|
985
|
+
return e.sort((e, t) => e.offset - t.offset), `linear-gradient(90deg, ${e.map((e) => `${e.css} ${(100 * e.offset).toFixed(2)}%`).join(", ")})`;
|
|
986
|
+
}, [
|
|
987
|
+
t,
|
|
988
|
+
m,
|
|
989
|
+
h,
|
|
990
|
+
_,
|
|
991
|
+
a,
|
|
992
|
+
s
|
|
993
|
+
]);
|
|
994
|
+
return Q($, {
|
|
995
|
+
className: R("sxl-gradient-stops", l),
|
|
996
|
+
sx: {
|
|
997
|
+
display: "flex",
|
|
998
|
+
alignItems: "flex-start",
|
|
999
|
+
gap: .5,
|
|
1000
|
+
minWidth: 0
|
|
1001
|
+
},
|
|
1002
|
+
...u,
|
|
1003
|
+
children: [Z($, {
|
|
1004
|
+
sx: {
|
|
1005
|
+
flex: 1,
|
|
1006
|
+
minWidth: 0,
|
|
1007
|
+
paddingX: "7px",
|
|
1008
|
+
paddingBottom: "15px"
|
|
1009
|
+
},
|
|
1010
|
+
children: Z($, {
|
|
1011
|
+
ref: f,
|
|
1012
|
+
className: "sxl-gradient-stops-ramp",
|
|
1013
|
+
onPointerDown: M,
|
|
1014
|
+
sx: {
|
|
1015
|
+
position: "relative",
|
|
1016
|
+
height: 18,
|
|
1017
|
+
borderRadius: 1,
|
|
1018
|
+
border: (e) => `1px solid ${e.palette.divider}`,
|
|
1019
|
+
backgroundImage: N,
|
|
1020
|
+
backgroundRepeat: "no-repeat",
|
|
1021
|
+
cursor: x ? "copy" : "default",
|
|
1022
|
+
opacity: c ? .5 : 1
|
|
1023
|
+
},
|
|
1024
|
+
children: t.map((e, t) => Z(yn, {
|
|
1025
|
+
index: t,
|
|
1026
|
+
stop: e,
|
|
1027
|
+
offset: h?.key === m[t] ? h.offset : e.offset,
|
|
1028
|
+
schemeLookup: a,
|
|
1029
|
+
recentColors: o,
|
|
1030
|
+
darkMode: s,
|
|
1031
|
+
disabled: c,
|
|
1032
|
+
canRemove: S,
|
|
1033
|
+
rampRef: f,
|
|
1034
|
+
onDrag: T,
|
|
1035
|
+
onMove: E,
|
|
1036
|
+
onPreviewColor: D,
|
|
1037
|
+
onChangeColor: k,
|
|
1038
|
+
onRemove: A,
|
|
1039
|
+
onOpenChange: O
|
|
1040
|
+
}, m[t]))
|
|
1041
|
+
})
|
|
1042
|
+
}), Z(Pt, {
|
|
1043
|
+
disabled: !x,
|
|
1044
|
+
propsTooltip: {
|
|
1045
|
+
label: d("fill.gradientAddStop"),
|
|
1046
|
+
simple: !0
|
|
1047
|
+
},
|
|
1048
|
+
icon: Z(B, { iconKey: "Add" }),
|
|
1049
|
+
onClick: () => j(),
|
|
1050
|
+
sx: { marginTop: "-3px" }
|
|
1051
|
+
})]
|
|
1052
|
+
});
|
|
1053
|
+
});
|
|
1054
|
+
bn.displayName = "GradientStopsBar";
|
|
1055
|
+
var xn = U((e) => {
|
|
1056
|
+
let { value: t, onChange: n, minStops: r, maxStops: i, schemeLookup: a, recentColors: o, darkMode: s = !1, disabled: c = !1, className: l, ...u } = e, d = H(), f = V((e) => {
|
|
1057
|
+
n({
|
|
1058
|
+
...t,
|
|
1059
|
+
...e
|
|
1060
|
+
});
|
|
1061
|
+
}, [t, n]), p = t.gradientType === z.GradientType.Linear;
|
|
1062
|
+
return Q($, {
|
|
1063
|
+
className: R("sxl-gradient-editor", l),
|
|
1064
|
+
sx: {
|
|
1065
|
+
display: "flex",
|
|
1066
|
+
flexDirection: "column",
|
|
1067
|
+
gap: 1.25,
|
|
1068
|
+
minWidth: 0
|
|
1069
|
+
},
|
|
1070
|
+
...u,
|
|
1071
|
+
children: [Q($, {
|
|
1072
|
+
sx: {
|
|
1073
|
+
display: "flex",
|
|
1074
|
+
flexWrap: "wrap",
|
|
1075
|
+
gap: 1,
|
|
1076
|
+
alignItems: "center"
|
|
1077
|
+
},
|
|
1078
|
+
children: [Q(Ut, {
|
|
1079
|
+
size: "small",
|
|
1080
|
+
sx: {
|
|
1081
|
+
minWidth: 132,
|
|
1082
|
+
flex: "1 1 132px"
|
|
1083
|
+
},
|
|
1084
|
+
children: [Z(Gt, {
|
|
1085
|
+
shrink: !0,
|
|
1086
|
+
children: d("fill.gradientStyle")
|
|
1087
|
+
}), Q(Jt, {
|
|
1088
|
+
label: d("fill.gradientStyle"),
|
|
1089
|
+
notched: !0,
|
|
1090
|
+
disabled: c,
|
|
1091
|
+
value: t.gradientType,
|
|
1092
|
+
onChange: (e) => f({ gradientType: e.target.value }),
|
|
1093
|
+
children: [Z(Kt, {
|
|
1094
|
+
value: z.GradientType.Linear,
|
|
1095
|
+
children: d("fill.gradientLinear")
|
|
1096
|
+
}), Z(Kt, {
|
|
1097
|
+
value: z.GradientType.Path,
|
|
1098
|
+
children: d("fill.gradientRadial")
|
|
1099
|
+
})]
|
|
1100
|
+
})]
|
|
1101
|
+
}), Z(Yt, {
|
|
1102
|
+
label: d("fill.gradientAngle"),
|
|
1103
|
+
type: "number",
|
|
1104
|
+
size: "small",
|
|
1105
|
+
disabled: c || !p,
|
|
1106
|
+
value: t.angle,
|
|
1107
|
+
onChange: (e) => {
|
|
1108
|
+
let t = parseInt(e.target.value, 10) || 0;
|
|
1109
|
+
f({ angle: (t % 360 + 360) % 360 });
|
|
1110
|
+
},
|
|
1111
|
+
slotProps: {
|
|
1112
|
+
htmlInput: {
|
|
1113
|
+
min: 0,
|
|
1114
|
+
max: 359,
|
|
1115
|
+
step: 15
|
|
1116
|
+
},
|
|
1117
|
+
inputLabel: { shrink: !0 }
|
|
1118
|
+
},
|
|
1119
|
+
sx: { width: 104 }
|
|
1120
|
+
})]
|
|
1121
|
+
}), Q($, {
|
|
1122
|
+
sx: {
|
|
1123
|
+
display: "flex",
|
|
1124
|
+
flexDirection: "column",
|
|
1125
|
+
gap: .5,
|
|
1126
|
+
minWidth: 0
|
|
1127
|
+
},
|
|
1128
|
+
children: [Z(Xt, {
|
|
1129
|
+
variant: "caption",
|
|
1130
|
+
component: "div",
|
|
1131
|
+
sx: { color: "text.secondary" },
|
|
1132
|
+
children: d("fill.gradientStops")
|
|
1133
|
+
}), Z(bn, {
|
|
1134
|
+
stops: t.stops,
|
|
1135
|
+
onChange: (e) => f({ stops: e }),
|
|
1136
|
+
minStops: r,
|
|
1137
|
+
maxStops: i,
|
|
1138
|
+
schemeLookup: a,
|
|
1139
|
+
recentColors: o,
|
|
1140
|
+
darkMode: s,
|
|
1141
|
+
disabled: c
|
|
1142
|
+
})]
|
|
1143
|
+
})]
|
|
1144
|
+
});
|
|
1145
|
+
});
|
|
1146
|
+
xn.displayName = "GradientEditor";
|
|
1147
|
+
var Sn = (e) => {
|
|
1148
|
+
let t = e.getStops();
|
|
1149
|
+
return {
|
|
1150
|
+
gradientType: e.getGradientType(),
|
|
1151
|
+
angle: e.getAngle() ?? 0,
|
|
1152
|
+
stops: t.length >= 2 ? t.map((e) => ({
|
|
1153
|
+
offset: e.getOffset(),
|
|
1154
|
+
color: e.getColor().toString()
|
|
1155
|
+
})) : [...Cn.stops]
|
|
1156
|
+
};
|
|
1157
|
+
}, Cn = Object.freeze({
|
|
1158
|
+
gradientType: z.GradientType.Linear,
|
|
1159
|
+
angle: 90,
|
|
1160
|
+
stops: [{
|
|
1161
|
+
offset: 0,
|
|
1162
|
+
color: "ffffff"
|
|
1163
|
+
}, {
|
|
1164
|
+
offset: 1,
|
|
1165
|
+
color: "4472c4"
|
|
1166
|
+
}]
|
|
1167
|
+
}), wn = /* @__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(".")), Tn = () => Z(Ht, {}), En = $t("studio:eagerStudio", () => import("./DV6i9RQZfJiKtEaJ.mjs")), Dn = ({ error: e, onShown: t }) => (G(() => {
|
|
1168
|
+
t();
|
|
1169
|
+
}, []), Z(Rt, { error: e })), On = U(Ot((e, t) => {
|
|
1170
|
+
let { sx: n, style: r, className: i, licenseKey: a, renderDocumentLoading: o = ue, propsDocumentLoading: s, onWorkbookLoad: c, onDocumentError: l, ...u } = e, [d, f] = ((e) => {
|
|
1171
|
+
let t = {}, n = {};
|
|
1172
|
+
for (let r in e) (wn.has(r) ? t : n)[r] = e[r];
|
|
1173
|
+
return [t, n];
|
|
1174
|
+
})(u);
|
|
1175
|
+
a && tt.setLicenseKey(a);
|
|
1176
|
+
let [p] = Ct(it.Mode, rt[it.Mode]), { themeMode: m } = wt({ mode: p ?? void 0 }), h = m === "dark", [g, _] = J(null), v = gt("studio", kt()), [y, b] = J(!1), x = K(() => !o || y ? null : Z(qt, {
|
|
1177
|
+
style: {
|
|
1178
|
+
backgroundColor: `var(--sxl-color-base-100, ${h ? "#121212" : "#fff"})`,
|
|
1179
|
+
inset: 0,
|
|
1180
|
+
width: "100%",
|
|
1181
|
+
height: "100%",
|
|
1182
|
+
position: "absolute",
|
|
1183
|
+
display: "flex",
|
|
1184
|
+
alignItems: "center",
|
|
1185
|
+
justifyContent: "center",
|
|
1186
|
+
zIndex: 9900
|
|
1187
|
+
},
|
|
1188
|
+
children: o(s ?? {})
|
|
1189
|
+
}), [
|
|
1190
|
+
o,
|
|
1191
|
+
s,
|
|
1192
|
+
h,
|
|
1193
|
+
y
|
|
1194
|
+
]), S = K(() => _t(En.load, { renderError: (e) => Z(Dn, {
|
|
1195
|
+
error: e,
|
|
1196
|
+
onShown: () => b(!0)
|
|
1197
|
+
}) }), []);
|
|
1198
|
+
return Q($, {
|
|
1199
|
+
ref: _,
|
|
1200
|
+
className: R("sheetxl-studio", v, i),
|
|
1201
|
+
"data-sxl-theme-mode": m,
|
|
1202
|
+
sx: n,
|
|
1203
|
+
style: {
|
|
1204
|
+
display: "flex",
|
|
1205
|
+
flexDirection: "column",
|
|
1206
|
+
flex: "1 1 100%",
|
|
1207
|
+
width: "100%",
|
|
1208
|
+
height: "100%",
|
|
1209
|
+
minWidth: 0,
|
|
1210
|
+
minHeight: 0,
|
|
1211
|
+
position: "relative",
|
|
1212
|
+
overflow: "hidden",
|
|
1213
|
+
...r
|
|
1214
|
+
},
|
|
1215
|
+
...f,
|
|
1216
|
+
children: [Z(Et, {
|
|
1217
|
+
fallback: null,
|
|
1218
|
+
children: Z(S, {
|
|
1219
|
+
...d,
|
|
1220
|
+
host: g,
|
|
1221
|
+
scopeClass: v,
|
|
1222
|
+
onWorkbookLoad: (e) => (requestAnimationFrame(() => requestAnimationFrame(() => b(!0))), c?.(e)),
|
|
1223
|
+
onDocumentError: (e) => (b(!0), l?.(e)),
|
|
1224
|
+
renderDocumentLoading: Tn,
|
|
1225
|
+
ref: t
|
|
1226
|
+
})
|
|
1227
|
+
}), x]
|
|
1228
|
+
});
|
|
1229
|
+
}));
|
|
1230
|
+
On.displayName = "Studio";
|
|
1231
|
+
var kn = (e = {}) => {
|
|
1232
|
+
let { source: t, startWith: n, templatePath: r, onWorkbookLoad: i, onWorkbookChange: a, onDirtyChange: o, documentTitle: s, confirmOnClose: c, keyboardGuard: l, ...u } = e, d = St(), [f, p] = J(null), [m, h] = J(!1), g = mt(f);
|
|
1233
|
+
dt(g, m, {
|
|
1234
|
+
documentTitle: s,
|
|
1235
|
+
confirmOnClose: c,
|
|
1236
|
+
keyboardGuard: l
|
|
1237
|
+
});
|
|
1238
|
+
let { workbook: _, urlTitle: v } = K(() => {
|
|
1239
|
+
if (t != null) return {
|
|
1240
|
+
workbook: typeof t == "string" ? { source: t } : t,
|
|
1241
|
+
urlTitle: null
|
|
1242
|
+
};
|
|
1243
|
+
if (d) {
|
|
1244
|
+
let e = new URLSearchParams(d), t = e.get("source");
|
|
1245
|
+
if (t) return {
|
|
1246
|
+
workbook: { source: t },
|
|
1247
|
+
urlTitle: e.get("title")
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1250
|
+
return {
|
|
1251
|
+
workbook: void 0,
|
|
1252
|
+
urlTitle: null
|
|
1253
|
+
};
|
|
1254
|
+
}, [t, d]), y = q(null);
|
|
1255
|
+
K(() => {
|
|
1256
|
+
y.current = v;
|
|
1257
|
+
}, [v]);
|
|
1258
|
+
let b = q(a);
|
|
1259
|
+
b.current = a;
|
|
1260
|
+
let x = W((e) => {
|
|
1261
|
+
e && y.current && (e.getOrigin().setName(y.current), y.current = null), p(e), b.current?.(e);
|
|
1262
|
+
}, []), S = q(o);
|
|
1263
|
+
S.current = o;
|
|
1264
|
+
let C = W((e) => {
|
|
1265
|
+
h(e), S.current?.(e);
|
|
1266
|
+
}, []);
|
|
1267
|
+
G(() => {
|
|
1268
|
+
n === "welcome" && _ === void 0 && L(r);
|
|
1269
|
+
}, [
|
|
1270
|
+
n,
|
|
1271
|
+
_,
|
|
1272
|
+
r
|
|
1273
|
+
]);
|
|
1274
|
+
let w = q(!1), T = q(i);
|
|
1275
|
+
T.current = i;
|
|
1276
|
+
let E = W((e) => (w.current || (w.current = !0, n === "welcome" && _ === void 0 && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
1277
|
+
e.source?.getCommandScope?.()?.resolve("showWelcome")?.execute({
|
|
1278
|
+
templatePath: r,
|
|
1279
|
+
atStartup: !0
|
|
1280
|
+
});
|
|
1281
|
+
}))), T.current?.(e)), [
|
|
1282
|
+
n,
|
|
1283
|
+
r,
|
|
1284
|
+
_
|
|
1285
|
+
]);
|
|
1286
|
+
return {
|
|
1287
|
+
...u,
|
|
1288
|
+
workbook: _,
|
|
1289
|
+
onWorkbookChange: x,
|
|
1290
|
+
onDirtyChange: C,
|
|
1291
|
+
onWorkbookLoad: E
|
|
1292
|
+
};
|
|
1293
|
+
};
|
|
1294
|
+
export { ge as AnomaliesPlugin, rn as AppearanceCommandButton, ye as AutoColorPosition, D as BorderCommandButton, Oe as BorderPopupButton, Ee as BorderStylePopupButton, De as BorderTemplateIcon, s as CalculationOptionsCommandButton, p as CalculationRequiredStatus, m as CircularReferenceStatus, Te as ColorButton, Ce as ColorButtonList, je as ColorCommandButton, be as ColorPanel, xe as ColorPanelType, we as ColorPopupButton, O as ColumnMenu, Ze as CommentCard, y as CommentsPlugin, Cn as DEFAULT_GRADIENT, nt as DefaultTaskPaneRegistry, l as DefaultWorkbookToolbars, d as DocThemeCommandButton, ce as DocumentTitle, r as ExternalLinksPlugin, P as FORMAT_TASK_PANE_KEY, i as FORMULA_BAR_EDITOR_ID, Be as FORMULA_FIELD_ABOVE_LABEL_HEIGHT, nn as FileCommandButton, pe as FillMenu, Pe as FontFamilyCommandButton, Ae as FontSizeCommandButton, E as FormatPlugin, a as FormulaBar, ze as FormulaField, Ge as FunctionArgumentsPanel, Je as FunctionSearchPanel, xn as GradientEditor, bn as GradientStopsBar, Xe as INSERT_FUNCTION_PAGE_CLASS, tn as InputField, c as InsertFunctionCommandPopupButton, qe as InsertFunctionOption, an as InsertFunctionSumCommandPopupButton, Ye as InsertFunctionWizard, He as ItemCard, Ue as ItemCardAction, We as ItemsSearchField, et as LicenseManager, he as MobileFormulaBar, b as MobileInputToolbar, t as NamedCollectionEditor, ne as NamedPlugin, te as NumberFormatCommandButton, ke as NumberFormatOption, g as NumberStats, cn as PATTERN_GALLERY, Qe as PasswordField, fe as PasteCommandButton, un as PatternPopupButton, sn as PatternSwatch, M as PresetCellStylesCommandButton, Ve as PresetChip, _e as PresetSlicerStylesCommandButton, Le as PresetTableStylesCommandButton, F as ProtectionPlugin, re as SheetTabMenu, ae as SheetZoomCommandButton, o as SheetZoomScale, oe as SheetsAllMenu, me as SlicerPlugin, I as StatusBar, On as Studio, Se as StyledStrokeIcon, e as TablePlugin, Fe as TableStyleCanvasPreview, Ie as TableStylePreview, ie as TextEffectsCommandButton, de as TextRotateGroupButton, _ as ThemeSelectButton, T as ThemeSelectPanel, C as ThemeSelectPopupButton, le as UndoRedoCommandButton, S as WalkingCopyCommandButton, j as WorkbookContextMenu, ee as WorkbookElement, at as WorkbookIO, N as WorkbookStrip, f as WorkbookToolbars, se as createStudioThemeCSS, u as createThemeFromMUITheme, Me as numberFormatCategoryLabel, Ne as numberFormatTypeLabel, Ke as optionsForPage, ln as patternLabel, x as registerSheetCommandGroups, A as registerStudioCommandCatalogs, ve as registerStudioCommandGroups, n as registerWorkbookCommandGroups, k as renderWorkbookSheetTab, v as renderWorkbookToolbars, st as setPrintExamplesOnLoad, Sn as toGradientValue, on as toPatternSlots, w as tokensToMuiOptions, h as useFormulaBarSession, lt as useModelListener, ut as useRangeListener, kn as useStudioApp };
|