@sheetxl/studio-mui 0.7.28-beta.4 → 0.8.0-beta.10

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 (243) hide show
  1. package/browser/esm/{Drbpg4A9TaJUZd5A.mjs → 5cbK03T_Oh3tNdR7.mjs} +7 -5
  2. package/browser/esm/{GCJRjX28QYfxi-Lg.mjs → 9eKCkvqpMQwqcXiw.mjs} +1 -1
  3. package/browser/esm/B1Yp_uy1vFHcJB3U.mjs +13 -0
  4. package/browser/esm/Biy7bhzzzPb5sfRN.mjs +152 -0
  5. package/browser/esm/Blaj2R5hYxtLAW__.mjs +117 -0
  6. package/browser/esm/{CVxEcB8lAnOQ-oPh.mjs → ByeL_BZuJ2kl8gtf.mjs} +46 -47
  7. package/browser/esm/{BLjxQ1NUjmULb00s.mjs → C1Rp2hZrApo5MUc8.mjs} +2 -2
  8. package/browser/esm/{C7WFuxTBA8MWoOQj.mjs → CEvZe2cZK-voZTif.mjs} +5 -5
  9. package/browser/esm/{RbGJTMzxMTlkFlTq.mjs → CIu1bjPJe_x31Oww.mjs} +195 -174
  10. package/browser/esm/COv-m-c2byCgvU3M.mjs +14861 -0
  11. package/browser/esm/CjznclrKqJRi7u9O.mjs +77 -0
  12. package/browser/esm/{DoOWIBDSfgrvMmNO.mjs → CoSiOS-og0zFw4Ws.mjs} +587 -556
  13. package/browser/esm/{6GrWBX-cyxTRJerw.mjs → CtEFHbzYNvYjDYvi.mjs} +7 -7
  14. package/browser/esm/D6S8kVTzOjCn0-SK.mjs +627 -0
  15. package/browser/esm/{BVC0iuc28yuEcyua.mjs → D8al_cJ4U-NgzwoK.mjs} +1 -1
  16. package/browser/esm/DBtc4lku0uHVcqWn.mjs +71 -0
  17. package/browser/esm/{CDyYtk9WscSzj5I5.mjs → DHY19rkSiiRZxShC.mjs} +130 -103
  18. package/browser/esm/{DdbgnOWM0tle1jeT.mjs → DU3J8Gcf-WpBxNYg.mjs} +11 -10
  19. package/browser/esm/Die9NXVFveHvcCT-.mjs +4205 -0
  20. package/browser/esm/{CccE_2DTbTMNIfQM.mjs → DmCQbW4zwkT_Rq88.mjs} +1 -1
  21. package/browser/esm/IQLeaAbtGTipUsOD.mjs +516 -0
  22. package/browser/esm/{DhMl3LbgjdX8Nz7b.mjs → X1Db3b_7b_7OuCk6.mjs} +178 -129
  23. package/browser/esm/fb126BNj3F8URR19.mjs +225 -0
  24. package/browser/esm/index.mjs +418 -135
  25. package/browser/esm/sFOAxZpxXo-qvDSp.mjs +293 -0
  26. package/browser/esm/sam1KGQZ59B_fADz.mjs +1941 -0
  27. package/browser/esm/xKiLJKiLxto8SayF.mjs +256 -0
  28. package/browser/esm/yZxC4qUENOlMhVUH.mjs +68 -0
  29. package/licenses/dependencies.txt +58 -311
  30. package/node/esm/B8SQfjKjzYHLxzZR.mjs +632 -0
  31. package/node/esm/{CgA8rdWVZEpIUpsM.mjs → BYVLi0md4AYuDsB_.mjs} +1 -1
  32. package/node/esm/BYsG3KYVmxSe_CIQ.mjs +294 -0
  33. package/node/esm/BYwXhrEwkRAt9nJS.mjs +71 -0
  34. package/node/esm/B_jRGdwGFkudwmL-.mjs +68 -0
  35. package/node/esm/Bb1sLMqXWKjdve23.mjs +77 -0
  36. package/node/esm/{ELTc6e1FF88hBAev.mjs → BcwMb6CyVfvEwbHn.mjs} +69 -70
  37. package/node/esm/{DYlYrd0A73WoQQgM.mjs → CKu1AtRgyltyEdEN.mjs} +1 -1
  38. package/node/esm/Cmt8Wv806N7NmE4Y.mjs +3344 -0
  39. package/node/esm/{6PuhMTJrzLciGI0Z.mjs → D6oQL8knsPpgdXuk.mjs} +2 -2
  40. package/node/esm/{BxTFDoMd-nowfxfb.mjs → D9rzScOA9pEYFrtz.mjs} +1 -1
  41. package/node/esm/DNSjK5DAH3M14Qbc.mjs +521 -0
  42. package/node/esm/{C2HawKeialuFRR9r.mjs → DZzvTQxIKr9LbEsA.mjs} +1 -1
  43. package/node/esm/{uJOy7zjNtP0IqGoa.mjs → ETK6T6G0SIcFXDe5.mjs} +163 -135
  44. package/node/esm/ah3CUg4-VmNstGk_.mjs +256 -0
  45. package/node/esm/{DPhvWXmDun8bC0_v.mjs → ci8d-mF1H9wnYzix.mjs} +1 -1
  46. package/node/esm/cqzp431iNSLWictb.mjs +116 -0
  47. package/node/esm/index.mjs +14783 -6793
  48. package/package.json +15 -18
  49. package/resources/locales/de/groups.cmd.json +29 -16
  50. package/resources/locales/de/studio.cmd.json +18 -1
  51. package/resources/locales/de/ui.msg.json +350 -40
  52. package/resources/locales/en/groups.cmd.json +39 -17
  53. package/resources/locales/en/studio.cmd.json +18 -1
  54. package/resources/locales/en/ui.msg.json +306 -40
  55. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +17 -1
  56. package/types/src/anchorItems/AnchorItemsPanel.d.ts +14 -0
  57. package/types/src/anchorItems/AnchoredRangeField.d.ts +40 -0
  58. package/types/src/anchorItems/index.d.ts +1 -0
  59. package/types/src/border/BorderPopupButton.d.ts +6 -6
  60. package/types/src/border/BorderStylePopupButton.d.ts +3 -3
  61. package/types/src/border/BorderTemplateIcon.d.ts +24 -0
  62. package/types/src/border/index.d.ts +1 -0
  63. package/types/src/color/ColorPanel.d.ts +8 -2
  64. package/types/src/color/ColorPopupButton.d.ts +2 -1
  65. package/types/src/command/NumberFormatQuickButtons.d.ts +32 -0
  66. package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
  67. package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
  68. package/types/src/comments/CommentCard.d.ts +41 -0
  69. package/types/src/comments/CommentsPlugin.d.ts +6 -0
  70. package/types/src/comments/CommentsTaskPane.d.ts +23 -0
  71. package/types/src/comments/index.d.ts +4 -0
  72. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
  73. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +2 -2
  74. package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
  75. package/types/src/conditions/BetweenOption.d.ts +6 -1
  76. package/types/src/conditions/CombinatorOption.d.ts +7 -0
  77. package/types/src/conditions/ConditionEditor.d.ts +61 -4
  78. package/types/src/conditions/ConditionUtils.d.ts +65 -6
  79. package/types/src/conditions/ExpressionOption.d.ts +12 -6
  80. package/types/src/conditions/MembershipOption.d.ts +67 -0
  81. package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
  82. package/types/src/conditions/ScalarOption.d.ts +25 -6
  83. package/types/src/conditions/SelectorSelect.d.ts +16 -7
  84. package/types/src/conditions/index.d.ts +1 -1
  85. package/types/src/conditions/useFormulaOption.d.ts +54 -0
  86. package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +7 -1
  87. package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -2
  88. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +13 -2
  89. package/types/src/dataValidation/DataValidationIcon.d.ts +22 -0
  90. package/types/src/dataValidation/DataValidationTitle.d.ts +13 -0
  91. package/types/src/dialog/FillSeriesDialog.d.ts +16 -0
  92. package/types/src/dialog/OutlineSettingsDialog.d.ts +12 -0
  93. package/types/src/dialog/TableNewDialog.d.ts +1 -4
  94. package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
  95. package/types/src/dialog/index.d.ts +0 -2
  96. package/types/src/externalLink/ExternalLinkCardBody.d.ts +9 -0
  97. package/types/src/externalLink/ExternalLinkChip.d.ts +18 -0
  98. package/types/src/externalLink/ExternalLinkLocation.d.ts +18 -0
  99. package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +18 -0
  100. package/types/src/externalLink/ExternalLinksPanel.d.ts +11 -0
  101. package/types/src/externalLink/ExternalLinksPlugin.d.ts +5 -0
  102. package/types/src/externalLink/ExternalLinksTaskPane.d.ts +19 -0
  103. package/types/src/externalLink/index.d.ts +8 -0
  104. package/types/src/fill/GradientEditor.d.ts +41 -0
  105. package/types/src/fill/GradientStopsBar.d.ts +43 -0
  106. package/types/src/fill/PatternPopupButton.d.ts +26 -0
  107. package/types/src/fill/PatternSwatch.d.ts +53 -0
  108. package/types/src/fill/index.d.ts +5 -0
  109. package/types/src/filter/ColumnMenu.d.ts +31 -1
  110. package/types/src/filter/index.d.ts +0 -1
  111. package/types/src/form/FormulaField.d.ts +35 -6
  112. package/types/src/form/InputField.d.ts +35 -5
  113. package/types/src/format/AlignmentPanel.d.ts +13 -0
  114. package/types/src/format/BorderPanel.d.ts +22 -0
  115. package/types/src/format/BorderPreview.d.ts +94 -0
  116. package/types/src/format/FillPanel.d.ts +65 -0
  117. package/types/src/format/FontPanel.d.ts +12 -0
  118. package/types/src/format/FormatCellPreview.d.ts +35 -0
  119. package/types/src/format/FormatPanelParts.d.ts +85 -0
  120. package/types/src/format/FormatPlugin.d.ts +11 -0
  121. package/types/src/format/FormatTaskPane.d.ts +39 -0
  122. package/types/src/format/LinePanel.d.ts +53 -0
  123. package/types/src/format/LinePreviews.d.ts +71 -0
  124. package/types/src/format/NumberFormatOption.d.ts +43 -0
  125. package/types/src/{numberFormat → format}/NumberFormatPanel.d.ts +20 -0
  126. package/types/src/format/index.d.ts +14 -0
  127. package/types/src/format/useFormatSelection.d.ts +93 -0
  128. package/types/src/formulaBar/IFormulaBar.d.ts +11 -0
  129. package/types/src/formulaBar/MobileFormulaBar.d.ts +21 -0
  130. package/types/src/formulaBar/MobileInputToolbar.d.ts +37 -0
  131. package/types/src/formulaBar/index.d.ts +3 -0
  132. package/types/src/formulaBar/useFormulaBarSession.d.ts +65 -0
  133. package/types/src/index.d.ts +7 -1
  134. package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
  135. package/types/src/itemsPanel/EditorPanel.d.ts +4 -1
  136. package/types/src/itemsPanel/ItemCard.d.ts +60 -8
  137. package/types/src/itemsPanel/ItemsDescriptor.d.ts +68 -19
  138. package/types/src/itemsPanel/ItemsPanel.d.ts +9 -0
  139. package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
  140. package/types/src/itemsPanel/index.d.ts +2 -0
  141. package/types/src/named/NamedDetailsPanel.d.ts +9 -2
  142. package/types/src/named/NamedDetailsTaskPane.d.ts +3 -2
  143. package/types/src/named/NamedEditorPanel.d.ts +1 -1
  144. package/types/src/named/NamedExpressionField.d.ts +32 -0
  145. package/types/src/named/NamedKindChip.d.ts +38 -0
  146. package/types/src/picture/PicturePlugin.d.ts +6 -0
  147. package/types/src/picture/index.d.ts +2 -0
  148. package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +6 -0
  149. package/types/src/protectedRange/ProtectedRangeDraft.d.ts +22 -0
  150. package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +0 -14
  151. package/types/src/protectedRange/index.d.ts +2 -1
  152. package/types/src/protection/ManageProtectionTaskPane.d.ts +29 -0
  153. package/types/src/protection/PasswordDialog.d.ts +32 -0
  154. package/types/src/protection/PasswordField.d.ts +35 -0
  155. package/types/src/protection/ProtectedCellsPanel.d.ts +20 -0
  156. package/types/src/protection/ProtectionPlugin.d.ts +11 -0
  157. package/types/src/protection/SheetProtectionPanel.d.ts +35 -0
  158. package/types/src/protection/WorkbookProtectionPanel.d.ts +34 -15
  159. package/types/src/protection/WorkbookProtectionTab.d.ts +22 -0
  160. package/types/src/protection/index.d.ts +7 -1
  161. package/types/src/shape/InsertShapeCommandButton.d.ts +20 -0
  162. package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
  163. package/types/src/shape/ShapePlugin.d.ts +6 -0
  164. package/types/src/shape/index.d.ts +3 -0
  165. package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +18 -0
  166. package/types/src/slicer/SlicerPlugin.d.ts +6 -0
  167. package/types/src/slicer/index.d.ts +3 -0
  168. package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
  169. package/types/src/studio/CommandsWrapper.d.ts +5 -0
  170. package/types/src/studio/EagerStudio.d.ts +14 -1
  171. package/types/src/studio/StudioCommandProvider.d.ts +10 -0
  172. package/types/src/studio/StudioCommands.d.ts +40 -4
  173. package/types/src/studio/StudioProps.d.ts +64 -2
  174. package/types/src/studio/StudioSplitPane.d.ts +1 -1
  175. package/types/src/studio/formulaBarPlacement.d.ts +35 -0
  176. package/types/src/studio/splitStudioProps.d.ts +7 -0
  177. package/types/src/studio/useStudioApp.d.ts +31 -18
  178. package/types/src/template/TemplateCommands.d.ts +29 -0
  179. package/types/src/template/TemplateDialog.d.ts +19 -0
  180. package/types/src/template/TemplatePanel.d.ts +50 -0
  181. package/types/src/template/TemplateSearchField.d.ts +29 -0
  182. package/types/src/template/WelcomeDialog.d.ts +29 -0
  183. package/types/src/template/categoryColor.d.ts +8 -0
  184. package/types/src/template/index.d.ts +3 -0
  185. package/types/src/template/useTemplateCatalog.d.ts +71 -0
  186. package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
  187. package/types/src/workbook/DefaultRenderers.d.ts +15 -1
  188. package/types/src/workbook/FillMenu.d.ts +21 -0
  189. package/types/src/workbook/OutlineButtons.d.ts +11 -0
  190. package/types/src/workbook/WorkbookElement.d.ts +1 -1
  191. package/types/src/workbook/index.d.ts +1 -0
  192. package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
  193. package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
  194. package/browser/cjs/B_D3JKseVvpRyX-E.cjs +0 -1
  195. package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +0 -2
  196. package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +0 -2
  197. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
  198. package/browser/cjs/Bte6P3MhSjajJmmY.cjs +0 -7
  199. package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
  200. package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +0 -1
  201. package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
  202. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
  203. package/browser/cjs/CYxc8vnRi8dNpDPk.cjs +0 -1
  204. package/browser/cjs/CZm1jVZaHQ246prW.cjs +0 -1
  205. package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
  206. package/browser/cjs/Cm1APq2MraYNNhyI.cjs +0 -1
  207. package/browser/cjs/DO8V31Z1ewgMA1di.cjs +0 -5
  208. package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +0 -1
  209. package/browser/cjs/IASAYG6qgv7lJY7y.cjs +0 -1
  210. package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
  211. package/browser/cjs/UnMhi28mbvLiOXQe.cjs +0 -1
  212. package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +0 -1
  213. package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
  214. package/browser/cjs/index.cjs +0 -2
  215. package/browser/cjs/w2GjebPlOFv3pCbm.cjs +0 -1
  216. package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +0 -11
  217. package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +0 -1
  218. package/browser/esm/6seXVm4fUaBp34tP.mjs +0 -217
  219. package/browser/esm/C1PiodbCgkhztxU5.mjs +0 -411
  220. package/browser/esm/C5XQW-A03GP8EZ3s.mjs +0 -52
  221. package/browser/esm/CZGRaL9mjYTo8fAd.mjs +0 -105
  222. package/browser/esm/DTWkitCkayiinpgU.mjs +0 -219
  223. package/browser/esm/DbHn3Fq4gYggsoXV.mjs +0 -5429
  224. package/browser/esm/DxBsD4nDbg_OWhYG.mjs +0 -47
  225. package/browser/esm/HZXAXZqrC43FBvGk.mjs +0 -82
  226. package/browser/esm/dgkVCh7lmm1Twqmo.mjs +0 -9257
  227. package/browser/esm/l5BsxVQszkPy_n34.mjs +0 -1150
  228. package/node/esm/-9Hcp_VKJtR9fWlC.mjs +0 -470
  229. package/node/esm/B-3Ypi8akR-GxIpw.mjs +0 -82
  230. package/node/esm/CbhFnQCOA5TjhFB1.mjs +0 -106
  231. package/node/esm/CxqL51jVpIL4ncWW.mjs +0 -47
  232. package/node/esm/D-x3LVzppkKf5be_.mjs +0 -4575
  233. package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +0 -32
  234. package/types/src/conditions/DateTimeOption.d.ts +0 -43
  235. package/types/src/conditions/InSetOption.d.ts +0 -37
  236. package/types/src/dialog/CommentsDialog.d.ts +0 -11
  237. package/types/src/dialog/NumberFormatDialog.d.ts +0 -12
  238. package/types/src/filter/FilterList.d.ts +0 -28
  239. package/types/src/numberFormat/NumberFormatTaskPane.d.ts +0 -12
  240. package/types/src/numberFormat/index.d.ts +0 -8
  241. package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +0 -3
  242. package/types/src/protectedRange/ProtectedRangePlugin.d.ts +0 -2
  243. package/types/src/protection/WorkbookProtectionDialog.d.ts +0 -23
@@ -1,153 +1,436 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`._sheetxl-reset_11z3j_1{margin:0;padding:0;line-height:1;display:block}._sheetxl-reset_11z3j_1 table,._sheetxl-reset_11z3j_1 thead,._sheetxl-reset_11z3j_1 tbody,._sheetxl-reset_11z3j_1 tfoot,._sheetxl-reset_11z3j_1 tr,._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{border-collapse:inherit;border-spacing:0;border:none;border-color:inherit;width:auto;height:auto;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0;margin:0;padding:0;display:block}._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:inline}html{color:initial}._table-style-options-container_1kfn2_1{container-type:inline-size}._table-style-options_1kfn2_1{user-select:none;grid-template-columns:1fr;display:grid;@container (width>600px){grid-template-rows:repeat(3,auto);grid-auto-columns:1fr;grid-auto-flow:column;gap:2px}}._range-row_akhf4_1{flex-direction:column;flex:100%;align-items:center;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-between;gap:12px}}._action-row_akhf4_15{flex-direction:column;align-items:start;gap:4px;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-evenly;align-items:center}}._details-panel_mdq6z_1{box-sizing:border-box;background:0 0;flex-direction:column;flex:auto;align-items:stretch;width:100%;height:100%;display:flex;overflow:hidden}._editor_mdq6z_13{flex-direction:column;height:100%;display:flex}._editor-panel_mdq6z_19{flex-direction:column;display:flex}._editor-buttons_mdq6z_24{justify-content:flex-end;display:flex}._card_mdq6z_29{flex-direction:column;display:flex}._stats-items_151a8_1{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:2px;min-width:0;max-height:1rem;display:flex;overflow:hidden}._stats-item_151a8_1{flex-shrink:0}._stats-item-label_151a8_15{user-select:none;white-space:nowrap;cursor:pointer;border-radius:2px;align-items:center;gap:4px;padding:0 4px;transition:background-color .2s;display:flex}._stats-item-label_151a8_15:hover{background-color:#0000000a}._stats-item-label_151a8_15:active{background-color:#00000014}._formula-bar_uer84_1{flex-direction:row;flex:100%;align-items:start;display:flex}._card_h0jnt_7{width:100%}._actionRoot_h0jnt_11{justify-content:space-between;padding:8px 8px 8px 16px}._icons_h0jnt_16{align-items:center;margin-left:auto;display:flex}._expand_h0jnt_22{color:var(--sxl-color-error-content);padding:8px;transition:all .2s ease-in-out;transform:rotate(0)}._expandOpen_h0jnt_29{transform:rotate(180deg)}._stackTraceContainer_h0jnt_33{padding:16px}._paper_h0jnt_37{background-color:#fff;padding:16px}._checkIcon_h0jnt_42{padding-right:4px;font-size:20px}._button_h0jnt_47{text-transform:none;padding:0}._styled-resizer_fdl5y_3{background-color:var(--sxl-color-neutral,grey)}._styled-resizer_fdl5y_3:hover,.splitPane.dragging ._styled-resizer_fdl5y_3{background-color:var(--sxl-color-primary,blue)}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`._sheetxl-reset_11z3j_1{margin:0;padding:0;line-height:1;display:block}._sheetxl-reset_11z3j_1 table,._sheetxl-reset_11z3j_1 thead,._sheetxl-reset_11z3j_1 tbody,._sheetxl-reset_11z3j_1 tfoot,._sheetxl-reset_11z3j_1 tr,._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{border-collapse:inherit;border-spacing:0;border:none;border-color:inherit;width:auto;height:auto;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0;margin:0;padding:0;display:block}._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:inline}html{color:initial}._table-style-options-container_1kfn2_1{container-type:inline-size}._table-style-options_1kfn2_1{user-select:none;grid-template-columns:1fr;display:grid;@container (width>600px){grid-template-rows:repeat(3,auto);grid-auto-columns:1fr;grid-auto-flow:column;gap:2px}}._range-row_1yps2_1{flex-direction:column;flex:100%;align-items:center;row-gap:8px;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-between;gap:12px}}._action-row_1yps2_17{flex-direction:column;align-items:start;gap:4px;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-evenly;align-items:center}}._details-panel_mdq6z_1{box-sizing:border-box;background:0 0;flex-direction:column;flex:auto;align-items:stretch;width:100%;height:100%;display:flex;overflow:hidden}._editor_mdq6z_13{flex-direction:column;height:100%;display:flex}._editor-panel_mdq6z_19{flex-direction:column;display:flex}._editor-buttons_mdq6z_24{justify-content:flex-end;display:flex}._card_mdq6z_29{flex-direction:column;display:flex}._stats-items_151a8_1{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:2px;min-width:0;max-height:1rem;display:flex;overflow:hidden}._stats-item_151a8_1{flex-shrink:0}._stats-item-label_151a8_15{user-select:none;white-space:nowrap;cursor:pointer;border-radius:2px;align-items:center;gap:4px;padding:0 4px;transition:background-color .2s;display:flex}._stats-item-label_151a8_15:hover{background-color:#0000000a}._stats-item-label_151a8_15:active{background-color:#00000014}._formula-bar_uer84_1{flex-direction:row;flex:100%;align-items:start;display:flex}._card_h0jnt_7{width:100%}._actionRoot_h0jnt_11{justify-content:space-between;padding:8px 8px 8px 16px}._icons_h0jnt_16{align-items:center;margin-left:auto;display:flex}._expand_h0jnt_22{color:var(--sxl-color-error-content);padding:8px;transition:all .2s ease-in-out;transform:rotate(0)}._expandOpen_h0jnt_29{transform:rotate(180deg)}._stackTraceContainer_h0jnt_33{padding:16px}._paper_h0jnt_37{background-color:#fff;padding:16px}._checkIcon_h0jnt_42{padding-right:4px;font-size:20px}._button_h0jnt_47{text-transform:none;padding:0}._styled-resizer_fdl5y_3{background-color:var(--sxl-color-neutral,grey)}._styled-resizer_fdl5y_3:hover,.splitPane.dragging ._styled-resizer_fdl5y_3{background-color:var(--sxl-color-primary,blue)}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  /**
3
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
3
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.10
4
4
  *
5
5
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
7
7
  */
8
- import { r as e, t } from "./DTWkitCkayiinpgU.mjs";
9
- import { A as n, At as r, B as i, Bt as a, C as o, Ct as s, D as c, Dt as l, E as u, Et as d, F as f, Ft as p, G as m, Gt as h, H as g, Ht as _, I as v, It as y, K as b, Kt as x, L as S, Lt as C, M as w, Mt as T, N as E, Nt as D, O, Ot as ee, P as te, Pt as ne, R as re, Rt as ie, S as ae, St as oe, T as se, Tt as k, U as A, Ut as j, V as M, Vt as N, W as P, Wt as F, _ as I, _t as L, a as R, b as z, bt as B, c as V, dt as H, ft as U, g as W, gt as G, ht as K, i as ce, j as le, jt as ue, k as de, kt as fe, l as pe, lt as me, m as he, mt as ge, n as _e, o as ve, pt as ye, q as be, qt as xe, r as Se, s as Ce, t as we, u as Te, ut as Ee, v as De, vt as Oe, w as ke, wt as Ae, x as je, xt as Me, y as Ne, yt as Pe, z as Fe, zt as Ie } from "./dgkVCh7lmm1Twqmo.mjs";
10
- import { t as Le } from "./Drbpg4A9TaJUZd5A.mjs";
11
- import { t as Re } from "./C1PiodbCgkhztxU5.mjs";
12
- import { n as ze, r as Be, t as Ve } from "./6seXVm4fUaBp34tP.mjs";
13
- import { a as He, i as Ue, n as We, o as Ge, r as Ke, t as qe } from "./RbGJTMzxMTlkFlTq.mjs";
14
- import { useInputField as Je } from "@sheetxl/react";
15
- import { DynamicIcon as q, useTranslator as Ye } from "@sheetxl/utils-react";
16
- import { forwardRef as Xe, memo as Ze, useEffect as Qe, useImperativeHandle as $e, useMemo as J, useRef as Y } from "react";
17
- import { ExhibitIconButton as X } from "@sheetxl/utils-mui";
18
- import { jsx as Z, jsxs as et } from "react/jsx-runtime";
19
- import { FormControl as tt, InputAdornment as nt, TextField as rt } from "@mui/material";
20
- var Q = (e) => {
21
- e.button === 0 && e.preventDefault();
22
- }, $ = Ze(Xe((e, t) => {
23
- let { disabled: n, className: r, sx: i, defaultInput: a, value: o, formName: s, formOptions: c, onChangeInput: l, onChangeText: u, onDone: d, changeOn: f, onValidate: p, apiRef: m, label: h, hideAdornment: g, onKeyDown: _, onFocus: v, ...y } = e, b = Ye(), x = h ?? b("namedInput.label"), S = Be(), C = s && S ? S.register(s, c) : null, w = Je({
24
- value: o ?? "",
25
- onChange: l,
26
- onChangeText: u,
27
- onDone: d,
28
- changeOn: f,
29
- onValidate: p,
30
- disabled: n
8
+ import { $ as e, $t as t, A as n, B as r, C as i, Cn as a, D as o, Dn as s, E as c, En as l, F as u, G as d, Gt as f, H as p, I as m, J as h, K as g, Kt as _, L as v, M as y, N as b, O as x, On as S, P as C, Q as w, Qt as T, R as E, S as ee, Sn as te, St as ne, T as re, Tn as ie, Tt as ae, U as oe, V as se, W as ce, X as le, Xt as ue, Y as de, Yt as fe, Z as pe, Zt as me, _ as he, _n as ge, _t as _e, an as ve, at as ye, b as be, bn as xe, bt as Se, c as Ce, ct as we, d as Te, dn as Ee, dt as De, en as Oe, et as ke, f as Ae, fn as je, ft as Me, g as Ne, gn as Pe, gt as Fe, h as Ie, hn as Le, ht as Re, i as ze, in as Be, it as Ve, j as He, k as Ue, kn as We, kt as Ge, lt as Ke, m as qe, mn as Je, mt as Ye, n as Xe, nn as Ze, nt as Qe, on as $e, ot as et, p as tt, pn as nt, pt as rt, q as it, qt as at, r as ot, rn as st, rt as ct, s as lt, sn as ut, st as dt, tn as ft, tt as pt, u as mt, un as ht, ut as gt, v as _t, vn as vt, vt as yt, w as bt, wn as xt, wt as St, x as Ct, xn as wt, xt as Tt, y as Et, yn as Dt, yt as Ot, z as kt } from "./COv-m-c2byCgvU3M.mjs";
9
+ import { C as At, E as jt, T as Mt, _ as Nt, a as Pt, b as Ft, c as It, d as Lt, f as Rt, g as zt, h as Bt, i as Vt, l as Ht, m as Ut, n as Wt, o as Gt, p as Kt, r as qt, s as Jt, t as Yt, u as Xt, v as Zt, w as Qt, x as $t, y as en } from "./sam1KGQZ59B_fADz.mjs";
10
+ import { t as tn } from "./5cbK03T_Oh3tNdR7.mjs";
11
+ import { t as nn } from "./Biy7bhzzzPb5sfRN.mjs";
12
+ import { n as rn, t as an } from "./fb126BNj3F8URR19.mjs";
13
+ import { a as on, i as sn, n as cn, o as ln, r as un, t as dn } from "./CIu1bjPJe_x31Oww.mjs";
14
+ import { t as fn } from "./IQLeaAbtGTipUsOD.mjs";
15
+ import { LicenseManager as pn, LicenseManager as mn } from "@sheetxl/sdk";
16
+ import { DefaultTaskPaneRegistry as hn, ThemeStateDefaults as gn, ThemeStateKey as D, WorkbookIO as _n, WorkbookIO as O, setPrintExamplesOnLoad as vn, useModelListener as yn, useRangeListener as bn, useWindowChrome as xn, useWorkbook as Sn, useWorkbookFormat as Cn, useWorkbookName as wn } from "@sheetxl/react";
17
+ import { CommandButtonType as k, createThemeScopeClass as Tn, lazyComponent as En, useCallbackRef as A, useCommandButtonEntry as j, useCommandButtonRegistry as Dn, useCommands as M, useLocationSearch as On, usePersistentState as kn, useResolvedThemeMode as An, useTranslator as jn } from "@sheetxl/utils-react";
18
+ import { Suspense as Mn, createElement as N, forwardRef as P, memo as F, useCallback as I, useEffect as L, useId as Nn, useMemo as R, useRef as z, useState as B } from "react";
19
+ import { CommandButton as V, CommandGroup as Pn, CommandPopupButton as H, ExhibitDivider as U, LabelIcon as Fn, LazyLoadErrorPanel as In, OptionsDialog as Ln, defaultCreatePopupPanel as W, renderMembers as Rn } from "@sheetxl/utils-mui";
20
+ import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
21
+ import { Box as J, Paper as zn, TextField as Y, Typography as Bn, useMediaQuery as Vn } from "@mui/material";
22
+ import { defineLazyModule as Hn } from "@sheetxl/utils";
23
+ var X = Object.defineProperty, Un = (e, t) => {
24
+ let n = {};
25
+ for (var r in e) X(n, r, {
26
+ get: e[r],
27
+ enumerable: !0
31
28
  });
32
- $e(m, () => w, [w]);
33
- let T = Y(S);
34
- T.current = S;
35
- let E = Y(null);
36
- Qe(() => {
37
- if (!s || w.error === E.current) return;
38
- E.current = w.error;
39
- let e = T.current;
40
- e && (w.error ? e.setError(s, { message: b(w.error) }) : e.clearErrors(s));
41
- }, [w.error, s]);
42
- let D = !!d, O = J(() => {
43
- if (!g && D) return et(nt, {
44
- tabIndex: -1,
45
- onMouseDown: Q,
46
- "aria-hidden": !w.engaged,
47
- sx: {
48
- display: "flex",
49
- position: "relative",
50
- flex: "0",
51
- ...w.engaged ? null : {
52
- visibility: "hidden",
53
- pointerEvents: "none"
29
+ return t || X(n, Symbol.toStringTag, { value: "Module" }), n;
30
+ }, Z = F(P((e, t) => {
31
+ let { groupKey: n = "workbook", disabled: r, ...i } = e, [a, o] = B([]), s = O.canWrite(), c = O.canRead();
32
+ L(() => {
33
+ let e = !0;
34
+ return O.getWriteFormats().then((t) => {
35
+ e && o(t);
36
+ }), () => {
37
+ e = !1;
38
+ };
39
+ }, []);
40
+ let l = Sn(), u = Cn(l), d = R(() => {
41
+ if (a.length === 0) return null;
42
+ let e = u?.toLowerCase();
43
+ return (e ? a.find((t) => t.key.toLowerCase() === e) ?? a.find((t) => t.exts?.some((t) => t.toLowerCase() === e)) : void 0) ?? a.find((e) => e.exts?.some((e) => e.toLowerCase() === "sxl")) ?? a.find((e) => !e.advanced) ?? a[0];
44
+ }, [a, u]), [f] = M(d ? `saveWorkbookAs${d.key}` : []), p = Dn(), m = p.resolveMembers("newWorkbookOptions") ?? ["newWorkbook"], h = A((e) => {
45
+ let t = {
46
+ variant: k.Menuitem,
47
+ groupKey: n,
48
+ disabled: r
49
+ }, i = q(G, { children: [
50
+ m.length > 1 ? K(H, {
51
+ ...t,
52
+ quickCommand: "newWorkbook",
53
+ createPopupPanel: (e) => {
54
+ let t = Rn(m, {
55
+ variant: k.Menuitem,
56
+ dividerOrientation: "horizontal",
57
+ groupKey: "newWorkbookOptions",
58
+ registry: p,
59
+ propsCommandButton: { disabled: r },
60
+ propsCommandPopup: { disabled: r }
61
+ });
62
+ return W({
63
+ ...e,
64
+ children: t,
65
+ onClick: () => {
66
+ e.closeFloatAll?.();
67
+ }
68
+ });
54
69
  }
55
- },
56
- position: "end",
57
- children: [Z(X, {
58
- dense: !0,
59
- outlined: !1,
60
- color: "primary",
61
- "aria-label": "commit-input",
62
- icon: Z(q, { iconKey: "CheckSuccess" }),
63
- propsTooltip: {
64
- label: b("referenceInput.commit"),
65
- simple: !0
66
- },
67
- disabled: !!w.error,
68
- tabIndex: -1,
69
- onMouseDown: Q,
70
- onClick: () => {
71
- w.commit();
70
+ }) : K(V, {
71
+ ...t,
72
+ commandKey: "newWorkbook"
73
+ }),
74
+ K(U, { orientation: "horizontal" }),
75
+ c ? K(H, {
76
+ ...t,
77
+ quickCommand: "openWorkbook",
78
+ createPopupPanel: (e) => {
79
+ let n = {
80
+ ...t,
81
+ groupKey: "openWorkbookOptions"
82
+ }, r = [N(V, {
83
+ ...n,
84
+ key: "device",
85
+ commandKey: "openWorkbook"
86
+ }), N(V, {
87
+ ...n,
88
+ key: "web",
89
+ commandKey: "openWorkbookFromUrl"
90
+ })];
91
+ return W({
92
+ ...e,
93
+ children: r,
94
+ onClick: () => {
95
+ e.closeFloatAll?.();
96
+ }
97
+ });
72
98
  }
73
- }), Z(X, {
74
- dense: !0,
75
- outlined: !1,
76
- color: "warning",
77
- "aria-label": "cancel-input",
78
- icon: Z(q, { iconKey: "CloseError" }),
79
- propsTooltip: {
80
- label: b("referenceInput.cancel"),
81
- simple: !0
82
- },
83
- tabIndex: -1,
84
- onMouseDown: Q,
85
- onClick: () => {
86
- w.cancel();
99
+ }) : null,
100
+ s && a.length > 0 ? K(H, {
101
+ ...t,
102
+ quickCommand: "saveWorkbook",
103
+ createPopupPanel: (e) => {
104
+ let n = {
105
+ ...t,
106
+ groupKey: "saveWorkbookOptions"
107
+ }, r = [N(V, {
108
+ ...n,
109
+ key: "saveWorkbookAs",
110
+ commandKey: "saveWorkbookAs",
111
+ label: f?.getLabel("saveWorkbookOptions"),
112
+ icon: f?.getIcon("saveWorkbookOptions")
113
+ })], i = a.filter((e) => !e.advanced && e.key !== d?.key);
114
+ return i.length > 0 && r.push(K(U, { orientation: "horizontal" }, "divider")), i.forEach((e) => {
115
+ let t = e.key, i = `saveWorkbookAs${t}`;
116
+ r.push(N(V, {
117
+ ...n,
118
+ key: t,
119
+ commandKey: i
120
+ }));
121
+ }), W({
122
+ ...e,
123
+ children: r,
124
+ onClick: () => {
125
+ e.closeFloatAll?.();
126
+ }
127
+ });
87
128
  }
88
- })]
129
+ }) : null
130
+ ] });
131
+ return W({
132
+ ...e,
133
+ children: i,
134
+ onClick: (t) => {
135
+ t.isDefaultPrevented() || e.closeFloatAll?.();
136
+ }
89
137
  });
90
138
  }, [
91
- g,
92
- D,
93
- w.engaged,
94
- w.commit,
95
- w.cancel,
96
- !!w.error
97
- ]);
98
- return Z(tt, {
139
+ r,
140
+ n,
141
+ a,
142
+ d,
143
+ f,
144
+ m,
145
+ p
146
+ ]), g = j("fileOptions"), _ = g?.getLabel?.() ?? "File", v = g?.getDescription?.() ?? "Options for saving and loading the workbook.";
147
+ return K(H, {
148
+ disabled: r,
149
+ groupKey: n,
150
+ label: _,
151
+ tooltip: v,
99
152
  sx: {
100
- minWidth: 135,
101
- width: "100%",
102
- ...i
153
+ paddingBottom: "0px",
154
+ "& button": {
155
+ paddingTop: "0px",
156
+ paddingBottom: "0px",
157
+ height: (e) => `calc(1.25rem + ${e.spacing(2)}px)`
158
+ }
159
+ },
160
+ ...i,
161
+ createPopupPanel: h,
162
+ icon: K(Fn, {
163
+ className: "label",
164
+ icon: null,
165
+ label: _
166
+ })
167
+ });
168
+ }));
169
+ Z.displayName = "FileCommandButton";
170
+ var Wn = F(P((e, t) => {
171
+ let { groupKey: n, disabled: r, ...i } = e, [a] = M(["themeMode"]), o = j("appearanceOptions"), s = A((e) => {
172
+ let t = {
173
+ variant: k.Menuitem,
174
+ groupKey: "appearanceOptions",
175
+ disabled: r
176
+ }, n = q(G, { children: [
177
+ K(V, {
178
+ ...t,
179
+ commandKey: "themeMode"
180
+ }),
181
+ K(V, {
182
+ ...t,
183
+ commandKey: "defaultThemeMode"
184
+ }),
185
+ K(U, { orientation: "horizontal" }),
186
+ K(V, {
187
+ ...t,
188
+ commandKey: "enableDarkGrid"
189
+ }),
190
+ K(V, {
191
+ ...t,
192
+ commandKey: "enableDarkImages"
193
+ })
194
+ ] });
195
+ return W({
196
+ ...e,
197
+ children: n
198
+ });
199
+ }, [
200
+ r,
201
+ a,
202
+ n
203
+ ]), c = a?.getState(), l = Vn("(prefers-color-scheme: dark)"), u = c === "dark" || c === null && l, d = a?.getState() !== null;
204
+ return K(H, {
205
+ ref: t,
206
+ quickCommand: "themeMode",
207
+ createPopupPanel: s,
208
+ label: o?.getLabel?.(),
209
+ tooltip: o?.getDescription?.(),
210
+ onQuickClick: () => {
211
+ a?.execute(u ? "light" : "dark");
103
212
  },
104
- size: "small",
213
+ selected: d,
214
+ ...i
215
+ });
216
+ })), Gn = F(P((e, t) => {
217
+ let { ...n } = e;
218
+ return K(Pn, {
105
219
  ref: t,
106
- className: Le("sxl-input-field", r),
107
- ...y,
108
- children: Z(rt, {
109
- label: x,
110
- placeholder: a,
111
- disabled: n,
112
- error: !!w.error,
113
- helperText: w.error ? b(w.error) : " ",
114
- sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
115
- slotProps: {
116
- input: { endAdornment: O },
117
- inputLabel: { shrink: !0 },
118
- htmlInput: {
119
- className: "autoFocus",
120
- name: s,
121
- spellCheck: !1,
122
- autoComplete: "off",
123
- readOnly: n,
124
- sx: {
125
- paddingTop: (e) => e.spacing(1.25),
126
- paddingBottom: (e) => e.spacing(.75)
127
- }
128
- }
129
- },
130
- value: w.inputProps.value,
131
- inputRef: (e) => {
132
- w.inputProps.ref(e), C?.ref && C.ref(e);
133
- },
134
- onChange: (e) => {
135
- w.inputProps.onChange(e), C?.onChange(e);
136
- },
137
- onKeyDown: (e) => {
138
- w.inputProps.onKeyDown(e), e.defaultPrevented || _?.(e);
139
- },
140
- onFocus: (e) => {
141
- w.inputProps.onFocus(e), v?.(e);
142
- },
143
- onBlur: (e) => {
144
- w.inputProps.onBlur(e), C?.onBlur(e);
220
+ groupKey: "insertFunctionSumOptions",
221
+ ...n
222
+ });
223
+ }));
224
+ Gn.displayName = "InsertFunctionSumCommandPopupButton";
225
+ var Kn = Un({
226
+ PasswordDialog: () => Q,
227
+ default: () => Q
228
+ }), Q = (e) => {
229
+ let t = jn(), { description: n, requireCurrent: r = !1, onApply: i, title: a, sx: o, ...s } = e, [c, l] = B(""), [u, d] = B(""), [f, p] = B(""), [m, h] = B(!1), g = u === "", _ = f !== u, v = !g && !_;
230
+ return K(Ln, {
231
+ title: a ?? t(r ? "password.titleChange" : "password.title"),
232
+ options: ["Ok", "Cancel"],
233
+ defaultOption: "Ok",
234
+ cancelOption: "Cancel",
235
+ autoFocusSel: ".autoFocus",
236
+ sx: {
237
+ width: "380px",
238
+ ...o
239
+ },
240
+ onValidateOption: (e) => e === "Cancel" || (h(!0), v),
241
+ onOption: (e, t) => {
242
+ if (!t && e === "Ok") return i(u, r ? c : void 0);
243
+ },
244
+ ...s,
245
+ children: q(J, {
246
+ sx: {
247
+ display: "flex",
248
+ flexDirection: "column",
249
+ gap: (e) => e.spacing(2),
250
+ paddingTop: (e) => e.spacing(1)
145
251
  },
146
- onContextMenu: (e) => {
147
- e.stopPropagation();
148
- }
252
+ children: [
253
+ n ? K(Bn, {
254
+ variant: "body2",
255
+ sx: { color: "text.secondary" },
256
+ children: n
257
+ }) : null,
258
+ r ? K(Y, {
259
+ type: "password",
260
+ size: "small",
261
+ label: t("password.current"),
262
+ value: c,
263
+ onChange: (e) => l(e.target.value),
264
+ slotProps: {
265
+ inputLabel: { shrink: !0 },
266
+ htmlInput: {
267
+ className: "autoFocus",
268
+ autoComplete: "current-password",
269
+ spellCheck: !1
270
+ }
271
+ }
272
+ }) : null,
273
+ K(Y, {
274
+ type: "password",
275
+ size: "small",
276
+ label: t(r ? "password.new" : "password.label"),
277
+ value: u,
278
+ error: m && g,
279
+ helperText: m && g ? t("password.required") : " ",
280
+ onChange: (e) => d(e.target.value),
281
+ slotProps: {
282
+ inputLabel: { shrink: !0 },
283
+ htmlInput: {
284
+ className: r ? void 0 : "autoFocus",
285
+ autoComplete: "new-password",
286
+ spellCheck: !1
287
+ }
288
+ }
289
+ }),
290
+ K(Y, {
291
+ type: "password",
292
+ size: "small",
293
+ label: t("protection.passwordConfirm"),
294
+ value: f,
295
+ error: m && !g && _,
296
+ helperText: m && !g && _ ? t("protection.passwordMismatch") : " ",
297
+ onChange: (e) => p(e.target.value),
298
+ slotProps: {
299
+ inputLabel: { shrink: !0 },
300
+ htmlInput: {
301
+ autoComplete: "new-password",
302
+ spellCheck: !1
303
+ }
304
+ }
305
+ })
306
+ ]
149
307
  })
150
308
  });
309
+ }, qn = /* @__PURE__ */ new Set(/* @__PURE__ */ "square.elevation.variant.title.onKeyDown.workbook.onWorkbookChange.onDocumentError.propsDocumentError.renderDocumentError.propsDocumentLoading.renderDocumentLoading.propsWorkbook.onWorkbookLoad.propsTaskPaneArea.renderTaskPaneArea.taskPaneSide.logo.onDirtyChange.propsDocumentTitle.showFormulaBar.propsFormulaBar.renderFormulaBar.formulaBarPlacement.manageVisualViewport.editable.showStatusBar.propsStatusBar.renderStatusBar.propsToolbar.renderToolbar.topLeft.topRight.muiTheme.tokens.cssBaseline.autoFocus.licenseKey.prefetch".split(".")), Jn = () => K(G, {}), Yn = Hn("studio:eagerStudio", () => import("./Die9NXVFveHvcCT-.mjs")), Xn = ({ error: e, onShown: t }) => (L(() => {
310
+ t();
311
+ }, []), K(In, { error: e })), $ = F(P((e, t) => {
312
+ let { sx: n, style: r, className: i, licenseKey: a, renderDocumentLoading: o = lt, propsDocumentLoading: s, onWorkbookLoad: c, onDocumentError: l, ...u } = e, [d, f] = ((e) => {
313
+ let t = {}, n = {};
314
+ for (let r in e) (qn.has(r) ? t : n)[r] = e[r];
315
+ return [t, n];
316
+ })(u);
317
+ a && mn.setLicenseKey(a);
318
+ let [p] = kn(D.Mode, gn[D.Mode]), { themeMode: m } = An({ mode: p ?? void 0 }), h = m === "dark", [g, _] = B(null), v = Tn("studio", Nn()), [y, b] = B(!1), x = R(() => !o || y ? null : K(zn, {
319
+ style: {
320
+ backgroundColor: `var(--sxl-color-base-100, ${h ? "#121212" : "#fff"})`,
321
+ inset: 0,
322
+ width: "100%",
323
+ height: "100%",
324
+ position: "absolute",
325
+ display: "flex",
326
+ alignItems: "center",
327
+ justifyContent: "center",
328
+ zIndex: 9900
329
+ },
330
+ children: o(s ?? {})
331
+ }), [
332
+ o,
333
+ s,
334
+ h,
335
+ y
336
+ ]), S = R(() => En(Yn.load, { renderError: (e) => K(Xn, {
337
+ error: e,
338
+ onShown: () => b(!0)
339
+ }) }), []);
340
+ return q(J, {
341
+ ref: _,
342
+ className: tn("sheetxl-studio", v, i),
343
+ "data-sxl-theme-mode": m,
344
+ sx: n,
345
+ style: {
346
+ display: "flex",
347
+ flexDirection: "column",
348
+ flex: "1 1 100%",
349
+ width: "100%",
350
+ height: "100%",
351
+ minWidth: 0,
352
+ minHeight: 0,
353
+ position: "relative",
354
+ overflow: "hidden",
355
+ ...r
356
+ },
357
+ ...f,
358
+ children: [K(Mn, {
359
+ fallback: null,
360
+ children: K(S, {
361
+ ...d,
362
+ host: g,
363
+ scopeClass: v,
364
+ onWorkbookLoad: (e) => (requestAnimationFrame(() => requestAnimationFrame(() => b(!0))), c?.(e)),
365
+ onDocumentError: (e) => (b(!0), l?.(e)),
366
+ renderDocumentLoading: Jn,
367
+ ref: t
368
+ })
369
+ }), x]
370
+ });
151
371
  }));
152
- $.displayName = "InputField";
153
- export { H as AppearanceCommandButton, j as AutoColorPosition, p as BorderCommandButton, y as BorderPopupButton, C as BorderStylePopupButton, Ee as CalculationOptionsCommandButton, v as CalculationRequiredStatus, S as CircularReferenceStatus, _ as ColorButton, N as ColorButtonList, ue as ColorCommandButton, a as ColorPanel, F as ColorPanelType, Ie as ColorPopupButton, ae as ColumnMenu, we as DefaultTaskPaneRegistry, i as DefaultWorkbookToolbars, ye as DocThemeCommandButton, pe as DocumentTitle, Ve as FORMULA_FIELD_ABOVE_LABEL_HEIGHT, U as FileCommandButton, o as FilterList, r as FontFamilyCommandButton, ne as FontSizeCommandButton, ke as FormulaBar, ze as FormulaField, He as FunctionArgumentsPanel, Ge as FunctionSearchPanel, qe as INSERT_FUNCTION_PAGE_CLASS, $ as InputField, b as InsertFunctionCommandPopupButton, We as InsertFunctionOption, A as InsertFunctionSumCommandPopupButton, Ke as InsertFunctionWizard, _e as LicenseManager, de as NAMED_TYPE_FORMULA, te as NamedCollectionEditor, c as NamedDetailsPanel, u as NamedDetailsTaskPane, O as NamedEditorPanel, se as NamedPlugin, D as NumberFormatCommandButton, Re as NumberFormatPanel, je as NumberFormatTaskPane, re as NumberStats, ee as PasteCommandButton, l as PresetCellStylesCommandButton, B as PresetTableStylesCommandButton, Ne as SheetTabMenu, h as SheetZoomCommandButton, Fe as SheetZoomScale, De as SheetsAllMenu, f as StatusBar, Ce as Studio, ie as StyledStrokeIcon, s as TableDetailsPanel, oe as TableDetailsTaskPane, Me as TablePlugin, k as TableStyleCanvasPreview, Ae as TableStyleOptionsPanel, d as TableStylePreview, fe as TextEffectsCommandButton, x as TextRotateGroupButton, Pe as ThemeSelectButton, Oe as ThemeSelectPanel, L as ThemeSelectPopupButton, T as UndoRedoCommandButton, me as WalkingCopyCommandButton, W as WorkbookContextMenu, Te as WorkbookElement, Se as WorkbookIO, t as WorkbookProtectionDialog, e as WorkbookProtectionPanel, I as WorkbookStrip, M as WorkbookToolbars, n as createNamedDraft, ge as createStudioThemeCSS, K as createThemeFromMUITheme, le as expressionOf, w as isEditableNamed, Ue as optionsForPage, z as registerNumberFormatTaskPane, be as registerSheetCommandGroups, xe as registerStudioCommandCatalogs, P as registerStudioCommandGroups, m as registerWorkbookCommandGroups, he as renderWorkbookSheetTab, g as renderWorkbookToolbars, E as saveNamedDraft, V as setPrintExamplesOnLoad, G as tokensToMuiOptions, ce as useModelListener, R as useRangeListener, ve as useStudioApp };
372
+ $.displayName = "Studio";
373
+ var Zn = (e = {}) => {
374
+ let { source: t, startWith: n, templatePath: r, onWorkbookLoad: i, onWorkbookChange: a, onDirtyChange: o, documentTitle: s, confirmOnClose: c, keyboardGuard: l, ...u } = e, d = On(), [f, p] = B(null), [m, h] = B(!1), g = wn(f);
375
+ xn(g, m, {
376
+ documentTitle: s,
377
+ confirmOnClose: c,
378
+ keyboardGuard: l
379
+ });
380
+ let { workbook: _, urlTitle: v } = R(() => {
381
+ if (t != null) return {
382
+ workbook: typeof t == "string" ? { source: t } : t,
383
+ urlTitle: null
384
+ };
385
+ if (d) {
386
+ let e = new URLSearchParams(d), t = e.get("source");
387
+ if (t) return {
388
+ workbook: { source: t },
389
+ urlTitle: e.get("title")
390
+ };
391
+ }
392
+ return {
393
+ workbook: void 0,
394
+ urlTitle: null
395
+ };
396
+ }, [t, d]), y = z(null);
397
+ R(() => {
398
+ y.current = v;
399
+ }, [v]);
400
+ let b = z(a);
401
+ b.current = a;
402
+ let x = I((e) => {
403
+ e && y.current && (e.getOrigin().setName(y.current), y.current = null), p(e), b.current?.(e);
404
+ }, []), S = z(o);
405
+ S.current = o;
406
+ let C = I((e) => {
407
+ h(e), S.current?.(e);
408
+ }, []);
409
+ L(() => {
410
+ n === "welcome" && _ === void 0 && Xe(r);
411
+ }, [
412
+ n,
413
+ _,
414
+ r
415
+ ]);
416
+ let w = z(!1), T = z(i);
417
+ T.current = i;
418
+ let E = I((e) => (w.current || (w.current = !0, n === "welcome" && _ === void 0 && requestAnimationFrame(() => requestAnimationFrame(() => {
419
+ e.source?.getCommandScope?.()?.resolve("showWelcome")?.execute({
420
+ templatePath: r,
421
+ atStartup: !0
422
+ });
423
+ }))), T.current?.(e)), [
424
+ n,
425
+ r,
426
+ _
427
+ ]);
428
+ return {
429
+ ...u,
430
+ workbook: _,
431
+ onWorkbookChange: x,
432
+ onDirtyChange: C,
433
+ onWorkbookLoad: E
434
+ };
435
+ };
436
+ export { C as AlignmentPanel, Wn as AppearanceCommandButton, Mt as AutoColorPosition, xt as BorderCommandButton, x as BorderPanel, ie as BorderPopupButton, Ue as BorderPreview, Zt as BorderStylePopupButton, l as BorderTemplateIcon, p as COMMENTS_FILTER_KEY, ue as CalculationOptionsCommandButton, Ye as CalculationRequiredStatus, Re as CircularReferenceStatus, Qt as ColorButton, At as ColorButtonList, ge as ColorCommandButton, $t as ColorPanel, jt as ColorPanelType, Ft as ColorPopupButton, r as ColumnMenu, ce as CommentCard, se as CommentsPlugin, oe as CommentsTaskPane, Ht as DEFAULT_GRADIENT, hn as DefaultTaskPaneRegistry, yt as DefaultWorkbookToolbars, me as DocThemeCommandButton, ot as DocumentTitle, pe as ExternalLinkCardBody, le as ExternalLinkChip, de as ExternalLinkLocation, h as ExternalLinkSettingsTab, it as ExternalLinksPanel, d as ExternalLinksPlugin, g as ExternalLinksTaskPane, re as FORMAT_TAB_KEY, i as FORMAT_TASK_PANE_KEY, pt as FORMULA_BAR_EDITOR_ID, an as FORMULA_FIELD_ABOVE_LABEL_HEIGHT, Z as FileCommandButton, mt as FillMenu, Yt as FillPanel, Pe as FontFamilyCommandButton, b as FontPanel, a as FontSizeCommandButton, qt as FormatButtonGroup, m as FormatCellPreview, Vt as FormatNumberField, bt as FormatPlugin, Pt as FormatRow, Gt as FormatSection, c as FormatTab, o as FormatTaskPane, ke as FormulaBar, rn as FormulaField, on as FunctionArgumentsPanel, ln as FunctionSearchPanel, Xt as GradientEditor, Rt as GradientStopsBar, dn as INSERT_FUNCTION_PAGE_CLASS, nn as InputField, St as InsertFunctionCommandPopupButton, cn as InsertFunctionOption, Gn as InsertFunctionSumCommandPopupButton, un as InsertFunctionWizard, _ as ItemCard, at as ItemCardAction, f as ItemsSearchField, pn as LicenseManager, fn as LinePanel, Ne as ManageProtectionTaskPane, w as MobileFormulaBar, e as MobileInputToolbar, dt as NAMED_TYPE_FORMULA, Me as NamedCollectionEditor, ye as NamedDetailsPanel, Ve as NamedDetailsTaskPane, et as NamedEditorPanel, ct as NamedPlugin, Dt as NumberFormatCommandButton, xe as NumberFormatOption, u as NumberFormatPanel, Fe as NumberStats, Bt as PATTERN_GALLERY, n as PREVIEW_EDGES, Q as PasswordDialog, ee as PasswordField, Je as PasteCommandButton, Kt as PatternPopupButton, zt as PatternSwatch, nt as PresetCellStylesCommandButton, Ge as PresetChip, kt as PresetSlicerStylesCommandButton, Be as PresetTableStylesCommandButton, Et as ProtectedCellsPanel, he as ProtectedRangeDetailsTaskPane, Ie as ProtectionPlugin, be as SheetProtectionPanel, qe as SheetTabMenu, s as SheetZoomCommandButton, _e as SheetZoomScale, tt as SheetsAllMenu, E as SlicerPlugin, rt as StatusBar, $ as Studio, en as StyledStrokeIcon, ut as TableDetailsPanel, $e as TableDetailsTaskPane, ve as TablePlugin, Ee as TableStyleCanvasPreview, ht as TableStyleOptionsPanel, je as TableStylePreview, Le as TextEffectsCommandButton, S as TextRotateGroupButton, st as ThemeSelectButton, Ze as ThemeSelectPanel, ft as ThemeSelectPopupButton, vt as UndoRedoCommandButton, fe as WalkingCopyCommandButton, Te as WorkbookContextMenu, ze as WorkbookElement, _n as WorkbookIO, Ct as WorkbookProtectionPanel, _t as WorkbookProtectionTab, Ae as WorkbookStrip, Ot as WorkbookToolbars, we as createNamedDraft, T as createStudioThemeCSS, t as createThemeFromMUITheme, He as edgeLabel, y as edgesAt, Ke as expressionOf, Wt as fillSelectionOf, gt as isEditableNamed, wt as numberFormatCategoryLabel, te as numberFormatTypeLabel, Jt as onReselect, sn as optionsForPage, It as panelSx, Ut as patternLabel, ae as registerSheetCommandGroups, We as registerStudioCommandCatalogs, Tt as registerStudioCommandGroups, ne as registerWorkbookCommandGroups, Ce as renderWorkbookSheetTab, Se as renderWorkbookToolbars, De as saveNamedDraft, vn as setPrintExamplesOnLoad, Kn as t, Lt as toGradientValue, Nt as toPatternSlots, Oe as tokensToMuiOptions, v as useFormatSelection, Qe as useFormulaBarSession, yn as useModelListener, bn as useRangeListener, Zn as useStudioApp };