@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,319 @@
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 "./CSAnTp5rwId0DUb8.mjs";
8
+ import { PresetChip as t } from "./index.mjs";
9
+ import { externalBookFileName as n, externalBookLocation as r } from "@sheetxl/sdk";
10
+ import { DynamicIcon as a, NotifierType as i, useNotifier as l, useTranslator as s } from "@sheetxl/utils-react";
11
+ import { forwardRef as o, memo as d, useMemo as c, useReducer as h, useState as x } from "react";
12
+ import { SimpleTooltip as m } from "@sheetxl/utils-mui";
13
+ import { jsx as u, jsxs as g } from "react/jsx-runtime";
14
+ import { Box as p, Button as k, FormControl as f, FormControlLabel as b, FormLabel as y, Radio as L, RadioGroup as w, Tab as v, Tabs as S, Typography as C } from "@mui/material";
15
+ import { messageKey as W } from "@sheetxl/utils";
16
+ var E = ({ item: e }) => {
17
+ const t = s(), n = e.getSheetNames(), r = [];
18
+ let a = !1;
19
+ for (let t = 0; t < n.length; t++) {
20
+ const i = e.getSheetData(t);
21
+ i && (r.push(n[t]), i.refreshError && (a = !0));
22
+ }
23
+ return g(p, {
24
+ sx: {
25
+ display: "flex",
26
+ flexDirection: "column",
27
+ gap: (e) => e.spacing(.5)
28
+ },
29
+ children: [
30
+ u(C, {
31
+ variant: "caption",
32
+ sx: { color: "text.secondary" },
33
+ children: r.length > 0 ? t("externalLink.cached", { sheets: r.join(", ") }) : t("externalLink.cachedNone")
34
+ }),
35
+ a ? u(C, {
36
+ variant: "caption",
37
+ sx: { color: "error.main" },
38
+ children: t("externalLink.refreshError")
39
+ }) : null,
40
+ u(C, {
41
+ variant: "caption",
42
+ sx: { color: "text.secondary" },
43
+ children: t("externalLink.dependents", { count: e.getDependents().length })
44
+ })
45
+ ]
46
+ });
47
+ }, M = d((e) => {
48
+ const { size: n = 28, ...r } = e, i = s();
49
+ return u(t, {
50
+ className: "sxl-external-link-chip",
51
+ title: i("externalLink.linkedWorkbook"),
52
+ sx: {
53
+ width: "auto",
54
+ minWidth: 1.7 * n + "px",
55
+ height: `${n}px`,
56
+ color: "text.secondary"
57
+ },
58
+ ...r,
59
+ children: u(a, {
60
+ iconKey: "ExternalLinked",
61
+ size: Math.round(.7 * n)
62
+ })
63
+ });
64
+ });
65
+ M.displayName = "ExternalLinkChip";
66
+ var N = ({ item: e }) => {
67
+ const t = r(e);
68
+ if (!t) return null;
69
+ const n = Math.max(t.lastIndexOf("/"), t.lastIndexOf("\\")), a = -1 === n ? "" : t.substring(0, n + 1), i = -1 === n ? t : t.substring(n + 1);
70
+ return u(m, {
71
+ title: t,
72
+ children: g(p, {
73
+ className: "sxl-external-link-location",
74
+ sx: {
75
+ display: "flex",
76
+ alignItems: "baseline",
77
+ minWidth: 0,
78
+ typography: "subtitle2",
79
+ fontWeight: 600
80
+ },
81
+ children: [a ? u(C, {
82
+ variant: "subtitle2",
83
+ sx: {
84
+ fontWeight: 600,
85
+ minWidth: 0,
86
+ overflow: "hidden",
87
+ textOverflow: "ellipsis",
88
+ whiteSpace: "nowrap"
89
+ },
90
+ children: a
91
+ }) : null, u(C, {
92
+ variant: "subtitle2",
93
+ sx: {
94
+ fontWeight: 600,
95
+ flex: "0 0 auto",
96
+ whiteSpace: "nowrap"
97
+ },
98
+ children: i
99
+ })]
100
+ })
101
+ });
102
+ }, A = d(o((t, r) => {
103
+ const { workbook: a, ...o } = t, d = s(), h = l(), x = c(() => ({
104
+ key: "external-link",
105
+ messageKeys: {
106
+ none: W("externalLink.none"),
107
+ delete: W("externalLink.breakLink"),
108
+ search: W("externalLink.search"),
109
+ clearSearch: W("externalLink.clearSearch"),
110
+ noMatches: W("externalLink.noMatches")
111
+ },
112
+ getItems: (e) => e.getExternalBooks().getItems(),
113
+ subscribe: (e, t) => {
114
+ const n = e.getExternalBooks().addListeners({ onCollectionChange: () => t.onChange() }, { transactional: !1 }), r = e.getCalculation().addListeners({ onComplete: () => t.onChange() }, { transactional: !1 }), a = e.addListeners({ onProtectionChange: () => t.onChange() }, { transactional: !1 });
115
+ return () => {
116
+ n?.(), r?.(), a?.();
117
+ };
118
+ },
119
+ isReadOnly: (e) => !e.getProtection().isStructureAllowed(),
120
+ getItemKey: (e) => e.getId(),
121
+ delete: (e, t) => {
122
+ e.breakLink();
123
+ },
124
+ getSearchText: (e) => [
125
+ n(e),
126
+ e.getDisplayName(),
127
+ ...e.getSheetNames(),
128
+ ...e.getSources().map((e) => e.target)
129
+ ].join("\n"),
130
+ CardMedia: () => u(M, { size: 32 }),
131
+ getCardTitle: (e) => n(e),
132
+ CardSubtitle: N,
133
+ CardBody: (e) => u(E, { ...e })
134
+ }), []), m = !a.getProtection().isStructureAllowed(), f = a.getExternalBooks().getCount() > 0, b = c(() => {
135
+ const e = {
136
+ flex: "0 0 auto",
137
+ textTransform: "none",
138
+ whiteSpace: "nowrap"
139
+ };
140
+ return g(p, {
141
+ sx: {
142
+ display: "flex",
143
+ gap: .5,
144
+ flex: "0 0 auto"
145
+ },
146
+ children: [u(k, {
147
+ size: "small",
148
+ disabled: m || !f,
149
+ sx: e,
150
+ onClick: () => {
151
+ a.getExternalBooks().refreshAll().then((e) => {
152
+ const t = {
153
+ refreshed: 0,
154
+ failed: 0,
155
+ unavailable: 0
156
+ };
157
+ for (const n of e) t[n.status]++;
158
+ 0 === t.refreshed && 0 === t.failed ? h.showMessage?.(d("externalLink.refreshUnavailable"), { type: i.Warning }) : h.showMessage?.(d("externalLink.refreshSummary", t), { type: t.failed ? i.Warning : i.Info });
159
+ }, (e) => {
160
+ h.showMessage?.(e.message, { type: i.Error });
161
+ });
162
+ },
163
+ children: d("externalLink.refreshAll")
164
+ }), u(k, {
165
+ size: "small",
166
+ disabled: m || !f,
167
+ sx: e,
168
+ onClick: () => {
169
+ try {
170
+ a.getExternalBooks().breakAll();
171
+ } catch (e) {
172
+ h.showMessage?.(e.message, { type: i.Error });
173
+ }
174
+ },
175
+ children: d("externalLink.breakAll")
176
+ })]
177
+ });
178
+ }, [
179
+ a,
180
+ m,
181
+ f,
182
+ h,
183
+ d
184
+ ]);
185
+ return u(e, {
186
+ ref: r,
187
+ workbook: a,
188
+ descriptor: x,
189
+ headerActions: b,
190
+ ...o
191
+ });
192
+ }));
193
+ A.displayName = "ExternalLinksPanel";
194
+ var I = [
195
+ "userSet",
196
+ "always",
197
+ "never"
198
+ ], T = {
199
+ userSet: W("externalLink.updateLinks.userSet"),
200
+ always: W("externalLink.updateLinks.always"),
201
+ never: W("externalLink.updateLinks.never")
202
+ }, z = d(o((e, t) => {
203
+ const { workbook: n, ...r } = e, a = s(), [i, l] = h((e) => e + 1, 0), o = n.getUpdateLinks() ?? "userSet", d = !n.getProtection().isStructureAllowed();
204
+ return g(p, {
205
+ ref: t,
206
+ ...r,
207
+ sx: {
208
+ display: "flex",
209
+ flexDirection: "column",
210
+ boxSizing: "border-box",
211
+ gap: (e) => e.spacing(1.5),
212
+ padding: (e) => e.spacing(1.5),
213
+ overflowX: "hidden",
214
+ overflowY: "auto"
215
+ },
216
+ children: [g(f, {
217
+ disabled: d,
218
+ children: [u(y, {
219
+ sx: { typography: "body2" },
220
+ children: a("externalLink.updateLinks.label")
221
+ }), u(w, {
222
+ value: o,
223
+ onChange: (e, t) => {
224
+ n.setUpdateLinks(t), l();
225
+ },
226
+ children: I.map((e) => u(b, {
227
+ value: e,
228
+ control: u(L, { size: "small" }),
229
+ label: u(C, {
230
+ variant: "body2",
231
+ children: a(T[e])
232
+ })
233
+ }, e))
234
+ })]
235
+ }), u(C, {
236
+ variant: "caption",
237
+ sx: { color: "text.secondary" },
238
+ children: a("externalLink.updateLinks.note")
239
+ })]
240
+ });
241
+ }));
242
+ z.displayName = "ExternalLinkSettingsTab";
243
+ var B = {
244
+ links: W("externalLink.tab.links"),
245
+ settings: W("externalLink.tab.settings")
246
+ }, D = Object.keys(B), j = (e) => D.includes(e) ? e : null, H = d((e) => {
247
+ const { model: t, args: n, defaultTab: r = "links", entryKey: a, frame: i, ref: l, ...o } = e, d = s(), [c, h] = x(() => j(n?.tab) ?? r), [m, k] = x(n);
248
+ if (n !== m) {
249
+ k(n);
250
+ const e = j(n?.tab);
251
+ e && h(e);
252
+ }
253
+ return t ? g(p, {
254
+ ref: l,
255
+ ...o,
256
+ sx: {
257
+ display: "flex",
258
+ flexDirection: "column",
259
+ width: "100%",
260
+ minWidth: 0,
261
+ flex: "1 1 auto",
262
+ height: "100%",
263
+ minHeight: 0,
264
+ overflowX: "hidden"
265
+ },
266
+ children: [u(S, {
267
+ value: c,
268
+ onChange: (e, t) => h(t),
269
+ variant: "fullWidth",
270
+ sx: {
271
+ width: "100%",
272
+ flex: "0 0 auto",
273
+ minHeight: "36px",
274
+ borderBottom: 1,
275
+ borderColor: "divider",
276
+ "& .MuiTab-root": {
277
+ minHeight: "36px",
278
+ textTransform: "none",
279
+ pt: .5,
280
+ pb: .5,
281
+ px: .5,
282
+ minWidth: 0
283
+ }
284
+ },
285
+ children: D.map((e) => u(v, {
286
+ value: e,
287
+ label: d(B[e])
288
+ }, e))
289
+ }), g(p, {
290
+ sx: {
291
+ flex: "1 1 auto",
292
+ minHeight: 0,
293
+ minWidth: 0,
294
+ width: "100%",
295
+ display: "flex",
296
+ flexDirection: "column"
297
+ },
298
+ children: ["links" === c ? u(A, {
299
+ workbook: t,
300
+ style: {
301
+ flex: "1 1 auto",
302
+ minHeight: 0,
303
+ minWidth: 0,
304
+ width: "100%"
305
+ }
306
+ }) : null, "settings" === c ? u(z, {
307
+ workbook: t,
308
+ style: {
309
+ flex: "1 1 auto",
310
+ minHeight: 0,
311
+ minWidth: 0,
312
+ width: "100%"
313
+ }
314
+ }) : null]
315
+ })]
316
+ }) : null;
317
+ });
318
+ H.displayName = "ExternalLinksTaskPane";
319
+ export { H as ExternalLinksTaskPane, H as default };
@@ -0,0 +1,380 @@
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, r as t, t as a } from "./BIMkjQUwG4Ih-6Sh.mjs";
8
+ import { ItemCard as r, ItemsSearchField as n, f as s, u as i } from "./index.mjs";
9
+ import { DynamicIcon as l, NotifierType as o, useNotifier as c, useTranslator as d } from "@sheetxl/utils-react";
10
+ import { forwardRef as p, memo as g, useCallback as u, useEffect as m, useMemo as f, useReducer as h, useRef as x, useState as y } from "react";
11
+ import { SimpleTooltip as v } from "@sheetxl/utils-mui";
12
+ import { jsx as b, jsxs as w } from "react/jsx-runtime";
13
+ import { Box as C, Button as M, IconButton as S, Typography as B } from "@mui/material";
14
+ import D from "clsx";
15
+ import { useMergeRefs as I } from "react-merge-refs";
16
+ var k = g((e) => {
17
+ const { children: t, messageKeys: a, onSave: r, onCancel: n, className: l, ...o } = e, c = d(), p = x(/* @__PURE__ */ new Set()), g = f(() => ({ register: (e) => (p.current.add(e), () => {
18
+ p.current.delete(e);
19
+ }) }), []), m = u(() => {
20
+ let e = !0;
21
+ for (const t of Array.from(p.current)) t() || (e = !1);
22
+ e && r();
23
+ }, [r]), h = f(() => D("sxl-items-editor", "sxl-anchor-items-editor", l, {}, s.editor), [l]);
24
+ return w(C, {
25
+ sx: {
26
+ display: "flex",
27
+ flexDirection: "column",
28
+ justifyContent: "space-between",
29
+ height: "100%",
30
+ gap: (e) => e.spacing(2)
31
+ },
32
+ ...o,
33
+ className: h,
34
+ children: [b(i.Provider, {
35
+ value: g,
36
+ children: t
37
+ }), b(C, {
38
+ className: s["editor-buttons"],
39
+ sx: {
40
+ gap: (e) => e.spacing(1),
41
+ paddingTop: (e) => e.spacing(2),
42
+ borderTop: (e) => `1px solid ${e.palette.divider}`
43
+ },
44
+ children: w(C, {
45
+ sx: {
46
+ display: "grid",
47
+ gridAutoFlow: "column",
48
+ gridAutoColumns: "1fr",
49
+ gap: (e) => e.spacing(1)
50
+ },
51
+ children: [b(M, {
52
+ variant: "outlined",
53
+ onClick: n,
54
+ children: c(a.cancel)
55
+ }), b(M, {
56
+ variant: "contained",
57
+ onClick: m,
58
+ children: c(a.save)
59
+ })]
60
+ })
61
+ })]
62
+ });
63
+ });
64
+ k.displayName = "EditorPanel";
65
+ var E = .5, T = 0, R = /* @__PURE__ */ new WeakMap(), N = g(p((i, p) => {
66
+ const { title: g, workbook: N, descriptor: j, args: O, headerActions: K, listActions: L, dragReorder: P = !1, className: A, ...F } = i, W = d(), $ = c(), U = j.messageKeys, X = f(() => {
67
+ const { createDraft: e, save: t, EditorBody: a } = j;
68
+ return e && t && a && U.cancel && U.save ? {
69
+ createDraft: e,
70
+ commit: t,
71
+ EditorBody: a,
72
+ keys: {
73
+ cancel: U.cancel,
74
+ save: U.save
75
+ }
76
+ } : null;
77
+ }, [j, U]), [Y, q] = y(!1), [z, G] = y(null), [H, J] = y(""), Q = x(null), V = x(null), [Z, _] = h((e) => e + 1, 0);
78
+ m(() => j.subscribe(N, {
79
+ onChange: () => _(),
80
+ onInvalidated: () => {
81
+ G(null), _();
82
+ }
83
+ }), [N, j]);
84
+ const ee = x(void 0);
85
+ m(() => {
86
+ if (ee.current === O) return;
87
+ ee.current = O;
88
+ const e = O?.draft;
89
+ try {
90
+ let t = null, a = null;
91
+ void 0 !== e ? j.isReadOnly(N) || (t = j.createSeededDraft?.(N, e) ?? null) : O?.insert && X && !j.isReadOnly(N) ? t = X.createDraft(N) : void 0 !== O?.edit && X && !j.isReadOnly(N) && (a = O.edit, t = X.createDraft(N, a)), t && G({
92
+ draft: t,
93
+ target: a
94
+ });
95
+ } catch (e) {
96
+ $.showMessage?.(e.message, { type: o.Error });
97
+ }
98
+ }, [
99
+ O,
100
+ N,
101
+ j,
102
+ X,
103
+ $
104
+ ]);
105
+ const te = x(N);
106
+ te.current !== N && (te.current = N, null !== z && G(null));
107
+ const ae = j.isReadOnly(N), re = !ae && null !== X, ne = P && !ae && !!j.moveBy, se = x(!1);
108
+ t(V, ne, se);
109
+ const ie = u((e, t) => {
110
+ const a = j.getItems(N)[e];
111
+ if (void 0 !== a) {
112
+ se.current = !0;
113
+ try {
114
+ j.moveBy(a, t - e, N);
115
+ } catch (e) {
116
+ se.current = !1, $.showMessage?.(e.message, { type: o.Error });
117
+ }
118
+ }
119
+ }, [
120
+ j,
121
+ N,
122
+ $
123
+ ]), le = u(async () => {
124
+ if (z && X) {
125
+ try {
126
+ await j.beforeSave?.(z.draft);
127
+ const e = j.validate?.(z.draft) ?? null;
128
+ if (e) return void $.showMessage?.(W(e), { type: o.Error });
129
+ await X.commit(N, z.draft, z.target);
130
+ } catch (e) {
131
+ $.showMessage?.(e.message, { type: o.Error });
132
+ return;
133
+ }
134
+ G(null);
135
+ }
136
+ }, [
137
+ z,
138
+ j,
139
+ X,
140
+ N,
141
+ $,
142
+ W
143
+ ]), oe = f(() => {
144
+ const t = j.getItems(N), s = !!j.getSearchText, i = s ? H.trim().toLowerCase() : "", c = i ? t.filter((e) => j.getSearchText(e, W).toLowerCase().includes(i)) : t, d = ne && !i, p = [];
145
+ if (0 === t.length) return p.push(b(C, { sx: { flex: "1 1 0" } }, "spacer-top")), p.push(w(C, {
146
+ sx: {
147
+ display: "flex",
148
+ flex: "0 0 auto",
149
+ flexDirection: "column",
150
+ alignItems: "center",
151
+ alignSelf: "center",
152
+ gap: (e) => e.spacing(2.5),
153
+ maxWidth: "min(360px, 90%)"
154
+ },
155
+ children: [b(B, {
156
+ variant: "body2",
157
+ align: "center",
158
+ children: re && U.addPrompt ? W(U.addPrompt) : W(U.none)
159
+ }), re && U.new && b(M, {
160
+ variant: "contained",
161
+ sx: { textTransform: "none" },
162
+ onClick: () => {
163
+ G({
164
+ draft: X.createDraft(N),
165
+ target: null
166
+ });
167
+ },
168
+ children: W(U.new)
169
+ })]
170
+ }, "no-items")), p.push(b(C, { sx: { flex: "1.5 1 0" } }, "spacer-bottom")), (K || L) && p.unshift(w(C, {
171
+ sx: {
172
+ display: "flex",
173
+ alignItems: "center",
174
+ justifyContent: "flex-end",
175
+ flex: "0 0 auto"
176
+ },
177
+ children: [K, L]
178
+ }, "header-actions")), p;
179
+ if (p.push(w(C, {
180
+ sx: {
181
+ display: "flex",
182
+ alignItems: "center",
183
+ justifyContent: "center"
184
+ },
185
+ children: [
186
+ b(C, {
187
+ sx: { flex: "1 1 100%" },
188
+ children: U.heading ? b(B, {
189
+ variant: "body2",
190
+ children: W(U.heading)
191
+ }) : null
192
+ }),
193
+ K,
194
+ re && U.insert && b(v, {
195
+ disableInteractive: !0,
196
+ title: W(U.insert),
197
+ children: b(S, {
198
+ onClick: (e) => {
199
+ e.stopPropagation(), G({
200
+ draft: X.createDraft(N),
201
+ target: null
202
+ });
203
+ },
204
+ children: b(l, { iconKey: "Insert" })
205
+ })
206
+ }, "add-new")
207
+ ]
208
+ }, "add-new")), s && p.push(b(n, {
209
+ value: H,
210
+ onChange: J,
211
+ placeholder: U.search ? W(U.search) : void 0,
212
+ clearLabel: U.clearSearch ? W(U.clearSearch) : void 0,
213
+ sx: {
214
+ flexShrink: 0,
215
+ mx: E
216
+ }
217
+ }, "search")), L && p.push(b(C, {
218
+ sx: {
219
+ display: "flex",
220
+ alignItems: "center",
221
+ justifyContent: "flex-end",
222
+ flex: "0 0 auto",
223
+ mx: E,
224
+ mt: -.5
225
+ },
226
+ children: L
227
+ }, "list-actions")), 0 === c.length) return p.push(b(C, { sx: { flex: "1 1 0" } }, "spacer-top")), p.push(b(B, {
228
+ variant: "body2",
229
+ align: "center",
230
+ sx: {
231
+ color: "text.secondary",
232
+ alignSelf: "center",
233
+ maxWidth: "min(360px, 90%)"
234
+ },
235
+ children: U.noMatches ? W(U.noMatches) : null
236
+ }, "no-matches")), p.push(b(C, { sx: { flex: "1.5 1 0" } }, "spacer-bottom")), p;
237
+ const g = c.map((e) => j.getItemKey?.(e) ?? ((e) => {
238
+ let t = R.get(e);
239
+ return void 0 === t && (t = "item-" + T++, R.set(e, t)), t;
240
+ })(e)), u = [];
241
+ c.forEach((e, n) => {
242
+ const s = j.isItemReadOnly?.(e, N) ?? ae, l = i ? t.indexOf(e) : n, c = b(r, {
243
+ item: e,
244
+ messageKeys: U,
245
+ title: j.getCardTitle(e, W),
246
+ subtitle: j.getCardSubtitle?.(e, W),
247
+ Subtitle: j.CardSubtitle,
248
+ readOnly: s,
249
+ canMoveUp: l > 0,
250
+ canMoveDown: l < t.length - 1,
251
+ onMoveBy: j.moveBy ? (t) => j.moveBy(e, t, N) : void 0,
252
+ onDuplicate: j.duplicate ? () => {
253
+ try {
254
+ j.duplicate(e, N);
255
+ } catch (e) {
256
+ $.showMessage?.(e.message, { type: o.Error });
257
+ }
258
+ } : void 0,
259
+ onDelete: () => {
260
+ try {
261
+ j.delete(e, N);
262
+ } catch (e) {
263
+ $.showMessage?.(e.message, { type: o.Error });
264
+ }
265
+ },
266
+ onEdit: X ? () => G({
267
+ draft: X.createDraft(N, e),
268
+ target: e
269
+ }) : void 0,
270
+ onSelect: j.select ? () => {
271
+ try {
272
+ j.select(e, N);
273
+ } catch (e) {
274
+ $.showMessage?.(e.message, { type: o.Error });
275
+ }
276
+ } : void 0,
277
+ subscribeItem: j.subscribeItem,
278
+ Media: j.CardMedia,
279
+ Body: j.CardBody
280
+ }, g[n]);
281
+ u.push(d ? b(a, {
282
+ id: g[n],
283
+ disabled: s,
284
+ children: c
285
+ }, g[n]) : c);
286
+ });
287
+ const m = b(C, {
288
+ ref: V,
289
+ sx: {
290
+ display: "flex",
291
+ flex: "1 1 auto",
292
+ flexDirection: "column",
293
+ overflowY: "auto",
294
+ overflowX: "visible",
295
+ paddingLeft: (e) => e.spacing(E),
296
+ paddingRight: (e) => e.spacing(E),
297
+ paddingTop: (e) => e.spacing(E),
298
+ paddingBottom: (e) => e.spacing(E),
299
+ gap: (e) => e.spacing(1.5)
300
+ },
301
+ children: u
302
+ }, "list-container");
303
+ return p.push(d ? b(e, {
304
+ ids: g,
305
+ onMove: ie,
306
+ scrollRef: V,
307
+ children: m
308
+ }, "list-container") : m), p;
309
+ }, [
310
+ Z,
311
+ W,
312
+ ae,
313
+ re,
314
+ X,
315
+ N,
316
+ j,
317
+ K,
318
+ L,
319
+ $,
320
+ ne,
321
+ ie,
322
+ H
323
+ ]), ce = f(() => D("sxl-items-details", "sxl-anchor-items-details", `sxl-${j.key}-details`, A, {
324
+ editing: null !== z,
325
+ "sxl-has-focus": Y,
326
+ "sxl-read-only": ae
327
+ }, s["details-panel"]), [
328
+ A,
329
+ Y,
330
+ ae,
331
+ z,
332
+ j
333
+ ]), de = I([Q, p]);
334
+ if (null !== z && X) {
335
+ const e = X.EditorBody;
336
+ return b(C, {
337
+ onFocus: () => q(!0),
338
+ onBlur: (e) => {
339
+ Q?.current?.contains(e.relatedTarget) || q(!1);
340
+ },
341
+ ref: de,
342
+ sx: {
343
+ paddingLeft: (e) => e.spacing(1.5),
344
+ paddingRight: (e) => e.spacing(1.5),
345
+ paddingTop: (e) => e.spacing(1.5),
346
+ paddingBottom: (e) => e.spacing(1.5)
347
+ },
348
+ className: ce,
349
+ ...F,
350
+ children: b(k, {
351
+ messageKeys: X.keys,
352
+ onSave: le,
353
+ onCancel: () => G(null),
354
+ children: b(e, {
355
+ draft: z.draft,
356
+ workbook: N
357
+ })
358
+ })
359
+ });
360
+ }
361
+ return b(C, {
362
+ onFocus: () => q(!0),
363
+ onBlur: (e) => {
364
+ Q?.current?.contains(e.relatedTarget) || q(!1);
365
+ },
366
+ ref: de,
367
+ sx: {
368
+ gap: (e) => e.spacing(1),
369
+ paddingLeft: (e) => e.spacing(1.5),
370
+ paddingRight: (e) => e.spacing(1.5),
371
+ paddingTop: (e) => e.spacing(1.5),
372
+ paddingBottom: (e) => e.spacing(1.5)
373
+ },
374
+ className: ce,
375
+ ...F,
376
+ children: oe
377
+ });
378
+ }));
379
+ N.displayName = "ItemsPanel";
380
+ export { N as t };