@sheetxl/studio-mui 0.8.0-beta.1 → 0.8.0-beta.11

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 (291) hide show
  1. package/browser/esm/0BWO0bLZ8Vm_dKd2.mjs +582 -0
  2. package/browser/esm/BAbq4-I5f5oUiNaF.mjs +141 -0
  3. package/browser/esm/BED6h6YAwCf1HEQJ.mjs +161 -0
  4. package/browser/esm/{DMLXV4EKl1NCp_jk.mjs → BXhNFzyEGokTF-BL.mjs} +2 -2
  5. package/browser/esm/BYE9gCDWKyx6mnVs.mjs +381 -0
  6. package/browser/esm/BjvD_4t2KGsZP5V8.mjs +71 -0
  7. package/browser/esm/{zWTZ8BvT4hjgC2ua.mjs → BknfGJouygmnpFIU.mjs} +13 -12
  8. package/browser/esm/{DNDrQKMTzKzNMjl-.mjs → BlE_8o8tO2AgAlaj.mjs} +19 -17
  9. package/browser/esm/BokqKEpU6TFgfRs6.mjs +252 -0
  10. package/browser/esm/{BoLxSRdEWt-Yg2RI.mjs → Brsh5yscJ_4uKFXp.mjs} +130 -103
  11. package/browser/esm/Bujtz_Guj88d03vI.mjs +831 -0
  12. package/browser/esm/Buqcl7J75MJrhpVE.mjs +1379 -0
  13. package/browser/esm/BvhYPwX3GrRaO9CM.mjs +319 -0
  14. package/browser/esm/C0wlMAIn9iREPK6w.mjs +87 -0
  15. package/browser/esm/C8JU4KsMasmLvojI.mjs +103 -0
  16. package/browser/esm/C9pIZVACtl9unFOp.mjs +77 -0
  17. package/browser/esm/CBD4RiRKbbZtSXV-.mjs +318 -0
  18. package/browser/esm/CEtXsBzEjEKk9GOj.mjs +117 -0
  19. package/browser/esm/{BZBJG2tDdD3-VujP.mjs → COlZu93LRwuBvjE-.mjs} +195 -174
  20. package/browser/esm/{Cj2pgCNqBCGl4rTX.mjs → CTjqDD-swFMZzI-Y.mjs} +587 -556
  21. package/browser/esm/CWkOgdL7mOKiTR62.mjs +975 -0
  22. package/browser/esm/ChSVxkPTIjgcC8PL.mjs +412 -0
  23. package/browser/esm/{Cd6n1XUgF0VItpkH.mjs → ClBvNPeNCAhuVWrG.mjs} +7 -5
  24. package/browser/esm/CyLn6zOOp_biA3xU.mjs +335 -0
  25. package/browser/esm/CynTY0oNtyJnoaBq.mjs +14 -0
  26. package/browser/esm/D3rRUK4dIM5gUSmj.mjs +256 -0
  27. package/browser/esm/D9ISy7VkaRRFJl46.mjs +515 -0
  28. package/browser/esm/DDc6rDuU9JAo1DH_.mjs +225 -0
  29. package/browser/esm/DDczwkXhz_MHub4z.mjs +197 -0
  30. package/browser/esm/{3ydDykDMtDYbfVVn.mjs → DEv4pIEgYr5C7etm.mjs} +178 -129
  31. package/browser/esm/DG21x7RKDpge6zAE.mjs +31 -0
  32. package/browser/esm/DJOOed_OtB-XT7f3.mjs +437 -0
  33. package/browser/esm/{Bz5LiUe3SZ8g42Ia.mjs → DKtJxrpN0axtuQ0l.mjs} +1 -1
  34. package/browser/esm/DRSCS6aLiYmPjUz1.mjs +1543 -0
  35. package/browser/esm/{ChwS_ougBsogOEsP.mjs → DTpRkgsTm_zYnWfW.mjs} +46 -47
  36. package/browser/esm/DV6i9RQZfJiKtEaJ.mjs +2552 -0
  37. package/browser/esm/DdcZrjMLWVukWcU5.mjs +7473 -0
  38. package/browser/esm/Di3BUxA0SqFWWgeg.mjs +94 -0
  39. package/browser/esm/DnGaP5F7mLwCGUYG.mjs +408 -0
  40. package/browser/esm/DpD4fg2WcyiKX_2K.mjs +414 -0
  41. package/browser/esm/{BUGepznywvV0tUjW.mjs → Ds3XRkne7HxcXD8J.mjs} +2 -2
  42. package/browser/esm/DsoNMWDwHZP8UXQd.mjs +293 -0
  43. package/browser/esm/G0Inqm6Eqw47dMpa.mjs +212 -0
  44. package/browser/esm/HViD4Wfoi0mmqk9w.mjs +13 -0
  45. package/browser/esm/LZoYSQAYV2wksnDv.mjs +386 -0
  46. package/browser/esm/{rU8xNPVQtDSnujM-.mjs → QgaAIDUMmBQBsXP9.mjs} +3 -3
  47. package/browser/esm/YThnrg3PadGs7B4j.mjs +627 -0
  48. package/browser/esm/index.mjs +1208 -67
  49. package/browser/esm/ttjcNHcFn8O6hfnd.mjs +1288 -0
  50. package/browser/esm/w_JrR69vEpvoyeMy.mjs +68 -0
  51. package/browser/esm/{CVfuCNRpODUw04IH.mjs → xFqkfN8QMCxvsetB.mjs} +1 -1
  52. package/browser/esm/zqilJefihVd7At2T.mjs +517 -0
  53. package/licenses/dependencies.txt +96 -349
  54. package/node/esm/1bf4gn-2vld4BZ9u.mjs +294 -0
  55. package/node/esm/{BhqI3pQFkV8K_612.mjs → 3WghtBXAvCDwcVrq.mjs} +1 -1
  56. package/node/esm/4HmLH0bPVJCZLgik.mjs +116 -0
  57. package/node/esm/{DM7K7-284z-PczVz.mjs → B0bdb_6p7fQI_ivo.mjs} +28 -28
  58. package/node/esm/BIMkjQUwG4Ih-6Sh.mjs +142 -0
  59. package/node/esm/BNg4QQY0WAPLE0q7.mjs +141 -0
  60. package/node/esm/BPzcW4BejRqso338.mjs +72 -0
  61. package/node/esm/BR45ogAR-hY2bE60.mjs +318 -0
  62. package/node/esm/BlN7G0DVC24zauig.mjs +197 -0
  63. package/node/esm/Bph-sR3l6AYWeuxK.mjs +256 -0
  64. package/node/esm/CPq-MIdEnc-53JpF.mjs +319 -0
  65. package/node/esm/CSAnTp5rwId0DUb8.mjs +380 -0
  66. package/node/esm/CWcv7UVXF8IUB0PC.mjs +1379 -0
  67. package/node/esm/{BA7VzUQ2sKRLTZ5c.mjs → CYIoK22I6Yvv12_x.mjs} +20 -20
  68. package/node/esm/CZyA9uD4SkTvqp_G.mjs +1283 -0
  69. package/node/esm/{CHi3AuWEwEPOg9IZ.mjs → CjC6s3RUJQNCF7mP.mjs} +1 -1
  70. package/node/esm/{DXZrzWee8K5FPOW1.mjs → CuMePia6i_8yfJ6S.mjs} +9 -9
  71. package/node/esm/CvRbu8JPxFarsSR-.mjs +412 -0
  72. package/node/esm/CyafafEgfmjLqE5O.mjs +521 -0
  73. package/node/esm/D-xqQ5qOSd6WrzwJ.mjs +94 -0
  74. package/node/esm/DLqBHdFp6wvm6EGs.mjs +212 -0
  75. package/node/esm/{BwZcoHDBmLPIVOT5.mjs → DMXLxp3T0E0SRTQc.mjs} +69 -70
  76. package/node/esm/{CUMKTjYv6VTkcWYi.mjs → DWqvf4H5F2wMnZ0L.mjs} +32 -30
  77. package/node/esm/DatM6eEYPpAtIMy-.mjs +405 -0
  78. package/node/esm/Db3dbaYLKUO66T9s.mjs +1689 -0
  79. package/node/esm/DdEzhVqYTrGODXrz.mjs +68 -0
  80. package/node/esm/DeZJlLk8WJ3BLtLs.mjs +975 -0
  81. package/node/esm/DfCuL8AUxMFoEG2s.mjs +519 -0
  82. package/node/esm/Do-zCKziWhoG5eAv.mjs +77 -0
  83. package/node/esm/DpJ2gmZJioCyq8La.mjs +632 -0
  84. package/node/esm/{Qpuqm6xBr_da38Ht.mjs → XEDcegsv5AGKBfu2.mjs} +165 -137
  85. package/node/esm/index.mjs +10124 -6751
  86. package/node/esm/yCUxQuqVuC4DHKPx.mjs +385 -0
  87. package/node/esm/zITjZ7R4raDqhP-n.mjs +515 -0
  88. package/package.json +15 -18
  89. package/resources/locales/de/groups.cmd.json +29 -16
  90. package/resources/locales/de/studio.cmd.json +18 -1
  91. package/resources/locales/de/ui.msg.json +447 -40
  92. package/resources/locales/en/groups.cmd.json +39 -17
  93. package/resources/locales/en/studio.cmd.json +18 -1
  94. package/resources/locales/en/ui.msg.json +403 -40
  95. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +21 -5
  96. package/types/src/anchorItems/AnchorItemsPanel.d.ts +14 -0
  97. package/types/src/anchorItems/AnchoredRangeField.d.ts +40 -0
  98. package/types/src/anchorItems/index.d.ts +1 -0
  99. package/types/src/anomalies/AnomaliesPlugin.d.ts +5 -0
  100. package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
  101. package/types/src/anomalies/index.d.ts +3 -0
  102. package/types/src/border/BorderPopupButton.d.ts +6 -6
  103. package/types/src/border/BorderStylePopupButton.d.ts +3 -3
  104. package/types/src/border/BorderTemplateIcon.d.ts +29 -0
  105. package/types/src/border/index.d.ts +1 -0
  106. package/types/src/chart/ChartFormatPanel.d.ts +20 -0
  107. package/types/src/chart/ChartPlugin.d.ts +6 -0
  108. package/types/src/chart/index.d.ts +3 -0
  109. package/types/src/color/ColorPanel.d.ts +8 -2
  110. package/types/src/color/ColorPopupButton.d.ts +2 -1
  111. package/types/src/command/NumberFormatQuickButtons.d.ts +32 -0
  112. package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
  113. package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
  114. package/types/src/comments/CommentCard.d.ts +41 -0
  115. package/types/src/comments/CommentsPlugin.d.ts +6 -0
  116. package/types/src/comments/CommentsTaskPane.d.ts +23 -0
  117. package/types/src/comments/index.d.ts +4 -0
  118. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
  119. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +2 -2
  120. package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
  121. package/types/src/conditions/BetweenOption.d.ts +6 -1
  122. package/types/src/conditions/CombinatorOption.d.ts +7 -0
  123. package/types/src/conditions/ConditionEditor.d.ts +61 -4
  124. package/types/src/conditions/ConditionUtils.d.ts +65 -6
  125. package/types/src/conditions/ExpressionOption.d.ts +12 -6
  126. package/types/src/conditions/MembershipOption.d.ts +67 -0
  127. package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
  128. package/types/src/conditions/ScalarOption.d.ts +25 -6
  129. package/types/src/conditions/SelectorSelect.d.ts +16 -7
  130. package/types/src/conditions/index.d.ts +1 -1
  131. package/types/src/conditions/useFormulaOption.d.ts +54 -0
  132. package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +7 -1
  133. package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -2
  134. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +13 -2
  135. package/types/src/dataValidation/DataValidationIcon.d.ts +22 -0
  136. package/types/src/dataValidation/DataValidationTitle.d.ts +13 -0
  137. package/types/src/dialog/FillSeriesDialog.d.ts +16 -0
  138. package/types/src/dialog/OutlineSettingsDialog.d.ts +12 -0
  139. package/types/src/dialog/TableNewDialog.d.ts +1 -4
  140. package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
  141. package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
  142. package/types/src/dialog/index.d.ts +0 -2
  143. package/types/src/externalLink/ExternalLinkCardBody.d.ts +9 -0
  144. package/types/src/externalLink/ExternalLinkChip.d.ts +18 -0
  145. package/types/src/externalLink/ExternalLinkLocation.d.ts +18 -0
  146. package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +18 -0
  147. package/types/src/externalLink/ExternalLinksPanel.d.ts +11 -0
  148. package/types/src/externalLink/ExternalLinksPlugin.d.ts +5 -0
  149. package/types/src/externalLink/ExternalLinksTaskPane.d.ts +19 -0
  150. package/types/src/externalLink/index.d.ts +8 -0
  151. package/types/src/fill/GradientEditor.d.ts +41 -0
  152. package/types/src/fill/GradientStopsBar.d.ts +43 -0
  153. package/types/src/fill/PatternPopupButton.d.ts +26 -0
  154. package/types/src/fill/PatternSwatch.d.ts +53 -0
  155. package/types/src/fill/index.d.ts +5 -0
  156. package/types/src/filter/ColumnMenu.d.ts +31 -1
  157. package/types/src/filter/index.d.ts +0 -1
  158. package/types/src/form/FormulaField.d.ts +35 -6
  159. package/types/src/form/InputField.d.ts +35 -5
  160. package/types/src/format/AlignmentPanel.d.ts +13 -0
  161. package/types/src/format/BorderPanel.d.ts +22 -0
  162. package/types/src/format/BorderPreview.d.ts +101 -0
  163. package/types/src/format/FillPanel.d.ts +65 -0
  164. package/types/src/format/FontPanel.d.ts +12 -0
  165. package/types/src/format/FormatCellPreview.d.ts +35 -0
  166. package/types/src/format/FormatPanelParts.d.ts +85 -0
  167. package/types/src/format/FormatPlugin.d.ts +11 -0
  168. package/types/src/format/FormatTaskPane.d.ts +39 -0
  169. package/types/src/format/LinePanel.d.ts +53 -0
  170. package/types/src/format/LinePreviews.d.ts +71 -0
  171. package/types/src/format/NumberFormatOption.d.ts +43 -0
  172. package/types/src/{numberFormat → format}/NumberFormatPanel.d.ts +20 -0
  173. package/types/src/format/index.d.ts +14 -0
  174. package/types/src/format/useFormatSelection.d.ts +93 -0
  175. package/types/src/formulaBar/IFormulaBar.d.ts +11 -0
  176. package/types/src/formulaBar/MobileFormulaBar.d.ts +33 -0
  177. package/types/src/formulaBar/MobileInputToolbar.d.ts +43 -0
  178. package/types/src/formulaBar/index.d.ts +3 -0
  179. package/types/src/formulaBar/useFormulaBarSession.d.ts +68 -0
  180. package/types/src/index.d.ts +19 -4
  181. package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
  182. package/types/src/itemsPanel/EditorPanel.d.ts +4 -1
  183. package/types/src/itemsPanel/ItemCard.d.ts +60 -8
  184. package/types/src/itemsPanel/ItemsDescriptor.d.ts +68 -19
  185. package/types/src/itemsPanel/ItemsPanel.d.ts +9 -0
  186. package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
  187. package/types/src/itemsPanel/index.d.ts +2 -0
  188. package/types/src/named/NamedDetailsPanel.d.ts +9 -2
  189. package/types/src/named/NamedDetailsTaskPane.d.ts +3 -2
  190. package/types/src/named/NamedEditorPanel.d.ts +1 -1
  191. package/types/src/named/NamedExpressionField.d.ts +32 -0
  192. package/types/src/named/NamedKindChip.d.ts +38 -0
  193. package/types/src/picture/PicturePlugin.d.ts +6 -0
  194. package/types/src/picture/index.d.ts +2 -0
  195. package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +6 -0
  196. package/types/src/protectedRange/ProtectedRangeDraft.d.ts +22 -0
  197. package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +0 -14
  198. package/types/src/protectedRange/index.d.ts +2 -1
  199. package/types/src/protection/ManageProtectionTaskPane.d.ts +29 -0
  200. package/types/src/protection/PasswordDialog.d.ts +32 -0
  201. package/types/src/protection/PasswordField.d.ts +35 -0
  202. package/types/src/protection/ProtectedCellsPanel.d.ts +20 -0
  203. package/types/src/protection/ProtectionPlugin.d.ts +11 -0
  204. package/types/src/protection/WorkbookProtectionPanel.d.ts +34 -15
  205. package/types/src/protection/WorkbookProtectionTab.d.ts +22 -0
  206. package/types/src/protection/WorksheetProtectionPanel.d.ts +35 -0
  207. package/types/src/protection/index.d.ts +7 -1
  208. package/types/src/shape/InsertShapeCommandButton.d.ts +20 -0
  209. package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
  210. package/types/src/shape/ShapePlugin.d.ts +6 -0
  211. package/types/src/shape/index.d.ts +3 -0
  212. package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +18 -0
  213. package/types/src/slicer/SlicerPlugin.d.ts +6 -0
  214. package/types/src/slicer/index.d.ts +3 -0
  215. package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
  216. package/types/src/studio/CommandsWrapper.d.ts +5 -0
  217. package/types/src/studio/EagerStudio.d.ts +14 -1
  218. package/types/src/studio/StudioCommandProvider.d.ts +10 -0
  219. package/types/src/studio/StudioCommands.d.ts +40 -4
  220. package/types/src/studio/StudioProps.d.ts +64 -2
  221. package/types/src/studio/StudioSplitPane.d.ts +1 -1
  222. package/types/src/studio/formulaBarPlacement.d.ts +35 -0
  223. package/types/src/studio/splitStudioProps.d.ts +7 -0
  224. package/types/src/studio/useStudioApp.d.ts +31 -18
  225. package/types/src/template/TemplateCommands.d.ts +29 -0
  226. package/types/src/template/TemplateDialog.d.ts +19 -0
  227. package/types/src/template/TemplatePanel.d.ts +50 -0
  228. package/types/src/template/TemplateSearchField.d.ts +29 -0
  229. package/types/src/template/WelcomeDialog.d.ts +29 -0
  230. package/types/src/template/categoryColor.d.ts +8 -0
  231. package/types/src/template/index.d.ts +3 -0
  232. package/types/src/template/useTemplateCatalog.d.ts +71 -0
  233. package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
  234. package/types/src/workbook/DefaultRenderers.d.ts +16 -2
  235. package/types/src/workbook/FillMenu.d.ts +21 -0
  236. package/types/src/workbook/OutlineButtons.d.ts +11 -0
  237. package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
  238. package/types/src/workbook/WorkbookElement.d.ts +1 -1
  239. package/types/src/workbook/index.d.ts +1 -0
  240. package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
  241. package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
  242. package/browser/cjs/B_D3JKseVvpRyX-E.cjs +0 -1
  243. package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +0 -2
  244. package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +0 -2
  245. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
  246. package/browser/cjs/Bte6P3MhSjajJmmY.cjs +0 -7
  247. package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
  248. package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +0 -1
  249. package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
  250. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
  251. package/browser/cjs/CYxc8vnRi8dNpDPk.cjs +0 -1
  252. package/browser/cjs/CZm1jVZaHQ246prW.cjs +0 -1
  253. package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
  254. package/browser/cjs/Cm1APq2MraYNNhyI.cjs +0 -1
  255. package/browser/cjs/DO8V31Z1ewgMA1di.cjs +0 -5
  256. package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +0 -1
  257. package/browser/cjs/IASAYG6qgv7lJY7y.cjs +0 -1
  258. package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
  259. package/browser/cjs/UnMhi28mbvLiOXQe.cjs +0 -1
  260. package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +0 -1
  261. package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
  262. package/browser/cjs/index.cjs +0 -2
  263. package/browser/cjs/w2GjebPlOFv3pCbm.cjs +0 -1
  264. package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +0 -11
  265. package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +0 -1
  266. package/browser/esm/BuY3uV47Bwbqpasq.mjs +0 -219
  267. package/browser/esm/CAs1MWvJTcRfJy26.mjs +0 -217
  268. package/browser/esm/CBU3LgLYmqtQjJbu.mjs +0 -1150
  269. package/browser/esm/CDU0rqpLNVtMLI-f.mjs +0 -52
  270. package/browser/esm/CVBub6pgTsJzCc5m.mjs +0 -5429
  271. package/browser/esm/C_XvSsQ9BVdHffCO.mjs +0 -47
  272. package/browser/esm/FT29q8yNwsEpVZjt.mjs +0 -9257
  273. package/browser/esm/Hb1rlHT4tE5hLcjM.mjs +0 -82
  274. package/browser/esm/UJOXCQv6KrG1gY3l.mjs +0 -105
  275. package/browser/esm/s46El7mT6oKLSnYB.mjs +0 -411
  276. package/node/esm/9FY82fj1R1c-AczW.mjs +0 -47
  277. package/node/esm/C-boHCnJditFzng3.mjs +0 -106
  278. package/node/esm/DxXM8qHi0Oz4Zovl.mjs +0 -4575
  279. package/node/esm/sQt2wWGTRLzqeJdG.mjs +0 -82
  280. package/node/esm/yCHAZKxJR7qY_ySy.mjs +0 -470
  281. package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +0 -32
  282. package/types/src/conditions/DateTimeOption.d.ts +0 -43
  283. package/types/src/conditions/InSetOption.d.ts +0 -37
  284. package/types/src/dialog/CommentsDialog.d.ts +0 -11
  285. package/types/src/dialog/NumberFormatDialog.d.ts +0 -12
  286. package/types/src/filter/FilterList.d.ts +0 -28
  287. package/types/src/numberFormat/NumberFormatTaskPane.d.ts +0 -12
  288. package/types/src/numberFormat/index.d.ts +0 -8
  289. package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +0 -3
  290. package/types/src/protectedRange/ProtectedRangePlugin.d.ts +0 -2
  291. package/types/src/protection/WorkbookProtectionDialog.d.ts +0 -23
@@ -0,0 +1,515 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
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 { r as e } from "./Bujtz_Guj88d03vI.mjs";
8
+ import { a as t, c as n, i as r, o as i, t as a } from "./BvhYPwX3GrRaO9CM.mjs";
9
+ import { t as o } from "./zqilJefihVd7At2T.mjs";
10
+ import { IFill as s } from "@sheetxl/sdk";
11
+ import { useGridColorScheme as c } from "@sheetxl/react";
12
+ import { useCallbackRef as l, useTranslator as u } from "@sheetxl/utils-react";
13
+ import { memo as d, useEffect as f, useReducer as p, useState as m } from "react";
14
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
15
+ import { Box as v, Checkbox as y, FormControl as b, FormControlLabel as x, InputLabel as S, MenuItem as C, Select as w, TextField as T, Typography as E } from "@mui/material";
16
+ var D = (e) => g(E, {
17
+ variant: "subtitle2",
18
+ component: "div",
19
+ children: e.children
20
+ }), O = (e, t) => {
21
+ let n = t.getChart(), r = t.getPath(), i = t.getParent(), a = () => i ? O(e, i) : "", o = Number(r.split("/").pop());
22
+ switch (t.getElementType()) {
23
+ case "chartArea": return e("chart.pane.element.chartArea");
24
+ case "title": return e("chart.pane.element.title");
25
+ case "legend": return e("chart.pane.element.legend");
26
+ case "legendEntry": return e("chart.pane.element.legendEntry", { index: o + 1 });
27
+ case "plotArea": return e("chart.pane.element.plotArea");
28
+ case "dataTable": return e("chart.pane.element.dataTable");
29
+ case "axis": return ((e, t, n) => {
30
+ let [, r, i] = n.split("/"), a = ((e) => /^(bar|3DBar)/.test(e.getChartType()))(t), o = i === "category" ? !a : i !== "value" || a, s = i === "series" ? e("chart.pane.axisKind.series") : ((e) => /^(xyscatter|bubble)/.test(e.getChartType()))(t) || i === "value" ? e("chart.pane.axisKind.value") : e("chart.pane.axisKind.category"), c = e("chart.pane.axis", {
31
+ side: e(o ? "chart.pane.axisSide.horizontal" : "chart.pane.axisSide.vertical"),
32
+ kind: s
33
+ });
34
+ return r === "secondary" ? e("chart.pane.secondary", { label: c }) : c;
35
+ })(e, n, r);
36
+ case "axisTitle": return e("chart.pane.element.axisTitle", { axis: a() });
37
+ case "gridlines": return r.endsWith("minorGridlines") ? e("chart.pane.element.minorGridlines", { axis: a() }) : e("chart.pane.element.majorGridlines", { axis: a() });
38
+ case "series": return e("chart.pane.element.series", { name: t.getName() ?? "" });
39
+ case "point": return e("chart.pane.element.point", {
40
+ series: a(),
41
+ index: o + 1
42
+ });
43
+ case "marker": return e("chart.pane.element.marker", { owner: a() });
44
+ case "dataLabels": return i?.getElementType() === "series" ? e("chart.pane.element.dataLabels", { series: a() }) : e("chart.pane.element.allDataLabels");
45
+ case "dataLabel": return e("chart.pane.element.dataLabel", { point: a() });
46
+ case "trendline": return e("chart.pane.element.trendline", {
47
+ series: a(),
48
+ index: o + 1
49
+ });
50
+ case "trendlineLabel": return e("chart.pane.element.trendlineLabel", { trendline: a() });
51
+ case "errorBars": return r.endsWith("/x") ? e("chart.pane.element.xErrorBars", { series: a() }) : e("chart.pane.element.yErrorBars", { series: a() });
52
+ case "chartGroup": return e("chart.pane.element.group", { index: o + 1 });
53
+ case "upDownBars": return e("chart.pane.element.upDownBars");
54
+ case "hiLoLines": return e("chart.pane.element.hiLoLines");
55
+ case "dropLines": return e("chart.pane.element.dropLines");
56
+ case "seriesLines": return e("chart.pane.element.seriesLines");
57
+ default: return r;
58
+ }
59
+ }, k = (e, t) => {
60
+ let n = e.getStroke().getFill();
61
+ return n.getType() === s.Type.Solid ? n.getColor() : t.getNormal().getFont().getColor();
62
+ }, A = (e) => {
63
+ let { style: t, sheet: n, disabled: r, label: i } = e, s = u(), l = n.getStyles(), d = c() === "dark", f = {
64
+ fill: t.getFill(),
65
+ styles: l,
66
+ schemeLookup: l.schemeLookup(),
67
+ darkMode: d,
68
+ disabled: r,
69
+ createCell: (e) => n.createCell(e),
70
+ applyFill: (e, n) => {
71
+ t.setFill(e, { description: n });
72
+ }
73
+ }, p = {
74
+ stroke: t.getStroke(),
75
+ stated: t.toJSON()?.stroke ?? null,
76
+ autoColor: k(t, l),
77
+ styles: l,
78
+ schemeLookup: l.schemeLookup(),
79
+ darkMode: d,
80
+ disabled: r,
81
+ applyStroke: (e, n) => {
82
+ t.setStroke(e, { description: n });
83
+ }
84
+ };
85
+ return _(h, { children: [
86
+ i ? g(D, { children: i }) : null,
87
+ g(D, { children: s("shape.pane.fill") }),
88
+ g(a, { selection: f }),
89
+ g(D, { children: s("shape.pane.line") }),
90
+ g(o, { selection: p })
91
+ ] });
92
+ }, j = (e) => _(b, {
93
+ size: "small",
94
+ fullWidth: !0,
95
+ disabled: e.disabled,
96
+ children: [g(S, { children: e.label }), g(w, {
97
+ label: e.label,
98
+ value: e.value,
99
+ onChange: (t) => e.onChange(t.target.value),
100
+ children: e.options.map((t) => g(C, {
101
+ value: t,
102
+ children: e.labels[t] ?? t
103
+ }, t))
104
+ })]
105
+ }), M = (e) => g(x, {
106
+ label: e.label,
107
+ disabled: e.disabled,
108
+ control: g(y, {
109
+ size: "small",
110
+ checked: e.checked,
111
+ onChange: (t) => e.onChange(t.target.checked)
112
+ })
113
+ }), N = (e) => {
114
+ let [t, n] = m(null), r = () => {
115
+ t !== null && t !== e.value && e.onCommit(t), n(null);
116
+ };
117
+ return g(T, {
118
+ size: "small",
119
+ fullWidth: !0,
120
+ label: e.label,
121
+ disabled: e.disabled,
122
+ value: t ?? e.value,
123
+ onChange: (e) => n(e.target.value),
124
+ onBlur: r,
125
+ onKeyDown: (e) => {
126
+ e.key === "Enter" && r();
127
+ }
128
+ });
129
+ }, P = [
130
+ "none",
131
+ "single",
132
+ "double"
133
+ ], F = [
134
+ "none",
135
+ "single",
136
+ "double"
137
+ ], I = (n) => {
138
+ let { font: a, styles: o, disabled: s, run: d } = n, f = u(), p = c() === "dark", m = l(() => o.recentColors(), [o]), v = a.getColor(), y = {
139
+ none: f("chart.pane.text.lineNone"),
140
+ single: f("chart.pane.text.lineSingle"),
141
+ double: f("chart.pane.text.lineDouble")
142
+ };
143
+ return _(h, { children: [
144
+ g(D, { children: f("chart.pane.text") }),
145
+ g(i, { children: g(N, {
146
+ label: f("format.fontFamily"),
147
+ value: a.getFamily(),
148
+ disabled: s,
149
+ onCommit: (e) => d(() => a.setFamily(e || null))
150
+ }) }),
151
+ g(i, { children: _(t, { children: [g(r, {
152
+ label: f("format.fontSize"),
153
+ value: a.getSize(),
154
+ min: 1,
155
+ max: 400,
156
+ step: 1,
157
+ decimals: !0,
158
+ width: 96,
159
+ disabled: s,
160
+ onChange: (e) => d(() => a.setSize(e))
161
+ }), g(e, {
162
+ icon: "text.colored",
163
+ disabled: s,
164
+ darkMode: p,
165
+ compareRGB: !0,
166
+ selectedColor: v,
167
+ onSelectColor: (e, t) => {
168
+ e && t && o.addRecentColor(e), d(() => a.setColor(e ? e.toString() : null));
169
+ },
170
+ propsPanel: {
171
+ disableAlpha: !0,
172
+ schemeLookup: o.schemeLookup(),
173
+ recentColors: m
174
+ }
175
+ })] }) }),
176
+ g(i, { children: _(t, { children: [g(M, {
177
+ label: f("chart.pane.text.bold"),
178
+ checked: a.getBold(),
179
+ disabled: s,
180
+ onChange: (e) => d(() => a.setBold(e))
181
+ }), g(M, {
182
+ label: f("chart.pane.text.italic"),
183
+ checked: a.getItalic(),
184
+ disabled: s,
185
+ onChange: (e) => d(() => a.setItalic(e))
186
+ })] }) }),
187
+ g(i, { children: _(t, { children: [g(j, {
188
+ label: f("chart.pane.text.underline"),
189
+ value: P.includes(a.getUnderline()) ? a.getUnderline() : "single",
190
+ options: P,
191
+ labels: y,
192
+ disabled: s,
193
+ onChange: (e) => d(() => a.setUnderline(e))
194
+ }), g(j, {
195
+ label: f("chart.pane.text.strike"),
196
+ value: a.getStrike(),
197
+ options: F,
198
+ labels: y,
199
+ disabled: s,
200
+ onChange: (e) => d(() => a.setStrike(e))
201
+ })] }) })
202
+ ] });
203
+ }, L = [
204
+ "top",
205
+ "bottom",
206
+ "left",
207
+ "right",
208
+ "corner"
209
+ ], R = [
210
+ "center",
211
+ "insideEnd",
212
+ "insideBase",
213
+ "outsideEnd",
214
+ "left",
215
+ "right",
216
+ "top",
217
+ "bottom",
218
+ "bestFit"
219
+ ], z = [
220
+ "linear",
221
+ "exponential",
222
+ "logarithmic",
223
+ "polynomial",
224
+ "power",
225
+ "movingAverage"
226
+ ], B = [
227
+ "fixedValue",
228
+ "percent",
229
+ "stDev",
230
+ "stError"
231
+ ], V = [
232
+ "both",
233
+ "plusValues",
234
+ "minusValues"
235
+ ], H = (e) => {
236
+ let { element: i, disabled: a, run: o } = e, s = u(), c = (e, t, n) => g(M, {
237
+ label: e,
238
+ checked: t,
239
+ disabled: a,
240
+ onChange: (e) => o(() => n(e))
241
+ }), l = [], d = () => i;
242
+ switch (i.getElementType()) {
243
+ case "chartArea": {
244
+ let e = d();
245
+ l.push(c(s("chart.pane.roundedCorners"), e.getRoundedCorners(), (t) => e.setRoundedCorners(t)));
246
+ break;
247
+ }
248
+ case "title":
249
+ case "axisTitle": {
250
+ let e = d();
251
+ l.push(c(s("chart.pane.visible"), e.getVisible(), (t) => e.setVisible(t))), l.push(g(N, {
252
+ label: s("chart.pane.titleText"),
253
+ value: e.getText() ?? "",
254
+ disabled: a,
255
+ onCommit: (t) => o(() => e.setText(t || null))
256
+ }, "text")), l.push(c(s("chart.pane.overlay"), e.getOverlay(), (t) => e.setOverlay(t)));
257
+ break;
258
+ }
259
+ case "legend": {
260
+ let e = d();
261
+ l.push(c(s("chart.pane.visible"), e.getVisible(), (t) => e.setVisible(t))), l.push(g(j, {
262
+ label: s("chart.pane.position"),
263
+ value: e.getPosition(),
264
+ options: L,
265
+ disabled: a,
266
+ labels: {
267
+ top: s("chart.pane.side.top"),
268
+ bottom: s("chart.pane.side.bottom"),
269
+ left: s("chart.pane.side.left"),
270
+ right: s("chart.pane.side.right"),
271
+ corner: s("chart.pane.side.corner")
272
+ },
273
+ onChange: (t) => o(() => e.setPosition(t))
274
+ }, "position")), l.push(c(s("chart.pane.overlay"), e.getOverlay(), (t) => e.setOverlay(t)));
275
+ break;
276
+ }
277
+ case "axis": {
278
+ let e = d();
279
+ if (l.push(c(s("chart.pane.visible"), e.getVisible(), (t) => e.setVisible(t))), l.push(c(s("chart.pane.reverse"), e.getReversePlotOrder(), (t) => e.setReversePlotOrder(t))), e.getKind() === "value") {
280
+ let n = (e, t, n) => g(r, {
281
+ label: e,
282
+ value: t ?? 0,
283
+ min: -0x38d7ea4c68000,
284
+ max: 0x38d7ea4c68000,
285
+ decimals: !0,
286
+ width: 120,
287
+ disabled: a,
288
+ onChange: (e) => o(() => n(e))
289
+ }, e);
290
+ l.push(_(t, { children: [n(s("chart.pane.minimum"), e.getMinimum(), (t) => e.setMinimum(t)), n(s("chart.pane.maximum"), e.getMaximum(), (t) => e.setMaximum(t))] }, "bounds")), l.push(g(N, {
291
+ label: s("chart.pane.numberFormat"),
292
+ value: e.getNumberFormat() ?? "",
293
+ disabled: a,
294
+ onCommit: (t) => o(() => t ? e.setNumberFormat(t) : e.setLinkNumberFormat(!0))
295
+ }, "format"));
296
+ }
297
+ break;
298
+ }
299
+ case "gridlines":
300
+ case "upDownBars":
301
+ case "hiLoLines":
302
+ case "dropLines":
303
+ case "seriesLines": {
304
+ let e = d();
305
+ l.push(c(s("chart.pane.visible"), e.getVisible(), (t) => e.setVisible(t)));
306
+ break;
307
+ }
308
+ case "series": {
309
+ let e = d();
310
+ l.push(c(s("chart.pane.secondaryAxis"), e.getAxisGroup() === "secondary", (t) => e.setAxisGroup(t ? "secondary" : "primary")));
311
+ let n = e.getGapWidth(), i = e.getOverlap();
312
+ n === null && i === null || l.push(_(t, { children: [i === null ? null : g(r, {
313
+ label: s("chart.pane.overlap"),
314
+ value: i,
315
+ min: -100,
316
+ max: 100,
317
+ width: 96,
318
+ disabled: a,
319
+ onChange: (t) => o(() => e.setOverlap(t))
320
+ }), n === null ? null : g(r, {
321
+ label: s("chart.pane.gapWidth"),
322
+ value: n,
323
+ min: 0,
324
+ max: 500,
325
+ width: 96,
326
+ disabled: a,
327
+ onChange: (t) => o(() => e.setGapWidth(t))
328
+ })] }, "gap")), /^(line|xyscatter)/.test(e.getChartType()) && l.push(c(s("chart.pane.smooth"), e.getSmooth(), (t) => e.setSmooth(t)));
329
+ break;
330
+ }
331
+ case "dataLabels":
332
+ case "dataLabel": {
333
+ let e = d();
334
+ l.push(c(s("chart.pane.visible"), e.getVisible(), (t) => e.setVisible(t))), l.push(c(s("chart.pane.labels.value"), e.getShowValue(), (t) => e.setShowValue(t))), l.push(c(s("chart.pane.labels.category"), e.getShowCategoryName(), (t) => e.setShowCategoryName(t))), l.push(c(s("chart.pane.labels.series"), e.getShowSeriesName(), (t) => e.setShowSeriesName(t))), l.push(c(s("chart.pane.labels.percentage"), e.getShowPercentage(), (t) => e.setShowPercentage(t))), l.push(c(s("chart.pane.labels.legendKey"), e.getShowLegendKey(), (t) => e.setShowLegendKey(t))), l.push(g(j, {
335
+ label: s("chart.pane.position"),
336
+ value: e.getPosition(),
337
+ options: R,
338
+ disabled: a,
339
+ labels: {
340
+ center: s("chart.pane.labels.center"),
341
+ insideEnd: s("chart.pane.labels.insideEnd"),
342
+ insideBase: s("chart.pane.labels.insideBase"),
343
+ outsideEnd: s("chart.pane.labels.outsideEnd"),
344
+ left: s("chart.pane.side.left"),
345
+ right: s("chart.pane.side.right"),
346
+ top: s("chart.pane.side.top"),
347
+ bottom: s("chart.pane.side.bottom"),
348
+ bestFit: s("chart.pane.labels.bestFit")
349
+ },
350
+ onChange: (t) => o(() => e.setPosition(t))
351
+ }, "position"));
352
+ break;
353
+ }
354
+ case "trendline": {
355
+ let e = d();
356
+ l.push(g(j, {
357
+ label: s("chart.pane.trendline.type"),
358
+ value: e.getType(),
359
+ options: z,
360
+ disabled: a,
361
+ labels: {
362
+ linear: s("chart.pane.trendline.linear"),
363
+ exponential: s("chart.pane.trendline.exponential"),
364
+ logarithmic: s("chart.pane.trendline.logarithmic"),
365
+ polynomial: s("chart.pane.trendline.polynomial"),
366
+ power: s("chart.pane.trendline.power"),
367
+ movingAverage: s("chart.pane.trendline.movingAverage")
368
+ },
369
+ onChange: (t) => o(() => e.setType(t))
370
+ }, "type")), l.push(c(s("chart.pane.trendline.equation"), e.getShowEquation(), (t) => e.setShowEquation(t))), l.push(c(s("chart.pane.trendline.rSquared"), e.getShowRSquared(), (t) => e.setShowRSquared(t))), l.push(_(t, { children: [g(r, {
371
+ label: s("chart.pane.trendline.forward"),
372
+ value: e.getForwardPeriod(),
373
+ min: 0,
374
+ max: 1e6,
375
+ decimals: !0,
376
+ width: 96,
377
+ disabled: a,
378
+ onChange: (t) => o(() => e.setForwardPeriod(t))
379
+ }), g(r, {
380
+ label: s("chart.pane.trendline.backward"),
381
+ value: e.getBackwardPeriod(),
382
+ min: 0,
383
+ max: 1e6,
384
+ decimals: !0,
385
+ width: 96,
386
+ disabled: a,
387
+ onChange: (t) => o(() => e.setBackwardPeriod(t))
388
+ })] }, "periods"));
389
+ break;
390
+ }
391
+ case "errorBars": {
392
+ let e = d();
393
+ l.push(c(s("chart.pane.visible"), e.getVisible(), (t) => e.setVisible(t))), l.push(g(j, {
394
+ label: s("chart.pane.errorBars.type"),
395
+ value: e.getType() === "custom" ? "fixedValue" : e.getType(),
396
+ options: B,
397
+ disabled: a,
398
+ labels: {
399
+ fixedValue: s("chart.pane.errorBars.fixedValue"),
400
+ percent: s("chart.pane.errorBars.percent"),
401
+ stDev: s("chart.pane.errorBars.stDev"),
402
+ stError: s("chart.pane.errorBars.stError")
403
+ },
404
+ onChange: (t) => o(() => e.setType(t))
405
+ }, "type"));
406
+ let t = e.getAmount();
407
+ t !== null && l.push(g(r, {
408
+ label: s("chart.pane.errorBars.amount"),
409
+ value: t,
410
+ min: 0,
411
+ max: 0x38d7ea4c68000,
412
+ decimals: !0,
413
+ width: 120,
414
+ disabled: a,
415
+ onChange: (t) => o(() => e.setAmount(t))
416
+ }, "amount")), l.push(g(j, {
417
+ label: s("chart.pane.errorBars.direction"),
418
+ value: e.getInclude(),
419
+ options: V,
420
+ disabled: a,
421
+ labels: {
422
+ both: s("chart.pane.errorBars.both"),
423
+ plusValues: s("chart.pane.errorBars.plus"),
424
+ minusValues: s("chart.pane.errorBars.minus")
425
+ },
426
+ onChange: (t) => o(() => e.setInclude(t))
427
+ }, "include")), l.push(c(s("chart.pane.errorBars.cap"), e.getEndStyleCap(), (t) => e.setEndStyleCap(t)));
428
+ break;
429
+ }
430
+ case "dataTable": {
431
+ let e = d();
432
+ l.push(c(s("chart.pane.visible"), e.getVisible(), (t) => e.setVisible(t))), l.push(c(s("chart.pane.labels.legendKey"), e.getShowLegendKey(), (t) => e.setShowLegendKey(t))), l.push(c(s("chart.pane.table.horizontal"), e.getShowHorizontalBorder(), (t) => e.setShowHorizontalBorder(t))), l.push(c(s("chart.pane.table.vertical"), e.getShowVerticalBorder(), (t) => e.setShowVerticalBorder(t))), l.push(c(s("chart.pane.table.outline"), e.getShowOutlineBorder(), (t) => e.setShowOutlineBorder(t)));
433
+ break;
434
+ }
435
+ }
436
+ return l.length === 0 ? null : _(h, { children: [g(D, { children: s("chart.pane.options") }), g(v, {
437
+ sx: {
438
+ ...n,
439
+ gap: 1
440
+ },
441
+ children: l.map((e, t) => g(v, { children: e }, t))
442
+ })] });
443
+ }, U = d((e) => {
444
+ let { movable: t, sheet: r } = e, i = u(), a = t.getContent(), [, o] = p((e) => e + 1, 0);
445
+ f(() => a.addListeners({ onAnyChange: o }), [a]);
446
+ let s = r.getView().getChartElementSelection();
447
+ f(() => s.addListeners({ onChange: o }), [s]);
448
+ let [c, d] = m("chartArea"), [y, x] = m(null), T = (s.getChart() === a ? s.getActive() : null) ?? a.getElement(c) ?? a.getChartArea(), D = a.getElements(), k = D.includes(T) ? D : [...D, T], j = a.isReadOnly(), M = l((e) => {
449
+ try {
450
+ e(), x(null);
451
+ } catch (e) {
452
+ x(e?.message ?? String(e));
453
+ }
454
+ }, []), N = T.getStyle?.(), P = N?.isITextBoxStyle ? N.getFont() : null, F = T.getElementType() === "legendEntry" ? null : N, L = T.getElementType() === "upDownBars" ? T : null;
455
+ return _(v, {
456
+ sx: {
457
+ ...n,
458
+ gap: 2,
459
+ paddingTop: (e) => e.spacing(1)
460
+ },
461
+ children: [
462
+ _(b, {
463
+ size: "small",
464
+ fullWidth: !0,
465
+ children: [g(S, { children: i("chart.pane.element") }), g(w, {
466
+ label: i("chart.pane.element"),
467
+ value: T.getPath(),
468
+ onChange: (e) => ((e) => {
469
+ d(e), x(null);
470
+ let t = a.getElement(e);
471
+ t && t.getElementType() !== "chartArea" ? s.select([t]) : s.clear();
472
+ })(e.target.value),
473
+ children: k.map((e) => g(C, {
474
+ value: e.getPath(),
475
+ children: O(i, e)
476
+ }, e.getPath()))
477
+ })]
478
+ }),
479
+ y ? g(E, {
480
+ variant: "caption",
481
+ color: "error",
482
+ children: y
483
+ }) : null,
484
+ g(H, {
485
+ element: T,
486
+ disabled: j,
487
+ run: M
488
+ }, `options:${T.getPath()}`),
489
+ P ? g(I, {
490
+ font: P,
491
+ styles: r.getStyles(),
492
+ disabled: j,
493
+ run: M
494
+ }, `text:${T.getPath()}`) : null,
495
+ F ? g(A, {
496
+ style: F,
497
+ sheet: r,
498
+ disabled: j
499
+ }, `style:${T.getPath()}`) : null,
500
+ L ? _(h, { children: [g(A, {
501
+ style: L.getUpBarsStyle(),
502
+ sheet: r,
503
+ disabled: j,
504
+ label: i("chart.pane.upBars")
505
+ }, "up"), g(A, {
506
+ style: L.getDownBarsStyle(),
507
+ sheet: r,
508
+ disabled: j,
509
+ label: i("chart.pane.downBars")
510
+ }, "down")] }) : null
511
+ ]
512
+ });
513
+ });
514
+ U.displayName = "ChartFormatPanel";
515
+ export { U as ChartFormatPanel };