@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,318 @@
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 "./BED6h6YAwCf1HEQJ.mjs";
8
+ import { t } from "./BYE9gCDWKyx6mnVs.mjs";
9
+ import { externalBookFileName as n, externalBookLocation as r } from "@sheetxl/sdk";
10
+ import { DynamicIcon as i, NotifierType as a, useNotifier as o, useTranslator as s } from "@sheetxl/utils-react";
11
+ import { forwardRef as c, memo as l, useMemo as u, useReducer as d, useState as f } from "react";
12
+ import { SimpleTooltip as p } from "@sheetxl/utils-mui";
13
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
14
+ import { Box as g, Button as _, FormControl as v, FormControlLabel as y, FormLabel as b, Radio as x, RadioGroup as S, Tab as C, Tabs as w, Typography as T } from "@mui/material";
15
+ import { messageKey as E } from "@sheetxl/utils";
16
+ var D = ({ item: e }) => {
17
+ let t = s(), n = e.getSheetNames(), r = [], i = !1;
18
+ for (let t = 0; t < n.length; t++) {
19
+ let a = e.getSheetData(t);
20
+ a && (r.push(n[t]), a.refreshError && (i = !0));
21
+ }
22
+ return h(g, {
23
+ sx: {
24
+ display: "flex",
25
+ flexDirection: "column",
26
+ gap: (e) => e.spacing(.5)
27
+ },
28
+ children: [
29
+ m(T, {
30
+ variant: "caption",
31
+ sx: { color: "text.secondary" },
32
+ children: r.length > 0 ? t("externalLink.cached", { sheets: r.join(", ") }) : t("externalLink.cachedNone")
33
+ }),
34
+ i ? m(T, {
35
+ variant: "caption",
36
+ sx: { color: "error.main" },
37
+ children: t("externalLink.refreshError")
38
+ }) : null,
39
+ m(T, {
40
+ variant: "caption",
41
+ sx: { color: "text.secondary" },
42
+ children: t("externalLink.dependents", { count: e.getDependents().length })
43
+ })
44
+ ]
45
+ });
46
+ }, O = l((t) => {
47
+ let { size: n = 28, ...r } = t, a = s();
48
+ return m(e, {
49
+ className: "sxl-external-link-chip",
50
+ title: a("externalLink.linkedWorkbook"),
51
+ sx: {
52
+ width: "auto",
53
+ minWidth: 1.7 * n + "px",
54
+ height: `${n}px`,
55
+ color: "text.secondary"
56
+ },
57
+ ...r,
58
+ children: m(i, {
59
+ iconKey: "ExternalLinked",
60
+ size: Math.round(.7 * n)
61
+ })
62
+ });
63
+ });
64
+ O.displayName = "ExternalLinkChip";
65
+ var k = ({ item: e }) => {
66
+ let t = r(e);
67
+ if (!t) return null;
68
+ let n = Math.max(t.lastIndexOf("/"), t.lastIndexOf("\\")), i = n === -1 ? "" : t.substring(0, n + 1), a = n === -1 ? t : t.substring(n + 1);
69
+ return m(p, {
70
+ title: t,
71
+ children: h(g, {
72
+ className: "sxl-external-link-location",
73
+ sx: {
74
+ display: "flex",
75
+ alignItems: "baseline",
76
+ minWidth: 0,
77
+ typography: "subtitle2",
78
+ fontWeight: 600
79
+ },
80
+ children: [i ? m(T, {
81
+ variant: "subtitle2",
82
+ sx: {
83
+ fontWeight: 600,
84
+ minWidth: 0,
85
+ overflow: "hidden",
86
+ textOverflow: "ellipsis",
87
+ whiteSpace: "nowrap"
88
+ },
89
+ children: i
90
+ }) : null, m(T, {
91
+ variant: "subtitle2",
92
+ sx: {
93
+ fontWeight: 600,
94
+ flex: "0 0 auto",
95
+ whiteSpace: "nowrap"
96
+ },
97
+ children: a
98
+ })]
99
+ })
100
+ });
101
+ }, A = l(c((e, r) => {
102
+ let { workbook: i, ...c } = e, l = s(), d = o(), f = u(() => ({
103
+ key: "external-link",
104
+ messageKeys: {
105
+ none: E("externalLink.none"),
106
+ delete: E("externalLink.breakLink"),
107
+ search: E("externalLink.search"),
108
+ clearSearch: E("externalLink.clearSearch"),
109
+ noMatches: E("externalLink.noMatches")
110
+ },
111
+ getItems: (e) => e.getExternalBooks().getItems(),
112
+ subscribe: (e, t) => {
113
+ let n = e.getExternalBooks().addListeners({ onCollectionChange: () => t.onChange() }, { transactional: !1 }), r = e.getCalculation().addListeners({ onComplete: () => t.onChange() }, { transactional: !1 }), i = e.addListeners({ onProtectionChange: () => t.onChange() }, { transactional: !1 });
114
+ return () => {
115
+ n?.(), r?.(), i?.();
116
+ };
117
+ },
118
+ isReadOnly: (e) => !e.getProtection().isStructureAllowed(),
119
+ getItemKey: (e) => e.getId(),
120
+ delete: (e, t) => {
121
+ e.breakLink();
122
+ },
123
+ getSearchText: (e) => [
124
+ n(e),
125
+ e.getDisplayName(),
126
+ ...e.getSheetNames(),
127
+ ...e.getSources().map((e) => e.target)
128
+ ].join("\n"),
129
+ CardMedia: () => m(O, { size: 32 }),
130
+ getCardTitle: (e) => n(e),
131
+ CardSubtitle: k,
132
+ CardBody: (e) => m(D, { ...e })
133
+ }), []), p = !i.getProtection().isStructureAllowed(), v = i.getExternalBooks().getCount() > 0, y = u(() => {
134
+ let e = {
135
+ flex: "0 0 auto",
136
+ textTransform: "none",
137
+ whiteSpace: "nowrap"
138
+ };
139
+ return h(g, {
140
+ sx: {
141
+ display: "flex",
142
+ gap: .5,
143
+ flex: "0 0 auto"
144
+ },
145
+ children: [m(_, {
146
+ size: "small",
147
+ disabled: p || !v,
148
+ sx: e,
149
+ onClick: () => {
150
+ i.getExternalBooks().refreshAll().then((e) => {
151
+ let t = {
152
+ refreshed: 0,
153
+ failed: 0,
154
+ unavailable: 0
155
+ };
156
+ for (let n of e) t[n.status]++;
157
+ t.refreshed === 0 && t.failed === 0 ? d.showMessage?.(l("externalLink.refreshUnavailable"), { type: a.Warning }) : d.showMessage?.(l("externalLink.refreshSummary", t), { type: t.failed ? a.Warning : a.Info });
158
+ }, (e) => {
159
+ d.showMessage?.(e.message, { type: a.Error });
160
+ });
161
+ },
162
+ children: l("externalLink.refreshAll")
163
+ }), m(_, {
164
+ size: "small",
165
+ disabled: p || !v,
166
+ sx: e,
167
+ onClick: () => {
168
+ try {
169
+ i.getExternalBooks().breakAll();
170
+ } catch (e) {
171
+ d.showMessage?.(e.message, { type: a.Error });
172
+ }
173
+ },
174
+ children: l("externalLink.breakAll")
175
+ })]
176
+ });
177
+ }, [
178
+ i,
179
+ p,
180
+ v,
181
+ d,
182
+ l
183
+ ]);
184
+ return m(t, {
185
+ ref: r,
186
+ workbook: i,
187
+ descriptor: f,
188
+ headerActions: y,
189
+ ...c
190
+ });
191
+ }));
192
+ A.displayName = "ExternalLinksPanel";
193
+ var j = [
194
+ "userSet",
195
+ "always",
196
+ "never"
197
+ ], M = {
198
+ userSet: E("externalLink.updateLinks.userSet"),
199
+ always: E("externalLink.updateLinks.always"),
200
+ never: E("externalLink.updateLinks.never")
201
+ }, N = l(c((e, t) => {
202
+ let { workbook: n, ...r } = e, i = s(), [a, o] = d((e) => e + 1, 0), c = n.getUpdateLinks() ?? "userSet", l = !n.getProtection().isStructureAllowed();
203
+ return h(g, {
204
+ ref: t,
205
+ ...r,
206
+ sx: {
207
+ display: "flex",
208
+ flexDirection: "column",
209
+ boxSizing: "border-box",
210
+ gap: (e) => e.spacing(1.5),
211
+ padding: (e) => e.spacing(1.5),
212
+ overflowX: "hidden",
213
+ overflowY: "auto"
214
+ },
215
+ children: [h(v, {
216
+ disabled: l,
217
+ children: [m(b, {
218
+ sx: { typography: "body2" },
219
+ children: i("externalLink.updateLinks.label")
220
+ }), m(S, {
221
+ value: c,
222
+ onChange: (e, t) => {
223
+ n.setUpdateLinks(t), o();
224
+ },
225
+ children: j.map((e) => m(y, {
226
+ value: e,
227
+ control: m(x, { size: "small" }),
228
+ label: m(T, {
229
+ variant: "body2",
230
+ children: i(M[e])
231
+ })
232
+ }, e))
233
+ })]
234
+ }), m(T, {
235
+ variant: "caption",
236
+ sx: { color: "text.secondary" },
237
+ children: i("externalLink.updateLinks.note")
238
+ })]
239
+ });
240
+ }));
241
+ N.displayName = "ExternalLinkSettingsTab";
242
+ var P = {
243
+ links: E("externalLink.tab.links"),
244
+ settings: E("externalLink.tab.settings")
245
+ }, F = Object.keys(P), I = (e) => F.includes(e) ? e : null, L = l((e) => {
246
+ let { model: t, args: n, defaultTab: r = "links", entryKey: i, frame: a, ref: o, ...c } = e, l = s(), [u, d] = f(() => I(n?.tab) ?? r), [p, _] = f(n);
247
+ if (n !== p) {
248
+ _(n);
249
+ let e = I(n?.tab);
250
+ e && d(e);
251
+ }
252
+ return t ? h(g, {
253
+ ref: o,
254
+ ...c,
255
+ sx: {
256
+ display: "flex",
257
+ flexDirection: "column",
258
+ width: "100%",
259
+ minWidth: 0,
260
+ flex: "1 1 auto",
261
+ height: "100%",
262
+ minHeight: 0,
263
+ overflowX: "hidden"
264
+ },
265
+ children: [m(w, {
266
+ value: u,
267
+ onChange: (e, t) => d(t),
268
+ variant: "fullWidth",
269
+ sx: {
270
+ width: "100%",
271
+ flex: "0 0 auto",
272
+ minHeight: "36px",
273
+ borderBottom: 1,
274
+ borderColor: "divider",
275
+ "& .MuiTab-root": {
276
+ minHeight: "36px",
277
+ textTransform: "none",
278
+ pt: .5,
279
+ pb: .5,
280
+ px: .5,
281
+ minWidth: 0
282
+ }
283
+ },
284
+ children: F.map((e) => m(C, {
285
+ value: e,
286
+ label: l(P[e])
287
+ }, e))
288
+ }), h(g, {
289
+ sx: {
290
+ flex: "1 1 auto",
291
+ minHeight: 0,
292
+ minWidth: 0,
293
+ width: "100%",
294
+ display: "flex",
295
+ flexDirection: "column"
296
+ },
297
+ children: [u === "links" ? m(A, {
298
+ workbook: t,
299
+ style: {
300
+ flex: "1 1 auto",
301
+ minHeight: 0,
302
+ minWidth: 0,
303
+ width: "100%"
304
+ }
305
+ }) : null, u === "settings" ? m(N, {
306
+ workbook: t,
307
+ style: {
308
+ flex: "1 1 auto",
309
+ minHeight: 0,
310
+ minWidth: 0,
311
+ width: "100%"
312
+ }
313
+ }) : null]
314
+ })]
315
+ }) : null;
316
+ });
317
+ L.displayName = "ExternalLinksTaskPane";
318
+ export { L as ExternalLinksTaskPane, L as default };
@@ -0,0 +1,117 @@
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 { n as e } from "./DDc6rDuU9JAo1DH_.mjs";
8
+ import { InputField as t } from "./index.mjs";
9
+ import { useReferenceMode as n } from "@sheetxl/react";
10
+ import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
11
+ import { memo as a, useCallback as o, useMemo as s, useState as c } from "react";
12
+ import { OptionsDialog as l } from "@sheetxl/utils-mui";
13
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
14
+ import { Box as f, Checkbox as p, FormControlLabel as m } from "@mui/material";
15
+ var h = ["Ok", "Cancel"], g = "table.defaultName", _ = a((a) => {
16
+ let { onInput: _, onOption: v, onValidateOption: y, onDone: b, options: x = h, defaultOption: S = x?.[0], cancelOption: C = "Cancel", sx: w, initialValue: T, context: E, ...D } = a, O = i(), [k, A] = c(!1), [j, M] = c(() => T?.hasHeader ?? !1), [N, P] = c(() => T?.ranges ?? null), F = E?.()?.getNames, [I, L] = c(() => {
17
+ if (T?.name) return T.name;
18
+ let e = O(g, { n: 1 }), t = e === g ? "Table1" : e;
19
+ try {
20
+ return F?.().findValidName(t) ?? t;
21
+ } catch {
22
+ return t;
23
+ }
24
+ }), R = s(() => {
25
+ let e = T?.ranges?.getWorksheet?.()?.getName();
26
+ return e ? { scope: e } : void 0;
27
+ }, [T]), z = n().getMode()?.mode === "point", B = r((e) => {
28
+ let t = N ? {
29
+ ...T,
30
+ name: I,
31
+ hasHeader: j,
32
+ ranges: N
33
+ } : null, n = e === C || !e;
34
+ _?.(!n && t ? t : void 0), v?.(e ?? C, n, e === S), b?.({
35
+ option: e,
36
+ tableOptions: t
37
+ });
38
+ }, [
39
+ b,
40
+ v,
41
+ S,
42
+ C,
43
+ I,
44
+ j,
45
+ N,
46
+ T
47
+ ]), V = r((e) => {
48
+ F?.().validateName(e);
49
+ }, [F]), H = o(async (e, t) => {
50
+ try {
51
+ V(I);
52
+ } catch {
53
+ return !1;
54
+ }
55
+ return !0;
56
+ }, [V, I]), U = (e) => {
57
+ k || e.target?.select(), A(!0);
58
+ };
59
+ return u(l, {
60
+ title: O("tableNew.title"),
61
+ options: x,
62
+ onDone: B,
63
+ onValidateOption: H,
64
+ defaultOption: S,
65
+ cancelOption: C,
66
+ autoFocusSel: ".autoFocus",
67
+ suspendModal: z,
68
+ sx: {
69
+ width: "360px",
70
+ ...w
71
+ },
72
+ ...D,
73
+ children: d(f, {
74
+ sx: {
75
+ paddingTop: (e) => e.spacing(1),
76
+ paddingBottom: (e) => e.spacing(0),
77
+ rowGap: (e) => e.spacing(1),
78
+ display: "flex",
79
+ flexDirection: "column"
80
+ },
81
+ children: [
82
+ u(t, {
83
+ formName: "name",
84
+ value: I,
85
+ onChangeInput: L,
86
+ onValidate: V,
87
+ onFocus: U
88
+ }),
89
+ u(e, {
90
+ grammar: "reference",
91
+ classNameInput: "autoFocus",
92
+ formName: "range",
93
+ value: N,
94
+ allowMulti: !1,
95
+ allowCrossSheet: !1,
96
+ home: R,
97
+ onChangeInput: (e) => P(e?.getReferences() ?? null),
98
+ onFocus: U
99
+ }),
100
+ u(m, {
101
+ sx: { marginTop: (e) => e.spacing(-1) },
102
+ control: u(p, {
103
+ checked: j,
104
+ onChange: () => M(!j),
105
+ sx: {
106
+ paddingTop: .5,
107
+ paddingBottom: .5
108
+ }
109
+ }),
110
+ label: O("tableNew.hasHeaders"),
111
+ labelPlacement: "end"
112
+ })
113
+ ]
114
+ })
115
+ });
116
+ });
117
+ export { _ as TableNewDialog, _ as default };