@sheetxl/studio-mui 0.7.22 → 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 +136 -626
- 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 -1761
- 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/BCSkf7oG5MtK-XGZ.cjs +0 -6
- package/browser/cjs/BOj9VP_ZCebWTfxc.cjs +0 -6
- package/browser/cjs/Biy5SuviR3Cz0S4F.cjs +0 -6
- package/browser/cjs/C1PlAY37pY831-YP.cjs +0 -18
- package/browser/cjs/Cc3dH2YOCi1SjPK4.cjs +0 -6
- package/browser/cjs/Ccx9l-If3BC4K6LY.cjs +0 -42
- package/browser/cjs/DR8b8OAx9_mnaJoN.cjs +0 -6
- package/browser/cjs/D_R6KuQiPoJdxVa_.cjs +0 -6
- package/browser/cjs/DkGstRdRpze8sHAr.cjs +0 -7
- package/browser/cjs/StW-maKM8OSYcle5.cjs +0 -6
- package/browser/cjs/kjlgjQkY0fb-Rc-P.cjs +0 -6
- package/browser/cjs/qoo14c2KOLE_IfIO.cjs +0 -20
- package/browser/esm/0OyyoHlgiaso9tYr.mjs +0 -50
- package/browser/esm/BE92YslAajVEiBuX.mjs +0 -25
- package/browser/esm/BJO2iGA4QZN4Tzfv.mjs +0 -2159
- package/browser/esm/BQGW_5yvCb0eTpib.mjs +0 -54
- package/browser/esm/BYAdBaegvg_SoS6K.mjs +0 -155
- package/browser/esm/BsxSk3HxwjxRtPtZ.mjs +0 -2411
- package/browser/esm/D-9Ar2kzfZAziktn.mjs +0 -26
- package/browser/esm/D4Z_3xY0vO_3FL6K.mjs +0 -640
- package/browser/esm/DB1mGkEgnMnMQ8CH.mjs +0 -4533
- package/browser/esm/HmzSBdi0ej5oeXZ1.mjs +0 -53
- package/browser/esm/ePSxe_g7wEvzmkJ7.mjs +0 -50
- package/browser/esm/pshi0IoaQJ-EyVt3.mjs +0 -46
- package/node/assets/style.css +0 -1
- package/node/esm/B67HtQl_OohbFhFm.mjs +0 -25
- package/node/esm/BD8iIgRl14sLSdN1.mjs +0 -88
- package/node/esm/BKeEywP27oPbnpFS.mjs +0 -156
- package/node/esm/BkQRle53yjTwYnC4.mjs +0 -91
- package/node/esm/Bl77xZWpq8Ix5EEF.mjs +0 -57
- package/node/esm/C1HBS_UNswHQvckQ.mjs +0 -52
- package/node/esm/C4wnaXAtg_BfPjQR.mjs +0 -50
- package/node/esm/Dhp7eefBNVIcSWf6.mjs +0 -26
- package/node/esm/bp_PxnEExWX_-i_8.mjs +0 -46
- package/node/esm/j5ssn9j67ROjzwGT.mjs +0 -53
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.23-beta.2
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { NumberFormatPanel as t } from "./index.mjs";
|
|
8
|
+
import { useCallbackRef as o, useTranslator as n } from "@sheetxl/utils-react";
|
|
9
|
+
import { memo as e, useCallback as i, useState as a } from "react";
|
|
10
|
+
import { OptionsDialog as l } from "@sheetxl/utils-mui";
|
|
11
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
12
|
+
var p = ["Ok", "Cancel"], s = e((e) => {
|
|
13
|
+
const { initialValue: s, context: c, onOption: m, onValidateOption: u, onInput: x, onDone: d, options: f = p, defaultOption: O = f?.[0], cancelOption: h = "Cancel", sx: v, ...C } = e, g = n(), [y, V] = a(s), j = o(async (t) => {
|
|
14
|
+
const o = t === h;
|
|
15
|
+
o || x?.(y, t), m?.(t, o, t === O), d?.();
|
|
16
|
+
}, [
|
|
17
|
+
y,
|
|
18
|
+
x,
|
|
19
|
+
d,
|
|
20
|
+
m,
|
|
21
|
+
h,
|
|
22
|
+
O
|
|
23
|
+
]), w = i(async (t) => await Promise.resolve(u?.(t)) ?? !0, [u]);
|
|
24
|
+
return r(l, {
|
|
25
|
+
title: g("numberFormat.dialogTitle"),
|
|
26
|
+
options: f,
|
|
27
|
+
onDone: d,
|
|
28
|
+
onOption: (t) => j(t),
|
|
29
|
+
onValidateOption: w,
|
|
30
|
+
defaultOption: O,
|
|
31
|
+
cancelOption: h,
|
|
32
|
+
autoFocusSel: ".sxl-nf-cat-active",
|
|
33
|
+
sx: {
|
|
34
|
+
width: "512px",
|
|
35
|
+
...v
|
|
36
|
+
},
|
|
37
|
+
...C,
|
|
38
|
+
children: r(t, {
|
|
39
|
+
value: y,
|
|
40
|
+
onChange: V,
|
|
41
|
+
onCommit: () => j(O),
|
|
42
|
+
context: c,
|
|
43
|
+
style: { paddingTop: "4px" }
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
export { s as NumberFormatDialog, s as default };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.23-beta.2
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { InsertFunctionOption as e, InsertFunctionWizard as t, optionsForPage as o } from "./index.mjs";
|
|
8
|
+
import { useReferenceMode as i, useWorkbook as n } from "@sheetxl/react";
|
|
9
|
+
import { useCallbackRef as l, useTranslator as a } from "@sheetxl/utils-react";
|
|
10
|
+
import { memo as r, useMemo as c, useRef as s, useState as u } from "react";
|
|
11
|
+
import { OptionsDialog as m, optionIdentity as p } from "@sheetxl/utils-mui";
|
|
12
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
13
|
+
var x = r((r) => {
|
|
14
|
+
const { initialValue: x = null, context: d, onOption: g, onDone: h, onInput: D, options: C, defaultOption: S, cancelOption: y = "Cancel", sx: O, ...k } = r, M = a(), v = n(), [F, w] = u("search"), [H, N] = u("string" == typeof x ? null : x), [I, j] = u(null), A = c(() => C ?? o(F, M), [
|
|
15
|
+
C,
|
|
16
|
+
F,
|
|
17
|
+
M
|
|
18
|
+
]), B = S ?? A[0], T = p(B), [V] = u(() => {
|
|
19
|
+
const e = v?.getSelectedSheet()?.getSelectedCell();
|
|
20
|
+
return e ? {
|
|
21
|
+
...e.getCoords(),
|
|
22
|
+
scope: e.getSheet().getName()
|
|
23
|
+
} : void 0;
|
|
24
|
+
}), b = !!i().getMode()?.activeInput, z = s(!1), q = l((t, o, i) => {
|
|
25
|
+
if (o || t !== e.Next) if (o || t !== e.Back) {
|
|
26
|
+
if (!o && H) {
|
|
27
|
+
const e = "arguments" === F && !!I;
|
|
28
|
+
z.current = !e, D?.(e ? I : H);
|
|
29
|
+
}
|
|
30
|
+
g?.(t, o, i), h?.();
|
|
31
|
+
} else w("search");
|
|
32
|
+
else w("arguments");
|
|
33
|
+
}, [
|
|
34
|
+
F,
|
|
35
|
+
I,
|
|
36
|
+
H,
|
|
37
|
+
D,
|
|
38
|
+
g,
|
|
39
|
+
h
|
|
40
|
+
]), E = l(async (t) => t === e.Back || !!H, [H]), G = l(async () => {
|
|
41
|
+
!0 === await E(T) && q(T, !1, !0);
|
|
42
|
+
}, [
|
|
43
|
+
E,
|
|
44
|
+
T,
|
|
45
|
+
q
|
|
46
|
+
]);
|
|
47
|
+
return f(m, {
|
|
48
|
+
title: M("insertFunction.dialogTitle"),
|
|
49
|
+
options: A,
|
|
50
|
+
onOption: q,
|
|
51
|
+
onValidateOption: E,
|
|
52
|
+
defaultOption: B,
|
|
53
|
+
cancelOption: y,
|
|
54
|
+
autoFocusSel: ".autoFocus",
|
|
55
|
+
suspendModal: b,
|
|
56
|
+
restoreFocus: () => !z.current,
|
|
57
|
+
sx: {
|
|
58
|
+
width: "460px",
|
|
59
|
+
maxHeight: "calc(100dvh - 16px)",
|
|
60
|
+
display: "flex",
|
|
61
|
+
flexDirection: "column",
|
|
62
|
+
"& > .MuiDialogTitle-root": { flexShrink: 0 },
|
|
63
|
+
"& > form": {
|
|
64
|
+
display: "flex",
|
|
65
|
+
flexDirection: "column",
|
|
66
|
+
flex: "1 1 auto",
|
|
67
|
+
minHeight: 0
|
|
68
|
+
},
|
|
69
|
+
"& .MuiDialogContent-root": {
|
|
70
|
+
display: "flex",
|
|
71
|
+
flexDirection: "column",
|
|
72
|
+
flex: "1 1 auto",
|
|
73
|
+
minHeight: 0
|
|
74
|
+
},
|
|
75
|
+
"& .MuiDialogContent-root > *": {
|
|
76
|
+
flex: "1 1 auto",
|
|
77
|
+
minHeight: 0
|
|
78
|
+
},
|
|
79
|
+
"& .MuiDialogActions-root": { flexShrink: 0 },
|
|
80
|
+
...O
|
|
81
|
+
},
|
|
82
|
+
...k,
|
|
83
|
+
children: f(t, {
|
|
84
|
+
className: "insert-function-wizard",
|
|
85
|
+
context: d,
|
|
86
|
+
page: F,
|
|
87
|
+
selected: H,
|
|
88
|
+
onChangeSelected: N,
|
|
89
|
+
onActivate: () => {
|
|
90
|
+
G();
|
|
91
|
+
},
|
|
92
|
+
onChangeCall: j,
|
|
93
|
+
workbook: v,
|
|
94
|
+
home: V
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
x.displayName = "InsertFunctionDialog";
|
|
99
|
+
export { x as InsertFunctionDialog, x as default };
|
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.23-beta.2
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { _ as e, v as t, y as r } from "./index.mjs";
|
|
8
|
+
import { IRange as o, ISort as n, Sort as i } from "@sheetxl/sdk";
|
|
9
|
+
import { DynamicIcon as l, useCallbackRef as s, useTranslator as a } from "@sheetxl/utils-react";
|
|
10
|
+
import { memo as d, useMemo as c, useRef as p, useState as x } from "react";
|
|
11
|
+
import { OptionsDialog as h, SimpleTooltip as u } from "@sheetxl/utils-mui";
|
|
12
|
+
import { jsx as m, jsxs as f } from "react/jsx-runtime";
|
|
13
|
+
import { Box as v, Checkbox as g, FormControl as y, FormControlLabel as b, IconButton as C, InputLabel as S, MenuItem as w, Select as O, Typography as k } from "@mui/material";
|
|
14
|
+
var L = {
|
|
15
|
+
width: "64px",
|
|
16
|
+
flex: "0 0 auto"
|
|
17
|
+
}, D = {
|
|
18
|
+
flex: "1 1 0",
|
|
19
|
+
minWidth: "120px"
|
|
20
|
+
}, I = {
|
|
21
|
+
flex: "1 1 0",
|
|
22
|
+
minWidth: "140px"
|
|
23
|
+
}, H = {
|
|
24
|
+
width: "34px",
|
|
25
|
+
flex: "0 0 auto",
|
|
26
|
+
display: "flex",
|
|
27
|
+
justifyContent: "center"
|
|
28
|
+
}, z = {
|
|
29
|
+
minWidth: "112px",
|
|
30
|
+
flex: "0 0 auto",
|
|
31
|
+
display: "flex",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
justifyContent: "flex-end"
|
|
34
|
+
}, N = {
|
|
35
|
+
color: (e) => e.palette.text.secondary,
|
|
36
|
+
fontWeight: 500,
|
|
37
|
+
paddingLeft: "14px"
|
|
38
|
+
}, F = {
|
|
39
|
+
display: "flex",
|
|
40
|
+
alignItems: "center",
|
|
41
|
+
gap: (e) => e.spacing(1),
|
|
42
|
+
padding: (e) => e.spacing(.75, 1),
|
|
43
|
+
border: (e) => `1px solid ${e.palette.divider}`,
|
|
44
|
+
borderRadius: (e) => e.spacing(1.25)
|
|
45
|
+
}, R = (e) => {
|
|
46
|
+
let t = e, r = "";
|
|
47
|
+
for (; t >= 0;) r = String.fromCharCode(65 + t % 26) + r, t = Math.floor(t / 26) - 1;
|
|
48
|
+
return r;
|
|
49
|
+
}, B = 0, M = () => "level-" + B++, T = (e) => e?.sensitivity === i.CaseSensitiveOptions.sensitivity, W = d((n) => {
|
|
50
|
+
const { initialValue: d, context: B, onInput: W, onDone: j, ...A } = n, E = a(), V = p(B?.()), K = V.current?.range, U = V.current?.cell, [G, Y] = x(() => ({
|
|
51
|
+
...i.DefaultRangeOptions,
|
|
52
|
+
...d
|
|
53
|
+
})), [_, q] = x(() => {
|
|
54
|
+
const e = d?.sorts ?? [], t = [];
|
|
55
|
+
for (let r = 0; r < e.length; r++) t.push({
|
|
56
|
+
key: M(),
|
|
57
|
+
index: e[r].index ?? r,
|
|
58
|
+
criteria: { ...e[r].criteria }
|
|
59
|
+
});
|
|
60
|
+
return 0 === t.length && t.push({
|
|
61
|
+
key: M(),
|
|
62
|
+
index: 0,
|
|
63
|
+
criteria: {}
|
|
64
|
+
}), t;
|
|
65
|
+
}), J = G.axis ?? o.Axis.Row, P = J === o.Axis.Row, Q = p(null), X = p(!1);
|
|
66
|
+
r(Q, !0, X);
|
|
67
|
+
const Z = c(() => {
|
|
68
|
+
const e = [], t = [], r = K?.getDefaultSortCriteria(J, U);
|
|
69
|
+
if (!r) return {
|
|
70
|
+
labels: e,
|
|
71
|
+
offsets: t
|
|
72
|
+
};
|
|
73
|
+
const o = r.coords, n = P ? o.colEnd - o.colStart + 1 : o.rowEnd - o.rowStart + 1, i = Math.min(n, 500);
|
|
74
|
+
for (let n = 0; n < i; n++) {
|
|
75
|
+
const i = G.hasHeader ? r.headers?.get(n) : void 0;
|
|
76
|
+
t.push(n), e.push(i || (P ? E("sort.columnLabel", { name: R(o.colStart + n) }) : E("sort.rowLabel", { name: `${o.rowStart + n + 1}` })));
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
labels: e,
|
|
80
|
+
offsets: t
|
|
81
|
+
};
|
|
82
|
+
}, [
|
|
83
|
+
K,
|
|
84
|
+
U,
|
|
85
|
+
J,
|
|
86
|
+
P,
|
|
87
|
+
G.hasHeader,
|
|
88
|
+
E
|
|
89
|
+
]), ee = s((e) => {
|
|
90
|
+
const t = Z.offsets.indexOf(e);
|
|
91
|
+
return -1 !== t ? Z.labels[t] : P ? E("sort.columnLabel", { name: R(e) }) : E("sort.rowLabel", { name: `${e + 1}` });
|
|
92
|
+
}, [
|
|
93
|
+
Z,
|
|
94
|
+
P,
|
|
95
|
+
E
|
|
96
|
+
]), te = c(() => {
|
|
97
|
+
const e = Z.offsets.length;
|
|
98
|
+
if (e > 0 && _.length > e) return E("sort.tooManyLevels", { count: `${e}` });
|
|
99
|
+
const t = /* @__PURE__ */ new Set();
|
|
100
|
+
for (let e = 0; e < _.length; e++) {
|
|
101
|
+
if (t.has(_[e].index)) return E("sort.duplicateField", { name: ee(_[e].index) });
|
|
102
|
+
t.add(_[e].index);
|
|
103
|
+
}
|
|
104
|
+
return null;
|
|
105
|
+
}, [
|
|
106
|
+
_,
|
|
107
|
+
Z,
|
|
108
|
+
ee,
|
|
109
|
+
E
|
|
110
|
+
]), re = s((e, t) => {
|
|
111
|
+
q((r) => r.map((r) => r.key === e ? {
|
|
112
|
+
...r,
|
|
113
|
+
...t
|
|
114
|
+
} : r));
|
|
115
|
+
}, []), oe = s((e, t, r) => {
|
|
116
|
+
r && (X.current = !0), q((r) => {
|
|
117
|
+
if (t < 0 || t >= r.length) return r;
|
|
118
|
+
const o = [...r];
|
|
119
|
+
return o.splice(t, 0, ...o.splice(e, 1)), o;
|
|
120
|
+
});
|
|
121
|
+
}, []), ne = s((e) => {
|
|
122
|
+
let t;
|
|
123
|
+
if ("Sort" === e) {
|
|
124
|
+
const e = _.map((e) => {
|
|
125
|
+
const t = { ...e.criteria };
|
|
126
|
+
return delete t.collatorOptions, {
|
|
127
|
+
index: e.index,
|
|
128
|
+
criteria: t
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
t = {
|
|
132
|
+
...d,
|
|
133
|
+
...G,
|
|
134
|
+
reverse: _[0]?.criteria.reverse ?? G.reverse,
|
|
135
|
+
sorts: e
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
W?.(t), j?.(t);
|
|
139
|
+
}, [
|
|
140
|
+
_,
|
|
141
|
+
G,
|
|
142
|
+
j,
|
|
143
|
+
W,
|
|
144
|
+
d
|
|
145
|
+
]), ie = c(() => _.map((e) => e.key), [_]);
|
|
146
|
+
return m(h, {
|
|
147
|
+
title: E("sort.title"),
|
|
148
|
+
options: [{
|
|
149
|
+
id: "Sort",
|
|
150
|
+
label: () => E("sort.action"),
|
|
151
|
+
disabled: () => null !== te
|
|
152
|
+
}, "Cancel"],
|
|
153
|
+
onDone: ne,
|
|
154
|
+
...A,
|
|
155
|
+
children: f(v, {
|
|
156
|
+
sx: {
|
|
157
|
+
display: "flex",
|
|
158
|
+
flexDirection: "column",
|
|
159
|
+
gap: (e) => e.spacing(1.5),
|
|
160
|
+
minWidth: "560px"
|
|
161
|
+
},
|
|
162
|
+
children: [
|
|
163
|
+
f(v, {
|
|
164
|
+
sx: {
|
|
165
|
+
display: "flex",
|
|
166
|
+
flexDirection: "column"
|
|
167
|
+
},
|
|
168
|
+
children: [m(v, {
|
|
169
|
+
sx: { padding: (e) => e.spacing(0, .5) },
|
|
170
|
+
children: f(v, {
|
|
171
|
+
sx: {
|
|
172
|
+
...F,
|
|
173
|
+
borderColor: "transparent",
|
|
174
|
+
paddingTop: 0,
|
|
175
|
+
paddingBottom: 0
|
|
176
|
+
},
|
|
177
|
+
children: [
|
|
178
|
+
m(v, { sx: L }),
|
|
179
|
+
m(k, {
|
|
180
|
+
variant: "body2",
|
|
181
|
+
sx: {
|
|
182
|
+
...D,
|
|
183
|
+
...N
|
|
184
|
+
},
|
|
185
|
+
children: E(P ? "sort.column" : "sort.row")
|
|
186
|
+
}),
|
|
187
|
+
m(k, {
|
|
188
|
+
variant: "body2",
|
|
189
|
+
sx: {
|
|
190
|
+
...I,
|
|
191
|
+
...N
|
|
192
|
+
},
|
|
193
|
+
children: E("sort.sortOn")
|
|
194
|
+
}),
|
|
195
|
+
m(k, {
|
|
196
|
+
variant: "body2",
|
|
197
|
+
sx: {
|
|
198
|
+
...H,
|
|
199
|
+
...N,
|
|
200
|
+
paddingLeft: 0
|
|
201
|
+
},
|
|
202
|
+
children: E("sort.order")
|
|
203
|
+
}),
|
|
204
|
+
m(v, { sx: z })
|
|
205
|
+
]
|
|
206
|
+
})
|
|
207
|
+
}), f(v, {
|
|
208
|
+
ref: Q,
|
|
209
|
+
sx: {
|
|
210
|
+
display: "flex",
|
|
211
|
+
flexDirection: "column",
|
|
212
|
+
gap: (e) => e.spacing(.75),
|
|
213
|
+
padding: (e) => e.spacing(.5),
|
|
214
|
+
maxHeight: "320px",
|
|
215
|
+
overflowY: "auto"
|
|
216
|
+
},
|
|
217
|
+
children: [m(t, {
|
|
218
|
+
ids: ie,
|
|
219
|
+
scrollRef: Q,
|
|
220
|
+
onMove: (e, t) => oe(e, t, !0),
|
|
221
|
+
children: _.map((t, r) => m(e, {
|
|
222
|
+
id: t.key,
|
|
223
|
+
children: m($, {
|
|
224
|
+
level: t,
|
|
225
|
+
position: r,
|
|
226
|
+
count: _.length,
|
|
227
|
+
fields: Z,
|
|
228
|
+
labelForField: ee,
|
|
229
|
+
isRowSort: P,
|
|
230
|
+
onChange: re,
|
|
231
|
+
onMoveBy: (e) => oe(r, r + e, !1),
|
|
232
|
+
onDuplicate: () => {
|
|
233
|
+
q((e) => {
|
|
234
|
+
const o = [...e];
|
|
235
|
+
return o.splice(r + 1, 0, {
|
|
236
|
+
...t,
|
|
237
|
+
key: M(),
|
|
238
|
+
criteria: { ...t.criteria }
|
|
239
|
+
}), o;
|
|
240
|
+
});
|
|
241
|
+
},
|
|
242
|
+
onDelete: () => q((e) => e.filter((e) => e.key !== t.key))
|
|
243
|
+
})
|
|
244
|
+
}, t.key))
|
|
245
|
+
}), f(v, {
|
|
246
|
+
sx: {
|
|
247
|
+
...F,
|
|
248
|
+
borderColor: "transparent",
|
|
249
|
+
flex: "0 0 auto",
|
|
250
|
+
paddingTop: 0,
|
|
251
|
+
paddingBottom: 0
|
|
252
|
+
},
|
|
253
|
+
children: [m(k, {
|
|
254
|
+
variant: "body2",
|
|
255
|
+
sx: {
|
|
256
|
+
...L,
|
|
257
|
+
color: (e) => e.palette.text.secondary
|
|
258
|
+
},
|
|
259
|
+
children: E("sort.thenBy")
|
|
260
|
+
}), m(u, {
|
|
261
|
+
disableInteractive: !0,
|
|
262
|
+
title: E("sort.addLevel"),
|
|
263
|
+
children: m(C, {
|
|
264
|
+
size: "small",
|
|
265
|
+
className: "sxl-sort-addLevel",
|
|
266
|
+
"aria-label": E("sort.addLevel"),
|
|
267
|
+
onClick: () => {
|
|
268
|
+
q((e) => {
|
|
269
|
+
const t = new Set(e.map((e) => e.index)), r = Z.offsets.find((e) => !t.has(e));
|
|
270
|
+
return [...e, {
|
|
271
|
+
key: M(),
|
|
272
|
+
index: r ?? 0,
|
|
273
|
+
criteria: {}
|
|
274
|
+
}];
|
|
275
|
+
});
|
|
276
|
+
},
|
|
277
|
+
children: m(l, { iconKey: "Insert" })
|
|
278
|
+
})
|
|
279
|
+
})]
|
|
280
|
+
})]
|
|
281
|
+
})]
|
|
282
|
+
}),
|
|
283
|
+
null !== te ? m(k, {
|
|
284
|
+
variant: "body2",
|
|
285
|
+
className: "sxl-sort-refusal",
|
|
286
|
+
sx: { color: (e) => e.palette.error.main },
|
|
287
|
+
children: te
|
|
288
|
+
}) : null,
|
|
289
|
+
f(v, {
|
|
290
|
+
sx: {
|
|
291
|
+
display: "flex",
|
|
292
|
+
flexWrap: "wrap",
|
|
293
|
+
alignItems: "center",
|
|
294
|
+
columnGap: (e) => e.spacing(2),
|
|
295
|
+
rowGap: (e) => e.spacing(1.5),
|
|
296
|
+
borderTop: (e) => `1px solid ${e.palette.divider}`,
|
|
297
|
+
paddingTop: (e) => e.spacing(1)
|
|
298
|
+
},
|
|
299
|
+
children: [
|
|
300
|
+
m(b, {
|
|
301
|
+
control: m(g, {
|
|
302
|
+
size: "small",
|
|
303
|
+
checked: !!G.hasHeader,
|
|
304
|
+
onChange: () => Y((e) => ({
|
|
305
|
+
...e,
|
|
306
|
+
hasHeader: !e.hasHeader
|
|
307
|
+
}))
|
|
308
|
+
}),
|
|
309
|
+
label: E("sort.hasHeader")
|
|
310
|
+
}),
|
|
311
|
+
m(b, {
|
|
312
|
+
control: m(g, {
|
|
313
|
+
size: "small",
|
|
314
|
+
checked: T(G.collatorOptions),
|
|
315
|
+
onChange: () => Y((e) => ({
|
|
316
|
+
...e,
|
|
317
|
+
collatorOptions: T(e.collatorOptions) ? i.CaseInsensitiveOptions : i.CaseSensitiveOptions
|
|
318
|
+
}))
|
|
319
|
+
}),
|
|
320
|
+
label: E("sort.caseSensitive")
|
|
321
|
+
}),
|
|
322
|
+
m(b, {
|
|
323
|
+
control: m(g, {
|
|
324
|
+
size: "small",
|
|
325
|
+
checked: !!G.includeHidden,
|
|
326
|
+
onChange: () => Y((e) => ({
|
|
327
|
+
...e,
|
|
328
|
+
includeHidden: !e.includeHidden
|
|
329
|
+
}))
|
|
330
|
+
}),
|
|
331
|
+
label: E("sort.includeHidden")
|
|
332
|
+
}),
|
|
333
|
+
f(y, {
|
|
334
|
+
size: "small",
|
|
335
|
+
sx: { minWidth: "180px" },
|
|
336
|
+
children: [m(S, {
|
|
337
|
+
id: "sxl-sort-orientation-label",
|
|
338
|
+
children: E("sort.orientation")
|
|
339
|
+
}), f(O, {
|
|
340
|
+
size: "small",
|
|
341
|
+
className: "sxl-sort-orientation",
|
|
342
|
+
labelId: "sxl-sort-orientation-label",
|
|
343
|
+
label: E("sort.orientation"),
|
|
344
|
+
value: J,
|
|
345
|
+
onChange: (e) => {
|
|
346
|
+
const t = e.target.value;
|
|
347
|
+
Y((e) => ({
|
|
348
|
+
...e,
|
|
349
|
+
axis: t
|
|
350
|
+
}));
|
|
351
|
+
},
|
|
352
|
+
children: [m(w, {
|
|
353
|
+
value: o.Axis.Row,
|
|
354
|
+
children: E("sort.orientationTopToBottom")
|
|
355
|
+
}), m(w, {
|
|
356
|
+
value: o.Axis.Column,
|
|
357
|
+
children: E("sort.orientationLeftToRight")
|
|
358
|
+
})]
|
|
359
|
+
})]
|
|
360
|
+
})
|
|
361
|
+
]
|
|
362
|
+
})
|
|
363
|
+
]
|
|
364
|
+
})
|
|
365
|
+
});
|
|
366
|
+
}), $ = d((e) => {
|
|
367
|
+
const { level: t, position: r, count: o, fields: i, labelForField: s, isRowSort: d, onChange: p, onMoveBy: x, onDuplicate: h, onDelete: g } = e, y = a(), b = t.criteria.sortOn ?? n.SortOn.Value, S = !!t.criteria.reverse, N = c(() => {
|
|
368
|
+
const e = i.offsets.map((e, t) => ({
|
|
369
|
+
offset: e,
|
|
370
|
+
label: i.labels[t]
|
|
371
|
+
}));
|
|
372
|
+
return i.offsets.includes(t.index) || e.push({
|
|
373
|
+
offset: t.index,
|
|
374
|
+
label: s(t.index)
|
|
375
|
+
}), e;
|
|
376
|
+
}, [
|
|
377
|
+
i,
|
|
378
|
+
t.index,
|
|
379
|
+
s
|
|
380
|
+
]), R = (e, t, r, o, n) => m(u, {
|
|
381
|
+
disableInteractive: !0,
|
|
382
|
+
title: e,
|
|
383
|
+
children: m("div", { children: m(C, {
|
|
384
|
+
size: "small",
|
|
385
|
+
className: `sxl-sort-${t}`,
|
|
386
|
+
"aria-label": e,
|
|
387
|
+
disabled: o,
|
|
388
|
+
sx: { padding: "2px" },
|
|
389
|
+
onClick: n,
|
|
390
|
+
children: m(l, {
|
|
391
|
+
style: { transform: "scale(0.85)" },
|
|
392
|
+
iconKey: r
|
|
393
|
+
})
|
|
394
|
+
}) })
|
|
395
|
+
});
|
|
396
|
+
return f(v, {
|
|
397
|
+
sx: {
|
|
398
|
+
...F,
|
|
399
|
+
"&:hover, &:focus-within": {
|
|
400
|
+
boxShadow: 1,
|
|
401
|
+
"& .sxl-sort-level-actions": {
|
|
402
|
+
opacity: 1,
|
|
403
|
+
pointerEvents: "auto"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
children: [
|
|
408
|
+
m(k, {
|
|
409
|
+
variant: "body2",
|
|
410
|
+
sx: L,
|
|
411
|
+
children: y(0 === r ? "sort.sortBy" : "sort.thenBy")
|
|
412
|
+
}),
|
|
413
|
+
m(O, {
|
|
414
|
+
size: "small",
|
|
415
|
+
className: "sxl-sort-field",
|
|
416
|
+
value: t.index,
|
|
417
|
+
sx: D,
|
|
418
|
+
"aria-label": y(d ? "sort.column" : "sort.row"),
|
|
419
|
+
onChange: (e) => p(t.key, { index: Number(e.target.value) }),
|
|
420
|
+
children: N.map((e) => m(w, {
|
|
421
|
+
value: e.offset,
|
|
422
|
+
children: e.label
|
|
423
|
+
}, e.offset))
|
|
424
|
+
}),
|
|
425
|
+
f(O, {
|
|
426
|
+
size: "small",
|
|
427
|
+
className: "sxl-sort-on",
|
|
428
|
+
value: b,
|
|
429
|
+
sx: I,
|
|
430
|
+
"aria-label": y("sort.sortOn"),
|
|
431
|
+
onChange: (e) => {
|
|
432
|
+
p(t.key, { criteria: {
|
|
433
|
+
...t.criteria,
|
|
434
|
+
sortOn: e.target.value
|
|
435
|
+
} });
|
|
436
|
+
},
|
|
437
|
+
children: [
|
|
438
|
+
m(w, {
|
|
439
|
+
value: n.SortOn.Value,
|
|
440
|
+
children: y("sort.sortOnValue")
|
|
441
|
+
}),
|
|
442
|
+
f(w, {
|
|
443
|
+
value: n.SortOn.FillColor,
|
|
444
|
+
disabled: !0,
|
|
445
|
+
children: [y("sort.sortOnFillColor"), m(k, {
|
|
446
|
+
variant: "caption",
|
|
447
|
+
sx: {
|
|
448
|
+
marginLeft: 1,
|
|
449
|
+
opacity: .7
|
|
450
|
+
},
|
|
451
|
+
children: y("sort.notSupported")
|
|
452
|
+
})]
|
|
453
|
+
}),
|
|
454
|
+
f(w, {
|
|
455
|
+
value: n.SortOn.FontColor,
|
|
456
|
+
disabled: !0,
|
|
457
|
+
children: [y("sort.sortOnFontColor"), m(k, {
|
|
458
|
+
variant: "caption",
|
|
459
|
+
sx: {
|
|
460
|
+
marginLeft: 1,
|
|
461
|
+
opacity: .7
|
|
462
|
+
},
|
|
463
|
+
children: y("sort.notSupported")
|
|
464
|
+
})]
|
|
465
|
+
}),
|
|
466
|
+
f(w, {
|
|
467
|
+
value: n.SortOn.Icon,
|
|
468
|
+
disabled: !0,
|
|
469
|
+
children: [y("sort.sortOnIcon"), m(k, {
|
|
470
|
+
variant: "caption",
|
|
471
|
+
sx: {
|
|
472
|
+
marginLeft: 1,
|
|
473
|
+
opacity: .7
|
|
474
|
+
},
|
|
475
|
+
children: y("sort.notSupported")
|
|
476
|
+
})]
|
|
477
|
+
})
|
|
478
|
+
]
|
|
479
|
+
}),
|
|
480
|
+
m(v, {
|
|
481
|
+
sx: H,
|
|
482
|
+
children: m(u, {
|
|
483
|
+
disableInteractive: !0,
|
|
484
|
+
title: y(S ? "sort.descending" : "sort.ascending"),
|
|
485
|
+
children: m(C, {
|
|
486
|
+
size: "small",
|
|
487
|
+
className: "sxl-sort-order",
|
|
488
|
+
"aria-label": y(S ? "sort.descending" : "sort.ascending"),
|
|
489
|
+
onClick: () => p(t.key, { criteria: {
|
|
490
|
+
...t.criteria,
|
|
491
|
+
reverse: !S
|
|
492
|
+
} }),
|
|
493
|
+
children: m(l, { iconKey: S ? "SortDecrease" : "SortIncrease" })
|
|
494
|
+
})
|
|
495
|
+
})
|
|
496
|
+
}),
|
|
497
|
+
f(v, {
|
|
498
|
+
className: "sxl-sort-level-actions",
|
|
499
|
+
sx: {
|
|
500
|
+
...z,
|
|
501
|
+
opacity: 0,
|
|
502
|
+
pointerEvents: "none",
|
|
503
|
+
transition: "opacity 0.2s ease"
|
|
504
|
+
},
|
|
505
|
+
children: [
|
|
506
|
+
R(y("sort.moveUp"), "moveUp", "CardMoveUp", 0 === r, () => x(-1)),
|
|
507
|
+
R(y("sort.moveDown"), "moveDown", "CardMoveDown", r === o - 1, () => x(1)),
|
|
508
|
+
R(y("sort.copyLevel"), "copyLevel", "CardDuplicate", !1, h),
|
|
509
|
+
R(y("sort.deleteLevel"), "deleteLevel", "Delete", o <= 1, g)
|
|
510
|
+
]
|
|
511
|
+
})
|
|
512
|
+
]
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
$.displayName = "SortLevelCard";
|
|
516
|
+
export { W as SortDialog, W as default };
|