@sheetxl/studio-mui 0.7.26 → 0.7.28-beta.1
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/README.md +2 -2
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +20 -0
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +1 -0
- package/browser/cjs/B_D3JKseVvpRyX-E.cjs +1 -0
- package/browser/cjs/B_WyRpeiesnEiNP4.cjs +11 -0
- package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +2 -0
- package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +2 -0
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
- package/browser/cjs/ByIEqNsvj52sihT9.cjs +5 -0
- package/browser/cjs/C3moehR3VOd0LnmM.cjs +1 -0
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +1 -0
- package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +1 -0
- package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +1 -0
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +1 -0
- package/browser/cjs/CZm1jVZaHQ246prW.cjs +1 -0
- package/browser/cjs/CdDYyAfccXme8w6m.cjs +1 -0
- package/browser/cjs/DBJLJGiCGXesx5n6.cjs +1 -0
- package/browser/cjs/DLScL5AOXhHu9O9H.cjs +7 -0
- package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +1 -0
- package/browser/cjs/IASAYG6qgv7lJY7y.cjs +1 -0
- package/browser/cjs/KZvriGbhEOVkQD0b.cjs +1 -0
- package/browser/cjs/UnMhi28mbvLiOXQe.cjs +1 -0
- package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +1 -0
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +1 -0
- package/browser/cjs/index.cjs +2 -7
- package/browser/cjs/w2GjebPlOFv3pCbm.cjs +1 -0
- package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +1 -0
- package/browser/esm/0EONOhVZ7oT0C_G2.mjs +1150 -0
- package/browser/esm/5x7evORpymnb5SfW.mjs +129 -0
- package/browser/esm/BACBR1jjcpJbhOWA.mjs +191 -0
- package/browser/esm/BPZne8WpzrkWOH6L.mjs +47 -0
- package/browser/esm/BeKa8xVj69hAVKRN.mjs +155 -0
- package/browser/esm/BeQ9bqOvNNP-arFP.mjs +219 -0
- package/browser/esm/Bf3PIOM6U-NmWk2O.mjs +20 -0
- package/browser/esm/C4BPDYeqgN59wMGp.mjs +411 -0
- package/browser/esm/CGbn_xdhgTvk2mvb.mjs +612 -0
- package/browser/esm/CKADOp3hTx0MSNY7.mjs +52 -0
- package/browser/esm/CR2sUEZyRqVv2SNl.mjs +105 -0
- package/browser/esm/CTN8J8c1AneJu3Lu.mjs +2207 -0
- package/browser/esm/Cc5akPEmIwbgKIfc.mjs +516 -0
- package/browser/esm/CePKCTL6D05kDy2E.mjs +82 -0
- package/browser/esm/DBM1blcMTZMAM-eR.mjs +217 -0
- package/browser/esm/DPBnKqhSuJ414Pxx.mjs +99 -0
- package/browser/esm/F51tGfYHocox80zY.mjs +468 -0
- package/browser/esm/SDzKpaiuhQux7tAh.mjs +5391 -0
- package/browser/esm/TDH9XceS8cAkO5d3.mjs +508 -0
- package/browser/esm/XKVlG-x_9q5dbVIW.mjs +8878 -0
- package/browser/esm/fJiwyUQJ18X-cCQz.mjs +1376 -0
- package/browser/esm/fel6EbPAcZOsBmks.mjs +42 -0
- package/browser/esm/flvjZEXrSDrtDzLB.mjs +113 -0
- package/browser/esm/index.mjs +152 -91
- package/licenses/dependencies.txt +137 -627
- package/node/esm/B9-0usA1hSoD0Nk3.mjs +679 -0
- package/node/esm/BO1vNzjGWYdZdbq9.mjs +113 -0
- package/node/esm/BYigefA8bf9FOVib.mjs +47 -0
- package/node/esm/BdrLZp98HQaVMykZ.mjs +82 -0
- package/node/esm/BlubX7gm8wTUNiZ-.mjs +106 -0
- package/node/esm/C8a6QwMGW1tMiWA6.mjs +516 -0
- package/node/esm/CCCnorMn30oUDDIY.mjs +4536 -0
- package/node/esm/CKpik3HRSANKEy4G.mjs +99 -0
- package/node/esm/CTZcfST8pUcLMail.mjs +509 -0
- package/node/esm/D1K9Ji7iQwnOnd1-.mjs +190 -0
- package/node/esm/DuUiuB59bQRPQi-D.mjs +155 -0
- package/node/esm/eKP73GEWmonTXpfv.mjs +470 -0
- package/node/esm/g3y8kxL1Ln214UNr.mjs +129 -0
- package/node/esm/index.mjs +10603 -2832
- package/package.json +27 -27
- package/resources/contents.json +30 -0
- package/resources/locales/contents.json +44 -0
- package/resources/locales/de/groups.cmd.json +219 -0
- package/resources/locales/de/studio.cmd.json +159 -0
- package/resources/locales/de/ui.msg.json +507 -0
- package/resources/locales/en/groups.cmd.json +219 -0
- package/resources/locales/en/studio.cmd.json +159 -0
- package/resources/locales/en/ui.msg.json +508 -0
- package/types/index.d.ts +2 -1761
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +131 -0
- package/types/src/anchorItems/AnchorItemsPanel.d.ts +29 -0
- package/types/src/anchorItems/index.d.ts +3 -0
- package/types/src/border/BorderPopupButton.d.ts +30 -0
- package/types/src/border/BorderStylePopupButton.d.ts +40 -0
- package/types/src/border/index.d.ts +3 -0
- package/types/src/chart/command/InsertChartCommandButton.d.ts +10 -0
- package/types/src/chart/command/index.d.ts +2 -0
- package/types/src/color/Alpha.d.ts +36 -0
- package/types/src/color/Checkboard.d.ts +11 -0
- package/types/src/color/CheckboardUtils.d.ts +3 -0
- package/types/src/color/ColorButton.d.ts +21 -0
- package/types/src/color/ColorButtonList.d.ts +17 -0
- package/types/src/color/ColorPanel.d.ts +71 -0
- package/types/src/color/ColorPopupButton.d.ts +29 -0
- package/types/src/color/CustomColorPanel.d.ts +16 -0
- package/types/src/color/EditableInput.d.ts +22 -0
- package/types/src/color/Hue.d.ts +29 -0
- package/types/src/color/Saturation.d.ts +45 -0
- package/types/src/color/SketchFields.d.ts +9 -0
- package/types/src/color/Swatch.d.ts +16 -0
- package/types/src/color/Types.d.ts +11 -0
- package/types/src/color/_Utils.d.ts +4 -0
- package/types/src/color/index.d.ts +7 -0
- package/types/src/command/AccountingStyleCommandButton.d.ts +18 -0
- package/types/src/command/AppearanceCommandButton.d.ts +3 -0
- package/types/src/command/BorderCommandButton.d.ts +20 -0
- package/types/src/command/ColorCommandButton.d.ts +23 -0
- package/types/src/command/DocThemeCommandButton.d.ts +19 -0
- package/types/src/command/FileCommandButton.d.ts +8 -0
- package/types/src/command/FontFamilyCommandButton.d.ts +9 -0
- package/types/src/command/FontSizeCommandButton.d.ts +21 -0
- package/types/src/command/InsertFunctionCommandPopupButton.d.ts +9 -0
- package/types/src/command/InsertFunctionSumCommandPopupButton.d.ts +8 -0
- package/types/src/command/LanguageCommandButton.d.ts +19 -0
- package/types/src/command/LocaleCommandButton.d.ts +17 -0
- package/types/src/command/NumberFormatCommandButton.d.ts +6 -0
- package/types/src/command/PasteCommandButton.d.ts +14 -0
- package/types/src/command/PresetCellStylesCommandButton.d.ts +11 -0
- package/types/src/command/PresetTableStylesCommandButton.d.ts +12 -0
- package/types/src/command/RegisterCatalog.d.ts +3 -0
- package/types/src/command/SheetCommandGroups.d.ts +10 -0
- package/types/src/command/SheetZoomCommandButton.d.ts +9 -0
- package/types/src/command/StudioCommandGroups.d.ts +11 -0
- package/types/src/command/TextEffectsCommandButton.d.ts +6 -0
- package/types/src/command/TextRotateGroupButton.d.ts +14 -0
- package/types/src/command/UndoRedoCommandButton.d.ts +14 -0
- package/types/src/command/WalkingCopyCommandButton.d.ts +6 -0
- package/types/src/command/WorkbookCommandGroups.d.ts +11 -0
- package/types/src/command/index.d.ts +23 -0
- package/types/src/conditionalFormat/ColorScaleRulePanel.d.ts +18 -0
- package/types/src/conditionalFormat/ConditionalFormatDetailsPanel.d.ts +23 -0
- package/types/src/conditionalFormat/ConditionalFormatDetailsTaskPane.d.ts +4 -0
- package/types/src/conditionalFormat/ConditionalFormatEditorPanel.d.ts +20 -0
- package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +2 -0
- package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +32 -0
- package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +34 -0
- package/types/src/conditionalFormat/ConditionalFormatTitle.d.ts +10 -0
- package/types/src/conditionalFormat/DataBarRulePanel.d.ts +23 -0
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +23 -0
- package/types/src/conditionalFormat/PresetChip.d.ts +30 -0
- package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts +20 -0
- package/types/src/conditionalFormat/RulePreview.d.ts +23 -0
- package/types/src/conditionalFormat/RuleSection.d.ts +20 -0
- package/types/src/conditionalFormat/ScaleMiniGrid.d.ts +59 -0
- package/types/src/conditionalFormat/ScaleStopRow.d.ts +34 -0
- package/types/src/conditionalFormat/index.d.ts +3 -0
- package/types/src/conditionalFormat/previewColor.d.ts +50 -0
- package/types/src/conditions/AverageOption.d.ts +25 -0
- package/types/src/conditions/BetweenOption.d.ts +25 -0
- package/types/src/conditions/BooleanOption.d.ts +24 -0
- package/types/src/conditions/CombinatorOption.d.ts +41 -0
- package/types/src/conditions/ConditionEditor.d.ts +57 -0
- package/types/src/conditions/ConditionUtils.d.ts +83 -0
- package/types/src/conditions/DateTimeOption.d.ts +43 -0
- package/types/src/conditions/ExpressionOption.d.ts +26 -0
- package/types/src/conditions/InSetOption.d.ts +37 -0
- package/types/src/conditions/NumberOption.d.ts +24 -0
- package/types/src/conditions/OperatorAndParamEditor.d.ts +55 -0
- package/types/src/conditions/OperatorSelect.d.ts +35 -0
- package/types/src/conditions/OperatorSelectPopupButton.d.ts +39 -0
- package/types/src/conditions/ScalarOption.d.ts +29 -0
- package/types/src/conditions/SelectorSelect.d.ts +43 -0
- package/types/src/conditions/StringOption.d.ts +24 -0
- package/types/src/conditions/TimePeriodOption.d.ts +25 -0
- package/types/src/conditions/TopNOption.d.ts +25 -0
- package/types/src/conditions/index.d.ts +13 -0
- package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +16 -0
- package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -0
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +12 -0
- package/types/src/dataValidation/DataValidationPlugin.d.ts +2 -0
- package/types/src/dataValidation/index.d.ts +2 -0
- package/types/src/debug/DebugUtils.d.ts +4 -0
- package/types/src/debug/index.d.ts +2 -0
- package/types/src/dialog/CommentsDialog.d.ts +11 -0
- package/types/src/dialog/FindReplaceWindow.d.ts +13 -0
- package/types/src/dialog/HyperlinkDialog.d.ts +28 -0
- package/types/src/dialog/InsertFunctionDialog.d.ts +25 -0
- package/types/src/dialog/NamedReferenceDialog.d.ts +17 -0
- package/types/src/dialog/NumberFormatDialog.d.ts +12 -0
- package/types/src/dialog/ResizeHeaderDialog.d.ts +15 -0
- package/types/src/dialog/ShortcutKeysDialog.d.ts +9 -0
- package/types/src/dialog/ShortcutKeysPanel.d.ts +28 -0
- package/types/src/dialog/SortDialog.d.ts +9 -0
- package/types/src/dialog/TableNewDialog.d.ts +14 -0
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +13 -0
- package/types/src/dialog/index.d.ts +10 -0
- package/types/src/filter/ColumnMenu.d.ts +13 -0
- package/types/src/filter/FilterList.d.ts +28 -0
- package/types/src/filter/index.d.ts +3 -0
- package/types/src/form/FormulaField.d.ts +221 -0
- package/types/src/form/InputField.d.ts +89 -0
- package/types/src/form/index.d.ts +3 -0
- package/types/src/formulaBar/FormulaBar.d.ts +8 -0
- package/types/src/formulaBar/IFormulaBar.d.ts +51 -0
- package/types/src/formulaBar/index.d.ts +3 -0
- package/types/src/function/FunctionArgumentsPanel.d.ts +57 -0
- package/types/src/function/FunctionSearchPanel.d.ts +35 -0
- package/types/src/function/InsertFunctionWizard.d.ts +79 -0
- package/types/src/function/index.d.ts +4 -0
- package/types/src/function/paneMetrics.d.ts +33 -0
- package/types/src/index.d.ts +21 -0
- package/types/src/itemsPanel/EditorPanel.d.ts +21 -0
- package/types/src/itemsPanel/ItemCard.d.ts +57 -0
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +215 -0
- package/types/src/itemsPanel/ItemsPanel.d.ts +45 -0
- package/types/src/itemsPanel/SortableCards.d.ts +67 -0
- package/types/src/itemsPanel/index.d.ts +6 -0
- package/types/src/movable/MovableContextMenu.d.ts +13 -0
- package/types/src/movable/index.d.ts +2 -0
- package/types/src/named/INamedCollectionEditor.d.ts +37 -0
- package/types/src/named/NamedCollectionEditor.d.ts +7 -0
- package/types/src/named/NamedDetailsPanel.d.ts +11 -0
- package/types/src/named/NamedDetailsTaskPane.d.ts +3 -0
- package/types/src/named/NamedDraft.d.ts +68 -0
- package/types/src/named/NamedEditorPanel.d.ts +19 -0
- package/types/src/named/NamedPlugin.d.ts +2 -0
- package/types/src/named/index.d.ts +8 -0
- package/types/src/numberFormat/NumberFormatPanel.d.ts +29 -0
- package/types/src/numberFormat/NumberFormatTaskPane.d.ts +12 -0
- package/types/src/numberFormat/index.d.ts +8 -0
- package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +20 -0
- package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +3 -0
- package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +27 -0
- package/types/src/protectedRange/ProtectedRangePlugin.d.ts +2 -0
- package/types/src/protectedRange/index.d.ts +2 -0
- package/types/src/protection/WorkbookProtectionDialog.d.ts +23 -0
- package/types/src/protection/WorkbookProtectionPanel.d.ts +51 -0
- package/types/src/protection/index.d.ts +3 -0
- package/types/src/sheet/SheetTabMenu.d.ts +21 -0
- package/types/src/sheet/SheetsAllMenu.d.ts +16 -0
- package/types/src/sheet/index.d.ts +3 -0
- package/types/src/statusBar/NumberStats.d.ts +27 -0
- package/types/src/statusBar/SheetZoomScale.d.ts +11 -0
- package/types/src/statusBar/StatusBar.d.ts +35 -0
- package/types/src/statusBar/index.d.ts +4 -0
- package/types/src/studio/CommandsWrapper.d.ts +36 -0
- package/types/src/studio/DefaultLogo.d.ts +3 -0
- package/types/src/studio/EagerStudio.d.ts +5 -0
- package/types/src/studio/Studio.d.ts +26 -0
- package/types/src/studio/StudioCommandProvider.d.ts +26 -0
- package/types/src/studio/StudioCommands.d.ts +115 -0
- package/types/src/studio/StudioNotifierProvider.d.ts +10 -0
- package/types/src/studio/StudioProps.d.ts +372 -0
- package/types/src/studio/StudioSplitPane.d.ts +60 -0
- package/types/src/studio/StudioTaskPaneArea.d.ts +8 -0
- package/types/src/studio/StudioToolbar.d.ts +37 -0
- package/types/src/studio/index.d.ts +4 -0
- package/types/src/studio/useStudioApp.d.ts +51 -0
- package/types/src/table/TableDetailsPanel.d.ts +17 -0
- package/types/src/table/TableDetailsTaskPane.d.ts +3 -0
- package/types/src/table/TablePlugin.d.ts +2 -0
- package/types/src/table/TableStyleCanvasPreview.d.ts +21 -0
- package/types/src/table/TableStyleOptionsPanel.d.ts +38 -0
- package/types/src/table/TableStylePreview.d.ts +43 -0
- package/types/src/table/index.d.ts +7 -0
- package/types/src/theme/ThemeSelectButton.d.ts +23 -0
- package/types/src/theme/ThemeSelectPanel.d.ts +17 -0
- package/types/src/theme/ThemeSelectPopupButton.d.ts +24 -0
- package/types/src/theme/ThemeUtils.d.ts +57 -0
- package/types/src/theme/index.d.ts +5 -0
- package/types/src/toast/ToastError.d.ts +10 -0
- package/types/src/toast/index.d.ts +2 -0
- package/types/src/toolbar/WorkbookToolbars.d.ts +46 -0
- package/types/src/toolbar/index.d.ts +2 -0
- package/types/src/workbook/DefaultRenderers.d.ts +23 -0
- package/types/src/workbook/DocumentTitle.d.ts +69 -0
- package/types/src/workbook/WorkbookContextMenu.d.ts +13 -0
- package/types/src/workbook/WorkbookElement.d.ts +12 -0
- package/types/src/workbook/WorkbookStrip.d.ts +37 -0
- package/types/src/workbook/index.d.ts +7 -0
- package/browser/cjs/52tjAlO48FpZgfzG.cjs +0 -6
- package/browser/cjs/BGu2_YqVJMQjYx4D.cjs +0 -18
- package/browser/cjs/C83Rzj_Jwq-o69wr.cjs +0 -42
- package/browser/cjs/CldYLQnjFC_g8o3t.cjs +0 -6
- package/browser/cjs/Cpv3j_Ra1h-axLRG.cjs +0 -6
- package/browser/cjs/D-5Cg1Y0zALF_JEs.cjs +0 -7
- package/browser/cjs/D58sOTRZwQ59CgOf.cjs +0 -6
- package/browser/cjs/DEd-0xEuUoELRnQb.cjs +0 -6
- package/browser/cjs/DahKlfm68zudpndW.cjs +0 -20
- package/browser/cjs/Dd7t0gfO3bzS0-B8.cjs +0 -6
- package/browser/cjs/DxAU6DV3UCUDVoSH.cjs +0 -6
- package/browser/cjs/uj7GSwDaUyTKEjrN.cjs +0 -6
- package/browser/esm/BLuR1D2n--9QSJL9.mjs +0 -26
- package/browser/esm/BSOhdb74viwmCi54.mjs +0 -2159
- package/browser/esm/BTAhrEfV-DH0-Ldk.mjs +0 -640
- package/browser/esm/BgsyX5QL9OLy0DN3.mjs +0 -4533
- package/browser/esm/CFPGs5_tLGrpkW8L.mjs +0 -25
- package/browser/esm/CbCX3t0hx-h6pV7Q.mjs +0 -46
- package/browser/esm/D3dDP89ml0258MGb.mjs +0 -53
- package/browser/esm/DYk55y6IEOCytW3g.mjs +0 -50
- package/browser/esm/DfUqOxFfhJcaq847.mjs +0 -2411
- package/browser/esm/DhWeeZyxUc-LbP8E.mjs +0 -50
- package/browser/esm/DqLDLUCqiFovdBf0.mjs +0 -155
- package/browser/esm/Dvo0k3olgFuAso_O.mjs +0 -54
- package/node/assets/style.css +0 -1
- package/node/esm/BM_pvbGlgXydGNT3.mjs +0 -52
- package/node/esm/CFBcwLP2q2_EUXvE.mjs +0 -156
- package/node/esm/Cg9JFB8nOnVfR0Uo.mjs +0 -26
- package/node/esm/D3kxA1LpG-PpZvCb.mjs +0 -25
- package/node/esm/D_s6w_GWb8l7uGW3.mjs +0 -53
- package/node/esm/XI3nj4zD7mXOyxSm.mjs +0 -57
- package/node/esm/YXQgUYqP1qsi_MPX.mjs +0 -46
- package/node/esm/m2lejeU-ViEhFj_N.mjs +0 -91
- package/node/esm/sevERUPIPJCb-jYL.mjs +0 -88
- package/node/esm/zdjaq7yEfEvgHrDi.mjs +0 -50
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as T } from "react/jsx-runtime";
|
|
2
|
-
import { memo as v, useState as p, useCallback as w } from "react";
|
|
3
|
-
import { Box as I, FormControlLabel as V, Checkbox as j } from "@mui/material";
|
|
4
|
-
import { useCallbackRef as y } from "@sheetxl/utils-react";
|
|
5
|
-
import { OptionsDialog as F } from "@sheetxl/utils-mui";
|
|
6
|
-
import { R } from "./BgsyX5QL9OLy0DN3.mjs";
|
|
7
|
-
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.26
|
|
9
|
-
*
|
|
10
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
|
-
*/
|
|
13
|
-
const B = ["Ok", "Cancel"], z = v((g) => {
|
|
14
|
-
const { onInput: f, onOption: c, onValidateOption: H, onDone: d, options: m = B, defaultOption: t = m?.[0], cancelOption: s = "Cancel", sx: x, initialValue: e, context: l, ...b } = g, [h, O] = p(!1), [o, C] = p(() => e?.hasHeader ?? !1), [i, k] = p(() => e?.ranges ?? null), D = y((a) => {
|
|
15
|
-
const r = { ...e, hasHeader: o, ranges: i }, u = a === s;
|
|
16
|
-
u || f?.(r), c?.(a, u, a === t), d?.({ option: a, tableOptions: r });
|
|
17
|
-
}, [d, c, t, s, o, i, e]), N = w(async (a, r) => null, []);
|
|
18
|
-
return n(F, { title: "Insert Table", options: m, onDone: D, onValidateOption: N, defaultOption: t, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...x }, ...b, children: T(I, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [n(R, { formName: "range", value: i, onChangeInput: (a) => k(a), resolvedAddress: l ? l().getNames().getRanges.bind(l().getNames()) : void 0, onFocus: (a) => {
|
|
19
|
-
h || a.target?.select(), O(!0);
|
|
20
|
-
} }), n(V, { control: n(j, { checked: o, onChange: () => C(!o) }), label: "Table has headers", labelPlacement: "end" })] }) });
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
z as TableNewDialog,
|
|
24
|
-
z as default
|
|
25
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as j } from "react/jsx-runtime";
|
|
2
|
-
import { memo as E, useMemo as V, useState as p, useCallback as R } from "react";
|
|
3
|
-
import { Box as L } from "@mui/material";
|
|
4
|
-
import { useCallbackRef as d } from "@sheetxl/utils-react";
|
|
5
|
-
import { OptionsDialog as S } from "@sheetxl/utils-mui";
|
|
6
|
-
import { N as A, R as G } from "./BgsyX5QL9OLy0DN3.mjs";
|
|
7
|
-
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.26
|
|
9
|
-
*
|
|
10
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
|
-
*/
|
|
13
|
-
const M = ["Ok", "Cancel"], Q = E((C) => {
|
|
14
|
-
const { initialValue: a = null, context: t, onOption: u, onValidateOption: $, onDone: m, onInput: c, options: g = M, defaultOption: f = g?.[0], cancelOption: x = "Cancel", sx: h, ...v } = C, N = V(() => t?.().getNames().findValidName("Range1"), []), y = V(() => {
|
|
15
|
-
if (!a) return !0;
|
|
16
|
-
}, []), [o, D] = p({ displayText: a?.getName() ?? N, errorText: null }), [n, w] = p({ displayValue: a?.getRanges() ?? t?.().selection() ?? null, errorText: null }), [T, O] = p(!1), F = R(async (e) => !o.errorText && !n.errorText, []), I = d((e, l, i) => {
|
|
17
|
-
if (!l) {
|
|
18
|
-
let s = null;
|
|
19
|
-
y ? s = t?.().getNames().addReference(o?.displayText, n?.displayValue, !1) : (a.getType() === "reference" && a.doBatch(() => {
|
|
20
|
-
a.setName(o?.displayText), a.setReference(n?.displayValue);
|
|
21
|
-
}, `Edit Named '${o?.displayText}'`), s = a), s && (s.select(), c(s));
|
|
22
|
-
}
|
|
23
|
-
u?.(e, l, i), m?.();
|
|
24
|
-
}, [t, o, n, m, u, f, x, c]), b = d((e) => {
|
|
25
|
-
let l = null;
|
|
26
|
-
try {
|
|
27
|
-
t?.().getNames().validateName(e);
|
|
28
|
-
} catch (i) {
|
|
29
|
-
l = i.message;
|
|
30
|
-
}
|
|
31
|
-
D({ displayText: e, errorText: l });
|
|
32
|
-
}, []), k = d((e) => {
|
|
33
|
-
a && a.getName().toLowerCase() === e.toLowerCase() || t?.().getNames().validateName(e);
|
|
34
|
-
}, [t, a]), B = R((e) => {
|
|
35
|
-
w({ displayValue: e ?? null, errorText: null });
|
|
36
|
-
}, []);
|
|
37
|
-
return r(S, { title: (y ? "Define" : "Edit") + " Range", options: g, onOption: I, onValidateOption: F, defaultOption: f, cancelOption: x, autoFocusSel: ".autoFocus", sx: { width: "460px", ...h }, ...v, children: j(L, { sx: { paddingTop: (e) => e.spacing(1), paddingBottom: (e) => e.spacing(0), rowGap: (e) => e.spacing(1), range: "flex", flexDirection: "column" }, children: [r(A, { formName: "name", defaultInput: N, value: o.displayText, onChangeInput: b, onValidate: k, onFocus: (e) => {
|
|
38
|
-
T || e.target?.select(), O(!0);
|
|
39
|
-
} }), r(G, { formName: "range", value: n.displayValue, onChangeInput: B, resolvedAddress: t ? t().getNames().getRanges.bind(t().getNames()) : void 0, onFocus: (e) => {
|
|
40
|
-
T || e.target?.select(), O(!0);
|
|
41
|
-
} })] }) });
|
|
42
|
-
});
|
|
43
|
-
export {
|
|
44
|
-
Q as NamedReferenceDialog,
|
|
45
|
-
Q as default
|
|
46
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { memo as E, useMemo as M, useState as C, useCallback as A } from "react";
|
|
3
|
-
import { alpha as O, getOverlayAlpha as y } from "@mui/material/styles";
|
|
4
|
-
import { Box as S, FormControl as $, TextField as j } from "@mui/material";
|
|
5
|
-
import { useCallbackRef as u } from "@sheetxl/utils-react";
|
|
6
|
-
import { OptionsDialog as z } from "@sheetxl/utils-mui";
|
|
7
|
-
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.26
|
|
9
|
-
*
|
|
10
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
|
-
*/
|
|
13
|
-
const G = ["Ok", "Cancel"], K = E((F) => {
|
|
14
|
-
const { initialValue: k = null, onInput: d, context: w, onOption: g, onValidateOption: r, onDone: p, options: f = G, defaultOption: c = f?.[0], cancelOption: m = "Cancel", sx: T, ...b } = F, x = M(() => {
|
|
15
|
-
const t = k ?? w?.()?.getComments();
|
|
16
|
-
let n = "";
|
|
17
|
-
if (t && t.content && t.content.runs) {
|
|
18
|
-
const e = t.content.runs;
|
|
19
|
-
for (let a = 0; a < e.length; a++) {
|
|
20
|
-
const s = e[a];
|
|
21
|
-
n += s?.text;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return n;
|
|
25
|
-
}, []), [o, v] = C(x), [D, I] = C(!1), h = A(async (t, n) => null, []), B = u(async (t) => {
|
|
26
|
-
const n = o === "" ? [] : o.split(`
|
|
27
|
-
`), e = t === m;
|
|
28
|
-
if (!e) {
|
|
29
|
-
const a = n.length, s = new Array(a);
|
|
30
|
-
for (let l = 0; l < a; l++) s[l] = { text: n[l] };
|
|
31
|
-
d?.({ content: { runs: s } });
|
|
32
|
-
}
|
|
33
|
-
g?.(t, e, t === c), p?.();
|
|
34
|
-
}, [o, d, p, g, c, m]), P = u((t) => {
|
|
35
|
-
v(t.target.value), h(t.target.value, null);
|
|
36
|
-
}, [r]), V = u(async (t) => {
|
|
37
|
-
let n = await Promise.resolve(r?.(t));
|
|
38
|
-
try {
|
|
39
|
-
n !== !1 && (n = await h(o, t));
|
|
40
|
-
} catch {
|
|
41
|
-
}
|
|
42
|
-
return n ?? !0;
|
|
43
|
-
}, [r, o]);
|
|
44
|
-
return i(z, { title: (x ? "Edit" : "Insert") + " Comments", options: f, onDone: p, onOption: (t) => B(t), onValidateOption: V, defaultOption: c, cancelOption: m, autoFocusSel: ".autoFocus", sx: { width: "480px", ...T }, ...b, children: i(S, { sx: { paddingTop: (t) => t.spacing(1), paddingBottom: (t) => t.spacing(0), rowGap: (t) => t.spacing(1), display: "flex", flexDirection: "column" }, children: i($, { sx: { paddingTop: (t) => t.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(j, { label: "Comments", placeholder: "Enter a comment.", onFocus: (t) => {
|
|
45
|
-
D || t.target?.select(), I(!0);
|
|
46
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t) => t.spacing(0.5) } }, slotProps: { inputLabel: { shrink: !0 }, htmlInput: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (t) => t.spacing(1.25), paddingBottom: (t) => t.spacing(0.75), backgroundImage: `linear-gradient(${O("#fff", y(5))}, ${O("#fff", y(5))})` } } }, value: o, onChange: P, onContextMenu: (t) => {
|
|
47
|
-
t.stopPropagation();
|
|
48
|
-
} }) }) }) });
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
K as CommentsDialog,
|
|
52
|
-
K as default
|
|
53
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { memo as L, useMemo as y, useState as w, useCallback as V } from "react";
|
|
3
|
-
import { alpha as p, getOverlayAlpha as c } from "@mui/material/styles";
|
|
4
|
-
import { Box as C, FormControl as P, TextField as A, InputLabel as N, Select as W, Typography as E, MenuItem as H } from "@mui/material";
|
|
5
|
-
import { IRange as K } from "@sheetxl/sdk";
|
|
6
|
-
import { useCallbackRef as s, KeyCodes as G } from "@sheetxl/utils-react";
|
|
7
|
-
import { OptionsDialog as q } from "@sheetxl/utils-mui";
|
|
8
|
-
/**
|
|
9
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.26
|
|
10
|
-
*
|
|
11
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
12
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
13
|
-
*/
|
|
14
|
-
const J = ["Autofit", "Ok", "Cancel"], te = L((T) => {
|
|
15
|
-
const { initialValue: k, context: a, onOption: O, onValidateOption: u, onInput: b, onDone: d, options: z = J, defaultOption: l = z?.[1], cancelOption: m = "Cancel", sx: I, ...D } = T, F = y(() => a?.().getOrientation() === K.Orientation.Column, [a]), [t, v] = w(k), [U, M] = w(!1), g = V(async (e, n) => !0, []), f = y(() => {
|
|
16
|
-
if (!a().toUnits) return null;
|
|
17
|
-
let e = t?.size ?? 0, n = "Px";
|
|
18
|
-
return t.unit === "Px" ? (e = a().toUnits?.(e), n = a().getUnitText()) : (e = a().toPixels?.(e), n = "Px"), { size: e, unit: n };
|
|
19
|
-
}, [t?.unit, t?.size]), x = s(async (e) => {
|
|
20
|
-
const n = e === m;
|
|
21
|
-
n || b?.(t, e), O?.(e, n, e === l), d?.();
|
|
22
|
-
}, [t, b, d, O, m, l]), R = s(async (e) => {
|
|
23
|
-
e.keyCode === G.Enter && await g?.(t, null) !== !1 && x(l);
|
|
24
|
-
}, [t, x]), S = s(async (e) => {
|
|
25
|
-
let n = await Promise.resolve(u?.(e));
|
|
26
|
-
try {
|
|
27
|
-
n !== !1 && (n = await Promise.resolve(g?.(t, e)) ?? !0);
|
|
28
|
-
} catch {
|
|
29
|
-
}
|
|
30
|
-
return n ?? !0;
|
|
31
|
-
}, [u]), $ = s((e) => {
|
|
32
|
-
const n = { ...t, size: Number(e.target.value) };
|
|
33
|
-
v(n), g?.(n, null);
|
|
34
|
-
}, [t, u]), j = s((e) => {
|
|
35
|
-
const n = e.target.value, o = { ...t, unit: n };
|
|
36
|
-
v(o);
|
|
37
|
-
}, [t]), B = y(() => {
|
|
38
|
-
const e = a().getUnitText(), n = (h) => i(H, { value: h, children: h }, h), o = [];
|
|
39
|
-
return o.push(n("Px")), o.push(n(e)), o;
|
|
40
|
-
}, []);
|
|
41
|
-
return i(q, { title: "Resize " + (F ? "Columns" : "Rows"), options: z, onDone: d, onOption: (e) => x(e), onValidateOption: S, defaultOption: l, cancelOption: m, autoFocusSel: ".autoFocus", sx: { width: "380px", ...I }, ...D, children: r(C, { sx: { paddingTop: (e) => e.spacing(0), paddingBottom: (e) => e.spacing(1), display: "flex", flexDirection: "column" }, children: [r(C, { sx: { rowGap: (e) => e.spacing(1), display: "flex", flexDirection: "row", gap: (e) => e.spacing(0.5), alignItems: "end", justifyContent: "center" }, children: [i(P, { sx: { paddingTop: (e) => e.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(A, { label: "Size", onFocus: (e) => {
|
|
42
|
-
U || e.target?.select(), M(!0);
|
|
43
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(0.5) } }, slotProps: { inputLabel: { shrink: !0 }, htmlInput: { className: "autoFocus", spellCheck: !1, autoComplete: "off", type: "number", inputMode: "numeric", pattern: "[0-9]*", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75), backgroundImage: `linear-gradient(${p("#fff", c(5))}, ${p("#fff", c(5))})` } } }, value: t.size, onChange: $, onKeyDown: R, onContextMenu: (e) => {
|
|
44
|
-
e.stopPropagation();
|
|
45
|
-
} }) }), r(P, { sx: { minWidth: 85 }, size: "small", children: [i(N, { children: "Unit" }), i(W, { value: t.unit, label: "Unit", onChange: j, sx: { backgroundImage: `linear-gradient(${p("#fff", c(5))}, ${p("#fff", c(5))})` }, children: B })] })] }), f && i(C, { children: r(E, { variant: "body2", component: "div", sx: { paddingLeft: (e) => e.spacing(2) }, children: [f.size, " ", f.unit] }) })] }) });
|
|
46
|
-
});
|
|
47
|
-
export {
|
|
48
|
-
te as ResizeHeaderDialog,
|
|
49
|
-
te as default
|
|
50
|
-
};
|