@sheetxl/studio-mui 0.8.0-beta.1 → 0.8.0-beta.3

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.
Files changed (195) hide show
  1. package/browser/cjs/3k_KqDFr-AybPztc.cjs +5 -0
  2. package/browser/cjs/{zQsyZpeXAvcVXJMs.cjs → 3uprnzi2l0iT17Dg.cjs} +1 -1
  3. package/browser/cjs/B9GcCj7sj8XdjPZF.cjs +1 -0
  4. package/browser/cjs/{CJLwX_A3y3TQUmzj.cjs → BGvoJjUs21bbuE1i.cjs} +1 -1
  5. package/browser/cjs/{CYxc8vnRi8dNpDPk.cjs → BHb7TnK1NmimV4OX.cjs} +1 -1
  6. package/browser/cjs/BJ-wdkCaXqJaejKf.cjs +1 -0
  7. package/browser/cjs/BQMCM3iFn4MNWAkB.cjs +1 -0
  8. package/browser/cjs/BXkdjAb4jpTr412c.cjs +1 -0
  9. package/browser/cjs/Bc-YisjBtD56vBAW.cjs +1 -0
  10. package/browser/cjs/Bi26L7L89ZK_y5Pk.cjs +1 -0
  11. package/browser/cjs/CucKgy044KxMHXrx.cjs +13 -0
  12. package/browser/cjs/Cy_XmYq6BsWmCXkk.cjs +3 -0
  13. package/browser/cjs/Dq9lIOzvxW3EKYkD.cjs +8 -0
  14. package/browser/cjs/M0_dvdYwhikqP9kg.cjs +2 -0
  15. package/browser/cjs/QI6GKw7uo1f8gY8C.cjs +1 -0
  16. package/browser/cjs/eCw4rAEIYE3BftpG.cjs +1 -0
  17. package/browser/cjs/iFPhqab5w95hHEsT.cjs +1 -0
  18. package/browser/cjs/index.cjs +2 -2
  19. package/browser/esm/{zWTZ8BvT4hjgC2ua.mjs → 5g7MBAjbFzuopMX2.mjs} +2 -2
  20. package/browser/esm/B1W2xsRdzsYUrUHN.mjs +12903 -0
  21. package/browser/esm/{UJOXCQv6KrG1gY3l.mjs → B4D1LSp8TE_B0AMm.mjs} +8 -16
  22. package/browser/esm/{Bz5LiUe3SZ8g42Ia.mjs → B52mSQ33rrDgVfpp.mjs} +1 -1
  23. package/browser/esm/{DNDrQKMTzKzNMjl-.mjs → BPrlXHjf0rCkbBBI.mjs} +1 -1
  24. package/browser/esm/BZd916TsMZ7YvxWP.mjs +293 -0
  25. package/browser/esm/{Cd6n1XUgF0VItpkH.mjs → BaEXUwMO4qxI8cAG.mjs} +1 -1
  26. package/browser/esm/{CDU0rqpLNVtMLI-f.mjs → BbIR6fcRDFkeZXY0.mjs} +1 -1
  27. package/browser/esm/{CVBub6pgTsJzCc5m.mjs → BmThVkDnqURs7csb.mjs} +2100 -2214
  28. package/browser/esm/{CVfuCNRpODUw04IH.mjs → Bz1JPslneg_PywLn.mjs} +1 -1
  29. package/browser/esm/{rU8xNPVQtDSnujM-.mjs → CBtvZnCU5MNRuW6b.mjs} +3 -3
  30. package/browser/esm/CWSv0l0QyooaSl9L.mjs +268 -0
  31. package/browser/esm/{BUGepznywvV0tUjW.mjs → Cq9FaaUpYJPogPlO.mjs} +2 -2
  32. package/browser/esm/{3ydDykDMtDYbfVVn.mjs → D0TdGLsNoKJ8y8nS.mjs} +113 -111
  33. package/browser/esm/{CBU3LgLYmqtQjJbu.mjs → D5VhIdFEqZBP23Ch.mjs} +1 -1
  34. package/browser/esm/{BoLxSRdEWt-Yg2RI.mjs → DAmyMhko6L63rwJo.mjs} +130 -103
  35. package/browser/esm/{Cj2pgCNqBCGl4rTX.mjs → DKyW2a-ZhqkFjZvH.mjs} +569 -540
  36. package/browser/esm/DSAOtFgAoMMKXSJb.mjs +152 -0
  37. package/browser/esm/De_bbgjFGMBk8KXa.mjs +117 -0
  38. package/browser/esm/Dkw9Yr0Bp5RI5pRw.mjs +222 -0
  39. package/browser/esm/MplcRTnOYfsuQGe3.mjs +410 -0
  40. package/browser/esm/{DMLXV4EKl1NCp_jk.mjs → U9pABiBV0P__iZJE.mjs} +3 -3
  41. package/browser/esm/{ChwS_ougBsogOEsP.mjs → _7FBRywOYc4gCFK2.mjs} +2 -2
  42. package/browser/esm/cLX3kRi9vDkGiZwr.mjs +115 -0
  43. package/browser/esm/index.mjs +466 -135
  44. package/browser/esm/{BZBJG2tDdD3-VujP.mjs → krJU2tCMk9QwcRcw.mjs} +195 -174
  45. package/licenses/dependencies.txt +73 -73
  46. package/node/esm/BSj2vMFtYCJk4miD.mjs +4462 -0
  47. package/node/esm/{BwZcoHDBmLPIVOT5.mjs → Byoa9Sx18Y73xJBM.mjs} +1 -1
  48. package/node/esm/{C-boHCnJditFzng3.mjs → C0yEFO9L8odxQW-z.mjs} +32 -40
  49. package/node/esm/{CHi3AuWEwEPOg9IZ.mjs → C6ookLy8qjozoGUP.mjs} +1 -1
  50. package/node/esm/{DXZrzWee8K5FPOW1.mjs → CF-mBw8E2TnnbVJp.mjs} +2 -2
  51. package/node/esm/CQtseVjtpzUKq41p.mjs +294 -0
  52. package/node/esm/{BhqI3pQFkV8K_612.mjs → C_xnlCmxuBdmK2nV.mjs} +1 -1
  53. package/node/esm/CvZ05tWUwCH6MJas.mjs +268 -0
  54. package/node/esm/{yCHAZKxJR7qY_ySy.mjs → D1uCpJvXqZ16A3-X.mjs} +143 -141
  55. package/node/esm/{DM7K7-284z-PczVz.mjs → DbzH9CwsCrtCs4Ug.mjs} +1 -1
  56. package/node/esm/{Qpuqm6xBr_da38Ht.mjs → DdBJbvx8UwH8CmkE.mjs} +163 -135
  57. package/node/esm/DlNtuQ_K-rgj0iJU.mjs +116 -0
  58. package/node/esm/Dsc5FSbIPxmlRzwV.mjs +414 -0
  59. package/node/esm/index.mjs +7716 -4114
  60. package/node/esm/k8Q5jiL-22BAHe4i.mjs +115 -0
  61. package/node/esm/{CUMKTjYv6VTkcWYi.mjs → oLdQArapyVclkMMy.mjs} +1 -1
  62. package/node/esm/{BA7VzUQ2sKRLTZ5c.mjs → pZBq3MVKHmZiBS8U.mjs} +1 -1
  63. package/package.json +9 -9
  64. package/resources/locales/de/groups.cmd.json +24 -6
  65. package/resources/locales/de/studio.cmd.json +18 -1
  66. package/resources/locales/de/ui.msg.json +251 -30
  67. package/resources/locales/en/groups.cmd.json +24 -6
  68. package/resources/locales/en/studio.cmd.json +18 -1
  69. package/resources/locales/en/ui.msg.json +202 -30
  70. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +11 -1
  71. package/types/src/anchorItems/AnchorItemsPanel.d.ts +14 -0
  72. package/types/src/anchorItems/AnchoredRangeField.d.ts +40 -0
  73. package/types/src/anchorItems/index.d.ts +1 -0
  74. package/types/src/border/BorderPopupButton.d.ts +6 -6
  75. package/types/src/border/BorderStylePopupButton.d.ts +3 -3
  76. package/types/src/border/BorderTemplateIcon.d.ts +24 -0
  77. package/types/src/border/index.d.ts +1 -0
  78. package/types/src/color/ColorPanel.d.ts +8 -2
  79. package/types/src/color/ColorPopupButton.d.ts +2 -1
  80. package/types/src/command/NumberFormatQuickButtons.d.ts +32 -0
  81. package/types/src/conditions/BetweenOption.d.ts +1 -1
  82. package/types/src/conditions/ConditionEditor.d.ts +6 -1
  83. package/types/src/conditions/ConditionUtils.d.ts +31 -0
  84. package/types/src/conditions/DateTimeOption.d.ts +4 -4
  85. package/types/src/conditions/ExpressionOption.d.ts +6 -6
  86. package/types/src/conditions/ListSourceOption.d.ts +31 -0
  87. package/types/src/conditions/ScalarOption.d.ts +6 -6
  88. package/types/src/conditions/index.d.ts +1 -1
  89. package/types/src/conditions/useFormulaOption.d.ts +54 -0
  90. package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +7 -1
  91. package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -2
  92. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +9 -2
  93. package/types/src/dataValidation/DataValidationIcon.d.ts +22 -0
  94. package/types/src/dataValidation/DataValidationTitle.d.ts +13 -0
  95. package/types/src/dialog/FillSeriesDialog.d.ts +16 -0
  96. package/types/src/dialog/TableNewDialog.d.ts +1 -4
  97. package/types/src/dialog/index.d.ts +0 -1
  98. package/types/src/externalLink/ExternalLinkCardBody.d.ts +9 -0
  99. package/types/src/externalLink/ExternalLinkChip.d.ts +18 -0
  100. package/types/src/externalLink/ExternalLinkLocation.d.ts +18 -0
  101. package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +18 -0
  102. package/types/src/externalLink/ExternalLinksPanel.d.ts +11 -0
  103. package/types/src/externalLink/ExternalLinksPlugin.d.ts +5 -0
  104. package/types/src/externalLink/ExternalLinksTaskPane.d.ts +19 -0
  105. package/types/src/externalLink/index.d.ts +8 -0
  106. package/types/src/fill/GradientEditor.d.ts +39 -0
  107. package/types/src/fill/PatternPopupButton.d.ts +26 -0
  108. package/types/src/fill/PatternSwatch.d.ts +53 -0
  109. package/types/src/fill/index.d.ts +4 -0
  110. package/types/src/filter/FilterList.d.ts +9 -6
  111. package/types/src/form/FormulaField.d.ts +25 -2
  112. package/types/src/form/InputField.d.ts +30 -0
  113. package/types/src/format/AlignmentPanel.d.ts +14 -0
  114. package/types/src/format/BorderPanel.d.ts +22 -0
  115. package/types/src/format/BorderPreview.d.ts +84 -0
  116. package/types/src/format/FillPanel.d.ts +25 -0
  117. package/types/src/format/FontPanel.d.ts +12 -0
  118. package/types/src/format/FormatCellPreview.d.ts +35 -0
  119. package/types/src/format/FormatPanelParts.d.ts +83 -0
  120. package/types/src/format/FormatPlugin.d.ts +11 -0
  121. package/types/src/format/FormatTaskPane.d.ts +39 -0
  122. package/types/src/format/NumberFormatOption.d.ts +43 -0
  123. package/types/src/{numberFormat → format}/NumberFormatPanel.d.ts +20 -0
  124. package/types/src/format/index.d.ts +13 -0
  125. package/types/src/format/useFormatSelection.d.ts +92 -0
  126. package/types/src/index.d.ts +3 -1
  127. package/types/src/itemsPanel/EditorPanel.d.ts +5 -1
  128. package/types/src/itemsPanel/ItemCard.d.ts +10 -1
  129. package/types/src/itemsPanel/ItemsDescriptor.d.ts +55 -19
  130. package/types/src/itemsPanel/ItemsPanel.d.ts +9 -0
  131. package/types/src/named/NamedDetailsPanel.d.ts +9 -2
  132. package/types/src/named/NamedDetailsTaskPane.d.ts +3 -2
  133. package/types/src/named/NamedEditorPanel.d.ts +1 -1
  134. package/types/src/named/NamedExpressionField.d.ts +32 -0
  135. package/types/src/named/NamedKindChip.d.ts +38 -0
  136. package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +6 -0
  137. package/types/src/protectedRange/ProtectedRangeDraft.d.ts +22 -0
  138. package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +0 -14
  139. package/types/src/protectedRange/index.d.ts +2 -1
  140. package/types/src/protection/ManageProtectionTaskPane.d.ts +29 -0
  141. package/types/src/protection/PasswordDialog.d.ts +32 -0
  142. package/types/src/protection/PasswordField.d.ts +35 -0
  143. package/types/src/protection/ProtectedCellsPanel.d.ts +20 -0
  144. package/types/src/protection/ProtectionPlugin.d.ts +11 -0
  145. package/types/src/protection/SheetProtectionPanel.d.ts +35 -0
  146. package/types/src/protection/WorkbookProtectionPanel.d.ts +34 -15
  147. package/types/src/protection/WorkbookProtectionTab.d.ts +22 -0
  148. package/types/src/protection/index.d.ts +7 -1
  149. package/types/src/studio/CommandsWrapper.d.ts +3 -0
  150. package/types/src/studio/EagerStudio.d.ts +14 -1
  151. package/types/src/studio/StudioCommandProvider.d.ts +3 -0
  152. package/types/src/studio/StudioCommands.d.ts +38 -2
  153. package/types/src/studio/StudioProps.d.ts +41 -0
  154. package/types/src/studio/splitStudioProps.d.ts +7 -0
  155. package/types/src/studio/useStudioApp.d.ts +20 -1
  156. package/types/src/template/TemplateCommands.d.ts +29 -0
  157. package/types/src/template/TemplateDialog.d.ts +19 -0
  158. package/types/src/template/TemplatePanel.d.ts +50 -0
  159. package/types/src/template/TemplateSearchField.d.ts +13 -0
  160. package/types/src/template/WelcomeDialog.d.ts +29 -0
  161. package/types/src/template/index.d.ts +3 -0
  162. package/types/src/template/useTemplateCatalog.d.ts +69 -0
  163. package/types/src/workbook/DefaultRenderers.d.ts +2 -0
  164. package/types/src/workbook/FillMenu.d.ts +21 -0
  165. package/types/src/workbook/index.d.ts +1 -0
  166. package/browser/cjs/B_D3JKseVvpRyX-E.cjs +0 -1
  167. package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +0 -2
  168. package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +0 -2
  169. package/browser/cjs/Bte6P3MhSjajJmmY.cjs +0 -7
  170. package/browser/cjs/CZm1jVZaHQ246prW.cjs +0 -1
  171. package/browser/cjs/Cm1APq2MraYNNhyI.cjs +0 -1
  172. package/browser/cjs/DO8V31Z1ewgMA1di.cjs +0 -5
  173. package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +0 -1
  174. package/browser/cjs/IASAYG6qgv7lJY7y.cjs +0 -1
  175. package/browser/cjs/UnMhi28mbvLiOXQe.cjs +0 -1
  176. package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +0 -1
  177. package/browser/cjs/w2GjebPlOFv3pCbm.cjs +0 -1
  178. package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +0 -11
  179. package/browser/esm/BuY3uV47Bwbqpasq.mjs +0 -219
  180. package/browser/esm/CAs1MWvJTcRfJy26.mjs +0 -217
  181. package/browser/esm/C_XvSsQ9BVdHffCO.mjs +0 -47
  182. package/browser/esm/FT29q8yNwsEpVZjt.mjs +0 -9257
  183. package/browser/esm/Hb1rlHT4tE5hLcjM.mjs +0 -82
  184. package/browser/esm/s46El7mT6oKLSnYB.mjs +0 -411
  185. package/node/esm/9FY82fj1R1c-AczW.mjs +0 -47
  186. package/node/esm/DxXM8qHi0Oz4Zovl.mjs +0 -4575
  187. package/node/esm/sQt2wWGTRLzqeJdG.mjs +0 -82
  188. package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +0 -32
  189. package/types/src/conditions/InSetOption.d.ts +0 -37
  190. package/types/src/dialog/NumberFormatDialog.d.ts +0 -12
  191. package/types/src/numberFormat/NumberFormatTaskPane.d.ts +0 -12
  192. package/types/src/numberFormat/index.d.ts +0 -8
  193. package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +0 -3
  194. package/types/src/protectedRange/ProtectedRangePlugin.d.ts +0 -2
  195. package/types/src/protection/WorkbookProtectionDialog.d.ts +0 -23
@@ -0,0 +1,92 @@
1
+ import { IBorders, IWorkbook, ISheet, ICell, IStyle, IStyleCollection, IColor } from '@sheetxl/sdk';
2
+ /**
3
+ * Everything the format panels need from the workbook, resolved from the live selection.
4
+ *
5
+ * @remarks
6
+ * The panels themselves stay presentational — they read {@link style} and call {@link applyStyle}.
7
+ * That keeps each one usable outside the task pane (a dialog, a shape inspector) by handing it a
8
+ * different implementation of this shape.
9
+ */
10
+ export interface FormatSelection {
11
+ /** The sheet the selection lives on. */
12
+ sheet: ISheet;
13
+ /**
14
+ * The ANCHOR cell — the one the panels read their control values from, and the one the preview
15
+ * shows. A multi-cell selection has one style per cell; Excel reads the anchor too.
16
+ */
17
+ cell: ICell;
18
+ /** {@link cell}'s resolved style. */
19
+ style: IStyle;
20
+ /** The workbook's style collection — theme swatches and recent colors for the pickers. */
21
+ styles: IStyleCollection;
22
+ /** Theme color resolution for the color pickers. */
23
+ schemeLookup: IColor.SchemeLookup;
24
+ /**
25
+ * The color a border draws in when it has none of its own — the pickers' **Automatic** swatch.
26
+ *
27
+ * @remarks
28
+ * The same value, from the same place, as the toolbar's border picker gets from the
29
+ * `formatBorder` command context (see `SheetCommands`). Without it a picker has no way to offer
30
+ * "no color of my own", and the panel has to hand it some literal color instead — which then
31
+ * reads back as a custom swatch that the user never chose.
32
+ */
33
+ autoColor: IColor;
34
+ /** Whether the GRID renders dark (not the app chrome) — previews and swatches follow the grid. */
35
+ darkMode: boolean;
36
+ /** True when the selection cannot be formatted (a protected sheet). */
37
+ disabled: boolean;
38
+ /**
39
+ * Apply a partial style to every selected range, as one undoable step.
40
+ *
41
+ * @param update The style delta, or a SEQUENCE of them applied in order.
42
+ * @param description A `messageKey('op.…')` naming the step in the undo history.
43
+ *
44
+ * @remarks
45
+ * A sequence is how a caller expresses REPLACE rather than merge. A style delta merges into
46
+ * what is already there, and for a border stroke that means an absent `color` leaves the old
47
+ * one standing — there is no value for "no color" to write. Erasing the edge first and drawing
48
+ * it second says the whole thing, and the batch keeps it one step in the undo history.
49
+ */
50
+ applyStyle: (update: IStyle.Update | readonly IStyle.Update[], description?: string) => void;
51
+ /** Mints a detached cell for the previews (theme + named styles resolve against the workbook). */
52
+ createCell: (update: ICell.Update) => ICell | null;
53
+ /** Mints a detached border for the border diagram, the way the border picker's context does. */
54
+ createBorder: (properties: Partial<IBorders.Properties>) => IBorders | null;
55
+ /**
56
+ * What is DRAWN on one edge of the selected block, sampled from the cell that carries it.
57
+ *
58
+ * @remarks
59
+ * A range's style object is cell-shaped: `getBottom()` on it answers for the style's own cell,
60
+ * not for the bottom of the block. So every edge is sampled from the cell it is drawn on — the
61
+ * outer edges from the block's CORNER cells (top and left from the top-left, bottom and right
62
+ * from the bottom-right), and each inner rule from the first cell across it: the horizontal from
63
+ * the `top` of the cell one row down, the vertical from the `left` of the cell one column over.
64
+ *
65
+ * The inner rules deliberately do NOT come from `IBorders.getHorizontal`/`getVertical`. Those
66
+ * report the RULE, which only exists while one authored block spans the whole selection: a
67
+ * border written at any other scope splits the blocks and the rule reads `null` forever after,
68
+ * and an imported workbook never has one at all (xlsx stores borders per cell). Read that way a
69
+ * covered-in-lines selection reports "no inner border", so the toggle can only ever draw.
70
+ *
71
+ * Sampling is `direct`: a border painted by a conditional format is not something this panel can
72
+ * clear, so counting it would make the toggle write `none` over an edge that stays on screen.
73
+ */
74
+ getEdgeStroke: (edge: IBorders.Edge) => IBorders.IStroke | null;
75
+ /**
76
+ * Whether the selection spans more than one row / column — i.e. whether it HAS an inside.
77
+ *
78
+ * @remarks
79
+ * `IBorders.Edge.Horizontal` written to a single row lands nowhere: there is no shared edge to
80
+ * put it on. The border diagram greys those targets out rather than letting a click do nothing.
81
+ */
82
+ hasInnerHorizontal: boolean;
83
+ /** {@inheritDoc FormatSelection.hasInnerHorizontal} */
84
+ hasInnerVertical: boolean;
85
+ }
86
+ /**
87
+ * Binds the format panels to the workbook's live selection: re-renders on a selection change and on
88
+ * any style change (Excel-style live apply — the pane has no OK button, so what it shows must follow
89
+ * what it just wrote).
90
+ */
91
+ export declare const useFormatSelection: (workbook: IWorkbook) => FormatSelection;
92
+ //# sourceMappingURL=useFormatSelection.d.ts.map
@@ -10,9 +10,11 @@ export * from './toolbar';
10
10
  export * from './statusBar';
11
11
  export * from './formulaBar';
12
12
  export * from './named';
13
+ export * from './externalLink';
13
14
  export * from './filter';
14
15
  export * from './table';
15
- export * from './numberFormat';
16
+ export * from './fill';
17
+ export * from './format';
16
18
  export * from './protection';
17
19
  export * from './sheet';
18
20
  export * from './workbook';
@@ -4,7 +4,11 @@ export interface EditorProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
5
  * The feature's catalog keys for the cancel/save labels.
6
6
  */
7
- messageKeys: Pick<ItemMessageKeys, 'cancel' | 'save'>;
7
+ /**
8
+ * `Required`, because these are the editor's own buttons: a list that reaches this panel at all
9
+ * is an authorable one, and an authorable list supplies them (see `ItemsDescriptor.createDraft`).
10
+ */
11
+ messageKeys: Required<Pick<ItemMessageKeys, 'cancel' | 'save'>>;
8
12
  /**
9
13
  * Called when save is requested
10
14
  */
@@ -20,7 +20,16 @@ export interface ItemCardProps<T = any> extends React.HTMLAttributes<HTMLDivElem
20
20
  readOnly?: boolean;
21
21
  canMoveUp?: boolean;
22
22
  canMoveDown?: boolean;
23
- onEdit: () => void;
23
+ /**
24
+ * Omit for an item with no editor — the title is then plain text and no edit action is offered.
25
+ * See `ItemsDescriptor.createDraft`.
26
+ */
27
+ onEdit?: () => void;
28
+ /**
29
+ * A click on the card's surface — anywhere that is not the title, an action, or a control the
30
+ * card carries. Omit when there is nothing on the grid to select.
31
+ */
32
+ onSelect?: () => void;
24
33
  /**
25
34
  * Omit to hide the move affordances (unordered list).
26
35
  */
@@ -50,27 +50,37 @@ export interface ItemEditorProps<D> {
50
50
  * English catalog while it is still in use.
51
51
  */
52
52
  export interface ItemMessageKeys {
53
- /** Empty-list text when nothing can be added (read-only). */
53
+ /** Empty-list text when nothing can be added (read-only, or an unauthorable list). */
54
54
  none: string;
55
- /** Empty-list text inviting the first item. */
56
- addPrompt: string;
57
- /** List header. */
58
- heading: string;
59
- /** Tooltip on the header's add affordance. */
60
- insert: string;
61
- /** Label of the empty-list add button. */
62
- new: string;
63
- /** Card action tooltips. */
64
- edit: string;
55
+ /**
56
+ * Empty-list text inviting the first item. Required for an AUTHORABLE list — see
57
+ * {@link ItemsDescriptor.createDraft}.
58
+ */
59
+ addPrompt?: string;
60
+ /** List header. Omit when the pane's own chrome (a tab, a section title) already names the list. */
61
+ heading?: string;
62
+ /** Tooltip on the header's add affordance. Authorable lists only. */
63
+ insert?: string;
64
+ /** Label of the empty-list add button. Authorable lists only. */
65
+ new?: string;
66
+ /** Card action tooltips. `edit` is for authorable lists only. */
67
+ edit?: string;
65
68
  delete: string;
66
69
  /** Card duplicate tooltip. Required when the feature supplies {@link ItemsDescriptor.duplicate}. */
67
70
  duplicate?: string;
68
- /** Editor buttons. */
69
- cancel: string;
70
- save: string;
71
+ /** Editor buttons. Authorable lists only. */
72
+ cancel?: string;
73
+ save?: string;
71
74
  /** Card reorder tooltips. Required when the feature supplies {@link ItemsDescriptor.moveBy}. */
72
75
  moveUp?: string;
73
76
  moveDown?: string;
77
+ /**
78
+ * Search field placeholder, its clear-button tooltip, and the text shown when a query matches
79
+ * nothing. Required when the feature supplies {@link ItemsDescriptor.getSearchText}.
80
+ */
81
+ search?: string;
82
+ clearSearch?: string;
83
+ noMatches?: string;
74
84
  }
75
85
  /**
76
86
  * Describes one listable feature to the generic {@link ItemsPanel}: where its items come from,
@@ -141,8 +151,14 @@ export interface ItemsDescriptor<T = any, D = T> {
141
151
  * `createItem` and edits that. A collection with no such notion — defined names are
142
152
  * aggregated from registries that own them, so there is nothing to detach — returns a plain
143
153
  * object instead, and {@link save} applies it. The panel only ever hands it back.
154
+ *
155
+ * **Omit it, with {@link save} and {@link EditorBody}, for a list that can be ACTED ON but not
156
+ * AUTHORED** — external links are made by typing a formula, and each one is an immutable
157
+ * snapshot, so the list offers Go to and Break link and no editor at all. The panel then shows
158
+ * no add affordance and no edit action, and the card title is plain text rather than a way in.
159
+ * This is not the same as {@link isReadOnly}, which hides every action including delete.
144
160
  */
145
- createDraft(workbook: IWorkbook, template?: T): D;
161
+ createDraft?(workbook: IWorkbook, template?: T): D;
146
162
  /**
147
163
  * Creates a draft from an ACTIVATION seed — the `draft` of the task pane's `ItemsPaneArgs`, put
148
164
  * there by whatever opened the pane (a conditional-format preset command, say). The panel opens
@@ -172,9 +188,11 @@ export interface ItemsDescriptor<T = any, D = T> {
172
188
  * Whatever spans more than one model write belongs in one transaction here, or undo unwinds a
173
189
  * single edit a field at a time.
174
190
  */
175
- save(workbook: IWorkbook, draft: D, target: T | null): Promise<void> | void;
191
+ save?(workbook: IWorkbook, draft: D, target: T | null): Promise<void> | void;
176
192
  /**
177
- * Removes an item.
193
+ * Removes an item. For a list whose items are not deleted so much as retired — breaking an
194
+ * external link turns its formulas into values first — this is that operation, and
195
+ * {@link ItemMessageKeys.delete} names it.
178
196
  */
179
197
  delete(item: T, workbook: IWorkbook): void;
180
198
  /**
@@ -186,6 +204,23 @@ export interface ItemsDescriptor<T = any, D = T> {
186
204
  * move affordances.
187
205
  */
188
206
  moveBy?(item: T, delta: number, workbook: IWorkbook): void;
207
+ /**
208
+ * Selects what an item designates on the grid. Invoked by a click on the card's SURFACE — not on
209
+ * its title, its actions, or a field it carries, which act for themselves.
210
+ *
211
+ * @remarks
212
+ * Omit when nothing on the grid corresponds to an item. An item that sometimes has nothing to
213
+ * select (a name holding a constant) simply does nothing.
214
+ */
215
+ select?(item: T, workbook: IWorkbook): void;
216
+ /**
217
+ * The text a search query is matched against — everything a user might remember an item by.
218
+ *
219
+ * @remarks
220
+ * Supplying it puts a search field over the list. Matching is a case-insensitive substring
221
+ * test the panel performs; the feature only says what is searchable.
222
+ */
223
+ getSearchText?(item: T, t: (key: string, options?: any) => string): string;
189
224
  /**
190
225
  * The one-line card header.
191
226
  */
@@ -208,8 +243,9 @@ export interface ItemsDescriptor<T = any, D = T> {
208
243
  */
209
244
  CardSubtitle?: React.ComponentType<ItemBodyProps<T>>;
210
245
  /**
211
- * The feature editor, rendered inside the save/cancel shell.
246
+ * The feature editor, rendered inside the save/cancel shell. Omit for an unauthorable list —
247
+ * see {@link createDraft}.
212
248
  */
213
- EditorBody: React.ComponentType<ItemEditorProps<D>>;
249
+ EditorBody?: React.ComponentType<ItemEditorProps<D>>;
214
250
  }
215
251
  //# sourceMappingURL=ItemsDescriptor.d.ts.map
@@ -23,6 +23,15 @@ export interface ItemsPanelProps<T = any, D = T> extends React.HTMLAttributes<HT
23
23
  * `descriptor.getItems`, so the feature panel holds both and rebuilds the descriptor.
24
24
  */
25
25
  headerActions?: React.ReactNode;
26
+ /**
27
+ * Rendered right-aligned under the search field — view toggles that qualify what the list shows
28
+ * (a hidden-items switch) and should read as secondary to it, not as a peer of the heading.
29
+ *
30
+ * @remarks
31
+ * Kept reachable when the list is empty, for the same reason as {@link headerActions}: an empty
32
+ * list is a state these controls can produce.
33
+ */
34
+ listActions?: React.ReactNode;
26
35
  /**
27
36
  * Enables drag reordering of the cards, and animates every reorder — dropped drags and the
28
37
  * move up/down buttons alike.
@@ -1,11 +1,18 @@
1
1
  import { default as React } from 'react';
2
- import { IWorkbook } from '@sheetxl/sdk';
2
+ import { IWorkbook, INamed } from '@sheetxl/sdk';
3
+ import { ItemsPaneArgs } from '@sheetxl/react';
3
4
  export interface NamedDetailsPanelProps extends React.HTMLAttributes<HTMLDivElement> {
4
5
  workbook: IWorkbook;
6
+ /**
7
+ * The task pane's activation argument. `insert` opens the pane on a new name and `edit` on an
8
+ * existing one — how the name box's "Define Name…" and "Edit…" reach this editor rather than a
9
+ * dialog of their own. Nothing is seeded from properties: a name has no preset to hand over.
10
+ */
11
+ args?: ItemsPaneArgs<never, INamed>;
5
12
  }
6
13
  /**
7
14
  * The managed-names task pane: every defined name in the workbook — across all scopes and of every
8
- * type — with add/edit/delete and a hidden-names toggle.
15
+ * type — with add/edit/delete, search, and a hidden-names toggle.
9
16
  */
10
17
  export declare const NamedDetailsPanel: React.NamedExoticComponent<NamedDetailsPanelProps & React.RefAttributes<HTMLDivElement>>;
11
18
  //# sourceMappingURL=NamedDetailsPanel.d.ts.map
@@ -1,3 +1,4 @@
1
- import { TaskPaneProps } from '@sheetxl/react';
2
- export declare const NamedDetailsTaskPane: (props: TaskPaneProps) => import("react").JSX.Element;
1
+ import { INamed } from '@sheetxl/sdk';
2
+ import { TaskPaneProps, ItemsPaneArgs } from '@sheetxl/react';
3
+ export declare const NamedDetailsTaskPane: (props: TaskPaneProps<any, ItemsPaneArgs<never, INamed>>) => import("react").JSX.Element;
3
4
  //# sourceMappingURL=NamedDetailsTaskPane.d.ts.map
@@ -9,7 +9,7 @@ export interface NamedEditorPanelProps {
9
9
  workbook: IWorkbook;
10
10
  }
11
11
  /**
12
- * Editor panel for one defined name: its name, scope, expression, comment and visibility.
12
+ * Editor panel for one defined name: its name, expression, scope, comment and visibility.
13
13
  *
14
14
  * @remarks
15
15
  * Writes straight through to {@link NamedDraft} while mirroring each field in local state to
@@ -0,0 +1,32 @@
1
+ import { default as React } from 'react';
2
+ import { INamed } from '@sheetxl/sdk';
3
+ export interface NamedExpressionFieldProps {
4
+ /**
5
+ * The name to redefine. Written through on commit.
6
+ */
7
+ named: INamed;
8
+ /**
9
+ * Field label. Defaults to "Refers To"; `null` renders none, for a host that names it itself.
10
+ */
11
+ label?: React.ReactNode | null;
12
+ /**
13
+ * Helper line below the field. Defaults to `null` (none) — a reserved line is left for the error
14
+ * message, which is the one thing a user can get wrong here.
15
+ */
16
+ helperText?: React.ReactNode | null;
17
+ }
18
+ /**
19
+ * A name's "Refers to" — its expression, as a formula field that writes back to the name.
20
+ *
21
+ * @remarks
22
+ * The card's counterpart to a conditional format's "Apply to": re-pointing a name is the edit
23
+ * users reach for most, and it needs none of the editor. The FORMULA grammar, not `'reference'`,
24
+ * for the reason the editor gives — a name refers to any expression, of which a range is only the
25
+ * common case — and unanchored, so references stay sheet-qualified.
26
+ *
27
+ * Commit-on-done: a redefinition lands one entry on the undo stack and re-resolves every formula
28
+ * that reads the name, so it is not something to do on every keystroke. A derived name (a table's)
29
+ * shows its range but takes no edit; renaming or resizing a table belongs to the table.
30
+ */
31
+ export declare const NamedExpressionField: React.NamedExoticComponent<NamedExpressionFieldProps>;
32
+ //# sourceMappingURL=NamedExpressionField.d.ts.map
@@ -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.
@@ -1,2 +1,3 @@
1
- export * from './ProtectedRangePlugin';
1
+ export * from './ProtectedRangeDraft';
2
+ export * from './ProtectedRangeDetailsPanel';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -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 { ISheet } from '@sheetxl/sdk';
3
+ export interface ProtectedCellsPanelProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ /** The sheet whose selected cells are edited. */
5
+ sheet: ISheet;
6
+ }
7
+ /**
8
+ * The **Cells** tab of Manage Protection: the protection format of the selected cells.
9
+ *
10
+ * @remarks
11
+ * Two checkboxes over `IStyle.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
@@ -0,0 +1,35 @@
1
+ import { default as React } from 'react';
2
+ import { ISheet } from '@sheetxl/sdk';
3
+ export interface SheetProtectionPanelProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ /** The sheet whose protection is edited. */
5
+ sheet: ISheet;
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 SheetProtectionPanel: React.NamedExoticComponent<SheetProtectionPanelProps & React.RefAttributes<HTMLDivElement>>;
34
+ export default SheetProtectionPanel;
35
+ //# sourceMappingURL=SheetProtectionPanel.d.ts.map