@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.
- package/browser/esm/0BWO0bLZ8Vm_dKd2.mjs +582 -0
- package/browser/esm/BAbq4-I5f5oUiNaF.mjs +141 -0
- package/browser/esm/BED6h6YAwCf1HEQJ.mjs +161 -0
- package/browser/esm/{DMLXV4EKl1NCp_jk.mjs → BXhNFzyEGokTF-BL.mjs} +2 -2
- package/browser/esm/BYE9gCDWKyx6mnVs.mjs +381 -0
- package/browser/esm/BjvD_4t2KGsZP5V8.mjs +71 -0
- package/browser/esm/{zWTZ8BvT4hjgC2ua.mjs → BknfGJouygmnpFIU.mjs} +13 -12
- package/browser/esm/{DNDrQKMTzKzNMjl-.mjs → BlE_8o8tO2AgAlaj.mjs} +19 -17
- package/browser/esm/BokqKEpU6TFgfRs6.mjs +252 -0
- package/browser/esm/{BoLxSRdEWt-Yg2RI.mjs → Brsh5yscJ_4uKFXp.mjs} +130 -103
- package/browser/esm/Bujtz_Guj88d03vI.mjs +831 -0
- package/browser/esm/Buqcl7J75MJrhpVE.mjs +1379 -0
- package/browser/esm/BvhYPwX3GrRaO9CM.mjs +319 -0
- package/browser/esm/C0wlMAIn9iREPK6w.mjs +87 -0
- package/browser/esm/C8JU4KsMasmLvojI.mjs +103 -0
- package/browser/esm/C9pIZVACtl9unFOp.mjs +77 -0
- package/browser/esm/CBD4RiRKbbZtSXV-.mjs +318 -0
- package/browser/esm/CEtXsBzEjEKk9GOj.mjs +117 -0
- package/browser/esm/{BZBJG2tDdD3-VujP.mjs → COlZu93LRwuBvjE-.mjs} +195 -174
- package/browser/esm/{Cj2pgCNqBCGl4rTX.mjs → CTjqDD-swFMZzI-Y.mjs} +587 -556
- package/browser/esm/CWkOgdL7mOKiTR62.mjs +975 -0
- package/browser/esm/ChSVxkPTIjgcC8PL.mjs +412 -0
- package/browser/esm/{Cd6n1XUgF0VItpkH.mjs → ClBvNPeNCAhuVWrG.mjs} +7 -5
- package/browser/esm/CyLn6zOOp_biA3xU.mjs +335 -0
- package/browser/esm/CynTY0oNtyJnoaBq.mjs +14 -0
- package/browser/esm/D3rRUK4dIM5gUSmj.mjs +256 -0
- package/browser/esm/D9ISy7VkaRRFJl46.mjs +515 -0
- package/browser/esm/DDc6rDuU9JAo1DH_.mjs +225 -0
- package/browser/esm/DDczwkXhz_MHub4z.mjs +197 -0
- package/browser/esm/{3ydDykDMtDYbfVVn.mjs → DEv4pIEgYr5C7etm.mjs} +178 -129
- package/browser/esm/DG21x7RKDpge6zAE.mjs +31 -0
- package/browser/esm/DJOOed_OtB-XT7f3.mjs +437 -0
- package/browser/esm/{Bz5LiUe3SZ8g42Ia.mjs → DKtJxrpN0axtuQ0l.mjs} +1 -1
- package/browser/esm/DRSCS6aLiYmPjUz1.mjs +1543 -0
- package/browser/esm/{ChwS_ougBsogOEsP.mjs → DTpRkgsTm_zYnWfW.mjs} +46 -47
- package/browser/esm/DV6i9RQZfJiKtEaJ.mjs +2552 -0
- package/browser/esm/DdcZrjMLWVukWcU5.mjs +7473 -0
- package/browser/esm/Di3BUxA0SqFWWgeg.mjs +94 -0
- package/browser/esm/DnGaP5F7mLwCGUYG.mjs +408 -0
- package/browser/esm/DpD4fg2WcyiKX_2K.mjs +414 -0
- package/browser/esm/{BUGepznywvV0tUjW.mjs → Ds3XRkne7HxcXD8J.mjs} +2 -2
- package/browser/esm/DsoNMWDwHZP8UXQd.mjs +293 -0
- package/browser/esm/G0Inqm6Eqw47dMpa.mjs +212 -0
- package/browser/esm/HViD4Wfoi0mmqk9w.mjs +13 -0
- package/browser/esm/LZoYSQAYV2wksnDv.mjs +386 -0
- package/browser/esm/{rU8xNPVQtDSnujM-.mjs → QgaAIDUMmBQBsXP9.mjs} +3 -3
- package/browser/esm/YThnrg3PadGs7B4j.mjs +627 -0
- package/browser/esm/index.mjs +1208 -67
- package/browser/esm/ttjcNHcFn8O6hfnd.mjs +1288 -0
- package/browser/esm/w_JrR69vEpvoyeMy.mjs +68 -0
- package/browser/esm/{CVfuCNRpODUw04IH.mjs → xFqkfN8QMCxvsetB.mjs} +1 -1
- package/browser/esm/zqilJefihVd7At2T.mjs +517 -0
- package/licenses/dependencies.txt +96 -349
- package/node/esm/1bf4gn-2vld4BZ9u.mjs +294 -0
- package/node/esm/{BhqI3pQFkV8K_612.mjs → 3WghtBXAvCDwcVrq.mjs} +1 -1
- package/node/esm/4HmLH0bPVJCZLgik.mjs +116 -0
- package/node/esm/{DM7K7-284z-PczVz.mjs → B0bdb_6p7fQI_ivo.mjs} +28 -28
- package/node/esm/BIMkjQUwG4Ih-6Sh.mjs +142 -0
- package/node/esm/BNg4QQY0WAPLE0q7.mjs +141 -0
- package/node/esm/BPzcW4BejRqso338.mjs +72 -0
- package/node/esm/BR45ogAR-hY2bE60.mjs +318 -0
- package/node/esm/BlN7G0DVC24zauig.mjs +197 -0
- package/node/esm/Bph-sR3l6AYWeuxK.mjs +256 -0
- package/node/esm/CPq-MIdEnc-53JpF.mjs +319 -0
- package/node/esm/CSAnTp5rwId0DUb8.mjs +380 -0
- package/node/esm/CWcv7UVXF8IUB0PC.mjs +1379 -0
- package/node/esm/{BA7VzUQ2sKRLTZ5c.mjs → CYIoK22I6Yvv12_x.mjs} +20 -20
- package/node/esm/CZyA9uD4SkTvqp_G.mjs +1283 -0
- package/node/esm/{CHi3AuWEwEPOg9IZ.mjs → CjC6s3RUJQNCF7mP.mjs} +1 -1
- package/node/esm/{DXZrzWee8K5FPOW1.mjs → CuMePia6i_8yfJ6S.mjs} +9 -9
- package/node/esm/CvRbu8JPxFarsSR-.mjs +412 -0
- package/node/esm/CyafafEgfmjLqE5O.mjs +521 -0
- package/node/esm/D-xqQ5qOSd6WrzwJ.mjs +94 -0
- package/node/esm/DLqBHdFp6wvm6EGs.mjs +212 -0
- package/node/esm/{BwZcoHDBmLPIVOT5.mjs → DMXLxp3T0E0SRTQc.mjs} +69 -70
- package/node/esm/{CUMKTjYv6VTkcWYi.mjs → DWqvf4H5F2wMnZ0L.mjs} +32 -30
- package/node/esm/DatM6eEYPpAtIMy-.mjs +405 -0
- package/node/esm/Db3dbaYLKUO66T9s.mjs +1689 -0
- package/node/esm/DdEzhVqYTrGODXrz.mjs +68 -0
- package/node/esm/DeZJlLk8WJ3BLtLs.mjs +975 -0
- package/node/esm/DfCuL8AUxMFoEG2s.mjs +519 -0
- package/node/esm/Do-zCKziWhoG5eAv.mjs +77 -0
- package/node/esm/DpJ2gmZJioCyq8La.mjs +632 -0
- package/node/esm/{Qpuqm6xBr_da38Ht.mjs → XEDcegsv5AGKBfu2.mjs} +165 -137
- package/node/esm/index.mjs +10124 -6751
- package/node/esm/yCUxQuqVuC4DHKPx.mjs +385 -0
- package/node/esm/zITjZ7R4raDqhP-n.mjs +515 -0
- package/package.json +15 -18
- package/resources/locales/de/groups.cmd.json +29 -16
- package/resources/locales/de/studio.cmd.json +18 -1
- package/resources/locales/de/ui.msg.json +447 -40
- package/resources/locales/en/groups.cmd.json +39 -17
- package/resources/locales/en/studio.cmd.json +18 -1
- package/resources/locales/en/ui.msg.json +403 -40
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +21 -5
- package/types/src/anchorItems/AnchorItemsPanel.d.ts +14 -0
- package/types/src/anchorItems/AnchoredRangeField.d.ts +40 -0
- package/types/src/anchorItems/index.d.ts +1 -0
- package/types/src/anomalies/AnomaliesPlugin.d.ts +5 -0
- package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
- package/types/src/anomalies/index.d.ts +3 -0
- package/types/src/border/BorderPopupButton.d.ts +6 -6
- package/types/src/border/BorderStylePopupButton.d.ts +3 -3
- package/types/src/border/BorderTemplateIcon.d.ts +29 -0
- package/types/src/border/index.d.ts +1 -0
- package/types/src/chart/ChartFormatPanel.d.ts +20 -0
- package/types/src/chart/ChartPlugin.d.ts +6 -0
- package/types/src/chart/index.d.ts +3 -0
- package/types/src/color/ColorPanel.d.ts +8 -2
- package/types/src/color/ColorPopupButton.d.ts +2 -1
- package/types/src/command/NumberFormatQuickButtons.d.ts +32 -0
- package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
- package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
- package/types/src/comments/CommentCard.d.ts +41 -0
- package/types/src/comments/CommentsPlugin.d.ts +6 -0
- package/types/src/comments/CommentsTaskPane.d.ts +23 -0
- package/types/src/comments/index.d.ts +4 -0
- package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +2 -2
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
- package/types/src/conditions/BetweenOption.d.ts +6 -1
- package/types/src/conditions/CombinatorOption.d.ts +7 -0
- package/types/src/conditions/ConditionEditor.d.ts +61 -4
- package/types/src/conditions/ConditionUtils.d.ts +65 -6
- package/types/src/conditions/ExpressionOption.d.ts +12 -6
- package/types/src/conditions/MembershipOption.d.ts +67 -0
- package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
- package/types/src/conditions/ScalarOption.d.ts +25 -6
- package/types/src/conditions/SelectorSelect.d.ts +16 -7
- package/types/src/conditions/index.d.ts +1 -1
- package/types/src/conditions/useFormulaOption.d.ts +54 -0
- package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +7 -1
- package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -2
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +13 -2
- package/types/src/dataValidation/DataValidationIcon.d.ts +22 -0
- package/types/src/dataValidation/DataValidationTitle.d.ts +13 -0
- package/types/src/dialog/FillSeriesDialog.d.ts +16 -0
- package/types/src/dialog/OutlineSettingsDialog.d.ts +12 -0
- package/types/src/dialog/TableNewDialog.d.ts +1 -4
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
- package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
- package/types/src/dialog/index.d.ts +0 -2
- package/types/src/externalLink/ExternalLinkCardBody.d.ts +9 -0
- package/types/src/externalLink/ExternalLinkChip.d.ts +18 -0
- package/types/src/externalLink/ExternalLinkLocation.d.ts +18 -0
- package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +18 -0
- package/types/src/externalLink/ExternalLinksPanel.d.ts +11 -0
- package/types/src/externalLink/ExternalLinksPlugin.d.ts +5 -0
- package/types/src/externalLink/ExternalLinksTaskPane.d.ts +19 -0
- package/types/src/externalLink/index.d.ts +8 -0
- package/types/src/fill/GradientEditor.d.ts +41 -0
- package/types/src/fill/GradientStopsBar.d.ts +43 -0
- package/types/src/fill/PatternPopupButton.d.ts +26 -0
- package/types/src/fill/PatternSwatch.d.ts +53 -0
- package/types/src/fill/index.d.ts +5 -0
- package/types/src/filter/ColumnMenu.d.ts +31 -1
- package/types/src/filter/index.d.ts +0 -1
- package/types/src/form/FormulaField.d.ts +35 -6
- package/types/src/form/InputField.d.ts +35 -5
- package/types/src/format/AlignmentPanel.d.ts +13 -0
- package/types/src/format/BorderPanel.d.ts +22 -0
- package/types/src/format/BorderPreview.d.ts +101 -0
- package/types/src/format/FillPanel.d.ts +65 -0
- package/types/src/format/FontPanel.d.ts +12 -0
- package/types/src/format/FormatCellPreview.d.ts +35 -0
- package/types/src/format/FormatPanelParts.d.ts +85 -0
- package/types/src/format/FormatPlugin.d.ts +11 -0
- package/types/src/format/FormatTaskPane.d.ts +39 -0
- package/types/src/format/LinePanel.d.ts +53 -0
- package/types/src/format/LinePreviews.d.ts +71 -0
- package/types/src/format/NumberFormatOption.d.ts +43 -0
- package/types/src/{numberFormat → format}/NumberFormatPanel.d.ts +20 -0
- package/types/src/format/index.d.ts +14 -0
- package/types/src/format/useFormatSelection.d.ts +93 -0
- package/types/src/formulaBar/IFormulaBar.d.ts +11 -0
- package/types/src/formulaBar/MobileFormulaBar.d.ts +33 -0
- package/types/src/formulaBar/MobileInputToolbar.d.ts +43 -0
- package/types/src/formulaBar/index.d.ts +3 -0
- package/types/src/formulaBar/useFormulaBarSession.d.ts +68 -0
- package/types/src/index.d.ts +19 -4
- package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
- package/types/src/itemsPanel/EditorPanel.d.ts +4 -1
- package/types/src/itemsPanel/ItemCard.d.ts +60 -8
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +68 -19
- package/types/src/itemsPanel/ItemsPanel.d.ts +9 -0
- package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
- package/types/src/itemsPanel/index.d.ts +2 -0
- package/types/src/named/NamedDetailsPanel.d.ts +9 -2
- package/types/src/named/NamedDetailsTaskPane.d.ts +3 -2
- package/types/src/named/NamedEditorPanel.d.ts +1 -1
- package/types/src/named/NamedExpressionField.d.ts +32 -0
- package/types/src/named/NamedKindChip.d.ts +38 -0
- package/types/src/picture/PicturePlugin.d.ts +6 -0
- package/types/src/picture/index.d.ts +2 -0
- package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +6 -0
- package/types/src/protectedRange/ProtectedRangeDraft.d.ts +22 -0
- package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +0 -14
- package/types/src/protectedRange/index.d.ts +2 -1
- package/types/src/protection/ManageProtectionTaskPane.d.ts +29 -0
- package/types/src/protection/PasswordDialog.d.ts +32 -0
- package/types/src/protection/PasswordField.d.ts +35 -0
- package/types/src/protection/ProtectedCellsPanel.d.ts +20 -0
- package/types/src/protection/ProtectionPlugin.d.ts +11 -0
- package/types/src/protection/WorkbookProtectionPanel.d.ts +34 -15
- package/types/src/protection/WorkbookProtectionTab.d.ts +22 -0
- package/types/src/protection/WorksheetProtectionPanel.d.ts +35 -0
- package/types/src/protection/index.d.ts +7 -1
- package/types/src/shape/InsertShapeCommandButton.d.ts +20 -0
- package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
- package/types/src/shape/ShapePlugin.d.ts +6 -0
- package/types/src/shape/index.d.ts +3 -0
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +18 -0
- package/types/src/slicer/SlicerPlugin.d.ts +6 -0
- package/types/src/slicer/index.d.ts +3 -0
- package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
- package/types/src/studio/CommandsWrapper.d.ts +5 -0
- package/types/src/studio/EagerStudio.d.ts +14 -1
- package/types/src/studio/StudioCommandProvider.d.ts +10 -0
- package/types/src/studio/StudioCommands.d.ts +40 -4
- package/types/src/studio/StudioProps.d.ts +64 -2
- package/types/src/studio/StudioSplitPane.d.ts +1 -1
- package/types/src/studio/formulaBarPlacement.d.ts +35 -0
- package/types/src/studio/splitStudioProps.d.ts +7 -0
- package/types/src/studio/useStudioApp.d.ts +31 -18
- package/types/src/template/TemplateCommands.d.ts +29 -0
- package/types/src/template/TemplateDialog.d.ts +19 -0
- package/types/src/template/TemplatePanel.d.ts +50 -0
- package/types/src/template/TemplateSearchField.d.ts +29 -0
- package/types/src/template/WelcomeDialog.d.ts +29 -0
- package/types/src/template/categoryColor.d.ts +8 -0
- package/types/src/template/index.d.ts +3 -0
- package/types/src/template/useTemplateCatalog.d.ts +71 -0
- package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
- package/types/src/workbook/DefaultRenderers.d.ts +16 -2
- package/types/src/workbook/FillMenu.d.ts +21 -0
- package/types/src/workbook/OutlineButtons.d.ts +11 -0
- package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
- package/types/src/workbook/WorkbookElement.d.ts +1 -1
- package/types/src/workbook/index.d.ts +1 -0
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
- package/browser/cjs/B_D3JKseVvpRyX-E.cjs +0 -1
- package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +0 -2
- package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +0 -2
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/Bte6P3MhSjajJmmY.cjs +0 -7
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
- package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +0 -1
- package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CYxc8vnRi8dNpDPk.cjs +0 -1
- package/browser/cjs/CZm1jVZaHQ246prW.cjs +0 -1
- package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
- package/browser/cjs/Cm1APq2MraYNNhyI.cjs +0 -1
- package/browser/cjs/DO8V31Z1ewgMA1di.cjs +0 -5
- package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +0 -1
- package/browser/cjs/IASAYG6qgv7lJY7y.cjs +0 -1
- package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
- package/browser/cjs/UnMhi28mbvLiOXQe.cjs +0 -1
- package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +0 -1
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
- package/browser/cjs/index.cjs +0 -2
- package/browser/cjs/w2GjebPlOFv3pCbm.cjs +0 -1
- package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +0 -11
- package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +0 -1
- package/browser/esm/BuY3uV47Bwbqpasq.mjs +0 -219
- package/browser/esm/CAs1MWvJTcRfJy26.mjs +0 -217
- package/browser/esm/CBU3LgLYmqtQjJbu.mjs +0 -1150
- package/browser/esm/CDU0rqpLNVtMLI-f.mjs +0 -52
- package/browser/esm/CVBub6pgTsJzCc5m.mjs +0 -5429
- package/browser/esm/C_XvSsQ9BVdHffCO.mjs +0 -47
- package/browser/esm/FT29q8yNwsEpVZjt.mjs +0 -9257
- package/browser/esm/Hb1rlHT4tE5hLcjM.mjs +0 -82
- package/browser/esm/UJOXCQv6KrG1gY3l.mjs +0 -105
- package/browser/esm/s46El7mT6oKLSnYB.mjs +0 -411
- package/node/esm/9FY82fj1R1c-AczW.mjs +0 -47
- package/node/esm/C-boHCnJditFzng3.mjs +0 -106
- package/node/esm/DxXM8qHi0Oz4Zovl.mjs +0 -4575
- package/node/esm/sQt2wWGTRLzqeJdG.mjs +0 -82
- package/node/esm/yCHAZKxJR7qY_ySy.mjs +0 -470
- package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +0 -32
- package/types/src/conditions/DateTimeOption.d.ts +0 -43
- package/types/src/conditions/InSetOption.d.ts +0 -37
- package/types/src/dialog/CommentsDialog.d.ts +0 -11
- package/types/src/dialog/NumberFormatDialog.d.ts +0 -12
- package/types/src/filter/FilterList.d.ts +0 -28
- package/types/src/numberFormat/NumberFormatTaskPane.d.ts +0 -12
- package/types/src/numberFormat/index.d.ts +0 -8
- package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +0 -3
- package/types/src/protectedRange/ProtectedRangePlugin.d.ts +0 -2
- package/types/src/protection/WorkbookProtectionDialog.d.ts +0 -23
|
@@ -1,21 +1,61 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { DynamicIcon as e, KeyCodes as t, KeyModifiers as n, ReactUtils as r, keyEventCanonicals as i, keyStrokeToCanonical as a } from "@sheetxl/utils-react";
|
|
8
|
-
import
|
|
7
|
+
import { DynamicIcon as e, KeyCodes as t, KeyModifiers as n, ReactUtils as r, keyEventCanonicals as i, keyStrokeToCanonical as a, useTranslator as o } from "@sheetxl/utils-react";
|
|
8
|
+
import s, { useCallback as c, useEffect as l, useMemo as u, useRef as ee, useState as d } from "react";
|
|
9
9
|
import { InternalWindow as f } from "@sheetxl/utils-mui";
|
|
10
10
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
11
|
-
import { Box as h, Checkbox as g, Chip as
|
|
12
|
-
import { CommonUtils as
|
|
13
|
-
var
|
|
11
|
+
import { Box as h, Checkbox as g, Chip as te, DialogContent as _, FormControlLabel as ne, IconButton as v, InputAdornment as y, TextField as re, Tooltip as ie, Typography as b, emphasize as x } from "@mui/material";
|
|
12
|
+
import { CommonUtils as S, TimerUtils as ae } from "@sheetxl/utils";
|
|
13
|
+
var C = /* @__PURE__ */ new Set([
|
|
14
|
+
"a",
|
|
15
|
+
"e",
|
|
16
|
+
"i",
|
|
17
|
+
"o",
|
|
18
|
+
"u",
|
|
19
|
+
"y"
|
|
20
|
+
]), w = (e) => e ? e.replace(/(\p{Ll})(\p{Lu})/gu, "$1 $2").toLowerCase().split(/[^\p{L}\p{N}]+/u).filter((e) => e.length > 0) : [], T = (e, t) => {
|
|
21
|
+
let n = e.length + 1, r = t.length + 1, i = [];
|
|
22
|
+
for (let e = 0; e < n; e++) i.push(Array(r).fill(0)), i[e][0] = e;
|
|
23
|
+
for (let e = 0; e < r; e++) i[0][e] = e;
|
|
24
|
+
for (let a = 1; a < n; a++) for (let n = 1; n < r; n++) {
|
|
25
|
+
let r = e[a - 1] === t[n - 1] ? 0 : 1, o = Math.min(i[a - 1][n] + 1, i[a][n - 1] + 1, i[a - 1][n - 1] + r);
|
|
26
|
+
a > 1 && n > 1 && e[a - 1] === t[n - 2] && e[a - 2] === t[n - 1] && (o = Math.min(o, i[a - 2][n - 2] + 1)), i[a][n] = o;
|
|
27
|
+
}
|
|
28
|
+
return i[n - 1][r - 1];
|
|
29
|
+
}, E = (e, t) => {
|
|
30
|
+
let n = e.length;
|
|
31
|
+
if (n < 4 || t.length < n - 1) return -1;
|
|
32
|
+
let r = e[n - 1];
|
|
33
|
+
if (!C.has(r) && !t.includes(r)) return -1;
|
|
34
|
+
let i = n >= 8 ? 2 : 1, a = -1;
|
|
35
|
+
for (let r = n - 1; r <= Math.min(n + 1, t.length); r++) {
|
|
36
|
+
let n = T(e, t.slice(0, r));
|
|
37
|
+
n <= i && (a === -1 || n < a) && (a = n);
|
|
38
|
+
}
|
|
39
|
+
return a;
|
|
40
|
+
}, oe = (e, t) => {
|
|
41
|
+
let n = (t) => t.some((t) => t.startsWith(e));
|
|
42
|
+
return n(t.label) ? 3 : n(t.scope) ? 2 : +!!n(t.description);
|
|
43
|
+
}, se = (e, t) => {
|
|
44
|
+
let n = (t, n) => {
|
|
45
|
+
let r = 0;
|
|
46
|
+
for (let i of t) {
|
|
47
|
+
let t = E(e, i);
|
|
48
|
+
t >= 0 && (r = Math.max(r, n / (1 + t)));
|
|
49
|
+
}
|
|
50
|
+
return r;
|
|
51
|
+
};
|
|
52
|
+
return Math.max(n(t.label, 3), n(t.scope, 2));
|
|
53
|
+
}, ce = (e) => e.replace(/\n\n+/g, "\n").trim(), le = /* @__PURE__ */ new Set([
|
|
14
54
|
"Control",
|
|
15
55
|
"Shift",
|
|
16
56
|
"Alt",
|
|
17
57
|
"Meta"
|
|
18
|
-
]),
|
|
58
|
+
]), D = (e) => {
|
|
19
59
|
let t = e, n = /* @__PURE__ */ new Set();
|
|
20
60
|
for (let e of [
|
|
21
61
|
"mod",
|
|
@@ -26,26 +66,26 @@ var ie = (e) => e.replace(/\n\n+/g, "\n").trim(), ae = /* @__PURE__ */ new Set([
|
|
|
26
66
|
key: t,
|
|
27
67
|
mods: n
|
|
28
68
|
};
|
|
29
|
-
},
|
|
69
|
+
}, O = S.getPlatform() === S.OSType.MacOS || S.getPlatform() === S.OSType.IOS, k = [
|
|
30
70
|
n.Ctrl,
|
|
31
71
|
n.Alt,
|
|
32
72
|
n.Shift,
|
|
33
73
|
n.Meta
|
|
34
|
-
],
|
|
74
|
+
], A = (e) => {
|
|
35
75
|
switch (e) {
|
|
36
|
-
case n.Ctrl: return
|
|
76
|
+
case n.Ctrl: return O ? "Cmd" : "Ctrl";
|
|
37
77
|
case n.Alt: return "Alt";
|
|
38
78
|
case n.Shift: return "Shift";
|
|
39
79
|
case n.Meta: return "Meta";
|
|
40
80
|
default: return e;
|
|
41
81
|
}
|
|
42
|
-
},
|
|
82
|
+
}, j = (e) => {
|
|
43
83
|
let t = new Set(e);
|
|
44
|
-
return
|
|
45
|
-
},
|
|
84
|
+
return k.filter((e) => t.has(e));
|
|
85
|
+
}, M = (e) => {
|
|
46
86
|
let t = [];
|
|
47
87
|
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;
|
|
48
|
-
},
|
|
88
|
+
}, N = ({ children: e }) => p(h, {
|
|
49
89
|
component: "kbd",
|
|
50
90
|
sx: {
|
|
51
91
|
display: "inline-flex",
|
|
@@ -62,34 +102,34 @@ var ie = (e) => e.replace(/\n\n+/g, "\n").trim(), ae = /* @__PURE__ */ new Set([
|
|
|
62
102
|
whiteSpace: "nowrap",
|
|
63
103
|
borderRadius: "5px",
|
|
64
104
|
color: (e) => e.palette.text.secondary,
|
|
65
|
-
backgroundColor: (e) =>
|
|
105
|
+
backgroundColor: (e) => x(e.palette.background.paper, .07),
|
|
66
106
|
border: (e) => `solid 1px ${e.palette.divider}`,
|
|
67
107
|
borderBottomWidth: "2px"
|
|
68
108
|
},
|
|
69
109
|
children: e
|
|
70
|
-
}),
|
|
110
|
+
}), P = () => p(h, {
|
|
71
111
|
component: "span",
|
|
72
112
|
sx: {
|
|
73
113
|
fontSize: "0.7rem",
|
|
74
114
|
color: (e) => e.palette.text.disabled
|
|
75
115
|
},
|
|
76
116
|
children: "+"
|
|
77
|
-
}),
|
|
117
|
+
}), F = ({ labels: e, dangling: t = !1 }) => m(h, {
|
|
78
118
|
sx: {
|
|
79
119
|
display: "flex",
|
|
80
120
|
alignItems: "center",
|
|
81
121
|
gap: "1px"
|
|
82
122
|
},
|
|
83
|
-
children: [e.map((e, t) => m(
|
|
84
|
-
}),
|
|
123
|
+
children: [e.map((e, t) => m(s.Fragment, { children: [t > 0 && p(P, {}), p(N, { children: e })] }, t)), t && p(P, {})]
|
|
124
|
+
}), I = ({ stroke: e }) => {
|
|
85
125
|
if (!e?.key) return null;
|
|
86
|
-
let t =
|
|
87
|
-
return t.push(r.toPrettyKeyCode(e.key)), p(
|
|
126
|
+
let t = j(e.modifiers ?? []).map(A);
|
|
127
|
+
return t.push(r.toPrettyKeyCode(e.key)), p(F, { labels: t });
|
|
88
128
|
};
|
|
89
|
-
function
|
|
90
|
-
let { commands: r, sx:
|
|
129
|
+
function L(n) {
|
|
130
|
+
let { commands: r, sx: s, ...f } = n, _ = o(), [S, C] = d(!1), [T, E] = d(""), [k, N] = d(null), [P, L] = d(!1), [R, z] = d(null), [B, V] = d(null), [H, U] = d(null), W = ee(null), G = u(() => {
|
|
91
131
|
let e = r.getAllCommands();
|
|
92
|
-
|
|
132
|
+
S && (e = e.filter((e) => e.command.getShortcut())), e = [...e].sort((e, t) => {
|
|
93
133
|
let n = e.command.getScope?.() ?? e.groupKey, r = t.command.getScope?.() ?? t.groupKey, i = n.localeCompare(r);
|
|
94
134
|
return i === 0 ? e.command.getLabel().localeCompare(t.command.getLabel()) : i;
|
|
95
135
|
});
|
|
@@ -100,7 +140,7 @@ function P(n) {
|
|
|
100
140
|
icon: e.getIcon(),
|
|
101
141
|
scope: i,
|
|
102
142
|
scopeLabel: e.getScopeLabel?.() ?? i,
|
|
103
|
-
description:
|
|
143
|
+
description: ce(e.getDescription())
|
|
104
144
|
}, s = e.getShortcut(), c = Array.isArray(s) ? s.length ? s : [null] : [s ?? null];
|
|
105
145
|
for (let e of c) {
|
|
106
146
|
let r = e ? a(e) : null, s = `${i}\0${o.label}\0${r ?? ""}`;
|
|
@@ -113,45 +153,54 @@ function P(n) {
|
|
|
113
153
|
}
|
|
114
154
|
}
|
|
115
155
|
return t;
|
|
116
|
-
}, [
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
e
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
156
|
+
}, [S, r]), K = u(() => k ? G.filter((e) => e.scope === k) : G, [G, k]), q = u(() => ((e) => {
|
|
157
|
+
let t = e.map((e) => ({
|
|
158
|
+
item: e,
|
|
159
|
+
label: w(e.label),
|
|
160
|
+
scope: [...w(e.scope), ...w(e.scopeLabel)],
|
|
161
|
+
description: w(e.description)
|
|
162
|
+
})), n = (e, n) => {
|
|
163
|
+
let r = [];
|
|
164
|
+
return t.forEach((t, i) => {
|
|
165
|
+
let a = 0;
|
|
166
|
+
for (let r of e) {
|
|
167
|
+
let e = oe(r, t);
|
|
168
|
+
if (e === 0 && n && (e = se(r, t)), e === 0) return;
|
|
169
|
+
a += e;
|
|
170
|
+
}
|
|
171
|
+
r.push({
|
|
172
|
+
item: t.item,
|
|
173
|
+
score: a,
|
|
174
|
+
order: i
|
|
175
|
+
});
|
|
176
|
+
}), r.sort((e, t) => t.score - e.score || e.order - t.order), r.map((e) => e.item);
|
|
177
|
+
};
|
|
178
|
+
return (t) => {
|
|
179
|
+
let r = w(t);
|
|
180
|
+
if (r.length === 0) return [...e];
|
|
181
|
+
let i = n(r, !1);
|
|
182
|
+
return i.length > 0 ? i : n(r, !0);
|
|
132
183
|
};
|
|
133
|
-
}, [
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (F) return z ? void Y(G.filter((e) => {
|
|
184
|
+
})(K), [K]), [J, Y] = d(G);
|
|
185
|
+
l(() => {
|
|
186
|
+
if (P) return B ? void Y(K.filter((e) => {
|
|
137
187
|
if (!e.canonical) return !1;
|
|
138
|
-
let t =
|
|
139
|
-
if (!
|
|
140
|
-
for (let e of
|
|
188
|
+
let t = D(e.canonical);
|
|
189
|
+
if (!B.keys.has(t.key)) return !1;
|
|
190
|
+
for (let e of B.mods) if (!t.mods.has(e)) return !1;
|
|
141
191
|
return !0;
|
|
142
|
-
})) : void Y(
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}, 90)() : Y(G);
|
|
192
|
+
})) : void Y(K);
|
|
193
|
+
ae.debounce(() => {
|
|
194
|
+
Y(q(T));
|
|
195
|
+
}, 90)();
|
|
147
196
|
}, [
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
197
|
+
P,
|
|
198
|
+
B,
|
|
199
|
+
q,
|
|
200
|
+
T,
|
|
201
|
+
K
|
|
153
202
|
]);
|
|
154
|
-
let X =
|
|
203
|
+
let X = u(() => {
|
|
155
204
|
let e = /* @__PURE__ */ new Map();
|
|
156
205
|
for (let t of J) {
|
|
157
206
|
let n = e.get(t.scope);
|
|
@@ -162,19 +211,19 @@ function P(n) {
|
|
|
162
211
|
scopeLabel: t[0].scopeLabel,
|
|
163
212
|
rows: t
|
|
164
213
|
}));
|
|
165
|
-
}, [J]),
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}, [
|
|
169
|
-
let $ =
|
|
170
|
-
|
|
171
|
-
}, []),
|
|
214
|
+
}, [J]), ue = u(() => G.find((e) => e.scope === k)?.scopeLabel ?? k, [G, k]), Z = P ? !!R : T.length > 0, Q = Z && J.length === 0;
|
|
215
|
+
l(() => {
|
|
216
|
+
W.current?.focus();
|
|
217
|
+
}, [P]);
|
|
218
|
+
let $ = c((e) => {
|
|
219
|
+
L(e), E(""), z(null), V(null), U(null);
|
|
220
|
+
}, []), de = c((e) => {
|
|
172
221
|
if (e.key === "Tab") return;
|
|
173
|
-
if (e.which === t.Escape) return
|
|
174
|
-
if (e.preventDefault(), e.stopPropagation(), e.key === "Backspace") return
|
|
222
|
+
if (e.which === t.Escape) return R || H ? (z(null), V(null), U(null)) : $(!1), e.stopPropagation(), void e.preventDefault();
|
|
223
|
+
if (e.preventDefault(), e.stopPropagation(), e.key === "Backspace") return z(null), V(null), void U(null);
|
|
175
224
|
let n = e.nativeEvent;
|
|
176
|
-
if (
|
|
177
|
-
|
|
225
|
+
if (le.has(e.key)) return z(null), V(null), void U(M(n));
|
|
226
|
+
U(null), z(((e) => {
|
|
178
227
|
let t = [];
|
|
179
228
|
e.ctrlKey && t.push("ctrl"), e.altKey && t.push("alt"), e.shiftKey && t.push("shift"), e.metaKey && t.push("meta");
|
|
180
229
|
let n = e.code, r = e.key;
|
|
@@ -182,34 +231,34 @@ function P(n) {
|
|
|
182
231
|
key: r,
|
|
183
232
|
modifiers: t
|
|
184
233
|
};
|
|
185
|
-
})(n)),
|
|
186
|
-
let t = [...i(e)].map(
|
|
234
|
+
})(n)), V(((e) => {
|
|
235
|
+
let t = [...i(e)].map(D);
|
|
187
236
|
return {
|
|
188
237
|
keys: new Set(t.map((e) => e.key)),
|
|
189
238
|
mods: t[0]?.mods ?? /* @__PURE__ */ new Set()
|
|
190
239
|
};
|
|
191
240
|
})(n));
|
|
192
241
|
}, [
|
|
193
|
-
|
|
194
|
-
|
|
242
|
+
R,
|
|
243
|
+
H,
|
|
195
244
|
$
|
|
196
|
-
]),
|
|
197
|
-
if (
|
|
198
|
-
let t =
|
|
199
|
-
|
|
200
|
-
}, [
|
|
201
|
-
|
|
202
|
-
}, []),
|
|
203
|
-
|
|
204
|
-
}, [
|
|
205
|
-
title:
|
|
245
|
+
]), fe = c((e) => {
|
|
246
|
+
if (R) return;
|
|
247
|
+
let t = M(e.nativeEvent);
|
|
248
|
+
U(t.length ? t : null);
|
|
249
|
+
}, [R]), pe = c((e) => {
|
|
250
|
+
N((t) => t === e ? null : e);
|
|
251
|
+
}, []), me = c(() => {
|
|
252
|
+
P ? (z(null), V(null), U(null)) : E(""), W.current?.focus();
|
|
253
|
+
}, [P]), he = P ? !!(R || H && H.length > 0) : T.length > 0, ge = p(ie, {
|
|
254
|
+
title: P ? "Search by name (ESC)" : `Search by shortcut (${O ? "Cmd" : "Ctrl"}+K)`,
|
|
206
255
|
children: p(v, {
|
|
207
256
|
"aria-label": "toggle shortcut capture",
|
|
208
|
-
color:
|
|
209
|
-
onClick: () => $(!
|
|
257
|
+
color: P ? "primary" : "default",
|
|
258
|
+
onClick: () => $(!P),
|
|
210
259
|
sx: {
|
|
211
260
|
flexShrink: 0,
|
|
212
|
-
border: (e) => `solid 1px ${
|
|
261
|
+
border: (e) => `solid 1px ${P ? e.palette.primary.main : e.palette.divider}`,
|
|
213
262
|
borderRadius: (e) => `${e.shape.borderRadius}px`
|
|
214
263
|
},
|
|
215
264
|
children: p(e, { iconKey: "Keyboard" })
|
|
@@ -222,7 +271,7 @@ function P(n) {
|
|
|
222
271
|
display: "flex",
|
|
223
272
|
flexDirection: "column"
|
|
224
273
|
},
|
|
225
|
-
sx: [{ fontFamily: (e) => e.typography.fontFamily }, ...Array.isArray(
|
|
274
|
+
sx: [{ fontFamily: (e) => e.typography.fontFamily }, ...Array.isArray(s) ? s : [s]],
|
|
226
275
|
...f,
|
|
227
276
|
children: [
|
|
228
277
|
m(h, {
|
|
@@ -233,24 +282,24 @@ function P(n) {
|
|
|
233
282
|
marginBottom: (e) => e.spacing(1.5)
|
|
234
283
|
},
|
|
235
284
|
children: [
|
|
236
|
-
p(
|
|
237
|
-
inputRef:
|
|
285
|
+
p(re, {
|
|
286
|
+
inputRef: W,
|
|
238
287
|
slotProps: {
|
|
239
288
|
input: {
|
|
240
289
|
sx: { backgroundColor: (e) => e.palette.action.hover },
|
|
241
|
-
startAdornment:
|
|
290
|
+
startAdornment: P && (R || H && H.length > 0) ? p(y, {
|
|
242
291
|
position: "start",
|
|
243
292
|
sx: { marginRight: "6px" },
|
|
244
|
-
children:
|
|
245
|
-
labels:
|
|
293
|
+
children: R ? p(I, { stroke: R }) : p(F, {
|
|
294
|
+
labels: j(H).map(A),
|
|
246
295
|
dangling: !0
|
|
247
296
|
})
|
|
248
297
|
}) : void 0,
|
|
249
|
-
endAdornment:
|
|
298
|
+
endAdornment: he ? p(y, {
|
|
250
299
|
position: "end",
|
|
251
300
|
children: p(v, {
|
|
252
|
-
"aria-label":
|
|
253
|
-
onClick:
|
|
301
|
+
"aria-label": P ? "clear shortcut" : "clear search",
|
|
302
|
+
onClick: me,
|
|
254
303
|
edge: "end",
|
|
255
304
|
size: "small",
|
|
256
305
|
children: p(e, { iconKey: "Close" })
|
|
@@ -261,55 +310,55 @@ function P(n) {
|
|
|
261
310
|
className: "input",
|
|
262
311
|
autoFocus: !0,
|
|
263
312
|
spellCheck: !1,
|
|
264
|
-
placeholder:
|
|
313
|
+
placeholder: P ? R || H && H.length > 0 ? "" : "Press a shortcut… (Esc to exit)" : "Type to search commands, scopes, or descriptions",
|
|
265
314
|
autoComplete: "off",
|
|
266
|
-
"aria-label":
|
|
315
|
+
"aria-label": P ? "Press a shortcut to find its command" : "Search commands",
|
|
267
316
|
sx: {
|
|
268
317
|
paddingTop: (e) => e.spacing(1),
|
|
269
318
|
paddingBottom: (e) => e.spacing(1),
|
|
270
|
-
caretColor: (e) =>
|
|
319
|
+
caretColor: (e) => P ? e.palette.primary.main : void 0
|
|
271
320
|
}
|
|
272
321
|
}
|
|
273
322
|
},
|
|
274
323
|
sx: {
|
|
275
324
|
flex: "1 1 auto",
|
|
276
|
-
"& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => Q ? `${e.palette.error.main} !important` :
|
|
325
|
+
"& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => Q ? `${e.palette.error.main} !important` : P ? `${e.palette.primary.main} !important` : void 0 }
|
|
277
326
|
},
|
|
278
|
-
value:
|
|
327
|
+
value: P ? "" : T,
|
|
279
328
|
onChange: (e) => {
|
|
280
|
-
|
|
329
|
+
P || E(e.target.value);
|
|
281
330
|
},
|
|
282
|
-
onKeyDown:
|
|
331
|
+
onKeyDown: P ? de : (e) => {
|
|
283
332
|
if ((e.ctrlKey || e.metaKey) && (e.key === "k" || e.key === "K")) return $(!0), e.stopPropagation(), void e.preventDefault();
|
|
284
|
-
e.which === t.Escape &&
|
|
333
|
+
e.which === t.Escape && T.length > 0 && (E(""), e.stopPropagation(), e.preventDefault());
|
|
285
334
|
},
|
|
286
|
-
onKeyUp:
|
|
335
|
+
onKeyUp: P ? fe : void 0,
|
|
287
336
|
onContextMenu: (e) => e.stopPropagation()
|
|
288
337
|
}),
|
|
289
|
-
|
|
290
|
-
p(
|
|
338
|
+
ge,
|
|
339
|
+
p(ne, {
|
|
291
340
|
sx: {
|
|
292
341
|
flexShrink: 0,
|
|
293
342
|
marginRight: 0
|
|
294
343
|
},
|
|
295
344
|
control: p(g, {
|
|
296
|
-
checked:
|
|
297
|
-
onChange: () => C(!
|
|
345
|
+
checked: S,
|
|
346
|
+
onChange: () => C(!S)
|
|
298
347
|
}),
|
|
299
|
-
label: "
|
|
348
|
+
label: _("shortcutKeys.onlyKeyBindings"),
|
|
300
349
|
labelPlacement: "start"
|
|
301
350
|
})
|
|
302
351
|
]
|
|
303
352
|
}),
|
|
304
|
-
|
|
353
|
+
k && p(h, {
|
|
305
354
|
sx: {
|
|
306
355
|
display: "flex",
|
|
307
356
|
marginBottom: 1
|
|
308
357
|
},
|
|
309
|
-
children: p(
|
|
358
|
+
children: p(te, {
|
|
310
359
|
size: "small",
|
|
311
|
-
label:
|
|
312
|
-
onDelete: () =>
|
|
360
|
+
label: _("shortcutKeys.scopeFilter", { scope: ue }),
|
|
361
|
+
onDelete: () => N(null)
|
|
313
362
|
})
|
|
314
363
|
}),
|
|
315
364
|
p(h, {
|
|
@@ -331,9 +380,9 @@ function P(n) {
|
|
|
331
380
|
textAlign: "center",
|
|
332
381
|
color: (e) => Q ? e.palette.error.main : e.palette.text.secondary
|
|
333
382
|
},
|
|
334
|
-
children: Z ? "
|
|
383
|
+
children: _(Z ? "shortcutKeys.noMatches" : "shortcutKeys.none")
|
|
335
384
|
}) : X.map((t) => m(h, { children: [m(h, {
|
|
336
|
-
onClick: () =>
|
|
385
|
+
onClick: () => pe(t.scope),
|
|
337
386
|
sx: {
|
|
338
387
|
position: "sticky",
|
|
339
388
|
top: "-1px",
|
|
@@ -351,16 +400,16 @@ function P(n) {
|
|
|
351
400
|
fontWeight: 600,
|
|
352
401
|
letterSpacing: "0.04em",
|
|
353
402
|
textTransform: "uppercase",
|
|
354
|
-
backgroundColor: (e) =>
|
|
355
|
-
boxShadow: (e) => `0 -2px 0 0 ${
|
|
403
|
+
backgroundColor: (e) => x(e.palette.background.paper, .04),
|
|
404
|
+
boxShadow: (e) => `0 -2px 0 0 ${x(e.palette.background.paper, .04)}`,
|
|
356
405
|
borderBottom: (e) => `solid 1px ${e.palette.divider}`,
|
|
357
|
-
color: (e) =>
|
|
406
|
+
color: (e) => k === t.scope ? e.palette.primary.main : e.palette.text.secondary,
|
|
358
407
|
"&:hover": {
|
|
359
408
|
color: (e) => e.palette.text.primary,
|
|
360
|
-
backgroundColor: (e) =>
|
|
409
|
+
backgroundColor: (e) => x(e.palette.background.paper, .09)
|
|
361
410
|
}
|
|
362
411
|
},
|
|
363
|
-
children: [p("span", { children: t.scopeLabel }), p(
|
|
412
|
+
children: [p("span", { children: t.scopeLabel }), p(b, {
|
|
364
413
|
component: "span",
|
|
365
414
|
sx: {
|
|
366
415
|
fontSize: "inherit",
|
|
@@ -394,7 +443,7 @@ function P(n) {
|
|
|
394
443
|
},
|
|
395
444
|
children: (n = t.icon, n && typeof n != "string" ? n : p(e, { iconKey: n }))
|
|
396
445
|
}),
|
|
397
|
-
p(
|
|
446
|
+
p(b, {
|
|
398
447
|
sx: {
|
|
399
448
|
flex: "1 1 auto",
|
|
400
449
|
fontWeight: 500
|
|
@@ -403,10 +452,10 @@ function P(n) {
|
|
|
403
452
|
}),
|
|
404
453
|
t.shortcut && p(h, {
|
|
405
454
|
sx: { flexShrink: 0 },
|
|
406
|
-
children: p(
|
|
455
|
+
children: p(I, { stroke: t.shortcut })
|
|
407
456
|
})
|
|
408
457
|
]
|
|
409
|
-
}), t.description && p(
|
|
458
|
+
}), t.description && p(b, {
|
|
410
459
|
component: "div",
|
|
411
460
|
sx: {
|
|
412
461
|
marginTop: "2px",
|
|
@@ -432,17 +481,17 @@ function P(n) {
|
|
|
432
481
|
userSelect: "none",
|
|
433
482
|
justifyContent: "flex-end"
|
|
434
483
|
},
|
|
435
|
-
children: p(
|
|
484
|
+
children: p(b, {
|
|
436
485
|
noWrap: !0,
|
|
437
486
|
component: "div",
|
|
438
487
|
sx: { color: (e) => Q ? e.palette.error.main : e.palette.text.secondary },
|
|
439
|
-
children:
|
|
488
|
+
children: _(Z ? "shortcutKeys.countFound" : "shortcutKeys.count", { count: J.length })
|
|
440
489
|
})
|
|
441
490
|
})
|
|
442
491
|
]
|
|
443
492
|
});
|
|
444
493
|
}
|
|
445
|
-
var
|
|
494
|
+
var R = (e) => {
|
|
446
495
|
let { title: n = "Shortcut Keys", commands: r, sx: i, ...a } = e;
|
|
447
496
|
return p(f, {
|
|
448
497
|
isModal: !0,
|
|
@@ -458,11 +507,11 @@ var F = (e) => {
|
|
|
458
507
|
...a,
|
|
459
508
|
children: p(_, {
|
|
460
509
|
dividers: !0,
|
|
461
|
-
children: p(
|
|
510
|
+
children: p(L, {
|
|
462
511
|
commands: r,
|
|
463
512
|
sx: { marginBottom: "8px" }
|
|
464
513
|
})
|
|
465
514
|
})
|
|
466
515
|
});
|
|
467
516
|
};
|
|
468
|
-
export {
|
|
517
|
+
export { R as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { useMemo as e, version as t } from "react";
|
|
8
|
+
function n(e, t) {
|
|
9
|
+
if (typeof e == "function") return e(t);
|
|
10
|
+
e && (e.current = t);
|
|
11
|
+
}
|
|
12
|
+
var r = parseInt(t.split(".")[0], 10) >= 19 ? function(e) {
|
|
13
|
+
return (t) => {
|
|
14
|
+
let r = [];
|
|
15
|
+
for (let i of e) {
|
|
16
|
+
let e = n(i, t), a = typeof e == "function";
|
|
17
|
+
r.push(a ? e : () => n(i, null));
|
|
18
|
+
}
|
|
19
|
+
return () => {
|
|
20
|
+
for (let e of r) e();
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
} : function(e) {
|
|
24
|
+
return (t) => {
|
|
25
|
+
for (let r of e) n(r, t);
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
function i(t) {
|
|
29
|
+
return e(() => r(t), t);
|
|
30
|
+
}
|
|
31
|
+
export { i as n, r as t };
|