@sheetxl/studio-mui 0.8.0-beta.9 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/LICENSE.md +17 -7
  2. package/browser/esm/{DT71hr6qq9QMKf7Q.mjs → -xbfcBB_r6yovwt0.mjs} +2 -2
  3. package/browser/esm/0Ui7wtwIglVNcnjK.mjs +975 -0
  4. package/browser/esm/0pDgMMkwtzP7yApV.mjs +294 -0
  5. package/browser/esm/3F82kokAv56WeIOp.mjs +94 -0
  6. package/browser/esm/B7rXnRqYPMeFo7lF.mjs +415 -0
  7. package/browser/esm/BDXrBgqLv2G_aBxW.mjs +8 -0
  8. package/browser/esm/{a5G-3nVFn86pvt8H.mjs → BEvHafOOTIvsHfzb.mjs} +82 -94
  9. package/browser/esm/{BscaD3SzYM6ysjgy.mjs → BF7tsgFfA5kiGqvA.mjs} +5 -5
  10. package/browser/esm/BGxILWytBh1gGIqX.mjs +1281 -0
  11. package/browser/esm/BMtcK4QQebSd-gg_.mjs +14 -0
  12. package/browser/esm/{DpdMtsE7oOAIJqFo.mjs → BN-SV9n15bsIT7UF.mjs} +14 -13
  13. package/browser/esm/BPw9ZOfyIYNPmxbo.mjs +252 -0
  14. package/browser/esm/Be-rw5ILGyBK1k5g.mjs +633 -0
  15. package/browser/esm/Bezw0tyQZcU_2PRi.mjs +242 -0
  16. package/browser/esm/BjHVW5_EgY2JEOYR.mjs +106 -0
  17. package/browser/esm/BsQHoNsrcsZZeolo.mjs +103 -0
  18. package/browser/esm/BtbpQMP61r1e5s6G.mjs +516 -0
  19. package/browser/esm/BvCt1gSMp3TNaras.mjs +424 -0
  20. package/browser/esm/By-REgl0FtVnNxzf.mjs +831 -0
  21. package/browser/esm/{DiKCs9R7e4MgyayQ.mjs → BzPrRiCDzZQnKqH4.mjs} +4 -4
  22. package/browser/esm/C2NKkLNVwF6qUNv1.mjs +94 -0
  23. package/browser/esm/C5Y1q7udZf2PwslP.mjs +973 -0
  24. package/browser/esm/CEbCLniKqzKNP6MP.mjs +392 -0
  25. package/browser/esm/CFz8KVBAQoF-AJHf.mjs +414 -0
  26. package/browser/esm/CKVZ-Qa6AcojcV6x.mjs +119 -0
  27. package/browser/esm/CPawgAiTfoCklxuh.mjs +267 -0
  28. package/browser/esm/CQyLZmquw7Cn-0Yv.mjs +14 -0
  29. package/browser/esm/{ipftNUxAU0HR-0YP.mjs → CS7kr0WaYPFpIH95.mjs} +3 -3
  30. package/browser/esm/CT8hUU9KN4TmEBld.mjs +8547 -0
  31. package/browser/esm/CX2LPfZw79Z0uRhG.mjs +386 -0
  32. package/browser/esm/CXViQNtqX1jITZyu.mjs +197 -0
  33. package/browser/esm/CbNQrqPTogPk-TRE.mjs +1550 -0
  34. package/browser/esm/{BdkeyaHAtiNa6jqW.mjs → CdeLvf6DfzWVbVw5.mjs} +33 -31
  35. package/browser/esm/{CawSvjLj4-2Qqyef.mjs → ChytgpwnPlu_VG4E.mjs} +2 -2
  36. package/browser/esm/CmAMY8rXqmvbCx1E.mjs +360 -0
  37. package/browser/esm/{BNYKPFICOYt2VRsP.mjs → CukQww6Fo8MyF56L.mjs} +2 -2
  38. package/browser/esm/Cupln-3vYNmxrrM2.mjs +13 -0
  39. package/browser/esm/Cy6Q7KGXWYIosYTX.mjs +31 -0
  40. package/browser/esm/{ffz9LGAgGiWQQav9.mjs → D4IXtjIE97zSR0kY.mjs} +156 -109
  41. package/browser/esm/D5IXaQlvCuPu8zeG.mjs +72 -0
  42. package/browser/esm/{CHLqCxo3afOV1Otw.mjs → D6Rur-jnQXX3jzQH.mjs} +4 -4
  43. package/browser/esm/D8sXey2okO2icU8d.mjs +2692 -0
  44. package/browser/esm/DE7H4jbuXYB08_dQ.mjs +225 -0
  45. package/browser/esm/DaISN0TvyxafPIve.mjs +490 -0
  46. package/browser/esm/{80XYmJwiiFLBmpH2.mjs → DpwtflGvQFbBSLdo.mjs} +47 -48
  47. package/browser/esm/DrdNTvMdXdsemC4B.mjs +225 -0
  48. package/browser/esm/DsxPHa5JNx8ovALW.mjs +442 -0
  49. package/browser/esm/DvJk84TQ-8JsgXcp.mjs +235 -0
  50. package/browser/esm/Dw9nScfNdZ0Cjwne.mjs +87 -0
  51. package/browser/esm/{BXQPMQyxdiYwawjE.mjs → PvQUVsO3tH532wV8.mjs} +20 -18
  52. package/browser/esm/RrujsbEgx2HUeD4s.mjs +161 -0
  53. package/browser/esm/S2tFDJI2wIBAgQaA.mjs +335 -0
  54. package/browser/esm/{Cykd-NaZAtHJlQmQ.mjs → STe4CGP-g8tCf7c5.mjs} +2 -2
  55. package/browser/esm/SgyjQbszb0ptsRk8.mjs +517 -0
  56. package/browser/esm/d1P5kwJg3I0rdzn5.mjs +318 -0
  57. package/browser/esm/hfHpykzxUMe5LvVF.mjs +141 -0
  58. package/browser/esm/{BIZX_0jxF9Fmaxuy.mjs → hjbPNszp95-0VCIw.mjs} +8 -6
  59. package/browser/esm/index.mjs +1910 -289
  60. package/browser/esm/sxqx9rjKZcYNC4Hx.mjs +77 -0
  61. package/browser/esm/{C--IZ8To0PhVLhoX.mjs → voMEQNZgdyO6soYo.mjs} +4 -4
  62. package/licenses/dependencies.txt +106 -359
  63. package/node/esm/{C5g2gBoUk3-cn94h.mjs → 1PN4BMQucW63NWcA.mjs} +2 -2
  64. package/node/esm/{BHuZQ-LJ2GgDLYSz.mjs → 4FcYpbmSwjqrMhol.mjs} +190 -141
  65. package/node/esm/{9k03YHFiw-wlUS8d.mjs → 6e2HZudCTjTzf6ih.mjs} +2 -2
  66. package/node/esm/{D4KDk-w7Khu7LrSi.mjs → B1MFTyLMh_SZnQbk.mjs} +70 -71
  67. package/node/esm/B2WLecbdSqMD1YVq.mjs +519 -0
  68. package/node/esm/BImYtxlBDnxbuYJQ.mjs +94 -0
  69. package/node/esm/{CNkqJbFlITxBA0t4.mjs → BQ_0nUqKSPxxzxTT.mjs} +29 -29
  70. package/node/esm/{Defb5qpSal98J5ay.mjs → BSJerjorDJ4w9N6r.mjs} +2 -2
  71. package/node/esm/{Dyd7va4aqC1jIzAk.mjs → C0KFwVu86wTgTd54.mjs} +21 -21
  72. package/node/esm/C0kd2sPUnsgdGUtj.mjs +197 -0
  73. package/node/esm/C4UnectGYMh-7x7y.mjs +267 -0
  74. package/node/esm/C5pD4ZSa_HiL9qxk.mjs +14 -0
  75. package/node/esm/C9W1LtNkMMtOs7Qg.mjs +73 -0
  76. package/node/esm/CAFHLlFMItMl9TpP.mjs +412 -0
  77. package/node/esm/CW3fvozHERUfT6Bc.mjs +294 -0
  78. package/node/esm/CWTDdTicFuH60csl.mjs +972 -0
  79. package/node/esm/ChO1UxVGRIBuNPOZ.mjs +489 -0
  80. package/node/esm/{BkoorcOtOEh_Y7ck.mjs → CkIf9KMnQ26-zlEa.mjs} +33 -31
  81. package/node/esm/CsI3f2TN7jrLwudM.mjs +106 -0
  82. package/node/esm/CvM_8IuzxswqHgRo.mjs +224 -0
  83. package/node/esm/D7iklNCWLGeAIvrP.mjs +142 -0
  84. package/node/esm/D9Inb0eBSow2sR6u.mjs +319 -0
  85. package/node/esm/DKpUHQxiykyKEuyT.mjs +638 -0
  86. package/node/esm/DL4-uvtWGuGAfnne.mjs +391 -0
  87. package/node/esm/{CTtj1NR0IrcN8PTy.mjs → DP_w1SJKb-yFCvb7.mjs} +10 -10
  88. package/node/esm/DR7dWTccTfAqn8m8.mjs +516 -0
  89. package/node/esm/DXRJq0Bn7sDr_vXm.mjs +242 -0
  90. package/node/esm/DZ57bmwliKKBEzB7.mjs +1276 -0
  91. package/node/esm/Df5VcbKeW9cXY1Lw.mjs +141 -0
  92. package/node/esm/{b05_u9WnJaVGO0nq.mjs → DxWAgNvtIylA_ta_.mjs} +2 -2
  93. package/node/esm/GsWeMsCRXwvvpe2Z.mjs +77 -0
  94. package/node/esm/ONS9B46FEPFzjQsi.mjs +425 -0
  95. package/node/esm/QfWVpAmFeAecSa0o.mjs +385 -0
  96. package/node/esm/{BiHw3x2LPWT-kK8G.mjs → RgfhTFBh6fACzrx4.mjs} +84 -96
  97. package/node/esm/UCHoCHXSYWtQeJ-9.mjs +118 -0
  98. package/node/esm/index.mjs +9717 -8954
  99. package/node/esm/mmKhNlIs2nFTMbl5.mjs +94 -0
  100. package/node/esm/stC67-iHu8jB-gTl.mjs +1831 -0
  101. package/node/esm/{DHHgNbakbpNnu0oW.mjs → uFGXjoHpIjHX5bT8.mjs} +23 -23
  102. package/node/esm/z_MOgf-yg9GWQtPj.mjs +975 -0
  103. package/package.json +16 -19
  104. package/resources/contents.json +6 -0
  105. package/resources/locales/contents.json +14 -0
  106. package/resources/locales/de/groups.cmd.json +59 -10
  107. package/resources/locales/de/ui.msg.json +267 -14
  108. package/resources/locales/de/workbookAnomalies.cmd.json +14 -0
  109. package/resources/locales/en/groups.cmd.json +63 -11
  110. package/resources/locales/en/ui.msg.json +272 -14
  111. package/resources/locales/en/workbookAnomalies.cmd.json +14 -0
  112. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
  113. package/types/src/anomalies/AnomaliesCommands.d.ts +8 -0
  114. package/types/src/anomalies/AnomaliesMessages.d.ts +30 -0
  115. package/types/src/anomalies/AnomaliesPlugin.d.ts +12 -0
  116. package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
  117. package/types/src/anomalies/_source.d.ts +7 -0
  118. package/types/src/anomalies/index.d.ts +3 -0
  119. package/types/src/border/BorderPopupButton.d.ts +1 -1
  120. package/types/src/border/BorderTemplateIcon.d.ts +6 -1
  121. package/types/src/chart/ChartFormatPanel.d.ts +20 -0
  122. package/types/src/chart/ChartPlugin.d.ts +6 -0
  123. package/types/src/chart/index.d.ts +3 -0
  124. package/types/src/color/ColorPopupButton.d.ts +1 -1
  125. package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
  126. package/types/src/command/ColorCommandButton.d.ts +5 -0
  127. package/types/src/command/DocThemeCommandButton.d.ts +1 -1
  128. package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
  129. package/types/src/command/FontSizeCommandButton.d.ts +1 -1
  130. package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
  131. package/types/src/command/LanguageCommandButton.d.ts +1 -1
  132. package/types/src/command/LocaleCommandButton.d.ts +1 -1
  133. package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
  134. package/types/src/command/PresetPivotStylesCommandButton.d.ts +17 -0
  135. package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
  136. package/types/src/command/index.d.ts +2 -0
  137. package/types/src/comments/CommentCard.d.ts +2 -2
  138. package/types/src/comments/CommentsPlugin.d.ts +1 -1
  139. package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +1 -1
  140. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
  141. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +3 -3
  142. package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
  143. package/types/src/conditions/CombinatorOption.d.ts +7 -0
  144. package/types/src/conditions/ConditionEditor.d.ts +55 -3
  145. package/types/src/conditions/ConditionUtils.d.ts +34 -6
  146. package/types/src/conditions/ExpressionOption.d.ts +6 -0
  147. package/types/src/conditions/MembershipOption.d.ts +67 -0
  148. package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
  149. package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
  150. package/types/src/conditions/ScalarOption.d.ts +5 -4
  151. package/types/src/conditions/SelectorSelect.d.ts +16 -7
  152. package/types/src/conditions/index.d.ts +1 -1
  153. package/types/src/conditions/useFormulaOption.d.ts +2 -2
  154. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +9 -5
  155. package/types/src/dataValidation/DataValidationIcon.d.ts +1 -1
  156. package/types/src/dataValidation/DataValidationPlugin.d.ts +1 -1
  157. package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
  158. package/types/src/dialog/PivotTableNewDialog.d.ts +11 -0
  159. package/types/src/dialog/SparklineEditDialog.d.ts +10 -0
  160. package/types/src/dialog/SparklineNewDialog.d.ts +23 -0
  161. package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
  162. package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
  163. package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
  164. package/types/src/externalLink/ExternalLinksPlugin.d.ts +1 -1
  165. package/types/src/fill/GradientEditor.d.ts +15 -13
  166. package/types/src/fill/GradientStopsBar.d.ts +43 -0
  167. package/types/src/fill/PatternPopupButton.d.ts +1 -1
  168. package/types/src/fill/index.d.ts +1 -0
  169. package/types/src/filter/ColumnMenu.d.ts +31 -1
  170. package/types/src/filter/PivotMenu.d.ts +31 -0
  171. package/types/src/filter/index.d.ts +1 -1
  172. package/types/src/form/FormulaField.d.ts +4 -4
  173. package/types/src/form/InputField.d.ts +5 -5
  174. package/types/src/format/BorderPreview.d.ts +11 -4
  175. package/types/src/format/FillPanel.d.ts +42 -2
  176. package/types/src/format/FormatPanelParts.d.ts +3 -1
  177. package/types/src/format/FormatPlugin.d.ts +1 -6
  178. package/types/src/format/LinePanel.d.ts +53 -0
  179. package/types/src/format/LinePreviews.d.ts +71 -0
  180. package/types/src/format/index.d.ts +1 -0
  181. package/types/src/format/useFormatSelection.d.ts +6 -6
  182. package/types/src/formulaBar/IFormulaBar.d.ts +32 -3
  183. package/types/src/formulaBar/MobileFormulaBar.d.ts +42 -0
  184. package/types/src/formulaBar/MobileInputToolbar.d.ts +43 -0
  185. package/types/src/formulaBar/index.d.ts +3 -0
  186. package/types/src/formulaBar/useFormulaBarSession.d.ts +68 -0
  187. package/types/src/index.d.ts +19 -6
  188. package/types/src/itemsPanel/ItemCard.d.ts +50 -7
  189. package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
  190. package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
  191. package/types/src/itemsPanel/index.d.ts +1 -0
  192. package/types/src/named/NamedDetailsPanel.d.ts +2 -2
  193. package/types/src/named/NamedPlugin.d.ts +1 -1
  194. package/types/src/picture/PicturePlugin.d.ts +6 -0
  195. package/types/src/picture/index.d.ts +2 -0
  196. package/types/src/pivot/PivotChipMenu.d.ts +10 -0
  197. package/types/src/pivot/PivotPlugin.d.ts +3 -0
  198. package/types/src/pivot/PivotStyleCanvasPreview.d.ts +23 -0
  199. package/types/src/pivot/PivotTableHeader.d.ts +12 -0
  200. package/types/src/pivot/PivotValueSettingsDialog.d.ts +15 -0
  201. package/types/src/pivot/_pivotSource.d.ts +7 -0
  202. package/types/src/presence/PresenceOverlay.d.ts +14 -0
  203. package/types/src/presence/PresencePlugin.d.ts +31 -0
  204. package/types/src/presence/PresenceStrip.d.ts +22 -0
  205. package/types/src/presence/PresenceTaskPane.d.ts +13 -0
  206. package/types/src/presence/Timeline.d.ts +29 -0
  207. package/types/src/presence/index.d.ts +5 -0
  208. package/types/src/protection/ProtectedCellsPanel.d.ts +3 -3
  209. package/types/src/protection/ProtectionPlugin.d.ts +1 -1
  210. package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
  211. package/types/src/protection/index.d.ts +1 -1
  212. package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
  213. package/types/src/shape/ShapeGalleryCommandButton.d.ts +18 -0
  214. package/types/src/shape/ShapePlugin.d.ts +8 -0
  215. package/types/src/shape/index.d.ts +2 -1
  216. package/types/src/slicer/InsertSlicerCommandButton.d.ts +13 -0
  217. package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +12 -0
  218. package/types/src/slicer/SlicerPlugin.d.ts +6 -0
  219. package/types/src/slicer/index.d.ts +3 -0
  220. package/types/src/statusBar/PendingStatus.d.ts +19 -0
  221. package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
  222. package/types/src/statusBar/index.d.ts +1 -0
  223. package/types/src/studio/StudioProps.d.ts +62 -27
  224. package/types/src/studio/formulaBarPlacement.d.ts +35 -0
  225. package/types/src/studio/useStudioApp.d.ts +25 -24
  226. package/types/src/table/TablePlugin.d.ts +1 -1
  227. package/types/src/table/_drawStyleSwatch.d.ts +25 -0
  228. package/types/src/template/TemplateDialog.d.ts +1 -1
  229. package/types/src/template/TemplatePanel.d.ts +5 -1
  230. package/types/src/template/TemplateSearchField.d.ts +17 -1
  231. package/types/src/template/categoryColor.d.ts +8 -0
  232. package/types/src/template/useTemplateCatalog.d.ts +2 -0
  233. package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
  234. package/types/src/theme/ThemeUtils.d.ts +8 -27
  235. package/types/src/toolbar/WorkbookToolbars.d.ts +2 -2
  236. package/types/src/workbook/DefaultRenderers.d.ts +42 -18
  237. package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
  238. package/types/src/workbook/WorkbookElement.d.ts +5 -4
  239. package/types/src/workbook/WorkbookStrip.d.ts +8 -7
  240. package/types/src/workbook/index.d.ts +1 -1
  241. package/browser/cjs/2tG9HJLr-WjsOCP3.cjs +0 -1
  242. package/browser/cjs/3RXtLkq7wTAV6y_e.cjs +0 -1
  243. package/browser/cjs/3k_KqDFr-AybPztc.cjs +0 -5
  244. package/browser/cjs/4_Zy3pR6YXkzISoK.cjs +0 -1
  245. package/browser/cjs/BD50lsTki7wvzb5g.cjs +0 -1
  246. package/browser/cjs/BJ-wdkCaXqJaejKf.cjs +0 -1
  247. package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
  248. package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
  249. package/browser/cjs/Bc-YisjBtD56vBAW.cjs +0 -1
  250. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
  251. package/browser/cjs/BpG4iwTKbAnpi0wM.cjs +0 -1
  252. package/browser/cjs/ByIUHPOa02D7XbdC.cjs +0 -1
  253. package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
  254. package/browser/cjs/CMfoKJ3ehdXuld_7.cjs +0 -14
  255. package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
  256. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
  257. package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
  258. package/browser/cjs/CkroJ2FmfFvk6Eyv.cjs +0 -1
  259. package/browser/cjs/CzJvR12QCQb-0Rtn.cjs +0 -1
  260. package/browser/cjs/D-Yo5aV9STT5KH4G.cjs +0 -1
  261. package/browser/cjs/DwkiLFWUtLC8ZcIQ.cjs +0 -1
  262. package/browser/cjs/HuPFsmz7kyZVo3c7.cjs +0 -1
  263. package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
  264. package/browser/cjs/M0_dvdYwhikqP9kg.cjs +0 -2
  265. package/browser/cjs/g1WhGOz5epV7Hqsg.cjs +0 -8
  266. package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
  267. package/browser/cjs/index.cjs +0 -2
  268. package/browser/esm/BoLRDhnoO3gvviYD.mjs +0 -13811
  269. package/browser/esm/CH-Y2-p8GRvCHvd4.mjs +0 -52
  270. package/browser/esm/CUhtBLyaGSkcKB_1.mjs +0 -236
  271. package/browser/esm/D-Kit71xiitqCWVY.mjs +0 -5356
  272. package/browser/esm/DkUDZxFxx9n2Cked.mjs +0 -223
  273. package/browser/esm/F6kkwcBr0l-496tC.mjs +0 -152
  274. package/browser/esm/Q8r5yuh8Yx2ROnhC.mjs +0 -115
  275. package/browser/esm/iRFlbG6hQyKLVagS.mjs +0 -411
  276. package/browser/esm/lftI5b4ZCHVYc6OZ.mjs +0 -1150
  277. package/node/esm/BTZGnNrgV1na62gd.mjs +0 -415
  278. package/node/esm/Be0G9parvc2CTpFQ.mjs +0 -4504
  279. package/node/esm/CTJqjeq3smY8jw5J.mjs +0 -236
  280. package/node/esm/DbLFR_dnQQmZC_jm.mjs +0 -115
  281. package/types/src/conditions/DateTimeOption.d.ts +0 -43
  282. package/types/src/conditions/ListSourceOption.d.ts +0 -31
  283. package/types/src/filter/FilterList.d.ts +0 -32
  284. package/types/src/shape/InsertShapeCommandButton.d.ts +0 -10
@@ -0,0 +1,519 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.2
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: MIT
6
+ */
7
+ import { ColorPopupButton as e, StyledStrokeIcon as l } from "./index.mjs";
8
+ import { i as n, n as i, o, r as t } from "./CsI3f2TN7jrLwudM.mjs";
9
+ import { IFill as a, IStroke as s } from "@sheetxl/sdk";
10
+ import { KeyCodes as d, useCallbackRef as r, useTranslator as p } from "@sheetxl/utils-react";
11
+ import { memo as h, useCallback as c, useMemo as y } from "react";
12
+ import { ExhibitIconButton as D, ExhibitMenuItem as u, ExhibitPopupIconButton as m, ExhibitPopupMenuItem as S, createStrokeShadowFilter as L } from "@sheetxl/utils-mui";
13
+ import { Fragment as g, jsx as b, jsxs as x } from "react/jsx-runtime";
14
+ import { Box as k, FormControl as f, InputLabel as v, MenuItem as E, Select as T } from "@mui/material";
15
+ import { messageKey as $ } from "@sheetxl/utils";
16
+ import z from "clsx";
17
+ var C = {
18
+ [s.DashStyle.Solid]: null,
19
+ [s.DashStyle.Dot]: [1, 3],
20
+ [s.DashStyle.Dash]: [4, 3],
21
+ [s.DashStyle.LongDash]: [8, 3],
22
+ [s.DashStyle.DashDot]: [
23
+ 4,
24
+ 3,
25
+ 1,
26
+ 3
27
+ ],
28
+ [s.DashStyle.LongDashDot]: [
29
+ 8,
30
+ 3,
31
+ 1,
32
+ 3
33
+ ],
34
+ [s.DashStyle.LongDashDotDot]: [
35
+ 8,
36
+ 3,
37
+ 1,
38
+ 3,
39
+ 1,
40
+ 3
41
+ ],
42
+ [s.DashStyle.SysDash]: [3, 1],
43
+ [s.DashStyle.SysDot]: [1, 1],
44
+ [s.DashStyle.SysDashDot]: [
45
+ 3,
46
+ 1,
47
+ 1,
48
+ 1
49
+ ],
50
+ [s.DashStyle.SysDashDotDot]: [
51
+ 3,
52
+ 1,
53
+ 1,
54
+ 1,
55
+ 1,
56
+ 1
57
+ ]
58
+ }, M = h((e) => {
59
+ const { dash: n, color: i, darkMode: o } = e, t = Array.isArray(n) ? n : C[n] ?? null;
60
+ return b(l, {
61
+ styleColor: i,
62
+ length: 60,
63
+ width: 2,
64
+ darkMode: o,
65
+ dashArray: t ? t.map((e) => 2 * e) : void 0
66
+ });
67
+ });
68
+ M.displayName = "DashIcon";
69
+ var w = {
70
+ sm: 2.5,
71
+ med: 4,
72
+ lg: 6
73
+ }, R = {
74
+ sm: 5,
75
+ med: 8,
76
+ lg: 12
77
+ }, A = h((e) => {
78
+ const { end: l, atStart: n = !1, color: i, darkMode: o = !1 } = e, t = 19, a = w[l.width ?? s.LineEndSize.Medium], d = R[l.length ?? s.LineEndSize.Medium];
79
+ let r = null, p = t;
80
+ switch (l.type) {
81
+ case s.LineEndType.Triangle:
82
+ r = b("polygon", { points: `19,8 ${t - d},${8 - a} ${t - d},${8 + a}` }), p = t - d;
83
+ break;
84
+ case s.LineEndType.Stealth:
85
+ r = b("polygon", { points: `19,8 ${t - d},${8 - a} ${t - .6 * d},8 ${t - d},${8 + a}` }), p = t - .6 * d;
86
+ break;
87
+ case s.LineEndType.Diamond:
88
+ r = b("polygon", { points: `19,8 ${t - d / 2},${8 - a} ${t - d},8 ${t - d / 2},${8 + a}` }), p = t - d;
89
+ break;
90
+ case s.LineEndType.Oval:
91
+ r = b("ellipse", {
92
+ cx: t - d / 2,
93
+ cy: 8,
94
+ rx: d / 2,
95
+ ry: a
96
+ }), p = t - d;
97
+ break;
98
+ case s.LineEndType.Arrow: r = b("polyline", {
99
+ points: `${t - d},${8 - a} 19,8 ${t - d},${8 + a}`,
100
+ fill: "none",
101
+ strokeWidth: 2,
102
+ strokeLinecap: "round",
103
+ strokeLinejoin: "round"
104
+ });
105
+ }
106
+ const h = i ? i.toRGBA(o).toString() : "currentColor";
107
+ return x(k, {
108
+ component: "svg",
109
+ width: 20,
110
+ height: 16,
111
+ viewBox: "0 0 20 16",
112
+ sx: {
113
+ display: "block",
114
+ overflow: "visible",
115
+ fill: h,
116
+ stroke: h,
117
+ filter: L(),
118
+ transform: n ? "scaleX(-1)" : void 0
119
+ },
120
+ children: [b("line", {
121
+ x1: 1,
122
+ y1: 8,
123
+ x2: p,
124
+ y2: 8,
125
+ strokeWidth: 2
126
+ }), r]
127
+ });
128
+ });
129
+ A.displayName = "LineEndIcon";
130
+ var N = (e) => {
131
+ const { end: l, atStart: n = !1, color: i, darkMode: o, types: t, sizes: a, typeLabels: d, sizeLabels: r, widthLabel: p, lengthLabel: h, tooltip: y, disabled: L, onSelect: g } = e, x = c((e) => {
132
+ const { closeFloatAll: c, floatReference: y } = e, m = t.map((e) => {
133
+ const t = b(A, {
134
+ end: {
135
+ ...l,
136
+ type: e
137
+ },
138
+ atStart: n,
139
+ color: i,
140
+ darkMode: o
141
+ }), m = e === l.type;
142
+ if (e === s.LineEndType.None) return b(u, {
143
+ icon: t,
144
+ selected: m,
145
+ disabled: L,
146
+ onMouseDown: (e) => e.preventDefault(),
147
+ onMouseUp: () => {
148
+ c?.(), g(null);
149
+ },
150
+ children: d[e]
151
+ }, e);
152
+ return b(S, {
153
+ icon: t,
154
+ label: d[e],
155
+ selected: m,
156
+ disabled: L,
157
+ parentFloat: y,
158
+ renderPopupPanel: (t) => b(k, {
159
+ sx: {
160
+ display: "grid",
161
+ gridTemplateColumns: `repeat(${a.length}, auto)`,
162
+ gap: "2px",
163
+ padding: "6px 8px"
164
+ },
165
+ children: a.map((d) => a.map((a) => b(D, {
166
+ icon: b(A, {
167
+ end: {
168
+ type: e,
169
+ width: a,
170
+ length: d
171
+ },
172
+ atStart: n,
173
+ color: i,
174
+ darkMode: o
175
+ }),
176
+ selected: m && (l.width ?? s.LineEndSize.Medium) === a && (l.length ?? s.LineEndSize.Medium) === d,
177
+ disabled: L,
178
+ propsTooltip: {
179
+ label: `${p}: ${r[a]} · ${h}: ${r[d]}`,
180
+ simple: !0
181
+ },
182
+ onClick: () => {
183
+ t.closeFloatAll?.(), g({
184
+ type: e,
185
+ width: a,
186
+ length: d
187
+ });
188
+ }
189
+ }, `${a}-${d}`)))
190
+ }),
191
+ onQuickClick: () => {
192
+ c?.(), g({
193
+ ...l,
194
+ type: e
195
+ });
196
+ }
197
+ }, e);
198
+ });
199
+ return b(k, {
200
+ sx: {
201
+ display: "flex",
202
+ flexDirection: "column",
203
+ paddingTop: "4px",
204
+ paddingBottom: "4px"
205
+ },
206
+ children: m
207
+ });
208
+ }, [
209
+ l,
210
+ n,
211
+ i,
212
+ o,
213
+ t,
214
+ a,
215
+ d,
216
+ r,
217
+ p,
218
+ h,
219
+ L,
220
+ g
221
+ ]);
222
+ return b(m, {
223
+ disabled: L,
224
+ icon: b(k, {
225
+ sx: {
226
+ paddingLeft: "4px",
227
+ marginRight: "4px",
228
+ height: "24px",
229
+ display: "flex",
230
+ alignItems: "center"
231
+ },
232
+ children: b(A, {
233
+ end: l,
234
+ atStart: n,
235
+ color: i,
236
+ darkMode: o
237
+ })
238
+ }),
239
+ tooltip: y ? `${y}: ${d[l.type]}` : d[l.type],
240
+ renderPopupPanel: x
241
+ });
242
+ }, j = (e) => {
243
+ const { value: l, options: n, onSelect: i, columns: o, tooltip: t, disabled: a, icon: s } = e, r = n.find((e) => e.value === l) ?? n[0], p = c((e) => {
244
+ const { closeFloat: t } = e;
245
+ return b(k, o ? {
246
+ sx: {
247
+ display: "grid",
248
+ gridTemplateColumns: `repeat(${o}, auto)`,
249
+ gap: "2px",
250
+ padding: "6px 8px"
251
+ },
252
+ children: n.map((e) => b(D, {
253
+ icon: e.icon,
254
+ selected: e.value === l,
255
+ disabled: a,
256
+ propsTooltip: {
257
+ label: e.label,
258
+ simple: !0
259
+ },
260
+ onClick: () => {
261
+ t?.(), i(e.value);
262
+ }
263
+ }, e.value))
264
+ } : {
265
+ sx: {
266
+ display: "flex",
267
+ flexDirection: "column",
268
+ paddingTop: "4px",
269
+ paddingBottom: "4px"
270
+ },
271
+ children: n.map((e) => b(u, {
272
+ tabIndex: 0,
273
+ sx: {
274
+ height: "28px",
275
+ paddingLeft: "16px"
276
+ },
277
+ propsTooltip: { description: e.label },
278
+ icon: null,
279
+ disabled: a,
280
+ selected: e.value === l,
281
+ onMouseDown: (e) => e.preventDefault(),
282
+ onMouseUp: () => {
283
+ t?.(), i(e.value);
284
+ },
285
+ onKeyDown: (e) => {
286
+ e.which === d.Enter && t?.();
287
+ },
288
+ children: e.icon
289
+ }, e.value))
290
+ });
291
+ }, [
292
+ n,
293
+ l,
294
+ i,
295
+ o,
296
+ a
297
+ ]);
298
+ return b(m, {
299
+ disabled: a,
300
+ icon: b(k, {
301
+ sx: {
302
+ paddingLeft: "4px",
303
+ marginRight: "4px",
304
+ height: "24px",
305
+ display: "flex",
306
+ alignItems: "center"
307
+ },
308
+ children: s ?? r?.icon
309
+ }),
310
+ tooltip: t ? `${t}: ${r?.label ?? ""}` : r?.label,
311
+ renderPopupPanel: p
312
+ });
313
+ }, B = "none", J = "solid", P = [
314
+ s.DashStyle.Solid,
315
+ s.DashStyle.SysDot,
316
+ s.DashStyle.SysDash,
317
+ s.DashStyle.Dash,
318
+ s.DashStyle.DashDot,
319
+ s.DashStyle.LongDash,
320
+ s.DashStyle.LongDashDot,
321
+ s.DashStyle.LongDashDotDot
322
+ ], W = "custom", F = [
323
+ s.LineCap.Square,
324
+ s.LineCap.Round,
325
+ s.LineCap.Butt
326
+ ], I = [
327
+ s.LineJoin.Round,
328
+ s.LineJoin.Bevel,
329
+ s.LineJoin.Miter
330
+ ], q = [
331
+ s.LineEndType.None,
332
+ s.LineEndType.Triangle,
333
+ s.LineEndType.Arrow,
334
+ s.LineEndType.Stealth,
335
+ s.LineEndType.Diamond,
336
+ s.LineEndType.Oval
337
+ ], O = [
338
+ s.LineEndSize.Small,
339
+ s.LineEndSize.Medium,
340
+ s.LineEndSize.Large
341
+ ], G = h((l) => {
342
+ const { selection: d, disabled: h, className: c, ...D } = l, u = p(), { stroke: m, stated: S, autoColor: L, applyStroke: C, schemeLookup: w, styles: R, darkMode: A } = d, G = h || d.disabled, U = m.isVisible(), H = U ? J : B, K = S?.fill && S.fill.type !== a.Type.None ? m.getFill().getColor() : null, Q = K ?? L, V = m.getDash(), X = "string" == typeof V && P.includes(V) ? V : W, Y = m.getHead(), Z = m.getTail(), _ = r(() => R.recentColors(), [R]), ee = r((e) => {
343
+ e !== H && C(e === B ? { fill: { type: a.Type.None } } : {
344
+ fill: null,
345
+ width: m.getWidth() > 0 ? void 0 : null
346
+ }, $("op.setShapeStroke"));
347
+ }, [
348
+ H,
349
+ m,
350
+ C
351
+ ]), le = r((e, l) => {
352
+ e && l && R.addRecentColor(e), C({ fill: e ? e.toString() : null }, $("op.setStrokeColor"));
353
+ }, [C, R]), ne = r((e) => {
354
+ C({ width: e }, $("op.setStrokeWidth"));
355
+ }, [C]), ie = r((e) => {
356
+ e !== W && C({ dash: e }, $("op.setStrokeDash"));
357
+ }, [C]), oe = r((e) => {
358
+ C({ lineCap: e }, $("op.setStroke"));
359
+ }, [C]), te = r((e) => {
360
+ C({ lineJoin: e }, $("op.setStroke"));
361
+ }, [C]), ae = r((e, l) => {
362
+ C({ [e]: l }, $("op.setLineEnds"));
363
+ }, [C]), se = y(() => ({
364
+ dash: {
365
+ [s.DashStyle.Solid]: u("line.dash.solid"),
366
+ [s.DashStyle.SysDot]: u("line.dash.sysDot"),
367
+ [s.DashStyle.SysDash]: u("line.dash.sysDash"),
368
+ [s.DashStyle.Dash]: u("line.dash.dash"),
369
+ [s.DashStyle.DashDot]: u("line.dash.dashDot"),
370
+ [s.DashStyle.LongDash]: u("line.dash.lgDash"),
371
+ [s.DashStyle.LongDashDot]: u("line.dash.lgDashDot"),
372
+ [s.DashStyle.LongDashDotDot]: u("line.dash.lgDashDotDot"),
373
+ [W]: u("line.dashCustom")
374
+ },
375
+ cap: {
376
+ [s.LineCap.Square]: u("line.capSquare"),
377
+ [s.LineCap.Round]: u("line.capRound"),
378
+ [s.LineCap.Butt]: u("line.capFlat")
379
+ },
380
+ join: {
381
+ [s.LineJoin.Round]: u("line.joinRound"),
382
+ [s.LineJoin.Bevel]: u("line.joinBevel"),
383
+ [s.LineJoin.Miter]: u("line.joinMiter")
384
+ },
385
+ end: {
386
+ [s.LineEndType.None]: u("line.end.none"),
387
+ [s.LineEndType.Triangle]: u("line.end.triangle"),
388
+ [s.LineEndType.Arrow]: u("line.end.arrow"),
389
+ [s.LineEndType.Stealth]: u("line.end.stealth"),
390
+ [s.LineEndType.Diamond]: u("line.end.diamond"),
391
+ [s.LineEndType.Oval]: u("line.end.oval")
392
+ },
393
+ size: {
394
+ [s.LineEndSize.Small]: u("line.sizeSmall"),
395
+ [s.LineEndSize.Medium]: u("line.sizeMedium"),
396
+ [s.LineEndSize.Large]: u("line.sizeLarge")
397
+ }
398
+ }), [u]), de = P.map((e) => ({
399
+ value: e,
400
+ label: se.dash[e],
401
+ icon: b(M, {
402
+ dash: e,
403
+ color: Q,
404
+ darkMode: A
405
+ })
406
+ }));
407
+ X === W && de.push({
408
+ value: W,
409
+ label: se.dash[W],
410
+ icon: b(M, {
411
+ dash: V,
412
+ color: Q,
413
+ darkMode: A
414
+ })
415
+ });
416
+ const re = (e, l, n, i, o, t) => x(f, {
417
+ size: "small",
418
+ fullWidth: void 0 === t,
419
+ sx: void 0 === t ? void 0 : { width: t },
420
+ children: [b(v, {
421
+ shrink: !0,
422
+ children: e
423
+ }), b(T, {
424
+ label: e,
425
+ notched: !0,
426
+ disabled: G,
427
+ value: l,
428
+ onChange: (e) => o(e.target.value),
429
+ children: n.map((e) => b(E, {
430
+ value: e,
431
+ children: i[e]
432
+ }, e))
433
+ })]
434
+ });
435
+ return x(k, {
436
+ className: z("sxl-format-line-panel", c),
437
+ sx: o,
438
+ ...D,
439
+ children: [b(n, { children: re(u("line.type"), H, [B, J], {
440
+ [B]: u("line.typeNone"),
441
+ [J]: u("line.typeSolid")
442
+ }, ee) }), U ? x(g, { children: [
443
+ b(n, {
444
+ label: u("line.color"),
445
+ children: x(t, { children: [b(e, {
446
+ icon: "stroke.colored",
447
+ disabled: G,
448
+ darkMode: A,
449
+ compareRGB: !0,
450
+ selectedColor: K,
451
+ onSelectColor: le,
452
+ propsPanel: {
453
+ disableAlpha: !0,
454
+ autoColor: L,
455
+ schemeLookup: w,
456
+ recentColors: _
457
+ }
458
+ }), b(i, {
459
+ label: u("line.width"),
460
+ value: m.getWidth(),
461
+ min: 0,
462
+ max: 1584,
463
+ step: .25,
464
+ decimals: !0,
465
+ width: 96,
466
+ disabled: G,
467
+ onChange: ne
468
+ })] })
469
+ }),
470
+ b(n, {
471
+ label: u("line.dashArrows"),
472
+ children: x(t, { children: [
473
+ b(N, {
474
+ end: Y,
475
+ atStart: !0,
476
+ color: Q,
477
+ darkMode: A,
478
+ types: q,
479
+ sizes: O,
480
+ typeLabels: se.end,
481
+ sizeLabels: se.size,
482
+ widthLabel: u("line.sizeWidth"),
483
+ lengthLabel: u("line.sizeLength"),
484
+ tooltip: u("line.head"),
485
+ disabled: G,
486
+ onSelect: (e) => ae("head", e)
487
+ }),
488
+ b(j, {
489
+ value: X,
490
+ options: de,
491
+ onSelect: ie,
492
+ tooltip: u("line.dash"),
493
+ disabled: G
494
+ }),
495
+ b(N, {
496
+ end: Z,
497
+ color: Q,
498
+ darkMode: A,
499
+ types: q,
500
+ sizes: O,
501
+ typeLabels: se.end,
502
+ sizeLabels: se.size,
503
+ widthLabel: u("line.sizeWidth"),
504
+ lengthLabel: u("line.sizeLength"),
505
+ tooltip: u("line.tail"),
506
+ disabled: G,
507
+ onSelect: (e) => ae("tail", e)
508
+ })
509
+ ] })
510
+ }),
511
+ b(n, {
512
+ label: u("line.capJoin"),
513
+ children: x(t, { children: [re(u("line.cap"), m.getLineCap(), F, se.cap, oe, 128), re(u("line.join"), m.getLineJoin(), I, se.join, te, 128)] })
514
+ })
515
+ ] }) : null]
516
+ });
517
+ });
518
+ G.displayName = "LinePanel";
519
+ export { G as t };
@@ -0,0 +1,94 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.2
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: MIT
6
+ */
7
+ import { FormulaField as e } from "./index.mjs";
8
+ import { useReferenceMode as t } from "@sheetxl/react";
9
+ import { useCallbackRef as o, useTranslator as a } from "@sheetxl/utils-react";
10
+ import { memo as n, useCallback as l, useMemo as i, useState as r } from "react";
11
+ import { OptionsDialog as s } from "@sheetxl/utils-mui";
12
+ import { jsx as p, jsxs as c } from "react/jsx-runtime";
13
+ import { Box as u } from "@mui/material";
14
+ var m = ["Ok", "Cancel"], d = n((e) => p(f, {
15
+ ...e,
16
+ variant: "new"
17
+ })), f = n((n) => {
18
+ const { variant: d, onInput: f, onOption: g, onValidateOption: x, onDone: h, options: v = m, defaultOption: w = v?.[0], cancelOption: k = "Cancel", sx: N, initialValue: O, context: y, ...C } = n, I = a(), b = "edit" === d, [F, M] = r(() => O?.data ?? null), [D, V] = r(() => O?.location ?? null), j = i(() => {
19
+ const e = (O?.location ?? ("string" == typeof O?.data ? null : O?.data))?.getWorksheet?.()?.getName();
20
+ return e ? { scope: e } : void 0;
21
+ }, [O]), A = "point" === t().getMode()?.mode, R = o((e) => {
22
+ let t = null;
23
+ F && D && (t = b ? {
24
+ data: F,
25
+ location: D
26
+ } : {
27
+ type: O?.type ?? "line",
28
+ data: F,
29
+ location: D
30
+ });
31
+ const o = e === k || !e;
32
+ f?.(!o && t ? t : void 0), g?.(e ?? k, o, e === w), h?.({
33
+ option: e,
34
+ value: t
35
+ });
36
+ }, [
37
+ h,
38
+ g,
39
+ f,
40
+ w,
41
+ k,
42
+ F,
43
+ D,
44
+ O,
45
+ b
46
+ ]), S = l(async (e, t) => !!F && !!D, [F, D]);
47
+ return p(s, {
48
+ title: I(b ? "sparklineEdit.title" : "sparklineNew.title"),
49
+ options: v,
50
+ onDone: R,
51
+ onValidateOption: S,
52
+ defaultOption: w,
53
+ cancelOption: k,
54
+ autoFocusSel: ".autoFocus",
55
+ suspendModal: A,
56
+ sx: {
57
+ width: "360px",
58
+ ...N
59
+ },
60
+ ...C,
61
+ children: c(u, {
62
+ sx: {
63
+ paddingTop: (e) => e.spacing(1),
64
+ paddingBottom: (e) => e.spacing(0),
65
+ rowGap: (e) => e.spacing(1),
66
+ display: "flex",
67
+ flexDirection: "column"
68
+ },
69
+ children: [p(e, {
70
+ grammar: "reference",
71
+ classNameInput: b ? "autoFocus" : void 0,
72
+ formName: "data",
73
+ label: I("sparklineNew.data"),
74
+ value: F,
75
+ allowMulti: b,
76
+ home: j,
77
+ pickAs: "absolute",
78
+ onChangeInput: (e) => M(e?.getReferences() ?? null)
79
+ }), p(e, {
80
+ grammar: "reference",
81
+ classNameInput: b ? void 0 : "autoFocus",
82
+ formName: "location",
83
+ label: I("sparklineNew.location"),
84
+ value: D,
85
+ allowMulti: b,
86
+ allowCrossSheet: !1,
87
+ home: j,
88
+ pickAs: "absolute",
89
+ onChangeInput: (e) => V(e?.getReferences() ?? null)
90
+ })]
91
+ })
92
+ });
93
+ });
94
+ export { d as SparklineNewDialog, d as default, f as SparklineRangesDialog };