@sheetxl/studio-mui 0.8.0-beta.7 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +17 -7
- package/browser/esm/{B57WM1X24rsvTF_o.mjs → 2dGXbxSvPxpMpoQB.mjs} +2 -2
- package/browser/esm/AKfq7wiKunwYv5Co.mjs +87 -0
- package/browser/esm/{DyNZEBlugP-x15kP.mjs → B16SyYhTCohin7vO.mjs} +4 -4
- package/browser/esm/B4qh8uSPezvUgs_C.mjs +414 -0
- package/browser/esm/BGR0Hv_mjOPfYxiD.mjs +975 -0
- package/browser/esm/{DR95Rgl8ItgWla8V.mjs → BVbTWo0j5ttMcIWs.mjs} +3 -3
- package/browser/esm/BctMjTuii_LaWmHJ.mjs +119 -0
- package/browser/esm/{CH7ZfljN7ru0Y9Wg.mjs → Bf-pwjpYBKNwL4f8.mjs} +4 -4
- package/browser/esm/Bh7XfTPJIFjaL6fa.mjs +13 -0
- package/browser/esm/BjH_mK6445rm6PL1.mjs +94 -0
- package/browser/esm/BqJSEK805PP8lILC.mjs +197 -0
- package/browser/esm/BrIWEn7tabhEreBm.mjs +973 -0
- package/browser/esm/{D88iVsgfDG9k-qf_.mjs → BsFK55lPALVUu31_.mjs} +5 -5
- package/browser/esm/{3L04oqyfyjRxhmzg.mjs → C0PinnqWu_JwK9l_.mjs} +33 -31
- package/browser/esm/C1KcphZVjVAE638t.mjs +415 -0
- package/browser/esm/{C36WT3I3aIR8y7I6.mjs → C3V7EwPHHPx9aEkE.mjs} +47 -48
- package/browser/esm/CCAPeyEqlStPrh6B.mjs +294 -0
- package/browser/esm/CF2Az5oBVjAigMRt.mjs +68 -0
- package/browser/esm/CIqEqDyl8JZRMblX.mjs +225 -0
- package/browser/esm/CJERhz_1u40JkHfH.mjs +235 -0
- package/browser/esm/CNtF9Fix0G6BEVEl.mjs +424 -0
- package/browser/esm/{D7HOLngE_1FYF6y6.mjs → CWP52da2iNOs3Qtz.mjs} +82 -94
- package/browser/esm/CWpF_0HjYiRiddX6.mjs +31 -0
- package/browser/esm/CbedwfwBLBaagGD-.mjs +360 -0
- package/browser/esm/{DNhLiDpvz3lAR190.mjs → Cc9tcBSYzJIv-dZw.mjs} +156 -109
- package/browser/esm/CcPLziOAdWTbG7xx.mjs +141 -0
- package/browser/esm/CdRnGw_9tvkn9d9o.mjs +335 -0
- package/browser/esm/{BWAIbfQZ6h5xVLdB.mjs → CgLDSZ8XvBqAB-Y2.mjs} +20 -18
- package/browser/esm/CgZLR7ijzsUoawf8.mjs +1281 -0
- package/browser/esm/Cn6OsV-MbO0rIM-o.mjs +442 -0
- package/browser/esm/{0Rpk1T56LoSnDrmq.mjs → CnDnNU6GGzM05K8w.mjs} +4 -4
- package/browser/esm/CnVHQ6i6a8VCMsn1.mjs +106 -0
- package/browser/esm/D06He-Tw4moPdM5f.mjs +103 -0
- package/browser/esm/D9lQwTAJ9RO60ovS.mjs +72 -0
- package/browser/esm/{D3BwGfI_IEjay0dA.mjs → D9xw1YuRJUjPMaqA.mjs} +2 -2
- package/browser/esm/DBr6lCvWLLwnzSGy.mjs +386 -0
- package/browser/esm/DEdHwT-2JZO9HyZN.mjs +14 -0
- package/browser/esm/DH4SdW-02-I8082_.mjs +14 -0
- package/browser/esm/DHbnrUh5rdi62fgO.mjs +516 -0
- package/browser/esm/DJRKcOT0Xv-1r0OP.mjs +161 -0
- package/browser/esm/DPycoTH_4RNdK2hu.mjs +252 -0
- package/browser/esm/{CpTqhDZotYaKGbLl.mjs → DXQTN_6-MvPivCrz.mjs} +8 -6
- package/browser/esm/DaNVYYZLCql8_n0i.mjs +831 -0
- package/browser/esm/Dakiv-oEU8ty2ILI.mjs +77 -0
- package/browser/esm/DfCd-MxLjE3gZ5jl.mjs +392 -0
- package/browser/esm/DhZqt49Ue-lveZv3.mjs +2692 -0
- package/browser/esm/DkxgFV6jJb6pO6lM.mjs +490 -0
- package/browser/esm/{B_PhUn6yySwXt2wo.mjs → QKDgV7kur90Bzexo.mjs} +14 -13
- package/browser/esm/R8q92QTpUT-sB4Nq.mjs +8547 -0
- package/browser/esm/RaV_j7qhH97TUb6P.mjs +1550 -0
- package/browser/esm/S-MJsifSUY334In9.mjs +8 -0
- package/browser/esm/UW74C3TpyGhFEOFO.mjs +267 -0
- package/browser/esm/W-jkQJTDojDSK93k.mjs +242 -0
- package/browser/esm/czz-Du13p5saoAex.mjs +318 -0
- package/browser/esm/{DErAKw-lIK3RY8m-.mjs → ilgUW6eI60262DJU.mjs} +2 -2
- package/browser/esm/index.mjs +1910 -289
- package/browser/esm/kbx_7Y2kVGMGIWtW.mjs +633 -0
- package/browser/esm/vCWRBUPIH8HXlYjO.mjs +94 -0
- package/browser/esm/w0DasqEtSJvoQVk2.mjs +517 -0
- package/browser/esm/w5dY32V2IxkbDBsT.mjs +225 -0
- package/licenses/dependencies.txt +113 -366
- package/node/esm/7GlVS1uyKRUAAjw9.mjs +1831 -0
- package/node/esm/B0mjDApnDOWo9UGr.mjs +412 -0
- package/node/esm/B19kx8jtLWU7WYCa.mjs +142 -0
- package/node/esm/BAFf7hg6qgFyQDW8.mjs +73 -0
- package/node/esm/BDdBcx7cNTM1hIXu.mjs +972 -0
- package/node/esm/BGBolrjPvNncjS1h.mjs +94 -0
- package/node/esm/BI3dFg_vx1Vgxgps.mjs +516 -0
- package/node/esm/BO19LMEPFqVsK1xu.mjs +267 -0
- package/node/esm/BSrtVTtNqcTg8QKK.mjs +68 -0
- package/node/esm/BcLccq7CvZiJXCDZ.mjs +319 -0
- package/node/esm/BeZ1ZY1UJepW8u1f.mjs +118 -0
- package/node/esm/BkLwJxkD4pyrume5.mjs +425 -0
- package/node/esm/{YKY4d8_Ckc8nPQqI.mjs → Bl_AT6xOKzBqc3PT.mjs} +10 -10
- package/node/esm/{DQtpY5kX99aMHygs.mjs → Bqah1dCUEhmRmY3c.mjs} +2 -2
- package/node/esm/Bv5awmbwVUdl4rma.mjs +106 -0
- package/node/esm/C3mSFWiCu7iONlk6.mjs +638 -0
- package/node/esm/CAJhvJU0gj93fPWl.mjs +141 -0
- package/node/esm/CJobW3iRAQ5vHeQr.mjs +14 -0
- package/node/esm/{BbXHuDHRHOW_6Sbs.mjs → CSJTM9SCqIDkHlpm.mjs} +21 -21
- package/node/esm/CUnv4ewRTvuP0si8.mjs +1276 -0
- package/node/esm/CWnezGEPuX9UeJ8E.mjs +385 -0
- package/node/esm/{Cul_Vgip2OE8yFBQ.mjs → CarjiReyjevcMdlI.mjs} +190 -141
- package/node/esm/CoG2fq6dYCvhC5yu.mjs +224 -0
- package/node/esm/Cpegk2BA6FOrOkZ0.mjs +77 -0
- package/node/esm/Cq1V2i0dRTWnoU1K.mjs +94 -0
- package/node/esm/{Ccrq9TNkiiSHKw-m.mjs → CyPtKWjud-Y-Pvq8.mjs} +2 -2
- package/node/esm/DEVN1ZPedFq8Bnui.mjs +197 -0
- package/node/esm/{BlD3bHo8AAxK7O1j.mjs → DFUPAGKlHT2-8dyC.mjs} +33 -31
- package/node/esm/DMxfzW-UQdMaV-Gx.mjs +975 -0
- package/node/esm/DWbMD1KaT8mlCUfO.mjs +519 -0
- package/node/esm/{DifZAchLTKOmWpkv.mjs → DffuRwJI_5oVtzZb.mjs} +23 -23
- package/node/esm/Dg9rTwnydI2UVmGG.mjs +242 -0
- package/node/esm/{BTI9exTFHEYzVjw9.mjs → DmQMejdH1-aYq99z.mjs} +70 -71
- package/node/esm/{CbpkRpNbQYYOJbxH.mjs → DvSoGqy_51YQZzYM.mjs} +84 -96
- package/node/esm/DzTvKGqU1I9m-_qd.mjs +391 -0
- package/node/esm/{Dvvg1Yo2e7OGd8sv.mjs → PKRuDgaA8RrsqSNn.mjs} +29 -29
- package/node/esm/{v0BFuYjhq2G8zDRe.mjs → POUGgaN5BmOnEPPl.mjs} +2 -2
- package/node/esm/WqxW6Up5_6oeJrSr.mjs +489 -0
- package/node/esm/ehyFZGpXZSmR7Q7-.mjs +294 -0
- package/node/esm/index.mjs +9829 -8837
- package/package.json +16 -19
- package/resources/contents.json +6 -0
- package/resources/locales/contents.json +14 -0
- package/resources/locales/de/groups.cmd.json +61 -10
- package/resources/locales/de/ui.msg.json +273 -15
- package/resources/locales/de/workbookAnomalies.cmd.json +14 -0
- package/resources/locales/en/groups.cmd.json +71 -11
- package/resources/locales/en/ui.msg.json +278 -15
- package/resources/locales/en/workbookAnomalies.cmd.json +14 -0
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
- package/types/src/anomalies/AnomaliesCommands.d.ts +8 -0
- package/types/src/anomalies/AnomaliesMessages.d.ts +30 -0
- package/types/src/anomalies/AnomaliesPlugin.d.ts +12 -0
- package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
- package/types/src/anomalies/_source.d.ts +7 -0
- package/types/src/anomalies/index.d.ts +3 -0
- package/types/src/border/BorderPopupButton.d.ts +1 -1
- package/types/src/border/BorderTemplateIcon.d.ts +6 -1
- package/types/src/chart/ChartFormatPanel.d.ts +20 -0
- package/types/src/chart/ChartPlugin.d.ts +6 -0
- package/types/src/chart/index.d.ts +3 -0
- package/types/src/color/ColorPopupButton.d.ts +1 -1
- package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
- package/types/src/command/ColorCommandButton.d.ts +5 -0
- package/types/src/command/DocThemeCommandButton.d.ts +1 -1
- package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
- package/types/src/command/FontSizeCommandButton.d.ts +1 -1
- package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
- package/types/src/command/LanguageCommandButton.d.ts +1 -1
- package/types/src/command/LocaleCommandButton.d.ts +1 -1
- package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
- package/types/src/command/PresetPivotStylesCommandButton.d.ts +17 -0
- package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
- package/types/src/command/index.d.ts +2 -0
- package/types/src/comments/CommentCard.d.ts +2 -2
- package/types/src/comments/CommentsPlugin.d.ts +1 -1
- package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +1 -1
- package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +3 -3
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
- package/types/src/conditions/CombinatorOption.d.ts +7 -0
- package/types/src/conditions/ConditionEditor.d.ts +55 -3
- package/types/src/conditions/ConditionUtils.d.ts +34 -6
- package/types/src/conditions/ExpressionOption.d.ts +6 -0
- package/types/src/conditions/MembershipOption.d.ts +67 -0
- package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
- package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
- package/types/src/conditions/ScalarOption.d.ts +5 -4
- package/types/src/conditions/SelectorSelect.d.ts +16 -7
- package/types/src/conditions/index.d.ts +1 -1
- package/types/src/conditions/useFormulaOption.d.ts +2 -2
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +9 -5
- package/types/src/dataValidation/DataValidationIcon.d.ts +1 -1
- package/types/src/dataValidation/DataValidationPlugin.d.ts +1 -1
- package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
- package/types/src/dialog/OutlineSettingsDialog.d.ts +12 -0
- package/types/src/dialog/PivotTableNewDialog.d.ts +11 -0
- package/types/src/dialog/SparklineEditDialog.d.ts +10 -0
- package/types/src/dialog/SparklineNewDialog.d.ts +23 -0
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
- package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
- package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
- package/types/src/externalLink/ExternalLinksPlugin.d.ts +1 -1
- package/types/src/fill/GradientEditor.d.ts +15 -13
- package/types/src/fill/GradientStopsBar.d.ts +43 -0
- package/types/src/fill/PatternPopupButton.d.ts +1 -1
- package/types/src/fill/index.d.ts +1 -0
- package/types/src/filter/ColumnMenu.d.ts +31 -1
- package/types/src/filter/PivotMenu.d.ts +31 -0
- package/types/src/filter/index.d.ts +1 -1
- package/types/src/form/FormulaField.d.ts +4 -4
- package/types/src/form/InputField.d.ts +5 -5
- package/types/src/format/BorderPreview.d.ts +11 -4
- package/types/src/format/FillPanel.d.ts +42 -2
- package/types/src/format/FormatPanelParts.d.ts +3 -1
- package/types/src/format/FormatPlugin.d.ts +1 -6
- package/types/src/format/LinePanel.d.ts +53 -0
- package/types/src/format/LinePreviews.d.ts +71 -0
- package/types/src/format/index.d.ts +1 -0
- package/types/src/format/useFormatSelection.d.ts +6 -6
- package/types/src/formulaBar/IFormulaBar.d.ts +32 -3
- package/types/src/formulaBar/MobileFormulaBar.d.ts +42 -0
- package/types/src/formulaBar/MobileInputToolbar.d.ts +43 -0
- package/types/src/formulaBar/index.d.ts +3 -0
- package/types/src/formulaBar/useFormulaBarSession.d.ts +68 -0
- package/types/src/index.d.ts +19 -6
- package/types/src/itemsPanel/ItemCard.d.ts +50 -7
- package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
- package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
- package/types/src/itemsPanel/index.d.ts +1 -0
- package/types/src/named/NamedDetailsPanel.d.ts +2 -2
- package/types/src/named/NamedPlugin.d.ts +1 -1
- package/types/src/picture/PicturePlugin.d.ts +6 -0
- package/types/src/picture/index.d.ts +2 -0
- package/types/src/pivot/PivotChipMenu.d.ts +10 -0
- package/types/src/pivot/PivotPlugin.d.ts +3 -0
- package/types/src/pivot/PivotStyleCanvasPreview.d.ts +23 -0
- package/types/src/pivot/PivotTableHeader.d.ts +12 -0
- package/types/src/pivot/PivotValueSettingsDialog.d.ts +15 -0
- package/types/src/pivot/_pivotSource.d.ts +7 -0
- package/types/src/presence/PresenceOverlay.d.ts +14 -0
- package/types/src/presence/PresencePlugin.d.ts +31 -0
- package/types/src/presence/PresenceStrip.d.ts +22 -0
- package/types/src/presence/PresenceTaskPane.d.ts +13 -0
- package/types/src/presence/Timeline.d.ts +29 -0
- package/types/src/presence/index.d.ts +5 -0
- package/types/src/protection/ProtectedCellsPanel.d.ts +3 -3
- package/types/src/protection/ProtectionPlugin.d.ts +1 -1
- package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
- package/types/src/protection/index.d.ts +1 -1
- package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
- package/types/src/shape/ShapeGalleryCommandButton.d.ts +18 -0
- package/types/src/shape/ShapePlugin.d.ts +8 -0
- package/types/src/shape/index.d.ts +3 -0
- package/types/src/slicer/InsertSlicerCommandButton.d.ts +13 -0
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +12 -0
- package/types/src/slicer/SlicerPlugin.d.ts +6 -0
- package/types/src/slicer/index.d.ts +3 -0
- package/types/src/statusBar/PendingStatus.d.ts +19 -0
- package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
- package/types/src/statusBar/index.d.ts +1 -0
- package/types/src/studio/StudioProps.d.ts +62 -27
- package/types/src/studio/formulaBarPlacement.d.ts +35 -0
- package/types/src/studio/useStudioApp.d.ts +25 -24
- package/types/src/table/TablePlugin.d.ts +1 -1
- package/types/src/table/_drawStyleSwatch.d.ts +25 -0
- package/types/src/template/TemplateDialog.d.ts +1 -1
- package/types/src/template/TemplatePanel.d.ts +5 -1
- package/types/src/template/TemplateSearchField.d.ts +17 -1
- package/types/src/template/categoryColor.d.ts +8 -0
- package/types/src/template/useTemplateCatalog.d.ts +2 -0
- package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
- package/types/src/theme/ThemeUtils.d.ts +8 -27
- package/types/src/toolbar/WorkbookToolbars.d.ts +2 -2
- package/types/src/workbook/DefaultRenderers.d.ts +44 -16
- package/types/src/workbook/OutlineButtons.d.ts +11 -0
- package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
- package/types/src/workbook/WorkbookElement.d.ts +5 -4
- package/types/src/workbook/WorkbookStrip.d.ts +8 -7
- package/types/src/workbook/index.d.ts +1 -1
- package/browser/cjs/2tG9HJLr-WjsOCP3.cjs +0 -1
- package/browser/cjs/3RXtLkq7wTAV6y_e.cjs +0 -1
- package/browser/cjs/3k_KqDFr-AybPztc.cjs +0 -5
- package/browser/cjs/4_Zy3pR6YXkzISoK.cjs +0 -1
- package/browser/cjs/BD50lsTki7wvzb5g.cjs +0 -1
- package/browser/cjs/BJ-wdkCaXqJaejKf.cjs +0 -1
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
- package/browser/cjs/Bc-YisjBtD56vBAW.cjs +0 -1
- package/browser/cjs/BcBrhEv9acaTxPkO.cjs +0 -13
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/ByIUHPOa02D7XbdC.cjs +0 -1
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
- package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
- package/browser/cjs/CkroJ2FmfFvk6Eyv.cjs +0 -1
- package/browser/cjs/Clzu4HOXk3QSlzUD.cjs +0 -8
- package/browser/cjs/CzJvR12QCQb-0Rtn.cjs +0 -1
- package/browser/cjs/D-Yo5aV9STT5KH4G.cjs +0 -1
- package/browser/cjs/DwkiLFWUtLC8ZcIQ.cjs +0 -1
- package/browser/cjs/HuPFsmz7kyZVo3c7.cjs +0 -1
- package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
- package/browser/cjs/M0_dvdYwhikqP9kg.cjs +0 -2
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
- package/browser/cjs/index.cjs +0 -2
- package/browser/esm/7gisHVXYgcPxWH8-.mjs +0 -223
- package/browser/esm/B7k8enrhC2Rvqhn1.mjs +0 -152
- package/browser/esm/BK4OEmeaw-kC-vAN.mjs +0 -5355
- package/browser/esm/DvYZOxsaTNeBKuFq.mjs +0 -411
- package/browser/esm/DzWcb3yuPXS0E4_P.mjs +0 -236
- package/browser/esm/WftYXVWvPKx99H0H.mjs +0 -115
- package/browser/esm/eoNyVUe5ZEpHwJ7k.mjs +0 -52
- package/browser/esm/hFLn30a6N1fEy7fz.mjs +0 -13582
- package/browser/esm/jkFhDHWwKoyTSSDL.mjs +0 -1150
- package/node/esm/CpteKzMPi39jxmYL.mjs +0 -236
- package/node/esm/DA2gosTk8L-FUVI5.mjs +0 -4503
- package/node/esm/DP23-d6_VRFro0_D.mjs +0 -415
- package/node/esm/lH1iFsECniBRMubb.mjs +0 -115
- package/types/src/conditions/DateTimeOption.d.ts +0 -43
- package/types/src/conditions/ListSourceOption.d.ts +0 -31
- package/types/src/filter/FilterList.d.ts +0 -31
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { IColor } from '@sheetxl/sdk';
|
|
3
3
|
import { PopupButtonType, ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
4
4
|
import { ColorPanelProps } from './ColorPanel';
|
|
5
|
-
export interface ColorPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "
|
|
5
|
+
export interface ColorPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "renderPopupPanel"> {
|
|
6
6
|
/** `null` means no color of its own — the AUTO swatch is the selected one. */
|
|
7
7
|
selectedColor: IColor | null;
|
|
8
8
|
onSelectColor?: (color: IColor | null, isCustom: boolean) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
3
|
-
export interface AccountingStyleCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | '
|
|
3
|
+
export interface AccountingStyleCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | 'renderPopupPanel'> {
|
|
4
4
|
/** The render surface, for scoped command chrome (label/description). */
|
|
5
5
|
groupKey?: string;
|
|
6
6
|
}
|
|
@@ -6,6 +6,11 @@ import { ColorPopupButtonProps } from '../color';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface ColorCommandButtonProps extends Omit<ColorPopupButtonProps, "selectedColor" | "variant" | "icon" | "label"> {
|
|
8
8
|
commandKey?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The group the button is a member of: its label is the command's label in that group (a menu's
|
|
11
|
+
* short form, `High Point` for `High Point Color`).
|
|
12
|
+
*/
|
|
13
|
+
groupKey?: string;
|
|
9
14
|
icon?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
10
15
|
label?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
11
16
|
/**
|
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { ITheme } from '@sheetxl/sdk';
|
|
3
3
|
import { CommandButtonType } from '@sheetxl/utils-react';
|
|
4
4
|
import { ThemeSelectPopupButtonProps } from '../theme';
|
|
5
|
-
export interface DocThemeCommandButtonProps extends Omit<ThemeSelectPopupButtonProps, "
|
|
5
|
+
export interface DocThemeCommandButtonProps extends Omit<ThemeSelectPopupButtonProps, "renderPopupPanel" | "variant" | "themes" | "icon" | "label"> {
|
|
6
6
|
commandKey: string;
|
|
7
7
|
icon?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
8
8
|
label?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
3
|
-
export interface FontFamilyCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "
|
|
3
|
+
export interface FontFamilyCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "renderPopupPanel"> {
|
|
4
4
|
commandKey: string;
|
|
5
5
|
icon?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
6
6
|
label?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
3
|
-
export interface FontSizeCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "
|
|
3
|
+
export interface FontSizeCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "renderPopupPanel"> {
|
|
4
4
|
commandKey?: string;
|
|
5
5
|
icon?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
6
6
|
label?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CommandButtonProps } from '@sheetxl/utils-react';
|
|
3
|
+
/** The key the ribbon's insert-control entry is registered under. */
|
|
4
|
+
export declare const INSERT_CELL_CONTROL_OPTIONS_KEY = "insertCellControlOptions";
|
|
5
|
+
/**
|
|
6
|
+
* The Insert ribbon's cell control button. With only the built-in checkbox registered it is the
|
|
7
|
+
* plain `insertCheckbox` button, as it always was; once a host registers another control type that
|
|
8
|
+
* draws, it becomes a split button: the checkbox stays the quick action, and the dropdown lists
|
|
9
|
+
* every type, each running `insertCellControl` with the type as its argument, then the
|
|
10
|
+
* `formatCellControl` pane.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Registered as the `insertCellControlOptions` entry's `render`, so its label, icon and tooltip
|
|
14
|
+
* come from the catalog like any other ribbon control, and it follows the content registry live.
|
|
15
|
+
*/
|
|
16
|
+
export declare const InsertCellControlCommandButton: React.NamedExoticComponent<CommandButtonProps<any, any, void> & React.RefAttributes<HTMLElement>>;
|
|
17
|
+
//# sourceMappingURL=InsertCellControlCommandButton.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
3
|
-
export interface LanguageCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | '
|
|
3
|
+
export interface LanguageCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | 'renderPopupPanel'> {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* The UI-language picker, backed by the studio `language` command (state = the active tag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
3
|
-
export interface LocaleCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | '
|
|
3
|
+
export interface LocaleCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | 'renderPopupPanel'> {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* The workbook regional-format (locale) picker, backed by the workbook `locale` command.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ICellStyle } from '@sheetxl/sdk';
|
|
3
3
|
import { CommandPopupButtonProps } from '@sheetxl/utils-mui';
|
|
4
4
|
export interface PresetCellStylesCommandButtonProps extends CommandPopupButtonProps {
|
|
5
5
|
commandKey: string;
|
|
6
|
-
selectedNamed?:
|
|
7
|
-
onSelectNamed?: (style:
|
|
6
|
+
selectedNamed?: ICellStyle.INamed;
|
|
7
|
+
onSelectNamed?: (style: ICellStyle.INamed) => void;
|
|
8
8
|
usePreviewIcon?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare const PresetCellStylesCommandButton: React.NamedExoticComponent<Omit<PresetCellStylesCommandButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IPivotTable } from '@sheetxl/sdk';
|
|
2
|
+
import { CommandPopupButtonProps } from '@sheetxl/utils-mui';
|
|
3
|
+
export interface PresetPivotStylesCommandButtonProps extends CommandPopupButtonProps {
|
|
4
|
+
commandKey: string;
|
|
5
|
+
/**
|
|
6
|
+
* The pivot table the gallery shows and its quick action takes.
|
|
7
|
+
* @defaultValue the pivot table the active cell is in
|
|
8
|
+
*/
|
|
9
|
+
selectedPivot?: IPivotTable;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The pivot table style gallery: every style shown for pivot tables, the custom ones first, each a
|
|
13
|
+
* swatch of the style over a small pivot table with the active table's options. A pick restyles
|
|
14
|
+
* the active pivot table.
|
|
15
|
+
*/
|
|
16
|
+
export declare const PresetPivotStylesCommandButton: import('react').NamedExoticComponent<Omit<PresetPivotStylesCommandButtonProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
17
|
+
//# sourceMappingURL=PresetPivotStylesCommandButton.d.ts.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CommandPopupButtonProps } from '@sheetxl/utils-mui';
|
|
3
3
|
/**
|
|
4
|
-
* Zoom-level split button
|
|
5
|
-
* preset levels + a custom input, while the quick button always executes
|
|
6
|
-
* the current zoom scale.
|
|
4
|
+
* Zoom-level split button, shared by the status bar and the View toolbar. Like the `textRotateOptions`
|
|
5
|
+
* group: the popup lists the preset levels + a custom input, while the quick button always executes
|
|
6
|
+
* `sheetZoom100` yet *displays* the current zoom scale. The percent text is styled as a toolbar label;
|
|
7
|
+
* a denser surface restyles it through the `zoom-percent` class and drops the outline (see `SheetZoomScale`).
|
|
7
8
|
*/
|
|
8
9
|
export declare const SheetZoomCommandButton: React.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
9
10
|
//# sourceMappingURL=SheetZoomCommandButton.d.ts.map
|
|
@@ -11,6 +11,7 @@ export * from './TextEffectsCommandButton';
|
|
|
11
11
|
export * from './PasteCommandButton';
|
|
12
12
|
export * from './PresetCellStylesCommandButton';
|
|
13
13
|
export * from './PresetTableStylesCommandButton';
|
|
14
|
+
export * from './PresetPivotStylesCommandButton';
|
|
14
15
|
export * from './DocThemeCommandButton';
|
|
15
16
|
export * from './FileCommandButton';
|
|
16
17
|
export * from './AppearanceCommandButton';
|
|
@@ -21,4 +22,5 @@ export * from './StudioCommandGroups';
|
|
|
21
22
|
export * from './WalkingCopyCommandButton';
|
|
22
23
|
export * from './InsertFunctionSumCommandPopupButton';
|
|
23
24
|
export * from './InsertFunctionCommandPopupButton';
|
|
25
|
+
export * from './InsertCellControlCommandButton';
|
|
24
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CellCoords } from '@sheetxl/utils';
|
|
3
|
-
import { IComment,
|
|
3
|
+
import { IComment, IWorksheet } from '@sheetxl/sdk';
|
|
4
4
|
export interface CommentCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
5
5
|
/** The sheet the card's cell is on. */
|
|
6
|
-
sheet:
|
|
6
|
+
sheet: IWorksheet;
|
|
7
7
|
/** The cell the card belongs to. */
|
|
8
8
|
coords: CellCoords;
|
|
9
9
|
/** The thread, or `null` for a draft: nothing is written until it is posted. */
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Registers the **Comments** pane, which `showCommentsPane` opens and `updateComments` writes in
|
|
3
3
|
* while it is showing.
|
|
4
4
|
*/
|
|
5
|
-
export declare const CommentsPlugin: () => void;
|
|
5
|
+
export declare const CommentsPlugin: () => (() => void);
|
|
6
6
|
//# sourceMappingURL=CommentsPlugin.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ConditionalFormatPlugin: () => void;
|
|
1
|
+
export declare const ConditionalFormatPlugin: () => (() => void);
|
|
2
2
|
//# sourceMappingURL=ConditionalFormatPlugin.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ICellStyle } from '@sheetxl/sdk';
|
|
3
3
|
export interface ConditionalFormatStylePickerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
/**
|
|
5
5
|
* The rule's dxf. A differential format — only the properties the user touched are present.
|
|
@@ -8,11 +8,11 @@ export interface ConditionalFormatStylePickerProps extends React.HTMLAttributes<
|
|
|
8
8
|
* Named `format` (not `style`) because this interface extends the DOM attributes, where `style`
|
|
9
9
|
* is already the CSS prop.
|
|
10
10
|
*/
|
|
11
|
-
format:
|
|
11
|
+
format: ICellStyle.Properties | null;
|
|
12
12
|
/**
|
|
13
13
|
* Called with the replacement dxf; `null` clears every override.
|
|
14
14
|
*/
|
|
15
|
-
onFormatChange: (format:
|
|
15
|
+
onFormatChange: (format: ICellStyle.Properties | null) => void;
|
|
16
16
|
readOnly?: boolean;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
@@ -24,7 +24,7 @@ export interface ConditionalFormatStylePickerProps extends React.HTMLAttributes<
|
|
|
24
24
|
* offer, not a separate verb — and as a toolbar `✕` it read as *close*.
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
|
-
* Reads and writes {@link
|
|
27
|
+
* Reads and writes {@link ICellStyle.Properties} directly. Border is in the model but not in this
|
|
28
28
|
* toolbar (beyond the red-border preset); a full border editor belongs to the format dialog.
|
|
29
29
|
*
|
|
30
30
|
* There is no `AaBbCc` swatch here: the panel header and every rule card already paint the rule,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ICellStyle } from '@sheetxl/sdk';
|
|
3
3
|
import { ConditionalIconSpec } from '@sheetxl/react';
|
|
4
4
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
5
5
|
/** Where a band's icon comes from: a set and an index into it. */
|
|
6
6
|
export type IconAddress = {
|
|
7
|
-
set:
|
|
7
|
+
set: ICellStyle.IconSet;
|
|
8
8
|
id: number;
|
|
9
9
|
};
|
|
10
|
-
export interface IconPickerPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | '
|
|
10
|
+
export interface IconPickerPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'renderPopupPanel'> {
|
|
11
11
|
/** What the band draws now, or `null` for nothing. */
|
|
12
12
|
icon: ConditionalIconSpec | null;
|
|
13
13
|
/**
|
|
@@ -11,7 +11,7 @@ export interface IconSetRulePanelProps extends React.HTMLAttributes<HTMLDivEleme
|
|
|
11
11
|
* none) and its threshold.
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* The gallery offers exactly the sets `
|
|
14
|
+
* The gallery offers exactly the sets `ICellStyle.IconSet` names, so a rule authored here always
|
|
15
15
|
* round-trips — including the three Excel 2010 sets that can only be written into the x14
|
|
16
16
|
* extension. A set name adopted from a file that is none of them is shown by name and left as it
|
|
17
17
|
* is; picking any preset replaces it.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ICondition } from '@sheetxl/sdk';
|
|
3
3
|
import { CombinatorInput } from './ConditionUtils';
|
|
4
|
+
import { MembershipItemsProvider, MembershipOptionProps } from './MembershipOption';
|
|
4
5
|
export interface CombinatorOptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
6
|
/**
|
|
6
7
|
* The combinator operator (and / or / not).
|
|
@@ -23,6 +24,12 @@ export interface CombinatorOptionProps extends React.HTMLAttributes<HTMLDivEleme
|
|
|
23
24
|
* The selector (passed down to children).
|
|
24
25
|
*/
|
|
25
26
|
selector: ICondition.ISelector | null;
|
|
27
|
+
/** The items provider for an `InSet` checklist, passed down to children. */
|
|
28
|
+
getItems?: MembershipItemsProvider;
|
|
29
|
+
/** Passed down to an `InSet` checklist. */
|
|
30
|
+
propsChecklist?: MembershipOptionProps['propsChecklist'];
|
|
31
|
+
/** The root condition's Ignore Blank, passed down to an `InSet` checklist. */
|
|
32
|
+
ignoreBlank?: boolean;
|
|
26
33
|
/**
|
|
27
34
|
* If true, makes the editor read-only.
|
|
28
35
|
*/
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
3
|
import { ICondition, ICellRanges } from '@sheetxl/sdk';
|
|
4
|
+
import { RemoveButtonProps } from './OperatorAndParamEditor';
|
|
5
|
+
import { MembershipItemsProvider, MembershipOptionProps } from './MembershipOption';
|
|
6
|
+
/**
|
|
7
|
+
* The frame a host draws around a {@link ConditionEditor}: a rounded, faintly filled box the rule
|
|
8
|
+
* card sits in. The host adds its own padding (a pane's is wider than a menu's).
|
|
9
|
+
*/
|
|
10
|
+
export declare const SxConditionEditorFrame: {
|
|
11
|
+
readonly backgroundColor: "action.hover";
|
|
12
|
+
readonly border: 1;
|
|
13
|
+
readonly borderColor: "divider";
|
|
14
|
+
readonly borderRadius: 1;
|
|
15
|
+
};
|
|
3
16
|
export interface ConditionEditorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
17
|
/**
|
|
5
18
|
* The condition.
|
|
@@ -18,12 +31,19 @@ export interface ConditionEditorProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
18
31
|
*/
|
|
19
32
|
selectorTitle?: string;
|
|
20
33
|
/**
|
|
21
|
-
*
|
|
34
|
+
* Whether the "Ignore Blank" checkbox is shown. It is the condition's `includeBlanks`: checked,
|
|
35
|
+
* a blank is never judged, under every host. A host whose list carries the `(Blank)` row may
|
|
36
|
+
* hide it.
|
|
22
37
|
*
|
|
23
|
-
* @
|
|
24
|
-
* @see {@link ICondition.isIncludeBlanks}
|
|
38
|
+
* @defaultValue `true`
|
|
39
|
+
* @see {@link ICondition.isIncludeBlanks}
|
|
25
40
|
*/
|
|
26
41
|
showIncludeBlanks?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The host's own settings for the rule, shown on the Ignore Blank row after it: a validation's
|
|
44
|
+
* In-cell dropdown. Shown whether or not Ignore Blank is.
|
|
45
|
+
*/
|
|
46
|
+
qualifiers?: React.ReactNode;
|
|
27
47
|
/**
|
|
28
48
|
* If true, makes the editor read-only.
|
|
29
49
|
*/
|
|
@@ -41,6 +61,38 @@ export interface ConditionEditorProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
41
61
|
* values already there). See {@link ICondition.ISelector.getDefaultCondition}.
|
|
42
62
|
*/
|
|
43
63
|
ranges?: ICellRanges | null;
|
|
64
|
+
/**
|
|
65
|
+
* The items an `InSet` may be chosen from (a filter's column). With it `InSet` is offered and
|
|
66
|
+
* edited as a checklist of those items, whatever the selector.
|
|
67
|
+
*/
|
|
68
|
+
getItems?: MembershipItemsProvider;
|
|
69
|
+
/** Passed to the `InSet` checklist. */
|
|
70
|
+
propsChecklist?: MembershipOptionProps['propsChecklist'];
|
|
71
|
+
/**
|
|
72
|
+
* Whether the type (selector) row is shown. A filter's column has one type, so its menu hides it.
|
|
73
|
+
*
|
|
74
|
+
* @defaultValue `true`
|
|
75
|
+
*/
|
|
76
|
+
showSelector?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* The label of the root rule's operator select. "When" reads as a sentence under a selector
|
|
79
|
+
* row ("Allow … When …"); a host with no selector row may pass `''` for the bare select.
|
|
80
|
+
* Nested rules keep their own labels ("and", "or").
|
|
81
|
+
*
|
|
82
|
+
* @defaultValue "When"
|
|
83
|
+
*/
|
|
84
|
+
operatorTitle?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The button that takes the root rule out, in place of the X. What that means is the host's: a
|
|
87
|
+
* validation or format pane clears its rule (the X), a filter has nothing to clear and passes
|
|
88
|
+
* `null` for no button. See {@link RemoveButtonProps}. Nested rules keep their X.
|
|
89
|
+
*/
|
|
90
|
+
renderRemove?: ((props: RemoveButtonProps) => React.ReactNode) | null;
|
|
91
|
+
/**
|
|
92
|
+
* The box's own styles. The editor draws no surface or padding of its own: a pane that wants
|
|
93
|
+
* it framed gives it the frame; a menu lays it against its own edges.
|
|
94
|
+
*/
|
|
95
|
+
sx?: SxProps<Theme>;
|
|
44
96
|
}
|
|
45
97
|
/**
|
|
46
98
|
* Reusable condition editor with a type selector (single) and a recursive operator+param editor.
|
|
@@ -16,6 +16,9 @@ export declare const transferInputKey: (from: object, to: object) => void;
|
|
|
16
16
|
* Internal data shape for a single child inside a combinator (AND/OR/NOT).
|
|
17
17
|
*/
|
|
18
18
|
export interface CombinatorInput {
|
|
19
|
+
/** The child's own selector, when it reads the value differently from its parent (a file's
|
|
20
|
+
* `notEqual` is `not(Display + equalTo)`). Absent, the parent's selector reads for it. */
|
|
21
|
+
selector?: string | null;
|
|
19
22
|
operator: string;
|
|
20
23
|
param: any;
|
|
21
24
|
}
|
|
@@ -24,6 +27,28 @@ export interface CombinatorInput {
|
|
|
24
27
|
* predicate. A caller that does want them (AutoFilter) passes its own `exclude`.
|
|
25
28
|
*/
|
|
26
29
|
export declare const DEFAULT_EXCLUDED_OPERATORS: readonly string[];
|
|
30
|
+
/**
|
|
31
|
+
* Marks `operator` to be listed first among its kind: a host's own name for the test its users
|
|
32
|
+
* reach for (a filter's "Values").
|
|
33
|
+
*/
|
|
34
|
+
export declare const pinFirst: <T extends ICondition.IOperator>(operator: T) => T;
|
|
35
|
+
/**
|
|
36
|
+
* Marks `operator` to be listed under `title`, a section ahead of Basic in the order the
|
|
37
|
+
* operators are given: a host's own grouping of the tests its users look for first (a filter
|
|
38
|
+
* column's Number / Text / Date Filters, in Excel's order).
|
|
39
|
+
*/
|
|
40
|
+
export declare const groupFirst: <T extends ICondition.IOperator>(operator: T, title: string) => T;
|
|
41
|
+
/**
|
|
42
|
+
* Orders operators by title in `language`, the pinned ones first, then the grouped ones in the
|
|
43
|
+
* order given (a stable sort keeps it), then the rest.
|
|
44
|
+
*/
|
|
45
|
+
export declare const compareOperators: (language?: string) => (a: ICondition.IOperator, b: ICondition.IOperator) => number;
|
|
46
|
+
/**
|
|
47
|
+
* Whether `operator` can be asked about `selector`'s reading: it takes the selector's type, or
|
|
48
|
+
* any type, or tests the cell rather than the reading (`blank`, which is settled before any
|
|
49
|
+
* selector). No selector reads for every operator.
|
|
50
|
+
*/
|
|
51
|
+
export declare const operatorReadsUnder: (selector: ICondition.ISelector | null, operator: ICondition.IOperator) => boolean;
|
|
27
52
|
/**
|
|
28
53
|
* Filters operators by selector type.
|
|
29
54
|
*
|
|
@@ -47,11 +72,12 @@ exclude?: readonly string[]) => ICondition.IOperator[];
|
|
|
47
72
|
* (it would freeze at mount-time language), so the subscription is threaded in.
|
|
48
73
|
*
|
|
49
74
|
* @remarks
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
75
|
+
* A host's own sections ({@link groupFirst}) come first, in the order the operators are given.
|
|
76
|
+
* Both of the sections after them are sorted alphabetically **in the active language** — operator
|
|
77
|
+
* titles are localized, so the collation has to follow the UI language rather than the host
|
|
78
|
+
* default. If only one section has operators the header and divider for the empty section are
|
|
79
|
+
* omitted. Works with both MUI `Select` (which accepts `ListSubheader` children natively) and
|
|
80
|
+
* custom popup panels.
|
|
55
81
|
*/
|
|
56
82
|
export declare const buildOperatorMenuItems: (operators: ICondition.IOperator[], renderItem: (operator: ICondition.IOperator) => React.ReactNode, t: TranslateFn, language?: string) => React.ReactNode[];
|
|
57
83
|
/**
|
|
@@ -66,8 +92,10 @@ export declare const buildOperatorMenuItems: (operators: ICondition.IOperator[],
|
|
|
66
92
|
*
|
|
67
93
|
* @param newOperator The operator being added/switched to.
|
|
68
94
|
* @param operators The full list of available operators at this level (used to find the first leaf).
|
|
95
|
+
* @param context What the condition will apply to, for a leaf operator that fits its default
|
|
96
|
+
* to it (a list starts from the values already in the cells).
|
|
69
97
|
*/
|
|
70
|
-
export declare const buildDefaultParam: (newOperator: ICondition.IOperator, operators: ICondition.IOperator[], selector?: ICondition.ISelector | null) => any;
|
|
98
|
+
export declare const buildDefaultParam: (newOperator: ICondition.IOperator, operators: ICondition.IOperator[], selector?: ICondition.ISelector | null, context?: ICondition.DefaultConditionContext) => any;
|
|
71
99
|
/**
|
|
72
100
|
* An operator and its param, as the editor holds them.
|
|
73
101
|
*/
|
|
@@ -19,8 +19,14 @@ export interface ExpressionOptionProps extends Omit<FormulaFieldProps, 'value' |
|
|
|
19
19
|
* (reference picking, token coloring, error line), not a text box.
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
+
* The `=` is required, as in Excel's own Formula box. Text without one is not a literal here (an
|
|
23
|
+
* expression has no literal reading) and is refused rather than promoted, so the one rule holds
|
|
24
|
+
* under every operator: `=` means formula, and a Formula condition is nothing but one. The param
|
|
25
|
+
* carries no `=` on the wire; the field shows it and takes it.
|
|
26
|
+
*
|
|
22
27
|
* What is typed goes out as a formula compiled in the editing locale, so the condition stores it
|
|
23
28
|
* canonical. An in-progress (momentarily invalid) formula still carries the user's keystrokes.
|
|
29
|
+
* Text with no `=` reaches nothing, and holds the editor's Save back with its error showing.
|
|
24
30
|
*/
|
|
25
31
|
export declare const ExpressionOption: import('react').NamedExoticComponent<ExpressionOptionProps>;
|
|
26
32
|
//# sourceMappingURL=ExpressionOption.d.ts.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
3
|
+
import { ICondition, IFilter } from '@sheetxl/sdk';
|
|
4
|
+
import { ValueChecklistProps } from '@sheetxl/react';
|
|
5
|
+
/**
|
|
6
|
+
* Reads a population a set may be chosen from, as {@link IFilter.getItems} does: under the
|
|
7
|
+
* Display selector by the text the cells show, under none by value.
|
|
8
|
+
*/
|
|
9
|
+
export type MembershipItemsProvider = (options: {
|
|
10
|
+
selector: string | null;
|
|
11
|
+
}) => Promise<IFilter.Items>;
|
|
12
|
+
export interface MembershipOptionProps {
|
|
13
|
+
/** The set: `items`, `source`, `additions`, `subtractions` and `dateGroups`. */
|
|
14
|
+
option: ICondition.InSetOption | null;
|
|
15
|
+
/** Receives the set as edited. A host that gives `getItems` also receives it once they load. */
|
|
16
|
+
onOptionChange: (option: ICondition.InSetOption) => void;
|
|
17
|
+
/**
|
|
18
|
+
* The condition's selector: how the members read the cell. Display reads the text a cell
|
|
19
|
+
* shows, which is what a spreadsheet's list holds; none reads the value.
|
|
20
|
+
*/
|
|
21
|
+
selector?: ICondition.ISelector | null;
|
|
22
|
+
/**
|
|
23
|
+
* Receives the reading the author chooses with "By value": the Display selector's name, or
|
|
24
|
+
* `null` for the value. The set is re-read under it; the checks carry over.
|
|
25
|
+
*/
|
|
26
|
+
onSelectorChange?: (selector: string | null) => void;
|
|
27
|
+
/**
|
|
28
|
+
* The population the set is a snapshot of (a filter's column). With it the members are that
|
|
29
|
+
* population's values, each checked or not; without it the author builds the set in one field:
|
|
30
|
+
* a typed list, or a source.
|
|
31
|
+
*/
|
|
32
|
+
getItems?: MembershipItemsProvider;
|
|
33
|
+
/**
|
|
34
|
+
* The condition's Ignore Blank. On, a blank is never judged, so the (Blank) row has nothing
|
|
35
|
+
* to say and is not listed; the set's `blank` is kept as it was for when the flag is cleared.
|
|
36
|
+
*/
|
|
37
|
+
ignoreBlank?: boolean;
|
|
38
|
+
/** If true, makes the editor read-only. */
|
|
39
|
+
readOnly?: boolean;
|
|
40
|
+
sx?: SxProps<Theme>;
|
|
41
|
+
/**
|
|
42
|
+
* What the host passes to the list: its rows' look, or (a test) its scroll state. An authored
|
|
43
|
+
* set's preview takes `itemHeight` and `viewport` of these.
|
|
44
|
+
*/
|
|
45
|
+
propsChecklist?: Partial<Pick<ValueChecklistProps, 'itemHeight' | 'renderItem' | 'renderCheckbox' | 'viewport' | 'onApply' | 'onClose'>> & {
|
|
46
|
+
/**
|
|
47
|
+
* Whether every value of the population is checked (`values`), and whether its blank is
|
|
48
|
+
* (`blanks`: true too when it has none). A filter with nothing left out has nothing to say,
|
|
49
|
+
* which is its host's to act on.
|
|
50
|
+
*/
|
|
51
|
+
onWholeChange?: (values: boolean, blanks: boolean) => void;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The editor of a set, the `InSet` operator's param, under every host.
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* What a host can do with a set is its capabilities. A filter gives {@link MembershipOptionProps.getItems}:
|
|
59
|
+
* the set is a snapshot of its column, the members are listed with checkboxes, and a checkbox takes
|
|
60
|
+
* a member out, since there the author chooses from the column. A validation or a format gives
|
|
61
|
+
* none: the author builds the set in one field, a typed list or a `=`source, over a read-only
|
|
62
|
+
* preview of what the cell will be offered.
|
|
63
|
+
*
|
|
64
|
+
* Whether blanks pass is not the set's to say. It is the condition's, and its editor asks it.
|
|
65
|
+
*/
|
|
66
|
+
export declare const MembershipOption: React.NamedExoticComponent<MembershipOptionProps>;
|
|
67
|
+
//# sourceMappingURL=MembershipOption.d.ts.map
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ICondition } from '@sheetxl/sdk';
|
|
3
|
+
import { MembershipItemsProvider, MembershipOptionProps } from './MembershipOption';
|
|
4
|
+
/** What a {@link OperatorAndParamEditorProps.renderRemove} renderer is given. */
|
|
5
|
+
export interface RemoveButtonProps {
|
|
6
|
+
/** Takes the rule out. */
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
/** The name of the operator the rule holds. */
|
|
9
|
+
operator: string | null;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
}
|
|
3
12
|
export interface OperatorAndParamEditorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
13
|
/**
|
|
5
14
|
* The current operator+param pair being edited.
|
|
@@ -19,6 +28,13 @@ export interface OperatorAndParamEditorProps extends React.HTMLAttributes<HTMLDi
|
|
|
19
28
|
* Called when the X (remove) button is clicked.
|
|
20
29
|
*/
|
|
21
30
|
onRemove: () => void;
|
|
31
|
+
/**
|
|
32
|
+
* The button that takes the rule out, in place of the X. What taking a rule out means is the
|
|
33
|
+
* host's (a validation clears it, a filter has nothing to clear), so the host draws the button,
|
|
34
|
+
* or none: `null` draws no button, `undefined` the X. The renderer may answer `null` too, for
|
|
35
|
+
* one operator and not another.
|
|
36
|
+
*/
|
|
37
|
+
renderRemove?: ((props: RemoveButtonProps) => React.ReactNode) | null;
|
|
22
38
|
/**
|
|
23
39
|
* All operators available at this level (leaf + combinator), already filtered by selector.
|
|
24
40
|
* Passed straight through to children — not re-filtered here.
|
|
@@ -28,10 +44,29 @@ export interface OperatorAndParamEditorProps extends React.HTMLAttributes<HTMLDi
|
|
|
28
44
|
* The current selector (passed through to param editors and children).
|
|
29
45
|
*/
|
|
30
46
|
selector: ICondition.ISelector | null;
|
|
47
|
+
/**
|
|
48
|
+
* Called when the param's editor chooses a reading of its own (the checklist's "By value":
|
|
49
|
+
* Display or none), by selector name. The operator and param stay as they are.
|
|
50
|
+
*/
|
|
51
|
+
onSelectorChange?: (selector: string | null) => void;
|
|
52
|
+
/**
|
|
53
|
+
* The population an `InSet` is a snapshot of (a filter's column). With it the set's members
|
|
54
|
+
* are that population's values; without it the author builds the set (a data validation).
|
|
55
|
+
*/
|
|
56
|
+
getItems?: MembershipItemsProvider;
|
|
57
|
+
/** Passed to the `InSet` editor. */
|
|
58
|
+
propsChecklist?: MembershipOptionProps['propsChecklist'];
|
|
59
|
+
/** The root condition's Ignore Blank: an `InSet` editor then lists no (Blank) row. */
|
|
60
|
+
ignoreBlank?: boolean;
|
|
31
61
|
/**
|
|
32
62
|
* Optional title for the operator select input.
|
|
33
63
|
*/
|
|
34
64
|
operatorTitle?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The operator is settled by the host's selector row (Formula under Allow), so no select is
|
|
67
|
+
* drawn and the param editor takes the row. Nested rules are unaffected.
|
|
68
|
+
*/
|
|
69
|
+
operatorFixed?: boolean;
|
|
35
70
|
/**
|
|
36
71
|
* If true, makes the editor read-only.
|
|
37
72
|
*/
|
|
@@ -47,7 +82,7 @@ export interface OperatorAndParamEditorProps extends React.HTMLAttributes<HTMLDi
|
|
|
47
82
|
* @remarks
|
|
48
83
|
* - If the operator is a combinator (and/or/not), renders CombinatorOption for the body.
|
|
49
84
|
* - Otherwise renders the appropriate leaf param editor.
|
|
50
|
-
* -
|
|
85
|
+
* - Shows the remove button in the top-right: the X, or what `renderRemove` draws.
|
|
51
86
|
* - The operator can be changed via the OperatorSelect at the top-left.
|
|
52
87
|
* - Operators and selector are passed straight through to children without re-filtering.
|
|
53
88
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ICondition } from '@sheetxl/sdk';
|
|
3
3
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
4
|
-
export interface OperatorSelectPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "
|
|
4
|
+
export interface OperatorSelectPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "renderPopupPanel" | "onChange"> {
|
|
5
5
|
/**
|
|
6
6
|
* Current selected rule. Null represents "Any".
|
|
7
7
|
*/
|
|
@@ -38,10 +38,11 @@ export interface ScalarOptionProps extends Omit<FormulaFieldProps, 'value' | 'on
|
|
|
38
38
|
* and destroyed it on the first keystroke. Here it reads back as a formula, with the formula
|
|
39
39
|
* editor's reference picking and token coloring once the `=` is typed.
|
|
40
40
|
*
|
|
41
|
-
* The operand
|
|
42
|
-
* the
|
|
43
|
-
*
|
|
44
|
-
*
|
|
41
|
+
* The operand is LIVE: each text that makes a valid operand reaches the condition as it is typed,
|
|
42
|
+
* and the field keeps the text as typed until the edit ends (`9` is not re-imaged as a date under
|
|
43
|
+
* the caret). Text that makes no operand is held back — a formula that does not parse, or `9/` on
|
|
44
|
+
* its way to a date. A literal the operand's type cannot hold is outlined once the edit ends
|
|
45
|
+
* (Enter, Tab, a blur, the editor's Save), and holds the save back.
|
|
45
46
|
*/
|
|
46
47
|
export declare const ScalarOption: import('react').NamedExoticComponent<ScalarOptionProps>;
|
|
47
48
|
//# sourceMappingURL=ScalarOption.d.ts.map
|