@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,470 @@
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 { DynamicIcon as e, KeyCodes as t, KeyModifiers as n, ReactUtils as o, keyEventCanonicals as r, keyStrokeToCanonical as l } from "@sheetxl/utils-react";
8
+ import i, { useCallback as a, useEffect as s, useMemo as c, useRef as p, useState as d } from "react";
9
+ import { InternalWindow as h } from "@sheetxl/utils-mui";
10
+ import { jsx as u, jsxs as m } from "react/jsx-runtime";
11
+ import { Box as g, Checkbox as f, Chip as x, DialogContent as y, FormControlLabel as b, IconButton as S, InputAdornment as v, TextField as k, Tooltip as C, Typography as w, emphasize as K } from "@mui/material";
12
+ import { CommonUtils as $, TimerUtils as A } from "@sheetxl/utils";
13
+ var L = (e) => e.replace(/\n\n+/g, "\n").trim(), z = /* @__PURE__ */ new Set([
14
+ "Control",
15
+ "Shift",
16
+ "Alt",
17
+ "Meta"
18
+ ]), P = (e) => {
19
+ let t = e;
20
+ const n = /* @__PURE__ */ new Set();
21
+ for (const e of [
22
+ "mod",
23
+ "alt",
24
+ "shift"
25
+ ]) t.startsWith(`${e}+`) && (n.add(e), t = t.slice(e.length + 1));
26
+ return {
27
+ key: t,
28
+ mods: n
29
+ };
30
+ }, D = $.getPlatform() === $.OSType.MacOS || $.getPlatform() === $.OSType.IOS, I = [
31
+ n.Ctrl,
32
+ n.Alt,
33
+ n.Shift,
34
+ n.Meta
35
+ ], M = (e) => {
36
+ switch (e) {
37
+ case n.Ctrl: return D ? "Cmd" : "Ctrl";
38
+ case n.Alt: return "Alt";
39
+ case n.Shift: return "Shift";
40
+ case n.Meta: return "Meta";
41
+ default: return e;
42
+ }
43
+ }, W = (e) => {
44
+ const t = new Set(e);
45
+ return I.filter((e) => t.has(e));
46
+ }, B = (e) => {
47
+ const t = [];
48
+ return e.ctrlKey && t.push(n.Ctrl), e.altKey && t.push(n.Alt), e.shiftKey && t.push(n.Shift), e.metaKey && t.push(n.Meta), t;
49
+ }, R = ({ children: e }) => u(g, {
50
+ component: "kbd",
51
+ sx: {
52
+ display: "inline-flex",
53
+ alignItems: "center",
54
+ justifyContent: "center",
55
+ minWidth: "20px",
56
+ height: "20px",
57
+ paddingX: "5px",
58
+ boxSizing: "border-box",
59
+ fontFamily: "inherit",
60
+ fontSize: "0.7rem",
61
+ fontWeight: 600,
62
+ lineHeight: 1,
63
+ whiteSpace: "nowrap",
64
+ borderRadius: "5px",
65
+ color: (e) => e.palette.text.secondary,
66
+ backgroundColor: (e) => K(e.palette.background.paper, .07),
67
+ border: (e) => `solid 1px ${e.palette.divider}`,
68
+ borderBottomWidth: "2px"
69
+ },
70
+ children: e
71
+ }), T = () => u(g, {
72
+ component: "span",
73
+ sx: {
74
+ fontSize: "0.7rem",
75
+ color: (e) => e.palette.text.disabled
76
+ },
77
+ children: "+"
78
+ }), F = ({ labels: e, dangling: t = !1 }) => m(g, {
79
+ sx: {
80
+ display: "flex",
81
+ alignItems: "center",
82
+ gap: "1px"
83
+ },
84
+ children: [e.map((e, t) => m(i.Fragment, { children: [t > 0 && u(T, {}), u(R, { children: e })] }, t)), t && u(T, {})]
85
+ }), E = ({ stroke: e }) => {
86
+ if (!e?.key) return null;
87
+ const t = W(e.modifiers ?? []).map(M);
88
+ return t.push(o.toPrettyKeyCode(e.key)), u(F, { labels: t });
89
+ };
90
+ function O(n) {
91
+ const { commands: o, sx: i, ...h } = n, [y, $] = d(!1), [I, R] = d(""), [T, O] = d(null), [j, N] = d(!1), [X, H] = d(null), [U, Y] = d(null), [q, G] = d(null), J = p(null), Q = c(() => {
92
+ let e = o.getAllCommands();
93
+ y && (e = e.filter((e) => e.command.getShortcut())), e = [...e].sort((e, t) => {
94
+ const n = e.command.getScope?.() ?? e.groupKey, o = t.command.getScope?.() ?? t.groupKey, r = n.localeCompare(o);
95
+ return 0 !== r ? r : e.command.getLabel().localeCompare(t.command.getLabel());
96
+ });
97
+ const t = [], n = /* @__PURE__ */ new Set();
98
+ for (const o of e) {
99
+ const e = o.command, r = e.getScope?.() ?? o.groupKey, i = {
100
+ label: e.getLabel(),
101
+ icon: e.getIcon(),
102
+ scope: r,
103
+ scopeLabel: e.getScopeLabel?.() ?? r,
104
+ description: L(e.getDescription())
105
+ }, a = e.getShortcut(), s = Array.isArray(a) ? a.length ? a : [null] : [a ?? null];
106
+ for (const e of s) {
107
+ const o = e ? l(e) : null, a = `${r}\0${i.label}\0${o ?? ""}`;
108
+ n.has(a) || (n.add(a), t.push({
109
+ ...i,
110
+ id: a,
111
+ shortcut: e,
112
+ canonical: o
113
+ }));
114
+ }
115
+ }
116
+ return t;
117
+ }, [y, o]), V = c(() => T ? Q.filter((e) => e.scope === T) : Q, [Q, T]), [Z, _] = d(null);
118
+ s(() => {
119
+ let e = !1;
120
+ return import("fuse.js").then((t) => {
121
+ e || _(new t.default(V, {
122
+ threshold: .3,
123
+ ignoreLocation: !0,
124
+ keys: [
125
+ "label",
126
+ "description",
127
+ "scope",
128
+ "scopeLabel"
129
+ ]
130
+ }));
131
+ }), () => {
132
+ e = !0;
133
+ };
134
+ }, [V]);
135
+ const [ee, te] = d(Q);
136
+ s(() => {
137
+ if (j) return U ? void te(V.filter((e) => {
138
+ if (!e.canonical) return !1;
139
+ const t = P(e.canonical);
140
+ if (!U.keys.has(t.key)) return !1;
141
+ for (const e of U.mods) if (!t.mods.has(e)) return !1;
142
+ return !0;
143
+ })) : void te(V);
144
+ Z ? A.debounce(() => {
145
+ const e = I.trim();
146
+ 0 !== e.length ? te(Z.search(e).map((e) => e.item)) : te(V);
147
+ }, 90)() : te(V);
148
+ }, [
149
+ j,
150
+ U,
151
+ Z,
152
+ I,
153
+ V
154
+ ]);
155
+ const ne = c(() => {
156
+ const e = /* @__PURE__ */ new Map();
157
+ for (const t of ee) {
158
+ let n = e.get(t.scope);
159
+ n || (n = [], e.set(t.scope, n)), n.push(t);
160
+ }
161
+ return Array.from(e, ([e, t]) => ({
162
+ scope: e,
163
+ scopeLabel: t[0].scopeLabel,
164
+ rows: t
165
+ }));
166
+ }, [ee]), oe = c(() => Q.find((e) => e.scope === T)?.scopeLabel ?? T, [Q, T]), re = j ? !!X : I.length > 0, le = re && 0 === ee.length;
167
+ s(() => {
168
+ J.current?.focus();
169
+ }, [j]);
170
+ const ie = a((e) => {
171
+ N(e), R(""), H(null), Y(null), G(null);
172
+ }, []), ae = a((e) => {
173
+ if ("Tab" === e.key) return;
174
+ if (e.which === t.Escape) return X || q ? (H(null), Y(null), G(null)) : ie(!1), e.stopPropagation(), void e.preventDefault();
175
+ if (e.preventDefault(), e.stopPropagation(), "Backspace" === e.key) return H(null), Y(null), void G(null);
176
+ const n = e.nativeEvent;
177
+ if (z.has(e.key)) return H(null), Y(null), void G(B(n));
178
+ G(null), H(((e) => {
179
+ const t = [];
180
+ e.ctrlKey && t.push("ctrl"), e.altKey && t.push("alt"), e.shiftKey && t.push("shift"), e.metaKey && t.push("meta");
181
+ const n = e.code;
182
+ let o = e.key;
183
+ return n && (o = n.startsWith("Key") && n.length > 3 ? n.slice(3) : n.startsWith("Digit") && n.length > 5 ? n.slice(5) : n), {
184
+ key: o,
185
+ modifiers: t
186
+ };
187
+ })(n)), Y(((e) => {
188
+ const t = [...r(e)].map(P);
189
+ return {
190
+ keys: new Set(t.map((e) => e.key)),
191
+ mods: t[0]?.mods ?? /* @__PURE__ */ new Set()
192
+ };
193
+ })(n));
194
+ }, [
195
+ X,
196
+ q,
197
+ ie
198
+ ]), se = a((e) => {
199
+ if (X) return;
200
+ const t = B(e.nativeEvent);
201
+ G(t.length ? t : null);
202
+ }, [X]), ce = a((e) => {
203
+ O((t) => t === e ? null : e);
204
+ }, []), pe = a(() => {
205
+ j ? (H(null), Y(null), G(null)) : R(""), J.current?.focus();
206
+ }, [j]), de = j ? !!(X || q && q.length > 0) : I.length > 0, he = u(C, {
207
+ title: j ? "Search by name (ESC)" : `Search by shortcut (${D ? "Cmd" : "Ctrl"}+K)`,
208
+ children: u(S, {
209
+ "aria-label": "toggle shortcut capture",
210
+ color: j ? "primary" : "default",
211
+ onClick: () => ie(!j),
212
+ sx: {
213
+ flexShrink: 0,
214
+ border: (e) => `solid 1px ${j ? e.palette.primary.main : e.palette.divider}`,
215
+ borderRadius: (e) => `${e.shape.borderRadius}px`
216
+ },
217
+ children: u(e, { iconKey: "Keyboard" })
218
+ })
219
+ });
220
+ return m(g, {
221
+ style: {
222
+ height: 460,
223
+ width: "100%",
224
+ display: "flex",
225
+ flexDirection: "column"
226
+ },
227
+ sx: [{ fontFamily: (e) => e.typography.fontFamily }, ...Array.isArray(i) ? i : [i]],
228
+ ...h,
229
+ children: [
230
+ m(g, {
231
+ sx: {
232
+ display: "flex",
233
+ alignItems: "center",
234
+ gap: 1,
235
+ marginBottom: (e) => e.spacing(1.5)
236
+ },
237
+ children: [
238
+ u(k, {
239
+ inputRef: J,
240
+ slotProps: {
241
+ input: {
242
+ sx: { backgroundColor: (e) => e.palette.action.hover },
243
+ startAdornment: j && (X || q && q.length > 0) ? u(v, {
244
+ position: "start",
245
+ sx: { marginRight: "6px" },
246
+ children: X ? u(E, { stroke: X }) : u(F, {
247
+ labels: W(q).map(M),
248
+ dangling: !0
249
+ })
250
+ }) : void 0,
251
+ endAdornment: de ? u(v, {
252
+ position: "end",
253
+ children: u(S, {
254
+ "aria-label": j ? "clear shortcut" : "clear search",
255
+ onClick: pe,
256
+ edge: "end",
257
+ size: "small",
258
+ children: u(e, { iconKey: "Close" })
259
+ })
260
+ }) : void 0
261
+ },
262
+ htmlInput: {
263
+ className: "input",
264
+ autoFocus: !0,
265
+ spellCheck: !1,
266
+ placeholder: j ? X || q && q.length > 0 ? "" : "Press a shortcut… (Esc to exit)" : "Type to search commands, scopes, or descriptions",
267
+ autoComplete: "off",
268
+ "aria-label": j ? "Press a shortcut to find its command" : "Search commands",
269
+ sx: {
270
+ paddingTop: (e) => e.spacing(1),
271
+ paddingBottom: (e) => e.spacing(1),
272
+ caretColor: (e) => j ? e.palette.primary.main : void 0
273
+ }
274
+ }
275
+ },
276
+ sx: {
277
+ flex: "1 1 auto",
278
+ "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => le ? `${e.palette.error.main} !important` : j ? `${e.palette.primary.main} !important` : void 0 }
279
+ },
280
+ value: j ? "" : I,
281
+ onChange: (e) => {
282
+ j || R(e.target.value);
283
+ },
284
+ onKeyDown: j ? ae : (e) => {
285
+ if ((e.ctrlKey || e.metaKey) && ("k" === e.key || "K" === e.key)) return ie(!0), e.stopPropagation(), void e.preventDefault();
286
+ e.which === t.Escape && I.length > 0 && (R(""), e.stopPropagation(), e.preventDefault());
287
+ },
288
+ onKeyUp: j ? se : void 0,
289
+ onContextMenu: (e) => e.stopPropagation()
290
+ }),
291
+ he,
292
+ u(b, {
293
+ sx: {
294
+ flexShrink: 0,
295
+ marginRight: 0
296
+ },
297
+ control: u(f, {
298
+ checked: y,
299
+ onChange: () => $(!y)
300
+ }),
301
+ label: "With key bindings",
302
+ labelPlacement: "start"
303
+ })
304
+ ]
305
+ }),
306
+ T && u(g, {
307
+ sx: {
308
+ display: "flex",
309
+ marginBottom: 1
310
+ },
311
+ children: u(x, {
312
+ size: "small",
313
+ label: `Scope: ${oe}`,
314
+ onDelete: () => O(null)
315
+ })
316
+ }),
317
+ u(g, {
318
+ sx: {
319
+ flex: "1 1 100%",
320
+ minHeight: 0,
321
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
322
+ border: (e) => `solid ${e.palette.divider} 1px`,
323
+ overflow: "visible"
324
+ },
325
+ children: u(g, {
326
+ sx: {
327
+ height: "100%",
328
+ overflow: "auto"
329
+ },
330
+ children: 0 === ne.length ? u(g, {
331
+ sx: {
332
+ padding: 3,
333
+ textAlign: "center",
334
+ color: (e) => le ? e.palette.error.main : e.palette.text.secondary
335
+ },
336
+ children: re ? "No matching shortcuts" : "No shortcuts"
337
+ }) : ne.map((t) => m(g, { children: [m(g, {
338
+ onClick: () => ce(t.scope),
339
+ sx: {
340
+ position: "sticky",
341
+ top: "-1px",
342
+ zIndex: 2,
343
+ display: "flex",
344
+ alignItems: "center",
345
+ justifyContent: "space-between",
346
+ gap: 1,
347
+ paddingX: 1.5,
348
+ paddingTop: "5px",
349
+ paddingBottom: "4px",
350
+ cursor: "pointer",
351
+ userSelect: "none",
352
+ fontSize: "0.7rem",
353
+ fontWeight: 600,
354
+ letterSpacing: "0.04em",
355
+ textTransform: "uppercase",
356
+ backgroundColor: (e) => K(e.palette.background.paper, .04),
357
+ boxShadow: (e) => `0 -2px 0 0 ${K(e.palette.background.paper, .04)}`,
358
+ borderBottom: (e) => `solid 1px ${e.palette.divider}`,
359
+ color: (e) => T === t.scope ? e.palette.primary.main : e.palette.text.secondary,
360
+ "&:hover": {
361
+ color: (e) => e.palette.text.primary,
362
+ backgroundColor: (e) => K(e.palette.background.paper, .09)
363
+ }
364
+ },
365
+ children: [u("span", { children: t.scopeLabel }), u(w, {
366
+ component: "span",
367
+ sx: {
368
+ fontSize: "inherit",
369
+ opacity: .7
370
+ },
371
+ children: t.rows.length
372
+ })]
373
+ }), t.rows.map((t) => {
374
+ return m(g, {
375
+ sx: {
376
+ paddingX: 1.5,
377
+ paddingY: .75,
378
+ borderBottom: (e) => `solid 1px ${e.palette.divider}`,
379
+ "&:hover": { backgroundColor: (e) => e.palette.action.hover }
380
+ },
381
+ children: [m(g, {
382
+ sx: {
383
+ display: "flex",
384
+ alignItems: "center",
385
+ gap: 1
386
+ },
387
+ children: [
388
+ u(g, {
389
+ sx: {
390
+ flexShrink: 0,
391
+ display: "flex",
392
+ alignItems: "center",
393
+ width: "var(--icon-size, 20px)",
394
+ height: "var(--icon-size, 20px)",
395
+ color: (e) => e.palette.text.icon ?? e.palette.action.active
396
+ },
397
+ children: (n = t.icon, n && "string" != typeof n ? n : u(e, { iconKey: n }))
398
+ }),
399
+ u(w, {
400
+ sx: {
401
+ flex: "1 1 auto",
402
+ fontWeight: 500
403
+ },
404
+ children: t.label
405
+ }),
406
+ t.shortcut && u(g, {
407
+ sx: { flexShrink: 0 },
408
+ children: u(E, { stroke: t.shortcut })
409
+ })
410
+ ]
411
+ }), t.description && u(w, {
412
+ component: "div",
413
+ sx: {
414
+ marginTop: "2px",
415
+ marginLeft: "calc(var(--icon-size, 20px) + 8px)",
416
+ fontSize: "0.75rem",
417
+ whiteSpace: "pre-line",
418
+ color: (e) => e.palette.text.secondary
419
+ },
420
+ children: t.description
421
+ })]
422
+ }, t.id);
423
+ var n;
424
+ })] }, t.scope))
425
+ })
426
+ }),
427
+ u(g, {
428
+ sx: {
429
+ display: "flex",
430
+ flexShrink: 0,
431
+ paddingLeft: (e) => e.spacing(1),
432
+ paddingTop: (e) => e.spacing(1),
433
+ paddingRight: (e) => e.spacing(1),
434
+ userSelect: "none",
435
+ justifyContent: "flex-end"
436
+ },
437
+ children: u(w, {
438
+ noWrap: !0,
439
+ component: "div",
440
+ sx: { color: (e) => le ? e.palette.error.main : e.palette.text.secondary },
441
+ children: `${0 === ee.length ? "No" : ee.length} shortcut${1 === ee.length ? "" : "s"}${re ? " found" : ""}`
442
+ })
443
+ })
444
+ ]
445
+ });
446
+ }
447
+ var j = (e) => {
448
+ const { title: n = "Shortcut Keys", commands: o, sx: r, ...l } = e;
449
+ return u(h, {
450
+ isModal: !0,
451
+ onKeyDown: (e) => {
452
+ e.keyCode === t.F1 && e.preventDefault();
453
+ },
454
+ sx: {
455
+ width: "780px",
456
+ ...r
457
+ },
458
+ title: n,
459
+ autoFocusSel: ".input",
460
+ ...l,
461
+ children: u(y, {
462
+ dividers: !0,
463
+ children: u(O, {
464
+ commands: o,
465
+ sx: { marginBottom: "8px" }
466
+ })
467
+ })
468
+ });
469
+ };
470
+ export { j as default };
@@ -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 t } from "@sheetxl/sdk";
8
+ import { useTranslator as e } from "@sheetxl/utils-react";
9
+ import { Fragment as o, memo as r, useMemo as i } from "react";
10
+ import { OptionsDialog as a } from "@sheetxl/utils-mui";
11
+ import { jsx as l, jsxs as n } from "react/jsx-runtime";
12
+ import { Box as s, Typography as c } from "@mui/material";
13
+ import { messageKey as d } from "@sheetxl/utils";
14
+ var u = ["Ok"], g = [
15
+ t.Number,
16
+ t.String,
17
+ t.Boolean,
18
+ t.Error
19
+ ], p = r((r) => {
20
+ const { context: p, onDone: m, options: b = u, defaultOption: k = b?.[0], sx: S, ...x } = r, y = e(), h = i(() => {
21
+ const e = p?.().getWorkbook();
22
+ if (!e) return null;
23
+ const o = (e) => {
24
+ const o = e.getTypedCounts(g);
25
+ return [
26
+ {
27
+ labelKey: d("workbookStatistics.cellsWithData"),
28
+ value: e.getCount().toLocaleString()
29
+ },
30
+ {
31
+ labelKey: d("workbookStatistics.numbers"),
32
+ value: (o[t.Number] ?? 0).toLocaleString()
33
+ },
34
+ {
35
+ labelKey: d("workbookStatistics.text"),
36
+ value: (o[t.String] ?? 0).toLocaleString()
37
+ },
38
+ {
39
+ labelKey: d("workbookStatistics.booleans"),
40
+ value: (o[t.Boolean] ?? 0).toLocaleString()
41
+ },
42
+ {
43
+ labelKey: d("workbookStatistics.errors"),
44
+ value: (o[t.Error] ?? 0).toLocaleString()
45
+ }
46
+ ];
47
+ }, r = e.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: d("workbookStatistics.currentSheet"),
55
+ subTitle: r.getName(),
56
+ rows: [{
57
+ labelKey: d("workbookStatistics.endOfSheet"),
58
+ value: a
59
+ }, ...o(r.getStats({ onError: "ignore" }))]
60
+ }, {
61
+ titleKey: d("workbookStatistics.workbook"),
62
+ subTitle: null,
63
+ rows: [{
64
+ labelKey: d("workbookStatistics.sheets"),
65
+ value: e.getSheets().getCount().toLocaleString()
66
+ }, ...o(e.getStats({ onError: "ignore" }))]
67
+ }];
68
+ }, [p]);
69
+ return l(a, {
70
+ title: y("workbookStatistics.title"),
71
+ options: b,
72
+ defaultOption: k,
73
+ onDone: m,
74
+ sx: {
75
+ width: "340px",
76
+ ...S
77
+ },
78
+ ...x,
79
+ children: l(s, {
80
+ sx: {
81
+ display: "flex",
82
+ flexDirection: "column",
83
+ rowGap: (t) => t.spacing(2),
84
+ paddingBottom: (t) => t.spacing(1)
85
+ },
86
+ children: h?.map((t) => n(s, { children: [n(c, {
87
+ variant: "subtitle2",
88
+ component: "div",
89
+ sx: {
90
+ display: "flex",
91
+ alignItems: "baseline",
92
+ gap: (t) => t.spacing(.75),
93
+ borderBottom: (t) => `1px solid ${t.palette.divider}`,
94
+ paddingBottom: (t) => t.spacing(.5),
95
+ marginBottom: (t) => t.spacing(.5)
96
+ },
97
+ children: [y(t.titleKey), t.subTitle ? l(c, {
98
+ variant: "caption",
99
+ component: "span",
100
+ color: "text.secondary",
101
+ children: t.subTitle
102
+ }) : null]
103
+ }), l(s, {
104
+ sx: {
105
+ display: "grid",
106
+ gridTemplateColumns: "1fr auto",
107
+ columnGap: (t) => t.spacing(2),
108
+ rowGap: (t) => t.spacing(.25)
109
+ },
110
+ children: t.rows.map((t) => n(o, { children: [l(c, {
111
+ variant: "body2",
112
+ component: "div",
113
+ color: "text.secondary",
114
+ children: y(t.labelKey)
115
+ }), l(c, {
116
+ variant: "body2",
117
+ component: "div",
118
+ sx: {
119
+ textAlign: "right",
120
+ fontVariantNumeric: "tabular-nums"
121
+ },
122
+ children: t.value
123
+ })] }, t.labelKey))
124
+ })] }, t.titleKey))
125
+ })
126
+ });
127
+ });
128
+ p.displayName = "WorkbookStatisticsDialog";
129
+ export { p as WorkbookStatisticsDialog, p as default };