@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,521 @@
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 { DynamicIcon as e, KeyCodes as t, KeyModifiers as n, ReactUtils as r, keyEventCanonicals as o, keyStrokeToCanonical as l, useTranslator as i } from "@sheetxl/utils-react";
8
+ import a, { useCallback as s, useEffect as c, useMemo as p, useRef as d, useState as u } from "react";
9
+ import { InternalWindow as h } from "@sheetxl/utils-mui";
10
+ import { jsx as m, jsxs as g } from "react/jsx-runtime";
11
+ import { Box as f, Checkbox as x, Chip as y, DialogContent as b, FormControlLabel as S, IconButton as v, InputAdornment as k, TextField as C, Tooltip as K, Typography as w, emphasize as $ } from "@mui/material";
12
+ import { CommonUtils as L, TimerUtils as M } from "@sheetxl/utils";
13
+ var A = /* @__PURE__ */ new Set([
14
+ "a",
15
+ "e",
16
+ "i",
17
+ "o",
18
+ "u",
19
+ "y"
20
+ ]), z = (e) => e ? e.replace(/(\p{Ll})(\p{Lu})/gu, "$1 $2").toLowerCase().split(/[^\p{L}\p{N}]+/u).filter((e) => e.length > 0) : [], P = (e, t) => {
21
+ const n = e.length + 1, r = t.length + 1, o = [];
22
+ for (let e = 0; e < n; e++) o.push(new Array(r).fill(0)), o[e][0] = e;
23
+ for (let e = 0; e < r; e++) o[0][e] = e;
24
+ for (let l = 1; l < n; l++) for (let n = 1; n < r; n++) {
25
+ const r = e[l - 1] === t[n - 1] ? 0 : 1;
26
+ let i = Math.min(o[l - 1][n] + 1, o[l][n - 1] + 1, o[l - 1][n - 1] + r);
27
+ l > 1 && n > 1 && e[l - 1] === t[n - 2] && e[l - 2] === t[n - 1] && (i = Math.min(i, o[l - 2][n - 2] + 1)), o[l][n] = i;
28
+ }
29
+ return o[n - 1][r - 1];
30
+ }, D = (e, t) => {
31
+ const n = e.length;
32
+ if (n < 4 || t.length < n - 1) return -1;
33
+ const r = e[n - 1];
34
+ if (!A.has(r) && !t.includes(r)) return -1;
35
+ const o = n >= 8 ? 2 : 1;
36
+ let l = -1;
37
+ for (let r = n - 1; r <= Math.min(n + 1, t.length); r++) {
38
+ const n = P(e, t.slice(0, r));
39
+ n <= o && (-1 === l || n < l) && (l = n);
40
+ }
41
+ return l;
42
+ }, I = (e, t) => {
43
+ const n = (t) => t.some((t) => t.startsWith(e));
44
+ return n(t.label) ? 3 : n(t.scope) ? 2 : n(t.description) ? 1 : 0;
45
+ }, B = (e, t) => {
46
+ const n = (t, n) => {
47
+ let r = 0;
48
+ for (const o of t) {
49
+ const t = D(e, o);
50
+ t >= 0 && (r = Math.max(r, n / (1 + t)));
51
+ }
52
+ return r;
53
+ };
54
+ return Math.max(n(t.label, 3), n(t.scope, 2));
55
+ }, W = (e) => e.replace(/\n\n+/g, "\n").trim(), F = /* @__PURE__ */ new Set([
56
+ "Control",
57
+ "Shift",
58
+ "Alt",
59
+ "Meta"
60
+ ]), R = (e) => {
61
+ let t = e;
62
+ const n = /* @__PURE__ */ new Set();
63
+ for (const e of [
64
+ "mod",
65
+ "alt",
66
+ "shift"
67
+ ]) t.startsWith(`${e}+`) && (n.add(e), t = t.slice(e.length + 1));
68
+ return {
69
+ key: t,
70
+ mods: n
71
+ };
72
+ }, T = L.getPlatform() === L.OSType.MacOS || L.getPlatform() === L.OSType.IOS, E = [
73
+ n.Ctrl,
74
+ n.Alt,
75
+ n.Shift,
76
+ n.Meta
77
+ ], O = (e) => {
78
+ switch (e) {
79
+ case n.Ctrl: return T ? "Cmd" : "Ctrl";
80
+ case n.Alt: return "Alt";
81
+ case n.Shift: return "Shift";
82
+ case n.Meta: return "Meta";
83
+ default: return e;
84
+ }
85
+ }, j = (e) => {
86
+ const t = new Set(e);
87
+ return E.filter((e) => t.has(e));
88
+ }, X = (e) => {
89
+ const t = [];
90
+ return e.ctrlKey && t.push(n.Ctrl), e.altKey && t.push(n.Alt), e.shiftKey && t.push(n.Shift), e.metaKey && t.push(n.Meta), t;
91
+ }, H = ({ children: e }) => m(f, {
92
+ component: "kbd",
93
+ sx: {
94
+ display: "inline-flex",
95
+ alignItems: "center",
96
+ justifyContent: "center",
97
+ minWidth: "20px",
98
+ height: "20px",
99
+ paddingX: "5px",
100
+ boxSizing: "border-box",
101
+ fontFamily: "inherit",
102
+ fontSize: "0.7rem",
103
+ fontWeight: 600,
104
+ lineHeight: 1,
105
+ whiteSpace: "nowrap",
106
+ borderRadius: "5px",
107
+ color: (e) => e.palette.text.secondary,
108
+ backgroundColor: (e) => $(e.palette.background.paper, .07),
109
+ border: (e) => `solid 1px ${e.palette.divider}`,
110
+ borderBottomWidth: "2px"
111
+ },
112
+ children: e
113
+ }), N = () => m(f, {
114
+ component: "span",
115
+ sx: {
116
+ fontSize: "0.7rem",
117
+ color: (e) => e.palette.text.disabled
118
+ },
119
+ children: "+"
120
+ }), U = ({ labels: e, dangling: t = !1 }) => g(f, {
121
+ sx: {
122
+ display: "flex",
123
+ alignItems: "center",
124
+ gap: "1px"
125
+ },
126
+ children: [e.map((e, t) => g(a.Fragment, { children: [t > 0 && m(N, {}), m(H, { children: e })] }, t)), t && m(N, {})]
127
+ }), Y = ({ stroke: e }) => {
128
+ if (!e?.key) return null;
129
+ const t = j(e.modifiers ?? []).map(O);
130
+ return t.push(r.toPrettyKeyCode(e.key)), m(U, { labels: t });
131
+ };
132
+ function q(n) {
133
+ const { commands: r, sx: a, ...h } = n, b = i(), [L, A] = u(!1), [P, D] = u(""), [E, H] = u(null), [N, q] = u(!1), [G, J] = u(null), [Q, V] = u(null), [Z, _] = u(null), ee = d(null), te = p(() => {
134
+ let e = r.getAllCommands();
135
+ L && (e = e.filter((e) => e.command.getShortcut())), e = [...e].sort((e, t) => {
136
+ const n = e.command.getScope?.() ?? e.groupKey, r = t.command.getScope?.() ?? t.groupKey, o = n.localeCompare(r);
137
+ return 0 !== o ? o : e.command.getLabel().localeCompare(t.command.getLabel());
138
+ });
139
+ const t = [], n = /* @__PURE__ */ new Set();
140
+ for (const r of e) {
141
+ const e = r.command, o = e.getScope?.() ?? r.groupKey, i = {
142
+ label: e.getLabel(),
143
+ icon: e.getIcon(),
144
+ scope: o,
145
+ scopeLabel: e.getScopeLabel?.() ?? o,
146
+ description: W(e.getDescription())
147
+ }, a = e.getShortcut(), s = Array.isArray(a) ? a.length ? a : [null] : [a ?? null];
148
+ for (const e of s) {
149
+ const r = e ? l(e) : null, a = `${o}\0${i.label}\0${r ?? ""}`;
150
+ n.has(a) || (n.add(a), t.push({
151
+ ...i,
152
+ id: a,
153
+ shortcut: e,
154
+ canonical: r
155
+ }));
156
+ }
157
+ }
158
+ return t;
159
+ }, [L, r]), ne = p(() => E ? te.filter((e) => e.scope === E) : te, [te, E]), re = p(() => ((e) => {
160
+ const t = e.map((e) => ({
161
+ item: e,
162
+ label: z(e.label),
163
+ scope: [...z(e.scope), ...z(e.scopeLabel)],
164
+ description: z(e.description)
165
+ })), n = (e, n) => {
166
+ const r = [];
167
+ return t.forEach((t, o) => {
168
+ let l = 0;
169
+ for (const r of e) {
170
+ let e = I(r, t);
171
+ if (0 === e && n && (e = B(r, t)), 0 === e) return;
172
+ l += e;
173
+ }
174
+ r.push({
175
+ item: t.item,
176
+ score: l,
177
+ order: o
178
+ });
179
+ }), r.sort((e, t) => t.score - e.score || e.order - t.order), r.map((e) => e.item);
180
+ };
181
+ return (t) => {
182
+ const r = z(t);
183
+ if (0 === r.length) return [...e];
184
+ const o = n(r, !1);
185
+ return o.length > 0 ? o : n(r, !0);
186
+ };
187
+ })(ne), [ne]), [oe, le] = u(te);
188
+ c(() => {
189
+ if (N) return Q ? void le(ne.filter((e) => {
190
+ if (!e.canonical) return !1;
191
+ const t = R(e.canonical);
192
+ if (!Q.keys.has(t.key)) return !1;
193
+ for (const e of Q.mods) if (!t.mods.has(e)) return !1;
194
+ return !0;
195
+ })) : void le(ne);
196
+ M.debounce(() => {
197
+ le(re(P));
198
+ }, 90)();
199
+ }, [
200
+ N,
201
+ Q,
202
+ re,
203
+ P,
204
+ ne
205
+ ]);
206
+ const ie = p(() => {
207
+ const e = /* @__PURE__ */ new Map();
208
+ for (const t of oe) {
209
+ let n = e.get(t.scope);
210
+ n || (n = [], e.set(t.scope, n)), n.push(t);
211
+ }
212
+ return Array.from(e, ([e, t]) => ({
213
+ scope: e,
214
+ scopeLabel: t[0].scopeLabel,
215
+ rows: t
216
+ }));
217
+ }, [oe]), ae = p(() => te.find((e) => e.scope === E)?.scopeLabel ?? E, [te, E]), se = N ? !!G : P.length > 0, ce = se && 0 === oe.length;
218
+ c(() => {
219
+ ee.current?.focus();
220
+ }, [N]);
221
+ const pe = s((e) => {
222
+ q(e), D(""), J(null), V(null), _(null);
223
+ }, []), de = s((e) => {
224
+ if ("Tab" === e.key) return;
225
+ if (e.which === t.Escape) return G || Z ? (J(null), V(null), _(null)) : pe(!1), e.stopPropagation(), void e.preventDefault();
226
+ if (e.preventDefault(), e.stopPropagation(), "Backspace" === e.key) return J(null), V(null), void _(null);
227
+ const n = e.nativeEvent;
228
+ if (F.has(e.key)) return J(null), V(null), void _(X(n));
229
+ _(null), J(((e) => {
230
+ const t = [];
231
+ e.ctrlKey && t.push("ctrl"), e.altKey && t.push("alt"), e.shiftKey && t.push("shift"), e.metaKey && t.push("meta");
232
+ const n = e.code;
233
+ let r = e.key;
234
+ return n && (r = n.startsWith("Key") && n.length > 3 ? n.slice(3) : n.startsWith("Digit") && n.length > 5 ? n.slice(5) : n), {
235
+ key: r,
236
+ modifiers: t
237
+ };
238
+ })(n)), V(((e) => {
239
+ const t = [...o(e)].map(R);
240
+ return {
241
+ keys: new Set(t.map((e) => e.key)),
242
+ mods: t[0]?.mods ?? /* @__PURE__ */ new Set()
243
+ };
244
+ })(n));
245
+ }, [
246
+ G,
247
+ Z,
248
+ pe
249
+ ]), ue = s((e) => {
250
+ if (G) return;
251
+ const t = X(e.nativeEvent);
252
+ _(t.length ? t : null);
253
+ }, [G]), he = s((e) => {
254
+ H((t) => t === e ? null : e);
255
+ }, []), me = s(() => {
256
+ N ? (J(null), V(null), _(null)) : D(""), ee.current?.focus();
257
+ }, [N]), ge = N ? !!(G || Z && Z.length > 0) : P.length > 0, fe = m(K, {
258
+ title: N ? "Search by name (ESC)" : `Search by shortcut (${T ? "Cmd" : "Ctrl"}+K)`,
259
+ children: m(v, {
260
+ "aria-label": "toggle shortcut capture",
261
+ color: N ? "primary" : "default",
262
+ onClick: () => pe(!N),
263
+ sx: {
264
+ flexShrink: 0,
265
+ border: (e) => `solid 1px ${N ? e.palette.primary.main : e.palette.divider}`,
266
+ borderRadius: (e) => `${e.shape.borderRadius}px`
267
+ },
268
+ children: m(e, { iconKey: "Keyboard" })
269
+ })
270
+ });
271
+ return g(f, {
272
+ style: {
273
+ height: 460,
274
+ width: "100%",
275
+ display: "flex",
276
+ flexDirection: "column"
277
+ },
278
+ sx: [{ fontFamily: (e) => e.typography.fontFamily }, ...Array.isArray(a) ? a : [a]],
279
+ ...h,
280
+ children: [
281
+ g(f, {
282
+ sx: {
283
+ display: "flex",
284
+ alignItems: "center",
285
+ gap: 1,
286
+ marginBottom: (e) => e.spacing(1.5)
287
+ },
288
+ children: [
289
+ m(C, {
290
+ inputRef: ee,
291
+ slotProps: {
292
+ input: {
293
+ sx: { backgroundColor: (e) => e.palette.action.hover },
294
+ startAdornment: N && (G || Z && Z.length > 0) ? m(k, {
295
+ position: "start",
296
+ sx: { marginRight: "6px" },
297
+ children: G ? m(Y, { stroke: G }) : m(U, {
298
+ labels: j(Z).map(O),
299
+ dangling: !0
300
+ })
301
+ }) : void 0,
302
+ endAdornment: ge ? m(k, {
303
+ position: "end",
304
+ children: m(v, {
305
+ "aria-label": N ? "clear shortcut" : "clear search",
306
+ onClick: me,
307
+ edge: "end",
308
+ size: "small",
309
+ children: m(e, { iconKey: "Close" })
310
+ })
311
+ }) : void 0
312
+ },
313
+ htmlInput: {
314
+ className: "input",
315
+ autoFocus: !0,
316
+ spellCheck: !1,
317
+ placeholder: N ? G || Z && Z.length > 0 ? "" : "Press a shortcut… (Esc to exit)" : "Type to search commands, scopes, or descriptions",
318
+ autoComplete: "off",
319
+ "aria-label": N ? "Press a shortcut to find its command" : "Search commands",
320
+ sx: {
321
+ paddingTop: (e) => e.spacing(1),
322
+ paddingBottom: (e) => e.spacing(1),
323
+ caretColor: (e) => N ? e.palette.primary.main : void 0
324
+ }
325
+ }
326
+ },
327
+ sx: {
328
+ flex: "1 1 auto",
329
+ "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => ce ? `${e.palette.error.main} !important` : N ? `${e.palette.primary.main} !important` : void 0 }
330
+ },
331
+ value: N ? "" : P,
332
+ onChange: (e) => {
333
+ N || D(e.target.value);
334
+ },
335
+ onKeyDown: N ? de : (e) => {
336
+ if ((e.ctrlKey || e.metaKey) && ("k" === e.key || "K" === e.key)) return pe(!0), e.stopPropagation(), void e.preventDefault();
337
+ e.which === t.Escape && P.length > 0 && (D(""), e.stopPropagation(), e.preventDefault());
338
+ },
339
+ onKeyUp: N ? ue : void 0,
340
+ onContextMenu: (e) => e.stopPropagation()
341
+ }),
342
+ fe,
343
+ m(S, {
344
+ sx: {
345
+ flexShrink: 0,
346
+ marginRight: 0
347
+ },
348
+ control: m(x, {
349
+ checked: L,
350
+ onChange: () => A(!L)
351
+ }),
352
+ label: b("shortcutKeys.onlyKeyBindings"),
353
+ labelPlacement: "start"
354
+ })
355
+ ]
356
+ }),
357
+ E && m(f, {
358
+ sx: {
359
+ display: "flex",
360
+ marginBottom: 1
361
+ },
362
+ children: m(y, {
363
+ size: "small",
364
+ label: b("shortcutKeys.scopeFilter", { scope: ae }),
365
+ onDelete: () => H(null)
366
+ })
367
+ }),
368
+ m(f, {
369
+ sx: {
370
+ flex: "1 1 100%",
371
+ minHeight: 0,
372
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
373
+ border: (e) => `solid ${e.palette.divider} 1px`,
374
+ overflow: "visible"
375
+ },
376
+ children: m(f, {
377
+ sx: {
378
+ height: "100%",
379
+ overflow: "auto"
380
+ },
381
+ children: 0 === ie.length ? m(f, {
382
+ sx: {
383
+ padding: 3,
384
+ textAlign: "center",
385
+ color: (e) => ce ? e.palette.error.main : e.palette.text.secondary
386
+ },
387
+ children: b(se ? "shortcutKeys.noMatches" : "shortcutKeys.none")
388
+ }) : ie.map((t) => g(f, { children: [g(f, {
389
+ onClick: () => he(t.scope),
390
+ sx: {
391
+ position: "sticky",
392
+ top: "-1px",
393
+ zIndex: 2,
394
+ display: "flex",
395
+ alignItems: "center",
396
+ justifyContent: "space-between",
397
+ gap: 1,
398
+ paddingX: 1.5,
399
+ paddingTop: "5px",
400
+ paddingBottom: "4px",
401
+ cursor: "pointer",
402
+ userSelect: "none",
403
+ fontSize: "0.7rem",
404
+ fontWeight: 600,
405
+ letterSpacing: "0.04em",
406
+ textTransform: "uppercase",
407
+ backgroundColor: (e) => $(e.palette.background.paper, .04),
408
+ boxShadow: (e) => `0 -2px 0 0 ${$(e.palette.background.paper, .04)}`,
409
+ borderBottom: (e) => `solid 1px ${e.palette.divider}`,
410
+ color: (e) => E === t.scope ? e.palette.primary.main : e.palette.text.secondary,
411
+ "&:hover": {
412
+ color: (e) => e.palette.text.primary,
413
+ backgroundColor: (e) => $(e.palette.background.paper, .09)
414
+ }
415
+ },
416
+ children: [m("span", { children: t.scopeLabel }), m(w, {
417
+ component: "span",
418
+ sx: {
419
+ fontSize: "inherit",
420
+ opacity: .7
421
+ },
422
+ children: t.rows.length
423
+ })]
424
+ }), t.rows.map((t) => {
425
+ return g(f, {
426
+ sx: {
427
+ paddingX: 1.5,
428
+ paddingY: .75,
429
+ borderBottom: (e) => `solid 1px ${e.palette.divider}`,
430
+ "&:hover": { backgroundColor: (e) => e.palette.action.hover }
431
+ },
432
+ children: [g(f, {
433
+ sx: {
434
+ display: "flex",
435
+ alignItems: "center",
436
+ gap: 1
437
+ },
438
+ children: [
439
+ m(f, {
440
+ sx: {
441
+ flexShrink: 0,
442
+ display: "flex",
443
+ alignItems: "center",
444
+ width: "var(--icon-size, 20px)",
445
+ height: "var(--icon-size, 20px)",
446
+ color: (e) => e.palette.text.icon ?? e.palette.action.active
447
+ },
448
+ children: (n = t.icon, n && "string" != typeof n ? n : m(e, { iconKey: n }))
449
+ }),
450
+ m(w, {
451
+ sx: {
452
+ flex: "1 1 auto",
453
+ fontWeight: 500
454
+ },
455
+ children: t.label
456
+ }),
457
+ t.shortcut && m(f, {
458
+ sx: { flexShrink: 0 },
459
+ children: m(Y, { stroke: t.shortcut })
460
+ })
461
+ ]
462
+ }), t.description && m(w, {
463
+ component: "div",
464
+ sx: {
465
+ marginTop: "2px",
466
+ marginLeft: "calc(var(--icon-size, 20px) + 8px)",
467
+ fontSize: "0.75rem",
468
+ whiteSpace: "pre-line",
469
+ color: (e) => e.palette.text.secondary
470
+ },
471
+ children: t.description
472
+ })]
473
+ }, t.id);
474
+ var n;
475
+ })] }, t.scope))
476
+ })
477
+ }),
478
+ m(f, {
479
+ sx: {
480
+ display: "flex",
481
+ flexShrink: 0,
482
+ paddingLeft: (e) => e.spacing(1),
483
+ paddingTop: (e) => e.spacing(1),
484
+ paddingRight: (e) => e.spacing(1),
485
+ userSelect: "none",
486
+ justifyContent: "flex-end"
487
+ },
488
+ children: m(w, {
489
+ noWrap: !0,
490
+ component: "div",
491
+ sx: { color: (e) => ce ? e.palette.error.main : e.palette.text.secondary },
492
+ children: b(se ? "shortcutKeys.countFound" : "shortcutKeys.count", { count: oe.length })
493
+ })
494
+ })
495
+ ]
496
+ });
497
+ }
498
+ var G = (e) => {
499
+ const { title: n = "Shortcut Keys", commands: r, sx: o, ...l } = e;
500
+ return m(h, {
501
+ isModal: !0,
502
+ onKeyDown: (e) => {
503
+ e.keyCode === t.F1 && e.preventDefault();
504
+ },
505
+ sx: {
506
+ width: "780px",
507
+ ...o
508
+ },
509
+ title: n,
510
+ autoFocusSel: ".input",
511
+ ...l,
512
+ children: m(b, {
513
+ dividers: !0,
514
+ children: m(q, {
515
+ commands: r,
516
+ sx: { marginBottom: "8px" }
517
+ })
518
+ })
519
+ });
520
+ };
521
+ export { G as default };
@@ -0,0 +1,94 @@
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 { useTranslator as e } from "@sheetxl/utils-react";
8
+ import { useState as t } from "react";
9
+ import { OptionsDialog as o } from "@sheetxl/utils-mui";
10
+ import { jsx as r, jsxs as a } from "react/jsx-runtime";
11
+ import { Box as l, TextField as s, Typography as p } from "@mui/material";
12
+ var n = (n) => {
13
+ const i = e(), { description: u, requireCurrent: c = !1, onApply: d, title: m, sx: h, ...w } = n, [C, x] = t(""), [f, g] = t(""), [v, k] = t(""), [b, y] = t(!1), O = "" === f, F = v !== f, z = !O && !F;
14
+ return r(o, {
15
+ title: m ?? i(c ? "password.titleChange" : "password.title"),
16
+ options: ["Ok", "Cancel"],
17
+ defaultOption: "Ok",
18
+ cancelOption: "Cancel",
19
+ autoFocusSel: ".autoFocus",
20
+ sx: {
21
+ width: "380px",
22
+ ...h
23
+ },
24
+ onValidateOption: (e) => "Cancel" === e || (y(!0), z),
25
+ onOption: (e, t) => {
26
+ if (!t && "Ok" === e) return d(f, c ? C : void 0);
27
+ },
28
+ ...w,
29
+ children: a(l, {
30
+ sx: {
31
+ display: "flex",
32
+ flexDirection: "column",
33
+ gap: (e) => e.spacing(2),
34
+ paddingTop: (e) => e.spacing(1)
35
+ },
36
+ children: [
37
+ u ? r(p, {
38
+ variant: "body2",
39
+ sx: { color: "text.secondary" },
40
+ children: u
41
+ }) : null,
42
+ c ? r(s, {
43
+ type: "password",
44
+ size: "small",
45
+ label: i("password.current"),
46
+ value: C,
47
+ onChange: (e) => x(e.target.value),
48
+ slotProps: {
49
+ inputLabel: { shrink: !0 },
50
+ htmlInput: {
51
+ className: "autoFocus",
52
+ autoComplete: "current-password",
53
+ spellCheck: !1
54
+ }
55
+ }
56
+ }) : null,
57
+ r(s, {
58
+ type: "password",
59
+ size: "small",
60
+ label: i(c ? "password.new" : "password.label"),
61
+ value: f,
62
+ error: b && O,
63
+ helperText: b && O ? i("password.required") : " ",
64
+ onChange: (e) => g(e.target.value),
65
+ slotProps: {
66
+ inputLabel: { shrink: !0 },
67
+ htmlInput: {
68
+ className: c ? void 0 : "autoFocus",
69
+ autoComplete: "new-password",
70
+ spellCheck: !1
71
+ }
72
+ }
73
+ }),
74
+ r(s, {
75
+ type: "password",
76
+ size: "small",
77
+ label: i("protection.passwordConfirm"),
78
+ value: v,
79
+ error: b && !O && F,
80
+ helperText: b && !O && F ? i("protection.passwordMismatch") : " ",
81
+ onChange: (e) => k(e.target.value),
82
+ slotProps: {
83
+ inputLabel: { shrink: !0 },
84
+ htmlInput: {
85
+ autoComplete: "new-password",
86
+ spellCheck: !1
87
+ }
88
+ }
89
+ })
90
+ ]
91
+ })
92
+ });
93
+ };
94
+ export { n as PasswordDialog, n as default };