@sheetxl/studio-mui 0.7.28-beta.4 → 0.8.0-beta.10

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 (243) hide show
  1. package/browser/esm/{Drbpg4A9TaJUZd5A.mjs → 5cbK03T_Oh3tNdR7.mjs} +7 -5
  2. package/browser/esm/{GCJRjX28QYfxi-Lg.mjs → 9eKCkvqpMQwqcXiw.mjs} +1 -1
  3. package/browser/esm/B1Yp_uy1vFHcJB3U.mjs +13 -0
  4. package/browser/esm/Biy7bhzzzPb5sfRN.mjs +152 -0
  5. package/browser/esm/Blaj2R5hYxtLAW__.mjs +117 -0
  6. package/browser/esm/{CVxEcB8lAnOQ-oPh.mjs → ByeL_BZuJ2kl8gtf.mjs} +46 -47
  7. package/browser/esm/{BLjxQ1NUjmULb00s.mjs → C1Rp2hZrApo5MUc8.mjs} +2 -2
  8. package/browser/esm/{C7WFuxTBA8MWoOQj.mjs → CEvZe2cZK-voZTif.mjs} +5 -5
  9. package/browser/esm/{RbGJTMzxMTlkFlTq.mjs → CIu1bjPJe_x31Oww.mjs} +195 -174
  10. package/browser/esm/COv-m-c2byCgvU3M.mjs +14861 -0
  11. package/browser/esm/CjznclrKqJRi7u9O.mjs +77 -0
  12. package/browser/esm/{DoOWIBDSfgrvMmNO.mjs → CoSiOS-og0zFw4Ws.mjs} +587 -556
  13. package/browser/esm/{6GrWBX-cyxTRJerw.mjs → CtEFHbzYNvYjDYvi.mjs} +7 -7
  14. package/browser/esm/D6S8kVTzOjCn0-SK.mjs +627 -0
  15. package/browser/esm/{BVC0iuc28yuEcyua.mjs → D8al_cJ4U-NgzwoK.mjs} +1 -1
  16. package/browser/esm/DBtc4lku0uHVcqWn.mjs +71 -0
  17. package/browser/esm/{CDyYtk9WscSzj5I5.mjs → DHY19rkSiiRZxShC.mjs} +130 -103
  18. package/browser/esm/{DdbgnOWM0tle1jeT.mjs → DU3J8Gcf-WpBxNYg.mjs} +11 -10
  19. package/browser/esm/Die9NXVFveHvcCT-.mjs +4205 -0
  20. package/browser/esm/{CccE_2DTbTMNIfQM.mjs → DmCQbW4zwkT_Rq88.mjs} +1 -1
  21. package/browser/esm/IQLeaAbtGTipUsOD.mjs +516 -0
  22. package/browser/esm/{DhMl3LbgjdX8Nz7b.mjs → X1Db3b_7b_7OuCk6.mjs} +178 -129
  23. package/browser/esm/fb126BNj3F8URR19.mjs +225 -0
  24. package/browser/esm/index.mjs +418 -135
  25. package/browser/esm/sFOAxZpxXo-qvDSp.mjs +293 -0
  26. package/browser/esm/sam1KGQZ59B_fADz.mjs +1941 -0
  27. package/browser/esm/xKiLJKiLxto8SayF.mjs +256 -0
  28. package/browser/esm/yZxC4qUENOlMhVUH.mjs +68 -0
  29. package/licenses/dependencies.txt +58 -311
  30. package/node/esm/B8SQfjKjzYHLxzZR.mjs +632 -0
  31. package/node/esm/{CgA8rdWVZEpIUpsM.mjs → BYVLi0md4AYuDsB_.mjs} +1 -1
  32. package/node/esm/BYsG3KYVmxSe_CIQ.mjs +294 -0
  33. package/node/esm/BYwXhrEwkRAt9nJS.mjs +71 -0
  34. package/node/esm/B_jRGdwGFkudwmL-.mjs +68 -0
  35. package/node/esm/Bb1sLMqXWKjdve23.mjs +77 -0
  36. package/node/esm/{ELTc6e1FF88hBAev.mjs → BcwMb6CyVfvEwbHn.mjs} +69 -70
  37. package/node/esm/{DYlYrd0A73WoQQgM.mjs → CKu1AtRgyltyEdEN.mjs} +1 -1
  38. package/node/esm/Cmt8Wv806N7NmE4Y.mjs +3344 -0
  39. package/node/esm/{6PuhMTJrzLciGI0Z.mjs → D6oQL8knsPpgdXuk.mjs} +2 -2
  40. package/node/esm/{BxTFDoMd-nowfxfb.mjs → D9rzScOA9pEYFrtz.mjs} +1 -1
  41. package/node/esm/DNSjK5DAH3M14Qbc.mjs +521 -0
  42. package/node/esm/{C2HawKeialuFRR9r.mjs → DZzvTQxIKr9LbEsA.mjs} +1 -1
  43. package/node/esm/{uJOy7zjNtP0IqGoa.mjs → ETK6T6G0SIcFXDe5.mjs} +163 -135
  44. package/node/esm/ah3CUg4-VmNstGk_.mjs +256 -0
  45. package/node/esm/{DPhvWXmDun8bC0_v.mjs → ci8d-mF1H9wnYzix.mjs} +1 -1
  46. package/node/esm/cqzp431iNSLWictb.mjs +116 -0
  47. package/node/esm/index.mjs +14783 -6793
  48. package/package.json +15 -18
  49. package/resources/locales/de/groups.cmd.json +29 -16
  50. package/resources/locales/de/studio.cmd.json +18 -1
  51. package/resources/locales/de/ui.msg.json +350 -40
  52. package/resources/locales/en/groups.cmd.json +39 -17
  53. package/resources/locales/en/studio.cmd.json +18 -1
  54. package/resources/locales/en/ui.msg.json +306 -40
  55. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +17 -1
  56. package/types/src/anchorItems/AnchorItemsPanel.d.ts +14 -0
  57. package/types/src/anchorItems/AnchoredRangeField.d.ts +40 -0
  58. package/types/src/anchorItems/index.d.ts +1 -0
  59. package/types/src/border/BorderPopupButton.d.ts +6 -6
  60. package/types/src/border/BorderStylePopupButton.d.ts +3 -3
  61. package/types/src/border/BorderTemplateIcon.d.ts +24 -0
  62. package/types/src/border/index.d.ts +1 -0
  63. package/types/src/color/ColorPanel.d.ts +8 -2
  64. package/types/src/color/ColorPopupButton.d.ts +2 -1
  65. package/types/src/command/NumberFormatQuickButtons.d.ts +32 -0
  66. package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
  67. package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
  68. package/types/src/comments/CommentCard.d.ts +41 -0
  69. package/types/src/comments/CommentsPlugin.d.ts +6 -0
  70. package/types/src/comments/CommentsTaskPane.d.ts +23 -0
  71. package/types/src/comments/index.d.ts +4 -0
  72. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
  73. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +2 -2
  74. package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
  75. package/types/src/conditions/BetweenOption.d.ts +6 -1
  76. package/types/src/conditions/CombinatorOption.d.ts +7 -0
  77. package/types/src/conditions/ConditionEditor.d.ts +61 -4
  78. package/types/src/conditions/ConditionUtils.d.ts +65 -6
  79. package/types/src/conditions/ExpressionOption.d.ts +12 -6
  80. package/types/src/conditions/MembershipOption.d.ts +67 -0
  81. package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
  82. package/types/src/conditions/ScalarOption.d.ts +25 -6
  83. package/types/src/conditions/SelectorSelect.d.ts +16 -7
  84. package/types/src/conditions/index.d.ts +1 -1
  85. package/types/src/conditions/useFormulaOption.d.ts +54 -0
  86. package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +7 -1
  87. package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -2
  88. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +13 -2
  89. package/types/src/dataValidation/DataValidationIcon.d.ts +22 -0
  90. package/types/src/dataValidation/DataValidationTitle.d.ts +13 -0
  91. package/types/src/dialog/FillSeriesDialog.d.ts +16 -0
  92. package/types/src/dialog/OutlineSettingsDialog.d.ts +12 -0
  93. package/types/src/dialog/TableNewDialog.d.ts +1 -4
  94. package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
  95. package/types/src/dialog/index.d.ts +0 -2
  96. package/types/src/externalLink/ExternalLinkCardBody.d.ts +9 -0
  97. package/types/src/externalLink/ExternalLinkChip.d.ts +18 -0
  98. package/types/src/externalLink/ExternalLinkLocation.d.ts +18 -0
  99. package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +18 -0
  100. package/types/src/externalLink/ExternalLinksPanel.d.ts +11 -0
  101. package/types/src/externalLink/ExternalLinksPlugin.d.ts +5 -0
  102. package/types/src/externalLink/ExternalLinksTaskPane.d.ts +19 -0
  103. package/types/src/externalLink/index.d.ts +8 -0
  104. package/types/src/fill/GradientEditor.d.ts +41 -0
  105. package/types/src/fill/GradientStopsBar.d.ts +43 -0
  106. package/types/src/fill/PatternPopupButton.d.ts +26 -0
  107. package/types/src/fill/PatternSwatch.d.ts +53 -0
  108. package/types/src/fill/index.d.ts +5 -0
  109. package/types/src/filter/ColumnMenu.d.ts +31 -1
  110. package/types/src/filter/index.d.ts +0 -1
  111. package/types/src/form/FormulaField.d.ts +35 -6
  112. package/types/src/form/InputField.d.ts +35 -5
  113. package/types/src/format/AlignmentPanel.d.ts +13 -0
  114. package/types/src/format/BorderPanel.d.ts +22 -0
  115. package/types/src/format/BorderPreview.d.ts +94 -0
  116. package/types/src/format/FillPanel.d.ts +65 -0
  117. package/types/src/format/FontPanel.d.ts +12 -0
  118. package/types/src/format/FormatCellPreview.d.ts +35 -0
  119. package/types/src/format/FormatPanelParts.d.ts +85 -0
  120. package/types/src/format/FormatPlugin.d.ts +11 -0
  121. package/types/src/format/FormatTaskPane.d.ts +39 -0
  122. package/types/src/format/LinePanel.d.ts +53 -0
  123. package/types/src/format/LinePreviews.d.ts +71 -0
  124. package/types/src/format/NumberFormatOption.d.ts +43 -0
  125. package/types/src/{numberFormat → format}/NumberFormatPanel.d.ts +20 -0
  126. package/types/src/format/index.d.ts +14 -0
  127. package/types/src/format/useFormatSelection.d.ts +93 -0
  128. package/types/src/formulaBar/IFormulaBar.d.ts +11 -0
  129. package/types/src/formulaBar/MobileFormulaBar.d.ts +21 -0
  130. package/types/src/formulaBar/MobileInputToolbar.d.ts +37 -0
  131. package/types/src/formulaBar/index.d.ts +3 -0
  132. package/types/src/formulaBar/useFormulaBarSession.d.ts +65 -0
  133. package/types/src/index.d.ts +7 -1
  134. package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
  135. package/types/src/itemsPanel/EditorPanel.d.ts +4 -1
  136. package/types/src/itemsPanel/ItemCard.d.ts +60 -8
  137. package/types/src/itemsPanel/ItemsDescriptor.d.ts +68 -19
  138. package/types/src/itemsPanel/ItemsPanel.d.ts +9 -0
  139. package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
  140. package/types/src/itemsPanel/index.d.ts +2 -0
  141. package/types/src/named/NamedDetailsPanel.d.ts +9 -2
  142. package/types/src/named/NamedDetailsTaskPane.d.ts +3 -2
  143. package/types/src/named/NamedEditorPanel.d.ts +1 -1
  144. package/types/src/named/NamedExpressionField.d.ts +32 -0
  145. package/types/src/named/NamedKindChip.d.ts +38 -0
  146. package/types/src/picture/PicturePlugin.d.ts +6 -0
  147. package/types/src/picture/index.d.ts +2 -0
  148. package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +6 -0
  149. package/types/src/protectedRange/ProtectedRangeDraft.d.ts +22 -0
  150. package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +0 -14
  151. package/types/src/protectedRange/index.d.ts +2 -1
  152. package/types/src/protection/ManageProtectionTaskPane.d.ts +29 -0
  153. package/types/src/protection/PasswordDialog.d.ts +32 -0
  154. package/types/src/protection/PasswordField.d.ts +35 -0
  155. package/types/src/protection/ProtectedCellsPanel.d.ts +20 -0
  156. package/types/src/protection/ProtectionPlugin.d.ts +11 -0
  157. package/types/src/protection/SheetProtectionPanel.d.ts +35 -0
  158. package/types/src/protection/WorkbookProtectionPanel.d.ts +34 -15
  159. package/types/src/protection/WorkbookProtectionTab.d.ts +22 -0
  160. package/types/src/protection/index.d.ts +7 -1
  161. package/types/src/shape/InsertShapeCommandButton.d.ts +20 -0
  162. package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
  163. package/types/src/shape/ShapePlugin.d.ts +6 -0
  164. package/types/src/shape/index.d.ts +3 -0
  165. package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +18 -0
  166. package/types/src/slicer/SlicerPlugin.d.ts +6 -0
  167. package/types/src/slicer/index.d.ts +3 -0
  168. package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
  169. package/types/src/studio/CommandsWrapper.d.ts +5 -0
  170. package/types/src/studio/EagerStudio.d.ts +14 -1
  171. package/types/src/studio/StudioCommandProvider.d.ts +10 -0
  172. package/types/src/studio/StudioCommands.d.ts +40 -4
  173. package/types/src/studio/StudioProps.d.ts +64 -2
  174. package/types/src/studio/StudioSplitPane.d.ts +1 -1
  175. package/types/src/studio/formulaBarPlacement.d.ts +35 -0
  176. package/types/src/studio/splitStudioProps.d.ts +7 -0
  177. package/types/src/studio/useStudioApp.d.ts +31 -18
  178. package/types/src/template/TemplateCommands.d.ts +29 -0
  179. package/types/src/template/TemplateDialog.d.ts +19 -0
  180. package/types/src/template/TemplatePanel.d.ts +50 -0
  181. package/types/src/template/TemplateSearchField.d.ts +29 -0
  182. package/types/src/template/WelcomeDialog.d.ts +29 -0
  183. package/types/src/template/categoryColor.d.ts +8 -0
  184. package/types/src/template/index.d.ts +3 -0
  185. package/types/src/template/useTemplateCatalog.d.ts +71 -0
  186. package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
  187. package/types/src/workbook/DefaultRenderers.d.ts +15 -1
  188. package/types/src/workbook/FillMenu.d.ts +21 -0
  189. package/types/src/workbook/OutlineButtons.d.ts +11 -0
  190. package/types/src/workbook/WorkbookElement.d.ts +1 -1
  191. package/types/src/workbook/index.d.ts +1 -0
  192. package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
  193. package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
  194. package/browser/cjs/B_D3JKseVvpRyX-E.cjs +0 -1
  195. package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +0 -2
  196. package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +0 -2
  197. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
  198. package/browser/cjs/Bte6P3MhSjajJmmY.cjs +0 -7
  199. package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
  200. package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +0 -1
  201. package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
  202. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
  203. package/browser/cjs/CYxc8vnRi8dNpDPk.cjs +0 -1
  204. package/browser/cjs/CZm1jVZaHQ246prW.cjs +0 -1
  205. package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
  206. package/browser/cjs/Cm1APq2MraYNNhyI.cjs +0 -1
  207. package/browser/cjs/DO8V31Z1ewgMA1di.cjs +0 -5
  208. package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +0 -1
  209. package/browser/cjs/IASAYG6qgv7lJY7y.cjs +0 -1
  210. package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
  211. package/browser/cjs/UnMhi28mbvLiOXQe.cjs +0 -1
  212. package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +0 -1
  213. package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
  214. package/browser/cjs/index.cjs +0 -2
  215. package/browser/cjs/w2GjebPlOFv3pCbm.cjs +0 -1
  216. package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +0 -11
  217. package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +0 -1
  218. package/browser/esm/6seXVm4fUaBp34tP.mjs +0 -217
  219. package/browser/esm/C1PiodbCgkhztxU5.mjs +0 -411
  220. package/browser/esm/C5XQW-A03GP8EZ3s.mjs +0 -52
  221. package/browser/esm/CZGRaL9mjYTo8fAd.mjs +0 -105
  222. package/browser/esm/DTWkitCkayiinpgU.mjs +0 -219
  223. package/browser/esm/DbHn3Fq4gYggsoXV.mjs +0 -5429
  224. package/browser/esm/DxBsD4nDbg_OWhYG.mjs +0 -47
  225. package/browser/esm/HZXAXZqrC43FBvGk.mjs +0 -82
  226. package/browser/esm/dgkVCh7lmm1Twqmo.mjs +0 -9257
  227. package/browser/esm/l5BsxVQszkPy_n34.mjs +0 -1150
  228. package/node/esm/-9Hcp_VKJtR9fWlC.mjs +0 -470
  229. package/node/esm/B-3Ypi8akR-GxIpw.mjs +0 -82
  230. package/node/esm/CbhFnQCOA5TjhFB1.mjs +0 -106
  231. package/node/esm/CxqL51jVpIL4ncWW.mjs +0 -47
  232. package/node/esm/D-x3LVzppkKf5be_.mjs +0 -4575
  233. package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +0 -32
  234. package/types/src/conditions/DateTimeOption.d.ts +0 -43
  235. package/types/src/conditions/InSetOption.d.ts +0 -37
  236. package/types/src/dialog/CommentsDialog.d.ts +0 -11
  237. package/types/src/dialog/NumberFormatDialog.d.ts +0 -12
  238. package/types/src/filter/FilterList.d.ts +0 -28
  239. package/types/src/numberFormat/NumberFormatTaskPane.d.ts +0 -12
  240. package/types/src/numberFormat/index.d.ts +0 -8
  241. package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +0 -3
  242. package/types/src/protectedRange/ProtectedRangePlugin.d.ts +0 -2
  243. package/types/src/protection/WorkbookProtectionDialog.d.ts +0 -23
@@ -0,0 +1,71 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.10
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 { c as e, t } from "./sam1KGQZ59B_fADz.mjs";
8
+ import { t as n } from "./IQLeaAbtGTipUsOD.mjs";
9
+ import { IFill as r, ShapeStyleUtils as i } from "@sheetxl/sdk";
10
+ import { useGridColorScheme as a } from "@sheetxl/react";
11
+ import { useTranslator as o } from "@sheetxl/utils-react";
12
+ import { memo as s, useEffect as c, useReducer as l } from "react";
13
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
14
+ import { Box as f, Typography as p } from "@mui/material";
15
+ var m = (e, t, n) => {
16
+ let a = e.toJSON(), o = null;
17
+ try {
18
+ o = n.getTheme()?.toJSON() ?? null;
19
+ } catch {
20
+ o = null;
21
+ }
22
+ let s = i.resolve(a ? {
23
+ ...a,
24
+ stroke: void 0
25
+ } : null, o, i.inheritedGroupFill(t)).stroke?.fill, c = s?.type === r.Type.Solid ? s.color : void 0;
26
+ return c ? n.parseColor(c) : n.getNormal().getFont().getColor();
27
+ }, h = (e) => u(p, {
28
+ variant: "subtitle2",
29
+ component: "div",
30
+ children: e.children
31
+ }), g = s((r) => {
32
+ let { movable: i, sheet: s } = r, p = o(), g = i.getContent(), [, _] = l((e) => e + 1, 0);
33
+ c(() => g.addListeners({ onAnyChange: _ }), [g]);
34
+ let v = s.getStyles(), y = a() === "dark", b = g.isReadOnly(), x = g.getStyle(), S = {
35
+ fill: x.getFill(),
36
+ styles: v,
37
+ schemeLookup: v.schemeLookup(),
38
+ darkMode: y,
39
+ disabled: b,
40
+ createCell: (e) => s.createCell(e),
41
+ applyFill: (e, t) => {
42
+ x.setFill(e, { description: t });
43
+ }
44
+ }, C = {
45
+ stroke: x.getStroke(),
46
+ stated: x.toJSON()?.stroke ?? null,
47
+ autoColor: m(g, i, v),
48
+ styles: v,
49
+ schemeLookup: v.schemeLookup(),
50
+ darkMode: y,
51
+ disabled: b,
52
+ applyStroke: (e, t) => {
53
+ x.setStroke(e, { description: t });
54
+ }
55
+ };
56
+ return d(f, {
57
+ sx: {
58
+ ...e,
59
+ gap: 2,
60
+ paddingTop: (e) => e.spacing(1)
61
+ },
62
+ children: [
63
+ u(h, { children: p("shape.pane.fill") }),
64
+ u(t, { selection: S }),
65
+ u(h, { children: p("shape.pane.line") }),
66
+ u(n, { selection: C })
67
+ ]
68
+ });
69
+ });
70
+ g.displayName = "ShapeFormatPanel";
71
+ export { g as ShapeFormatPanel };
@@ -1,23 +1,23 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.10
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { n as e, r as t, t as n } from "./DoOWIBDSfgrvMmNO.mjs";
7
+ import { n as e, r as t, t as n } from "./CoSiOS-og0zFw4Ws.mjs";
8
8
  import { IRange as r, ISort as i, Sort as a } from "@sheetxl/sdk";
9
- import { DynamicIcon as o, useCallbackRef as s, useTranslator as ee } from "@sheetxl/utils-react";
10
- import { memo as c, useMemo as l, useRef as u, useState as d } from "react";
11
- import { OptionsDialog as f, SimpleTooltip as p } from "@sheetxl/utils-mui";
12
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
13
- import { Box as g, Checkbox as _, FormControl as v, FormControlLabel as y, IconButton as b, InputLabel as x, MenuItem as S, Select as C, Typography as w } from "@mui/material";
14
- var T = {
9
+ import { DynamicIcon as o, useCallbackRef as s, useTranslator as c } from "@sheetxl/utils-react";
10
+ import { memo as l, useMemo as u, useRef as d, useState as f } from "react";
11
+ import { OptionsDialog as p, SimpleTooltip as m } from "@sheetxl/utils-mui";
12
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
13
+ import { Box as _, Checkbox as v, FormControl as y, FormControlLabel as b, IconButton as x, InputLabel as S, MenuItem as C, Select as w, Typography as T } from "@mui/material";
14
+ var E = {
15
15
  width: "64px",
16
16
  flex: "0 0 auto"
17
- }, E = {
17
+ }, D = {
18
18
  flex: "1 1 0",
19
19
  minWidth: "120px"
20
- }, D = {
20
+ }, ee = {
21
21
  flex: "1 1 0",
22
22
  minWidth: "140px"
23
23
  }, O = {
@@ -46,12 +46,12 @@ var T = {
46
46
  let t = e, n = "";
47
47
  for (; t >= 0;) n = String.fromCharCode(65 + t % 26) + n, t = Math.floor(t / 26) - 1;
48
48
  return n;
49
- }, N = 0, P = () => "level-" + N++, F = (e) => e?.sensitivity === a.CaseSensitiveOptions.sensitivity, I = c((i) => {
50
- let { initialValue: c, context: N, onInput: I, onDone: R, ...te } = i, z = ee(), B = u(N?.()), V = B.current?.range, H = B.current?.cell, [U, W] = d(() => ({
49
+ }, N = 0, P = () => "level-" + N++, F = (e) => e?.sensitivity === a.CaseSensitiveOptions.sensitivity, I = l((i) => {
50
+ let { initialValue: l, context: N, onInput: I, onDone: R, ...te } = i, z = c(), B = d(N?.()), V = B.current?.range, H = B.current?.cell, [U, W] = f(() => ({
51
51
  ...a.DefaultRangeOptions,
52
- ...c
53
- })), [G, K] = d(() => {
54
- let e = c?.sorts ?? [], t = [];
52
+ ...l
53
+ })), [G, K] = f(() => {
54
+ let e = l?.sorts ?? [], t = [];
55
55
  for (let n = 0; n < e.length; n++) t.push({
56
56
  key: P(),
57
57
  index: e[n].index ?? n,
@@ -62,18 +62,43 @@ var T = {
62
62
  index: 0,
63
63
  criteria: {}
64
64
  }), t;
65
- }), q = U.axis ?? r.Axis.Row, J = q === r.Axis.Row, Y = u(null), X = u(!1);
65
+ }), q = U.axis ?? r.Axis.Row, J = q === r.Axis.Row, Y = d(null), X = d(!1);
66
66
  t(Y, !0, X);
67
- let Z = l(() => {
67
+ let Z = u(() => {
68
68
  let e = [], t = [], n = V?.getDefaultSortCriteria(q, H);
69
69
  if (!n) return {
70
70
  labels: e,
71
71
  offsets: t
72
72
  };
73
- let r = n.coords, i = J ? r.colEnd - r.colStart + 1 : r.rowEnd - r.rowStart + 1, a = Math.min(i, 500);
74
- for (let i = 0; i < a; i++) {
75
- let a = U.hasHeader ? n.headers?.get(i) : void 0;
76
- t.push(i), e.push(a || (J ? z("sort.columnLabel", { name: M(r.colStart + i) }) : z("sort.rowLabel", { name: `${r.rowStart + i + 1}` })));
73
+ let r = V.getSheet(), i = n.coords, a = r.getRange(i).getUsedRange({ features: [] })?.getCoords();
74
+ if (!a) return {
75
+ labels: e,
76
+ offsets: t
77
+ };
78
+ let o = J ? i.colStart : i.rowStart, s = J ? a.colEnd : a.rowEnd, c = J ? r.getRange(i).getColumnHeaders() : r.getRange(i).getRowHeaders(), l = !!U.includeHidden, u = (e) => {
79
+ if (!l && c.at(e - o).isHidden()) return !1;
80
+ let t = J ? {
81
+ colStart: e,
82
+ colEnd: e,
83
+ rowStart: i.rowStart,
84
+ rowEnd: a.rowEnd
85
+ } : {
86
+ rowStart: e,
87
+ rowEnd: e,
88
+ colStart: i.colStart,
89
+ colEnd: a.colEnd
90
+ };
91
+ return !!r.getRange(t).forEach(() => ({ break: !0 }), { features: [] });
92
+ }, d = o + (n.options.sorts?.[0]?.index ?? 0), f = [], p = Math.min(d, s), m = p + 1, h = !0;
93
+ for (; f.length < 500;) {
94
+ let e = p >= o, t = m <= s;
95
+ if (!e && !t) break;
96
+ !e || !h && t ? (u(m) && (f.push(m), h = !0), m++) : (u(p) && (f.push(p), h = !1), p--);
97
+ }
98
+ f.sort((e, t) => e - t);
99
+ for (let r = 0; r < f.length; r++) {
100
+ let a = f[r] - o, s = U.hasHeader ? n.headers?.get(a) : void 0;
101
+ t.push(a), e.push(s || (J ? z("sort.columnLabel", { name: M(i.colStart + a) }) : z("sort.rowLabel", { name: `${i.rowStart + a + 1}` })));
77
102
  }
78
103
  return {
79
104
  labels: e,
@@ -85,6 +110,7 @@ var T = {
85
110
  q,
86
111
  J,
87
112
  U.hasHeader,
113
+ U.includeHidden,
88
114
  z
89
115
  ]), Q = s((e) => {
90
116
  let t = Z.offsets.indexOf(e);
@@ -93,7 +119,7 @@ var T = {
93
119
  Z,
94
120
  J,
95
121
  z
96
- ]), $ = l(() => {
122
+ ]), $ = u(() => {
97
123
  let e = Z.offsets.length;
98
124
  if (e > 0 && G.length > e) return z("sort.tooManyLevels", { count: `${e}` });
99
125
  let t = /* @__PURE__ */ new Set();
@@ -129,7 +155,7 @@ var T = {
129
155
  };
130
156
  });
131
157
  t = {
132
- ...c,
158
+ ...l,
133
159
  ...U,
134
160
  reverse: G[0]?.criteria.reverse ?? U.reverse,
135
161
  sorts: e
@@ -141,9 +167,9 @@ var T = {
141
167
  U,
142
168
  R,
143
169
  I,
144
- c
145
- ]), ae = l(() => G.map((e) => e.key), [G]);
146
- return m(f, {
170
+ l
171
+ ]), ae = u(() => G.map((e) => e.key), [G]);
172
+ return h(p, {
147
173
  title: z("sort.title"),
148
174
  options: [{
149
175
  id: "Sort",
@@ -152,7 +178,7 @@ var T = {
152
178
  }, "Cancel"],
153
179
  onDone: ie,
154
180
  ...te,
155
- children: h(g, {
181
+ children: g(_, {
156
182
  sx: {
157
183
  display: "flex",
158
184
  flexDirection: "column",
@@ -160,14 +186,14 @@ var T = {
160
186
  minWidth: "560px"
161
187
  },
162
188
  children: [
163
- h(g, {
189
+ g(_, {
164
190
  sx: {
165
191
  display: "flex",
166
192
  flexDirection: "column"
167
193
  },
168
- children: [m(g, {
194
+ children: [h(_, {
169
195
  sx: { padding: (e) => e.spacing(0, .5) },
170
- children: h(g, {
196
+ children: g(_, {
171
197
  sx: {
172
198
  ...j,
173
199
  borderColor: "transparent",
@@ -175,24 +201,24 @@ var T = {
175
201
  paddingBottom: 0
176
202
  },
177
203
  children: [
178
- m(g, { sx: T }),
179
- m(w, {
204
+ h(_, { sx: E }),
205
+ h(T, {
180
206
  variant: "body2",
181
207
  sx: {
182
- ...E,
208
+ ...D,
183
209
  ...A
184
210
  },
185
211
  children: z(J ? "sort.column" : "sort.row")
186
212
  }),
187
- m(w, {
213
+ h(T, {
188
214
  variant: "body2",
189
215
  sx: {
190
- ...D,
216
+ ...ee,
191
217
  ...A
192
218
  },
193
219
  children: z("sort.sortOn")
194
220
  }),
195
- m(w, {
221
+ h(T, {
196
222
  variant: "body2",
197
223
  sx: {
198
224
  ...O,
@@ -201,10 +227,10 @@ var T = {
201
227
  },
202
228
  children: z("sort.order")
203
229
  }),
204
- m(g, { sx: k })
230
+ h(_, { sx: k })
205
231
  ]
206
232
  })
207
- }), h(g, {
233
+ }), g(_, {
208
234
  ref: Y,
209
235
  sx: {
210
236
  display: "flex",
@@ -214,13 +240,14 @@ var T = {
214
240
  maxHeight: "320px",
215
241
  overflowY: "auto"
216
242
  },
217
- children: [m(e, {
243
+ children: [h(e, {
218
244
  ids: ae,
219
245
  scrollRef: Y,
220
246
  onMove: (e, t) => re(e, t, !0),
221
- children: G.map((e, t) => m(n, {
247
+ children: G.map((e, t) => h(n, {
222
248
  id: e.key,
223
- children: m(L, {
249
+ disabled: G.length <= 1,
250
+ children: h(L, {
224
251
  level: e,
225
252
  position: t,
226
253
  count: G.length,
@@ -242,7 +269,7 @@ var T = {
242
269
  onDelete: () => K((t) => t.filter((t) => t.key !== e.key))
243
270
  })
244
271
  }, e.key))
245
- }), h(g, {
272
+ }), g(_, {
246
273
  sx: {
247
274
  ...j,
248
275
  borderColor: "transparent",
@@ -250,17 +277,17 @@ var T = {
250
277
  paddingTop: 0,
251
278
  paddingBottom: 0
252
279
  },
253
- children: [m(w, {
280
+ children: [h(T, {
254
281
  variant: "body2",
255
282
  sx: {
256
- ...T,
283
+ ...E,
257
284
  color: (e) => e.palette.text.secondary
258
285
  },
259
286
  children: z("sort.thenBy")
260
- }), m(p, {
287
+ }), h(m, {
261
288
  disableInteractive: !0,
262
289
  title: z("sort.addLevel"),
263
- children: m(b, {
290
+ children: h(x, {
264
291
  size: "small",
265
292
  className: "sxl-sort-addLevel",
266
293
  "aria-label": z("sort.addLevel"),
@@ -274,19 +301,19 @@ var T = {
274
301
  }];
275
302
  });
276
303
  },
277
- children: m(o, { iconKey: "Insert" })
304
+ children: h(o, { iconKey: "Insert" })
278
305
  })
279
306
  })]
280
307
  })]
281
308
  })]
282
309
  }),
283
- $ === null ? null : m(w, {
310
+ $ === null ? null : h(T, {
284
311
  variant: "body2",
285
312
  className: "sxl-sort-refusal",
286
313
  sx: { color: (e) => e.palette.error.main },
287
314
  children: $
288
315
  }),
289
- h(g, {
316
+ g(_, {
290
317
  sx: {
291
318
  display: "flex",
292
319
  flexWrap: "wrap",
@@ -297,8 +324,8 @@ var T = {
297
324
  paddingTop: (e) => e.spacing(1)
298
325
  },
299
326
  children: [
300
- m(y, {
301
- control: m(_, {
327
+ h(b, {
328
+ control: h(v, {
302
329
  size: "small",
303
330
  checked: !!U.hasHeader,
304
331
  onChange: () => W((e) => ({
@@ -308,8 +335,8 @@ var T = {
308
335
  }),
309
336
  label: z("sort.hasHeader")
310
337
  }),
311
- m(y, {
312
- control: m(_, {
338
+ h(b, {
339
+ control: h(v, {
313
340
  size: "small",
314
341
  checked: F(U.collatorOptions),
315
342
  onChange: () => W((e) => ({
@@ -319,8 +346,8 @@ var T = {
319
346
  }),
320
347
  label: z("sort.caseSensitive")
321
348
  }),
322
- m(y, {
323
- control: m(_, {
349
+ h(b, {
350
+ control: h(v, {
324
351
  size: "small",
325
352
  checked: !!U.includeHidden,
326
353
  onChange: () => W((e) => ({
@@ -330,13 +357,13 @@ var T = {
330
357
  }),
331
358
  label: z("sort.includeHidden")
332
359
  }),
333
- h(v, {
360
+ g(y, {
334
361
  size: "small",
335
362
  sx: { minWidth: "180px" },
336
- children: [m(x, {
363
+ children: [h(S, {
337
364
  id: "sxl-sort-orientation-label",
338
365
  children: z("sort.orientation")
339
- }), h(C, {
366
+ }), g(w, {
340
367
  size: "small",
341
368
  className: "sxl-sort-orientation",
342
369
  labelId: "sxl-sort-orientation-label",
@@ -349,10 +376,10 @@ var T = {
349
376
  axis: t
350
377
  }));
351
378
  },
352
- children: [m(S, {
379
+ children: [h(C, {
353
380
  value: r.Axis.Row,
354
381
  children: z("sort.orientationTopToBottom")
355
- }), m(S, {
382
+ }), h(C, {
356
383
  value: r.Axis.Column,
357
384
  children: z("sort.orientationLeftToRight")
358
385
  })]
@@ -363,8 +390,8 @@ var T = {
363
390
  ]
364
391
  })
365
392
  });
366
- }), L = c((e) => {
367
- let { level: t, position: n, count: r, fields: a, labelForField: s, isRowSort: c, onChange: u, onMoveBy: d, onDuplicate: f, onDelete: _ } = e, v = ee(), y = t.criteria.sortOn ?? i.SortOn.Value, x = !!t.criteria.reverse, A = l(() => {
393
+ }), L = l((e) => {
394
+ let { level: t, position: n, count: r, fields: a, labelForField: s, isRowSort: l, onChange: d, onMoveBy: f, onDuplicate: p, onDelete: v } = e, y = c(), b = t.criteria.sortOn ?? i.SortOn.Value, S = !!t.criteria.reverse, A = u(() => {
368
395
  let e = a.offsets.map((e, t) => ({
369
396
  offset: e,
370
397
  label: a.labels[t]
@@ -377,23 +404,23 @@ var T = {
377
404
  a,
378
405
  t.index,
379
406
  s
380
- ]), M = (e, t, n, r, i) => m(p, {
407
+ ]), M = (e, t, n, r, i) => h(m, {
381
408
  disableInteractive: !0,
382
409
  title: e,
383
- children: m("div", { children: m(b, {
410
+ children: h("div", { children: h(x, {
384
411
  size: "small",
385
412
  className: `sxl-sort-${t}`,
386
413
  "aria-label": e,
387
414
  disabled: r,
388
415
  sx: { padding: "2px" },
389
416
  onClick: i,
390
- children: m(o, {
417
+ children: h(o, {
391
418
  style: { transform: "scale(0.85)" },
392
419
  iconKey: n
393
420
  })
394
421
  }) })
395
422
  });
396
- return h(g, {
423
+ return g(_, {
397
424
  sx: {
398
425
  ...j,
399
426
  "&:hover, &:focus-within": {
@@ -405,96 +432,96 @@ var T = {
405
432
  }
406
433
  },
407
434
  children: [
408
- m(w, {
435
+ h(T, {
409
436
  variant: "body2",
410
- sx: T,
411
- children: v(n === 0 ? "sort.sortBy" : "sort.thenBy")
437
+ sx: E,
438
+ children: y(n === 0 ? "sort.sortBy" : "sort.thenBy")
412
439
  }),
413
- m(C, {
440
+ h(w, {
414
441
  size: "small",
415
442
  className: "sxl-sort-field",
416
443
  value: t.index,
417
- sx: E,
418
- "aria-label": v(c ? "sort.column" : "sort.row"),
419
- onChange: (e) => u(t.key, { index: Number(e.target.value) }),
420
- children: A.map((e) => m(S, {
444
+ sx: D,
445
+ "aria-label": y(l ? "sort.column" : "sort.row"),
446
+ onChange: (e) => d(t.key, { index: Number(e.target.value) }),
447
+ children: A.map((e) => h(C, {
421
448
  value: e.offset,
422
449
  children: e.label
423
450
  }, e.offset))
424
451
  }),
425
- h(C, {
452
+ g(w, {
426
453
  size: "small",
427
454
  className: "sxl-sort-on",
428
- value: y,
429
- sx: D,
430
- "aria-label": v("sort.sortOn"),
455
+ value: b,
456
+ sx: ee,
457
+ "aria-label": y("sort.sortOn"),
431
458
  onChange: (e) => {
432
- u(t.key, { criteria: {
459
+ d(t.key, { criteria: {
433
460
  ...t.criteria,
434
461
  sortOn: e.target.value
435
462
  } });
436
463
  },
437
464
  children: [
438
- m(S, {
465
+ h(C, {
439
466
  value: i.SortOn.Value,
440
- children: v("sort.sortOnValue")
467
+ children: y("sort.sortOnValue")
441
468
  }),
442
- h(S, {
469
+ g(C, {
443
470
  value: i.SortOn.FillColor,
444
471
  disabled: !0,
445
- children: [v("sort.sortOnFillColor"), m(w, {
472
+ children: [y("sort.sortOnFillColor"), h(T, {
446
473
  variant: "caption",
447
474
  sx: {
448
475
  marginLeft: 1,
449
476
  opacity: .7
450
477
  },
451
- children: v("sort.notSupported")
478
+ children: y("sort.notSupported")
452
479
  })]
453
480
  }),
454
- h(S, {
481
+ g(C, {
455
482
  value: i.SortOn.FontColor,
456
483
  disabled: !0,
457
- children: [v("sort.sortOnFontColor"), m(w, {
484
+ children: [y("sort.sortOnFontColor"), h(T, {
458
485
  variant: "caption",
459
486
  sx: {
460
487
  marginLeft: 1,
461
488
  opacity: .7
462
489
  },
463
- children: v("sort.notSupported")
490
+ children: y("sort.notSupported")
464
491
  })]
465
492
  }),
466
- h(S, {
493
+ g(C, {
467
494
  value: i.SortOn.Icon,
468
495
  disabled: !0,
469
- children: [v("sort.sortOnIcon"), m(w, {
496
+ children: [y("sort.sortOnIcon"), h(T, {
470
497
  variant: "caption",
471
498
  sx: {
472
499
  marginLeft: 1,
473
500
  opacity: .7
474
501
  },
475
- children: v("sort.notSupported")
502
+ children: y("sort.notSupported")
476
503
  })]
477
504
  })
478
505
  ]
479
506
  }),
480
- m(g, {
507
+ h(_, {
481
508
  sx: O,
482
- children: m(p, {
509
+ children: h(m, {
483
510
  disableInteractive: !0,
484
- title: v(x ? "sort.descending" : "sort.ascending"),
485
- children: m(b, {
511
+ title: y(S ? "sort.descending" : "sort.ascending"),
512
+ children: h(x, {
486
513
  size: "small",
487
514
  className: "sxl-sort-order",
488
- "aria-label": v(x ? "sort.descending" : "sort.ascending"),
489
- onClick: () => u(t.key, { criteria: {
515
+ "aria-label": y(S ? "sort.descending" : "sort.ascending"),
516
+ onClick: () => d(t.key, { criteria: {
490
517
  ...t.criteria,
491
- reverse: !x
518
+ reverse: !S
492
519
  } }),
493
- children: m(o, { iconKey: x ? "SortDecrease" : "SortIncrease" })
520
+ children: h(o, { iconKey: S ? "SortDecrease" : "SortIncrease" })
494
521
  })
495
522
  })
496
523
  }),
497
- h(g, {
524
+ g(_, {
498
525
  className: "sxl-sort-level-actions",
499
526
  sx: {
500
527
  ...k,
@@ -503,10 +530,10 @@ var T = {
503
530
  transition: "opacity 0.2s ease"
504
531
  },
505
532
  children: [
506
- M(v("sort.moveUp"), "moveUp", "CardMoveUp", n === 0, () => d(-1)),
507
- M(v("sort.moveDown"), "moveDown", "CardMoveDown", n === r - 1, () => d(1)),
508
- M(v("sort.copyLevel"), "copyLevel", "CardDuplicate", !1, f),
509
- M(v("sort.deleteLevel"), "deleteLevel", "Delete", r <= 1, _)
533
+ r > 1 && M(y("sort.moveUp"), "moveUp", "CardMoveUp", n === 0, () => f(-1)),
534
+ r > 1 && M(y("sort.moveDown"), "moveDown", "CardMoveDown", n === r - 1, () => f(1)),
535
+ M(y("sort.copyLevel"), "copyLevel", "CardDuplicate", !1, p),
536
+ M(y("sort.deleteLevel"), "deleteLevel", "Delete", r <= 1, v)
510
537
  ]
511
538
  })
512
539
  ]
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.10
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { i as e, n as t, r as n } from "./RbGJTMzxMTlkFlTq.mjs";
7
+ import { i as e, n as t, r as n } from "./CIu1bjPJe_x31Oww.mjs";
8
8
  import { useReferenceMode as r, useWorkbook as i } from "@sheetxl/react";
9
9
  import { useCallbackRef as a, useTranslator as o } from "@sheetxl/utils-react";
10
10
  import { memo as s, useMemo as c, useRef as l, useState as u } from "react";
@@ -22,14 +22,15 @@ var m = s((s) => {
22
22
  scope: e.getSheet().getName()
23
23
  } : void 0;
24
24
  }), I = !!r().getMode()?.activeInput, L = l(!1), R = a((e, n, r) => {
25
- if (n || e !== t.Next) if (n || e !== t.Back) {
26
- if (!n && O) {
27
- let e = E === "arguments" && !!A;
28
- L.current = !e, v?.(e ? A : O);
29
- }
30
- g?.(e, n, r), _?.();
31
- } else D("search");
32
- else D("arguments");
25
+ if (n || e !== t.Next) {
26
+ if (n || e !== t.Back) {
27
+ if (!n && O) {
28
+ let e = E === "arguments" && !!A;
29
+ L.current = !e, v?.(e ? A : O);
30
+ }
31
+ g?.(e, n, r), _?.();
32
+ } else D("search");
33
+ } else D("arguments");
33
34
  }, [
34
35
  E,
35
36
  A,