@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.
Files changed (302) hide show
  1. package/README.md +2 -2
  2. package/browser/cjs/BQJKf40kttQWOzLw.cjs +20 -0
  3. package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +1 -0
  4. package/browser/cjs/B_D3JKseVvpRyX-E.cjs +1 -0
  5. package/browser/cjs/B_WyRpeiesnEiNP4.cjs +11 -0
  6. package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +2 -0
  7. package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +2 -0
  8. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
  9. package/browser/cjs/ByIEqNsvj52sihT9.cjs +5 -0
  10. package/browser/cjs/C3moehR3VOd0LnmM.cjs +1 -0
  11. package/browser/cjs/C97KHSuikAbr1qVM.cjs +1 -0
  12. package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +1 -0
  13. package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +1 -0
  14. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +1 -0
  15. package/browser/cjs/CZm1jVZaHQ246prW.cjs +1 -0
  16. package/browser/cjs/CdDYyAfccXme8w6m.cjs +1 -0
  17. package/browser/cjs/DBJLJGiCGXesx5n6.cjs +1 -0
  18. package/browser/cjs/DLScL5AOXhHu9O9H.cjs +7 -0
  19. package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +1 -0
  20. package/browser/cjs/IASAYG6qgv7lJY7y.cjs +1 -0
  21. package/browser/cjs/KZvriGbhEOVkQD0b.cjs +1 -0
  22. package/browser/cjs/UnMhi28mbvLiOXQe.cjs +1 -0
  23. package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +1 -0
  24. package/browser/cjs/iMWEL01eC83oU-YY.cjs +1 -0
  25. package/browser/cjs/index.cjs +2 -7
  26. package/browser/cjs/w2GjebPlOFv3pCbm.cjs +1 -0
  27. package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +1 -0
  28. package/browser/esm/0EONOhVZ7oT0C_G2.mjs +1150 -0
  29. package/browser/esm/5x7evORpymnb5SfW.mjs +129 -0
  30. package/browser/esm/BACBR1jjcpJbhOWA.mjs +191 -0
  31. package/browser/esm/BPZne8WpzrkWOH6L.mjs +47 -0
  32. package/browser/esm/BeKa8xVj69hAVKRN.mjs +155 -0
  33. package/browser/esm/BeQ9bqOvNNP-arFP.mjs +219 -0
  34. package/browser/esm/Bf3PIOM6U-NmWk2O.mjs +20 -0
  35. package/browser/esm/C4BPDYeqgN59wMGp.mjs +411 -0
  36. package/browser/esm/CGbn_xdhgTvk2mvb.mjs +612 -0
  37. package/browser/esm/CKADOp3hTx0MSNY7.mjs +52 -0
  38. package/browser/esm/CR2sUEZyRqVv2SNl.mjs +105 -0
  39. package/browser/esm/CTN8J8c1AneJu3Lu.mjs +2207 -0
  40. package/browser/esm/Cc5akPEmIwbgKIfc.mjs +516 -0
  41. package/browser/esm/CePKCTL6D05kDy2E.mjs +82 -0
  42. package/browser/esm/DBM1blcMTZMAM-eR.mjs +217 -0
  43. package/browser/esm/DPBnKqhSuJ414Pxx.mjs +99 -0
  44. package/browser/esm/F51tGfYHocox80zY.mjs +468 -0
  45. package/browser/esm/SDzKpaiuhQux7tAh.mjs +5391 -0
  46. package/browser/esm/TDH9XceS8cAkO5d3.mjs +508 -0
  47. package/browser/esm/XKVlG-x_9q5dbVIW.mjs +8878 -0
  48. package/browser/esm/fJiwyUQJ18X-cCQz.mjs +1376 -0
  49. package/browser/esm/fel6EbPAcZOsBmks.mjs +42 -0
  50. package/browser/esm/flvjZEXrSDrtDzLB.mjs +113 -0
  51. package/browser/esm/index.mjs +152 -91
  52. package/licenses/dependencies.txt +137 -627
  53. package/node/esm/B9-0usA1hSoD0Nk3.mjs +679 -0
  54. package/node/esm/BO1vNzjGWYdZdbq9.mjs +113 -0
  55. package/node/esm/BYigefA8bf9FOVib.mjs +47 -0
  56. package/node/esm/BdrLZp98HQaVMykZ.mjs +82 -0
  57. package/node/esm/BlubX7gm8wTUNiZ-.mjs +106 -0
  58. package/node/esm/C8a6QwMGW1tMiWA6.mjs +516 -0
  59. package/node/esm/CCCnorMn30oUDDIY.mjs +4536 -0
  60. package/node/esm/CKpik3HRSANKEy4G.mjs +99 -0
  61. package/node/esm/CTZcfST8pUcLMail.mjs +509 -0
  62. package/node/esm/D1K9Ji7iQwnOnd1-.mjs +190 -0
  63. package/node/esm/DuUiuB59bQRPQi-D.mjs +155 -0
  64. package/node/esm/eKP73GEWmonTXpfv.mjs +470 -0
  65. package/node/esm/g3y8kxL1Ln214UNr.mjs +129 -0
  66. package/node/esm/index.mjs +10603 -2832
  67. package/package.json +27 -27
  68. package/resources/contents.json +30 -0
  69. package/resources/locales/contents.json +44 -0
  70. package/resources/locales/de/groups.cmd.json +219 -0
  71. package/resources/locales/de/studio.cmd.json +159 -0
  72. package/resources/locales/de/ui.msg.json +507 -0
  73. package/resources/locales/en/groups.cmd.json +219 -0
  74. package/resources/locales/en/studio.cmd.json +159 -0
  75. package/resources/locales/en/ui.msg.json +508 -0
  76. package/types/index.d.ts +2 -1761
  77. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +131 -0
  78. package/types/src/anchorItems/AnchorItemsPanel.d.ts +29 -0
  79. package/types/src/anchorItems/index.d.ts +3 -0
  80. package/types/src/border/BorderPopupButton.d.ts +30 -0
  81. package/types/src/border/BorderStylePopupButton.d.ts +40 -0
  82. package/types/src/border/index.d.ts +3 -0
  83. package/types/src/chart/command/InsertChartCommandButton.d.ts +10 -0
  84. package/types/src/chart/command/index.d.ts +2 -0
  85. package/types/src/color/Alpha.d.ts +36 -0
  86. package/types/src/color/Checkboard.d.ts +11 -0
  87. package/types/src/color/CheckboardUtils.d.ts +3 -0
  88. package/types/src/color/ColorButton.d.ts +21 -0
  89. package/types/src/color/ColorButtonList.d.ts +17 -0
  90. package/types/src/color/ColorPanel.d.ts +71 -0
  91. package/types/src/color/ColorPopupButton.d.ts +29 -0
  92. package/types/src/color/CustomColorPanel.d.ts +16 -0
  93. package/types/src/color/EditableInput.d.ts +22 -0
  94. package/types/src/color/Hue.d.ts +29 -0
  95. package/types/src/color/Saturation.d.ts +45 -0
  96. package/types/src/color/SketchFields.d.ts +9 -0
  97. package/types/src/color/Swatch.d.ts +16 -0
  98. package/types/src/color/Types.d.ts +11 -0
  99. package/types/src/color/_Utils.d.ts +4 -0
  100. package/types/src/color/index.d.ts +7 -0
  101. package/types/src/command/AccountingStyleCommandButton.d.ts +18 -0
  102. package/types/src/command/AppearanceCommandButton.d.ts +3 -0
  103. package/types/src/command/BorderCommandButton.d.ts +20 -0
  104. package/types/src/command/ColorCommandButton.d.ts +23 -0
  105. package/types/src/command/DocThemeCommandButton.d.ts +19 -0
  106. package/types/src/command/FileCommandButton.d.ts +8 -0
  107. package/types/src/command/FontFamilyCommandButton.d.ts +9 -0
  108. package/types/src/command/FontSizeCommandButton.d.ts +21 -0
  109. package/types/src/command/InsertFunctionCommandPopupButton.d.ts +9 -0
  110. package/types/src/command/InsertFunctionSumCommandPopupButton.d.ts +8 -0
  111. package/types/src/command/LanguageCommandButton.d.ts +19 -0
  112. package/types/src/command/LocaleCommandButton.d.ts +17 -0
  113. package/types/src/command/NumberFormatCommandButton.d.ts +6 -0
  114. package/types/src/command/PasteCommandButton.d.ts +14 -0
  115. package/types/src/command/PresetCellStylesCommandButton.d.ts +11 -0
  116. package/types/src/command/PresetTableStylesCommandButton.d.ts +12 -0
  117. package/types/src/command/RegisterCatalog.d.ts +3 -0
  118. package/types/src/command/SheetCommandGroups.d.ts +10 -0
  119. package/types/src/command/SheetZoomCommandButton.d.ts +9 -0
  120. package/types/src/command/StudioCommandGroups.d.ts +11 -0
  121. package/types/src/command/TextEffectsCommandButton.d.ts +6 -0
  122. package/types/src/command/TextRotateGroupButton.d.ts +14 -0
  123. package/types/src/command/UndoRedoCommandButton.d.ts +14 -0
  124. package/types/src/command/WalkingCopyCommandButton.d.ts +6 -0
  125. package/types/src/command/WorkbookCommandGroups.d.ts +11 -0
  126. package/types/src/command/index.d.ts +23 -0
  127. package/types/src/conditionalFormat/ColorScaleRulePanel.d.ts +18 -0
  128. package/types/src/conditionalFormat/ConditionalFormatDetailsPanel.d.ts +23 -0
  129. package/types/src/conditionalFormat/ConditionalFormatDetailsTaskPane.d.ts +4 -0
  130. package/types/src/conditionalFormat/ConditionalFormatEditorPanel.d.ts +20 -0
  131. package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +2 -0
  132. package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +32 -0
  133. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +34 -0
  134. package/types/src/conditionalFormat/ConditionalFormatTitle.d.ts +10 -0
  135. package/types/src/conditionalFormat/DataBarRulePanel.d.ts +23 -0
  136. package/types/src/conditionalFormat/IconSetRulePanel.d.ts +23 -0
  137. package/types/src/conditionalFormat/PresetChip.d.ts +30 -0
  138. package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts +20 -0
  139. package/types/src/conditionalFormat/RulePreview.d.ts +23 -0
  140. package/types/src/conditionalFormat/RuleSection.d.ts +20 -0
  141. package/types/src/conditionalFormat/ScaleMiniGrid.d.ts +59 -0
  142. package/types/src/conditionalFormat/ScaleStopRow.d.ts +34 -0
  143. package/types/src/conditionalFormat/index.d.ts +3 -0
  144. package/types/src/conditionalFormat/previewColor.d.ts +50 -0
  145. package/types/src/conditions/AverageOption.d.ts +25 -0
  146. package/types/src/conditions/BetweenOption.d.ts +25 -0
  147. package/types/src/conditions/BooleanOption.d.ts +24 -0
  148. package/types/src/conditions/CombinatorOption.d.ts +41 -0
  149. package/types/src/conditions/ConditionEditor.d.ts +57 -0
  150. package/types/src/conditions/ConditionUtils.d.ts +83 -0
  151. package/types/src/conditions/DateTimeOption.d.ts +43 -0
  152. package/types/src/conditions/ExpressionOption.d.ts +26 -0
  153. package/types/src/conditions/InSetOption.d.ts +37 -0
  154. package/types/src/conditions/NumberOption.d.ts +24 -0
  155. package/types/src/conditions/OperatorAndParamEditor.d.ts +55 -0
  156. package/types/src/conditions/OperatorSelect.d.ts +35 -0
  157. package/types/src/conditions/OperatorSelectPopupButton.d.ts +39 -0
  158. package/types/src/conditions/ScalarOption.d.ts +29 -0
  159. package/types/src/conditions/SelectorSelect.d.ts +43 -0
  160. package/types/src/conditions/StringOption.d.ts +24 -0
  161. package/types/src/conditions/TimePeriodOption.d.ts +25 -0
  162. package/types/src/conditions/TopNOption.d.ts +25 -0
  163. package/types/src/conditions/index.d.ts +13 -0
  164. package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +16 -0
  165. package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -0
  166. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +12 -0
  167. package/types/src/dataValidation/DataValidationPlugin.d.ts +2 -0
  168. package/types/src/dataValidation/index.d.ts +2 -0
  169. package/types/src/debug/DebugUtils.d.ts +4 -0
  170. package/types/src/debug/index.d.ts +2 -0
  171. package/types/src/dialog/CommentsDialog.d.ts +11 -0
  172. package/types/src/dialog/FindReplaceWindow.d.ts +13 -0
  173. package/types/src/dialog/HyperlinkDialog.d.ts +28 -0
  174. package/types/src/dialog/InsertFunctionDialog.d.ts +25 -0
  175. package/types/src/dialog/NamedReferenceDialog.d.ts +17 -0
  176. package/types/src/dialog/NumberFormatDialog.d.ts +12 -0
  177. package/types/src/dialog/ResizeHeaderDialog.d.ts +15 -0
  178. package/types/src/dialog/ShortcutKeysDialog.d.ts +9 -0
  179. package/types/src/dialog/ShortcutKeysPanel.d.ts +28 -0
  180. package/types/src/dialog/SortDialog.d.ts +9 -0
  181. package/types/src/dialog/TableNewDialog.d.ts +14 -0
  182. package/types/src/dialog/WorkbookStatisticsDialog.d.ts +13 -0
  183. package/types/src/dialog/index.d.ts +10 -0
  184. package/types/src/filter/ColumnMenu.d.ts +13 -0
  185. package/types/src/filter/FilterList.d.ts +28 -0
  186. package/types/src/filter/index.d.ts +3 -0
  187. package/types/src/form/FormulaField.d.ts +221 -0
  188. package/types/src/form/InputField.d.ts +89 -0
  189. package/types/src/form/index.d.ts +3 -0
  190. package/types/src/formulaBar/FormulaBar.d.ts +8 -0
  191. package/types/src/formulaBar/IFormulaBar.d.ts +51 -0
  192. package/types/src/formulaBar/index.d.ts +3 -0
  193. package/types/src/function/FunctionArgumentsPanel.d.ts +57 -0
  194. package/types/src/function/FunctionSearchPanel.d.ts +35 -0
  195. package/types/src/function/InsertFunctionWizard.d.ts +79 -0
  196. package/types/src/function/index.d.ts +4 -0
  197. package/types/src/function/paneMetrics.d.ts +33 -0
  198. package/types/src/index.d.ts +21 -0
  199. package/types/src/itemsPanel/EditorPanel.d.ts +21 -0
  200. package/types/src/itemsPanel/ItemCard.d.ts +57 -0
  201. package/types/src/itemsPanel/ItemsDescriptor.d.ts +215 -0
  202. package/types/src/itemsPanel/ItemsPanel.d.ts +45 -0
  203. package/types/src/itemsPanel/SortableCards.d.ts +67 -0
  204. package/types/src/itemsPanel/index.d.ts +6 -0
  205. package/types/src/movable/MovableContextMenu.d.ts +13 -0
  206. package/types/src/movable/index.d.ts +2 -0
  207. package/types/src/named/INamedCollectionEditor.d.ts +37 -0
  208. package/types/src/named/NamedCollectionEditor.d.ts +7 -0
  209. package/types/src/named/NamedDetailsPanel.d.ts +11 -0
  210. package/types/src/named/NamedDetailsTaskPane.d.ts +3 -0
  211. package/types/src/named/NamedDraft.d.ts +68 -0
  212. package/types/src/named/NamedEditorPanel.d.ts +19 -0
  213. package/types/src/named/NamedPlugin.d.ts +2 -0
  214. package/types/src/named/index.d.ts +8 -0
  215. package/types/src/numberFormat/NumberFormatPanel.d.ts +29 -0
  216. package/types/src/numberFormat/NumberFormatTaskPane.d.ts +12 -0
  217. package/types/src/numberFormat/index.d.ts +8 -0
  218. package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +20 -0
  219. package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +3 -0
  220. package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +27 -0
  221. package/types/src/protectedRange/ProtectedRangePlugin.d.ts +2 -0
  222. package/types/src/protectedRange/index.d.ts +2 -0
  223. package/types/src/protection/WorkbookProtectionDialog.d.ts +23 -0
  224. package/types/src/protection/WorkbookProtectionPanel.d.ts +51 -0
  225. package/types/src/protection/index.d.ts +3 -0
  226. package/types/src/sheet/SheetTabMenu.d.ts +21 -0
  227. package/types/src/sheet/SheetsAllMenu.d.ts +16 -0
  228. package/types/src/sheet/index.d.ts +3 -0
  229. package/types/src/statusBar/NumberStats.d.ts +27 -0
  230. package/types/src/statusBar/SheetZoomScale.d.ts +11 -0
  231. package/types/src/statusBar/StatusBar.d.ts +35 -0
  232. package/types/src/statusBar/index.d.ts +4 -0
  233. package/types/src/studio/CommandsWrapper.d.ts +36 -0
  234. package/types/src/studio/DefaultLogo.d.ts +3 -0
  235. package/types/src/studio/EagerStudio.d.ts +5 -0
  236. package/types/src/studio/Studio.d.ts +26 -0
  237. package/types/src/studio/StudioCommandProvider.d.ts +26 -0
  238. package/types/src/studio/StudioCommands.d.ts +115 -0
  239. package/types/src/studio/StudioNotifierProvider.d.ts +10 -0
  240. package/types/src/studio/StudioProps.d.ts +372 -0
  241. package/types/src/studio/StudioSplitPane.d.ts +60 -0
  242. package/types/src/studio/StudioTaskPaneArea.d.ts +8 -0
  243. package/types/src/studio/StudioToolbar.d.ts +37 -0
  244. package/types/src/studio/index.d.ts +4 -0
  245. package/types/src/studio/useStudioApp.d.ts +51 -0
  246. package/types/src/table/TableDetailsPanel.d.ts +17 -0
  247. package/types/src/table/TableDetailsTaskPane.d.ts +3 -0
  248. package/types/src/table/TablePlugin.d.ts +2 -0
  249. package/types/src/table/TableStyleCanvasPreview.d.ts +21 -0
  250. package/types/src/table/TableStyleOptionsPanel.d.ts +38 -0
  251. package/types/src/table/TableStylePreview.d.ts +43 -0
  252. package/types/src/table/index.d.ts +7 -0
  253. package/types/src/theme/ThemeSelectButton.d.ts +23 -0
  254. package/types/src/theme/ThemeSelectPanel.d.ts +17 -0
  255. package/types/src/theme/ThemeSelectPopupButton.d.ts +24 -0
  256. package/types/src/theme/ThemeUtils.d.ts +57 -0
  257. package/types/src/theme/index.d.ts +5 -0
  258. package/types/src/toast/ToastError.d.ts +10 -0
  259. package/types/src/toast/index.d.ts +2 -0
  260. package/types/src/toolbar/WorkbookToolbars.d.ts +46 -0
  261. package/types/src/toolbar/index.d.ts +2 -0
  262. package/types/src/workbook/DefaultRenderers.d.ts +23 -0
  263. package/types/src/workbook/DocumentTitle.d.ts +69 -0
  264. package/types/src/workbook/WorkbookContextMenu.d.ts +13 -0
  265. package/types/src/workbook/WorkbookElement.d.ts +12 -0
  266. package/types/src/workbook/WorkbookStrip.d.ts +37 -0
  267. package/types/src/workbook/index.d.ts +7 -0
  268. package/browser/cjs/52tjAlO48FpZgfzG.cjs +0 -6
  269. package/browser/cjs/BGu2_YqVJMQjYx4D.cjs +0 -18
  270. package/browser/cjs/C83Rzj_Jwq-o69wr.cjs +0 -42
  271. package/browser/cjs/CldYLQnjFC_g8o3t.cjs +0 -6
  272. package/browser/cjs/Cpv3j_Ra1h-axLRG.cjs +0 -6
  273. package/browser/cjs/D-5Cg1Y0zALF_JEs.cjs +0 -7
  274. package/browser/cjs/D58sOTRZwQ59CgOf.cjs +0 -6
  275. package/browser/cjs/DEd-0xEuUoELRnQb.cjs +0 -6
  276. package/browser/cjs/DahKlfm68zudpndW.cjs +0 -20
  277. package/browser/cjs/Dd7t0gfO3bzS0-B8.cjs +0 -6
  278. package/browser/cjs/DxAU6DV3UCUDVoSH.cjs +0 -6
  279. package/browser/cjs/uj7GSwDaUyTKEjrN.cjs +0 -6
  280. package/browser/esm/BLuR1D2n--9QSJL9.mjs +0 -26
  281. package/browser/esm/BSOhdb74viwmCi54.mjs +0 -2159
  282. package/browser/esm/BTAhrEfV-DH0-Ldk.mjs +0 -640
  283. package/browser/esm/BgsyX5QL9OLy0DN3.mjs +0 -4533
  284. package/browser/esm/CFPGs5_tLGrpkW8L.mjs +0 -25
  285. package/browser/esm/CbCX3t0hx-h6pV7Q.mjs +0 -46
  286. package/browser/esm/D3dDP89ml0258MGb.mjs +0 -53
  287. package/browser/esm/DYk55y6IEOCytW3g.mjs +0 -50
  288. package/browser/esm/DfUqOxFfhJcaq847.mjs +0 -2411
  289. package/browser/esm/DhWeeZyxUc-LbP8E.mjs +0 -50
  290. package/browser/esm/DqLDLUCqiFovdBf0.mjs +0 -155
  291. package/browser/esm/Dvo0k3olgFuAso_O.mjs +0 -54
  292. package/node/assets/style.css +0 -1
  293. package/node/esm/BM_pvbGlgXydGNT3.mjs +0 -52
  294. package/node/esm/CFBcwLP2q2_EUXvE.mjs +0 -156
  295. package/node/esm/Cg9JFB8nOnVfR0Uo.mjs +0 -26
  296. package/node/esm/D3kxA1LpG-PpZvCb.mjs +0 -25
  297. package/node/esm/D_s6w_GWb8l7uGW3.mjs +0 -53
  298. package/node/esm/XI3nj4zD7mXOyxSm.mjs +0 -57
  299. package/node/esm/YXQgUYqP1qsi_MPX.mjs +0 -46
  300. package/node/esm/m2lejeU-ViEhFj_N.mjs +0 -91
  301. package/node/esm/sevERUPIPJCb-jYL.mjs +0 -88
  302. package/node/esm/zdjaq7yEfEvgHrDi.mjs +0 -50
@@ -0,0 +1,372 @@
1
+ import { IWorkbook, IWorkbookIO } from '@sheetxl/sdk';
2
+ import { ErrorPanelProps, LoadingPanelProps } from '@sheetxl/utils-react';
3
+ import { SxProps } from '@mui/system';
4
+ import { Theme, ThemeOptions, PaperProps } from '@mui/material';
5
+ import { TaskPaneAreaProps, ITaskPaneAreaElement, IWorkbookElement, WorkbookElementProps, WorkbookLoadEvent, SheetEditable } from '@sheetxl/react';
6
+ import { ExplicitTokens } from '../theme/ThemeUtils';
7
+ import { DocumentTitleProps } from '../workbook';
8
+ import { WorkbookToolbarsProps } from '../toolbar';
9
+ import { FormulaBarProps, IFormulaBarElement } from '../formulaBar';
10
+ import { StatusBarProps } from '../statusBar';
11
+ /**
12
+ * Properties for the Studio component.
13
+ */
14
+ export interface StudioProps extends Omit<PaperProps, 'autoFocus' | 'ref'> {
15
+ /**
16
+ * The workbook for the studio — a live {@link IWorkbook}, a `Promise` for one, or
17
+ * {@link IWorkbookIO.ReadOptions} the studio reads.
18
+ *
19
+ * @remarks
20
+ * The workbook is the studio's value object: it carries its own identity — the
21
+ * {@link IWorkbookIO.Origin | origin} (virtual file handle) and display name — so there is no
22
+ * separate document wrapper to thread. The studio adds only session state (the dirty tracker).
23
+ *
24
+ * @see
25
+ * * {@link IWorkbook}
26
+ * * {@link IWorkbookIO.ReadOptions}
27
+ */
28
+ workbook?: IWorkbook | Promise<IWorkbook> | IWorkbookIO.ReadOptions;
29
+ /**
30
+ * Called when the studio's live workbook changes — e.g. when a workbook is opened (replacing the
31
+ * current one) via the Studio's own file commands or drag-and-drop, or on unmount (`null`).
32
+ *
33
+ * @param workbook - The current workbook (carrying its origin + display name), or `null`.
34
+ *
35
+ * @remarks
36
+ * The Studio owns Open/replace internally, so a host that manages window-level chrome (tab title,
37
+ * `beforeunload`, see {@link @sheetxl/studio-mui!useStudioApp}) must observe *this* workbook rather
38
+ * than the one it resolved initially — otherwise the title/dirty guard stay bound to the first
39
+ * workbook after an in-app open. Pair with {@link StudioProps.onDirtyChange} for the unsaved flag.
40
+ */
41
+ onWorkbookChange?: (workbook: IWorkbook | null) => void;
42
+ /**
43
+ * Called if the document (a promise / read options) fails to resolve.
44
+ *
45
+ * @param error The error
46
+ */
47
+ onDocumentError?: (error: any) => void;
48
+ /**
49
+ * Customizations for the default error panel shown when the {@link StudioProps.document} fails to
50
+ * resolve. Use {@link StudioProps.renderDocumentError} to replace the panel entirely.
51
+ */
52
+ propsDocumentError?: Partial<ErrorPanelProps>;
53
+ /**
54
+ * Replace the error panel shown when the {@link StudioProps.document} fails to resolve (or cannot be
55
+ * rendered).
56
+ *
57
+ * @remarks
58
+ * The failure is also reported programmatically via {@link StudioProps.onDocumentError}.
59
+ *
60
+ * @defaultValue StackTraceErrorPanel
61
+ */
62
+ renderDocumentError?: (props: ErrorPanelProps) => React.ReactElement;
63
+ /**
64
+ * Customizations for the default loading panel shown while the {@link StudioProps.document} resolves
65
+ * (and the grid first paints). Use {@link StudioProps.renderDocumentLoading} to replace it entirely.
66
+ */
67
+ propsDocumentLoading?: Partial<LoadingPanelProps>;
68
+ /**
69
+ * Replace the loading panel shown while the {@link StudioProps.document} resolves / the grid paints.
70
+ */
71
+ renderDocumentLoading?: (props: LoadingPanelProps) => React.ReactElement;
72
+ /**
73
+ * Customizations forwarded to the underlying (chromeless) workbook grid.
74
+ *
75
+ * @remarks
76
+ * The studio composes its chrome (toolbar / formula bar / status bar / menus) *around* the grid
77
+ * and forwards these to it. Grid-level concerns (sheet, tabs, context menus, scrollbars, etc.)
78
+ * live here rather than flat on {@link StudioProps} — the same containment pattern
79
+ * {@link WorkbookElementProps} uses for `propsSheet`.
80
+ */
81
+ propsWorkbook?: Partial<WorkbookElementProps>;
82
+ /**
83
+ * Callback for when the workbook grid first renders. Useful for hiding/showing loading panels.
84
+ */
85
+ onWorkbookLoad?: (event: WorkbookLoadEvent) => void | Promise<void>;
86
+ /**
87
+ * Allow for customizations on TaskPaneArea.
88
+ */
89
+ propsTaskPaneArea?: Partial<TaskPaneAreaProps>;
90
+ /**
91
+ * Render TaskPaneArea.
92
+ *
93
+ * @param props The properties for the TaskPaneArea.
94
+ * @returns A React Element representing the TaskPaneArea.
95
+ */
96
+ renderTaskPaneArea?: (props: TaskPaneAreaProps) => React.ReactElement<ITaskPaneAreaElement>;
97
+ /**
98
+ * Allow for a side of the taskpane.
99
+ *
100
+ * @defaultValue 'right'
101
+ */
102
+ taskPaneSide?: 'left' | 'right';
103
+ /**
104
+ * Custom logo.
105
+ */
106
+ logo?: React.ReactNode;
107
+ /**
108
+ * Called when the workbook's unsaved-changes (dirty) state changes.
109
+ *
110
+ * @param isDirty `true` when there are unsaved changes since the last save (or the workbook was
111
+ * created), `false` when saved or undone back to the saved state.
112
+ *
113
+ * @remarks
114
+ * Use this to drive a host's "unsaved" affordances — a `beforeunload` close prompt, a tab marker,
115
+ * etc. (see the studio example). Save state is computed from the transaction store, so undoing
116
+ * back to the saved point reports clean again.
117
+ */
118
+ onDirtyChange?: (isDirty: boolean) => void;
119
+ /**
120
+ * Additional document-title (title bar) properties.
121
+ *
122
+ * @remarks
123
+ * If onTitleChange or title is provided then the prop versions are ignored
124
+ */
125
+ propsDocumentTitle?: DocumentTitleProps;
126
+ /**
127
+ * Indicate if the formula bar should be showing.
128
+ *
129
+ * @defaultValue Workbook view model (but can be overridden).
130
+ */
131
+ showFormulaBar?: boolean;
132
+ /**
133
+ * Customizations for the formula bar.
134
+ */
135
+ propsFormulaBar?: Partial<FormulaBarProps>;
136
+ /**
137
+ * Render a custom formula bar (replaces the default).
138
+ */
139
+ renderFormulaBar?: (props: FormulaBarProps) => React.ReactElement;
140
+ /**
141
+ * The shared cell editor. Supply a stable {@link SheetEditable} to drive the grid and
142
+ * formula bar through one instance (free two-way sync); omit to let the studio auto-create one.
143
+ */
144
+ editable?: SheetEditable;
145
+ /**
146
+ * Shows the status bar.
147
+ *
148
+ * @defaultValue Workbook view model (but can be overridden).
149
+ */
150
+ showStatusBar?: boolean;
151
+ /**
152
+ * Customizations for the status bar.
153
+ */
154
+ propsStatusBar?: Partial<StatusBarProps>;
155
+ /**
156
+ * Render a custom status bar (replaces the default).
157
+ */
158
+ renderStatusBar?: (props: StatusBarProps) => React.ReactElement;
159
+ /**
160
+ * Customizations for the toolbar.
161
+ */
162
+ propsToolbar?: Partial<WorkbookToolbarsProps>;
163
+ /**
164
+ * Render a custom toolbar (replaces the default studio toolbar).
165
+ */
166
+ renderToolbar?: (props: WorkbookToolbarsProps) => React.ReactElement;
167
+ /**
168
+ * Slot rendered at the top-left of the toolbar (after the logo, before the title).
169
+ *
170
+ * @remarks
171
+ * Application-level toolbar chrome the studio no longer hardcodes — e.g. a file menu. Inject a
172
+ * {@link @sheetxl/studio-mui!StandaloneFileCommandButton} for the standalone file menu (open / save
173
+ * / import / export); command availability is still governed by the active {@link WorkbookIO}
174
+ * backing store's `canRead` / `canWrite`.
175
+ */
176
+ topLeft?: React.ReactNode;
177
+ /**
178
+ * Slot rendered at the top-right of the toolbar — e.g. an appearance (light/dark) menu. Inject an
179
+ * {@link @sheetxl/studio-mui!AppearanceCommandButton} for the default appearance menu.
180
+ */
181
+ topRight?: React.ReactNode;
182
+ /**
183
+ * MUI theme customization (`ThemeOptions`) merged into Studio's built-in light and dark themes — shared
184
+ * config (e.g. `typography`) plus **per-mode** overrides via MUI's native `colorSchemes: { light, dark }`
185
+ * (the modern replacement for the former `lightTheme`/`darkTheme` props):
186
+ *
187
+ * ```ts
188
+ * muiTheme={{
189
+ * typography: { fontFamily: '…' }, // both modes
190
+ * colorSchemes: {
191
+ * light: { palette: { primary: { main: '#6d28d9' } } }, // light only
192
+ * dark: { palette: { primary: { main: '#a78bfa' } } }, // dark only
193
+ * },
194
+ * }}
195
+ * ```
196
+ *
197
+ * @remarks
198
+ * This is *config*, not state. Light/dark **mode** and the dark-grid/dark-image toggles are self-managed by
199
+ * Studio as persisted preferences (see {@link @sheetxl/react!ThemeStateKey}), driven by the surrounding
200
+ * `PersistenceStateProvider` — not by props. A wrapping `TokenThemeProvider` layers token overrides on top.
201
+ */
202
+ muiTheme?: ThemeOptions;
203
+ /**
204
+ * Explicit `--sxl-*` token values — the host's own colors, stated rather than derived. Addressed by
205
+ * **cell**: a `(surface × mode)` pair, so a host can name the header paper without a new token existing:
206
+ *
207
+ * ```ts
208
+ * tokens={{
209
+ * dark: {
210
+ * app: {
211
+ * 'color-base-200': '#1f1f1f', // the chrome/desktop surface
212
+ * 'color-input': '#313131', // the formula bar / name box field
213
+ * 'color-input-border': '#3c3c3c',
214
+ * },
215
+ * header: { 'color-base-100': '#181818' }, // the row/column header paper
216
+ * },
217
+ * }}
218
+ * ```
219
+ *
220
+ * @remarks
221
+ * Use this — not {@link muiTheme} — for anything the MUI palette has no slot for. Studio derives what you
222
+ * leave unset (gridlines, the header hover step) from the five palette slots by *elevation* math, which
223
+ * assumes "raised" means "lighter". A flat design language (VS Code, Fluent) names those surfaces outright
224
+ * and does not follow that curve, so stating them here makes the derivation stand down for exactly those
225
+ * cells and keeps deriving only the rest.
226
+ *
227
+ * The surfaces are `app` (the default cell everything inherits), `header` (row/column headers) and `grid`
228
+ * (the cell body). These are emitted with Studio's own `sxl-app` layer, so they stay **surface-aware**. A
229
+ * wrapping `TokenThemeProvider` remains the right doorway for a client *brand* override, but it emits into
230
+ * `sxl-overrides`, which — being a higher layer — applies across every surface at once.
231
+ */
232
+ tokens?: ExplicitTokens;
233
+ /**
234
+ * Also apply the MUI `CssBaseline` when theming.
235
+ *
236
+ * @defaultValue false
237
+ */
238
+ cssBaseline?: boolean;
239
+ /**
240
+ * Autofocus on load. If loading multiple workbooks or using an a secondary component this
241
+ * should be set to false.
242
+ *
243
+ * @defaultValue false
244
+ */
245
+ autoFocus?: boolean | FocusOptions;
246
+ /**
247
+ * Set the license key via a property
248
+ * @remarks
249
+ * This will only be used the first time.
250
+ */
251
+ licenseKey?: string;
252
+ /**
253
+ * MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
254
+ */
255
+ sx?: SxProps<Theme>;
256
+ }
257
+ /**
258
+ * The workbook-resolution lifecycle state, as read from {@link IStudioAttributes.getWorkbookState}.
259
+ *
260
+ * @remarks
261
+ * This is the *resolution* layer — turning a source ({@link StudioProps.workbook} given as read
262
+ * options / a promise) into an {@link IWorkbook}. `error` is also surfaced via
263
+ * {@link StudioProps.onDocumentError} and the error panel. The grid's first-paint is a separate,
264
+ * later event ({@link StudioProps.onWorkbookLoad}).
265
+ */
266
+ export type WorkbookLoadState = {
267
+ status: 'loading';
268
+ } | {
269
+ status: 'loaded';
270
+ workbook: IWorkbook;
271
+ } | {
272
+ status: 'error';
273
+ error: unknown;
274
+ };
275
+ /**
276
+ * Studio-specific attributes beyond HTMLDivElement.
277
+ *
278
+ * @remarks
279
+ * The Studio is the *chrome* layer (toolbar, formula bar, status bar, theming, file menu) that
280
+ * surrounds a workbook grid. It is a distinct DOM element that *contains* an
281
+ * {@link IWorkbookElement} rather than being one — reach the chrome-free grid via
282
+ * {@link IStudioAttributes.getWorkbookElement}.
283
+ */
284
+ export interface IStudioAttributes {
285
+ /**
286
+ * For runtime type checking.
287
+ */
288
+ isStudioElement: () => true;
289
+ /**
290
+ * Retrieve the chrome-free workbook grid element contained by this studio.
291
+ *
292
+ * @remarks
293
+ * `undefined`/`null` until the workbook has resolved and rendered (e.g. while a loading or error
294
+ * panel is shown).
295
+ */
296
+ getWorkbookElement: () => IWorkbookElement | null;
297
+ /**
298
+ * The studio's live workbook — carrying its origin and display name — or `null` while loading /
299
+ * on error / before a workbook is set. The same instance pushed via
300
+ * {@link StudioProps.onWorkbookChange}, but readable on demand.
301
+ */
302
+ getWorkbook: () => IWorkbook | null;
303
+ /**
304
+ * The authoritative unsaved-changes state of the live workbook.
305
+ *
306
+ * @remarks
307
+ * A synchronous, on-demand read (unlike {@link StudioProps.onDirtyChange}) — e.g. for a host (a
308
+ * VS Code extension) to re-check dirty immediately after an async save, where a concurrent edit
309
+ * may have re-dirtied the workbook between encode and write.
310
+ */
311
+ isDirty: () => boolean;
312
+ /**
313
+ * The shared cell editor, or `null` if none. The same instance the grid and formula
314
+ * bar drive. Delegates to the workbook element's `getEditable()`.
315
+ */
316
+ getEditable: () => SheetEditable | null;
317
+ /**
318
+ * Retrieve the studio's formula bar element, if a formula bar is shown.
319
+ *
320
+ * @remarks
321
+ * The formula bar is studio chrome (the chromeless {@link IWorkbookElement} grid does not have
322
+ * one), so this lives on the studio handle.
323
+ */
324
+ getFormulaBarElement: () => IFormulaBarElement | null;
325
+ /**
326
+ * Move focus into the studio.
327
+ *
328
+ * @remarks
329
+ * A generic focus affordance that delegates to the contained
330
+ * {@link IWorkbookElement}'s `focus()` (which focuses the active sheet). Declared here (rather than
331
+ * relying on the inherited `HTMLDivElement.focus`) so the delegating behavior is part of the
332
+ * studio contract.
333
+ *
334
+ * Signature mirrors `HTMLElement.focus` so {@link IStudioElement} can extend both.
335
+ */
336
+ focus(options?: FocusOptions): void;
337
+ /**
338
+ * The "load promise": resolves with the {@link IWorkbook} once it has loaded, rejects if the
339
+ * load fails.
340
+ *
341
+ * @remarks
342
+ * Lets a host await the outcome of the {@link StudioProps.workbook} resolution (a promise /
343
+ * read options) without wiring {@link StudioProps.onWorkbookChange} + {@link StudioProps.onDocumentError}.
344
+ * Re-armed on each new load (and on {@link IStudioAttributes.retry}); after a load has settled it
345
+ * returns the settled promise. Resolves on workbook load — not the grid's first paint
346
+ * ({@link StudioProps.onWorkbookLoad}).
347
+ */
348
+ whenReady(): Promise<IWorkbook>;
349
+ /**
350
+ * A synchronous read of the current workbook-resolution {@link WorkbookLoadState}.
351
+ */
352
+ getWorkbookState(): WorkbookLoadState;
353
+ /**
354
+ * Re-attempt resolving the current {@link StudioProps.document}.
355
+ *
356
+ * @remarks
357
+ * For programmatic recovery (e.g. a host "reload" action) so an error state isn't terminal —
358
+ * without changing the `workbook` prop identity. The default error panel does NOT surface this (an
359
+ * invalid file stays invalid, so a retry button would be misleading); a custom UI may call it.
360
+ */
361
+ retry(): void;
362
+ }
363
+ /**
364
+ * Type returned via the Studio's ref property.
365
+ *
366
+ * @remarks
367
+ * The studio root is its own DOM element that *contains* a workbook grid; it does not extend
368
+ * {@link IWorkbookElement}. See {@link IStudioAttributes}.
369
+ */
370
+ export interface IStudioElement extends HTMLDivElement, IStudioAttributes {
371
+ }
372
+ //# sourceMappingURL=StudioProps.d.ts.map
@@ -0,0 +1,60 @@
1
+ import { default as React } from 'react';
2
+ /** Whether the split is a horizontal (`row`) or vertical (`column`) divider. */
3
+ export type SplitPaneOrientation = 'row' | 'column';
4
+ /** Which side the task pane sits on. `before` = `taskSide: 'left'`, `after` = `taskSide: 'right'`. */
5
+ export type SplitPaneSide = 'before' | 'after';
6
+ /**
7
+ * A layout slot key, `${orientation}:${side}` (e.g. `'row:after'`). The resized position is meaningfully
8
+ * different per slot (a horizontal drag isn't a vertical drag, a left pane isn't a right pane), so persisted
9
+ * positions are stored as a map keyed by this. New slots populate lazily as they are used.
10
+ */
11
+ export type SplitPaneLayoutKey = `${SplitPaneOrientation}:${SplitPaneSide}`;
12
+ /** Context describing which layout slot a position change belongs to. */
13
+ export interface SplitPaneLayout {
14
+ orientation: SplitPaneOrientation;
15
+ side: SplitPaneSide;
16
+ key: SplitPaneLayoutKey;
17
+ }
18
+ export interface StudioSplitPaneProps extends React.HTMLAttributes<HTMLDivElement> {
19
+ mainElement?: React.ReactElement;
20
+ sidebarElement?: React.ReactElement;
21
+ /**
22
+ * The split position. Either a single value (percent as a `number` or `'40%'`, pixels as `'280px'`) applied
23
+ * to whatever layout is active, or a map keyed by {@link SplitPaneLayoutKey} of per-slot percents. Slots
24
+ * missing from the map (or an omitted `position`) fall back to `'40%'`.
25
+ *
26
+ * @remarks When {@link persistKey} is set this acts as the SEED: a slot the user has already resized reads
27
+ * from the persisted map, and any slot they haven't yet resized falls back to this (so `position` wins on
28
+ * first load).
29
+ */
30
+ position?: number | string | Partial<Record<SplitPaneLayoutKey, number>>;
31
+ /**
32
+ * When set, the split position is self-managed and persisted under this key (via `usePersistenceState`
33
+ * against the surrounding persistence store) as a per-slot map. The resized position of each layout slot
34
+ * (horizontal vs vertical split, and eventually before/after side) is remembered independently. Any slot
35
+ * not yet resized is seeded from {@link position}; {@link onPositionChange} still fires if provided.
36
+ */
37
+ persistKey?: string;
38
+ /**
39
+ * Fired when the user finishes dragging the resizer (not during drag). The second argument identifies the
40
+ * active layout slot so a caller persisting a per-slot map knows which entry to update.
41
+ */
42
+ onPositionChange?: (position: {
43
+ pixels: number;
44
+ percent: number;
45
+ }, layout: SplitPaneLayout) => void;
46
+ /**
47
+ * Whether the layout should be right to left. This will flip the order of the panes and the direction of the split.
48
+ *
49
+ * @defaultValue 'left'
50
+ */
51
+ taskSide?: 'left' | 'right';
52
+ }
53
+ /**
54
+ * Wraps a Workbook element and a taskPane into a split pane.
55
+ *
56
+ * @remarks
57
+ * This adds a split pane to support the task pane alongside the workbook.
58
+ */
59
+ export declare const StudioSplitPane: React.NamedExoticComponent<StudioSplitPaneProps & React.RefAttributes<HTMLDivElement>>;
60
+ //# sourceMappingURL=StudioSplitPane.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { IWorkbook } from '@sheetxl/sdk';
3
+ import { TaskPaneAreaProps, ITaskPaneAreaElement } from '@sheetxl/react';
4
+ export interface StudioTaskPaneAreaProps extends TaskPaneAreaProps {
5
+ model?: IWorkbook;
6
+ }
7
+ export declare const StudioTaskPaneArea: React.ForwardRefExoticComponent<Omit<StudioTaskPaneAreaProps, "ref"> & React.RefAttributes<ITaskPaneAreaElement>>;
8
+ //# sourceMappingURL=StudioTaskPaneArea.d.ts.map
@@ -0,0 +1,37 @@
1
+ import { default as React } from 'react';
2
+ import { IWorkbookElement } from '@sheetxl/react';
3
+ import { WorkbookToolbarsProps } from '../toolbar';
4
+ export interface StudioToolbarProps extends WorkbookToolbarsProps {
5
+ /**
6
+ * The active workbook — application chrome (e.g. the centered `DocumentTitle` built by the studio)
7
+ * reads it; the toolbar strip itself no longer needs it.
8
+ */
9
+ workbook?: IWorkbookElement | null;
10
+ /**
11
+ * optional logo to display in the toolbar
12
+ */
13
+ logo?: React.ReactNode;
14
+ mainElement?: React.ReactNode;
15
+ /**
16
+ * Slot rendered at the start of the toolbar (after the logo, before the title).
17
+ *
18
+ * @remarks
19
+ * Application-level chrome the studio no longer hardcodes — e.g. a file menu. The studio example
20
+ * injects a {@link StandaloneFileCommandButton} here.
21
+ */
22
+ startElement?: React.ReactNode;
23
+ /**
24
+ * Slot rendered at the end of the toolbar.
25
+ *
26
+ * @remarks
27
+ * Application-level chrome — e.g. an appearance (light/dark) menu. The studio example injects an
28
+ * {@link AppearanceCommandButton} here.
29
+ */
30
+ endElement?: React.ReactNode;
31
+ }
32
+ /**
33
+ * Wrap the workbooks toolbar with application level items: a logo, a centered title (`mainElement`),
34
+ * and injectable {@link StudioToolbarProps.startElement} / {@link StudioToolbarProps.endElement} slots.
35
+ */
36
+ export declare const StudioToolbar: React.NamedExoticComponent<StudioToolbarProps & React.RefAttributes<any>>;
37
+ //# sourceMappingURL=StudioToolbar.d.ts.map
@@ -0,0 +1,4 @@
1
+ export * from './StudioProps';
2
+ export * from './Studio';
3
+ export * from './useStudioApp';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,51 @@
1
+ import { IWorkbook, IWorkbookIO } from '@sheetxl/sdk';
2
+ import { WindowChromeOptions } from '@sheetxl/react';
3
+ /**
4
+ * What the studio should open. An {@link IWorkbook} / `Promise` / {@link IWorkbookIO.ReadOptions} /
5
+ * source string. When omitted, the `?source` (and `?title`) URL query is used, else a blank
6
+ * workbook is created.
7
+ */
8
+ export type StudioAppSource = IWorkbook | Promise<IWorkbook> | IWorkbookIO.ReadOptions | string;
9
+ export interface StudioAppOptions extends WindowChromeOptions {
10
+ /**
11
+ * What to open. If omitted, the `?source` / `?title` URL query is read, else a blank workbook is
12
+ * created. See {@link StudioAppSource}.
13
+ */
14
+ source?: StudioAppSource;
15
+ }
16
+ /**
17
+ * The props {@link useStudioApp} returns for spreading onto `<Studio>`.
18
+ */
19
+ export interface StudioAppProps {
20
+ /** The studio's value object — pass straight to `<Studio workbook={…} />`. */
21
+ workbook?: IWorkbook | Promise<IWorkbook> | IWorkbookIO.ReadOptions;
22
+ /** Tracks the studio's live workbook (so the window chrome follows in-app opens). */
23
+ onWorkbookChange: (workbook: IWorkbook | null) => void;
24
+ /** Tracks the unsaved-changes flag (drives the title marker + close prompt). */
25
+ onDirtyChange: (isDirty: boolean) => void;
26
+ }
27
+ /**
28
+ * Single-call setup for a single-per-window **Studio** app: resolves what to open (an explicit
29
+ * {@link StudioAppOptions.source}, the `?source` URL query, or a blank workbook) and manages the
30
+ * window chrome — document/tab title (with an unsaved `●` marker), an unsaved-changes close prompt,
31
+ * and a browser keyboard guard.
32
+ *
33
+ * @returns props to spread onto `<Studio>` — `workbook` (the value to open) plus the
34
+ * `onWorkbookChange` / `onDirtyChange` callbacks the studio fires as it opens/replaces workbooks,
35
+ * so the chrome follows.
36
+ *
37
+ * @remarks
38
+ * Studio owns the workbook lifecycle (resolve, Open/replace, save, dirty tracking) and reports the
39
+ * live workbook + dirty flag via the callbacks; this hook holds them only to drive the window
40
+ * chrome (the workbook itself carries its name/origin). For apps that own the whole window — NOT
41
+ * for embedding `Studio` as a widget (which must not touch the window title / `beforeunload` of
42
+ * its host).
43
+ *
44
+ * @example
45
+ * ```tsx
46
+ * const studioApp = useStudioApp(); // reads ?source, else a blank workbook
47
+ * return <Studio {...studioApp} />;
48
+ * ```
49
+ */
50
+ export declare const useStudioApp: (options?: StudioAppOptions) => StudioAppProps;
51
+ //# sourceMappingURL=useStudioApp.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { ITable, IStyleCollection, INamedCollection } from '@sheetxl/sdk';
3
+ export interface TableDetailsPanelProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ table: ITable;
5
+ getStyles: () => IStyleCollection;
6
+ /**
7
+ * Need so that we can add the table to the names.
8
+ */
9
+ getNames: () => INamedCollection;
10
+ }
11
+ /**
12
+ * TODO
13
+ * - save last searches (up/down arrow to navigate) (in preferences/workbook?)
14
+ * - later add indexing so we can do real-time search and count
15
+ */
16
+ export declare const TableDetailsPanel: React.NamedExoticComponent<TableDetailsPanelProps & React.RefAttributes<HTMLDivElement>>;
17
+ //# sourceMappingURL=TableDetailsPanel.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { TaskPaneProps } from '@sheetxl/react';
2
+ export declare const TableDetailsTaskPane: (props: TaskPaneProps) => import("react").JSX.Element;
3
+ //# sourceMappingURL=TableDetailsTaskPane.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const TablePlugin: () => void;
2
+ //# sourceMappingURL=TablePlugin.d.ts.map
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ import { ITable, IStyleCollection, ITableStyle } from '@sheetxl/sdk';
3
+ export interface TableStyleCanvasPreviewProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ table: ITable;
5
+ tableStyle: ITableStyle;
6
+ styles: IStyleCollection;
7
+ disabled?: boolean;
8
+ /**
9
+ * If provided then this context will be used.
10
+ */
11
+ canvas?: HTMLCanvasElement;
12
+ /**
13
+ * Reference to the element.
14
+ */
15
+ ref?: React.Ref<HTMLDivElement>;
16
+ }
17
+ /**
18
+ * This is a way to canvas based TableStylePreview. It has a simple rendering but is lightweight.
19
+ */
20
+ export declare const TableStyleCanvasPreview: React.NamedExoticComponent<Omit<TableStyleCanvasPreviewProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
+ //# sourceMappingURL=TableStyleCanvasPreview.d.ts.map
@@ -0,0 +1,38 @@
1
+ import { default as React } from 'react';
2
+ import { SxProps } from '@mui/system';
3
+ import { Theme } from '@mui/material';
4
+ import { ITableStyle } from '@sheetxl/sdk';
5
+ /**
6
+ * This is a panel that is used to configure options for a table.
7
+ */
8
+ export interface TableStyleOptionsPanelProps extends React.HTMLAttributes<HTMLElement> {
9
+ /**
10
+ * MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
11
+ */
12
+ sx?: SxProps<Theme>;
13
+ styleOptions: ITableStyle.StyleOptions;
14
+ showHeaderRow?: boolean;
15
+ showTotalRow?: boolean;
16
+ showButton?: boolean;
17
+ onStyleOptionsChange?: (options: ITableStyle.StyleOptions) => void;
18
+ onShowHeaderRowChange?: (showHeaderRow: boolean) => void;
19
+ onShowTotalRowChange?: (showTotalRow: boolean) => void;
20
+ onShowButtonChange?: (showButton: boolean) => void;
21
+ disabled?: boolean;
22
+ }
23
+ export interface TableStyleOptionsAttributes {
24
+ }
25
+ /**
26
+ * Type returned via ref property
27
+ */
28
+ export interface TableStyleOptionsElement extends TableStyleOptionsAttributes, HTMLElement {
29
+ }
30
+ export type TableStyleOptionsAttribute = {
31
+ ref?: React.Ref<TableStyleOptionsElement>;
32
+ };
33
+ /**
34
+ * Shows options with tables.
35
+ * TODO - We will later also have the options as commands.
36
+ */
37
+ export declare const TableStyleOptionsPanel: React.NamedExoticComponent<TableStyleOptionsPanelProps & React.RefAttributes<TableStyleOptionsElement>>;
38
+ //# sourceMappingURL=TableStyleOptionsPanel.d.ts.map
@@ -0,0 +1,43 @@
1
+ import { default as React } from 'react';
2
+ import { BoxProps } from '@mui/material';
3
+ import { ITable, ITableStyle, IStyleCollection } from '@sheetxl/sdk';
4
+ export interface TableStylePreviewProps extends BoxProps {
5
+ /** Required */
6
+ styles: IStyleCollection;
7
+ /**
8
+ * The table to render. If not provided then then a default table will be used.
9
+ */
10
+ table?: ITable;
11
+ /**
12
+ * Allows for table Style to be overwritten.
13
+ */
14
+ tableStyle?: ITableStyle;
15
+ disabled?: boolean;
16
+ /**
17
+ * If `true` then the border will be forced to be thin.
18
+ *
19
+ * @remarks
20
+ * Useful for small thumbnails and mimics Excel.
21
+ */
22
+ forceThinBorder?: boolean;
23
+ /**
24
+ * if `true` then listers will be added to track table changes.
25
+ */
26
+ isLive?: boolean;
27
+ /**
28
+ * Change the default width of the rendered table.
29
+ * @defaultValue `10`
30
+ */
31
+ cellHeight?: number;
32
+ }
33
+ /**
34
+ * Component for rendering tableStyle previews.
35
+ * This uses an html table and the TableStyle renderer.
36
+ *
37
+ * It has the ability to render borders and fills
38
+ * with the their styles.
39
+ * @remarks
40
+ * This is intended to be used for the table options pane but is currently not in use.
41
+ */
42
+ export declare const TableStylePreview: React.NamedExoticComponent<Omit<TableStylePreviewProps, "ref"> & React.RefAttributes<unknown>>;
43
+ //# sourceMappingURL=TableStylePreview.d.ts.map