@sheetxl/studio-mui 0.7.21 → 0.7.23-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +20 -0
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +1 -0
- package/browser/cjs/B_D3JKseVvpRyX-E.cjs +1 -0
- package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +2 -0
- package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +2 -0
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
- package/browser/cjs/ByIEqNsvj52sihT9.cjs +5 -0
- package/browser/cjs/C3moehR3VOd0LnmM.cjs +1 -0
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +1 -0
- package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +1 -0
- package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +1 -0
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +1 -0
- package/browser/cjs/CZm1jVZaHQ246prW.cjs +1 -0
- package/browser/cjs/CdDYyAfccXme8w6m.cjs +1 -0
- package/browser/cjs/Cpr3LpTBt3SSArSw.cjs +7 -0
- package/browser/cjs/DBJLJGiCGXesx5n6.cjs +1 -0
- package/browser/cjs/DEaHGn2Rbgcj_fbR.cjs +11 -0
- package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +1 -0
- package/browser/cjs/IASAYG6qgv7lJY7y.cjs +1 -0
- package/browser/cjs/KZvriGbhEOVkQD0b.cjs +1 -0
- package/browser/cjs/UnMhi28mbvLiOXQe.cjs +1 -0
- package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +1 -0
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +1 -0
- package/browser/cjs/index.cjs +2 -7
- package/browser/cjs/w2GjebPlOFv3pCbm.cjs +1 -0
- package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +1 -0
- package/browser/esm/B-2XwThOta_tt8BT.mjs +612 -0
- package/browser/esm/B8qmg9lVcO1_FX1t.mjs +508 -0
- package/browser/esm/BBwrhUtlLbuFQ67J.mjs +5398 -0
- package/browser/esm/BkcTkK4tR4b-px3e.mjs +42 -0
- package/browser/esm/BvQKaacvx0Q4evfJ.mjs +99 -0
- package/browser/esm/C9GBv4ZkH2P6xOGI.mjs +2207 -0
- package/browser/esm/C9MY76RbJdvrNOgK.mjs +411 -0
- package/browser/esm/CCiAWSm5lQALhezl.mjs +82 -0
- package/browser/esm/CGcdue-1rj_uOLLO.mjs +47 -0
- package/browser/esm/CPR9Jpd8zfoZUwWE.mjs +113 -0
- package/browser/esm/CkocGozEYIwcmc-x.mjs +105 -0
- package/browser/esm/D3E3Pf2O3BHV0mYQ.mjs +52 -0
- package/browser/esm/DNv3-zAolc7Scol_.mjs +129 -0
- package/browser/esm/DRCKGFtIKBxmTaJW.mjs +191 -0
- package/browser/esm/Ddp-16AGwwlZkglN.mjs +219 -0
- package/browser/esm/Ft9o24lP0MNgSqIB.mjs +1376 -0
- package/browser/esm/IIP2sN_X3kztI92r.mjs +155 -0
- package/browser/esm/WSDlFfjApTM0cJ4V.mjs +468 -0
- package/browser/esm/dfnya7tN7P1UeVvc.mjs +516 -0
- package/browser/esm/dhuC1s94dyRTzxgk.mjs +8869 -0
- package/browser/esm/eL50tJKtsxKJk7-6.mjs +217 -0
- package/browser/esm/index.mjs +152 -91
- package/browser/esm/suPpQTgd0X3baAFS.mjs +20 -0
- package/browser/esm/zRDngVAuXekzPZuz.mjs +1150 -0
- package/licenses/dependencies.txt +133 -623
- package/node/esm/0FcokH6jWYoKKyvJ.mjs +155 -0
- package/node/esm/BUqFn97L8YiLtWbW.mjs +129 -0
- package/node/esm/CH7ZFM-RHFeeCuff.mjs +82 -0
- package/node/esm/CghsKfVdQBikiGJk.mjs +679 -0
- package/node/esm/Cv3xawSybVla_gE-.mjs +47 -0
- package/node/esm/CwSCTBxawz0-VqW9.mjs +99 -0
- package/node/esm/D70ZQyxt_JcDRn7d.mjs +516 -0
- package/node/esm/DJnr-2wytqQ57aiM.mjs +4543 -0
- package/node/esm/DMDanrARYHWYLx37.mjs +190 -0
- package/node/esm/DMtIfyV60BcLQkTD.mjs +470 -0
- package/node/esm/DNJmWZomszXCkDx7.mjs +106 -0
- package/node/esm/DNkUDrpOmhF_vVDS.mjs +509 -0
- package/node/esm/DZG5Pd01dM-dgS3n.mjs +113 -0
- package/node/esm/index.mjs +10594 -2831
- package/package.json +27 -27
- package/resources/contents.json +30 -0
- package/resources/locales/contents.json +44 -0
- package/resources/locales/de/groups.cmd.json +219 -0
- package/resources/locales/de/studio.cmd.json +159 -0
- package/resources/locales/de/ui.msg.json +507 -0
- package/resources/locales/en/groups.cmd.json +219 -0
- package/resources/locales/en/studio.cmd.json +159 -0
- package/resources/locales/en/ui.msg.json +508 -0
- package/types/index.d.ts +2 -1762
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +131 -0
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts.map +1 -0
- package/types/src/anchorItems/AnchorItemsPanel.d.ts +29 -0
- package/types/src/anchorItems/AnchorItemsPanel.d.ts.map +1 -0
- package/types/src/anchorItems/index.d.ts +3 -0
- package/types/src/anchorItems/index.d.ts.map +1 -0
- package/types/src/border/BorderPopupButton.d.ts +30 -0
- package/types/src/border/BorderPopupButton.d.ts.map +1 -0
- package/types/src/border/BorderStylePopupButton.d.ts +40 -0
- package/types/src/border/BorderStylePopupButton.d.ts.map +1 -0
- package/types/src/border/index.d.ts +3 -0
- package/types/src/border/index.d.ts.map +1 -0
- package/types/src/chart/command/InsertChartCommandButton.d.ts +10 -0
- package/types/src/chart/command/InsertChartCommandButton.d.ts.map +1 -0
- package/types/src/chart/command/index.d.ts +2 -0
- package/types/src/chart/command/index.d.ts.map +1 -0
- package/types/src/color/Alpha.d.ts +36 -0
- package/types/src/color/Alpha.d.ts.map +1 -0
- package/types/src/color/Checkboard.d.ts +11 -0
- package/types/src/color/Checkboard.d.ts.map +1 -0
- package/types/src/color/CheckboardUtils.d.ts +3 -0
- package/types/src/color/CheckboardUtils.d.ts.map +1 -0
- package/types/src/color/ColorButton.d.ts +21 -0
- package/types/src/color/ColorButton.d.ts.map +1 -0
- package/types/src/color/ColorButtonList.d.ts +17 -0
- package/types/src/color/ColorButtonList.d.ts.map +1 -0
- package/types/src/color/ColorPanel.d.ts +71 -0
- package/types/src/color/ColorPanel.d.ts.map +1 -0
- package/types/src/color/ColorPopupButton.d.ts +29 -0
- package/types/src/color/ColorPopupButton.d.ts.map +1 -0
- package/types/src/color/CustomColorPanel.d.ts +16 -0
- package/types/src/color/CustomColorPanel.d.ts.map +1 -0
- package/types/src/color/EditableInput.d.ts +22 -0
- package/types/src/color/EditableInput.d.ts.map +1 -0
- package/types/src/color/Hue.d.ts +29 -0
- package/types/src/color/Hue.d.ts.map +1 -0
- package/types/src/color/Saturation.d.ts +45 -0
- package/types/src/color/Saturation.d.ts.map +1 -0
- package/types/src/color/SketchFields.d.ts +9 -0
- package/types/src/color/SketchFields.d.ts.map +1 -0
- package/types/src/color/Swatch.d.ts +16 -0
- package/types/src/color/Swatch.d.ts.map +1 -0
- package/types/src/color/Types.d.ts +11 -0
- package/types/src/color/Types.d.ts.map +1 -0
- package/types/src/color/_Utils.d.ts +4 -0
- package/types/src/color/_Utils.d.ts.map +1 -0
- package/types/src/color/index.d.ts +7 -0
- package/types/src/color/index.d.ts.map +1 -0
- package/types/src/command/AccountingStyleCommandButton.d.ts +18 -0
- package/types/src/command/AccountingStyleCommandButton.d.ts.map +1 -0
- package/types/src/command/AppearanceCommandButton.d.ts +3 -0
- package/types/src/command/AppearanceCommandButton.d.ts.map +1 -0
- package/types/src/command/BorderCommandButton.d.ts +20 -0
- package/types/src/command/BorderCommandButton.d.ts.map +1 -0
- package/types/src/command/ColorCommandButton.d.ts +23 -0
- package/types/src/command/ColorCommandButton.d.ts.map +1 -0
- package/types/src/command/DocThemeCommandButton.d.ts +19 -0
- package/types/src/command/DocThemeCommandButton.d.ts.map +1 -0
- package/types/src/command/FileCommandButton.d.ts +8 -0
- package/types/src/command/FileCommandButton.d.ts.map +1 -0
- package/types/src/command/FontFamilyCommandButton.d.ts +9 -0
- package/types/src/command/FontFamilyCommandButton.d.ts.map +1 -0
- package/types/src/command/FontSizeCommandButton.d.ts +21 -0
- package/types/src/command/FontSizeCommandButton.d.ts.map +1 -0
- package/types/src/command/InsertFunctionCommandPopupButton.d.ts +9 -0
- package/types/src/command/InsertFunctionCommandPopupButton.d.ts.map +1 -0
- package/types/src/command/InsertFunctionSumCommandPopupButton.d.ts +8 -0
- package/types/src/command/InsertFunctionSumCommandPopupButton.d.ts.map +1 -0
- package/types/src/command/LanguageCommandButton.d.ts +19 -0
- package/types/src/command/LanguageCommandButton.d.ts.map +1 -0
- package/types/src/command/LocaleCommandButton.d.ts +17 -0
- package/types/src/command/LocaleCommandButton.d.ts.map +1 -0
- package/types/src/command/NumberFormatCommandButton.d.ts +6 -0
- package/types/src/command/NumberFormatCommandButton.d.ts.map +1 -0
- package/types/src/command/PasteCommandButton.d.ts +14 -0
- package/types/src/command/PasteCommandButton.d.ts.map +1 -0
- package/types/src/command/PresetCellStylesCommandButton.d.ts +11 -0
- package/types/src/command/PresetCellStylesCommandButton.d.ts.map +1 -0
- package/types/src/command/PresetTableStylesCommandButton.d.ts +12 -0
- package/types/src/command/PresetTableStylesCommandButton.d.ts.map +1 -0
- package/types/src/command/RegisterCatalog.d.ts +3 -0
- package/types/src/command/RegisterCatalog.d.ts.map +1 -0
- package/types/src/command/SheetCommandGroups.d.ts +10 -0
- package/types/src/command/SheetCommandGroups.d.ts.map +1 -0
- package/types/src/command/SheetZoomCommandButton.d.ts +9 -0
- package/types/src/command/SheetZoomCommandButton.d.ts.map +1 -0
- package/types/src/command/StudioCommandGroups.d.ts +11 -0
- package/types/src/command/StudioCommandGroups.d.ts.map +1 -0
- package/types/src/command/TextEffectsCommandButton.d.ts +6 -0
- package/types/src/command/TextEffectsCommandButton.d.ts.map +1 -0
- package/types/src/command/TextRotateGroupButton.d.ts +14 -0
- package/types/src/command/TextRotateGroupButton.d.ts.map +1 -0
- package/types/src/command/UndoRedoCommandButton.d.ts +14 -0
- package/types/src/command/UndoRedoCommandButton.d.ts.map +1 -0
- package/types/src/command/WalkingCopyCommandButton.d.ts +6 -0
- package/types/src/command/WalkingCopyCommandButton.d.ts.map +1 -0
- package/types/src/command/WorkbookCommandGroups.d.ts +11 -0
- package/types/src/command/WorkbookCommandGroups.d.ts.map +1 -0
- package/types/src/command/index.d.ts +23 -0
- package/types/src/command/index.d.ts.map +1 -0
- package/types/src/conditionalFormat/ColorScaleRulePanel.d.ts +18 -0
- package/types/src/conditionalFormat/ColorScaleRulePanel.d.ts.map +1 -0
- package/types/src/conditionalFormat/ConditionalFormatDetailsPanel.d.ts +23 -0
- package/types/src/conditionalFormat/ConditionalFormatDetailsPanel.d.ts.map +1 -0
- package/types/src/conditionalFormat/ConditionalFormatDetailsTaskPane.d.ts +4 -0
- package/types/src/conditionalFormat/ConditionalFormatDetailsTaskPane.d.ts.map +1 -0
- package/types/src/conditionalFormat/ConditionalFormatEditorPanel.d.ts +20 -0
- package/types/src/conditionalFormat/ConditionalFormatEditorPanel.d.ts.map +1 -0
- package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +2 -0
- package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts.map +1 -0
- package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +32 -0
- package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts.map +1 -0
- package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +34 -0
- package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts.map +1 -0
- package/types/src/conditionalFormat/ConditionalFormatTitle.d.ts +10 -0
- package/types/src/conditionalFormat/ConditionalFormatTitle.d.ts.map +1 -0
- package/types/src/conditionalFormat/DataBarRulePanel.d.ts +23 -0
- package/types/src/conditionalFormat/DataBarRulePanel.d.ts.map +1 -0
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +23 -0
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts.map +1 -0
- package/types/src/conditionalFormat/PresetChip.d.ts +17 -0
- package/types/src/conditionalFormat/PresetChip.d.ts.map +1 -0
- package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts +20 -0
- package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts.map +1 -0
- package/types/src/conditionalFormat/RulePreview.d.ts +23 -0
- package/types/src/conditionalFormat/RulePreview.d.ts.map +1 -0
- package/types/src/conditionalFormat/RuleSection.d.ts +20 -0
- package/types/src/conditionalFormat/RuleSection.d.ts.map +1 -0
- package/types/src/conditionalFormat/ScaleMiniGrid.d.ts +59 -0
- package/types/src/conditionalFormat/ScaleMiniGrid.d.ts.map +1 -0
- package/types/src/conditionalFormat/ScaleStopRow.d.ts +34 -0
- package/types/src/conditionalFormat/ScaleStopRow.d.ts.map +1 -0
- package/types/src/conditionalFormat/index.d.ts +3 -0
- package/types/src/conditionalFormat/index.d.ts.map +1 -0
- package/types/src/conditionalFormat/previewColor.d.ts +50 -0
- package/types/src/conditionalFormat/previewColor.d.ts.map +1 -0
- package/types/src/conditions/AverageOption.d.ts +25 -0
- package/types/src/conditions/AverageOption.d.ts.map +1 -0
- package/types/src/conditions/BetweenOption.d.ts +25 -0
- package/types/src/conditions/BetweenOption.d.ts.map +1 -0
- package/types/src/conditions/BooleanOption.d.ts +24 -0
- package/types/src/conditions/BooleanOption.d.ts.map +1 -0
- package/types/src/conditions/CombinatorOption.d.ts +41 -0
- package/types/src/conditions/CombinatorOption.d.ts.map +1 -0
- package/types/src/conditions/ConditionEditor.d.ts +57 -0
- package/types/src/conditions/ConditionEditor.d.ts.map +1 -0
- package/types/src/conditions/ConditionUtils.d.ts +83 -0
- package/types/src/conditions/ConditionUtils.d.ts.map +1 -0
- package/types/src/conditions/DateTimeOption.d.ts +43 -0
- package/types/src/conditions/DateTimeOption.d.ts.map +1 -0
- package/types/src/conditions/ExpressionOption.d.ts +26 -0
- package/types/src/conditions/ExpressionOption.d.ts.map +1 -0
- package/types/src/conditions/InSetOption.d.ts +37 -0
- package/types/src/conditions/InSetOption.d.ts.map +1 -0
- package/types/src/conditions/NumberOption.d.ts +24 -0
- package/types/src/conditions/NumberOption.d.ts.map +1 -0
- package/types/src/conditions/OperatorAndParamEditor.d.ts +55 -0
- package/types/src/conditions/OperatorAndParamEditor.d.ts.map +1 -0
- package/types/src/conditions/OperatorSelect.d.ts +35 -0
- package/types/src/conditions/OperatorSelect.d.ts.map +1 -0
- package/types/src/conditions/OperatorSelectPopupButton.d.ts +39 -0
- package/types/src/conditions/OperatorSelectPopupButton.d.ts.map +1 -0
- package/types/src/conditions/ScalarOption.d.ts +29 -0
- package/types/src/conditions/ScalarOption.d.ts.map +1 -0
- package/types/src/conditions/SelectorSelect.d.ts +43 -0
- package/types/src/conditions/SelectorSelect.d.ts.map +1 -0
- package/types/src/conditions/StringOption.d.ts +24 -0
- package/types/src/conditions/StringOption.d.ts.map +1 -0
- package/types/src/conditions/TimePeriodOption.d.ts +25 -0
- package/types/src/conditions/TimePeriodOption.d.ts.map +1 -0
- package/types/src/conditions/TopNOption.d.ts +25 -0
- package/types/src/conditions/TopNOption.d.ts.map +1 -0
- package/types/src/conditions/index.d.ts +13 -0
- package/types/src/conditions/index.d.ts.map +1 -0
- package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +16 -0
- package/types/src/dataValidation/DataValidationDetailsPanel.d.ts.map +1 -0
- package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -0
- package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts.map +1 -0
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +12 -0
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts.map +1 -0
- package/types/src/dataValidation/DataValidationPlugin.d.ts +2 -0
- package/types/src/dataValidation/DataValidationPlugin.d.ts.map +1 -0
- package/types/src/dataValidation/index.d.ts +2 -0
- package/types/src/dataValidation/index.d.ts.map +1 -0
- package/types/src/debug/DebugUtils.d.ts +4 -0
- package/types/src/debug/DebugUtils.d.ts.map +1 -0
- package/types/src/debug/index.d.ts +2 -0
- package/types/src/debug/index.d.ts.map +1 -0
- package/types/src/dialog/CommentsDialog.d.ts +11 -0
- package/types/src/dialog/CommentsDialog.d.ts.map +1 -0
- package/types/src/dialog/FindReplaceWindow.d.ts +13 -0
- package/types/src/dialog/FindReplaceWindow.d.ts.map +1 -0
- package/types/src/dialog/HyperlinkDialog.d.ts +28 -0
- package/types/src/dialog/HyperlinkDialog.d.ts.map +1 -0
- package/types/src/dialog/InsertFunctionDialog.d.ts +25 -0
- package/types/src/dialog/InsertFunctionDialog.d.ts.map +1 -0
- package/types/src/dialog/NamedReferenceDialog.d.ts +17 -0
- package/types/src/dialog/NamedReferenceDialog.d.ts.map +1 -0
- package/types/src/dialog/NumberFormatDialog.d.ts +12 -0
- package/types/src/dialog/NumberFormatDialog.d.ts.map +1 -0
- package/types/src/dialog/ResizeHeaderDialog.d.ts +15 -0
- package/types/src/dialog/ResizeHeaderDialog.d.ts.map +1 -0
- package/types/src/dialog/ShortcutKeysDialog.d.ts +9 -0
- package/types/src/dialog/ShortcutKeysDialog.d.ts.map +1 -0
- package/types/src/dialog/ShortcutKeysPanel.d.ts +28 -0
- package/types/src/dialog/ShortcutKeysPanel.d.ts.map +1 -0
- package/types/src/dialog/SortDialog.d.ts +9 -0
- package/types/src/dialog/SortDialog.d.ts.map +1 -0
- package/types/src/dialog/TableNewDialog.d.ts +14 -0
- package/types/src/dialog/TableNewDialog.d.ts.map +1 -0
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +13 -0
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts.map +1 -0
- package/types/src/dialog/index.d.ts +10 -0
- package/types/src/dialog/index.d.ts.map +1 -0
- package/types/src/filter/ColumnMenu.d.ts +13 -0
- package/types/src/filter/ColumnMenu.d.ts.map +1 -0
- package/types/src/filter/FilterList.d.ts +28 -0
- package/types/src/filter/FilterList.d.ts.map +1 -0
- package/types/src/filter/index.d.ts +3 -0
- package/types/src/filter/index.d.ts.map +1 -0
- package/types/src/form/FormulaField.d.ts +221 -0
- package/types/src/form/FormulaField.d.ts.map +1 -0
- package/types/src/form/InputField.d.ts +89 -0
- package/types/src/form/InputField.d.ts.map +1 -0
- package/types/src/form/index.d.ts +3 -0
- package/types/src/form/index.d.ts.map +1 -0
- package/types/src/formulaBar/FormulaBar.d.ts +8 -0
- package/types/src/formulaBar/FormulaBar.d.ts.map +1 -0
- package/types/src/formulaBar/IFormulaBar.d.ts +51 -0
- package/types/src/formulaBar/IFormulaBar.d.ts.map +1 -0
- package/types/src/formulaBar/index.d.ts +3 -0
- package/types/src/formulaBar/index.d.ts.map +1 -0
- package/types/src/function/FunctionArgumentsPanel.d.ts +57 -0
- package/types/src/function/FunctionArgumentsPanel.d.ts.map +1 -0
- package/types/src/function/FunctionSearchPanel.d.ts +35 -0
- package/types/src/function/FunctionSearchPanel.d.ts.map +1 -0
- package/types/src/function/InsertFunctionWizard.d.ts +79 -0
- package/types/src/function/InsertFunctionWizard.d.ts.map +1 -0
- package/types/src/function/index.d.ts +4 -0
- package/types/src/function/index.d.ts.map +1 -0
- package/types/src/function/paneMetrics.d.ts +33 -0
- package/types/src/function/paneMetrics.d.ts.map +1 -0
- package/types/src/index.d.ts +21 -0
- package/types/src/index.d.ts.map +1 -0
- package/types/src/itemsPanel/EditorPanel.d.ts +21 -0
- package/types/src/itemsPanel/EditorPanel.d.ts.map +1 -0
- package/types/src/itemsPanel/ItemCard.d.ts +57 -0
- package/types/src/itemsPanel/ItemCard.d.ts.map +1 -0
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +215 -0
- package/types/src/itemsPanel/ItemsDescriptor.d.ts.map +1 -0
- package/types/src/itemsPanel/ItemsPanel.d.ts +45 -0
- package/types/src/itemsPanel/ItemsPanel.d.ts.map +1 -0
- package/types/src/itemsPanel/SortableCards.d.ts +67 -0
- package/types/src/itemsPanel/SortableCards.d.ts.map +1 -0
- package/types/src/itemsPanel/index.d.ts +6 -0
- package/types/src/itemsPanel/index.d.ts.map +1 -0
- package/types/src/movable/MovableContextMenu.d.ts +13 -0
- package/types/src/movable/MovableContextMenu.d.ts.map +1 -0
- package/types/src/movable/index.d.ts +2 -0
- package/types/src/movable/index.d.ts.map +1 -0
- package/types/src/named/INamedCollectionEditor.d.ts +37 -0
- package/types/src/named/INamedCollectionEditor.d.ts.map +1 -0
- package/types/src/named/NamedCollectionEditor.d.ts +7 -0
- package/types/src/named/NamedCollectionEditor.d.ts.map +1 -0
- package/types/src/named/NamedDetailsPanel.d.ts +11 -0
- package/types/src/named/NamedDetailsPanel.d.ts.map +1 -0
- package/types/src/named/NamedDetailsTaskPane.d.ts +3 -0
- package/types/src/named/NamedDetailsTaskPane.d.ts.map +1 -0
- package/types/src/named/NamedDraft.d.ts +68 -0
- package/types/src/named/NamedDraft.d.ts.map +1 -0
- package/types/src/named/NamedEditorPanel.d.ts +19 -0
- package/types/src/named/NamedEditorPanel.d.ts.map +1 -0
- package/types/src/named/NamedPlugin.d.ts +2 -0
- package/types/src/named/NamedPlugin.d.ts.map +1 -0
- package/types/src/named/index.d.ts +8 -0
- package/types/src/named/index.d.ts.map +1 -0
- package/types/src/numberFormat/NumberFormatPanel.d.ts +29 -0
- package/types/src/numberFormat/NumberFormatPanel.d.ts.map +1 -0
- package/types/src/numberFormat/NumberFormatTaskPane.d.ts +12 -0
- package/types/src/numberFormat/NumberFormatTaskPane.d.ts.map +1 -0
- package/types/src/numberFormat/index.d.ts +8 -0
- package/types/src/numberFormat/index.d.ts.map +1 -0
- package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +20 -0
- package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts.map +1 -0
- package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +3 -0
- package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts.map +1 -0
- package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +27 -0
- package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts.map +1 -0
- package/types/src/protectedRange/ProtectedRangePlugin.d.ts +2 -0
- package/types/src/protectedRange/ProtectedRangePlugin.d.ts.map +1 -0
- package/types/src/protectedRange/index.d.ts +2 -0
- package/types/src/protectedRange/index.d.ts.map +1 -0
- package/types/src/protection/WorkbookProtectionDialog.d.ts +23 -0
- package/types/src/protection/WorkbookProtectionDialog.d.ts.map +1 -0
- package/types/src/protection/WorkbookProtectionPanel.d.ts +51 -0
- package/types/src/protection/WorkbookProtectionPanel.d.ts.map +1 -0
- package/types/src/protection/index.d.ts +3 -0
- package/types/src/protection/index.d.ts.map +1 -0
- package/types/src/sheet/SheetTabMenu.d.ts +21 -0
- package/types/src/sheet/SheetTabMenu.d.ts.map +1 -0
- package/types/src/sheet/SheetsAllMenu.d.ts +16 -0
- package/types/src/sheet/SheetsAllMenu.d.ts.map +1 -0
- package/types/src/sheet/index.d.ts +3 -0
- package/types/src/sheet/index.d.ts.map +1 -0
- package/types/src/statusBar/NumberStats.d.ts +27 -0
- package/types/src/statusBar/NumberStats.d.ts.map +1 -0
- package/types/src/statusBar/SheetZoomScale.d.ts +11 -0
- package/types/src/statusBar/SheetZoomScale.d.ts.map +1 -0
- package/types/src/statusBar/StatusBar.d.ts +35 -0
- package/types/src/statusBar/StatusBar.d.ts.map +1 -0
- package/types/src/statusBar/index.d.ts +4 -0
- package/types/src/statusBar/index.d.ts.map +1 -0
- package/types/src/studio/CommandsWrapper.d.ts +36 -0
- package/types/src/studio/CommandsWrapper.d.ts.map +1 -0
- package/types/src/studio/DefaultLogo.d.ts +3 -0
- package/types/src/studio/DefaultLogo.d.ts.map +1 -0
- package/types/src/studio/EagerStudio.d.ts +5 -0
- package/types/src/studio/EagerStudio.d.ts.map +1 -0
- package/types/src/studio/Studio.d.ts +26 -0
- package/types/src/studio/Studio.d.ts.map +1 -0
- package/types/src/studio/StudioCommandProvider.d.ts +26 -0
- package/types/src/studio/StudioCommandProvider.d.ts.map +1 -0
- package/types/src/studio/StudioCommands.d.ts +115 -0
- package/types/src/studio/StudioCommands.d.ts.map +1 -0
- package/types/src/studio/StudioNotifierProvider.d.ts +10 -0
- package/types/src/studio/StudioNotifierProvider.d.ts.map +1 -0
- package/types/src/studio/StudioProps.d.ts +372 -0
- package/types/src/studio/StudioProps.d.ts.map +1 -0
- package/types/src/studio/StudioSplitPane.d.ts +60 -0
- package/types/src/studio/StudioSplitPane.d.ts.map +1 -0
- package/types/src/studio/StudioTaskPaneArea.d.ts +8 -0
- package/types/src/studio/StudioTaskPaneArea.d.ts.map +1 -0
- package/types/src/studio/StudioToolbar.d.ts +37 -0
- package/types/src/studio/StudioToolbar.d.ts.map +1 -0
- package/types/src/studio/index.d.ts +4 -0
- package/types/src/studio/index.d.ts.map +1 -0
- package/types/src/studio/useStudioApp.d.ts +51 -0
- package/types/src/studio/useStudioApp.d.ts.map +1 -0
- package/types/src/table/TableDetailsPanel.d.ts +17 -0
- package/types/src/table/TableDetailsPanel.d.ts.map +1 -0
- package/types/src/table/TableDetailsTaskPane.d.ts +3 -0
- package/types/src/table/TableDetailsTaskPane.d.ts.map +1 -0
- package/types/src/table/TablePlugin.d.ts +2 -0
- package/types/src/table/TablePlugin.d.ts.map +1 -0
- package/types/src/table/TableStyleCanvasPreview.d.ts +21 -0
- package/types/src/table/TableStyleCanvasPreview.d.ts.map +1 -0
- package/types/src/table/TableStyleOptionsPanel.d.ts +38 -0
- package/types/src/table/TableStyleOptionsPanel.d.ts.map +1 -0
- package/types/src/table/TableStylePreview.d.ts +43 -0
- package/types/src/table/TableStylePreview.d.ts.map +1 -0
- package/types/src/table/index.d.ts +7 -0
- package/types/src/table/index.d.ts.map +1 -0
- package/types/src/theme/ThemeSelectButton.d.ts +23 -0
- package/types/src/theme/ThemeSelectButton.d.ts.map +1 -0
- package/types/src/theme/ThemeSelectPanel.d.ts +17 -0
- package/types/src/theme/ThemeSelectPanel.d.ts.map +1 -0
- package/types/src/theme/ThemeSelectPopupButton.d.ts +24 -0
- package/types/src/theme/ThemeSelectPopupButton.d.ts.map +1 -0
- package/types/src/theme/ThemeUtils.d.ts +57 -0
- package/types/src/theme/ThemeUtils.d.ts.map +1 -0
- package/types/src/theme/index.d.ts +5 -0
- package/types/src/theme/index.d.ts.map +1 -0
- package/types/src/toast/ToastError.d.ts +10 -0
- package/types/src/toast/ToastError.d.ts.map +1 -0
- package/types/src/toast/index.d.ts +2 -0
- package/types/src/toast/index.d.ts.map +1 -0
- package/types/src/toolbar/WorkbookToolbars.d.ts +46 -0
- package/types/src/toolbar/WorkbookToolbars.d.ts.map +1 -0
- package/types/src/toolbar/index.d.ts +2 -0
- package/types/src/toolbar/index.d.ts.map +1 -0
- package/types/src/workbook/DefaultRenderers.d.ts +23 -0
- package/types/src/workbook/DefaultRenderers.d.ts.map +1 -0
- package/types/src/workbook/DocumentTitle.d.ts +69 -0
- package/types/src/workbook/DocumentTitle.d.ts.map +1 -0
- package/types/src/workbook/WorkbookContextMenu.d.ts +13 -0
- package/types/src/workbook/WorkbookContextMenu.d.ts.map +1 -0
- package/types/src/workbook/WorkbookElement.d.ts +12 -0
- package/types/src/workbook/WorkbookElement.d.ts.map +1 -0
- package/types/src/workbook/WorkbookStrip.d.ts +37 -0
- package/types/src/workbook/WorkbookStrip.d.ts.map +1 -0
- package/types/src/workbook/index.d.ts +7 -0
- package/types/src/workbook/index.d.ts.map +1 -0
- package/browser/cjs/7uRpnSJkNHg_E-KO.cjs +0 -6
- package/browser/cjs/B-O26BvbKDImp7pm.cjs +0 -20
- package/browser/cjs/B4j_sdzJNzq1ZPbT.cjs +0 -6
- package/browser/cjs/BWS4gFWp8lDPvR9C.cjs +0 -6
- package/browser/cjs/CmSwD6NZAHhOcRi3.cjs +0 -6
- package/browser/cjs/DHwhTAQeNs4slttB.cjs +0 -6
- package/browser/cjs/DMOT_ixtKqRvPULq.cjs +0 -6
- package/browser/cjs/DX5ji_lT0Qlqznv7.cjs +0 -42
- package/browser/cjs/DbqHWelIXc-F2a9N.cjs +0 -6
- package/browser/cjs/muTJOFrCXh156rjc.cjs +0 -6
- package/browser/cjs/rIy1Cx7HX-8zaQjY.cjs +0 -18
- package/browser/cjs/saPH3d5fE-ugXp6m.cjs +0 -7
- package/browser/esm/0D8VtNalLeBTB51a.mjs +0 -640
- package/browser/esm/BMo7K5LaD7zuDVg9.mjs +0 -2159
- package/browser/esm/BNmwaUWz2DJqWumP.mjs +0 -25
- package/browser/esm/Btt4G85L5v01eySb.mjs +0 -46
- package/browser/esm/C7jHdVMf6Yr4eH_B.mjs +0 -50
- package/browser/esm/CROTe62QHFVo8YMt.mjs +0 -155
- package/browser/esm/D5XNYGaC4Yw6vCRL.mjs +0 -54
- package/browser/esm/DUzVAMWTrS0u37LX.mjs +0 -2411
- package/browser/esm/DltuoFr9A-WJccbV.mjs +0 -26
- package/browser/esm/DtifaYF85GrfJ9_1.mjs +0 -50
- package/browser/esm/aUkJls9HzxnrZSof.mjs +0 -53
- package/browser/esm/mqkuG-TcLS4nn4x0.mjs +0 -4531
- package/node/assets/style.css +0 -1
- package/node/esm/BYjJIMFsheqJcsEI.mjs +0 -57
- package/node/esm/CACqTiBtxYlo1mu7.mjs +0 -26
- package/node/esm/CJU8jJhxtR3PEj2I.mjs +0 -52
- package/node/esm/CS0OWM24rZpAGRKU.mjs +0 -50
- package/node/esm/CdUceTAldsMTIFnD.mjs +0 -53
- package/node/esm/D6B7z_d11sd-U1fU.mjs +0 -46
- package/node/esm/DCngEQG4um0yTeoj.mjs +0 -91
- package/node/esm/DQnCFz2zJgMwLou_.mjs +0 -88
- package/node/esm/Do7ts-uMkQANfvhq.mjs +0 -156
- package/node/esm/oYh6joioOWhFd_R3.mjs +0 -25
package/node/assets/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._sheetxl-reset_11z3j_1{display:block;margin:0;padding:0;line-height:1}._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{display:block;width:auto;height:auto;margin:0;padding:0;border:none;border-collapse:inherit;border-spacing:0;border-color:inherit;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0}._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{display:grid;grid-template-columns:1fr;user-select:none}@container (width > 600px){._table-style-options_1kfn2_1{grid-template-rows:repeat(3,auto);grid-auto-flow:column;grid-auto-columns:1fr;gap:2px}}._range-row_akhf4_1{display:flex;flex-direction:column;flex:1 1 100%;width:100%;align-items:center}@container (width > 600px){._range-row_akhf4_1{flex-direction:row;gap:12px;justify-content:space-between}}._action-row_akhf4_15{display:flex;align-items:start;flex-direction:column;width:100%;gap:4px}@container (width > 600px){._action-row_akhf4_15{align-items:center;flex-direction:row;justify-content:space-evenly}}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4{fill:currentColor}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .activeColor{fill:var(--sxl-color-active)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .background{fill:var(--sxl-app-color-background)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .grey{fill:var(--sxl-app-color-grey)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .highContrast{fill:var(--sxl-app-color-high)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info{fill:var(--sxl-app-color-info)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.light{fill:var(--sxl-app-color-info-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.dark{fill:var(--sxl-app-color-info-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary{fill:var(--sxl-app-color-secondary)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.light{fill:var(--sxl-app-color-secondary-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.dark{fill:var(--sxl-app-color-secondary-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success{fill:var(--sxl-app-color-success)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.light{fill:var(--sxl-app-color-success-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.dark{fill:var(--sxl-app-color-success-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning{fill:var(--sxl-app-color-warning)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .light{fill:var(--sxl-app-color-warning-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .dark{fill:var(--sxl-app-color-warning-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error{fill:var(--sxl-app-color-error)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .light{fill:var(--sxl-app-color-error-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .dark{fill:var(--sxl-app-color-error-dark)}._sheetxl-workbook_g5t6x_5{display:flex;position:relative;overflow:hidden;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;outline:none}._sheetxl-workbook_g5t6x_5 .splitPane .styled-resizer{background-color:var(--sxl-app-color-grey, grey)}._sheetxl-workbook_g5t6x_5 .splitPane .styled-resizer:hover,._sheetxl-workbook_g5t6x_5 .splitPane.dragging .styled-resizer{background-color:var(--sxl-app-color-primary, blue)}._card_1a398_7{width:100%}._actionRoot_1a398_11{padding:8px 8px 8px 16px;justify-content:space-between}._icons_1a398_16{margin-left:auto;display:flex;align-items:center}._expand_1a398_22{padding:8px;transform:rotate(0);color:#d32f2f;transition:all .2s ease-in-out}._expandOpen_1a398_29{transform:rotate(180deg)}._stackTraceContainer_1a398_33{padding:16px}._paper_1a398_37{background-color:#fff;padding:16px}._checkIcon_1a398_42{font-size:20px;padding-right:4px}._button_1a398_47{padding:0;text-transform:none}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.21
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
8
|
-
import { memo as o, useState as a, useCallback as n, useEffect as i, useMemo as r } from "react";
|
|
9
|
-
import { alpha as l, getOverlayAlpha as s } from "@mui/material/styles";
|
|
10
|
-
import { Box as p, FormControl as c, InputLabel as u, Select as m, TextField as d, Typography as g, MenuItem as f } from "@mui/material";
|
|
11
|
-
import { NumberFormat as y } from "@sheetxl/sdk";
|
|
12
|
-
import { useCallbackRef as h, KeyCodes as x } from "@sheetxl/utils-react";
|
|
13
|
-
import { OptionsDialog as C } from "@sheetxl/utils-mui";
|
|
14
|
-
const v = ["Ok", "Cancel"], b = o((o2) => {
|
|
15
|
-
const { initialValue: b2, context: T, onOption: k, onValidateOption: O, onInput: w, onDone: F, options: S = v, defaultOption: P = S?.[0], cancelOption: $ = "Cancel", sx: D, ...I } = o2, [V, N] = a(b2), [j, z] = a(false), B = n(async (e2, t2) => true, []), L = h(async (e2) => {
|
|
16
|
-
const t2 = e2 === $;
|
|
17
|
-
t2 || w?.(V, e2), k?.(e2, t2, e2 === P), F?.();
|
|
18
|
-
}, [V, w, F, k, $, P]), M = h(async (e2) => {
|
|
19
|
-
if (e2.keyCode === x.Enter) {
|
|
20
|
-
false !== await B?.(V, null) && L(P);
|
|
21
|
-
}
|
|
22
|
-
}, [V, L]), R = h((e2) => {
|
|
23
|
-
N(e2.target.value), B?.(e2.target.value, null);
|
|
24
|
-
}, [O]), W = h(async (e2) => {
|
|
25
|
-
let t2 = await Promise.resolve(O?.(e2));
|
|
26
|
-
try {
|
|
27
|
-
false !== t2 && (t2 = await Promise.resolve(B?.(V, e2)) ?? true);
|
|
28
|
-
} catch (e3) {
|
|
29
|
-
}
|
|
30
|
-
return t2 ?? true;
|
|
31
|
-
}, [O]), [E, G] = a(y.Styles.lookupStyle(V).formatType ?? y.Type.Custom);
|
|
32
|
-
i(() => {
|
|
33
|
-
G(y.Styles.lookupStyle(V).formatType ?? y.Type.Custom);
|
|
34
|
-
}, [V]);
|
|
35
|
-
const H = r(() => {
|
|
36
|
-
const t2 = y.Styles.lookupPrimary(), o3 = (t3) => e(f, { value: t3, children: t3 }, t3), a2 = Object.keys(t2).map((e2) => o3(t2[e2].formatType));
|
|
37
|
-
return a2.push(o3(y.Type.Custom)), a2;
|
|
38
|
-
}, []), K = n((e2) => {
|
|
39
|
-
const t2 = e2.target.value;
|
|
40
|
-
G(t2);
|
|
41
|
-
const o3 = y.Styles.lookupDefault(t2);
|
|
42
|
-
o3 && N(o3);
|
|
43
|
-
}, []), q = r(() => {
|
|
44
|
-
const e2 = T?.();
|
|
45
|
-
if (!e2) return null;
|
|
46
|
-
return e2.createTemporaryCell({ value: e2.getValue() ?? 12345, style: { numberFormat: V } });
|
|
47
|
-
}, [E, V, T]);
|
|
48
|
-
return e(C, { title: "Number Format", options: S, onDone: F, onOption: (e2) => L(e2), onValidateOption: W, defaultOption: P, cancelOption: $, autoFocusSel: ".autoFocus", sx: { width: "580px", ...D }, ...I, children: t(p, { sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(0), rowGap: (e2) => e2.spacing(1), display: "flex", flexDirection: "column" }, children: [t(c, { sx: { minWidth: 135 }, size: "small", children: [e(u, { children: "Category" }), e(m, { value: E, label: "Category", onChange: K, sx: { backgroundImage: `linear-gradient(${l("#fff", s(5))}, ${l("#fff", s(5))})` }, children: H })] }), e(c, { sx: { paddingTop: (e2) => e2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: e(d, { label: "Code", onFocus: (e2) => {
|
|
49
|
-
j || e2.target?.select(), z(true);
|
|
50
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (e2) => e2.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { className: "autoFocus", spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", s(5))}, ${l("#fff", s(5))})` } } }, value: V, onChange: R, onKeyDown: M, onContextMenu: (e2) => {
|
|
51
|
-
e2.stopPropagation();
|
|
52
|
-
} }) }), t(p, { children: [e(g, { variant: "caption", component: "div", sx: { paddingLeft: (e2) => e2.spacing(2) }, children: "Preview" }), e(g, { variant: "body2", component: "div", sx: { borderRadius: (e2) => `${e2.shape.borderRadius}px`, padding: (e2) => e2.spacing(1), border: (e2) => `1px solid ${e2.palette.grey[400]}` }, children: q?.getNumberFormat().displayText || "(empty)" })] })] }) });
|
|
53
|
-
});
|
|
54
|
-
export {
|
|
55
|
-
b as NumberFormatDialog,
|
|
56
|
-
b as default
|
|
57
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.21
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
8
|
-
import { memo as t, useState as i } from "react";
|
|
9
|
-
import { Box as o, FormControlLabel as l, Checkbox as r } from "@mui/material";
|
|
10
|
-
import { Sort as a, IRange as s } from "@sheetxl/sdk";
|
|
11
|
-
import { useCallbackRef as c } from "@sheetxl/utils-react";
|
|
12
|
-
import { OptionsDialog as d } from "@sheetxl/utils-mui";
|
|
13
|
-
const m = t((t2) => {
|
|
14
|
-
const { initialValue: m2, context: u, onInput: p, onDone: h, ...v } = t2, C = u?.().range, O = u?.().cell.toString(), [f, H] = i(m2 ?? a.DefaultRangeOptions), b = c((e2) => {
|
|
15
|
-
let n2 = null;
|
|
16
|
-
"Sort" === e2 && (n2 = { ...m2, ...f }), p?.(n2), h?.(n2);
|
|
17
|
-
}, [f, h, p, m2]);
|
|
18
|
-
return e(d, { title: "Sort", options: ["Sort", "Cancel"], onDone: b, ...v, children: n(o, { sx: { display: "flex", flexDirection: "column" }, children: [e(l, { control: e(r, { checked: !f.reverse, onChange: () => H((e2) => ({ ...e2, reverse: !e2.reverse })) }), label: "Is Ascending", labelPlacement: "end" }), e(l, { control: e(r, { checked: f.hasHeader, onChange: () => H((e2) => ({ ...e2, hasHeader: !e2.hasHeader })) }), label: "Has Header", labelPlacement: "end" }), e(l, { control: e(r, { checked: f.collatorOptions?.sensitivity === a.CaseSensitiveOptions.sensitivity, onChange: () => H((e2) => ({ ...e2, collatorOptions: f.collatorOptions?.sensitivity === a.CaseSensitiveOptions.sensitivity ? a.CaseInsensitiveOptions : a.CaseSensitiveOptions })) }), label: "Case Sensitive", labelPlacement: "end" }), e(l, { control: e(r, { checked: f.orientation === s.Orientation.Row, onChange: () => H((e2) => {
|
|
19
|
-
const n2 = e2.orientation === s.Orientation.Row ? s.Orientation.Column : s.Orientation.Row;
|
|
20
|
-
return { ...C.getDefaultSortCriteria(n2, O).options, includeHidden: e2.includeHidden, reverse: e2.reverse, orientation: n2 };
|
|
21
|
-
}) }), label: "Row Sort", labelPlacement: "end" }), e(l, { control: e(r, { checked: f.includeHidden, onChange: () => H((e2) => ({ ...e2, includeHidden: !e2.includeHidden })) }), label: "Include Hidden", labelPlacement: "end" })] }) });
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
m as SortDialog,
|
|
25
|
-
m as default
|
|
26
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.21
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
8
|
-
import { memo as e, useMemo as i, useState as o, useCallback as a } from "react";
|
|
9
|
-
import { alpha as s, getOverlayAlpha as l } from "@mui/material/styles";
|
|
10
|
-
import { Box as r, FormControl as p, TextField as c, InputLabel as u, Select as d, Typography as m, MenuItem as f } from "@mui/material";
|
|
11
|
-
import { IRange as g } from "@sheetxl/sdk";
|
|
12
|
-
import { useCallbackRef as x, KeyCodes as h } from "@sheetxl/utils-react";
|
|
13
|
-
import { OptionsDialog as y } from "@sheetxl/utils-mui";
|
|
14
|
-
const C = ["Autofit", "Ok", "Cancel"], O = e((e2) => {
|
|
15
|
-
const { initialValue: O2, context: z, onOption: v, onValidateOption: w, onInput: P, onDone: b, options: k = C, defaultOption: T = k?.[1], cancelOption: U = "Cancel", sx: D, ...F } = e2, I = i(() => z?.().getOrientation() === g.Orientation.Column, [z]), [$, M] = o(O2), [V, j] = o(false), B = a(async (t2, n2) => true, []), L = i(() => {
|
|
16
|
-
if (!z().toUnits) return null;
|
|
17
|
-
let t2 = $?.size ?? 0, n2 = "Px";
|
|
18
|
-
return "Px" === $.unit ? (t2 = z().toUnits?.(t2), n2 = z().getUnitText()) : (t2 = z().toPixels?.(t2), n2 = "Px"), { size: t2, unit: n2 };
|
|
19
|
-
}, [$?.unit, $?.size]), N = x(async (t2) => {
|
|
20
|
-
const n2 = t2 === U;
|
|
21
|
-
n2 || P?.($, t2), v?.(t2, n2, t2 === T), b?.();
|
|
22
|
-
}, [$, P, b, v, U, T]), R = x(async (t2) => {
|
|
23
|
-
if (t2.keyCode === h.Enter) {
|
|
24
|
-
false !== await B?.($, null) && N(T);
|
|
25
|
-
}
|
|
26
|
-
}, [$, N]), S = x(async (t2) => {
|
|
27
|
-
let n2 = await Promise.resolve(w?.(t2));
|
|
28
|
-
try {
|
|
29
|
-
false !== n2 && (n2 = await Promise.resolve(B?.($, t2)) ?? true);
|
|
30
|
-
} catch (t3) {
|
|
31
|
-
}
|
|
32
|
-
return n2 ?? true;
|
|
33
|
-
}, [w]), W = x((t2) => {
|
|
34
|
-
const n2 = { ...$, size: Number(t2.target.value) };
|
|
35
|
-
M(n2), B?.(n2, null);
|
|
36
|
-
}, [$, w]), A = x((t2) => {
|
|
37
|
-
const n2 = t2.target.value, e3 = { ...$, unit: n2 };
|
|
38
|
-
M(e3);
|
|
39
|
-
}, [$]), E = i(() => {
|
|
40
|
-
const n2 = z().getUnitText(), e3 = (n3) => t(f, { value: n3, children: n3 }, n3), i2 = [];
|
|
41
|
-
return i2.push(e3("Px")), i2.push(e3(n2)), i2;
|
|
42
|
-
}, []);
|
|
43
|
-
return t(y, { title: "Resize " + (I ? "Columns" : "Rows"), options: k, onDone: b, onOption: (t2) => N(t2), onValidateOption: S, defaultOption: T, cancelOption: U, autoFocusSel: ".autoFocus", sx: { width: "380px", ...D }, ...F, children: n(r, { sx: { paddingTop: (t2) => t2.spacing(0), paddingBottom: (t2) => t2.spacing(1), display: "flex", flexDirection: "column" }, children: [n(r, { sx: { rowGap: (t2) => t2.spacing(1), display: "flex", flexDirection: "row", gap: (t2) => t2.spacing(0.5), alignItems: "end", justifyContent: "center" }, children: [t(p, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(c, { label: "Size", onFocus: (t2) => {
|
|
44
|
-
V || t2.target?.select(), j(true);
|
|
45
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { className: "autoFocus", spellCheck: false, autoComplete: "off", type: "number", inputMode: "numeric", pattern: "[0-9]*", sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${s("#fff", l(5))}, ${s("#fff", l(5))})` } } }, value: $.size, onChange: W, onKeyDown: R, onContextMenu: (t2) => {
|
|
46
|
-
t2.stopPropagation();
|
|
47
|
-
} }) }), n(p, { sx: { minWidth: 85 }, size: "small", children: [t(u, { children: "Unit" }), t(d, { value: $.unit, label: "Unit", onChange: A, sx: { backgroundImage: `linear-gradient(${s("#fff", l(5))}, ${s("#fff", l(5))})` }, children: E })] })] }), L && t(r, { children: n(m, { variant: "body2", component: "div", sx: { paddingLeft: (t2) => t2.spacing(2) }, children: [L.size, " ", L.unit] }) })] }) });
|
|
48
|
-
});
|
|
49
|
-
export {
|
|
50
|
-
O as ResizeHeaderDialog,
|
|
51
|
-
O as default
|
|
52
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.21
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { jsx as t, jsxs as e } from "react/jsx-runtime";
|
|
8
|
-
import { memo as n, useMemo as o, useState as a, useCallback as i } from "react";
|
|
9
|
-
import { alpha as l, getOverlayAlpha as s } from "@mui/material/styles";
|
|
10
|
-
import { Box as r, FormControl as p, TextField as d } from "@mui/material";
|
|
11
|
-
import { useCallbackRef as c } from "@sheetxl/utils-react";
|
|
12
|
-
import { OptionsDialog as u } from "@sheetxl/utils-mui";
|
|
13
|
-
const g = ["Ok", "Cancel"], m = n((n2) => {
|
|
14
|
-
const { initialValue: m2 = null, context: f, onInput: x, onOption: h, onValidateOption: T, onDone: y, options: k = g, defaultOption: C = k?.[0], cancelOption: O = "Cancel", sx: b, ...F } = n2, v = o(() => null !== (m2 ?? f?.()?.getHyperlink()), []), w = o(() => {
|
|
15
|
-
let t2 = null, e2 = null;
|
|
16
|
-
m2 && ("string" == typeof m2 ? e2 = m2 : t2 = m2);
|
|
17
|
-
const n3 = t2 ?? f?.()?.getHyperlink();
|
|
18
|
-
return { address: e2 ?? n3?.getAddress() ?? "", textToDisplay: n3?.getDisplayText() ?? "" };
|
|
19
|
-
}, [m2, f]), [D, I] = a(w.address), [P, H] = a(() => {
|
|
20
|
-
const t2 = f?.().toTextUnformatted() ?? w.displayText;
|
|
21
|
-
return t2 === w.address ? "" : t2;
|
|
22
|
-
}), [M, $] = a(false), B = i((t2) => {
|
|
23
|
-
H(t2.target.value);
|
|
24
|
-
}, []), L = i(async (t2, e2) => null, []), V = c(async (t2) => {
|
|
25
|
-
const e2 = "" === D ? null : { address: D }, n3 = t2 === O;
|
|
26
|
-
n3 || x?.({ address: e2?.address ?? null, displayText: P ?? null }), h?.(t2, n3, t2 === C), y?.();
|
|
27
|
-
}, [D, P, f, x, y, h, C, O]), W = c((t2) => {
|
|
28
|
-
I(t2.target.value), L(t2.target.value, null);
|
|
29
|
-
}, [T]), z = c(async (t2) => {
|
|
30
|
-
let e2 = await Promise.resolve(T?.(t2));
|
|
31
|
-
try {
|
|
32
|
-
false !== e2 && (e2 = await L(D, t2));
|
|
33
|
-
} catch (t3) {
|
|
34
|
-
}
|
|
35
|
-
return e2 ?? true;
|
|
36
|
-
}, [T]);
|
|
37
|
-
return t(u, { title: (v ? "Edit" : "Insert") + " Link", options: k, onDone: y, onOption: (t2) => V(t2), onValidateOption: z, defaultOption: C, cancelOption: O, autoFocusSel: ".autoFocus", sx: { width: "480px", ...b }, ...F, children: e(r, { sx: { paddingTop: (t2) => t2.spacing(1), paddingBottom: (t2) => t2.spacing(0), rowGap: (t2) => t2.spacing(1), display: "flex", flexDirection: "column" }, children: [t(p, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(d, { label: "Address", placeholder: "Enter a url or cell reference.", onFocus: (t2) => {
|
|
38
|
-
M || t2.target?.select(), $(true);
|
|
39
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { className: "autoFocus", spellCheck: false, autoComplete: "off", sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", s(5))}, ${l("#fff", s(5))})` } } }, value: D, onChange: W, onContextMenu: (t2) => {
|
|
40
|
-
t2.stopPropagation();
|
|
41
|
-
} }) }), t(p, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(d, { label: "Display Text", placeholder: D?.startsWith("#") ? D.substring(1) : D, onFocus: () => {
|
|
42
|
-
$(true);
|
|
43
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { spellCheck: false, autoComplete: "off", sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", s(5))}, ${l("#fff", s(5))})` } } }, value: P, onChange: B, onContextMenu: (t2) => {
|
|
44
|
-
t2.stopPropagation();
|
|
45
|
-
} }) })] }) });
|
|
46
|
-
});
|
|
47
|
-
export {
|
|
48
|
-
m as HyperlinkDialog,
|
|
49
|
-
m as default
|
|
50
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.21
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
8
|
-
import { memo as n, useMemo as o, useState as e, useCallback as a } from "react";
|
|
9
|
-
import { alpha as i, getOverlayAlpha as l } from "@mui/material/styles";
|
|
10
|
-
import { Box as s, FormControl as r, TextField as c } from "@mui/material";
|
|
11
|
-
import { useCallbackRef as p } from "@sheetxl/utils-react";
|
|
12
|
-
import { OptionsDialog as m } from "@sheetxl/utils-mui";
|
|
13
|
-
const u = ["Ok", "Cancel"], d = n((n2) => {
|
|
14
|
-
const { initialValue: d2 = null, onInput: g, context: f, onOption: x, onValidateOption: h, onDone: C, options: O = u, defaultOption: y = O?.[0], cancelOption: w = "Cancel", sx: F, ...T } = n2, k = o(() => {
|
|
15
|
-
const t2 = d2 ?? f?.()?.getComments();
|
|
16
|
-
let n3 = "";
|
|
17
|
-
if (t2 && t2.content && t2.content.runs) {
|
|
18
|
-
const o2 = t2.content.runs;
|
|
19
|
-
for (let t3 = 0; t3 < o2.length; t3++) {
|
|
20
|
-
const e2 = o2[t3];
|
|
21
|
-
n3 += e2?.text;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return n3;
|
|
25
|
-
}, []), [v, I] = e(k), [b, D] = e(false), P = a(async (t2, n3) => null, []), V = p(async (t2) => {
|
|
26
|
-
const n3 = "" === v ? [] : v.split("\n"), o2 = t2 === w;
|
|
27
|
-
if (!o2) {
|
|
28
|
-
const t3 = n3.length, o3 = new Array(t3);
|
|
29
|
-
for (let e3 = 0; e3 < t3; e3++) o3[e3] = { text: n3[e3] };
|
|
30
|
-
const e2 = { content: { runs: o3 } };
|
|
31
|
-
g?.(e2);
|
|
32
|
-
}
|
|
33
|
-
x?.(t2, o2, t2 === y), C?.();
|
|
34
|
-
}, [v, g, C, x, y, w]), B = p((t2) => {
|
|
35
|
-
I(t2.target.value), P(t2.target.value, null);
|
|
36
|
-
}, [h]), E = p(async (t2) => {
|
|
37
|
-
let n3 = await Promise.resolve(h?.(t2));
|
|
38
|
-
try {
|
|
39
|
-
false !== n3 && (n3 = await P(v, t2));
|
|
40
|
-
} catch (t3) {
|
|
41
|
-
}
|
|
42
|
-
return n3 ?? true;
|
|
43
|
-
}, [h, v]);
|
|
44
|
-
return t(m, { title: (k ? "Edit" : "Insert") + " Comments", options: O, onDone: C, onOption: (t2) => V(t2), onValidateOption: E, defaultOption: y, cancelOption: w, autoFocusSel: ".autoFocus", sx: { width: "480px", ...F }, ...T, children: t(s, { sx: { paddingTop: (t2) => t2.spacing(1), paddingBottom: (t2) => t2.spacing(0), rowGap: (t2) => t2.spacing(1), display: "flex", flexDirection: "column" }, children: t(r, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(c, { label: "Comments", placeholder: "Enter a comment.", onFocus: (t2) => {
|
|
45
|
-
b || t2.target?.select(), D(true);
|
|
46
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { className: "autoFocus", spellCheck: false, autoComplete: "off", sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", l(5))}, ${i("#fff", l(5))})` } } }, value: v, onChange: B, onContextMenu: (t2) => {
|
|
47
|
-
t2.stopPropagation();
|
|
48
|
-
} }) }) }) });
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
d as CommentsDialog,
|
|
52
|
-
d as default
|
|
53
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.21
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
8
|
-
import { memo as a, useMemo as n, useState as l, useCallback as o } from "react";
|
|
9
|
-
import { Box as i } from "@mui/material";
|
|
10
|
-
import { useCallbackRef as r } from "@sheetxl/utils-react";
|
|
11
|
-
import { OptionsDialog as s } from "@sheetxl/utils-mui";
|
|
12
|
-
import { NamedInput as d, RangeInput as p } from "./index.mjs";
|
|
13
|
-
const m = ["Ok", "Cancel"], u = a((a2) => {
|
|
14
|
-
const { initialValue: u2 = null, context: c, onOption: g, onValidateOption: x, onDone: f, onInput: N, options: y = m, defaultOption: T = y?.[0], cancelOption: V = "Cancel", sx: h, ...O } = a2, v = n(() => c?.().getNames().findValidName("Range1"), []), C = n(() => {
|
|
15
|
-
if (!u2) return true;
|
|
16
|
-
}, []), [R, w] = l({ displayText: u2?.getName() ?? v, errorText: null }), [F, I] = l({ displayValue: u2?.getRanges() ?? c?.().selection() ?? null, errorText: null }), [D, j] = l(false), B = o(async (e2) => !R.errorText && !F.errorText, []), E = r((e2, t2, a3) => {
|
|
17
|
-
if (!t2) {
|
|
18
|
-
let e3 = null;
|
|
19
|
-
C ? e3 = c?.().getNames().addReference(R?.displayText, F?.displayValue, false) : ("reference" === u2.getType() && u2.doBatch(() => {
|
|
20
|
-
u2.setName(R?.displayText), u2.setReference(F?.displayValue);
|
|
21
|
-
}, `Edit Named '${R?.displayText}'`), e3 = u2), e3 && (e3.select(), N(e3));
|
|
22
|
-
}
|
|
23
|
-
g?.(e2, t2, a3), f?.();
|
|
24
|
-
}, [c, R, F, f, g, T, V, N]), L = r((e2) => {
|
|
25
|
-
let t2 = null;
|
|
26
|
-
try {
|
|
27
|
-
c?.().getNames().validateName(e2);
|
|
28
|
-
} catch (e3) {
|
|
29
|
-
t2 = e3.message;
|
|
30
|
-
}
|
|
31
|
-
w({ displayText: e2, errorText: t2 });
|
|
32
|
-
}, []), b = r((e2) => {
|
|
33
|
-
u2 && u2.getName().toLowerCase() === e2.toLowerCase() || c?.().getNames().validateName(e2);
|
|
34
|
-
}, [c, u2]), k = o((e2) => {
|
|
35
|
-
I({ displayValue: e2 ?? null, errorText: null });
|
|
36
|
-
}, []);
|
|
37
|
-
return e(s, { title: (C ? "Define" : "Edit") + " Range", options: y, onOption: E, onValidateOption: B, defaultOption: T, cancelOption: V, autoFocusSel: ".autoFocus", sx: { width: "460px", ...h }, ...O, children: t(i, { sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(0), rowGap: (e2) => e2.spacing(1), range: "flex", flexDirection: "column" }, children: [e(d, { formName: "name", defaultInput: v, value: R.displayText, onChangeInput: L, onValidate: b, onFocus: (e2) => {
|
|
38
|
-
D || e2.target?.select(), j(true);
|
|
39
|
-
} }), e(p, { formName: "range", value: F.displayValue, onChangeInput: k, resolvedAddress: c ? c().getNames().getRanges.bind(c().getNames()) : void 0, onFocus: (e2) => {
|
|
40
|
-
D || e2.target?.select(), j(true);
|
|
41
|
-
} })] }) });
|
|
42
|
-
});
|
|
43
|
-
export {
|
|
44
|
-
u as NamedReferenceDialog,
|
|
45
|
-
u as default
|
|
46
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.21
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
8
|
-
import { Box as i, TextField as n, InputAdornment as o, IconButton as r, FormControlLabel as l, Checkbox as a, Typography as d, TableCell as s, DialogContent as c } from "@mui/material";
|
|
9
|
-
import { KeyCodes as h, DynamicIcon as p } from "@sheetxl/utils-react";
|
|
10
|
-
import { toShortcutElements as m, InternalWindow as u } from "@sheetxl/utils-mui";
|
|
11
|
-
import g, { useState as f, useMemo as x, useEffect as y } from "react";
|
|
12
|
-
import b from "clsx";
|
|
13
|
-
import { alpha as w, getOverlayAlpha as R, styled as C } from "@mui/material/styles";
|
|
14
|
-
import { AutoSizer as v, Table as k, Column as $ } from "react-virtualized";
|
|
15
|
-
import { CommonUtils as D } from "@sheetxl/utils";
|
|
16
|
-
const K = "ReactVirtualizedDemo-flexContainer", I = "ReactVirtualizedDemo-tableRow", z = "ReactVirtualizedDemo-tableRowHover", H = "ReactVirtualizedDemo-tableCell", S = "ReactVirtualizedDemo-noClick";
|
|
17
|
-
class N extends g.PureComponent {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments), this.getRowClassName = ({ index: e2 }) => {
|
|
20
|
-
const { onRowClick: t2 } = this.props;
|
|
21
|
-
return b(I, K, { [z]: -1 !== e2 && null != t2 });
|
|
22
|
-
}, this.cellRenderer = ({ cellData: i2, rowData: n2, dataKey: o2, columnIndex: r2, width: l2 }) => {
|
|
23
|
-
const { columns: a2, rowHeight: d2, onRowClick: c2 } = this.props;
|
|
24
|
-
let h2 = i2, u2 = { height: d2, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${l2}px`, maxWidth: `${l2}px` };
|
|
25
|
-
if ("shortcut" === o2 ? h2 = m(i2) : "description" === o2 && (u2 = { ...u2, fontSize: ".75rem", display: "block", paddingTop: "4px", paddingRight: "8px", whiteSpace: "pre-line" }), "label" === o2) {
|
|
26
|
-
let o3 = n2.icon;
|
|
27
|
-
o3 && "string" != typeof o3 || (o3 = t(p, { iconKey: o3 })), h2 = e("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [o3, i2] });
|
|
28
|
-
}
|
|
29
|
-
return t(s, { component: "div", className: b(H, K, { [S]: null == c2 }), variant: "body", style: u2, align: null != r2 && a2[r2].numeric ? "right" : "left", children: h2 });
|
|
30
|
-
}, this.headerRenderer = ({ label: e2, columnIndex: i2, dataKey: n2, width: o2 }) => {
|
|
31
|
-
const { headerHeight: r2, columns: l2 } = this.props, a2 = l2[i2];
|
|
32
|
-
return t(s, { component: "div", className: b(H, K, S), variant: "head", sx: { width: o2, height: r2, paddingLeft: "label" === n2 ? "calc(16px + 8px + var(--icon-size, 1rem))" : void 0, backgroundColor: (e3) => e3.palette.grey[300] }, align: a2.numeric ? "right" : "left", children: t("div", { children: a2.label }) });
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
static {
|
|
36
|
-
this.defaultProps = { headerHeight: 40, rowHeight: 48 };
|
|
37
|
-
}
|
|
38
|
-
render() {
|
|
39
|
-
const { columns: e2, rowHeight: i2, headerHeight: n2, ...o2 } = this.props;
|
|
40
|
-
return t(v, { children: ({ height: r2, width: l2 }) => t(k, { height: r2, width: l2, rowHeight: i2, gridStyle: { direction: "inherit" }, headerHeight: n2, ...o2, rowClassName: this.getRowClassName, children: e2.map(({ dataKey: e3, width: i3, widthLess: n3, ...o3 }, r3) => {
|
|
41
|
-
const a2 = n3 ? l2 - n3 : i3;
|
|
42
|
-
return t($, { style: { flex: `1 1 ${a2}px` }, headerRenderer: (e4) => this.headerRenderer({ ...e4, width: a2, columnIndex: r3 }), className: K, cellDataGetter: ({ rowData: e4, columnData: t2, dataKey: i4 }) => e4[i4], cellRenderer: (e4) => this.cellRenderer({ ...e4, width: a2, columnIndex: r3 }), dataKey: e3, width: a2, ...o3 }, e3);
|
|
43
|
-
}) }) });
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
const T = C(N)(({ theme: e2 }) => ({ "& .ReactVirtualized__Table__headerRow": { ..."rtl" === e2.direction && { paddingLeft: "0 !important" }, ..."rtl" !== e2.direction && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${K}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${I}`]: { cursor: "pointer" }, [`& .${z}`]: { "&:hover:not([disabled])": { backgroundColor: e2.palette.grey[200] } }, [`& .${H}`]: { flex: 1 }, [`& .${S}`]: { cursor: "initial" } }));
|
|
47
|
-
function _(s2) {
|
|
48
|
-
const { commands: c2, ...m2 } = s2, [u2, g2] = f(false), [b2, C2] = f(""), v2 = x(() => {
|
|
49
|
-
let e2 = c2.getAllCommands();
|
|
50
|
-
u2 || (e2 = e2.filter((e3) => e3.command.shortcut())), e2.sort((e3, t3) => e3.command.label().localeCompare(t3.command.label()));
|
|
51
|
-
const t2 = [], i2 = (e3) => e3.replace(/\n\n/g, "\n"), n2 = e2.length;
|
|
52
|
-
for (let o2 = 0; o2 < n2; o2++) {
|
|
53
|
-
const n3 = e2[o2].command, r2 = n3.shortcut();
|
|
54
|
-
if (Array.isArray(r2)) {
|
|
55
|
-
const e3 = r2, o3 = e3.length;
|
|
56
|
-
for (let r3 = 0; r3 < o3; r3++) t2.push({ label: n3.label(), icon: n3.icon(), description: i2(n3.description()), shortcut: e3[r3] });
|
|
57
|
-
} else t2.push({ label: n3.label(), icon: n3.icon(), description: i2(n3.description()), shortcut: n3.shortcut() });
|
|
58
|
-
}
|
|
59
|
-
return t2;
|
|
60
|
-
}, [u2, c2]), [k2, $2] = f(null);
|
|
61
|
-
y(() => {
|
|
62
|
-
import("fuse.js").then((e2) => {
|
|
63
|
-
$2(new e2.default(v2, { threshold: 0, ignoreLocation: true, keys: ["label", "description"] }));
|
|
64
|
-
});
|
|
65
|
-
}, [v2]);
|
|
66
|
-
const [K2, I2] = f(v2), z2 = b2.length > 0 && 0 === K2.length;
|
|
67
|
-
y(() => {
|
|
68
|
-
k2 && D.debounce(() => {
|
|
69
|
-
if (0 === b2.trim().length) return void I2(v2);
|
|
70
|
-
const e2 = k2.search(b2.trim()), t2 = new Array(e2.length);
|
|
71
|
-
for (let i2 = 0; i2 < e2.length; i2++) t2[i2] = e2[i2].item;
|
|
72
|
-
I2(t2);
|
|
73
|
-
}, 90)();
|
|
74
|
-
}, [k2, b2]);
|
|
75
|
-
return e(i, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...m2, children: [e(i, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (e2) => e2.spacing(2), color: (e2) => e2.palette.text.secondary }, children: [t(n, { slotProps: { input: { sx: { backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` }, endAdornment: t(o, { sx: { opacity: b2.length > 0 ? 1 : 0, display: b2.length > 0 ? "flex" : "none" }, position: "end", children: t(r, { "aria-label": "clear search", onClick: () => C2(""), edge: "end", children: t(p, { iconKey: "Close" }) }) }) }, htmlInput: { className: "input", autoFocus: true, spellCheck: false, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(1) } } }, sx: { flex: "1 1 40%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => z2 ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => z2 ? `${e2.palette.error.main} !important` : void 0 } }, value: b2, onChange: (e2) => {
|
|
76
|
-
C2(e2.target.value);
|
|
77
|
-
}, onKeyDown: (e2) => {
|
|
78
|
-
e2.which === h.Escape && b2.length > 0 && (C2(""), e2.stopPropagation(), e2.preventDefault());
|
|
79
|
-
}, onContextMenu: (e2) => {
|
|
80
|
-
e2.stopPropagation();
|
|
81
|
-
} }), t(l, { sx: { flex: "1 1 60%" }, control: t(a, { checked: u2, onChange: () => g2(!u2) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), t(i, { sx: { flex: "1 1 100%", borderRadius: (e2) => `${e2.shape.borderRadius}px`, border: (e2) => `solid ${e2.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (e2) => e2.palette.background.paper, backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` } }, children: t(T, { rowCount: K2.length, rowGetter: (e2) => K2[e2.index], columns: [{ width: 214, label: "Command", dataKey: "label" }, { width: 226, label: "Key Binding", dataKey: "shortcut" }, { label: "Description", dataKey: "description", widthLess: 453 }] }) }), t(i, { sx: { display: "flex", flexShrink: "0", paddingLeft: (e2) => e2.spacing(1), paddingTop: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: t(d, { noWrap: true, component: "div", sx: { color: (e2) => z2 ? e2.palette.error.main : e2.palette.text.secondary }, children: `${0 === K2.length ? "No" : K2.length} shortcut key${1 === K2.length ? "" : "s"}${b2.length > 0 ? " found" : ""}` }) })] });
|
|
82
|
-
}
|
|
83
|
-
const L = (e2) => {
|
|
84
|
-
const { title: i2 = "Shortcut Keys", commands: n2, sx: o2, ...r2 } = e2;
|
|
85
|
-
return t(u, { isModal: true, onKeyDown: (e3) => {
|
|
86
|
-
e3.keyCode === h.F1 && e3.preventDefault();
|
|
87
|
-
}, sx: { width: "780px", ...o2 }, title: i2, autoFocusSel: ".input", ...r2, children: t(c, { dividers: true, children: t(_, { commands: n2, sx: { marginBottom: "8px" } }) }) });
|
|
88
|
-
};
|
|
89
|
-
export {
|
|
90
|
-
L as default
|
|
91
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.21
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
8
|
-
import { PureComponent as n, Component as i, memo as r, useState as o, useCallback as s, useLayoutEffect as a } from "react";
|
|
9
|
-
import { useTheme as l } from "@mui/material/styles";
|
|
10
|
-
import { Box as h } from "@mui/material";
|
|
11
|
-
import p from "tinycolor2";
|
|
12
|
-
import { Alpha as d, Hue as c } from "react-color/es/components/common/index.js";
|
|
13
|
-
import g from "react-color/es/components/sketch/SketchFields.js";
|
|
14
|
-
import { ReactUtils as u } from "@sheetxl/utils-react";
|
|
15
|
-
import { C as b } from "./index.mjs";
|
|
16
|
-
class m extends (n || i) {
|
|
17
|
-
constructor(e2) {
|
|
18
|
-
super(e2), this.handleChange = (e3) => {
|
|
19
|
-
"function" == typeof this.props.onChange && this.throttle(this.props.onChange, ((e4, t2, n2) => {
|
|
20
|
-
var i2 = n2.getBoundingClientRect(), r2 = i2.width, o2 = i2.height, s2 = "number" == typeof e4.pageX ? e4.pageX : e4.touches[0].pageX, a2 = "number" == typeof e4.pageY ? e4.pageY : e4.touches[0].pageY, l2 = s2 - (n2.getBoundingClientRect().left + window.pageXOffset), h2 = a2 - (n2.getBoundingClientRect().top + window.pageYOffset);
|
|
21
|
-
l2 < 0 ? l2 = 0 : l2 > r2 && (l2 = r2), h2 < 0 ? h2 = 0 : h2 > o2 && (h2 = o2);
|
|
22
|
-
var p2 = l2 / r2, d2 = 1 - h2 / o2;
|
|
23
|
-
return { h: t2.h, s: p2, v: d2, a: t2.a, source: "hsv" };
|
|
24
|
-
})(e3, this.props.hsl, this.container), e3), e3.preventDefault();
|
|
25
|
-
}, this.handleMouseDown = (e3) => {
|
|
26
|
-
this.handleChange(e3);
|
|
27
|
-
const t2 = this.getContainerRenderWindow();
|
|
28
|
-
t2.addEventListener("mousemove", this.handleChange), t2.addEventListener("mouseup", this.handleMouseUp);
|
|
29
|
-
}, this.handleMouseUp = (e3) => {
|
|
30
|
-
e3.preventDefault(), this.unbindEventListeners();
|
|
31
|
-
}, this.throttle = (function(e3, t2, n2) {
|
|
32
|
-
let i2, r2, o2, s2;
|
|
33
|
-
var a2 = 0;
|
|
34
|
-
n2 || (n2 = {});
|
|
35
|
-
let l2 = function() {
|
|
36
|
-
a2 = false === n2.leading ? 0 : Date.now(), i2 = null, s2 = e3.apply(r2, o2), i2 || (r2 = o2 = null);
|
|
37
|
-
}, h2 = function() {
|
|
38
|
-
var h3 = Date.now();
|
|
39
|
-
a2 || false !== n2.leading || (a2 = h3);
|
|
40
|
-
var p2 = t2 - (h3 - a2);
|
|
41
|
-
return r2 = this, o2 = arguments, p2 <= 0 || p2 > t2 ? (i2 && (clearTimeout(i2), i2 = null), a2 = h3, s2 = e3.apply(r2, o2), i2 || (r2 = o2 = null)) : i2 || false === n2.trailing || (i2 = setTimeout(l2, p2)), s2;
|
|
42
|
-
};
|
|
43
|
-
return h2.cancel = function() {
|
|
44
|
-
clearTimeout(i2), a2 = 0, i2 = r2 = o2 = null;
|
|
45
|
-
}, h2;
|
|
46
|
-
})((e3, t2, n2) => {
|
|
47
|
-
e3(t2, n2);
|
|
48
|
-
}, 50);
|
|
49
|
-
}
|
|
50
|
-
componentWillUnmount() {
|
|
51
|
-
this.throttle.cancel(), this.unbindEventListeners();
|
|
52
|
-
}
|
|
53
|
-
getContainerRenderWindow() {
|
|
54
|
-
const { container: e2 } = this;
|
|
55
|
-
let t2 = window;
|
|
56
|
-
for (; !t2.document.contains(e2) && t2.parent !== t2; ) t2 = t2.parent;
|
|
57
|
-
return t2;
|
|
58
|
-
}
|
|
59
|
-
unbindEventListeners() {
|
|
60
|
-
const e2 = this.getContainerRenderWindow();
|
|
61
|
-
e2.removeEventListener("mousemove", this.handleChange), e2.removeEventListener("mouseup", this.handleMouseUp);
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
const { color: n2, white: i2, black: r2, pointer: o2, circle: s2 } = this.props || {}, a2 = { position: "absolute", top: "0px", left: "0px", right: "0px", bottom: "0px" }, l2 = { color: { ...a2, backgroundColor: `hsl(${this.props.hsl?.h},100%, 50%)`, borderRadius: this.props.style?.borderRadius }, white: { ...a2, borderRadius: this.props.style?.borderRadius }, black: { ...a2, boxShadow: this.props.style?.boxShadow, borderRadius: this.props.style?.borderRadius }, pointer: { ...a2, top: -100 * this.props.hsv?.v + 100 + "%", left: 100 * this.props.hsv?.s + "%", cursor: "default" }, circle: { width: "4px", height: "4px", boxShadow: "0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)", borderRadius: "50%", cursor: "hand", transform: "translate(-2px, -2px)" } };
|
|
65
|
-
return e("div", { style: l2.color, ref: (e2) => this.container = e2, onMouseDown: this.handleMouseDown, onTouchMove: this.handleChange, onTouchStart: this.handleChange, children: [t("style", { children: "\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n " }), e("div", { style: l2.white, className: "saturation-white", children: [t("div", { style: l2.black, className: "saturation-black" }), t("div", { style: l2.pointer, children: this.props.pointer ? t(this.props.pointer, { ...this.props }) : t("div", { style: l2.circle }) })] })] });
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
const x = (e2, t2 = null) => {
|
|
69
|
-
const n2 = e2.hex ? p(e2.hex) : p(e2 || "transparent"), i2 = n2.toHsl(), r2 = n2.toHsv(), o2 = n2.toRgb(), s2 = n2.toHex();
|
|
70
|
-
return 0 === i2.s && (i2.h = t2 ?? 0, r2.h = t2 ?? 0), { hsl: i2, hex: "#" + s2, rgb: o2, hsv: r2, source: e2.source };
|
|
71
|
-
}, f = r((n2) => {
|
|
72
|
-
const { selectedColor: i2, onColorChange: r2, renderers: p2, disableAlpha: f2 = false, style: v = u.EmptyCssProperties, ...y } = n2, w = l(), [C, R] = o(() => x(i2)), [k, $] = o(C.hsl.h ?? 0), D = s((e2) => {
|
|
73
|
-
let t2 = x(e2, k);
|
|
74
|
-
return $(t2.hsl.h ?? 0), R(t2), t2;
|
|
75
|
-
}, [k]), H = s((e2) => {
|
|
76
|
-
const t2 = D(e2), n3 = `rgba(${t2.rgb.r},${t2.rgb.g},${t2.rgb.b},${f2 ? 1 : t2.rgb.a})`;
|
|
77
|
-
r2?.(n3);
|
|
78
|
-
}, [r2, D, f2]);
|
|
79
|
-
a(() => {
|
|
80
|
-
D(i2);
|
|
81
|
-
}, [i2, D]);
|
|
82
|
-
const S = t("div", { style: { position: "relative", minHeight: "10px", maxHeight: "10px", width: "100%" }, children: t(d, { style: { radius: "2px", shadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)" }, rgb: C.rgb, hsl: C.hsl, renderers: p2, onChange: H }) });
|
|
83
|
-
return e("div", { style: { display: "flex", flexDirection: "column", ...v }, ...y, children: [t("div", { style: { width: "100%", flex: "1 1 100%", position: "relative", overflow: "hidden" }, children: t(m, { style: { borderRadius: "3px", boxShadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)" }, hsl: C.hsl, hsv: C.hsv, onChange: H }) }), e("div", { style: { marginTop: "4px", display: "flex", gap: "4px" }, children: [e("div", { style: { flex: "1", display: "flex", flexDirection: f2 ? "row" : "column", justifyContent: "space-between", alignItems: "center" }, children: [t("div", { style: { position: "relative", minHeight: "10px", maxHeight: "10px", width: "100%" }, children: t(c, { style: { radius: "2px", shadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)" }, hsl: C.hsl, onChange: H }) }), f2 ? null : S] }), e("div", { style: { minWidth: "24px", maxWidth: "24px", minHeight: "24px", maxHeight: "24px", position: "relative", borderRadius: "1px", overflow: "hidden" }, children: [t(b, { grey: w.palette.text.icon ?? w.palette.action.active }), t("div", { style: { position: "absolute", height: "100%", width: "100%", background: `rgba(${C.rgb.r},${C.rgb.g},${C.rgb.b},${f2 ? 1 : C.rgb.a})`, boxShadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)" } })] })] }), t(h, { sx: { marginBottom: "4px", "& label": { fontFamily: (e2) => `${e2.typography.fontFamily} !important`, color: (e2) => `${e2.palette.text.secondary} !important` }, "& *": { fontFamily: (e2) => `${e2.typography.fontFamily} !important`, userSelect: "none" }, "& input": { paddingLeft: (e2) => `${e2.spacing(0.5)} !important`, paddingRight: (e2) => `${e2.spacing(0.5)} !important`, outline: "none", boxSizing: "border-box", width: "100% !important", textAlign: "center" } }, children: t(g, { rgb: C.rgb, hsl: C.hsl, hex: C.hex, disableAlpha: f2, onChange: H }) })] });
|
|
84
|
-
});
|
|
85
|
-
export {
|
|
86
|
-
f as CustomColorPanel,
|
|
87
|
-
f as default
|
|
88
|
-
};
|