@sheetxl/studio-mui 0.7.27 → 0.7.28-beta.2

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