@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,627 @@
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 { Color as t, VERSION as n } from "@sheetxl/sdk";
9
+ import { useGridColorScheme as r } from "@sheetxl/react";
10
+ import { DynamicIcon as i, ReactUtils as a, useTranslator as o } from "@sheetxl/utils-react";
11
+ import { forwardRef as s, memo as c, useCallback as l, useEffect as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
12
+ import { ExhibitIconButton as h } from "@sheetxl/utils-mui";
13
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
14
+ import { Box as y, Button as b, ButtonBase as x, Chip as S, Divider as C, InputAdornment as w, ListItemIcon as T, ListItemText as E, Menu as D, MenuItem as O, Skeleton as k, TextField as A, Typography as j } from "@mui/material";
15
+ import { listResources as M, releaseChannel as N } from "@sheetxl/utils";
16
+ var P = (e, n) => {
17
+ if (!e?.color) return null;
18
+ try {
19
+ let r = new t(e.color).toCSS(n.palette.mode === "dark");
20
+ return {
21
+ fill: r,
22
+ text: n.palette.getContrastText(r)
23
+ };
24
+ } catch {
25
+ return null;
26
+ }
27
+ }, F = "8 / 5", I = (e) => {
28
+ let { entry: t, category: n } = e, i = (r() === "dark" ? t.thumbnailDarkUrl : void 0) ?? t.thumbnailUrl;
29
+ return _(L, {
30
+ src: i,
31
+ category: n
32
+ }, i);
33
+ }, L = (e) => {
34
+ let { src: t, category: n } = e, [r, a] = m(t ? "loading" : "failed");
35
+ return v(y, {
36
+ className: "template-thumbnail",
37
+ sx: {
38
+ position: "relative",
39
+ width: "100%",
40
+ aspectRatio: F,
41
+ overflow: "hidden",
42
+ borderRadius: 1,
43
+ border: (e) => `1px solid ${e.palette.divider}`,
44
+ background: (e) => e.palette.background.paper,
45
+ transition: "border-color 150ms, box-shadow 150ms",
46
+ display: "flex",
47
+ alignItems: "center",
48
+ justifyContent: "center"
49
+ },
50
+ children: [r === "failed" ? _(i, {
51
+ iconKey: "FileNew",
52
+ style: {
53
+ fontSize: "2.5rem",
54
+ opacity: .4
55
+ }
56
+ }) : _("img", {
57
+ src: t,
58
+ alt: "",
59
+ loading: "lazy",
60
+ draggable: !1,
61
+ onLoad: () => a("loaded"),
62
+ onError: () => a("failed"),
63
+ style: {
64
+ width: "100%",
65
+ height: "100%",
66
+ objectFit: "cover",
67
+ objectPosition: "top left",
68
+ opacity: +(r === "loaded"),
69
+ transition: "opacity 150ms ease-out"
70
+ }
71
+ }), n?.color ? _(y, { sx: (e) => ({
72
+ position: "absolute",
73
+ top: 0,
74
+ left: 0,
75
+ right: 0,
76
+ height: "3px",
77
+ backgroundColor: P(n, e)?.fill
78
+ }) }) : null]
79
+ });
80
+ }, R = (e) => {
81
+ let { entry: t, category: n, onSelect: r } = e;
82
+ return v(x, {
83
+ className: "template-tile",
84
+ disableRipple: !0,
85
+ onClick: r,
86
+ "aria-label": n ? `${t.title}, ${n.title}` : t.title,
87
+ title: t.description,
88
+ sx: {
89
+ display: "flex",
90
+ flexDirection: "column",
91
+ alignItems: "stretch",
92
+ textAlign: "left",
93
+ gap: .75,
94
+ padding: 1,
95
+ borderRadius: 1,
96
+ "&:hover .template-thumbnail, &.Mui-focusVisible .template-thumbnail": {
97
+ borderColor: (e) => e.palette.primary.main,
98
+ boxShadow: 3
99
+ },
100
+ "&.Mui-focusVisible": {
101
+ outline: (e) => `2px solid ${e.palette.primary.main}`,
102
+ outlineOffset: "-2px"
103
+ }
104
+ },
105
+ children: [_(I, {
106
+ entry: t,
107
+ category: n
108
+ }), v(y, {
109
+ sx: { minWidth: 0 },
110
+ children: [_(j, {
111
+ variant: "subtitle2",
112
+ component: "div",
113
+ noWrap: !0,
114
+ children: t.title
115
+ }), n ? v(j, {
116
+ variant: "caption",
117
+ component: "div",
118
+ noWrap: !0,
119
+ sx: {
120
+ color: "text.secondary",
121
+ display: "flex",
122
+ alignItems: "center",
123
+ gap: .75
124
+ },
125
+ children: [n.color ? _(y, {
126
+ component: "span",
127
+ sx: (e) => ({
128
+ width: "8px",
129
+ height: "8px",
130
+ borderRadius: "50%",
131
+ flex: "none",
132
+ backgroundColor: P(n, e)?.fill
133
+ })
134
+ }) : null, _(y, {
135
+ component: "span",
136
+ sx: {
137
+ overflow: "hidden",
138
+ textOverflow: "ellipsis"
139
+ },
140
+ children: n.title
141
+ })]
142
+ }) : null]
143
+ })]
144
+ });
145
+ }, z = () => v(y, {
146
+ sx: {
147
+ padding: 1,
148
+ display: "flex",
149
+ flexDirection: "column",
150
+ gap: .75
151
+ },
152
+ children: [
153
+ _(k, {
154
+ variant: "rectangular",
155
+ sx: {
156
+ width: "100%",
157
+ height: "auto",
158
+ aspectRatio: F,
159
+ borderRadius: 1
160
+ }
161
+ }),
162
+ _(k, {
163
+ variant: "text",
164
+ width: "60%"
165
+ }),
166
+ _(k, {
167
+ variant: "text",
168
+ width: "35%"
169
+ })
170
+ ]
171
+ }), B = c(s((t, n) => {
172
+ let { catalog: r, onSelect: i, filter: s, groupBy: c, renderTile: l, tileMinWidth: h = 180, emptyLabel: g, visibleRows: x, sx: S = a.EmptyCssProperties, style: C, className: w, onKeyDown: T, ...E } = t, D = o(), O = p(null), [k, A] = m(0), M = p(null);
173
+ M.current = () => {
174
+ let e = O.current?.querySelector(".template-grid")?.firstElementChild, t = (e?.offsetHeight ? e : e?.firstElementChild)?.getBoundingClientRect().height;
175
+ t && A(t);
176
+ }, d(() => {
177
+ x && M.current?.();
178
+ }), u(() => {
179
+ let e = O.current;
180
+ if (!x || !e) return;
181
+ let t = new ResizeObserver(() => M.current?.());
182
+ return t.observe(e), () => t.disconnect();
183
+ }, [x]);
184
+ let N = f(() => new Map(r.categories.map((e) => [e.id, e])), [r.categories]), P = f(() => {
185
+ let e = s ? r.entries.filter(s) : r.entries;
186
+ if (!c) return [{
187
+ key: null,
188
+ entries: e
189
+ }];
190
+ let t = /* @__PURE__ */ new Map();
191
+ for (let e of r.categories) t.set(e.id, []);
192
+ for (let n of e) {
193
+ let e = c(n), r = t.get(e);
194
+ r || t.set(e, r = []), r.push(n);
195
+ }
196
+ return [...t].filter(([, e]) => e.length > 0).map(([e, t]) => ({
197
+ key: e,
198
+ title: N.get(e)?.title ?? e,
199
+ entries: t
200
+ }));
201
+ }, [
202
+ r.entries,
203
+ r.categories,
204
+ N,
205
+ s,
206
+ c
207
+ ]), F = {
208
+ display: "grid",
209
+ gridTemplateColumns: `repeat(auto-fill, minmax(${h}px, 1fr))`,
210
+ gap: "8px"
211
+ }, I;
212
+ return I = r.status === "loading" ? _(y, {
213
+ className: "template-grid",
214
+ sx: F,
215
+ "aria-busy": "true",
216
+ "aria-label": D("template.loading"),
217
+ children: Array.from({ length: 6 }, (e, t) => _(z, {}, t))
218
+ }) : r.status === "error" ? v(y, {
219
+ sx: {
220
+ display: "flex",
221
+ flexDirection: "column",
222
+ alignItems: "center",
223
+ gap: 1,
224
+ padding: 4,
225
+ textAlign: "center"
226
+ },
227
+ children: [_(j, {
228
+ variant: "body2",
229
+ sx: { color: "text.secondary" },
230
+ children: D("template.loadFailed")
231
+ }), _(b, {
232
+ variant: "outlined",
233
+ size: "small",
234
+ onClick: r.retry,
235
+ children: D("template.retry")
236
+ })]
237
+ }) : P.every((e) => e.entries.length === 0) ? _(j, {
238
+ variant: "body2",
239
+ sx: {
240
+ color: "text.secondary",
241
+ padding: 4,
242
+ textAlign: "center"
243
+ },
244
+ children: g ?? D("template.empty")
245
+ }) : P.map((e) => v(y, {
246
+ role: "group",
247
+ "aria-label": e.title,
248
+ children: [e.title ? _(j, {
249
+ variant: "overline",
250
+ component: "div",
251
+ sx: {
252
+ color: "text.secondary",
253
+ paddingX: 1
254
+ },
255
+ children: e.title
256
+ }) : null, _(y, {
257
+ className: "template-grid",
258
+ sx: F,
259
+ children: e.entries.map((e) => {
260
+ let t = {
261
+ category: N.get(e.category),
262
+ onSelect: () => i?.(e)
263
+ };
264
+ return l ? _(y, {
265
+ sx: { display: "contents" },
266
+ children: l(e, t)
267
+ }, e.id) : _(R, {
268
+ entry: e,
269
+ ...t
270
+ }, e.id);
271
+ })
272
+ })]
273
+ }, e.key ?? "")), _(y, {
274
+ ref: n,
275
+ className: e(w, "template-panel"),
276
+ sx: S,
277
+ style: x && k ? {
278
+ boxSizing: "content-box",
279
+ scrollbarGutter: "stable",
280
+ height: `${Math.ceil(x * k + 8 * (x - 1))}px`,
281
+ minHeight: `${Math.ceil(k)}px`,
282
+ ...C
283
+ } : C,
284
+ ...E,
285
+ children: _(y, {
286
+ ref: O,
287
+ onKeyDown: (e) => {
288
+ if (T?.(e), e.defaultPrevented) return;
289
+ let t = O.current;
290
+ if (!t) return;
291
+ let n = Array.from(t.querySelectorAll(".template-tile")), r = n.indexOf(document.activeElement);
292
+ if (r < 0) return;
293
+ let i = n[r].offsetTop, a = n.findIndex((e) => e.offsetTop === i && e.parentElement === n[r].parentElement), o = 0;
294
+ for (; n[a + o]?.offsetTop === i;) o++;
295
+ let s = r;
296
+ switch (e.key) {
297
+ case "ArrowRight":
298
+ s = r + 1;
299
+ break;
300
+ case "ArrowLeft":
301
+ s = r - 1;
302
+ break;
303
+ case "ArrowDown":
304
+ s = r + Math.max(1, o);
305
+ break;
306
+ case "ArrowUp":
307
+ s = r - Math.max(1, o);
308
+ break;
309
+ case "Home":
310
+ s = 0;
311
+ break;
312
+ case "End":
313
+ s = n.length - 1;
314
+ break;
315
+ default: return;
316
+ }
317
+ s = Math.max(0, Math.min(n.length - 1, s)), e.preventDefault(), n[s].focus();
318
+ },
319
+ children: I
320
+ })
321
+ });
322
+ }));
323
+ B.displayName = "TemplatePanel";
324
+ var V = (e, t, n) => f(() => {
325
+ if (!t.trim() && n.length === 0) return;
326
+ let r = new Map(e.map((e) => [e.id, e])), i = n.length > 0 ? new Set(n) : null;
327
+ return (e) => !(i && !i.has(e.category)) && ((e, t, n) => {
328
+ let r = t.trim().toLowerCase();
329
+ return !r || [
330
+ e.title,
331
+ e.description,
332
+ n?.title,
333
+ ...e.tags ?? []
334
+ ].some((e) => e?.toLowerCase().includes(r));
335
+ })(e, t, r.get(e.category));
336
+ }, [
337
+ e,
338
+ t,
339
+ n
340
+ ]), H = [], U = (e) => {
341
+ let { category: t } = e;
342
+ return _(y, {
343
+ component: "span",
344
+ sx: (e) => ({
345
+ display: "inline-block",
346
+ width: "10px",
347
+ height: "10px",
348
+ borderRadius: "50%",
349
+ flex: "none",
350
+ backgroundColor: P(t, e)?.fill ?? e.palette.action.selected
351
+ })
352
+ });
353
+ }, W = (e) => {
354
+ let { category: t, onDelete: n } = e;
355
+ return _(S, {
356
+ size: "small",
357
+ label: t.title,
358
+ title: t.description,
359
+ onDelete: n,
360
+ sx: (e) => {
361
+ let n = P(t, e);
362
+ return {
363
+ marginY: .25,
364
+ marginRight: .5,
365
+ maxWidth: "160px",
366
+ ...n ? {
367
+ backgroundColor: n.fill,
368
+ color: n.text,
369
+ "& .MuiChip-deleteIcon": {
370
+ color: n.text,
371
+ opacity: .7
372
+ },
373
+ "& .MuiChip-deleteIcon:hover": {
374
+ color: n.text,
375
+ opacity: 1
376
+ },
377
+ "&.Mui-focusVisible": {
378
+ backgroundColor: n.fill,
379
+ outline: `2px solid ${e.palette.primary.main}`,
380
+ outlineOffset: "1px"
381
+ }
382
+ } : void 0
383
+ };
384
+ }
385
+ });
386
+ }, G = (e) => {
387
+ let { value: t, onChange: n, categories: r, categoryIds: a = H, onCategoryIdsChange: s, sx: c } = e, l = o(), u = p(null), [d, y] = m(null), b = !!s && (r?.length ?? 0) > 1, S = f(() => {
388
+ if (!b || a.length === 0) return [];
389
+ let e = new Map(r.map((e) => [e.id, e]));
390
+ return a.map((t) => e.get(t)).filter((e) => !!e);
391
+ }, [
392
+ b,
393
+ r,
394
+ a
395
+ ]), k = (e) => {
396
+ s?.(e), u.current?.focus();
397
+ }, j = () => {
398
+ y(null), u.current?.focus();
399
+ }, M = _(i, { iconKey: "Find" }), N = _(w, {
400
+ position: "start",
401
+ children: M
402
+ });
403
+ if (b) {
404
+ let e = l("template.filterByCategory");
405
+ N = v(g, { children: [_(w, {
406
+ position: "start",
407
+ sx: { marginRight: .5 },
408
+ children: v(x, {
409
+ "aria-label": e,
410
+ title: e,
411
+ "aria-haspopup": "menu",
412
+ "aria-expanded": !!d,
413
+ onMouseDown: (e) => {
414
+ e.button === 0 && e.preventDefault();
415
+ },
416
+ onClick: (e) => y(e.currentTarget),
417
+ sx: {
418
+ display: "flex",
419
+ alignItems: "center",
420
+ marginLeft: -.75,
421
+ paddingX: .25,
422
+ paddingY: .25,
423
+ borderRadius: 1,
424
+ color: "inherit",
425
+ "&:hover, &.Mui-focusVisible": { backgroundColor: "action.hover" }
426
+ },
427
+ children: [M, _(i, {
428
+ iconKey: "ExpandMore",
429
+ style: {
430
+ fontSize: "1rem",
431
+ marginLeft: "-2px"
432
+ }
433
+ })]
434
+ })
435
+ }), S.map((e) => _(W, {
436
+ category: e,
437
+ onDelete: () => k(a.filter((t) => t !== e.id))
438
+ }, e.id))] });
439
+ }
440
+ let P = !!t || S.length > 0;
441
+ return v(g, { children: [_(A, {
442
+ size: "small",
443
+ value: t,
444
+ placeholder: S.length > 0 ? void 0 : l("template.search"),
445
+ inputRef: u,
446
+ onChange: (e) => n(e.target.value),
447
+ onKeyDown: (e) => {
448
+ if (e.key === "Escape" && P) e.stopPropagation(), t ? n("") : k([]);
449
+ else if (e.key === "Backspace" && S.length > 0) {
450
+ let t = u.current;
451
+ e.target === t && t.selectionStart === 0 && t.selectionEnd === 0 && (e.preventDefault(), k(a.slice(0, -1)));
452
+ }
453
+ },
454
+ sx: c,
455
+ slotProps: {
456
+ input: {
457
+ sx: {
458
+ backgroundColor: "background.paper",
459
+ flexWrap: "wrap",
460
+ paddingY: "6px",
461
+ paddingRight: P ? "40px" : void 0,
462
+ "& .MuiInputBase-input": {
463
+ flex: "1 1 60px",
464
+ minWidth: "60px",
465
+ width: 0,
466
+ height: "28px",
467
+ paddingY: 0
468
+ },
469
+ "& .MuiInputAdornment-positionStart": {
470
+ height: "28px",
471
+ maxHeight: "none"
472
+ },
473
+ "& .MuiInputAdornment-positionEnd": {
474
+ position: "absolute",
475
+ right: "8px",
476
+ top: "6px",
477
+ height: "28px",
478
+ maxHeight: "none",
479
+ marginLeft: 0
480
+ }
481
+ },
482
+ startAdornment: N,
483
+ endAdornment: P ? _(w, {
484
+ position: "end",
485
+ children: _(h, {
486
+ "aria-label": l("template.clearSearch"),
487
+ propsTooltip: { label: l("template.clearSearch") },
488
+ onMouseDown: (e) => {
489
+ e.button === 0 && e.preventDefault();
490
+ },
491
+ onClick: () => {
492
+ n(""), k([]);
493
+ },
494
+ icon: _(i, { iconKey: "Close" }),
495
+ size: "small"
496
+ })
497
+ }) : void 0
498
+ },
499
+ htmlInput: {
500
+ spellCheck: !1,
501
+ autoComplete: "off",
502
+ "aria-label": l("template.search")
503
+ }
504
+ }
505
+ }), b ? v(D, {
506
+ anchorEl: d,
507
+ open: !!d,
508
+ onClose: j,
509
+ disableRestoreFocus: !0,
510
+ slotProps: { list: {
511
+ dense: !0,
512
+ "aria-label": l("dialog.template.categories")
513
+ } },
514
+ children: [r.map((e) => {
515
+ let t = a.includes(e.id);
516
+ return v(O, {
517
+ selected: t,
518
+ title: e.description,
519
+ onClick: () => {
520
+ s(t ? a.filter((t) => t !== e.id) : [...a, e.id]), j();
521
+ },
522
+ children: [
523
+ _(T, { children: _(U, { category: e }) }),
524
+ _(E, { children: e.title }),
525
+ t ? _(i, {
526
+ iconKey: "Check",
527
+ style: {
528
+ fontSize: "1rem",
529
+ marginLeft: "16px"
530
+ }
531
+ }) : null
532
+ ]
533
+ }, e.id);
534
+ }), S.length > 0 ? [_(C, {}, "divider"), v(O, {
535
+ onClick: () => {
536
+ s([]), j();
537
+ },
538
+ children: [_(T, {}), _(E, { children: l("template.allCategories") })]
539
+ }, "all")] : null]
540
+ }) : null] });
541
+ }, K = N(n), q = `https://unpkg.com/@sheetxl/templates-workbook${K ? `@${K}` : ""}/dist`, J = "templates-workbook", Y = (e) => e.replace(/\.[^/.]+$/, "").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/[-_]+/g, " ").trim().replace(/\b\w/g, (e) => e.toUpperCase()), X = (e, t) => {
542
+ let n = `${e}${e.endsWith("/") ? "" : "/"}${J}/${t}`;
543
+ return typeof document > "u" ? n : new URL(n, document.baseURI).href;
544
+ }, Z = (e) => typeof e == "string" && e ? e : void 0, Q = /* @__PURE__ */ new Map(), $ = (e = q) => {
545
+ let t = Q.get(e);
546
+ return t || (t = (async () => {
547
+ let t = (await M("templates", J, e)).find((e) => e.meta?.schema !== void 0);
548
+ if (!t) throw Error(`No template catalog found at '${e}'.`);
549
+ return Math.floor(Number(t.meta?.schema)) === 1 ? ((e, t) => {
550
+ let n = Array.isArray(e.meta?.categories) ? e.meta.categories : [], r = [], i = /* @__PURE__ */ new Set();
551
+ for (let e of n) {
552
+ let t = Z(e?.id);
553
+ t && !i.has(t) && (i.add(t), r.push({
554
+ id: t,
555
+ title: Z(e.title) ?? Y(t),
556
+ description: Z(e.description),
557
+ icon: Z(e.icon),
558
+ color: Z(e.color)
559
+ }));
560
+ }
561
+ let a = [];
562
+ for (let n of e.entries) {
563
+ let e = n.path, o = e.split("/");
564
+ if (o.length !== 2 || !/\.(?:xlsx|sxl|csv)$/i.test(e)) continue;
565
+ let s = Z(n.category) ?? o[0];
566
+ i.has(s) || (i.add(s), r.push({
567
+ id: s,
568
+ title: Y(s)
569
+ }));
570
+ let c = Z(n.thumbnail), l = Z(n.thumbnailDark);
571
+ a.push({
572
+ id: e,
573
+ title: Z(n.title) ?? Y(o[1]),
574
+ category: s,
575
+ description: Z(n.description),
576
+ tags: Array.isArray(n.tags) ? n.tags.filter((e) => typeof e == "string") : void 0,
577
+ thumbnailUrl: c ? X(t, c) : void 0,
578
+ thumbnailDarkUrl: l ? X(t, l) : void 0,
579
+ sourceUrl: X(t, e)
580
+ });
581
+ }
582
+ return {
583
+ categories: r,
584
+ entries: a
585
+ };
586
+ })(t, e) : (console.warn(`Template catalog at '${e}' has schema ${t.meta?.schema}; expected 1.`), {
587
+ categories: [],
588
+ entries: []
589
+ });
590
+ })(), Q.set(e, t), t.catch(() => {
591
+ Q.delete(e);
592
+ })), t;
593
+ }, ee = (e = {}) => {
594
+ let { path: t = q } = e, [n, r] = m(0), [i, a] = m({
595
+ status: "loading",
596
+ categories: [],
597
+ entries: []
598
+ });
599
+ return u(() => {
600
+ let e = !1;
601
+ return a((e) => e.status === "loading" ? e : {
602
+ status: "loading",
603
+ categories: [],
604
+ entries: []
605
+ }), $(t).then((t) => {
606
+ e || a({
607
+ status: "ready",
608
+ ...t
609
+ });
610
+ }, (t) => {
611
+ e || a({
612
+ status: "error",
613
+ categories: [],
614
+ entries: [],
615
+ error: t
616
+ });
617
+ }), () => {
618
+ e = !0;
619
+ };
620
+ }, [t, n]), {
621
+ ...i,
622
+ retry: l(() => {
623
+ r((e) => e + 1);
624
+ }, [])
625
+ };
626
+ };
627
+ export { B as a, V as i, ee as n, G as r, $ as t };