@sheetxl/studio-mui 0.7.26 → 0.7.28-beta.1
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/README.md +2 -2
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +20 -0
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +1 -0
- package/browser/cjs/B_D3JKseVvpRyX-E.cjs +1 -0
- package/browser/cjs/B_WyRpeiesnEiNP4.cjs +11 -0
- package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +2 -0
- package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +2 -0
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
- package/browser/cjs/ByIEqNsvj52sihT9.cjs +5 -0
- package/browser/cjs/C3moehR3VOd0LnmM.cjs +1 -0
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +1 -0
- package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +1 -0
- package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +1 -0
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +1 -0
- package/browser/cjs/CZm1jVZaHQ246prW.cjs +1 -0
- package/browser/cjs/CdDYyAfccXme8w6m.cjs +1 -0
- package/browser/cjs/DBJLJGiCGXesx5n6.cjs +1 -0
- package/browser/cjs/DLScL5AOXhHu9O9H.cjs +7 -0
- package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +1 -0
- package/browser/cjs/IASAYG6qgv7lJY7y.cjs +1 -0
- package/browser/cjs/KZvriGbhEOVkQD0b.cjs +1 -0
- package/browser/cjs/UnMhi28mbvLiOXQe.cjs +1 -0
- package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +1 -0
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +1 -0
- package/browser/cjs/index.cjs +2 -7
- package/browser/cjs/w2GjebPlOFv3pCbm.cjs +1 -0
- package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +1 -0
- package/browser/esm/0EONOhVZ7oT0C_G2.mjs +1150 -0
- package/browser/esm/5x7evORpymnb5SfW.mjs +129 -0
- package/browser/esm/BACBR1jjcpJbhOWA.mjs +191 -0
- package/browser/esm/BPZne8WpzrkWOH6L.mjs +47 -0
- package/browser/esm/BeKa8xVj69hAVKRN.mjs +155 -0
- package/browser/esm/BeQ9bqOvNNP-arFP.mjs +219 -0
- package/browser/esm/Bf3PIOM6U-NmWk2O.mjs +20 -0
- package/browser/esm/C4BPDYeqgN59wMGp.mjs +411 -0
- package/browser/esm/CGbn_xdhgTvk2mvb.mjs +612 -0
- package/browser/esm/CKADOp3hTx0MSNY7.mjs +52 -0
- package/browser/esm/CR2sUEZyRqVv2SNl.mjs +105 -0
- package/browser/esm/CTN8J8c1AneJu3Lu.mjs +2207 -0
- package/browser/esm/Cc5akPEmIwbgKIfc.mjs +516 -0
- package/browser/esm/CePKCTL6D05kDy2E.mjs +82 -0
- package/browser/esm/DBM1blcMTZMAM-eR.mjs +217 -0
- package/browser/esm/DPBnKqhSuJ414Pxx.mjs +99 -0
- package/browser/esm/F51tGfYHocox80zY.mjs +468 -0
- package/browser/esm/SDzKpaiuhQux7tAh.mjs +5391 -0
- package/browser/esm/TDH9XceS8cAkO5d3.mjs +508 -0
- package/browser/esm/XKVlG-x_9q5dbVIW.mjs +8878 -0
- package/browser/esm/fJiwyUQJ18X-cCQz.mjs +1376 -0
- package/browser/esm/fel6EbPAcZOsBmks.mjs +42 -0
- package/browser/esm/flvjZEXrSDrtDzLB.mjs +113 -0
- package/browser/esm/index.mjs +152 -91
- package/licenses/dependencies.txt +137 -627
- package/node/esm/B9-0usA1hSoD0Nk3.mjs +679 -0
- package/node/esm/BO1vNzjGWYdZdbq9.mjs +113 -0
- package/node/esm/BYigefA8bf9FOVib.mjs +47 -0
- package/node/esm/BdrLZp98HQaVMykZ.mjs +82 -0
- package/node/esm/BlubX7gm8wTUNiZ-.mjs +106 -0
- package/node/esm/C8a6QwMGW1tMiWA6.mjs +516 -0
- package/node/esm/CCCnorMn30oUDDIY.mjs +4536 -0
- package/node/esm/CKpik3HRSANKEy4G.mjs +99 -0
- package/node/esm/CTZcfST8pUcLMail.mjs +509 -0
- package/node/esm/D1K9Ji7iQwnOnd1-.mjs +190 -0
- package/node/esm/DuUiuB59bQRPQi-D.mjs +155 -0
- package/node/esm/eKP73GEWmonTXpfv.mjs +470 -0
- package/node/esm/g3y8kxL1Ln214UNr.mjs +129 -0
- package/node/esm/index.mjs +10603 -2832
- package/package.json +27 -27
- package/resources/contents.json +30 -0
- package/resources/locales/contents.json +44 -0
- package/resources/locales/de/groups.cmd.json +219 -0
- package/resources/locales/de/studio.cmd.json +159 -0
- package/resources/locales/de/ui.msg.json +507 -0
- package/resources/locales/en/groups.cmd.json +219 -0
- package/resources/locales/en/studio.cmd.json +159 -0
- package/resources/locales/en/ui.msg.json +508 -0
- package/types/index.d.ts +2 -1761
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +131 -0
- package/types/src/anchorItems/AnchorItemsPanel.d.ts +29 -0
- package/types/src/anchorItems/index.d.ts +3 -0
- package/types/src/border/BorderPopupButton.d.ts +30 -0
- package/types/src/border/BorderStylePopupButton.d.ts +40 -0
- package/types/src/border/index.d.ts +3 -0
- package/types/src/chart/command/InsertChartCommandButton.d.ts +10 -0
- package/types/src/chart/command/index.d.ts +2 -0
- package/types/src/color/Alpha.d.ts +36 -0
- package/types/src/color/Checkboard.d.ts +11 -0
- package/types/src/color/CheckboardUtils.d.ts +3 -0
- package/types/src/color/ColorButton.d.ts +21 -0
- package/types/src/color/ColorButtonList.d.ts +17 -0
- package/types/src/color/ColorPanel.d.ts +71 -0
- package/types/src/color/ColorPopupButton.d.ts +29 -0
- package/types/src/color/CustomColorPanel.d.ts +16 -0
- package/types/src/color/EditableInput.d.ts +22 -0
- package/types/src/color/Hue.d.ts +29 -0
- package/types/src/color/Saturation.d.ts +45 -0
- package/types/src/color/SketchFields.d.ts +9 -0
- package/types/src/color/Swatch.d.ts +16 -0
- package/types/src/color/Types.d.ts +11 -0
- package/types/src/color/_Utils.d.ts +4 -0
- package/types/src/color/index.d.ts +7 -0
- package/types/src/command/AccountingStyleCommandButton.d.ts +18 -0
- package/types/src/command/AppearanceCommandButton.d.ts +3 -0
- package/types/src/command/BorderCommandButton.d.ts +20 -0
- package/types/src/command/ColorCommandButton.d.ts +23 -0
- package/types/src/command/DocThemeCommandButton.d.ts +19 -0
- package/types/src/command/FileCommandButton.d.ts +8 -0
- package/types/src/command/FontFamilyCommandButton.d.ts +9 -0
- package/types/src/command/FontSizeCommandButton.d.ts +21 -0
- package/types/src/command/InsertFunctionCommandPopupButton.d.ts +9 -0
- package/types/src/command/InsertFunctionSumCommandPopupButton.d.ts +8 -0
- package/types/src/command/LanguageCommandButton.d.ts +19 -0
- package/types/src/command/LocaleCommandButton.d.ts +17 -0
- package/types/src/command/NumberFormatCommandButton.d.ts +6 -0
- package/types/src/command/PasteCommandButton.d.ts +14 -0
- package/types/src/command/PresetCellStylesCommandButton.d.ts +11 -0
- package/types/src/command/PresetTableStylesCommandButton.d.ts +12 -0
- package/types/src/command/RegisterCatalog.d.ts +3 -0
- package/types/src/command/SheetCommandGroups.d.ts +10 -0
- package/types/src/command/SheetZoomCommandButton.d.ts +9 -0
- package/types/src/command/StudioCommandGroups.d.ts +11 -0
- package/types/src/command/TextEffectsCommandButton.d.ts +6 -0
- package/types/src/command/TextRotateGroupButton.d.ts +14 -0
- package/types/src/command/UndoRedoCommandButton.d.ts +14 -0
- package/types/src/command/WalkingCopyCommandButton.d.ts +6 -0
- package/types/src/command/WorkbookCommandGroups.d.ts +11 -0
- package/types/src/command/index.d.ts +23 -0
- package/types/src/conditionalFormat/ColorScaleRulePanel.d.ts +18 -0
- package/types/src/conditionalFormat/ConditionalFormatDetailsPanel.d.ts +23 -0
- package/types/src/conditionalFormat/ConditionalFormatDetailsTaskPane.d.ts +4 -0
- package/types/src/conditionalFormat/ConditionalFormatEditorPanel.d.ts +20 -0
- package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +2 -0
- package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +32 -0
- package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +34 -0
- package/types/src/conditionalFormat/ConditionalFormatTitle.d.ts +10 -0
- package/types/src/conditionalFormat/DataBarRulePanel.d.ts +23 -0
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +23 -0
- package/types/src/conditionalFormat/PresetChip.d.ts +30 -0
- package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts +20 -0
- package/types/src/conditionalFormat/RulePreview.d.ts +23 -0
- package/types/src/conditionalFormat/RuleSection.d.ts +20 -0
- package/types/src/conditionalFormat/ScaleMiniGrid.d.ts +59 -0
- package/types/src/conditionalFormat/ScaleStopRow.d.ts +34 -0
- package/types/src/conditionalFormat/index.d.ts +3 -0
- package/types/src/conditionalFormat/previewColor.d.ts +50 -0
- package/types/src/conditions/AverageOption.d.ts +25 -0
- package/types/src/conditions/BetweenOption.d.ts +25 -0
- package/types/src/conditions/BooleanOption.d.ts +24 -0
- package/types/src/conditions/CombinatorOption.d.ts +41 -0
- package/types/src/conditions/ConditionEditor.d.ts +57 -0
- package/types/src/conditions/ConditionUtils.d.ts +83 -0
- package/types/src/conditions/DateTimeOption.d.ts +43 -0
- package/types/src/conditions/ExpressionOption.d.ts +26 -0
- package/types/src/conditions/InSetOption.d.ts +37 -0
- package/types/src/conditions/NumberOption.d.ts +24 -0
- package/types/src/conditions/OperatorAndParamEditor.d.ts +55 -0
- package/types/src/conditions/OperatorSelect.d.ts +35 -0
- package/types/src/conditions/OperatorSelectPopupButton.d.ts +39 -0
- package/types/src/conditions/ScalarOption.d.ts +29 -0
- package/types/src/conditions/SelectorSelect.d.ts +43 -0
- package/types/src/conditions/StringOption.d.ts +24 -0
- package/types/src/conditions/TimePeriodOption.d.ts +25 -0
- package/types/src/conditions/TopNOption.d.ts +25 -0
- package/types/src/conditions/index.d.ts +13 -0
- package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +16 -0
- package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -0
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +12 -0
- package/types/src/dataValidation/DataValidationPlugin.d.ts +2 -0
- package/types/src/dataValidation/index.d.ts +2 -0
- package/types/src/debug/DebugUtils.d.ts +4 -0
- package/types/src/debug/index.d.ts +2 -0
- package/types/src/dialog/CommentsDialog.d.ts +11 -0
- package/types/src/dialog/FindReplaceWindow.d.ts +13 -0
- package/types/src/dialog/HyperlinkDialog.d.ts +28 -0
- package/types/src/dialog/InsertFunctionDialog.d.ts +25 -0
- package/types/src/dialog/NamedReferenceDialog.d.ts +17 -0
- package/types/src/dialog/NumberFormatDialog.d.ts +12 -0
- package/types/src/dialog/ResizeHeaderDialog.d.ts +15 -0
- package/types/src/dialog/ShortcutKeysDialog.d.ts +9 -0
- package/types/src/dialog/ShortcutKeysPanel.d.ts +28 -0
- package/types/src/dialog/SortDialog.d.ts +9 -0
- package/types/src/dialog/TableNewDialog.d.ts +14 -0
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +13 -0
- package/types/src/dialog/index.d.ts +10 -0
- package/types/src/filter/ColumnMenu.d.ts +13 -0
- package/types/src/filter/FilterList.d.ts +28 -0
- package/types/src/filter/index.d.ts +3 -0
- package/types/src/form/FormulaField.d.ts +221 -0
- package/types/src/form/InputField.d.ts +89 -0
- package/types/src/form/index.d.ts +3 -0
- package/types/src/formulaBar/FormulaBar.d.ts +8 -0
- package/types/src/formulaBar/IFormulaBar.d.ts +51 -0
- package/types/src/formulaBar/index.d.ts +3 -0
- package/types/src/function/FunctionArgumentsPanel.d.ts +57 -0
- package/types/src/function/FunctionSearchPanel.d.ts +35 -0
- package/types/src/function/InsertFunctionWizard.d.ts +79 -0
- package/types/src/function/index.d.ts +4 -0
- package/types/src/function/paneMetrics.d.ts +33 -0
- package/types/src/index.d.ts +21 -0
- package/types/src/itemsPanel/EditorPanel.d.ts +21 -0
- package/types/src/itemsPanel/ItemCard.d.ts +57 -0
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +215 -0
- package/types/src/itemsPanel/ItemsPanel.d.ts +45 -0
- package/types/src/itemsPanel/SortableCards.d.ts +67 -0
- package/types/src/itemsPanel/index.d.ts +6 -0
- package/types/src/movable/MovableContextMenu.d.ts +13 -0
- package/types/src/movable/index.d.ts +2 -0
- package/types/src/named/INamedCollectionEditor.d.ts +37 -0
- package/types/src/named/NamedCollectionEditor.d.ts +7 -0
- package/types/src/named/NamedDetailsPanel.d.ts +11 -0
- package/types/src/named/NamedDetailsTaskPane.d.ts +3 -0
- package/types/src/named/NamedDraft.d.ts +68 -0
- package/types/src/named/NamedEditorPanel.d.ts +19 -0
- package/types/src/named/NamedPlugin.d.ts +2 -0
- package/types/src/named/index.d.ts +8 -0
- package/types/src/numberFormat/NumberFormatPanel.d.ts +29 -0
- package/types/src/numberFormat/NumberFormatTaskPane.d.ts +12 -0
- package/types/src/numberFormat/index.d.ts +8 -0
- package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +20 -0
- package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +3 -0
- package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +27 -0
- package/types/src/protectedRange/ProtectedRangePlugin.d.ts +2 -0
- package/types/src/protectedRange/index.d.ts +2 -0
- package/types/src/protection/WorkbookProtectionDialog.d.ts +23 -0
- package/types/src/protection/WorkbookProtectionPanel.d.ts +51 -0
- package/types/src/protection/index.d.ts +3 -0
- package/types/src/sheet/SheetTabMenu.d.ts +21 -0
- package/types/src/sheet/SheetsAllMenu.d.ts +16 -0
- package/types/src/sheet/index.d.ts +3 -0
- package/types/src/statusBar/NumberStats.d.ts +27 -0
- package/types/src/statusBar/SheetZoomScale.d.ts +11 -0
- package/types/src/statusBar/StatusBar.d.ts +35 -0
- package/types/src/statusBar/index.d.ts +4 -0
- package/types/src/studio/CommandsWrapper.d.ts +36 -0
- package/types/src/studio/DefaultLogo.d.ts +3 -0
- package/types/src/studio/EagerStudio.d.ts +5 -0
- package/types/src/studio/Studio.d.ts +26 -0
- package/types/src/studio/StudioCommandProvider.d.ts +26 -0
- package/types/src/studio/StudioCommands.d.ts +115 -0
- package/types/src/studio/StudioNotifierProvider.d.ts +10 -0
- package/types/src/studio/StudioProps.d.ts +372 -0
- package/types/src/studio/StudioSplitPane.d.ts +60 -0
- package/types/src/studio/StudioTaskPaneArea.d.ts +8 -0
- package/types/src/studio/StudioToolbar.d.ts +37 -0
- package/types/src/studio/index.d.ts +4 -0
- package/types/src/studio/useStudioApp.d.ts +51 -0
- package/types/src/table/TableDetailsPanel.d.ts +17 -0
- package/types/src/table/TableDetailsTaskPane.d.ts +3 -0
- package/types/src/table/TablePlugin.d.ts +2 -0
- package/types/src/table/TableStyleCanvasPreview.d.ts +21 -0
- package/types/src/table/TableStyleOptionsPanel.d.ts +38 -0
- package/types/src/table/TableStylePreview.d.ts +43 -0
- package/types/src/table/index.d.ts +7 -0
- package/types/src/theme/ThemeSelectButton.d.ts +23 -0
- package/types/src/theme/ThemeSelectPanel.d.ts +17 -0
- package/types/src/theme/ThemeSelectPopupButton.d.ts +24 -0
- package/types/src/theme/ThemeUtils.d.ts +57 -0
- package/types/src/theme/index.d.ts +5 -0
- package/types/src/toast/ToastError.d.ts +10 -0
- package/types/src/toast/index.d.ts +2 -0
- package/types/src/toolbar/WorkbookToolbars.d.ts +46 -0
- package/types/src/toolbar/index.d.ts +2 -0
- package/types/src/workbook/DefaultRenderers.d.ts +23 -0
- package/types/src/workbook/DocumentTitle.d.ts +69 -0
- package/types/src/workbook/WorkbookContextMenu.d.ts +13 -0
- package/types/src/workbook/WorkbookElement.d.ts +12 -0
- package/types/src/workbook/WorkbookStrip.d.ts +37 -0
- package/types/src/workbook/index.d.ts +7 -0
- package/browser/cjs/52tjAlO48FpZgfzG.cjs +0 -6
- package/browser/cjs/BGu2_YqVJMQjYx4D.cjs +0 -18
- package/browser/cjs/C83Rzj_Jwq-o69wr.cjs +0 -42
- package/browser/cjs/CldYLQnjFC_g8o3t.cjs +0 -6
- package/browser/cjs/Cpv3j_Ra1h-axLRG.cjs +0 -6
- package/browser/cjs/D-5Cg1Y0zALF_JEs.cjs +0 -7
- package/browser/cjs/D58sOTRZwQ59CgOf.cjs +0 -6
- package/browser/cjs/DEd-0xEuUoELRnQb.cjs +0 -6
- package/browser/cjs/DahKlfm68zudpndW.cjs +0 -20
- package/browser/cjs/Dd7t0gfO3bzS0-B8.cjs +0 -6
- package/browser/cjs/DxAU6DV3UCUDVoSH.cjs +0 -6
- package/browser/cjs/uj7GSwDaUyTKEjrN.cjs +0 -6
- package/browser/esm/BLuR1D2n--9QSJL9.mjs +0 -26
- package/browser/esm/BSOhdb74viwmCi54.mjs +0 -2159
- package/browser/esm/BTAhrEfV-DH0-Ldk.mjs +0 -640
- package/browser/esm/BgsyX5QL9OLy0DN3.mjs +0 -4533
- package/browser/esm/CFPGs5_tLGrpkW8L.mjs +0 -25
- package/browser/esm/CbCX3t0hx-h6pV7Q.mjs +0 -46
- package/browser/esm/D3dDP89ml0258MGb.mjs +0 -53
- package/browser/esm/DYk55y6IEOCytW3g.mjs +0 -50
- package/browser/esm/DfUqOxFfhJcaq847.mjs +0 -2411
- package/browser/esm/DhWeeZyxUc-LbP8E.mjs +0 -50
- package/browser/esm/DqLDLUCqiFovdBf0.mjs +0 -155
- package/browser/esm/Dvo0k3olgFuAso_O.mjs +0 -54
- package/node/assets/style.css +0 -1
- package/node/esm/BM_pvbGlgXydGNT3.mjs +0 -52
- package/node/esm/CFBcwLP2q2_EUXvE.mjs +0 -156
- package/node/esm/Cg9JFB8nOnVfR0Uo.mjs +0 -26
- package/node/esm/D3kxA1LpG-PpZvCb.mjs +0 -25
- package/node/esm/D_s6w_GWb8l7uGW3.mjs +0 -53
- package/node/esm/XI3nj4zD7mXOyxSm.mjs +0 -57
- package/node/esm/YXQgUYqP1qsi_MPX.mjs +0 -46
- package/node/esm/m2lejeU-ViEhFj_N.mjs +0 -91
- package/node/esm/sevERUPIPJCb-jYL.mjs +0 -88
- package/node/esm/zdjaq7yEfEvgHrDi.mjs +0 -50
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
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
|
+
export interface ProtectedRangeEditorPanelProps {
|
|
18
|
+
/**
|
|
19
|
+
* The protected range to edit.
|
|
20
|
+
*/
|
|
21
|
+
protectedRange: IProtectedRange;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Editor panel for a range that stays editable while the sheet is protected.
|
|
25
|
+
*/
|
|
26
|
+
export declare const ProtectedRangeEditorPanel: React.NamedExoticComponent<ProtectedRangeEditorPanelProps>;
|
|
27
|
+
//# sourceMappingURL=ProtectedRangeEditorPanel.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OptionsDialogProps } from '@sheetxl/utils-mui';
|
|
3
|
+
import { WorkbookProtectionPanel } from './WorkbookProtectionPanel';
|
|
4
|
+
export interface WorkbookProtectionDialogProps extends Omit<OptionsDialogProps, 'onOption' | 'children'> {
|
|
5
|
+
/** The protections as they currently stand. */
|
|
6
|
+
initialValue: WorkbookProtectionPanel.Value;
|
|
7
|
+
/** Called with the edited value when the user confirms; not called on cancel. */
|
|
8
|
+
onApply(value: WorkbookProtectionPanel.Value): void | Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Dialog host for {@link WorkbookProtectionPanel}.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* A thin wrapper on purpose — the panel holds the layout and the rules, so the same content can be
|
|
15
|
+
* hosted in a task pane later without moving any of it (mirrors `NumberFormatDialog` /
|
|
16
|
+
* `NumberFormatTaskPane` over one panel).
|
|
17
|
+
*
|
|
18
|
+
* Built on {@link OptionsDialog} rather than a bespoke shell so it inherits the Ok/Cancel handling,
|
|
19
|
+
* the validation gate that keeps the dialog open on invalid input, and the busy affordance.
|
|
20
|
+
*/
|
|
21
|
+
export declare const WorkbookProtectionDialog: React.FC<WorkbookProtectionDialogProps>;
|
|
22
|
+
export default WorkbookProtectionDialog;
|
|
23
|
+
//# sourceMappingURL=WorkbookProtectionDialog.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare namespace WorkbookProtectionPanel {
|
|
3
|
+
/**
|
|
4
|
+
* What the panel edits.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* A password of `null` means **unchanged** — the field is showing {@link SENTINEL} and the caller
|
|
8
|
+
* should keep what it already has. An empty string means the user cleared it. Any other string is
|
|
9
|
+
* a new password.
|
|
10
|
+
*/
|
|
11
|
+
interface Value {
|
|
12
|
+
/** Encrypt the file itself, so its contents cannot be read without the password. */
|
|
13
|
+
encrypt: boolean;
|
|
14
|
+
encryptPassword: string | null;
|
|
15
|
+
/** Lock the workbook's structure — a gate the UI honours; it does not hide the data. */
|
|
16
|
+
structure: boolean;
|
|
17
|
+
structurePassword: string | null;
|
|
18
|
+
lockStructure: boolean;
|
|
19
|
+
lockWindows: boolean;
|
|
20
|
+
}
|
|
21
|
+
interface Props {
|
|
22
|
+
value: Value;
|
|
23
|
+
onChange(value: Value): void;
|
|
24
|
+
/** Reports whether the current input can be committed (passwords present and matching). */
|
|
25
|
+
onValidityChange?(valid: boolean): void;
|
|
26
|
+
sx?: any;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Edits a workbook's two, genuinely different, protections in one place.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Presentational only — no model or IO access — so the same panel serves a dialog now and a task
|
|
34
|
+
* pane later (the {@link NumberFormatPanel} arrangement).
|
|
35
|
+
*
|
|
36
|
+
* The two halves are grouped together because a user thinking "protect this workbook" means either,
|
|
37
|
+
* and split visibly because they are not the same thing at all:
|
|
38
|
+
* - **Encrypt** rewrites the file so its contents are unreadable without the password.
|
|
39
|
+
* - **Protect structure** stores a hash the UI honours; the data stays fully readable to anything
|
|
40
|
+
* that opens the file.
|
|
41
|
+
*
|
|
42
|
+
* Excel separates these by *storage mechanism* (one is the container, one is XML in the package),
|
|
43
|
+
* which puts them in unrelated parts of its UI and reliably misleads people into thinking
|
|
44
|
+
* "Protect Workbook" encrypts. Grouping by intent and labelling by effect is the fix.
|
|
45
|
+
*
|
|
46
|
+
* They also commit differently, which the host should surface: structure applies immediately;
|
|
47
|
+
* encryption is only realized on the next save.
|
|
48
|
+
*/
|
|
49
|
+
export declare const WorkbookProtectionPanel: React.NamedExoticComponent<WorkbookProtectionPanel.Props & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
export default WorkbookProtectionPanel;
|
|
51
|
+
//# sourceMappingURL=WorkbookProtectionPanel.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FloatReference } from '@sheetxl/utils-react';
|
|
3
|
+
import { IWorkbook } from '@sheetxl/sdk';
|
|
4
|
+
import { TabStripRef } from '@sheetxl/react';
|
|
5
|
+
export interface SheetTabMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/**
|
|
7
|
+
* The workbook.
|
|
8
|
+
*/
|
|
9
|
+
workbook: IWorkbook;
|
|
10
|
+
index?: number;
|
|
11
|
+
/** The panel/group the menu's commands resolve labels against (default `'sheet'`). */
|
|
12
|
+
groupKey?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
floatReference: FloatReference;
|
|
15
|
+
tabStripRef?: TabStripRef;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Menu for sheet tab operations such as renaming, deleting, and coloring.
|
|
19
|
+
*/
|
|
20
|
+
export declare const SheetTabMenu: React.NamedExoticComponent<SheetTabMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
//# sourceMappingURL=SheetTabMenu.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWorkbook } from '@sheetxl/sdk';
|
|
3
|
+
import { FloatReference } from '@sheetxl/utils-react';
|
|
4
|
+
export interface SheetsAllMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* The workbook
|
|
7
|
+
*/
|
|
8
|
+
workbook: IWorkbook;
|
|
9
|
+
floatReference: FloatReference;
|
|
10
|
+
closeFloatAll: () => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Menu showing all sheets in the workbook.
|
|
14
|
+
*/
|
|
15
|
+
export declare const SheetsAllMenu: React.NamedExoticComponent<SheetsAllMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
//# sourceMappingURL=SheetsAllMenu.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IRangeStats, ICell } from '@sheetxl/sdk';
|
|
3
|
+
export interface NumberStatsProps extends React.HTMLAttributes<HTMLDivElement>, React.Attributes {
|
|
4
|
+
/**
|
|
5
|
+
* An optional list of stats to display.
|
|
6
|
+
*/
|
|
7
|
+
stats?: IRangeStats.Aggregate[];
|
|
8
|
+
/**
|
|
9
|
+
* Default debounce delay.
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue 40
|
|
12
|
+
*/
|
|
13
|
+
debounceDelay?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const NumberStats: React.NamedExoticComponent<NumberStatsProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export interface StatItemProps extends React.HTMLAttributes<HTMLDivElement>, React.Attributes {
|
|
17
|
+
/**
|
|
18
|
+
* Cell that contains the value of the stat
|
|
19
|
+
*/
|
|
20
|
+
cell?: ICell;
|
|
21
|
+
label?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Used for tool
|
|
24
|
+
*/
|
|
25
|
+
description?: string;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=NumberStats.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
export interface SheetZoomScaleProps extends BoxProps {
|
|
4
|
+
/**
|
|
5
|
+
* When dragging slider.
|
|
6
|
+
* @defaultValue 220
|
|
7
|
+
*/
|
|
8
|
+
debounceDelay?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const SheetZoomScale: React.NamedExoticComponent<Omit<SheetZoomScaleProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
11
|
+
//# sourceMappingURL=SheetZoomScale.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface StatusBarItem {
|
|
3
|
+
/**
|
|
4
|
+
* Use for identifying the item
|
|
5
|
+
*/
|
|
6
|
+
key: string;
|
|
7
|
+
/**
|
|
8
|
+
* Create the status bar element to show in the status bar
|
|
9
|
+
* @param props
|
|
10
|
+
*/
|
|
11
|
+
createElement(props: React.HTMLAttributes<HTMLDivElement>): React.ReactElement;
|
|
12
|
+
/**
|
|
13
|
+
* A label use for toggling visibility or identification
|
|
14
|
+
*/
|
|
15
|
+
createLabel(): string;
|
|
16
|
+
/**
|
|
17
|
+
* Should we show a divider before this item
|
|
18
|
+
*/
|
|
19
|
+
hasDivider?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface StatusBarProps extends React.HTMLAttributes<HTMLDivElement>, React.Attributes {
|
|
22
|
+
childrenEnd?: React.ReactNode | undefined;
|
|
23
|
+
items?: StatusBarItem[];
|
|
24
|
+
ref?: React.Ref<StatusBarElement>;
|
|
25
|
+
}
|
|
26
|
+
export interface StatusBarAttributes {
|
|
27
|
+
}
|
|
28
|
+
export interface StatusBarElement extends HTMLDivElement, StatusBarAttributes {
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* This show the current cell state as an unstyled editable field.
|
|
32
|
+
* This wraps this with material styling and submit and cancel buttons
|
|
33
|
+
*/
|
|
34
|
+
export declare const StatusBar: React.NamedExoticComponent<Omit<StatusBarProps, "ref"> & React.RefAttributes<StatusBarElement>>;
|
|
35
|
+
//# sourceMappingURL=StatusBar.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWorkbook } from '@sheetxl/sdk';
|
|
3
|
+
import { Command } from '@sheetxl/utils-react';
|
|
4
|
+
import { WorkbookElementProps } from '@sheetxl/react';
|
|
5
|
+
import { IDocumentTitleElement } from '../workbook';
|
|
6
|
+
import { StudioProps } from './StudioProps';
|
|
7
|
+
export interface CommandsWrapperProps extends Omit<StudioProps, 'workbook'> {
|
|
8
|
+
/**
|
|
9
|
+
* Render the workbook element
|
|
10
|
+
*
|
|
11
|
+
* @param props The properties for the workbook element.
|
|
12
|
+
*/
|
|
13
|
+
renderWorkbook: (props: WorkbookElementProps) => React.ReactElement;
|
|
14
|
+
/**
|
|
15
|
+
* The studio tracker's initial command anchor (see {@link CommandRootProvider}): a recallable
|
|
16
|
+
* {@link Command.DefaultAnchorProvider provider} returning the loaded grid's would-focus pane element —
|
|
17
|
+
* invoked pre-reveal for cold-start and re-invoked when a resize destroys the anchored pane.
|
|
18
|
+
*/
|
|
19
|
+
initialCommandAnchor?: Command.FocusActivationInitial;
|
|
20
|
+
/**
|
|
21
|
+
* The workbook
|
|
22
|
+
*/
|
|
23
|
+
workbook: IWorkbook;
|
|
24
|
+
setWorkbook: any;
|
|
25
|
+
titleWorkbook: string | null;
|
|
26
|
+
setWorkbookTitle: (newWorkbookTitle: string | null) => void;
|
|
27
|
+
refDocumentTitle: React.RefObject<IDocumentTitleElement | null>;
|
|
28
|
+
/** Live unsaved-changes probe (read at click time); drives close/open confirm. */
|
|
29
|
+
isDirty: () => boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Because snackbar is configured using a context provider we have to create
|
|
33
|
+
* an intermediary component to retrieve and wrap the notifier (and commands)
|
|
34
|
+
*/
|
|
35
|
+
export declare const CommandsWrapper: React.FC<CommandsWrapperProps>;
|
|
36
|
+
//# sourceMappingURL=CommandsWrapper.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { StudioProps, IStudioElement } from './StudioProps';
|
|
3
|
+
export declare const EagerStudio: React.NamedExoticComponent<StudioProps & React.RefAttributes<IStudioElement>>;
|
|
4
|
+
export default EagerStudio;
|
|
5
|
+
//# sourceMappingURL=EagerStudio.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { StudioProps, IStudioElement } from './StudioProps';
|
|
3
|
+
/**
|
|
4
|
+
* Studio
|
|
5
|
+
*
|
|
6
|
+
* Fully featured workbook component.
|
|
7
|
+
* * controlled/uncontrolled workbook
|
|
8
|
+
* * snackbar
|
|
9
|
+
* * export/import to local file system
|
|
10
|
+
* * workbook title
|
|
11
|
+
* * Material-ui theme width light/dark toggle
|
|
12
|
+
* * lazy loading
|
|
13
|
+
*
|
|
14
|
+
* Demo:
|
|
15
|
+
*
|
|
16
|
+
* - [SheetXL](https://storybook.sheetxl.com/?path=/story/studio--workbook-studio)
|
|
17
|
+
*
|
|
18
|
+
* API:
|
|
19
|
+
*
|
|
20
|
+
* - [StudioProps](https://api.sheetxl.com/interfaces/_sheetxl_studio-mui.StudioProps.html)
|
|
21
|
+
* - [IStudioElement](https://api.sheetxl.com/interfaces/_sheetxl_studio-mui.IStudioElement.html)
|
|
22
|
+
*/
|
|
23
|
+
declare const Studio: React.NamedExoticComponent<StudioProps & React.RefAttributes<IStudioElement>>;
|
|
24
|
+
export default Studio;
|
|
25
|
+
export { Studio };
|
|
26
|
+
//# sourceMappingURL=Studio.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IWorkbook } from '@sheetxl/sdk';
|
|
3
|
+
import { WorkbookInput } from '@sheetxl/react';
|
|
4
|
+
/** Studio app-shell state the bridge threads into the file-I/O commands (from `CommandsWrapper`). */
|
|
5
|
+
export interface StudioCommandProviderProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** The active workbook. */
|
|
8
|
+
workbook: IWorkbook;
|
|
9
|
+
/** Replace the current workbook (open pairs the new model with its read origin). */
|
|
10
|
+
setWorkbook: (input: WorkbookInput) => void;
|
|
11
|
+
/** Suggested filename stem when a save prompts for a destination. */
|
|
12
|
+
workbookTitle?: string | null;
|
|
13
|
+
/** Live unsaved-changes probe (read at click time) — drives close/open confirm. */
|
|
14
|
+
isDirty?: () => boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* **Studio command bridge** — the studio slice. Registers the studio catalog + contributes help /
|
|
18
|
+
* shortcuts / appearance **and the file-I/O commands** (`contributeStudioIOCommands`) onto the app-root
|
|
19
|
+
* scope, so the studio buttons + shortcut dialog resolve. The dialog is fed the command **catalog** (all
|
|
20
|
+
* commands), not a single group.
|
|
21
|
+
*/
|
|
22
|
+
export declare const StudioCommandProvider: {
|
|
23
|
+
(props: StudioCommandProviderProps): ReactNode;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=StudioCommandProvider.d.ts.map
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { RemoveListener } from '@sheetxl/utils';
|
|
2
|
+
import { IWorkbook } from '@sheetxl/sdk';
|
|
3
|
+
import { Command, IReactNotifier, ThemeMode } from '@sheetxl/utils-react';
|
|
4
|
+
import { WorkbookInput } from '@sheetxl/react';
|
|
5
|
+
/**
|
|
6
|
+
* A port of the **studio**-level commands (`useStudioCommands`) — file I/O, theme,
|
|
7
|
+
* help. This is the **placeholder** for the studio slice of the port; only the help/shortcuts family
|
|
8
|
+
* is wired so far (enough to make `Help` + the shortcut dialog work).
|
|
9
|
+
*
|
|
10
|
+
* The studio command **chrome** (help / shortcuts / external links / theme / fullscreen) lives in the
|
|
11
|
+
* catalog (`studio.cmd.en.json`, scope `app`). This file is the **behavior** half:
|
|
12
|
+
* - **{@link contributeStudioCommands}** — the React-context behavior (opening the shortcut dialog) +
|
|
13
|
+
* the stateless `gotoUrl*` callbacks; contributed by `StudioCommandProvider`.
|
|
14
|
+
* - `contributeStudioAppearance` / `contributeStudioFullScreen` / `contributeStudioIOCommands` — the
|
|
15
|
+
* rest of the dynamic behavior.
|
|
16
|
+
*/
|
|
17
|
+
/** Handlers the React-bound studio behavior needs (things a plain callback can't own). */
|
|
18
|
+
export interface ContributeStudioCommandsHandlers {
|
|
19
|
+
/** Open the keyboard-shortcuts reference dialog. */
|
|
20
|
+
showShortcuts: () => void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Contribute the studio behavior that needs React context: `showKeyboardShortcuts` + `help` both open
|
|
24
|
+
* the shortcut dialog. Returns via
|
|
25
|
+
* the {@link Command.CommandContribution} handle, so `contribution.remove()` tears it down.
|
|
26
|
+
*/
|
|
27
|
+
export declare function contributeStudioCommands(contribution: Command.CommandContribution, handlers: ContributeStudioCommandsHandlers): void;
|
|
28
|
+
/** The resolved appearance state the bridge threads in (from `usePersistenceState` + theme hooks). */
|
|
29
|
+
export interface StudioAppearanceState {
|
|
30
|
+
/** The persisted mode override (`null` = follow system). */
|
|
31
|
+
mode: ThemeMode | null;
|
|
32
|
+
setMode: (mode: ThemeMode | null) => void;
|
|
33
|
+
/** Whether the *effective* mode is dark (override or system). */
|
|
34
|
+
isDark: boolean;
|
|
35
|
+
/** Whether the system default is dark (for the `defaultThemeMode` icon). */
|
|
36
|
+
systemDefaultDark: boolean;
|
|
37
|
+
enableDarkGrid: boolean;
|
|
38
|
+
setEnableDarkGrid: (next: (prev: boolean) => boolean) => void;
|
|
39
|
+
enableDarkImages: boolean;
|
|
40
|
+
setEnableDarkImages: (next: (prev: boolean) => boolean) => void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Contribute the studio **appearance** toggles — light/dark mode, system-default, dark-grid, dark-images.
|
|
44
|
+
* Their `state`/`label`/`icon` are dynamic, so this re-runs when the appearance state changes (the bridge
|
|
45
|
+
* owns the `usePersistenceState` and re-invokes on change). Ported from `useStudioCommands` L569-600.
|
|
46
|
+
*/
|
|
47
|
+
export declare function contributeStudioAppearance(contribution: Command.CommandContribution, s: StudioAppearanceState): void;
|
|
48
|
+
/** The UI-language state the bridge threads in (from `DefaultLanguagePackService`). */
|
|
49
|
+
export interface StudioLanguageState {
|
|
50
|
+
/** The active UI-language tag (a user preference, not a document property). */
|
|
51
|
+
active: string;
|
|
52
|
+
setActive: (tag: string) => void;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Contribute the **UI language** command. The active language is application state owned by the
|
|
56
|
+
* language-pack service singleton — the bridge owns the subscription and re-invokes on change (same
|
|
57
|
+
* shape as appearance). `execute(tag)` switches; the picker component supplies the list (whatever
|
|
58
|
+
* packs are registered, not a hardcoded set). Contrast with `locale` (number/date formatting), which
|
|
59
|
+
* is a workbook command: it travels with the document, as in Excel.
|
|
60
|
+
*/
|
|
61
|
+
export declare function contributeStudioLanguage(contribution: Command.CommandContribution, s: StudioLanguageState): void;
|
|
62
|
+
/** Fullscreen state the bridge threads in (from `useFullscreen`, bound to the document/app shell). */
|
|
63
|
+
export interface StudioFullScreenState {
|
|
64
|
+
/** Whether the current context permits fullscreen (iframe permissions policy etc). */
|
|
65
|
+
isFullscreenAvailable: boolean;
|
|
66
|
+
/** Whether an element is currently fullscreen. */
|
|
67
|
+
isFullscreenEnabled: boolean;
|
|
68
|
+
/** Toggle fullscreen on/off. */
|
|
69
|
+
toggleFullscreen: () => void | Promise<void>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Contribute the **fullscreen** toggle — a studio/app-shell concern (targets the whole document), so it lives
|
|
73
|
+
* here rather than in the workbook contributor. `state`/`icon` are dynamic + `disabled` when the context
|
|
74
|
+
* disallows fullscreen, so the bridge re-runs this on change.
|
|
75
|
+
*/
|
|
76
|
+
export declare function contributeStudioFullScreen(contribution: Command.CommandContribution, s: StudioFullScreenState): void;
|
|
77
|
+
/**
|
|
78
|
+
* The studio **app-shell** dependencies the file-I/O commands need — threaded from `CommandsWrapper` via
|
|
79
|
+
* `StudioCommandProvider` (they live in the studio shell, not the workbook model).
|
|
80
|
+
*/
|
|
81
|
+
export interface StudioIODeps {
|
|
82
|
+
/** The active workbook (source for writes; CSV-import inherits its options). */
|
|
83
|
+
workbook: IWorkbook;
|
|
84
|
+
/**
|
|
85
|
+
* Replace the current workbook (open pairs the new model with its read origin). The studio owns the
|
|
86
|
+
* displaced workbook from here on and closes it once its grid is off screen — closing it at the call
|
|
87
|
+
* site would kill the model while the outgoing grid is still mounted and interactive.
|
|
88
|
+
*/
|
|
89
|
+
setWorkbook: (input: WorkbookInput) => void;
|
|
90
|
+
/** Suggested filename stem when a save prompts for a destination. */
|
|
91
|
+
workbookTitle?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Live unsaved-changes probe, read at click time so close/open confirm see the current value.
|
|
94
|
+
*/
|
|
95
|
+
isDirty: () => boolean;
|
|
96
|
+
/** Busy / error / confirm UI. */
|
|
97
|
+
notifier: IReactNotifier;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Contribute the studio **file-I/O** commands (the "studio slog", Batch 3) — `newWorkbook` /
|
|
101
|
+
* `closeWorkbook` (capability-independent) + `saveWorkbook` / `saveWorkbookAs` / per-format
|
|
102
|
+
* `saveWorkbookAs<Fmt>` (only when `WorkbookIO.canWrite()`) + `openWorkbook` / `openWorkbookFromUrl` (only
|
|
103
|
+
* when `WorkbookIO.canRead()`). Ported from `useStudioCommands` (`importWorkbook` L81, `exportToFile`
|
|
104
|
+
* L162, the command handlers L204-443).
|
|
105
|
+
*
|
|
106
|
+
* @remarks
|
|
107
|
+
* Chrome here is **capability-gated + generated** (not a static catalog entry), so it's registered *with*
|
|
108
|
+
* the behavior via `updateCommand`, and the save/open shortcuts (Ctrl+S / Ctrl+O) only bind when the
|
|
109
|
+
* active backing store supports them — an embedded host (VS Code) installs a write-only store and owns
|
|
110
|
+
* open itself. The capability probe is async (`getWriteFormats` forces the io layer to load); the returned
|
|
111
|
+
* disposer cancels a probe still in flight so a fast unmount can't register after teardown. File I/O is
|
|
112
|
+
* **not** a sheet transaction, so there's no middleware (contributed at the app root, like undo/workbook).
|
|
113
|
+
*/
|
|
114
|
+
export declare function contributeStudioIOCommands(contribution: Command.CommandContribution, deps: StudioIODeps): RemoveListener;
|
|
115
|
+
//# sourceMappingURL=StudioCommands.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface StudioNotifierProviderProps {
|
|
3
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Implements dialogs and toasts.
|
|
7
|
+
*/
|
|
8
|
+
export declare const StudioNotifierProvider: React.FC<StudioNotifierProviderProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=StudioNotifierProvider.d.ts.map
|