@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,41 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ICondition } from '@sheetxl/sdk';
|
|
3
|
+
import { CombinatorInput } from './ConditionUtils';
|
|
4
|
+
export interface CombinatorOptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* The combinator operator (and / or / not).
|
|
7
|
+
*/
|
|
8
|
+
operator: ICondition.IOperator;
|
|
9
|
+
/**
|
|
10
|
+
* The current list of child operator+param pairs.
|
|
11
|
+
*/
|
|
12
|
+
inputs: CombinatorInput[];
|
|
13
|
+
/**
|
|
14
|
+
* Called when the full inputs list changes.
|
|
15
|
+
*/
|
|
16
|
+
onOptionChange: (inputs: CombinatorInput[]) => void;
|
|
17
|
+
/**
|
|
18
|
+
* All available operators to pass down to children (leaf + combinator).
|
|
19
|
+
* Passed straight through — not filtered per level.
|
|
20
|
+
*/
|
|
21
|
+
operators: ICondition.IOperator[];
|
|
22
|
+
/**
|
|
23
|
+
* The selector (passed down to children).
|
|
24
|
+
*/
|
|
25
|
+
selector: ICondition.ISelector | null;
|
|
26
|
+
/**
|
|
27
|
+
* If true, makes the editor read-only.
|
|
28
|
+
*/
|
|
29
|
+
readOnly?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Renders the body of a combinator operator (All of / Any of / Is Not).
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* - For AND/OR: shows a list of OperatorAndParamEditors, each with an X button,
|
|
36
|
+
* separated by a small label ("and" / "or"), plus an AddConditionButton at the bottom.
|
|
37
|
+
* - For NOT: shows a single OperatorAndParamEditor (no Add button — unary).
|
|
38
|
+
* - Operators and selectors are passed straight through (not re-filtered here).
|
|
39
|
+
*/
|
|
40
|
+
export declare const CombinatorOption: React.NamedExoticComponent<CombinatorOptionProps>;
|
|
41
|
+
//# sourceMappingURL=CombinatorOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CombinatorOption.d.ts","sourceRoot":"","sources":["../../../../src/conditions/CombinatorOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAIpC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,EAAE,KAAK,eAAe,EAAiC,MAAM,kBAAkB,CAAC;AAGvF,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjF;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC,SAAS,CAAC;IAC/B;;OAEG;IACH,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B;;OAEG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;IACpD;;;OAGG;IACH,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC;IAClC;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,mDAsE3B,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ICondition } from '@sheetxl/sdk';
|
|
3
|
+
export interface ConditionEditorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* The condition.
|
|
6
|
+
*/
|
|
7
|
+
condition: ICondition | null;
|
|
8
|
+
/**
|
|
9
|
+
* The callback function to handle condition changes.
|
|
10
|
+
*/
|
|
11
|
+
onConditionChange: (condition: ICondition.JSON | null) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Optional title for the selector select input.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* This should be the action that the condition represents,
|
|
17
|
+
* e.g. "Allow", "Highlight", "Show", etc. depending on the context of the condition consumer.
|
|
18
|
+
*/
|
|
19
|
+
selectorTitle?: string;
|
|
20
|
+
/**
|
|
21
|
+
* If 'true', shows the "Include Blanks".
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* @see {@link ICondition.isIncludeBlanks} for when this should be used.
|
|
25
|
+
*/
|
|
26
|
+
showIncludeBlanks?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* If true, makes the editor read-only.
|
|
29
|
+
*/
|
|
30
|
+
readOnly?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The list of operators to show. Defaults to all built-in operators.
|
|
33
|
+
*/
|
|
34
|
+
operators?: ICondition.IOperator[];
|
|
35
|
+
/**
|
|
36
|
+
* The list of selectors to show. Defaults to all built-in selectors.
|
|
37
|
+
*/
|
|
38
|
+
selectors?: ICondition.ISelector[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Reusable condition editor with a type selector (single) and a recursive operator+param editor.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* This component abstracts the condition editing logic so it can be reused across:
|
|
45
|
+
* - Data Validation
|
|
46
|
+
* - Conditional Formatting
|
|
47
|
+
* - Table Filters
|
|
48
|
+
* - Any other condition consumer
|
|
49
|
+
*
|
|
50
|
+
* Architecture:
|
|
51
|
+
* - One selector at the top (always shown)
|
|
52
|
+
* - A single root OperatorAndParamEditor (which may recursively contain a CombinatorOption)
|
|
53
|
+
* - If no operator is chosen yet, an AddConditionButton (OperatorSelectPopupButton) is shown
|
|
54
|
+
* - operators and selectors lists are passed all the way down (not filtered per level)
|
|
55
|
+
*/
|
|
56
|
+
export declare const ConditionEditor: React.NamedExoticComponent<ConditionEditorProps>;
|
|
57
|
+
//# sourceMappingURL=ConditionEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionEditor.d.ts","sourceRoot":"","sources":["../../../../src/conditions/ConditionEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAa,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAS1D,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAChF;;OAEG;IACH,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;IAC7B;;OAEG;IAEH,iBAAiB,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/D;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC;CACpC;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,kDAqK1B,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ICondition } from '@sheetxl/sdk';
|
|
3
|
+
import { TranslateFn } from '@sheetxl/utils-react';
|
|
4
|
+
/**
|
|
5
|
+
* Returns a stable React key for a combinator input object.
|
|
6
|
+
* Creates and stores a new key the first time a given object reference is seen.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getInputKey: (input: object) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Copies the stable React key from one input object to another.
|
|
11
|
+
* Use this when replacing an input object in-place (e.g. after an edit)
|
|
12
|
+
* so that the React subtree for that slot is not remounted.
|
|
13
|
+
*/
|
|
14
|
+
export declare const transferInputKey: (from: object, to: object) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Internal data shape for a single child inside a combinator (AND/OR/NOT).
|
|
17
|
+
*/
|
|
18
|
+
export interface CombinatorInput {
|
|
19
|
+
operator: string;
|
|
20
|
+
param: any;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The operators no *authoring* UI offers by default: an icon or color test is a scale, not a
|
|
24
|
+
* predicate. A caller that does want them (AutoFilter) passes its own `exclude`.
|
|
25
|
+
*/
|
|
26
|
+
export declare const DEFAULT_EXCLUDED_OPERATORS: readonly string[];
|
|
27
|
+
/**
|
|
28
|
+
* Filters operators by selector type.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Canonical location — re-exported from here so both ConditionEditor and any
|
|
32
|
+
* other consumers use the same implementation.
|
|
33
|
+
*/
|
|
34
|
+
export declare const filterBySelector: (selector: ICondition.ISelector | null, operators?: ICondition.IOperator[],
|
|
35
|
+
/** Active UI language, for collating the localized titles. Defaults to the host locale. */
|
|
36
|
+
language?: string,
|
|
37
|
+
/** Operator names to withhold. Defaults to {@link DEFAULT_EXCLUDED_OPERATORS}. */
|
|
38
|
+
exclude?: readonly string[]) => ICondition.IOperator[];
|
|
39
|
+
/**
|
|
40
|
+
* Builds grouped menu items (Basic section + Combine section) from an operators list.
|
|
41
|
+
*
|
|
42
|
+
* @param operators The full operator list (leaf + combinator).
|
|
43
|
+
* @param renderItem Callback that receives each operator and returns the concrete menu item
|
|
44
|
+
* (e.g. `<MenuItem value={op.getName()}>` for Select, or with `onClick` for popups).
|
|
45
|
+
* @param t The caller's bound translator (`useTranslator()`) — a plain function returning
|
|
46
|
+
* JSX cannot call the hook itself, and a `.tsx` may not read the module-level `t`
|
|
47
|
+
* (it would freeze at mount-time language), so the subscription is threaded in.
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* Both sections are sorted alphabetically **in the active language** — operator titles are localized,
|
|
51
|
+
* so the collation has to follow the UI language rather than the host default.
|
|
52
|
+
* If only one section has operators the header and divider for the empty section are omitted.
|
|
53
|
+
* Works with both MUI `Select` (which accepts `ListSubheader` children natively)
|
|
54
|
+
* and custom popup panels.
|
|
55
|
+
*/
|
|
56
|
+
export declare const buildOperatorMenuItems: (operators: ICondition.IOperator[], renderItem: (operator: ICondition.IOperator) => React.ReactNode, t: TranslateFn, language?: string) => React.ReactNode[];
|
|
57
|
+
/**
|
|
58
|
+
* Builds the default `param` value for a newly-selected operator.
|
|
59
|
+
*
|
|
60
|
+
* @remarks
|
|
61
|
+
* - For **leaf** operators: delegates to `operator.createDefaultParam(ctx)`.
|
|
62
|
+
* - For **combinator** operators (and/or/not): pre-populates with one default child
|
|
63
|
+
* using the first available leaf operator, so the combinator is never empty on creation.
|
|
64
|
+
* - AND/OR: `param` is `CombinatorInput[]` with one entry.
|
|
65
|
+
* - NOT: `param` is a single `CombinatorInput` (unary).
|
|
66
|
+
*
|
|
67
|
+
* @param newOperator The operator being added/switched to.
|
|
68
|
+
* @param operators The full list of available operators at this level (used to find the first leaf).
|
|
69
|
+
*/
|
|
70
|
+
export declare const buildDefaultParam: (newOperator: ICondition.IOperator, operators: ICondition.IOperator[], selector?: ICondition.ISelector | null) => any;
|
|
71
|
+
export declare const SxListSubheader: {
|
|
72
|
+
userSelect: string;
|
|
73
|
+
lineHeight: string;
|
|
74
|
+
fontSize: string;
|
|
75
|
+
fontWeight: number;
|
|
76
|
+
color: string;
|
|
77
|
+
paddingLeft: number;
|
|
78
|
+
paddingRight: number;
|
|
79
|
+
};
|
|
80
|
+
export declare const SxMenuItem: {
|
|
81
|
+
pl: number;
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=ConditionUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionUtils.d.ts","sourceRoot":"","sources":["../../../../src/conditions/ConditionUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAa,UAAU,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAYxD;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,MAO3C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,EAAE,IAAI,MAAM,KAAG,IAG3D,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,GAAG,CAAC;CACZ;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAAS,MAAM,EAGtD,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,UAAU,CAAC,SAAS,GAAG,IAAI,EACrC,YAAY,UAAU,CAAC,SAAS,EAAE;AAClC,2FAA2F;AAC3F,WAAW,MAAM;AACjB,kFAAkF;AAClF,UAAS,SAAS,MAAM,EAA+B,KACtD,UAAU,CAAC,SAAS,EAmBtB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,sBAAsB,GACjC,WAAW,UAAU,CAAC,SAAS,EAAE,EACjC,YAAY,CAAC,QAAQ,EAAE,UAAU,CAAC,SAAS,KAAK,KAAK,CAAC,SAAS,EAC/D,GAAG,WAAW,EACd,WAAW,MAAM,KAChB,KAAK,CAAC,SAAS,EA+BjB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,GAC5B,aAAa,UAAU,CAAC,SAAS,EACjC,WAAW,UAAU,CAAC,SAAS,EAAE,EACjC,WAAU,UAAU,CAAC,SAAS,GAAG,IAAW,KAC3C,GAaF,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;CAY3B,CAAC;AAEF,eAAO,MAAM,UAAU;;CAEtB,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
export type DateTimeOptionType = 'date' | 'time' | 'dateTime';
|
|
4
|
+
export interface DateTimeOptionProps extends BoxProps {
|
|
5
|
+
/**
|
|
6
|
+
* Controls which fields are rendered.
|
|
7
|
+
* - `'date'` – date picker only
|
|
8
|
+
* - `'time'` – time picker only
|
|
9
|
+
* - `'dateTime'` – both pickers side by side (default)
|
|
10
|
+
* @default 'dateTime'
|
|
11
|
+
*/
|
|
12
|
+
type?: DateTimeOptionType;
|
|
13
|
+
/**
|
|
14
|
+
* The date+time value to edit — a serial, or (for the comparison operators) a `=`-prefixed
|
|
15
|
+
* formula string.
|
|
16
|
+
*/
|
|
17
|
+
option: number | string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Called when either the date or time part changes.
|
|
20
|
+
*/
|
|
21
|
+
onOptionChange: (option: number | string | null) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the operand may be a formula (the comparison operators' Scalar-param convention).
|
|
24
|
+
* A string option then renders in the literal-or-formula field instead of the pickers — an
|
|
25
|
+
* imported `=DATE(2024,1,1)` operand must not be destroyed by a date input. Entering a NEW
|
|
26
|
+
* formula from the pickers is deliberately not offered here; clearing the field returns to
|
|
27
|
+
* them.
|
|
28
|
+
*/
|
|
29
|
+
allowFormula?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If true, makes the editor read-only.
|
|
32
|
+
*/
|
|
33
|
+
readOnly?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Component for editing a date, time, or combined date+time option.
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* The value is always a single `Date` object (local time); `null` when unset.
|
|
40
|
+
* For `type="time"`, the date portion of the Date is irrelevant (epoch is used as carrier).
|
|
41
|
+
*/
|
|
42
|
+
export declare const DateTimeOption: React.NamedExoticComponent<DateTimeOptionProps>;
|
|
43
|
+
//# sourceMappingURL=DateTimeOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTimeOption.d.ts","sourceRoot":"","sources":["../../../../src/conditions/DateTimeOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAwCnD,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;AAE9D,MAAM,WAAW,mBAAoB,SAAQ,QAAQ;IACnD;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B;;;OAGG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B;;OAEG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzD;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,iDAwFzB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FormulaFieldProps } from '../form';
|
|
2
|
+
export interface ExpressionOptionProps extends Omit<FormulaFieldProps, 'value' | 'onChange'> {
|
|
3
|
+
/**
|
|
4
|
+
* The option to edit — the formula text, persisted as authored.
|
|
5
|
+
*/
|
|
6
|
+
option: string;
|
|
7
|
+
/**
|
|
8
|
+
* The callback function to handle changes in the option.
|
|
9
|
+
*/
|
|
10
|
+
onOptionChange: (option: string) => void;
|
|
11
|
+
/**
|
|
12
|
+
* If true, makes the editor read-only.
|
|
13
|
+
*/
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Param editor for the `expression` operator — a formula rule deserves the formula editor
|
|
18
|
+
* (reference picking, token coloring, error line), not a text box.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* Persists the authored TEXT rather than a parsed value: an expression param is stored as a
|
|
22
|
+
* string on the condition, and an in-progress (momentarily invalid) formula must not cost the
|
|
23
|
+
* user their keystrokes.
|
|
24
|
+
*/
|
|
25
|
+
export declare const ExpressionOption: import('react').NamedExoticComponent<ExpressionOptionProps>;
|
|
26
|
+
//# sourceMappingURL=ExpressionOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpressionOption.d.ts","sourceRoot":"","sources":["../../../../src/conditions/ExpressionOption.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE/D,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,UAAU,CAAC;IAC1F;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,6DA6B3B,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ICondition } from '@sheetxl/sdk';
|
|
2
|
+
export interface InSetOptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* The type of scalar for the Items (e.g., number, string)
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* * The InSetOption is used for all types of scalars, but the Items
|
|
8
|
+
* logic varies based on the type.
|
|
9
|
+
* * This component uses the `dataType` to determine how to render the input fields.
|
|
10
|
+
* * For example, if the `dataType` is `number`, the component will render
|
|
11
|
+
* number-specific input fields (e.g., with a numeric keypad on mobile devices).
|
|
12
|
+
* * If the `dataType` is `ScalarType.Null`, the component will return the labels
|
|
13
|
+
* with a 'data agnostic' labels.
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue `ScalarType.Null`
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* The Items option to edit.
|
|
19
|
+
*/
|
|
20
|
+
option: ICondition.InSetOption;
|
|
21
|
+
/**
|
|
22
|
+
* The callback function to handle changes in the Items option.
|
|
23
|
+
*/
|
|
24
|
+
onOptionChange: (option: ICondition.InSetOption) => void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Component for editing items/list option.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Allows adding/removing values from a list. Can accept:
|
|
31
|
+
* - Array of scalar values (items)
|
|
32
|
+
* - Formula string (evaluated to get list)
|
|
33
|
+
* - Date groups for date filtering
|
|
34
|
+
* - Blank value filtering
|
|
35
|
+
*/
|
|
36
|
+
export declare const InSetOption: import('react').NamedExoticComponent<InSetOptionProps>;
|
|
37
|
+
//# sourceMappingURL=InSetOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InSetOption.d.ts","sourceRoot":"","sources":["../../../../src/conditions/InSetOption.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,cAAc,CAAC;AAG5D,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5E;;;;;;;;;;;;;OAaG;IAGH;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAE/B;;OAEG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,KAAK,IAAI,CAAC;CAC1D;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,wDAwMtB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TextFieldProps } from '@mui/material';
|
|
2
|
+
export interface NumberOptionProps extends Omit<TextFieldProps, 'onChange'> {
|
|
3
|
+
/**
|
|
4
|
+
* The option to edit.
|
|
5
|
+
*/
|
|
6
|
+
option: number;
|
|
7
|
+
/**
|
|
8
|
+
* The callback function to handle changes in the option.
|
|
9
|
+
*/
|
|
10
|
+
onOptionChange: (option: number) => void;
|
|
11
|
+
/**
|
|
12
|
+
* If true, makes the editor read-only.
|
|
13
|
+
*/
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Component for editing a number option.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Simple number editor for custom validation.
|
|
21
|
+
* Numbers are evaluated relative to the cell being validated.
|
|
22
|
+
*/
|
|
23
|
+
export declare const NumberOption: import('react').NamedExoticComponent<NumberOptionProps>;
|
|
24
|
+
//# sourceMappingURL=NumberOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberOption.d.ts","sourceRoot":"","sources":["../../../../src/conditions/NumberOption.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAI/D,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;IACzE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,yDA0BvB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ICondition } from '@sheetxl/sdk';
|
|
3
|
+
export interface OperatorAndParamEditorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* The current operator+param pair being edited.
|
|
6
|
+
*/
|
|
7
|
+
operatorParam: {
|
|
8
|
+
operator: string;
|
|
9
|
+
param: any;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Called when either the operator or param changes.
|
|
13
|
+
*/
|
|
14
|
+
onOperatorParamChange: (operatorParam: {
|
|
15
|
+
operator: string;
|
|
16
|
+
param: any;
|
|
17
|
+
}) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Called when the X (remove) button is clicked.
|
|
20
|
+
*/
|
|
21
|
+
onRemove: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* All operators available at this level (leaf + combinator), already filtered by selector.
|
|
24
|
+
* Passed straight through to children — not re-filtered here.
|
|
25
|
+
*/
|
|
26
|
+
operators: ICondition.IOperator[];
|
|
27
|
+
/**
|
|
28
|
+
* The current selector (passed through to param editors and children).
|
|
29
|
+
*/
|
|
30
|
+
selector: ICondition.ISelector | null;
|
|
31
|
+
/**
|
|
32
|
+
* Optional title for the operator select input.
|
|
33
|
+
*/
|
|
34
|
+
operatorTitle?: string;
|
|
35
|
+
/**
|
|
36
|
+
* If true, makes the editor read-only.
|
|
37
|
+
*/
|
|
38
|
+
readOnly?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* If true, hides the remove (X) button — use when exactly one child is required (e.g. NOT combinator).
|
|
41
|
+
*/
|
|
42
|
+
required?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Edits a single operator+param pair.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* - If the operator is a combinator (and/or/not), renders CombinatorOption for the body.
|
|
49
|
+
* - Otherwise renders the appropriate leaf param editor.
|
|
50
|
+
* - Always shows an X (remove) button in the top-right.
|
|
51
|
+
* - The operator can be changed via the OperatorSelect at the top-left.
|
|
52
|
+
* - Operators and selector are passed straight through to children without re-filtering.
|
|
53
|
+
*/
|
|
54
|
+
export declare const OperatorAndParamEditor: React.NamedExoticComponent<OperatorAndParamEditorProps>;
|
|
55
|
+
//# sourceMappingURL=OperatorAndParamEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperatorAndParamEditor.d.ts","sourceRoot":"","sources":["../../../../src/conditions/OperatorAndParamEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAiC1C,MAAM,WAAW,2BAA4B,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACvF;;OAEG;IACH,aAAa,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC;IAChD;;OAEG;IACH,qBAAqB,EAAE,CAAC,aAAa,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,KAAK,IAAI,CAAC;IACjF;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC;IAClC;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,yDA4OjC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FormControlProps } from '@mui/material';
|
|
2
|
+
import { ICondition } from '@sheetxl/sdk';
|
|
3
|
+
export interface OperatorSelectProps extends Omit<FormControlProps, 'onChange' | 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* Current selected rule. Null represents "Any".
|
|
6
|
+
*/
|
|
7
|
+
value: ICondition.IOperator | null;
|
|
8
|
+
/**
|
|
9
|
+
* The list of operators to choose from.
|
|
10
|
+
*/
|
|
11
|
+
operators: ICondition.IOperator[];
|
|
12
|
+
/**
|
|
13
|
+
* Callback fired when the operator changes.
|
|
14
|
+
*/
|
|
15
|
+
onChange: (operator: ICondition.IOperator | null) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Optional title for the select input. If not provided.
|
|
18
|
+
*
|
|
19
|
+
* @default 'Operator'.
|
|
20
|
+
*/
|
|
21
|
+
title?: string;
|
|
22
|
+
/**
|
|
23
|
+
* If true, the select is readonly (not editable, but not visually disabled).
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Uses `readOnly` on the Select to prevent opening the dropdown while
|
|
27
|
+
* maintaining consistent sizing and non-disabled appearance.
|
|
28
|
+
*/
|
|
29
|
+
readOnly?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Select component for choosing an operator.
|
|
33
|
+
*/
|
|
34
|
+
export declare const OperatorSelect: import('react').NamedExoticComponent<OperatorSelectProps>;
|
|
35
|
+
//# sourceMappingURL=OperatorSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperatorSelect.d.ts","sourceRoot":"","sources":["../../../../src/conditions/OperatorSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EACsC,KAAK,gBAAgB,EACjE,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAO/C,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,UAAU,CAAC;IAC1F;;OAEG;IACH,KAAK,EAAE,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC;IACnC;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC;IAClC;;OAEG;IACH,QAAQ,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1D;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,2DAwDzB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ICondition } from '@sheetxl/sdk';
|
|
3
|
+
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
4
|
+
export interface OperatorSelectPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "createPopupPanel" | "onChange"> {
|
|
5
|
+
/**
|
|
6
|
+
* Current selected rule. Null represents "Any".
|
|
7
|
+
*/
|
|
8
|
+
value: ICondition.IOperator | null;
|
|
9
|
+
/**
|
|
10
|
+
* The list of operators to choose from.
|
|
11
|
+
*/
|
|
12
|
+
operators: ICondition.IOperator[];
|
|
13
|
+
/**
|
|
14
|
+
* Callback fired when the operator changes.
|
|
15
|
+
*/
|
|
16
|
+
onChange: (operator: ICondition.IOperator | null) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Optional title for the select input. If not provided.
|
|
19
|
+
*
|
|
20
|
+
* @default 'Operator'.
|
|
21
|
+
*/
|
|
22
|
+
title?: string;
|
|
23
|
+
/**
|
|
24
|
+
* If true, the select is readonly (not editable, but not visually disabled).
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Uses `readOnly` on the Select to prevent opening the dropdown while
|
|
28
|
+
* maintaining consistent sizing and non-disabled appearance.
|
|
29
|
+
*/
|
|
30
|
+
readOnly?: boolean;
|
|
31
|
+
propsPanel?: Partial<React.HTMLAttributes<HTMLElement>>;
|
|
32
|
+
darkMode?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Ref to the underlying element
|
|
35
|
+
*/
|
|
36
|
+
ref?: React.Ref<HTMLElement>;
|
|
37
|
+
}
|
|
38
|
+
export declare const OperatorSelectPopupButton: React.NamedExoticComponent<Omit<OperatorSelectPopupButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
39
|
+
//# sourceMappingURL=OperatorSelectPopupButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperatorSelectPopupButton.d.ts","sourceRoot":"","sources":["../../../../src/conditions/OperatorSelectPopupButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,EACgD,KAAK,2BAA2B,EACtF,MAAM,oBAAoB,CAAC;AAI5B,MAAM,WAAW,8BAA+B,SAAQ,IAAI,CAAC,2BAA2B,EAAE,kBAAkB,GAAG,UAAU,CAAC;IACxH;;OAEG;IACH,KAAK,EAAE,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC;IACnC;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC;IAClC;;OAEG;IACH,QAAQ,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1D;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,UAAU,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;IAExD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;CAC9B;AAED,eAAO,MAAM,yBAAyB,4GAiFnC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Scalar } from '@sheetxl/sdk';
|
|
2
|
+
import { FormulaFieldProps } from '../form';
|
|
3
|
+
export interface ScalarOptionProps extends Omit<FormulaFieldProps, 'value' | 'onChange'> {
|
|
4
|
+
/**
|
|
5
|
+
* The option to edit — a literal (number, text, boolean), or a `=`-prefixed formula.
|
|
6
|
+
*/
|
|
7
|
+
option: Scalar;
|
|
8
|
+
/**
|
|
9
|
+
* The callback function to handle changes in the option.
|
|
10
|
+
*/
|
|
11
|
+
onOptionChange: (option: Scalar) => void;
|
|
12
|
+
/**
|
|
13
|
+
* If true, makes the editor read-only.
|
|
14
|
+
*/
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Param editor for the comparison operators' Scalar param — Excel's own operand box: ONE field
|
|
19
|
+
* that takes a literal or a formula, the leading `=` deciding which. Not a toggle — the `=` is
|
|
20
|
+
* the convention's single discriminator (CONDITIONS-OPERANDS design §2), and a second control
|
|
21
|
+
* restating it would let the two disagree.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* An imported operand like `=$A$1` arrives as a string param; a number input rendered it blank
|
|
25
|
+
* and destroyed it on the first keystroke. Here it reads back exactly as stored, with the formula
|
|
26
|
+
* editor's reference picking and token coloring once the `=` is typed.
|
|
27
|
+
*/
|
|
28
|
+
export declare const ScalarOption: import('react').NamedExoticComponent<ScalarOptionProps>;
|
|
29
|
+
//# sourceMappingURL=ScalarOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarOption.d.ts","sourceRoot":"","sources":["../../../../src/conditions/ScalarOption.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAIzD,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE/D,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,UAAU,CAAC;IACtF;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAuBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,yDA+BvB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FormControlProps } from '@mui/material';
|
|
2
|
+
import { ICondition } from '@sheetxl/sdk';
|
|
3
|
+
export interface SelectorSelectProps extends Omit<FormControlProps, 'onChange' | 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* The list of selectors to choose from.
|
|
6
|
+
*/
|
|
7
|
+
selectors: ICondition.ISelector[];
|
|
8
|
+
/**
|
|
9
|
+
* Current selected type. Null represents "Any".
|
|
10
|
+
*/
|
|
11
|
+
value: ICondition.ISelector | null;
|
|
12
|
+
/**
|
|
13
|
+
* Callback fired when the type changes.
|
|
14
|
+
*/
|
|
15
|
+
onChange: (selector: ICondition.ISelector | null) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Optional title for the select input. If not provided.
|
|
18
|
+
*
|
|
19
|
+
* @default 'Condition'.
|
|
20
|
+
*/
|
|
21
|
+
title?: string;
|
|
22
|
+
/**
|
|
23
|
+
* If true, allows selecting a null value (representing "Any" or no specific selector).
|
|
24
|
+
*/
|
|
25
|
+
allowNull?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* If true, the select is readonly (not editable, but not visually disabled).
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Uses `readOnly` on the Select to prevent opening the dropdown while
|
|
31
|
+
* maintaining consistent sizing and non-disabled appearance.
|
|
32
|
+
*/
|
|
33
|
+
readOnly?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Select component for choosing a scalar type (Number, Text, Boolean, Date, etc.).
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* Uses InteropScalarType for both input and output. Renders with user-friendly
|
|
40
|
+
* labels (i18n-ready).
|
|
41
|
+
*/
|
|
42
|
+
export declare const SelectorSelect: import('react').NamedExoticComponent<SelectorSelectProps>;
|
|
43
|
+
//# sourceMappingURL=SelectorSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectorSelect.d.ts","sourceRoot":"","sources":["../../../../src/conditions/SelectorSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EACsC,KAAK,gBAAgB,EACjE,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,UAAU,CAAC;IAC1F;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC;IAClC;;OAEG;IACH,KAAK,EAAE,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1D;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,2DA4DzB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TextFieldProps } from '@mui/material';
|
|
2
|
+
export interface StringOptionProps extends Omit<TextFieldProps, 'onChange'> {
|
|
3
|
+
/**
|
|
4
|
+
* The option to edit.
|
|
5
|
+
*/
|
|
6
|
+
option: string;
|
|
7
|
+
/**
|
|
8
|
+
* The callback function to handle changes in the option.
|
|
9
|
+
*/
|
|
10
|
+
onOptionChange: (option: string) => void;
|
|
11
|
+
/**
|
|
12
|
+
* If true, makes the editor read-only.
|
|
13
|
+
*/
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Component for editing a text field option.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Simple text editor for custom validation.
|
|
21
|
+
* Text is evaluated relative to the cell being validated.
|
|
22
|
+
*/
|
|
23
|
+
export declare const StringOption: import('react').NamedExoticComponent<StringOptionProps>;
|
|
24
|
+
//# sourceMappingURL=StringOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringOption.d.ts","sourceRoot":"","sources":["../../../../src/conditions/StringOption.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAI/D,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;IACzE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,yDA0BvB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
import { ICondition } from '@sheetxl/sdk';
|
|
4
|
+
export interface TimePeriodOptionProps extends BoxProps {
|
|
5
|
+
/**
|
|
6
|
+
* The time period option to edit.
|
|
7
|
+
*/
|
|
8
|
+
option: ICondition.TimePeriodOption;
|
|
9
|
+
/**
|
|
10
|
+
* The callback function to handle changes in the time period option.
|
|
11
|
+
*/
|
|
12
|
+
onOptionChange: (option: ICondition.TimePeriodOption) => void;
|
|
13
|
+
/**
|
|
14
|
+
* If true, makes the editor read-only.
|
|
15
|
+
*/
|
|
16
|
+
readOnly?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Component for editing time period option (date period selector).
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Allows selecting relative date periods like "today", "last week", "this month", etc.
|
|
23
|
+
*/
|
|
24
|
+
export declare const TimePeriodOption: React.NamedExoticComponent<TimePeriodOptionProps>;
|
|
25
|
+
//# sourceMappingURL=TimePeriodOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimePeriodOption.d.ts","sourceRoot":"","sources":["../../../../src/conditions/TimePeriodOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EACuD,KAAK,QAAQ,EAC1E,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,MAAM,WAAW,qBAAsB,SAAQ,QAAQ;IACrD;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAEpC;;OAEG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,gBAAgB,KAAK,IAAI,CAAC;IAC9D;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA2ED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,mDA4D3B,CAAC"}
|