@sheetxl/studio-mui 0.7.27 → 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/0DtrpXkQQehBmvSv.cjs +0 -6
  269. package/browser/cjs/6C3ia2nz4Zm-AdMZ.cjs +0 -7
  270. package/browser/cjs/BR_EGEaHisRrXAtK.cjs +0 -6
  271. package/browser/cjs/B_v_M4TiavtofChs.cjs +0 -42
  272. package/browser/cjs/C17p-h_nw582H7WD.cjs +0 -20
  273. package/browser/cjs/CInmVysdoHEvvW9h.cjs +0 -6
  274. package/browser/cjs/CMvQZPQsE7MuTMy_.cjs +0 -6
  275. package/browser/cjs/CkNt54AXVfJjIWja.cjs +0 -6
  276. package/browser/cjs/CtRvyhDzQxsk7dkI.cjs +0 -6
  277. package/browser/cjs/DN9cQ4_4ERQvzKn6.cjs +0 -6
  278. package/browser/cjs/DUTuBWUNF-w3Fxtb.cjs +0 -6
  279. package/browser/cjs/pTzEs1wlZj5Bb6xc.cjs +0 -18
  280. package/browser/esm/8ZnwcsRrGO3Nlw9Y.mjs +0 -54
  281. package/browser/esm/BFZ4oCbQukelEVLI.mjs +0 -53
  282. package/browser/esm/BP3nTf4-SLftsj61.mjs +0 -640
  283. package/browser/esm/BSMkBkXBQgZhX1xk.mjs +0 -2159
  284. package/browser/esm/CPLIJbynjEkwF2T0.mjs +0 -4533
  285. package/browser/esm/CuC13VFjBYFE7kub.mjs +0 -155
  286. package/browser/esm/Cw3i8T1tVnm8o6eB.mjs +0 -46
  287. package/browser/esm/D6E8W2KK4dGVRQO_.mjs +0 -25
  288. package/browser/esm/D8xc3AM9QHEqmpb9.mjs +0 -50
  289. package/browser/esm/DA_bEpA5kkn89fmW.mjs +0 -2411
  290. package/browser/esm/DVqOr-7nEXA7IjKJ.mjs +0 -26
  291. package/browser/esm/VAUOzclLs-dR9nt_.mjs +0 -50
  292. package/node/assets/style.css +0 -1
  293. package/node/esm/B9dvpdCD_p2q8aNP.mjs +0 -156
  294. package/node/esm/BBxZemzbmUkoOYdq.mjs +0 -46
  295. package/node/esm/BDdkV45Cf7BLs5jE.mjs +0 -25
  296. package/node/esm/BoX8OuVRgUNgw0Wb.mjs +0 -91
  297. package/node/esm/CPbwVoL6mq66TtTR.mjs +0 -53
  298. package/node/esm/DMd6h1vz-USluank.mjs +0 -88
  299. package/node/esm/DYgtaT_soTbSP8M9.mjs +0 -52
  300. package/node/esm/DxDGSRoOYlWydiwL.mjs +0 -57
  301. package/node/esm/OMgXBbHk-VRNKAop.mjs +0 -26
  302. package/node/esm/bGXLfLFngllNb8U1.mjs +0 -50
@@ -0,0 +1,129 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.1
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { ScalarType as e } from "@sheetxl/sdk";
8
+ import { useTranslator as t } from "@sheetxl/utils-react";
9
+ import { Fragment as n, memo as r, useMemo as i } from "react";
10
+ import { OptionsDialog as a } from "@sheetxl/utils-mui";
11
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
12
+ import { Box as c, Typography as l } from "@mui/material";
13
+ import { messageKey as u } from "@sheetxl/utils";
14
+ var d = ["Ok"], f = [
15
+ e.Number,
16
+ e.String,
17
+ e.Boolean,
18
+ e.Error
19
+ ], p = r((r) => {
20
+ let { context: p, onDone: m, options: h = d, defaultOption: g = h?.[0], sx: _, ...v } = r, y = t(), b = i(() => {
21
+ let t = p?.().getWorkbook();
22
+ if (!t) return null;
23
+ let n = (t) => {
24
+ let n = t.getTypedCounts(f);
25
+ return [
26
+ {
27
+ labelKey: u("workbookStatistics.cellsWithData"),
28
+ value: t.getCount().toLocaleString()
29
+ },
30
+ {
31
+ labelKey: u("workbookStatistics.numbers"),
32
+ value: (n[e.Number] ?? 0).toLocaleString()
33
+ },
34
+ {
35
+ labelKey: u("workbookStatistics.text"),
36
+ value: (n[e.String] ?? 0).toLocaleString()
37
+ },
38
+ {
39
+ labelKey: u("workbookStatistics.booleans"),
40
+ value: (n[e.Boolean] ?? 0).toLocaleString()
41
+ },
42
+ {
43
+ labelKey: u("workbookStatistics.errors"),
44
+ value: (n[e.Error] ?? 0).toLocaleString()
45
+ }
46
+ ];
47
+ }, r = t.getSelectedSheet(), i = r.getUsedRange()?.getCoords(), a = i ? r.getRange({
48
+ rowStart: i.rowEnd,
49
+ colStart: i.colEnd,
50
+ rowEnd: i.rowEnd,
51
+ colEnd: i.colEnd
52
+ }).getAddress() : "–";
53
+ return [{
54
+ titleKey: u("workbookStatistics.currentSheet"),
55
+ subTitle: r.getName(),
56
+ rows: [{
57
+ labelKey: u("workbookStatistics.endOfSheet"),
58
+ value: a
59
+ }, ...n(r.getStats({ onError: "ignore" }))]
60
+ }, {
61
+ titleKey: u("workbookStatistics.workbook"),
62
+ subTitle: null,
63
+ rows: [{
64
+ labelKey: u("workbookStatistics.sheets"),
65
+ value: t.getSheets().getCount().toLocaleString()
66
+ }, ...n(t.getStats({ onError: "ignore" }))]
67
+ }];
68
+ }, [p]);
69
+ return o(a, {
70
+ title: y("workbookStatistics.title"),
71
+ options: h,
72
+ defaultOption: g,
73
+ onDone: m,
74
+ sx: {
75
+ width: "340px",
76
+ ..._
77
+ },
78
+ ...v,
79
+ children: o(c, {
80
+ sx: {
81
+ display: "flex",
82
+ flexDirection: "column",
83
+ rowGap: (e) => e.spacing(2),
84
+ paddingBottom: (e) => e.spacing(1)
85
+ },
86
+ children: b?.map((e) => s(c, { children: [s(l, {
87
+ variant: "subtitle2",
88
+ component: "div",
89
+ sx: {
90
+ display: "flex",
91
+ alignItems: "baseline",
92
+ gap: (e) => e.spacing(.75),
93
+ borderBottom: (e) => `1px solid ${e.palette.divider}`,
94
+ paddingBottom: (e) => e.spacing(.5),
95
+ marginBottom: (e) => e.spacing(.5)
96
+ },
97
+ children: [y(e.titleKey), e.subTitle ? o(l, {
98
+ variant: "caption",
99
+ component: "span",
100
+ color: "text.secondary",
101
+ children: e.subTitle
102
+ }) : null]
103
+ }), o(c, {
104
+ sx: {
105
+ display: "grid",
106
+ gridTemplateColumns: "1fr auto",
107
+ columnGap: (e) => e.spacing(2),
108
+ rowGap: (e) => e.spacing(.25)
109
+ },
110
+ children: e.rows.map((e) => s(n, { children: [o(l, {
111
+ variant: "body2",
112
+ component: "div",
113
+ color: "text.secondary",
114
+ children: y(e.labelKey)
115
+ }), o(l, {
116
+ variant: "body2",
117
+ component: "div",
118
+ sx: {
119
+ textAlign: "right",
120
+ fontVariantNumeric: "tabular-nums"
121
+ },
122
+ children: e.value
123
+ })] }, e.labelKey))
124
+ })] }, e.titleKey))
125
+ })
126
+ });
127
+ });
128
+ p.displayName = "WorkbookStatisticsDialog";
129
+ export { p as WorkbookStatisticsDialog, p as default };
@@ -0,0 +1,191 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.1
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { n as e } from "./DBM1blcMTZMAM-eR.mjs";
8
+ import { InputField as t } from "./index.mjs";
9
+ import { useReferenceMode as n } from "@sheetxl/react";
10
+ import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
11
+ import { memo as a, useEffect as o, useId as ee, useMemo as s, useRef as c, useState as l } from "react";
12
+ import { OptionsDialog as u } from "@sheetxl/utils-mui";
13
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
14
+ import { Box as p, FormControl as m, InputLabel as te, MenuItem as h, Select as g, TextField as _ } from "@mui/material";
15
+ var v = ["Ok", "Cancel"], y = { paddingTop: (e) => e.spacing(1.5) }, b = a((a) => {
16
+ let { initialValue: b = null, context: x, onInput: S, onOption: C, onValidateOption: w, onDone: T, options: E = v, defaultOption: D = E?.[0], cancelOption: O = "Cancel", sx: k, ...A } = a, j = i(), M = s(() => (b ?? x?.()?.getHyperlink()) !== null, []), N = s(() => {
17
+ let e = null, t = null;
18
+ b && (typeof b == "string" ? t = b : e = b);
19
+ let n = e ? null : x?.()?.getHyperlink();
20
+ return {
21
+ address: t ?? e?.address ?? n?.getAddress() ?? "",
22
+ textToDisplay: e?.textToDisplay ?? n?.getTextToDisplay() ?? ""
23
+ };
24
+ }, [b, x]), P = N.address.startsWith("#"), [F, ne] = l(P ? "document" : "url"), [I, L] = l(P ? "" : N.address), [R, z] = l(() => P && N.address.substring(1) || null), [B, V] = l(P ? N.address.substring(1) : ""), [H, U] = l(null), [W, G] = l(() => {
25
+ let e = x?.().getText({ useFormattingCategory: !0 }) ?? N.textToDisplay;
26
+ return e === N.address ? "" : e;
27
+ }), [K, q] = l(!1), J = ee(), Y = c(null), X = c(null), Z = r(() => {
28
+ Y.current?.querySelector("input.autoFocus")?.focus(), X.current?.engage();
29
+ }, []), Q = c(F);
30
+ o(() => {
31
+ Q.current !== F && (Q.current = F, Z());
32
+ }, [F]);
33
+ let re = s(() => {
34
+ let e = x?.()?.getSheet()?.getName();
35
+ return e ? { scope: e } : void 0;
36
+ }, [x]), ie = n().getMode()?.mode === "point", ae = r((e) => {
37
+ G(e.target.value);
38
+ }, []), $ = r(() => {
39
+ if (F === "document") {
40
+ if (typeof R == "string") {
41
+ let e = R.trim();
42
+ return e ? `#${e}` : null;
43
+ }
44
+ let e = R?.getReferences()?.getAddress();
45
+ return e ? `#${e}` : null;
46
+ }
47
+ return I === "" ? null : I;
48
+ }, [
49
+ F,
50
+ R,
51
+ I
52
+ ]), oe = r(async (e) => {
53
+ let t = e === O;
54
+ if (!t) {
55
+ let e = $(), t = e?.startsWith("#") ? e.substring(1) : e;
56
+ S?.({
57
+ address: e,
58
+ textToDisplay: (W === "" ? t : W) ?? null
59
+ });
60
+ }
61
+ C?.(e, t, e === D), T?.();
62
+ }, [
63
+ $,
64
+ W,
65
+ S,
66
+ T,
67
+ C,
68
+ D,
69
+ O
70
+ ]), se = r(async (e) => !1 !== await Promise.resolve(w?.(e)) && (F !== "document" || !H), [
71
+ w,
72
+ F,
73
+ H
74
+ ]), ce = F === "document" ? B : I;
75
+ return d(u, {
76
+ title: j(M ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
77
+ options: E,
78
+ onDone: T,
79
+ onOption: (e) => oe(e),
80
+ onValidateOption: se,
81
+ defaultOption: D,
82
+ cancelOption: O,
83
+ autoFocusSel: ".autoFocus",
84
+ suspendModal: ie,
85
+ sx: {
86
+ width: "480px",
87
+ ...k
88
+ },
89
+ ...A,
90
+ children: f(p, {
91
+ ref: Y,
92
+ sx: {
93
+ paddingTop: (e) => e.spacing(1),
94
+ paddingBottom: (e) => e.spacing(0),
95
+ rowGap: (e) => e.spacing(1),
96
+ display: "flex",
97
+ flexDirection: "column"
98
+ },
99
+ children: [
100
+ f(m, {
101
+ sx: {
102
+ minWidth: 135,
103
+ width: "100%"
104
+ },
105
+ size: "small",
106
+ children: [d(te, {
107
+ id: J,
108
+ children: j("hyperlink.linkTo")
109
+ }), f(g, {
110
+ labelId: J,
111
+ value: F,
112
+ label: j("hyperlink.linkTo"),
113
+ MenuProps: {
114
+ disableRestoreFocus: !0,
115
+ slotProps: { transition: { onExited: Z } },
116
+ container: () => document.fullscreenElement
117
+ },
118
+ onChange: (e) => {
119
+ ne(e.target.value);
120
+ },
121
+ children: [d(h, {
122
+ value: "url",
123
+ children: j("hyperlink.typeWebPage")
124
+ }), d(h, {
125
+ value: "document",
126
+ children: j("hyperlink.typeInDocument")
127
+ })]
128
+ })]
129
+ }),
130
+ F === "document" ? d(e, {
131
+ sx: y,
132
+ grammar: "reference",
133
+ apiRef: X,
134
+ classNameInput: "autoFocus",
135
+ label: j("hyperlink.reference"),
136
+ value: R,
137
+ allowMulti: !1,
138
+ home: re,
139
+ onChangeInput: (e) => z(e),
140
+ onChangeText: (e) => V(e),
141
+ onChangeError: (e) => U(e),
142
+ onFocus: (e) => {
143
+ K || e.target?.select?.(), q(!0);
144
+ }
145
+ }) : d(t, {
146
+ sx: y,
147
+ label: j("hyperlink.address"),
148
+ defaultInput: j("hyperlink.addressPlaceholder"),
149
+ value: I,
150
+ onChangeInput: (e) => L(e),
151
+ onFocus: (e) => {
152
+ K || e.target?.select?.(), q(!0);
153
+ }
154
+ }),
155
+ d(m, {
156
+ sx: {
157
+ paddingTop: (e) => e.spacing(1.5),
158
+ minWidth: 135,
159
+ width: "100%"
160
+ },
161
+ size: "small",
162
+ children: d(_, {
163
+ label: j("hyperlink.displayText"),
164
+ placeholder: ce,
165
+ onFocus: () => {
166
+ q(!0);
167
+ },
168
+ sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
169
+ slotProps: {
170
+ inputLabel: { shrink: !0 },
171
+ htmlInput: {
172
+ spellCheck: !1,
173
+ autoComplete: "off",
174
+ sx: {
175
+ paddingTop: (e) => e.spacing(1.25),
176
+ paddingBottom: (e) => e.spacing(.75)
177
+ }
178
+ }
179
+ },
180
+ value: W,
181
+ onChange: ae,
182
+ onContextMenu: (e) => {
183
+ e.stopPropagation();
184
+ }
185
+ })
186
+ })
187
+ ]
188
+ })
189
+ });
190
+ });
191
+ export { b as HyperlinkDialog, b as default };
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.1
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { t as e } from "./C4BPDYeqgN59wMGp.mjs";
8
+ import { useCallbackRef as t, useTranslator as n } from "@sheetxl/utils-react";
9
+ import { memo as r, useCallback as i, useState as a } from "react";
10
+ import { OptionsDialog as o } from "@sheetxl/utils-mui";
11
+ import { jsx as s } from "react/jsx-runtime";
12
+ var c = ["Ok", "Cancel"], l = r((r) => {
13
+ let { initialValue: l, context: u, onOption: d, onValidateOption: f, onInput: p, onDone: m, options: h = c, defaultOption: g = h?.[0], cancelOption: _ = "Cancel", sx: v, ...y } = r, b = n(), [x, S] = a(l), C = t(async (e) => {
14
+ let t = e === _;
15
+ t || p?.(x, e), d?.(e, t, e === g), m?.();
16
+ }, [
17
+ x,
18
+ p,
19
+ m,
20
+ d,
21
+ _,
22
+ g
23
+ ]), w = i(async (e) => await Promise.resolve(f?.(e)) ?? !0, [f]);
24
+ return s(o, {
25
+ title: b("numberFormat.dialogTitle"),
26
+ options: h,
27
+ onDone: m,
28
+ onOption: (e) => C(e),
29
+ onValidateOption: w,
30
+ defaultOption: g,
31
+ cancelOption: _,
32
+ autoFocusSel: ".sxl-nf-cat-active",
33
+ sx: {
34
+ width: "512px",
35
+ ...v
36
+ },
37
+ ...y,
38
+ children: s(e, {
39
+ value: x,
40
+ onChange: S,
41
+ onCommit: () => C(g),
42
+ context: u,
43
+ style: { paddingTop: "4px" }
44
+ })
45
+ });
46
+ });
47
+ export { l as NumberFormatDialog, l as default };
@@ -0,0 +1,155 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.1
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { IRange as e } from "@sheetxl/sdk";
8
+ import { KeyCodes as t, useCallbackRef as n, useTranslator as r } from "@sheetxl/utils-react";
9
+ import { memo as i, useCallback as a, useMemo as o, useState as s } from "react";
10
+ import { OptionsDialog as c } from "@sheetxl/utils-mui";
11
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
12
+ import { Box as d, FormControl as f, InputLabel as p, MenuItem as m, Select as h, TextField as g, Typography as _ } from "@mui/material";
13
+ var v = [
14
+ "Autofit",
15
+ "Ok",
16
+ "Cancel"
17
+ ], y = i((i) => {
18
+ let { initialValue: y, context: b, onOption: x, onValidateOption: S, onInput: C, onDone: w, options: T = v, defaultOption: E = T?.[1], cancelOption: D = "Cancel", sx: O, ...k } = i, A = r(), j = o(() => b?.().getAxis() === e.Axis.Column, [b]), [M, N] = s(y ?? { size: 0 }), [P, F] = s(!1), I = a(async (e, t) => !0, []), L = o(() => {
19
+ let e = b?.();
20
+ if (!e?.toUnits) return null;
21
+ let t = M?.size ?? 0, n = "Px";
22
+ return M.unit === "Px" ? (t = e.toUnits?.(t) ?? t, n = e.getUnitText()) : (t = e.toPixels?.(t) ?? t, n = "Px"), {
23
+ size: t,
24
+ unit: n
25
+ };
26
+ }, [M?.unit, M?.size]), R = n(async (e) => {
27
+ let t = e === D;
28
+ t || C?.(M, e), x?.(e, t, e === E), w?.();
29
+ }, [
30
+ M,
31
+ C,
32
+ w,
33
+ x,
34
+ D,
35
+ E
36
+ ]), z = n(async (e) => {
37
+ e.keyCode === t.Enter && !1 !== await I?.(M) && R(E);
38
+ }, [M, R]), B = n(async (e) => {
39
+ let t = await Promise.resolve(S?.(e));
40
+ try {
41
+ !1 !== t && (t = await Promise.resolve(I?.(M, e)) ?? !0);
42
+ } catch {}
43
+ return t ?? !0;
44
+ }, [S]), V = n((e) => {
45
+ let t = {
46
+ ...M,
47
+ size: Number(e.target.value)
48
+ };
49
+ N(t), I?.(t);
50
+ }, [M, S]), H = n((e) => {
51
+ let t = e.target.value, n = {
52
+ ...M,
53
+ unit: t
54
+ };
55
+ N(n);
56
+ }, [M]), U = o(() => {
57
+ let e = b?.().getUnitText() ?? "", t = (e) => l(m, {
58
+ value: e,
59
+ children: e
60
+ }, e), n = [];
61
+ return n.push(t("Px")), n.push(t(e)), n;
62
+ }, []), W = o(() => T.map((e) => e === "Autofit" ? {
63
+ id: "Autofit",
64
+ label: () => A("resizeHeader.autofit")
65
+ } : e), [T, A]);
66
+ return l(c, {
67
+ title: A(j ? "resizeHeader.titleColumns" : "resizeHeader.titleRows"),
68
+ options: W,
69
+ onDone: w,
70
+ onOption: (e) => R(e),
71
+ onValidateOption: B,
72
+ defaultOption: E,
73
+ cancelOption: D,
74
+ autoFocusSel: ".autoFocus",
75
+ sx: {
76
+ width: "380px",
77
+ ...O
78
+ },
79
+ ...k,
80
+ children: u(d, {
81
+ sx: {
82
+ paddingTop: (e) => e.spacing(0),
83
+ paddingBottom: (e) => e.spacing(1),
84
+ display: "flex",
85
+ flexDirection: "column"
86
+ },
87
+ children: [u(d, {
88
+ sx: {
89
+ rowGap: (e) => e.spacing(1),
90
+ display: "flex",
91
+ flexDirection: "row",
92
+ gap: (e) => e.spacing(.5),
93
+ alignItems: "end",
94
+ justifyContent: "center"
95
+ },
96
+ children: [l(f, {
97
+ sx: {
98
+ paddingTop: (e) => e.spacing(1.5),
99
+ minWidth: 135,
100
+ width: "100%"
101
+ },
102
+ size: "small",
103
+ children: l(g, {
104
+ label: A("resizeHeader.size"),
105
+ onFocus: (e) => {
106
+ P || e.target?.select(), F(!0);
107
+ },
108
+ sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
109
+ slotProps: {
110
+ inputLabel: { shrink: !0 },
111
+ htmlInput: {
112
+ className: "autoFocus",
113
+ spellCheck: !1,
114
+ autoComplete: "off",
115
+ type: "number",
116
+ inputMode: "numeric",
117
+ min: 0,
118
+ pattern: "[0-9]*",
119
+ sx: {
120
+ paddingTop: (e) => e.spacing(1.25),
121
+ paddingBottom: (e) => e.spacing(.75)
122
+ }
123
+ }
124
+ },
125
+ value: M.size,
126
+ onChange: V,
127
+ onKeyDown: z,
128
+ onContextMenu: (e) => {
129
+ e.stopPropagation();
130
+ }
131
+ })
132
+ }), u(f, {
133
+ sx: { minWidth: 85 },
134
+ size: "small",
135
+ children: [l(p, { children: A("resizeHeader.unit") }), l(h, {
136
+ value: M.unit,
137
+ label: A("resizeHeader.unit"),
138
+ onChange: H,
139
+ children: U
140
+ })]
141
+ })]
142
+ }), L && l(d, { children: u(_, {
143
+ variant: "body2",
144
+ component: "div",
145
+ sx: { paddingLeft: (e) => e.spacing(2) },
146
+ children: [
147
+ L.size,
148
+ " ",
149
+ L.unit
150
+ ]
151
+ }) })]
152
+ })
153
+ });
154
+ });
155
+ export { y as ResizeHeaderDialog, y as default };