@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,113 @@
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 { n as e } from "./Bt_J_RX2M5EfualB.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 };
@@ -0,0 +1,20 @@
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
+ function e(t) {
8
+ var n, r, i = "";
9
+ if (typeof t == "string" || typeof t == "number") i += t;
10
+ else if (typeof t == "object") if (Array.isArray(t)) {
11
+ var a = t.length;
12
+ for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
13
+ } else for (r in t) t[r] && (i && (i += " "), i += r);
14
+ return i;
15
+ }
16
+ function t() {
17
+ for (var t, n, r = 0, i = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += " "), i += n);
18
+ return i;
19
+ }
20
+ export { t };
@@ -0,0 +1,219 @@
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 { useTranslator as e } from "@sheetxl/utils-react";
8
+ import { forwardRef as t, memo as n, useState as r } from "react";
9
+ import { OptionsDialog as i } from "@sheetxl/utils-mui";
10
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
11
+ import { Box as s, Checkbox as c, FormControlLabel as l, TextField as u, Typography as d } from "@mui/material";
12
+ var f = Object.defineProperty, p = (e, t) => {
13
+ let n = {};
14
+ for (var r in e) f(n, r, {
15
+ get: e[r],
16
+ enumerable: !0
17
+ });
18
+ return t || f(n, Symbol.toStringTag, { value: "Module" }), n;
19
+ }, m = "•".repeat(8), h = (t) => {
20
+ let { password: n, onChange: i, disabled: c, required: l, labelPassword: d, labelConfirm: f, onValidityChange: p } = t, h = e(), [g, _] = r(""), v = n !== null, y = v && g !== n, b = (e, t) => {
21
+ let n = e !== null;
22
+ p(!(n && t !== e || l && n && e === ""));
23
+ };
24
+ return o(s, {
25
+ sx: {
26
+ display: "flex",
27
+ flexDirection: "column",
28
+ gap: (e) => e.spacing(1.5),
29
+ paddingLeft: 4
30
+ },
31
+ children: [a(u, {
32
+ type: "password",
33
+ size: "small",
34
+ label: d,
35
+ disabled: c,
36
+ value: n ?? m,
37
+ error: l && v && n === "",
38
+ onFocus: (e) => {
39
+ n === null && e.target.select();
40
+ },
41
+ onChange: (e) => {
42
+ let t = e.target.value === m ? null : e.target.value;
43
+ i(t), b(t, g);
44
+ },
45
+ slotProps: {
46
+ inputLabel: { shrink: !0 },
47
+ htmlInput: {
48
+ autoComplete: "new-password",
49
+ spellCheck: !1
50
+ }
51
+ }
52
+ }), a(u, {
53
+ type: "password",
54
+ size: "small",
55
+ label: f,
56
+ disabled: c || !v,
57
+ value: v ? g : m,
58
+ error: y,
59
+ helperText: y ? h("protection.passwordMismatch") : " ",
60
+ onChange: (e) => {
61
+ _(e.target.value), b(n, e.target.value);
62
+ },
63
+ slotProps: {
64
+ inputLabel: { shrink: !0 },
65
+ htmlInput: {
66
+ autoComplete: "new-password",
67
+ spellCheck: !1
68
+ }
69
+ }
70
+ })]
71
+ });
72
+ }, g = n(t((t, n) => {
73
+ let { value: i, onChange: u, onValidityChange: f, sx: p } = t, m = e(), [g, _] = r(!0), [v, y] = r(!0), b = (e, t) => {
74
+ f?.((!i.encrypt || e) && (!i.structure || t));
75
+ }, x = (e) => {
76
+ u({
77
+ ...i,
78
+ ...e
79
+ });
80
+ };
81
+ return o(s, {
82
+ ref: n,
83
+ sx: {
84
+ display: "flex",
85
+ flexDirection: "column",
86
+ gap: (e) => e.spacing(2.5),
87
+ ...p
88
+ },
89
+ children: [o(s, {
90
+ sx: {
91
+ display: "flex",
92
+ flexDirection: "column",
93
+ gap: (e) => e.spacing(1)
94
+ },
95
+ children: [
96
+ a(l, {
97
+ control: a(c, {
98
+ checked: i.encrypt,
99
+ onChange: (e) => {
100
+ let t = e.target.checked;
101
+ x({
102
+ encrypt: t,
103
+ encryptPassword: t ? i.encryptPassword ?? "" : i.encryptPassword
104
+ }), f?.((!t || g) && (!i.structure || v));
105
+ }
106
+ }),
107
+ label: m("protection.encrypt.label")
108
+ }),
109
+ a(h, {
110
+ password: i.encryptPassword,
111
+ onChange: (e) => x({ encryptPassword: e }),
112
+ disabled: !i.encrypt,
113
+ required: !0,
114
+ labelPassword: m("protection.password"),
115
+ labelConfirm: m("protection.passwordConfirm"),
116
+ onValidityChange: (e) => {
117
+ _(e), b(e, v);
118
+ }
119
+ }),
120
+ a(d, {
121
+ variant: "caption",
122
+ sx: {
123
+ paddingLeft: 4,
124
+ color: "warning.main"
125
+ },
126
+ children: m("protection.encrypt.warning")
127
+ })
128
+ ]
129
+ }), o(s, {
130
+ sx: {
131
+ display: "flex",
132
+ flexDirection: "column",
133
+ gap: (e) => e.spacing(1)
134
+ },
135
+ children: [
136
+ a(l, {
137
+ control: a(c, {
138
+ checked: i.structure,
139
+ onChange: (e) => {
140
+ let t = e.target.checked;
141
+ x({ structure: t }), f?.((!i.encrypt || g) && (!t || v));
142
+ }
143
+ }),
144
+ label: m("protection.structure.label")
145
+ }),
146
+ a(h, {
147
+ password: i.structurePassword,
148
+ onChange: (e) => x({ structurePassword: e }),
149
+ disabled: !i.structure,
150
+ required: !1,
151
+ labelPassword: m("protection.passwordOptional"),
152
+ labelConfirm: m("protection.passwordConfirm"),
153
+ onValidityChange: (e) => {
154
+ y(e), b(g, e);
155
+ }
156
+ }),
157
+ o(s, {
158
+ sx: {
159
+ display: "flex",
160
+ gap: (e) => e.spacing(2),
161
+ paddingLeft: 4
162
+ },
163
+ children: [a(l, {
164
+ control: a(c, {
165
+ size: "small",
166
+ disabled: !i.structure,
167
+ checked: i.lockStructure,
168
+ onChange: (e) => x({ lockStructure: e.target.checked })
169
+ }),
170
+ label: m("protection.structure.lockStructure")
171
+ }), a(l, {
172
+ control: a(c, {
173
+ size: "small",
174
+ disabled: !i.structure,
175
+ checked: i.lockWindows,
176
+ onChange: (e) => x({ lockWindows: e.target.checked })
177
+ }),
178
+ label: m("protection.structure.lockWindows")
179
+ })]
180
+ }),
181
+ a(d, {
182
+ variant: "caption",
183
+ sx: {
184
+ paddingLeft: 4,
185
+ color: "text.secondary"
186
+ },
187
+ children: m("protection.structure.note")
188
+ })
189
+ ]
190
+ })]
191
+ });
192
+ })), _ = p({
193
+ WorkbookProtectionDialog: () => v,
194
+ default: () => v
195
+ }), v = (t) => {
196
+ let n = e(), { initialValue: o, onApply: s, title: c = n("protection.title"), sx: l, ...u } = t, [d, f] = r(o), [p, m] = r(!0);
197
+ return a(i, {
198
+ title: c,
199
+ options: ["Ok", "Cancel"],
200
+ defaultOption: "Ok",
201
+ cancelOption: "Cancel",
202
+ sx: {
203
+ width: "440px",
204
+ ...l
205
+ },
206
+ onValidateOption: (e) => p,
207
+ onOption: (e, t) => {
208
+ if (!t && e === "Ok") return s(d);
209
+ },
210
+ ...u,
211
+ children: a(g, {
212
+ value: d,
213
+ onChange: f,
214
+ onValidityChange: m,
215
+ sx: { paddingTop: 1 }
216
+ })
217
+ });
218
+ };
219
+ export { _ as n, g as r, v as t };
@@ -1,92 +1,153 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-reset_11z3j_1{display:block;margin:0;padding:0;line-height:1}._sheetxl-reset_11z3j_1 table,._sheetxl-reset_11z3j_1 thead,._sheetxl-reset_11z3j_1 tbody,._sheetxl-reset_11z3j_1 tfoot,._sheetxl-reset_11z3j_1 tr,._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:block;width:auto;height:auto;margin:0;padding:0;border:none;border-collapse:inherit;border-spacing:0;border-color:inherit;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0}._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:inline}html{color:initial}._table-style-options-container_1kfn2_1{container-type:inline-size}._table-style-options_1kfn2_1{display:grid;grid-template-columns:1fr;user-select:none}@container (width > 600px){._table-style-options_1kfn2_1{grid-template-rows:repeat(3,auto);grid-auto-flow:column;grid-auto-columns:1fr;gap:2px}}._range-row_akhf4_1{display:flex;flex-direction:column;flex:1 1 100%;width:100%;align-items:center}@container (width > 600px){._range-row_akhf4_1{flex-direction:row;gap:12px;justify-content:space-between}}._action-row_akhf4_15{display:flex;align-items:start;flex-direction:column;width:100%;gap:4px}@container (width > 600px){._action-row_akhf4_15{align-items:center;flex-direction:row;justify-content:space-evenly}}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4{fill:currentColor}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .activeColor{fill:var(--sxl-color-active)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .background{fill:var(--sxl-app-color-background)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .grey{fill:var(--sxl-app-color-grey)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .highContrast{fill:var(--sxl-app-color-high)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info{fill:var(--sxl-app-color-info)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.light{fill:var(--sxl-app-color-info-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.dark{fill:var(--sxl-app-color-info-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary{fill:var(--sxl-app-color-secondary)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.light{fill:var(--sxl-app-color-secondary-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.dark{fill:var(--sxl-app-color-secondary-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success{fill:var(--sxl-app-color-success)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.light{fill:var(--sxl-app-color-success-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.dark{fill:var(--sxl-app-color-success-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning{fill:var(--sxl-app-color-warning)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .light{fill:var(--sxl-app-color-warning-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .dark{fill:var(--sxl-app-color-warning-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error{fill:var(--sxl-app-color-error)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .light{fill:var(--sxl-app-color-error-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .dark{fill:var(--sxl-app-color-error-dark)}._sheetxl-workbook_g5t6x_5{display:flex;position:relative;overflow:hidden;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;outline:none}._sheetxl-workbook_g5t6x_5 .splitPane .styled-resizer{background-color:var(--sxl-app-color-grey, grey)}._sheetxl-workbook_g5t6x_5 .splitPane .styled-resizer:hover,._sheetxl-workbook_g5t6x_5 .splitPane.dragging .styled-resizer{background-color:var(--sxl-app-color-primary, blue)}._card_1a398_7{width:100%}._actionRoot_1a398_11{padding:8px 8px 8px 16px;justify-content:space-between}._icons_1a398_16{margin-left:auto;display:flex;align-items:center}._expand_1a398_22{padding:8px;transform:rotate(0);color:#d32f2f;transition:all .2s ease-in-out}._expandOpen_1a398_29{transform:rotate(180deg)}._stackTraceContainer_1a398_33{padding:16px}._paper_1a398_37{background-color:#fff;padding:16px}._checkIcon_1a398_42{font-size:20px;padding-right:4px}._button_1a398_47{padding:0;text-transform:none}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- import { LicenseManager as t } from "@sheetxl/sdk";
3
- import { DefaultTaskPaneRegistry as n, useModelListener as s, useRangeListener as m } from "@sheetxl/react";
4
- import { E as u, Z as r, B as d, O as C, X as B, n as i, o as p, m as S, k, a0 as P, a1 as T, t as b, $ as F, Y as c, a2 as g, D as y, as as I, l as h, aa as f, s as W, ab as x, h as M, v as w, i as L, a8 as A, F as D, G as E, H as O, L as R, K as v, I as V, M as z, a9 as H, N, j as U, P as G, z as j, A as q, R as Z, ai as J, aj as K, a7 as Q, ak as X, q as Y, a6 as _, S as $, Q as aa, af as oa, ag as ta, ah as ea, ad as na, ae as sa, ac as ma, w as la, T as ua, f as ra, a3 as da, a4 as Ca, a5 as Ba, x as ia, U as pa, V as Sa, p as ka, y as Pa, J as Ta, ao as ba, am as Fa, au as ca, ap as ga, an as ya, W as Ia, at as ha, ar as fa, S as Wa, al as xa, aq as Ma } from "./CPLIJbynjEkwF2T0.mjs";
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`._sheetxl-reset_11z3j_1{margin:0;padding:0;line-height:1;display:block}._sheetxl-reset_11z3j_1 table,._sheetxl-reset_11z3j_1 thead,._sheetxl-reset_11z3j_1 tbody,._sheetxl-reset_11z3j_1 tfoot,._sheetxl-reset_11z3j_1 tr,._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{border-collapse:inherit;border-spacing:0;border:none;border-color:inherit;width:auto;height:auto;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0;margin:0;padding:0;display:block}._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:inline}html{color:initial}._table-style-options-container_1kfn2_1{container-type:inline-size}._table-style-options_1kfn2_1{user-select:none;grid-template-columns:1fr;display:grid;@container (width>600px){grid-template-rows:repeat(3,auto);grid-auto-columns:1fr;grid-auto-flow:column;gap:2px}}._range-row_akhf4_1{flex-direction:column;flex:100%;align-items:center;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-between;gap:12px}}._action-row_akhf4_15{flex-direction:column;align-items:start;gap:4px;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-evenly;align-items:center}}._details-panel_mdq6z_1{box-sizing:border-box;background:0 0;flex-direction:column;flex:auto;align-items:stretch;width:100%;height:100%;display:flex;overflow:hidden}._editor_mdq6z_13{flex-direction:column;height:100%;display:flex}._editor-panel_mdq6z_19{flex-direction:column;display:flex}._editor-buttons_mdq6z_24{justify-content:flex-end;display:flex}._card_mdq6z_29{flex-direction:column;display:flex}._stats-items_151a8_1{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:2px;min-width:0;max-height:1rem;display:flex;overflow:hidden}._stats-item_151a8_1{flex-shrink:0}._stats-item-label_151a8_15{user-select:none;white-space:nowrap;cursor:pointer;border-radius:2px;align-items:center;gap:4px;padding:0 4px;transition:background-color .2s;display:flex}._stats-item-label_151a8_15:hover{background-color:#0000000a}._stats-item-label_151a8_15:active{background-color:#00000014}._formula-bar_uer84_1{flex-direction:row;flex:100%;align-items:start;display:flex}._card_h0jnt_7{width:100%}._actionRoot_h0jnt_11{justify-content:space-between;padding:8px 8px 8px 16px}._icons_h0jnt_16{align-items:center;margin-left:auto;display:flex}._expand_h0jnt_22{color:var(--sxl-color-error-content);padding:8px;transition:all .2s ease-in-out;transform:rotate(0)}._expandOpen_h0jnt_29{transform:rotate(180deg)}._stackTraceContainer_h0jnt_33{padding:16px}._paper_h0jnt_37{background-color:#fff;padding:16px}._checkIcon_h0jnt_42{padding-right:4px;font-size:20px}._button_h0jnt_47{text-transform:none;padding:0}._styled-resizer_fdl5y_3{background-color:var(--sxl-color-neutral,grey)}._styled-resizer_fdl5y_3:hover,.splitPane.dragging ._styled-resizer_fdl5y_3{background-color:var(--sxl-color-primary,blue)}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
5
2
  /**
6
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.27
7
- *
8
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
- * License: The license can be found at https://www.sheetxl.com/license.
10
- */
11
- export {
12
- u as AppearanceCommandButton,
13
- r as AutoColorPosition,
14
- d as BorderCommandButton,
15
- C as BorderPopupButton,
16
- B as BorderStylePopupButton,
17
- i as CellsDeleteCommandButton,
18
- p as CellsFormatCommandButton,
19
- S as CellsInsertCommandButton,
20
- k as ClearCommandButton,
21
- P as ColorButton,
22
- T as ColorButtonList,
23
- b as ColorCommandButton,
24
- F as ColorPanel,
25
- c as ColorPanelType,
26
- g as ColorPopupButton,
27
- n as DefaultTaskPaneRegistry,
28
- y as DocThemeCommandButton,
29
- I as EagerStudio,
30
- h as FillCommandButton,
31
- f as FilterColumnMenu,
32
- W as FilterCommandButton,
33
- x as Filters,
34
- M as FindCommandButton,
35
- w as FontFamilyCommandButton,
36
- L as FontSizeCommandButton,
37
- A as FormulaBar,
38
- D as FreezeCommandButton,
39
- E as HelpCommandButton,
40
- O as HorizontalAlignCommandButton,
41
- R as InsertFunctionCommandPopupButton,
42
- v as InsertFunctionSumCommandPopupButton,
43
- V as InsertImageCommandButton,
44
- t as LicenseManager,
45
- z as MergeCommandButton,
46
- H as NamedCollectionEditor,
47
- N as NamedInput,
48
- U as NumberFormatCommandButton,
49
- G as PasteCommandButton,
50
- j as PresetCellStylesCommandButton,
51
- q as PresetTableStylesCommandButton,
52
- Z as RangeInput,
53
- J as SheetTab,
54
- K as SheetTabMenu,
55
- Q as SheetZoomScale,
56
- X as SheetsAllMenu,
57
- Y as SortFilterCommandButton,
58
- _ as StatusBar,
59
- $ as Studio,
60
- aa as StyledStrokeIcon,
61
- oa as TableDetailsPanel,
62
- ta as TableDetailsTaskPane,
63
- ea as TablePlugin,
64
- na as TableStyleCanvasPreview,
65
- sa as TableStyleOptionsPanel,
66
- ma as TableStylePreview,
67
- la as TextEffectsCommandButton,
68
- ua as TextOverflowCommandButton,
69
- ra as TextRotateCommandButton,
70
- da as ThemeSelectButton,
71
- Ca as ThemeSelectPanel,
72
- Ba as ThemeSelectPopupButton,
73
- ia as UnderlineCommandButton,
74
- pa as UndoRedoCommandButton,
75
- Sa as VerticalAlignCommandButton,
76
- ka as ViewGridLinesCommandButton,
77
- Pa as ViewHeadingsCommandButton,
78
- Ta as WalkingCopyCommandButton,
79
- ba as WorkbookContextMenu,
80
- Fa as WorkbookElement,
81
- ca as WorkbookIO,
82
- ga as WorkbookStrip,
83
- ya as WorkbookTitle,
84
- Ia as WorkbookViewCommandButton,
85
- ha as _WorkbookIO,
86
- fa as createGridStyleFromMUITheme,
87
- Wa as default,
88
- xa as setPrintExamplesOnLoad,
89
- s as useModelListener,
90
- m as useRangeListener,
91
- Ma as useWorkbookCommands
92
- };
3
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.2
4
+ *
5
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
6
+ * License: The license can be found at https://www.sheetxl.com/license.
7
+ */
8
+ import { r as e, t } from "./gr4KpbaVpVfm8KOB.mjs";
9
+ import { A as n, At as r, B as i, Bt as a, C as o, Ct as s, D as c, Dt as l, E as u, Et as d, F as f, Ft as p, G as m, H as h, I as g, It as _, L as v, Lt as y, M as b, Mt as x, N as S, Nt as C, O as w, Ot as T, P as E, Pt as D, R as O, Rt as ee, S as te, St as ne, T as re, Tt as ie, U as ae, V as oe, Vt as se, W as k, _ as A, _t as j, a as M, at as N, b as P, bt as F, c as I, ct as L, dt as R, ft as z, g as B, gt as V, ht as H, i as U, it as W, j as G, jt as K, k as ce, kt as le, l as ue, lt as de, m as fe, mt as pe, n as me, o as he, ot as ge, pt as _e, r as ve, s as ye, st as be, t as xe, u as Se, ut as Ce, v as we, vt as Te, w as Ee, wt as De, x as Oe, xt as ke, y as Ae, yt as je, z as Me, zt as Ne } from "./BKadOi_4tf3UqilJ.mjs";
10
+ import { t as Pe } from "./gdfNDmwpOOPidxVx.mjs";
11
+ import { t as Fe } from "./DN5ACcUVdZeTSdLP.mjs";
12
+ import { n as Ie, r as Le, t as Re } from "./Bt_J_RX2M5EfualB.mjs";
13
+ import { a as ze, i as Be, n as Ve, o as He, r as Ue, t as We } from "./DhSHhyt16cHMvS_1.mjs";
14
+ import { useInputField as Ge } from "@sheetxl/react";
15
+ import { DynamicIcon as q, useTranslator as Ke } from "@sheetxl/utils-react";
16
+ import { forwardRef as J, memo as qe, useEffect as Je, useImperativeHandle as Ye, useMemo as Xe, useRef as Y } from "react";
17
+ import { ExhibitIconButton as X } from "@sheetxl/utils-mui";
18
+ import { jsx as Z, jsxs as Ze } from "react/jsx-runtime";
19
+ import { FormControl as Qe, InputAdornment as $e, TextField as et } from "@mui/material";
20
+ var Q = (e) => {
21
+ e.button === 0 && e.preventDefault();
22
+ }, $ = qe(J((e, t) => {
23
+ let { disabled: n, className: r, sx: i, defaultInput: a, value: o, formName: s, formOptions: c, onChangeInput: l, onChangeText: u, onDone: d, changeOn: f, onValidate: p, apiRef: m, label: h, hideAdornment: g, onKeyDown: _, onFocus: v, ...y } = e, b = Ke(), x = h ?? b("namedInput.label"), S = Le(), C = s && S ? S.register(s, c) : null, w = Ge({
24
+ value: o ?? "",
25
+ onChange: l,
26
+ onChangeText: u,
27
+ onDone: d,
28
+ changeOn: f,
29
+ onValidate: p,
30
+ disabled: n
31
+ });
32
+ Ye(m, () => w, [w]);
33
+ let T = Y(S);
34
+ T.current = S;
35
+ let E = Y(null);
36
+ Je(() => {
37
+ if (!s || w.error === E.current) return;
38
+ E.current = w.error;
39
+ let e = T.current;
40
+ e && (w.error ? e.setError(s, { message: b(w.error) }) : e.clearErrors(s));
41
+ }, [w.error, s]);
42
+ let D = !!d, O = Xe(() => {
43
+ if (!g && D) return Ze($e, {
44
+ tabIndex: -1,
45
+ onMouseDown: Q,
46
+ "aria-hidden": !w.engaged,
47
+ sx: {
48
+ display: "flex",
49
+ position: "relative",
50
+ flex: "0",
51
+ ...w.engaged ? null : {
52
+ visibility: "hidden",
53
+ pointerEvents: "none"
54
+ }
55
+ },
56
+ position: "end",
57
+ children: [Z(X, {
58
+ dense: !0,
59
+ outlined: !1,
60
+ color: "primary",
61
+ "aria-label": "commit-input",
62
+ icon: Z(q, { iconKey: "CheckSuccess" }),
63
+ propsTooltip: {
64
+ label: b("referenceInput.commit"),
65
+ simple: !0
66
+ },
67
+ disabled: !!w.error,
68
+ tabIndex: -1,
69
+ onMouseDown: Q,
70
+ onClick: () => {
71
+ w.commit();
72
+ }
73
+ }), Z(X, {
74
+ dense: !0,
75
+ outlined: !1,
76
+ color: "warning",
77
+ "aria-label": "cancel-input",
78
+ icon: Z(q, { iconKey: "CloseError" }),
79
+ propsTooltip: {
80
+ label: b("referenceInput.cancel"),
81
+ simple: !0
82
+ },
83
+ tabIndex: -1,
84
+ onMouseDown: Q,
85
+ onClick: () => {
86
+ w.cancel();
87
+ }
88
+ })]
89
+ });
90
+ }, [
91
+ g,
92
+ D,
93
+ w.engaged,
94
+ w.commit,
95
+ w.cancel,
96
+ !!w.error
97
+ ]);
98
+ return Z(Qe, {
99
+ sx: {
100
+ minWidth: 135,
101
+ width: "100%",
102
+ ...i
103
+ },
104
+ size: "small",
105
+ ref: t,
106
+ className: Pe("sxl-input-field", r),
107
+ ...y,
108
+ children: Z(et, {
109
+ label: x,
110
+ placeholder: a,
111
+ disabled: n,
112
+ error: !!w.error,
113
+ helperText: w.error ? b(w.error) : " ",
114
+ sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
115
+ slotProps: {
116
+ input: { endAdornment: O },
117
+ inputLabel: { shrink: !0 },
118
+ htmlInput: {
119
+ className: "autoFocus",
120
+ name: s,
121
+ spellCheck: !1,
122
+ autoComplete: "off",
123
+ readOnly: n,
124
+ sx: {
125
+ paddingTop: (e) => e.spacing(1.25),
126
+ paddingBottom: (e) => e.spacing(.75)
127
+ }
128
+ }
129
+ },
130
+ value: w.inputProps.value,
131
+ inputRef: (e) => {
132
+ w.inputProps.ref(e), C?.ref && C.ref(e);
133
+ },
134
+ onChange: (e) => {
135
+ w.inputProps.onChange(e), C?.onChange(e);
136
+ },
137
+ onKeyDown: (e) => {
138
+ w.inputProps.onKeyDown(e), e.defaultPrevented || _?.(e);
139
+ },
140
+ onFocus: (e) => {
141
+ w.inputProps.onFocus(e), v?.(e);
142
+ },
143
+ onBlur: (e) => {
144
+ w.inputProps.onBlur(e), C?.onBlur(e);
145
+ },
146
+ onContextMenu: (e) => {
147
+ e.stopPropagation();
148
+ }
149
+ })
150
+ });
151
+ }));
152
+ $.displayName = "InputField";
153
+ export { N as AppearanceCommandButton, y as AutoColorPosition, le as BorderCommandButton, r as BorderPopupButton, K as BorderStylePopupButton, _ as ColorButton, p as ColorButtonList, ie as ColorCommandButton, D as ColorPanel, ee as ColorPanelType, C as ColorPopupButton, te as ColumnMenu, xe as DefaultTaskPaneRegistry, O as DefaultWorkbookToolbars, be as DocThemeCommandButton, ue as DocumentTitle, Re as FORMULA_FIELD_ABOVE_LABEL_HEIGHT, ge as FileCommandButton, o as FilterList, De as FontFamilyCommandButton, T as FontSizeCommandButton, Ee as FormulaBar, Ie as FormulaField, ze as FunctionArgumentsPanel, He as FunctionSearchPanel, We as INSERT_FUNCTION_PAGE_CLASS, $ as InputField, k as InsertFunctionCommandPopupButton, Ve as InsertFunctionOption, oe as InsertFunctionSumCommandPopupButton, Ue as InsertFunctionWizard, me as LicenseManager, ce as NAMED_TYPE_FORMULA, E as NamedCollectionEditor, c as NamedDetailsPanel, u as NamedDetailsTaskPane, w as NamedEditorPanel, re as NamedPlugin, l as NumberFormatCommandButton, Fe as NumberFormatPanel, Oe as NumberFormatTaskPane, g as NumberStats, ne as PasteCommandButton, ke as PresetCellStylesCommandButton, pe as PresetTableStylesCommandButton, Ae as SheetTabMenu, Ne as SheetZoomCommandButton, v as SheetZoomScale, we as SheetsAllMenu, f as StatusBar, ye as Studio, x as StyledStrokeIcon, j as TableDetailsPanel, V as TableDetailsTaskPane, H as TablePlugin, je as TableStyleCanvasPreview, Te as TableStyleOptionsPanel, F as TableStylePreview, s as TextEffectsCommandButton, a as TextRotateGroupButton, _e as ThemeSelectButton, z as ThemeSelectPanel, R as ThemeSelectPopupButton, d as UndoRedoCommandButton, W as WalkingCopyCommandButton, B as WorkbookContextMenu, Se as WorkbookElement, ve as WorkbookIO, t as WorkbookProtectionDialog, e as WorkbookProtectionPanel, A as WorkbookStrip, Me as WorkbookToolbars, n as createNamedDraft, L as createStudioThemeCSS, de as createThemeFromMUITheme, G as expressionOf, b as isEditableNamed, Be as optionsForPage, P as registerNumberFormatTaskPane, m as registerSheetCommandGroups, se as registerStudioCommandCatalogs, h as registerStudioCommandGroups, ae as registerWorkbookCommandGroups, fe as renderWorkbookSheetTab, i as renderWorkbookToolbars, S as saveNamedDraft, I as setPrintExamplesOnLoad, Ce as tokensToMuiOptions, U as useModelListener, M as useRangeListener, he as useStudioApp };