@sheetxl/studio-mui 0.8.0-beta.11 → 0.8.0-beta.12
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/{DTpRkgsTm_zYnWfW.mjs → 0IBZhOJaVmzJxuTv.mjs} +1 -1
- package/browser/esm/{LZoYSQAYV2wksnDv.mjs → 2nRxqrNYbmEn8fS8.mjs} +5 -5
- package/browser/esm/{DDc6rDuU9JAo1DH_.mjs → 7fVZXXuonYb6Z7FU.mjs} +3 -3
- package/browser/esm/{DpD4fg2WcyiKX_2K.mjs → BAzhmMX4Fk_qnUTp.mjs} +5 -5
- package/browser/esm/{CBD4RiRKbbZtSXV-.mjs → BGL3x0W74D7qZXlf.mjs} +3 -3
- package/browser/esm/{D9ISy7VkaRRFJl46.mjs → BHGr2gsFofTdAFxq.mjs} +4 -4
- package/browser/esm/{BknfGJouygmnpFIU.mjs → BKhcJI-G15D3kGap.mjs} +2 -2
- package/browser/esm/{CyLn6zOOp_biA3xU.mjs → BNbub9weuqm3mcoF.mjs} +8 -8
- package/browser/esm/{CWkOgdL7mOKiTR62.mjs → BSv9MVJaz1DVEffm.mjs} +4 -4
- package/browser/esm/{BAbq4-I5f5oUiNaF.mjs → BWfLpYmd3cSgJ0C6.mjs} +4 -4
- package/browser/esm/{0BWO0bLZ8Vm_dKd2.mjs → BZqwbIE8qzjSOYcJ.mjs} +13 -13
- package/browser/esm/{ttjcNHcFn8O6hfnd.mjs → BZy9xUrYpAtnKeji.mjs} +11 -11
- package/browser/esm/{COlZu93LRwuBvjE-.mjs → BnkwC5rsg9LZyhoP.mjs} +2 -2
- package/browser/esm/{BvhYPwX3GrRaO9CM.mjs → BpJsBv413cNQpyg0.mjs} +3 -3
- package/browser/esm/{DDczwkXhz_MHub4z.mjs → BpVrgbVISiTDyFR3.mjs} +2 -2
- package/browser/esm/{DRSCS6aLiYmPjUz1.mjs → BsngRDhvVYGVBJeK.mjs} +365 -362
- package/browser/esm/{Ds3XRkne7HxcXD8J.mjs → C29TKq47CbXs652l.mjs} +2 -2
- package/browser/esm/{BXhNFzyEGokTF-BL.mjs → C8p2iMad_NNCwGI_.mjs} +2 -2
- package/browser/esm/{G0Inqm6Eqw47dMpa.mjs → CBzXksWnb-1gGEWZ.mjs} +1 -1
- package/browser/esm/{zqilJefihVd7At2T.mjs → CFIAWgpU3UyepLBn.mjs} +7 -7
- package/browser/esm/{DG21x7RKDpge6zAE.mjs → CJD4jF4m9cBGHzr_.mjs} +1 -1
- package/browser/esm/{C9pIZVACtl9unFOp.mjs → CMc7G7cevxzPGxr9.mjs} +2 -2
- package/browser/esm/{HViD4Wfoi0mmqk9w.mjs → CYtULLhY9M2m3DeH.mjs} +1 -1
- package/browser/esm/{Buqcl7J75MJrhpVE.mjs → CeF35ZeFP28Do5Zx.mjs} +8 -8
- package/browser/esm/{D3rRUK4dIM5gUSmj.mjs → CjYKDxU4EP2Kf_vo.mjs} +2 -2
- package/browser/esm/{BlE_8o8tO2AgAlaj.mjs → Cq82lvdjyBvlJ8xJ.mjs} +1 -1
- package/browser/esm/{DEv4pIEgYr5C7etm.mjs → CuRxFAO42JkQvMEx.mjs} +1 -1
- package/browser/esm/{C8JU4KsMasmLvojI.mjs → Cvk2yY90hpgXWMAt.mjs} +1 -1
- package/browser/esm/{CynTY0oNtyJnoaBq.mjs → D0slJycx3nq53qmf.mjs} +1 -1
- package/browser/esm/{DKtJxrpN0axtuQ0l.mjs → D2jzliMwAo2ENpfi.mjs} +1 -1
- package/browser/esm/{DdcZrjMLWVukWcU5.mjs → D5Fn0Hqllwv5HY6i.mjs} +768 -660
- package/browser/esm/{Bujtz_Guj88d03vI.mjs → D5N4nGaZsXtrHAOh.mjs} +6 -6
- package/browser/esm/{ChSVxkPTIjgcC8PL.mjs → D7AqPfyhMiuda5l5.mjs} +2 -2
- package/browser/esm/{BED6h6YAwCf1HEQJ.mjs → DHZA48ZMCETvHmeP.mjs} +1 -1
- package/browser/esm/{Di3BUxA0SqFWWgeg.mjs → DX2_vf7WX6uRLaOZ.mjs} +1 -1
- package/browser/esm/{DnGaP5F7mLwCGUYG.mjs → DaxpbAF1ShkT7hNU.mjs} +206 -124
- package/browser/esm/{YThnrg3PadGs7B4j.mjs → Db3oHfXiRtcH015t.mjs} +143 -137
- package/browser/esm/{C0wlMAIn9iREPK6w.mjs → Dt47Huh1l3C4_5_w.mjs} +1 -1
- package/browser/esm/{xFqkfN8QMCxvsetB.mjs → DtPt0phL7m56YfHZ.mjs} +1 -1
- package/browser/esm/{CTjqDD-swFMZzI-Y.mjs → DtTDaXmnWUoG4VBO.mjs} +2 -2
- package/browser/esm/{Brsh5yscJ_4uKFXp.mjs → DuuyN4-7K6_io2Py.mjs} +2 -2
- package/browser/esm/{w_JrR69vEpvoyeMy.mjs → NeGeLF3gbGMZyV6E.mjs} +1 -1
- package/browser/esm/{BokqKEpU6TFgfRs6.mjs → PY3Br5Bo_TxcCnCU.mjs} +2 -2
- package/browser/esm/{DV6i9RQZfJiKtEaJ.mjs → WIhvQtBkGiw-oFUs.mjs} +636 -622
- package/browser/esm/{DJOOed_OtB-XT7f3.mjs → WgIvwAENeO8LANax.mjs} +6 -6
- package/browser/esm/{BjvD_4t2KGsZP5V8.mjs → Yjq3p_7eVGFw2Jod.mjs} +3 -3
- package/browser/esm/index.mjs +290 -287
- package/browser/esm/{QgaAIDUMmBQBsXP9.mjs → jFRFCWlkD7Dsrhkh.mjs} +84 -84
- package/browser/esm/{BYE9gCDWKyx6mnVs.mjs → lKXEDVt2ow1NlWJj.mjs} +114 -103
- package/browser/esm/{CEtXsBzEjEKk9GOj.mjs → oC0OwOddhOD0OoCJ.mjs} +2 -2
- package/browser/esm/{DsoNMWDwHZP8UXQd.mjs → tIKqpsA0vNXH9EgU.mjs} +1 -1
- package/browser/esm/{ClBvNPeNCAhuVWrG.mjs → u84rSnESjxqB6gay.mjs} +1 -1
- package/node/esm/{DMXLxp3T0E0SRTQc.mjs → B8Ls4Eh1k8-Yiry_.mjs} +1 -1
- package/node/esm/{3WghtBXAvCDwcVrq.mjs → B9X3n8MglL4OitAV.mjs} +1 -1
- package/node/esm/{XEDcegsv5AGKBfu2.mjs → BBGoyqs2L_ccSH1e.mjs} +2 -2
- package/node/esm/{zITjZ7R4raDqhP-n.mjs → BLv99aovW4R3C5PE.mjs} +3 -3
- package/node/esm/{DfCuL8AUxMFoEG2s.mjs → BUGU_5lUtnCRlp3n.mjs} +36 -36
- package/node/esm/{BNg4QQY0WAPLE0q7.mjs → BalROFG_oa9PFs9Q.mjs} +3 -3
- package/node/esm/{Bph-sR3l6AYWeuxK.mjs → BqVxnA1mo52ubjdf.mjs} +2 -2
- package/node/esm/{CZyA9uD4SkTvqp_G.mjs → C3FCh9xju2SccUIE.mjs} +253 -253
- package/node/esm/{Do-zCKziWhoG5eAv.mjs → C4F6WY8M4nkLyxdb.mjs} +2 -2
- package/node/esm/{CSAnTp5rwId0DUb8.mjs → CKWeipCqqpLnLE5e.mjs} +127 -116
- package/node/esm/{DLqBHdFp6wvm6EGs.mjs → CTnVNfz4eqFnM92M.mjs} +1 -1
- package/node/esm/{BPzcW4BejRqso338.mjs → Cfi_ly8fBDZZdiZT.mjs} +3 -3
- package/node/esm/{Db3dbaYLKUO66T9s.mjs → CgKa6JuyJ1tTodev.mjs} +414 -400
- package/node/esm/{4HmLH0bPVJCZLgik.mjs → Cq53M7bAUSXMNq1f.mjs} +1 -1
- package/node/esm/{1bf4gn-2vld4BZ9u.mjs → Cr8AYWUoU-XVt0hu.mjs} +1 -1
- package/node/esm/CyuOE595I2e-U4cG.mjs +236 -0
- package/node/esm/{D-xqQ5qOSd6WrzwJ.mjs → D72CupF9mfy2D1Xa.mjs} +1 -1
- package/node/esm/{CyafafEgfmjLqE5O.mjs → DGDHFK8okuVbRCe5.mjs} +1 -1
- package/node/esm/{DpJ2gmZJioCyq8La.mjs → DJFkALt4XrwkMbnU.mjs} +166 -160
- package/node/esm/{CPq-MIdEnc-53JpF.mjs → DJpwI8PlKBI2rk0r.mjs} +2 -2
- package/node/esm/{DWqvf4H5F2wMnZ0L.mjs → DQaGPUYbgL4Y5YZW.mjs} +1 -1
- package/node/esm/{CYIoK22I6Yvv12_x.mjs → DsNYnq4NtYBxPmeA.mjs} +1 -1
- package/node/esm/{yCUxQuqVuC4DHKPx.mjs → DygDgOpa9sJ6YFVS.mjs} +1 -1
- package/node/esm/Dz0Hg87UcJ-awwiI.mjs +489 -0
- package/node/esm/{BIMkjQUwG4Ih-6Sh.mjs → M7YxvRPGCuxuk9aK.mjs} +1 -1
- package/node/esm/{CWcv7UVXF8IUB0PC.mjs → QNjtpX8rIpqGGLEJ.mjs} +15 -15
- package/node/esm/{DdEzhVqYTrGODXrz.mjs → ZzvsynJTCSuChYS-.mjs} +1 -1
- package/node/esm/{CjC6s3RUJQNCF7mP.mjs → di_8-pXh90j4BO4j.mjs} +1 -1
- package/node/esm/{CvRbu8JPxFarsSR-.mjs → dm8dmEaTIqfmgyeL.mjs} +5 -5
- package/node/esm/{CuMePia6i_8yfJ6S.mjs → fmya3XQnTGyQisvT.mjs} +9 -9
- package/node/esm/{BR45ogAR-hY2bE60.mjs → gPYAb_A0T5ZwcQ1E.mjs} +1 -1
- package/node/esm/index.mjs +2817 -2702
- package/node/esm/{DeZJlLk8WJ3BLtLs.mjs → wB8xMpyJ_NvE16yG.mjs} +3 -3
- package/node/esm/{BlN7G0DVC24zauig.mjs → zGAcd4Jr7wkvXDBS.mjs} +1 -1
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +4 -0
- package/resources/locales/de/ui.msg.json +3 -1
- package/resources/locales/en/groups.cmd.json +4 -0
- package/resources/locales/en/ui.msg.json +3 -1
- package/types/src/border/BorderPopupButton.d.ts +1 -1
- package/types/src/color/ColorPopupButton.d.ts +1 -1
- package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
- package/types/src/command/DocThemeCommandButton.d.ts +1 -1
- package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
- package/types/src/command/FontSizeCommandButton.d.ts +1 -1
- package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
- package/types/src/command/LanguageCommandButton.d.ts +1 -1
- package/types/src/command/LocaleCommandButton.d.ts +1 -1
- package/types/src/command/index.d.ts +1 -0
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +1 -1
- package/types/src/conditions/ConditionEditor.d.ts +1 -1
- package/types/src/conditions/OperatorAndParamEditor.d.ts +1 -1
- package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
- package/types/src/fill/PatternPopupButton.d.ts +1 -1
- package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
- package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
- package/types/src/named/NamedDetailsPanel.d.ts +2 -2
- package/types/src/statusBar/PendingStatus.d.ts +19 -0
- package/types/src/statusBar/index.d.ts +1 -0
- package/types/src/studio/StudioProps.d.ts +10 -10
- package/types/src/template/TemplatePanel.d.ts +5 -1
- package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
- package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
- package/types/src/workbook/DefaultRenderers.d.ts +30 -18
- package/types/src/workbook/WorkbookElement.d.ts +5 -4
- package/types/src/workbook/WorkbookStrip.d.ts +8 -7
- package/types/src/workbook/index.d.ts +1 -1
- package/node/esm/B0bdb_6p7fQI_ivo.mjs +0 -236
- package/node/esm/DatM6eEYPpAtIMy-.mjs +0 -405
|
@@ -1,30 +1,30 @@
|
|
|
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.12
|
|
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 { a as e, c as t, s as n } from "./
|
|
8
|
-
import { a as r, n as i } from "./
|
|
9
|
-
import { t as a } from "./
|
|
10
|
-
import { a as o, c as s, i as c, n as l, r as u, s as d, t as f } from "./
|
|
11
|
-
import { t as p } from "./
|
|
12
|
-
import { n as m } from "./
|
|
13
|
-
import { t as h } from "./
|
|
14
|
-
import { t as g } from "./
|
|
15
|
-
import { c as _, l as v, n as y, o as b, r as x, s as S, t as C } from "./
|
|
7
|
+
import { a as e, c as t, s as n } from "./D5N4nGaZsXtrHAOh.mjs";
|
|
8
|
+
import { a as r, n as i } from "./BNbub9weuqm3mcoF.mjs";
|
|
9
|
+
import { t as a } from "./u84rSnESjxqB6gay.mjs";
|
|
10
|
+
import { a as o, c as s, i as c, n as l, r as u, s as d, t as f } from "./BZqwbIE8qzjSOYcJ.mjs";
|
|
11
|
+
import { t as p } from "./WgIvwAENeO8LANax.mjs";
|
|
12
|
+
import { n as m } from "./CJD4jF4m9cBGHzr_.mjs";
|
|
13
|
+
import { t as h } from "./D0slJycx3nq53qmf.mjs";
|
|
14
|
+
import { t as g } from "./D7AqPfyhMiuda5l5.mjs";
|
|
15
|
+
import { c as _, l as v, n as y, o as b, r as x, s as S, t as C } from "./BsngRDhvVYGVBJeK.mjs";
|
|
16
16
|
import { AutoFill as w, CommonUtils as T, Condition as E, ICalculation as D, ICell as ee, ICellRange as te, ICellStyle as O, ICondition as k, IFill as A, IFont as ne, IRangeStats as j, ISheet as re, ITextFrame as ie, InternalClipboard as ae, InteropScalarType as oe, NumberFormat as se, ScalarType as ce, TimerUtils as le, builtInStyleNameDisplay as ue } from "@sheetxl/sdk";
|
|
17
|
-
import { AUTO_FILL_PRESET_LABELS as de, COMMAND_META_KEY as fe, DefaultTaskPaneRegistry as pe, LinkPreviewImage as me, OutlineGlyph as he, PresetChartType as M, RangeAnnotationLayer as ge, ShapeGallery as _e, SheetKindIcon as ve, SheetTab as ye, SlicerStylePreview as be, StaticCellRenderer as xe, ThemedChartIcon as Se, WORKBOOK_TOOLBARS_KEY as Ce, WorkbookElement as we, WorkbookIO as Te, WorkbookStrip as Ee,
|
|
18
|
-
import { Command as
|
|
19
|
-
import { createElement as
|
|
20
|
-
import { AnimatedLoadingPanel as
|
|
21
|
-
import { Fragment as
|
|
22
|
-
import { Box as Z, Button as
|
|
23
|
-
import { CommonUtils as
|
|
24
|
-
import { alpha as
|
|
25
|
-
import { EditorDiv as
|
|
26
|
-
import { IOUtils as
|
|
27
|
-
var
|
|
17
|
+
import { AUTO_FILL_PRESET_LABELS as de, COMMAND_META_KEY as fe, DefaultTaskPaneRegistry as pe, LinkPreviewImage as me, OutlineGlyph as he, PresetChartType as M, RangeAnnotationLayer as ge, ShapeGallery as _e, SheetKindIcon as ve, SheetTab as ye, SlicerStylePreview as be, StaticCellRenderer as xe, ThemedChartIcon as Se, WORKBOOK_TOOLBARS_KEY as Ce, WorkbookElement as we, WorkbookIO as Te, WorkbookStrip as Ee, WorksheetElement as De, contributeEditorCommands as Oe, createSheetCellInput as ke, findSheetCircularReference as Ae, formatCellAddress as je, getSlicerStyleNames as Me, outlineLevelColors as Ne, outlineLevelTextStyle as Pe, placeholderFromCell as Fe, presetChartTypeDescriptor as Ie, registerMovableCommandGroups as Le, registerMovableToolbarEntry as Re, selectCell as ze, shapeIconKey as Be, useGridColorScheme as Ve, useInsertableCellControls as He, useModelListener as N, useModelSync as Ue, useReferenceMode as We, useWorkbook as Ge, useWorksheet as Ke } from "@sheetxl/react";
|
|
18
|
+
import { Command as qe, CommandButtonEntryLabel as Je, CommandButtonType as Ye, CommandScopeProvider as Xe, DefaultCommandButtonRegistry as P, DefaultIconService as Ze, DynamicIcon as F, KeyCodes as I, NotifierType as Qe, ReactUtils as $e, RenderSlot as et, ResizableBox as tt, SplitPane as nt, defaultTheme as rt, exitEditMode as it, isVirtualKeyboardUp as at, measureUIText as ot, useCallbackRef as L, useCommandButtonEntry as st, useCommandButtonRegistry as ct, useCommands as R, useEditMode as lt, useFloat as ut, useFloatStack as dt, useImperativeElement as ft, useLanguage as pt, useMeasure as mt, useMouseDownAndHoldListener as ht, useNotifier as gt, useOptionalBoundSyncExternalStore as _t, usePersistentState as vt, useTextSelectionDrag as yt, useTranslator as z, useVirtualKeyboard as bt } from "@sheetxl/utils-react";
|
|
19
|
+
import { createElement as xt, forwardRef as B, memo as V, useCallback as H, useEffect as U, useLayoutEffect as St, useMemo as W, useReducer as Ct, useRef as wt, useState as G } from "react";
|
|
20
|
+
import { AnimatedLoadingPanel as Tt, CommandButton as K, CommandGroup as Et, CommandPopupButton as Dt, CommandToolbar as Ot, CommandTooltip as kt, ContextMenu as At, ExhibitDivider as q, ExhibitFloatProvider as jt, ExhibitIconButton as J, ExhibitMenuHeader as Mt, ExhibitMenuItem as Nt, ExhibitPopupIconButton as Pt, ExhibitPopupMenuItem as Ft, ExhibitTooltip as It, InputCommandButton as Lt, MenuItemInsets as Rt, PopupButtonType as zt, SelectedIcon as Bt, SimpleTooltip as Vt, StackTraceErrorPanel as Ht, ToggleGroupButton as Ut, buttonLabelSx as Wt, defaultRenderPopupPanel as Gt, defaultRenderScrollButtonEdge as Kt, defaultRenderScrollButtonEnd as qt, defaultRenderScrollButtonStart as Jt, elevateColor as Yt, hexToRGB as Xt, lazyModal as Zt, lazyPanel as Qt, renderMembers as $t, useModal as en } from "@sheetxl/utils-mui";
|
|
21
|
+
import { Fragment as tn, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
22
|
+
import { Box as Z, Button as nn, ButtonBase as rn, FormControl as an, IconButton as on, Input as sn, Link as cn, ListItemIcon as ln, MenuItem as un, Paper as dn, Select as fn, Slider as pn, Tab as mn, Tabs as hn, TextField as gn, ToggleButton as _n, ToggleButtonGroup as vn, Typography as yn, alpha as bn, styled as xn, tooltipClasses as Sn, useTheme as Cn } from "@mui/material";
|
|
23
|
+
import { CommonUtils as wn, DefaultLanguagePackService as Tn, RangeAxis as En, TimerUtils as Dn, defineLazyModule as On, messageKey as kn, t as An } from "@sheetxl/utils";
|
|
24
|
+
import { alpha as jn } from "@mui/system";
|
|
25
|
+
import { EditorDiv as Mn, TooltipProvider as Nn, buildGridThemeCSS as Pn, useTooltipSurface as Fn } from "@sheetxl/grid-react";
|
|
26
|
+
import { IOUtils as In } from "@sheetxl/io";
|
|
27
|
+
var Ln = {
|
|
28
28
|
"border.all": "All Borders",
|
|
29
29
|
"border.bottom": "Bottom Borders",
|
|
30
30
|
"border.colorTooltip": "Border Color",
|
|
@@ -684,15 +684,16 @@ var An = {
|
|
|
684
684
|
"named.new": "New Name",
|
|
685
685
|
"named.noMatches": "No names match.",
|
|
686
686
|
"named.none": "No Names.",
|
|
687
|
+
"named.references": "{count, plural, =0{Not referenced} one{# reference} other{# references}}",
|
|
687
688
|
"named.refersTo": "Refers To",
|
|
688
689
|
"named.refersToHelp": "A range address, or a formula beginning with =.",
|
|
690
|
+
"named.removeUnusedHidden": "{count, plural, one{Delete # unused hidden name} other{Delete # unused hidden names}}",
|
|
689
691
|
"named.save": "Save",
|
|
690
692
|
"named.scope": "Scope",
|
|
691
693
|
"named.scopedTo": "Scope: {scope}",
|
|
692
694
|
"named.scopeHelp": "Where the name can be used.",
|
|
693
695
|
"named.scopeWorkbook": "Workbook",
|
|
694
696
|
"named.search": "Search names",
|
|
695
|
-
"named.showHidden": "Show hidden",
|
|
696
697
|
"namedInput.label": "Name",
|
|
697
698
|
"namedRange.titleDefine": "Define Range",
|
|
698
699
|
"namedRange.titleEdit": "Edit Range",
|
|
@@ -895,6 +896,7 @@ var An = {
|
|
|
895
896
|
"statusBar.cancelMode": "Cancel",
|
|
896
897
|
"statusBar.circularReferences": "Circular References",
|
|
897
898
|
"statusBar.doneMode": "Done",
|
|
899
|
+
"statusBar.pending": "{count, plural, one{Waiting for # result. Click to stop waiting.} other{Waiting for # results. Click to stop waiting.}}",
|
|
898
900
|
"statusBar.point": "Point",
|
|
899
901
|
"statusBar.ready": "Ready",
|
|
900
902
|
"table.noneSelected": "No table selected",
|
|
@@ -947,7 +949,7 @@ var An = {
|
|
|
947
949
|
"zoom.out": "Zoom Out",
|
|
948
950
|
"zoom.percent": "{value}%",
|
|
949
951
|
"zoom.sliderValue": "Zoom: {value}%"
|
|
950
|
-
},
|
|
952
|
+
}, Rn = [{
|
|
951
953
|
sourceId: "groups",
|
|
952
954
|
catalog: {
|
|
953
955
|
scope: "ui",
|
|
@@ -1085,6 +1087,10 @@ var An = {
|
|
|
1085
1087
|
description: "More functions.",
|
|
1086
1088
|
label: "Quick Function"
|
|
1087
1089
|
},
|
|
1090
|
+
insertCellControlOptions: {
|
|
1091
|
+
description: "Insert a checkbox, or another registered cell control, in the selected cells.",
|
|
1092
|
+
icon: "CheckboxInsert"
|
|
1093
|
+
},
|
|
1088
1094
|
insertImageOptions: {
|
|
1089
1095
|
description: "Insert a picture from the web to complement your data.",
|
|
1090
1096
|
icon: "InsertImage"
|
|
@@ -1323,42 +1329,42 @@ var An = {
|
|
|
1323
1329
|
}
|
|
1324
1330
|
}
|
|
1325
1331
|
}
|
|
1326
|
-
}], { DefaultCommandCatalogService:
|
|
1327
|
-
function
|
|
1328
|
-
|
|
1329
|
-
messages:
|
|
1330
|
-
catalogs:
|
|
1332
|
+
}], { DefaultCommandCatalogService: zn } = qe, Bn = !1;
|
|
1333
|
+
function Vn() {
|
|
1334
|
+
Bn || (Bn = !0, zn.registerFromManifest("@sheetxl/studio-mui", import.meta.url, {
|
|
1335
|
+
messages: Ln,
|
|
1336
|
+
catalogs: Rn
|
|
1331
1337
|
}));
|
|
1332
1338
|
}
|
|
1333
|
-
var
|
|
1339
|
+
var Hn = V(B((e, t) => {
|
|
1334
1340
|
let [n] = R(["formatTextRotateCustom"]), r = !!n?.getState();
|
|
1335
|
-
return Y(
|
|
1341
|
+
return Y(Et, {
|
|
1336
1342
|
ref: t,
|
|
1337
1343
|
...e,
|
|
1338
1344
|
selected: r,
|
|
1339
1345
|
quickCommand: r ? "formatTextRotate0" : "formatTextRotate315"
|
|
1340
1346
|
});
|
|
1341
1347
|
}));
|
|
1342
|
-
|
|
1343
|
-
var
|
|
1348
|
+
Hn.displayName = "TextRotateGroupButton";
|
|
1349
|
+
var Un = [
|
|
1344
1350
|
"sheetZoom200",
|
|
1345
1351
|
"sheetZoom100",
|
|
1346
1352
|
"sheetZoom75",
|
|
1347
1353
|
"sheetZoom50",
|
|
1348
1354
|
"sheetZoom25",
|
|
1349
1355
|
"sheetZoomCustom"
|
|
1350
|
-
],
|
|
1351
|
-
let { groupKey: n, disabled: r, ...i } = e, a = z(), o = R(
|
|
1356
|
+
], Wn = V(B((e, t) => {
|
|
1357
|
+
let { groupKey: n, disabled: r, ...i } = e, a = z(), o = R(Un), s = st("sheetZoomOptions"), c = !1, l = o.length;
|
|
1352
1358
|
for (let e = 0; !c && e < l; e++) {
|
|
1353
1359
|
let t = o[e];
|
|
1354
1360
|
t && !t.disabled() && (c = !0);
|
|
1355
1361
|
}
|
|
1356
1362
|
let u = Math.round(o[l - 1]?.getState() ?? 100), d = H((e) => {
|
|
1357
1363
|
let t = {
|
|
1358
|
-
variant:
|
|
1364
|
+
variant: Ye.Menuitem,
|
|
1359
1365
|
groupKey: n,
|
|
1360
1366
|
disabled: r
|
|
1361
|
-
}, i = X(
|
|
1367
|
+
}, i = X(tn, { children: [
|
|
1362
1368
|
Y(K, {
|
|
1363
1369
|
...t,
|
|
1364
1370
|
commandKey: "sheetZoom200"
|
|
@@ -1385,7 +1391,7 @@ var In = [
|
|
|
1385
1391
|
commandKey: "sheetZoomSelection"
|
|
1386
1392
|
}),
|
|
1387
1393
|
Y(q, { orientation: "horizontal" }),
|
|
1388
|
-
Y(
|
|
1394
|
+
Y(Lt, {
|
|
1389
1395
|
...t,
|
|
1390
1396
|
commandKey: "sheetZoomCustom",
|
|
1391
1397
|
groupKey: "sheetZoomOptions",
|
|
@@ -1400,25 +1406,25 @@ var In = [
|
|
|
1400
1406
|
}
|
|
1401
1407
|
})
|
|
1402
1408
|
] });
|
|
1403
|
-
return
|
|
1409
|
+
return Gt({
|
|
1404
1410
|
...e,
|
|
1405
1411
|
children: i
|
|
1406
1412
|
});
|
|
1407
1413
|
}, [r, n]);
|
|
1408
|
-
return Y(
|
|
1414
|
+
return Y(Dt, {
|
|
1409
1415
|
ref: t,
|
|
1410
1416
|
disabled: r || !c,
|
|
1411
1417
|
groupKey: n,
|
|
1412
1418
|
label: s?.getLabel?.(),
|
|
1413
1419
|
tooltip: s?.getDescription?.(),
|
|
1414
|
-
|
|
1420
|
+
renderPopupPanel: d,
|
|
1415
1421
|
quickCommand: "sheetZoom100",
|
|
1416
1422
|
selected: !1,
|
|
1417
1423
|
outlined: !0,
|
|
1418
1424
|
icon: Y(Z, {
|
|
1419
1425
|
className: "zoom-percent",
|
|
1420
1426
|
sx: {
|
|
1421
|
-
...
|
|
1427
|
+
...Wt,
|
|
1422
1428
|
display: "flex",
|
|
1423
1429
|
justifyContent: "center",
|
|
1424
1430
|
whiteSpace: "pre",
|
|
@@ -1431,15 +1437,15 @@ var In = [
|
|
|
1431
1437
|
...i
|
|
1432
1438
|
});
|
|
1433
1439
|
}));
|
|
1434
|
-
|
|
1435
|
-
var
|
|
1436
|
-
let { commandKey: n, variant: i =
|
|
1440
|
+
Wn.displayName = "SheetZoomCommandButton";
|
|
1441
|
+
var Gn = V(B((e, t) => {
|
|
1442
|
+
let { commandKey: n, variant: i = Ye.Toolbar, disabled: a, autoColor: o, autoStrokeStyle: s, schemeLookup: c, createBorder: l, selectedBorder: u, onSelectBorder: d, darkMode: f, icon: p, label: m, ...h } = e, g = R([n ?? "formatBorder"])[0], _ = g?.getContext() ?? null, v = _?.autoColor ?? o, y = _?.autoStyle ?? s, b = u ?? _?.quickBorder, x = Ve(), S = f ?? x === "dark", C = l ?? _?.createBorder, w = c ?? _?.schemeLookup, T = L((e) => {
|
|
1437
1443
|
_?.onBorderSelect && _.onBorderSelect(e), d?.(e), g?.execute(e);
|
|
1438
|
-
}, [g, d]), E = H((e
|
|
1439
|
-
let { children: r, title: o, ...s } = e, c = e.children;
|
|
1440
|
-
return (g?.disabled() || a) && (c = Y("div", { children: c })), Y(
|
|
1444
|
+
}, [g, d]), E = H((e) => {
|
|
1445
|
+
let { disabled: t, children: r, title: o, ...s } = e, c = e.children;
|
|
1446
|
+
return (g?.disabled() || a) && (c = Y("div", { children: c })), Y(kt, {
|
|
1441
1447
|
commandKey: n,
|
|
1442
|
-
placement: i ===
|
|
1448
|
+
placement: i === Ye.Toolbar ? "bottom-start" : "right-start",
|
|
1443
1449
|
disabled: t,
|
|
1444
1450
|
...s,
|
|
1445
1451
|
children: c
|
|
@@ -1454,13 +1460,13 @@ var Rn = V(B((e, t) => {
|
|
|
1454
1460
|
schemeLookup: w,
|
|
1455
1461
|
selectedBorder: b,
|
|
1456
1462
|
onSelectBorder: T,
|
|
1457
|
-
|
|
1463
|
+
renderTooltip: E,
|
|
1458
1464
|
disabled: a || !g || g.disabled(),
|
|
1459
1465
|
...h
|
|
1460
1466
|
});
|
|
1461
|
-
})),
|
|
1467
|
+
})), Kn = V((e) => {
|
|
1462
1468
|
let { selected: t, disabled: n, formattedValue: r, handleSetFormat: i, format: a, label: s, sx: c, ...l } = e, u = z();
|
|
1463
|
-
return Y(
|
|
1469
|
+
return Y(Nt, {
|
|
1464
1470
|
sx: {
|
|
1465
1471
|
maxWidth: "360px",
|
|
1466
1472
|
display: "flex",
|
|
@@ -1469,7 +1475,7 @@ var Rn = V(B((e, t) => {
|
|
|
1469
1475
|
},
|
|
1470
1476
|
disabled: n,
|
|
1471
1477
|
selected: t,
|
|
1472
|
-
icon: Y(
|
|
1478
|
+
icon: Y(Bt, {
|
|
1473
1479
|
selected: !!t,
|
|
1474
1480
|
children: t ? void 0 : null
|
|
1475
1481
|
}),
|
|
@@ -1489,11 +1495,11 @@ var Rn = V(B((e, t) => {
|
|
|
1489
1495
|
})
|
|
1490
1496
|
});
|
|
1491
1497
|
});
|
|
1492
|
-
|
|
1493
|
-
var
|
|
1494
|
-
let { groupKey: n, sx: r, disabled: i, ...a } = e, o = R(["formatNumberFormat", "formatCells"]), s = o[0], l = o[1], f = s?.getState(), p = f ? se.Styles.lookupStyle(f).formatType : void 0, m = z(), h =
|
|
1498
|
+
Kn.displayName = "NumberFormatMenuItem";
|
|
1499
|
+
var qn = V(B((e, t) => {
|
|
1500
|
+
let { groupKey: n, sx: r, disabled: i, ...a } = e, o = R(["formatNumberFormat", "formatCells"]), s = o[0], l = o[1], f = s?.getState(), p = f ? se.Styles.lookupStyle(f).formatType : void 0, m = z(), h = Cn(), g = W(() => {
|
|
1495
1501
|
let e = d(m, se.Type.General);
|
|
1496
|
-
return 2 *
|
|
1502
|
+
return 2 * ot(e ?? "", {
|
|
1497
1503
|
size: Math.round(h.typography.fontSize),
|
|
1498
1504
|
family: h.typography.fontFamily ?? ""
|
|
1499
1505
|
}) + "px";
|
|
@@ -1510,7 +1516,7 @@ var Bn = V(B((e, t) => {
|
|
|
1510
1516
|
}
|
|
1511
1517
|
n === "" && a[e].formatType === se.Type.General && (n = m("numberFormat.noSpecificFormat"));
|
|
1512
1518
|
let c = a[e].formatType === p;
|
|
1513
|
-
o.push(Y(
|
|
1519
|
+
o.push(Y(Kn, {
|
|
1514
1520
|
selected: c,
|
|
1515
1521
|
disabled: i || !s || s.disabled(),
|
|
1516
1522
|
formattedValue: n,
|
|
@@ -1521,7 +1527,7 @@ var Bn = V(B((e, t) => {
|
|
|
1521
1527
|
let d = {
|
|
1522
1528
|
numberFormat: "",
|
|
1523
1529
|
formatType: se.Type.Custom
|
|
1524
|
-
}, f = p === se.Type.Custom, h = Y(
|
|
1530
|
+
}, f = p === se.Type.Custom, h = Y(Kn, {
|
|
1525
1531
|
selected: f,
|
|
1526
1532
|
disabled: i || !s || s.disabled(),
|
|
1527
1533
|
label: l?.getLabel(u),
|
|
@@ -1535,7 +1541,7 @@ var Bn = V(B((e, t) => {
|
|
|
1535
1541
|
width: "100%"
|
|
1536
1542
|
}
|
|
1537
1543
|
}, se.Type.Custom);
|
|
1538
|
-
return
|
|
1544
|
+
return Gt({
|
|
1539
1545
|
...e,
|
|
1540
1546
|
children: X(Z, {
|
|
1541
1547
|
sx: {
|
|
@@ -1566,13 +1572,13 @@ var Bn = V(B((e, t) => {
|
|
|
1566
1572
|
n,
|
|
1567
1573
|
m
|
|
1568
1574
|
]);
|
|
1569
|
-
return Y(
|
|
1575
|
+
return Y(Dt, {
|
|
1570
1576
|
ref: t,
|
|
1571
1577
|
sx: r,
|
|
1572
1578
|
outlined: !0,
|
|
1573
1579
|
disabled: i ?? (!s || s.disabled()),
|
|
1574
|
-
|
|
1575
|
-
|
|
1580
|
+
renderPopupPanel: _,
|
|
1581
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
1576
1582
|
label: s?.getLabel(),
|
|
1577
1583
|
description: s?.getDescription(),
|
|
1578
1584
|
disabled: t,
|
|
@@ -1601,18 +1607,18 @@ var Bn = V(B((e, t) => {
|
|
|
1601
1607
|
...a
|
|
1602
1608
|
});
|
|
1603
1609
|
}));
|
|
1604
|
-
|
|
1605
|
-
var
|
|
1610
|
+
qn.displayName = "NumberFormatCommandButton";
|
|
1611
|
+
var Jn = ({ entry: e }) => {
|
|
1606
1612
|
let t = e.meta[fe] ?? "", [n] = R([t]), r = t ? n?.getIcon() : void 0;
|
|
1607
1613
|
return r ? typeof r == "string" ? Y(F, { iconKey: r }) : r : Y(F, {});
|
|
1608
|
-
},
|
|
1614
|
+
}, Yn = { agent: {
|
|
1609
1615
|
icon: "Agent",
|
|
1610
1616
|
label: (e) => e("undo.author.agent")
|
|
1611
|
-
} },
|
|
1612
|
-
let t = z(), n = e.author ?
|
|
1617
|
+
} }, Xn = ({ entry: e }) => {
|
|
1618
|
+
let t = z(), n = e.author ? Yn[e.author] : void 0;
|
|
1613
1619
|
if (!n) return null;
|
|
1614
1620
|
let r = n.label(t);
|
|
1615
|
-
return Y(
|
|
1621
|
+
return Y(Vt, {
|
|
1616
1622
|
disableInteractive: !0,
|
|
1617
1623
|
title: r,
|
|
1618
1624
|
children: Y(Z, {
|
|
@@ -1628,7 +1634,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1628
1634
|
children: Y(F, { iconKey: n.icon })
|
|
1629
1635
|
})
|
|
1630
1636
|
});
|
|
1631
|
-
},
|
|
1637
|
+
}, Zn = V(B((e, t) => {
|
|
1632
1638
|
let { quickCommand: n, icon: r, isRedo: i = !1, nestRedo: a = !0, undoManager: o, groupKey: s, sx: c, disabled: l, ...u } = e, d = [n ?? ""];
|
|
1633
1639
|
!i && a && d.push("redo");
|
|
1634
1640
|
let f = R(d), p = z(), m = f[0], h = f[1], g = o ?? m?.getContext?.()?.undoManager, _ = l;
|
|
@@ -1638,7 +1644,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1638
1644
|
g || (n = !0), n ||= a ? !g.hasRedo() && !g.hasUndo() : !g.hasRedo();
|
|
1639
1645
|
let r = (e) => {
|
|
1640
1646
|
m?.execute(e);
|
|
1641
|
-
}, o = Y(
|
|
1647
|
+
}, o = Y(Nt, {
|
|
1642
1648
|
sx: {
|
|
1643
1649
|
display: "flex",
|
|
1644
1650
|
flex: "none",
|
|
@@ -1660,7 +1666,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1660
1666
|
onKeyDown: (e) => {
|
|
1661
1667
|
e.isDefaultPrevented() || e.keyCode !== I.Enter && e.keyCode !== I.Space || r(v);
|
|
1662
1668
|
},
|
|
1663
|
-
children: Y(
|
|
1669
|
+
children: Y(yn, {
|
|
1664
1670
|
component: "div",
|
|
1665
1671
|
variant: "caption",
|
|
1666
1672
|
sx: {
|
|
@@ -1674,14 +1680,14 @@ var Vn = ({ entry: e }) => {
|
|
|
1674
1680
|
let s = i ? g?.getRedoEntries() : g?.getUndoEntries(), c = [];
|
|
1675
1681
|
for (let e = 0; e < s.length; e++) {
|
|
1676
1682
|
let t = s[e], n = p(t.description);
|
|
1677
|
-
c.push(Y(
|
|
1683
|
+
c.push(Y(Nt, {
|
|
1678
1684
|
sx: {
|
|
1679
1685
|
maxWidth: "360px",
|
|
1680
1686
|
display: "flex"
|
|
1681
1687
|
},
|
|
1682
1688
|
disabled: _,
|
|
1683
1689
|
selected: e < v,
|
|
1684
|
-
icon: Y(
|
|
1690
|
+
icon: Y(Jn, { entry: t }),
|
|
1685
1691
|
onMouseEnter: () => {
|
|
1686
1692
|
y(e + 1);
|
|
1687
1693
|
},
|
|
@@ -1702,7 +1708,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1702
1708
|
alignItems: "center",
|
|
1703
1709
|
overflow: "hidden"
|
|
1704
1710
|
},
|
|
1705
|
-
children: [Y(
|
|
1711
|
+
children: [Y(yn, {
|
|
1706
1712
|
component: "div",
|
|
1707
1713
|
noWrap: !0,
|
|
1708
1714
|
sx: {
|
|
@@ -1710,7 +1716,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1710
1716
|
minWidth: 0
|
|
1711
1717
|
},
|
|
1712
1718
|
children: n
|
|
1713
|
-
}), Y(
|
|
1719
|
+
}), Y(Xn, { entry: t })]
|
|
1714
1720
|
})
|
|
1715
1721
|
}, `action:${e}`));
|
|
1716
1722
|
}
|
|
@@ -1718,9 +1724,9 @@ var Vn = ({ entry: e }) => {
|
|
|
1718
1724
|
if (!i && a) {
|
|
1719
1725
|
let e = {
|
|
1720
1726
|
groupKey: "undo",
|
|
1721
|
-
variant:
|
|
1727
|
+
variant: Ye.Menuitem
|
|
1722
1728
|
};
|
|
1723
|
-
l = [], l.push(Y(
|
|
1729
|
+
l = [], l.push(Y(Zn, {
|
|
1724
1730
|
...e,
|
|
1725
1731
|
quickCommand: "redo",
|
|
1726
1732
|
isRedo: !0
|
|
@@ -1752,7 +1758,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1752
1758
|
o
|
|
1753
1759
|
]
|
|
1754
1760
|
});
|
|
1755
|
-
return
|
|
1761
|
+
return Gt({
|
|
1756
1762
|
...e,
|
|
1757
1763
|
children: u
|
|
1758
1764
|
});
|
|
@@ -1765,24 +1771,24 @@ var Vn = ({ entry: e }) => {
|
|
|
1765
1771
|
_,
|
|
1766
1772
|
p
|
|
1767
1773
|
]);
|
|
1768
|
-
return Y(
|
|
1774
|
+
return Y(Dt, {
|
|
1769
1775
|
ref: t,
|
|
1770
1776
|
quickCommand: n,
|
|
1771
1777
|
groupKey: s,
|
|
1772
1778
|
disabled: _,
|
|
1773
1779
|
label: m?.getLabel(s) ?? (i ? "Redo" : "Undo"),
|
|
1774
|
-
tooltip: Y(
|
|
1775
|
-
|
|
1780
|
+
tooltip: Y(tn, { children: Y("span", { children: `${m?.getLabel() ?? "No"} last actions.` }) }),
|
|
1781
|
+
renderPopupPanel: b,
|
|
1776
1782
|
icon: r ?? (i ? "Redo" : "Undo"),
|
|
1777
1783
|
selected: !1,
|
|
1778
1784
|
...u
|
|
1779
1785
|
});
|
|
1780
|
-
})),
|
|
1786
|
+
})), Qn = V(B((e, t) => {
|
|
1781
1787
|
let { groupKey: n, disabled: r, ...i } = e, a = [
|
|
1782
1788
|
"formatStrikeThroughToggle",
|
|
1783
1789
|
"formatSuperscriptToggle",
|
|
1784
1790
|
"formatSubscriptToggle"
|
|
1785
|
-
], o = R(a), s =
|
|
1791
|
+
], o = R(a), s = ct().get("textEffectsOptions"), c = s?.getLabel?.() ?? "Text Effects", l = s?.getDescription?.() ?? "Style your text to differentiate it.", u = null, d = !1, f = o.length;
|
|
1786
1792
|
for (let e = 0; !u && e < f; e++) {
|
|
1787
1793
|
let t = o[e];
|
|
1788
1794
|
t && !t.disabled() && (d = !0, t.getState() && (u = a[e]));
|
|
@@ -1790,10 +1796,10 @@ var Vn = ({ entry: e }) => {
|
|
|
1790
1796
|
u ||= a[0];
|
|
1791
1797
|
let p = H((e) => {
|
|
1792
1798
|
let t = {
|
|
1793
|
-
variant:
|
|
1799
|
+
variant: Ye.Menuitem,
|
|
1794
1800
|
groupKey: "textEffectsOptions",
|
|
1795
1801
|
disabled: r
|
|
1796
|
-
}, n = X(
|
|
1802
|
+
}, n = X(tn, { children: [
|
|
1797
1803
|
Y(K, {
|
|
1798
1804
|
...t,
|
|
1799
1805
|
commandKey: "formatStrikeThroughToggle"
|
|
@@ -1807,23 +1813,23 @@ var Vn = ({ entry: e }) => {
|
|
|
1807
1813
|
commandKey: "formatSubscriptToggle"
|
|
1808
1814
|
})
|
|
1809
1815
|
] });
|
|
1810
|
-
return
|
|
1816
|
+
return Gt({
|
|
1811
1817
|
...e,
|
|
1812
1818
|
children: n
|
|
1813
1819
|
});
|
|
1814
1820
|
}, [r, n]);
|
|
1815
|
-
return Y(
|
|
1821
|
+
return Y(Dt, {
|
|
1816
1822
|
ref: t,
|
|
1817
1823
|
quickCommand: u,
|
|
1818
1824
|
disabled: r ?? !d,
|
|
1819
|
-
|
|
1825
|
+
renderPopupPanel: p,
|
|
1820
1826
|
label: c,
|
|
1821
1827
|
tooltip: l,
|
|
1822
1828
|
...i
|
|
1823
1829
|
});
|
|
1824
|
-
})),
|
|
1830
|
+
})), $n = V(B((e, t) => {
|
|
1825
1831
|
let { commandKey: n, includePasteAllInPopup: r = !0, ...i } = e;
|
|
1826
|
-
return Y(
|
|
1832
|
+
return Y(Et, r ? {
|
|
1827
1833
|
ref: t,
|
|
1828
1834
|
groupKey: "pasteOptions",
|
|
1829
1835
|
...i
|
|
@@ -1840,18 +1846,18 @@ var Vn = ({ entry: e }) => {
|
|
|
1840
1846
|
quickCommand: "paste",
|
|
1841
1847
|
...i
|
|
1842
1848
|
});
|
|
1843
|
-
})),
|
|
1849
|
+
})), er = (e, t) => {
|
|
1844
1850
|
let n = ue(e);
|
|
1845
1851
|
return n ? t(n.key, n.params) : e;
|
|
1846
|
-
},
|
|
1847
|
-
let n = new Intl.Collator(
|
|
1848
|
-
return [...e].sort((e, r) => n.compare(
|
|
1849
|
-
},
|
|
1852
|
+
}, tr = (e, t) => {
|
|
1853
|
+
let n = new Intl.Collator(Tn.getActive(), { numeric: !0 });
|
|
1854
|
+
return [...e].sort((e, r) => n.compare(er(e, t), er(r, t)));
|
|
1855
|
+
}, nr = V((e) => {
|
|
1850
1856
|
let { namedStyle: t, selectedNamed: n, hasContextMenu: r = !0, onSelectNamed: i, createCell: a, disabled: o, ...s } = e, c = z(), l = H((e) => {
|
|
1851
1857
|
let n = {
|
|
1852
|
-
variant:
|
|
1858
|
+
variant: Ye.Menuitem,
|
|
1853
1859
|
context: "cellStyle"
|
|
1854
|
-
}, r = X(
|
|
1860
|
+
}, r = X(tn, { children: [
|
|
1855
1861
|
Y(K, {
|
|
1856
1862
|
...n,
|
|
1857
1863
|
style: { fontWeight: 550 },
|
|
@@ -1872,7 +1878,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1872
1878
|
disabled: o || t?.getName() === O.BuiltInName.Normal
|
|
1873
1879
|
})
|
|
1874
1880
|
] });
|
|
1875
|
-
return
|
|
1881
|
+
return Gt({
|
|
1876
1882
|
...e,
|
|
1877
1883
|
children: Y(Z, {
|
|
1878
1884
|
sx: {
|
|
@@ -1899,7 +1905,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1899
1905
|
border: (e) => `solid ${u ? e.palette.primary.dark : "transparent"} 1px`
|
|
1900
1906
|
},
|
|
1901
1907
|
propsTooltip: {
|
|
1902
|
-
label:
|
|
1908
|
+
label: er(t.getName(), c),
|
|
1903
1909
|
placement: "bottom-start"
|
|
1904
1910
|
},
|
|
1905
1911
|
disabled: o,
|
|
@@ -1909,25 +1915,25 @@ var Vn = ({ entry: e }) => {
|
|
|
1909
1915
|
},
|
|
1910
1916
|
...s,
|
|
1911
1917
|
children: Y(xe, {
|
|
1912
|
-
value:
|
|
1918
|
+
value: er(t.getName(), c),
|
|
1913
1919
|
cellStyle: { named: t.getName() },
|
|
1914
1920
|
createCell: a
|
|
1915
1921
|
})
|
|
1916
1922
|
}, t.getName());
|
|
1917
|
-
return r && (d = Y(
|
|
1918
|
-
label:
|
|
1919
|
-
|
|
1923
|
+
return r && (d = Y(At, {
|
|
1924
|
+
label: er(t.getName(), c),
|
|
1925
|
+
renderPopupPanel: l,
|
|
1920
1926
|
children: d
|
|
1921
1927
|
})), d;
|
|
1922
|
-
}),
|
|
1923
|
-
let { commandKey: n, selectedNamed: r, onSelectNamed: i, disabled: a, usePreviewIcon: o = !0, groupKey: s, ...c } = e, l = z(), [u] = R([n]), d = u?.getContext(), f = d?.styles, p = r ?? d?.named(), m =
|
|
1928
|
+
}), rr = V(B((e, t) => {
|
|
1929
|
+
let { commandKey: n, selectedNamed: r, onSelectNamed: i, disabled: a, usePreviewIcon: o = !0, groupKey: s, ...c } = e, l = z(), [u] = R([n]), d = u?.getContext(), f = d?.styles, p = r ?? d?.named(), m = Cn(), h = Ve(), g = L((e) => {
|
|
1924
1930
|
i?.(e), u?.execute(e);
|
|
1925
1931
|
}, [u, i]), _ = H((e) => {
|
|
1926
1932
|
let t = f?.(), n = { onSelectNamed: g }, r = t?.getNamedStyles().getItems({ type: "custom" }), i = /* @__PURE__ */ new Map(), o = [], s = r ? r.length ?? 0 : 0;
|
|
1927
1933
|
for (let e = 0; e < s; e++) i.set(r[e].getName(), r[e]), t?.getNamedStyles().getByName(r[e].getName())?.getBuiltInID() === null && o.push(r[e].getName());
|
|
1928
1934
|
let c = (e) => {
|
|
1929
1935
|
let r = i.get(e);
|
|
1930
|
-
return r ||= t?.getNamedStyles().getByName(e), !r || r.isHidden() ? null : Y(
|
|
1936
|
+
return r ||= t?.getNamedStyles().getByName(e), !r || r.isHidden() ? null : Y(nr, {
|
|
1931
1937
|
namedStyle: r,
|
|
1932
1938
|
selectedNamed: p,
|
|
1933
1939
|
createCell: d.createCell,
|
|
@@ -1941,7 +1947,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1941
1947
|
}
|
|
1942
1948
|
return r.length === 0 ? null : X(Z, { children: [
|
|
1943
1949
|
n ? Y(q, { orientation: "horizontal" }) : null,
|
|
1944
|
-
Y(
|
|
1950
|
+
Y(Mt, { children: e }, e + "-header"),
|
|
1945
1951
|
Y(Z, {
|
|
1946
1952
|
sx: {
|
|
1947
1953
|
display: "flex",
|
|
@@ -1972,11 +1978,11 @@ var Vn = ({ entry: e }) => {
|
|
|
1972
1978
|
children: n
|
|
1973
1979
|
}, e + "-presets");
|
|
1974
1980
|
}, _ = [];
|
|
1975
|
-
_.push(u(l("cellStyle.category.custom"), o, !1)), _.push(u(l("cellStyle.category.goodBadNeutral"), [O.BuiltInName.Normal, ...
|
|
1981
|
+
_.push(u(l("cellStyle.category.custom"), o, !1)), _.push(u(l("cellStyle.category.goodBadNeutral"), [O.BuiltInName.Normal, ...tr([
|
|
1976
1982
|
O.BuiltInName.Bad,
|
|
1977
1983
|
O.BuiltInName.Good,
|
|
1978
1984
|
O.BuiltInName.Neutral
|
|
1979
|
-
], l)], o.length > 0)), _.push(u(l("cellStyle.category.dataModel"),
|
|
1985
|
+
], l)], o.length > 0)), _.push(u(l("cellStyle.category.dataModel"), tr([
|
|
1980
1986
|
O.BuiltInName.Calculation,
|
|
1981
1987
|
O.BuiltInName.CheckCell,
|
|
1982
1988
|
O.BuiltInName.ExplanatoryText,
|
|
@@ -1987,7 +1993,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1987
1993
|
O.BuiltInName.Note,
|
|
1988
1994
|
O.BuiltInName.Output,
|
|
1989
1995
|
O.BuiltInName.WarningText
|
|
1990
|
-
], l))), _.push(u(l("cellStyle.category.titlesHeadings"),
|
|
1996
|
+
], l))), _.push(u(l("cellStyle.category.titlesHeadings"), tr([
|
|
1991
1997
|
O.BuiltInName.Heading1,
|
|
1992
1998
|
O.BuiltInName.Heading2,
|
|
1993
1999
|
O.BuiltInName.Heading3,
|
|
@@ -2029,7 +2035,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2029
2035
|
O.BuiltInName.Accent6
|
|
2030
2036
|
])), _.push((y = l("cellStyle.category.themed"), b = v, X(Z, { children: [
|
|
2031
2037
|
Y(q, { orientation: "horizontal" }),
|
|
2032
|
-
Y(
|
|
2038
|
+
Y(Mt, { children: y }, y + "-header"),
|
|
2033
2039
|
Y(Z, {
|
|
2034
2040
|
sx: {
|
|
2035
2041
|
display: "flex",
|
|
@@ -2071,7 +2077,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2071
2077
|
}),
|
|
2072
2078
|
Y(q, { orientation: "horizontal" }),
|
|
2073
2079
|
Y(K, {
|
|
2074
|
-
variant:
|
|
2080
|
+
variant: Ye.Menuitem,
|
|
2075
2081
|
commandState: p,
|
|
2076
2082
|
commandKey: "newCellStyle",
|
|
2077
2083
|
groupKey: "cellStyle",
|
|
@@ -2092,7 +2098,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2092
2098
|
font: { size: t }
|
|
2093
2099
|
} });
|
|
2094
2100
|
}, [d?.createCell]), y = a ?? (!u || u.disabled()), b = W(() => o ? Y(xe, {
|
|
2095
|
-
value: p ?
|
|
2101
|
+
value: p ? er(p.getName(), l) : "",
|
|
2096
2102
|
cellStyle: p ? { named: p.getName() } : {},
|
|
2097
2103
|
createCell: v,
|
|
2098
2104
|
className: "outline-hover",
|
|
@@ -2117,11 +2123,11 @@ var Vn = ({ entry: e }) => {
|
|
|
2117
2123
|
l,
|
|
2118
2124
|
m
|
|
2119
2125
|
]);
|
|
2120
|
-
return Y(
|
|
2126
|
+
return Y(Dt, {
|
|
2121
2127
|
ref: t,
|
|
2122
|
-
|
|
2128
|
+
renderPopupPanel: _,
|
|
2123
2129
|
outlined: o,
|
|
2124
|
-
|
|
2130
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
2125
2131
|
label: u?.getLabel(),
|
|
2126
2132
|
description: u?.getDescription(),
|
|
2127
2133
|
disabled: t,
|
|
@@ -2134,14 +2140,14 @@ var Vn = ({ entry: e }) => {
|
|
|
2134
2140
|
icon: b,
|
|
2135
2141
|
...c
|
|
2136
2142
|
});
|
|
2137
|
-
})),
|
|
2138
|
-
|
|
2143
|
+
})), ir = Qt(On("studio:tableDetailsTaskPane", () => import("./2nRxqrNYbmEn8fS8.mjs"), { select: (e) => ({ default: e.TableDetailsTaskPane }) }).load), ar = () => {
|
|
2144
|
+
Ze.register("plugin-table", { icons: {} }), pe.registerTaskPane({
|
|
2139
2145
|
key: "tableDetails",
|
|
2140
2146
|
getTitle: () => "Table Details",
|
|
2141
2147
|
getIcon: () => "Table",
|
|
2142
|
-
component:
|
|
2148
|
+
component: ir
|
|
2143
2149
|
}, !0);
|
|
2144
|
-
},
|
|
2150
|
+
}, or = [
|
|
2145
2151
|
{
|
|
2146
2152
|
val: "bg1",
|
|
2147
2153
|
labelKey: "color.scheme.bg1"
|
|
@@ -2188,11 +2194,11 @@ var Vn = ({ entry: e }) => {
|
|
|
2188
2194
|
labelKey: "color.scheme.accent",
|
|
2189
2195
|
n: 6
|
|
2190
2196
|
}
|
|
2191
|
-
],
|
|
2192
|
-
let { docTheme: r, onSelectTheme: i, darkMode: a, isSelected: o, outlined: s, sx: c, ...l } = t, u =
|
|
2197
|
+
], sr = (t) => {
|
|
2198
|
+
let { docTheme: r, onSelectTheme: i, darkMode: a, isSelected: o, outlined: s, sx: c, ...l } = t, u = Cn(), d = z(), f = W(() => {
|
|
2193
2199
|
let t = [];
|
|
2194
|
-
for (let i = 0; i <
|
|
2195
|
-
let o =
|
|
2200
|
+
for (let i = 0; i < or.length; i++) {
|
|
2201
|
+
let o = or[i], s = e(d(o.labelKey, o.n === void 0 ? void 0 : { n: o.n }), o.val);
|
|
2196
2202
|
t.push(Y(n, {
|
|
2197
2203
|
schemeColorLookup: r.schemeLookup(),
|
|
2198
2204
|
colorDef: s,
|
|
@@ -2261,7 +2267,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2261
2267
|
whiteSpace: "pre",
|
|
2262
2268
|
fontFamily: () => r.getFontScheme().getMajorFont()
|
|
2263
2269
|
},
|
|
2264
|
-
children: Y(
|
|
2270
|
+
children: Y(Vt, {
|
|
2265
2271
|
disableInteractive: !0,
|
|
2266
2272
|
slotProps: { popper: {
|
|
2267
2273
|
style: { pointerEvents: "none" },
|
|
@@ -2290,10 +2296,10 @@ var Vn = ({ entry: e }) => {
|
|
|
2290
2296
|
})]
|
|
2291
2297
|
})
|
|
2292
2298
|
});
|
|
2293
|
-
},
|
|
2299
|
+
}, cr = V(B((e, t) => {
|
|
2294
2300
|
let { themes: n, selectedTheme: r, onSelectTheme: i, sx: a, disabled: o = !1, darkMode: s, ...c } = e, l = z(), u = W(() => {
|
|
2295
2301
|
let e = n?.getItems({ selected: r }) ?? [], t = [];
|
|
2296
|
-
if (e.length === 0) return Y(
|
|
2302
|
+
if (e.length === 0) return Y(Mt, {
|
|
2297
2303
|
sx: {
|
|
2298
2304
|
paddingLeft: "16px",
|
|
2299
2305
|
paddingRight: "16px",
|
|
@@ -2308,7 +2314,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2308
2314
|
l && l.isCustom() !== a.isCustom() && t.push(Y(q, {
|
|
2309
2315
|
orientation: "horizontal",
|
|
2310
2316
|
sx: { marginBottom: "4px" }
|
|
2311
|
-
}, `divider-${n}`)), t.push(Y(
|
|
2317
|
+
}, `divider-${n}`)), t.push(Y(sr, {
|
|
2312
2318
|
docTheme: a,
|
|
2313
2319
|
onSelectTheme: () => i?.(a),
|
|
2314
2320
|
isSelected: c,
|
|
@@ -2346,7 +2352,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2346
2352
|
overflow: "hidden"
|
|
2347
2353
|
},
|
|
2348
2354
|
children: [
|
|
2349
|
-
Y(
|
|
2355
|
+
Y(Mt, {
|
|
2350
2356
|
sx: {
|
|
2351
2357
|
paddingLeft: "16px",
|
|
2352
2358
|
paddingRight: "16px",
|
|
@@ -2367,11 +2373,11 @@ var Vn = ({ entry: e }) => {
|
|
|
2367
2373
|
]
|
|
2368
2374
|
})
|
|
2369
2375
|
});
|
|
2370
|
-
})),
|
|
2371
|
-
let { themes: n, selectedTheme: r, onSelectTheme: i, icon: a, tooltip: o, label: s, variant: c =
|
|
2372
|
-
|
|
2376
|
+
})), lr = V(B((e, t) => {
|
|
2377
|
+
let { themes: n, selectedTheme: r, onSelectTheme: i, icon: a, tooltip: o, label: s, variant: c = zt.Toolbar, darkMode: l, propsPanel: u, ...d } = e, f = a || Y(F, { iconKey: "Theme2" }), p = {
|
|
2378
|
+
renderPopupPanel: H((e) => {
|
|
2373
2379
|
let { closeFloatAll: t } = e;
|
|
2374
|
-
return Y(
|
|
2380
|
+
return Y(cr, {
|
|
2375
2381
|
...u,
|
|
2376
2382
|
themes: n,
|
|
2377
2383
|
selectedTheme: r,
|
|
@@ -2393,14 +2399,14 @@ var Vn = ({ entry: e }) => {
|
|
|
2393
2399
|
icon: f,
|
|
2394
2400
|
...d
|
|
2395
2401
|
};
|
|
2396
|
-
return c ===
|
|
2402
|
+
return c === zt.Toolbar ? Y(Pt, {
|
|
2397
2403
|
ref: t,
|
|
2398
2404
|
...p
|
|
2399
|
-
}) : Y(
|
|
2405
|
+
}) : Y(Ft, {
|
|
2400
2406
|
ref: t,
|
|
2401
2407
|
...p
|
|
2402
2408
|
});
|
|
2403
|
-
})),
|
|
2409
|
+
})), ur = (e, t, n = "app") => e?.[t.palette.mode]?.[n] ?? {}, dr = {
|
|
2404
2410
|
light: {
|
|
2405
2411
|
desktop: "#f1f1f1",
|
|
2406
2412
|
elevated: "#ffffff",
|
|
@@ -2411,8 +2417,8 @@ var Vn = ({ entry: e }) => {
|
|
|
2411
2417
|
elevated: "#262626",
|
|
2412
2418
|
header: "#262626"
|
|
2413
2419
|
}
|
|
2414
|
-
},
|
|
2415
|
-
let { palette: n, typography: r, shape: i } = e, a = typeof i?.borderRadius == "number" ? i.borderRadius : 4, o =
|
|
2420
|
+
}, fr = (e) => dr[e.palette.mode] ?? dr.light, pr = (e, t) => {
|
|
2421
|
+
let { palette: n, typography: r, shape: i } = e, a = typeof i?.borderRadius == "number" ? i.borderRadius : 4, o = ur(t, e), s = fr(e);
|
|
2416
2422
|
return {
|
|
2417
2423
|
"color-base-100": n.background.paper,
|
|
2418
2424
|
"color-base-200": s.desktop,
|
|
@@ -2444,7 +2450,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2444
2450
|
"radius-box": 1.5 * a + "px",
|
|
2445
2451
|
border: "1px"
|
|
2446
2452
|
};
|
|
2447
|
-
},
|
|
2453
|
+
}, mr = (e) => {
|
|
2448
2454
|
if (!e) return {};
|
|
2449
2455
|
let t = {}, n = (e, n, r) => {
|
|
2450
2456
|
n == null && r == null || (t[e] = { ...t[e] ?? {} }, n != null && (t[e].main = n), r != null && (t[e].contrastText = r));
|
|
@@ -2456,79 +2462,79 @@ var Vn = ({ entry: e }) => {
|
|
|
2456
2462
|
Object.keys(t).length && (i.palette = t), e["radius-field"] != null && (i.shape = { borderRadius: parseFloat(e["radius-field"]) });
|
|
2457
2463
|
let a = {};
|
|
2458
2464
|
return e["font-family"] != null && (a.fontFamily = e["font-family"]), e["font-size"] != null && (a.fontSize = parseFloat(e["font-size"])), Object.keys(a).length && (i.typography = a), i;
|
|
2459
|
-
},
|
|
2465
|
+
}, hr = (e, t) => {
|
|
2460
2466
|
let n = e.palette, r = n.background.default;
|
|
2461
2467
|
return {
|
|
2462
2468
|
"color-base-100": r,
|
|
2463
2469
|
"color-base-content": n.text.primary,
|
|
2464
|
-
"color-base-300":
|
|
2470
|
+
"color-base-300": Yt(r, .12, n.mode),
|
|
2465
2471
|
"color-primary": n.primary.main,
|
|
2466
|
-
...
|
|
2472
|
+
...ur(t, e, "grid")
|
|
2467
2473
|
};
|
|
2468
|
-
},
|
|
2469
|
-
let n = e.palette, r = n.background.default, i = ((e, t) =>
|
|
2474
|
+
}, gr = (e, t) => {
|
|
2475
|
+
let n = e.palette, r = n.background.default, i = ((e, t) => ur(t, e, "header")["color-base-100"] ?? fr(e).header)(e, t);
|
|
2470
2476
|
return {
|
|
2471
2477
|
"color-base-100": i,
|
|
2472
|
-
"color-base-hover":
|
|
2473
|
-
"color-base-300":
|
|
2478
|
+
"color-base-hover": Yt(i, .065, n.mode),
|
|
2479
|
+
"color-base-300": Yt(r, .12, n.mode),
|
|
2474
2480
|
"color-base-content": n.text.primary,
|
|
2475
2481
|
"color-primary": n.primary.main,
|
|
2476
2482
|
"color-primary-content": n.primary.contrastText,
|
|
2477
2483
|
"color-base-emphasis-content": n.primary.contrastText,
|
|
2478
|
-
...
|
|
2484
|
+
...ur(t, e, "header")
|
|
2479
2485
|
};
|
|
2480
|
-
},
|
|
2486
|
+
}, _r = (e, t, n, r) => {
|
|
2481
2487
|
let i = {
|
|
2482
2488
|
light: {
|
|
2483
|
-
...
|
|
2484
|
-
...
|
|
2489
|
+
...rt.light,
|
|
2490
|
+
...pr(e, r),
|
|
2485
2491
|
...r?.light?.app ?? {}
|
|
2486
2492
|
},
|
|
2487
2493
|
dark: {
|
|
2488
|
-
...
|
|
2489
|
-
...
|
|
2494
|
+
...rt.dark,
|
|
2495
|
+
...pr(t, r),
|
|
2490
2496
|
...r?.dark?.app ?? {}
|
|
2491
2497
|
}
|
|
2492
2498
|
};
|
|
2493
|
-
return
|
|
2499
|
+
return Pn({
|
|
2494
2500
|
app: i,
|
|
2495
2501
|
grid: {
|
|
2496
|
-
light:
|
|
2497
|
-
dark:
|
|
2502
|
+
light: hr(e, r),
|
|
2503
|
+
dark: hr(t, r)
|
|
2498
2504
|
},
|
|
2499
2505
|
header: {
|
|
2500
|
-
light:
|
|
2501
|
-
dark:
|
|
2506
|
+
light: gr(e, r),
|
|
2507
|
+
dark: gr(t, r)
|
|
2502
2508
|
},
|
|
2503
2509
|
layer: "sxl-app",
|
|
2504
2510
|
scope: n
|
|
2505
2511
|
});
|
|
2506
|
-
},
|
|
2507
|
-
let { commandKey: n, selectedTheme: r, onSelectTheme: i, disabled: a, darkMode: o, label: s, icon: c, variant: l, ...u } = e, d = R([n])[0], f = d?.getContext()?.themes, p = r || d?.getContext()?.theme, m =
|
|
2512
|
+
}, vr = V(B((e, t) => {
|
|
2513
|
+
let { commandKey: n, selectedTheme: r, onSelectTheme: i, disabled: a, darkMode: o, label: s, icon: c, variant: l, ...u } = e, d = R([n])[0], f = d?.getContext()?.themes, p = r || d?.getContext()?.theme, m = Ve(), h = o ?? m === "dark", g = a ?? d?.disabled(), _ = L((e) => {
|
|
2508
2514
|
i?.(e), d?.execute(e);
|
|
2509
|
-
}, [i]), v = H((e
|
|
2510
|
-
let { children: r, title: i, ...a } = e, o = e.children;
|
|
2511
|
-
return (g || t) && (o = Y("div", { children: o })), Y(
|
|
2515
|
+
}, [i]), v = H((e) => {
|
|
2516
|
+
let { disabled: t, children: r, title: i, ...a } = e, o = e.children;
|
|
2517
|
+
return (g || t) && (o = Y("div", { children: o })), Y(kt, {
|
|
2512
2518
|
commandKey: n,
|
|
2513
|
-
placement: l ===
|
|
2519
|
+
placement: l === Ye.Toolbar ? "bottom-start" : "right-start",
|
|
2514
2520
|
disabled: g || t,
|
|
2515
2521
|
...a,
|
|
2516
2522
|
children: o
|
|
2517
2523
|
});
|
|
2518
2524
|
}, [d, g]);
|
|
2519
|
-
return Y(
|
|
2525
|
+
return Y(lr, {
|
|
2520
2526
|
ref: t,
|
|
2521
2527
|
themes: f,
|
|
2522
2528
|
selectedTheme: p,
|
|
2523
2529
|
onSelectTheme: _,
|
|
2524
|
-
variant: l ===
|
|
2525
|
-
|
|
2530
|
+
variant: l === Ye.Menuitem ? zt.Menuitem : zt.Toolbar,
|
|
2531
|
+
renderTooltip: v,
|
|
2526
2532
|
disabled: g,
|
|
2527
2533
|
darkMode: h,
|
|
2528
2534
|
...u
|
|
2529
2535
|
});
|
|
2530
|
-
})),
|
|
2531
|
-
let { label: t, value: n, min: r, step: i, disabled: a, onCommit: o } = e, s =
|
|
2536
|
+
})), yr = V((e) => {
|
|
2537
|
+
let { label: t, value: n, min: r, step: i, disabled: a, onCommit: o } = e, s = ut(), [c, l] = G(String(n));
|
|
2532
2538
|
U(() => {
|
|
2533
2539
|
l(String(n));
|
|
2534
2540
|
}, [n]);
|
|
@@ -2536,7 +2542,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2536
2542
|
let e = Number(c);
|
|
2537
2543
|
c.trim() !== "" && Number.isFinite(e) ? e !== n && o(e) : l(String(n));
|
|
2538
2544
|
};
|
|
2539
|
-
return Y(
|
|
2545
|
+
return Y(gn, {
|
|
2540
2546
|
size: "small",
|
|
2541
2547
|
type: "number",
|
|
2542
2548
|
label: t,
|
|
@@ -2557,8 +2563,8 @@ var Vn = ({ entry: e }) => {
|
|
|
2557
2563
|
sx: { width: "10em" }
|
|
2558
2564
|
});
|
|
2559
2565
|
});
|
|
2560
|
-
|
|
2561
|
-
var
|
|
2566
|
+
yr.displayName = "LimitField";
|
|
2567
|
+
var br = V((e) => {
|
|
2562
2568
|
let { calculation: t, disabled: n } = e, r = z(), [i] = R(["calcIterativeToggle"]), [a, o] = G(() => t?.getIterativeCalculation() ?? null);
|
|
2563
2569
|
U(() => {
|
|
2564
2570
|
o(t?.getIterativeCalculation() ?? null);
|
|
@@ -2571,13 +2577,13 @@ var pr = V((e) => {
|
|
|
2571
2577
|
display: "flex",
|
|
2572
2578
|
alignItems: "center",
|
|
2573
2579
|
gap: 1,
|
|
2574
|
-
...
|
|
2580
|
+
...Rt,
|
|
2575
2581
|
pt: 1.5,
|
|
2576
2582
|
pb: 1
|
|
2577
2583
|
},
|
|
2578
2584
|
children: [
|
|
2579
|
-
Y(
|
|
2580
|
-
Y(
|
|
2585
|
+
Y(ln, { children: Y(F, {}) }),
|
|
2586
|
+
Y(yr, {
|
|
2581
2587
|
label: r("calcOptions.maxIterations"),
|
|
2582
2588
|
value: a?.maxIteration ?? 100,
|
|
2583
2589
|
min: 1,
|
|
@@ -2587,7 +2593,7 @@ var pr = V((e) => {
|
|
|
2587
2593
|
t?.setIterativeCalculation({ maxIteration: e });
|
|
2588
2594
|
}
|
|
2589
2595
|
}),
|
|
2590
|
-
Y(
|
|
2596
|
+
Y(yr, {
|
|
2591
2597
|
label: r("calcOptions.maxChange"),
|
|
2592
2598
|
value: a?.maxChange ?? .001,
|
|
2593
2599
|
min: 0,
|
|
@@ -2600,14 +2606,14 @@ var pr = V((e) => {
|
|
|
2600
2606
|
]
|
|
2601
2607
|
});
|
|
2602
2608
|
});
|
|
2603
|
-
|
|
2604
|
-
var
|
|
2605
|
-
let { groupKey: n, workbook: r, disabled: i, ...a } = e, o =
|
|
2609
|
+
br.displayName = "IterativeLimits";
|
|
2610
|
+
var xr = V(B((e, t) => {
|
|
2611
|
+
let { groupKey: n, workbook: r, disabled: i, ...a } = e, o = Ge(), s = (r ?? o)?.getCalculation() ?? null, c = st("calculationOptions"), l = L((e) => {
|
|
2606
2612
|
let t = {
|
|
2607
|
-
variant:
|
|
2613
|
+
variant: Ye.Menuitem,
|
|
2608
2614
|
groupKey: "calculationOptions",
|
|
2609
2615
|
disabled: i
|
|
2610
|
-
}, n = X(
|
|
2616
|
+
}, n = X(tn, { children: [
|
|
2611
2617
|
Y(K, {
|
|
2612
2618
|
...t,
|
|
2613
2619
|
commandKey: "calcModeAutomatic"
|
|
@@ -2625,7 +2631,7 @@ var mr = V(B((e, t) => {
|
|
|
2625
2631
|
...t,
|
|
2626
2632
|
commandKey: "calcIterativeToggle"
|
|
2627
2633
|
}),
|
|
2628
|
-
Y(
|
|
2634
|
+
Y(br, {
|
|
2629
2635
|
calculation: s,
|
|
2630
2636
|
disabled: i
|
|
2631
2637
|
}),
|
|
@@ -2639,14 +2645,14 @@ var mr = V(B((e, t) => {
|
|
|
2639
2645
|
commandKey: "calculateFull"
|
|
2640
2646
|
})
|
|
2641
2647
|
] });
|
|
2642
|
-
return
|
|
2648
|
+
return Gt({
|
|
2643
2649
|
...e,
|
|
2644
2650
|
children: n
|
|
2645
2651
|
});
|
|
2646
2652
|
}, [i, s]);
|
|
2647
|
-
return Y(
|
|
2653
|
+
return Y(Dt, {
|
|
2648
2654
|
ref: t,
|
|
2649
|
-
|
|
2655
|
+
renderPopupPanel: l,
|
|
2650
2656
|
icon: "Calculate",
|
|
2651
2657
|
label: c?.getLabel?.(),
|
|
2652
2658
|
tooltip: c?.getDescription?.(),
|
|
@@ -2654,9 +2660,9 @@ var mr = V(B((e, t) => {
|
|
|
2654
2660
|
...a
|
|
2655
2661
|
});
|
|
2656
2662
|
}));
|
|
2657
|
-
|
|
2658
|
-
var
|
|
2659
|
-
let { commandKey: n, ...r } = e, i =
|
|
2663
|
+
xr.displayName = "CalculationOptionsCommandButton";
|
|
2664
|
+
var Sr = V(B((e, t) => {
|
|
2665
|
+
let { commandKey: n, ...r } = e, i = lt(), [a, o] = G(!1), [s, c] = G("primary");
|
|
2660
2666
|
return U(() => {
|
|
2661
2667
|
let e = i.getMode();
|
|
2662
2668
|
o(e?.key === "copy" || e?.key === "cut"), c(e?.key === "cut" ? "warning" : "primary");
|
|
@@ -2672,7 +2678,7 @@ var hr = V(B((e, t) => {
|
|
|
2672
2678
|
}),
|
|
2673
2679
|
...r
|
|
2674
2680
|
});
|
|
2675
|
-
})),
|
|
2681
|
+
})), Cr = () => {
|
|
2676
2682
|
P.register({
|
|
2677
2683
|
key: "insertImageOptions",
|
|
2678
2684
|
defaultKey: "insertImageFromFile",
|
|
@@ -2699,7 +2705,7 @@ var hr = V(B((e, t) => {
|
|
|
2699
2705
|
]
|
|
2700
2706
|
}, !0), P.register({
|
|
2701
2707
|
key: "underlineOptions",
|
|
2702
|
-
render: (e, t) => Y(
|
|
2708
|
+
render: (e, t) => Y(Ut, {
|
|
2703
2709
|
...e,
|
|
2704
2710
|
groupKey: t,
|
|
2705
2711
|
projectAs: "quick"
|
|
@@ -2712,7 +2718,7 @@ var hr = V(B((e, t) => {
|
|
|
2712
2718
|
]
|
|
2713
2719
|
}, !0), P.register({
|
|
2714
2720
|
key: "textOverflowOptions",
|
|
2715
|
-
render: (e, t) => Y(
|
|
2721
|
+
render: (e, t) => Y(Ut, {
|
|
2716
2722
|
...e,
|
|
2717
2723
|
groupKey: t,
|
|
2718
2724
|
projectAs: "icon",
|
|
@@ -2776,7 +2782,7 @@ var hr = V(B((e, t) => {
|
|
|
2776
2782
|
key: "dataTextToColumns",
|
|
2777
2783
|
getLabel: () => "Custom",
|
|
2778
2784
|
getIcon: () => null,
|
|
2779
|
-
render: (e) => Y(
|
|
2785
|
+
render: (e) => Y(Lt, {
|
|
2780
2786
|
...e,
|
|
2781
2787
|
inputProps: { maxLength: 1 }
|
|
2782
2788
|
})
|
|
@@ -2870,7 +2876,7 @@ var hr = V(B((e, t) => {
|
|
|
2870
2876
|
]
|
|
2871
2877
|
}, !0), P.register({
|
|
2872
2878
|
key: "copy",
|
|
2873
|
-
render: (e) => Y(
|
|
2879
|
+
render: (e) => Y(Sr, {
|
|
2874
2880
|
...e,
|
|
2875
2881
|
commandKey: "copy"
|
|
2876
2882
|
})
|
|
@@ -2967,10 +2973,10 @@ var hr = V(B((e, t) => {
|
|
|
2967
2973
|
]
|
|
2968
2974
|
}, !0), P.register({
|
|
2969
2975
|
key: "textEffectsOptions",
|
|
2970
|
-
render: (e) => Y(
|
|
2976
|
+
render: (e) => Y(Qn, { ...e })
|
|
2971
2977
|
}, !0), P.register({
|
|
2972
2978
|
key: "horizontalAlignOptions",
|
|
2973
|
-
render: (e, t) => Y(
|
|
2979
|
+
render: (e, t) => Y(Ut, {
|
|
2974
2980
|
...e,
|
|
2975
2981
|
groupKey: t,
|
|
2976
2982
|
projectAs: "quick"
|
|
@@ -3004,7 +3010,7 @@ var hr = V(B((e, t) => {
|
|
|
3004
3010
|
]
|
|
3005
3011
|
}, !0), P.register({
|
|
3006
3012
|
key: "verticalAlignOptions",
|
|
3007
|
-
render: (e, t) => Y(
|
|
3013
|
+
render: (e, t) => Y(Ut, {
|
|
3008
3014
|
...e,
|
|
3009
3015
|
groupKey: t,
|
|
3010
3016
|
projectAs: "icon",
|
|
@@ -3020,7 +3026,7 @@ var hr = V(B((e, t) => {
|
|
|
3020
3026
|
]
|
|
3021
3027
|
}, !0), P.register({
|
|
3022
3028
|
key: "textRotateOptions",
|
|
3023
|
-
render: (e, t) => Y(
|
|
3029
|
+
render: (e, t) => Y(Hn, {
|
|
3024
3030
|
...e,
|
|
3025
3031
|
groupKey: t
|
|
3026
3032
|
}),
|
|
@@ -3037,7 +3043,7 @@ var hr = V(B((e, t) => {
|
|
|
3037
3043
|
]
|
|
3038
3044
|
}, !0), P.register({
|
|
3039
3045
|
key: "formatTextRotateCustom",
|
|
3040
|
-
render: (e) => Y(
|
|
3046
|
+
render: (e) => Y(Lt, {
|
|
3041
3047
|
...e,
|
|
3042
3048
|
commandKey: "formatTextRotateCustom",
|
|
3043
3049
|
groupKey: "textRotateOptions",
|
|
@@ -3053,19 +3059,19 @@ var hr = V(B((e, t) => {
|
|
|
3053
3059
|
})
|
|
3054
3060
|
}, !0), P.register({
|
|
3055
3061
|
key: "numberFormatOptions",
|
|
3056
|
-
render: (e, t) => Y(
|
|
3062
|
+
render: (e, t) => Y(qn, {
|
|
3057
3063
|
...e,
|
|
3058
3064
|
groupKey: t
|
|
3059
3065
|
})
|
|
3060
3066
|
}, !0), P.register({
|
|
3061
3067
|
key: "sheetZoomOptions",
|
|
3062
|
-
render: (e, t) => Y(
|
|
3068
|
+
render: (e, t) => Y(Wn, {
|
|
3063
3069
|
...e,
|
|
3064
3070
|
groupKey: t
|
|
3065
3071
|
})
|
|
3066
3072
|
}, !0), P.register({
|
|
3067
3073
|
key: "formatCellStyle",
|
|
3068
|
-
render: (e) => Y(
|
|
3074
|
+
render: (e) => Y(rr, {
|
|
3069
3075
|
...e,
|
|
3070
3076
|
commandKey: "formatCellStyle"
|
|
3071
3077
|
})
|
|
@@ -3104,7 +3110,7 @@ var hr = V(B((e, t) => {
|
|
|
3104
3110
|
scaleType: "iconSet"
|
|
3105
3111
|
})
|
|
3106
3112
|
}, !0);
|
|
3107
|
-
},
|
|
3113
|
+
}, wr = new Map([
|
|
3108
3114
|
{
|
|
3109
3115
|
key: "financial",
|
|
3110
3116
|
label: "Financial",
|
|
@@ -3170,13 +3176,13 @@ var hr = V(B((e, t) => {
|
|
|
3170
3176
|
label: "Custom",
|
|
3171
3177
|
icon: "FormulaCustom"
|
|
3172
3178
|
}
|
|
3173
|
-
].map((e) => [e.key, e])),
|
|
3179
|
+
].map((e) => [e.key, e])), Tr = V((e) => {
|
|
3174
3180
|
let { command: t, formulaFunction: n, disabled: r, handleInsert: i, icon: a, label: o, sx: s, ...c } = e, l = new Promise((e) => {
|
|
3175
3181
|
n.getDescriptor().then((t) => {
|
|
3176
3182
|
e(t.getSummary());
|
|
3177
3183
|
});
|
|
3178
3184
|
});
|
|
3179
|
-
return Y(
|
|
3185
|
+
return Y(Nt, {
|
|
3180
3186
|
sx: {
|
|
3181
3187
|
maxWidth: "360px",
|
|
3182
3188
|
display: "flex",
|
|
@@ -3205,21 +3211,21 @@ var hr = V(B((e, t) => {
|
|
|
3205
3211
|
flexDirection: "column",
|
|
3206
3212
|
overflow: "hidden"
|
|
3207
3213
|
},
|
|
3208
|
-
children: Y(
|
|
3214
|
+
children: Y(yn, {
|
|
3209
3215
|
component: "div",
|
|
3210
3216
|
children: n.getName()
|
|
3211
3217
|
})
|
|
3212
3218
|
})
|
|
3213
3219
|
});
|
|
3214
|
-
}),
|
|
3220
|
+
}), Er = V(B((e, t) => {
|
|
3215
3221
|
let { category: n, disabled: r, groupKey: i, ...a } = e, o = R(["insertFunction"])[0], s = z(), c = H((e) => {
|
|
3216
|
-
let t =
|
|
3222
|
+
let t = wr.get(n);
|
|
3217
3223
|
if (!t) return console.warn("invalidate category", n), null;
|
|
3218
|
-
let r = { ...e }, i = Y(
|
|
3224
|
+
let r = { ...e }, i = Y(Dr, {
|
|
3219
3225
|
category: t.label,
|
|
3220
3226
|
...r
|
|
3221
3227
|
});
|
|
3222
|
-
return
|
|
3228
|
+
return Gt({
|
|
3223
3229
|
...e,
|
|
3224
3230
|
children: i
|
|
3225
3231
|
});
|
|
@@ -3227,19 +3233,19 @@ var hr = V(B((e, t) => {
|
|
|
3227
3233
|
n,
|
|
3228
3234
|
o,
|
|
3229
3235
|
i
|
|
3230
|
-
]), l =
|
|
3231
|
-
return Y(
|
|
3236
|
+
]), l = wr.get(n);
|
|
3237
|
+
return Y(Dt, {
|
|
3232
3238
|
ref: t,
|
|
3233
3239
|
disabled: r,
|
|
3234
|
-
|
|
3240
|
+
renderPopupPanel: c,
|
|
3235
3241
|
label: l?.label,
|
|
3236
3242
|
tooltip: s("insertFunction.tooltip"),
|
|
3237
|
-
icon:
|
|
3243
|
+
icon: wr.get(n)?.icon ?? "FormulaGroup",
|
|
3238
3244
|
...a
|
|
3239
3245
|
});
|
|
3240
3246
|
}));
|
|
3241
|
-
|
|
3242
|
-
var
|
|
3247
|
+
Er.displayName = "InsertFunctionCommandPopupButton";
|
|
3248
|
+
var Dr = V(B((e, t) => {
|
|
3243
3249
|
let { category: n, ...r } = e, i = R(["insertFunction"])[0], [a, o] = G([]), [s, c] = G(!1);
|
|
3244
3250
|
U(() => {
|
|
3245
3251
|
let e = !1;
|
|
@@ -3258,13 +3264,13 @@ var br = V(B((e, t) => {
|
|
|
3258
3264
|
};
|
|
3259
3265
|
for (let e = 0; e < l; e++) {
|
|
3260
3266
|
let t = a[e];
|
|
3261
|
-
u[e] = Y(
|
|
3267
|
+
u[e] = Y(Tr, {
|
|
3262
3268
|
command: i,
|
|
3263
3269
|
formulaFunction: t,
|
|
3264
3270
|
handleInsert: d
|
|
3265
3271
|
}, `formula-${t.getName()}-${e}`);
|
|
3266
3272
|
}
|
|
3267
|
-
return
|
|
3273
|
+
return Gt({
|
|
3268
3274
|
...r,
|
|
3269
3275
|
children: Y(Z, {
|
|
3270
3276
|
ref: t,
|
|
@@ -3274,7 +3280,7 @@ var br = V(B((e, t) => {
|
|
|
3274
3280
|
flex: "1 1 100%",
|
|
3275
3281
|
overflow: "hidden"
|
|
3276
3282
|
},
|
|
3277
|
-
children: l > 0 ? Y(
|
|
3283
|
+
children: l > 0 ? Y(tn, { children: Y(Z, {
|
|
3278
3284
|
sx: {
|
|
3279
3285
|
overflow: "auto",
|
|
3280
3286
|
flex: "1 1 100%"
|
|
@@ -3283,14 +3289,14 @@ var br = V(B((e, t) => {
|
|
|
3283
3289
|
}) }) : null
|
|
3284
3290
|
})
|
|
3285
3291
|
});
|
|
3286
|
-
})),
|
|
3287
|
-
let { sx: n, disabled: r, ...i } = e, a = z(), o =
|
|
3292
|
+
})), Or = /* @__PURE__ */ "ar-SA.cs-CZ.da-DK.de-AT.de-CH.de-DE.el-GR.en-AU.en-CA.en-GB.en-IN.en-US.es-AR.es-ES.es-MX.fi-FI.fr-CA.fr-CH.fr-FR.he-IL.hi-IN.hu-HU.id-ID.it-IT.ja-JP.ko-KR.nb-NO.nl-BE.nl-NL.pl-PL.pt-BR.pt-PT.ru-RU.sv-SE.th-TH.tr-TR.uk-UA.vi-VN.zh-CN.zh-TW".split("."), kr = V(B((e, t) => {
|
|
3293
|
+
let { sx: n, disabled: r, ...i } = e, a = z(), o = pt(), [s] = R(["locale"]), c = s?.getState() ?? null, l = r ?? (!s || s.disabled()), { reference: u } = dt(), d = H((e) => {
|
|
3288
3294
|
let t = (e) => {
|
|
3289
3295
|
u?.closeAll(), s?.execute(e);
|
|
3290
3296
|
}, n = (e, n) => ({
|
|
3291
3297
|
selected: n,
|
|
3292
3298
|
disabled: l,
|
|
3293
|
-
icon: n ? Y(
|
|
3299
|
+
icon: n ? Y(Bt, {}) : void 0,
|
|
3294
3300
|
sx: {
|
|
3295
3301
|
display: "flex",
|
|
3296
3302
|
paddingTop: "4px",
|
|
@@ -3313,7 +3319,7 @@ var br = V(B((e, t) => {
|
|
|
3313
3319
|
flexDirection: "column",
|
|
3314
3320
|
overflow: "hidden"
|
|
3315
3321
|
},
|
|
3316
|
-
children: Y(
|
|
3322
|
+
children: Y(yn, {
|
|
3317
3323
|
component: "div",
|
|
3318
3324
|
sx: {
|
|
3319
3325
|
whiteSpace: "nowrap",
|
|
@@ -3322,13 +3328,13 @@ var br = V(B((e, t) => {
|
|
|
3322
3328
|
},
|
|
3323
3329
|
children: e
|
|
3324
3330
|
})
|
|
3325
|
-
}), i = [...
|
|
3326
|
-
c && !i.includes(c) && i.push(c), i.sort((e, t) =>
|
|
3327
|
-
let d = i.map((e) => Y(
|
|
3331
|
+
}), i = [...Or];
|
|
3332
|
+
c && !i.includes(c) && i.push(c), i.sort((e, t) => Mr(e).localeCompare(Mr(t)));
|
|
3333
|
+
let d = i.map((e) => Y(Nt, {
|
|
3328
3334
|
...n(e, e === c),
|
|
3329
|
-
children: r(
|
|
3335
|
+
children: r(Mr(e))
|
|
3330
3336
|
}, e));
|
|
3331
|
-
return
|
|
3337
|
+
return Gt({
|
|
3332
3338
|
...e,
|
|
3333
3339
|
children: X(Z, {
|
|
3334
3340
|
sx: {
|
|
@@ -3339,9 +3345,9 @@ var br = V(B((e, t) => {
|
|
|
3339
3345
|
},
|
|
3340
3346
|
children: [X(Z, {
|
|
3341
3347
|
sx: { flex: "none" },
|
|
3342
|
-
children: [Y(
|
|
3348
|
+
children: [Y(Nt, {
|
|
3343
3349
|
...n(null, c === null),
|
|
3344
|
-
children: r(a("locale.systemDefault", { locale:
|
|
3350
|
+
children: r(a("locale.systemDefault", { locale: Mr(jr(o)) }))
|
|
3345
3351
|
}, "system-default"), Y(q, { orientation: "horizontal" })]
|
|
3346
3352
|
}), Y(Z, {
|
|
3347
3353
|
sx: {
|
|
@@ -3360,12 +3366,12 @@ var br = V(B((e, t) => {
|
|
|
3360
3366
|
a,
|
|
3361
3367
|
o
|
|
3362
3368
|
]);
|
|
3363
|
-
return Y(
|
|
3369
|
+
return Y(Dt, {
|
|
3364
3370
|
ref: t,
|
|
3365
3371
|
sx: { ...n },
|
|
3366
3372
|
disabled: l,
|
|
3367
|
-
|
|
3368
|
-
|
|
3373
|
+
renderPopupPanel: d,
|
|
3374
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
3369
3375
|
label: s?.getLabel?.(),
|
|
3370
3376
|
description: s?.getDescription?.(),
|
|
3371
3377
|
disabled: t,
|
|
@@ -3375,23 +3381,52 @@ var br = V(B((e, t) => {
|
|
|
3375
3381
|
label: s?.getLabel?.(),
|
|
3376
3382
|
...i
|
|
3377
3383
|
});
|
|
3378
|
-
})),
|
|
3379
|
-
function
|
|
3384
|
+
})), Ar = null;
|
|
3385
|
+
function jr(e) {
|
|
3380
3386
|
if (e) try {
|
|
3381
3387
|
let t = new Intl.Locale(e).maximize();
|
|
3382
3388
|
return t.region ? `${t.language}-${t.region}` : t.baseName;
|
|
3383
3389
|
} catch {}
|
|
3384
|
-
return
|
|
3390
|
+
return Ar ||= Intl.DateTimeFormat().resolvedOptions().locale ?? "en-US", Ar;
|
|
3385
3391
|
}
|
|
3386
|
-
function
|
|
3392
|
+
function Mr(e) {
|
|
3387
3393
|
try {
|
|
3388
3394
|
return new Intl.DisplayNames([e], { type: "language" }).of(e) ?? e;
|
|
3389
3395
|
} catch {
|
|
3390
3396
|
return e;
|
|
3391
3397
|
}
|
|
3392
3398
|
}
|
|
3399
|
+
var Nr = "insertCellControlOptions", Pr = V(B((e, t) => {
|
|
3400
|
+
let { groupKey: n, commandKey: r, commandState: i, label: a, icon: o, ...s } = e, c = He(), l = W(() => c.filter((e) => e.type !== "checkbox"), [c]), u = st(Nr);
|
|
3401
|
+
if (l.length === 0) return Y(K, {
|
|
3402
|
+
ref: t,
|
|
3403
|
+
commandKey: "insertCheckbox",
|
|
3404
|
+
...s
|
|
3405
|
+
});
|
|
3406
|
+
let d = [
|
|
3407
|
+
{ key: "insertCheckbox" },
|
|
3408
|
+
...l.map((e) => ({
|
|
3409
|
+
key: "insertCellControl",
|
|
3410
|
+
state: e.type,
|
|
3411
|
+
getLabel: () => e.label,
|
|
3412
|
+
getIcon: () => typeof e.icon == "string" ? Y(F, { iconKey: e.icon }) : e.icon
|
|
3413
|
+
})),
|
|
3414
|
+
"-",
|
|
3415
|
+
{ key: "formatCellControl" }
|
|
3416
|
+
];
|
|
3417
|
+
return Y(Et, {
|
|
3418
|
+
ref: t,
|
|
3419
|
+
members: d,
|
|
3420
|
+
quickCommand: "insertCheckbox",
|
|
3421
|
+
icon: o ?? u?.getIcon?.("insertCellControlOptions") ?? "CheckboxInsert",
|
|
3422
|
+
label: a ?? u?.getLabel?.("insertCellControlOptions"),
|
|
3423
|
+
tooltip: u?.getDescription?.(Nr),
|
|
3424
|
+
...s
|
|
3425
|
+
});
|
|
3426
|
+
}));
|
|
3427
|
+
Pr.displayName = "InsertCellControlCommandButton";
|
|
3393
3428
|
var Q = V((e) => {
|
|
3394
|
-
let { presetKey: t, disabled: n, handleOnInsertChart: r, size: i = "large", ...a } = e, o = z(), s =
|
|
3429
|
+
let { presetKey: t, disabled: n, handleOnInsertChart: r, size: i = "large", ...a } = e, o = z(), s = Ie(t);
|
|
3395
3430
|
if (!s) return console.warn("no descriptor type", s), null;
|
|
3396
3431
|
let c = s.Icon;
|
|
3397
3432
|
return Y(J, {
|
|
@@ -3405,8 +3440,8 @@ var Q = V((e) => {
|
|
|
3405
3440
|
},
|
|
3406
3441
|
...a
|
|
3407
3442
|
}, t);
|
|
3408
|
-
}),
|
|
3409
|
-
let { groupKey: n, disabled: r, label: i, icon: a, ...o } = e, s = z(), c = R(["insertChart"]), l =
|
|
3443
|
+
}), Fr = V(B((e, t) => {
|
|
3444
|
+
let { groupKey: n, disabled: r, label: i, icon: a, ...o } = e, s = z(), c = R(["insertChart"]), l = st("insertChartOptions"), u = c[0], d = r ?? u?.disabled(), f = L((e) => {
|
|
3410
3445
|
u?.execute(e);
|
|
3411
3446
|
}, [u, n]), p = H((e) => {
|
|
3412
3447
|
let t = {
|
|
@@ -3427,7 +3462,7 @@ var Q = V((e) => {
|
|
|
3427
3462
|
padding: "6px 16px"
|
|
3428
3463
|
},
|
|
3429
3464
|
children: [
|
|
3430
|
-
Y(
|
|
3465
|
+
Y(Mt, { children: s("chart.category.column") }),
|
|
3431
3466
|
X(Z, {
|
|
3432
3467
|
sx: {
|
|
3433
3468
|
display: "flex",
|
|
@@ -3450,7 +3485,7 @@ var Q = V((e) => {
|
|
|
3450
3485
|
]
|
|
3451
3486
|
}),
|
|
3452
3487
|
Y(q, { orientation: "horizontal" }),
|
|
3453
|
-
Y(
|
|
3488
|
+
Y(Mt, { children: s("chart.category.line") }),
|
|
3454
3489
|
X(Z, {
|
|
3455
3490
|
sx: {
|
|
3456
3491
|
display: "flex",
|
|
@@ -3485,7 +3520,7 @@ var Q = V((e) => {
|
|
|
3485
3520
|
]
|
|
3486
3521
|
}),
|
|
3487
3522
|
Y(q, { orientation: "horizontal" }),
|
|
3488
|
-
Y(
|
|
3523
|
+
Y(Mt, { children: s("chart.category.pie") }),
|
|
3489
3524
|
X(Z, {
|
|
3490
3525
|
sx: {
|
|
3491
3526
|
display: "flex",
|
|
@@ -3501,7 +3536,7 @@ var Q = V((e) => {
|
|
|
3501
3536
|
})]
|
|
3502
3537
|
}),
|
|
3503
3538
|
Y(q, { orientation: "horizontal" }),
|
|
3504
|
-
Y(
|
|
3539
|
+
Y(Mt, { children: s("chart.category.bar") }),
|
|
3505
3540
|
X(Z, {
|
|
3506
3541
|
sx: {
|
|
3507
3542
|
display: "flex",
|
|
@@ -3524,7 +3559,7 @@ var Q = V((e) => {
|
|
|
3524
3559
|
]
|
|
3525
3560
|
}),
|
|
3526
3561
|
Y(q, { orientation: "horizontal" }),
|
|
3527
|
-
Y(
|
|
3562
|
+
Y(Mt, { children: s("chart.category.area") }),
|
|
3528
3563
|
X(Z, {
|
|
3529
3564
|
sx: {
|
|
3530
3565
|
display: "flex",
|
|
@@ -3547,7 +3582,7 @@ var Q = V((e) => {
|
|
|
3547
3582
|
]
|
|
3548
3583
|
}),
|
|
3549
3584
|
Y(q, { orientation: "horizontal" }),
|
|
3550
|
-
Y(
|
|
3585
|
+
Y(Mt, { children: s("chart.category.scatter") }),
|
|
3551
3586
|
X(Z, {
|
|
3552
3587
|
sx: {
|
|
3553
3588
|
display: "flex",
|
|
@@ -3572,11 +3607,11 @@ var Q = V((e) => {
|
|
|
3572
3607
|
]
|
|
3573
3608
|
})
|
|
3574
3609
|
});
|
|
3575
|
-
}, [r, s]), m =
|
|
3576
|
-
return Y(
|
|
3610
|
+
}, [r, s]), m = Ie(M.Column).Icon;
|
|
3611
|
+
return Y(Dt, {
|
|
3577
3612
|
ref: t,
|
|
3578
|
-
|
|
3579
|
-
|
|
3613
|
+
renderPopupPanel: p,
|
|
3614
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
3580
3615
|
label: l?.getLabel?.(),
|
|
3581
3616
|
description: l?.getDescription?.(),
|
|
3582
3617
|
disabled: t,
|
|
@@ -3588,19 +3623,19 @@ var Q = V((e) => {
|
|
|
3588
3623
|
icon: Y(Se, { children: Y(m, {}) }),
|
|
3589
3624
|
...o
|
|
3590
3625
|
});
|
|
3591
|
-
})),
|
|
3592
|
-
let { groupKey: n, disabled: r, label: i, icon: a, commandKey: o = "insertShape", excludeCategories: s, ...c } = e, l = z(), u = R([o])[0], d = W(() => s?.length ? _e.filter((e) => !s.includes(e.key)) : _e, [s]), f = r ?? u?.disabled(), [p, m] =
|
|
3626
|
+
})), Ir = Object.freeze([]), Lr = new Map(_e.flatMap((e) => e.entries.map((e) => [e.key, e]))), Rr = V(B((e, t) => {
|
|
3627
|
+
let { groupKey: n, disabled: r, label: i, icon: a, commandKey: o = "insertShape", excludeCategories: s, ...c } = e, l = z(), u = R([o])[0], d = W(() => s?.length ? _e.filter((e) => !s.includes(e.key)) : _e, [s]), f = r ?? u?.disabled(), [p, m] = vt("shape.recentShapes", Ir), h = W(() => {
|
|
3593
3628
|
if (!Array.isArray(p)) return [];
|
|
3594
3629
|
let e = [];
|
|
3595
3630
|
for (let t of p) {
|
|
3596
|
-
let n = typeof t == "string" ?
|
|
3631
|
+
let n = typeof t == "string" ? Lr.get(t) : void 0;
|
|
3597
3632
|
if (n && !e.includes(n) && e.push(n), e.length === 12) break;
|
|
3598
3633
|
}
|
|
3599
3634
|
return e;
|
|
3600
3635
|
}, [p]), g = L((e) => {
|
|
3601
3636
|
u?.execute(e.json), m((t) => {
|
|
3602
3637
|
let n = [e.key];
|
|
3603
|
-
for (let r = 0; Array.isArray(t) && r < t.length && n.length < 12; r++) t[r] !== e.key &&
|
|
3638
|
+
for (let r = 0; Array.isArray(t) && r < t.length && n.length < 12; r++) t[r] !== e.key && Lr.has(t[r]) && n.push(t[r]);
|
|
3604
3639
|
return Object.freeze(n);
|
|
3605
3640
|
});
|
|
3606
3641
|
}, [u]), _ = H((e) => {
|
|
@@ -3611,7 +3646,7 @@ var Q = V((e) => {
|
|
|
3611
3646
|
},
|
|
3612
3647
|
children: [
|
|
3613
3648
|
i > 0 ? Y(q, { orientation: "horizontal" }) : null,
|
|
3614
|
-
Y(
|
|
3649
|
+
Y(Mt, { children: n }),
|
|
3615
3650
|
Y(Z, {
|
|
3616
3651
|
sx: {
|
|
3617
3652
|
display: "grid",
|
|
@@ -3627,7 +3662,7 @@ var Q = V((e) => {
|
|
|
3627
3662
|
label: l(e.label),
|
|
3628
3663
|
simple: !0
|
|
3629
3664
|
},
|
|
3630
|
-
icon: Y(F, { iconKey:
|
|
3665
|
+
icon: Y(F, { iconKey: Be(e.key) }),
|
|
3631
3666
|
onClick: () => {
|
|
3632
3667
|
t?.(), g(e);
|
|
3633
3668
|
}
|
|
@@ -3651,10 +3686,10 @@ var Q = V((e) => {
|
|
|
3651
3686
|
d,
|
|
3652
3687
|
l
|
|
3653
3688
|
]);
|
|
3654
|
-
return Y(
|
|
3689
|
+
return Y(Dt, {
|
|
3655
3690
|
ref: t,
|
|
3656
|
-
|
|
3657
|
-
|
|
3691
|
+
renderPopupPanel: _,
|
|
3692
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
3658
3693
|
label: u?.getLabel(n),
|
|
3659
3694
|
description: u?.getDescription(n),
|
|
3660
3695
|
disabled: t,
|
|
@@ -3663,11 +3698,11 @@ var Q = V((e) => {
|
|
|
3663
3698
|
label: i ?? u?.getLabel(n),
|
|
3664
3699
|
disabled: f,
|
|
3665
3700
|
selected: !1,
|
|
3666
|
-
icon: a ?? Y(F, { iconKey:
|
|
3701
|
+
icon: a ?? Y(F, { iconKey: Be("Shapes") }),
|
|
3667
3702
|
...c
|
|
3668
3703
|
});
|
|
3669
|
-
})),
|
|
3670
|
-
|
|
3704
|
+
})), zr = () => {
|
|
3705
|
+
Cr(), P.register({
|
|
3671
3706
|
key: "hideUnhideOptions",
|
|
3672
3707
|
members: [
|
|
3673
3708
|
"hideColumns",
|
|
@@ -3704,7 +3739,7 @@ var Q = V((e) => {
|
|
|
3704
3739
|
})
|
|
3705
3740
|
}, !0), P.register({
|
|
3706
3741
|
key: "formatBorder",
|
|
3707
|
-
render: (e) => Y(
|
|
3742
|
+
render: (e) => Y(Gn, { ...e })
|
|
3708
3743
|
}, !0), P.register({
|
|
3709
3744
|
key: "formatFontColor",
|
|
3710
3745
|
render: (e) => Y(l, {
|
|
@@ -3721,7 +3756,7 @@ var Q = V((e) => {
|
|
|
3721
3756
|
isSplit: !0,
|
|
3722
3757
|
propsPanel: {
|
|
3723
3758
|
disableAlpha: !0,
|
|
3724
|
-
autoColorLabelKey:
|
|
3759
|
+
autoColorLabelKey: kn("color.noFill"),
|
|
3725
3760
|
autoColorPosition: t.End
|
|
3726
3761
|
}
|
|
3727
3762
|
})
|
|
@@ -3731,6 +3766,7 @@ var Q = V((e) => {
|
|
|
3731
3766
|
}, !0), P.register({
|
|
3732
3767
|
key: "dataToolbar",
|
|
3733
3768
|
members: [
|
|
3769
|
+
"refreshAll",
|
|
3734
3770
|
"manageExternalLinks",
|
|
3735
3771
|
"-",
|
|
3736
3772
|
"sortOptions",
|
|
@@ -3763,7 +3799,7 @@ var Q = V((e) => {
|
|
|
3763
3799
|
];
|
|
3764
3800
|
for (let t of e) P.register({
|
|
3765
3801
|
key: `formulaCategory.${t}`,
|
|
3766
|
-
render: (e) => Y(
|
|
3802
|
+
render: (e) => Y(Er, {
|
|
3767
3803
|
category: t,
|
|
3768
3804
|
...e
|
|
3769
3805
|
})
|
|
@@ -3790,14 +3826,17 @@ var Q = V((e) => {
|
|
|
3790
3826
|
]
|
|
3791
3827
|
}, !0), P.register({
|
|
3792
3828
|
key: "calculationOptions",
|
|
3793
|
-
render: (e) => Y(
|
|
3829
|
+
render: (e) => Y(xr, { ...e })
|
|
3794
3830
|
}, !0), P.register({
|
|
3795
3831
|
key: "insertToolbar",
|
|
3796
3832
|
members: [
|
|
3797
3833
|
"insertTable",
|
|
3798
3834
|
"insertImageOptions",
|
|
3799
|
-
{ render: (e) => Y(
|
|
3800
|
-
|
|
3835
|
+
{ render: (e) => Y(Rr, { ...e }) },
|
|
3836
|
+
"-",
|
|
3837
|
+
{ render: (e) => Y(Pr, { ...e }) },
|
|
3838
|
+
"-",
|
|
3839
|
+
{ render: (e) => Y(Fr, { ...e }) },
|
|
3801
3840
|
"-",
|
|
3802
3841
|
"updateHyperlink",
|
|
3803
3842
|
"editNote",
|
|
@@ -3808,7 +3847,7 @@ var Q = V((e) => {
|
|
|
3808
3847
|
members: [
|
|
3809
3848
|
"cut",
|
|
3810
3849
|
"copy",
|
|
3811
|
-
{ render: (e) => Y(
|
|
3850
|
+
{ render: (e) => Y($n, {
|
|
3812
3851
|
...e,
|
|
3813
3852
|
commandKey: "paste",
|
|
3814
3853
|
includePasteAllInPopup: !1
|
|
@@ -3820,7 +3859,7 @@ var Q = V((e) => {
|
|
|
3820
3859
|
"-",
|
|
3821
3860
|
"sortFilterOptions"
|
|
3822
3861
|
]
|
|
3823
|
-
}, !0),
|
|
3862
|
+
}, !0), Le(), P.register({
|
|
3824
3863
|
key: "movableContextMenu",
|
|
3825
3864
|
members: [
|
|
3826
3865
|
"copy",
|
|
@@ -3846,12 +3885,12 @@ var Q = V((e) => {
|
|
|
3846
3885
|
"duplicateSheet",
|
|
3847
3886
|
"protectionOptions",
|
|
3848
3887
|
{ render: () => Y(l, {
|
|
3849
|
-
variant:
|
|
3888
|
+
variant: Ye.Menuitem,
|
|
3850
3889
|
commandKey: "formatSheetTabColor",
|
|
3851
3890
|
icon: Y(F, { iconKey: "stroke.colored" }),
|
|
3852
3891
|
propsPanel: {
|
|
3853
3892
|
disableAlpha: !0,
|
|
3854
|
-
autoColorLabelKey:
|
|
3893
|
+
autoColorLabelKey: kn("color.noTabColor"),
|
|
3855
3894
|
autoColorPosition: t.End
|
|
3856
3895
|
}
|
|
3857
3896
|
}) },
|
|
@@ -3909,7 +3948,7 @@ var Q = V((e) => {
|
|
|
3909
3948
|
]
|
|
3910
3949
|
}, !0), P.register({
|
|
3911
3950
|
key: "locale",
|
|
3912
|
-
render: (e) => Y(
|
|
3951
|
+
render: (e) => Y(kr, {
|
|
3913
3952
|
...e,
|
|
3914
3953
|
variant: "menuitem"
|
|
3915
3954
|
})
|
|
@@ -3926,7 +3965,7 @@ var Q = V((e) => {
|
|
|
3926
3965
|
]
|
|
3927
3966
|
}, !0), P.register({
|
|
3928
3967
|
key: "selectTheme",
|
|
3929
|
-
render: (e) => Y(
|
|
3968
|
+
render: (e) => Y(vr, {
|
|
3930
3969
|
...e,
|
|
3931
3970
|
commandKey: "selectTheme"
|
|
3932
3971
|
})
|
|
@@ -3975,16 +4014,16 @@ var Q = V((e) => {
|
|
|
3975
4014
|
"viewToolbar"
|
|
3976
4015
|
]
|
|
3977
4016
|
}, !0);
|
|
3978
|
-
},
|
|
3979
|
-
let { sx: n, disabled: r, ...i } = e, [a] = R(["language"]), o = a?.getState() ??
|
|
4017
|
+
}, Br = V(B((e, t) => {
|
|
4018
|
+
let { sx: n, disabled: r, ...i } = e, [a] = R(["language"]), o = a?.getState() ?? Tn.getActive(), s = r ?? (!a || a.disabled()), { reference: c } = dt(), l = H((e) => {
|
|
3980
4019
|
let t = (e) => {
|
|
3981
4020
|
c?.closeAll(), a?.execute(e);
|
|
3982
|
-
}, n =
|
|
4021
|
+
}, n = Tn.getAvailable().sort().map((e) => {
|
|
3983
4022
|
let n = e === o;
|
|
3984
|
-
return Y(
|
|
4023
|
+
return Y(Nt, {
|
|
3985
4024
|
selected: n,
|
|
3986
4025
|
disabled: s,
|
|
3987
|
-
icon: n ? Y(
|
|
4026
|
+
icon: n ? Y(Bt, {}) : void 0,
|
|
3988
4027
|
sx: {
|
|
3989
4028
|
display: "flex",
|
|
3990
4029
|
paddingTop: "4px",
|
|
@@ -4006,19 +4045,19 @@ var Q = V((e) => {
|
|
|
4006
4045
|
flexDirection: "column",
|
|
4007
4046
|
overflow: "hidden"
|
|
4008
4047
|
},
|
|
4009
|
-
children: Y(
|
|
4048
|
+
children: Y(yn, {
|
|
4010
4049
|
component: "div",
|
|
4011
4050
|
sx: {
|
|
4012
4051
|
whiteSpace: "nowrap",
|
|
4013
4052
|
overflow: "hidden",
|
|
4014
4053
|
textOverflow: "ellipsis"
|
|
4015
4054
|
},
|
|
4016
|
-
children:
|
|
4055
|
+
children: Vr(e)
|
|
4017
4056
|
})
|
|
4018
4057
|
})
|
|
4019
4058
|
}, e);
|
|
4020
4059
|
});
|
|
4021
|
-
return
|
|
4060
|
+
return Gt({
|
|
4022
4061
|
...e,
|
|
4023
4062
|
children: Y(Z, {
|
|
4024
4063
|
sx: {
|
|
@@ -4041,12 +4080,12 @@ var Q = V((e) => {
|
|
|
4041
4080
|
s,
|
|
4042
4081
|
c
|
|
4043
4082
|
]);
|
|
4044
|
-
return Y(
|
|
4083
|
+
return Y(Dt, {
|
|
4045
4084
|
ref: t,
|
|
4046
4085
|
sx: { ...n },
|
|
4047
4086
|
disabled: s,
|
|
4048
|
-
|
|
4049
|
-
|
|
4087
|
+
renderPopupPanel: l,
|
|
4088
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
4050
4089
|
label: a?.getLabel?.(),
|
|
4051
4090
|
description: a?.getDescription?.(),
|
|
4052
4091
|
disabled: t,
|
|
@@ -4057,19 +4096,22 @@ var Q = V((e) => {
|
|
|
4057
4096
|
...i
|
|
4058
4097
|
});
|
|
4059
4098
|
}));
|
|
4060
|
-
function
|
|
4099
|
+
function Vr(e) {
|
|
4061
4100
|
try {
|
|
4062
4101
|
return new Intl.DisplayNames([e], { type: "language" }).of(e) ?? e;
|
|
4063
4102
|
} catch {
|
|
4064
4103
|
return e;
|
|
4065
4104
|
}
|
|
4066
4105
|
}
|
|
4067
|
-
var
|
|
4068
|
-
|
|
4106
|
+
var Hr = () => {
|
|
4107
|
+
zr(), P.register({ key: "fileOptions" }, !0), P.register({
|
|
4069
4108
|
key: "newWorkbookOptions",
|
|
4070
4109
|
defaultKey: "newWorkbook",
|
|
4071
4110
|
members: ["newWorkbook"]
|
|
4072
|
-
}, !0), P.register({ key: "appearanceOptions" }, !0), P.register({ key: "insertChartOptions" }, !0), P.register({
|
|
4111
|
+
}, !0), P.register({ key: "appearanceOptions" }, !0), P.register({ key: "insertChartOptions" }, !0), P.register({
|
|
4112
|
+
key: "insertCellControlOptions",
|
|
4113
|
+
defaultKey: "insertCheckbox"
|
|
4114
|
+
}, !0), P.register({ key: "borderOptions" }, !0), P.register({
|
|
4073
4115
|
key: "insertDataOptions",
|
|
4074
4116
|
defaultKey: "insertDataFromFile",
|
|
4075
4117
|
contributions: { dataToolbar: { order: -1 } },
|
|
@@ -4077,7 +4119,7 @@ var Nr = () => {
|
|
|
4077
4119
|
}, !0), P.register({
|
|
4078
4120
|
key: "undo",
|
|
4079
4121
|
contributions: { homeToolbar: { order: -1 } },
|
|
4080
|
-
render: (e) => Y(
|
|
4122
|
+
render: (e) => Y(Zn, {
|
|
4081
4123
|
...e,
|
|
4082
4124
|
quickCommand: "undo"
|
|
4083
4125
|
})
|
|
@@ -4090,7 +4132,7 @@ var Nr = () => {
|
|
|
4090
4132
|
members: ["enableDarkGrid", "enableDarkImages"]
|
|
4091
4133
|
}, !0), P.register({
|
|
4092
4134
|
key: "language",
|
|
4093
|
-
render: (e) => Y(
|
|
4135
|
+
render: (e) => Y(Br, {
|
|
4094
4136
|
...e,
|
|
4095
4137
|
variant: "menuitem"
|
|
4096
4138
|
})
|
|
@@ -4123,23 +4165,23 @@ var Nr = () => {
|
|
|
4123
4165
|
"gotoUrlIssue"
|
|
4124
4166
|
]
|
|
4125
4167
|
}, !0);
|
|
4126
|
-
},
|
|
4168
|
+
}, Ur = [
|
|
4127
4169
|
"homeToolbar",
|
|
4128
4170
|
"insertToolbar",
|
|
4129
4171
|
"formulaToolbar",
|
|
4130
4172
|
"dataToolbar",
|
|
4131
4173
|
"reviewToolbar",
|
|
4132
4174
|
"viewToolbar"
|
|
4133
|
-
],
|
|
4175
|
+
], Wr = (e) => Y(Jr, { ...e }), Gr = V((e) => {
|
|
4134
4176
|
let { sx: t, ...n } = e;
|
|
4135
4177
|
return X(Z, {
|
|
4136
4178
|
sx: {
|
|
4137
4179
|
display: "flex",
|
|
4138
4180
|
flexDirection: "column",
|
|
4139
4181
|
position: "relative",
|
|
4140
|
-
"&:hover:not([disabled]) .indicator": { borderBottom: (e) => `${
|
|
4182
|
+
"&:hover:not([disabled]) .indicator": { borderBottom: (e) => `${bn(e.palette.primary.main, .35)} solid 2px` }
|
|
4141
4183
|
},
|
|
4142
|
-
children: [Y(
|
|
4184
|
+
children: [Y(mn, {
|
|
4143
4185
|
disableRipple: !0,
|
|
4144
4186
|
onMouseDown: (e) => {
|
|
4145
4187
|
e.button === 0 && e.preventDefault();
|
|
@@ -4170,13 +4212,13 @@ var Nr = () => {
|
|
|
4170
4212
|
}
|
|
4171
4213
|
})]
|
|
4172
4214
|
});
|
|
4173
|
-
}),
|
|
4215
|
+
}), Kr = V((e) => {
|
|
4174
4216
|
let { toolbars: t, value: n, onToolbarChange: r, sx: i, ...a } = e, o = W(() => {
|
|
4175
4217
|
let e = [];
|
|
4176
|
-
for (let n = 0; n < t.length; n++) e.push(Y(
|
|
4218
|
+
for (let n = 0; n < t.length; n++) e.push(Y(Gr, { label: t[n].label }, t[n].key ?? t[n].label));
|
|
4177
4219
|
return e;
|
|
4178
4220
|
}, [t]);
|
|
4179
|
-
return Y(
|
|
4221
|
+
return Y(hn, {
|
|
4180
4222
|
value: n,
|
|
4181
4223
|
onChange: (e, t) => {
|
|
4182
4224
|
r?.(t);
|
|
@@ -4208,14 +4250,14 @@ var Nr = () => {
|
|
|
4208
4250
|
...a,
|
|
4209
4251
|
children: o
|
|
4210
4252
|
});
|
|
4211
|
-
}),
|
|
4253
|
+
}), qr = V((e) => {
|
|
4212
4254
|
let { toolbars: t, value: n, onToolbarChange: r, ...i } = e, a = H((e) => {
|
|
4213
4255
|
r?.(e.target.value);
|
|
4214
4256
|
}, [r]), o = W(() => {
|
|
4215
4257
|
let e = [], r = t.length;
|
|
4216
4258
|
for (let i = 0; i < r; i++) {
|
|
4217
4259
|
let r = t[i].label;
|
|
4218
|
-
e.push(Y(
|
|
4260
|
+
e.push(Y(un, {
|
|
4219
4261
|
value: i,
|
|
4220
4262
|
sx: { color: (e) => {
|
|
4221
4263
|
if (n === i) return e.palette.primary.main;
|
|
@@ -4225,7 +4267,7 @@ var Nr = () => {
|
|
|
4225
4267
|
}
|
|
4226
4268
|
return e;
|
|
4227
4269
|
}, [t, n]);
|
|
4228
|
-
return Y(
|
|
4270
|
+
return Y(an, {
|
|
4229
4271
|
sx: {
|
|
4230
4272
|
minWidth: "125px",
|
|
4231
4273
|
maxWidth: "125px",
|
|
@@ -4245,7 +4287,7 @@ var Nr = () => {
|
|
|
4245
4287
|
}
|
|
4246
4288
|
},
|
|
4247
4289
|
size: "small",
|
|
4248
|
-
children: Y(
|
|
4290
|
+
children: Y(fn, {
|
|
4249
4291
|
value: n,
|
|
4250
4292
|
onChange: a,
|
|
4251
4293
|
variant: "outlined",
|
|
@@ -4253,16 +4295,16 @@ var Nr = () => {
|
|
|
4253
4295
|
children: o
|
|
4254
4296
|
})
|
|
4255
4297
|
});
|
|
4256
|
-
}),
|
|
4257
|
-
let { toolbars: n, wrapperSelect: r, isCompact: i = !1, wrapperPalette: a, propsToolbars: o =
|
|
4298
|
+
}), Jr = V(B((e, t) => {
|
|
4299
|
+
let { toolbars: n, wrapperSelect: r, isCompact: i = !1, wrapperPalette: a, propsToolbars: o = wn.EmptyObject, propsPalette: s = wn.EmptyObject, sx: c, ...l } = e, u = ct(), d = n ?? (() => {
|
|
4258
4300
|
let e = u.resolveMembers(Ce);
|
|
4259
|
-
return e ? e.filter((e) => typeof e == "string" && e !== "-") :
|
|
4301
|
+
return e ? e.filter((e) => typeof e == "string" && e !== "-") : Ur;
|
|
4260
4302
|
})(), f = d.join("|"), p = W(() => d.map((e) => {
|
|
4261
|
-
let { ref: t, ...n } = o?.[e] ??
|
|
4303
|
+
let { ref: t, ...n } = o?.[e] ?? wn.EmptyObject;
|
|
4262
4304
|
return {
|
|
4263
4305
|
key: e,
|
|
4264
|
-
label: Y(
|
|
4265
|
-
component:
|
|
4306
|
+
label: Y(Je, { entryKey: e }),
|
|
4307
|
+
component: xt(Ot, {
|
|
4266
4308
|
...n,
|
|
4267
4309
|
key: e,
|
|
4268
4310
|
groupKey: e
|
|
@@ -4270,7 +4312,7 @@ var Nr = () => {
|
|
|
4270
4312
|
};
|
|
4271
4313
|
}), [f, o]), m = W(() => p.map((e) => e.component), [p]), [h, g] = G(0), _ = p.length > 0 ? Math.min(h, p.length - 1) : 0, v = (e) => {
|
|
4272
4314
|
g(e);
|
|
4273
|
-
}, y = W(() => i ? Y(
|
|
4315
|
+
}, y = W(() => i ? Y(qr, {
|
|
4274
4316
|
toolbars: p,
|
|
4275
4317
|
value: _,
|
|
4276
4318
|
onToolbarChange: v,
|
|
@@ -4278,7 +4320,7 @@ var Nr = () => {
|
|
|
4278
4320
|
paddingLeft: (e) => e.spacing(1),
|
|
4279
4321
|
paddingRight: (e) => e.spacing(1)
|
|
4280
4322
|
}
|
|
4281
|
-
}) : Y(
|
|
4323
|
+
}) : Y(Kr, {
|
|
4282
4324
|
toolbars: p,
|
|
4283
4325
|
value: _,
|
|
4284
4326
|
onToolbarChange: v
|
|
@@ -4286,7 +4328,7 @@ var Nr = () => {
|
|
|
4286
4328
|
p,
|
|
4287
4329
|
_,
|
|
4288
4330
|
i
|
|
4289
|
-
]), { sx: b, ...x } = s, S = Y(
|
|
4331
|
+
]), { sx: b, ...x } = s, S = Y(dn, {
|
|
4290
4332
|
elevation: 2,
|
|
4291
4333
|
tabIndex: 0,
|
|
4292
4334
|
sx: {
|
|
@@ -4320,9 +4362,9 @@ var Nr = () => {
|
|
|
4320
4362
|
children: [r ? r(y) : y, a ? a(S) : S]
|
|
4321
4363
|
});
|
|
4322
4364
|
}));
|
|
4323
|
-
|
|
4324
|
-
var
|
|
4325
|
-
let { className: n, debounceDelay: r = 220, showSlider: i, sx: o, ...s } = e, c = z(), l =
|
|
4365
|
+
Jr.displayName = "WorkbookToolbars";
|
|
4366
|
+
var Yr = { placement: "top-end" }, Xr = V(B((e, t) => {
|
|
4367
|
+
let { className: n, debounceDelay: r = 220, showSlider: i, sx: o, ...s } = e, c = z(), l = Ke()?.getView(), [u, d] = G(() => l?.getZoomScale() ?? 100), [f, p] = G(!1), m = wt(0);
|
|
4326
4368
|
N(l, { onZoomScaleChange: () => {
|
|
4327
4369
|
p(!0), m.current === 0 && l && d(l.getZoomScale());
|
|
4328
4370
|
} }), U(() => {
|
|
@@ -4338,14 +4380,14 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4338
4380
|
}, [l]), g = (e) => {
|
|
4339
4381
|
let t = e;
|
|
4340
4382
|
return e < 100 ? t = 10 / 9 * (e - 10) : e > 100 && (t = (e + 200) / 3), t;
|
|
4341
|
-
}, _ = g(u), [v, y] = G(null), b =
|
|
4383
|
+
}, _ = g(u), [v, y] = G(null), b = wt(null), x = H(() => {
|
|
4342
4384
|
let e = v;
|
|
4343
4385
|
e && requestAnimationFrame(() => {
|
|
4344
4386
|
b.current?.contains(document.activeElement) && e.focus();
|
|
4345
4387
|
});
|
|
4346
|
-
}, []), S =
|
|
4388
|
+
}, []), S = ht(() => {
|
|
4347
4389
|
l && h(g(l.getNextZoomScale(!1, 10)));
|
|
4348
|
-
}), C =
|
|
4390
|
+
}), C = ht(() => {
|
|
4349
4391
|
l && h(g(l.getNextZoomScale(!0, 10)));
|
|
4350
4392
|
});
|
|
4351
4393
|
return X(Z, {
|
|
@@ -4382,10 +4424,10 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4382
4424
|
minWidth: 0
|
|
4383
4425
|
},
|
|
4384
4426
|
children: [
|
|
4385
|
-
Y(
|
|
4427
|
+
Y(Vt, {
|
|
4386
4428
|
disableInteractive: !0,
|
|
4387
4429
|
title: c("zoom.out"),
|
|
4388
|
-
children: Y(
|
|
4430
|
+
children: Y(on, {
|
|
4389
4431
|
sx: {
|
|
4390
4432
|
padding: "0",
|
|
4391
4433
|
"&:hover:not([disabled])": { color: (e) => e.palette.primary.main },
|
|
@@ -4401,7 +4443,7 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4401
4443
|
children: Y(F, { iconKey: "Remove" })
|
|
4402
4444
|
})
|
|
4403
4445
|
}),
|
|
4404
|
-
Y(
|
|
4446
|
+
Y(pn, {
|
|
4405
4447
|
ref: b,
|
|
4406
4448
|
sx: {
|
|
4407
4449
|
flex: "1 1 100%",
|
|
@@ -4412,8 +4454,8 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4412
4454
|
height: 14,
|
|
4413
4455
|
width: 4,
|
|
4414
4456
|
borderRadius: 2,
|
|
4415
|
-
"&.Mui-focusVisible": { boxShadow: (e) => `0px 0px 0px 3px ${
|
|
4416
|
-
"&:focus, &:hover, &.Mui-active": { boxShadow: (e) => `0px 0px 0px 2px ${
|
|
4457
|
+
"&.Mui-focusVisible": { boxShadow: (e) => `0px 0px 0px 3px ${Xt(e.palette.primary.main, .16)}` },
|
|
4458
|
+
"&:focus, &:hover, &.Mui-active": { boxShadow: (e) => `0px 0px 0px 2px ${Xt(e.palette.primary.main, .16)}` }
|
|
4417
4459
|
},
|
|
4418
4460
|
"& .MuiSlider-mark": {
|
|
4419
4461
|
width: "1px",
|
|
@@ -4442,10 +4484,10 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4442
4484
|
},
|
|
4443
4485
|
valueLabelFormat: (e, t) => c("zoom.sliderValue", { value: Math.round(u) })
|
|
4444
4486
|
}),
|
|
4445
|
-
Y(
|
|
4487
|
+
Y(Vt, {
|
|
4446
4488
|
disableInteractive: !0,
|
|
4447
4489
|
title: c("zoom.in"),
|
|
4448
|
-
children: Y(
|
|
4490
|
+
children: Y(on, {
|
|
4449
4491
|
sx: {
|
|
4450
4492
|
padding: "0",
|
|
4451
4493
|
"&:hover:not([disabled])": { color: (e) => e.palette.primary.main },
|
|
@@ -4468,8 +4510,8 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4468
4510
|
flexDirection: "row",
|
|
4469
4511
|
alignItems: "center"
|
|
4470
4512
|
},
|
|
4471
|
-
children: [Y(Z, { sx: { minWidth: "8px" } }), Y(
|
|
4472
|
-
propsPopup: { propsPopper:
|
|
4513
|
+
children: [Y(Z, { sx: { minWidth: "8px" } }), Y(Wn, {
|
|
4514
|
+
propsPopup: { propsPopper: Yr },
|
|
4473
4515
|
outlined: !1,
|
|
4474
4516
|
sx: {
|
|
4475
4517
|
padding: "0",
|
|
@@ -4483,9 +4525,9 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4483
4525
|
})]
|
|
4484
4526
|
});
|
|
4485
4527
|
}));
|
|
4486
|
-
|
|
4487
|
-
var
|
|
4488
|
-
let { className: n, stats: r =
|
|
4528
|
+
Xr.displayName = "SheetZoomScale";
|
|
4529
|
+
var Zr = "_stats-items_151a8_1", Qr = "_stats-item_151a8_1", $r = "_stats-item-label_151a8_15", ei = V(B((e, t) => {
|
|
4530
|
+
let { className: n, stats: r = ni, debounceDelay: i = 40, style: o, ...s } = e, c = Ke(), l = z(), [u, d] = G(null), [f, p] = Ct((e) => e + 1, 0), m = H(le.debounce(p, i), [i]);
|
|
4489
4531
|
U(() => {
|
|
4490
4532
|
if (!c) return;
|
|
4491
4533
|
let e = c.getSelectedRanges();
|
|
@@ -4543,13 +4585,13 @@ var Hr = "_stats-items_151a8_1", Ur = "_stats-item_151a8_1", Wr = "_stats-item-l
|
|
|
4543
4585
|
} else u.firstError && (n = 2, t = [j.Aggregate.Count, j.Aggregate.NumericalCount]);
|
|
4544
4586
|
let i = Array(n), a = u.cell;
|
|
4545
4587
|
for (let r = 0; r < n; r++) {
|
|
4546
|
-
let n = t[r], o =
|
|
4588
|
+
let n = t[r], o = ri;
|
|
4547
4589
|
if (n === j.Aggregate.StdDev || n === j.Aggregate.Variance) continue;
|
|
4548
|
-
n !== j.Aggregate.Count && n !== j.Aggregate.NumericalCount || (o =
|
|
4590
|
+
n !== j.Aggregate.Count && n !== j.Aggregate.NumericalCount || (o = ii), o.value = e[n];
|
|
4549
4591
|
let s = a.createCell(o);
|
|
4550
|
-
s.getNumberFormat().errorPlaceholder || i.push(Y(
|
|
4592
|
+
s.getNumberFormat().errorPlaceholder || i.push(Y(ai, {
|
|
4551
4593
|
cell: s,
|
|
4552
|
-
label:
|
|
4594
|
+
label: ti(l, n)
|
|
4553
4595
|
}, `stat:${n}`));
|
|
4554
4596
|
}
|
|
4555
4597
|
return i;
|
|
@@ -4560,13 +4602,13 @@ var Hr = "_stats-items_151a8_1", Ur = "_stats-item_151a8_1", Wr = "_stats-item-l
|
|
|
4560
4602
|
]);
|
|
4561
4603
|
return Y("div", {
|
|
4562
4604
|
ref: t,
|
|
4563
|
-
className: a(n,
|
|
4605
|
+
className: a(n, Zr),
|
|
4564
4606
|
style: o,
|
|
4565
4607
|
...s,
|
|
4566
4608
|
children: h
|
|
4567
4609
|
});
|
|
4568
4610
|
}));
|
|
4569
|
-
function
|
|
4611
|
+
function ti(e, t) {
|
|
4570
4612
|
switch (t) {
|
|
4571
4613
|
case j.Aggregate.Average: return e("numberStats.average");
|
|
4572
4614
|
case j.Aggregate.Count: return e("numberStats.count");
|
|
@@ -4577,25 +4619,25 @@ function Kr(e, t) {
|
|
|
4577
4619
|
default: return T.camelToPrettyCase(t);
|
|
4578
4620
|
}
|
|
4579
4621
|
}
|
|
4580
|
-
|
|
4581
|
-
var
|
|
4622
|
+
ei.displayName = "NumberStats";
|
|
4623
|
+
var ni = Object.freeze([
|
|
4582
4624
|
j.Aggregate.Average,
|
|
4583
4625
|
j.Aggregate.Count,
|
|
4584
4626
|
j.Aggregate.NumericalCount,
|
|
4585
4627
|
j.Aggregate.Min,
|
|
4586
4628
|
j.Aggregate.Max,
|
|
4587
4629
|
j.Aggregate.Sum
|
|
4588
|
-
]),
|
|
4630
|
+
]), ri = { value: 0 }, ii = {
|
|
4589
4631
|
value: 0,
|
|
4590
4632
|
style: { numberFormat: se.Type.General }
|
|
4591
|
-
},
|
|
4633
|
+
}, ai = V(B((e, t) => {
|
|
4592
4634
|
let { cell: n, label: r, description: i, className: o, style: s, ...c } = e, l = z();
|
|
4593
4635
|
return Y("div", {
|
|
4594
4636
|
ref: t,
|
|
4595
|
-
className: a(o,
|
|
4637
|
+
className: a(o, Qr),
|
|
4596
4638
|
style: s,
|
|
4597
4639
|
...c,
|
|
4598
|
-
children: Y(
|
|
4640
|
+
children: Y(Vt, {
|
|
4599
4641
|
disableInteractive: !0,
|
|
4600
4642
|
placement: "top",
|
|
4601
4643
|
title: i ?? (r ? l("numberStats.copyTooltip", { label: r }) : l("numberStats.copyTooltipNoLabel")),
|
|
@@ -4604,13 +4646,13 @@ var qr = Object.freeze([
|
|
|
4604
4646
|
let e = n?.getValue();
|
|
4605
4647
|
e != null && ae.Global.writeText(String(e));
|
|
4606
4648
|
},
|
|
4607
|
-
className: a(
|
|
4608
|
-
children: [r && Y(
|
|
4649
|
+
className: a($r),
|
|
4650
|
+
children: [r && Y(yn, {
|
|
4609
4651
|
noWrap: !0,
|
|
4610
4652
|
component: "div",
|
|
4611
4653
|
sx: { fontSize: "0.7rem" },
|
|
4612
4654
|
children: `${r}: `
|
|
4613
|
-
}), Y(
|
|
4655
|
+
}), Y(yn, {
|
|
4614
4656
|
noWrap: !0,
|
|
4615
4657
|
component: "div",
|
|
4616
4658
|
sx: { fontSize: "0.7rem" },
|
|
@@ -4619,15 +4661,15 @@ var qr = Object.freeze([
|
|
|
4619
4661
|
})
|
|
4620
4662
|
})
|
|
4621
4663
|
});
|
|
4622
|
-
})),
|
|
4623
|
-
let { debounceDelay: t = 40, className: n, style: r, ...i } = e, o =
|
|
4664
|
+
})), oi = V((e) => {
|
|
4665
|
+
let { debounceDelay: t = 40, className: n, style: r, ...i } = e, o = Ke(), s = z(), [c, l] = Ct((e) => e + 1, 0), u = H(le.debounce(l, t), [t]), [d, f] = G(null);
|
|
4624
4666
|
if (U(() => {
|
|
4625
|
-
f(o ?
|
|
4667
|
+
f(o ? Ae(o) : null);
|
|
4626
4668
|
}, [c, o]), N(o, {
|
|
4627
4669
|
onDataChange: u,
|
|
4628
4670
|
onInvalidated: u
|
|
4629
4671
|
}, { transactional: !1 }), !o || !d) return null;
|
|
4630
|
-
let p =
|
|
4672
|
+
let p = je(d, o.getName());
|
|
4631
4673
|
return Y("div", {
|
|
4632
4674
|
...i,
|
|
4633
4675
|
className: a("circular-reference-status", n),
|
|
@@ -4637,7 +4679,7 @@ var qr = Object.freeze([
|
|
|
4637
4679
|
whiteSpace: "nowrap",
|
|
4638
4680
|
...r
|
|
4639
4681
|
},
|
|
4640
|
-
children: Y(
|
|
4682
|
+
children: Y(yn, {
|
|
4641
4683
|
component: "div",
|
|
4642
4684
|
variant: "caption",
|
|
4643
4685
|
role: "button",
|
|
@@ -4650,15 +4692,15 @@ var qr = Object.freeze([
|
|
|
4650
4692
|
"&:hover": { textDecoration: "underline" }
|
|
4651
4693
|
},
|
|
4652
4694
|
onClick: () => {
|
|
4653
|
-
|
|
4695
|
+
ze(o, d);
|
|
4654
4696
|
},
|
|
4655
4697
|
children: s("statusBar.circularReferences")
|
|
4656
4698
|
})
|
|
4657
4699
|
});
|
|
4658
4700
|
});
|
|
4659
|
-
|
|
4660
|
-
var
|
|
4661
|
-
let { debounceDelay: t = 40, className: n, style: r, ...i } = e, o =
|
|
4701
|
+
oi.displayName = "CircularReferenceStatus";
|
|
4702
|
+
var si = V((e) => {
|
|
4703
|
+
let { debounceDelay: t = 40, className: n, style: r, ...i } = e, o = Ge(), s = Ke(), c = o?.getCalculation() ?? null, l = z(), [u] = R(["calculateAll"]), [, d] = Ct((e) => e + 1, 0), f = H(le.debounce(d, t), [t]);
|
|
4662
4704
|
return N(c, {
|
|
4663
4705
|
onStale: f,
|
|
4664
4706
|
onOptionsChange: f,
|
|
@@ -4675,7 +4717,7 @@ var Qr = V((e) => {
|
|
|
4675
4717
|
whiteSpace: "nowrap",
|
|
4676
4718
|
...r
|
|
4677
4719
|
},
|
|
4678
|
-
children: Y(
|
|
4720
|
+
children: Y(yn, {
|
|
4679
4721
|
component: "div",
|
|
4680
4722
|
variant: "caption",
|
|
4681
4723
|
role: "button",
|
|
@@ -4694,16 +4736,45 @@ var Qr = V((e) => {
|
|
|
4694
4736
|
})
|
|
4695
4737
|
}) : null;
|
|
4696
4738
|
});
|
|
4697
|
-
|
|
4698
|
-
var
|
|
4699
|
-
let {
|
|
4739
|
+
si.displayName = "CalculationRequiredStatus";
|
|
4740
|
+
var ci = V((e) => {
|
|
4741
|
+
let { debounceDelay: t = 40, className: n, style: r, ...i } = e, o = Ge()?.getCalculation() ?? null, s = z(), [, c] = Ct((e) => e + 1, 0), l = H(le.debounce(c, t), [t]);
|
|
4742
|
+
N(o, {
|
|
4743
|
+
onPendingChange: l,
|
|
4744
|
+
onStatusChange: l
|
|
4745
|
+
});
|
|
4746
|
+
let u = o?.getPendingCount() ?? 0;
|
|
4747
|
+
return u === 0 ? null : Y("div", {
|
|
4748
|
+
...i,
|
|
4749
|
+
className: a("pending-status", n),
|
|
4750
|
+
style: {
|
|
4751
|
+
display: "flex",
|
|
4752
|
+
alignItems: "center",
|
|
4753
|
+
...r
|
|
4754
|
+
},
|
|
4755
|
+
children: u > 0 && Y(J, {
|
|
4756
|
+
"aria-label": "pending-results",
|
|
4757
|
+
icon: Y(F, { iconKey: "PendingResults" }),
|
|
4758
|
+
propsTooltip: {
|
|
4759
|
+
label: s("statusBar.pending", { count: u }),
|
|
4760
|
+
simple: !0
|
|
4761
|
+
},
|
|
4762
|
+
onClick: () => {
|
|
4763
|
+
o?.cancelAsync();
|
|
4764
|
+
}
|
|
4765
|
+
})
|
|
4766
|
+
});
|
|
4767
|
+
});
|
|
4768
|
+
ci.displayName = "PendingStatus";
|
|
4769
|
+
var li = V(B((e, t) => {
|
|
4770
|
+
let { style: n, className: r, children: i, childrenEnd: o, items: s, ...c } = e, l = wt(null);
|
|
4700
4771
|
U(() => {
|
|
4701
4772
|
let e = (e) => e.preventDefault();
|
|
4702
4773
|
return l.current?.addEventListener("wheel", e, { passive: !1 }), () => {
|
|
4703
4774
|
l.current?.removeEventListener("wheel", e);
|
|
4704
4775
|
};
|
|
4705
4776
|
}, []);
|
|
4706
|
-
let u =
|
|
4777
|
+
let u = lt(), d = We().getMode()?.mode === "point", f = z(), p = u.getMode(), h = wt(p);
|
|
4707
4778
|
h.current = p;
|
|
4708
4779
|
let g = ((e, t) => {
|
|
4709
4780
|
let [n, r] = G(e);
|
|
@@ -4720,8 +4791,8 @@ var $r = V(B((e, t) => {
|
|
|
4720
4791
|
g,
|
|
4721
4792
|
d,
|
|
4722
4793
|
f
|
|
4723
|
-
]), v = g?.cancel, y = g?.done, b = !(!v && !y), x =
|
|
4724
|
-
|
|
4794
|
+
]), v = g?.cancel, y = g?.done, b = !(!v && !y), x = wt(null), [S, C] = G(null), w = b && S?.message === _;
|
|
4795
|
+
St(() => {
|
|
4725
4796
|
if (!b) return void (S && C(null));
|
|
4726
4797
|
if (w) return;
|
|
4727
4798
|
let e = x.current, t = l.current;
|
|
@@ -4742,7 +4813,7 @@ var $r = V(B((e, t) => {
|
|
|
4742
4813
|
e.button === 0 && e.preventDefault();
|
|
4743
4814
|
}, t = (e) => {
|
|
4744
4815
|
let t = h.current;
|
|
4745
|
-
t && t.key === g?.key &&
|
|
4816
|
+
t && t.key === g?.key && it(t, e);
|
|
4746
4817
|
};
|
|
4747
4818
|
return X("div", {
|
|
4748
4819
|
style: {
|
|
@@ -4778,7 +4849,7 @@ var $r = V(B((e, t) => {
|
|
|
4778
4849
|
onClick: () => t("done"),
|
|
4779
4850
|
sx: { marginRight: "4px" }
|
|
4780
4851
|
}),
|
|
4781
|
-
Y(
|
|
4852
|
+
Y(yn, {
|
|
4782
4853
|
ref: x,
|
|
4783
4854
|
component: "div",
|
|
4784
4855
|
sx: {
|
|
@@ -4813,7 +4884,7 @@ var $r = V(B((e, t) => {
|
|
|
4813
4884
|
alignItems: "center",
|
|
4814
4885
|
gap: 1
|
|
4815
4886
|
},
|
|
4816
|
-
children: Y(
|
|
4887
|
+
children: Y(ei, { style: {
|
|
4817
4888
|
overflow: "hidden",
|
|
4818
4889
|
minWidth: 0,
|
|
4819
4890
|
flex: "1 1 auto",
|
|
@@ -4825,7 +4896,7 @@ var $r = V(B((e, t) => {
|
|
|
4825
4896
|
display: "flex",
|
|
4826
4897
|
alignItems: "center"
|
|
4827
4898
|
},
|
|
4828
|
-
children: Y(
|
|
4899
|
+
children: Y(Xr, { sx: { minWidth: {
|
|
4829
4900
|
xs: 0,
|
|
4830
4901
|
sm: "190px"
|
|
4831
4902
|
} } })
|
|
@@ -4853,8 +4924,9 @@ var $r = V(B((e, t) => {
|
|
|
4853
4924
|
style: { display: w ? "none" : "contents" },
|
|
4854
4925
|
children: [
|
|
4855
4926
|
i,
|
|
4856
|
-
Y(
|
|
4857
|
-
Y(
|
|
4927
|
+
Y(oi, {}),
|
|
4928
|
+
Y(si, {}),
|
|
4929
|
+
Y(ci, {}),
|
|
4858
4930
|
ee,
|
|
4859
4931
|
D,
|
|
4860
4932
|
te
|
|
@@ -4870,9 +4942,9 @@ var $r = V(B((e, t) => {
|
|
|
4870
4942
|
]
|
|
4871
4943
|
});
|
|
4872
4944
|
}));
|
|
4873
|
-
|
|
4874
|
-
var
|
|
4875
|
-
let { className: n, style: r, disabled: i, names: o, workbook: s, restoreFocus: c, readonly: l = !1, disabled: u, propsCommandPopupButton: d, ...f } = e, p =
|
|
4945
|
+
li.displayName = "StatusBar";
|
|
4946
|
+
var ui = V(B((e, t) => {
|
|
4947
|
+
let { className: n, style: r, disabled: i, names: o, workbook: s, restoreFocus: c, readonly: l = !1, disabled: u, propsCommandPopupButton: d, ...f } = e, p = gt(), h = z(), [g, _] = G(null), [v, y] = G(null), [b, x] = G(!1), { reference: S } = dt({ parentFloat: d?.parentFloat }), [C, w] = G(() => l || !s.getProtection().isStructureAllowed()), T = () => g?.text ?? "", [E, D] = G(T), ee = L(() => {
|
|
4876
4948
|
if (S?.closeAll(), !E) {
|
|
4877
4949
|
let e = T();
|
|
4878
4950
|
return D(T()), e;
|
|
@@ -4911,7 +4983,7 @@ var ei = V(B((e, t) => {
|
|
|
4911
4983
|
let e = o.getByName(E);
|
|
4912
4984
|
C || e || (e = o.addFormula(E, n.toString())), e && _({ text: e.getName() });
|
|
4913
4985
|
} catch (e) {
|
|
4914
|
-
D(T()), p.showMessage?.(e.message, { type:
|
|
4986
|
+
D(T()), p.showMessage?.(e.message, { type: Qe.Error });
|
|
4915
4987
|
}
|
|
4916
4988
|
return null;
|
|
4917
4989
|
}, [
|
|
@@ -4971,7 +5043,7 @@ var ei = V(B((e, t) => {
|
|
|
4971
5043
|
y(null), te();
|
|
4972
5044
|
}
|
|
4973
5045
|
});
|
|
4974
|
-
let A = L(
|
|
5046
|
+
let A = L(Dn.debounce(te, v ? 0 : 120), [v]);
|
|
4975
5047
|
N(s.getSelectedWorksheet()?.getSelection(), {
|
|
4976
5048
|
onChange: (e) => {
|
|
4977
5049
|
A();
|
|
@@ -4980,9 +5052,9 @@ var ei = V(B((e, t) => {
|
|
|
4980
5052
|
y(e.getAdjusting());
|
|
4981
5053
|
}
|
|
4982
5054
|
});
|
|
4983
|
-
let j =
|
|
5055
|
+
let j = wt(null), re = yt(), ie = H((e) => {
|
|
4984
5056
|
let { onMouseDown: t, onMouseUp: n, ...r } = e;
|
|
4985
|
-
return Y(
|
|
5057
|
+
return Y(on, {
|
|
4986
5058
|
...r,
|
|
4987
5059
|
sx: {
|
|
4988
5060
|
...r?.sx,
|
|
@@ -4990,7 +5062,7 @@ var ei = V(B((e, t) => {
|
|
|
4990
5062
|
flex: "1 1 100%"
|
|
4991
5063
|
},
|
|
4992
5064
|
disableRipple: !0,
|
|
4993
|
-
children: Y(
|
|
5065
|
+
children: Y(sn, {
|
|
4994
5066
|
inputMode: "text",
|
|
4995
5067
|
inputProps: {
|
|
4996
5068
|
tabIndex: 0,
|
|
@@ -5061,7 +5133,7 @@ var ei = V(B((e, t) => {
|
|
|
5061
5133
|
let t = o.getItems({ address: e })?.[0];
|
|
5062
5134
|
t && await t?.select(), await s.getRanges(e)?.select({ autoFocus: !0 });
|
|
5063
5135
|
} catch (e) {
|
|
5064
|
-
p.showMessage?.(e.message, { type:
|
|
5136
|
+
p.showMessage?.(e.message, { type: Qe.Error });
|
|
5065
5137
|
}
|
|
5066
5138
|
}, [
|
|
5067
5139
|
o,
|
|
@@ -5072,7 +5144,7 @@ var ei = V(B((e, t) => {
|
|
|
5072
5144
|
x(!0);
|
|
5073
5145
|
}, 0);
|
|
5074
5146
|
let t = {
|
|
5075
|
-
variant:
|
|
5147
|
+
variant: Ye.Menuitem,
|
|
5076
5148
|
groupKey: d?.groupKey
|
|
5077
5149
|
}, n = (s?.getSelectedWorksheet()?.getNames() ?? o).getItems();
|
|
5078
5150
|
n = n.sort((e, t) => {
|
|
@@ -5089,11 +5161,11 @@ var ei = V(B((e, t) => {
|
|
|
5089
5161
|
let o = n[e], s = o.getRanges?.();
|
|
5090
5162
|
if (!s || o.isHidden()) continue;
|
|
5091
5163
|
let c = o.getType() === "table";
|
|
5092
|
-
c !== l && (l !== null && a.push(Y(q, { orientation: "horizontal" }, `type-divider-${a.length}`)), a.push(Y(
|
|
5164
|
+
c !== l && (l !== null && a.push(Y(q, { orientation: "horizontal" }, `type-divider-${a.length}`)), a.push(Y(Mt, {
|
|
5093
5165
|
variant: "subtitle2",
|
|
5094
5166
|
sx: { paddingLeft: "16px" },
|
|
5095
5167
|
children: h(c ? "named.groupTables" : "named.groupRanges")
|
|
5096
|
-
}, `type-header-${a.length}`)), l = c), c ? a.push(i ?
|
|
5168
|
+
}, `type-header-${a.length}`)), l = c), c ? a.push(i ? xt(Et, {
|
|
5097
5169
|
...t,
|
|
5098
5170
|
key: "namedItem-" + a.length,
|
|
5099
5171
|
groupKey: "namedItem",
|
|
@@ -5103,7 +5175,7 @@ var ei = V(B((e, t) => {
|
|
|
5103
5175
|
quickCommand: "selectNamed",
|
|
5104
5176
|
disabled: u ?? !s,
|
|
5105
5177
|
icon: "TableInsert"
|
|
5106
|
-
}) :
|
|
5178
|
+
}) : xt(K, {
|
|
5107
5179
|
...t,
|
|
5108
5180
|
key: "namedItem-" + a.length,
|
|
5109
5181
|
commandKey: "selectNamed",
|
|
@@ -5112,7 +5184,7 @@ var ei = V(B((e, t) => {
|
|
|
5112
5184
|
label: o.getName(),
|
|
5113
5185
|
disabled: u ?? !s,
|
|
5114
5186
|
icon: "TableInsert"
|
|
5115
|
-
})) : a.push(r ?
|
|
5187
|
+
})) : a.push(r ? xt(Et, {
|
|
5116
5188
|
...t,
|
|
5117
5189
|
key: "named-" + a.length,
|
|
5118
5190
|
groupKey: "namedItem",
|
|
@@ -5122,7 +5194,7 @@ var ei = V(B((e, t) => {
|
|
|
5122
5194
|
quickCommand: "selectNamed",
|
|
5123
5195
|
disabled: u ?? !o.getRanges?.(),
|
|
5124
5196
|
icon: "NamedRange"
|
|
5125
|
-
}) :
|
|
5197
|
+
}) : xt(K, {
|
|
5126
5198
|
...t,
|
|
5127
5199
|
key: "named-" + a.length,
|
|
5128
5200
|
commandKey: "selectNamed",
|
|
@@ -5147,7 +5219,7 @@ var ei = V(B((e, t) => {
|
|
|
5147
5219
|
groupKey: "namedItem",
|
|
5148
5220
|
commandKey: "addNamedReference"
|
|
5149
5221
|
}),
|
|
5150
|
-
a && a.length > 0 ? X(
|
|
5222
|
+
a && a.length > 0 ? X(tn, { children: [C ? null : Y(q, { orientation: "horizontal" }), Y(Z, {
|
|
5151
5223
|
sx: {
|
|
5152
5224
|
overflowX: "hidden",
|
|
5153
5225
|
overflowY: "auto",
|
|
@@ -5164,7 +5236,7 @@ var ei = V(B((e, t) => {
|
|
|
5164
5236
|
})
|
|
5165
5237
|
]
|
|
5166
5238
|
});
|
|
5167
|
-
return
|
|
5239
|
+
return Gt({
|
|
5168
5240
|
...e,
|
|
5169
5241
|
children: p
|
|
5170
5242
|
});
|
|
@@ -5175,7 +5247,7 @@ var ei = V(B((e, t) => {
|
|
|
5175
5247
|
g,
|
|
5176
5248
|
C,
|
|
5177
5249
|
h
|
|
5178
|
-
]), se =
|
|
5250
|
+
]), se = ft(t, () => ({ focus(e) {
|
|
5179
5251
|
j.current?.focus(e);
|
|
5180
5252
|
} }), []), ce = m([se, t]);
|
|
5181
5253
|
return Y(Z, {
|
|
@@ -5190,7 +5262,7 @@ var ei = V(B((e, t) => {
|
|
|
5190
5262
|
...r
|
|
5191
5263
|
},
|
|
5192
5264
|
ref: ce,
|
|
5193
|
-
children: Y(
|
|
5265
|
+
children: Y(Pt, {
|
|
5194
5266
|
className: "outer-button",
|
|
5195
5267
|
sx: {
|
|
5196
5268
|
display: "flex",
|
|
@@ -5204,10 +5276,10 @@ var ei = V(B((e, t) => {
|
|
|
5204
5276
|
propsButton: { sx: { backgroundColor: "var(--sxl-color-input, var(--sxl-color-base-100))" } },
|
|
5205
5277
|
tabIndex: -1,
|
|
5206
5278
|
outlined: { color: (e) => i ? e.palette.action.disabled : "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))" },
|
|
5207
|
-
|
|
5279
|
+
renderPopupPanel: oe,
|
|
5208
5280
|
onPopupOpen: () => x(!0),
|
|
5209
5281
|
onPopupClose: () => x(!1),
|
|
5210
|
-
|
|
5282
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
5211
5283
|
title: t || b ? "" : h("nameBox.title"),
|
|
5212
5284
|
disabled: t,
|
|
5213
5285
|
leaveDelay: 0,
|
|
@@ -5218,15 +5290,15 @@ var ei = V(B((e, t) => {
|
|
|
5218
5290
|
})
|
|
5219
5291
|
});
|
|
5220
5292
|
}));
|
|
5221
|
-
|
|
5222
|
-
var
|
|
5293
|
+
ui.displayName = "NamedCollectionEditor";
|
|
5294
|
+
var di = Qt(On("studio:namedDetailsTaskPane", () => import("./DaxpbAF1ShkT7hNU.mjs"), { select: (e) => ({ default: e.NamedDetailsTaskPane }) }).load), fi = () => {
|
|
5223
5295
|
pe.registerTaskPane({
|
|
5224
5296
|
key: "managedNames",
|
|
5225
5297
|
getTitle: () => "Names",
|
|
5226
5298
|
getIcon: () => "NamedManager",
|
|
5227
|
-
component:
|
|
5299
|
+
component: di
|
|
5228
5300
|
}, !0);
|
|
5229
|
-
},
|
|
5301
|
+
}, pi = "formula-bar", mi = (e) => {
|
|
5230
5302
|
let { workbook: t, editable: n, disabled: r, lineHeight: i, inputMode: a, enterKeyHint: o, hintPlacement: s } = e, [c, l] = G(t.getSelectedWorksheet()), [u, d] = G(c?.getSelectedCell().getCoords()), [f, p] = G(0), [m, h] = G(() => !!c && !c.getSelectedCell().isEditAllowed()), g = t.getProtection().isReadOnly(), _ = !!r || m || g || !c;
|
|
5231
5303
|
N(t, {
|
|
5232
5304
|
onSheetsChange: (e) => {
|
|
@@ -5252,11 +5324,11 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5252
5324
|
p((e) => e + 1);
|
|
5253
5325
|
});
|
|
5254
5326
|
}, [c, u]);
|
|
5255
|
-
let v =
|
|
5327
|
+
let v = _t(n, (e) => e.getSession()), y = !!v, b = L(() => {
|
|
5256
5328
|
n?.cancel();
|
|
5257
5329
|
}, [n]), x = L(() => {
|
|
5258
5330
|
n?.commit();
|
|
5259
|
-
}, [n]), S = W(() => c ?
|
|
5331
|
+
}, [n]), S = W(() => c ? ke({
|
|
5260
5332
|
selection: c.getSelection(),
|
|
5261
5333
|
fillNone: !0
|
|
5262
5334
|
}) : null, [c]), C = W(() => n && c ? {
|
|
@@ -5272,9 +5344,9 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5272
5344
|
key: "formula:editor",
|
|
5273
5345
|
name: "editor"
|
|
5274
5346
|
},
|
|
5275
|
-
contributor: { dynamic:
|
|
5347
|
+
contributor: { dynamic: Oe },
|
|
5276
5348
|
data: C
|
|
5277
|
-
} : null, [C]), T = W(() => y || !c ? null :
|
|
5349
|
+
} : null, [C]), T = W(() => y || !c ? null : Fe(c.getRange(u).getCell()), [
|
|
5278
5350
|
c,
|
|
5279
5351
|
u,
|
|
5280
5352
|
y,
|
|
@@ -5296,10 +5368,10 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5296
5368
|
flexDirection: "row",
|
|
5297
5369
|
gap: 4
|
|
5298
5370
|
},
|
|
5299
|
-
children: Y(
|
|
5371
|
+
children: Y(Mn, {
|
|
5300
5372
|
editable: n,
|
|
5301
5373
|
readOnly: _,
|
|
5302
|
-
editorId:
|
|
5374
|
+
editorId: pi,
|
|
5303
5375
|
idleClean: () => c.getRange(u).getCell(),
|
|
5304
5376
|
mapClean: (e) => e ? () => e().createCell({ style: {
|
|
5305
5377
|
font: {
|
|
@@ -5343,11 +5415,8 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5343
5415
|
s
|
|
5344
5416
|
])
|
|
5345
5417
|
};
|
|
5346
|
-
},
|
|
5347
|
-
|
|
5348
|
-
...e
|
|
5349
|
-
}), si = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", ci = V(B((e, t) => {
|
|
5350
|
-
let { className: n, style: r, workbook: i, editable: o, showNamedCollectionEditor: s = !0, propsNamedCollectionEditor: c, renderNamedCollectionEditor: l = oi, disabled: u, showCalculateNow: d = !0, placement: f = "top", ...p } = e, m = i, { sheet: h, disabled: g, isEditing: _, cancel: v, commit: y, editorSpec: b, cellEditor: x } = ii({
|
|
5418
|
+
}, hi = "_formula-bar_uer84_1", gi = (e) => Y(ui, { ...e }), _i = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", vi = V(B((e, t) => {
|
|
5419
|
+
let { className: n, style: r, workbook: i, editable: o, showNamedCollectionEditor: s = !0, propsNamedCollectionEditor: c, renderNamedCollectionEditor: l = gi, disabled: u, showCalculateNow: d = !0, placement: f = "top", ...p } = e, m = i, { sheet: h, disabled: g, isEditing: _, cancel: v, commit: y, editorSpec: b, cellEditor: x } = mi({
|
|
5351
5420
|
workbook: m,
|
|
5352
5421
|
editable: o,
|
|
5353
5422
|
disabled: u,
|
|
@@ -5363,18 +5432,22 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5363
5432
|
}, [20]), se = L((e, { size: t }) => {
|
|
5364
5433
|
let n = Math.floor(t.height / 20);
|
|
5365
5434
|
ae(n);
|
|
5366
|
-
}, [20]), ce =
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5435
|
+
}, [20]), ce = wt(null), le = W(() => s ? Y(et, {
|
|
5436
|
+
render: l,
|
|
5437
|
+
props: {
|
|
5438
|
+
ref: ce,
|
|
5439
|
+
names: m.getNames(),
|
|
5440
|
+
workbook: m,
|
|
5441
|
+
...c
|
|
5442
|
+
}
|
|
5443
|
+
}) : null, [
|
|
5371
5444
|
l,
|
|
5372
5445
|
c,
|
|
5373
5446
|
s,
|
|
5374
5447
|
h,
|
|
5375
5448
|
m,
|
|
5376
5449
|
g
|
|
5377
|
-
]), ue = W(() => X(
|
|
5450
|
+
]), ue = W(() => X(dn, {
|
|
5378
5451
|
elevation: 0,
|
|
5379
5452
|
sx: {
|
|
5380
5453
|
display: "flex",
|
|
@@ -5382,7 +5455,7 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5382
5455
|
userSelect: "none",
|
|
5383
5456
|
flexGrow: 0,
|
|
5384
5457
|
backgroundColor: "var(--sxl-color-input, var(--sxl-color-base-100))",
|
|
5385
|
-
border: (e) => `solid ${g ? e.palette.action.disabled :
|
|
5458
|
+
border: (e) => `solid ${g ? e.palette.action.disabled : _i} 1px`
|
|
5386
5459
|
},
|
|
5387
5460
|
children: [
|
|
5388
5461
|
te ? Y(J, {
|
|
@@ -5478,13 +5551,13 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5478
5551
|
O,
|
|
5479
5552
|
te,
|
|
5480
5553
|
w
|
|
5481
|
-
]), de =
|
|
5482
|
-
className: "formula-bar " +
|
|
5554
|
+
]), de = Cn(), [fe, pe] = G(!1), me = W(() => X(Z, {
|
|
5555
|
+
className: "formula-bar " + hi,
|
|
5483
5556
|
sx: {
|
|
5484
5557
|
gap: (e) => e.spacing(.5),
|
|
5485
5558
|
alignItems: "start"
|
|
5486
5559
|
},
|
|
5487
|
-
children: [ue, X(
|
|
5560
|
+
children: [ue, X(dn, {
|
|
5488
5561
|
elevation: 0,
|
|
5489
5562
|
sx: {
|
|
5490
5563
|
display: "flex",
|
|
@@ -5500,7 +5573,7 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5500
5573
|
boxShadow: "none",
|
|
5501
5574
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
5502
5575
|
backgroundColor: "var(--sxl-color-input, var(--sxl-color-base-100))",
|
|
5503
|
-
border: (e) => `solid ${g ? e.palette.action.disabled :
|
|
5576
|
+
border: (e) => `solid ${g ? e.palette.action.disabled : _i} 1px`,
|
|
5504
5577
|
"& textarea": { color: (e) => g ? `${e.palette.text.disabled} !important` : e.palette.text.primary },
|
|
5505
5578
|
"& .react-resizable-handle": {
|
|
5506
5579
|
width: "100%",
|
|
@@ -5538,7 +5611,7 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5538
5611
|
paddingLeft: (e) => e.spacing(1),
|
|
5539
5612
|
paddingRight: (e) => e.spacing(1)
|
|
5540
5613
|
},
|
|
5541
|
-
children: Y(
|
|
5614
|
+
children: Y(tt, {
|
|
5542
5615
|
height: k,
|
|
5543
5616
|
draggableOpts: { grid: [20, 20] },
|
|
5544
5617
|
minConstraints: [20, 20],
|
|
@@ -5603,7 +5676,7 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5603
5676
|
20,
|
|
5604
5677
|
O,
|
|
5605
5678
|
f
|
|
5606
|
-
]), he = W(() => le || me ? !le && me ? me : le && !me ? le : Y(
|
|
5679
|
+
]), he = W(() => le || me ? !le && me ? me : le && !me ? le : Y(tn, { children: Y(nt, {
|
|
5607
5680
|
fixedPane: "before",
|
|
5608
5681
|
minBefore: "165px",
|
|
5609
5682
|
minAfter: "200px",
|
|
@@ -5618,14 +5691,14 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5618
5691
|
} },
|
|
5619
5692
|
elementBefore: le ?? void 0,
|
|
5620
5693
|
elementAfter: me
|
|
5621
|
-
}) }) : null, [le, me]), M =
|
|
5694
|
+
}) }) : null, [le, me]), M = wt(o);
|
|
5622
5695
|
M.current = o;
|
|
5623
|
-
let ge =
|
|
5696
|
+
let ge = ft(t, () => ({
|
|
5624
5697
|
isFormulaBarElement: () => !0,
|
|
5625
5698
|
getNamedCollectionEditorElement: () => ce.current,
|
|
5626
5699
|
getEditable: () => M.current ?? null
|
|
5627
5700
|
}), []);
|
|
5628
|
-
return Y(
|
|
5701
|
+
return Y(Xe, {
|
|
5629
5702
|
spec: b,
|
|
5630
5703
|
elementRef: ge,
|
|
5631
5704
|
region: !0,
|
|
@@ -5643,15 +5716,15 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5643
5716
|
})
|
|
5644
5717
|
});
|
|
5645
5718
|
}));
|
|
5646
|
-
|
|
5647
|
-
var
|
|
5719
|
+
vi.displayName = "FormulaBar";
|
|
5720
|
+
var yi = (e) => Y(J, {
|
|
5648
5721
|
onMouseDown: (e) => {
|
|
5649
5722
|
e.button === 0 && e.preventDefault();
|
|
5650
5723
|
},
|
|
5651
5724
|
...e
|
|
5652
|
-
}),
|
|
5725
|
+
}), bi = V((e) => {
|
|
5653
5726
|
let { isEditing: t, disabled: n, keyboardShown: r, inputMode: i, showCancelCommit: a, onInputMode: o, onDate: s, onTab: c, onEnter: l, onCancel: u, onCommit: d } = e, f = z();
|
|
5654
|
-
return X(
|
|
5727
|
+
return X(dn, {
|
|
5655
5728
|
elevation: 2,
|
|
5656
5729
|
className: "formula-bar-input-toolbar",
|
|
5657
5730
|
role: "toolbar",
|
|
@@ -5670,7 +5743,7 @@ var li = (e) => Y(J, {
|
|
|
5670
5743
|
border: "1px solid var(--sxl-color-elevated-border, transparent)"
|
|
5671
5744
|
},
|
|
5672
5745
|
children: [
|
|
5673
|
-
Y(
|
|
5746
|
+
Y(yi, {
|
|
5674
5747
|
"aria-label": "input-mode-text",
|
|
5675
5748
|
selected: r && i === "text",
|
|
5676
5749
|
icon: Y(F, { iconKey: "KeyboardLetters" }),
|
|
@@ -5681,7 +5754,7 @@ var li = (e) => Y(J, {
|
|
|
5681
5754
|
disabled: n,
|
|
5682
5755
|
onClick: () => o("text")
|
|
5683
5756
|
}),
|
|
5684
|
-
Y(
|
|
5757
|
+
Y(yi, {
|
|
5685
5758
|
"aria-label": "input-mode-decimal",
|
|
5686
5759
|
selected: r && i === "decimal",
|
|
5687
5760
|
icon: Y(F, { iconKey: "KeyboardNumbers" }),
|
|
@@ -5692,7 +5765,7 @@ var li = (e) => Y(J, {
|
|
|
5692
5765
|
disabled: n,
|
|
5693
5766
|
onClick: () => o("decimal")
|
|
5694
5767
|
}),
|
|
5695
|
-
Y(
|
|
5768
|
+
Y(yi, {
|
|
5696
5769
|
"aria-label": "insert-date",
|
|
5697
5770
|
icon: Y(F, { iconKey: "KeyboardDate" }),
|
|
5698
5771
|
propsTooltip: {
|
|
@@ -5703,7 +5776,7 @@ var li = (e) => Y(J, {
|
|
|
5703
5776
|
onClick: s
|
|
5704
5777
|
}),
|
|
5705
5778
|
Y(Z, { sx: { flex: "1 1 auto" } }),
|
|
5706
|
-
Y(
|
|
5779
|
+
Y(yi, {
|
|
5707
5780
|
"aria-label": "tab-formula-edit",
|
|
5708
5781
|
icon: Y(F, { iconKey: "KeyboardTab" }),
|
|
5709
5782
|
propsTooltip: {
|
|
@@ -5713,7 +5786,7 @@ var li = (e) => Y(J, {
|
|
|
5713
5786
|
disabled: n,
|
|
5714
5787
|
onClick: c
|
|
5715
5788
|
}),
|
|
5716
|
-
Y(
|
|
5789
|
+
Y(yi, {
|
|
5717
5790
|
"aria-label": "enter-formula-edit",
|
|
5718
5791
|
icon: Y(F, { iconKey: "KeyboardEnter" }),
|
|
5719
5792
|
propsTooltip: {
|
|
@@ -5723,9 +5796,9 @@ var li = (e) => Y(J, {
|
|
|
5723
5796
|
disabled: n,
|
|
5724
5797
|
onClick: l
|
|
5725
5798
|
}),
|
|
5726
|
-
a ? X(
|
|
5799
|
+
a ? X(tn, { children: [
|
|
5727
5800
|
Y(Z, { sx: { flex: "1 1 auto" } }),
|
|
5728
|
-
Y(
|
|
5801
|
+
Y(yi, {
|
|
5729
5802
|
"aria-label": "cancel-formula-edit",
|
|
5730
5803
|
color: "warning",
|
|
5731
5804
|
icon: Y(F, { iconKey: "CloseError" }),
|
|
@@ -5736,7 +5809,7 @@ var li = (e) => Y(J, {
|
|
|
5736
5809
|
disabled: n || !t,
|
|
5737
5810
|
onClick: u
|
|
5738
5811
|
}),
|
|
5739
|
-
Y(
|
|
5812
|
+
Y(yi, {
|
|
5740
5813
|
"aria-label": "commit-formula-edit",
|
|
5741
5814
|
color: "primary",
|
|
5742
5815
|
icon: Y(F, { iconKey: "CheckSuccess" }),
|
|
@@ -5751,8 +5824,8 @@ var li = (e) => Y(J, {
|
|
|
5751
5824
|
]
|
|
5752
5825
|
});
|
|
5753
5826
|
});
|
|
5754
|
-
|
|
5755
|
-
var
|
|
5827
|
+
bi.displayName = "MobileInputToolbar";
|
|
5828
|
+
var xi = (e) => {
|
|
5756
5829
|
let { sx: t, ...n } = e;
|
|
5757
5830
|
return Y(J, {
|
|
5758
5831
|
outlined: !1,
|
|
@@ -5767,10 +5840,10 @@ var di = (e) => {
|
|
|
5767
5840
|
},
|
|
5768
5841
|
...n
|
|
5769
5842
|
});
|
|
5770
|
-
},
|
|
5771
|
-
let { className: n, style: r, workbook: i, editable: o, disabled: s, showCancelCommit: c, showNamedCollectionEditor: l, propsNamedCollectionEditor: u, renderNamedCollectionEditor: d, showCalculateNow: f, placement: p, ...m } = e, h = i, g =
|
|
5772
|
-
U(() => g.registerEditor(
|
|
5773
|
-
let { sheet: v, disabled: y, isEditing: b, cancel: x, commit: S, editorSpec: C, cellEditor: w } =
|
|
5843
|
+
}, Si = V(B((e, t) => {
|
|
5844
|
+
let { className: n, style: r, workbook: i, editable: o, disabled: s, showCancelCommit: c, showNamedCollectionEditor: l, propsNamedCollectionEditor: u, renderNamedCollectionEditor: d, showCalculateNow: f, placement: p, ...m } = e, h = i, g = bt(), _ = g.getInputMode();
|
|
5845
|
+
U(() => g.registerEditor(pi), [g]);
|
|
5846
|
+
let { sheet: v, disabled: y, isEditing: b, cancel: x, commit: S, editorSpec: C, cellEditor: w } = mi({
|
|
5774
5847
|
workbook: h,
|
|
5775
5848
|
editable: o,
|
|
5776
5849
|
disabled: s,
|
|
@@ -5778,9 +5851,9 @@ var di = (e) => {
|
|
|
5778
5851
|
inputMode: _,
|
|
5779
5852
|
enterKeyHint: "enter",
|
|
5780
5853
|
hintPlacement: "above"
|
|
5781
|
-
}), [T] = R(["insertFunctionDialog"]), E = z(), [D, ee] = G(!1), [te, O] = G(!1), k = D ? 5 : 1, A =
|
|
5854
|
+
}), [T] = R(["insertFunctionDialog"]), E = z(), [D, ee] = G(!1), [te, O] = G(!1), k = D ? 5 : 1, A = wt(o);
|
|
5782
5855
|
A.current = o;
|
|
5783
|
-
let j =
|
|
5856
|
+
let j = ft(t, () => ({
|
|
5784
5857
|
isFormulaBarElement: () => !0,
|
|
5785
5858
|
getNamedCollectionEditorElement: () => null,
|
|
5786
5859
|
getEditable: () => A.current ?? null
|
|
@@ -5789,8 +5862,8 @@ var di = (e) => {
|
|
|
5789
5862
|
let t = re();
|
|
5790
5863
|
if (!t) return;
|
|
5791
5864
|
let n = t.inputMode !== e;
|
|
5792
|
-
t.inputMode = e, document.activeElement === t ? !n &&
|
|
5793
|
-
}, [g]), ae =
|
|
5865
|
+
t.inputMode = e, document.activeElement === t ? !n && at() || (t.blur(), t.focus()) : t.focus();
|
|
5866
|
+
}, [g]), ae = wt(null), oe = L(() => {
|
|
5794
5867
|
let e = ae.current;
|
|
5795
5868
|
if (e) try {
|
|
5796
5869
|
e.showPicker();
|
|
@@ -5803,14 +5876,14 @@ var di = (e) => {
|
|
|
5803
5876
|
let n = o, r = re();
|
|
5804
5877
|
if (!t || !n || !r) return;
|
|
5805
5878
|
let [i, a, s] = t.split("-").map(Number), c = new Date(i, a - 1, s).toLocaleDateString(h.getLocale() ?? void 0);
|
|
5806
|
-
if (n.getSession()) r.focus(),
|
|
5879
|
+
if (n.getSession()) r.focus(), $e.replaceRangeText(r, r.selectionStart, r.selectionEnd, c);
|
|
5807
5880
|
else {
|
|
5808
5881
|
if (!n.startEdit(n.getAnchor().getCoords(), {
|
|
5809
5882
|
mode: "enter",
|
|
5810
5883
|
autoFocus: !1,
|
|
5811
5884
|
dirty: c
|
|
5812
5885
|
})) return;
|
|
5813
|
-
n.getSession()?.setActiveEditorId(
|
|
5886
|
+
n.getSession()?.setActiveEditorId(pi), r.focus();
|
|
5814
5887
|
}
|
|
5815
5888
|
}, [o, h]), ce = L((e) => {
|
|
5816
5889
|
let t = o;
|
|
@@ -5819,18 +5892,18 @@ var di = (e) => {
|
|
|
5819
5892
|
t && v?.getSelection().traverse(e);
|
|
5820
5893
|
};
|
|
5821
5894
|
!0 !== n && !1 !== n ? n.then(r) : r(n);
|
|
5822
|
-
}, [o, v]), le = L(() =>
|
|
5895
|
+
}, [o, v]), le = L(() => it({
|
|
5823
5896
|
key: "edit",
|
|
5824
5897
|
cancel: x,
|
|
5825
5898
|
done: S
|
|
5826
|
-
}, "cancel"), [x, S]), ue = L(() =>
|
|
5899
|
+
}, "cancel"), [x, S]), ue = L(() => it({
|
|
5827
5900
|
key: "edit",
|
|
5828
5901
|
cancel: x,
|
|
5829
5902
|
done: S
|
|
5830
|
-
}, "done"), [x, S]), de = L(() => ce(
|
|
5831
|
-
e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.which !== I.Enter && e.which !== I.Tab || e.target === re() && (e.preventDefault(), e.stopPropagation(), ce(e.which === I.Tab ?
|
|
5903
|
+
}, "done"), [x, S]), de = L(() => ce(En.Row), [ce]), fe = L(() => ce(En.Column), [ce]), pe = L((e) => {
|
|
5904
|
+
e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.which !== I.Enter && e.which !== I.Tab || e.target === re() && (e.preventDefault(), e.stopPropagation(), ce(e.which === I.Tab ? En.Row : En.Column));
|
|
5832
5905
|
}, [ce]);
|
|
5833
|
-
return Y(
|
|
5906
|
+
return Y(Xe, {
|
|
5834
5907
|
spec: C,
|
|
5835
5908
|
elementRef: j,
|
|
5836
5909
|
region: !0,
|
|
@@ -5854,7 +5927,7 @@ var di = (e) => {
|
|
|
5854
5927
|
alignItems: "flex-end",
|
|
5855
5928
|
gap: "4px"
|
|
5856
5929
|
},
|
|
5857
|
-
children: [Y(
|
|
5930
|
+
children: [Y(xi, {
|
|
5858
5931
|
disabled: !T || T.disabled(),
|
|
5859
5932
|
"aria-label": "commit-formula-function",
|
|
5860
5933
|
icon: Y(F, {
|
|
@@ -5868,7 +5941,7 @@ var di = (e) => {
|
|
|
5868
5941
|
onMouseDown: (e) => {
|
|
5869
5942
|
e.button === 0 && (T?.execute(), e.preventDefault());
|
|
5870
5943
|
}
|
|
5871
|
-
}), X(
|
|
5944
|
+
}), X(dn, {
|
|
5872
5945
|
elevation: 0,
|
|
5873
5946
|
sx: {
|
|
5874
5947
|
display: "flex",
|
|
@@ -5906,7 +5979,7 @@ var di = (e) => {
|
|
|
5906
5979
|
style: { height: 20 * k + "px" },
|
|
5907
5980
|
children: w
|
|
5908
5981
|
}),
|
|
5909
|
-
Y(
|
|
5982
|
+
Y(xi, {
|
|
5910
5983
|
"aria-label": "toggle-expand-formula-edit",
|
|
5911
5984
|
icon: Y(F, { iconKey: D ? "ExpandMore" : "ExpandLess" }),
|
|
5912
5985
|
propsTooltip: {
|
|
@@ -5947,7 +6020,7 @@ var di = (e) => {
|
|
|
5947
6020
|
pointerEvents: "none"
|
|
5948
6021
|
}
|
|
5949
6022
|
}),
|
|
5950
|
-
Y(
|
|
6023
|
+
Y(bi, {
|
|
5951
6024
|
isEditing: b,
|
|
5952
6025
|
disabled: y,
|
|
5953
6026
|
keyboardShown: g.isActive(),
|
|
@@ -5964,37 +6037,37 @@ var di = (e) => {
|
|
|
5964
6037
|
})
|
|
5965
6038
|
});
|
|
5966
6039
|
}));
|
|
5967
|
-
|
|
5968
|
-
var
|
|
6040
|
+
Si.displayName = "MobileFormulaBar";
|
|
6041
|
+
var Ci = Qt(On("studio:externalLinksTaskPane", () => import("./BGL3x0W74D7qZXlf.mjs"), { select: (e) => ({ default: e.ExternalLinksTaskPane }) }).load), wi = () => {
|
|
5969
6042
|
pe.registerTaskPane({
|
|
5970
6043
|
key: "externalLinks",
|
|
5971
6044
|
getTitle: () => "Workbook Links",
|
|
5972
6045
|
getIcon: () => "ExternalLinked",
|
|
5973
|
-
component:
|
|
6046
|
+
component: Ci
|
|
5974
6047
|
}, !0);
|
|
5975
|
-
},
|
|
6048
|
+
}, Ti = Qt(On("studio:commentsTaskPane", () => import("./BpVrgbVISiTDyFR3.mjs"), { select: (e) => ({ default: e.CommentsTaskPane }) }).load), Ei = () => {
|
|
5976
6049
|
pe.registerTaskPane({
|
|
5977
6050
|
key: "comments",
|
|
5978
|
-
getTitle: () =>
|
|
6051
|
+
getTitle: () => An(kn("comment.title")),
|
|
5979
6052
|
getIcon: () => "CommentEdit",
|
|
5980
|
-
component:
|
|
6053
|
+
component: Ti
|
|
5981
6054
|
}, !0);
|
|
5982
|
-
},
|
|
6055
|
+
}, Di = Qt(On("studio:anomaliesTaskPane", () => import("./CBzXksWnb-1gGEWZ.mjs"), { select: (e) => ({ default: e.AnomaliesTaskPane }) }).load), Oi = () => {
|
|
5983
6056
|
pe.registerTaskPane({
|
|
5984
6057
|
key: "anomalies",
|
|
5985
6058
|
getTitle: () => "Anomalies",
|
|
5986
6059
|
getIcon: () => "Find",
|
|
5987
|
-
component:
|
|
6060
|
+
component: Di
|
|
5988
6061
|
}, !0);
|
|
5989
|
-
}, $ = k.BuiltInOperatorNames,
|
|
6062
|
+
}, $ = k.BuiltInOperatorNames, ki = k.BuiltInSelectorNames, Ai = /* @__PURE__ */ new Set([$.Color, $.Icon]), ji = (e) => e ? typeof e == "string" ? e : e.getName() : null, Mi = {
|
|
5990
6063
|
number: oe.Number,
|
|
5991
6064
|
text: oe.String,
|
|
5992
6065
|
date: oe.Date
|
|
5993
|
-
},
|
|
6066
|
+
}, Ni = {
|
|
5994
6067
|
number: null,
|
|
5995
6068
|
text: null,
|
|
5996
|
-
date:
|
|
5997
|
-
},
|
|
6069
|
+
date: ki.Date
|
|
6070
|
+
}, Pi = {
|
|
5998
6071
|
number: [
|
|
5999
6072
|
$.EqualTo,
|
|
6000
6073
|
$.GreaterThan,
|
|
@@ -6017,11 +6090,11 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6017
6090
|
$.Between,
|
|
6018
6091
|
$.TimePeriod
|
|
6019
6092
|
]
|
|
6020
|
-
},
|
|
6021
|
-
let n =
|
|
6093
|
+
}, Fi = () => Object.values(E.BuiltInOperators), Ii = (e, t) => {
|
|
6094
|
+
let n = ji(e?.operator);
|
|
6022
6095
|
return n === $.InSet ? "values" : n !== null && t.has(n) ? "family" : "custom";
|
|
6023
|
-
},
|
|
6024
|
-
let { column: n, disabled: r, style: i, floatReference: a, propsChecklist: o, ...s } = e, c = z(), l =
|
|
6096
|
+
}, Li = V(B((e, t) => {
|
|
6097
|
+
let { column: n, disabled: r, style: i, floatReference: a, propsChecklist: o, ...s } = e, c = z(), l = pt(), u = n?.getFilter() ?? null, d = u?.getCondition() ?? null, f = d?.getOperator()?.getName() ?? null, p = !!d && (f === null || Ai.has(f)), m = ((e) => e.numbers > e.texts ? e.showsDates ? "date" : "number" : "text")(W(() => ((e) => {
|
|
6025
6098
|
if (!e) return {
|
|
6026
6099
|
numbers: 0,
|
|
6027
6100
|
texts: 0,
|
|
@@ -6038,38 +6111,38 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6038
6111
|
showsDates: r
|
|
6039
6112
|
};
|
|
6040
6113
|
})(u), [u])), g = c(m === "number" ? "filter.numberFilters" : m === "date" ? "filter.dateFilters" : "filter.textFilters"), w = c(m === "number" ? "filter.family.number" : m === "date" ? "filter.family.date" : "filter.family.text"), T = W(() => ((e, t, n) => {
|
|
6041
|
-
let r =
|
|
6114
|
+
let r = Mi[e], i = Pi[e], a = (e) => {
|
|
6042
6115
|
let t = i.indexOf(e.getName());
|
|
6043
6116
|
return t < 0 ? i.length : t;
|
|
6044
|
-
}, o = _(n), s =
|
|
6117
|
+
}, o = _(n), s = Fi().filter((e) => !b.includes(e.getName()) && !e.isCombinator?.() && (e.getAcceptsTypes?.()?.includes(r) ?? !1));
|
|
6045
6118
|
return s.sort((e, t) => a(e) - a(t) || o(e, t)), s.map((e) => v(Object.create(e), t));
|
|
6046
6119
|
})(m, g, l), [
|
|
6047
6120
|
m,
|
|
6048
6121
|
g,
|
|
6049
6122
|
l
|
|
6050
6123
|
]), D = W(() => new Set(T.map((e) => e.getName())), [T]), ee = W(() => ((e) => {
|
|
6051
|
-
let t = new Set(e.map((e) => e.getName())), n =
|
|
6124
|
+
let t = new Set(e.map((e) => e.getName())), n = Fi().filter((e) => !t.has(e.getName()) && !b.includes(e.getName()));
|
|
6052
6125
|
return [...e, ...n];
|
|
6053
6126
|
})(T), [T]), O = W(() => {
|
|
6054
6127
|
if (u) return (e) => u.getItems(e);
|
|
6055
|
-
}, [u]), [k] = G(() => p ? null : d ? d.toJSON() : null), [A, ne] = G(() => k ?
|
|
6128
|
+
}, [u]), [k] = G(() => p ? null : d ? d.toJSON() : null), [A, ne] = G(() => k ? Ii(k, D) : "values"), [j, re] = G(() => k && Ii(k, D) === "values" ? ji(k.selector) : ki.Display), [ie, ae] = G(() => k && Ii(k, D) === "values" ? k.param : null), [oe, se] = G(A === "values"), le = W(() => j ? E.Selectors.get(j) ?? null : null, [j]), ue = W(() => ({
|
|
6056
6129
|
selector: j,
|
|
6057
6130
|
operator: $.InSet,
|
|
6058
6131
|
param: ie ?? {},
|
|
6059
6132
|
includeBlanks: !1
|
|
6060
|
-
}), [j, ie]), de =
|
|
6133
|
+
}), [j, ie]), de = wt({
|
|
6061
6134
|
values: !1,
|
|
6062
6135
|
blanks: !0
|
|
6063
|
-
}), [fe, pe] = G(() => k &&
|
|
6136
|
+
}), [fe, pe] = G(() => k && Ii(k, D) === "family" ? k : null), [me, he] = G(() => k && Ii(k, D) === "custom" ? k : null), M = W(() => fe ? E.resolveInput(fe) : null, [fe]), ge = W(() => me ? E.resolveInput(me) : null, [me]), _e = A === "values" ? ue : A === "family" ? fe : me, ve = W(() => A === "values" ? E.resolveInput(ue) : A === "family" ? M : ge, [
|
|
6064
6137
|
A,
|
|
6065
6138
|
ue,
|
|
6066
6139
|
M,
|
|
6067
6140
|
ge
|
|
6068
6141
|
]), ye = ve ? ve.validate() : _e ? "unresolved" : null, be = W(() => ({
|
|
6069
6142
|
disabled: r,
|
|
6070
|
-
variant:
|
|
6143
|
+
variant: Ye.Menuitem
|
|
6071
6144
|
}), [r]), xe = H((e) => {
|
|
6072
|
-
let t = T[0] ?? null, n =
|
|
6145
|
+
let t = T[0] ?? null, n = Ni[m], r = n ? E.Selectors.get(n) ?? null : null;
|
|
6073
6146
|
return {
|
|
6074
6147
|
selector: n,
|
|
6075
6148
|
operator: t?.getName() ?? null,
|
|
@@ -6078,12 +6151,12 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6078
6151
|
};
|
|
6079
6152
|
}, [m, T]), Se = H((e, t) => {
|
|
6080
6153
|
if (!e || e.operator === t?.operator || e.selector) return e;
|
|
6081
|
-
let n =
|
|
6154
|
+
let n = ji(e.operator);
|
|
6082
6155
|
if (n === $.InSet) return {
|
|
6083
6156
|
...e,
|
|
6084
|
-
selector:
|
|
6157
|
+
selector: ki.Display
|
|
6085
6158
|
};
|
|
6086
|
-
let r = n !== null && D.has(n) ?
|
|
6159
|
+
let r = n !== null && D.has(n) ? Ni[m] : null;
|
|
6087
6160
|
if (!r) return e;
|
|
6088
6161
|
let i = ((e) => Object.values(E.BuiltInOperators).find((t) => t.getName() === e) ?? null)(n), a = E.Selectors.get(r) ?? null;
|
|
6089
6162
|
return {
|
|
@@ -6103,7 +6176,7 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6103
6176
|
ae(e);
|
|
6104
6177
|
}, []), Ee = H((e) => {
|
|
6105
6178
|
re(e);
|
|
6106
|
-
}, []), De =
|
|
6179
|
+
}, []), De = wt(/* @__PURE__ */ new Set()), Oe = W(() => ({ register: (e) => (De.current.add(e), () => {
|
|
6107
6180
|
De.current.delete(e);
|
|
6108
6181
|
}) }), []), [ke, Ae] = G(!1), je = H(() => {
|
|
6109
6182
|
let e = !0;
|
|
@@ -6150,7 +6223,7 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6150
6223
|
...e,
|
|
6151
6224
|
includeBlanks: t
|
|
6152
6225
|
};
|
|
6153
|
-
let n = me, r =
|
|
6226
|
+
let n = me, r = ji(n?.operator);
|
|
6154
6227
|
return n && r !== null && D.has(r) ? {
|
|
6155
6228
|
...n,
|
|
6156
6229
|
includeBlanks: t
|
|
@@ -6169,7 +6242,7 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6169
6242
|
me,
|
|
6170
6243
|
D,
|
|
6171
6244
|
xe
|
|
6172
|
-
]), Le =
|
|
6245
|
+
]), Le = wt(null);
|
|
6173
6246
|
U(() => {
|
|
6174
6247
|
if (Pe === 0) return;
|
|
6175
6248
|
let e = setTimeout(() => {
|
|
@@ -6219,7 +6292,7 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6219
6292
|
},
|
|
6220
6293
|
...s,
|
|
6221
6294
|
children: [
|
|
6222
|
-
Y(
|
|
6295
|
+
Y(Mt, {
|
|
6223
6296
|
variant: "subtitle2",
|
|
6224
6297
|
sx: { paddingLeft: "16px" },
|
|
6225
6298
|
children: c("filter.sortTitle")
|
|
@@ -6240,18 +6313,18 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6240
6313
|
commandKey: "sortCustom"
|
|
6241
6314
|
}),
|
|
6242
6315
|
Y(q, { orientation: "horizontal" }),
|
|
6243
|
-
Re ? X(
|
|
6316
|
+
Re ? X(tn, { children: [Y(K, {
|
|
6244
6317
|
...be,
|
|
6245
6318
|
commandState: n,
|
|
6246
6319
|
commandKey: "tableFilterClear"
|
|
6247
6320
|
}), Y(q, { orientation: "horizontal" })] }) : null,
|
|
6248
|
-
n && u ? X(
|
|
6249
|
-
Y(
|
|
6321
|
+
n && u ? X(tn, { children: [
|
|
6322
|
+
Y(Mt, {
|
|
6250
6323
|
variant: "subtitle2",
|
|
6251
6324
|
sx: { paddingLeft: "16px" },
|
|
6252
6325
|
children: c("filter.filterTitle")
|
|
6253
6326
|
}),
|
|
6254
|
-
p ? Y(
|
|
6327
|
+
p ? Y(yn, {
|
|
6255
6328
|
variant: "body2",
|
|
6256
6329
|
className: "unsupported",
|
|
6257
6330
|
sx: {
|
|
@@ -6260,14 +6333,14 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6260
6333
|
opacity: .8
|
|
6261
6334
|
},
|
|
6262
6335
|
children: c("filter.unsupported")
|
|
6263
|
-
}) : X(
|
|
6336
|
+
}) : X(tn, { children: [
|
|
6264
6337
|
Y(Z, {
|
|
6265
6338
|
sx: {
|
|
6266
6339
|
px: 1,
|
|
6267
6340
|
pt: .25,
|
|
6268
6341
|
pb: 1.25
|
|
6269
6342
|
},
|
|
6270
|
-
children: X(
|
|
6343
|
+
children: X(vn, {
|
|
6271
6344
|
className: "filter-mode",
|
|
6272
6345
|
exclusive: !0,
|
|
6273
6346
|
fullWidth: !0,
|
|
@@ -6276,17 +6349,17 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6276
6349
|
disabled: r,
|
|
6277
6350
|
onChange: (e, t) => Ie(t),
|
|
6278
6351
|
children: [
|
|
6279
|
-
Y(
|
|
6352
|
+
Y(_n, {
|
|
6280
6353
|
value: "values",
|
|
6281
6354
|
sx: ze,
|
|
6282
6355
|
children: c("filter.values")
|
|
6283
6356
|
}),
|
|
6284
|
-
Y(
|
|
6357
|
+
Y(_n, {
|
|
6285
6358
|
value: "family",
|
|
6286
6359
|
sx: ze,
|
|
6287
6360
|
children: w
|
|
6288
6361
|
}),
|
|
6289
|
-
Y(
|
|
6362
|
+
Y(_n, {
|
|
6290
6363
|
value: "custom",
|
|
6291
6364
|
sx: ze,
|
|
6292
6365
|
children: c("filter.custom")
|
|
@@ -6327,11 +6400,11 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6327
6400
|
pt: 1,
|
|
6328
6401
|
pb: .5
|
|
6329
6402
|
},
|
|
6330
|
-
children: [Y(
|
|
6403
|
+
children: [Y(nn, {
|
|
6331
6404
|
size: "small",
|
|
6332
6405
|
onClick: Me,
|
|
6333
6406
|
children: c("filter.cancel")
|
|
6334
|
-
}), Y(
|
|
6407
|
+
}), Y(nn, {
|
|
6335
6408
|
size: "small",
|
|
6336
6409
|
variant: "contained",
|
|
6337
6410
|
disabled: p || r,
|
|
@@ -6343,14 +6416,14 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6343
6416
|
]
|
|
6344
6417
|
});
|
|
6345
6418
|
}));
|
|
6346
|
-
|
|
6347
|
-
var
|
|
6419
|
+
Li.displayName = "ColumnMenu";
|
|
6420
|
+
var Ri = V(B((e, t) => {
|
|
6348
6421
|
let { commandKey: n, quickCommandKey: r, disabled: i, groupKey: a, ...o } = e, s = z(), c = R([n])[0], l = (c?.getContext())?.styles() ?? null, u = c?.getState() ?? (r ? l?.getSlicerStyles().getDefault().getName() : void 0), d = L((e) => {
|
|
6349
6422
|
c?.execute(e);
|
|
6350
6423
|
}, [c]), f = H((e) => {
|
|
6351
|
-
let t =
|
|
6424
|
+
let t = Me(l), n = (e, t, n) => t.length === 0 ? null : X(Z, { children: [
|
|
6352
6425
|
n ? Y(q, { orientation: "horizontal" }) : null,
|
|
6353
|
-
Y(
|
|
6426
|
+
Y(Mt, { children: e }),
|
|
6354
6427
|
Y(Z, {
|
|
6355
6428
|
sx: {
|
|
6356
6429
|
display: "flex",
|
|
@@ -6407,13 +6480,13 @@ var Oi = V(B((e, t) => {
|
|
|
6407
6480
|
i,
|
|
6408
6481
|
s
|
|
6409
6482
|
]), p = i ?? (!c || c.disabled());
|
|
6410
|
-
return Y(
|
|
6483
|
+
return Y(Dt, {
|
|
6411
6484
|
ref: t,
|
|
6412
6485
|
quickCommand: r,
|
|
6413
|
-
|
|
6486
|
+
renderPopupPanel: f,
|
|
6414
6487
|
label: c?.getLabel(a),
|
|
6415
6488
|
groupKey: a,
|
|
6416
|
-
|
|
6489
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
6417
6490
|
label: c?.getLabel(),
|
|
6418
6491
|
description: c?.getDescription(),
|
|
6419
6492
|
disabled: t,
|
|
@@ -6424,11 +6497,11 @@ var Oi = V(B((e, t) => {
|
|
|
6424
6497
|
...o
|
|
6425
6498
|
});
|
|
6426
6499
|
}));
|
|
6427
|
-
|
|
6428
|
-
var
|
|
6429
|
-
|
|
6500
|
+
Ri.displayName = "PresetSlicerStylesCommandButton";
|
|
6501
|
+
var zi = () => {
|
|
6502
|
+
Re("slicer", {
|
|
6430
6503
|
key: "formatSlicerStyle",
|
|
6431
|
-
render: (e) => Y(
|
|
6504
|
+
render: (e) => Y(Ri, {
|
|
6432
6505
|
...e,
|
|
6433
6506
|
commandKey: "formatSlicerStyle"
|
|
6434
6507
|
})
|
|
@@ -6437,38 +6510,38 @@ var ki = () => {
|
|
|
6437
6510
|
divider: "after"
|
|
6438
6511
|
}), P.register({
|
|
6439
6512
|
key: "insertSlicer",
|
|
6440
|
-
render: (e) => Y(
|
|
6513
|
+
render: (e) => Y(Ri, {
|
|
6441
6514
|
...e,
|
|
6442
6515
|
commandKey: "insertSlicer",
|
|
6443
6516
|
quickCommandKey: "insertSlicer"
|
|
6444
6517
|
})
|
|
6445
6518
|
}, !0);
|
|
6446
|
-
},
|
|
6519
|
+
}, Bi = Qt(On("studio:formatTaskPane", () => import("./CeF35ZeFP28Do5Zx.mjs"), { select: (e) => ({ default: e.FormatTaskPane }) }).load), Vi = "formatCells", Hi = () => {
|
|
6447
6520
|
pe.registerTaskPane({
|
|
6448
|
-
key:
|
|
6521
|
+
key: Vi,
|
|
6449
6522
|
getTitle: () => "Format Cells",
|
|
6450
6523
|
getIcon: () => "CellsFormat",
|
|
6451
|
-
component:
|
|
6524
|
+
component: Bi
|
|
6452
6525
|
}, !0);
|
|
6453
|
-
},
|
|
6526
|
+
}, Ui = On("studio:manageProtectionTaskPane", () => import("./BSv9MVJaz1DVEffm.mjs")), Wi = Qt(() => Ui.load().then((e) => ({ default: e.ManageProtectionTaskPane }))), Gi = Qt(() => Ui.load().then((e) => ({ default: e.ProtectedRangeDetailsTaskPane }))), Ki = () => {
|
|
6454
6527
|
pe.registerTaskPane({
|
|
6455
6528
|
key: "manageProtection",
|
|
6456
6529
|
getTitle: () => "Manage Protection",
|
|
6457
6530
|
getIcon: () => "Lock",
|
|
6458
|
-
component:
|
|
6531
|
+
component: Wi
|
|
6459
6532
|
}, !0), pe.registerTaskPane({
|
|
6460
6533
|
key: "protectedRangeDetails",
|
|
6461
6534
|
getTitle: () => "Manage Protection",
|
|
6462
6535
|
getIcon: () => "Lock",
|
|
6463
|
-
component:
|
|
6536
|
+
component: Gi
|
|
6464
6537
|
}, !0);
|
|
6465
|
-
},
|
|
6538
|
+
}, qi = V(B((e, t) => {
|
|
6466
6539
|
let { workbook: n, index: r, groupKey: i = "sheet", disabled: o, floatReference: s, className: c, tabStripRef: l, ...u } = e, [d, f] = G(() => n?.getProtection().isStructureAllowed() ?? !0);
|
|
6467
6540
|
N(n, { onProtectionChange: (e) => {
|
|
6468
6541
|
f(e?.getProtection().isStructureAllowed() ?? !0);
|
|
6469
6542
|
} });
|
|
6470
|
-
let p =
|
|
6471
|
-
for (let e = 0; e < _.length; e++) g.push(_[e]), _[e] === "deleteSheet" && g.push({ render: () => Y(
|
|
6543
|
+
let p = ct(), m = z(), h = { disabled: o || r === void 0 }, g = [], _ = p.resolveMembers("sheetTabMenu") ?? [];
|
|
6544
|
+
for (let e = 0; e < _.length; e++) g.push(_[e]), _[e] === "deleteSheet" && g.push({ render: () => Y(Nt, {
|
|
6472
6545
|
onMouseDown: (e) => {
|
|
6473
6546
|
e.button === 0 && e.preventDefault();
|
|
6474
6547
|
},
|
|
@@ -6480,8 +6553,8 @@ var ki = () => {
|
|
|
6480
6553
|
disabled: o || !d,
|
|
6481
6554
|
children: m(i === "sheet" ? "sheetTab.rename" : "sheetTab.renameSheet")
|
|
6482
6555
|
}) });
|
|
6483
|
-
let v =
|
|
6484
|
-
variant:
|
|
6556
|
+
let v = $t(g, {
|
|
6557
|
+
variant: Ye.Menuitem,
|
|
6485
6558
|
dividerOrientation: "horizontal",
|
|
6486
6559
|
groupKey: i,
|
|
6487
6560
|
commandState: r,
|
|
@@ -6496,8 +6569,8 @@ var ki = () => {
|
|
|
6496
6569
|
children: v
|
|
6497
6570
|
});
|
|
6498
6571
|
}));
|
|
6499
|
-
|
|
6500
|
-
var
|
|
6572
|
+
qi.displayName = "SheetTabMenu";
|
|
6573
|
+
var Ji = V(B((e, t) => {
|
|
6501
6574
|
let { workbook: n, floatReference: r, closeFloatAll: i, className: o, ...s } = e, [c, l] = G(n?.getSheets() ?? []), [u, d] = G(n?.getProtection());
|
|
6502
6575
|
N(n, {
|
|
6503
6576
|
onSheetsChange: (e) => {
|
|
@@ -6553,12 +6626,12 @@ var Ri = V(B((e, t) => {
|
|
|
6553
6626
|
}
|
|
6554
6627
|
},
|
|
6555
6628
|
children: h
|
|
6556
|
-
}), e.push(Y(
|
|
6629
|
+
}), e.push(Y(Nt, {
|
|
6557
6630
|
disabled: !u.isStructureAllowed() && o === re.Visibility.Hidden,
|
|
6558
6631
|
sx: {
|
|
6559
6632
|
color: (e) => {
|
|
6560
6633
|
let t = s ? e.palette.primary.main : e.palette.text.secondary;
|
|
6561
|
-
return p && (t = p), o === re.Visibility.Hidden && (t =
|
|
6634
|
+
return p && (t = p), o === re.Visibility.Hidden && (t = jn(t, e.palette.action.disabledOpacity)), t;
|
|
6562
6635
|
},
|
|
6563
6636
|
borderLeft: (e) => `${s ? e.palette.primary.main : "transparent"} solid 2px`,
|
|
6564
6637
|
paddingLeft: "4px",
|
|
@@ -6567,7 +6640,7 @@ var Ri = V(B((e, t) => {
|
|
|
6567
6640
|
fontWeight: s ? "700" : "400",
|
|
6568
6641
|
"&:hover": { fontWeight: "700" }
|
|
6569
6642
|
},
|
|
6570
|
-
icon: s ? Y(
|
|
6643
|
+
icon: s ? Y(Bt, {}) : void 0,
|
|
6571
6644
|
onMouseDown: (e) => e.preventDefault(),
|
|
6572
6645
|
onMouseUp: () => {
|
|
6573
6646
|
Promise.resolve(r.closeAll()).then(() => {
|
|
@@ -6578,7 +6651,7 @@ var Ri = V(B((e, t) => {
|
|
|
6578
6651
|
}
|
|
6579
6652
|
});
|
|
6580
6653
|
},
|
|
6581
|
-
children: X(
|
|
6654
|
+
children: X(tn, { children: [f, X(Z, {
|
|
6582
6655
|
sx: {
|
|
6583
6656
|
paddingRight: "0px",
|
|
6584
6657
|
paddingLeft: "4px",
|
|
@@ -6639,12 +6712,12 @@ var Ri = V(B((e, t) => {
|
|
|
6639
6712
|
children: f
|
|
6640
6713
|
});
|
|
6641
6714
|
}));
|
|
6642
|
-
|
|
6643
|
-
var
|
|
6715
|
+
Ji.displayName = "SheetsAllMenu";
|
|
6716
|
+
var Yi = V(B((e, t) => {
|
|
6644
6717
|
let { movable: n, disabled: r, floatReference: i, ...a } = e;
|
|
6645
6718
|
N(n, { onAnyChange(e) {} });
|
|
6646
|
-
let o =
|
|
6647
|
-
variant:
|
|
6719
|
+
let o = ct(), s = { disabled: r }, c = $t(o.resolveMembers("movableContextMenu") ?? [], {
|
|
6720
|
+
variant: Ye.Menuitem,
|
|
6648
6721
|
dividerOrientation: "horizontal",
|
|
6649
6722
|
groupKey: "movableContextMenu",
|
|
6650
6723
|
registry: o,
|
|
@@ -6661,11 +6734,11 @@ var zi = V(B((e, t) => {
|
|
|
6661
6734
|
children: c
|
|
6662
6735
|
});
|
|
6663
6736
|
}));
|
|
6664
|
-
|
|
6665
|
-
var
|
|
6666
|
-
let { workbook: n, disabled: r = !1,
|
|
6737
|
+
Yi.displayName = "MovableContextMenu";
|
|
6738
|
+
var Xi = V(B((e, t) => {
|
|
6739
|
+
let { workbook: n, disabled: r = !1, propsSheetTabMenu: i, renderSheetTabMenu: a = Da, propsSheetsAll: o, renderSheetsAll: s = Oa, propsSheetTab: c, renderSheetTab: l, ...u } = e, d = z(), f = wt(null), p = H((e) => {
|
|
6667
6740
|
f.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
|
|
6668
|
-
}, [t]), m = W(() => ({ placement: "top-start" }), []), h =
|
|
6741
|
+
}, [t]), m = W(() => ({ placement: "top-start" }), []), h = wt(null), [g, _] = G(!1), v = H((e) => {
|
|
6669
6742
|
let { closeFloatAll: t, floatReference: r } = e;
|
|
6670
6743
|
return s({
|
|
6671
6744
|
workbook: n,
|
|
@@ -6677,35 +6750,35 @@ var Bi = V(B((e, t) => {
|
|
|
6677
6750
|
s,
|
|
6678
6751
|
o,
|
|
6679
6752
|
n
|
|
6680
|
-
]), { reference: y, component: b } =
|
|
6753
|
+
]), { reference: y, component: b } = dt({
|
|
6681
6754
|
label: "allSheet",
|
|
6682
6755
|
propsPopper: m,
|
|
6683
6756
|
anchor: h.current,
|
|
6684
6757
|
onOpen: () => _(!0),
|
|
6685
6758
|
onClose: () => _(!1),
|
|
6686
|
-
|
|
6759
|
+
renderPopupPanel: v
|
|
6687
6760
|
}), [x, S] = G(null), C = H((e) => {
|
|
6688
6761
|
let { floatReference: t } = e;
|
|
6689
|
-
return a
|
|
6762
|
+
return a ? a({
|
|
6690
6763
|
workbook: n,
|
|
6691
6764
|
index: x?.index,
|
|
6692
6765
|
tabStripRef: f.current ?? void 0,
|
|
6693
6766
|
disabled: r,
|
|
6694
6767
|
floatReference: t,
|
|
6695
6768
|
...i
|
|
6696
|
-
});
|
|
6769
|
+
}) : null;
|
|
6697
6770
|
}, [
|
|
6698
6771
|
a,
|
|
6699
6772
|
i,
|
|
6700
6773
|
r,
|
|
6701
6774
|
n,
|
|
6702
6775
|
x
|
|
6703
|
-
]), { reference: w, component: T } =
|
|
6776
|
+
]), { reference: w, component: T } = dt({
|
|
6704
6777
|
label: "sheetTab",
|
|
6705
6778
|
propsPopper: m,
|
|
6706
6779
|
anchor: { getBoundingClientRect: () => new DOMRect(x?.left || 0, x?.top || 0, 0, 0) },
|
|
6707
6780
|
onClose: () => S(null),
|
|
6708
|
-
|
|
6781
|
+
renderPopupPanel: C
|
|
6709
6782
|
});
|
|
6710
6783
|
U(() => {
|
|
6711
6784
|
x ? w.open(0) : w.close(0);
|
|
@@ -6716,10 +6789,10 @@ var Bi = V(B((e, t) => {
|
|
|
6716
6789
|
top: e.clientY - 4,
|
|
6717
6790
|
index: t
|
|
6718
6791
|
});
|
|
6719
|
-
}, []), D = H((e) => (l ??
|
|
6792
|
+
}, []), D = H((e) => (l ?? Aa)({
|
|
6720
6793
|
...e,
|
|
6721
6794
|
...c
|
|
6722
|
-
}), [l, c]), ee = Y(
|
|
6795
|
+
}), [l, c]), ee = Y(Vt, {
|
|
6723
6796
|
disableInteractive: !0,
|
|
6724
6797
|
title: g ? "" : d("workbookStrip.listAllSheets"),
|
|
6725
6798
|
children: Y(J, {
|
|
@@ -6753,9 +6826,9 @@ var Bi = V(B((e, t) => {
|
|
|
6753
6826
|
disabled: r,
|
|
6754
6827
|
renderSheetTab: D,
|
|
6755
6828
|
onTabContextMenu: E,
|
|
6756
|
-
renderScrollButtonStart:
|
|
6757
|
-
renderScrollButtonEnd:
|
|
6758
|
-
renderScrollButtonEdge:
|
|
6829
|
+
renderScrollButtonStart: Jt,
|
|
6830
|
+
renderScrollButtonEnd: qt,
|
|
6831
|
+
renderScrollButtonEdge: Kt,
|
|
6759
6832
|
...u,
|
|
6760
6833
|
children: [
|
|
6761
6834
|
ee,
|
|
@@ -6764,16 +6837,16 @@ var Bi = V(B((e, t) => {
|
|
|
6764
6837
|
]
|
|
6765
6838
|
});
|
|
6766
6839
|
}));
|
|
6767
|
-
|
|
6768
|
-
var
|
|
6769
|
-
|
|
6840
|
+
Xi.displayName = "WorkbookStrip";
|
|
6841
|
+
var Zi = V(B((e, t) => {
|
|
6842
|
+
Ue(e.workbook, "onSelectedSheetChange");
|
|
6770
6843
|
let n = e.workbook.getSelectedWorksheet();
|
|
6771
|
-
return n ? Y(
|
|
6844
|
+
return n ? Y(Qi, {
|
|
6772
6845
|
...e,
|
|
6773
6846
|
ref: t,
|
|
6774
6847
|
sheet: n
|
|
6775
6848
|
}) : null;
|
|
6776
|
-
})),
|
|
6849
|
+
})), Qi = V(B((e, t) => {
|
|
6777
6850
|
let { workbook: n, sheet: r, disabled: i, floatReference: o, className: s, ...c } = e, [l, u] = G(r), [d, f] = G(l.getSelectedRanges()), [p, m] = G(l.getSelectedCell());
|
|
6778
6851
|
N(n, { onSheetsChange() {
|
|
6779
6852
|
let e = n.getSelectedWorksheet();
|
|
@@ -6781,30 +6854,30 @@ var Vi = V(B((e, t) => {
|
|
|
6781
6854
|
} }), N(l.getSelection(), { onChange() {
|
|
6782
6855
|
f(l.getSelectedRanges()), m(l.getSelectedCell());
|
|
6783
6856
|
} });
|
|
6784
|
-
let h =
|
|
6857
|
+
let h = ct(), g = {
|
|
6785
6858
|
disabled: i,
|
|
6786
6859
|
groupKey: "contextMenu"
|
|
6787
6860
|
}, _ = d.isEntireRows(), v = d.isEntireColumns(), y = [];
|
|
6788
6861
|
if (!_ && !v) {
|
|
6789
|
-
y.push("-"), y.push(p?.getHyperlink() ? { render: (e) => Y(
|
|
6862
|
+
y.push("-"), y.push(!1 === p?.getHyperlink()?.isReadOnly() ? { render: (e) => Y(Et, {
|
|
6790
6863
|
...e,
|
|
6791
6864
|
groupKey: "hyperlinkOptions",
|
|
6792
6865
|
members: ["updateHyperlink", "deleteHyperlink"],
|
|
6793
6866
|
quickCommand: "openHyperlink"
|
|
6794
6867
|
}) } : "updateHyperlink");
|
|
6795
6868
|
let e = p?.getComments();
|
|
6796
|
-
e ? e.isNote() ? y.push({ render: (e) => Y(
|
|
6869
|
+
e ? e.isNote() ? y.push({ render: (e) => Y(Et, {
|
|
6797
6870
|
...e,
|
|
6798
6871
|
groupKey: "noteOptions",
|
|
6799
6872
|
members: ["showHideNote", "deleteComments"],
|
|
6800
6873
|
quickCommand: "editNote"
|
|
6801
|
-
}) }) : y.push({ render: (e) => Y(
|
|
6874
|
+
}) }) : y.push({ render: (e) => Y(Et, {
|
|
6802
6875
|
...e,
|
|
6803
6876
|
members: ["showCommentsPane", "deleteComments"],
|
|
6804
6877
|
quickCommand: "updateComments"
|
|
6805
6878
|
}) }) : y.push("editNote", "updateComments");
|
|
6806
6879
|
let t = p?.getTable();
|
|
6807
|
-
t && y.push({ render: (e) => Y(
|
|
6880
|
+
t && y.push({ render: (e) => Y(Et, {
|
|
6808
6881
|
...e,
|
|
6809
6882
|
groupKey: "tableOptions",
|
|
6810
6883
|
members: ["convertTableToRange", "deleteTable"],
|
|
@@ -6820,8 +6893,8 @@ var Vi = V(B((e, t) => {
|
|
|
6820
6893
|
...b,
|
|
6821
6894
|
"-",
|
|
6822
6895
|
"formatCells"
|
|
6823
|
-
], S =
|
|
6824
|
-
variant:
|
|
6896
|
+
], S = $t(x, {
|
|
6897
|
+
variant: Ye.Menuitem,
|
|
6825
6898
|
dividerOrientation: "horizontal",
|
|
6826
6899
|
groupKey: "contextMenu",
|
|
6827
6900
|
registry: h,
|
|
@@ -6835,15 +6908,15 @@ var Vi = V(B((e, t) => {
|
|
|
6835
6908
|
children: S
|
|
6836
6909
|
});
|
|
6837
6910
|
}));
|
|
6838
|
-
|
|
6839
|
-
var
|
|
6911
|
+
Qi.displayName = "WorkbookContextMenuBody", Zi.displayName = "WorkbookContextMenu";
|
|
6912
|
+
var $i = "-", ea = (e) => ({
|
|
6840
6913
|
key: e,
|
|
6841
6914
|
label: de[e],
|
|
6842
6915
|
enabled: (t) => t.has(e),
|
|
6843
6916
|
run: (t) => {
|
|
6844
6917
|
t.fill({ presetId: e });
|
|
6845
6918
|
}
|
|
6846
|
-
}),
|
|
6919
|
+
}), ta = Object.freeze([
|
|
6847
6920
|
{
|
|
6848
6921
|
key: "copy",
|
|
6849
6922
|
label: de[w.Presets.Copy.id],
|
|
@@ -6852,10 +6925,10 @@ var Ui = "-", Wi = (e) => ({
|
|
|
6852
6925
|
e.fill({ presetId: w.Presets.Copy.id });
|
|
6853
6926
|
}
|
|
6854
6927
|
},
|
|
6855
|
-
|
|
6928
|
+
ea(w.Presets.Series.id),
|
|
6856
6929
|
{
|
|
6857
6930
|
key: "formatsOnly",
|
|
6858
|
-
label:
|
|
6931
|
+
label: kn("fillMenu.formatsOnly"),
|
|
6859
6932
|
enabled: () => !0,
|
|
6860
6933
|
run: (e) => {
|
|
6861
6934
|
e.fill({ type: ee.Content.Formats });
|
|
@@ -6863,7 +6936,7 @@ var Ui = "-", Wi = (e) => ({
|
|
|
6863
6936
|
},
|
|
6864
6937
|
{
|
|
6865
6938
|
key: "valuesOnly",
|
|
6866
|
-
label:
|
|
6939
|
+
label: kn("fillMenu.valuesOnly"),
|
|
6867
6940
|
enabled: () => !0,
|
|
6868
6941
|
run: (e) => {
|
|
6869
6942
|
e.fill({
|
|
@@ -6872,34 +6945,34 @@ var Ui = "-", Wi = (e) => ({
|
|
|
6872
6945
|
});
|
|
6873
6946
|
}
|
|
6874
6947
|
},
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6948
|
+
$i,
|
|
6949
|
+
ea(w.Presets.Linear.id),
|
|
6950
|
+
ea(w.Presets.Growth.id),
|
|
6951
|
+
$i,
|
|
6952
|
+
ea(w.Presets.DateDays.id),
|
|
6953
|
+
ea(w.Presets.DateWeekdays.id),
|
|
6954
|
+
ea(w.Presets.DateMonths.id),
|
|
6955
|
+
ea(w.Presets.DateMonthEnd.id),
|
|
6956
|
+
ea(w.Presets.DateYears.id),
|
|
6957
|
+
$i,
|
|
6958
|
+
ea(w.Presets.LinearTrend.id),
|
|
6959
|
+
ea(w.Presets.GrowthTrend.id),
|
|
6960
|
+
$i,
|
|
6888
6961
|
{
|
|
6889
6962
|
key: "seriesDialog",
|
|
6890
|
-
label:
|
|
6963
|
+
label: kn("fillMenu.series"),
|
|
6891
6964
|
enabled: (e) => e.size > 0,
|
|
6892
6965
|
run: (e) => {
|
|
6893
6966
|
e.series();
|
|
6894
6967
|
}
|
|
6895
6968
|
}
|
|
6896
|
-
]),
|
|
6969
|
+
]), na = V(B((e, t) => {
|
|
6897
6970
|
let { workbook: n, menu: r, disabled: i, floatReference: o, className: s, ...c } = e, l = z(), u = W(() => new Set(r.offered), [r]), d = (e) => {
|
|
6898
6971
|
e.run(r), o.close();
|
|
6899
|
-
}, f =
|
|
6900
|
-
if (e ===
|
|
6972
|
+
}, f = ta.map((e, t) => {
|
|
6973
|
+
if (e === $i) return Y(q, { orientation: "horizontal" }, `divider:${t}`);
|
|
6901
6974
|
let n = i || !e.enabled(u);
|
|
6902
|
-
return Y(
|
|
6975
|
+
return Y(Nt, {
|
|
6903
6976
|
className: "sxl-fillMenu-entry",
|
|
6904
6977
|
"data-entry": e.key,
|
|
6905
6978
|
disabled: n,
|
|
@@ -6925,7 +6998,7 @@ var Ui = "-", Wi = (e) => ({
|
|
|
6925
6998
|
flexDirection: "column",
|
|
6926
6999
|
overflow: "hidden"
|
|
6927
7000
|
},
|
|
6928
|
-
children: Y(
|
|
7001
|
+
children: Y(yn, {
|
|
6929
7002
|
component: "div",
|
|
6930
7003
|
sx: {
|
|
6931
7004
|
whiteSpace: "nowrap",
|
|
@@ -6948,8 +7021,8 @@ var Ui = "-", Wi = (e) => ({
|
|
|
6948
7021
|
children: f
|
|
6949
7022
|
});
|
|
6950
7023
|
}));
|
|
6951
|
-
|
|
6952
|
-
var
|
|
7024
|
+
na.displayName = "FillMenu";
|
|
7025
|
+
var ra = (e, t) => ({
|
|
6953
7026
|
width: t,
|
|
6954
7027
|
height: t,
|
|
6955
7028
|
boxSizing: "border-box",
|
|
@@ -6962,23 +7035,23 @@ var qi = (e, t) => ({
|
|
|
6962
7035
|
color: e.palette.text.primary,
|
|
6963
7036
|
borderColor: e.palette.text.primary
|
|
6964
7037
|
},
|
|
6965
|
-
"&:active": { backgroundColor:
|
|
7038
|
+
"&:active": { backgroundColor: bn(e.palette.text.primary, e.palette.action.selectedOpacity) },
|
|
6966
7039
|
"&.Mui-disabled": {
|
|
6967
7040
|
color: e.palette.text.disabled,
|
|
6968
7041
|
borderColor: e.palette.action.disabledBackground
|
|
6969
7042
|
}
|
|
6970
|
-
}),
|
|
6971
|
-
let { collapsed: t, size: n, title: r, onToggle: i, disabled: a } = e, o =
|
|
6972
|
-
return Y(
|
|
7043
|
+
}), ia = (e) => {
|
|
7044
|
+
let { collapsed: t, size: n, title: r, onToggle: i, disabled: a } = e, o = Cn();
|
|
7045
|
+
return Y(It, {
|
|
6973
7046
|
label: r,
|
|
6974
|
-
children: Y(
|
|
7047
|
+
children: Y(rn, {
|
|
6975
7048
|
className: "outline-button",
|
|
6976
7049
|
"aria-label": r,
|
|
6977
7050
|
"aria-expanded": !t,
|
|
6978
7051
|
focusRipple: !1,
|
|
6979
7052
|
tabIndex: -1,
|
|
6980
7053
|
disabled: a,
|
|
6981
|
-
sx:
|
|
7054
|
+
sx: ra(o, n),
|
|
6982
7055
|
onClick: i,
|
|
6983
7056
|
children: Y(he, {
|
|
6984
7057
|
collapsed: t,
|
|
@@ -6986,11 +7059,11 @@ var qi = (e, t) => ({
|
|
|
6986
7059
|
})
|
|
6987
7060
|
})
|
|
6988
7061
|
});
|
|
6989
|
-
},
|
|
6990
|
-
let { level: t, shown: n, size: r, title: i, onShowLevel: a, disabled: o } = e, s =
|
|
6991
|
-
return Y(
|
|
7062
|
+
}, aa = (e) => {
|
|
7063
|
+
let { level: t, shown: n, size: r, title: i, onShowLevel: a, disabled: o } = e, s = Cn();
|
|
7064
|
+
return Y(It, {
|
|
6992
7065
|
label: i,
|
|
6993
|
-
children: Y(
|
|
7066
|
+
children: Y(rn, {
|
|
6994
7067
|
className: "outline-level-button",
|
|
6995
7068
|
"aria-label": i,
|
|
6996
7069
|
focusRipple: !1,
|
|
@@ -6998,15 +7071,41 @@ var qi = (e, t) => ({
|
|
|
6998
7071
|
disabled: o,
|
|
6999
7072
|
"data-shown": n || void 0,
|
|
7000
7073
|
sx: {
|
|
7001
|
-
...
|
|
7002
|
-
...
|
|
7003
|
-
...
|
|
7074
|
+
...ra(s, r),
|
|
7075
|
+
...Ne,
|
|
7076
|
+
...Pe(r)
|
|
7004
7077
|
},
|
|
7005
7078
|
onClick: a,
|
|
7006
7079
|
children: t
|
|
7007
7080
|
})
|
|
7008
7081
|
});
|
|
7009
|
-
},
|
|
7082
|
+
}, oa = xn("div", {
|
|
7083
|
+
name: "MuiTooltip",
|
|
7084
|
+
slot: "Tooltip",
|
|
7085
|
+
overridesResolver: (e, t) => t.tooltip
|
|
7086
|
+
})(({ theme: e }) => ({
|
|
7087
|
+
backgroundColor: e.vars ? e.vars.palette.Tooltip.bg : e.alpha(e.palette.grey[700], .92),
|
|
7088
|
+
borderRadius: (e.vars || e).shape.borderRadius,
|
|
7089
|
+
color: (e.vars || e).palette.common.white,
|
|
7090
|
+
fontFamily: e.typography.fontFamily,
|
|
7091
|
+
padding: "4px 8px",
|
|
7092
|
+
fontSize: e.typography.pxToRem(11),
|
|
7093
|
+
maxWidth: 300,
|
|
7094
|
+
margin: 2,
|
|
7095
|
+
wordWrap: "break-word",
|
|
7096
|
+
fontWeight: e.typography.fontWeightMedium
|
|
7097
|
+
})), sa = (e) => {
|
|
7098
|
+
let { children: t, interactive: n, tipProps: r, className: i, style: o } = e;
|
|
7099
|
+
return Y(oa, {
|
|
7100
|
+
...r,
|
|
7101
|
+
className: a(Sn.tooltip, i),
|
|
7102
|
+
style: {
|
|
7103
|
+
...o,
|
|
7104
|
+
pointerEvents: n ? "auto" : "none"
|
|
7105
|
+
},
|
|
7106
|
+
children: t
|
|
7107
|
+
});
|
|
7108
|
+
}, ca = (e) => {
|
|
7010
7109
|
let { sheet: t, coords: n, comment: r, focusRequest: i, onClose: a } = e;
|
|
7011
7110
|
return Y(g, {
|
|
7012
7111
|
sheet: t,
|
|
@@ -7016,7 +7115,7 @@ var qi = (e, t) => ({
|
|
|
7016
7115
|
onClose: a,
|
|
7017
7116
|
elevated: !0
|
|
7018
7117
|
});
|
|
7019
|
-
},
|
|
7118
|
+
}, la = (e) => {
|
|
7020
7119
|
let { hyperlink: t, open: n, copy: r, edit: i, remove: a, preview: o, tipProps: s } = e, c = z(), l = t.getScreenTip(), u = t.getAddress(), d = () => {
|
|
7021
7120
|
n();
|
|
7022
7121
|
}, f = o?.title, p = {
|
|
@@ -7028,7 +7127,7 @@ var qi = (e, t) => ({
|
|
|
7028
7127
|
textOverflow: "ellipsis",
|
|
7029
7128
|
whiteSpace: "nowrap"
|
|
7030
7129
|
};
|
|
7031
|
-
return X(
|
|
7130
|
+
return X(dn, {
|
|
7032
7131
|
...s,
|
|
7033
7132
|
elevation: 6,
|
|
7034
7133
|
role: "toolbar",
|
|
@@ -7063,7 +7162,7 @@ var qi = (e, t) => ({
|
|
|
7063
7162
|
flex: 1,
|
|
7064
7163
|
minWidth: 0
|
|
7065
7164
|
},
|
|
7066
|
-
children: [f ? Y(
|
|
7165
|
+
children: [f ? Y(cn, {
|
|
7067
7166
|
component: "button",
|
|
7068
7167
|
type: "button",
|
|
7069
7168
|
underline: "hover",
|
|
@@ -7074,7 +7173,7 @@ var qi = (e, t) => ({
|
|
|
7074
7173
|
},
|
|
7075
7174
|
onClick: d,
|
|
7076
7175
|
children: f
|
|
7077
|
-
}) : null, Y(
|
|
7176
|
+
}) : null, Y(cn, {
|
|
7078
7177
|
component: "button",
|
|
7079
7178
|
type: "button",
|
|
7080
7179
|
underline: "none",
|
|
@@ -7114,7 +7213,7 @@ var qi = (e, t) => ({
|
|
|
7114
7213
|
]
|
|
7115
7214
|
})
|
|
7116
7215
|
]
|
|
7117
|
-
}), o?.image ? Y(
|
|
7216
|
+
}), o?.image ? Y(rn, {
|
|
7118
7217
|
onClick: d,
|
|
7119
7218
|
tabIndex: -1,
|
|
7120
7219
|
sx: {
|
|
@@ -7128,12 +7227,12 @@ var qi = (e, t) => ({
|
|
|
7128
7227
|
})
|
|
7129
7228
|
}) : null]
|
|
7130
7229
|
});
|
|
7131
|
-
},
|
|
7230
|
+
}, ua = (e) => Y(la, { ...e }), da = {
|
|
7132
7231
|
color: "transparent",
|
|
7133
7232
|
hoverColor: "transparent"
|
|
7134
|
-
},
|
|
7233
|
+
}, fa = { sx: { mx: 0 } }, pa = (e) => {
|
|
7135
7234
|
let { table: t, floatProps: n, setHeld: r } = e;
|
|
7136
|
-
return Y(
|
|
7235
|
+
return Y(dn, {
|
|
7137
7236
|
...n,
|
|
7138
7237
|
elevation: 6,
|
|
7139
7238
|
role: "toolbar",
|
|
@@ -7151,25 +7250,28 @@ var qi = (e, t) => ({
|
|
|
7151
7250
|
children: Y(p, {
|
|
7152
7251
|
commandKey: "formatTableStyle",
|
|
7153
7252
|
selectedTable: t,
|
|
7154
|
-
outlined:
|
|
7155
|
-
propsButton:
|
|
7253
|
+
outlined: da,
|
|
7254
|
+
propsButton: fa,
|
|
7156
7255
|
onPopupOpen: () => r(!0),
|
|
7157
7256
|
onPopupClose: () => r(!1)
|
|
7158
7257
|
})
|
|
7159
7258
|
});
|
|
7160
|
-
},
|
|
7259
|
+
}, ma = (e) => Y(pa, { ...e }), ha = (e) => Y(ia, { ...e }), ga = (e) => Y(aa, { ...e }), _a = (e) => Y(Yi, { ...e }), va = (e) => Y(na, { ...e }), ya = (e) => Y(Zi, { ...e }), ba = (e) => Y(Li, { ...e }), xa = (e) => e.placement === "bottom" ? Y(Si, { ...e }) : Y(vi, { ...e }), Sa = (e) => Y(Tt, {
|
|
7161
7260
|
transitionDelay: "160ms",
|
|
7162
7261
|
transparentBackground: !0,
|
|
7163
7262
|
...e
|
|
7164
|
-
}),
|
|
7263
|
+
}), Ca = (e) => Y(Ht, {
|
|
7165
7264
|
hideStackTrace: !0,
|
|
7166
7265
|
...e
|
|
7167
|
-
}),
|
|
7266
|
+
}), wa = (e) => {
|
|
7168
7267
|
let { key: t, ...n } = e;
|
|
7169
|
-
return Y(
|
|
7170
|
-
},
|
|
7171
|
-
let {
|
|
7172
|
-
return Y(
|
|
7268
|
+
return Y(De, { ...n }, t);
|
|
7269
|
+
}, Ta = (e) => {
|
|
7270
|
+
let { key: t, ...n } = e;
|
|
7271
|
+
return Y(li, { ...n }, t);
|
|
7272
|
+
}, Ea = (e) => Y(Xi, { ...e }), Da = (e) => Y(qi, { ...e }), Oa = (e) => Y(Ji, { ...e }), ka = (e) => {
|
|
7273
|
+
let { disabled: t, editing: n, children: r, style: i, ...a } = e, o = Cn();
|
|
7274
|
+
return Y(rn, {
|
|
7173
7275
|
component: "div",
|
|
7174
7276
|
disabled: t,
|
|
7175
7277
|
disableRipple: n,
|
|
@@ -7182,38 +7284,44 @@ var qi = (e, t) => ({
|
|
|
7182
7284
|
...a,
|
|
7183
7285
|
children: r
|
|
7184
7286
|
});
|
|
7185
|
-
},
|
|
7186
|
-
slotSurface:
|
|
7287
|
+
}, Aa = (e) => Y(ye, {
|
|
7288
|
+
slotSurface: ka,
|
|
7187
7289
|
...e
|
|
7188
|
-
}),
|
|
7189
|
-
let n = W(() =>
|
|
7190
|
-
renderCommentCard:
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7290
|
+
}), ja = V(B((e, t) => {
|
|
7291
|
+
let { renderTabs: n = Ea, renderContextMenu: r = ya, renderColumnMenu: i = ba, renderMovableMenu: a = _a, renderFillMenu: o = va, renderWorkbookLoading: s = Sa, propsSheet: c, ...l } = e, u = W(() => {
|
|
7292
|
+
let { renderCommentCard: e = ca, renderHyperlinkCard: t = ua, renderTableToolbar: n = ma, propsOutline: r, layers: i, ...a } = c ?? {};
|
|
7293
|
+
return {
|
|
7294
|
+
...a,
|
|
7295
|
+
renderCommentCard: e,
|
|
7296
|
+
renderHyperlinkCard: t,
|
|
7297
|
+
renderTableToolbar: n,
|
|
7298
|
+
propsOutline: {
|
|
7299
|
+
...r,
|
|
7300
|
+
renderButton: r?.renderButton === void 0 ? ha : r.renderButton,
|
|
7301
|
+
renderLevelButton: r?.renderLevelButton === void 0 ? ga : r.renderLevelButton
|
|
7302
|
+
},
|
|
7303
|
+
layers: [Y(ge, {}, "range-annotations"), i]
|
|
7304
|
+
};
|
|
7305
|
+
}, [c]), { renderTooltip: d } = Fn();
|
|
7306
|
+
return Y(jt, { children: Y(Nn, {
|
|
7307
|
+
renderTooltip: d ?? sa,
|
|
7308
|
+
children: Y(we, {
|
|
7309
|
+
ref: t,
|
|
7310
|
+
...l,
|
|
7311
|
+
renderTabs: n,
|
|
7312
|
+
renderContextMenu: r,
|
|
7313
|
+
renderColumnMenu: i,
|
|
7314
|
+
renderMovableMenu: a,
|
|
7315
|
+
renderFillMenu: o,
|
|
7316
|
+
renderWorkbookLoading: s,
|
|
7317
|
+
propsSheet: u
|
|
7318
|
+
})
|
|
7211
7319
|
}) });
|
|
7212
7320
|
}));
|
|
7213
|
-
|
|
7214
|
-
var
|
|
7321
|
+
ja.displayName = "WorkbookElement";
|
|
7322
|
+
var Ma = (e = !1, t = !1) => t ? null : {
|
|
7215
7323
|
"& input:not(:focus):not(:hover)": { color: (e) => e.palette.text.secondary },
|
|
7216
|
-
backgroundColor: (e) =>
|
|
7324
|
+
backgroundColor: (e) => bn(e.palette.background.paper, .6),
|
|
7217
7325
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
7218
7326
|
border: (t) => `solid ${e ? t.palette.divider : "transparent"} 1px`,
|
|
7219
7327
|
"&.Mui-disabled": { border: (t) => `solid ${e ? t.palette.divider : "transparent"} 1px` },
|
|
@@ -7226,8 +7334,8 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7226
7334
|
outline: (e) => `solid ${e.palette.primary.main} 1px !important`,
|
|
7227
7335
|
border: (e) => `1px solid ${e.palette?.primary?.main} !important`
|
|
7228
7336
|
}
|
|
7229
|
-
},
|
|
7230
|
-
let { sx: n, workbook: r, title: i = "", placeHolder: o, onTitleChange: s, readOnly: c = !1, modified: l = !1, encrypted: u = !1, hidden: d, ...f } = e, p = z(), h = o ?? p("workbook.untitled"), [g, _] = G(!1), [v, y] = G(!1), [b, x] = G(i ?? ""), [S, C] = G(""), [w, { width: T }] =
|
|
7337
|
+
}, Na = V(B((e, t) => {
|
|
7338
|
+
let { sx: n, workbook: r, title: i = "", placeHolder: o, onTitleChange: s, readOnly: c = !1, modified: l = !1, encrypted: u = !1, hidden: d, ...f } = e, p = z(), h = o ?? p("workbook.untitled"), [g, _] = G(!1), [v, y] = G(!1), [b, x] = G(i ?? ""), [S, C] = G(""), [w, { width: T }] = mt(), [E, { width: D }] = mt(), [ee, te] = G(!1), O = wt(null), k = wt(null), A = ft(t, () => ({
|
|
7231
7339
|
requestTitle: (e, t) => {
|
|
7232
7340
|
k.current = {
|
|
7233
7341
|
onAccept: e,
|
|
@@ -7238,14 +7346,14 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7238
7346
|
O.current?.focus(e);
|
|
7239
7347
|
}
|
|
7240
7348
|
}), []);
|
|
7241
|
-
|
|
7349
|
+
St(() => {
|
|
7242
7350
|
te(i !== b), C(i), x(i);
|
|
7243
7351
|
}, [i]), U(() => {
|
|
7244
|
-
ee && T !== 0 &&
|
|
7352
|
+
ee && T !== 0 && Dn.debounce(() => {
|
|
7245
7353
|
te(!1);
|
|
7246
7354
|
}, 300)();
|
|
7247
7355
|
}, [ee, T]), U(() => {
|
|
7248
|
-
y(!!b && !
|
|
7356
|
+
y(!!b && !In.isValidFileName(b));
|
|
7249
7357
|
}, [b]);
|
|
7250
7358
|
let ne = m([
|
|
7251
7359
|
A,
|
|
@@ -7264,7 +7372,7 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7264
7372
|
},
|
|
7265
7373
|
ref: ne,
|
|
7266
7374
|
...f,
|
|
7267
|
-
children: [u ? Y(
|
|
7375
|
+
children: [u ? Y(It, {
|
|
7268
7376
|
label: p("workbook.encrypted"),
|
|
7269
7377
|
children: Y(Z, {
|
|
7270
7378
|
component: "span",
|
|
@@ -7281,7 +7389,7 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7281
7389
|
},
|
|
7282
7390
|
children: Y(F, { iconKey: "Lock" })
|
|
7283
7391
|
})
|
|
7284
|
-
}) : null, Y(
|
|
7392
|
+
}) : null, Y(It, {
|
|
7285
7393
|
label: k.current?.requestReason ?? p("documentTitle.label"),
|
|
7286
7394
|
children: X(Z, {
|
|
7287
7395
|
className: a({ "Mui-focusVisible": g }),
|
|
@@ -7298,10 +7406,10 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7298
7406
|
marginRight: "2px",
|
|
7299
7407
|
paddingTop: "2px",
|
|
7300
7408
|
paddingBottom: "1px",
|
|
7301
|
-
...
|
|
7409
|
+
...Ma(!0, c),
|
|
7302
7410
|
...n
|
|
7303
7411
|
},
|
|
7304
|
-
children: [c ? X(
|
|
7412
|
+
children: [c ? X(yn, {
|
|
7305
7413
|
className: "title",
|
|
7306
7414
|
variant: "subtitle1",
|
|
7307
7415
|
component: "div",
|
|
@@ -7323,7 +7431,7 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7323
7431
|
},
|
|
7324
7432
|
children: "●"
|
|
7325
7433
|
}) : null]
|
|
7326
|
-
}) : Y(
|
|
7434
|
+
}) : Y(sn, {
|
|
7327
7435
|
sx: {
|
|
7328
7436
|
width: `${Math.min(T + 3, Math.max(D, A.current?.getBoundingClientRect()?.width))}px`,
|
|
7329
7437
|
overflow: "hidden",
|
|
@@ -7359,11 +7467,11 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7359
7467
|
_(!1), v ? x(S) : (b !== S && (s?.(b), b && k.current?.onAccept?.(b, "blur")), k.current = null);
|
|
7360
7468
|
},
|
|
7361
7469
|
onChange: (e) => {
|
|
7362
|
-
if (e.target.value.length >
|
|
7470
|
+
if (e.target.value.length > In.MAX_WORKBOOK_NAME_SIZE) return e.stopPropagation(), void e.preventDefault();
|
|
7363
7471
|
x(e.target.value);
|
|
7364
7472
|
},
|
|
7365
7473
|
onKeyDown: (e) => {
|
|
7366
|
-
(
|
|
7474
|
+
(In.isReservedFileNameChar(e.key) || e.target?.value.length > In.MAX_WORKBOOK_NAME_SIZE) && e.preventDefault(), e.which === I.Enter || e.which === I.Tab ? (v ? x(S) : (s?.(b), b && (k.current?.onAccept?.(b, "keydown"), k.current = null)), e.stopPropagation(), e.preventDefault(), r?.focus()) : e.which === I.Escape && (b === S ? r?.focus() : (x(S), setTimeout(() => {
|
|
7367
7475
|
e.target?.select();
|
|
7368
7476
|
}, 0)), k.current = null, e.stopPropagation(), e.preventDefault());
|
|
7369
7477
|
},
|
|
@@ -7386,11 +7494,11 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7386
7494
|
})]
|
|
7387
7495
|
});
|
|
7388
7496
|
}));
|
|
7389
|
-
|
|
7390
|
-
var
|
|
7391
|
-
|
|
7392
|
-
},
|
|
7393
|
-
let { scope: t } = e, { showModal: n } =
|
|
7497
|
+
Na.displayName = "DocumentTitle";
|
|
7498
|
+
var Pa = Zt(On("studio:templateDialog", () => import("./CMc7G7cevxzPGxr9.mjs")).load), Fa = On("studio:welcomeDialog", () => import("./CjYKDxU4EP2Kf_vo.mjs")), Ia = Zt(Fa.load), La = (e) => {
|
|
7499
|
+
Fa.load().then((t) => t.prefetchCatalog(e), () => {});
|
|
7500
|
+
}, Ra = V((e) => {
|
|
7501
|
+
let { scope: t } = e, { showModal: n } = en(), r = gt(), i = wt(void 0), [a, o] = vt("studio.welcome.showAtStartup", !0), s = (e, n) => {
|
|
7394
7502
|
t.resolve(e)?.execute(n);
|
|
7395
7503
|
}, c = (e) => {
|
|
7396
7504
|
s("newWorkbook", {
|
|
@@ -7399,7 +7507,7 @@ var xa = Gt(Cn("studio:templateDialog", () => import("./C9pIZVACtl9unFOp.mjs")).
|
|
|
7399
7507
|
});
|
|
7400
7508
|
}, l = L((e) => {
|
|
7401
7509
|
e?.templatePath && (i.current = e.templatePath);
|
|
7402
|
-
let t = n(
|
|
7510
|
+
let t = n(Pa, {
|
|
7403
7511
|
templatePath: i.current,
|
|
7404
7512
|
showAtStartup: a,
|
|
7405
7513
|
onShowAtStartupChange: o,
|
|
@@ -7420,7 +7528,7 @@ var xa = Gt(Cn("studio:templateDialog", () => import("./C9pIZVACtl9unFOp.mjs")).
|
|
|
7420
7528
|
if (e?.templatePath && (i.current = e.templatePath), e?.atStartup && !a) return;
|
|
7421
7529
|
let t = (e) => () => {
|
|
7422
7530
|
l.hide(), s(e);
|
|
7423
|
-
}, l = n(
|
|
7531
|
+
}, l = n(Ia, {
|
|
7424
7532
|
templatePath: i.current,
|
|
7425
7533
|
showAtStartup: a,
|
|
7426
7534
|
onShowAtStartupChange: o,
|
|
@@ -7462,12 +7570,12 @@ var xa = Gt(Cn("studio:templateDialog", () => import("./C9pIZVACtl9unFOp.mjs")).
|
|
|
7462
7570
|
u
|
|
7463
7571
|
]), null;
|
|
7464
7572
|
});
|
|
7465
|
-
|
|
7466
|
-
var
|
|
7467
|
-
|
|
7573
|
+
Ra.displayName = "TemplateCommands";
|
|
7574
|
+
var za = !1, Ba = () => {
|
|
7575
|
+
za || (za = !0, qe.DefaultCommandRegistry.registerDynamic("app", Ra), P.register({
|
|
7468
7576
|
key: "templates.newFromTemplate",
|
|
7469
7577
|
defaultKey: "newWorkbookFromTemplate",
|
|
7470
7578
|
contributions: { newWorkbookOptions: { order: 1 } }
|
|
7471
7579
|
}, !0));
|
|
7472
7580
|
};
|
|
7473
|
-
export {
|
|
7581
|
+
export { Jr as $, Ki as A, bi as B, Sa as C, Gn as Ct, Xi as D, Zi as E, Vn as Et, Li as F, ui as G, pi as H, Oi as I, si as J, li as K, Ei as L, Hi as M, zi as N, Ji as O, Ri as P, Ur as Q, wi as R, Ca as S, qn as St, na as T, Hn as Tt, mi as U, vi as V, fi as W, ei as X, oi as Y, Xr as Z, Oa as _, ar as _t, pa as a, Pr as at, Ea as b, Qn as bt, ya as c, Sr as ct, ua as d, _r as dt, Wr as et, _a as f, pr as ft, Da as g, sr as gt, Aa as h, cr as ht, ja as i, Nr as it, Vi as j, qi as k, va as l, xr as lt, ga as m, lr as mt, La as n, zr as nt, ba as o, Er as ot, ha as p, mr as pt, ci as q, Na as r, Rr as rt, ca as s, Cr as st, Ba as t, Hr as tt, xa as u, vr as ut, Ta as v, rr as vt, wa as w, Wn as wt, sa as x, Zn as xt, ma as y, $n as yt, Si as z };
|