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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/README.md +2 -2
  2. package/browser/cjs/BQJKf40kttQWOzLw.cjs +20 -0
  3. package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +1 -0
  4. package/browser/cjs/B_D3JKseVvpRyX-E.cjs +1 -0
  5. package/browser/cjs/B_WyRpeiesnEiNP4.cjs +11 -0
  6. package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +2 -0
  7. package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +2 -0
  8. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
  9. package/browser/cjs/ByIEqNsvj52sihT9.cjs +5 -0
  10. package/browser/cjs/C3moehR3VOd0LnmM.cjs +1 -0
  11. package/browser/cjs/C97KHSuikAbr1qVM.cjs +1 -0
  12. package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +1 -0
  13. package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +1 -0
  14. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +1 -0
  15. package/browser/cjs/CZm1jVZaHQ246prW.cjs +1 -0
  16. package/browser/cjs/CdDYyAfccXme8w6m.cjs +1 -0
  17. package/browser/cjs/DBJLJGiCGXesx5n6.cjs +1 -0
  18. package/browser/cjs/DLScL5AOXhHu9O9H.cjs +7 -0
  19. package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +1 -0
  20. package/browser/cjs/IASAYG6qgv7lJY7y.cjs +1 -0
  21. package/browser/cjs/KZvriGbhEOVkQD0b.cjs +1 -0
  22. package/browser/cjs/UnMhi28mbvLiOXQe.cjs +1 -0
  23. package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +1 -0
  24. package/browser/cjs/iMWEL01eC83oU-YY.cjs +1 -0
  25. package/browser/cjs/index.cjs +2 -7
  26. package/browser/cjs/w2GjebPlOFv3pCbm.cjs +1 -0
  27. package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +1 -0
  28. package/browser/esm/0EONOhVZ7oT0C_G2.mjs +1150 -0
  29. package/browser/esm/5x7evORpymnb5SfW.mjs +129 -0
  30. package/browser/esm/BACBR1jjcpJbhOWA.mjs +191 -0
  31. package/browser/esm/BPZne8WpzrkWOH6L.mjs +47 -0
  32. package/browser/esm/BeKa8xVj69hAVKRN.mjs +155 -0
  33. package/browser/esm/BeQ9bqOvNNP-arFP.mjs +219 -0
  34. package/browser/esm/Bf3PIOM6U-NmWk2O.mjs +20 -0
  35. package/browser/esm/C4BPDYeqgN59wMGp.mjs +411 -0
  36. package/browser/esm/CGbn_xdhgTvk2mvb.mjs +612 -0
  37. package/browser/esm/CKADOp3hTx0MSNY7.mjs +52 -0
  38. package/browser/esm/CR2sUEZyRqVv2SNl.mjs +105 -0
  39. package/browser/esm/CTN8J8c1AneJu3Lu.mjs +2207 -0
  40. package/browser/esm/Cc5akPEmIwbgKIfc.mjs +516 -0
  41. package/browser/esm/CePKCTL6D05kDy2E.mjs +82 -0
  42. package/browser/esm/DBM1blcMTZMAM-eR.mjs +217 -0
  43. package/browser/esm/DPBnKqhSuJ414Pxx.mjs +99 -0
  44. package/browser/esm/F51tGfYHocox80zY.mjs +468 -0
  45. package/browser/esm/SDzKpaiuhQux7tAh.mjs +5391 -0
  46. package/browser/esm/TDH9XceS8cAkO5d3.mjs +508 -0
  47. package/browser/esm/XKVlG-x_9q5dbVIW.mjs +8878 -0
  48. package/browser/esm/fJiwyUQJ18X-cCQz.mjs +1376 -0
  49. package/browser/esm/fel6EbPAcZOsBmks.mjs +42 -0
  50. package/browser/esm/flvjZEXrSDrtDzLB.mjs +113 -0
  51. package/browser/esm/index.mjs +152 -91
  52. package/licenses/dependencies.txt +137 -627
  53. package/node/esm/B9-0usA1hSoD0Nk3.mjs +679 -0
  54. package/node/esm/BO1vNzjGWYdZdbq9.mjs +113 -0
  55. package/node/esm/BYigefA8bf9FOVib.mjs +47 -0
  56. package/node/esm/BdrLZp98HQaVMykZ.mjs +82 -0
  57. package/node/esm/BlubX7gm8wTUNiZ-.mjs +106 -0
  58. package/node/esm/C8a6QwMGW1tMiWA6.mjs +516 -0
  59. package/node/esm/CCCnorMn30oUDDIY.mjs +4536 -0
  60. package/node/esm/CKpik3HRSANKEy4G.mjs +99 -0
  61. package/node/esm/CTZcfST8pUcLMail.mjs +509 -0
  62. package/node/esm/D1K9Ji7iQwnOnd1-.mjs +190 -0
  63. package/node/esm/DuUiuB59bQRPQi-D.mjs +155 -0
  64. package/node/esm/eKP73GEWmonTXpfv.mjs +470 -0
  65. package/node/esm/g3y8kxL1Ln214UNr.mjs +129 -0
  66. package/node/esm/index.mjs +10603 -2832
  67. package/package.json +27 -27
  68. package/resources/contents.json +30 -0
  69. package/resources/locales/contents.json +44 -0
  70. package/resources/locales/de/groups.cmd.json +219 -0
  71. package/resources/locales/de/studio.cmd.json +159 -0
  72. package/resources/locales/de/ui.msg.json +507 -0
  73. package/resources/locales/en/groups.cmd.json +219 -0
  74. package/resources/locales/en/studio.cmd.json +159 -0
  75. package/resources/locales/en/ui.msg.json +508 -0
  76. package/types/index.d.ts +2 -1761
  77. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +131 -0
  78. package/types/src/anchorItems/AnchorItemsPanel.d.ts +29 -0
  79. package/types/src/anchorItems/index.d.ts +3 -0
  80. package/types/src/border/BorderPopupButton.d.ts +30 -0
  81. package/types/src/border/BorderStylePopupButton.d.ts +40 -0
  82. package/types/src/border/index.d.ts +3 -0
  83. package/types/src/chart/command/InsertChartCommandButton.d.ts +10 -0
  84. package/types/src/chart/command/index.d.ts +2 -0
  85. package/types/src/color/Alpha.d.ts +36 -0
  86. package/types/src/color/Checkboard.d.ts +11 -0
  87. package/types/src/color/CheckboardUtils.d.ts +3 -0
  88. package/types/src/color/ColorButton.d.ts +21 -0
  89. package/types/src/color/ColorButtonList.d.ts +17 -0
  90. package/types/src/color/ColorPanel.d.ts +71 -0
  91. package/types/src/color/ColorPopupButton.d.ts +29 -0
  92. package/types/src/color/CustomColorPanel.d.ts +16 -0
  93. package/types/src/color/EditableInput.d.ts +22 -0
  94. package/types/src/color/Hue.d.ts +29 -0
  95. package/types/src/color/Saturation.d.ts +45 -0
  96. package/types/src/color/SketchFields.d.ts +9 -0
  97. package/types/src/color/Swatch.d.ts +16 -0
  98. package/types/src/color/Types.d.ts +11 -0
  99. package/types/src/color/_Utils.d.ts +4 -0
  100. package/types/src/color/index.d.ts +7 -0
  101. package/types/src/command/AccountingStyleCommandButton.d.ts +18 -0
  102. package/types/src/command/AppearanceCommandButton.d.ts +3 -0
  103. package/types/src/command/BorderCommandButton.d.ts +20 -0
  104. package/types/src/command/ColorCommandButton.d.ts +23 -0
  105. package/types/src/command/DocThemeCommandButton.d.ts +19 -0
  106. package/types/src/command/FileCommandButton.d.ts +8 -0
  107. package/types/src/command/FontFamilyCommandButton.d.ts +9 -0
  108. package/types/src/command/FontSizeCommandButton.d.ts +21 -0
  109. package/types/src/command/InsertFunctionCommandPopupButton.d.ts +9 -0
  110. package/types/src/command/InsertFunctionSumCommandPopupButton.d.ts +8 -0
  111. package/types/src/command/LanguageCommandButton.d.ts +19 -0
  112. package/types/src/command/LocaleCommandButton.d.ts +17 -0
  113. package/types/src/command/NumberFormatCommandButton.d.ts +6 -0
  114. package/types/src/command/PasteCommandButton.d.ts +14 -0
  115. package/types/src/command/PresetCellStylesCommandButton.d.ts +11 -0
  116. package/types/src/command/PresetTableStylesCommandButton.d.ts +12 -0
  117. package/types/src/command/RegisterCatalog.d.ts +3 -0
  118. package/types/src/command/SheetCommandGroups.d.ts +10 -0
  119. package/types/src/command/SheetZoomCommandButton.d.ts +9 -0
  120. package/types/src/command/StudioCommandGroups.d.ts +11 -0
  121. package/types/src/command/TextEffectsCommandButton.d.ts +6 -0
  122. package/types/src/command/TextRotateGroupButton.d.ts +14 -0
  123. package/types/src/command/UndoRedoCommandButton.d.ts +14 -0
  124. package/types/src/command/WalkingCopyCommandButton.d.ts +6 -0
  125. package/types/src/command/WorkbookCommandGroups.d.ts +11 -0
  126. package/types/src/command/index.d.ts +23 -0
  127. package/types/src/conditionalFormat/ColorScaleRulePanel.d.ts +18 -0
  128. package/types/src/conditionalFormat/ConditionalFormatDetailsPanel.d.ts +23 -0
  129. package/types/src/conditionalFormat/ConditionalFormatDetailsTaskPane.d.ts +4 -0
  130. package/types/src/conditionalFormat/ConditionalFormatEditorPanel.d.ts +20 -0
  131. package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +2 -0
  132. package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +32 -0
  133. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +34 -0
  134. package/types/src/conditionalFormat/ConditionalFormatTitle.d.ts +10 -0
  135. package/types/src/conditionalFormat/DataBarRulePanel.d.ts +23 -0
  136. package/types/src/conditionalFormat/IconSetRulePanel.d.ts +23 -0
  137. package/types/src/conditionalFormat/PresetChip.d.ts +30 -0
  138. package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts +20 -0
  139. package/types/src/conditionalFormat/RulePreview.d.ts +23 -0
  140. package/types/src/conditionalFormat/RuleSection.d.ts +20 -0
  141. package/types/src/conditionalFormat/ScaleMiniGrid.d.ts +59 -0
  142. package/types/src/conditionalFormat/ScaleStopRow.d.ts +34 -0
  143. package/types/src/conditionalFormat/index.d.ts +3 -0
  144. package/types/src/conditionalFormat/previewColor.d.ts +50 -0
  145. package/types/src/conditions/AverageOption.d.ts +25 -0
  146. package/types/src/conditions/BetweenOption.d.ts +25 -0
  147. package/types/src/conditions/BooleanOption.d.ts +24 -0
  148. package/types/src/conditions/CombinatorOption.d.ts +41 -0
  149. package/types/src/conditions/ConditionEditor.d.ts +57 -0
  150. package/types/src/conditions/ConditionUtils.d.ts +83 -0
  151. package/types/src/conditions/DateTimeOption.d.ts +43 -0
  152. package/types/src/conditions/ExpressionOption.d.ts +26 -0
  153. package/types/src/conditions/InSetOption.d.ts +37 -0
  154. package/types/src/conditions/NumberOption.d.ts +24 -0
  155. package/types/src/conditions/OperatorAndParamEditor.d.ts +55 -0
  156. package/types/src/conditions/OperatorSelect.d.ts +35 -0
  157. package/types/src/conditions/OperatorSelectPopupButton.d.ts +39 -0
  158. package/types/src/conditions/ScalarOption.d.ts +29 -0
  159. package/types/src/conditions/SelectorSelect.d.ts +43 -0
  160. package/types/src/conditions/StringOption.d.ts +24 -0
  161. package/types/src/conditions/TimePeriodOption.d.ts +25 -0
  162. package/types/src/conditions/TopNOption.d.ts +25 -0
  163. package/types/src/conditions/index.d.ts +13 -0
  164. package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +16 -0
  165. package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -0
  166. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +12 -0
  167. package/types/src/dataValidation/DataValidationPlugin.d.ts +2 -0
  168. package/types/src/dataValidation/index.d.ts +2 -0
  169. package/types/src/debug/DebugUtils.d.ts +4 -0
  170. package/types/src/debug/index.d.ts +2 -0
  171. package/types/src/dialog/CommentsDialog.d.ts +11 -0
  172. package/types/src/dialog/FindReplaceWindow.d.ts +13 -0
  173. package/types/src/dialog/HyperlinkDialog.d.ts +28 -0
  174. package/types/src/dialog/InsertFunctionDialog.d.ts +25 -0
  175. package/types/src/dialog/NamedReferenceDialog.d.ts +17 -0
  176. package/types/src/dialog/NumberFormatDialog.d.ts +12 -0
  177. package/types/src/dialog/ResizeHeaderDialog.d.ts +15 -0
  178. package/types/src/dialog/ShortcutKeysDialog.d.ts +9 -0
  179. package/types/src/dialog/ShortcutKeysPanel.d.ts +28 -0
  180. package/types/src/dialog/SortDialog.d.ts +9 -0
  181. package/types/src/dialog/TableNewDialog.d.ts +14 -0
  182. package/types/src/dialog/WorkbookStatisticsDialog.d.ts +13 -0
  183. package/types/src/dialog/index.d.ts +10 -0
  184. package/types/src/filter/ColumnMenu.d.ts +13 -0
  185. package/types/src/filter/FilterList.d.ts +28 -0
  186. package/types/src/filter/index.d.ts +3 -0
  187. package/types/src/form/FormulaField.d.ts +221 -0
  188. package/types/src/form/InputField.d.ts +89 -0
  189. package/types/src/form/index.d.ts +3 -0
  190. package/types/src/formulaBar/FormulaBar.d.ts +8 -0
  191. package/types/src/formulaBar/IFormulaBar.d.ts +51 -0
  192. package/types/src/formulaBar/index.d.ts +3 -0
  193. package/types/src/function/FunctionArgumentsPanel.d.ts +57 -0
  194. package/types/src/function/FunctionSearchPanel.d.ts +35 -0
  195. package/types/src/function/InsertFunctionWizard.d.ts +79 -0
  196. package/types/src/function/index.d.ts +4 -0
  197. package/types/src/function/paneMetrics.d.ts +33 -0
  198. package/types/src/index.d.ts +21 -0
  199. package/types/src/itemsPanel/EditorPanel.d.ts +21 -0
  200. package/types/src/itemsPanel/ItemCard.d.ts +57 -0
  201. package/types/src/itemsPanel/ItemsDescriptor.d.ts +215 -0
  202. package/types/src/itemsPanel/ItemsPanel.d.ts +45 -0
  203. package/types/src/itemsPanel/SortableCards.d.ts +67 -0
  204. package/types/src/itemsPanel/index.d.ts +6 -0
  205. package/types/src/movable/MovableContextMenu.d.ts +13 -0
  206. package/types/src/movable/index.d.ts +2 -0
  207. package/types/src/named/INamedCollectionEditor.d.ts +37 -0
  208. package/types/src/named/NamedCollectionEditor.d.ts +7 -0
  209. package/types/src/named/NamedDetailsPanel.d.ts +11 -0
  210. package/types/src/named/NamedDetailsTaskPane.d.ts +3 -0
  211. package/types/src/named/NamedDraft.d.ts +68 -0
  212. package/types/src/named/NamedEditorPanel.d.ts +19 -0
  213. package/types/src/named/NamedPlugin.d.ts +2 -0
  214. package/types/src/named/index.d.ts +8 -0
  215. package/types/src/numberFormat/NumberFormatPanel.d.ts +29 -0
  216. package/types/src/numberFormat/NumberFormatTaskPane.d.ts +12 -0
  217. package/types/src/numberFormat/index.d.ts +8 -0
  218. package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +20 -0
  219. package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +3 -0
  220. package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +27 -0
  221. package/types/src/protectedRange/ProtectedRangePlugin.d.ts +2 -0
  222. package/types/src/protectedRange/index.d.ts +2 -0
  223. package/types/src/protection/WorkbookProtectionDialog.d.ts +23 -0
  224. package/types/src/protection/WorkbookProtectionPanel.d.ts +51 -0
  225. package/types/src/protection/index.d.ts +3 -0
  226. package/types/src/sheet/SheetTabMenu.d.ts +21 -0
  227. package/types/src/sheet/SheetsAllMenu.d.ts +16 -0
  228. package/types/src/sheet/index.d.ts +3 -0
  229. package/types/src/statusBar/NumberStats.d.ts +27 -0
  230. package/types/src/statusBar/SheetZoomScale.d.ts +11 -0
  231. package/types/src/statusBar/StatusBar.d.ts +35 -0
  232. package/types/src/statusBar/index.d.ts +4 -0
  233. package/types/src/studio/CommandsWrapper.d.ts +36 -0
  234. package/types/src/studio/DefaultLogo.d.ts +3 -0
  235. package/types/src/studio/EagerStudio.d.ts +5 -0
  236. package/types/src/studio/Studio.d.ts +26 -0
  237. package/types/src/studio/StudioCommandProvider.d.ts +26 -0
  238. package/types/src/studio/StudioCommands.d.ts +115 -0
  239. package/types/src/studio/StudioNotifierProvider.d.ts +10 -0
  240. package/types/src/studio/StudioProps.d.ts +372 -0
  241. package/types/src/studio/StudioSplitPane.d.ts +60 -0
  242. package/types/src/studio/StudioTaskPaneArea.d.ts +8 -0
  243. package/types/src/studio/StudioToolbar.d.ts +37 -0
  244. package/types/src/studio/index.d.ts +4 -0
  245. package/types/src/studio/useStudioApp.d.ts +51 -0
  246. package/types/src/table/TableDetailsPanel.d.ts +17 -0
  247. package/types/src/table/TableDetailsTaskPane.d.ts +3 -0
  248. package/types/src/table/TablePlugin.d.ts +2 -0
  249. package/types/src/table/TableStyleCanvasPreview.d.ts +21 -0
  250. package/types/src/table/TableStyleOptionsPanel.d.ts +38 -0
  251. package/types/src/table/TableStylePreview.d.ts +43 -0
  252. package/types/src/table/index.d.ts +7 -0
  253. package/types/src/theme/ThemeSelectButton.d.ts +23 -0
  254. package/types/src/theme/ThemeSelectPanel.d.ts +17 -0
  255. package/types/src/theme/ThemeSelectPopupButton.d.ts +24 -0
  256. package/types/src/theme/ThemeUtils.d.ts +57 -0
  257. package/types/src/theme/index.d.ts +5 -0
  258. package/types/src/toast/ToastError.d.ts +10 -0
  259. package/types/src/toast/index.d.ts +2 -0
  260. package/types/src/toolbar/WorkbookToolbars.d.ts +46 -0
  261. package/types/src/toolbar/index.d.ts +2 -0
  262. package/types/src/workbook/DefaultRenderers.d.ts +23 -0
  263. package/types/src/workbook/DocumentTitle.d.ts +69 -0
  264. package/types/src/workbook/WorkbookContextMenu.d.ts +13 -0
  265. package/types/src/workbook/WorkbookElement.d.ts +12 -0
  266. package/types/src/workbook/WorkbookStrip.d.ts +37 -0
  267. package/types/src/workbook/index.d.ts +7 -0
  268. package/browser/cjs/0DtrpXkQQehBmvSv.cjs +0 -6
  269. package/browser/cjs/6C3ia2nz4Zm-AdMZ.cjs +0 -7
  270. package/browser/cjs/BR_EGEaHisRrXAtK.cjs +0 -6
  271. package/browser/cjs/B_v_M4TiavtofChs.cjs +0 -42
  272. package/browser/cjs/C17p-h_nw582H7WD.cjs +0 -20
  273. package/browser/cjs/CInmVysdoHEvvW9h.cjs +0 -6
  274. package/browser/cjs/CMvQZPQsE7MuTMy_.cjs +0 -6
  275. package/browser/cjs/CkNt54AXVfJjIWja.cjs +0 -6
  276. package/browser/cjs/CtRvyhDzQxsk7dkI.cjs +0 -6
  277. package/browser/cjs/DN9cQ4_4ERQvzKn6.cjs +0 -6
  278. package/browser/cjs/DUTuBWUNF-w3Fxtb.cjs +0 -6
  279. package/browser/cjs/pTzEs1wlZj5Bb6xc.cjs +0 -18
  280. package/browser/esm/8ZnwcsRrGO3Nlw9Y.mjs +0 -54
  281. package/browser/esm/BFZ4oCbQukelEVLI.mjs +0 -53
  282. package/browser/esm/BP3nTf4-SLftsj61.mjs +0 -640
  283. package/browser/esm/BSMkBkXBQgZhX1xk.mjs +0 -2159
  284. package/browser/esm/CPLIJbynjEkwF2T0.mjs +0 -4533
  285. package/browser/esm/CuC13VFjBYFE7kub.mjs +0 -155
  286. package/browser/esm/Cw3i8T1tVnm8o6eB.mjs +0 -46
  287. package/browser/esm/D6E8W2KK4dGVRQO_.mjs +0 -25
  288. package/browser/esm/D8xc3AM9QHEqmpb9.mjs +0 -50
  289. package/browser/esm/DA_bEpA5kkn89fmW.mjs +0 -2411
  290. package/browser/esm/DVqOr-7nEXA7IjKJ.mjs +0 -26
  291. package/browser/esm/VAUOzclLs-dR9nt_.mjs +0 -50
  292. package/node/assets/style.css +0 -1
  293. package/node/esm/B9dvpdCD_p2q8aNP.mjs +0 -156
  294. package/node/esm/BBxZemzbmUkoOYdq.mjs +0 -46
  295. package/node/esm/BDdkV45Cf7BLs5jE.mjs +0 -25
  296. package/node/esm/BoX8OuVRgUNgw0Wb.mjs +0 -91
  297. package/node/esm/CPbwVoL6mq66TtTR.mjs +0 -53
  298. package/node/esm/DMd6h1vz-USluank.mjs +0 -88
  299. package/node/esm/DYgtaT_soTbSP8M9.mjs +0 -52
  300. package/node/esm/DxDGSRoOYlWydiwL.mjs +0 -57
  301. package/node/esm/OMgXBbHk-VRNKAop.mjs +0 -26
  302. package/node/esm/bGXLfLFngllNb8U1.mjs +0 -50
@@ -1,155 +0,0 @@
1
- import { jsx as i, jsxs as d } from "react/jsx-runtime";
2
- import { memo as ae, useRef as C, useState as R, useEffect as A, useLayoutEffect as me, useMemo as ge } from "react";
3
- import { alpha as w, getOverlayAlpha as T } from "@mui/material/styles";
4
- import { DialogContent as xe, Box as h, TextField as ie, InputAdornment as he, Collapse as oe, MenuItem as Oe, FormControl as ye, InputLabel as Ce, Select as be } from "@mui/material";
5
- import { ICell as p, IRange as k } from "@sheetxl/sdk";
6
- import { CommandContext as le } from "@sheetxl/react";
7
- import { useCallbackRef as j, KeyCodes as Re, DynamicIcon as m, KeyModifiers as b } from "@sheetxl/utils-react";
8
- import { InternalWindow as ve, ExhibitOptionButton as g, ExhibitDivider as Fe } from "@sheetxl/utils-mui";
9
- import { u as ke } from "./CPLIJbynjEkwF2T0.mjs";
10
- /**
11
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.27
12
- *
13
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
14
- * License: The license can be found at https://www.sheetxl.com/license.
15
- */
16
- const V = { width: "1.5rem", height: "1.5rem" }, z = ae((E) => {
17
- const { label: a, value: x, options: l, onSelect: O, tabIndex: M = 0, ...N } = E, [B, y] = R(() => re(x, l));
18
- A(() => {
19
- y(re(x, l));
20
- }, [x, l]);
21
- const v = j((c) => {
22
- y(c.target.value), O?.(l[c.target.value]);
23
- }, [O, l]), F = ge(() => Object.keys(l).map((c) => i(Oe, { value: c, children: c }, c)), [l]);
24
- return d(ye, { sx: { minWidth: 135 }, size: "small", children: [i(Ce, { children: a }), i(be, { inputProps: { tabIndex: M }, value: B, label: a, onChange: v, sx: { backgroundImage: `linear-gradient(${w("#fff", T(5))}, ${w("#fff", T(5))})` }, ...N, children: F })] });
25
- }), se = { enter: 140, exit: 140 }, ce = { Formulas: p.Content.Formulas, Values: p.Content.Values, Notes: p.Content.Notes, Comments: p.Content.Comments }, pe = { ...ce };
26
- delete pe.Values;
27
- const we = { "By Rows": !0, "By Columns": !1 }, re = (E, a) => {
28
- const x = Object.keys(a);
29
- for (let l = 0; l < x.length; l++) {
30
- const O = x[l];
31
- if (a[O] === E) return O;
32
- }
33
- }, Le = ae((E) => {
34
- const { initialValue: a, context: x, onInput: l, title: O, onHide: M, autoFocus: N, ...B } = E, y = a?.replace ?? !1, v = a?.findOptions, F = v.text ?? null, c = a?.replaceOptions, K = a?.replaceText ?? null, L = x?.(), s = C(null), H = C(null), U = C(null), G = C(null), q = C(null), J = C(null), Q = (e, n) => {
35
- n && (n.start(e, { center: !1 }), setTimeout(() => n.stop(e), 180));
36
- }, [X, D] = R(!1), [P, de] = R(!1), [u, W] = R(y), [Y, $] = R(!1), [Z, _] = R(!1), [o, r] = R({ replaceText: null, replace: y, replaceOptions: null, findOptions: { text: null, matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: k.Orientation.Row, fields: [p.Content.Formulas] }, scope: le.FindScopeOptions.Sheet }), I = j(async (e, n, t, S) => {
37
- if (!L) return;
38
- const f = { ...o };
39
- f.replaceOptions = { ...f.replaceOptions }, f.findOptions = { ...f.findOptions }, f.replaceOptions.maxCount = t ? void 0 : 1, f.replace = n, n && o.findOptions.fields?.[0] === p.Content.Values && (f.findOptions.fields = [p.Content.Formulas]), f.findOptions.reverse = !e;
40
- const fe = await L({ autoFocus: S, ...f });
41
- $(fe === 0);
42
- }, [o, L]);
43
- A(() => {
44
- $(!1);
45
- }, [o, P, u]);
46
- const ee = j((e, n) => {
47
- if (e.keyCode === Re.Enter) {
48
- if (!o.findOptions.text) return;
49
- let t = !0, S = !1;
50
- e.shiftKey && (t = !1), n ? (e.ctrlKey && e.altKey && (S = !0), Q(e, S ? J.current : q.current)) : Q(e, t ? G.current : U.current), I(t, n, S, !1);
51
- }
52
- }, [o]), ne = C(null);
53
- me(() => {
54
- r((e) => {
55
- const n = { ...e };
56
- n.findOptions.text = F && F.length > 0 ? F : e.findOptions.text ?? "", D(!0), K !== null && (n.replaceText = K ?? ""), v && (n.findOptions = { ...n.findOptions, ...v }), n.replaceText || (n.replaceText = ""), n.replaceOptions && (n.replaceOptions = { ...n.replaceOptions }), c && (n.replaceOptions = { ...n.replaceOptions, ...c }), o.findOptions.fields?.[0] || (o.findOptions.fields = [p.Content.Formulas]);
57
- const t = !(!y && !c && K === null);
58
- return t && W(t), n;
59
- }), Z || ne.current?.focus();
60
- }, [a, y, F, K, v, c]), A(() => {
61
- u ? (o.findOptions.fields[0], p.Content.Values) : D(!0);
62
- }, [u]), A(() => {
63
- if (X && s.current && o.findOptions.text === s.current.value) return s.current === document.activeElement || s.current.contains(document.activeElement) ? (s.current?.select(), void D(!1)) : void s.current.addEventListener("focus", () => {
64
- s.current?.select(), D(!1);
65
- }, { once: !0 });
66
- }, [X, o]);
67
- const [ue, { width: te }] = ke();
68
- return i(ve, { ref: ne, title: O ?? (u ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: M, onFocus: () => _(!0), onBlur: () => {
69
- _(!1), $(!1);
70
- }, slotProps: { paper: { elevation: Z ? 3 : 1 } }, ...B, children: d(xe, { dividers: !0, ref: ue, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
71
- if (e.key === "h" && e.ctrlKey) W(!0), s.current?.contains(document.activeElement) && H.current?.focus();
72
- else if (e.key === "f" && e.ctrlKey) s.current?.focus();
73
- else if (e.key === "c" && e.altKey) r((n) => {
74
- const t = { ...n };
75
- return t.findOptions.matchCase = !n.findOptions.matchCase, t;
76
- });
77
- else if (e.key === "e" && e.altKey) r((n) => {
78
- const t = { ...n };
79
- return t.findOptions.matchEntireCell = !n.findOptions.matchEntireCell, t;
80
- });
81
- else {
82
- if (e.key !== "r" || !e.altKey) return;
83
- r((n) => {
84
- const t = { ...n };
85
- return t.findOptions.useRegex = !n.findOptions.useRegex, t;
86
- });
87
- }
88
- e.preventDefault();
89
- }, children: [d(h, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: [d(h, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e) => e.spacing(0.25), paddingTop: "3px" }, children: [i(g, { selected: P, onSelectToggle: (e) => {
90
- de(e);
91
- }, preventFocus: !0, label: "Toggle Additional Options", icon: i(m, { iconKey: "FindOptions" }) }), i(g, { selected: u, onSelectToggle: (e) => {
92
- W(e);
93
- }, preventFocus: !0, label: "Toggle Replace", icon: i(m, { iconKey: "FindReplaceToggle" }), shortcut: { key: u ? "F" : "H", modifiers: [b.Ctrl] } })] }), d(h, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [d(h, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [i(ie, { label: "Find", slotProps: { input: { sx: { paddingRight: (e) => e.spacing(1), minWidth: te > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${w("#fff", T(5))}, ${w("#fff", T(5))})` }, endAdornment: i(he, { position: "end", children: d(h, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "2px" }, children: [i(g, { style: V, selected: o.findOptions.matchCase, onBlur: () => {
94
- }, onSelectToggle: (e) => {
95
- r((n) => {
96
- const t = { ...n };
97
- return t.findOptions.matchCase = e, t;
98
- });
99
- }, label: "Match Case", shortcut: { key: "C", modifiers: [b.Alt] }, icon: i(m, { iconKey: "FindCaseSensitive", size: "1rem" }) }), i(g, { style: V, selected: o.findOptions.matchEntireCell, onSelectToggle: (e) => {
100
- r((n) => {
101
- const t = { ...n };
102
- return t.findOptions.matchEntireCell = e, t;
103
- });
104
- }, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [b.Alt] }, icon: i(m, { iconKey: "FindWholeWord", size: "1rem" }) }), i(g, { style: V, selected: o.findOptions.useRegex, onSelectToggle: (e) => {
105
- r((n) => {
106
- const t = { ...n };
107
- return t.findOptions.useRegex = e, t;
108
- });
109
- }, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [b.Alt] }, icon: i(m, { iconKey: "FindRegEx", size: "1rem" }) })] }) }) }, inputLabel: { shrink: !0 }, htmlInput: { draggable: !1, ref: s, className: "input", autoFocus: !0, spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => Y ? `${e.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e) => Y ? `${e.palette.error.main} !important` : void 0 } }, value: o.findOptions.text ?? "", onChange: (e) => {
110
- r((n) => {
111
- const t = { ...n };
112
- return t.findOptions.text = e.target.value, t;
113
- });
114
- }, onKeyDown: (e) => ee(e, !1), onContextMenu: (e) => {
115
- e.stopPropagation();
116
- } }), i(g, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
117
- I(!1, !1);
118
- }, touchRippleRef: U, label: "", shortcut: { key: "Enter", modifiers: [b.Shift] }, icon: i(m, { iconKey: o.findOptions.orientation !== k.Orientation.Column ? "ArrowBack" : "ArrowUpward" }), disabled: !o.findOptions.text }), i(g, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
119
- I(!0, !1);
120
- }, touchRippleRef: G, label: "Next Match", shortcut: { key: "Enter" }, icon: i(m, { iconKey: o.findOptions.orientation !== k.Orientation.Column ? "ArrowForward" : "ArrowDownward" }), disabled: !o.findOptions.text })] }), i(oe, { in: u, timeout: se, onExit: () => {
121
- s.current?.focus();
122
- }, children: d(h, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [i(ie, { label: "Replace", slotProps: { input: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${w("#fff", T(5))}, ${w("#fff", T(5))})` } }, inputLabel: { shrink: !0 }, htmlInput: { ref: H, className: "input", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1) }, value: o.replaceText ?? "", onChange: (e) => {
123
- r((n) => {
124
- const t = { ...n };
125
- return t.replaceText = e.target.value, t;
126
- });
127
- }, onKeyDown: (e) => ee(e, !0), onContextMenu: (e) => {
128
- e.stopPropagation();
129
- } }), i(g, { onSelectToggle: (e) => {
130
- I(!0, !0);
131
- }, touchRippleRef: q, label: "Replace", shortcut: { key: "Enter" }, icon: i(m, { iconKey: "FindReplace" }), disabled: !o.findOptions.text }), i(g, { onSelectToggle: (e) => {
132
- I(!0, !0, !0);
133
- }, touchRippleRef: J, label: "Replace All", shortcut: { key: "Enter", modifiers: [b.Ctrl, b.Alt] }, icon: i(m, { iconKey: "FindReplaceAll" }), disabled: !o.findOptions.text })] }) })] })] }), i(oe, { in: P, timeout: se, onExit: () => {
134
- s.current?.focus();
135
- }, children: d(h, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(1.5), marginTop: (e) => e.spacing(1) }, children: [i(Fe, { orientation: "horizontal", sx: { marginBottom: (e) => e.spacing(1.5) } }), d(h, { sx: { display: "flex", flexDirection: te >= 383 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", gap: (e) => e.spacing(1), rowGap: (e) => e.spacing(2) }, tabIndex: -1, children: [i(z, { label: "Within", value: o.scope, options: le.FindScopeOptions, onSelect: (e) => {
136
- r((n) => {
137
- const t = { ...n };
138
- return t.scope = e, t;
139
- });
140
- } }), i(z, { label: "Search", value: o.findOptions.orientation !== k.Orientation.Column, options: we, onSelect: (e) => {
141
- r((n) => {
142
- const t = { ...n };
143
- return t.findOptions.orientation = e ? k.Orientation.Row : k.Orientation.Column, t;
144
- });
145
- } }), i(z, { label: "Look in", value: u && o.findOptions.fields?.[0] === p.Content.Values ? p.Content.Formulas : o.findOptions.fields?.[0], options: u ? pe : ce, onSelect: (e) => {
146
- r((n) => {
147
- const t = { ...n };
148
- return t.findOptions.fields = [e], t;
149
- });
150
- } })] })] }) })] }) });
151
- });
152
- export {
153
- Le as FindReplaceWindow,
154
- Le as default
155
- };
@@ -1,46 +0,0 @@
1
- import { jsx as r, jsxs as j } from "react/jsx-runtime";
2
- import { memo as E, useMemo as V, useState as p, useCallback as R } from "react";
3
- import { Box as L } from "@mui/material";
4
- import { useCallbackRef as d } from "@sheetxl/utils-react";
5
- import { OptionsDialog as S } from "@sheetxl/utils-mui";
6
- import { N as A, R as G } from "./CPLIJbynjEkwF2T0.mjs";
7
- /**
8
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.27
9
- *
10
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
- * License: The license can be found at https://www.sheetxl.com/license.
12
- */
13
- const M = ["Ok", "Cancel"], Q = E((C) => {
14
- const { initialValue: a = null, context: t, onOption: u, onValidateOption: $, onDone: m, onInput: c, options: g = M, defaultOption: f = g?.[0], cancelOption: x = "Cancel", sx: h, ...v } = C, N = V(() => t?.().getNames().findValidName("Range1"), []), y = V(() => {
15
- if (!a) return !0;
16
- }, []), [o, D] = p({ displayText: a?.getName() ?? N, errorText: null }), [n, w] = p({ displayValue: a?.getRanges() ?? t?.().selection() ?? null, errorText: null }), [T, O] = p(!1), F = R(async (e) => !o.errorText && !n.errorText, []), I = d((e, l, i) => {
17
- if (!l) {
18
- let s = null;
19
- y ? s = t?.().getNames().addReference(o?.displayText, n?.displayValue, !1) : (a.getType() === "reference" && a.doBatch(() => {
20
- a.setName(o?.displayText), a.setReference(n?.displayValue);
21
- }, `Edit Named '${o?.displayText}'`), s = a), s && (s.select(), c(s));
22
- }
23
- u?.(e, l, i), m?.();
24
- }, [t, o, n, m, u, f, x, c]), b = d((e) => {
25
- let l = null;
26
- try {
27
- t?.().getNames().validateName(e);
28
- } catch (i) {
29
- l = i.message;
30
- }
31
- D({ displayText: e, errorText: l });
32
- }, []), k = d((e) => {
33
- a && a.getName().toLowerCase() === e.toLowerCase() || t?.().getNames().validateName(e);
34
- }, [t, a]), B = R((e) => {
35
- w({ displayValue: e ?? null, errorText: null });
36
- }, []);
37
- return r(S, { title: (y ? "Define" : "Edit") + " Range", options: g, onOption: I, onValidateOption: F, defaultOption: f, cancelOption: x, autoFocusSel: ".autoFocus", sx: { width: "460px", ...h }, ...v, children: j(L, { sx: { paddingTop: (e) => e.spacing(1), paddingBottom: (e) => e.spacing(0), rowGap: (e) => e.spacing(1), range: "flex", flexDirection: "column" }, children: [r(A, { formName: "name", defaultInput: N, value: o.displayText, onChangeInput: b, onValidate: k, onFocus: (e) => {
38
- T || e.target?.select(), O(!0);
39
- } }), r(G, { formName: "range", value: n.displayValue, onChangeInput: B, resolvedAddress: t ? t().getNames().getRanges.bind(t().getNames()) : void 0, onFocus: (e) => {
40
- T || e.target?.select(), O(!0);
41
- } })] }) });
42
- });
43
- export {
44
- Q as NamedReferenceDialog,
45
- Q as default
46
- };
@@ -1,25 +0,0 @@
1
- import { jsx as n, jsxs as T } from "react/jsx-runtime";
2
- import { memo as v, useState as p, useCallback as w } from "react";
3
- import { Box as I, FormControlLabel as V, Checkbox as j } from "@mui/material";
4
- import { useCallbackRef as y } from "@sheetxl/utils-react";
5
- import { OptionsDialog as F } from "@sheetxl/utils-mui";
6
- import { R } from "./CPLIJbynjEkwF2T0.mjs";
7
- /**
8
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.27
9
- *
10
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
- * License: The license can be found at https://www.sheetxl.com/license.
12
- */
13
- const B = ["Ok", "Cancel"], z = v((g) => {
14
- const { onInput: f, onOption: c, onValidateOption: H, onDone: d, options: m = B, defaultOption: t = m?.[0], cancelOption: s = "Cancel", sx: x, initialValue: e, context: l, ...b } = g, [h, O] = p(!1), [o, C] = p(() => e?.hasHeader ?? !1), [i, k] = p(() => e?.ranges ?? null), D = y((a) => {
15
- const r = { ...e, hasHeader: o, ranges: i }, u = a === s;
16
- u || f?.(r), c?.(a, u, a === t), d?.({ option: a, tableOptions: r });
17
- }, [d, c, t, s, o, i, e]), N = w(async (a, r) => null, []);
18
- return n(F, { title: "Insert Table", options: m, onDone: D, onValidateOption: N, defaultOption: t, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...x }, ...b, children: T(I, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [n(R, { formName: "range", value: i, onChangeInput: (a) => k(a), resolvedAddress: l ? l().getNames().getRanges.bind(l().getNames()) : void 0, onFocus: (a) => {
19
- h || a.target?.select(), O(!0);
20
- } }), n(V, { control: n(j, { checked: o, onChange: () => C(!o) }), label: "Table has headers", labelPlacement: "end" })] }) });
21
- });
22
- export {
23
- z as TableNewDialog,
24
- z as default
25
- };
@@ -1,50 +0,0 @@
1
- import { jsx as l, jsxs as z } from "react/jsx-runtime";
2
- import { memo as A, useMemo as O, useState as f, useCallback as b } from "react";
3
- import { alpha as i, getOverlayAlpha as r } from "@mui/material/styles";
4
- import { Box as j, FormControl as F, TextField as D } from "@mui/material";
5
- import { useCallbackRef as x } from "@sheetxl/utils-react";
6
- import { OptionsDialog as E } from "@sheetxl/utils-mui";
7
- /**
8
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.27
9
- *
10
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
- * License: The license can be found at https://www.sheetxl.com/license.
12
- */
13
- const S = ["Ok", "Cancel"], K = A((v) => {
14
- const { initialValue: n = null, context: s, onInput: h, onOption: T, onValidateOption: p, onDone: d, options: y = S, defaultOption: c = y?.[0], cancelOption: u = "Cancel", sx: w, ...I } = v, H = O(() => (n ?? s?.()?.getHyperlink()) !== null, []), g = O(() => {
15
- let e = null, a = null;
16
- n && (typeof n == "string" ? a = n : e = n);
17
- const o = e ?? s?.()?.getHyperlink();
18
- return { address: a ?? o?.getAddress() ?? "", textToDisplay: o?.getDisplayText() ?? "" };
19
- }, [n, s]), [t, M] = f(g.address), [m, P] = f(() => {
20
- const e = s?.().toTextUnformatted() ?? g.displayText;
21
- return e === g.address ? "" : e;
22
- }), [B, k] = f(!1), $ = b((e) => {
23
- P(e.target.value);
24
- }, []), C = b(async (e, a) => null, []), L = x(async (e) => {
25
- const a = t === "" ? null : { address: t }, o = e === u;
26
- o || h?.({ address: a?.address ?? null, displayText: m ?? null }), T?.(e, o, e === c), d?.();
27
- }, [t, m, s, h, d, T, c, u]), V = x((e) => {
28
- M(e.target.value), C(e.target.value, null);
29
- }, [p]), W = x(async (e) => {
30
- let a = await Promise.resolve(p?.(e));
31
- try {
32
- a !== !1 && (a = await C(t, e));
33
- } catch {
34
- }
35
- return a ?? !0;
36
- }, [p]);
37
- return l(E, { title: (H ? "Edit" : "Insert") + " Link", options: y, onDone: d, onOption: (e) => L(e), onValidateOption: W, defaultOption: c, cancelOption: u, autoFocusSel: ".autoFocus", sx: { width: "480px", ...w }, ...I, children: z(j, { sx: { paddingTop: (e) => e.spacing(1), paddingBottom: (e) => e.spacing(0), rowGap: (e) => e.spacing(1), display: "flex", flexDirection: "column" }, children: [l(F, { sx: { paddingTop: (e) => e.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: l(D, { label: "Address", placeholder: "Enter a url or cell reference.", onFocus: (e) => {
38
- B || e.target?.select(), k(!0);
39
- }, sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(0.5) } }, slotProps: { inputLabel: { shrink: !0 }, htmlInput: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", r(5))}, ${i("#fff", r(5))})` } } }, value: t, onChange: V, onContextMenu: (e) => {
40
- e.stopPropagation();
41
- } }) }), l(F, { sx: { paddingTop: (e) => e.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: l(D, { label: "Display Text", placeholder: t?.startsWith("#") ? t.substring(1) : t, onFocus: () => {
42
- k(!0);
43
- }, sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(0.5) } }, slotProps: { inputLabel: { shrink: !0 }, htmlInput: { spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", r(5))}, ${i("#fff", r(5))})` } } }, value: m, onChange: $, onContextMenu: (e) => {
44
- e.stopPropagation();
45
- } }) })] }) });
46
- });
47
- export {
48
- K as HyperlinkDialog,
49
- K as default
50
- };