@sheetxl/studio-mui 0.8.0-beta.9 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +17 -7
- package/browser/esm/{DT71hr6qq9QMKf7Q.mjs → -xbfcBB_r6yovwt0.mjs} +2 -2
- package/browser/esm/0Ui7wtwIglVNcnjK.mjs +975 -0
- package/browser/esm/0pDgMMkwtzP7yApV.mjs +294 -0
- package/browser/esm/3F82kokAv56WeIOp.mjs +94 -0
- package/browser/esm/B7rXnRqYPMeFo7lF.mjs +415 -0
- package/browser/esm/BDXrBgqLv2G_aBxW.mjs +8 -0
- package/browser/esm/{a5G-3nVFn86pvt8H.mjs → BEvHafOOTIvsHfzb.mjs} +82 -94
- package/browser/esm/{BscaD3SzYM6ysjgy.mjs → BF7tsgFfA5kiGqvA.mjs} +5 -5
- package/browser/esm/BGxILWytBh1gGIqX.mjs +1281 -0
- package/browser/esm/BMtcK4QQebSd-gg_.mjs +14 -0
- package/browser/esm/{DpdMtsE7oOAIJqFo.mjs → BN-SV9n15bsIT7UF.mjs} +14 -13
- package/browser/esm/BPw9ZOfyIYNPmxbo.mjs +252 -0
- package/browser/esm/Be-rw5ILGyBK1k5g.mjs +633 -0
- package/browser/esm/Bezw0tyQZcU_2PRi.mjs +242 -0
- package/browser/esm/BjHVW5_EgY2JEOYR.mjs +106 -0
- package/browser/esm/BsQHoNsrcsZZeolo.mjs +103 -0
- package/browser/esm/BtbpQMP61r1e5s6G.mjs +516 -0
- package/browser/esm/BvCt1gSMp3TNaras.mjs +424 -0
- package/browser/esm/By-REgl0FtVnNxzf.mjs +831 -0
- package/browser/esm/{DiKCs9R7e4MgyayQ.mjs → BzPrRiCDzZQnKqH4.mjs} +4 -4
- package/browser/esm/C2NKkLNVwF6qUNv1.mjs +94 -0
- package/browser/esm/C5Y1q7udZf2PwslP.mjs +973 -0
- package/browser/esm/CEbCLniKqzKNP6MP.mjs +392 -0
- package/browser/esm/CFz8KVBAQoF-AJHf.mjs +414 -0
- package/browser/esm/CKVZ-Qa6AcojcV6x.mjs +119 -0
- package/browser/esm/CPawgAiTfoCklxuh.mjs +267 -0
- package/browser/esm/CQyLZmquw7Cn-0Yv.mjs +14 -0
- package/browser/esm/{ipftNUxAU0HR-0YP.mjs → CS7kr0WaYPFpIH95.mjs} +3 -3
- package/browser/esm/CT8hUU9KN4TmEBld.mjs +8547 -0
- package/browser/esm/CX2LPfZw79Z0uRhG.mjs +386 -0
- package/browser/esm/CXViQNtqX1jITZyu.mjs +197 -0
- package/browser/esm/CbNQrqPTogPk-TRE.mjs +1550 -0
- package/browser/esm/{BdkeyaHAtiNa6jqW.mjs → CdeLvf6DfzWVbVw5.mjs} +33 -31
- package/browser/esm/{CawSvjLj4-2Qqyef.mjs → ChytgpwnPlu_VG4E.mjs} +2 -2
- package/browser/esm/CmAMY8rXqmvbCx1E.mjs +360 -0
- package/browser/esm/{BNYKPFICOYt2VRsP.mjs → CukQww6Fo8MyF56L.mjs} +2 -2
- package/browser/esm/Cupln-3vYNmxrrM2.mjs +13 -0
- package/browser/esm/Cy6Q7KGXWYIosYTX.mjs +31 -0
- package/browser/esm/{ffz9LGAgGiWQQav9.mjs → D4IXtjIE97zSR0kY.mjs} +156 -109
- package/browser/esm/D5IXaQlvCuPu8zeG.mjs +72 -0
- package/browser/esm/{CHLqCxo3afOV1Otw.mjs → D6Rur-jnQXX3jzQH.mjs} +4 -4
- package/browser/esm/D8sXey2okO2icU8d.mjs +2692 -0
- package/browser/esm/DE7H4jbuXYB08_dQ.mjs +225 -0
- package/browser/esm/DaISN0TvyxafPIve.mjs +490 -0
- package/browser/esm/{80XYmJwiiFLBmpH2.mjs → DpwtflGvQFbBSLdo.mjs} +47 -48
- package/browser/esm/DrdNTvMdXdsemC4B.mjs +225 -0
- package/browser/esm/DsxPHa5JNx8ovALW.mjs +442 -0
- package/browser/esm/DvJk84TQ-8JsgXcp.mjs +235 -0
- package/browser/esm/Dw9nScfNdZ0Cjwne.mjs +87 -0
- package/browser/esm/{BXQPMQyxdiYwawjE.mjs → PvQUVsO3tH532wV8.mjs} +20 -18
- package/browser/esm/RrujsbEgx2HUeD4s.mjs +161 -0
- package/browser/esm/S2tFDJI2wIBAgQaA.mjs +335 -0
- package/browser/esm/{Cykd-NaZAtHJlQmQ.mjs → STe4CGP-g8tCf7c5.mjs} +2 -2
- package/browser/esm/SgyjQbszb0ptsRk8.mjs +517 -0
- package/browser/esm/d1P5kwJg3I0rdzn5.mjs +318 -0
- package/browser/esm/hfHpykzxUMe5LvVF.mjs +141 -0
- package/browser/esm/{BIZX_0jxF9Fmaxuy.mjs → hjbPNszp95-0VCIw.mjs} +8 -6
- package/browser/esm/index.mjs +1910 -289
- package/browser/esm/sxqx9rjKZcYNC4Hx.mjs +77 -0
- package/browser/esm/{C--IZ8To0PhVLhoX.mjs → voMEQNZgdyO6soYo.mjs} +4 -4
- package/licenses/dependencies.txt +106 -359
- package/node/esm/{C5g2gBoUk3-cn94h.mjs → 1PN4BMQucW63NWcA.mjs} +2 -2
- package/node/esm/{BHuZQ-LJ2GgDLYSz.mjs → 4FcYpbmSwjqrMhol.mjs} +190 -141
- package/node/esm/{9k03YHFiw-wlUS8d.mjs → 6e2HZudCTjTzf6ih.mjs} +2 -2
- package/node/esm/{D4KDk-w7Khu7LrSi.mjs → B1MFTyLMh_SZnQbk.mjs} +70 -71
- package/node/esm/B2WLecbdSqMD1YVq.mjs +519 -0
- package/node/esm/BImYtxlBDnxbuYJQ.mjs +94 -0
- package/node/esm/{CNkqJbFlITxBA0t4.mjs → BQ_0nUqKSPxxzxTT.mjs} +29 -29
- package/node/esm/{Defb5qpSal98J5ay.mjs → BSJerjorDJ4w9N6r.mjs} +2 -2
- package/node/esm/{Dyd7va4aqC1jIzAk.mjs → C0KFwVu86wTgTd54.mjs} +21 -21
- package/node/esm/C0kd2sPUnsgdGUtj.mjs +197 -0
- package/node/esm/C4UnectGYMh-7x7y.mjs +267 -0
- package/node/esm/C5pD4ZSa_HiL9qxk.mjs +14 -0
- package/node/esm/C9W1LtNkMMtOs7Qg.mjs +73 -0
- package/node/esm/CAFHLlFMItMl9TpP.mjs +412 -0
- package/node/esm/CW3fvozHERUfT6Bc.mjs +294 -0
- package/node/esm/CWTDdTicFuH60csl.mjs +972 -0
- package/node/esm/ChO1UxVGRIBuNPOZ.mjs +489 -0
- package/node/esm/{BkoorcOtOEh_Y7ck.mjs → CkIf9KMnQ26-zlEa.mjs} +33 -31
- package/node/esm/CsI3f2TN7jrLwudM.mjs +106 -0
- package/node/esm/CvM_8IuzxswqHgRo.mjs +224 -0
- package/node/esm/D7iklNCWLGeAIvrP.mjs +142 -0
- package/node/esm/D9Inb0eBSow2sR6u.mjs +319 -0
- package/node/esm/DKpUHQxiykyKEuyT.mjs +638 -0
- package/node/esm/DL4-uvtWGuGAfnne.mjs +391 -0
- package/node/esm/{CTtj1NR0IrcN8PTy.mjs → DP_w1SJKb-yFCvb7.mjs} +10 -10
- package/node/esm/DR7dWTccTfAqn8m8.mjs +516 -0
- package/node/esm/DXRJq0Bn7sDr_vXm.mjs +242 -0
- package/node/esm/DZ57bmwliKKBEzB7.mjs +1276 -0
- package/node/esm/Df5VcbKeW9cXY1Lw.mjs +141 -0
- package/node/esm/{b05_u9WnJaVGO0nq.mjs → DxWAgNvtIylA_ta_.mjs} +2 -2
- package/node/esm/GsWeMsCRXwvvpe2Z.mjs +77 -0
- package/node/esm/ONS9B46FEPFzjQsi.mjs +425 -0
- package/node/esm/QfWVpAmFeAecSa0o.mjs +385 -0
- package/node/esm/{BiHw3x2LPWT-kK8G.mjs → RgfhTFBh6fACzrx4.mjs} +84 -96
- package/node/esm/UCHoCHXSYWtQeJ-9.mjs +118 -0
- package/node/esm/index.mjs +9717 -8954
- package/node/esm/mmKhNlIs2nFTMbl5.mjs +94 -0
- package/node/esm/stC67-iHu8jB-gTl.mjs +1831 -0
- package/node/esm/{DHHgNbakbpNnu0oW.mjs → uFGXjoHpIjHX5bT8.mjs} +23 -23
- package/node/esm/z_MOgf-yg9GWQtPj.mjs +975 -0
- 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 +59 -10
- package/resources/locales/de/ui.msg.json +267 -14
- package/resources/locales/de/workbookAnomalies.cmd.json +14 -0
- package/resources/locales/en/groups.cmd.json +63 -11
- package/resources/locales/en/ui.msg.json +272 -14
- 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/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 +2 -1
- 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 +42 -18
- 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/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/BpG4iwTKbAnpi0wM.cjs +0 -1
- package/browser/cjs/ByIUHPOa02D7XbdC.cjs +0 -1
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
- package/browser/cjs/CMfoKJ3ehdXuld_7.cjs +0 -14
- 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/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/g1WhGOz5epV7Hqsg.cjs +0 -8
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
- package/browser/cjs/index.cjs +0 -2
- package/browser/esm/BoLRDhnoO3gvviYD.mjs +0 -13811
- package/browser/esm/CH-Y2-p8GRvCHvd4.mjs +0 -52
- package/browser/esm/CUhtBLyaGSkcKB_1.mjs +0 -236
- package/browser/esm/D-Kit71xiitqCWVY.mjs +0 -5356
- package/browser/esm/DkUDZxFxx9n2Cked.mjs +0 -223
- package/browser/esm/F6kkwcBr0l-496tC.mjs +0 -152
- package/browser/esm/Q8r5yuh8Yx2ROnhC.mjs +0 -115
- package/browser/esm/iRFlbG6hQyKLVagS.mjs +0 -411
- package/browser/esm/lftI5b4ZCHVYc6OZ.mjs +0 -1150
- package/node/esm/BTZGnNrgV1na62gd.mjs +0 -415
- package/node/esm/Be0G9parvc2CTpFQ.mjs +0 -4504
- package/node/esm/CTJqjeq3smY8jw5J.mjs +0 -236
- package/node/esm/DbLFR_dnQQmZC_jm.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 -32
- package/types/src/shape/InsertShapeCommandButton.d.ts +0 -10
|
@@ -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,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
|
/**
|
|
@@ -208,7 +208,7 @@ export interface FormulaFieldProps extends FormControlProps {
|
|
|
208
208
|
* {@link FORMULA_FIELD_ABOVE_LABEL_HEIGHT}).
|
|
209
209
|
*/
|
|
210
210
|
helperText?: React.ReactNode | null;
|
|
211
|
-
/** Hide the adornment cluster (✓/✗ while
|
|
211
|
+
/** Hide the adornment cluster (✓/✗ while editing in `'done'` mode; the select-current action). */
|
|
212
212
|
hideAdornment?: boolean;
|
|
213
213
|
/**
|
|
214
214
|
* Class(es) for the INNER `<input>` — `className` styles the FormControl root, which selectors
|
|
@@ -26,14 +26,14 @@ export interface InputFieldProps extends FormControlProps {
|
|
|
26
26
|
* (Enter/Tab/Escape), the adornment ✓/✗, `apiRef.current.commit()`, or blur to another field.
|
|
27
27
|
* `args.reason` distinguishes accept from cancel (a cancel delivers the reverted session baseline).
|
|
28
28
|
* Not fired on an accept while the text is invalid — the error stays shown instead.
|
|
29
|
-
*
|
|
30
|
-
* Wiring this is also what shows the modal ✓/✗ adornment pair.
|
|
31
29
|
*/
|
|
32
30
|
onDone?: (value: string, args: EditDoneArgs) => void;
|
|
33
31
|
/**
|
|
34
32
|
* `'done'` suppresses the live {@link onChangeInput} notifications entirely (validation still runs —
|
|
35
|
-
* error state stays live — but the host hears only {@link onDone})
|
|
36
|
-
* commit point rather than a key the host form gets to see
|
|
33
|
+
* error state stays live — but the host hears only {@link onDone}), makes Enter the field's own
|
|
34
|
+
* commit point rather than a key the host form gets to see, and shows the ✓/✗ while the text differs
|
|
35
|
+
* from the committed value.
|
|
36
|
+
* Default `'live'`.
|
|
37
37
|
*/
|
|
38
38
|
changeOn?: 'live' | 'done';
|
|
39
39
|
/**
|
|
@@ -91,7 +91,7 @@ export interface InputFieldProps extends FormControlProps {
|
|
|
91
91
|
* Translate at display (`t(key)` passes a non-key through unchanged).
|
|
92
92
|
*/
|
|
93
93
|
onChangeError?: (error: string | null) => void;
|
|
94
|
-
/** Hide the adornment cluster (the ✓/✗ pair shown while
|
|
94
|
+
/** Hide the adornment cluster (the ✓/✗ pair shown while editing in `'done'` mode). */
|
|
95
95
|
hideAdornment?: boolean;
|
|
96
96
|
/**
|
|
97
97
|
* Attributes for the INNER `<input>` — `type`, `min`/`max`/`step`, `inputMode`, a class of the
|
|
@@ -2,11 +2,12 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { IBorders } from '@sheetxl/sdk';
|
|
3
3
|
import { TranslateFn } from '@sheetxl/utils-react';
|
|
4
4
|
/**
|
|
5
|
-
* The
|
|
5
|
+
* The lines the diagram lets you click — the six that run along a block's cell boundaries.
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* The diagonals are not here: they
|
|
9
|
-
*
|
|
8
|
+
* The diagonals are not here: they cross the inner rules, and nearest-line picking cannot separate
|
|
9
|
+
* lines that cross at the same point. They are aimed at by the block's outer corners instead (see
|
|
10
|
+
* {@link edgesAt}).
|
|
10
11
|
*
|
|
11
12
|
* The order is the tie-break for a pointer sitting exactly where two lines cross, so the OUTER
|
|
12
13
|
* edges come first — a click on the left edge at its midpoint is aimed at the block's outline, not
|
|
@@ -19,7 +20,8 @@ export type BorderEdges = Partial<Record<IBorders.Edge, IBorders.StrokePropertie
|
|
|
19
20
|
/** Localized name for a border edge; literal `t()` pairs keep the extractor able to see them. */
|
|
20
21
|
export declare function edgeLabel(t: TranslateFn, edge: IBorders.Edge): string;
|
|
21
22
|
/**
|
|
22
|
-
* The edges a pointer is aimed at: one line, both inner rules at their crossing,
|
|
23
|
+
* The edges a pointer is aimed at: one line, both inner rules at their crossing, a diagonal at a
|
|
24
|
+
* corner, or none.
|
|
23
25
|
*
|
|
24
26
|
* @param x Pointer position relative to the diagram's top-left corner, in CSS px.
|
|
25
27
|
* @param y Pointer position relative to the diagram's top-left corner, in CSS px.
|
|
@@ -38,6 +40,11 @@ export declare function edgeLabel(t: TranslateFn, edge: IBorders.Edge): string;
|
|
|
38
40
|
* pair, which is the 'Inside' border. Only when both can be drawn — with one inner rule there is
|
|
39
41
|
* no crossing, and the middle is just that rule.
|
|
40
42
|
*
|
|
43
|
+
* The outer corners are the diagonals. A square on each corner, the size of the crossing's and
|
|
44
|
+
* centered on the corner's crop marks, aims at the diagonal that starts there: top-left and
|
|
45
|
+
* bottom-right are `diagonalDown`, top-right and bottom-left `diagonalUp`. The outline is two
|
|
46
|
+
* lines meeting there, so like the crossing the corner is neither of them.
|
|
47
|
+
*
|
|
41
48
|
* Exported because this is the part worth testing directly — jsdom lays nothing out, so a mounted
|
|
42
49
|
* diagram cannot be asked where its lines are.
|
|
43
50
|
*/
|
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IFill, IColor, ICell, IStyleCollection } from '@sheetxl/sdk';
|
|
3
|
+
import { FormatSelection } from './useFormatSelection';
|
|
4
|
+
/**
|
|
5
|
+
* What the Fill panel needs: one fill to show and one place to write a fill. A cell selection and a
|
|
6
|
+
* shape both answer it, which is how the same panel serves Format Cells and Format Shape.
|
|
7
|
+
*/
|
|
8
|
+
export interface FillSelection {
|
|
9
|
+
/** The fill the controls show, resolved: the anchor cell's, or the shape's. */
|
|
10
|
+
fill: IFill;
|
|
11
|
+
/** The workbook's style collection — theme swatches and recent colors for the pickers. */
|
|
12
|
+
styles: IStyleCollection;
|
|
13
|
+
/** Theme color resolution for the color pickers. */
|
|
14
|
+
schemeLookup: IColor.SchemeLookup;
|
|
15
|
+
/** Whether the GRID renders dark (not the app chrome) — swatches follow the grid. */
|
|
16
|
+
darkMode: boolean;
|
|
17
|
+
/** True when the fill cannot be changed (a protected sheet). */
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
/** Mints a detached cell for the pattern swatches (theme colors resolve against the workbook). */
|
|
20
|
+
createCell: (update: ICell.Update) => ICell | null;
|
|
21
|
+
/**
|
|
22
|
+
* Writes a fill as one undoable step.
|
|
23
|
+
*
|
|
24
|
+
* @param fill The fill, or fill properties that merge into what is there.
|
|
25
|
+
* @param description A `messageKey('op.…')` naming the step in the undo history.
|
|
26
|
+
*/
|
|
27
|
+
applyFill: (fill: IFill.Update, description?: string) => void;
|
|
28
|
+
}
|
|
29
|
+
/** The cell selection's fill: the anchor cell's, written to every selected range. */
|
|
30
|
+
export declare const fillSelectionOf: (selection: FormatSelection) => FillSelection;
|
|
31
|
+
export interface FillPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
/** The fill the panel reads and writes. */
|
|
33
|
+
selection: FillSelection;
|
|
34
|
+
/** Force every control off, on top of the selection's own {@link FillSelection.disabled}. */
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The most stops the gradient editor will author. The model and the xlsx file take any number
|
|
38
|
+
* (Excel draws them all; only its own dialog stops at two colors), so none is imposed here.
|
|
39
|
+
* @defaultValue the editor's own, see {@link GradientEditorProps.maxStops}
|
|
40
|
+
*/
|
|
41
|
+
maxGradientStops?: number;
|
|
42
|
+
}
|
|
3
43
|
/**
|
|
4
44
|
* The **Fill** tab of the format pane — the one tab Excel Online does not have.
|
|
5
45
|
*
|
|
@@ -21,5 +61,5 @@ import { FormatPanelProps } from './FormatPanelParts';
|
|
|
21
61
|
* command is still consulted for the picker's cross-surface memory (last-used color, recent
|
|
22
62
|
* colors), just not for the value.
|
|
23
63
|
*/
|
|
24
|
-
export declare const FillPanel: React.MemoExoticComponent<(props:
|
|
64
|
+
export declare const FillPanel: React.MemoExoticComponent<(props: FillPanelProps) => React.JSX.Element>;
|
|
25
65
|
//# sourceMappingURL=FillPanel.d.ts.map
|
|
@@ -34,6 +34,8 @@ export interface FormatNumberFieldProps {
|
|
|
34
34
|
max: number;
|
|
35
35
|
/** The spinner's increment. Default `1`. */
|
|
36
36
|
step?: number;
|
|
37
|
+
/** Accept fractions (a line width in points). Default: whole numbers only. */
|
|
38
|
+
decimals?: boolean;
|
|
37
39
|
/** Width in px. These sit in rows beside buttons, not in a form column. */
|
|
38
40
|
width: number;
|
|
39
41
|
disabled?: boolean;
|
|
@@ -41,7 +43,7 @@ export interface FormatNumberFieldProps {
|
|
|
41
43
|
onChange: (value: number) => void;
|
|
42
44
|
}
|
|
43
45
|
/**
|
|
44
|
-
* A
|
|
46
|
+
* A number field for the format pane: an {@link InputField} with a numeric input, no helper
|
|
45
47
|
* line, and a commit on Enter.
|
|
46
48
|
*
|
|
47
49
|
* @remarks
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The key the format pane registers under — what `activateTaskPane` and the `formatCells` command
|
|
3
|
-
* address it by.
|
|
4
|
-
*/
|
|
5
|
-
export declare const FORMAT_TASK_PANE_KEY = "formatCells";
|
|
6
1
|
/**
|
|
7
2
|
* Registers the Format Cells task pane. Called from the studio bootstrap alongside the other
|
|
8
3
|
* built-in panes.
|
|
9
4
|
*/
|
|
10
|
-
export declare const FormatPlugin: () => void;
|
|
5
|
+
export declare const FormatPlugin: () => (() => void);
|
|
11
6
|
//# sourceMappingURL=FormatPlugin.d.ts.map
|