@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,437 @@
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 { t as e } from "./ClBvNPeNCAhuVWrG.mjs";
8
+ import { IFill as t, Table as n } from "@sheetxl/sdk";
9
+ import { StaticBorderRenderer as r, useGridColorScheme as i } from "@sheetxl/react";
10
+ import { CommandButtonType as a, useCallbackRef as o, useCommands as s, useTranslator as c } from "@sheetxl/utils-react";
11
+ import { forwardRef as l, memo as u, useCallback as d, useEffect as f, useLayoutEffect as p, useMemo as m, useReducer as h, useRef as g, useState as _ } from "react";
12
+ import { CommandButton as v, CommandPopupButton as y, ContextMenu as b, ExhibitDivider as x, ExhibitIconButton as S, ExhibitMenuHeader as C, ExhibitTooltip as w, defaultCreatePopupPanel as T } from "@sheetxl/utils-mui";
13
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
14
+ import { Box as k } from "@mui/material";
15
+ var A = "_sheetxl-reset_11z3j_1", j = 10, M = u(l((t, a) => {
16
+ let { styles: o, table: s, tableStyle: c = s?.getStyle() ?? o.getTableStyles().getDefault(), sx: l, disabled: u, className: p, forceThinBorder: g, cellHeight: _ = j, isLive: v = !1, ...y } = t, b = i(), x = b === "dark", S = Math.ceil(1.3 * _), [C, w] = h((e) => e + 1, 0);
17
+ f(() => {
18
+ if (v && s) return s.addListeners({ onAnyChange: () => {
19
+ w();
20
+ } });
21
+ }, [s, v]);
22
+ let T = m(() => {
23
+ let e = s?.toJSON() ?? {}, t = {
24
+ width: 5,
25
+ height: 5
26
+ };
27
+ return e && (e.style = {
28
+ ...e.style,
29
+ name: c.getName()
30
+ }), new n({
31
+ size: t,
32
+ json: e,
33
+ styles: o
34
+ });
35
+ }, [
36
+ C,
37
+ s,
38
+ c,
39
+ o
40
+ ]), E = m(() => {
41
+ let e = [];
42
+ for (let t = 0; t < 5; t++) for (let n = 0; n < 5; n++) {
43
+ let r = T.getStyleAt({
44
+ colIndex: n,
45
+ rowIndex: t
46
+ });
47
+ e.push(r);
48
+ }
49
+ return e;
50
+ }, [T]), M = m(() => {
51
+ let e = T.isHiddenButtons() || !T.isShowHeaders(), t = (t, n, r) => {
52
+ let i = !e && t === 0, a = r.getFill().toCSS(x), o = S - +(n < 4), s = _ - +(t < 4), c = r.getFont().getColor().toCSS(x);
53
+ a = {
54
+ ...a,
55
+ position: "absolute",
56
+ display: "flex",
57
+ alignItems: "center",
58
+ justifyContent: i ? "space-evenly" : "center",
59
+ boxSizing: "border-box",
60
+ left: n * (S - 1),
61
+ top: t * (_ - 1),
62
+ width: o,
63
+ height: s
64
+ };
65
+ let l = null;
66
+ return i && (l = D("svg", {
67
+ width: "15",
68
+ height: "15",
69
+ viewBox: "0 0 15 15",
70
+ style: { fill: c },
71
+ children: D("path", { d: "M 7.4530672,10.134098 2.6725085,5.2978998 3.370275,4.5911648 7.4530672,8.7264777 11.530095,4.5911648 l 0.697764,0.706735M 7.4529247,10.134098 2.9086709,5.2978998 3.5719465,4.5911648 7.4529247,8.7264777 11.328423,4.5911648 l 0.663274,0.70673" })
72
+ })), O("td", {
73
+ className: `table-style-fill ${t}-${n}`,
74
+ style: a,
75
+ children: [D("div", {
76
+ className: `table-style-text ${t}-${n}`,
77
+ style: {
78
+ boxSizing: "border-box",
79
+ width: "6px",
80
+ borderTop: `1px solid ${c}`
81
+ }
82
+ }), l]
83
+ }, `${t}-${n}`);
84
+ }, n = [];
85
+ for (let e = 0; e < 5; e++) {
86
+ let r = [];
87
+ for (let n = 0; n < 5; n++) {
88
+ let i = E[5 * e + n];
89
+ r.push(t(e, n, i));
90
+ }
91
+ n.push(D("tr", { children: r }, e));
92
+ }
93
+ return n;
94
+ }, [
95
+ T,
96
+ c,
97
+ x,
98
+ T.isHiddenButtons()
99
+ ]), N = d((e, t) => E[t].getBorders() ?? null, [E]);
100
+ return D(k, {
101
+ ref: a,
102
+ className: "table-format-preview",
103
+ "data-sxl-theme-surface": "grid",
104
+ "data-sxl-theme-mode": b,
105
+ sx: {
106
+ background: "var(--sxl-color-base-100)",
107
+ filter: u ? "grayscale(0.4) opacity(0.8);" : "none",
108
+ "& .styled-element": { position: "absolute" },
109
+ ...l
110
+ },
111
+ ...y,
112
+ children: D(r, {
113
+ getBorderAt: N,
114
+ rowCount: 5,
115
+ columnCount: 5,
116
+ forceThinBorder: g,
117
+ width: 5 * (S - 1) + 1,
118
+ height: 5 * (_ - 1) + 1,
119
+ style: { pointerEvents: "none" },
120
+ children: D("table", {
121
+ className: e(p, "sheetxl-table-preview", A),
122
+ style: {
123
+ borderCollapse: "collapse",
124
+ width: 5 * (S - 1) + 1,
125
+ height: 5 * (_ - 1) + 1
126
+ },
127
+ children: D("tbody", { children: M })
128
+ })
129
+ })
130
+ });
131
+ })), N = (e, t, n, r, i) => {
132
+ e.beginPath(), e.moveTo(t + .5, n + .5), e.lineTo(r + .5, i + .5), e.stroke();
133
+ }, P = /* @__PURE__ */ new WeakMap(), F = u(l((r, a) => {
134
+ let { table: o, tableStyle: s, styles: c, disabled: l, style: u, className: f, canvas: h, ...g } = r, v = i(), y = v === "dark", [b, x] = _(null), [S, C] = _(void 0), w = d((e) => {
135
+ x(e), typeof a == "function" ? a(e) : a && (a.current = e);
136
+ }, [a]);
137
+ p(() => {
138
+ b && C(getComputedStyle(b).getPropertyValue("--sxl-color-base-100").trim() || "#ffffff");
139
+ }, [b, v]);
140
+ let T = m(() => {
141
+ if (S === void 0) return null;
142
+ let e = o.toJSON();
143
+ if (!e) return null;
144
+ e.style = {
145
+ ...e.style,
146
+ name: s.getName()
147
+ };
148
+ let r = S, i = c?.getTheme(), a = `${JSON.stringify(e.style)}|h${e.headerRowCount ?? 0}|t${e.totalsRowCount ?? 0}|${y ? "dark" : "light"}|${r}` + (s.isBuiltIn() ? "" : `|${JSON.stringify(s.toJSON())}`), l = i ? P.get(i) : void 0, u = l?.get(a);
149
+ if (u) return u;
150
+ let d = new n({
151
+ size: {
152
+ width: 5,
153
+ height: 5
154
+ },
155
+ json: e,
156
+ styles: c
157
+ }), f = [];
158
+ for (let e = 0; e < 5; e++) for (let t = 0; t < 5; t++) f.push(d.getStyleAt({
159
+ colIndex: t,
160
+ rowIndex: e
161
+ }));
162
+ let p = h;
163
+ if (h || (p = document.createElement("canvas")), !p) return null;
164
+ p.width !== 61 && (p.width = 61), p.height !== 46 && (p.height = 46);
165
+ let m = p.getContext("2d", {
166
+ alpha: !1,
167
+ willReadFrequently: !0
168
+ });
169
+ if (!m) return null;
170
+ for (let e = 0; e < 5; e++) for (let n = 0; n < 5; n++) {
171
+ let i = f[5 * e + n].getFill(), a = r;
172
+ i.getType() === t.Type.Solid ? a = i.getColor().toRGBA(y).toString() : i.getType() === t.Type.Gradient ? a = i.getStops()[0]?.getColor().toRGBA(y).toString() : i.getType() === t.Type.Pattern && (a = i.getForeground().toRGBA(y).toString()), m.fillStyle = a ?? r;
173
+ let o = n * 12, s = 9 * e;
174
+ m.fillRect(o, s, 13, 10);
175
+ }
176
+ m.lineWidth = 1;
177
+ for (let e = 0; e < 5; e++) for (let t = 0; t < 5; t++) {
178
+ let n = f[5 * e + t], r = t * 12, i = 9 * e, a = n.getBorders();
179
+ if (!a.isEmpty()) {
180
+ let t = a.getLeft();
181
+ t.isNone() || (m.strokeStyle = t.getColor().toRGBA(y).toString(), N(m, r, i, r, i + 9));
182
+ let n = a.getTop();
183
+ n.isNone() || (m.strokeStyle = n.getColor().toRGBA(y).toString(), N(m, r, i, r + 12, 9 * e));
184
+ let o = a.getRight();
185
+ o.isNone() || (m.strokeStyle = o.getColor().toRGBA(y).toString(), N(m, r + 12, i, r + 12, i + 9));
186
+ let s = a.getBottom();
187
+ s.isNone() || (m.strokeStyle = s.getColor().toRGBA(y).toString(), N(m, r, i + 9, r + 12, i + 9));
188
+ }
189
+ m.strokeStyle = n.getFont().getColor().toRGBA(y).toString();
190
+ let o = 2.5;
191
+ N(m, t * 12 + o, 9 * e + 4, t * 12 + o + 7, 9 * e + 4);
192
+ }
193
+ let g = `url(${p.toDataURL()})`;
194
+ return i && (l || (l = /* @__PURE__ */ new Map(), P.set(i, l)), l.set(a, g)), g;
195
+ }, [
196
+ h,
197
+ o,
198
+ s,
199
+ c,
200
+ y,
201
+ S
202
+ ]);
203
+ return D("div", {
204
+ ref: w,
205
+ "data-sxl-theme-surface": "grid",
206
+ "data-sxl-theme-mode": v,
207
+ className: e("table-style-preview", f),
208
+ style: {
209
+ backgroundImage: T ?? void 0,
210
+ width: 61,
211
+ height: 46,
212
+ ...u
213
+ },
214
+ ...g
215
+ });
216
+ })), I = u((e) => {
217
+ let { table: t, tableStyle: n, selectedTableStyleName: r, onSelectTableStyleName: i, styles: o, hasContextMenu: s = !0, disabled: l, useCanvasPreview: u = !0, canvas: f, ...p } = e, h = c(), g = d((e) => {
218
+ let t = {
219
+ variant: a.Menuitem,
220
+ groupKey: "tableStyleOptions"
221
+ }, r = O(E, { children: [
222
+ D(v, {
223
+ ...t,
224
+ commandKey: "formatTableStyleClearCellStyles",
225
+ commandState: n,
226
+ disabled: l
227
+ }),
228
+ D(v, {
229
+ ...t,
230
+ style: { fontWeight: 550 },
231
+ commandKey: "formatTableStyle",
232
+ commandState: { name: n.getName() },
233
+ disabled: l
234
+ }),
235
+ D(x, { orientation: "horizontal" }),
236
+ D(v, {
237
+ ...t,
238
+ commandKey: "setDefaultTableStyle",
239
+ commandState: n.getName(),
240
+ disabled: l
241
+ }),
242
+ D(x, { orientation: "horizontal" }),
243
+ D(v, {
244
+ ...t,
245
+ commandKey: "deleteTableStyle",
246
+ commandState: n?.getName(),
247
+ disabled: l || !n || n.isBuiltIn()
248
+ })
249
+ ] });
250
+ return T({
251
+ ...e,
252
+ children: D(k, {
253
+ sx: {
254
+ display: "flex",
255
+ flexDirection: "column",
256
+ flex: "1 1 100%",
257
+ overflow: "hidden"
258
+ },
259
+ children: D(k, {
260
+ sx: {
261
+ overflow: "auto",
262
+ flex: "1 1 100%"
263
+ },
264
+ children: r
265
+ })
266
+ })
267
+ });
268
+ }, []), _ = n?.getName() === r, y = m(() => {
269
+ let e = {
270
+ table: t,
271
+ tableStyle: n,
272
+ styles: o
273
+ };
274
+ return u ? D(F, {
275
+ canvas: f,
276
+ ...e
277
+ }) : D(M, { ...e });
278
+ }, [
279
+ t,
280
+ n,
281
+ o
282
+ ]), C = D(S, {
283
+ sx: {
284
+ borderRadius: "2px",
285
+ padding: "2px",
286
+ margin: "0px 0px",
287
+ display: "flex",
288
+ border: (e) => `solid ${_ ? e.palette.primary.dark : "transparent"} 1px`
289
+ },
290
+ propsTooltip: {
291
+ label: n.getName() ?? h("tableStyle.none"),
292
+ placement: "bottom-start"
293
+ },
294
+ disabled: l,
295
+ icon: null,
296
+ onClick: () => {
297
+ i?.(n?.getName());
298
+ },
299
+ ...p,
300
+ children: y
301
+ }, n.getName());
302
+ return s && (C = D(b, {
303
+ label: t.getStyleOptions().name,
304
+ createPopupPanel: g,
305
+ children: C
306
+ })), C;
307
+ }), L = u(l((e, t) => {
308
+ let { commandKey: r, selectedTable: i, onSelectTableStyleName: l, disabled: u, disabledQuickKey: p = !1, usePreviewIcon: h = !1, groupKey: b, ...S } = e, T = c(), A = s([r])[0], j = A?.getContext(), M = j?.styles, N = M?.(), P = i ?? j?.table?.() ?? null, F = "insertTable";
309
+ P && (F = "editTable");
310
+ let L = m(() => ((e, t) => new n({
311
+ size: {
312
+ width: 5,
313
+ height: 5
314
+ },
315
+ styles: t,
316
+ json: {
317
+ name: "PreviewTable",
318
+ description: "PreviewTable",
319
+ headerRowCount: 1,
320
+ totalsRowCount: 0,
321
+ style: e
322
+ }
323
+ }))(P?.getStyleOptions(), N), [N?.getTableStyles().getDefault(), P?.getStyleOptions()]), R = P ?? L, [z, B] = _(R);
324
+ f(() => {
325
+ B(R);
326
+ }, [R]);
327
+ let V = o((e) => {
328
+ l?.(e), A?.execute({ name: e });
329
+ }, [A, l]), H = g(null), U = d((e) => {
330
+ let t = {
331
+ onSelectTableStyleName: V,
332
+ styles: N
333
+ };
334
+ H.current ||= document.createElement("canvas");
335
+ let n = (e) => {
336
+ if (!e) return null;
337
+ let n = N?.getTableStyles().getByName(e);
338
+ return n ? D(I, {
339
+ table: z,
340
+ tableStyle: n,
341
+ selectedTableStyleName: z.getStyleOptions().name,
342
+ canvas: H.current,
343
+ ...t
344
+ }, e) : null;
345
+ }, r = (e, t, r = !0) => {
346
+ let i = [];
347
+ for (let e = 0; e < t.length; e++) {
348
+ let r = n(t[e]);
349
+ r && i.push(r);
350
+ }
351
+ return i.length === 0 ? null : O(k, { children: [
352
+ r ? D(x, { orientation: "horizontal" }) : null,
353
+ D(C, { children: e }, e + "-header"),
354
+ D(k, {
355
+ sx: {
356
+ display: "flex",
357
+ gap: "2px",
358
+ marginBottom: "6px",
359
+ flexWrap: "wrap",
360
+ width: "481px",
361
+ maxWidth: "100%"
362
+ },
363
+ children: i
364
+ }, e + "-presets")
365
+ ] }, e);
366
+ }, i = [], o = N?.getTableStyles().getItems({ type: "custom" }), s = [], c = o ? o.length : 0;
367
+ if (c > 0) {
368
+ for (let e = 0; e < c; e++) {
369
+ let t = o[e];
370
+ t.isShownInTableStyles() && s.push(t.getName());
371
+ }
372
+ i.push(r(T("tableStyle.category.custom"), s, !1));
373
+ }
374
+ let l = [];
375
+ P && !P.getStyleOptions().name && l.push(null);
376
+ for (let e = 0; e < 21; e++) l.push("TableStyleLight" + (e + 1));
377
+ i.push(r(T("tableStyle.category.light"), l, s.length > 0));
378
+ let d = [];
379
+ for (let e = 0; e < 28; e++) d.push("TableStyleMedium" + (e + 1));
380
+ i.push(r(T("tableStyle.category.medium"), d));
381
+ let f = [];
382
+ for (let e = 0; e < 11; e++) f.push("TableStyleDark" + (e + 1));
383
+ i.push(r(T("tableStyle.category.dark"), f));
384
+ let p = null;
385
+ return P && (p = O(E, { children: [D(x, { orientation: "horizontal" }), D(v, {
386
+ variant: a.Menuitem,
387
+ commandKey: "formatTableStyleClearTableStyle",
388
+ disabled: u
389
+ })] })), O(k, {
390
+ sx: {
391
+ display: "flex",
392
+ flexDirection: "column",
393
+ maxWidth: "100%",
394
+ paddingTop: (e) => `${e.shape.borderRadius}px`,
395
+ paddingBottom: (e) => `${e.shape.borderRadius}px`
396
+ },
397
+ children: [D(k, {
398
+ onContextMenu: () => {},
399
+ sx: {
400
+ display: "flex",
401
+ flexDirection: "column",
402
+ padding: "6px 16px"
403
+ },
404
+ children: i
405
+ }), p]
406
+ });
407
+ }, [
408
+ N,
409
+ N?.getTheme(),
410
+ z,
411
+ T
412
+ ]), W = u ?? (!A || A.disabled()), G = m(() => {
413
+ if (!j || !h) return A?.getIcon();
414
+ }, [
415
+ z,
416
+ W,
417
+ A
418
+ ]);
419
+ return D(y, {
420
+ ref: t,
421
+ quickCommand: p ? void 0 : F,
422
+ createPopupPanel: U,
423
+ label: A?.getLabel(b),
424
+ groupKey: b,
425
+ commandState: P,
426
+ createTooltip: ({ children: e }, t) => D(w, {
427
+ label: A?.getLabel(),
428
+ description: A?.getDescription(),
429
+ disabled: t,
430
+ children: e
431
+ }),
432
+ disabled: W,
433
+ icon: G,
434
+ ...S
435
+ });
436
+ }));
437
+ export { F as n, M as r, L as t };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
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.