@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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWorkbook, INamed } from '@sheetxl/sdk';
|
|
3
|
+
/**
|
|
4
|
+
* What a name IS, as far as its glyph is concerned.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* `'range'` and `'formula'` are the same model — a named formula whose expression is a pure
|
|
8
|
+
* reference (`INamedFormula.getRanges` answers) against one whose expression is anything else. A
|
|
9
|
+
* `'table'` is a derived name a table owns; see `isEditableNamed`.
|
|
10
|
+
*/
|
|
11
|
+
export type NamedKind = 'table' | 'range' | 'formula';
|
|
12
|
+
/**
|
|
13
|
+
* The {@link NamedKind} of an existing name.
|
|
14
|
+
*/
|
|
15
|
+
export declare const namedKindOf: (item: INamed) => NamedKind;
|
|
16
|
+
/**
|
|
17
|
+
* The {@link NamedKind} an expression being AUTHORED would define — for the editor, where there is
|
|
18
|
+
* no item to ask yet.
|
|
19
|
+
*/
|
|
20
|
+
export declare const namedKindOfExpression: (workbook: IWorkbook, expression: string) => NamedKind;
|
|
21
|
+
export interface NamedKindChipProps extends React.HTMLAttributes<HTMLElement> {
|
|
22
|
+
kind: NamedKind;
|
|
23
|
+
/**
|
|
24
|
+
* Chip height in px.
|
|
25
|
+
* @defaultValue 28
|
|
26
|
+
*/
|
|
27
|
+
size?: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The glyph that leads a name's card and its editor: a table, a range, or a formula.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Drawn in the same chip, at the same footprint, as a conditional format's preview — the two
|
|
34
|
+
* panes sit in the same task pane, and a reader moving between them should find the leading
|
|
35
|
+
* visual in the same place at the same size.
|
|
36
|
+
*/
|
|
37
|
+
export declare const NamedKindChip: React.NamedExoticComponent<NamedKindChipProps>;
|
|
38
|
+
//# sourceMappingURL=NamedKindChip.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IWorkbook, IProtectedRange } from '@sheetxl/sdk';
|
|
3
|
+
import { ItemsPaneArgs } from '@sheetxl/react';
|
|
3
4
|
import { AnchorItemsDescriptor } from '../anchorItems';
|
|
4
5
|
/**
|
|
5
6
|
* Binds protected ranges to the generic {@link AnchorItemsPanel}.
|
|
@@ -11,6 +12,11 @@ import { AnchorItemsDescriptor } from '../anchorItems';
|
|
|
11
12
|
export declare const ProtectedRangeItemsDescriptor: AnchorItemsDescriptor<IProtectedRange>;
|
|
12
13
|
export interface ProtectedRangeDetailsPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
13
14
|
workbook: IWorkbook;
|
|
15
|
+
/**
|
|
16
|
+
* The task pane's activation argument. `insert: true` opens the pane on a new range anchored to
|
|
17
|
+
* the selection, rather than on the list — what "Unlock Range…" asks for.
|
|
18
|
+
*/
|
|
19
|
+
args?: ItemsPaneArgs;
|
|
14
20
|
}
|
|
15
21
|
/**
|
|
16
22
|
* The protected-ranges task pane: the generic anchored-items list driven by
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IProtectedRange } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* Plain-text passwords staged for the temporary item being edited.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* `IProtectedRange.setPassword` hashes, so it is async and cannot run from the editor without
|
|
7
|
+
* racing the Save button. The editor parks the plain text here and the descriptor's `beforeSave`
|
|
8
|
+
* awaits the hash — so the plain text lives only as long as the editor is open and never reaches
|
|
9
|
+
* the model, its JSON, or the file.
|
|
10
|
+
*
|
|
11
|
+
* Absent means "unchanged"; `null` means "remove it".
|
|
12
|
+
*/
|
|
13
|
+
export declare const stagedPasswords: WeakMap<IProtectedRange, string | null>;
|
|
14
|
+
/**
|
|
15
|
+
* Applies any staged password to `item`. Called from the descriptor's `beforeSave`.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Nothing to validate: the password is typed and confirmed in `PasswordDialog`, which only reports
|
|
19
|
+
* one it has already checked against its confirm field.
|
|
20
|
+
*/
|
|
21
|
+
export declare const flushStagedPassword: (item: IProtectedRange) => Promise<void>;
|
|
22
|
+
//# sourceMappingURL=ProtectedRangeDraft.d.ts.map
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IProtectedRange } from '@sheetxl/sdk';
|
|
3
|
-
/**
|
|
4
|
-
* Plain-text passwords staged for the temporary item being edited.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
* `IProtectedRange.setPassword` hashes, so it is async and cannot run from a field's `onChange`
|
|
8
|
-
* without racing the Save button. The editor parks the plain text here and the descriptor's
|
|
9
|
-
* `beforeSave` awaits the hash — so the plain text lives only as long as the editor is open and
|
|
10
|
-
* never reaches the model, its JSON, or the file.
|
|
11
|
-
*
|
|
12
|
-
* `undefined` (absent) means "unchanged"; `null` means "clear it".
|
|
13
|
-
*/
|
|
14
|
-
export declare const stagedPasswords: WeakMap<IProtectedRange, string | null>;
|
|
15
|
-
/** Applies any staged password to `item`. Called from the descriptor's `beforeSave`. */
|
|
16
|
-
export declare const flushStagedPassword: (item: IProtectedRange) => Promise<void>;
|
|
17
3
|
export interface ProtectedRangeEditorPanelProps {
|
|
18
4
|
/**
|
|
19
5
|
* The protected range to edit.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWorkbook } from '@sheetxl/sdk';
|
|
3
|
+
import { TaskPaneProps, ProtectionPaneArgs } from '@sheetxl/react';
|
|
4
|
+
export interface ManageProtectionTaskPaneProps extends TaskPaneProps<IWorkbook, ProtectionPaneArgs> {
|
|
5
|
+
/** The tab shown when the pane opens with no `args`. @defaultValue `'sheet'` */
|
|
6
|
+
defaultTab?: ProtectionPaneArgs.Tab;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* **Manage Protection** — sheet protection, the selected cells' protection, the ranges that stay
|
|
10
|
+
* editable, and workbook protection, as four tabs of one pane.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Tabs rather than Excel online's collapsible sections: the Ranges list is a full-height
|
|
14
|
+
* items panel with its own scroll, and stacking it under fifteen checkboxes would put two scrolling
|
|
15
|
+
* regions in one column.
|
|
16
|
+
*
|
|
17
|
+
* The tab is an ACTIVATION argument, not pane state, so the three entry points that used to open
|
|
18
|
+
* three separate surfaces each land where they mean to — and re-activating without one leaves the
|
|
19
|
+
* pane where the user left it (the area delivers `args` per activation, so an arriving value is an
|
|
20
|
+
* event; see {@link TaskPaneProps.args}).
|
|
21
|
+
*/
|
|
22
|
+
export declare const ManageProtectionTaskPane: React.MemoExoticComponent<(props: ManageProtectionTaskPaneProps) => React.JSX.Element | null>;
|
|
23
|
+
/**
|
|
24
|
+
* Back-compat host for the retired `protectedRangeDetails` pane key — the same pane, opened on
|
|
25
|
+
* Ranges.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ProtectedRangeDetailsTaskPane: (props: TaskPaneProps<IWorkbook, ProtectionPaneArgs>) => React.JSX.Element;
|
|
28
|
+
export default ManageProtectionTaskPane;
|
|
29
|
+
//# sourceMappingURL=ManageProtectionTaskPane.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OptionsDialogProps } from '@sheetxl/utils-mui';
|
|
3
|
+
export interface PasswordDialogProps extends Omit<OptionsDialogProps, 'onOption' | 'children'> {
|
|
4
|
+
/** One line above the fields saying what this password will protect. */
|
|
5
|
+
description?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Ask for the password already in force, above the new one.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* For a *change*: the model verifies the current password before it will write a new hash, so
|
|
11
|
+
* asking here keeps the whole edit in one dialog rather than a prompt followed by a dialog.
|
|
12
|
+
*/
|
|
13
|
+
requireCurrent?: boolean;
|
|
14
|
+
/** Called with the new password when the user confirms; not called on cancel. */
|
|
15
|
+
onApply(password: string, current?: string): void | Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Sets one password — for a sheet, an unlocked range, workbook structure, or encryption.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* The **one** place a password is typed. It replaced a pair of inline fields on every panel that
|
|
22
|
+
* could hold a password, which had to show a sentinel (`••••••••`) standing in for a hash nobody can
|
|
23
|
+
* read back, and left every panel explaining the difference between "unchanged", "cleared" and
|
|
24
|
+
* "new". A panel now shows only whether a password is set, and this dialog is the whole edit.
|
|
25
|
+
*
|
|
26
|
+
* The confirm field is what makes it a dialog rather than a single prompt: a password that cannot be
|
|
27
|
+
* read back and cannot be recovered has to be typed twice, and Excel desktop confirms it in a second
|
|
28
|
+
* dialog for the same reason.
|
|
29
|
+
*/
|
|
30
|
+
export declare const PasswordDialog: React.FC<PasswordDialogProps>;
|
|
31
|
+
export default PasswordDialog;
|
|
32
|
+
//# sourceMappingURL=PasswordDialog.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface PasswordFieldProps {
|
|
3
|
+
/** Whether a password is in force (or staged to be). */
|
|
4
|
+
hasPassword: boolean;
|
|
5
|
+
/** Heading above the row. Omit for a row that sits under someone else's heading. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** One line inside the dialog saying what this password will protect. */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Shown in place of the "a password is set" line — e.g. "will be set when you protect". */
|
|
10
|
+
note?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Ask for the password already in force alongside the new one.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* True where the model verifies before it will write a new hash — a protected sheet, a protected
|
|
17
|
+
* workbook. False where the password is only staged and nothing has been committed yet.
|
|
18
|
+
*/
|
|
19
|
+
requireCurrent?: boolean;
|
|
20
|
+
onSet(password: string, current?: string): void | Promise<void>;
|
|
21
|
+
onClear(): void | Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The password **row**: whether one is set, and the two things you can do about it.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Deliberately not a text field. A password we hold as a hash cannot be read back, so an input
|
|
28
|
+
* showing it can only show a sentinel — and then every panel has to explain what an untouched
|
|
29
|
+
* sentinel, an emptied field and a typed value each mean. Set and Clear are the two acts; the
|
|
30
|
+
* typing happens in {@link PasswordDialog}, which is shared by the sheet, unlocked ranges, workbook
|
|
31
|
+
* structure and encryption.
|
|
32
|
+
*/
|
|
33
|
+
export declare const PasswordField: React.NamedExoticComponent<PasswordFieldProps>;
|
|
34
|
+
export default PasswordField;
|
|
35
|
+
//# sourceMappingURL=PasswordField.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
|
+
export interface ProtectedCellsPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** The sheet whose selected cells are edited. */
|
|
5
|
+
sheet: IWorksheet;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The **Cells** tab of Manage Protection: the protection format of the selected cells.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* Two checkboxes over `ICellStyle.getProtection()` — **Always unlocked** and **Show formulas** — that act
|
|
12
|
+
* on the selection the way a format control does: a mixed selection reads indeterminate, and a click
|
|
13
|
+
* writes every selected cell. Like everything in the pane, a control commits when it is used.
|
|
14
|
+
*
|
|
15
|
+
* Disabled while the sheet is locked, as Excel greys out its Protection tab: which cells are unlocked
|
|
16
|
+
* is exactly what protection keeps from changing. A pause lifts that like any other protection.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ProtectedCellsPanel: React.NamedExoticComponent<ProtectedCellsPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export default ProtectedCellsPanel;
|
|
20
|
+
//# sourceMappingURL=ProtectedCellsPanel.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registers the **Manage Protection** pane.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* Replaces `ProtectedRangePlugin`. The retired `protectedRangeDetails` key stays registered as an
|
|
6
|
+
* alias so a host that activates it by name still lands somewhere sensible — the same pane, opened
|
|
7
|
+
* on Ranges. Nothing in the product references it any more; `manageProtectedRange` (the
|
|
8
|
+
* Data ribbon and the context menu) opens `manageProtection` with the tab as its argument.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ProtectionPlugin: () => void;
|
|
11
|
+
//# sourceMappingURL=ProtectionPlugin.d.ts.map
|
|
@@ -1,28 +1,42 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export declare namespace WorkbookProtectionPanel {
|
|
3
3
|
/**
|
|
4
|
-
* What the panel
|
|
4
|
+
* What the panel renders.
|
|
5
5
|
*
|
|
6
6
|
* @remarks
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* a
|
|
7
|
+
* Booleans only — the panel never holds a password. Encryption's lives on the io handle and
|
|
8
|
+
* structure's was only ever a hash, and neither can be read back, so "is there one" is the whole
|
|
9
|
+
* of what a UI can honestly show. Typing happens in {@link PasswordDialog}.
|
|
10
10
|
*/
|
|
11
11
|
interface Value {
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
encryptPassword: string | null;
|
|
12
|
+
/** The file is encrypted: its contents cannot be read without the password. */
|
|
13
|
+
hasEncryptPassword: boolean;
|
|
15
14
|
/** Lock the workbook's structure — a gate the UI honours; it does not hide the data. */
|
|
16
15
|
structure: boolean;
|
|
17
|
-
|
|
16
|
+
hasStructurePassword: boolean;
|
|
18
17
|
lockStructure: boolean;
|
|
19
18
|
lockWindows: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the structure locks can be edited.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* `false` on a protected workbook: the model refuses option changes until it is unprotected,
|
|
24
|
+
* which is Excel's answer too.
|
|
25
|
+
*/
|
|
26
|
+
locksEditable: boolean;
|
|
20
27
|
}
|
|
21
28
|
interface Props {
|
|
22
29
|
value: Value;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
/** Every callback commits — there is no Apply. */
|
|
31
|
+
onEncryptPassword(password: string, current?: string): void;
|
|
32
|
+
onEncryptPasswordClear(): void;
|
|
33
|
+
onStructureChange(enabled: boolean): void;
|
|
34
|
+
onStructurePassword(password: string, current?: string): void;
|
|
35
|
+
onStructurePasswordClear(): void;
|
|
36
|
+
onLocksChange(locks: {
|
|
37
|
+
lockStructure: boolean;
|
|
38
|
+
lockWindows: boolean;
|
|
39
|
+
}): void;
|
|
26
40
|
sx?: any;
|
|
27
41
|
}
|
|
28
42
|
}
|
|
@@ -30,8 +44,8 @@ export declare namespace WorkbookProtectionPanel {
|
|
|
30
44
|
* Edits a workbook's two, genuinely different, protections in one place.
|
|
31
45
|
*
|
|
32
46
|
* @remarks
|
|
33
|
-
* Presentational
|
|
34
|
-
*
|
|
47
|
+
* Presentational — no model or IO access — so the layout stays testable on its own and the tab
|
|
48
|
+
* around it owns every write.
|
|
35
49
|
*
|
|
36
50
|
* The two halves are grouped together because a user thinking "protect this workbook" means either,
|
|
37
51
|
* and split visibly because they are not the same thing at all:
|
|
@@ -43,8 +57,13 @@ export declare namespace WorkbookProtectionPanel {
|
|
|
43
57
|
* which puts them in unrelated parts of its UI and reliably misleads people into thinking
|
|
44
58
|
* "Protect Workbook" encrypts. Grouping by intent and labelling by effect is the fix.
|
|
45
59
|
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
60
|
+
* Encryption has no switch of its own: it IS its password, so setting one encrypts and clearing it
|
|
61
|
+
* decrypts. Structure keeps its switch because it can be protected without a password.
|
|
62
|
+
*
|
|
63
|
+
* Nothing here has an Apply button, for the same reason the Sheet tab does not: every control is
|
|
64
|
+
* one unambiguous act, and a pane is not a dialog. Encryption still only reaches the FILE on the
|
|
65
|
+
* next save — but the intent is recorded the moment it is given, and an Apply button never changed
|
|
66
|
+
* that.
|
|
48
67
|
*/
|
|
49
68
|
export declare const WorkbookProtectionPanel: React.NamedExoticComponent<WorkbookProtectionPanel.Props & React.RefAttributes<HTMLDivElement>>;
|
|
50
69
|
export default WorkbookProtectionPanel;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWorkbook } from '@sheetxl/sdk';
|
|
3
|
+
export interface WorkbookProtectionTabProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** The workbook whose protection is edited. */
|
|
5
|
+
workbook: IWorkbook;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The **Workbook** tab of Manage Protection — {@link WorkbookProtectionPanel} bound to the model.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* No Apply button, for the same reason the Sheet tab has none: every control is one unambiguous act,
|
|
12
|
+
* and a pane is not a dialog. Encryption still only reaches the FILE on the next save — but that is
|
|
13
|
+
* about when bytes are written, not about when the intent is recorded, and `origin.setPassword` has
|
|
14
|
+
* always recorded it the moment it is given. An Apply button in front of that only added a step.
|
|
15
|
+
*
|
|
16
|
+
* The two halves commit through different objects: structure is a model change
|
|
17
|
+
* (`IWorkbookProtection`, effective at once), encryption is a property of the io handle. See
|
|
18
|
+
* `PROTECTION-DESIGN.md` §5g.
|
|
19
|
+
*/
|
|
20
|
+
export declare const WorkbookProtectionTab: React.NamedExoticComponent<WorkbookProtectionTabProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export default WorkbookProtectionTab;
|
|
22
|
+
//# sourceMappingURL=WorkbookProtectionTab.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
|
+
export interface WorksheetProtectionPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** The sheet whose protection is edited. */
|
|
5
|
+
sheet: IWorksheet;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The **Sheet** tab of Manage Protection: protect / pause / highlight, the password, and the
|
|
9
|
+
* options.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* **Nothing here has an Apply button.** Excel has none either — its dialog has OK, which this pane
|
|
13
|
+
* is not. Every control commits the moment it is used:
|
|
14
|
+
* - the two switches and the pause button act immediately;
|
|
15
|
+
* - the password is a dialog; confirming it stages the password for the Protect switch, since an
|
|
16
|
+
* unprotected sheet keeps no hash ({@link PasswordField});
|
|
17
|
+
* - an option checkbox writes through `setProperties` — the unprotected sheet keeps its options (and
|
|
18
|
+
* saves them) for the next `lock()`.
|
|
19
|
+
*
|
|
20
|
+
* While the sheet is locked, neither the password nor the options can change: the model refuses, and
|
|
21
|
+
* both are disabled with the instruction Excel gives — unprotect first. A pause is a temporary
|
|
22
|
+
* unprotect that already asked for the password, so the options open up again; the password stays
|
|
23
|
+
* disabled, since only `lock()` writes a hash.
|
|
24
|
+
*
|
|
25
|
+
* The options are collapsed by default; expanded they take the rest of the pane and scroll inside
|
|
26
|
+
* themselves. Fifteen checkboxes are a rare edit, and letting them push the toggles off the top made
|
|
27
|
+
* the common ones the hard ones.
|
|
28
|
+
*
|
|
29
|
+
* Three states for the sheet, not two. `isLocked()` reads false while paused — correct for
|
|
30
|
+
* enforcement, wrong for chrome — so this reads `isPaused()` separately: the Protect switch stays
|
|
31
|
+
* on and a banner says why nothing is being enforced.
|
|
32
|
+
*/
|
|
33
|
+
export declare const WorksheetProtectionPanel: React.NamedExoticComponent<WorksheetProtectionPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
export default WorksheetProtectionPanel;
|
|
35
|
+
//# sourceMappingURL=WorksheetProtectionPanel.d.ts.map
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export * from './PasswordDialog';
|
|
2
|
+
export * from './PasswordField';
|
|
1
3
|
export * from './WorkbookProtectionPanel';
|
|
2
|
-
export * from './
|
|
4
|
+
export * from './WorksheetProtectionPanel';
|
|
5
|
+
export * from './ProtectedCellsPanel';
|
|
6
|
+
export * from './WorkbookProtectionTab';
|
|
7
|
+
export * from './ManageProtectionTaskPane';
|
|
8
|
+
export * from './ProtectionPlugin';
|
|
3
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CommandPopupButtonProps } from '@sheetxl/utils-mui';
|
|
2
|
+
export interface InsertShapeCommandButtonProps extends CommandPopupButtonProps {
|
|
3
|
+
/**
|
|
4
|
+
* The command a pick runs, with the entry's JSON. Its label, description and enablement are the
|
|
5
|
+
* button's.
|
|
6
|
+
* @defaultValue `'insertShape'`
|
|
7
|
+
*/
|
|
8
|
+
commandKey?: string;
|
|
9
|
+
/** Gallery sections to leave out, by key: Change Shape has no `lines`. */
|
|
10
|
+
excludeCategories?: readonly string[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Insert > Shapes: a popup gallery of the preset shapes by section, as Excel lays it out. Picking
|
|
14
|
+
* one runs `insertShape` with what the entry states. Entries picked here are remembered by key,
|
|
15
|
+
* most recent first, in a Recently Used Shapes section shown above the gallery once there are any.
|
|
16
|
+
*
|
|
17
|
+
* The same gallery runs another command with `commandKey`, as the Shape tab's Change Shape does.
|
|
18
|
+
*/
|
|
19
|
+
export declare const InsertShapeCommandButton: import('react').NamedExoticComponent<Omit<InsertShapeCommandButtonProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
20
|
+
//# sourceMappingURL=InsertShapeCommandButton.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MovablePaneProps } from '@sheetxl/react';
|
|
3
|
+
/**
|
|
4
|
+
* The body of the format pane for a shape: Excel's Fill & Line, applying live to the shape.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* The Fill controls are the Format Cells pane's, bound to the shape's style instead of the
|
|
8
|
+
* selection's cells (see {@link FillSelection}); the Line controls are the shape's own.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ShapeFormatPanel: React.MemoExoticComponent<(props: MovablePaneProps) => React.JSX.Element>;
|
|
11
|
+
//# sourceMappingURL=ShapeFormatPanel.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CommandPopupButtonProps } from '@sheetxl/utils-mui';
|
|
3
|
+
export interface PresetSlicerStylesCommandButtonProps extends CommandPopupButtonProps {
|
|
4
|
+
/** The command a style is applied with; it takes the style's name. */
|
|
5
|
+
commandKey: string;
|
|
6
|
+
/**
|
|
7
|
+
* A command the button runs when pressed, with no style: the gallery is then a dropdown beside it.
|
|
8
|
+
* The style outlined is the workbook's default, the one a press inserts. As the Insert Slicer
|
|
9
|
+
* button uses it.
|
|
10
|
+
*/
|
|
11
|
+
quickCommandKey?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The slicer-style gallery: every slicer style drawn as a small slicer, grouped Custom, Light, Other
|
|
15
|
+
* and Dark, the slicer's own style outlined. Picking one applies it to the active slicer.
|
|
16
|
+
*/
|
|
17
|
+
export declare const PresetSlicerStylesCommandButton: React.NamedExoticComponent<Omit<PresetSlicerStylesCommandButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
18
|
+
//# sourceMappingURL=PresetSlicerStylesCommandButton.d.ts.map
|
|
@@ -6,6 +6,12 @@ export interface SheetZoomScaleProps extends BoxProps {
|
|
|
6
6
|
* @defaultValue 220
|
|
7
7
|
*/
|
|
8
8
|
debounceDelay?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Show the −/slider/+ trio beside the zoom percent. When omitted it hides itself on small screens
|
|
11
|
+
* (below the `sm` breakpoint): a phone has pinch and the percent's menu, and the slider is a worse
|
|
12
|
+
* version of the gesture that eats status-bar width.
|
|
13
|
+
*/
|
|
14
|
+
showSlider?: boolean;
|
|
9
15
|
}
|
|
10
16
|
export declare const SheetZoomScale: React.NamedExoticComponent<Omit<SheetZoomScaleProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
11
17
|
//# sourceMappingURL=SheetZoomScale.d.ts.map
|
|
@@ -3,6 +3,7 @@ import { IWorkbook } from '@sheetxl/sdk';
|
|
|
3
3
|
import { Command } from '@sheetxl/utils-react';
|
|
4
4
|
import { WorkbookElementProps } from '@sheetxl/react';
|
|
5
5
|
import { IDocumentTitleElement } from '../workbook';
|
|
6
|
+
import { StudioIODeps } from './StudioCommands';
|
|
6
7
|
import { StudioProps } from './StudioProps';
|
|
7
8
|
export interface CommandsWrapperProps extends Omit<StudioProps, 'workbook'> {
|
|
8
9
|
/**
|
|
@@ -27,6 +28,10 @@ export interface CommandsWrapperProps extends Omit<StudioProps, 'workbook'> {
|
|
|
27
28
|
refDocumentTitle: React.RefObject<IDocumentTitleElement | null>;
|
|
28
29
|
/** Live unsaved-changes probe (read at click time); drives close/open confirm. */
|
|
29
30
|
isDirty: () => boolean;
|
|
31
|
+
/** Receives the studio's Save, for `IStudioAttributes.save`. */
|
|
32
|
+
refSave?: StudioIODeps['refSave'];
|
|
33
|
+
/** The studio root element; the target of the fullscreen toggle. */
|
|
34
|
+
host?: HTMLElement | null;
|
|
30
35
|
}
|
|
31
36
|
/**
|
|
32
37
|
* Because snackbar is configured using a context provider we have to create
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { StudioProps, IStudioElement } from './StudioProps';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The studio's content, rendered into a root element owned by {@link Studio}.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* The root must exist before this (lazily loaded) module does, so the startup loading panel can live
|
|
8
|
+
* inside it and consumer `className` / `style` / `sx` apply to a single element from the first render.
|
|
9
|
+
*/
|
|
10
|
+
export interface EagerStudioProps extends StudioProps {
|
|
11
|
+
/** The root element rendered by {@link Studio}; decorated with the {@link IStudioAttributes}. */
|
|
12
|
+
host: HTMLDivElement | null;
|
|
13
|
+
/** The per-instance theme scope class carried by {@link EagerStudioProps.host}. */
|
|
14
|
+
scopeClass: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const EagerStudio: React.NamedExoticComponent<EagerStudioProps & React.RefAttributes<IStudioElement>>;
|
|
4
17
|
export default EagerStudio;
|
|
5
18
|
//# sourceMappingURL=EagerStudio.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { IWorkbook } from '@sheetxl/sdk';
|
|
3
3
|
import { WorkbookInput } from '@sheetxl/react';
|
|
4
|
+
import { StudioIODeps } from './StudioCommands';
|
|
4
5
|
/** Studio app-shell state the bridge threads into the file-I/O commands (from `CommandsWrapper`). */
|
|
5
6
|
export interface StudioCommandProviderProps {
|
|
6
7
|
children: ReactNode;
|
|
@@ -12,6 +13,15 @@ export interface StudioCommandProviderProps {
|
|
|
12
13
|
workbookTitle?: string | null;
|
|
13
14
|
/** Live unsaved-changes probe (read at click time) — drives close/open confirm. */
|
|
14
15
|
isDirty?: () => boolean;
|
|
16
|
+
/** Receives the studio's Save, for {@link IStudioAttributes.save}. */
|
|
17
|
+
refSave?: StudioIODeps['refSave'];
|
|
18
|
+
/**
|
|
19
|
+
* The element the fullscreen toggle makes fullscreen — the studio root, so the studio fills the screen
|
|
20
|
+
* rather than the host page.
|
|
21
|
+
*
|
|
22
|
+
* @defaultValue `document.documentElement`
|
|
23
|
+
*/
|
|
24
|
+
fullscreenTarget?: HTMLElement | null;
|
|
15
25
|
}
|
|
16
26
|
/**
|
|
17
27
|
* **Studio command bridge** — the studio slice. Registers the studio catalog + contributes help /
|