@sheetxl/studio-mui 0.8.0-beta.2 → 0.8.0-beta.20
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/3xocDjPLOJXjOs3x.mjs +633 -0
- package/browser/esm/4RkuBXBVmw7VYQ2a.mjs +490 -0
- package/browser/esm/6R-JS1ZrhnwQAyOl.mjs +975 -0
- package/browser/esm/B4L3swgLGqcOHo7U.mjs +335 -0
- package/browser/esm/BAFzUBAc7BpGUWl_.mjs +87 -0
- package/browser/esm/{DIGlcemS7napWyKW.mjs → BENsK9C3A3CnZyXZ.mjs} +8 -6
- package/browser/esm/BRnwCembfaZpk0sc.mjs +1288 -0
- package/browser/esm/BSVc4NYkBnFa7T_w.mjs +119 -0
- package/browser/esm/{C5-J1xiO3O1-qaaP.mjs → BTWjCKBwd6qXldxi.mjs} +83 -95
- package/browser/esm/BWSZkGPSgg9pPKni.mjs +1550 -0
- package/browser/esm/{B1YOQZHyO_dmHUN4.mjs → BXVE3yfw5gdtyl-s.mjs} +2 -2
- package/browser/esm/Bfb84N1ywaVZm9kH.mjs +72 -0
- package/browser/esm/{C2Eke_9Dj_m6mtMj.mjs → BrZVnbTt-3DeAMxo.mjs} +47 -48
- package/browser/esm/BrdpRbJ-xKeF87FO.mjs +392 -0
- package/browser/esm/{xGJU5xUJx3HF317Q.mjs → BtrFK5bYpBJfHRDr.mjs} +14 -13
- package/browser/esm/BuSv-OgJpZJGjcyA.mjs +318 -0
- package/browser/esm/C1XMVwyIJNbYmtkV.mjs +414 -0
- package/browser/esm/{DE7MVTTfExTzvyMW.mjs → C2MuUgU0H05eZ5qQ.mjs} +33 -31
- package/browser/esm/{Dv3hSCyjvwo6GcH1.mjs → C5ZWkOAoFpcZwFw2.mjs} +4 -4
- package/browser/esm/C72jL8eQk_hPFDLn.mjs +8 -0
- package/browser/esm/CDJ0jdx7Km3a5v6w.mjs +294 -0
- package/browser/esm/CGDNdoMTlI8f1kRw.mjs +14 -0
- package/browser/esm/{Bo74PCF42KVYJF0j.mjs → CGomW4hI6SQ96yIm.mjs} +4 -4
- package/browser/esm/CHT8_XB3_hp307XA.mjs +68 -0
- package/browser/esm/{CppDmJ4ckCH3alQf.mjs → COkfKd7FvEtpgAAI.mjs} +156 -109
- package/browser/esm/CSgwY4Yb3l0WoprP.mjs +225 -0
- package/browser/esm/CgvHVv7iIzRRgmlF.mjs +197 -0
- package/browser/esm/ClqW5S7FR6Pwmp1U.mjs +442 -0
- package/browser/esm/ColttpEsydVwkHtf.mjs +77 -0
- package/browser/esm/Cvwz0PddEGW1FJ4c.mjs +94 -0
- package/browser/esm/CzfkYZGGhFc_gq0P.mjs +424 -0
- package/browser/esm/D-3WlyQuxUZCwLkb.mjs +831 -0
- package/browser/esm/D3Aests6-QUrBfmJ.mjs +235 -0
- package/browser/esm/D3bI-7D37_22_-T9.mjs +31 -0
- package/browser/esm/D7ZdGXqJXmdAHu8I.mjs +14 -0
- package/browser/esm/D83oSH8xR3JfeRjI.mjs +242 -0
- package/browser/esm/DCxc5HMSf1ZSHRoi.mjs +412 -0
- package/browser/esm/{DSGFnb1gYyL22p0t.mjs → DF0hjPW_C_3TpnDs.mjs} +20 -18
- package/browser/esm/DGFdTu5VfKecMohK.mjs +386 -0
- package/browser/esm/DHrJOjy3Du7ZBo96.mjs +360 -0
- package/browser/esm/DIZ9pueRPHaNzQqo.mjs +103 -0
- package/browser/esm/DMifD__JRvHH4COB.mjs +106 -0
- package/browser/esm/{D7fA9EyCNSzQMgxg.mjs → DQNnDQPNut_4wO6Y.mjs} +2 -2
- package/browser/esm/D_VpGjXScR-D-TWZ.mjs +2699 -0
- package/browser/esm/DdtM4Sy4hFIFwWvO.mjs +13 -0
- package/browser/esm/De7cege6OU7QJqBb.mjs +225 -0
- package/browser/esm/{iM5uEM9H4e8HGt5y.mjs → DobmIAozt-IiJp1P.mjs} +3 -3
- package/browser/esm/DwYjy-b-w1xnqteA.mjs +267 -0
- package/browser/esm/JBCZvp0T2f4n-Csb.mjs +94 -0
- package/browser/esm/LOzFCd9lrGWhNoCz.mjs +161 -0
- package/browser/esm/LQC_4LWJQR_JjcxV.mjs +141 -0
- package/browser/esm/UC9qbIWz2dYrCbJn.mjs +252 -0
- package/browser/esm/{CNLLwRPWnd4PJgPO.mjs → VoncM-mkj4eoKD1J.mjs} +5 -5
- package/browser/esm/{BlZiWp3SB3wH5O38.mjs → bOlMSpqTkmRboj5-.mjs} +4 -4
- package/browser/esm/hbiHjiOvIyYM3TIl.mjs +517 -0
- package/browser/esm/index.mjs +1878 -286
- package/browser/esm/mlTMBwB5PG7Fo1mU.mjs +8547 -0
- package/browser/esm/nmox4_ypwR5ILBKj.mjs +516 -0
- package/browser/esm/p-2ZZeZwGZfutcDk.mjs +973 -0
- package/browser/esm/{_v6Wbw_y3QgJy3qY.mjs → xLnpGjmsP-zJuXUE.mjs} +2 -2
- package/licenses/dependencies.txt +113 -366
- package/node/esm/3MP8rnjjEE0LpSoH.mjs +638 -0
- package/node/esm/{C0M1VbsIRuRauUI-.mjs → 539u16kqHOnXHBnN.mjs} +85 -97
- package/node/esm/{BMoRatciTqOi1HkT.mjs → B1WnY8cmRz7W1yrZ.mjs} +21 -21
- package/node/esm/B5kuWO6ix3DmmdhQ.mjs +391 -0
- package/node/esm/{DN-bhyNbuBbNB0Ky.mjs → BCYThTuIrSXfyd-N.mjs} +3 -3
- package/node/esm/{DVshSSmP5QZU7GoY.mjs → BJLg7uLC_b9f_1NJ.mjs} +29 -29
- package/node/esm/BWIatgbno8eMdTy4.mjs +385 -0
- package/node/esm/BXKb4oUGpTWCF8ni.mjs +412 -0
- package/node/esm/B_TEor8YFmwmyhWj.mjs +294 -0
- package/node/esm/Bqda2dQ0l75gjnDb.mjs +267 -0
- package/node/esm/BqkiJZsCP2hEkJs9.mjs +142 -0
- package/node/esm/C-s3vhDAhWAnJntP.mjs +118 -0
- package/node/esm/CAfDDLrXsXte2avr.mjs +224 -0
- package/node/esm/{DvMAUBSQsZmIsRxi.mjs → CDj1mR4aA0wufjjK.mjs} +2 -2
- package/node/esm/CJX21c9lbs0lFHFH.mjs +14 -0
- package/node/esm/CN5U8EzIhztKzktG.mjs +425 -0
- package/node/esm/CY8Mel9qXoQcoE6D.mjs +516 -0
- package/node/esm/Cs9OyntWvICLrQk-.mjs +141 -0
- package/node/esm/{BoDCV8cDmFVAYtaW.mjs → CsnknBUOfx3FVTP_.mjs} +2 -2
- package/node/esm/{CCWQ116Z67Kz78Uo.mjs → D8RVd9U84QC8lAvP.mjs} +33 -31
- package/node/esm/DAuVxjZwldORNkvx.mjs +1838 -0
- package/node/esm/DLx_RKfK6MMX0tiy.mjs +94 -0
- package/node/esm/DSZIOgi3X_EmsT65.mjs +106 -0
- package/node/esm/D_dyzcsGBlCNrIVJ.mjs +73 -0
- package/node/esm/Dbg6kW_63xZ_x2es.mjs +975 -0
- package/node/esm/DcIZXVJ5TJYu8Xf1.mjs +68 -0
- package/node/esm/DcIySopuRr-At74Y.mjs +94 -0
- package/node/esm/{DVaQ6xIbKQgBk0uw.mjs → Dpzk8tIhwke93vji.mjs} +70 -71
- package/node/esm/FHL9tW8a0eqpp8dm.mjs +1283 -0
- package/node/esm/GeLMvw9JlqlFr6jw.mjs +972 -0
- package/node/esm/{BJi0FlhIqCMEwROu.mjs → N8h_Ft32UJATwjlk.mjs} +190 -141
- package/node/esm/{cJDXopFIX6f3_oi3.mjs → VeNMuIWoztqGMKsZ.mjs} +2 -2
- package/node/esm/XJAfD-_V2Sx4aW33.mjs +77 -0
- package/node/esm/bIfQAr55kQq2xXaT.mjs +197 -0
- package/node/esm/e5DJjIF9cuF9r_ub.mjs +242 -0
- package/node/esm/h0ih_bazDGjgIXQd.mjs +489 -0
- package/node/esm/index.mjs +10334 -8697
- package/node/esm/rEdJke7xorzb_Nmh.mjs +519 -0
- package/node/esm/uCFRHXTVhzTQ53TT.mjs +319 -0
- package/node/esm/{DAji2BXelmIUxioS.mjs → ymnOnQfaRduubuPk.mjs} +23 -23
- 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 +293 -17
- 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 +298 -17
- package/resources/locales/en/workbookAnomalies.cmd.json +14 -0
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +10 -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 +41 -0
- package/types/src/comments/CommentsPlugin.d.ts +6 -0
- package/types/src/comments/CommentsTaskPane.d.ts +23 -0
- package/types/src/comments/index.d.ts +4 -0
- package/types/src/conditionalFormat/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/BetweenOption.d.ts +5 -0
- 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 +19 -0
- 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/dialog/index.d.ts +0 -1
- 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 +10 -4
- package/types/src/form/InputField.d.ts +5 -5
- package/types/src/format/AlignmentPanel.d.ts +1 -2
- package/types/src/format/BorderPreview.d.ts +33 -16
- 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 +7 -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 -5
- package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
- package/types/src/itemsPanel/EditorPanel.d.ts +1 -2
- package/types/src/itemsPanel/ItemCard.d.ts +50 -7
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +13 -0
- 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 +2 -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/CommandsWrapper.d.ts +2 -0
- package/types/src/studio/StudioCommandProvider.d.ts +7 -0
- package/types/src/studio/StudioCommands.d.ts +2 -2
- package/types/src/studio/StudioProps.d.ts +50 -22
- package/types/src/studio/StudioSplitPane.d.ts +1 -1
- package/types/src/studio/formulaBarPlacement.d.ts +35 -0
- package/types/src/studio/useStudioApp.d.ts +23 -23
- 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 +7 -5
- package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
- package/types/src/toolbar/WorkbookToolbars.d.ts +2 -2
- package/types/src/workbook/DefaultRenderers.d.ts +45 -15
- 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/3k_KqDFr-AybPztc.cjs +0 -5
- package/browser/cjs/3uprnzi2l0iT17Dg.cjs +0 -1
- package/browser/cjs/B9GcCj7sj8XdjPZF.cjs +0 -1
- package/browser/cjs/BGvoJjUs21bbuE1i.cjs +0 -1
- package/browser/cjs/BHb7TnK1NmimV4OX.cjs +0 -1
- package/browser/cjs/BJ-wdkCaXqJaejKf.cjs +0 -1
- package/browser/cjs/BNqyPYRxYISp-uEg.cjs +0 -1
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
- package/browser/cjs/BXkdjAb4jpTr412c.cjs +0 -1
- package/browser/cjs/Bc-YisjBtD56vBAW.cjs +0 -1
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.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/CuqM721PsKey3yMP.cjs +0 -1
- package/browser/cjs/Cy_XmYq6BsWmCXkk.cjs +0 -3
- package/browser/cjs/D948H7ell-f87BX3.cjs +0 -1
- package/browser/cjs/Dy6O3OWbDBKIj_Ak.cjs +0 -8
- package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
- package/browser/cjs/M0_dvdYwhikqP9kg.cjs +0 -2
- package/browser/cjs/QI6GKw7uo1f8gY8C.cjs +0 -1
- package/browser/cjs/eCw4rAEIYE3BftpG.cjs +0 -1
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
- package/browser/cjs/index.cjs +0 -2
- package/browser/cjs/rCZbExyf1Q3aHloQ.cjs +0 -13
- package/browser/esm/894KM-_Oc5cB6ExA.mjs +0 -97
- package/browser/esm/BQSamOMBAoFdQdJe.mjs +0 -12903
- package/browser/esm/CIbDvsCeLOFHzzId.mjs +0 -152
- package/browser/esm/CyHNVjgkMYZYlJpY.mjs +0 -5315
- package/browser/esm/D8VPmFDvXDE778_x.mjs +0 -222
- package/browser/esm/DEEnXLhYlUARg6MU.mjs +0 -410
- package/browser/esm/DN4cwAPYCrtR4gS9.mjs +0 -236
- package/browser/esm/DlEshYp6NPfHxFvI.mjs +0 -115
- package/browser/esm/GmQ9XFFY3hi1L_Ej.mjs +0 -1150
- package/browser/esm/z3zkU7Jf3WJ2_Z_P.mjs +0 -52
- package/node/esm/BI8XFczUY--Db2n3.mjs +0 -98
- package/node/esm/BgxeTfCn3jZHGwd7.mjs +0 -414
- package/node/esm/C_oV7ldFStOF_fAd.mjs +0 -115
- package/node/esm/Dbv0IltYad9SQrj3.mjs +0 -236
- package/node/esm/OmUP1AfaJcOxWQAg.mjs +0 -4462
- package/types/src/conditions/DateTimeOption.d.ts +0 -43
- package/types/src/conditions/ListSourceOption.d.ts +0 -31
- package/types/src/dialog/CommentsDialog.d.ts +0 -11
- package/types/src/filter/FilterList.d.ts +0 -31
|
@@ -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
|
*/
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Scalar, ICalculation } from '@sheetxl/sdk';
|
|
2
2
|
import { FormulaFieldProps } from '../form';
|
|
3
|
+
/**
|
|
4
|
+
* What a typed literal is, for an operand that is a date or a time.
|
|
5
|
+
*/
|
|
6
|
+
export type ScalarOptionLiteral = 'date' | 'time' | 'dateTime';
|
|
3
7
|
export interface ScalarOptionProps extends Omit<FormulaFieldProps, 'value' | 'onChange'> {
|
|
4
8
|
/**
|
|
5
9
|
* The option to edit — a literal (number, text, boolean), or a formula.
|
|
@@ -9,6 +13,15 @@ export interface ScalarOptionProps extends Omit<FormulaFieldProps, 'value' | 'on
|
|
|
9
13
|
* The callback function to handle changes in the option.
|
|
10
14
|
*/
|
|
11
15
|
onOptionChange: (option: Scalar | ICalculation.IFormula) => void;
|
|
16
|
+
/**
|
|
17
|
+
* How a typed literal is read. Omitted, numeric text is a number and anything else is text.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* A date or time literal is typed as it is into a cell (`9/23/95`, `14:30`), held as its serial,
|
|
21
|
+
* and shown back as a date or time. Text that is neither is held as typed and outlined as an
|
|
22
|
+
* error, which also holds back the editor's Save.
|
|
23
|
+
*/
|
|
24
|
+
literal?: ScalarOptionLiteral;
|
|
12
25
|
/**
|
|
13
26
|
* If true, makes the editor read-only.
|
|
14
27
|
*/
|
|
@@ -24,6 +37,12 @@ export interface ScalarOptionProps extends Omit<FormulaFieldProps, 'value' | 'on
|
|
|
24
37
|
* An imported operand like `=$A$1` arrives as a formula param; a number input rendered it blank
|
|
25
38
|
* and destroyed it on the first keystroke. Here it reads back as a formula, with the formula
|
|
26
39
|
* editor's reference picking and token coloring once the `=` is typed.
|
|
40
|
+
*
|
|
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.
|
|
27
46
|
*/
|
|
28
47
|
export declare const ScalarOption: import('react').NamedExoticComponent<ScalarOptionProps>;
|
|
29
48
|
//# sourceMappingURL=ScalarOption.d.ts.map
|
|
@@ -10,9 +10,20 @@ export interface SelectorSelectProps extends Omit<FormControlProps, 'onChange' |
|
|
|
10
10
|
*/
|
|
11
11
|
value: ICondition.ISelector | null;
|
|
12
12
|
/**
|
|
13
|
-
* Callback fired when the type changes.
|
|
13
|
+
* Callback fired when the type changes. An extra row chosen comes as `extra`, with no selector.
|
|
14
14
|
*/
|
|
15
|
-
onChange: (selector: ICondition.ISelector | null) => void;
|
|
15
|
+
onChange: (selector: ICondition.ISelector | null, extra?: string) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Rows after the selectors that are not selectors: the host's own entries, named by value.
|
|
18
|
+
* A Formula rule is one: the formula stands in for the cell's value,
|
|
19
|
+
* which is a reading, so it is listed where the readings are.
|
|
20
|
+
*/
|
|
21
|
+
extras?: readonly {
|
|
22
|
+
value: string;
|
|
23
|
+
title: string;
|
|
24
|
+
}[];
|
|
25
|
+
/** The extra row currently chosen, by value; `value` is then ignored. */
|
|
26
|
+
extraValue?: string | null;
|
|
16
27
|
/**
|
|
17
28
|
* Optional title for the select input. If not provided.
|
|
18
29
|
*
|
|
@@ -33,11 +44,9 @@ export interface SelectorSelectProps extends Omit<FormControlProps, 'onChange' |
|
|
|
33
44
|
readOnly?: boolean;
|
|
34
45
|
}
|
|
35
46
|
/**
|
|
36
|
-
* Select component for choosing a
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* Uses InteropScalarType for both input and output. Renders with user-friendly
|
|
40
|
-
* labels (i18n-ready).
|
|
47
|
+
* Select component for choosing a selector (Number, Text, Date, Display, etc.): how the
|
|
48
|
+
* condition reads a value. The rows are selectors and nothing else; a test that looks like a
|
|
49
|
+
* type to an Excel user ("List") is an operator under Any.
|
|
41
50
|
*/
|
|
42
51
|
export declare const SelectorSelect: import('react').NamedExoticComponent<SelectorSelectProps>;
|
|
43
52
|
//# sourceMappingURL=SelectorSelect.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * from './StringOption';
|
|
2
2
|
export * from './NumberOption';
|
|
3
3
|
export * from './ScalarOption';
|
|
4
|
-
export * from './ListSourceOption';
|
|
5
4
|
export * from './AverageOption';
|
|
6
5
|
export * from './TimePeriodOption';
|
|
7
6
|
export * from './TopNOption';
|
|
8
7
|
export * from './BetweenOption';
|
|
9
8
|
export * from './ExpressionOption';
|
|
9
|
+
export * from './MembershipOption';
|
|
10
10
|
export * from './SelectorSelect';
|
|
11
11
|
export * from './OperatorSelect';
|
|
12
12
|
export * from './ConditionEditor';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRange, ICalculation, ICellRanges, IDataValidation,
|
|
1
|
+
import { IRange, ICalculation, ICellRanges, IDataValidation, IWorksheet } from '@sheetxl/sdk';
|
|
2
2
|
/**
|
|
3
3
|
* The rule being edited, as the fields inside its editor need it. A conditional format or a data
|
|
4
4
|
* validation satisfies this as it is.
|
|
@@ -17,7 +17,7 @@ export interface FormulaFrame {
|
|
|
17
17
|
/** See {@link FormulaFrame}. */
|
|
18
18
|
export declare const FormulaFrameContext: import('react').Context<FormulaFrame | null>;
|
|
19
19
|
/** The cell a rule's formulas are typed and shown at. */
|
|
20
|
-
export declare const activeCellOf: (sheet:
|
|
20
|
+
export declare const activeCellOf: (sheet: IWorksheet) => IRange.CellCoords;
|
|
21
21
|
/**
|
|
22
22
|
* Converts between a condition's formula param and the text a field edits.
|
|
23
23
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IDataValidation } from '@sheetxl/sdk';
|
|
3
|
+
/** The icon of each alert style, on the editor's style menu and the card's badge alike. */
|
|
4
|
+
export declare const ALERT_STYLE_ICONS: Record<IDataValidation.AlertStyle, string>;
|
|
3
5
|
export interface DataValidationEditorPanelProps {
|
|
4
6
|
/**
|
|
5
7
|
* The data validation to edit
|
|
@@ -7,13 +9,15 @@ export interface DataValidationEditorPanelProps {
|
|
|
7
9
|
dataValidation: IDataValidation;
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
|
-
* Editor for one data validation: the card's header, then
|
|
11
|
-
*
|
|
12
|
-
*
|
|
12
|
+
* Editor for one data validation: the card's header, then two tabs. The Rule
|
|
13
|
+
* tab is the rule: the condition, through the editor conditional formats and filters use; for a
|
|
14
|
+
* rule that offers a list, its in-cell dropdown; and the error alert, which is what the rule
|
|
15
|
+
* does when an entry fails. The Prompt tab is the input message, which is not part of the rule
|
|
16
|
+
* at all (a note shown on selection, with or without a condition), so it does not sit among the
|
|
17
|
+
* rule's parts (Michael, 2026-10-14; Excel's third tab is this one).
|
|
13
18
|
*
|
|
14
19
|
* @remarks
|
|
15
|
-
*
|
|
16
|
-
* hide two of them.
|
|
20
|
+
* A later shape makes the prompt a card of its own, beside the validation rather than inside it.
|
|
17
21
|
*/
|
|
18
22
|
export declare const DataValidationEditorPanel: React.NamedExoticComponent<DataValidationEditorPanelProps>;
|
|
19
23
|
//# sourceMappingURL=DataValidationEditorPanel.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IDataValidation } from '@sheetxl/sdk';
|
|
2
2
|
/**
|
|
3
|
-
* The glyph a validation's Allow type is shown with: "Any value", each selector, or "Custom".
|
|
3
|
+
* The glyph a validation's Allow type is shown with: "Any value", each selector, "List" or "Custom".
|
|
4
4
|
*/
|
|
5
5
|
export declare const dataValidationIconKey: (item: IDataValidation) => string;
|
|
6
6
|
export interface DataValidationIconProps {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DataValidationPlugin: () => void;
|
|
1
|
+
export declare const DataValidationPlugin: () => (() => void);
|
|
2
2
|
//# sourceMappingURL=DataValidationPlugin.d.ts.map
|
|
@@ -10,6 +10,21 @@ export type HyperlinkDialogInput = (Omit<IHyperlink.Modifiers, 'address' | 'text
|
|
|
10
10
|
textToDisplay?: string | null;
|
|
11
11
|
}) | string;
|
|
12
12
|
export interface HyperlinkDialogProps extends InputDialogProps<HyperlinkDialogInput, ICell> {
|
|
13
|
+
/**
|
|
14
|
+
* Shows the link without letting it change: the fields are disabled and the only button is Cancel.
|
|
15
|
+
* @defaultValue false
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Leaves out the display text, for a link on something with no text of its own: a picture.
|
|
20
|
+
* @defaultValue false
|
|
21
|
+
*/
|
|
22
|
+
hideDisplayText?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The sheet the link lives on, when there is no cell in `context` to tell: what a bare `A1` resolves
|
|
25
|
+
* against.
|
|
26
|
+
*/
|
|
27
|
+
sheetName?: string;
|
|
13
28
|
}
|
|
14
29
|
/**
|
|
15
30
|
* Hover should include (a goto with fun icon, copy, edit, and remove)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CommandContext } from '@sheetxl/react';
|
|
3
|
+
import { InputDialogProps } from '@sheetxl/utils-mui';
|
|
4
|
+
export interface OutlineSettingsDialogProps extends InputDialogProps<CommandContext.OutlineSettings> {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Excel's Data → Outline settings: where summary rows and columns sit, and whether the automatic
|
|
8
|
+
* outline styles apply. The `outlineSettings` command opens it and commits its `onInput`.
|
|
9
|
+
*/
|
|
10
|
+
export declare const OutlineSettingsDialog: React.NamedExoticComponent<OutlineSettingsDialogProps>;
|
|
11
|
+
export default OutlineSettingsDialog;
|
|
12
|
+
//# sourceMappingURL=OutlineSettingsDialog.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CommandContext } from '@sheetxl/react';
|
|
3
|
+
import { InputDialogProps } from '@sheetxl/utils-mui';
|
|
4
|
+
export interface PivotTableNewDialogProps extends InputDialogProps<CommandContext.NewPivotTable, CommandContext.PivotTableTarget> {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Used when creating a new pivot table within the workbook.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PivotTableNewDialog: React.NamedExoticComponent<PivotTableNewDialogProps>;
|
|
10
|
+
export default PivotTableNewDialog;
|
|
11
|
+
//# sourceMappingURL=PivotTableNewDialog.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommandContext } from '@sheetxl/react';
|
|
2
|
+
import { InputDialogProps } from '@sheetxl/utils-mui';
|
|
3
|
+
export interface SparklineEditDialogProps extends InputDialogProps<CommandContext.EditSparklines> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Excel's Edit Sparklines: a group's cells and the cells they draw, each one or more areas.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SparklineEditDialog: import('react').NamedExoticComponent<SparklineEditDialogProps>;
|
|
9
|
+
export default SparklineEditDialog;
|
|
10
|
+
//# sourceMappingURL=SparklineEditDialog.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CommandContext } from '@sheetxl/react';
|
|
2
|
+
import { InputDialogProps } from '@sheetxl/utils-mui';
|
|
3
|
+
export interface SparklineNewDialogProps extends InputDialogProps<CommandContext.NewSparklines> {
|
|
4
|
+
}
|
|
5
|
+
/** The Create and Edit Sparklines dialogs: the same two fields. */
|
|
6
|
+
export interface SparklineRangesDialogProps extends InputDialogProps<CommandContext.NewSparklines | CommandContext.EditSparklines> {
|
|
7
|
+
/**
|
|
8
|
+
* `'edit'` is Excel's Edit Sparklines, for a group's cells and data: each field takes several
|
|
9
|
+
* areas, and there is no type.
|
|
10
|
+
*/
|
|
11
|
+
variant: 'new' | 'edit';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Excel's Create Sparklines: the cells to draw and the cells to draw them in.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* The location comes proposed (the column beside the data, or the cell below one column of it),
|
|
18
|
+
* where Excel leaves it blank. The type is the one chosen from the Insert menu.
|
|
19
|
+
*/
|
|
20
|
+
export declare const SparklineNewDialog: import('react').NamedExoticComponent<SparklineNewDialogProps>;
|
|
21
|
+
export declare const SparklineRangesDialog: import('react').NamedExoticComponent<SparklineRangesDialogProps>;
|
|
22
|
+
export default SparklineNewDialog;
|
|
23
|
+
//# sourceMappingURL=SparklineNewDialog.d.ts.map
|
|
@@ -4,7 +4,7 @@ export interface WorkbookStatisticsDialogProps extends InputDialogProps<void, Co
|
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Display-only profile of the workbook — Excel's Workbook Statistics dialog. Two sections
|
|
7
|
-
* (current sheet / workbook) of count rows over `
|
|
7
|
+
* (current sheet / workbook) of count rows over `IWorksheet.getStats` / `IWorkbook.getStats`.
|
|
8
8
|
*
|
|
9
9
|
* TODO - also surface in the status bar.
|
|
10
10
|
*/
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text search for the shortcut keys panel.
|
|
3
|
+
*
|
|
4
|
+
* Every word of the query must match a word of the row. A match is first looked for as a word
|
|
5
|
+
* prefix ("grou" finds "Group", "sum" finds "AutoSum"). Typo tolerance is only a fallback for a
|
|
6
|
+
* query that finds nothing that way: a fuzzy hit inside "Background" is noise when the query
|
|
7
|
+
* "group" already lists the grouping commands.
|
|
8
|
+
*
|
|
9
|
+
* A fuzzy match also has to account for the query word's last character. A transposed or doubled
|
|
10
|
+
* letter is a typo ("gropu" → "group"); a trailing character the word does not contain at all
|
|
11
|
+
* usually means a different word ("group2", "groun" for "ground"), so it does not match. Vowels
|
|
12
|
+
* are exempt because they are the letters most often fumbled ("groupe").
|
|
13
|
+
*/
|
|
14
|
+
export interface ShortcutSearchFields {
|
|
15
|
+
label: string;
|
|
16
|
+
scope: string;
|
|
17
|
+
scopeLabel: string;
|
|
18
|
+
description: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns a search function over `items`. Results are ranked by where the words hit (label, then
|
|
22
|
+
* scope, then description) and otherwise keep the order of `items`. An empty query returns
|
|
23
|
+
* `items` unchanged.
|
|
24
|
+
*/
|
|
25
|
+
export declare const createShortcutSearch: <T extends ShortcutSearchFields>(items: readonly T[]) => (query: string) => T[];
|
|
26
|
+
//# sourceMappingURL=_ShortcutSearch.d.ts.map
|
|
@@ -8,7 +8,7 @@ export interface ExternalLinkSettingsTabProps extends React.HTMLAttributes<HTMLD
|
|
|
8
8
|
*
|
|
9
9
|
* @remarks
|
|
10
10
|
* Carried, not obeyed — SheetXL always reads the cache and never refreshes a link, so the setting
|
|
11
|
-
* is for the applications that do
|
|
11
|
+
* is for the applications that do. It is still worth writing: a
|
|
12
12
|
* workbook that arrives with `never` must leave with it.
|
|
13
13
|
*
|
|
14
14
|
* A workbook whose source said nothing shows `userSet`, which is how Excel reads an absent
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IFill, IColor } from '@sheetxl/sdk';
|
|
3
|
-
|
|
4
|
-
export interface GradientStopValue {
|
|
5
|
-
/** `0…1` along the gradient. Explicit, because a defaulted offset does not survive to CSS. */
|
|
6
|
-
offset: number;
|
|
7
|
-
color: IColor.Serializable;
|
|
8
|
-
}
|
|
3
|
+
import { GradientStopValue } from './GradientStopsBar';
|
|
9
4
|
export interface GradientValue {
|
|
10
5
|
gradientType: IFill.GradientType;
|
|
11
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Degrees, `0…359`, as CSS measures them: 0 runs upward, 90 to the right, clockwise. Only
|
|
8
|
+
* meaningful for a linear gradient.
|
|
9
|
+
*/
|
|
12
10
|
angle: number;
|
|
13
11
|
stops: GradientStopValue[];
|
|
14
12
|
}
|
|
15
13
|
export interface GradientEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
16
14
|
value: GradientValue;
|
|
17
15
|
onChange: (value: GradientValue) => void;
|
|
16
|
+
/** The fewest stops the editor will leave. See {@link GradientStopsBarProps.minStops}. */
|
|
17
|
+
minStops?: number;
|
|
18
|
+
/** The most stops the editor will author. See {@link GradientStopsBarProps.maxStops}. */
|
|
19
|
+
maxStops?: number;
|
|
18
20
|
/** Theme color resolution for the stop pickers. */
|
|
19
21
|
schemeLookup?: IColor.SchemeLookup;
|
|
20
22
|
recentColors?: readonly IColor[] | (() => readonly IColor[]);
|
|
@@ -22,18 +24,18 @@ export interface GradientEditorProps extends Omit<React.HTMLAttributes<HTMLDivEl
|
|
|
22
24
|
disabled?: boolean;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
|
-
* The gradient editor behind the Fill tab's Gradient mode
|
|
27
|
+
* The gradient editor behind the Fill tab's Gradient mode: the style and angle, and the stops on
|
|
28
|
+
* a ramp (see {@link GradientStopsBar}).
|
|
26
29
|
*
|
|
27
30
|
* @remarks
|
|
28
31
|
* Excel's Fill Effects offers exactly two colors, six shading styles and three variants of each —
|
|
29
|
-
* a fixed menu because its
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* simply is not reachable from Excel's own dialog.
|
|
32
|
+
* a fixed menu because its dialog is all it offers; the file it writes takes any number of stops,
|
|
33
|
+
* and Excel draws them all. This authors the model directly instead: any number of stops at any
|
|
34
|
+
* offset, linear at any angle or radial. A shape's Format pane in Excel has the same ramp.
|
|
33
35
|
*/
|
|
34
36
|
export declare const GradientEditor: React.MemoExoticComponent<(props: GradientEditorProps) => React.JSX.Element>;
|
|
35
37
|
/** Read the editor's shape out of a model gradient. */
|
|
36
38
|
export declare const toGradientValue: (fill: IFill.IGradient) => GradientValue;
|
|
37
|
-
/** What "switch this
|
|
39
|
+
/** What "switch this to a gradient" starts from — white to the first accent, left to right. */
|
|
38
40
|
export declare const DEFAULT_GRADIENT: GradientValue;
|
|
39
41
|
//# sourceMappingURL=GradientEditor.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IColor } from '@sheetxl/sdk';
|
|
3
|
+
/** A gradient stop in the shape the editor manipulates — always with an explicit offset. */
|
|
4
|
+
export interface GradientStopValue {
|
|
5
|
+
/** `0…1` along the gradient. Explicit, because a defaulted offset does not survive to CSS. */
|
|
6
|
+
offset: number;
|
|
7
|
+
color: IColor.Serializable;
|
|
8
|
+
}
|
|
9
|
+
export interface GradientStopsBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
10
|
+
stops: GradientStopValue[];
|
|
11
|
+
/** The stops after any edit, in offset order. */
|
|
12
|
+
onChange: (stops: GradientStopValue[]) => void;
|
|
13
|
+
/**
|
|
14
|
+
* The fewest stops the bar will leave; a stop cannot be removed below it.
|
|
15
|
+
* @defaultValue 2 — a gradient is undefined with fewer colors, and the model says so too.
|
|
16
|
+
*/
|
|
17
|
+
minStops?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The most stops the bar will add.
|
|
20
|
+
* @defaultValue 8 — beyond this the handles stop being tellable apart in a pane.
|
|
21
|
+
*/
|
|
22
|
+
maxStops?: number;
|
|
23
|
+
/** Theme color resolution for the stop pickers and the ramp. */
|
|
24
|
+
schemeLookup?: IColor.SchemeLookup;
|
|
25
|
+
recentColors?: readonly IColor[] | (() => readonly IColor[]);
|
|
26
|
+
darkMode?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The stops of a gradient as a ramp with a handle under each stop: drag a handle to move its
|
|
31
|
+
* stop, hover it for its color and remove buttons, press the ramp (or the add button) for a new
|
|
32
|
+
* stop. The ramp runs left to right whatever the gradient's own angle — it edits the stops, not
|
|
33
|
+
* the direction, as Excel's does.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* A stop has no identity of its own — the model holds offsets and colors — but a handle must keep
|
|
37
|
+
* one, or a drag past a neighbor swaps the two handles' elements as the stops re-sort, and the
|
|
38
|
+
* focus, the open popup and the armed outline land on the wrong stop. So the bar assigns each stop
|
|
39
|
+
* a key, carries the keys through every edit it makes, and matches the stops it is handed back
|
|
40
|
+
* against what it wrote; stops from elsewhere (an undo, another editor) get fresh keys.
|
|
41
|
+
*/
|
|
42
|
+
export declare const GradientStopsBar: React.MemoExoticComponent<(props: GradientStopsBarProps) => React.JSX.Element>;
|
|
43
|
+
//# sourceMappingURL=GradientStopsBar.d.ts.map
|
|
@@ -7,7 +7,7 @@ import { ExhibitPopupButtonProps } from '@sheetxl/utils-mui';
|
|
|
7
7
|
* seeing `key → english`; a computed key would be invisible to it.
|
|
8
8
|
*/
|
|
9
9
|
export declare function patternLabel(t: TranslateFn, pattern: IFill.BuiltInSheetPattern): string;
|
|
10
|
-
export interface PatternPopupButtonProps extends Omit<ExhibitPopupButtonProps, 'icon' | '
|
|
10
|
+
export interface PatternPopupButtonProps extends Omit<ExhibitPopupButtonProps, 'icon' | 'renderPopupPanel'> {
|
|
11
11
|
/** The currently applied tile. */
|
|
12
12
|
selectedPattern: IFill.BuiltInSheetPattern;
|
|
13
13
|
/** The tile's mark color, so the gallery previews the pattern the user will actually get. */
|
|
@@ -1,13 +1,43 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ITable } from '@sheetxl/sdk';
|
|
3
3
|
import { FloatReference } from '@sheetxl/utils-react';
|
|
4
|
+
import { MembershipOptionProps } from '../conditions/MembershipOption';
|
|
4
5
|
export interface ColumnMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** The table column the menu is for. */
|
|
5
7
|
column?: ITable.IColumn;
|
|
6
8
|
disabled?: boolean;
|
|
9
|
+
/** The popup, closed on Apply and Cancel. */
|
|
7
10
|
floatReference: FloatReference;
|
|
11
|
+
/** Passed to the Values checklist: its rows' look, or (a test) its scroll state. */
|
|
12
|
+
propsChecklist?: MembershipOptionProps['propsChecklist'];
|
|
8
13
|
}
|
|
9
14
|
/**
|
|
10
|
-
*
|
|
15
|
+
* The column **filter menu**, Excel's dropdown as a template menu: a
|
|
16
|
+
* Sort section, Clear filter while the column holds one, and a Filter section in one of three
|
|
17
|
+
* modes under a toggle: **Values**, the column's kind (**Number**, **Text** or **Date**), and
|
|
18
|
+
* **Custom**.
|
|
19
|
+
*
|
|
20
|
+
* Values is the checklist alone, the `InSet` operator's editor, read under Display (the text the
|
|
21
|
+
* cells show) or by value from the menu under its search glyph; a blank is its (Blank) row. The
|
|
22
|
+
* kind is the shared {@link ConditionEditor} with When listing the registry's operators of that
|
|
23
|
+
* type under Excel's title (Number / Text / Date Filters), Excel's own first in Excel's order.
|
|
24
|
+
* Custom is the same editor with every operator, the family first, List (the column's checklist
|
|
25
|
+
* again), Formula, Unique and And / Or / Not among them. A rule mode
|
|
26
|
+
* opens on the family's first operator with an empty operand and the cursor in it; Custom's
|
|
27
|
+
* first visit starts from the kind's rule, and the kind's from Custom's when it is one of the
|
|
28
|
+
* family. Each mode keeps what it held while the menu is open; the condition's Ignore Blank sits
|
|
29
|
+
* under the rule editors.
|
|
30
|
+
*
|
|
31
|
+
* Apply writes the mode in view through the column's filter, ANDed with the other columns';
|
|
32
|
+
* Cancel closes.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* The checklist is a view of the column under its stored condition: a column filtered by
|
|
36
|
+
* "greater than 5" opens on its kind, and Values then lists the passing values checked; Apply
|
|
37
|
+
* writes the list. Left on its comparison, Apply leaves it as it is.
|
|
38
|
+
*
|
|
39
|
+
* A values list with nothing left out, the (Blank) row included, says nothing, so Apply clears
|
|
40
|
+
* the column's filter rather than writing it (Excel's Select All).
|
|
11
41
|
*/
|
|
12
42
|
export declare const ColumnMenu: React.NamedExoticComponent<ColumnMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
43
|
//# sourceMappingURL=ColumnMenu.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IPivotTable } from '@sheetxl/sdk';
|
|
3
|
+
import { FloatReference } from '@sheetxl/utils-react';
|
|
4
|
+
import { MembershipOptionProps } from '../conditions/MembershipOption';
|
|
5
|
+
export interface PivotMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** The fields of the button pressed: one, or a compact header's row or column fields. */
|
|
7
|
+
fields: readonly IPivotTable.IField[];
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** The popup, closed on Apply and Cancel. */
|
|
10
|
+
floatReference: FloatReference;
|
|
11
|
+
/** Passed to the checklist: its rows' look, or (a test) its scroll state. */
|
|
12
|
+
propsChecklist?: MembershipOptionProps['propsChecklist'];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A pivot table field's **dropdown menu**, Excel's with its submenus laid out as the table column
|
|
16
|
+
* menu's: a Sort section (by the labels, and by a data field's values over the grand total), Clear
|
|
17
|
+
* while the field holds a filter, and a Filter section in one of three modes under a toggle:
|
|
18
|
+
* **Values**, the field's items as a checklist; **Label** (**Date** on a field of dates), a rule
|
|
19
|
+
* over each item; and **Value**, a rule over each item's total of a data field, Top N among them.
|
|
20
|
+
* A field picker sits above it when the button is a compact header's (Excel's "Select field").
|
|
21
|
+
*
|
|
22
|
+
* Apply sets the mode in view and leaves the others, since a field's hidden items, its label or
|
|
23
|
+
* date rule and its value rule stand together. On the checklist, every item checked shows them all,
|
|
24
|
+
* and nothing checked is not applied, as Excel's OK is off. Each is one change of the table, laid
|
|
25
|
+
* out again from its cache; Cancel closes.
|
|
26
|
+
*
|
|
27
|
+
* A page field has the checklist alone: one item is the item chosen and more than one a multiple
|
|
28
|
+
* selection, Excel's "Select Multiple Items" without the switch.
|
|
29
|
+
*/
|
|
30
|
+
export declare const PivotMenu: React.NamedExoticComponent<PivotMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
//# sourceMappingURL=PivotMenu.d.ts.map
|
|
@@ -86,9 +86,9 @@ export interface FormulaFieldProps extends FormControlProps {
|
|
|
86
86
|
* A host that acts only on the commit channel should say so here rather than merely leaving
|
|
87
87
|
* {@link onChangeInput} unwired — the two look the same to the host but differ at the keyboard.
|
|
88
88
|
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
89
|
+
* The ✓/✗ adornments follow it too: shown in `'done'` while the text differs from the committed
|
|
90
|
+
* value, never in `'live'`, where there is no pending text for them to accept. {@link onDone} fires
|
|
91
|
+
* the same way in both.
|
|
92
92
|
*/
|
|
93
93
|
changeOn?: 'live' | 'done';
|
|
94
94
|
/**
|
|
@@ -131,6 +131,12 @@ export interface FormulaFieldProps extends FormControlProps {
|
|
|
131
131
|
* {@link allowMulti} — see `UseFormulaInputOptions.allowCrossSheet`.
|
|
132
132
|
*/
|
|
133
133
|
allowCrossSheet?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Whether the field must hold a value. Default `false`: empty text is the cleared value (`null`).
|
|
136
|
+
* `true` makes empty text an error, so it is never committed — see
|
|
137
|
+
* `UseFormulaInputOptions.required`.
|
|
138
|
+
*/
|
|
139
|
+
required?: boolean;
|
|
134
140
|
/**
|
|
135
141
|
* Field label. Default `"Formula"` (`'reference'` grammar: `"Range"`).
|
|
136
142
|
*
|
|
@@ -202,7 +208,7 @@ export interface FormulaFieldProps extends FormControlProps {
|
|
|
202
208
|
* {@link FORMULA_FIELD_ABOVE_LABEL_HEIGHT}).
|
|
203
209
|
*/
|
|
204
210
|
helperText?: React.ReactNode | null;
|
|
205
|
-
/** Hide the adornment cluster (✓/✗ while
|
|
211
|
+
/** Hide the adornment cluster (✓/✗ while editing in `'done'` mode; the select-current action). */
|
|
206
212
|
hideAdornment?: boolean;
|
|
207
213
|
/**
|
|
208
214
|
* Class(es) for the INNER `<input>` — `className` styles the FormControl root, which selectors
|