@sheetxl/studio-mui 0.8.0-beta.1 → 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.
- package/browser/esm/{Cd6n1XUgF0VItpkH.mjs → 5cbK03T_Oh3tNdR7.mjs} +7 -5
- package/browser/esm/{Bz5LiUe3SZ8g42Ia.mjs → 9eKCkvqpMQwqcXiw.mjs} +1 -1
- package/browser/esm/B1Yp_uy1vFHcJB3U.mjs +13 -0
- package/browser/esm/Biy7bhzzzPb5sfRN.mjs +152 -0
- package/browser/esm/Blaj2R5hYxtLAW__.mjs +117 -0
- package/browser/esm/{ChwS_ougBsogOEsP.mjs → ByeL_BZuJ2kl8gtf.mjs} +46 -47
- package/browser/esm/{BUGepznywvV0tUjW.mjs → C1Rp2hZrApo5MUc8.mjs} +2 -2
- package/browser/esm/{DMLXV4EKl1NCp_jk.mjs → CEvZe2cZK-voZTif.mjs} +5 -5
- package/browser/esm/{BZBJG2tDdD3-VujP.mjs → CIu1bjPJe_x31Oww.mjs} +195 -174
- package/browser/esm/COv-m-c2byCgvU3M.mjs +14861 -0
- package/browser/esm/CjznclrKqJRi7u9O.mjs +77 -0
- package/browser/esm/{Cj2pgCNqBCGl4rTX.mjs → CoSiOS-og0zFw4Ws.mjs} +587 -556
- package/browser/esm/{rU8xNPVQtDSnujM-.mjs → CtEFHbzYNvYjDYvi.mjs} +7 -7
- package/browser/esm/D6S8kVTzOjCn0-SK.mjs +627 -0
- package/browser/esm/{DNDrQKMTzKzNMjl-.mjs → D8al_cJ4U-NgzwoK.mjs} +1 -1
- package/browser/esm/DBtc4lku0uHVcqWn.mjs +71 -0
- package/browser/esm/{BoLxSRdEWt-Yg2RI.mjs → DHY19rkSiiRZxShC.mjs} +130 -103
- package/browser/esm/{zWTZ8BvT4hjgC2ua.mjs → DU3J8Gcf-WpBxNYg.mjs} +11 -10
- package/browser/esm/Die9NXVFveHvcCT-.mjs +4205 -0
- package/browser/esm/{CVfuCNRpODUw04IH.mjs → DmCQbW4zwkT_Rq88.mjs} +1 -1
- package/browser/esm/IQLeaAbtGTipUsOD.mjs +516 -0
- package/browser/esm/{3ydDykDMtDYbfVVn.mjs → X1Db3b_7b_7OuCk6.mjs} +178 -129
- package/browser/esm/fb126BNj3F8URR19.mjs +225 -0
- package/browser/esm/index.mjs +418 -135
- package/browser/esm/sFOAxZpxXo-qvDSp.mjs +293 -0
- package/browser/esm/sam1KGQZ59B_fADz.mjs +1941 -0
- package/browser/esm/xKiLJKiLxto8SayF.mjs +256 -0
- package/browser/esm/yZxC4qUENOlMhVUH.mjs +68 -0
- package/licenses/dependencies.txt +58 -311
- package/node/esm/B8SQfjKjzYHLxzZR.mjs +632 -0
- package/node/esm/{DM7K7-284z-PczVz.mjs → BYVLi0md4AYuDsB_.mjs} +1 -1
- package/node/esm/BYsG3KYVmxSe_CIQ.mjs +294 -0
- package/node/esm/BYwXhrEwkRAt9nJS.mjs +71 -0
- package/node/esm/B_jRGdwGFkudwmL-.mjs +68 -0
- package/node/esm/Bb1sLMqXWKjdve23.mjs +77 -0
- package/node/esm/{BwZcoHDBmLPIVOT5.mjs → BcwMb6CyVfvEwbHn.mjs} +69 -70
- package/node/esm/{BhqI3pQFkV8K_612.mjs → CKu1AtRgyltyEdEN.mjs} +1 -1
- package/node/esm/Cmt8Wv806N7NmE4Y.mjs +3344 -0
- package/node/esm/{DXZrzWee8K5FPOW1.mjs → D6oQL8knsPpgdXuk.mjs} +2 -2
- package/node/esm/{BA7VzUQ2sKRLTZ5c.mjs → D9rzScOA9pEYFrtz.mjs} +1 -1
- package/node/esm/DNSjK5DAH3M14Qbc.mjs +521 -0
- package/node/esm/{CUMKTjYv6VTkcWYi.mjs → DZzvTQxIKr9LbEsA.mjs} +1 -1
- package/node/esm/{Qpuqm6xBr_da38Ht.mjs → ETK6T6G0SIcFXDe5.mjs} +163 -135
- package/node/esm/ah3CUg4-VmNstGk_.mjs +256 -0
- package/node/esm/{CHi3AuWEwEPOg9IZ.mjs → ci8d-mF1H9wnYzix.mjs} +1 -1
- package/node/esm/cqzp431iNSLWictb.mjs +116 -0
- package/node/esm/index.mjs +14783 -6793
- 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 +350 -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 +306 -40
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +17 -1
- 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/border/BorderPopupButton.d.ts +6 -6
- package/types/src/border/BorderStylePopupButton.d.ts +3 -3
- package/types/src/border/BorderTemplateIcon.d.ts +24 -0
- package/types/src/border/index.d.ts +1 -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/_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 +94 -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 +21 -0
- package/types/src/formulaBar/MobileInputToolbar.d.ts +37 -0
- package/types/src/formulaBar/index.d.ts +3 -0
- package/types/src/formulaBar/useFormulaBarSession.d.ts +65 -0
- package/types/src/index.d.ts +7 -1
- 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/SheetProtectionPanel.d.ts +35 -0
- package/types/src/protection/WorkbookProtectionPanel.d.ts +34 -15
- package/types/src/protection/WorkbookProtectionTab.d.ts +22 -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 +15 -1
- package/types/src/workbook/FillMenu.d.ts +21 -0
- package/types/src/workbook/OutlineButtons.d.ts +11 -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,10 +1,10 @@
|
|
|
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.10
|
|
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 {
|
|
7
|
+
import { A as e } from "./index.mjs";
|
|
8
8
|
import { ReactUtils as t } from "@sheetxl/utils-react";
|
|
9
9
|
import { Component as n, PureComponent as i, memo as s, useCallback as r, useLayoutEffect as o, useState as a } from "react";
|
|
10
10
|
import { jsx as l, jsxs as h } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
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.10
|
|
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.
|
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.10
|
|
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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
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.10
|
|
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.
|