@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
@@ -1,104 +1,131 @@
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 { S as e, b as t, x as r } from "./index.mjs";
7
+ import { D as e, E as t, O as r } from "./index.mjs";
8
8
  import { IRange as o, ISort as n, Sort as i } from "@sheetxl/sdk";
9
9
  import { DynamicIcon as l, useCallbackRef as s, useTranslator as a } from "@sheetxl/utils-react";
10
- import { memo as d, useMemo as c, useRef as p, useState as x } from "react";
11
- import { OptionsDialog as h, SimpleTooltip as u } from "@sheetxl/utils-mui";
12
- import { jsx as m, jsxs as f } from "react/jsx-runtime";
13
- import { Box as v, Checkbox as g, FormControl as y, FormControlLabel as b, IconButton as C, InputLabel as S, MenuItem as w, Select as O, Typography as k } from "@mui/material";
10
+ import { memo as d, useMemo as c, useRef as p, useState as h } from "react";
11
+ import { OptionsDialog as u, SimpleTooltip as x } from "@sheetxl/utils-mui";
12
+ import { jsx as f, jsxs as m } from "react/jsx-runtime";
13
+ import { Box as g, Checkbox as v, FormControl as b, FormControlLabel as y, IconButton as S, InputLabel as C, MenuItem as w, Select as O, Typography as k } from "@mui/material";
14
14
  var L = {
15
15
  width: "64px",
16
16
  flex: "0 0 auto"
17
17
  }, D = {
18
18
  flex: "1 1 0",
19
19
  minWidth: "120px"
20
- }, I = {
20
+ }, H = {
21
21
  flex: "1 1 0",
22
22
  minWidth: "140px"
23
- }, H = {
23
+ }, R = {
24
24
  width: "34px",
25
25
  flex: "0 0 auto",
26
26
  display: "flex",
27
27
  justifyContent: "center"
28
- }, z = {
28
+ }, I = {
29
29
  minWidth: "112px",
30
30
  flex: "0 0 auto",
31
31
  display: "flex",
32
32
  alignItems: "center",
33
33
  justifyContent: "flex-end"
34
- }, N = {
34
+ }, E = {
35
35
  color: (e) => e.palette.text.secondary,
36
36
  fontWeight: 500,
37
37
  paddingLeft: "14px"
38
- }, F = {
38
+ }, z = {
39
39
  display: "flex",
40
40
  alignItems: "center",
41
41
  gap: (e) => e.spacing(1),
42
42
  padding: (e) => e.spacing(.75, 1),
43
43
  border: (e) => `1px solid ${e.palette.divider}`,
44
44
  borderRadius: (e) => e.spacing(1.25)
45
- }, R = (e) => {
45
+ }, N = (e) => {
46
46
  let t = e, r = "";
47
47
  for (; t >= 0;) r = String.fromCharCode(65 + t % 26) + r, t = Math.floor(t / 26) - 1;
48
48
  return r;
49
- }, B = 0, M = () => "level-" + B++, T = (e) => e?.sensitivity === i.CaseSensitiveOptions.sensitivity, W = d((n) => {
50
- const { initialValue: d, context: B, onInput: W, onDone: j, ...A } = n, E = a(), V = p(B?.()), K = V.current?.range, U = V.current?.cell, [G, Y] = x(() => ({
49
+ }, F = 0, B = () => "level-" + F++, M = (e) => e?.sensitivity === i.CaseSensitiveOptions.sensitivity, T = d((n) => {
50
+ const { initialValue: d, context: F, onInput: T, onDone: $, ...j } = n, A = a(), U = p(F?.()), V = U.current?.range, K = U.current?.cell, [G, Y] = h(() => ({
51
51
  ...i.DefaultRangeOptions,
52
52
  ...d
53
- })), [q, J] = x(() => {
53
+ })), [q, J] = h(() => {
54
54
  const e = d?.sorts ?? [], t = [];
55
55
  for (let r = 0; r < e.length; r++) t.push({
56
- key: M(),
56
+ key: B(),
57
57
  index: e[r].index ?? r,
58
58
  criteria: { ...e[r].criteria }
59
59
  });
60
60
  return 0 === t.length && t.push({
61
- key: M(),
61
+ key: B(),
62
62
  index: 0,
63
63
  criteria: {}
64
64
  }), t;
65
65
  }), P = G.axis ?? o.Axis.Row, Q = P === o.Axis.Row, X = p(null), Z = p(!1);
66
- e(X, !0, Z);
66
+ r(X, !0, Z);
67
67
  const _ = c(() => {
68
- const e = [], t = [], r = K?.getDefaultSortCriteria(P, U);
68
+ const e = [], t = [], r = V?.getDefaultSortCriteria(P, K);
69
69
  if (!r) return {
70
70
  labels: e,
71
71
  offsets: t
72
72
  };
73
- const o = r.coords, n = Q ? o.colEnd - o.colStart + 1 : o.rowEnd - o.rowStart + 1, i = Math.min(n, 500);
74
- for (let n = 0; n < i; n++) {
75
- const i = G.hasHeader ? r.headers?.get(n) : void 0;
76
- t.push(n), e.push(i || (Q ? E("sort.columnLabel", { name: R(o.colStart + n) }) : E("sort.rowLabel", { name: `${o.rowStart + n + 1}` })));
73
+ const o = V.getSheet(), n = r.coords, i = o.getRange(n).getUsedRange({ features: [] })?.getCoords();
74
+ if (!i) return {
75
+ labels: e,
76
+ offsets: t
77
+ };
78
+ const l = Q ? n.colStart : n.rowStart, s = Q ? i.colEnd : i.rowEnd, a = Q ? o.getRange(n).getColumnHeaders() : o.getRange(n).getRowHeaders(), d = !!G.includeHidden, c = (e) => {
79
+ if (!d && a.at(e - l).isHidden()) return !1;
80
+ const t = Q ? {
81
+ colStart: e,
82
+ colEnd: e,
83
+ rowStart: n.rowStart,
84
+ rowEnd: i.rowEnd
85
+ } : {
86
+ rowStart: e,
87
+ rowEnd: e,
88
+ colStart: n.colStart,
89
+ colEnd: i.colEnd
90
+ };
91
+ return !!o.getRange(t).forEach(() => ({ break: !0 }), { features: [] });
92
+ }, p = l + (r.options.sorts?.[0]?.index ?? 0), h = [];
93
+ let u = Math.min(p, s), x = u + 1, f = !0;
94
+ for (; h.length < 500;) {
95
+ const e = u >= l, t = x <= s;
96
+ if (!e && !t) break;
97
+ !e || !f && t ? (c(x) && (h.push(x), f = !0), x++) : (c(u) && (h.push(u), f = !1), u--);
98
+ }
99
+ h.sort((e, t) => e - t);
100
+ for (let o = 0; o < h.length; o++) {
101
+ const i = h[o] - l, s = G.hasHeader ? r.headers?.get(i) : void 0;
102
+ t.push(i), e.push(s || (Q ? A("sort.columnLabel", { name: N(n.colStart + i) }) : A("sort.rowLabel", { name: `${n.rowStart + i + 1}` })));
77
103
  }
78
104
  return {
79
105
  labels: e,
80
106
  offsets: t
81
107
  };
82
108
  }, [
109
+ V,
83
110
  K,
84
- U,
85
111
  P,
86
112
  Q,
87
113
  G.hasHeader,
88
- E
114
+ G.includeHidden,
115
+ A
89
116
  ]), ee = s((e) => {
90
117
  const t = _.offsets.indexOf(e);
91
- return -1 !== t ? _.labels[t] : Q ? E("sort.columnLabel", { name: R(e) }) : E("sort.rowLabel", { name: `${e + 1}` });
118
+ return -1 !== t ? _.labels[t] : Q ? A("sort.columnLabel", { name: N(e) }) : A("sort.rowLabel", { name: `${e + 1}` });
92
119
  }, [
93
120
  _,
94
121
  Q,
95
- E
122
+ A
96
123
  ]), te = c(() => {
97
124
  const e = _.offsets.length;
98
- if (e > 0 && q.length > e) return E("sort.tooManyLevels", { count: `${e}` });
125
+ if (e > 0 && q.length > e) return A("sort.tooManyLevels", { count: `${e}` });
99
126
  const t = /* @__PURE__ */ new Set();
100
127
  for (let e = 0; e < q.length; e++) {
101
- if (t.has(q[e].index)) return E("sort.duplicateField", { name: ee(q[e].index) });
128
+ if (t.has(q[e].index)) return A("sort.duplicateField", { name: ee(q[e].index) });
102
129
  t.add(q[e].index);
103
130
  }
104
131
  return null;
@@ -106,7 +133,7 @@ var L = {
106
133
  q,
107
134
  _,
108
135
  ee,
109
- E
136
+ A
110
137
  ]), re = s((e, t) => {
111
138
  J((r) => r.map((r) => r.key === e ? {
112
139
  ...r,
@@ -135,24 +162,24 @@ var L = {
135
162
  sorts: e
136
163
  };
137
164
  }
138
- W?.(t), j?.(t);
165
+ T?.(t), $?.(t);
139
166
  }, [
140
167
  q,
141
168
  G,
142
- j,
143
- W,
169
+ $,
170
+ T,
144
171
  d
145
172
  ]), ie = c(() => q.map((e) => e.key), [q]);
146
- return m(h, {
147
- title: E("sort.title"),
173
+ return f(u, {
174
+ title: A("sort.title"),
148
175
  options: [{
149
176
  id: "Sort",
150
- label: () => E("sort.action"),
177
+ label: () => A("sort.action"),
151
178
  disabled: () => null !== te
152
179
  }, "Cancel"],
153
180
  onDone: ne,
154
- ...A,
155
- children: f(v, {
181
+ ...j,
182
+ children: m(g, {
156
183
  sx: {
157
184
  display: "flex",
158
185
  flexDirection: "column",
@@ -160,51 +187,51 @@ var L = {
160
187
  minWidth: "560px"
161
188
  },
162
189
  children: [
163
- f(v, {
190
+ m(g, {
164
191
  sx: {
165
192
  display: "flex",
166
193
  flexDirection: "column"
167
194
  },
168
- children: [m(v, {
195
+ children: [f(g, {
169
196
  sx: { padding: (e) => e.spacing(0, .5) },
170
- children: f(v, {
197
+ children: m(g, {
171
198
  sx: {
172
- ...F,
199
+ ...z,
173
200
  borderColor: "transparent",
174
201
  paddingTop: 0,
175
202
  paddingBottom: 0
176
203
  },
177
204
  children: [
178
- m(v, { sx: L }),
179
- m(k, {
205
+ f(g, { sx: L }),
206
+ f(k, {
180
207
  variant: "body2",
181
208
  sx: {
182
209
  ...D,
183
- ...N
210
+ ...E
184
211
  },
185
- children: E(Q ? "sort.column" : "sort.row")
212
+ children: A(Q ? "sort.column" : "sort.row")
186
213
  }),
187
- m(k, {
214
+ f(k, {
188
215
  variant: "body2",
189
216
  sx: {
190
- ...I,
191
- ...N
217
+ ...H,
218
+ ...E
192
219
  },
193
- children: E("sort.sortOn")
220
+ children: A("sort.sortOn")
194
221
  }),
195
- m(k, {
222
+ f(k, {
196
223
  variant: "body2",
197
224
  sx: {
198
- ...H,
199
- ...N,
225
+ ...R,
226
+ ...E,
200
227
  paddingLeft: 0
201
228
  },
202
- children: E("sort.order")
229
+ children: A("sort.order")
203
230
  }),
204
- m(v, { sx: z })
231
+ f(g, { sx: I })
205
232
  ]
206
233
  })
207
- }), f(v, {
234
+ }), m(g, {
208
235
  ref: X,
209
236
  sx: {
210
237
  display: "flex",
@@ -214,13 +241,14 @@ var L = {
214
241
  maxHeight: "320px",
215
242
  overflowY: "auto"
216
243
  },
217
- children: [m(r, {
244
+ children: [f(e, {
218
245
  ids: ie,
219
246
  scrollRef: X,
220
247
  onMove: (e, t) => oe(e, t, !0),
221
- children: q.map((e, r) => m(t, {
248
+ children: q.map((e, r) => f(t, {
222
249
  id: e.key,
223
- children: m($, {
250
+ disabled: q.length <= 1,
251
+ children: f(W, {
224
252
  level: e,
225
253
  position: r,
226
254
  count: q.length,
@@ -234,7 +262,7 @@ var L = {
234
262
  const o = [...t];
235
263
  return o.splice(r + 1, 0, {
236
264
  ...e,
237
- key: M(),
265
+ key: B(),
238
266
  criteria: { ...e.criteria }
239
267
  }), o;
240
268
  });
@@ -242,51 +270,51 @@ var L = {
242
270
  onDelete: () => J((t) => t.filter((t) => t.key !== e.key))
243
271
  })
244
272
  }, e.key))
245
- }), f(v, {
273
+ }), m(g, {
246
274
  sx: {
247
- ...F,
275
+ ...z,
248
276
  borderColor: "transparent",
249
277
  flex: "0 0 auto",
250
278
  paddingTop: 0,
251
279
  paddingBottom: 0
252
280
  },
253
- children: [m(k, {
281
+ children: [f(k, {
254
282
  variant: "body2",
255
283
  sx: {
256
284
  ...L,
257
285
  color: (e) => e.palette.text.secondary
258
286
  },
259
- children: E("sort.thenBy")
260
- }), m(u, {
287
+ children: A("sort.thenBy")
288
+ }), f(x, {
261
289
  disableInteractive: !0,
262
- title: E("sort.addLevel"),
263
- children: m(C, {
290
+ title: A("sort.addLevel"),
291
+ children: f(S, {
264
292
  size: "small",
265
293
  className: "sxl-sort-addLevel",
266
- "aria-label": E("sort.addLevel"),
294
+ "aria-label": A("sort.addLevel"),
267
295
  onClick: () => {
268
296
  J((e) => {
269
297
  const t = new Set(e.map((e) => e.index)), r = _.offsets.find((e) => !t.has(e));
270
298
  return [...e, {
271
- key: M(),
299
+ key: B(),
272
300
  index: r ?? 0,
273
301
  criteria: {}
274
302
  }];
275
303
  });
276
304
  },
277
- children: m(l, { iconKey: "Insert" })
305
+ children: f(l, { iconKey: "Insert" })
278
306
  })
279
307
  })]
280
308
  })]
281
309
  })]
282
310
  }),
283
- null !== te ? m(k, {
311
+ null !== te ? f(k, {
284
312
  variant: "body2",
285
313
  className: "sxl-sort-refusal",
286
314
  sx: { color: (e) => e.palette.error.main },
287
315
  children: te
288
316
  }) : null,
289
- f(v, {
317
+ m(g, {
290
318
  sx: {
291
319
  display: "flex",
292
320
  flexWrap: "wrap",
@@ -297,8 +325,8 @@ var L = {
297
325
  paddingTop: (e) => e.spacing(1)
298
326
  },
299
327
  children: [
300
- m(b, {
301
- control: m(g, {
328
+ f(y, {
329
+ control: f(v, {
302
330
  size: "small",
303
331
  checked: !!G.hasHeader,
304
332
  onChange: () => Y((e) => ({
@@ -306,21 +334,21 @@ var L = {
306
334
  hasHeader: !e.hasHeader
307
335
  }))
308
336
  }),
309
- label: E("sort.hasHeader")
337
+ label: A("sort.hasHeader")
310
338
  }),
311
- m(b, {
312
- control: m(g, {
339
+ f(y, {
340
+ control: f(v, {
313
341
  size: "small",
314
- checked: T(G.collatorOptions),
342
+ checked: M(G.collatorOptions),
315
343
  onChange: () => Y((e) => ({
316
344
  ...e,
317
- collatorOptions: T(e.collatorOptions) ? i.CaseInsensitiveOptions : i.CaseSensitiveOptions
345
+ collatorOptions: M(e.collatorOptions) ? i.CaseInsensitiveOptions : i.CaseSensitiveOptions
318
346
  }))
319
347
  }),
320
- label: E("sort.caseSensitive")
348
+ label: A("sort.caseSensitive")
321
349
  }),
322
- m(b, {
323
- control: m(g, {
350
+ f(y, {
351
+ control: f(v, {
324
352
  size: "small",
325
353
  checked: !!G.includeHidden,
326
354
  onChange: () => Y((e) => ({
@@ -328,19 +356,19 @@ var L = {
328
356
  includeHidden: !e.includeHidden
329
357
  }))
330
358
  }),
331
- label: E("sort.includeHidden")
359
+ label: A("sort.includeHidden")
332
360
  }),
333
- f(y, {
361
+ m(b, {
334
362
  size: "small",
335
363
  sx: { minWidth: "180px" },
336
- children: [m(S, {
364
+ children: [f(C, {
337
365
  id: "sxl-sort-orientation-label",
338
- children: E("sort.orientation")
339
- }), f(O, {
366
+ children: A("sort.orientation")
367
+ }), m(O, {
340
368
  size: "small",
341
369
  className: "sxl-sort-orientation",
342
370
  labelId: "sxl-sort-orientation-label",
343
- label: E("sort.orientation"),
371
+ label: A("sort.orientation"),
344
372
  value: P,
345
373
  onChange: (e) => {
346
374
  const t = e.target.value;
@@ -349,12 +377,12 @@ var L = {
349
377
  axis: t
350
378
  }));
351
379
  },
352
- children: [m(w, {
380
+ children: [f(w, {
353
381
  value: o.Axis.Row,
354
- children: E("sort.orientationTopToBottom")
355
- }), m(w, {
382
+ children: A("sort.orientationTopToBottom")
383
+ }), f(w, {
356
384
  value: o.Axis.Column,
357
- children: E("sort.orientationLeftToRight")
385
+ children: A("sort.orientationLeftToRight")
358
386
  })]
359
387
  })]
360
388
  })
@@ -363,8 +391,8 @@ var L = {
363
391
  ]
364
392
  })
365
393
  });
366
- }), $ = d((e) => {
367
- const { level: t, position: r, count: o, fields: i, labelForField: s, isRowSort: d, onChange: p, onMoveBy: x, onDuplicate: h, onDelete: g } = e, y = a(), b = t.criteria.sortOn ?? n.SortOn.Value, S = !!t.criteria.reverse, N = c(() => {
394
+ }), W = d((e) => {
395
+ const { level: t, position: r, count: o, fields: i, labelForField: s, isRowSort: d, onChange: p, onMoveBy: h, onDuplicate: u, onDelete: v } = e, b = a(), y = t.criteria.sortOn ?? n.SortOn.Value, C = !!t.criteria.reverse, E = c(() => {
368
396
  const e = i.offsets.map((e, t) => ({
369
397
  offset: e,
370
398
  label: i.labels[t]
@@ -377,25 +405,25 @@ var L = {
377
405
  i,
378
406
  t.index,
379
407
  s
380
- ]), R = (e, t, r, o, n) => m(u, {
408
+ ]), N = (e, t, r, o, n) => f(x, {
381
409
  disableInteractive: !0,
382
410
  title: e,
383
- children: m("div", { children: m(C, {
411
+ children: f("div", { children: f(S, {
384
412
  size: "small",
385
413
  className: `sxl-sort-${t}`,
386
414
  "aria-label": e,
387
415
  disabled: o,
388
416
  sx: { padding: "2px" },
389
417
  onClick: n,
390
- children: m(l, {
418
+ children: f(l, {
391
419
  style: { transform: "scale(0.85)" },
392
420
  iconKey: r
393
421
  })
394
422
  }) })
395
423
  });
396
- return f(v, {
424
+ return m(g, {
397
425
  sx: {
398
- ...F,
426
+ ...z,
399
427
  "&:hover, &:focus-within": {
400
428
  boxShadow: 1,
401
429
  "& .sxl-sort-level-actions": {
@@ -405,29 +433,29 @@ var L = {
405
433
  }
406
434
  },
407
435
  children: [
408
- m(k, {
436
+ f(k, {
409
437
  variant: "body2",
410
438
  sx: L,
411
- children: y(0 === r ? "sort.sortBy" : "sort.thenBy")
439
+ children: b(0 === r ? "sort.sortBy" : "sort.thenBy")
412
440
  }),
413
- m(O, {
441
+ f(O, {
414
442
  size: "small",
415
443
  className: "sxl-sort-field",
416
444
  value: t.index,
417
445
  sx: D,
418
- "aria-label": y(d ? "sort.column" : "sort.row"),
446
+ "aria-label": b(d ? "sort.column" : "sort.row"),
419
447
  onChange: (e) => p(t.key, { index: Number(e.target.value) }),
420
- children: N.map((e) => m(w, {
448
+ children: E.map((e) => f(w, {
421
449
  value: e.offset,
422
450
  children: e.label
423
451
  }, e.offset))
424
452
  }),
425
- f(O, {
453
+ m(O, {
426
454
  size: "small",
427
455
  className: "sxl-sort-on",
428
- value: b,
429
- sx: I,
430
- "aria-label": y("sort.sortOn"),
456
+ value: y,
457
+ sx: H,
458
+ "aria-label": b("sort.sortOn"),
431
459
  onChange: (e) => {
432
460
  p(t.key, { criteria: {
433
461
  ...t.criteria,
@@ -435,82 +463,82 @@ var L = {
435
463
  } });
436
464
  },
437
465
  children: [
438
- m(w, {
466
+ f(w, {
439
467
  value: n.SortOn.Value,
440
- children: y("sort.sortOnValue")
468
+ children: b("sort.sortOnValue")
441
469
  }),
442
- f(w, {
470
+ m(w, {
443
471
  value: n.SortOn.FillColor,
444
472
  disabled: !0,
445
- children: [y("sort.sortOnFillColor"), m(k, {
473
+ children: [b("sort.sortOnFillColor"), f(k, {
446
474
  variant: "caption",
447
475
  sx: {
448
476
  marginLeft: 1,
449
477
  opacity: .7
450
478
  },
451
- children: y("sort.notSupported")
479
+ children: b("sort.notSupported")
452
480
  })]
453
481
  }),
454
- f(w, {
482
+ m(w, {
455
483
  value: n.SortOn.FontColor,
456
484
  disabled: !0,
457
- children: [y("sort.sortOnFontColor"), m(k, {
485
+ children: [b("sort.sortOnFontColor"), f(k, {
458
486
  variant: "caption",
459
487
  sx: {
460
488
  marginLeft: 1,
461
489
  opacity: .7
462
490
  },
463
- children: y("sort.notSupported")
491
+ children: b("sort.notSupported")
464
492
  })]
465
493
  }),
466
- f(w, {
494
+ m(w, {
467
495
  value: n.SortOn.Icon,
468
496
  disabled: !0,
469
- children: [y("sort.sortOnIcon"), m(k, {
497
+ children: [b("sort.sortOnIcon"), f(k, {
470
498
  variant: "caption",
471
499
  sx: {
472
500
  marginLeft: 1,
473
501
  opacity: .7
474
502
  },
475
- children: y("sort.notSupported")
503
+ children: b("sort.notSupported")
476
504
  })]
477
505
  })
478
506
  ]
479
507
  }),
480
- m(v, {
481
- sx: H,
482
- children: m(u, {
508
+ f(g, {
509
+ sx: R,
510
+ children: f(x, {
483
511
  disableInteractive: !0,
484
- title: y(S ? "sort.descending" : "sort.ascending"),
485
- children: m(C, {
512
+ title: b(C ? "sort.descending" : "sort.ascending"),
513
+ children: f(S, {
486
514
  size: "small",
487
515
  className: "sxl-sort-order",
488
- "aria-label": y(S ? "sort.descending" : "sort.ascending"),
516
+ "aria-label": b(C ? "sort.descending" : "sort.ascending"),
489
517
  onClick: () => p(t.key, { criteria: {
490
518
  ...t.criteria,
491
- reverse: !S
519
+ reverse: !C
492
520
  } }),
493
- children: m(l, { iconKey: S ? "SortDecrease" : "SortIncrease" })
521
+ children: f(l, { iconKey: C ? "SortDecrease" : "SortIncrease" })
494
522
  })
495
523
  })
496
524
  }),
497
- f(v, {
525
+ m(g, {
498
526
  className: "sxl-sort-level-actions",
499
527
  sx: {
500
- ...z,
528
+ ...I,
501
529
  opacity: 0,
502
530
  pointerEvents: "none",
503
531
  transition: "opacity 0.2s ease"
504
532
  },
505
533
  children: [
506
- R(y("sort.moveUp"), "moveUp", "CardMoveUp", 0 === r, () => x(-1)),
507
- R(y("sort.moveDown"), "moveDown", "CardMoveDown", r === o - 1, () => x(1)),
508
- R(y("sort.copyLevel"), "copyLevel", "CardDuplicate", !1, h),
509
- R(y("sort.deleteLevel"), "deleteLevel", "Delete", o <= 1, g)
534
+ o > 1 && N(b("sort.moveUp"), "moveUp", "CardMoveUp", 0 === r, () => h(-1)),
535
+ o > 1 && N(b("sort.moveDown"), "moveDown", "CardMoveDown", r === o - 1, () => h(1)),
536
+ N(b("sort.copyLevel"), "copyLevel", "CardDuplicate", !1, u),
537
+ N(b("sort.deleteLevel"), "deleteLevel", "Delete", o <= 1, v)
510
538
  ]
511
539
  })
512
540
  ]
513
541
  });
514
542
  });
515
- $.displayName = "SortLevelCard";
516
- export { W as SortDialog, W as default };
543
+ W.displayName = "SortLevelCard";
544
+ export { T as SortDialog, T as default };