@sheetxl/studio-mui 0.7.21 → 0.7.23-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 (493) 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/BeKpqOx8It0RD0Rf.cjs +2 -0
  6. package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +2 -0
  7. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
  8. package/browser/cjs/ByIEqNsvj52sihT9.cjs +5 -0
  9. package/browser/cjs/C3moehR3VOd0LnmM.cjs +1 -0
  10. package/browser/cjs/C97KHSuikAbr1qVM.cjs +1 -0
  11. package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +1 -0
  12. package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +1 -0
  13. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +1 -0
  14. package/browser/cjs/CZm1jVZaHQ246prW.cjs +1 -0
  15. package/browser/cjs/CdDYyAfccXme8w6m.cjs +1 -0
  16. package/browser/cjs/Cpr3LpTBt3SSArSw.cjs +7 -0
  17. package/browser/cjs/DBJLJGiCGXesx5n6.cjs +1 -0
  18. package/browser/cjs/DEaHGn2Rbgcj_fbR.cjs +11 -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/B-2XwThOta_tt8BT.mjs +612 -0
  29. package/browser/esm/B8qmg9lVcO1_FX1t.mjs +508 -0
  30. package/browser/esm/BBwrhUtlLbuFQ67J.mjs +5398 -0
  31. package/browser/esm/BkcTkK4tR4b-px3e.mjs +42 -0
  32. package/browser/esm/BvQKaacvx0Q4evfJ.mjs +99 -0
  33. package/browser/esm/C9GBv4ZkH2P6xOGI.mjs +2207 -0
  34. package/browser/esm/C9MY76RbJdvrNOgK.mjs +411 -0
  35. package/browser/esm/CCiAWSm5lQALhezl.mjs +82 -0
  36. package/browser/esm/CGcdue-1rj_uOLLO.mjs +47 -0
  37. package/browser/esm/CPR9Jpd8zfoZUwWE.mjs +113 -0
  38. package/browser/esm/CkocGozEYIwcmc-x.mjs +105 -0
  39. package/browser/esm/D3E3Pf2O3BHV0mYQ.mjs +52 -0
  40. package/browser/esm/DNv3-zAolc7Scol_.mjs +129 -0
  41. package/browser/esm/DRCKGFtIKBxmTaJW.mjs +191 -0
  42. package/browser/esm/Ddp-16AGwwlZkglN.mjs +219 -0
  43. package/browser/esm/Ft9o24lP0MNgSqIB.mjs +1376 -0
  44. package/browser/esm/IIP2sN_X3kztI92r.mjs +155 -0
  45. package/browser/esm/WSDlFfjApTM0cJ4V.mjs +468 -0
  46. package/browser/esm/dfnya7tN7P1UeVvc.mjs +516 -0
  47. package/browser/esm/dhuC1s94dyRTzxgk.mjs +8869 -0
  48. package/browser/esm/eL50tJKtsxKJk7-6.mjs +217 -0
  49. package/browser/esm/index.mjs +152 -91
  50. package/browser/esm/suPpQTgd0X3baAFS.mjs +20 -0
  51. package/browser/esm/zRDngVAuXekzPZuz.mjs +1150 -0
  52. package/licenses/dependencies.txt +133 -623
  53. package/node/esm/0FcokH6jWYoKKyvJ.mjs +155 -0
  54. package/node/esm/BUqFn97L8YiLtWbW.mjs +129 -0
  55. package/node/esm/CH7ZFM-RHFeeCuff.mjs +82 -0
  56. package/node/esm/CghsKfVdQBikiGJk.mjs +679 -0
  57. package/node/esm/Cv3xawSybVla_gE-.mjs +47 -0
  58. package/node/esm/CwSCTBxawz0-VqW9.mjs +99 -0
  59. package/node/esm/D70ZQyxt_JcDRn7d.mjs +516 -0
  60. package/node/esm/DJnr-2wytqQ57aiM.mjs +4543 -0
  61. package/node/esm/DMDanrARYHWYLx37.mjs +190 -0
  62. package/node/esm/DMtIfyV60BcLQkTD.mjs +470 -0
  63. package/node/esm/DNJmWZomszXCkDx7.mjs +106 -0
  64. package/node/esm/DNkUDrpOmhF_vVDS.mjs +509 -0
  65. package/node/esm/DZG5Pd01dM-dgS3n.mjs +113 -0
  66. package/node/esm/index.mjs +10594 -2831
  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 -1762
  77. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +131 -0
  78. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts.map +1 -0
  79. package/types/src/anchorItems/AnchorItemsPanel.d.ts +29 -0
  80. package/types/src/anchorItems/AnchorItemsPanel.d.ts.map +1 -0
  81. package/types/src/anchorItems/index.d.ts +3 -0
  82. package/types/src/anchorItems/index.d.ts.map +1 -0
  83. package/types/src/border/BorderPopupButton.d.ts +30 -0
  84. package/types/src/border/BorderPopupButton.d.ts.map +1 -0
  85. package/types/src/border/BorderStylePopupButton.d.ts +40 -0
  86. package/types/src/border/BorderStylePopupButton.d.ts.map +1 -0
  87. package/types/src/border/index.d.ts +3 -0
  88. package/types/src/border/index.d.ts.map +1 -0
  89. package/types/src/chart/command/InsertChartCommandButton.d.ts +10 -0
  90. package/types/src/chart/command/InsertChartCommandButton.d.ts.map +1 -0
  91. package/types/src/chart/command/index.d.ts +2 -0
  92. package/types/src/chart/command/index.d.ts.map +1 -0
  93. package/types/src/color/Alpha.d.ts +36 -0
  94. package/types/src/color/Alpha.d.ts.map +1 -0
  95. package/types/src/color/Checkboard.d.ts +11 -0
  96. package/types/src/color/Checkboard.d.ts.map +1 -0
  97. package/types/src/color/CheckboardUtils.d.ts +3 -0
  98. package/types/src/color/CheckboardUtils.d.ts.map +1 -0
  99. package/types/src/color/ColorButton.d.ts +21 -0
  100. package/types/src/color/ColorButton.d.ts.map +1 -0
  101. package/types/src/color/ColorButtonList.d.ts +17 -0
  102. package/types/src/color/ColorButtonList.d.ts.map +1 -0
  103. package/types/src/color/ColorPanel.d.ts +71 -0
  104. package/types/src/color/ColorPanel.d.ts.map +1 -0
  105. package/types/src/color/ColorPopupButton.d.ts +29 -0
  106. package/types/src/color/ColorPopupButton.d.ts.map +1 -0
  107. package/types/src/color/CustomColorPanel.d.ts +16 -0
  108. package/types/src/color/CustomColorPanel.d.ts.map +1 -0
  109. package/types/src/color/EditableInput.d.ts +22 -0
  110. package/types/src/color/EditableInput.d.ts.map +1 -0
  111. package/types/src/color/Hue.d.ts +29 -0
  112. package/types/src/color/Hue.d.ts.map +1 -0
  113. package/types/src/color/Saturation.d.ts +45 -0
  114. package/types/src/color/Saturation.d.ts.map +1 -0
  115. package/types/src/color/SketchFields.d.ts +9 -0
  116. package/types/src/color/SketchFields.d.ts.map +1 -0
  117. package/types/src/color/Swatch.d.ts +16 -0
  118. package/types/src/color/Swatch.d.ts.map +1 -0
  119. package/types/src/color/Types.d.ts +11 -0
  120. package/types/src/color/Types.d.ts.map +1 -0
  121. package/types/src/color/_Utils.d.ts +4 -0
  122. package/types/src/color/_Utils.d.ts.map +1 -0
  123. package/types/src/color/index.d.ts +7 -0
  124. package/types/src/color/index.d.ts.map +1 -0
  125. package/types/src/command/AccountingStyleCommandButton.d.ts +18 -0
  126. package/types/src/command/AccountingStyleCommandButton.d.ts.map +1 -0
  127. package/types/src/command/AppearanceCommandButton.d.ts +3 -0
  128. package/types/src/command/AppearanceCommandButton.d.ts.map +1 -0
  129. package/types/src/command/BorderCommandButton.d.ts +20 -0
  130. package/types/src/command/BorderCommandButton.d.ts.map +1 -0
  131. package/types/src/command/ColorCommandButton.d.ts +23 -0
  132. package/types/src/command/ColorCommandButton.d.ts.map +1 -0
  133. package/types/src/command/DocThemeCommandButton.d.ts +19 -0
  134. package/types/src/command/DocThemeCommandButton.d.ts.map +1 -0
  135. package/types/src/command/FileCommandButton.d.ts +8 -0
  136. package/types/src/command/FileCommandButton.d.ts.map +1 -0
  137. package/types/src/command/FontFamilyCommandButton.d.ts +9 -0
  138. package/types/src/command/FontFamilyCommandButton.d.ts.map +1 -0
  139. package/types/src/command/FontSizeCommandButton.d.ts +21 -0
  140. package/types/src/command/FontSizeCommandButton.d.ts.map +1 -0
  141. package/types/src/command/InsertFunctionCommandPopupButton.d.ts +9 -0
  142. package/types/src/command/InsertFunctionCommandPopupButton.d.ts.map +1 -0
  143. package/types/src/command/InsertFunctionSumCommandPopupButton.d.ts +8 -0
  144. package/types/src/command/InsertFunctionSumCommandPopupButton.d.ts.map +1 -0
  145. package/types/src/command/LanguageCommandButton.d.ts +19 -0
  146. package/types/src/command/LanguageCommandButton.d.ts.map +1 -0
  147. package/types/src/command/LocaleCommandButton.d.ts +17 -0
  148. package/types/src/command/LocaleCommandButton.d.ts.map +1 -0
  149. package/types/src/command/NumberFormatCommandButton.d.ts +6 -0
  150. package/types/src/command/NumberFormatCommandButton.d.ts.map +1 -0
  151. package/types/src/command/PasteCommandButton.d.ts +14 -0
  152. package/types/src/command/PasteCommandButton.d.ts.map +1 -0
  153. package/types/src/command/PresetCellStylesCommandButton.d.ts +11 -0
  154. package/types/src/command/PresetCellStylesCommandButton.d.ts.map +1 -0
  155. package/types/src/command/PresetTableStylesCommandButton.d.ts +12 -0
  156. package/types/src/command/PresetTableStylesCommandButton.d.ts.map +1 -0
  157. package/types/src/command/RegisterCatalog.d.ts +3 -0
  158. package/types/src/command/RegisterCatalog.d.ts.map +1 -0
  159. package/types/src/command/SheetCommandGroups.d.ts +10 -0
  160. package/types/src/command/SheetCommandGroups.d.ts.map +1 -0
  161. package/types/src/command/SheetZoomCommandButton.d.ts +9 -0
  162. package/types/src/command/SheetZoomCommandButton.d.ts.map +1 -0
  163. package/types/src/command/StudioCommandGroups.d.ts +11 -0
  164. package/types/src/command/StudioCommandGroups.d.ts.map +1 -0
  165. package/types/src/command/TextEffectsCommandButton.d.ts +6 -0
  166. package/types/src/command/TextEffectsCommandButton.d.ts.map +1 -0
  167. package/types/src/command/TextRotateGroupButton.d.ts +14 -0
  168. package/types/src/command/TextRotateGroupButton.d.ts.map +1 -0
  169. package/types/src/command/UndoRedoCommandButton.d.ts +14 -0
  170. package/types/src/command/UndoRedoCommandButton.d.ts.map +1 -0
  171. package/types/src/command/WalkingCopyCommandButton.d.ts +6 -0
  172. package/types/src/command/WalkingCopyCommandButton.d.ts.map +1 -0
  173. package/types/src/command/WorkbookCommandGroups.d.ts +11 -0
  174. package/types/src/command/WorkbookCommandGroups.d.ts.map +1 -0
  175. package/types/src/command/index.d.ts +23 -0
  176. package/types/src/command/index.d.ts.map +1 -0
  177. package/types/src/conditionalFormat/ColorScaleRulePanel.d.ts +18 -0
  178. package/types/src/conditionalFormat/ColorScaleRulePanel.d.ts.map +1 -0
  179. package/types/src/conditionalFormat/ConditionalFormatDetailsPanel.d.ts +23 -0
  180. package/types/src/conditionalFormat/ConditionalFormatDetailsPanel.d.ts.map +1 -0
  181. package/types/src/conditionalFormat/ConditionalFormatDetailsTaskPane.d.ts +4 -0
  182. package/types/src/conditionalFormat/ConditionalFormatDetailsTaskPane.d.ts.map +1 -0
  183. package/types/src/conditionalFormat/ConditionalFormatEditorPanel.d.ts +20 -0
  184. package/types/src/conditionalFormat/ConditionalFormatEditorPanel.d.ts.map +1 -0
  185. package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +2 -0
  186. package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts.map +1 -0
  187. package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +32 -0
  188. package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts.map +1 -0
  189. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +34 -0
  190. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts.map +1 -0
  191. package/types/src/conditionalFormat/ConditionalFormatTitle.d.ts +10 -0
  192. package/types/src/conditionalFormat/ConditionalFormatTitle.d.ts.map +1 -0
  193. package/types/src/conditionalFormat/DataBarRulePanel.d.ts +23 -0
  194. package/types/src/conditionalFormat/DataBarRulePanel.d.ts.map +1 -0
  195. package/types/src/conditionalFormat/IconSetRulePanel.d.ts +23 -0
  196. package/types/src/conditionalFormat/IconSetRulePanel.d.ts.map +1 -0
  197. package/types/src/conditionalFormat/PresetChip.d.ts +17 -0
  198. package/types/src/conditionalFormat/PresetChip.d.ts.map +1 -0
  199. package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts +20 -0
  200. package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts.map +1 -0
  201. package/types/src/conditionalFormat/RulePreview.d.ts +23 -0
  202. package/types/src/conditionalFormat/RulePreview.d.ts.map +1 -0
  203. package/types/src/conditionalFormat/RuleSection.d.ts +20 -0
  204. package/types/src/conditionalFormat/RuleSection.d.ts.map +1 -0
  205. package/types/src/conditionalFormat/ScaleMiniGrid.d.ts +59 -0
  206. package/types/src/conditionalFormat/ScaleMiniGrid.d.ts.map +1 -0
  207. package/types/src/conditionalFormat/ScaleStopRow.d.ts +34 -0
  208. package/types/src/conditionalFormat/ScaleStopRow.d.ts.map +1 -0
  209. package/types/src/conditionalFormat/index.d.ts +3 -0
  210. package/types/src/conditionalFormat/index.d.ts.map +1 -0
  211. package/types/src/conditionalFormat/previewColor.d.ts +50 -0
  212. package/types/src/conditionalFormat/previewColor.d.ts.map +1 -0
  213. package/types/src/conditions/AverageOption.d.ts +25 -0
  214. package/types/src/conditions/AverageOption.d.ts.map +1 -0
  215. package/types/src/conditions/BetweenOption.d.ts +25 -0
  216. package/types/src/conditions/BetweenOption.d.ts.map +1 -0
  217. package/types/src/conditions/BooleanOption.d.ts +24 -0
  218. package/types/src/conditions/BooleanOption.d.ts.map +1 -0
  219. package/types/src/conditions/CombinatorOption.d.ts +41 -0
  220. package/types/src/conditions/CombinatorOption.d.ts.map +1 -0
  221. package/types/src/conditions/ConditionEditor.d.ts +57 -0
  222. package/types/src/conditions/ConditionEditor.d.ts.map +1 -0
  223. package/types/src/conditions/ConditionUtils.d.ts +83 -0
  224. package/types/src/conditions/ConditionUtils.d.ts.map +1 -0
  225. package/types/src/conditions/DateTimeOption.d.ts +43 -0
  226. package/types/src/conditions/DateTimeOption.d.ts.map +1 -0
  227. package/types/src/conditions/ExpressionOption.d.ts +26 -0
  228. package/types/src/conditions/ExpressionOption.d.ts.map +1 -0
  229. package/types/src/conditions/InSetOption.d.ts +37 -0
  230. package/types/src/conditions/InSetOption.d.ts.map +1 -0
  231. package/types/src/conditions/NumberOption.d.ts +24 -0
  232. package/types/src/conditions/NumberOption.d.ts.map +1 -0
  233. package/types/src/conditions/OperatorAndParamEditor.d.ts +55 -0
  234. package/types/src/conditions/OperatorAndParamEditor.d.ts.map +1 -0
  235. package/types/src/conditions/OperatorSelect.d.ts +35 -0
  236. package/types/src/conditions/OperatorSelect.d.ts.map +1 -0
  237. package/types/src/conditions/OperatorSelectPopupButton.d.ts +39 -0
  238. package/types/src/conditions/OperatorSelectPopupButton.d.ts.map +1 -0
  239. package/types/src/conditions/ScalarOption.d.ts +29 -0
  240. package/types/src/conditions/ScalarOption.d.ts.map +1 -0
  241. package/types/src/conditions/SelectorSelect.d.ts +43 -0
  242. package/types/src/conditions/SelectorSelect.d.ts.map +1 -0
  243. package/types/src/conditions/StringOption.d.ts +24 -0
  244. package/types/src/conditions/StringOption.d.ts.map +1 -0
  245. package/types/src/conditions/TimePeriodOption.d.ts +25 -0
  246. package/types/src/conditions/TimePeriodOption.d.ts.map +1 -0
  247. package/types/src/conditions/TopNOption.d.ts +25 -0
  248. package/types/src/conditions/TopNOption.d.ts.map +1 -0
  249. package/types/src/conditions/index.d.ts +13 -0
  250. package/types/src/conditions/index.d.ts.map +1 -0
  251. package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +16 -0
  252. package/types/src/dataValidation/DataValidationDetailsPanel.d.ts.map +1 -0
  253. package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -0
  254. package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts.map +1 -0
  255. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +12 -0
  256. package/types/src/dataValidation/DataValidationEditorPanel.d.ts.map +1 -0
  257. package/types/src/dataValidation/DataValidationPlugin.d.ts +2 -0
  258. package/types/src/dataValidation/DataValidationPlugin.d.ts.map +1 -0
  259. package/types/src/dataValidation/index.d.ts +2 -0
  260. package/types/src/dataValidation/index.d.ts.map +1 -0
  261. package/types/src/debug/DebugUtils.d.ts +4 -0
  262. package/types/src/debug/DebugUtils.d.ts.map +1 -0
  263. package/types/src/debug/index.d.ts +2 -0
  264. package/types/src/debug/index.d.ts.map +1 -0
  265. package/types/src/dialog/CommentsDialog.d.ts +11 -0
  266. package/types/src/dialog/CommentsDialog.d.ts.map +1 -0
  267. package/types/src/dialog/FindReplaceWindow.d.ts +13 -0
  268. package/types/src/dialog/FindReplaceWindow.d.ts.map +1 -0
  269. package/types/src/dialog/HyperlinkDialog.d.ts +28 -0
  270. package/types/src/dialog/HyperlinkDialog.d.ts.map +1 -0
  271. package/types/src/dialog/InsertFunctionDialog.d.ts +25 -0
  272. package/types/src/dialog/InsertFunctionDialog.d.ts.map +1 -0
  273. package/types/src/dialog/NamedReferenceDialog.d.ts +17 -0
  274. package/types/src/dialog/NamedReferenceDialog.d.ts.map +1 -0
  275. package/types/src/dialog/NumberFormatDialog.d.ts +12 -0
  276. package/types/src/dialog/NumberFormatDialog.d.ts.map +1 -0
  277. package/types/src/dialog/ResizeHeaderDialog.d.ts +15 -0
  278. package/types/src/dialog/ResizeHeaderDialog.d.ts.map +1 -0
  279. package/types/src/dialog/ShortcutKeysDialog.d.ts +9 -0
  280. package/types/src/dialog/ShortcutKeysDialog.d.ts.map +1 -0
  281. package/types/src/dialog/ShortcutKeysPanel.d.ts +28 -0
  282. package/types/src/dialog/ShortcutKeysPanel.d.ts.map +1 -0
  283. package/types/src/dialog/SortDialog.d.ts +9 -0
  284. package/types/src/dialog/SortDialog.d.ts.map +1 -0
  285. package/types/src/dialog/TableNewDialog.d.ts +14 -0
  286. package/types/src/dialog/TableNewDialog.d.ts.map +1 -0
  287. package/types/src/dialog/WorkbookStatisticsDialog.d.ts +13 -0
  288. package/types/src/dialog/WorkbookStatisticsDialog.d.ts.map +1 -0
  289. package/types/src/dialog/index.d.ts +10 -0
  290. package/types/src/dialog/index.d.ts.map +1 -0
  291. package/types/src/filter/ColumnMenu.d.ts +13 -0
  292. package/types/src/filter/ColumnMenu.d.ts.map +1 -0
  293. package/types/src/filter/FilterList.d.ts +28 -0
  294. package/types/src/filter/FilterList.d.ts.map +1 -0
  295. package/types/src/filter/index.d.ts +3 -0
  296. package/types/src/filter/index.d.ts.map +1 -0
  297. package/types/src/form/FormulaField.d.ts +221 -0
  298. package/types/src/form/FormulaField.d.ts.map +1 -0
  299. package/types/src/form/InputField.d.ts +89 -0
  300. package/types/src/form/InputField.d.ts.map +1 -0
  301. package/types/src/form/index.d.ts +3 -0
  302. package/types/src/form/index.d.ts.map +1 -0
  303. package/types/src/formulaBar/FormulaBar.d.ts +8 -0
  304. package/types/src/formulaBar/FormulaBar.d.ts.map +1 -0
  305. package/types/src/formulaBar/IFormulaBar.d.ts +51 -0
  306. package/types/src/formulaBar/IFormulaBar.d.ts.map +1 -0
  307. package/types/src/formulaBar/index.d.ts +3 -0
  308. package/types/src/formulaBar/index.d.ts.map +1 -0
  309. package/types/src/function/FunctionArgumentsPanel.d.ts +57 -0
  310. package/types/src/function/FunctionArgumentsPanel.d.ts.map +1 -0
  311. package/types/src/function/FunctionSearchPanel.d.ts +35 -0
  312. package/types/src/function/FunctionSearchPanel.d.ts.map +1 -0
  313. package/types/src/function/InsertFunctionWizard.d.ts +79 -0
  314. package/types/src/function/InsertFunctionWizard.d.ts.map +1 -0
  315. package/types/src/function/index.d.ts +4 -0
  316. package/types/src/function/index.d.ts.map +1 -0
  317. package/types/src/function/paneMetrics.d.ts +33 -0
  318. package/types/src/function/paneMetrics.d.ts.map +1 -0
  319. package/types/src/index.d.ts +21 -0
  320. package/types/src/index.d.ts.map +1 -0
  321. package/types/src/itemsPanel/EditorPanel.d.ts +21 -0
  322. package/types/src/itemsPanel/EditorPanel.d.ts.map +1 -0
  323. package/types/src/itemsPanel/ItemCard.d.ts +57 -0
  324. package/types/src/itemsPanel/ItemCard.d.ts.map +1 -0
  325. package/types/src/itemsPanel/ItemsDescriptor.d.ts +215 -0
  326. package/types/src/itemsPanel/ItemsDescriptor.d.ts.map +1 -0
  327. package/types/src/itemsPanel/ItemsPanel.d.ts +45 -0
  328. package/types/src/itemsPanel/ItemsPanel.d.ts.map +1 -0
  329. package/types/src/itemsPanel/SortableCards.d.ts +67 -0
  330. package/types/src/itemsPanel/SortableCards.d.ts.map +1 -0
  331. package/types/src/itemsPanel/index.d.ts +6 -0
  332. package/types/src/itemsPanel/index.d.ts.map +1 -0
  333. package/types/src/movable/MovableContextMenu.d.ts +13 -0
  334. package/types/src/movable/MovableContextMenu.d.ts.map +1 -0
  335. package/types/src/movable/index.d.ts +2 -0
  336. package/types/src/movable/index.d.ts.map +1 -0
  337. package/types/src/named/INamedCollectionEditor.d.ts +37 -0
  338. package/types/src/named/INamedCollectionEditor.d.ts.map +1 -0
  339. package/types/src/named/NamedCollectionEditor.d.ts +7 -0
  340. package/types/src/named/NamedCollectionEditor.d.ts.map +1 -0
  341. package/types/src/named/NamedDetailsPanel.d.ts +11 -0
  342. package/types/src/named/NamedDetailsPanel.d.ts.map +1 -0
  343. package/types/src/named/NamedDetailsTaskPane.d.ts +3 -0
  344. package/types/src/named/NamedDetailsTaskPane.d.ts.map +1 -0
  345. package/types/src/named/NamedDraft.d.ts +68 -0
  346. package/types/src/named/NamedDraft.d.ts.map +1 -0
  347. package/types/src/named/NamedEditorPanel.d.ts +19 -0
  348. package/types/src/named/NamedEditorPanel.d.ts.map +1 -0
  349. package/types/src/named/NamedPlugin.d.ts +2 -0
  350. package/types/src/named/NamedPlugin.d.ts.map +1 -0
  351. package/types/src/named/index.d.ts +8 -0
  352. package/types/src/named/index.d.ts.map +1 -0
  353. package/types/src/numberFormat/NumberFormatPanel.d.ts +29 -0
  354. package/types/src/numberFormat/NumberFormatPanel.d.ts.map +1 -0
  355. package/types/src/numberFormat/NumberFormatTaskPane.d.ts +12 -0
  356. package/types/src/numberFormat/NumberFormatTaskPane.d.ts.map +1 -0
  357. package/types/src/numberFormat/index.d.ts +8 -0
  358. package/types/src/numberFormat/index.d.ts.map +1 -0
  359. package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +20 -0
  360. package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts.map +1 -0
  361. package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +3 -0
  362. package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts.map +1 -0
  363. package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +27 -0
  364. package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts.map +1 -0
  365. package/types/src/protectedRange/ProtectedRangePlugin.d.ts +2 -0
  366. package/types/src/protectedRange/ProtectedRangePlugin.d.ts.map +1 -0
  367. package/types/src/protectedRange/index.d.ts +2 -0
  368. package/types/src/protectedRange/index.d.ts.map +1 -0
  369. package/types/src/protection/WorkbookProtectionDialog.d.ts +23 -0
  370. package/types/src/protection/WorkbookProtectionDialog.d.ts.map +1 -0
  371. package/types/src/protection/WorkbookProtectionPanel.d.ts +51 -0
  372. package/types/src/protection/WorkbookProtectionPanel.d.ts.map +1 -0
  373. package/types/src/protection/index.d.ts +3 -0
  374. package/types/src/protection/index.d.ts.map +1 -0
  375. package/types/src/sheet/SheetTabMenu.d.ts +21 -0
  376. package/types/src/sheet/SheetTabMenu.d.ts.map +1 -0
  377. package/types/src/sheet/SheetsAllMenu.d.ts +16 -0
  378. package/types/src/sheet/SheetsAllMenu.d.ts.map +1 -0
  379. package/types/src/sheet/index.d.ts +3 -0
  380. package/types/src/sheet/index.d.ts.map +1 -0
  381. package/types/src/statusBar/NumberStats.d.ts +27 -0
  382. package/types/src/statusBar/NumberStats.d.ts.map +1 -0
  383. package/types/src/statusBar/SheetZoomScale.d.ts +11 -0
  384. package/types/src/statusBar/SheetZoomScale.d.ts.map +1 -0
  385. package/types/src/statusBar/StatusBar.d.ts +35 -0
  386. package/types/src/statusBar/StatusBar.d.ts.map +1 -0
  387. package/types/src/statusBar/index.d.ts +4 -0
  388. package/types/src/statusBar/index.d.ts.map +1 -0
  389. package/types/src/studio/CommandsWrapper.d.ts +36 -0
  390. package/types/src/studio/CommandsWrapper.d.ts.map +1 -0
  391. package/types/src/studio/DefaultLogo.d.ts +3 -0
  392. package/types/src/studio/DefaultLogo.d.ts.map +1 -0
  393. package/types/src/studio/EagerStudio.d.ts +5 -0
  394. package/types/src/studio/EagerStudio.d.ts.map +1 -0
  395. package/types/src/studio/Studio.d.ts +26 -0
  396. package/types/src/studio/Studio.d.ts.map +1 -0
  397. package/types/src/studio/StudioCommandProvider.d.ts +26 -0
  398. package/types/src/studio/StudioCommandProvider.d.ts.map +1 -0
  399. package/types/src/studio/StudioCommands.d.ts +115 -0
  400. package/types/src/studio/StudioCommands.d.ts.map +1 -0
  401. package/types/src/studio/StudioNotifierProvider.d.ts +10 -0
  402. package/types/src/studio/StudioNotifierProvider.d.ts.map +1 -0
  403. package/types/src/studio/StudioProps.d.ts +372 -0
  404. package/types/src/studio/StudioProps.d.ts.map +1 -0
  405. package/types/src/studio/StudioSplitPane.d.ts +60 -0
  406. package/types/src/studio/StudioSplitPane.d.ts.map +1 -0
  407. package/types/src/studio/StudioTaskPaneArea.d.ts +8 -0
  408. package/types/src/studio/StudioTaskPaneArea.d.ts.map +1 -0
  409. package/types/src/studio/StudioToolbar.d.ts +37 -0
  410. package/types/src/studio/StudioToolbar.d.ts.map +1 -0
  411. package/types/src/studio/index.d.ts +4 -0
  412. package/types/src/studio/index.d.ts.map +1 -0
  413. package/types/src/studio/useStudioApp.d.ts +51 -0
  414. package/types/src/studio/useStudioApp.d.ts.map +1 -0
  415. package/types/src/table/TableDetailsPanel.d.ts +17 -0
  416. package/types/src/table/TableDetailsPanel.d.ts.map +1 -0
  417. package/types/src/table/TableDetailsTaskPane.d.ts +3 -0
  418. package/types/src/table/TableDetailsTaskPane.d.ts.map +1 -0
  419. package/types/src/table/TablePlugin.d.ts +2 -0
  420. package/types/src/table/TablePlugin.d.ts.map +1 -0
  421. package/types/src/table/TableStyleCanvasPreview.d.ts +21 -0
  422. package/types/src/table/TableStyleCanvasPreview.d.ts.map +1 -0
  423. package/types/src/table/TableStyleOptionsPanel.d.ts +38 -0
  424. package/types/src/table/TableStyleOptionsPanel.d.ts.map +1 -0
  425. package/types/src/table/TableStylePreview.d.ts +43 -0
  426. package/types/src/table/TableStylePreview.d.ts.map +1 -0
  427. package/types/src/table/index.d.ts +7 -0
  428. package/types/src/table/index.d.ts.map +1 -0
  429. package/types/src/theme/ThemeSelectButton.d.ts +23 -0
  430. package/types/src/theme/ThemeSelectButton.d.ts.map +1 -0
  431. package/types/src/theme/ThemeSelectPanel.d.ts +17 -0
  432. package/types/src/theme/ThemeSelectPanel.d.ts.map +1 -0
  433. package/types/src/theme/ThemeSelectPopupButton.d.ts +24 -0
  434. package/types/src/theme/ThemeSelectPopupButton.d.ts.map +1 -0
  435. package/types/src/theme/ThemeUtils.d.ts +57 -0
  436. package/types/src/theme/ThemeUtils.d.ts.map +1 -0
  437. package/types/src/theme/index.d.ts +5 -0
  438. package/types/src/theme/index.d.ts.map +1 -0
  439. package/types/src/toast/ToastError.d.ts +10 -0
  440. package/types/src/toast/ToastError.d.ts.map +1 -0
  441. package/types/src/toast/index.d.ts +2 -0
  442. package/types/src/toast/index.d.ts.map +1 -0
  443. package/types/src/toolbar/WorkbookToolbars.d.ts +46 -0
  444. package/types/src/toolbar/WorkbookToolbars.d.ts.map +1 -0
  445. package/types/src/toolbar/index.d.ts +2 -0
  446. package/types/src/toolbar/index.d.ts.map +1 -0
  447. package/types/src/workbook/DefaultRenderers.d.ts +23 -0
  448. package/types/src/workbook/DefaultRenderers.d.ts.map +1 -0
  449. package/types/src/workbook/DocumentTitle.d.ts +69 -0
  450. package/types/src/workbook/DocumentTitle.d.ts.map +1 -0
  451. package/types/src/workbook/WorkbookContextMenu.d.ts +13 -0
  452. package/types/src/workbook/WorkbookContextMenu.d.ts.map +1 -0
  453. package/types/src/workbook/WorkbookElement.d.ts +12 -0
  454. package/types/src/workbook/WorkbookElement.d.ts.map +1 -0
  455. package/types/src/workbook/WorkbookStrip.d.ts +37 -0
  456. package/types/src/workbook/WorkbookStrip.d.ts.map +1 -0
  457. package/types/src/workbook/index.d.ts +7 -0
  458. package/types/src/workbook/index.d.ts.map +1 -0
  459. package/browser/cjs/7uRpnSJkNHg_E-KO.cjs +0 -6
  460. package/browser/cjs/B-O26BvbKDImp7pm.cjs +0 -20
  461. package/browser/cjs/B4j_sdzJNzq1ZPbT.cjs +0 -6
  462. package/browser/cjs/BWS4gFWp8lDPvR9C.cjs +0 -6
  463. package/browser/cjs/CmSwD6NZAHhOcRi3.cjs +0 -6
  464. package/browser/cjs/DHwhTAQeNs4slttB.cjs +0 -6
  465. package/browser/cjs/DMOT_ixtKqRvPULq.cjs +0 -6
  466. package/browser/cjs/DX5ji_lT0Qlqznv7.cjs +0 -42
  467. package/browser/cjs/DbqHWelIXc-F2a9N.cjs +0 -6
  468. package/browser/cjs/muTJOFrCXh156rjc.cjs +0 -6
  469. package/browser/cjs/rIy1Cx7HX-8zaQjY.cjs +0 -18
  470. package/browser/cjs/saPH3d5fE-ugXp6m.cjs +0 -7
  471. package/browser/esm/0D8VtNalLeBTB51a.mjs +0 -640
  472. package/browser/esm/BMo7K5LaD7zuDVg9.mjs +0 -2159
  473. package/browser/esm/BNmwaUWz2DJqWumP.mjs +0 -25
  474. package/browser/esm/Btt4G85L5v01eySb.mjs +0 -46
  475. package/browser/esm/C7jHdVMf6Yr4eH_B.mjs +0 -50
  476. package/browser/esm/CROTe62QHFVo8YMt.mjs +0 -155
  477. package/browser/esm/D5XNYGaC4Yw6vCRL.mjs +0 -54
  478. package/browser/esm/DUzVAMWTrS0u37LX.mjs +0 -2411
  479. package/browser/esm/DltuoFr9A-WJccbV.mjs +0 -26
  480. package/browser/esm/DtifaYF85GrfJ9_1.mjs +0 -50
  481. package/browser/esm/aUkJls9HzxnrZSof.mjs +0 -53
  482. package/browser/esm/mqkuG-TcLS4nn4x0.mjs +0 -4531
  483. package/node/assets/style.css +0 -1
  484. package/node/esm/BYjJIMFsheqJcsEI.mjs +0 -57
  485. package/node/esm/CACqTiBtxYlo1mu7.mjs +0 -26
  486. package/node/esm/CJU8jJhxtR3PEj2I.mjs +0 -52
  487. package/node/esm/CS0OWM24rZpAGRKU.mjs +0 -50
  488. package/node/esm/CdUceTAldsMTIFnD.mjs +0 -53
  489. package/node/esm/D6B7z_d11sd-U1fU.mjs +0 -46
  490. package/node/esm/DCngEQG4um0yTeoj.mjs +0 -91
  491. package/node/esm/DQnCFz2zJgMwLou_.mjs +0 -88
  492. package/node/esm/Do7ts-uMkQANfvhq.mjs +0 -156
  493. package/node/esm/oYh6joioOWhFd_R3.mjs +0 -25
@@ -0,0 +1,411 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.23-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 "./suPpQTgd0X3baAFS.mjs";
8
+ import { NumberFormat as t } from "@sheetxl/sdk";
9
+ import { useCallbackRef as n, useTranslator as r } from "@sheetxl/utils-react";
10
+ import { forwardRef as i, memo as a, useEffect as o, useState as ee, version as s } from "react";
11
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
12
+ import { Box as d, Checkbox as f, FormControl as te, FormControlLabel as p, InputLabel as m, List as h, ListItemButton as g, ListItemText as _, MenuItem as v, Select as y, TextField as b, Typography as x } from "@mui/material";
13
+ function S(e, t) {
14
+ if (typeof e == "function") return e(t);
15
+ e && (e.current = t);
16
+ }
17
+ var C = parseInt(s.split(".")[0], 10) >= 19 ? function(e) {
18
+ return (t) => {
19
+ let n = [];
20
+ for (let r of e) {
21
+ let e = S(r, t), i = typeof e == "function";
22
+ n.push(i ? e : () => S(r, null));
23
+ }
24
+ return () => {
25
+ for (let e of n) e();
26
+ };
27
+ };
28
+ } : function(e) {
29
+ return (t) => {
30
+ for (let n of e) S(n, t);
31
+ };
32
+ }, { Builder: w } = t, T = {
33
+ py: "2px",
34
+ px: 1,
35
+ minHeight: 0,
36
+ "& .MuiListItemText-root": { my: 0 },
37
+ "& .MuiListItemText-primary": {
38
+ fontSize: "0.8125rem",
39
+ lineHeight: 1.5
40
+ },
41
+ "& .MuiListItemText-secondary": {
42
+ fontSize: "0.7rem",
43
+ lineHeight: 1.3
44
+ }
45
+ }, E = {
46
+ border: (e) => `1px solid ${e.palette.divider}`,
47
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
48
+ overflow: "auto"
49
+ };
50
+ function D(e, t, n) {
51
+ switch (t) {
52
+ case "minus": return e("numberFormat.negMinus");
53
+ case "red": return e("numberFormat.negRed");
54
+ case "parens": return e("numberFormat.negParens");
55
+ case "redParens": return e("numberFormat.negRedParens");
56
+ default: return n;
57
+ }
58
+ }
59
+ function O(e, t) {
60
+ switch (t) {
61
+ case "General": return e("numberFormat.catGeneral");
62
+ case "Number": return e("numberFormat.catNumber");
63
+ case "Currency": return e("numberFormat.catCurrency");
64
+ case "Accounting": return e("numberFormat.catAccounting");
65
+ case "Date": return e("numberFormat.catDate");
66
+ case "Time": return e("numberFormat.catTime");
67
+ case "Percentage": return e("numberFormat.catPercentage");
68
+ case "Fraction": return e("numberFormat.catFraction");
69
+ case "Scientific": return e("numberFormat.catScientific");
70
+ case "Text": return e("numberFormat.catText");
71
+ case "Special": return e("numberFormat.catSpecial");
72
+ case "Custom": return e("numberFormat.catCustom");
73
+ default: return t;
74
+ }
75
+ }
76
+ function k(e, n, r) {
77
+ try {
78
+ return r ? r.createCell({
79
+ value: n,
80
+ style: { numberFormat: e }
81
+ }).getNumberFormat().displayText || "" : t.getEngine().format(e, n, {}).text ?? "";
82
+ } catch {
83
+ return "";
84
+ }
85
+ }
86
+ var A = a(i((i, a) => {
87
+ let { value: s, onChange: S, context: A, onCommit: j, disabled: M = !1, className: N, onKeyDown: P, ...F } = i, I = r(), [L, R] = ee(() => w.parse(s));
88
+ o(() => {
89
+ w.build(L) !== s && R(w.parse(s));
90
+ }, [s]);
91
+ let z = A?.() ?? null, B = n((e) => {
92
+ R(e), S(w.build(e));
93
+ }, [S]), V = n((e) => {
94
+ B({
95
+ ...L,
96
+ ...e
97
+ });
98
+ }, [L, B]), H = n((e) => {
99
+ if (e === L.category) return;
100
+ let t = w.defaultCodeForCategory(e), n = w.isParametricCategory(e) ? w.parse(t) : {
101
+ category: e,
102
+ code: t
103
+ };
104
+ B(n);
105
+ }, [L.category, B]), U = n((e) => {
106
+ if (P?.(e), e.key === "Enter") {
107
+ if (e.target.closest("[role=\"combobox\"]")) return;
108
+ e.preventDefault(), e.stopPropagation(), j?.();
109
+ }
110
+ }, [P, j]), W = (e, t, n) => (r) => {
111
+ let i = t;
112
+ switch (r.key) {
113
+ case "ArrowDown":
114
+ i = Math.min(e - 1, t + 1);
115
+ break;
116
+ case "ArrowUp":
117
+ i = Math.max(0, t - 1);
118
+ break;
119
+ case "Home":
120
+ i = 0;
121
+ break;
122
+ case "End":
123
+ i = e - 1;
124
+ break;
125
+ default: return;
126
+ }
127
+ r.preventDefault(), i !== t && i >= 0 && n(i), r.currentTarget.querySelectorAll(".MuiListItemButton-root")[i]?.focus();
128
+ }, G = L.category, K = function(e, t, n) {
129
+ let r = t?.getValue();
130
+ return e === "Text" ? typeof r == "string" ? r : n : e === "Date" || e === "Time" ? typeof r == "number" ? r : 45658.625 : typeof r == "number" ? r : 1234.56;
131
+ }(G, z, I("numberFormat.sampleText")), q = k(s, K, z), J = l(b, {
132
+ label: I("numberFormat.decimalPlaces"),
133
+ type: "number",
134
+ size: "small",
135
+ disabled: M,
136
+ value: L.decimalPlaces ?? 0,
137
+ onChange: (e) => {
138
+ let t = Math.max(0, Math.min(30, parseInt(e.target.value, 10) || 0));
139
+ V({ decimalPlaces: t });
140
+ },
141
+ slotProps: {
142
+ htmlInput: {
143
+ min: 0,
144
+ max: 30
145
+ },
146
+ inputLabel: { shrink: !0 }
147
+ },
148
+ sx: { width: 140 }
149
+ }), Y = u(te, {
150
+ size: "small",
151
+ sx: { width: 140 },
152
+ children: [l(m, {
153
+ shrink: !0,
154
+ children: I("numberFormat.symbol")
155
+ }), l(y, {
156
+ label: I("numberFormat.symbol"),
157
+ notched: !0,
158
+ disabled: M,
159
+ value: L.currencySymbol ?? "$",
160
+ onChange: (e) => V({ currencySymbol: e.target.value }),
161
+ children: w.CURRENCY_SYMBOLS.map((e) => l(v, {
162
+ value: e,
163
+ children: e
164
+ }, e))
165
+ })]
166
+ }), ne = l(p, {
167
+ sx: { alignSelf: "center" },
168
+ control: l(f, {
169
+ size: "small",
170
+ disabled: M,
171
+ checked: !!L.useSeparator,
172
+ onChange: (e) => V({ useSeparator: e.target.checked })
173
+ }),
174
+ label: I("numberFormat.useSeparator")
175
+ }), X = u(d, {
176
+ sx: {
177
+ display: "flex",
178
+ flexDirection: "column",
179
+ minHeight: 0,
180
+ flex: "1 1 auto"
181
+ },
182
+ children: [l(x, {
183
+ variant: "caption",
184
+ component: "div",
185
+ sx: { mb: .5 },
186
+ children: I("numberFormat.negativeNumbers")
187
+ }), l(h, {
188
+ dense: !0,
189
+ disablePadding: !0,
190
+ sx: {
191
+ ...E,
192
+ flex: "1 1 auto"
193
+ },
194
+ onKeyDown: W(w.NEGATIVE_STYLES.length, L.negativeStyle ?? 0, (e) => V({ negativeStyle: e })),
195
+ children: w.NEGATIVE_STYLES.map((e, t) => {
196
+ let n = k(w.build({
197
+ ...L,
198
+ negativeStyle: t
199
+ }), -function(e) {
200
+ return typeof e == "number" ? Math.abs(e) : 1234.56;
201
+ }(K), z);
202
+ return l(g, {
203
+ disabled: M,
204
+ selected: (L.negativeStyle ?? 0) === t,
205
+ onClick: () => V({ negativeStyle: t }),
206
+ sx: T,
207
+ children: l(_, {
208
+ primary: n || D(I, e.key, e.label),
209
+ slotProps: { primary: {
210
+ noWrap: !0,
211
+ sx: {
212
+ color: e.red ? "error.main" : void 0,
213
+ fontVariantNumeric: "tabular-nums"
214
+ }
215
+ } }
216
+ })
217
+ }, e.key);
218
+ })
219
+ })]
220
+ }), Z = (e, t) => l(h, {
221
+ dense: !0,
222
+ disablePadding: !0,
223
+ sx: {
224
+ ...E,
225
+ flex: "1 1 auto"
226
+ },
227
+ onKeyDown: W(e.length, e.indexOf(s), (t) => B({
228
+ category: G,
229
+ code: e[t]
230
+ })),
231
+ children: e.map((e) => l(g, {
232
+ disabled: M,
233
+ selected: s === e,
234
+ onClick: () => B({
235
+ category: G,
236
+ code: e
237
+ }),
238
+ sx: T,
239
+ children: l(_, {
240
+ primary: t?.[e] ?? k(e, K, z) ?? e,
241
+ secondary: t ? e : void 0,
242
+ slotProps: {
243
+ primary: { noWrap: !0 },
244
+ secondary: { noWrap: !0 }
245
+ }
246
+ })
247
+ }, e))
248
+ }), re = l(b, {
249
+ label: I("numberFormat.typeCode"),
250
+ size: "small",
251
+ fullWidth: !0,
252
+ disabled: M,
253
+ value: s,
254
+ error: !!s && !t.Parser.isValidFormat(s),
255
+ helperText: s && !t.Parser.isValidFormat(s) ? I("numberFormat.invalidCode") : " ",
256
+ onChange: (e) => B({
257
+ category: "Custom",
258
+ code: e.target.value
259
+ }),
260
+ slotProps: {
261
+ inputLabel: { shrink: !0 },
262
+ htmlInput: {
263
+ spellCheck: !1,
264
+ autoComplete: "off"
265
+ }
266
+ }
267
+ }), Q = (e) => l(d, {
268
+ sx: {
269
+ display: "flex",
270
+ flexWrap: "wrap",
271
+ gap: 1.5,
272
+ alignItems: "flex-start"
273
+ },
274
+ children: e
275
+ }), $;
276
+ switch (G) {
277
+ case "General":
278
+ $ = l(x, {
279
+ variant: "body2",
280
+ children: I("numberFormat.generalInfo")
281
+ });
282
+ break;
283
+ case "Number":
284
+ $ = u(c, { children: [Q(u(c, { children: [J, ne] })), X] });
285
+ break;
286
+ case "Currency":
287
+ $ = u(c, { children: [Q(u(c, { children: [J, Y] })), X] });
288
+ break;
289
+ case "Accounting":
290
+ $ = u(c, { children: [Q(u(c, { children: [J, Y] })), l(x, {
291
+ variant: "caption",
292
+ color: "text.secondary",
293
+ children: I("numberFormat.accountingInfo")
294
+ })] });
295
+ break;
296
+ case "Percentage":
297
+ case "Scientific":
298
+ $ = J;
299
+ break;
300
+ case "Date":
301
+ $ = Z(w.DATE_PRESETS);
302
+ break;
303
+ case "Time":
304
+ $ = Z(w.TIME_PRESETS);
305
+ break;
306
+ case "Fraction":
307
+ $ = Z(w.FRACTION_PRESETS, ((e) => ({
308
+ "# ?/?": e("numberFormat.fractionOneDigit"),
309
+ "# ??/??": e("numberFormat.fractionTwoDigits"),
310
+ "# ???/???": e("numberFormat.fractionThreeDigits"),
311
+ "# ?/2": e("numberFormat.fractionHalves"),
312
+ "# ?/4": e("numberFormat.fractionQuarters"),
313
+ "# ?/8": e("numberFormat.fractionEighths"),
314
+ "# ??/16": e("numberFormat.fractionSixteenths"),
315
+ "# ?/10": e("numberFormat.fractionTenths"),
316
+ "# ??/100": e("numberFormat.fractionHundredths")
317
+ }))(I));
318
+ break;
319
+ case "Special":
320
+ $ = Z(w.SPECIAL_PRESETS, ((e) => ({
321
+ "00000": e("numberFormat.specialZip"),
322
+ "00000-0000": e("numberFormat.specialZip4"),
323
+ "[<=9999999]###-####;(###) ###-####": e("numberFormat.specialPhone"),
324
+ "000-00-0000": e("numberFormat.specialSsn")
325
+ }))(I));
326
+ break;
327
+ case "Text":
328
+ $ = l(x, {
329
+ variant: "body2",
330
+ children: I("numberFormat.textInfo")
331
+ });
332
+ break;
333
+ case "Custom":
334
+ $ = u(c, { children: [re, Z(w.DATE_PRESETS.concat(w.TIME_PRESETS))] });
335
+ break;
336
+ default: $ = null;
337
+ }
338
+ return u(d, {
339
+ ref: C([a]),
340
+ className: e("sxl-number-format-panel", N),
341
+ onKeyDown: U,
342
+ sx: {
343
+ display: "flex",
344
+ flexDirection: "column",
345
+ gap: 1.25
346
+ },
347
+ ...F,
348
+ children: [u(d, { children: [l(x, {
349
+ variant: "caption",
350
+ component: "div",
351
+ sx: { pl: .5 },
352
+ children: I("numberFormat.sample")
353
+ }), l(x, {
354
+ variant: "body1",
355
+ component: "div",
356
+ sx: {
357
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
358
+ padding: (e) => e.spacing(1),
359
+ border: (e) => `1px solid ${e.palette.divider}`,
360
+ minHeight: "1.6em",
361
+ fontVariantNumeric: "tabular-nums",
362
+ overflow: "hidden",
363
+ textOverflow: "ellipsis",
364
+ whiteSpace: "nowrap"
365
+ },
366
+ children: q || " "
367
+ })] }), u(d, {
368
+ sx: {
369
+ display: "flex",
370
+ gap: 1.5,
371
+ height: 296
372
+ },
373
+ children: [l(h, {
374
+ dense: !0,
375
+ disablePadding: !0,
376
+ sx: {
377
+ ...E,
378
+ width: 112,
379
+ flex: "0 0 auto"
380
+ },
381
+ onKeyDown: W(w.CATEGORIES.length, w.CATEGORIES.indexOf(G), (e) => H(w.CATEGORIES[e])),
382
+ children: w.CATEGORIES.map((t) => l(g, {
383
+ className: e("sxl-nf-cat", { "sxl-nf-cat-active": G === t }),
384
+ disabled: M,
385
+ selected: G === t,
386
+ onClick: () => H(t),
387
+ sx: T,
388
+ children: l(_, {
389
+ primary: O(I, t),
390
+ slotProps: { primary: { noWrap: !0 } }
391
+ })
392
+ }, t))
393
+ }), l(d, {
394
+ sx: {
395
+ display: "flex",
396
+ flexDirection: "column",
397
+ gap: 1.25,
398
+ flex: "1 1 auto",
399
+ minWidth: 0,
400
+ border: (e) => `1px solid ${e.palette.divider}`,
401
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
402
+ padding: (e) => e.spacing(1.5),
403
+ overflow: "auto"
404
+ },
405
+ children: $
406
+ })]
407
+ })]
408
+ });
409
+ }));
410
+ A.displayName = "NumberFormatPanel";
411
+ export { C as n, A as t };
@@ -0,0 +1,82 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.23-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 { n as e } from "./eL50tJKtsxKJk7-6.mjs";
8
+ import { useReferenceMode as t } from "@sheetxl/react";
9
+ import { useCallbackRef as n, useTranslator as r } from "@sheetxl/utils-react";
10
+ import { memo as i, useCallback as a, useMemo as o, useState as s } from "react";
11
+ import { OptionsDialog as c } from "@sheetxl/utils-mui";
12
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
13
+ import { Box as d, Checkbox as f, FormControlLabel as p } from "@mui/material";
14
+ var m = ["Ok", "Cancel"], h = i((i) => {
15
+ let { onInput: h, onOption: g, onValidateOption: _, onDone: v, options: y = m, defaultOption: b = y?.[0], cancelOption: x = "Cancel", sx: S, initialValue: C, context: w, ...T } = i, E = r(), [D, O] = s(!1), [k, A] = s(() => C?.hasHeader ?? !1), [j, M] = s(() => C?.ranges ?? null), N = o(() => {
16
+ let e = C?.ranges?.getSheet?.()?.getName();
17
+ return e ? { scope: e } : void 0;
18
+ }, [C]), P = t().getMode()?.mode === "point", F = n((e) => {
19
+ let t = j ? {
20
+ ...C,
21
+ hasHeader: k,
22
+ ranges: j
23
+ } : null, n = e === x || !e;
24
+ h?.(!n && t ? t : void 0), g?.(e ?? x, n, e === b), v?.({
25
+ option: e,
26
+ tableOptions: t
27
+ });
28
+ }, [
29
+ v,
30
+ g,
31
+ b,
32
+ x,
33
+ k,
34
+ j,
35
+ C
36
+ ]), I = a(async (e, t) => !0, []);
37
+ return l(c, {
38
+ title: E("tableNew.title"),
39
+ options: y,
40
+ onDone: F,
41
+ onValidateOption: I,
42
+ defaultOption: b,
43
+ cancelOption: x,
44
+ autoFocusSel: ".autoFocus",
45
+ suspendModal: P,
46
+ sx: {
47
+ width: "360px",
48
+ ...S
49
+ },
50
+ ...T,
51
+ children: u(d, {
52
+ sx: {
53
+ paddingTop: (e) => e.spacing(1),
54
+ paddingBottom: (e) => e.spacing(0),
55
+ rowGap: (e) => e.spacing(1),
56
+ display: "flex",
57
+ flexDirection: "column"
58
+ },
59
+ children: [l(e, {
60
+ grammar: "reference",
61
+ classNameInput: "autoFocus",
62
+ formName: "range",
63
+ value: j,
64
+ allowMulti: !1,
65
+ allowCrossSheet: !1,
66
+ home: N,
67
+ onChangeInput: (e) => M(e?.getReferences() ?? null),
68
+ onFocus: (e) => {
69
+ D || e.target?.select(), O(!0);
70
+ }
71
+ }), l(p, {
72
+ control: l(f, {
73
+ checked: k,
74
+ onChange: () => A(!k)
75
+ }),
76
+ label: E("tableNew.hasHeaders"),
77
+ labelPlacement: "end"
78
+ })]
79
+ })
80
+ });
81
+ });
82
+ export { h as TableNewDialog, h as default };
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.23-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 "./C9MY76RbJdvrNOgK.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,113 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.23-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 { n as e } from "./eL50tJKtsxKJk7-6.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, useCallback as o, useMemo as s, useState as c } from "react";
12
+ import { OptionsDialog as l } from "@sheetxl/utils-mui";
13
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
14
+ import { Box as f } from "@mui/material";
15
+ var p = ["Ok", "Cancel"], m = a((a) => {
16
+ let { initialValue: m = null, context: h, onOption: g, onValidateOption: _, onDone: v, onInput: y, options: b = p, defaultOption: x = b?.[0], cancelOption: S = "Cancel", sx: C, ...w } = a, T = i(), E = s(() => h?.().getNames().findValidName("Range1"), []), D = s(() => {
17
+ if (!m) return !0;
18
+ }, []), [O, k] = c({
19
+ displayText: m?.getName() ?? E,
20
+ errorText: null
21
+ }), [A, j] = c(() => ({
22
+ displayValue: m?.getRanges?.() ?? h?.()?.selection() ?? null,
23
+ errorText: null
24
+ })), [M, N] = c(!1), P = n().getMode()?.mode === "point", F = o(async (e) => !O.errorText && !A.errorText, []), I = r((e, t, n) => {
25
+ if (!t) {
26
+ let e = O?.displayText ?? "", t = (r = A?.displayValue ?? null) == null ? null : typeof r == "string" ? r : r.isICellRanges ? r.toString() : r.getExpression(), n = null;
27
+ if (D || !m) t && (n = h?.()?.getNames().addFormula(e, t, !1) ?? null);
28
+ else {
29
+ let r = m;
30
+ r.setExpression && m.doBatch(() => {
31
+ m.setName(e), t && r.setExpression(t);
32
+ }, T("op.editNamedItem", { name: e })), n = m;
33
+ }
34
+ n && (n.select(), y?.(n));
35
+ }
36
+ var r;
37
+ g?.(e, t, n), v?.();
38
+ }, [
39
+ h,
40
+ O,
41
+ A,
42
+ v,
43
+ g,
44
+ x,
45
+ S,
46
+ y
47
+ ]), L = r((e) => {
48
+ let t = null;
49
+ try {
50
+ h?.().getNames().validateName(e);
51
+ } catch (e) {
52
+ let n = e?.message;
53
+ t = n && T(n);
54
+ }
55
+ k({
56
+ displayText: e,
57
+ errorText: t
58
+ });
59
+ }, []), R = r((e) => {
60
+ m && m.getName().toLowerCase() === e.toLowerCase() || h?.().getNames().validateName(e);
61
+ }, [h, m]), z = o((e) => {
62
+ j({
63
+ displayValue: e ?? null,
64
+ errorText: null
65
+ });
66
+ }, []);
67
+ return u(l, {
68
+ title: T(D ? "namedRange.titleDefine" : "namedRange.titleEdit"),
69
+ options: b,
70
+ onOption: I,
71
+ onValidateOption: F,
72
+ defaultOption: x,
73
+ cancelOption: S,
74
+ autoFocusSel: ".autoFocus",
75
+ suspendModal: P,
76
+ sx: {
77
+ width: "460px",
78
+ ...C
79
+ },
80
+ ...w,
81
+ children: d(f, {
82
+ sx: {
83
+ paddingTop: (e) => e.spacing(1),
84
+ paddingBottom: (e) => e.spacing(0),
85
+ rowGap: (e) => e.spacing(1),
86
+ range: "flex",
87
+ flexDirection: "column"
88
+ },
89
+ children: [u(t, {
90
+ sx: { paddingTop: (e) => e.spacing(1.5) },
91
+ formName: "name",
92
+ defaultInput: E,
93
+ value: O.displayText,
94
+ onChangeInput: L,
95
+ onValidate: R,
96
+ onFocus: (e) => {
97
+ M || e.target?.select(), N(!0);
98
+ }
99
+ }), u(e, {
100
+ grammar: "reference",
101
+ formName: "range",
102
+ value: A.displayValue,
103
+ onChangeInput: z,
104
+ pickAs: "absolute",
105
+ allowMulti: !0,
106
+ onFocus: (e) => {
107
+ M || e.target?.select(), N(!0);
108
+ }
109
+ })]
110
+ })
111
+ });
112
+ });
113
+ export { m as NamedReferenceDialog, m as default };