@sheetxl/studio-mui 0.8.0-beta.1 → 0.8.0-beta.11
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/browser/esm/0BWO0bLZ8Vm_dKd2.mjs +582 -0
- package/browser/esm/BAbq4-I5f5oUiNaF.mjs +141 -0
- package/browser/esm/BED6h6YAwCf1HEQJ.mjs +161 -0
- package/browser/esm/{DMLXV4EKl1NCp_jk.mjs → BXhNFzyEGokTF-BL.mjs} +2 -2
- package/browser/esm/BYE9gCDWKyx6mnVs.mjs +381 -0
- package/browser/esm/BjvD_4t2KGsZP5V8.mjs +71 -0
- package/browser/esm/{zWTZ8BvT4hjgC2ua.mjs → BknfGJouygmnpFIU.mjs} +13 -12
- package/browser/esm/{DNDrQKMTzKzNMjl-.mjs → BlE_8o8tO2AgAlaj.mjs} +19 -17
- package/browser/esm/BokqKEpU6TFgfRs6.mjs +252 -0
- package/browser/esm/{BoLxSRdEWt-Yg2RI.mjs → Brsh5yscJ_4uKFXp.mjs} +130 -103
- package/browser/esm/Bujtz_Guj88d03vI.mjs +831 -0
- package/browser/esm/Buqcl7J75MJrhpVE.mjs +1379 -0
- package/browser/esm/BvhYPwX3GrRaO9CM.mjs +319 -0
- package/browser/esm/C0wlMAIn9iREPK6w.mjs +87 -0
- package/browser/esm/C8JU4KsMasmLvojI.mjs +103 -0
- package/browser/esm/C9pIZVACtl9unFOp.mjs +77 -0
- package/browser/esm/CBD4RiRKbbZtSXV-.mjs +318 -0
- package/browser/esm/CEtXsBzEjEKk9GOj.mjs +117 -0
- package/browser/esm/{BZBJG2tDdD3-VujP.mjs → COlZu93LRwuBvjE-.mjs} +195 -174
- package/browser/esm/{Cj2pgCNqBCGl4rTX.mjs → CTjqDD-swFMZzI-Y.mjs} +587 -556
- package/browser/esm/CWkOgdL7mOKiTR62.mjs +975 -0
- package/browser/esm/ChSVxkPTIjgcC8PL.mjs +412 -0
- package/browser/esm/{Cd6n1XUgF0VItpkH.mjs → ClBvNPeNCAhuVWrG.mjs} +7 -5
- package/browser/esm/CyLn6zOOp_biA3xU.mjs +335 -0
- package/browser/esm/CynTY0oNtyJnoaBq.mjs +14 -0
- package/browser/esm/D3rRUK4dIM5gUSmj.mjs +256 -0
- package/browser/esm/D9ISy7VkaRRFJl46.mjs +515 -0
- package/browser/esm/DDc6rDuU9JAo1DH_.mjs +225 -0
- package/browser/esm/DDczwkXhz_MHub4z.mjs +197 -0
- package/browser/esm/{3ydDykDMtDYbfVVn.mjs → DEv4pIEgYr5C7etm.mjs} +178 -129
- package/browser/esm/DG21x7RKDpge6zAE.mjs +31 -0
- package/browser/esm/DJOOed_OtB-XT7f3.mjs +437 -0
- package/browser/esm/{Bz5LiUe3SZ8g42Ia.mjs → DKtJxrpN0axtuQ0l.mjs} +1 -1
- package/browser/esm/DRSCS6aLiYmPjUz1.mjs +1543 -0
- package/browser/esm/{ChwS_ougBsogOEsP.mjs → DTpRkgsTm_zYnWfW.mjs} +46 -47
- package/browser/esm/DV6i9RQZfJiKtEaJ.mjs +2552 -0
- package/browser/esm/DdcZrjMLWVukWcU5.mjs +7473 -0
- package/browser/esm/Di3BUxA0SqFWWgeg.mjs +94 -0
- package/browser/esm/DnGaP5F7mLwCGUYG.mjs +408 -0
- package/browser/esm/DpD4fg2WcyiKX_2K.mjs +414 -0
- package/browser/esm/{BUGepznywvV0tUjW.mjs → Ds3XRkne7HxcXD8J.mjs} +2 -2
- package/browser/esm/DsoNMWDwHZP8UXQd.mjs +293 -0
- package/browser/esm/G0Inqm6Eqw47dMpa.mjs +212 -0
- package/browser/esm/HViD4Wfoi0mmqk9w.mjs +13 -0
- package/browser/esm/LZoYSQAYV2wksnDv.mjs +386 -0
- package/browser/esm/{rU8xNPVQtDSnujM-.mjs → QgaAIDUMmBQBsXP9.mjs} +3 -3
- package/browser/esm/YThnrg3PadGs7B4j.mjs +627 -0
- package/browser/esm/index.mjs +1208 -67
- package/browser/esm/ttjcNHcFn8O6hfnd.mjs +1288 -0
- package/browser/esm/w_JrR69vEpvoyeMy.mjs +68 -0
- package/browser/esm/{CVfuCNRpODUw04IH.mjs → xFqkfN8QMCxvsetB.mjs} +1 -1
- package/browser/esm/zqilJefihVd7At2T.mjs +517 -0
- package/licenses/dependencies.txt +96 -349
- package/node/esm/1bf4gn-2vld4BZ9u.mjs +294 -0
- package/node/esm/{BhqI3pQFkV8K_612.mjs → 3WghtBXAvCDwcVrq.mjs} +1 -1
- package/node/esm/4HmLH0bPVJCZLgik.mjs +116 -0
- package/node/esm/{DM7K7-284z-PczVz.mjs → B0bdb_6p7fQI_ivo.mjs} +28 -28
- package/node/esm/BIMkjQUwG4Ih-6Sh.mjs +142 -0
- package/node/esm/BNg4QQY0WAPLE0q7.mjs +141 -0
- package/node/esm/BPzcW4BejRqso338.mjs +72 -0
- package/node/esm/BR45ogAR-hY2bE60.mjs +318 -0
- package/node/esm/BlN7G0DVC24zauig.mjs +197 -0
- package/node/esm/Bph-sR3l6AYWeuxK.mjs +256 -0
- package/node/esm/CPq-MIdEnc-53JpF.mjs +319 -0
- package/node/esm/CSAnTp5rwId0DUb8.mjs +380 -0
- package/node/esm/CWcv7UVXF8IUB0PC.mjs +1379 -0
- package/node/esm/{BA7VzUQ2sKRLTZ5c.mjs → CYIoK22I6Yvv12_x.mjs} +20 -20
- package/node/esm/CZyA9uD4SkTvqp_G.mjs +1283 -0
- package/node/esm/{CHi3AuWEwEPOg9IZ.mjs → CjC6s3RUJQNCF7mP.mjs} +1 -1
- package/node/esm/{DXZrzWee8K5FPOW1.mjs → CuMePia6i_8yfJ6S.mjs} +9 -9
- package/node/esm/CvRbu8JPxFarsSR-.mjs +412 -0
- package/node/esm/CyafafEgfmjLqE5O.mjs +521 -0
- package/node/esm/D-xqQ5qOSd6WrzwJ.mjs +94 -0
- package/node/esm/DLqBHdFp6wvm6EGs.mjs +212 -0
- package/node/esm/{BwZcoHDBmLPIVOT5.mjs → DMXLxp3T0E0SRTQc.mjs} +69 -70
- package/node/esm/{CUMKTjYv6VTkcWYi.mjs → DWqvf4H5F2wMnZ0L.mjs} +32 -30
- package/node/esm/DatM6eEYPpAtIMy-.mjs +405 -0
- package/node/esm/Db3dbaYLKUO66T9s.mjs +1689 -0
- package/node/esm/DdEzhVqYTrGODXrz.mjs +68 -0
- package/node/esm/DeZJlLk8WJ3BLtLs.mjs +975 -0
- package/node/esm/DfCuL8AUxMFoEG2s.mjs +519 -0
- package/node/esm/Do-zCKziWhoG5eAv.mjs +77 -0
- package/node/esm/DpJ2gmZJioCyq8La.mjs +632 -0
- package/node/esm/{Qpuqm6xBr_da38Ht.mjs → XEDcegsv5AGKBfu2.mjs} +165 -137
- package/node/esm/index.mjs +10124 -6751
- package/node/esm/yCUxQuqVuC4DHKPx.mjs +385 -0
- package/node/esm/zITjZ7R4raDqhP-n.mjs +515 -0
- package/package.json +15 -18
- package/resources/locales/de/groups.cmd.json +29 -16
- package/resources/locales/de/studio.cmd.json +18 -1
- package/resources/locales/de/ui.msg.json +447 -40
- package/resources/locales/en/groups.cmd.json +39 -17
- package/resources/locales/en/studio.cmd.json +18 -1
- package/resources/locales/en/ui.msg.json +403 -40
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +21 -5
- package/types/src/anchorItems/AnchorItemsPanel.d.ts +14 -0
- package/types/src/anchorItems/AnchoredRangeField.d.ts +40 -0
- package/types/src/anchorItems/index.d.ts +1 -0
- package/types/src/anomalies/AnomaliesPlugin.d.ts +5 -0
- package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
- package/types/src/anomalies/index.d.ts +3 -0
- package/types/src/border/BorderPopupButton.d.ts +6 -6
- package/types/src/border/BorderStylePopupButton.d.ts +3 -3
- package/types/src/border/BorderTemplateIcon.d.ts +29 -0
- package/types/src/border/index.d.ts +1 -0
- 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/ColorPanel.d.ts +8 -2
- package/types/src/color/ColorPopupButton.d.ts +2 -1
- package/types/src/command/NumberFormatQuickButtons.d.ts +32 -0
- package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
- package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
- 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/ConditionalFormatStylePicker.d.ts +4 -4
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +2 -2
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
- package/types/src/conditions/BetweenOption.d.ts +6 -1
- package/types/src/conditions/CombinatorOption.d.ts +7 -0
- package/types/src/conditions/ConditionEditor.d.ts +61 -4
- package/types/src/conditions/ConditionUtils.d.ts +65 -6
- package/types/src/conditions/ExpressionOption.d.ts +12 -6
- package/types/src/conditions/MembershipOption.d.ts +67 -0
- package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
- package/types/src/conditions/ScalarOption.d.ts +25 -6
- 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 +54 -0
- package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +7 -1
- package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -2
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +13 -2
- package/types/src/dataValidation/DataValidationIcon.d.ts +22 -0
- package/types/src/dataValidation/DataValidationTitle.d.ts +13 -0
- package/types/src/dialog/FillSeriesDialog.d.ts +16 -0
- package/types/src/dialog/OutlineSettingsDialog.d.ts +12 -0
- package/types/src/dialog/TableNewDialog.d.ts +1 -4
- 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 -2
- package/types/src/externalLink/ExternalLinkCardBody.d.ts +9 -0
- package/types/src/externalLink/ExternalLinkChip.d.ts +18 -0
- package/types/src/externalLink/ExternalLinkLocation.d.ts +18 -0
- package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +18 -0
- package/types/src/externalLink/ExternalLinksPanel.d.ts +11 -0
- package/types/src/externalLink/ExternalLinksPlugin.d.ts +5 -0
- package/types/src/externalLink/ExternalLinksTaskPane.d.ts +19 -0
- package/types/src/externalLink/index.d.ts +8 -0
- package/types/src/fill/GradientEditor.d.ts +41 -0
- package/types/src/fill/GradientStopsBar.d.ts +43 -0
- package/types/src/fill/PatternPopupButton.d.ts +26 -0
- package/types/src/fill/PatternSwatch.d.ts +53 -0
- package/types/src/fill/index.d.ts +5 -0
- package/types/src/filter/ColumnMenu.d.ts +31 -1
- package/types/src/filter/index.d.ts +0 -1
- package/types/src/form/FormulaField.d.ts +35 -6
- package/types/src/form/InputField.d.ts +35 -5
- package/types/src/format/AlignmentPanel.d.ts +13 -0
- package/types/src/format/BorderPanel.d.ts +22 -0
- package/types/src/format/BorderPreview.d.ts +101 -0
- package/types/src/format/FillPanel.d.ts +65 -0
- package/types/src/format/FontPanel.d.ts +12 -0
- package/types/src/format/FormatCellPreview.d.ts +35 -0
- package/types/src/format/FormatPanelParts.d.ts +85 -0
- package/types/src/format/FormatPlugin.d.ts +11 -0
- package/types/src/format/FormatTaskPane.d.ts +39 -0
- package/types/src/format/LinePanel.d.ts +53 -0
- package/types/src/format/LinePreviews.d.ts +71 -0
- package/types/src/format/NumberFormatOption.d.ts +43 -0
- package/types/src/{numberFormat → format}/NumberFormatPanel.d.ts +20 -0
- package/types/src/format/index.d.ts +14 -0
- package/types/src/format/useFormatSelection.d.ts +93 -0
- package/types/src/formulaBar/IFormulaBar.d.ts +11 -0
- package/types/src/formulaBar/MobileFormulaBar.d.ts +33 -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 -4
- package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
- package/types/src/itemsPanel/EditorPanel.d.ts +4 -1
- package/types/src/itemsPanel/ItemCard.d.ts +60 -8
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +68 -19
- package/types/src/itemsPanel/ItemsPanel.d.ts +9 -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 +9 -2
- package/types/src/named/NamedDetailsTaskPane.d.ts +3 -2
- package/types/src/named/NamedEditorPanel.d.ts +1 -1
- package/types/src/named/NamedExpressionField.d.ts +32 -0
- package/types/src/named/NamedKindChip.d.ts +38 -0
- package/types/src/picture/PicturePlugin.d.ts +6 -0
- package/types/src/picture/index.d.ts +2 -0
- package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +6 -0
- package/types/src/protectedRange/ProtectedRangeDraft.d.ts +22 -0
- package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +0 -14
- package/types/src/protectedRange/index.d.ts +2 -1
- package/types/src/protection/ManageProtectionTaskPane.d.ts +29 -0
- package/types/src/protection/PasswordDialog.d.ts +32 -0
- package/types/src/protection/PasswordField.d.ts +35 -0
- package/types/src/protection/ProtectedCellsPanel.d.ts +20 -0
- package/types/src/protection/ProtectionPlugin.d.ts +11 -0
- package/types/src/protection/WorkbookProtectionPanel.d.ts +34 -15
- package/types/src/protection/WorkbookProtectionTab.d.ts +22 -0
- package/types/src/protection/WorksheetProtectionPanel.d.ts +35 -0
- package/types/src/protection/index.d.ts +7 -1
- package/types/src/shape/InsertShapeCommandButton.d.ts +20 -0
- package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
- package/types/src/shape/ShapePlugin.d.ts +6 -0
- package/types/src/shape/index.d.ts +3 -0
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +18 -0
- package/types/src/slicer/SlicerPlugin.d.ts +6 -0
- package/types/src/slicer/index.d.ts +3 -0
- package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
- package/types/src/studio/CommandsWrapper.d.ts +5 -0
- package/types/src/studio/EagerStudio.d.ts +14 -1
- package/types/src/studio/StudioCommandProvider.d.ts +10 -0
- package/types/src/studio/StudioCommands.d.ts +40 -4
- package/types/src/studio/StudioProps.d.ts +64 -2
- package/types/src/studio/StudioSplitPane.d.ts +1 -1
- package/types/src/studio/formulaBarPlacement.d.ts +35 -0
- package/types/src/studio/splitStudioProps.d.ts +7 -0
- package/types/src/studio/useStudioApp.d.ts +31 -18
- package/types/src/template/TemplateCommands.d.ts +29 -0
- package/types/src/template/TemplateDialog.d.ts +19 -0
- package/types/src/template/TemplatePanel.d.ts +50 -0
- package/types/src/template/TemplateSearchField.d.ts +29 -0
- package/types/src/template/WelcomeDialog.d.ts +29 -0
- package/types/src/template/categoryColor.d.ts +8 -0
- package/types/src/template/index.d.ts +3 -0
- package/types/src/template/useTemplateCatalog.d.ts +71 -0
- package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
- package/types/src/workbook/DefaultRenderers.d.ts +16 -2
- package/types/src/workbook/FillMenu.d.ts +21 -0
- 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 +1 -1
- package/types/src/workbook/index.d.ts +1 -0
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
- package/browser/cjs/B_D3JKseVvpRyX-E.cjs +0 -1
- package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +0 -2
- package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +0 -2
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/Bte6P3MhSjajJmmY.cjs +0 -7
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
- package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +0 -1
- package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CYxc8vnRi8dNpDPk.cjs +0 -1
- package/browser/cjs/CZm1jVZaHQ246prW.cjs +0 -1
- package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
- package/browser/cjs/Cm1APq2MraYNNhyI.cjs +0 -1
- package/browser/cjs/DO8V31Z1ewgMA1di.cjs +0 -5
- package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +0 -1
- package/browser/cjs/IASAYG6qgv7lJY7y.cjs +0 -1
- package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
- package/browser/cjs/UnMhi28mbvLiOXQe.cjs +0 -1
- package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +0 -1
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
- package/browser/cjs/index.cjs +0 -2
- package/browser/cjs/w2GjebPlOFv3pCbm.cjs +0 -1
- package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +0 -11
- package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +0 -1
- package/browser/esm/BuY3uV47Bwbqpasq.mjs +0 -219
- package/browser/esm/CAs1MWvJTcRfJy26.mjs +0 -217
- package/browser/esm/CBU3LgLYmqtQjJbu.mjs +0 -1150
- package/browser/esm/CDU0rqpLNVtMLI-f.mjs +0 -52
- package/browser/esm/CVBub6pgTsJzCc5m.mjs +0 -5429
- package/browser/esm/C_XvSsQ9BVdHffCO.mjs +0 -47
- package/browser/esm/FT29q8yNwsEpVZjt.mjs +0 -9257
- package/browser/esm/Hb1rlHT4tE5hLcjM.mjs +0 -82
- package/browser/esm/UJOXCQv6KrG1gY3l.mjs +0 -105
- package/browser/esm/s46El7mT6oKLSnYB.mjs +0 -411
- package/node/esm/9FY82fj1R1c-AczW.mjs +0 -47
- package/node/esm/C-boHCnJditFzng3.mjs +0 -106
- package/node/esm/DxXM8qHi0Oz4Zovl.mjs +0 -4575
- package/node/esm/sQt2wWGTRLzqeJdG.mjs +0 -82
- package/node/esm/yCHAZKxJR7qY_ySy.mjs +0 -470
- package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +0 -32
- package/types/src/conditions/DateTimeOption.d.ts +0 -43
- package/types/src/conditions/InSetOption.d.ts +0 -37
- package/types/src/dialog/CommentsDialog.d.ts +0 -11
- package/types/src/dialog/NumberFormatDialog.d.ts +0 -12
- package/types/src/filter/FilterList.d.ts +0 -28
- package/types/src/numberFormat/NumberFormatTaskPane.d.ts +0 -12
- package/types/src/numberFormat/index.d.ts +0 -8
- package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +0 -3
- package/types/src/protectedRange/ProtectedRangePlugin.d.ts +0 -2
- package/types/src/protection/WorkbookProtectionDialog.d.ts +0 -23
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IWorksheet, IAnchored } from '@sheetxl/sdk';
|
|
3
3
|
import { ItemMessageKeys } from '../itemsPanel';
|
|
4
|
+
import { ReanchorableItem } from './AnchoredRangeField';
|
|
4
5
|
/**
|
|
5
6
|
* The contract an item must satisfy to be listed in an {@link AnchorItemsPanel}.
|
|
6
7
|
*
|
|
@@ -13,7 +14,7 @@ import { ItemMessageKeys } from '../itemsPanel';
|
|
|
13
14
|
* does not belong here: defined names are aggregated from the registries that own them, have no
|
|
14
15
|
* anchor and no order, and bind to the model-agnostic `ItemsDescriptor` instead.
|
|
15
16
|
*/
|
|
16
|
-
export interface AnchorItem extends
|
|
17
|
+
export interface AnchorItem extends ReanchorableItem {
|
|
17
18
|
/**
|
|
18
19
|
* Returns the index of this item within its container.
|
|
19
20
|
*/
|
|
@@ -62,16 +63,16 @@ export interface AnchorItemsDescriptor<T extends AnchorItem> {
|
|
|
62
63
|
/**
|
|
63
64
|
* Returns the feature's collection for a sheet.
|
|
64
65
|
*/
|
|
65
|
-
getCollection(sheet:
|
|
66
|
+
getCollection(sheet: IWorksheet): AnchorItemCollection<T>;
|
|
66
67
|
/**
|
|
67
68
|
* Sheet events that signal the collection changed (add/remove/reorder/anchor moves),
|
|
68
69
|
* e.g. `['onDataValidationsChange']`. `onProtectionChange`/`onInvalidated` are always handled.
|
|
69
70
|
*/
|
|
70
|
-
changeEvents: (keyof
|
|
71
|
+
changeEvents: (keyof IWorksheet.IListeners)[];
|
|
71
72
|
/**
|
|
72
73
|
* Read-only predicate. Defaults to `!sheet.getProtection().isObjectsAllowed()`.
|
|
73
74
|
*/
|
|
74
|
-
isReadOnly?(sheet:
|
|
75
|
+
isReadOnly?(sheet: IWorksheet): boolean;
|
|
75
76
|
/**
|
|
76
77
|
* If `false` the move up/down affordances are hidden, for a collection whose evaluation does
|
|
77
78
|
* not depend on order.
|
|
@@ -89,11 +90,26 @@ export interface AnchorItemsDescriptor<T extends AnchorItem> {
|
|
|
89
90
|
* need nothing here — protected ranges do, because hashing a password is asynchronous.
|
|
90
91
|
*/
|
|
91
92
|
beforeSave?(edited: T): Promise<void> | void;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the temporary item can be saved as it is — see `ItemsDescriptor.validate`.
|
|
95
|
+
*
|
|
96
|
+
* @returns A message key naming the problem, or `null`.
|
|
97
|
+
*/
|
|
98
|
+
validate?(edited: T): string | null;
|
|
92
99
|
/**
|
|
93
100
|
* Applies the edited (temporary) item back onto the existing collection item on save.
|
|
94
101
|
* The add path (`index === -1`) uses `collection.add` and does not call this.
|
|
102
|
+
*
|
|
103
|
+
* @remarks
|
|
104
|
+
* The ranges are not this method's: the panel carries an edited anchor across after it returns.
|
|
95
105
|
*/
|
|
96
106
|
applyUpdate(target: T, edited: T): void;
|
|
107
|
+
/**
|
|
108
|
+
* Writes what a NEW item starts with onto a fresh draft, for a feature whose authoring defaults
|
|
109
|
+
* differ from the model's (a data validation starts as Excel's dialog does: Stop, alert shown,
|
|
110
|
+
* blanks ignored). Runs before {@link applySeed}; never on a draft of an existing item.
|
|
111
|
+
*/
|
|
112
|
+
applyNewDefaults?(draft: T): void;
|
|
97
113
|
/**
|
|
98
114
|
* Writes an activation seed onto a fresh draft, for a feature that can be opened already editing
|
|
99
115
|
* a new item — see `ItemsDescriptor.createSeededDraft`, which this supplies the body of.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IWorkbook } from '@sheetxl/sdk';
|
|
3
3
|
import { ItemsPaneArgs } from '@sheetxl/react';
|
|
4
|
+
import { ItemsDescriptor } from '../itemsPanel';
|
|
4
5
|
import { AnchorItem, AnchorItemsDescriptor } from './AnchorItemsDescriptor';
|
|
5
6
|
export interface AnchorItemsPanelProps<T extends AnchorItem = AnchorItem> extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
7
|
workbook: IWorkbook;
|
|
@@ -18,6 +19,19 @@ export interface AnchorItemsPanelProps<T extends AnchorItem = AnchorItem> extend
|
|
|
18
19
|
*/
|
|
19
20
|
dragReorder?: boolean;
|
|
20
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Adapts an {@link AnchorItemsDescriptor} — a per-sheet collection of anchored items with a
|
|
24
|
+
* `createItem` draft — onto the model-agnostic {@link ItemsDescriptor}.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* The anchored shape is one way to back a list, not the only one: defined names are aggregated
|
|
28
|
+
* from registries that own them, have no index and no anchor, and bind to `ItemsDescriptor`
|
|
29
|
+
* directly. This adapter is what keeps that generalization from reaching the three anchored
|
|
30
|
+
* features (data validations, conditional formats, protected ranges).
|
|
31
|
+
*
|
|
32
|
+
* @internal Exported for tests.
|
|
33
|
+
*/
|
|
34
|
+
export declare const toItemsDescriptor: <T extends AnchorItem>(descriptor: AnchorItemsDescriptor<T>) => ItemsDescriptor<T, T>;
|
|
21
35
|
/**
|
|
22
36
|
* Task-pane panel for a sheet's anchored-item collections (data validations, conditional
|
|
23
37
|
* formats, protected ranges): a card list with add/edit/duplicate/delete/reorder, and an in-place
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IAnchored, ICellRanges, ITransaction } from '@sheetxl/sdk';
|
|
3
|
+
/**
|
|
4
|
+
* An anchored item whose ranges can be re-pointed. Conditional formats, data validations and
|
|
5
|
+
* protected ranges satisfy this structurally.
|
|
6
|
+
*/
|
|
7
|
+
export interface ReanchorableItem extends IAnchored {
|
|
8
|
+
setRanges(address: ICellRanges.Address, options?: ITransaction.OperationOptions): unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface AnchoredRangeFieldProps {
|
|
11
|
+
/**
|
|
12
|
+
* The item to re-anchor. Written through on commit.
|
|
13
|
+
*/
|
|
14
|
+
item: ReanchorableItem;
|
|
15
|
+
/**
|
|
16
|
+
* Field label. `null` renders none, for a host that names it itself.
|
|
17
|
+
*/
|
|
18
|
+
label?: React.ReactNode | null;
|
|
19
|
+
/**
|
|
20
|
+
* Helper line below the field. `null` renders none; left undefined, the line is reserved for the
|
|
21
|
+
* error message, which is the one thing a user can get wrong here.
|
|
22
|
+
*/
|
|
23
|
+
helperText?: React.ReactNode | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The ranges an anchored item covers, as a reference field.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Re-pointing an item is the edit users reach for most, and typing or picking an address is how
|
|
30
|
+
* anyone expects to do it.
|
|
31
|
+
*
|
|
32
|
+
* `allowMulti` because OOXML's `sqref` is a list and an item is authored as several ranges as
|
|
33
|
+
* readily as one; `allowCrossSheet: false` because every anchored item belongs to one sheet.
|
|
34
|
+
*
|
|
35
|
+
* Commit-on-done: the write re-anchors the item in the sheet's spatial index and lands one entry on
|
|
36
|
+
* the undo stack, so it is not something to do on every keystroke. `'done'` is also what gives the
|
|
37
|
+
* field its ✓/✗ pair and makes Enter the field's own commit point.
|
|
38
|
+
*/
|
|
39
|
+
export declare const AnchoredRangeField: React.NamedExoticComponent<AnchoredRangeFieldProps>;
|
|
40
|
+
//# sourceMappingURL=AnchoredRangeField.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWorkbook } from '@sheetxl/sdk';
|
|
3
|
+
import { TaskPaneProps } from '@sheetxl/react';
|
|
4
|
+
export interface AnomaliesTaskPaneProps extends TaskPaneProps<IWorkbook> {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* **Anomalies** — where the selected sheet breaks its own patterns, as the `anomalies` feature
|
|
8
|
+
* reports them, one card per region, highest rank first.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* A snapshot: the list is what **Analyze** found and does not follow edits until it is pressed
|
|
12
|
+
* again. Hovering a card outlines its region on the grid, clicking it selects the region, and
|
|
13
|
+
* dismissing it takes it off the list (nothing is written to the sheet).
|
|
14
|
+
*/
|
|
15
|
+
export declare const AnomaliesTaskPane: React.MemoExoticComponent<(props: AnomaliesTaskPaneProps) => React.JSX.Element | null>;
|
|
16
|
+
export default AnomaliesTaskPane;
|
|
17
|
+
//# sourceMappingURL=AnomaliesTaskPane.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { IColor,
|
|
2
|
+
import { IColor, IBorders } from '@sheetxl/sdk';
|
|
3
3
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
4
4
|
export interface BorderPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "createPopupPanel"> {
|
|
5
|
-
selectedBorder: Partial<
|
|
5
|
+
selectedBorder: Partial<IBorders.Properties>;
|
|
6
6
|
/**
|
|
7
7
|
* Create a border.
|
|
8
8
|
*/
|
|
9
|
-
createBorder: (props: Partial<
|
|
9
|
+
createBorder: (props: Partial<IBorders.Properties>) => IBorders;
|
|
10
10
|
/**
|
|
11
11
|
* For color picker.
|
|
12
12
|
*/
|
|
@@ -21,10 +21,10 @@ export interface BorderPopupButtonProps extends Omit<ExhibitPopupIconButtonProps
|
|
|
21
21
|
/**
|
|
22
22
|
* If no values are specified
|
|
23
23
|
*/
|
|
24
|
-
autoStrokeStyle?:
|
|
24
|
+
autoStrokeStyle?: IBorders.StrokeStyle;
|
|
25
25
|
showStylingBefore?: boolean;
|
|
26
|
-
onSelectBorder?: (border: Partial<
|
|
27
|
-
onPreviewBorder?: (border: Partial<
|
|
26
|
+
onSelectBorder?: (border: Partial<IBorders.Properties> | null) => void;
|
|
27
|
+
onPreviewBorder?: (border: Partial<IBorders.Properties> | null) => void;
|
|
28
28
|
}
|
|
29
29
|
export declare const BorderPopupButton: React.NamedExoticComponent<Omit<BorderPopupButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
30
30
|
//# sourceMappingURL=BorderPopupButton.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IBorders, IColor } from '@sheetxl/sdk';
|
|
3
3
|
import { PopupButtonType, ExhibitPopupButtonProps } from '@sheetxl/utils-mui';
|
|
4
4
|
import { SvgIconProps } from '@mui/material';
|
|
5
5
|
export interface BorderStylePopupButtonProps extends ExhibitPopupButtonProps {
|
|
6
|
-
selectedStyle:
|
|
7
|
-
onSelectStyle?: (style:
|
|
6
|
+
selectedStyle: IBorders.StrokeStyle;
|
|
7
|
+
onSelectStyle?: (style: IBorders.StrokeStyle | null) => void;
|
|
8
8
|
/**
|
|
9
9
|
* Rendering styles
|
|
10
10
|
* @defaultValue to Toolbar
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IBorders } from '@sheetxl/sdk';
|
|
3
|
+
export interface BorderTemplateIconProps {
|
|
4
|
+
/**
|
|
5
|
+
* The border this icon stands for — the edges a click would draw, with the style and color it
|
|
6
|
+
* would draw them in. `null`, or an all-`None` border, is the empty grid.
|
|
7
|
+
*/
|
|
8
|
+
border: Partial<IBorders.Properties> | null;
|
|
9
|
+
/** Mints the per-cell border the renderer draws. */
|
|
10
|
+
createBorder: (properties: Partial<IBorders.Properties>) => IBorders | null;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A border button's icon: a 5x5 grid of dots with the border itself drawn across it.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* The lines are a real {@link StaticBorderRenderer} fed the same strokes the click would write, so
|
|
17
|
+
* every one of these buttons previews its own edit — the current line style and color included.
|
|
18
|
+
* The dots are the cells, and they are drawn only where no line covers them. A diagonal runs
|
|
19
|
+
* corner to corner across the whole grid.
|
|
20
|
+
*
|
|
21
|
+
* Dots and lines share one device-pixel layout: each dot is an odd number of device pixels
|
|
22
|
+
* centered on the pixel a thin line at that boundary fills, so odd-width lines run through the
|
|
23
|
+
* dots' centers and an even-width line keeps its inner pixel on them.
|
|
24
|
+
*/
|
|
25
|
+
export declare const BorderTemplateIcon: {
|
|
26
|
+
(props: BorderTemplateIconProps): React.ReactElement;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=BorderTemplateIcon.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IChart } from '@sheetxl/sdk';
|
|
3
|
+
import { useTranslator } from '@sheetxl/utils-react';
|
|
4
|
+
import { MovablePaneProps } from '@sheetxl/react';
|
|
5
|
+
type Translate = ReturnType<typeof useTranslator>;
|
|
6
|
+
/** The element by the name Excel's Chart Elements list gives it. */
|
|
7
|
+
export declare const elementLabel: (t: Translate, element: IChart.IElement) => string;
|
|
8
|
+
/**
|
|
9
|
+
* The body of the format pane for a chart: Excel's Format pane for one chart element at a time,
|
|
10
|
+
* chosen from the chart's elements as its Chart Elements list offers them.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Each element shows its fill and line (the format pane's own Fill and Line controls, bound to the
|
|
14
|
+
* element's style), its text style where it has text, and its own options. Every control writes
|
|
15
|
+
* through the element's setters, one step to undo each; what a chart refuses is said under the
|
|
16
|
+
* picker.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ChartFormatPanel: React.MemoExoticComponent<(props: MovablePaneProps) => React.JSX.Element>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=ChartFormatPanel.d.ts.map
|
|
@@ -17,7 +17,8 @@ export interface ColorPanelProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
17
17
|
*/
|
|
18
18
|
disableAlpha?: boolean;
|
|
19
19
|
darkMode?: boolean;
|
|
20
|
-
|
|
20
|
+
/** `null` means no color of its own — the AUTO swatch is the selected one. */
|
|
21
|
+
selectedColor: IColor | null;
|
|
21
22
|
previewColor?: IColor | null;
|
|
22
23
|
onSelectColor?: (color: IColor | null, isCustom: boolean) => void;
|
|
23
24
|
onPreviewColor?: (color: IColor | null) => void;
|
|
@@ -27,8 +28,13 @@ export interface ColorPanelProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
27
28
|
* If autoColor is set then a special Swatch is created that will
|
|
28
29
|
* use this color. When it is selected or previewed the color
|
|
29
30
|
* passed will be null any consumer will then know to use the auto color
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* `null` means there is no automatic value to offer — distinct from omitting it, which lets a
|
|
34
|
+
* command's own context supply one. A picker that has already committed to a concrete fill has
|
|
35
|
+
* nothing sensible to put behind an "automatic" swatch.
|
|
30
36
|
*/
|
|
31
|
-
autoColor?: IColor;
|
|
37
|
+
autoColor?: IColor | null;
|
|
32
38
|
/**
|
|
33
39
|
* If autoColor is specified then a label will be shown.
|
|
34
40
|
* This is ignored if autoColor is not specified.
|
|
@@ -3,7 +3,8 @@ import { IColor } from '@sheetxl/sdk';
|
|
|
3
3
|
import { PopupButtonType, ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
4
4
|
import { ColorPanelProps } from './ColorPanel';
|
|
5
5
|
export interface ColorPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "createPopupPanel"> {
|
|
6
|
-
|
|
6
|
+
/** `null` means no color of its own — the AUTO swatch is the selected one. */
|
|
7
|
+
selectedColor: IColor | null;
|
|
7
8
|
onSelectColor?: (color: IColor | null, isCustom: boolean) => void;
|
|
8
9
|
onPreviewColor?: (color: IColor | null) => void;
|
|
9
10
|
onPreviewColorImmediate?: (color: IColor | null) => void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme, SxProps } from '@mui/material';
|
|
3
|
+
/**
|
|
4
|
+
* The registry key the number-format popup is registered under — and the scope its members' labels
|
|
5
|
+
* resolve against: `formatCells` reads as "More Number Formats…" there, "Format Cells" elsewhere,
|
|
6
|
+
* and the quick buttons below resolve their compact labels against it.
|
|
7
|
+
*/
|
|
8
|
+
export declare const NUMBER_FORMAT_GROUP_KEY = "numberFormatOptions";
|
|
9
|
+
export interface NumberFormatQuickButtonsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/**
|
|
11
|
+
* The render surface, for scoped command chrome (the compact labels).
|
|
12
|
+
* @defaultValue {@link NUMBER_FORMAT_GROUP_KEY}
|
|
13
|
+
*/
|
|
14
|
+
groupKey?: string;
|
|
15
|
+
/** Force every button off, on top of each command's own state. */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
|
|
19
|
+
*/
|
|
20
|
+
sx?: SxProps<Theme>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The five one-click number formats — accounting, percent, comma, and the two decimal nudges.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Shared by the toolbar's number-format popup and the format pane's Number tab, which are the same
|
|
27
|
+
* five commands either way. They act on the current selection through their commands rather than
|
|
28
|
+
* through a host's own value channel, so a host that edits something *other* than the selection
|
|
29
|
+
* (a dialog with its own target) should leave them out.
|
|
30
|
+
*/
|
|
31
|
+
export declare const NumberFormatQuickButtons: React.NamedExoticComponent<NumberFormatQuickButtonsProps & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
//# sourceMappingURL=NumberFormatQuickButtons.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ICellStyle } from '@sheetxl/sdk';
|
|
3
3
|
import { CommandPopupButtonProps } from '@sheetxl/utils-mui';
|
|
4
4
|
export interface PresetCellStylesCommandButtonProps extends CommandPopupButtonProps {
|
|
5
5
|
commandKey: string;
|
|
6
|
-
selectedNamed?:
|
|
7
|
-
onSelectNamed?: (style:
|
|
6
|
+
selectedNamed?: ICellStyle.INamed;
|
|
7
|
+
onSelectNamed?: (style: ICellStyle.INamed) => void;
|
|
8
8
|
usePreviewIcon?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare const PresetCellStylesCommandButton: React.NamedExoticComponent<Omit<PresetCellStylesCommandButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CommandPopupButtonProps } from '@sheetxl/utils-mui';
|
|
3
3
|
/**
|
|
4
|
-
* Zoom-level split button
|
|
5
|
-
* preset levels + a custom input, while the quick button always executes
|
|
6
|
-
* the current zoom scale.
|
|
4
|
+
* Zoom-level split button, shared by the status bar and the View toolbar. Like the `textRotateOptions`
|
|
5
|
+
* group: the popup lists the preset levels + a custom input, while the quick button always executes
|
|
6
|
+
* `sheetZoom100` yet *displays* the current zoom scale. The percent text is styled as a toolbar label;
|
|
7
|
+
* a denser surface restyles it through the `zoom-percent` class and drops the outline (see `SheetZoomScale`).
|
|
7
8
|
*/
|
|
8
9
|
export declare const SheetZoomCommandButton: React.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
9
10
|
//# sourceMappingURL=SheetZoomCommandButton.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CellCoords } from '@sheetxl/utils';
|
|
3
|
+
import { IComment, IWorksheet } from '@sheetxl/sdk';
|
|
4
|
+
export interface CommentCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
5
|
+
/** The sheet the card's cell is on. */
|
|
6
|
+
sheet: IWorksheet;
|
|
7
|
+
/** The cell the card belongs to. */
|
|
8
|
+
coords: CellCoords;
|
|
9
|
+
/** The thread, or `null` for a draft: nothing is written until it is posted. */
|
|
10
|
+
comment: IComment | null;
|
|
11
|
+
/**
|
|
12
|
+
* A new value each time the card's text should take the caret: the draft's field, or the reply
|
|
13
|
+
* box of a thread. `0` or omitted for never.
|
|
14
|
+
*/
|
|
15
|
+
focusRequest?: number;
|
|
16
|
+
/** Marks the card as the one for the selected cell. */
|
|
17
|
+
highlighted?: boolean;
|
|
18
|
+
/** Draws the card raised, for one that floats over the grid. */
|
|
19
|
+
elevated?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* A click on the card's surface, anywhere that is not a control. Omit when there is nothing to
|
|
22
|
+
* select.
|
|
23
|
+
*/
|
|
24
|
+
onSelect?: () => void;
|
|
25
|
+
/** The draft was cancelled. */
|
|
26
|
+
onClose?: () => void;
|
|
27
|
+
/** The draft was posted, as this comment. */
|
|
28
|
+
onPosted?: (comment: IComment) => void;
|
|
29
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* One threaded comment as a card: each entry's initials, author, time and text, the replies, a
|
|
33
|
+
* reply box, and a menu to edit, resolve or delete. With no comment it is a draft, a field that
|
|
34
|
+
* writes nothing until it is posted.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* The same card is listed in the comments task pane and floats beside a cell. Editing an entry's
|
|
38
|
+
* text drops its mentions, as `IComment.setContent` says.
|
|
39
|
+
*/
|
|
40
|
+
export declare const CommentCard: React.MemoExoticComponent<(props: CommentCardProps) => React.JSX.Element>;
|
|
41
|
+
//# sourceMappingURL=CommentCard.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWorkbook } from '@sheetxl/sdk';
|
|
3
|
+
import { CommentsPaneArgs, TaskPaneProps } from '@sheetxl/react';
|
|
4
|
+
/** Which threads the pane lists. */
|
|
5
|
+
export type CommentsFilter = 'all' | 'open' | 'resolved';
|
|
6
|
+
/** Persistence key for the filter the pane was last left on. */
|
|
7
|
+
export declare const COMMENTS_FILTER_KEY = "comments.filter";
|
|
8
|
+
export interface CommentsTaskPaneProps extends TaskPaneProps<IWorkbook, CommentsPaneArgs> {
|
|
9
|
+
/** The filter the pane opens with when none has been chosen before. @defaultValue `'all'` */
|
|
10
|
+
defaultFilter?: CommentsFilter;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* **Comments** — every threaded comment on the active sheet, in cell order, each as a
|
|
14
|
+
* {@link CommentCard}.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Clicking a card selects its cell, and selecting a cell scrolls to its card and marks it. A new
|
|
18
|
+
* comment is a draft card on the selected cell that writes nothing until it is posted. Notes are
|
|
19
|
+
* not listed: a note is edited in its box on the sheet.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CommentsTaskPane: React.MemoExoticComponent<(props: CommentsTaskPaneProps) => React.JSX.Element | null>;
|
|
22
|
+
export default CommentsTaskPane;
|
|
23
|
+
//# sourceMappingURL=CommentsTaskPane.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ICellStyle } from '@sheetxl/sdk';
|
|
3
3
|
export interface ConditionalFormatStylePickerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
/**
|
|
5
5
|
* The rule's dxf. A differential format — only the properties the user touched are present.
|
|
@@ -8,11 +8,11 @@ export interface ConditionalFormatStylePickerProps extends React.HTMLAttributes<
|
|
|
8
8
|
* Named `format` (not `style`) because this interface extends the DOM attributes, where `style`
|
|
9
9
|
* is already the CSS prop.
|
|
10
10
|
*/
|
|
11
|
-
format:
|
|
11
|
+
format: ICellStyle.Properties | null;
|
|
12
12
|
/**
|
|
13
13
|
* Called with the replacement dxf; `null` clears every override.
|
|
14
14
|
*/
|
|
15
|
-
onFormatChange: (format:
|
|
15
|
+
onFormatChange: (format: ICellStyle.Properties | null) => void;
|
|
16
16
|
readOnly?: boolean;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
@@ -24,7 +24,7 @@ export interface ConditionalFormatStylePickerProps extends React.HTMLAttributes<
|
|
|
24
24
|
* offer, not a separate verb — and as a toolbar `✕` it read as *close*.
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
|
-
* Reads and writes {@link
|
|
27
|
+
* Reads and writes {@link ICellStyle.Properties} directly. Border is in the model but not in this
|
|
28
28
|
* toolbar (beyond the red-border preset); a full border editor belongs to the format dialog.
|
|
29
29
|
*
|
|
30
30
|
* There is no `AaBbCc` swatch here: the panel header and every rule card already paint the rule,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ICellStyle } from '@sheetxl/sdk';
|
|
3
3
|
import { ConditionalIconSpec } from '@sheetxl/react';
|
|
4
4
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
5
5
|
/** Where a band's icon comes from: a set and an index into it. */
|
|
6
6
|
export type IconAddress = {
|
|
7
|
-
set:
|
|
7
|
+
set: ICellStyle.IconSet;
|
|
8
8
|
id: number;
|
|
9
9
|
};
|
|
10
10
|
export interface IconPickerPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'createPopupPanel'> {
|
|
@@ -11,7 +11,7 @@ export interface IconSetRulePanelProps extends React.HTMLAttributes<HTMLDivEleme
|
|
|
11
11
|
* none) and its threshold.
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* The gallery offers exactly the sets `
|
|
14
|
+
* The gallery offers exactly the sets `ICellStyle.IconSet` names, so a rule authored here always
|
|
15
15
|
* round-trips — including the three Excel 2010 sets that can only be written into the x14
|
|
16
16
|
* extension. A set name adopted from a file that is none of them is shown by name and left as it
|
|
17
17
|
* is; picking any preset replaces it.
|
|
@@ -9,6 +9,11 @@ export interface BetweenProps extends BoxProps {
|
|
|
9
9
|
* The callback function to handle changes in the between option.
|
|
10
10
|
*/
|
|
11
11
|
onOptionChange: (option: ICondition.BetweenOption) => void;
|
|
12
|
+
/**
|
|
13
|
+
* The selector the bounds are compared under. A date or time selector has its bounds typed and
|
|
14
|
+
* shown as dates or times.
|
|
15
|
+
*/
|
|
16
|
+
selector?: ICondition.ISelector | null;
|
|
12
17
|
/**
|
|
13
18
|
* If true, makes the editor read-only.
|
|
14
19
|
*/
|
|
@@ -18,7 +23,7 @@ export interface BetweenProps extends BoxProps {
|
|
|
18
23
|
* Component for editing between option (between two values).
|
|
19
24
|
*
|
|
20
25
|
* @remarks
|
|
21
|
-
* Each bound is a literal or a
|
|
26
|
+
* Each bound is a literal or a formula, independently — Excel's own between boxes —
|
|
22
27
|
* so both sides take the literal-or-formula field ({@link ScalarOption}).
|
|
23
28
|
*/
|
|
24
29
|
export declare const BetweenOption: import('react').NamedExoticComponent<BetweenProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ICondition } from '@sheetxl/sdk';
|
|
3
3
|
import { CombinatorInput } from './ConditionUtils';
|
|
4
|
+
import { MembershipItemsProvider, MembershipOptionProps } from './MembershipOption';
|
|
4
5
|
export interface CombinatorOptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
6
|
/**
|
|
6
7
|
* The combinator operator (and / or / not).
|
|
@@ -23,6 +24,12 @@ export interface CombinatorOptionProps extends React.HTMLAttributes<HTMLDivEleme
|
|
|
23
24
|
* The selector (passed down to children).
|
|
24
25
|
*/
|
|
25
26
|
selector: ICondition.ISelector | null;
|
|
27
|
+
/** The items provider for an `InSet` checklist, passed down to children. */
|
|
28
|
+
getItems?: MembershipItemsProvider;
|
|
29
|
+
/** Passed down to an `InSet` checklist. */
|
|
30
|
+
propsChecklist?: MembershipOptionProps['propsChecklist'];
|
|
31
|
+
/** The root condition's Ignore Blank, passed down to an `InSet` checklist. */
|
|
32
|
+
ignoreBlank?: boolean;
|
|
26
33
|
/**
|
|
27
34
|
* If true, makes the editor read-only.
|
|
28
35
|
*/
|