@sheetxl/studio-mui 0.8.0-beta.11 → 0.8.0-beta.13
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/{DDc6rDuU9JAo1DH_.mjs → 6QDKC3DXaJjdTQvn.mjs} +3 -3
- package/browser/esm/{LZoYSQAYV2wksnDv.mjs → B8-aNCyDzXh-3BnN.mjs} +5 -5
- package/browser/esm/{Bujtz_Guj88d03vI.mjs → BEjT3zSht5iH93uB.mjs} +6 -6
- package/browser/esm/{Ds3XRkne7HxcXD8J.mjs → BKB6y-l1USxdLM8V.mjs} +2 -2
- package/browser/esm/{BED6h6YAwCf1HEQJ.mjs → BKE2ez65WLb02bOy.mjs} +1 -1
- package/browser/esm/{C9pIZVACtl9unFOp.mjs → BOKRcLS0QikMyoWf.mjs} +2 -2
- package/browser/esm/{DdcZrjMLWVukWcU5.mjs → BTH-nzAPniB6G4TG.mjs} +814 -685
- package/browser/esm/{BYE9gCDWKyx6mnVs.mjs → Bbvx7IiwR5jW-Hwu.mjs} +114 -103
- package/browser/esm/{zqilJefihVd7At2T.mjs → BgYy8t04q74BFK5_.mjs} +7 -7
- package/browser/esm/{CynTY0oNtyJnoaBq.mjs → BniGX5aeZXM9zMWH.mjs} +1 -1
- package/browser/esm/{D9ISy7VkaRRFJl46.mjs → BsxCXTfNJhFrldW9.mjs} +4 -4
- package/browser/esm/{D3rRUK4dIM5gUSmj.mjs → BwbheU7gonBpE9Bs.mjs} +2 -2
- package/browser/esm/{DDczwkXhz_MHub4z.mjs → BzLjlI67XDv3JcvA.mjs} +2 -2
- package/browser/esm/{DsoNMWDwHZP8UXQd.mjs → C3KoAU2WKPxC5-u7.mjs} +1 -1
- package/browser/esm/{DTpRkgsTm_zYnWfW.mjs → C9HzAN75sBq35kZg.mjs} +1 -1
- package/browser/esm/{BknfGJouygmnpFIU.mjs → CMbJhvtUGfi-wQ3o.mjs} +2 -2
- package/browser/esm/{DnGaP5F7mLwCGUYG.mjs → CQd6qQ6b5R96lYkQ.mjs} +206 -124
- package/browser/esm/{DV6i9RQZfJiKtEaJ.mjs → CYDqU_DnwM2dkv3O.mjs} +678 -623
- package/browser/esm/{ChSVxkPTIjgcC8PL.mjs → CYNVxcg3QJ1RHCwS.mjs} +2 -2
- package/browser/esm/{BjvD_4t2KGsZP5V8.mjs → CcyyIgMejaWOK8qw.mjs} +3 -3
- package/browser/esm/{ClBvNPeNCAhuVWrG.mjs → CkmieJ2_aHVESg8Q.mjs} +1 -1
- package/browser/esm/{Di3BUxA0SqFWWgeg.mjs → CtVEsNpA7LivARDl.mjs} +1 -1
- package/browser/esm/{w_JrR69vEpvoyeMy.mjs → CyRZCFT_uVfmLkoB.mjs} +1 -1
- package/browser/esm/{DpD4fg2WcyiKX_2K.mjs → D2KYXweAKTJVnLbt.mjs} +5 -5
- package/browser/esm/{G0Inqm6Eqw47dMpa.mjs → D9KI3TDs1Ed_en8o.mjs} +1 -1
- package/browser/esm/{CEtXsBzEjEKk9GOj.mjs → DAX7uqV05BahXHL1.mjs} +2 -2
- package/browser/esm/{COlZu93LRwuBvjE-.mjs → DFEz0RMRQrGo3tWC.mjs} +2 -2
- package/browser/esm/{DG21x7RKDpge6zAE.mjs → DLP2vkb2VDlGGA1A.mjs} +1 -1
- package/browser/esm/{BXhNFzyEGokTF-BL.mjs → DSIQFoVhlKSPzucu.mjs} +2 -2
- package/browser/esm/{Buqcl7J75MJrhpVE.mjs → DWUrXikL8TyDNRrI.mjs} +8 -8
- package/browser/esm/{0BWO0bLZ8Vm_dKd2.mjs → DYypTSo0adN5dUTS.mjs} +13 -13
- package/browser/esm/{CTjqDD-swFMZzI-Y.mjs → D_x6k92V4etahUtS.mjs} +2 -2
- package/browser/esm/{YThnrg3PadGs7B4j.mjs → DeSHnKGHmL3Lwl6t.mjs} +143 -137
- package/browser/esm/{BlE_8o8tO2AgAlaj.mjs → DkRUwiADZvoEL2xg.mjs} +1 -1
- package/browser/esm/{BAbq4-I5f5oUiNaF.mjs → DlGOcFqQzrYB9wiZ.mjs} +4 -4
- package/browser/esm/{C0wlMAIn9iREPK6w.mjs → DvDPtmuD-1bVFXhc.mjs} +1 -1
- package/browser/esm/{DKtJxrpN0axtuQ0l.mjs → DyKgCJS1jQMxcPFF.mjs} +1 -1
- package/browser/esm/{CWkOgdL7mOKiTR62.mjs → ERVyjcGWX4mUl1p_.mjs} +4 -4
- package/browser/esm/{HViD4Wfoi0mmqk9w.mjs → H8Dxocn689KdLYhD.mjs} +1 -1
- package/browser/esm/{Brsh5yscJ_4uKFXp.mjs → LF4eGB9EZ_W6kUXC.mjs} +2 -2
- package/browser/esm/{BokqKEpU6TFgfRs6.mjs → PSYAcayGMjkZauMz.mjs} +2 -2
- package/browser/esm/{DJOOed_OtB-XT7f3.mjs → TT3Q8r0Jww_zZmNv.mjs} +6 -6
- package/browser/esm/{C8JU4KsMasmLvojI.mjs → UMji8dlv0GKyfjRw.mjs} +1 -1
- package/browser/esm/UWvqHAyCVY3D-8Pk.mjs +242 -0
- package/browser/esm/{DRSCS6aLiYmPjUz1.mjs → aNYq27kJA5RA4L_0.mjs} +365 -362
- package/browser/esm/{CBD4RiRKbbZtSXV-.mjs → dn1AnYOyR4bZamV4.mjs} +3 -3
- package/browser/esm/{ttjcNHcFn8O6hfnd.mjs → eKakg1lFqn9dZkOO.mjs} +11 -11
- package/browser/esm/index.mjs +290 -287
- package/browser/esm/{CyLn6zOOp_biA3xU.mjs → jbPNLnRSS8Xt5_Zd.mjs} +8 -8
- package/browser/esm/{BvhYPwX3GrRaO9CM.mjs → oj398-Nn8Gb8Cmu7.mjs} +3 -3
- package/browser/esm/{DEv4pIEgYr5C7etm.mjs → qyIg2o8AfCcwCuVZ.mjs} +1 -1
- package/browser/esm/{xFqkfN8QMCxvsetB.mjs → w9rl3kS5ehDc2U18.mjs} +1 -1
- package/node/esm/{Do-zCKziWhoG5eAv.mjs → A-6VdAxUYuVCsS80.mjs} +2 -2
- package/node/esm/{Db3dbaYLKUO66T9s.mjs → BN5K-JWYdHJtnF5G.mjs} +473 -418
- package/node/esm/{CSAnTp5rwId0DUb8.mjs → BRSLQ_UNOJKAWRUq.mjs} +127 -116
- package/node/esm/{Bph-sR3l6AYWeuxK.mjs → BVCjSh6m3Z_Cd6DD.mjs} +2 -2
- package/node/esm/{4HmLH0bPVJCZLgik.mjs → BVyN4cLnT2ii1GMj.mjs} +1 -1
- package/node/esm/{zITjZ7R4raDqhP-n.mjs → BWG2FA3rbsOsBHQM.mjs} +3 -3
- package/node/esm/{DMXLxp3T0E0SRTQc.mjs → BZVe_afv1tfvExD6.mjs} +1 -1
- package/node/esm/{CYIoK22I6Yvv12_x.mjs → BiBMdXkWOUHZpWcb.mjs} +1 -1
- package/node/esm/{1bf4gn-2vld4BZ9u.mjs → Bj-UqmrrHdVSX4vS.mjs} +1 -1
- package/node/esm/{CuMePia6i_8yfJ6S.mjs → Blxb1C2eUbWoXcsl.mjs} +9 -9
- package/node/esm/{CZyA9uD4SkTvqp_G.mjs → BmySpSgR3H6eUK0L.mjs} +253 -253
- package/node/esm/{CPq-MIdEnc-53JpF.mjs → C86bIpa86VUEVY3_.mjs} +2 -2
- package/node/esm/CVeYUjvKIc1XuPC1.mjs +242 -0
- package/node/esm/{XEDcegsv5AGKBfu2.mjs → Cg1eqOYlWMCprF6j.mjs} +2 -2
- package/node/esm/{BlN7G0DVC24zauig.mjs → CksDVaPvtllTUe7F.mjs} +1 -1
- package/node/esm/{BPzcW4BejRqso338.mjs → D0HpdVWcePBpfQHX.mjs} +3 -3
- package/node/esm/{DfCuL8AUxMFoEG2s.mjs → DEK0D7wAs-O0YMBq.mjs} +36 -36
- package/node/esm/{DLqBHdFp6wvm6EGs.mjs → DFZctv5meqoQLuQF.mjs} +1 -1
- package/node/esm/{BIMkjQUwG4Ih-6Sh.mjs → DQ9BkHy3YgoLqyAw.mjs} +1 -1
- package/node/esm/{D-xqQ5qOSd6WrzwJ.mjs → DTtGcAuClHgv-5s6.mjs} +1 -1
- package/node/esm/{CvRbu8JPxFarsSR-.mjs → DcUXYRkJLeQFybOy.mjs} +5 -5
- package/node/esm/{CjC6s3RUJQNCF7mP.mjs → DjB5CHk5N8mYRiAW.mjs} +1 -1
- package/node/esm/{DeZJlLk8WJ3BLtLs.mjs → DopRYDglwpRFuZ9y.mjs} +3 -3
- package/node/esm/E3iNwBp5FzwRWhBH.mjs +489 -0
- package/node/esm/{DWqvf4H5F2wMnZ0L.mjs → Mm5HFZHyaIJ5EfYO.mjs} +1 -1
- package/node/esm/{CWcv7UVXF8IUB0PC.mjs → VLp3LfRG5Njlf4Mp.mjs} +15 -15
- package/node/esm/{CyafafEgfmjLqE5O.mjs → YTiLYQEQ-ST2j-Yd.mjs} +1 -1
- package/node/esm/{DdEzhVqYTrGODXrz.mjs → h5Tt_pl2Dpa9vaR-.mjs} +1 -1
- package/node/esm/index.mjs +2936 -2800
- package/node/esm/{BR45ogAR-hY2bE60.mjs → nVZW0-P7DISm9GFM.mjs} +1 -1
- package/node/esm/{yCUxQuqVuC4DHKPx.mjs → sKA_898BrWm-kfiS.mjs} +1 -1
- package/node/esm/{3WghtBXAvCDwcVrq.mjs → uySjOpgLC6iCqgC-.mjs} +1 -1
- package/node/esm/{BNg4QQY0WAPLE0q7.mjs → xw7vek0VNw7ofbq1.mjs} +3 -3
- package/node/esm/{DpJ2gmZJioCyq8La.mjs → zZTOpRFxWBgeZTpk.mjs} +166 -160
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +16 -1
- package/resources/locales/de/ui.msg.json +3 -1
- package/resources/locales/en/groups.cmd.json +16 -1
- 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/MembershipOption.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/conditions/SelectorSelect.d.ts +1 -1
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +1 -1
- package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
- package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
- package/types/src/fill/PatternPopupButton.d.ts +1 -1
- package/types/src/filter/ColumnMenu.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/shape/ShapeGalleryCommandButton.d.ts +18 -0
- package/types/src/shape/ShapePlugin.d.ts +2 -0
- package/types/src/shape/index.d.ts +1 -1
- 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/browser/esm/QgaAIDUMmBQBsXP9.mjs +0 -236
- package/node/esm/B0bdb_6p7fQI_ivo.mjs +0 -236
- package/node/esm/DatM6eEYPpAtIMy-.mjs +0 -405
- package/types/src/shape/InsertShapeCommandButton.d.ts +0 -20
|
@@ -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.13
|
|
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 "./BEjT3zSht5iH93uB.mjs";
|
|
8
|
+
import { a as r, n as i } from "./jbPNLnRSS8Xt5_Zd.mjs";
|
|
9
|
+
import { t as a } from "./CkmieJ2_aHVESg8Q.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 "./DYypTSo0adN5dUTS.mjs";
|
|
11
|
+
import { t as p } from "./TT3Q8r0Jww_zZmNv.mjs";
|
|
12
|
+
import { n as m } from "./DLP2vkb2VDlGGA1A.mjs";
|
|
13
|
+
import { t as h } from "./BniGX5aeZXM9zMWH.mjs";
|
|
14
|
+
import { t as g } from "./CYNVxcg3QJ1RHCwS.mjs";
|
|
15
|
+
import { c as _, l as v, n as y, o as b, r as x, s as S, t as C } from "./aNYq27kJA5RA4L_0.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,10 +1087,25 @@ 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
|
+
},
|
|
1094
|
+
insertImageInCellOptions: {
|
|
1095
|
+
label: "Place in Cell",
|
|
1096
|
+
description: "Insert a picture as the value of the selected cell. It moves, sorts and filters with the cell.",
|
|
1097
|
+
icon: "InsertImageInCell"
|
|
1098
|
+
},
|
|
1088
1099
|
insertImageOptions: {
|
|
1089
|
-
|
|
1100
|
+
label: "Pictures",
|
|
1101
|
+
description: "Insert a picture in a cell or over the cells.",
|
|
1090
1102
|
icon: "InsertImage"
|
|
1091
1103
|
},
|
|
1104
|
+
insertImageOverCellsOptions: {
|
|
1105
|
+
label: "Place over Cells",
|
|
1106
|
+
description: "Insert a picture that floats over the cells. It can be moved and resized on its own.",
|
|
1107
|
+
icon: "InsertImageOverCells"
|
|
1108
|
+
},
|
|
1092
1109
|
insertSheetOptions: { description: "Insert new cells, rows or columns to your workbook.\nTo insert multiple rows or columns at a time, select multiple rows or columns in the sheet and click Insert." },
|
|
1093
1110
|
insertToolbar: { label: "Insert" },
|
|
1094
1111
|
languageOptions: {
|
|
@@ -1323,42 +1340,42 @@ var An = {
|
|
|
1323
1340
|
}
|
|
1324
1341
|
}
|
|
1325
1342
|
}
|
|
1326
|
-
}], { DefaultCommandCatalogService:
|
|
1327
|
-
function
|
|
1328
|
-
|
|
1329
|
-
messages:
|
|
1330
|
-
catalogs:
|
|
1343
|
+
}], { DefaultCommandCatalogService: zn } = qe, Bn = !1;
|
|
1344
|
+
function Vn() {
|
|
1345
|
+
Bn || (Bn = !0, zn.registerFromManifest("@sheetxl/studio-mui", import.meta.url, {
|
|
1346
|
+
messages: Ln,
|
|
1347
|
+
catalogs: Rn
|
|
1331
1348
|
}));
|
|
1332
1349
|
}
|
|
1333
|
-
var
|
|
1350
|
+
var Hn = V(B((e, t) => {
|
|
1334
1351
|
let [n] = R(["formatTextRotateCustom"]), r = !!n?.getState();
|
|
1335
|
-
return Y(
|
|
1352
|
+
return Y(Et, {
|
|
1336
1353
|
ref: t,
|
|
1337
1354
|
...e,
|
|
1338
1355
|
selected: r,
|
|
1339
1356
|
quickCommand: r ? "formatTextRotate0" : "formatTextRotate315"
|
|
1340
1357
|
});
|
|
1341
1358
|
}));
|
|
1342
|
-
|
|
1343
|
-
var
|
|
1359
|
+
Hn.displayName = "TextRotateGroupButton";
|
|
1360
|
+
var Un = [
|
|
1344
1361
|
"sheetZoom200",
|
|
1345
1362
|
"sheetZoom100",
|
|
1346
1363
|
"sheetZoom75",
|
|
1347
1364
|
"sheetZoom50",
|
|
1348
1365
|
"sheetZoom25",
|
|
1349
1366
|
"sheetZoomCustom"
|
|
1350
|
-
],
|
|
1351
|
-
let { groupKey: n, disabled: r, ...i } = e, a = z(), o = R(
|
|
1367
|
+
], Wn = V(B((e, t) => {
|
|
1368
|
+
let { groupKey: n, disabled: r, ...i } = e, a = z(), o = R(Un), s = st("sheetZoomOptions"), c = !1, l = o.length;
|
|
1352
1369
|
for (let e = 0; !c && e < l; e++) {
|
|
1353
1370
|
let t = o[e];
|
|
1354
1371
|
t && !t.disabled() && (c = !0);
|
|
1355
1372
|
}
|
|
1356
1373
|
let u = Math.round(o[l - 1]?.getState() ?? 100), d = H((e) => {
|
|
1357
1374
|
let t = {
|
|
1358
|
-
variant:
|
|
1375
|
+
variant: Ye.Menuitem,
|
|
1359
1376
|
groupKey: n,
|
|
1360
1377
|
disabled: r
|
|
1361
|
-
}, i = X(
|
|
1378
|
+
}, i = X(tn, { children: [
|
|
1362
1379
|
Y(K, {
|
|
1363
1380
|
...t,
|
|
1364
1381
|
commandKey: "sheetZoom200"
|
|
@@ -1385,7 +1402,7 @@ var In = [
|
|
|
1385
1402
|
commandKey: "sheetZoomSelection"
|
|
1386
1403
|
}),
|
|
1387
1404
|
Y(q, { orientation: "horizontal" }),
|
|
1388
|
-
Y(
|
|
1405
|
+
Y(Lt, {
|
|
1389
1406
|
...t,
|
|
1390
1407
|
commandKey: "sheetZoomCustom",
|
|
1391
1408
|
groupKey: "sheetZoomOptions",
|
|
@@ -1400,25 +1417,25 @@ var In = [
|
|
|
1400
1417
|
}
|
|
1401
1418
|
})
|
|
1402
1419
|
] });
|
|
1403
|
-
return
|
|
1420
|
+
return Gt({
|
|
1404
1421
|
...e,
|
|
1405
1422
|
children: i
|
|
1406
1423
|
});
|
|
1407
1424
|
}, [r, n]);
|
|
1408
|
-
return Y(
|
|
1425
|
+
return Y(Dt, {
|
|
1409
1426
|
ref: t,
|
|
1410
1427
|
disabled: r || !c,
|
|
1411
1428
|
groupKey: n,
|
|
1412
1429
|
label: s?.getLabel?.(),
|
|
1413
1430
|
tooltip: s?.getDescription?.(),
|
|
1414
|
-
|
|
1431
|
+
renderPopupPanel: d,
|
|
1415
1432
|
quickCommand: "sheetZoom100",
|
|
1416
1433
|
selected: !1,
|
|
1417
1434
|
outlined: !0,
|
|
1418
1435
|
icon: Y(Z, {
|
|
1419
1436
|
className: "zoom-percent",
|
|
1420
1437
|
sx: {
|
|
1421
|
-
...
|
|
1438
|
+
...Wt,
|
|
1422
1439
|
display: "flex",
|
|
1423
1440
|
justifyContent: "center",
|
|
1424
1441
|
whiteSpace: "pre",
|
|
@@ -1431,15 +1448,15 @@ var In = [
|
|
|
1431
1448
|
...i
|
|
1432
1449
|
});
|
|
1433
1450
|
}));
|
|
1434
|
-
|
|
1435
|
-
var
|
|
1436
|
-
let { commandKey: n, variant: i =
|
|
1451
|
+
Wn.displayName = "SheetZoomCommandButton";
|
|
1452
|
+
var Gn = V(B((e, t) => {
|
|
1453
|
+
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
1454
|
_?.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(
|
|
1455
|
+
}, [g, d]), E = H((e) => {
|
|
1456
|
+
let { disabled: t, children: r, title: o, ...s } = e, c = e.children;
|
|
1457
|
+
return (g?.disabled() || a) && (c = Y("div", { children: c })), Y(kt, {
|
|
1441
1458
|
commandKey: n,
|
|
1442
|
-
placement: i ===
|
|
1459
|
+
placement: i === Ye.Toolbar ? "bottom-start" : "right-start",
|
|
1443
1460
|
disabled: t,
|
|
1444
1461
|
...s,
|
|
1445
1462
|
children: c
|
|
@@ -1454,13 +1471,13 @@ var Rn = V(B((e, t) => {
|
|
|
1454
1471
|
schemeLookup: w,
|
|
1455
1472
|
selectedBorder: b,
|
|
1456
1473
|
onSelectBorder: T,
|
|
1457
|
-
|
|
1474
|
+
renderTooltip: E,
|
|
1458
1475
|
disabled: a || !g || g.disabled(),
|
|
1459
1476
|
...h
|
|
1460
1477
|
});
|
|
1461
|
-
})),
|
|
1478
|
+
})), Kn = V((e) => {
|
|
1462
1479
|
let { selected: t, disabled: n, formattedValue: r, handleSetFormat: i, format: a, label: s, sx: c, ...l } = e, u = z();
|
|
1463
|
-
return Y(
|
|
1480
|
+
return Y(Nt, {
|
|
1464
1481
|
sx: {
|
|
1465
1482
|
maxWidth: "360px",
|
|
1466
1483
|
display: "flex",
|
|
@@ -1469,7 +1486,7 @@ var Rn = V(B((e, t) => {
|
|
|
1469
1486
|
},
|
|
1470
1487
|
disabled: n,
|
|
1471
1488
|
selected: t,
|
|
1472
|
-
icon: Y(
|
|
1489
|
+
icon: Y(Bt, {
|
|
1473
1490
|
selected: !!t,
|
|
1474
1491
|
children: t ? void 0 : null
|
|
1475
1492
|
}),
|
|
@@ -1489,11 +1506,11 @@ var Rn = V(B((e, t) => {
|
|
|
1489
1506
|
})
|
|
1490
1507
|
});
|
|
1491
1508
|
});
|
|
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 =
|
|
1509
|
+
Kn.displayName = "NumberFormatMenuItem";
|
|
1510
|
+
var qn = V(B((e, t) => {
|
|
1511
|
+
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
1512
|
let e = d(m, se.Type.General);
|
|
1496
|
-
return 2 *
|
|
1513
|
+
return 2 * ot(e ?? "", {
|
|
1497
1514
|
size: Math.round(h.typography.fontSize),
|
|
1498
1515
|
family: h.typography.fontFamily ?? ""
|
|
1499
1516
|
}) + "px";
|
|
@@ -1510,7 +1527,7 @@ var Bn = V(B((e, t) => {
|
|
|
1510
1527
|
}
|
|
1511
1528
|
n === "" && a[e].formatType === se.Type.General && (n = m("numberFormat.noSpecificFormat"));
|
|
1512
1529
|
let c = a[e].formatType === p;
|
|
1513
|
-
o.push(Y(
|
|
1530
|
+
o.push(Y(Kn, {
|
|
1514
1531
|
selected: c,
|
|
1515
1532
|
disabled: i || !s || s.disabled(),
|
|
1516
1533
|
formattedValue: n,
|
|
@@ -1521,7 +1538,7 @@ var Bn = V(B((e, t) => {
|
|
|
1521
1538
|
let d = {
|
|
1522
1539
|
numberFormat: "",
|
|
1523
1540
|
formatType: se.Type.Custom
|
|
1524
|
-
}, f = p === se.Type.Custom, h = Y(
|
|
1541
|
+
}, f = p === se.Type.Custom, h = Y(Kn, {
|
|
1525
1542
|
selected: f,
|
|
1526
1543
|
disabled: i || !s || s.disabled(),
|
|
1527
1544
|
label: l?.getLabel(u),
|
|
@@ -1535,7 +1552,7 @@ var Bn = V(B((e, t) => {
|
|
|
1535
1552
|
width: "100%"
|
|
1536
1553
|
}
|
|
1537
1554
|
}, se.Type.Custom);
|
|
1538
|
-
return
|
|
1555
|
+
return Gt({
|
|
1539
1556
|
...e,
|
|
1540
1557
|
children: X(Z, {
|
|
1541
1558
|
sx: {
|
|
@@ -1566,13 +1583,13 @@ var Bn = V(B((e, t) => {
|
|
|
1566
1583
|
n,
|
|
1567
1584
|
m
|
|
1568
1585
|
]);
|
|
1569
|
-
return Y(
|
|
1586
|
+
return Y(Dt, {
|
|
1570
1587
|
ref: t,
|
|
1571
1588
|
sx: r,
|
|
1572
1589
|
outlined: !0,
|
|
1573
1590
|
disabled: i ?? (!s || s.disabled()),
|
|
1574
|
-
|
|
1575
|
-
|
|
1591
|
+
renderPopupPanel: _,
|
|
1592
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
1576
1593
|
label: s?.getLabel(),
|
|
1577
1594
|
description: s?.getDescription(),
|
|
1578
1595
|
disabled: t,
|
|
@@ -1601,18 +1618,18 @@ var Bn = V(B((e, t) => {
|
|
|
1601
1618
|
...a
|
|
1602
1619
|
});
|
|
1603
1620
|
}));
|
|
1604
|
-
|
|
1605
|
-
var
|
|
1621
|
+
qn.displayName = "NumberFormatCommandButton";
|
|
1622
|
+
var Jn = ({ entry: e }) => {
|
|
1606
1623
|
let t = e.meta[fe] ?? "", [n] = R([t]), r = t ? n?.getIcon() : void 0;
|
|
1607
1624
|
return r ? typeof r == "string" ? Y(F, { iconKey: r }) : r : Y(F, {});
|
|
1608
|
-
},
|
|
1625
|
+
}, Yn = { agent: {
|
|
1609
1626
|
icon: "Agent",
|
|
1610
1627
|
label: (e) => e("undo.author.agent")
|
|
1611
|
-
} },
|
|
1612
|
-
let t = z(), n = e.author ?
|
|
1628
|
+
} }, Xn = ({ entry: e }) => {
|
|
1629
|
+
let t = z(), n = e.author ? Yn[e.author] : void 0;
|
|
1613
1630
|
if (!n) return null;
|
|
1614
1631
|
let r = n.label(t);
|
|
1615
|
-
return Y(
|
|
1632
|
+
return Y(Vt, {
|
|
1616
1633
|
disableInteractive: !0,
|
|
1617
1634
|
title: r,
|
|
1618
1635
|
children: Y(Z, {
|
|
@@ -1628,7 +1645,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1628
1645
|
children: Y(F, { iconKey: n.icon })
|
|
1629
1646
|
})
|
|
1630
1647
|
});
|
|
1631
|
-
},
|
|
1648
|
+
}, Zn = V(B((e, t) => {
|
|
1632
1649
|
let { quickCommand: n, icon: r, isRedo: i = !1, nestRedo: a = !0, undoManager: o, groupKey: s, sx: c, disabled: l, ...u } = e, d = [n ?? ""];
|
|
1633
1650
|
!i && a && d.push("redo");
|
|
1634
1651
|
let f = R(d), p = z(), m = f[0], h = f[1], g = o ?? m?.getContext?.()?.undoManager, _ = l;
|
|
@@ -1638,7 +1655,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1638
1655
|
g || (n = !0), n ||= a ? !g.hasRedo() && !g.hasUndo() : !g.hasRedo();
|
|
1639
1656
|
let r = (e) => {
|
|
1640
1657
|
m?.execute(e);
|
|
1641
|
-
}, o = Y(
|
|
1658
|
+
}, o = Y(Nt, {
|
|
1642
1659
|
sx: {
|
|
1643
1660
|
display: "flex",
|
|
1644
1661
|
flex: "none",
|
|
@@ -1660,7 +1677,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1660
1677
|
onKeyDown: (e) => {
|
|
1661
1678
|
e.isDefaultPrevented() || e.keyCode !== I.Enter && e.keyCode !== I.Space || r(v);
|
|
1662
1679
|
},
|
|
1663
|
-
children: Y(
|
|
1680
|
+
children: Y(yn, {
|
|
1664
1681
|
component: "div",
|
|
1665
1682
|
variant: "caption",
|
|
1666
1683
|
sx: {
|
|
@@ -1674,14 +1691,14 @@ var Vn = ({ entry: e }) => {
|
|
|
1674
1691
|
let s = i ? g?.getRedoEntries() : g?.getUndoEntries(), c = [];
|
|
1675
1692
|
for (let e = 0; e < s.length; e++) {
|
|
1676
1693
|
let t = s[e], n = p(t.description);
|
|
1677
|
-
c.push(Y(
|
|
1694
|
+
c.push(Y(Nt, {
|
|
1678
1695
|
sx: {
|
|
1679
1696
|
maxWidth: "360px",
|
|
1680
1697
|
display: "flex"
|
|
1681
1698
|
},
|
|
1682
1699
|
disabled: _,
|
|
1683
1700
|
selected: e < v,
|
|
1684
|
-
icon: Y(
|
|
1701
|
+
icon: Y(Jn, { entry: t }),
|
|
1685
1702
|
onMouseEnter: () => {
|
|
1686
1703
|
y(e + 1);
|
|
1687
1704
|
},
|
|
@@ -1702,7 +1719,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1702
1719
|
alignItems: "center",
|
|
1703
1720
|
overflow: "hidden"
|
|
1704
1721
|
},
|
|
1705
|
-
children: [Y(
|
|
1722
|
+
children: [Y(yn, {
|
|
1706
1723
|
component: "div",
|
|
1707
1724
|
noWrap: !0,
|
|
1708
1725
|
sx: {
|
|
@@ -1710,7 +1727,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1710
1727
|
minWidth: 0
|
|
1711
1728
|
},
|
|
1712
1729
|
children: n
|
|
1713
|
-
}), Y(
|
|
1730
|
+
}), Y(Xn, { entry: t })]
|
|
1714
1731
|
})
|
|
1715
1732
|
}, `action:${e}`));
|
|
1716
1733
|
}
|
|
@@ -1718,9 +1735,9 @@ var Vn = ({ entry: e }) => {
|
|
|
1718
1735
|
if (!i && a) {
|
|
1719
1736
|
let e = {
|
|
1720
1737
|
groupKey: "undo",
|
|
1721
|
-
variant:
|
|
1738
|
+
variant: Ye.Menuitem
|
|
1722
1739
|
};
|
|
1723
|
-
l = [], l.push(Y(
|
|
1740
|
+
l = [], l.push(Y(Zn, {
|
|
1724
1741
|
...e,
|
|
1725
1742
|
quickCommand: "redo",
|
|
1726
1743
|
isRedo: !0
|
|
@@ -1752,7 +1769,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1752
1769
|
o
|
|
1753
1770
|
]
|
|
1754
1771
|
});
|
|
1755
|
-
return
|
|
1772
|
+
return Gt({
|
|
1756
1773
|
...e,
|
|
1757
1774
|
children: u
|
|
1758
1775
|
});
|
|
@@ -1765,24 +1782,24 @@ var Vn = ({ entry: e }) => {
|
|
|
1765
1782
|
_,
|
|
1766
1783
|
p
|
|
1767
1784
|
]);
|
|
1768
|
-
return Y(
|
|
1785
|
+
return Y(Dt, {
|
|
1769
1786
|
ref: t,
|
|
1770
1787
|
quickCommand: n,
|
|
1771
1788
|
groupKey: s,
|
|
1772
1789
|
disabled: _,
|
|
1773
1790
|
label: m?.getLabel(s) ?? (i ? "Redo" : "Undo"),
|
|
1774
|
-
tooltip: Y(
|
|
1775
|
-
|
|
1791
|
+
tooltip: Y(tn, { children: Y("span", { children: `${m?.getLabel() ?? "No"} last actions.` }) }),
|
|
1792
|
+
renderPopupPanel: b,
|
|
1776
1793
|
icon: r ?? (i ? "Redo" : "Undo"),
|
|
1777
1794
|
selected: !1,
|
|
1778
1795
|
...u
|
|
1779
1796
|
});
|
|
1780
|
-
})),
|
|
1797
|
+
})), Qn = V(B((e, t) => {
|
|
1781
1798
|
let { groupKey: n, disabled: r, ...i } = e, a = [
|
|
1782
1799
|
"formatStrikeThroughToggle",
|
|
1783
1800
|
"formatSuperscriptToggle",
|
|
1784
1801
|
"formatSubscriptToggle"
|
|
1785
|
-
], o = R(a), s =
|
|
1802
|
+
], 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
1803
|
for (let e = 0; !u && e < f; e++) {
|
|
1787
1804
|
let t = o[e];
|
|
1788
1805
|
t && !t.disabled() && (d = !0, t.getState() && (u = a[e]));
|
|
@@ -1790,10 +1807,10 @@ var Vn = ({ entry: e }) => {
|
|
|
1790
1807
|
u ||= a[0];
|
|
1791
1808
|
let p = H((e) => {
|
|
1792
1809
|
let t = {
|
|
1793
|
-
variant:
|
|
1810
|
+
variant: Ye.Menuitem,
|
|
1794
1811
|
groupKey: "textEffectsOptions",
|
|
1795
1812
|
disabled: r
|
|
1796
|
-
}, n = X(
|
|
1813
|
+
}, n = X(tn, { children: [
|
|
1797
1814
|
Y(K, {
|
|
1798
1815
|
...t,
|
|
1799
1816
|
commandKey: "formatStrikeThroughToggle"
|
|
@@ -1807,23 +1824,23 @@ var Vn = ({ entry: e }) => {
|
|
|
1807
1824
|
commandKey: "formatSubscriptToggle"
|
|
1808
1825
|
})
|
|
1809
1826
|
] });
|
|
1810
|
-
return
|
|
1827
|
+
return Gt({
|
|
1811
1828
|
...e,
|
|
1812
1829
|
children: n
|
|
1813
1830
|
});
|
|
1814
1831
|
}, [r, n]);
|
|
1815
|
-
return Y(
|
|
1832
|
+
return Y(Dt, {
|
|
1816
1833
|
ref: t,
|
|
1817
1834
|
quickCommand: u,
|
|
1818
1835
|
disabled: r ?? !d,
|
|
1819
|
-
|
|
1836
|
+
renderPopupPanel: p,
|
|
1820
1837
|
label: c,
|
|
1821
1838
|
tooltip: l,
|
|
1822
1839
|
...i
|
|
1823
1840
|
});
|
|
1824
|
-
})),
|
|
1841
|
+
})), $n = V(B((e, t) => {
|
|
1825
1842
|
let { commandKey: n, includePasteAllInPopup: r = !0, ...i } = e;
|
|
1826
|
-
return Y(
|
|
1843
|
+
return Y(Et, r ? {
|
|
1827
1844
|
ref: t,
|
|
1828
1845
|
groupKey: "pasteOptions",
|
|
1829
1846
|
...i
|
|
@@ -1840,18 +1857,18 @@ var Vn = ({ entry: e }) => {
|
|
|
1840
1857
|
quickCommand: "paste",
|
|
1841
1858
|
...i
|
|
1842
1859
|
});
|
|
1843
|
-
})),
|
|
1860
|
+
})), er = (e, t) => {
|
|
1844
1861
|
let n = ue(e);
|
|
1845
1862
|
return n ? t(n.key, n.params) : e;
|
|
1846
|
-
},
|
|
1847
|
-
let n = new Intl.Collator(
|
|
1848
|
-
return [...e].sort((e, r) => n.compare(
|
|
1849
|
-
},
|
|
1863
|
+
}, tr = (e, t) => {
|
|
1864
|
+
let n = new Intl.Collator(Tn.getActive(), { numeric: !0 });
|
|
1865
|
+
return [...e].sort((e, r) => n.compare(er(e, t), er(r, t)));
|
|
1866
|
+
}, nr = V((e) => {
|
|
1850
1867
|
let { namedStyle: t, selectedNamed: n, hasContextMenu: r = !0, onSelectNamed: i, createCell: a, disabled: o, ...s } = e, c = z(), l = H((e) => {
|
|
1851
1868
|
let n = {
|
|
1852
|
-
variant:
|
|
1869
|
+
variant: Ye.Menuitem,
|
|
1853
1870
|
context: "cellStyle"
|
|
1854
|
-
}, r = X(
|
|
1871
|
+
}, r = X(tn, { children: [
|
|
1855
1872
|
Y(K, {
|
|
1856
1873
|
...n,
|
|
1857
1874
|
style: { fontWeight: 550 },
|
|
@@ -1872,7 +1889,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1872
1889
|
disabled: o || t?.getName() === O.BuiltInName.Normal
|
|
1873
1890
|
})
|
|
1874
1891
|
] });
|
|
1875
|
-
return
|
|
1892
|
+
return Gt({
|
|
1876
1893
|
...e,
|
|
1877
1894
|
children: Y(Z, {
|
|
1878
1895
|
sx: {
|
|
@@ -1899,7 +1916,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1899
1916
|
border: (e) => `solid ${u ? e.palette.primary.dark : "transparent"} 1px`
|
|
1900
1917
|
},
|
|
1901
1918
|
propsTooltip: {
|
|
1902
|
-
label:
|
|
1919
|
+
label: er(t.getName(), c),
|
|
1903
1920
|
placement: "bottom-start"
|
|
1904
1921
|
},
|
|
1905
1922
|
disabled: o,
|
|
@@ -1909,25 +1926,25 @@ var Vn = ({ entry: e }) => {
|
|
|
1909
1926
|
},
|
|
1910
1927
|
...s,
|
|
1911
1928
|
children: Y(xe, {
|
|
1912
|
-
value:
|
|
1929
|
+
value: er(t.getName(), c),
|
|
1913
1930
|
cellStyle: { named: t.getName() },
|
|
1914
1931
|
createCell: a
|
|
1915
1932
|
})
|
|
1916
1933
|
}, t.getName());
|
|
1917
|
-
return r && (d = Y(
|
|
1918
|
-
label:
|
|
1919
|
-
|
|
1934
|
+
return r && (d = Y(At, {
|
|
1935
|
+
label: er(t.getName(), c),
|
|
1936
|
+
renderPopupPanel: l,
|
|
1920
1937
|
children: d
|
|
1921
1938
|
})), 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 =
|
|
1939
|
+
}), rr = V(B((e, t) => {
|
|
1940
|
+
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
1941
|
i?.(e), u?.execute(e);
|
|
1925
1942
|
}, [u, i]), _ = H((e) => {
|
|
1926
1943
|
let t = f?.(), n = { onSelectNamed: g }, r = t?.getNamedStyles().getItems({ type: "custom" }), i = /* @__PURE__ */ new Map(), o = [], s = r ? r.length ?? 0 : 0;
|
|
1927
1944
|
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
1945
|
let c = (e) => {
|
|
1929
1946
|
let r = i.get(e);
|
|
1930
|
-
return r ||= t?.getNamedStyles().getByName(e), !r || r.isHidden() ? null : Y(
|
|
1947
|
+
return r ||= t?.getNamedStyles().getByName(e), !r || r.isHidden() ? null : Y(nr, {
|
|
1931
1948
|
namedStyle: r,
|
|
1932
1949
|
selectedNamed: p,
|
|
1933
1950
|
createCell: d.createCell,
|
|
@@ -1941,7 +1958,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1941
1958
|
}
|
|
1942
1959
|
return r.length === 0 ? null : X(Z, { children: [
|
|
1943
1960
|
n ? Y(q, { orientation: "horizontal" }) : null,
|
|
1944
|
-
Y(
|
|
1961
|
+
Y(Mt, { children: e }, e + "-header"),
|
|
1945
1962
|
Y(Z, {
|
|
1946
1963
|
sx: {
|
|
1947
1964
|
display: "flex",
|
|
@@ -1972,11 +1989,11 @@ var Vn = ({ entry: e }) => {
|
|
|
1972
1989
|
children: n
|
|
1973
1990
|
}, e + "-presets");
|
|
1974
1991
|
}, _ = [];
|
|
1975
|
-
_.push(u(l("cellStyle.category.custom"), o, !1)), _.push(u(l("cellStyle.category.goodBadNeutral"), [O.BuiltInName.Normal, ...
|
|
1992
|
+
_.push(u(l("cellStyle.category.custom"), o, !1)), _.push(u(l("cellStyle.category.goodBadNeutral"), [O.BuiltInName.Normal, ...tr([
|
|
1976
1993
|
O.BuiltInName.Bad,
|
|
1977
1994
|
O.BuiltInName.Good,
|
|
1978
1995
|
O.BuiltInName.Neutral
|
|
1979
|
-
], l)], o.length > 0)), _.push(u(l("cellStyle.category.dataModel"),
|
|
1996
|
+
], l)], o.length > 0)), _.push(u(l("cellStyle.category.dataModel"), tr([
|
|
1980
1997
|
O.BuiltInName.Calculation,
|
|
1981
1998
|
O.BuiltInName.CheckCell,
|
|
1982
1999
|
O.BuiltInName.ExplanatoryText,
|
|
@@ -1987,7 +2004,7 @@ var Vn = ({ entry: e }) => {
|
|
|
1987
2004
|
O.BuiltInName.Note,
|
|
1988
2005
|
O.BuiltInName.Output,
|
|
1989
2006
|
O.BuiltInName.WarningText
|
|
1990
|
-
], l))), _.push(u(l("cellStyle.category.titlesHeadings"),
|
|
2007
|
+
], l))), _.push(u(l("cellStyle.category.titlesHeadings"), tr([
|
|
1991
2008
|
O.BuiltInName.Heading1,
|
|
1992
2009
|
O.BuiltInName.Heading2,
|
|
1993
2010
|
O.BuiltInName.Heading3,
|
|
@@ -2029,7 +2046,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2029
2046
|
O.BuiltInName.Accent6
|
|
2030
2047
|
])), _.push((y = l("cellStyle.category.themed"), b = v, X(Z, { children: [
|
|
2031
2048
|
Y(q, { orientation: "horizontal" }),
|
|
2032
|
-
Y(
|
|
2049
|
+
Y(Mt, { children: y }, y + "-header"),
|
|
2033
2050
|
Y(Z, {
|
|
2034
2051
|
sx: {
|
|
2035
2052
|
display: "flex",
|
|
@@ -2071,7 +2088,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2071
2088
|
}),
|
|
2072
2089
|
Y(q, { orientation: "horizontal" }),
|
|
2073
2090
|
Y(K, {
|
|
2074
|
-
variant:
|
|
2091
|
+
variant: Ye.Menuitem,
|
|
2075
2092
|
commandState: p,
|
|
2076
2093
|
commandKey: "newCellStyle",
|
|
2077
2094
|
groupKey: "cellStyle",
|
|
@@ -2092,7 +2109,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2092
2109
|
font: { size: t }
|
|
2093
2110
|
} });
|
|
2094
2111
|
}, [d?.createCell]), y = a ?? (!u || u.disabled()), b = W(() => o ? Y(xe, {
|
|
2095
|
-
value: p ?
|
|
2112
|
+
value: p ? er(p.getName(), l) : "",
|
|
2096
2113
|
cellStyle: p ? { named: p.getName() } : {},
|
|
2097
2114
|
createCell: v,
|
|
2098
2115
|
className: "outline-hover",
|
|
@@ -2117,11 +2134,11 @@ var Vn = ({ entry: e }) => {
|
|
|
2117
2134
|
l,
|
|
2118
2135
|
m
|
|
2119
2136
|
]);
|
|
2120
|
-
return Y(
|
|
2137
|
+
return Y(Dt, {
|
|
2121
2138
|
ref: t,
|
|
2122
|
-
|
|
2139
|
+
renderPopupPanel: _,
|
|
2123
2140
|
outlined: o,
|
|
2124
|
-
|
|
2141
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
2125
2142
|
label: u?.getLabel(),
|
|
2126
2143
|
description: u?.getDescription(),
|
|
2127
2144
|
disabled: t,
|
|
@@ -2134,14 +2151,14 @@ var Vn = ({ entry: e }) => {
|
|
|
2134
2151
|
icon: b,
|
|
2135
2152
|
...c
|
|
2136
2153
|
});
|
|
2137
|
-
})),
|
|
2138
|
-
|
|
2154
|
+
})), ir = Qt(On("studio:tableDetailsTaskPane", () => import("./B8-aNCyDzXh-3BnN.mjs"), { select: (e) => ({ default: e.TableDetailsTaskPane }) }).load), ar = () => {
|
|
2155
|
+
Ze.register("plugin-table", { icons: {} }), pe.registerTaskPane({
|
|
2139
2156
|
key: "tableDetails",
|
|
2140
2157
|
getTitle: () => "Table Details",
|
|
2141
2158
|
getIcon: () => "Table",
|
|
2142
|
-
component:
|
|
2159
|
+
component: ir
|
|
2143
2160
|
}, !0);
|
|
2144
|
-
},
|
|
2161
|
+
}, or = [
|
|
2145
2162
|
{
|
|
2146
2163
|
val: "bg1",
|
|
2147
2164
|
labelKey: "color.scheme.bg1"
|
|
@@ -2188,11 +2205,11 @@ var Vn = ({ entry: e }) => {
|
|
|
2188
2205
|
labelKey: "color.scheme.accent",
|
|
2189
2206
|
n: 6
|
|
2190
2207
|
}
|
|
2191
|
-
],
|
|
2192
|
-
let { docTheme: r, onSelectTheme: i, darkMode: a, isSelected: o, outlined: s, sx: c, ...l } = t, u =
|
|
2208
|
+
], sr = (t) => {
|
|
2209
|
+
let { docTheme: r, onSelectTheme: i, darkMode: a, isSelected: o, outlined: s, sx: c, ...l } = t, u = Cn(), d = z(), f = W(() => {
|
|
2193
2210
|
let t = [];
|
|
2194
|
-
for (let i = 0; i <
|
|
2195
|
-
let o =
|
|
2211
|
+
for (let i = 0; i < or.length; i++) {
|
|
2212
|
+
let o = or[i], s = e(d(o.labelKey, o.n === void 0 ? void 0 : { n: o.n }), o.val);
|
|
2196
2213
|
t.push(Y(n, {
|
|
2197
2214
|
schemeColorLookup: r.schemeLookup(),
|
|
2198
2215
|
colorDef: s,
|
|
@@ -2261,7 +2278,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2261
2278
|
whiteSpace: "pre",
|
|
2262
2279
|
fontFamily: () => r.getFontScheme().getMajorFont()
|
|
2263
2280
|
},
|
|
2264
|
-
children: Y(
|
|
2281
|
+
children: Y(Vt, {
|
|
2265
2282
|
disableInteractive: !0,
|
|
2266
2283
|
slotProps: { popper: {
|
|
2267
2284
|
style: { pointerEvents: "none" },
|
|
@@ -2290,10 +2307,10 @@ var Vn = ({ entry: e }) => {
|
|
|
2290
2307
|
})]
|
|
2291
2308
|
})
|
|
2292
2309
|
});
|
|
2293
|
-
},
|
|
2310
|
+
}, cr = V(B((e, t) => {
|
|
2294
2311
|
let { themes: n, selectedTheme: r, onSelectTheme: i, sx: a, disabled: o = !1, darkMode: s, ...c } = e, l = z(), u = W(() => {
|
|
2295
2312
|
let e = n?.getItems({ selected: r }) ?? [], t = [];
|
|
2296
|
-
if (e.length === 0) return Y(
|
|
2313
|
+
if (e.length === 0) return Y(Mt, {
|
|
2297
2314
|
sx: {
|
|
2298
2315
|
paddingLeft: "16px",
|
|
2299
2316
|
paddingRight: "16px",
|
|
@@ -2308,7 +2325,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2308
2325
|
l && l.isCustom() !== a.isCustom() && t.push(Y(q, {
|
|
2309
2326
|
orientation: "horizontal",
|
|
2310
2327
|
sx: { marginBottom: "4px" }
|
|
2311
|
-
}, `divider-${n}`)), t.push(Y(
|
|
2328
|
+
}, `divider-${n}`)), t.push(Y(sr, {
|
|
2312
2329
|
docTheme: a,
|
|
2313
2330
|
onSelectTheme: () => i?.(a),
|
|
2314
2331
|
isSelected: c,
|
|
@@ -2346,7 +2363,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2346
2363
|
overflow: "hidden"
|
|
2347
2364
|
},
|
|
2348
2365
|
children: [
|
|
2349
|
-
Y(
|
|
2366
|
+
Y(Mt, {
|
|
2350
2367
|
sx: {
|
|
2351
2368
|
paddingLeft: "16px",
|
|
2352
2369
|
paddingRight: "16px",
|
|
@@ -2367,11 +2384,11 @@ var Vn = ({ entry: e }) => {
|
|
|
2367
2384
|
]
|
|
2368
2385
|
})
|
|
2369
2386
|
});
|
|
2370
|
-
})),
|
|
2371
|
-
let { themes: n, selectedTheme: r, onSelectTheme: i, icon: a, tooltip: o, label: s, variant: c =
|
|
2372
|
-
|
|
2387
|
+
})), lr = V(B((e, t) => {
|
|
2388
|
+
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 = {
|
|
2389
|
+
renderPopupPanel: H((e) => {
|
|
2373
2390
|
let { closeFloatAll: t } = e;
|
|
2374
|
-
return Y(
|
|
2391
|
+
return Y(cr, {
|
|
2375
2392
|
...u,
|
|
2376
2393
|
themes: n,
|
|
2377
2394
|
selectedTheme: r,
|
|
@@ -2393,14 +2410,14 @@ var Vn = ({ entry: e }) => {
|
|
|
2393
2410
|
icon: f,
|
|
2394
2411
|
...d
|
|
2395
2412
|
};
|
|
2396
|
-
return c ===
|
|
2413
|
+
return c === zt.Toolbar ? Y(Pt, {
|
|
2397
2414
|
ref: t,
|
|
2398
2415
|
...p
|
|
2399
|
-
}) : Y(
|
|
2416
|
+
}) : Y(Ft, {
|
|
2400
2417
|
ref: t,
|
|
2401
2418
|
...p
|
|
2402
2419
|
});
|
|
2403
|
-
})),
|
|
2420
|
+
})), ur = (e, t, n = "app") => e?.[t.palette.mode]?.[n] ?? {}, dr = {
|
|
2404
2421
|
light: {
|
|
2405
2422
|
desktop: "#f1f1f1",
|
|
2406
2423
|
elevated: "#ffffff",
|
|
@@ -2411,8 +2428,8 @@ var Vn = ({ entry: e }) => {
|
|
|
2411
2428
|
elevated: "#262626",
|
|
2412
2429
|
header: "#262626"
|
|
2413
2430
|
}
|
|
2414
|
-
},
|
|
2415
|
-
let { palette: n, typography: r, shape: i } = e, a = typeof i?.borderRadius == "number" ? i.borderRadius : 4, o =
|
|
2431
|
+
}, fr = (e) => dr[e.palette.mode] ?? dr.light, pr = (e, t) => {
|
|
2432
|
+
let { palette: n, typography: r, shape: i } = e, a = typeof i?.borderRadius == "number" ? i.borderRadius : 4, o = ur(t, e), s = fr(e);
|
|
2416
2433
|
return {
|
|
2417
2434
|
"color-base-100": n.background.paper,
|
|
2418
2435
|
"color-base-200": s.desktop,
|
|
@@ -2444,7 +2461,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2444
2461
|
"radius-box": 1.5 * a + "px",
|
|
2445
2462
|
border: "1px"
|
|
2446
2463
|
};
|
|
2447
|
-
},
|
|
2464
|
+
}, mr = (e) => {
|
|
2448
2465
|
if (!e) return {};
|
|
2449
2466
|
let t = {}, n = (e, n, r) => {
|
|
2450
2467
|
n == null && r == null || (t[e] = { ...t[e] ?? {} }, n != null && (t[e].main = n), r != null && (t[e].contrastText = r));
|
|
@@ -2456,79 +2473,79 @@ var Vn = ({ entry: e }) => {
|
|
|
2456
2473
|
Object.keys(t).length && (i.palette = t), e["radius-field"] != null && (i.shape = { borderRadius: parseFloat(e["radius-field"]) });
|
|
2457
2474
|
let a = {};
|
|
2458
2475
|
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
|
-
},
|
|
2476
|
+
}, hr = (e, t) => {
|
|
2460
2477
|
let n = e.palette, r = n.background.default;
|
|
2461
2478
|
return {
|
|
2462
2479
|
"color-base-100": r,
|
|
2463
2480
|
"color-base-content": n.text.primary,
|
|
2464
|
-
"color-base-300":
|
|
2481
|
+
"color-base-300": Yt(r, .12, n.mode),
|
|
2465
2482
|
"color-primary": n.primary.main,
|
|
2466
|
-
...
|
|
2483
|
+
...ur(t, e, "grid")
|
|
2467
2484
|
};
|
|
2468
|
-
},
|
|
2469
|
-
let n = e.palette, r = n.background.default, i = ((e, t) =>
|
|
2485
|
+
}, gr = (e, t) => {
|
|
2486
|
+
let n = e.palette, r = n.background.default, i = ((e, t) => ur(t, e, "header")["color-base-100"] ?? fr(e).header)(e, t);
|
|
2470
2487
|
return {
|
|
2471
2488
|
"color-base-100": i,
|
|
2472
|
-
"color-base-hover":
|
|
2473
|
-
"color-base-300":
|
|
2489
|
+
"color-base-hover": Yt(i, .065, n.mode),
|
|
2490
|
+
"color-base-300": Yt(r, .12, n.mode),
|
|
2474
2491
|
"color-base-content": n.text.primary,
|
|
2475
2492
|
"color-primary": n.primary.main,
|
|
2476
2493
|
"color-primary-content": n.primary.contrastText,
|
|
2477
2494
|
"color-base-emphasis-content": n.primary.contrastText,
|
|
2478
|
-
...
|
|
2495
|
+
...ur(t, e, "header")
|
|
2479
2496
|
};
|
|
2480
|
-
},
|
|
2497
|
+
}, _r = (e, t, n, r) => {
|
|
2481
2498
|
let i = {
|
|
2482
2499
|
light: {
|
|
2483
|
-
...
|
|
2484
|
-
...
|
|
2500
|
+
...rt.light,
|
|
2501
|
+
...pr(e, r),
|
|
2485
2502
|
...r?.light?.app ?? {}
|
|
2486
2503
|
},
|
|
2487
2504
|
dark: {
|
|
2488
|
-
...
|
|
2489
|
-
...
|
|
2505
|
+
...rt.dark,
|
|
2506
|
+
...pr(t, r),
|
|
2490
2507
|
...r?.dark?.app ?? {}
|
|
2491
2508
|
}
|
|
2492
2509
|
};
|
|
2493
|
-
return
|
|
2510
|
+
return Pn({
|
|
2494
2511
|
app: i,
|
|
2495
2512
|
grid: {
|
|
2496
|
-
light:
|
|
2497
|
-
dark:
|
|
2513
|
+
light: hr(e, r),
|
|
2514
|
+
dark: hr(t, r)
|
|
2498
2515
|
},
|
|
2499
2516
|
header: {
|
|
2500
|
-
light:
|
|
2501
|
-
dark:
|
|
2517
|
+
light: gr(e, r),
|
|
2518
|
+
dark: gr(t, r)
|
|
2502
2519
|
},
|
|
2503
2520
|
layer: "sxl-app",
|
|
2504
2521
|
scope: n
|
|
2505
2522
|
});
|
|
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 =
|
|
2523
|
+
}, vr = V(B((e, t) => {
|
|
2524
|
+
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
2525
|
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(
|
|
2526
|
+
}, [i]), v = H((e) => {
|
|
2527
|
+
let { disabled: t, children: r, title: i, ...a } = e, o = e.children;
|
|
2528
|
+
return (g || t) && (o = Y("div", { children: o })), Y(kt, {
|
|
2512
2529
|
commandKey: n,
|
|
2513
|
-
placement: l ===
|
|
2530
|
+
placement: l === Ye.Toolbar ? "bottom-start" : "right-start",
|
|
2514
2531
|
disabled: g || t,
|
|
2515
2532
|
...a,
|
|
2516
2533
|
children: o
|
|
2517
2534
|
});
|
|
2518
2535
|
}, [d, g]);
|
|
2519
|
-
return Y(
|
|
2536
|
+
return Y(lr, {
|
|
2520
2537
|
ref: t,
|
|
2521
2538
|
themes: f,
|
|
2522
2539
|
selectedTheme: p,
|
|
2523
2540
|
onSelectTheme: _,
|
|
2524
|
-
variant: l ===
|
|
2525
|
-
|
|
2541
|
+
variant: l === Ye.Menuitem ? zt.Menuitem : zt.Toolbar,
|
|
2542
|
+
renderTooltip: v,
|
|
2526
2543
|
disabled: g,
|
|
2527
2544
|
darkMode: h,
|
|
2528
2545
|
...u
|
|
2529
2546
|
});
|
|
2530
|
-
})),
|
|
2531
|
-
let { label: t, value: n, min: r, step: i, disabled: a, onCommit: o } = e, s =
|
|
2547
|
+
})), yr = V((e) => {
|
|
2548
|
+
let { label: t, value: n, min: r, step: i, disabled: a, onCommit: o } = e, s = ut(), [c, l] = G(String(n));
|
|
2532
2549
|
U(() => {
|
|
2533
2550
|
l(String(n));
|
|
2534
2551
|
}, [n]);
|
|
@@ -2536,7 +2553,7 @@ var Vn = ({ entry: e }) => {
|
|
|
2536
2553
|
let e = Number(c);
|
|
2537
2554
|
c.trim() !== "" && Number.isFinite(e) ? e !== n && o(e) : l(String(n));
|
|
2538
2555
|
};
|
|
2539
|
-
return Y(
|
|
2556
|
+
return Y(gn, {
|
|
2540
2557
|
size: "small",
|
|
2541
2558
|
type: "number",
|
|
2542
2559
|
label: t,
|
|
@@ -2557,8 +2574,8 @@ var Vn = ({ entry: e }) => {
|
|
|
2557
2574
|
sx: { width: "10em" }
|
|
2558
2575
|
});
|
|
2559
2576
|
});
|
|
2560
|
-
|
|
2561
|
-
var
|
|
2577
|
+
yr.displayName = "LimitField";
|
|
2578
|
+
var br = V((e) => {
|
|
2562
2579
|
let { calculation: t, disabled: n } = e, r = z(), [i] = R(["calcIterativeToggle"]), [a, o] = G(() => t?.getIterativeCalculation() ?? null);
|
|
2563
2580
|
U(() => {
|
|
2564
2581
|
o(t?.getIterativeCalculation() ?? null);
|
|
@@ -2571,13 +2588,13 @@ var pr = V((e) => {
|
|
|
2571
2588
|
display: "flex",
|
|
2572
2589
|
alignItems: "center",
|
|
2573
2590
|
gap: 1,
|
|
2574
|
-
...
|
|
2591
|
+
...Rt,
|
|
2575
2592
|
pt: 1.5,
|
|
2576
2593
|
pb: 1
|
|
2577
2594
|
},
|
|
2578
2595
|
children: [
|
|
2579
|
-
Y(
|
|
2580
|
-
Y(
|
|
2596
|
+
Y(ln, { children: Y(F, {}) }),
|
|
2597
|
+
Y(yr, {
|
|
2581
2598
|
label: r("calcOptions.maxIterations"),
|
|
2582
2599
|
value: a?.maxIteration ?? 100,
|
|
2583
2600
|
min: 1,
|
|
@@ -2587,7 +2604,7 @@ var pr = V((e) => {
|
|
|
2587
2604
|
t?.setIterativeCalculation({ maxIteration: e });
|
|
2588
2605
|
}
|
|
2589
2606
|
}),
|
|
2590
|
-
Y(
|
|
2607
|
+
Y(yr, {
|
|
2591
2608
|
label: r("calcOptions.maxChange"),
|
|
2592
2609
|
value: a?.maxChange ?? .001,
|
|
2593
2610
|
min: 0,
|
|
@@ -2600,14 +2617,14 @@ var pr = V((e) => {
|
|
|
2600
2617
|
]
|
|
2601
2618
|
});
|
|
2602
2619
|
});
|
|
2603
|
-
|
|
2604
|
-
var
|
|
2605
|
-
let { groupKey: n, workbook: r, disabled: i, ...a } = e, o =
|
|
2620
|
+
br.displayName = "IterativeLimits";
|
|
2621
|
+
var xr = V(B((e, t) => {
|
|
2622
|
+
let { groupKey: n, workbook: r, disabled: i, ...a } = e, o = Ge(), s = (r ?? o)?.getCalculation() ?? null, c = st("calculationOptions"), l = L((e) => {
|
|
2606
2623
|
let t = {
|
|
2607
|
-
variant:
|
|
2624
|
+
variant: Ye.Menuitem,
|
|
2608
2625
|
groupKey: "calculationOptions",
|
|
2609
2626
|
disabled: i
|
|
2610
|
-
}, n = X(
|
|
2627
|
+
}, n = X(tn, { children: [
|
|
2611
2628
|
Y(K, {
|
|
2612
2629
|
...t,
|
|
2613
2630
|
commandKey: "calcModeAutomatic"
|
|
@@ -2625,7 +2642,7 @@ var mr = V(B((e, t) => {
|
|
|
2625
2642
|
...t,
|
|
2626
2643
|
commandKey: "calcIterativeToggle"
|
|
2627
2644
|
}),
|
|
2628
|
-
Y(
|
|
2645
|
+
Y(br, {
|
|
2629
2646
|
calculation: s,
|
|
2630
2647
|
disabled: i
|
|
2631
2648
|
}),
|
|
@@ -2639,14 +2656,14 @@ var mr = V(B((e, t) => {
|
|
|
2639
2656
|
commandKey: "calculateFull"
|
|
2640
2657
|
})
|
|
2641
2658
|
] });
|
|
2642
|
-
return
|
|
2659
|
+
return Gt({
|
|
2643
2660
|
...e,
|
|
2644
2661
|
children: n
|
|
2645
2662
|
});
|
|
2646
2663
|
}, [i, s]);
|
|
2647
|
-
return Y(
|
|
2664
|
+
return Y(Dt, {
|
|
2648
2665
|
ref: t,
|
|
2649
|
-
|
|
2666
|
+
renderPopupPanel: l,
|
|
2650
2667
|
icon: "Calculate",
|
|
2651
2668
|
label: c?.getLabel?.(),
|
|
2652
2669
|
tooltip: c?.getDescription?.(),
|
|
@@ -2654,9 +2671,9 @@ var mr = V(B((e, t) => {
|
|
|
2654
2671
|
...a
|
|
2655
2672
|
});
|
|
2656
2673
|
}));
|
|
2657
|
-
|
|
2658
|
-
var
|
|
2659
|
-
let { commandKey: n, ...r } = e, i =
|
|
2674
|
+
xr.displayName = "CalculationOptionsCommandButton";
|
|
2675
|
+
var Sr = V(B((e, t) => {
|
|
2676
|
+
let { commandKey: n, ...r } = e, i = lt(), [a, o] = G(!1), [s, c] = G("primary");
|
|
2660
2677
|
return U(() => {
|
|
2661
2678
|
let e = i.getMode();
|
|
2662
2679
|
o(e?.key === "copy" || e?.key === "cut"), c(e?.key === "cut" ? "warning" : "primary");
|
|
@@ -2672,11 +2689,16 @@ var hr = V(B((e, t) => {
|
|
|
2672
2689
|
}),
|
|
2673
2690
|
...r
|
|
2674
2691
|
});
|
|
2675
|
-
})),
|
|
2692
|
+
})), Cr = () => {
|
|
2676
2693
|
P.register({
|
|
2677
|
-
key: "
|
|
2678
|
-
|
|
2694
|
+
key: "insertImageInCellOptions",
|
|
2695
|
+
members: ["insertImageInCellFromFile", "insertImageInCellFromURL"]
|
|
2696
|
+
}, !0), P.register({
|
|
2697
|
+
key: "insertImageOverCellsOptions",
|
|
2679
2698
|
members: ["insertImageFromFile", "insertImageFromURL"]
|
|
2699
|
+
}, !0), P.register({
|
|
2700
|
+
key: "insertImageOptions",
|
|
2701
|
+
members: ["insertImageInCellOptions", "insertImageOverCellsOptions"]
|
|
2680
2702
|
}, !0), P.register({
|
|
2681
2703
|
key: "sheetBackgroundOptions",
|
|
2682
2704
|
defaultKey: "sheetBackgroundToggle",
|
|
@@ -2699,7 +2721,7 @@ var hr = V(B((e, t) => {
|
|
|
2699
2721
|
]
|
|
2700
2722
|
}, !0), P.register({
|
|
2701
2723
|
key: "underlineOptions",
|
|
2702
|
-
render: (e, t) => Y(
|
|
2724
|
+
render: (e, t) => Y(Ut, {
|
|
2703
2725
|
...e,
|
|
2704
2726
|
groupKey: t,
|
|
2705
2727
|
projectAs: "quick"
|
|
@@ -2712,7 +2734,7 @@ var hr = V(B((e, t) => {
|
|
|
2712
2734
|
]
|
|
2713
2735
|
}, !0), P.register({
|
|
2714
2736
|
key: "textOverflowOptions",
|
|
2715
|
-
render: (e, t) => Y(
|
|
2737
|
+
render: (e, t) => Y(Ut, {
|
|
2716
2738
|
...e,
|
|
2717
2739
|
groupKey: t,
|
|
2718
2740
|
projectAs: "icon",
|
|
@@ -2776,7 +2798,7 @@ var hr = V(B((e, t) => {
|
|
|
2776
2798
|
key: "dataTextToColumns",
|
|
2777
2799
|
getLabel: () => "Custom",
|
|
2778
2800
|
getIcon: () => null,
|
|
2779
|
-
render: (e) => Y(
|
|
2801
|
+
render: (e) => Y(Lt, {
|
|
2780
2802
|
...e,
|
|
2781
2803
|
inputProps: { maxLength: 1 }
|
|
2782
2804
|
})
|
|
@@ -2870,7 +2892,7 @@ var hr = V(B((e, t) => {
|
|
|
2870
2892
|
]
|
|
2871
2893
|
}, !0), P.register({
|
|
2872
2894
|
key: "copy",
|
|
2873
|
-
render: (e) => Y(
|
|
2895
|
+
render: (e) => Y(Sr, {
|
|
2874
2896
|
...e,
|
|
2875
2897
|
commandKey: "copy"
|
|
2876
2898
|
})
|
|
@@ -2967,10 +2989,10 @@ var hr = V(B((e, t) => {
|
|
|
2967
2989
|
]
|
|
2968
2990
|
}, !0), P.register({
|
|
2969
2991
|
key: "textEffectsOptions",
|
|
2970
|
-
render: (e) => Y(
|
|
2992
|
+
render: (e) => Y(Qn, { ...e })
|
|
2971
2993
|
}, !0), P.register({
|
|
2972
2994
|
key: "horizontalAlignOptions",
|
|
2973
|
-
render: (e, t) => Y(
|
|
2995
|
+
render: (e, t) => Y(Ut, {
|
|
2974
2996
|
...e,
|
|
2975
2997
|
groupKey: t,
|
|
2976
2998
|
projectAs: "quick"
|
|
@@ -3004,7 +3026,7 @@ var hr = V(B((e, t) => {
|
|
|
3004
3026
|
]
|
|
3005
3027
|
}, !0), P.register({
|
|
3006
3028
|
key: "verticalAlignOptions",
|
|
3007
|
-
render: (e, t) => Y(
|
|
3029
|
+
render: (e, t) => Y(Ut, {
|
|
3008
3030
|
...e,
|
|
3009
3031
|
groupKey: t,
|
|
3010
3032
|
projectAs: "icon",
|
|
@@ -3020,7 +3042,7 @@ var hr = V(B((e, t) => {
|
|
|
3020
3042
|
]
|
|
3021
3043
|
}, !0), P.register({
|
|
3022
3044
|
key: "textRotateOptions",
|
|
3023
|
-
render: (e, t) => Y(
|
|
3045
|
+
render: (e, t) => Y(Hn, {
|
|
3024
3046
|
...e,
|
|
3025
3047
|
groupKey: t
|
|
3026
3048
|
}),
|
|
@@ -3037,7 +3059,7 @@ var hr = V(B((e, t) => {
|
|
|
3037
3059
|
]
|
|
3038
3060
|
}, !0), P.register({
|
|
3039
3061
|
key: "formatTextRotateCustom",
|
|
3040
|
-
render: (e) => Y(
|
|
3062
|
+
render: (e) => Y(Lt, {
|
|
3041
3063
|
...e,
|
|
3042
3064
|
commandKey: "formatTextRotateCustom",
|
|
3043
3065
|
groupKey: "textRotateOptions",
|
|
@@ -3053,19 +3075,19 @@ var hr = V(B((e, t) => {
|
|
|
3053
3075
|
})
|
|
3054
3076
|
}, !0), P.register({
|
|
3055
3077
|
key: "numberFormatOptions",
|
|
3056
|
-
render: (e, t) => Y(
|
|
3078
|
+
render: (e, t) => Y(qn, {
|
|
3057
3079
|
...e,
|
|
3058
3080
|
groupKey: t
|
|
3059
3081
|
})
|
|
3060
3082
|
}, !0), P.register({
|
|
3061
3083
|
key: "sheetZoomOptions",
|
|
3062
|
-
render: (e, t) => Y(
|
|
3084
|
+
render: (e, t) => Y(Wn, {
|
|
3063
3085
|
...e,
|
|
3064
3086
|
groupKey: t
|
|
3065
3087
|
})
|
|
3066
3088
|
}, !0), P.register({
|
|
3067
3089
|
key: "formatCellStyle",
|
|
3068
|
-
render: (e) => Y(
|
|
3090
|
+
render: (e) => Y(rr, {
|
|
3069
3091
|
...e,
|
|
3070
3092
|
commandKey: "formatCellStyle"
|
|
3071
3093
|
})
|
|
@@ -3104,7 +3126,7 @@ var hr = V(B((e, t) => {
|
|
|
3104
3126
|
scaleType: "iconSet"
|
|
3105
3127
|
})
|
|
3106
3128
|
}, !0);
|
|
3107
|
-
},
|
|
3129
|
+
}, wr = new Map([
|
|
3108
3130
|
{
|
|
3109
3131
|
key: "financial",
|
|
3110
3132
|
label: "Financial",
|
|
@@ -3170,13 +3192,13 @@ var hr = V(B((e, t) => {
|
|
|
3170
3192
|
label: "Custom",
|
|
3171
3193
|
icon: "FormulaCustom"
|
|
3172
3194
|
}
|
|
3173
|
-
].map((e) => [e.key, e])),
|
|
3195
|
+
].map((e) => [e.key, e])), Tr = V((e) => {
|
|
3174
3196
|
let { command: t, formulaFunction: n, disabled: r, handleInsert: i, icon: a, label: o, sx: s, ...c } = e, l = new Promise((e) => {
|
|
3175
3197
|
n.getDescriptor().then((t) => {
|
|
3176
3198
|
e(t.getSummary());
|
|
3177
3199
|
});
|
|
3178
3200
|
});
|
|
3179
|
-
return Y(
|
|
3201
|
+
return Y(Nt, {
|
|
3180
3202
|
sx: {
|
|
3181
3203
|
maxWidth: "360px",
|
|
3182
3204
|
display: "flex",
|
|
@@ -3205,21 +3227,21 @@ var hr = V(B((e, t) => {
|
|
|
3205
3227
|
flexDirection: "column",
|
|
3206
3228
|
overflow: "hidden"
|
|
3207
3229
|
},
|
|
3208
|
-
children: Y(
|
|
3230
|
+
children: Y(yn, {
|
|
3209
3231
|
component: "div",
|
|
3210
3232
|
children: n.getName()
|
|
3211
3233
|
})
|
|
3212
3234
|
})
|
|
3213
3235
|
});
|
|
3214
|
-
}),
|
|
3236
|
+
}), Er = V(B((e, t) => {
|
|
3215
3237
|
let { category: n, disabled: r, groupKey: i, ...a } = e, o = R(["insertFunction"])[0], s = z(), c = H((e) => {
|
|
3216
|
-
let t =
|
|
3238
|
+
let t = wr.get(n);
|
|
3217
3239
|
if (!t) return console.warn("invalidate category", n), null;
|
|
3218
|
-
let r = { ...e }, i = Y(
|
|
3240
|
+
let r = { ...e }, i = Y(Dr, {
|
|
3219
3241
|
category: t.label,
|
|
3220
3242
|
...r
|
|
3221
3243
|
});
|
|
3222
|
-
return
|
|
3244
|
+
return Gt({
|
|
3223
3245
|
...e,
|
|
3224
3246
|
children: i
|
|
3225
3247
|
});
|
|
@@ -3227,19 +3249,19 @@ var hr = V(B((e, t) => {
|
|
|
3227
3249
|
n,
|
|
3228
3250
|
o,
|
|
3229
3251
|
i
|
|
3230
|
-
]), l =
|
|
3231
|
-
return Y(
|
|
3252
|
+
]), l = wr.get(n);
|
|
3253
|
+
return Y(Dt, {
|
|
3232
3254
|
ref: t,
|
|
3233
3255
|
disabled: r,
|
|
3234
|
-
|
|
3256
|
+
renderPopupPanel: c,
|
|
3235
3257
|
label: l?.label,
|
|
3236
3258
|
tooltip: s("insertFunction.tooltip"),
|
|
3237
|
-
icon:
|
|
3259
|
+
icon: wr.get(n)?.icon ?? "FormulaGroup",
|
|
3238
3260
|
...a
|
|
3239
3261
|
});
|
|
3240
3262
|
}));
|
|
3241
|
-
|
|
3242
|
-
var
|
|
3263
|
+
Er.displayName = "InsertFunctionCommandPopupButton";
|
|
3264
|
+
var Dr = V(B((e, t) => {
|
|
3243
3265
|
let { category: n, ...r } = e, i = R(["insertFunction"])[0], [a, o] = G([]), [s, c] = G(!1);
|
|
3244
3266
|
U(() => {
|
|
3245
3267
|
let e = !1;
|
|
@@ -3258,13 +3280,13 @@ var br = V(B((e, t) => {
|
|
|
3258
3280
|
};
|
|
3259
3281
|
for (let e = 0; e < l; e++) {
|
|
3260
3282
|
let t = a[e];
|
|
3261
|
-
u[e] = Y(
|
|
3283
|
+
u[e] = Y(Tr, {
|
|
3262
3284
|
command: i,
|
|
3263
3285
|
formulaFunction: t,
|
|
3264
3286
|
handleInsert: d
|
|
3265
3287
|
}, `formula-${t.getName()}-${e}`);
|
|
3266
3288
|
}
|
|
3267
|
-
return
|
|
3289
|
+
return Gt({
|
|
3268
3290
|
...r,
|
|
3269
3291
|
children: Y(Z, {
|
|
3270
3292
|
ref: t,
|
|
@@ -3274,7 +3296,7 @@ var br = V(B((e, t) => {
|
|
|
3274
3296
|
flex: "1 1 100%",
|
|
3275
3297
|
overflow: "hidden"
|
|
3276
3298
|
},
|
|
3277
|
-
children: l > 0 ? Y(
|
|
3299
|
+
children: l > 0 ? Y(tn, { children: Y(Z, {
|
|
3278
3300
|
sx: {
|
|
3279
3301
|
overflow: "auto",
|
|
3280
3302
|
flex: "1 1 100%"
|
|
@@ -3283,14 +3305,14 @@ var br = V(B((e, t) => {
|
|
|
3283
3305
|
}) }) : null
|
|
3284
3306
|
})
|
|
3285
3307
|
});
|
|
3286
|
-
})),
|
|
3287
|
-
let { sx: n, disabled: r, ...i } = e, a = z(), o =
|
|
3308
|
+
})), 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) => {
|
|
3309
|
+
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
3310
|
let t = (e) => {
|
|
3289
3311
|
u?.closeAll(), s?.execute(e);
|
|
3290
3312
|
}, n = (e, n) => ({
|
|
3291
3313
|
selected: n,
|
|
3292
3314
|
disabled: l,
|
|
3293
|
-
icon: n ? Y(
|
|
3315
|
+
icon: n ? Y(Bt, {}) : void 0,
|
|
3294
3316
|
sx: {
|
|
3295
3317
|
display: "flex",
|
|
3296
3318
|
paddingTop: "4px",
|
|
@@ -3313,7 +3335,7 @@ var br = V(B((e, t) => {
|
|
|
3313
3335
|
flexDirection: "column",
|
|
3314
3336
|
overflow: "hidden"
|
|
3315
3337
|
},
|
|
3316
|
-
children: Y(
|
|
3338
|
+
children: Y(yn, {
|
|
3317
3339
|
component: "div",
|
|
3318
3340
|
sx: {
|
|
3319
3341
|
whiteSpace: "nowrap",
|
|
@@ -3322,13 +3344,13 @@ var br = V(B((e, t) => {
|
|
|
3322
3344
|
},
|
|
3323
3345
|
children: e
|
|
3324
3346
|
})
|
|
3325
|
-
}), i = [...
|
|
3326
|
-
c && !i.includes(c) && i.push(c), i.sort((e, t) =>
|
|
3327
|
-
let d = i.map((e) => Y(
|
|
3347
|
+
}), i = [...Or];
|
|
3348
|
+
c && !i.includes(c) && i.push(c), i.sort((e, t) => Mr(e).localeCompare(Mr(t)));
|
|
3349
|
+
let d = i.map((e) => Y(Nt, {
|
|
3328
3350
|
...n(e, e === c),
|
|
3329
|
-
children: r(
|
|
3351
|
+
children: r(Mr(e))
|
|
3330
3352
|
}, e));
|
|
3331
|
-
return
|
|
3353
|
+
return Gt({
|
|
3332
3354
|
...e,
|
|
3333
3355
|
children: X(Z, {
|
|
3334
3356
|
sx: {
|
|
@@ -3339,9 +3361,9 @@ var br = V(B((e, t) => {
|
|
|
3339
3361
|
},
|
|
3340
3362
|
children: [X(Z, {
|
|
3341
3363
|
sx: { flex: "none" },
|
|
3342
|
-
children: [Y(
|
|
3364
|
+
children: [Y(Nt, {
|
|
3343
3365
|
...n(null, c === null),
|
|
3344
|
-
children: r(a("locale.systemDefault", { locale:
|
|
3366
|
+
children: r(a("locale.systemDefault", { locale: Mr(jr(o)) }))
|
|
3345
3367
|
}, "system-default"), Y(q, { orientation: "horizontal" })]
|
|
3346
3368
|
}), Y(Z, {
|
|
3347
3369
|
sx: {
|
|
@@ -3360,12 +3382,12 @@ var br = V(B((e, t) => {
|
|
|
3360
3382
|
a,
|
|
3361
3383
|
o
|
|
3362
3384
|
]);
|
|
3363
|
-
return Y(
|
|
3385
|
+
return Y(Dt, {
|
|
3364
3386
|
ref: t,
|
|
3365
3387
|
sx: { ...n },
|
|
3366
3388
|
disabled: l,
|
|
3367
|
-
|
|
3368
|
-
|
|
3389
|
+
renderPopupPanel: d,
|
|
3390
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
3369
3391
|
label: s?.getLabel?.(),
|
|
3370
3392
|
description: s?.getDescription?.(),
|
|
3371
3393
|
disabled: t,
|
|
@@ -3375,23 +3397,52 @@ var br = V(B((e, t) => {
|
|
|
3375
3397
|
label: s?.getLabel?.(),
|
|
3376
3398
|
...i
|
|
3377
3399
|
});
|
|
3378
|
-
})),
|
|
3379
|
-
function
|
|
3400
|
+
})), Ar = null;
|
|
3401
|
+
function jr(e) {
|
|
3380
3402
|
if (e) try {
|
|
3381
3403
|
let t = new Intl.Locale(e).maximize();
|
|
3382
3404
|
return t.region ? `${t.language}-${t.region}` : t.baseName;
|
|
3383
3405
|
} catch {}
|
|
3384
|
-
return
|
|
3406
|
+
return Ar ||= Intl.DateTimeFormat().resolvedOptions().locale ?? "en-US", Ar;
|
|
3385
3407
|
}
|
|
3386
|
-
function
|
|
3408
|
+
function Mr(e) {
|
|
3387
3409
|
try {
|
|
3388
3410
|
return new Intl.DisplayNames([e], { type: "language" }).of(e) ?? e;
|
|
3389
3411
|
} catch {
|
|
3390
3412
|
return e;
|
|
3391
3413
|
}
|
|
3392
3414
|
}
|
|
3415
|
+
var Nr = "insertCellControlOptions", Pr = V(B((e, t) => {
|
|
3416
|
+
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);
|
|
3417
|
+
if (l.length === 0) return Y(K, {
|
|
3418
|
+
ref: t,
|
|
3419
|
+
commandKey: "insertCheckbox",
|
|
3420
|
+
...s
|
|
3421
|
+
});
|
|
3422
|
+
let d = [
|
|
3423
|
+
{ key: "insertCheckbox" },
|
|
3424
|
+
...l.map((e) => ({
|
|
3425
|
+
key: "insertCellControl",
|
|
3426
|
+
state: e.type,
|
|
3427
|
+
getLabel: () => e.label,
|
|
3428
|
+
getIcon: () => typeof e.icon == "string" ? Y(F, { iconKey: e.icon }) : e.icon
|
|
3429
|
+
})),
|
|
3430
|
+
"-",
|
|
3431
|
+
{ key: "formatCellControl" }
|
|
3432
|
+
];
|
|
3433
|
+
return Y(Et, {
|
|
3434
|
+
ref: t,
|
|
3435
|
+
members: d,
|
|
3436
|
+
quickCommand: "insertCheckbox",
|
|
3437
|
+
icon: o ?? u?.getIcon?.("insertCellControlOptions") ?? "CheckboxInsert",
|
|
3438
|
+
label: a ?? u?.getLabel?.("insertCellControlOptions"),
|
|
3439
|
+
tooltip: u?.getDescription?.(Nr),
|
|
3440
|
+
...s
|
|
3441
|
+
});
|
|
3442
|
+
}));
|
|
3443
|
+
Pr.displayName = "InsertCellControlCommandButton";
|
|
3393
3444
|
var Q = V((e) => {
|
|
3394
|
-
let { presetKey: t, disabled: n, handleOnInsertChart: r, size: i = "large", ...a } = e, o = z(), s =
|
|
3445
|
+
let { presetKey: t, disabled: n, handleOnInsertChart: r, size: i = "large", ...a } = e, o = z(), s = Ie(t);
|
|
3395
3446
|
if (!s) return console.warn("no descriptor type", s), null;
|
|
3396
3447
|
let c = s.Icon;
|
|
3397
3448
|
return Y(J, {
|
|
@@ -3405,8 +3456,8 @@ var Q = V((e) => {
|
|
|
3405
3456
|
},
|
|
3406
3457
|
...a
|
|
3407
3458
|
}, t);
|
|
3408
|
-
}),
|
|
3409
|
-
let { groupKey: n, disabled: r, label: i, icon: a, ...o } = e, s = z(), c = R(["insertChart"]), l =
|
|
3459
|
+
}), Fr = V(B((e, t) => {
|
|
3460
|
+
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
3461
|
u?.execute(e);
|
|
3411
3462
|
}, [u, n]), p = H((e) => {
|
|
3412
3463
|
let t = {
|
|
@@ -3427,7 +3478,7 @@ var Q = V((e) => {
|
|
|
3427
3478
|
padding: "6px 16px"
|
|
3428
3479
|
},
|
|
3429
3480
|
children: [
|
|
3430
|
-
Y(
|
|
3481
|
+
Y(Mt, { children: s("chart.category.column") }),
|
|
3431
3482
|
X(Z, {
|
|
3432
3483
|
sx: {
|
|
3433
3484
|
display: "flex",
|
|
@@ -3450,7 +3501,7 @@ var Q = V((e) => {
|
|
|
3450
3501
|
]
|
|
3451
3502
|
}),
|
|
3452
3503
|
Y(q, { orientation: "horizontal" }),
|
|
3453
|
-
Y(
|
|
3504
|
+
Y(Mt, { children: s("chart.category.line") }),
|
|
3454
3505
|
X(Z, {
|
|
3455
3506
|
sx: {
|
|
3456
3507
|
display: "flex",
|
|
@@ -3485,7 +3536,7 @@ var Q = V((e) => {
|
|
|
3485
3536
|
]
|
|
3486
3537
|
}),
|
|
3487
3538
|
Y(q, { orientation: "horizontal" }),
|
|
3488
|
-
Y(
|
|
3539
|
+
Y(Mt, { children: s("chart.category.pie") }),
|
|
3489
3540
|
X(Z, {
|
|
3490
3541
|
sx: {
|
|
3491
3542
|
display: "flex",
|
|
@@ -3501,7 +3552,7 @@ var Q = V((e) => {
|
|
|
3501
3552
|
})]
|
|
3502
3553
|
}),
|
|
3503
3554
|
Y(q, { orientation: "horizontal" }),
|
|
3504
|
-
Y(
|
|
3555
|
+
Y(Mt, { children: s("chart.category.bar") }),
|
|
3505
3556
|
X(Z, {
|
|
3506
3557
|
sx: {
|
|
3507
3558
|
display: "flex",
|
|
@@ -3524,7 +3575,7 @@ var Q = V((e) => {
|
|
|
3524
3575
|
]
|
|
3525
3576
|
}),
|
|
3526
3577
|
Y(q, { orientation: "horizontal" }),
|
|
3527
|
-
Y(
|
|
3578
|
+
Y(Mt, { children: s("chart.category.area") }),
|
|
3528
3579
|
X(Z, {
|
|
3529
3580
|
sx: {
|
|
3530
3581
|
display: "flex",
|
|
@@ -3547,7 +3598,7 @@ var Q = V((e) => {
|
|
|
3547
3598
|
]
|
|
3548
3599
|
}),
|
|
3549
3600
|
Y(q, { orientation: "horizontal" }),
|
|
3550
|
-
Y(
|
|
3601
|
+
Y(Mt, { children: s("chart.category.scatter") }),
|
|
3551
3602
|
X(Z, {
|
|
3552
3603
|
sx: {
|
|
3553
3604
|
display: "flex",
|
|
@@ -3572,11 +3623,11 @@ var Q = V((e) => {
|
|
|
3572
3623
|
]
|
|
3573
3624
|
})
|
|
3574
3625
|
});
|
|
3575
|
-
}, [r, s]), m =
|
|
3576
|
-
return Y(
|
|
3626
|
+
}, [r, s]), m = Ie(M.Column).Icon;
|
|
3627
|
+
return Y(Dt, {
|
|
3577
3628
|
ref: t,
|
|
3578
|
-
|
|
3579
|
-
|
|
3629
|
+
renderPopupPanel: p,
|
|
3630
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
3580
3631
|
label: l?.getLabel?.(),
|
|
3581
3632
|
description: l?.getDescription?.(),
|
|
3582
3633
|
disabled: t,
|
|
@@ -3588,19 +3639,19 @@ var Q = V((e) => {
|
|
|
3588
3639
|
icon: Y(Se, { children: Y(m, {}) }),
|
|
3589
3640
|
...o
|
|
3590
3641
|
});
|
|
3591
|
-
})),
|
|
3592
|
-
let { groupKey: n, disabled: r, label: i, icon: a, commandKey: o
|
|
3642
|
+
})), Ir = Object.freeze([]), Lr = new Map(_e.flatMap((e) => e.entries.map((e) => [e.key, e]))), Rr = V(B((e, t) => {
|
|
3643
|
+
let { groupKey: n, disabled: r, label: i, icon: a, commandKey: o, 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
3644
|
if (!Array.isArray(p)) return [];
|
|
3594
3645
|
let e = [];
|
|
3595
3646
|
for (let t of p) {
|
|
3596
|
-
let n = typeof t == "string" ?
|
|
3647
|
+
let n = typeof t == "string" ? Lr.get(t) : void 0;
|
|
3597
3648
|
if (n && !e.includes(n) && e.push(n), e.length === 12) break;
|
|
3598
3649
|
}
|
|
3599
3650
|
return e;
|
|
3600
3651
|
}, [p]), g = L((e) => {
|
|
3601
3652
|
u?.execute(e.json), m((t) => {
|
|
3602
3653
|
let n = [e.key];
|
|
3603
|
-
for (let r = 0; Array.isArray(t) && r < t.length && n.length < 12; r++) t[r] !== e.key &&
|
|
3654
|
+
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
3655
|
return Object.freeze(n);
|
|
3605
3656
|
});
|
|
3606
3657
|
}, [u]), _ = H((e) => {
|
|
@@ -3611,7 +3662,7 @@ var Q = V((e) => {
|
|
|
3611
3662
|
},
|
|
3612
3663
|
children: [
|
|
3613
3664
|
i > 0 ? Y(q, { orientation: "horizontal" }) : null,
|
|
3614
|
-
Y(
|
|
3665
|
+
Y(Mt, { children: n }),
|
|
3615
3666
|
Y(Z, {
|
|
3616
3667
|
sx: {
|
|
3617
3668
|
display: "grid",
|
|
@@ -3627,7 +3678,7 @@ var Q = V((e) => {
|
|
|
3627
3678
|
label: l(e.label),
|
|
3628
3679
|
simple: !0
|
|
3629
3680
|
},
|
|
3630
|
-
icon: Y(F, { iconKey:
|
|
3681
|
+
icon: Y(F, { iconKey: Be(e.key) }),
|
|
3631
3682
|
onClick: () => {
|
|
3632
3683
|
t?.(), g(e);
|
|
3633
3684
|
}
|
|
@@ -3651,10 +3702,10 @@ var Q = V((e) => {
|
|
|
3651
3702
|
d,
|
|
3652
3703
|
l
|
|
3653
3704
|
]);
|
|
3654
|
-
return Y(
|
|
3705
|
+
return Y(Dt, {
|
|
3655
3706
|
ref: t,
|
|
3656
|
-
|
|
3657
|
-
|
|
3707
|
+
renderPopupPanel: _,
|
|
3708
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
3658
3709
|
label: u?.getLabel(n),
|
|
3659
3710
|
description: u?.getDescription(n),
|
|
3660
3711
|
disabled: t,
|
|
@@ -3663,11 +3714,11 @@ var Q = V((e) => {
|
|
|
3663
3714
|
label: i ?? u?.getLabel(n),
|
|
3664
3715
|
disabled: f,
|
|
3665
3716
|
selected: !1,
|
|
3666
|
-
icon: a ?? Y(F, { iconKey:
|
|
3717
|
+
icon: a ?? Y(F, { iconKey: Be("Shapes") }),
|
|
3667
3718
|
...c
|
|
3668
3719
|
});
|
|
3669
|
-
})),
|
|
3670
|
-
|
|
3720
|
+
})), zr = () => {
|
|
3721
|
+
Cr(), P.register({
|
|
3671
3722
|
key: "hideUnhideOptions",
|
|
3672
3723
|
members: [
|
|
3673
3724
|
"hideColumns",
|
|
@@ -3704,7 +3755,7 @@ var Q = V((e) => {
|
|
|
3704
3755
|
})
|
|
3705
3756
|
}, !0), P.register({
|
|
3706
3757
|
key: "formatBorder",
|
|
3707
|
-
render: (e) => Y(
|
|
3758
|
+
render: (e) => Y(Gn, { ...e })
|
|
3708
3759
|
}, !0), P.register({
|
|
3709
3760
|
key: "formatFontColor",
|
|
3710
3761
|
render: (e) => Y(l, {
|
|
@@ -3721,7 +3772,7 @@ var Q = V((e) => {
|
|
|
3721
3772
|
isSplit: !0,
|
|
3722
3773
|
propsPanel: {
|
|
3723
3774
|
disableAlpha: !0,
|
|
3724
|
-
autoColorLabelKey:
|
|
3775
|
+
autoColorLabelKey: kn("color.noFill"),
|
|
3725
3776
|
autoColorPosition: t.End
|
|
3726
3777
|
}
|
|
3727
3778
|
})
|
|
@@ -3731,6 +3782,7 @@ var Q = V((e) => {
|
|
|
3731
3782
|
}, !0), P.register({
|
|
3732
3783
|
key: "dataToolbar",
|
|
3733
3784
|
members: [
|
|
3785
|
+
"refreshAll",
|
|
3734
3786
|
"manageExternalLinks",
|
|
3735
3787
|
"-",
|
|
3736
3788
|
"sortOptions",
|
|
@@ -3763,7 +3815,7 @@ var Q = V((e) => {
|
|
|
3763
3815
|
];
|
|
3764
3816
|
for (let t of e) P.register({
|
|
3765
3817
|
key: `formulaCategory.${t}`,
|
|
3766
|
-
render: (e) => Y(
|
|
3818
|
+
render: (e) => Y(Er, {
|
|
3767
3819
|
category: t,
|
|
3768
3820
|
...e
|
|
3769
3821
|
})
|
|
@@ -3790,14 +3842,20 @@ var Q = V((e) => {
|
|
|
3790
3842
|
]
|
|
3791
3843
|
}, !0), P.register({
|
|
3792
3844
|
key: "calculationOptions",
|
|
3793
|
-
render: (e) => Y(
|
|
3845
|
+
render: (e) => Y(xr, { ...e })
|
|
3794
3846
|
}, !0), P.register({
|
|
3795
3847
|
key: "insertToolbar",
|
|
3796
3848
|
members: [
|
|
3797
3849
|
"insertTable",
|
|
3798
3850
|
"insertImageOptions",
|
|
3799
|
-
{ render: (e) => Y(
|
|
3800
|
-
|
|
3851
|
+
{ render: (e) => Y(Rr, {
|
|
3852
|
+
...e,
|
|
3853
|
+
commandKey: "insertShape"
|
|
3854
|
+
}) },
|
|
3855
|
+
"-",
|
|
3856
|
+
{ render: (e) => Y(Pr, { ...e }) },
|
|
3857
|
+
"-",
|
|
3858
|
+
{ render: (e) => Y(Fr, { ...e }) },
|
|
3801
3859
|
"-",
|
|
3802
3860
|
"updateHyperlink",
|
|
3803
3861
|
"editNote",
|
|
@@ -3808,7 +3866,7 @@ var Q = V((e) => {
|
|
|
3808
3866
|
members: [
|
|
3809
3867
|
"cut",
|
|
3810
3868
|
"copy",
|
|
3811
|
-
{ render: (e) => Y(
|
|
3869
|
+
{ render: (e) => Y($n, {
|
|
3812
3870
|
...e,
|
|
3813
3871
|
commandKey: "paste",
|
|
3814
3872
|
includePasteAllInPopup: !1
|
|
@@ -3820,7 +3878,7 @@ var Q = V((e) => {
|
|
|
3820
3878
|
"-",
|
|
3821
3879
|
"sortFilterOptions"
|
|
3822
3880
|
]
|
|
3823
|
-
}, !0),
|
|
3881
|
+
}, !0), Le(), P.register({
|
|
3824
3882
|
key: "movableContextMenu",
|
|
3825
3883
|
members: [
|
|
3826
3884
|
"copy",
|
|
@@ -3846,12 +3904,12 @@ var Q = V((e) => {
|
|
|
3846
3904
|
"duplicateSheet",
|
|
3847
3905
|
"protectionOptions",
|
|
3848
3906
|
{ render: () => Y(l, {
|
|
3849
|
-
variant:
|
|
3907
|
+
variant: Ye.Menuitem,
|
|
3850
3908
|
commandKey: "formatSheetTabColor",
|
|
3851
3909
|
icon: Y(F, { iconKey: "stroke.colored" }),
|
|
3852
3910
|
propsPanel: {
|
|
3853
3911
|
disableAlpha: !0,
|
|
3854
|
-
autoColorLabelKey:
|
|
3912
|
+
autoColorLabelKey: kn("color.noTabColor"),
|
|
3855
3913
|
autoColorPosition: t.End
|
|
3856
3914
|
}
|
|
3857
3915
|
}) },
|
|
@@ -3909,7 +3967,7 @@ var Q = V((e) => {
|
|
|
3909
3967
|
]
|
|
3910
3968
|
}, !0), P.register({
|
|
3911
3969
|
key: "locale",
|
|
3912
|
-
render: (e) => Y(
|
|
3970
|
+
render: (e) => Y(kr, {
|
|
3913
3971
|
...e,
|
|
3914
3972
|
variant: "menuitem"
|
|
3915
3973
|
})
|
|
@@ -3926,7 +3984,7 @@ var Q = V((e) => {
|
|
|
3926
3984
|
]
|
|
3927
3985
|
}, !0), P.register({
|
|
3928
3986
|
key: "selectTheme",
|
|
3929
|
-
render: (e) => Y(
|
|
3987
|
+
render: (e) => Y(vr, {
|
|
3930
3988
|
...e,
|
|
3931
3989
|
commandKey: "selectTheme"
|
|
3932
3990
|
})
|
|
@@ -3975,16 +4033,16 @@ var Q = V((e) => {
|
|
|
3975
4033
|
"viewToolbar"
|
|
3976
4034
|
]
|
|
3977
4035
|
}, !0);
|
|
3978
|
-
},
|
|
3979
|
-
let { sx: n, disabled: r, ...i } = e, [a] = R(["language"]), o = a?.getState() ??
|
|
4036
|
+
}, Br = V(B((e, t) => {
|
|
4037
|
+
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
4038
|
let t = (e) => {
|
|
3981
4039
|
c?.closeAll(), a?.execute(e);
|
|
3982
|
-
}, n =
|
|
4040
|
+
}, n = Tn.getAvailable().sort().map((e) => {
|
|
3983
4041
|
let n = e === o;
|
|
3984
|
-
return Y(
|
|
4042
|
+
return Y(Nt, {
|
|
3985
4043
|
selected: n,
|
|
3986
4044
|
disabled: s,
|
|
3987
|
-
icon: n ? Y(
|
|
4045
|
+
icon: n ? Y(Bt, {}) : void 0,
|
|
3988
4046
|
sx: {
|
|
3989
4047
|
display: "flex",
|
|
3990
4048
|
paddingTop: "4px",
|
|
@@ -4006,19 +4064,19 @@ var Q = V((e) => {
|
|
|
4006
4064
|
flexDirection: "column",
|
|
4007
4065
|
overflow: "hidden"
|
|
4008
4066
|
},
|
|
4009
|
-
children: Y(
|
|
4067
|
+
children: Y(yn, {
|
|
4010
4068
|
component: "div",
|
|
4011
4069
|
sx: {
|
|
4012
4070
|
whiteSpace: "nowrap",
|
|
4013
4071
|
overflow: "hidden",
|
|
4014
4072
|
textOverflow: "ellipsis"
|
|
4015
4073
|
},
|
|
4016
|
-
children:
|
|
4074
|
+
children: Vr(e)
|
|
4017
4075
|
})
|
|
4018
4076
|
})
|
|
4019
4077
|
}, e);
|
|
4020
4078
|
});
|
|
4021
|
-
return
|
|
4079
|
+
return Gt({
|
|
4022
4080
|
...e,
|
|
4023
4081
|
children: Y(Z, {
|
|
4024
4082
|
sx: {
|
|
@@ -4041,12 +4099,12 @@ var Q = V((e) => {
|
|
|
4041
4099
|
s,
|
|
4042
4100
|
c
|
|
4043
4101
|
]);
|
|
4044
|
-
return Y(
|
|
4102
|
+
return Y(Dt, {
|
|
4045
4103
|
ref: t,
|
|
4046
4104
|
sx: { ...n },
|
|
4047
4105
|
disabled: s,
|
|
4048
|
-
|
|
4049
|
-
|
|
4106
|
+
renderPopupPanel: l,
|
|
4107
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
4050
4108
|
label: a?.getLabel?.(),
|
|
4051
4109
|
description: a?.getDescription?.(),
|
|
4052
4110
|
disabled: t,
|
|
@@ -4057,19 +4115,22 @@ var Q = V((e) => {
|
|
|
4057
4115
|
...i
|
|
4058
4116
|
});
|
|
4059
4117
|
}));
|
|
4060
|
-
function
|
|
4118
|
+
function Vr(e) {
|
|
4061
4119
|
try {
|
|
4062
4120
|
return new Intl.DisplayNames([e], { type: "language" }).of(e) ?? e;
|
|
4063
4121
|
} catch {
|
|
4064
4122
|
return e;
|
|
4065
4123
|
}
|
|
4066
4124
|
}
|
|
4067
|
-
var
|
|
4068
|
-
|
|
4125
|
+
var Hr = () => {
|
|
4126
|
+
zr(), P.register({ key: "fileOptions" }, !0), P.register({
|
|
4069
4127
|
key: "newWorkbookOptions",
|
|
4070
4128
|
defaultKey: "newWorkbook",
|
|
4071
4129
|
members: ["newWorkbook"]
|
|
4072
|
-
}, !0), P.register({ key: "appearanceOptions" }, !0), P.register({ key: "insertChartOptions" }, !0), P.register({
|
|
4130
|
+
}, !0), P.register({ key: "appearanceOptions" }, !0), P.register({ key: "insertChartOptions" }, !0), P.register({
|
|
4131
|
+
key: "insertCellControlOptions",
|
|
4132
|
+
defaultKey: "insertCheckbox"
|
|
4133
|
+
}, !0), P.register({ key: "borderOptions" }, !0), P.register({
|
|
4073
4134
|
key: "insertDataOptions",
|
|
4074
4135
|
defaultKey: "insertDataFromFile",
|
|
4075
4136
|
contributions: { dataToolbar: { order: -1 } },
|
|
@@ -4077,7 +4138,7 @@ var Nr = () => {
|
|
|
4077
4138
|
}, !0), P.register({
|
|
4078
4139
|
key: "undo",
|
|
4079
4140
|
contributions: { homeToolbar: { order: -1 } },
|
|
4080
|
-
render: (e) => Y(
|
|
4141
|
+
render: (e) => Y(Zn, {
|
|
4081
4142
|
...e,
|
|
4082
4143
|
quickCommand: "undo"
|
|
4083
4144
|
})
|
|
@@ -4090,7 +4151,7 @@ var Nr = () => {
|
|
|
4090
4151
|
members: ["enableDarkGrid", "enableDarkImages"]
|
|
4091
4152
|
}, !0), P.register({
|
|
4092
4153
|
key: "language",
|
|
4093
|
-
render: (e) => Y(
|
|
4154
|
+
render: (e) => Y(Br, {
|
|
4094
4155
|
...e,
|
|
4095
4156
|
variant: "menuitem"
|
|
4096
4157
|
})
|
|
@@ -4123,23 +4184,23 @@ var Nr = () => {
|
|
|
4123
4184
|
"gotoUrlIssue"
|
|
4124
4185
|
]
|
|
4125
4186
|
}, !0);
|
|
4126
|
-
},
|
|
4187
|
+
}, Ur = [
|
|
4127
4188
|
"homeToolbar",
|
|
4128
4189
|
"insertToolbar",
|
|
4129
4190
|
"formulaToolbar",
|
|
4130
4191
|
"dataToolbar",
|
|
4131
4192
|
"reviewToolbar",
|
|
4132
4193
|
"viewToolbar"
|
|
4133
|
-
],
|
|
4194
|
+
], Wr = (e) => Y(Jr, { ...e }), Gr = V((e) => {
|
|
4134
4195
|
let { sx: t, ...n } = e;
|
|
4135
4196
|
return X(Z, {
|
|
4136
4197
|
sx: {
|
|
4137
4198
|
display: "flex",
|
|
4138
4199
|
flexDirection: "column",
|
|
4139
4200
|
position: "relative",
|
|
4140
|
-
"&:hover:not([disabled]) .indicator": { borderBottom: (e) => `${
|
|
4201
|
+
"&:hover:not([disabled]) .indicator": { borderBottom: (e) => `${bn(e.palette.primary.main, .35)} solid 2px` }
|
|
4141
4202
|
},
|
|
4142
|
-
children: [Y(
|
|
4203
|
+
children: [Y(mn, {
|
|
4143
4204
|
disableRipple: !0,
|
|
4144
4205
|
onMouseDown: (e) => {
|
|
4145
4206
|
e.button === 0 && e.preventDefault();
|
|
@@ -4170,13 +4231,13 @@ var Nr = () => {
|
|
|
4170
4231
|
}
|
|
4171
4232
|
})]
|
|
4172
4233
|
});
|
|
4173
|
-
}),
|
|
4234
|
+
}), Kr = V((e) => {
|
|
4174
4235
|
let { toolbars: t, value: n, onToolbarChange: r, sx: i, ...a } = e, o = W(() => {
|
|
4175
4236
|
let e = [];
|
|
4176
|
-
for (let n = 0; n < t.length; n++) e.push(Y(
|
|
4237
|
+
for (let n = 0; n < t.length; n++) e.push(Y(Gr, { label: t[n].label }, t[n].key ?? t[n].label));
|
|
4177
4238
|
return e;
|
|
4178
4239
|
}, [t]);
|
|
4179
|
-
return Y(
|
|
4240
|
+
return Y(hn, {
|
|
4180
4241
|
value: n,
|
|
4181
4242
|
onChange: (e, t) => {
|
|
4182
4243
|
r?.(t);
|
|
@@ -4208,14 +4269,14 @@ var Nr = () => {
|
|
|
4208
4269
|
...a,
|
|
4209
4270
|
children: o
|
|
4210
4271
|
});
|
|
4211
|
-
}),
|
|
4272
|
+
}), qr = V((e) => {
|
|
4212
4273
|
let { toolbars: t, value: n, onToolbarChange: r, ...i } = e, a = H((e) => {
|
|
4213
4274
|
r?.(e.target.value);
|
|
4214
4275
|
}, [r]), o = W(() => {
|
|
4215
4276
|
let e = [], r = t.length;
|
|
4216
4277
|
for (let i = 0; i < r; i++) {
|
|
4217
4278
|
let r = t[i].label;
|
|
4218
|
-
e.push(Y(
|
|
4279
|
+
e.push(Y(un, {
|
|
4219
4280
|
value: i,
|
|
4220
4281
|
sx: { color: (e) => {
|
|
4221
4282
|
if (n === i) return e.palette.primary.main;
|
|
@@ -4225,7 +4286,7 @@ var Nr = () => {
|
|
|
4225
4286
|
}
|
|
4226
4287
|
return e;
|
|
4227
4288
|
}, [t, n]);
|
|
4228
|
-
return Y(
|
|
4289
|
+
return Y(an, {
|
|
4229
4290
|
sx: {
|
|
4230
4291
|
minWidth: "125px",
|
|
4231
4292
|
maxWidth: "125px",
|
|
@@ -4245,7 +4306,7 @@ var Nr = () => {
|
|
|
4245
4306
|
}
|
|
4246
4307
|
},
|
|
4247
4308
|
size: "small",
|
|
4248
|
-
children: Y(
|
|
4309
|
+
children: Y(fn, {
|
|
4249
4310
|
value: n,
|
|
4250
4311
|
onChange: a,
|
|
4251
4312
|
variant: "outlined",
|
|
@@ -4253,16 +4314,16 @@ var Nr = () => {
|
|
|
4253
4314
|
children: o
|
|
4254
4315
|
})
|
|
4255
4316
|
});
|
|
4256
|
-
}),
|
|
4257
|
-
let { toolbars: n, wrapperSelect: r, isCompact: i = !1, wrapperPalette: a, propsToolbars: o =
|
|
4317
|
+
}), Jr = V(B((e, t) => {
|
|
4318
|
+
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
4319
|
let e = u.resolveMembers(Ce);
|
|
4259
|
-
return e ? e.filter((e) => typeof e == "string" && e !== "-") :
|
|
4320
|
+
return e ? e.filter((e) => typeof e == "string" && e !== "-") : Ur;
|
|
4260
4321
|
})(), f = d.join("|"), p = W(() => d.map((e) => {
|
|
4261
|
-
let { ref: t, ...n } = o?.[e] ??
|
|
4322
|
+
let { ref: t, ...n } = o?.[e] ?? wn.EmptyObject;
|
|
4262
4323
|
return {
|
|
4263
4324
|
key: e,
|
|
4264
|
-
label: Y(
|
|
4265
|
-
component:
|
|
4325
|
+
label: Y(Je, { entryKey: e }),
|
|
4326
|
+
component: xt(Ot, {
|
|
4266
4327
|
...n,
|
|
4267
4328
|
key: e,
|
|
4268
4329
|
groupKey: e
|
|
@@ -4270,7 +4331,7 @@ var Nr = () => {
|
|
|
4270
4331
|
};
|
|
4271
4332
|
}), [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
4333
|
g(e);
|
|
4273
|
-
}, y = W(() => i ? Y(
|
|
4334
|
+
}, y = W(() => i ? Y(qr, {
|
|
4274
4335
|
toolbars: p,
|
|
4275
4336
|
value: _,
|
|
4276
4337
|
onToolbarChange: v,
|
|
@@ -4278,7 +4339,7 @@ var Nr = () => {
|
|
|
4278
4339
|
paddingLeft: (e) => e.spacing(1),
|
|
4279
4340
|
paddingRight: (e) => e.spacing(1)
|
|
4280
4341
|
}
|
|
4281
|
-
}) : Y(
|
|
4342
|
+
}) : Y(Kr, {
|
|
4282
4343
|
toolbars: p,
|
|
4283
4344
|
value: _,
|
|
4284
4345
|
onToolbarChange: v
|
|
@@ -4286,7 +4347,7 @@ var Nr = () => {
|
|
|
4286
4347
|
p,
|
|
4287
4348
|
_,
|
|
4288
4349
|
i
|
|
4289
|
-
]), { sx: b, ...x } = s, S = Y(
|
|
4350
|
+
]), { sx: b, ...x } = s, S = Y(dn, {
|
|
4290
4351
|
elevation: 2,
|
|
4291
4352
|
tabIndex: 0,
|
|
4292
4353
|
sx: {
|
|
@@ -4320,9 +4381,9 @@ var Nr = () => {
|
|
|
4320
4381
|
children: [r ? r(y) : y, a ? a(S) : S]
|
|
4321
4382
|
});
|
|
4322
4383
|
}));
|
|
4323
|
-
|
|
4324
|
-
var
|
|
4325
|
-
let { className: n, debounceDelay: r = 220, showSlider: i, sx: o, ...s } = e, c = z(), l =
|
|
4384
|
+
Jr.displayName = "WorkbookToolbars";
|
|
4385
|
+
var Yr = { placement: "top-end" }, Xr = V(B((e, t) => {
|
|
4386
|
+
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
4387
|
N(l, { onZoomScaleChange: () => {
|
|
4327
4388
|
p(!0), m.current === 0 && l && d(l.getZoomScale());
|
|
4328
4389
|
} }), U(() => {
|
|
@@ -4338,14 +4399,14 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4338
4399
|
}, [l]), g = (e) => {
|
|
4339
4400
|
let t = e;
|
|
4340
4401
|
return e < 100 ? t = 10 / 9 * (e - 10) : e > 100 && (t = (e + 200) / 3), t;
|
|
4341
|
-
}, _ = g(u), [v, y] = G(null), b =
|
|
4402
|
+
}, _ = g(u), [v, y] = G(null), b = wt(null), x = H(() => {
|
|
4342
4403
|
let e = v;
|
|
4343
4404
|
e && requestAnimationFrame(() => {
|
|
4344
4405
|
b.current?.contains(document.activeElement) && e.focus();
|
|
4345
4406
|
});
|
|
4346
|
-
}, []), S =
|
|
4407
|
+
}, []), S = ht(() => {
|
|
4347
4408
|
l && h(g(l.getNextZoomScale(!1, 10)));
|
|
4348
|
-
}), C =
|
|
4409
|
+
}), C = ht(() => {
|
|
4349
4410
|
l && h(g(l.getNextZoomScale(!0, 10)));
|
|
4350
4411
|
});
|
|
4351
4412
|
return X(Z, {
|
|
@@ -4382,10 +4443,10 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4382
4443
|
minWidth: 0
|
|
4383
4444
|
},
|
|
4384
4445
|
children: [
|
|
4385
|
-
Y(
|
|
4446
|
+
Y(Vt, {
|
|
4386
4447
|
disableInteractive: !0,
|
|
4387
4448
|
title: c("zoom.out"),
|
|
4388
|
-
children: Y(
|
|
4449
|
+
children: Y(on, {
|
|
4389
4450
|
sx: {
|
|
4390
4451
|
padding: "0",
|
|
4391
4452
|
"&:hover:not([disabled])": { color: (e) => e.palette.primary.main },
|
|
@@ -4401,7 +4462,7 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4401
4462
|
children: Y(F, { iconKey: "Remove" })
|
|
4402
4463
|
})
|
|
4403
4464
|
}),
|
|
4404
|
-
Y(
|
|
4465
|
+
Y(pn, {
|
|
4405
4466
|
ref: b,
|
|
4406
4467
|
sx: {
|
|
4407
4468
|
flex: "1 1 100%",
|
|
@@ -4412,8 +4473,8 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4412
4473
|
height: 14,
|
|
4413
4474
|
width: 4,
|
|
4414
4475
|
borderRadius: 2,
|
|
4415
|
-
"&.Mui-focusVisible": { boxShadow: (e) => `0px 0px 0px 3px ${
|
|
4416
|
-
"&:focus, &:hover, &.Mui-active": { boxShadow: (e) => `0px 0px 0px 2px ${
|
|
4476
|
+
"&.Mui-focusVisible": { boxShadow: (e) => `0px 0px 0px 3px ${Xt(e.palette.primary.main, .16)}` },
|
|
4477
|
+
"&:focus, &:hover, &.Mui-active": { boxShadow: (e) => `0px 0px 0px 2px ${Xt(e.palette.primary.main, .16)}` }
|
|
4417
4478
|
},
|
|
4418
4479
|
"& .MuiSlider-mark": {
|
|
4419
4480
|
width: "1px",
|
|
@@ -4442,10 +4503,10 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4442
4503
|
},
|
|
4443
4504
|
valueLabelFormat: (e, t) => c("zoom.sliderValue", { value: Math.round(u) })
|
|
4444
4505
|
}),
|
|
4445
|
-
Y(
|
|
4506
|
+
Y(Vt, {
|
|
4446
4507
|
disableInteractive: !0,
|
|
4447
4508
|
title: c("zoom.in"),
|
|
4448
|
-
children: Y(
|
|
4509
|
+
children: Y(on, {
|
|
4449
4510
|
sx: {
|
|
4450
4511
|
padding: "0",
|
|
4451
4512
|
"&:hover:not([disabled])": { color: (e) => e.palette.primary.main },
|
|
@@ -4468,8 +4529,8 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4468
4529
|
flexDirection: "row",
|
|
4469
4530
|
alignItems: "center"
|
|
4470
4531
|
},
|
|
4471
|
-
children: [Y(Z, { sx: { minWidth: "8px" } }), Y(
|
|
4472
|
-
propsPopup: { propsPopper:
|
|
4532
|
+
children: [Y(Z, { sx: { minWidth: "8px" } }), Y(Wn, {
|
|
4533
|
+
propsPopup: { propsPopper: Yr },
|
|
4473
4534
|
outlined: !1,
|
|
4474
4535
|
sx: {
|
|
4475
4536
|
padding: "0",
|
|
@@ -4483,9 +4544,9 @@ var Br = { placement: "top-end" }, Vr = V(B((e, t) => {
|
|
|
4483
4544
|
})]
|
|
4484
4545
|
});
|
|
4485
4546
|
}));
|
|
4486
|
-
|
|
4487
|
-
var
|
|
4488
|
-
let { className: n, stats: r =
|
|
4547
|
+
Xr.displayName = "SheetZoomScale";
|
|
4548
|
+
var Zr = "_stats-items_151a8_1", Qr = "_stats-item_151a8_1", $r = "_stats-item-label_151a8_15", ei = V(B((e, t) => {
|
|
4549
|
+
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
4550
|
U(() => {
|
|
4490
4551
|
if (!c) return;
|
|
4491
4552
|
let e = c.getSelectedRanges();
|
|
@@ -4543,13 +4604,13 @@ var Hr = "_stats-items_151a8_1", Ur = "_stats-item_151a8_1", Wr = "_stats-item-l
|
|
|
4543
4604
|
} else u.firstError && (n = 2, t = [j.Aggregate.Count, j.Aggregate.NumericalCount]);
|
|
4544
4605
|
let i = Array(n), a = u.cell;
|
|
4545
4606
|
for (let r = 0; r < n; r++) {
|
|
4546
|
-
let n = t[r], o =
|
|
4607
|
+
let n = t[r], o = ri;
|
|
4547
4608
|
if (n === j.Aggregate.StdDev || n === j.Aggregate.Variance) continue;
|
|
4548
|
-
n !== j.Aggregate.Count && n !== j.Aggregate.NumericalCount || (o =
|
|
4609
|
+
n !== j.Aggregate.Count && n !== j.Aggregate.NumericalCount || (o = ii), o.value = e[n];
|
|
4549
4610
|
let s = a.createCell(o);
|
|
4550
|
-
s.getNumberFormat().errorPlaceholder || i.push(Y(
|
|
4611
|
+
s.getNumberFormat().errorPlaceholder || i.push(Y(ai, {
|
|
4551
4612
|
cell: s,
|
|
4552
|
-
label:
|
|
4613
|
+
label: ti(l, n)
|
|
4553
4614
|
}, `stat:${n}`));
|
|
4554
4615
|
}
|
|
4555
4616
|
return i;
|
|
@@ -4560,13 +4621,13 @@ var Hr = "_stats-items_151a8_1", Ur = "_stats-item_151a8_1", Wr = "_stats-item-l
|
|
|
4560
4621
|
]);
|
|
4561
4622
|
return Y("div", {
|
|
4562
4623
|
ref: t,
|
|
4563
|
-
className: a(n,
|
|
4624
|
+
className: a(n, Zr),
|
|
4564
4625
|
style: o,
|
|
4565
4626
|
...s,
|
|
4566
4627
|
children: h
|
|
4567
4628
|
});
|
|
4568
4629
|
}));
|
|
4569
|
-
function
|
|
4630
|
+
function ti(e, t) {
|
|
4570
4631
|
switch (t) {
|
|
4571
4632
|
case j.Aggregate.Average: return e("numberStats.average");
|
|
4572
4633
|
case j.Aggregate.Count: return e("numberStats.count");
|
|
@@ -4577,25 +4638,25 @@ function Kr(e, t) {
|
|
|
4577
4638
|
default: return T.camelToPrettyCase(t);
|
|
4578
4639
|
}
|
|
4579
4640
|
}
|
|
4580
|
-
|
|
4581
|
-
var
|
|
4641
|
+
ei.displayName = "NumberStats";
|
|
4642
|
+
var ni = Object.freeze([
|
|
4582
4643
|
j.Aggregate.Average,
|
|
4583
4644
|
j.Aggregate.Count,
|
|
4584
4645
|
j.Aggregate.NumericalCount,
|
|
4585
4646
|
j.Aggregate.Min,
|
|
4586
4647
|
j.Aggregate.Max,
|
|
4587
4648
|
j.Aggregate.Sum
|
|
4588
|
-
]),
|
|
4649
|
+
]), ri = { value: 0 }, ii = {
|
|
4589
4650
|
value: 0,
|
|
4590
4651
|
style: { numberFormat: se.Type.General }
|
|
4591
|
-
},
|
|
4652
|
+
}, ai = V(B((e, t) => {
|
|
4592
4653
|
let { cell: n, label: r, description: i, className: o, style: s, ...c } = e, l = z();
|
|
4593
4654
|
return Y("div", {
|
|
4594
4655
|
ref: t,
|
|
4595
|
-
className: a(o,
|
|
4656
|
+
className: a(o, Qr),
|
|
4596
4657
|
style: s,
|
|
4597
4658
|
...c,
|
|
4598
|
-
children: Y(
|
|
4659
|
+
children: Y(Vt, {
|
|
4599
4660
|
disableInteractive: !0,
|
|
4600
4661
|
placement: "top",
|
|
4601
4662
|
title: i ?? (r ? l("numberStats.copyTooltip", { label: r }) : l("numberStats.copyTooltipNoLabel")),
|
|
@@ -4604,13 +4665,13 @@ var qr = Object.freeze([
|
|
|
4604
4665
|
let e = n?.getValue();
|
|
4605
4666
|
e != null && ae.Global.writeText(String(e));
|
|
4606
4667
|
},
|
|
4607
|
-
className: a(
|
|
4608
|
-
children: [r && Y(
|
|
4668
|
+
className: a($r),
|
|
4669
|
+
children: [r && Y(yn, {
|
|
4609
4670
|
noWrap: !0,
|
|
4610
4671
|
component: "div",
|
|
4611
4672
|
sx: { fontSize: "0.7rem" },
|
|
4612
4673
|
children: `${r}: `
|
|
4613
|
-
}), Y(
|
|
4674
|
+
}), Y(yn, {
|
|
4614
4675
|
noWrap: !0,
|
|
4615
4676
|
component: "div",
|
|
4616
4677
|
sx: { fontSize: "0.7rem" },
|
|
@@ -4619,15 +4680,15 @@ var qr = Object.freeze([
|
|
|
4619
4680
|
})
|
|
4620
4681
|
})
|
|
4621
4682
|
});
|
|
4622
|
-
})),
|
|
4623
|
-
let { debounceDelay: t = 40, className: n, style: r, ...i } = e, o =
|
|
4683
|
+
})), oi = V((e) => {
|
|
4684
|
+
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
4685
|
if (U(() => {
|
|
4625
|
-
f(o ?
|
|
4686
|
+
f(o ? Ae(o) : null);
|
|
4626
4687
|
}, [c, o]), N(o, {
|
|
4627
4688
|
onDataChange: u,
|
|
4628
4689
|
onInvalidated: u
|
|
4629
4690
|
}, { transactional: !1 }), !o || !d) return null;
|
|
4630
|
-
let p =
|
|
4691
|
+
let p = je(d, o.getName());
|
|
4631
4692
|
return Y("div", {
|
|
4632
4693
|
...i,
|
|
4633
4694
|
className: a("circular-reference-status", n),
|
|
@@ -4637,7 +4698,7 @@ var qr = Object.freeze([
|
|
|
4637
4698
|
whiteSpace: "nowrap",
|
|
4638
4699
|
...r
|
|
4639
4700
|
},
|
|
4640
|
-
children: Y(
|
|
4701
|
+
children: Y(yn, {
|
|
4641
4702
|
component: "div",
|
|
4642
4703
|
variant: "caption",
|
|
4643
4704
|
role: "button",
|
|
@@ -4650,15 +4711,15 @@ var qr = Object.freeze([
|
|
|
4650
4711
|
"&:hover": { textDecoration: "underline" }
|
|
4651
4712
|
},
|
|
4652
4713
|
onClick: () => {
|
|
4653
|
-
|
|
4714
|
+
ze(o, d);
|
|
4654
4715
|
},
|
|
4655
4716
|
children: s("statusBar.circularReferences")
|
|
4656
4717
|
})
|
|
4657
4718
|
});
|
|
4658
4719
|
});
|
|
4659
|
-
|
|
4660
|
-
var
|
|
4661
|
-
let { debounceDelay: t = 40, className: n, style: r, ...i } = e, o =
|
|
4720
|
+
oi.displayName = "CircularReferenceStatus";
|
|
4721
|
+
var si = V((e) => {
|
|
4722
|
+
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
4723
|
return N(c, {
|
|
4663
4724
|
onStale: f,
|
|
4664
4725
|
onOptionsChange: f,
|
|
@@ -4675,7 +4736,7 @@ var Qr = V((e) => {
|
|
|
4675
4736
|
whiteSpace: "nowrap",
|
|
4676
4737
|
...r
|
|
4677
4738
|
},
|
|
4678
|
-
children: Y(
|
|
4739
|
+
children: Y(yn, {
|
|
4679
4740
|
component: "div",
|
|
4680
4741
|
variant: "caption",
|
|
4681
4742
|
role: "button",
|
|
@@ -4694,16 +4755,45 @@ var Qr = V((e) => {
|
|
|
4694
4755
|
})
|
|
4695
4756
|
}) : null;
|
|
4696
4757
|
});
|
|
4697
|
-
|
|
4698
|
-
var
|
|
4699
|
-
let {
|
|
4758
|
+
si.displayName = "CalculationRequiredStatus";
|
|
4759
|
+
var ci = V((e) => {
|
|
4760
|
+
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]);
|
|
4761
|
+
N(o, {
|
|
4762
|
+
onPendingChange: l,
|
|
4763
|
+
onStatusChange: l
|
|
4764
|
+
});
|
|
4765
|
+
let u = o?.getPendingCount() ?? 0;
|
|
4766
|
+
return u === 0 ? null : Y("div", {
|
|
4767
|
+
...i,
|
|
4768
|
+
className: a("pending-status", n),
|
|
4769
|
+
style: {
|
|
4770
|
+
display: "flex",
|
|
4771
|
+
alignItems: "center",
|
|
4772
|
+
...r
|
|
4773
|
+
},
|
|
4774
|
+
children: u > 0 && Y(J, {
|
|
4775
|
+
"aria-label": "pending-results",
|
|
4776
|
+
icon: Y(F, { iconKey: "PendingResults" }),
|
|
4777
|
+
propsTooltip: {
|
|
4778
|
+
label: s("statusBar.pending", { count: u }),
|
|
4779
|
+
simple: !0
|
|
4780
|
+
},
|
|
4781
|
+
onClick: () => {
|
|
4782
|
+
o?.cancelAsync();
|
|
4783
|
+
}
|
|
4784
|
+
})
|
|
4785
|
+
});
|
|
4786
|
+
});
|
|
4787
|
+
ci.displayName = "PendingStatus";
|
|
4788
|
+
var li = V(B((e, t) => {
|
|
4789
|
+
let { style: n, className: r, children: i, childrenEnd: o, items: s, ...c } = e, l = wt(null);
|
|
4700
4790
|
U(() => {
|
|
4701
4791
|
let e = (e) => e.preventDefault();
|
|
4702
4792
|
return l.current?.addEventListener("wheel", e, { passive: !1 }), () => {
|
|
4703
4793
|
l.current?.removeEventListener("wheel", e);
|
|
4704
4794
|
};
|
|
4705
4795
|
}, []);
|
|
4706
|
-
let u =
|
|
4796
|
+
let u = lt(), d = We().getMode()?.mode === "point", f = z(), p = u.getMode(), h = wt(p);
|
|
4707
4797
|
h.current = p;
|
|
4708
4798
|
let g = ((e, t) => {
|
|
4709
4799
|
let [n, r] = G(e);
|
|
@@ -4720,8 +4810,8 @@ var $r = V(B((e, t) => {
|
|
|
4720
4810
|
g,
|
|
4721
4811
|
d,
|
|
4722
4812
|
f
|
|
4723
|
-
]), v = g?.cancel, y = g?.done, b = !(!v && !y), x =
|
|
4724
|
-
|
|
4813
|
+
]), v = g?.cancel, y = g?.done, b = !(!v && !y), x = wt(null), [S, C] = G(null), w = b && S?.message === _;
|
|
4814
|
+
St(() => {
|
|
4725
4815
|
if (!b) return void (S && C(null));
|
|
4726
4816
|
if (w) return;
|
|
4727
4817
|
let e = x.current, t = l.current;
|
|
@@ -4742,7 +4832,7 @@ var $r = V(B((e, t) => {
|
|
|
4742
4832
|
e.button === 0 && e.preventDefault();
|
|
4743
4833
|
}, t = (e) => {
|
|
4744
4834
|
let t = h.current;
|
|
4745
|
-
t && t.key === g?.key &&
|
|
4835
|
+
t && t.key === g?.key && it(t, e);
|
|
4746
4836
|
};
|
|
4747
4837
|
return X("div", {
|
|
4748
4838
|
style: {
|
|
@@ -4778,7 +4868,7 @@ var $r = V(B((e, t) => {
|
|
|
4778
4868
|
onClick: () => t("done"),
|
|
4779
4869
|
sx: { marginRight: "4px" }
|
|
4780
4870
|
}),
|
|
4781
|
-
Y(
|
|
4871
|
+
Y(yn, {
|
|
4782
4872
|
ref: x,
|
|
4783
4873
|
component: "div",
|
|
4784
4874
|
sx: {
|
|
@@ -4813,7 +4903,7 @@ var $r = V(B((e, t) => {
|
|
|
4813
4903
|
alignItems: "center",
|
|
4814
4904
|
gap: 1
|
|
4815
4905
|
},
|
|
4816
|
-
children: Y(
|
|
4906
|
+
children: Y(ei, { style: {
|
|
4817
4907
|
overflow: "hidden",
|
|
4818
4908
|
minWidth: 0,
|
|
4819
4909
|
flex: "1 1 auto",
|
|
@@ -4825,7 +4915,7 @@ var $r = V(B((e, t) => {
|
|
|
4825
4915
|
display: "flex",
|
|
4826
4916
|
alignItems: "center"
|
|
4827
4917
|
},
|
|
4828
|
-
children: Y(
|
|
4918
|
+
children: Y(Xr, { sx: { minWidth: {
|
|
4829
4919
|
xs: 0,
|
|
4830
4920
|
sm: "190px"
|
|
4831
4921
|
} } })
|
|
@@ -4853,8 +4943,9 @@ var $r = V(B((e, t) => {
|
|
|
4853
4943
|
style: { display: w ? "none" : "contents" },
|
|
4854
4944
|
children: [
|
|
4855
4945
|
i,
|
|
4856
|
-
Y(
|
|
4857
|
-
Y(
|
|
4946
|
+
Y(oi, {}),
|
|
4947
|
+
Y(si, {}),
|
|
4948
|
+
Y(ci, {}),
|
|
4858
4949
|
ee,
|
|
4859
4950
|
D,
|
|
4860
4951
|
te
|
|
@@ -4870,9 +4961,9 @@ var $r = V(B((e, t) => {
|
|
|
4870
4961
|
]
|
|
4871
4962
|
});
|
|
4872
4963
|
}));
|
|
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 =
|
|
4964
|
+
li.displayName = "StatusBar";
|
|
4965
|
+
var ui = V(B((e, t) => {
|
|
4966
|
+
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
4967
|
if (S?.closeAll(), !E) {
|
|
4877
4968
|
let e = T();
|
|
4878
4969
|
return D(T()), e;
|
|
@@ -4911,7 +5002,7 @@ var ei = V(B((e, t) => {
|
|
|
4911
5002
|
let e = o.getByName(E);
|
|
4912
5003
|
C || e || (e = o.addFormula(E, n.toString())), e && _({ text: e.getName() });
|
|
4913
5004
|
} catch (e) {
|
|
4914
|
-
D(T()), p.showMessage?.(e.message, { type:
|
|
5005
|
+
D(T()), p.showMessage?.(e.message, { type: Qe.Error });
|
|
4915
5006
|
}
|
|
4916
5007
|
return null;
|
|
4917
5008
|
}, [
|
|
@@ -4971,7 +5062,7 @@ var ei = V(B((e, t) => {
|
|
|
4971
5062
|
y(null), te();
|
|
4972
5063
|
}
|
|
4973
5064
|
});
|
|
4974
|
-
let A = L(
|
|
5065
|
+
let A = L(Dn.debounce(te, v ? 0 : 120), [v]);
|
|
4975
5066
|
N(s.getSelectedWorksheet()?.getSelection(), {
|
|
4976
5067
|
onChange: (e) => {
|
|
4977
5068
|
A();
|
|
@@ -4980,9 +5071,9 @@ var ei = V(B((e, t) => {
|
|
|
4980
5071
|
y(e.getAdjusting());
|
|
4981
5072
|
}
|
|
4982
5073
|
});
|
|
4983
|
-
let j =
|
|
5074
|
+
let j = wt(null), re = yt(), ie = H((e) => {
|
|
4984
5075
|
let { onMouseDown: t, onMouseUp: n, ...r } = e;
|
|
4985
|
-
return Y(
|
|
5076
|
+
return Y(on, {
|
|
4986
5077
|
...r,
|
|
4987
5078
|
sx: {
|
|
4988
5079
|
...r?.sx,
|
|
@@ -4990,7 +5081,7 @@ var ei = V(B((e, t) => {
|
|
|
4990
5081
|
flex: "1 1 100%"
|
|
4991
5082
|
},
|
|
4992
5083
|
disableRipple: !0,
|
|
4993
|
-
children: Y(
|
|
5084
|
+
children: Y(sn, {
|
|
4994
5085
|
inputMode: "text",
|
|
4995
5086
|
inputProps: {
|
|
4996
5087
|
tabIndex: 0,
|
|
@@ -5061,7 +5152,7 @@ var ei = V(B((e, t) => {
|
|
|
5061
5152
|
let t = o.getItems({ address: e })?.[0];
|
|
5062
5153
|
t && await t?.select(), await s.getRanges(e)?.select({ autoFocus: !0 });
|
|
5063
5154
|
} catch (e) {
|
|
5064
|
-
p.showMessage?.(e.message, { type:
|
|
5155
|
+
p.showMessage?.(e.message, { type: Qe.Error });
|
|
5065
5156
|
}
|
|
5066
5157
|
}, [
|
|
5067
5158
|
o,
|
|
@@ -5072,7 +5163,7 @@ var ei = V(B((e, t) => {
|
|
|
5072
5163
|
x(!0);
|
|
5073
5164
|
}, 0);
|
|
5074
5165
|
let t = {
|
|
5075
|
-
variant:
|
|
5166
|
+
variant: Ye.Menuitem,
|
|
5076
5167
|
groupKey: d?.groupKey
|
|
5077
5168
|
}, n = (s?.getSelectedWorksheet()?.getNames() ?? o).getItems();
|
|
5078
5169
|
n = n.sort((e, t) => {
|
|
@@ -5089,11 +5180,11 @@ var ei = V(B((e, t) => {
|
|
|
5089
5180
|
let o = n[e], s = o.getRanges?.();
|
|
5090
5181
|
if (!s || o.isHidden()) continue;
|
|
5091
5182
|
let c = o.getType() === "table";
|
|
5092
|
-
c !== l && (l !== null && a.push(Y(q, { orientation: "horizontal" }, `type-divider-${a.length}`)), a.push(Y(
|
|
5183
|
+
c !== l && (l !== null && a.push(Y(q, { orientation: "horizontal" }, `type-divider-${a.length}`)), a.push(Y(Mt, {
|
|
5093
5184
|
variant: "subtitle2",
|
|
5094
5185
|
sx: { paddingLeft: "16px" },
|
|
5095
5186
|
children: h(c ? "named.groupTables" : "named.groupRanges")
|
|
5096
|
-
}, `type-header-${a.length}`)), l = c), c ? a.push(i ?
|
|
5187
|
+
}, `type-header-${a.length}`)), l = c), c ? a.push(i ? xt(Et, {
|
|
5097
5188
|
...t,
|
|
5098
5189
|
key: "namedItem-" + a.length,
|
|
5099
5190
|
groupKey: "namedItem",
|
|
@@ -5103,7 +5194,7 @@ var ei = V(B((e, t) => {
|
|
|
5103
5194
|
quickCommand: "selectNamed",
|
|
5104
5195
|
disabled: u ?? !s,
|
|
5105
5196
|
icon: "TableInsert"
|
|
5106
|
-
}) :
|
|
5197
|
+
}) : xt(K, {
|
|
5107
5198
|
...t,
|
|
5108
5199
|
key: "namedItem-" + a.length,
|
|
5109
5200
|
commandKey: "selectNamed",
|
|
@@ -5112,7 +5203,7 @@ var ei = V(B((e, t) => {
|
|
|
5112
5203
|
label: o.getName(),
|
|
5113
5204
|
disabled: u ?? !s,
|
|
5114
5205
|
icon: "TableInsert"
|
|
5115
|
-
})) : a.push(r ?
|
|
5206
|
+
})) : a.push(r ? xt(Et, {
|
|
5116
5207
|
...t,
|
|
5117
5208
|
key: "named-" + a.length,
|
|
5118
5209
|
groupKey: "namedItem",
|
|
@@ -5122,7 +5213,7 @@ var ei = V(B((e, t) => {
|
|
|
5122
5213
|
quickCommand: "selectNamed",
|
|
5123
5214
|
disabled: u ?? !o.getRanges?.(),
|
|
5124
5215
|
icon: "NamedRange"
|
|
5125
|
-
}) :
|
|
5216
|
+
}) : xt(K, {
|
|
5126
5217
|
...t,
|
|
5127
5218
|
key: "named-" + a.length,
|
|
5128
5219
|
commandKey: "selectNamed",
|
|
@@ -5147,7 +5238,7 @@ var ei = V(B((e, t) => {
|
|
|
5147
5238
|
groupKey: "namedItem",
|
|
5148
5239
|
commandKey: "addNamedReference"
|
|
5149
5240
|
}),
|
|
5150
|
-
a && a.length > 0 ? X(
|
|
5241
|
+
a && a.length > 0 ? X(tn, { children: [C ? null : Y(q, { orientation: "horizontal" }), Y(Z, {
|
|
5151
5242
|
sx: {
|
|
5152
5243
|
overflowX: "hidden",
|
|
5153
5244
|
overflowY: "auto",
|
|
@@ -5164,7 +5255,7 @@ var ei = V(B((e, t) => {
|
|
|
5164
5255
|
})
|
|
5165
5256
|
]
|
|
5166
5257
|
});
|
|
5167
|
-
return
|
|
5258
|
+
return Gt({
|
|
5168
5259
|
...e,
|
|
5169
5260
|
children: p
|
|
5170
5261
|
});
|
|
@@ -5175,7 +5266,7 @@ var ei = V(B((e, t) => {
|
|
|
5175
5266
|
g,
|
|
5176
5267
|
C,
|
|
5177
5268
|
h
|
|
5178
|
-
]), se =
|
|
5269
|
+
]), se = ft(t, () => ({ focus(e) {
|
|
5179
5270
|
j.current?.focus(e);
|
|
5180
5271
|
} }), []), ce = m([se, t]);
|
|
5181
5272
|
return Y(Z, {
|
|
@@ -5190,7 +5281,7 @@ var ei = V(B((e, t) => {
|
|
|
5190
5281
|
...r
|
|
5191
5282
|
},
|
|
5192
5283
|
ref: ce,
|
|
5193
|
-
children: Y(
|
|
5284
|
+
children: Y(Pt, {
|
|
5194
5285
|
className: "outer-button",
|
|
5195
5286
|
sx: {
|
|
5196
5287
|
display: "flex",
|
|
@@ -5204,10 +5295,10 @@ var ei = V(B((e, t) => {
|
|
|
5204
5295
|
propsButton: { sx: { backgroundColor: "var(--sxl-color-input, var(--sxl-color-base-100))" } },
|
|
5205
5296
|
tabIndex: -1,
|
|
5206
5297
|
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
|
-
|
|
5298
|
+
renderPopupPanel: oe,
|
|
5208
5299
|
onPopupOpen: () => x(!0),
|
|
5209
5300
|
onPopupClose: () => x(!1),
|
|
5210
|
-
|
|
5301
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
5211
5302
|
title: t || b ? "" : h("nameBox.title"),
|
|
5212
5303
|
disabled: t,
|
|
5213
5304
|
leaveDelay: 0,
|
|
@@ -5218,15 +5309,15 @@ var ei = V(B((e, t) => {
|
|
|
5218
5309
|
})
|
|
5219
5310
|
});
|
|
5220
5311
|
}));
|
|
5221
|
-
|
|
5222
|
-
var
|
|
5312
|
+
ui.displayName = "NamedCollectionEditor";
|
|
5313
|
+
var di = Qt(On("studio:namedDetailsTaskPane", () => import("./CQd6qQ6b5R96lYkQ.mjs"), { select: (e) => ({ default: e.NamedDetailsTaskPane }) }).load), fi = () => {
|
|
5223
5314
|
pe.registerTaskPane({
|
|
5224
5315
|
key: "managedNames",
|
|
5225
5316
|
getTitle: () => "Names",
|
|
5226
5317
|
getIcon: () => "NamedManager",
|
|
5227
|
-
component:
|
|
5318
|
+
component: di
|
|
5228
5319
|
}, !0);
|
|
5229
|
-
},
|
|
5320
|
+
}, pi = "formula-bar", mi = (e) => {
|
|
5230
5321
|
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
5322
|
N(t, {
|
|
5232
5323
|
onSheetsChange: (e) => {
|
|
@@ -5252,11 +5343,11 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5252
5343
|
p((e) => e + 1);
|
|
5253
5344
|
});
|
|
5254
5345
|
}, [c, u]);
|
|
5255
|
-
let v =
|
|
5346
|
+
let v = _t(n, (e) => e.getSession()), y = !!v, b = L(() => {
|
|
5256
5347
|
n?.cancel();
|
|
5257
5348
|
}, [n]), x = L(() => {
|
|
5258
5349
|
n?.commit();
|
|
5259
|
-
}, [n]), S = W(() => c ?
|
|
5350
|
+
}, [n]), S = W(() => c ? ke({
|
|
5260
5351
|
selection: c.getSelection(),
|
|
5261
5352
|
fillNone: !0
|
|
5262
5353
|
}) : null, [c]), C = W(() => n && c ? {
|
|
@@ -5272,9 +5363,9 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5272
5363
|
key: "formula:editor",
|
|
5273
5364
|
name: "editor"
|
|
5274
5365
|
},
|
|
5275
|
-
contributor: { dynamic:
|
|
5366
|
+
contributor: { dynamic: Oe },
|
|
5276
5367
|
data: C
|
|
5277
|
-
} : null, [C]), T = W(() => y || !c ? null :
|
|
5368
|
+
} : null, [C]), T = W(() => y || !c ? null : Fe(c.getRange(u).getCell()), [
|
|
5278
5369
|
c,
|
|
5279
5370
|
u,
|
|
5280
5371
|
y,
|
|
@@ -5296,10 +5387,10 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5296
5387
|
flexDirection: "row",
|
|
5297
5388
|
gap: 4
|
|
5298
5389
|
},
|
|
5299
|
-
children: Y(
|
|
5390
|
+
children: Y(Mn, {
|
|
5300
5391
|
editable: n,
|
|
5301
5392
|
readOnly: _,
|
|
5302
|
-
editorId:
|
|
5393
|
+
editorId: pi,
|
|
5303
5394
|
idleClean: () => c.getRange(u).getCell(),
|
|
5304
5395
|
mapClean: (e) => e ? () => e().createCell({ style: {
|
|
5305
5396
|
font: {
|
|
@@ -5343,11 +5434,8 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5343
5434
|
s
|
|
5344
5435
|
])
|
|
5345
5436
|
};
|
|
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({
|
|
5437
|
+
}, 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) => {
|
|
5438
|
+
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
5439
|
workbook: m,
|
|
5352
5440
|
editable: o,
|
|
5353
5441
|
disabled: u,
|
|
@@ -5363,18 +5451,22 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5363
5451
|
}, [20]), se = L((e, { size: t }) => {
|
|
5364
5452
|
let n = Math.floor(t.height / 20);
|
|
5365
5453
|
ae(n);
|
|
5366
|
-
}, [20]), ce =
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5454
|
+
}, [20]), ce = wt(null), le = W(() => s ? Y(et, {
|
|
5455
|
+
render: l,
|
|
5456
|
+
props: {
|
|
5457
|
+
ref: ce,
|
|
5458
|
+
names: m.getNames(),
|
|
5459
|
+
workbook: m,
|
|
5460
|
+
...c
|
|
5461
|
+
}
|
|
5462
|
+
}) : null, [
|
|
5371
5463
|
l,
|
|
5372
5464
|
c,
|
|
5373
5465
|
s,
|
|
5374
5466
|
h,
|
|
5375
5467
|
m,
|
|
5376
5468
|
g
|
|
5377
|
-
]), ue = W(() => X(
|
|
5469
|
+
]), ue = W(() => X(dn, {
|
|
5378
5470
|
elevation: 0,
|
|
5379
5471
|
sx: {
|
|
5380
5472
|
display: "flex",
|
|
@@ -5382,7 +5474,7 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5382
5474
|
userSelect: "none",
|
|
5383
5475
|
flexGrow: 0,
|
|
5384
5476
|
backgroundColor: "var(--sxl-color-input, var(--sxl-color-base-100))",
|
|
5385
|
-
border: (e) => `solid ${g ? e.palette.action.disabled :
|
|
5477
|
+
border: (e) => `solid ${g ? e.palette.action.disabled : _i} 1px`
|
|
5386
5478
|
},
|
|
5387
5479
|
children: [
|
|
5388
5480
|
te ? Y(J, {
|
|
@@ -5478,13 +5570,13 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5478
5570
|
O,
|
|
5479
5571
|
te,
|
|
5480
5572
|
w
|
|
5481
|
-
]), de =
|
|
5482
|
-
className: "formula-bar " +
|
|
5573
|
+
]), de = Cn(), [fe, pe] = G(!1), me = W(() => X(Z, {
|
|
5574
|
+
className: "formula-bar " + hi,
|
|
5483
5575
|
sx: {
|
|
5484
5576
|
gap: (e) => e.spacing(.5),
|
|
5485
5577
|
alignItems: "start"
|
|
5486
5578
|
},
|
|
5487
|
-
children: [ue, X(
|
|
5579
|
+
children: [ue, X(dn, {
|
|
5488
5580
|
elevation: 0,
|
|
5489
5581
|
sx: {
|
|
5490
5582
|
display: "flex",
|
|
@@ -5500,7 +5592,7 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5500
5592
|
boxShadow: "none",
|
|
5501
5593
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
5502
5594
|
backgroundColor: "var(--sxl-color-input, var(--sxl-color-base-100))",
|
|
5503
|
-
border: (e) => `solid ${g ? e.palette.action.disabled :
|
|
5595
|
+
border: (e) => `solid ${g ? e.palette.action.disabled : _i} 1px`,
|
|
5504
5596
|
"& textarea": { color: (e) => g ? `${e.palette.text.disabled} !important` : e.palette.text.primary },
|
|
5505
5597
|
"& .react-resizable-handle": {
|
|
5506
5598
|
width: "100%",
|
|
@@ -5538,7 +5630,7 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5538
5630
|
paddingLeft: (e) => e.spacing(1),
|
|
5539
5631
|
paddingRight: (e) => e.spacing(1)
|
|
5540
5632
|
},
|
|
5541
|
-
children: Y(
|
|
5633
|
+
children: Y(tt, {
|
|
5542
5634
|
height: k,
|
|
5543
5635
|
draggableOpts: { grid: [20, 20] },
|
|
5544
5636
|
minConstraints: [20, 20],
|
|
@@ -5603,7 +5695,7 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5603
5695
|
20,
|
|
5604
5696
|
O,
|
|
5605
5697
|
f
|
|
5606
|
-
]), he = W(() => le || me ? !le && me ? me : le && !me ? le : Y(
|
|
5698
|
+
]), he = W(() => le || me ? !le && me ? me : le && !me ? le : Y(tn, { children: Y(nt, {
|
|
5607
5699
|
fixedPane: "before",
|
|
5608
5700
|
minBefore: "165px",
|
|
5609
5701
|
minAfter: "200px",
|
|
@@ -5618,14 +5710,14 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5618
5710
|
} },
|
|
5619
5711
|
elementBefore: le ?? void 0,
|
|
5620
5712
|
elementAfter: me
|
|
5621
|
-
}) }) : null, [le, me]), M =
|
|
5713
|
+
}) }) : null, [le, me]), M = wt(o);
|
|
5622
5714
|
M.current = o;
|
|
5623
|
-
let ge =
|
|
5715
|
+
let ge = ft(t, () => ({
|
|
5624
5716
|
isFormulaBarElement: () => !0,
|
|
5625
5717
|
getNamedCollectionEditorElement: () => ce.current,
|
|
5626
5718
|
getEditable: () => M.current ?? null
|
|
5627
5719
|
}), []);
|
|
5628
|
-
return Y(
|
|
5720
|
+
return Y(Xe, {
|
|
5629
5721
|
spec: b,
|
|
5630
5722
|
elementRef: ge,
|
|
5631
5723
|
region: !0,
|
|
@@ -5643,15 +5735,15 @@ var ti = Kt(Cn("studio:namedDetailsTaskPane", () => import("./DnGaP5F7mLwCGUYG.m
|
|
|
5643
5735
|
})
|
|
5644
5736
|
});
|
|
5645
5737
|
}));
|
|
5646
|
-
|
|
5647
|
-
var
|
|
5738
|
+
vi.displayName = "FormulaBar";
|
|
5739
|
+
var yi = (e) => Y(J, {
|
|
5648
5740
|
onMouseDown: (e) => {
|
|
5649
5741
|
e.button === 0 && e.preventDefault();
|
|
5650
5742
|
},
|
|
5651
5743
|
...e
|
|
5652
|
-
}),
|
|
5744
|
+
}), bi = V((e) => {
|
|
5653
5745
|
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(
|
|
5746
|
+
return X(dn, {
|
|
5655
5747
|
elevation: 2,
|
|
5656
5748
|
className: "formula-bar-input-toolbar",
|
|
5657
5749
|
role: "toolbar",
|
|
@@ -5670,7 +5762,7 @@ var li = (e) => Y(J, {
|
|
|
5670
5762
|
border: "1px solid var(--sxl-color-elevated-border, transparent)"
|
|
5671
5763
|
},
|
|
5672
5764
|
children: [
|
|
5673
|
-
Y(
|
|
5765
|
+
Y(yi, {
|
|
5674
5766
|
"aria-label": "input-mode-text",
|
|
5675
5767
|
selected: r && i === "text",
|
|
5676
5768
|
icon: Y(F, { iconKey: "KeyboardLetters" }),
|
|
@@ -5681,7 +5773,7 @@ var li = (e) => Y(J, {
|
|
|
5681
5773
|
disabled: n,
|
|
5682
5774
|
onClick: () => o("text")
|
|
5683
5775
|
}),
|
|
5684
|
-
Y(
|
|
5776
|
+
Y(yi, {
|
|
5685
5777
|
"aria-label": "input-mode-decimal",
|
|
5686
5778
|
selected: r && i === "decimal",
|
|
5687
5779
|
icon: Y(F, { iconKey: "KeyboardNumbers" }),
|
|
@@ -5692,7 +5784,7 @@ var li = (e) => Y(J, {
|
|
|
5692
5784
|
disabled: n,
|
|
5693
5785
|
onClick: () => o("decimal")
|
|
5694
5786
|
}),
|
|
5695
|
-
Y(
|
|
5787
|
+
Y(yi, {
|
|
5696
5788
|
"aria-label": "insert-date",
|
|
5697
5789
|
icon: Y(F, { iconKey: "KeyboardDate" }),
|
|
5698
5790
|
propsTooltip: {
|
|
@@ -5703,7 +5795,7 @@ var li = (e) => Y(J, {
|
|
|
5703
5795
|
onClick: s
|
|
5704
5796
|
}),
|
|
5705
5797
|
Y(Z, { sx: { flex: "1 1 auto" } }),
|
|
5706
|
-
Y(
|
|
5798
|
+
Y(yi, {
|
|
5707
5799
|
"aria-label": "tab-formula-edit",
|
|
5708
5800
|
icon: Y(F, { iconKey: "KeyboardTab" }),
|
|
5709
5801
|
propsTooltip: {
|
|
@@ -5713,7 +5805,7 @@ var li = (e) => Y(J, {
|
|
|
5713
5805
|
disabled: n,
|
|
5714
5806
|
onClick: c
|
|
5715
5807
|
}),
|
|
5716
|
-
Y(
|
|
5808
|
+
Y(yi, {
|
|
5717
5809
|
"aria-label": "enter-formula-edit",
|
|
5718
5810
|
icon: Y(F, { iconKey: "KeyboardEnter" }),
|
|
5719
5811
|
propsTooltip: {
|
|
@@ -5723,9 +5815,9 @@ var li = (e) => Y(J, {
|
|
|
5723
5815
|
disabled: n,
|
|
5724
5816
|
onClick: l
|
|
5725
5817
|
}),
|
|
5726
|
-
a ? X(
|
|
5818
|
+
a ? X(tn, { children: [
|
|
5727
5819
|
Y(Z, { sx: { flex: "1 1 auto" } }),
|
|
5728
|
-
Y(
|
|
5820
|
+
Y(yi, {
|
|
5729
5821
|
"aria-label": "cancel-formula-edit",
|
|
5730
5822
|
color: "warning",
|
|
5731
5823
|
icon: Y(F, { iconKey: "CloseError" }),
|
|
@@ -5736,7 +5828,7 @@ var li = (e) => Y(J, {
|
|
|
5736
5828
|
disabled: n || !t,
|
|
5737
5829
|
onClick: u
|
|
5738
5830
|
}),
|
|
5739
|
-
Y(
|
|
5831
|
+
Y(yi, {
|
|
5740
5832
|
"aria-label": "commit-formula-edit",
|
|
5741
5833
|
color: "primary",
|
|
5742
5834
|
icon: Y(F, { iconKey: "CheckSuccess" }),
|
|
@@ -5751,8 +5843,8 @@ var li = (e) => Y(J, {
|
|
|
5751
5843
|
]
|
|
5752
5844
|
});
|
|
5753
5845
|
});
|
|
5754
|
-
|
|
5755
|
-
var
|
|
5846
|
+
bi.displayName = "MobileInputToolbar";
|
|
5847
|
+
var xi = (e) => {
|
|
5756
5848
|
let { sx: t, ...n } = e;
|
|
5757
5849
|
return Y(J, {
|
|
5758
5850
|
outlined: !1,
|
|
@@ -5767,10 +5859,10 @@ var di = (e) => {
|
|
|
5767
5859
|
},
|
|
5768
5860
|
...n
|
|
5769
5861
|
});
|
|
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 } =
|
|
5862
|
+
}, Si = V(B((e, t) => {
|
|
5863
|
+
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();
|
|
5864
|
+
U(() => g.registerEditor(pi), [g]);
|
|
5865
|
+
let { sheet: v, disabled: y, isEditing: b, cancel: x, commit: S, editorSpec: C, cellEditor: w } = mi({
|
|
5774
5866
|
workbook: h,
|
|
5775
5867
|
editable: o,
|
|
5776
5868
|
disabled: s,
|
|
@@ -5778,9 +5870,9 @@ var di = (e) => {
|
|
|
5778
5870
|
inputMode: _,
|
|
5779
5871
|
enterKeyHint: "enter",
|
|
5780
5872
|
hintPlacement: "above"
|
|
5781
|
-
}), [T] = R(["insertFunctionDialog"]), E = z(), [D, ee] = G(!1), [te, O] = G(!1), k = D ? 5 : 1, A =
|
|
5873
|
+
}), [T] = R(["insertFunctionDialog"]), E = z(), [D, ee] = G(!1), [te, O] = G(!1), k = D ? 5 : 1, A = wt(o);
|
|
5782
5874
|
A.current = o;
|
|
5783
|
-
let j =
|
|
5875
|
+
let j = ft(t, () => ({
|
|
5784
5876
|
isFormulaBarElement: () => !0,
|
|
5785
5877
|
getNamedCollectionEditorElement: () => null,
|
|
5786
5878
|
getEditable: () => A.current ?? null
|
|
@@ -5789,8 +5881,8 @@ var di = (e) => {
|
|
|
5789
5881
|
let t = re();
|
|
5790
5882
|
if (!t) return;
|
|
5791
5883
|
let n = t.inputMode !== e;
|
|
5792
|
-
t.inputMode = e, document.activeElement === t ? !n &&
|
|
5793
|
-
}, [g]), ae =
|
|
5884
|
+
t.inputMode = e, document.activeElement === t ? !n && at() || (t.blur(), t.focus()) : t.focus();
|
|
5885
|
+
}, [g]), ae = wt(null), oe = L(() => {
|
|
5794
5886
|
let e = ae.current;
|
|
5795
5887
|
if (e) try {
|
|
5796
5888
|
e.showPicker();
|
|
@@ -5803,14 +5895,14 @@ var di = (e) => {
|
|
|
5803
5895
|
let n = o, r = re();
|
|
5804
5896
|
if (!t || !n || !r) return;
|
|
5805
5897
|
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(),
|
|
5898
|
+
if (n.getSession()) r.focus(), $e.replaceRangeText(r, r.selectionStart, r.selectionEnd, c);
|
|
5807
5899
|
else {
|
|
5808
5900
|
if (!n.startEdit(n.getAnchor().getCoords(), {
|
|
5809
5901
|
mode: "enter",
|
|
5810
5902
|
autoFocus: !1,
|
|
5811
5903
|
dirty: c
|
|
5812
5904
|
})) return;
|
|
5813
|
-
n.getSession()?.setActiveEditorId(
|
|
5905
|
+
n.getSession()?.setActiveEditorId(pi), r.focus();
|
|
5814
5906
|
}
|
|
5815
5907
|
}, [o, h]), ce = L((e) => {
|
|
5816
5908
|
let t = o;
|
|
@@ -5819,18 +5911,18 @@ var di = (e) => {
|
|
|
5819
5911
|
t && v?.getSelection().traverse(e);
|
|
5820
5912
|
};
|
|
5821
5913
|
!0 !== n && !1 !== n ? n.then(r) : r(n);
|
|
5822
|
-
}, [o, v]), le = L(() =>
|
|
5914
|
+
}, [o, v]), le = L(() => it({
|
|
5823
5915
|
key: "edit",
|
|
5824
5916
|
cancel: x,
|
|
5825
5917
|
done: S
|
|
5826
|
-
}, "cancel"), [x, S]), ue = L(() =>
|
|
5918
|
+
}, "cancel"), [x, S]), ue = L(() => it({
|
|
5827
5919
|
key: "edit",
|
|
5828
5920
|
cancel: x,
|
|
5829
5921
|
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 ?
|
|
5922
|
+
}, "done"), [x, S]), de = L(() => ce(En.Row), [ce]), fe = L(() => ce(En.Column), [ce]), pe = L((e) => {
|
|
5923
|
+
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
5924
|
}, [ce]);
|
|
5833
|
-
return Y(
|
|
5925
|
+
return Y(Xe, {
|
|
5834
5926
|
spec: C,
|
|
5835
5927
|
elementRef: j,
|
|
5836
5928
|
region: !0,
|
|
@@ -5854,7 +5946,7 @@ var di = (e) => {
|
|
|
5854
5946
|
alignItems: "flex-end",
|
|
5855
5947
|
gap: "4px"
|
|
5856
5948
|
},
|
|
5857
|
-
children: [Y(
|
|
5949
|
+
children: [Y(xi, {
|
|
5858
5950
|
disabled: !T || T.disabled(),
|
|
5859
5951
|
"aria-label": "commit-formula-function",
|
|
5860
5952
|
icon: Y(F, {
|
|
@@ -5868,7 +5960,7 @@ var di = (e) => {
|
|
|
5868
5960
|
onMouseDown: (e) => {
|
|
5869
5961
|
e.button === 0 && (T?.execute(), e.preventDefault());
|
|
5870
5962
|
}
|
|
5871
|
-
}), X(
|
|
5963
|
+
}), X(dn, {
|
|
5872
5964
|
elevation: 0,
|
|
5873
5965
|
sx: {
|
|
5874
5966
|
display: "flex",
|
|
@@ -5906,7 +5998,7 @@ var di = (e) => {
|
|
|
5906
5998
|
style: { height: 20 * k + "px" },
|
|
5907
5999
|
children: w
|
|
5908
6000
|
}),
|
|
5909
|
-
Y(
|
|
6001
|
+
Y(xi, {
|
|
5910
6002
|
"aria-label": "toggle-expand-formula-edit",
|
|
5911
6003
|
icon: Y(F, { iconKey: D ? "ExpandMore" : "ExpandLess" }),
|
|
5912
6004
|
propsTooltip: {
|
|
@@ -5947,7 +6039,7 @@ var di = (e) => {
|
|
|
5947
6039
|
pointerEvents: "none"
|
|
5948
6040
|
}
|
|
5949
6041
|
}),
|
|
5950
|
-
Y(
|
|
6042
|
+
Y(bi, {
|
|
5951
6043
|
isEditing: b,
|
|
5952
6044
|
disabled: y,
|
|
5953
6045
|
keyboardShown: g.isActive(),
|
|
@@ -5964,37 +6056,37 @@ var di = (e) => {
|
|
|
5964
6056
|
})
|
|
5965
6057
|
});
|
|
5966
6058
|
}));
|
|
5967
|
-
|
|
5968
|
-
var
|
|
6059
|
+
Si.displayName = "MobileFormulaBar";
|
|
6060
|
+
var Ci = Qt(On("studio:externalLinksTaskPane", () => import("./dn1AnYOyR4bZamV4.mjs"), { select: (e) => ({ default: e.ExternalLinksTaskPane }) }).load), wi = () => {
|
|
5969
6061
|
pe.registerTaskPane({
|
|
5970
6062
|
key: "externalLinks",
|
|
5971
6063
|
getTitle: () => "Workbook Links",
|
|
5972
6064
|
getIcon: () => "ExternalLinked",
|
|
5973
|
-
component:
|
|
6065
|
+
component: Ci
|
|
5974
6066
|
}, !0);
|
|
5975
|
-
},
|
|
6067
|
+
}, Ti = Qt(On("studio:commentsTaskPane", () => import("./BzLjlI67XDv3JcvA.mjs"), { select: (e) => ({ default: e.CommentsTaskPane }) }).load), Ei = () => {
|
|
5976
6068
|
pe.registerTaskPane({
|
|
5977
6069
|
key: "comments",
|
|
5978
|
-
getTitle: () =>
|
|
6070
|
+
getTitle: () => An(kn("comment.title")),
|
|
5979
6071
|
getIcon: () => "CommentEdit",
|
|
5980
|
-
component:
|
|
6072
|
+
component: Ti
|
|
5981
6073
|
}, !0);
|
|
5982
|
-
},
|
|
6074
|
+
}, Di = Qt(On("studio:anomaliesTaskPane", () => import("./D9KI3TDs1Ed_en8o.mjs"), { select: (e) => ({ default: e.AnomaliesTaskPane }) }).load), Oi = () => {
|
|
5983
6075
|
pe.registerTaskPane({
|
|
5984
6076
|
key: "anomalies",
|
|
5985
6077
|
getTitle: () => "Anomalies",
|
|
5986
6078
|
getIcon: () => "Find",
|
|
5987
|
-
component:
|
|
6079
|
+
component: Di
|
|
5988
6080
|
}, !0);
|
|
5989
|
-
}, $ = k.BuiltInOperatorNames,
|
|
6081
|
+
}, $ = k.BuiltInOperatorNames, ki = k.BuiltInSelectorNames, Ai = /* @__PURE__ */ new Set([$.Color, $.Icon]), ji = (e) => e ? typeof e == "string" ? e : e.getName() : null, Mi = {
|
|
5990
6082
|
number: oe.Number,
|
|
5991
6083
|
text: oe.String,
|
|
5992
6084
|
date: oe.Date
|
|
5993
|
-
},
|
|
6085
|
+
}, Ni = {
|
|
5994
6086
|
number: null,
|
|
5995
6087
|
text: null,
|
|
5996
|
-
date:
|
|
5997
|
-
},
|
|
6088
|
+
date: ki.Date
|
|
6089
|
+
}, Pi = {
|
|
5998
6090
|
number: [
|
|
5999
6091
|
$.EqualTo,
|
|
6000
6092
|
$.GreaterThan,
|
|
@@ -6017,11 +6109,11 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6017
6109
|
$.Between,
|
|
6018
6110
|
$.TimePeriod
|
|
6019
6111
|
]
|
|
6020
|
-
},
|
|
6021
|
-
let n =
|
|
6112
|
+
}, Fi = () => Object.values(E.BuiltInOperators), Ii = (e, t) => {
|
|
6113
|
+
let n = ji(e?.operator);
|
|
6022
6114
|
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 =
|
|
6115
|
+
}, Li = V(B((e, t) => {
|
|
6116
|
+
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
6117
|
if (!e) return {
|
|
6026
6118
|
numbers: 0,
|
|
6027
6119
|
texts: 0,
|
|
@@ -6038,38 +6130,38 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6038
6130
|
showsDates: r
|
|
6039
6131
|
};
|
|
6040
6132
|
})(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 =
|
|
6133
|
+
let r = Mi[e], i = Pi[e], a = (e) => {
|
|
6042
6134
|
let t = i.indexOf(e.getName());
|
|
6043
6135
|
return t < 0 ? i.length : t;
|
|
6044
|
-
}, o = _(n), s =
|
|
6136
|
+
}, o = _(n), s = Fi().filter((e) => !b.includes(e.getName()) && !e.isCombinator?.() && (e.getAcceptsTypes?.()?.includes(r) ?? !1));
|
|
6045
6137
|
return s.sort((e, t) => a(e) - a(t) || o(e, t)), s.map((e) => v(Object.create(e), t));
|
|
6046
6138
|
})(m, g, l), [
|
|
6047
6139
|
m,
|
|
6048
6140
|
g,
|
|
6049
6141
|
l
|
|
6050
6142
|
]), D = W(() => new Set(T.map((e) => e.getName())), [T]), ee = W(() => ((e) => {
|
|
6051
|
-
let t = new Set(e.map((e) => e.getName())), n =
|
|
6143
|
+
let t = new Set(e.map((e) => e.getName())), n = Fi().filter((e) => !t.has(e.getName()) && !b.includes(e.getName()));
|
|
6052
6144
|
return [...e, ...n];
|
|
6053
6145
|
})(T), [T]), O = W(() => {
|
|
6054
6146
|
if (u) return (e) => u.getItems(e);
|
|
6055
|
-
}, [u]), [k] = G(() => p ? null : d ? d.toJSON() : null), [A, ne] = G(() => k ?
|
|
6147
|
+
}, [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
6148
|
selector: j,
|
|
6057
6149
|
operator: $.InSet,
|
|
6058
6150
|
param: ie ?? {},
|
|
6059
6151
|
includeBlanks: !1
|
|
6060
|
-
}), [j, ie]), de =
|
|
6152
|
+
}), [j, ie]), de = wt({
|
|
6061
6153
|
values: !1,
|
|
6062
6154
|
blanks: !0
|
|
6063
|
-
}), [fe, pe] = G(() => k &&
|
|
6155
|
+
}), [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
6156
|
A,
|
|
6065
6157
|
ue,
|
|
6066
6158
|
M,
|
|
6067
6159
|
ge
|
|
6068
6160
|
]), ye = ve ? ve.validate() : _e ? "unresolved" : null, be = W(() => ({
|
|
6069
6161
|
disabled: r,
|
|
6070
|
-
variant:
|
|
6162
|
+
variant: Ye.Menuitem
|
|
6071
6163
|
}), [r]), xe = H((e) => {
|
|
6072
|
-
let t = T[0] ?? null, n =
|
|
6164
|
+
let t = T[0] ?? null, n = Ni[m], r = n ? E.Selectors.get(n) ?? null : null;
|
|
6073
6165
|
return {
|
|
6074
6166
|
selector: n,
|
|
6075
6167
|
operator: t?.getName() ?? null,
|
|
@@ -6078,12 +6170,12 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6078
6170
|
};
|
|
6079
6171
|
}, [m, T]), Se = H((e, t) => {
|
|
6080
6172
|
if (!e || e.operator === t?.operator || e.selector) return e;
|
|
6081
|
-
let n =
|
|
6173
|
+
let n = ji(e.operator);
|
|
6082
6174
|
if (n === $.InSet) return {
|
|
6083
6175
|
...e,
|
|
6084
|
-
selector:
|
|
6176
|
+
selector: ki.Display
|
|
6085
6177
|
};
|
|
6086
|
-
let r = n !== null && D.has(n) ?
|
|
6178
|
+
let r = n !== null && D.has(n) ? Ni[m] : null;
|
|
6087
6179
|
if (!r) return e;
|
|
6088
6180
|
let i = ((e) => Object.values(E.BuiltInOperators).find((t) => t.getName() === e) ?? null)(n), a = E.Selectors.get(r) ?? null;
|
|
6089
6181
|
return {
|
|
@@ -6103,7 +6195,7 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6103
6195
|
ae(e);
|
|
6104
6196
|
}, []), Ee = H((e) => {
|
|
6105
6197
|
re(e);
|
|
6106
|
-
}, []), De =
|
|
6198
|
+
}, []), De = wt(/* @__PURE__ */ new Set()), Oe = W(() => ({ register: (e) => (De.current.add(e), () => {
|
|
6107
6199
|
De.current.delete(e);
|
|
6108
6200
|
}) }), []), [ke, Ae] = G(!1), je = H(() => {
|
|
6109
6201
|
let e = !0;
|
|
@@ -6150,7 +6242,7 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6150
6242
|
...e,
|
|
6151
6243
|
includeBlanks: t
|
|
6152
6244
|
};
|
|
6153
|
-
let n = me, r =
|
|
6245
|
+
let n = me, r = ji(n?.operator);
|
|
6154
6246
|
return n && r !== null && D.has(r) ? {
|
|
6155
6247
|
...n,
|
|
6156
6248
|
includeBlanks: t
|
|
@@ -6169,7 +6261,7 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6169
6261
|
me,
|
|
6170
6262
|
D,
|
|
6171
6263
|
xe
|
|
6172
|
-
]), Le =
|
|
6264
|
+
]), Le = wt(null);
|
|
6173
6265
|
U(() => {
|
|
6174
6266
|
if (Pe === 0) return;
|
|
6175
6267
|
let e = setTimeout(() => {
|
|
@@ -6219,7 +6311,7 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6219
6311
|
},
|
|
6220
6312
|
...s,
|
|
6221
6313
|
children: [
|
|
6222
|
-
Y(
|
|
6314
|
+
Y(Mt, {
|
|
6223
6315
|
variant: "subtitle2",
|
|
6224
6316
|
sx: { paddingLeft: "16px" },
|
|
6225
6317
|
children: c("filter.sortTitle")
|
|
@@ -6240,18 +6332,18 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6240
6332
|
commandKey: "sortCustom"
|
|
6241
6333
|
}),
|
|
6242
6334
|
Y(q, { orientation: "horizontal" }),
|
|
6243
|
-
Re ? X(
|
|
6335
|
+
Re ? X(tn, { children: [Y(K, {
|
|
6244
6336
|
...be,
|
|
6245
6337
|
commandState: n,
|
|
6246
6338
|
commandKey: "tableFilterClear"
|
|
6247
6339
|
}), Y(q, { orientation: "horizontal" })] }) : null,
|
|
6248
|
-
n && u ? X(
|
|
6249
|
-
Y(
|
|
6340
|
+
n && u ? X(tn, { children: [
|
|
6341
|
+
Y(Mt, {
|
|
6250
6342
|
variant: "subtitle2",
|
|
6251
6343
|
sx: { paddingLeft: "16px" },
|
|
6252
6344
|
children: c("filter.filterTitle")
|
|
6253
6345
|
}),
|
|
6254
|
-
p ? Y(
|
|
6346
|
+
p ? Y(yn, {
|
|
6255
6347
|
variant: "body2",
|
|
6256
6348
|
className: "unsupported",
|
|
6257
6349
|
sx: {
|
|
@@ -6260,14 +6352,14 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6260
6352
|
opacity: .8
|
|
6261
6353
|
},
|
|
6262
6354
|
children: c("filter.unsupported")
|
|
6263
|
-
}) : X(
|
|
6355
|
+
}) : X(tn, { children: [
|
|
6264
6356
|
Y(Z, {
|
|
6265
6357
|
sx: {
|
|
6266
6358
|
px: 1,
|
|
6267
6359
|
pt: .25,
|
|
6268
6360
|
pb: 1.25
|
|
6269
6361
|
},
|
|
6270
|
-
children: X(
|
|
6362
|
+
children: X(vn, {
|
|
6271
6363
|
className: "filter-mode",
|
|
6272
6364
|
exclusive: !0,
|
|
6273
6365
|
fullWidth: !0,
|
|
@@ -6276,17 +6368,17 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6276
6368
|
disabled: r,
|
|
6277
6369
|
onChange: (e, t) => Ie(t),
|
|
6278
6370
|
children: [
|
|
6279
|
-
Y(
|
|
6371
|
+
Y(_n, {
|
|
6280
6372
|
value: "values",
|
|
6281
6373
|
sx: ze,
|
|
6282
6374
|
children: c("filter.values")
|
|
6283
6375
|
}),
|
|
6284
|
-
Y(
|
|
6376
|
+
Y(_n, {
|
|
6285
6377
|
value: "family",
|
|
6286
6378
|
sx: ze,
|
|
6287
6379
|
children: w
|
|
6288
6380
|
}),
|
|
6289
|
-
Y(
|
|
6381
|
+
Y(_n, {
|
|
6290
6382
|
value: "custom",
|
|
6291
6383
|
sx: ze,
|
|
6292
6384
|
children: c("filter.custom")
|
|
@@ -6327,11 +6419,11 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6327
6419
|
pt: 1,
|
|
6328
6420
|
pb: .5
|
|
6329
6421
|
},
|
|
6330
|
-
children: [Y(
|
|
6422
|
+
children: [Y(nn, {
|
|
6331
6423
|
size: "small",
|
|
6332
6424
|
onClick: Me,
|
|
6333
6425
|
children: c("filter.cancel")
|
|
6334
|
-
}), Y(
|
|
6426
|
+
}), Y(nn, {
|
|
6335
6427
|
size: "small",
|
|
6336
6428
|
variant: "contained",
|
|
6337
6429
|
disabled: p || r,
|
|
@@ -6343,14 +6435,14 @@ var pi = Kt(Cn("studio:externalLinksTaskPane", () => import("./CBD4RiRKbbZtSXV-.
|
|
|
6343
6435
|
]
|
|
6344
6436
|
});
|
|
6345
6437
|
}));
|
|
6346
|
-
|
|
6347
|
-
var
|
|
6438
|
+
Li.displayName = "ColumnMenu";
|
|
6439
|
+
var Ri = V(B((e, t) => {
|
|
6348
6440
|
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
6441
|
c?.execute(e);
|
|
6350
6442
|
}, [c]), f = H((e) => {
|
|
6351
|
-
let t =
|
|
6443
|
+
let t = Me(l), n = (e, t, n) => t.length === 0 ? null : X(Z, { children: [
|
|
6352
6444
|
n ? Y(q, { orientation: "horizontal" }) : null,
|
|
6353
|
-
Y(
|
|
6445
|
+
Y(Mt, { children: e }),
|
|
6354
6446
|
Y(Z, {
|
|
6355
6447
|
sx: {
|
|
6356
6448
|
display: "flex",
|
|
@@ -6407,13 +6499,13 @@ var Oi = V(B((e, t) => {
|
|
|
6407
6499
|
i,
|
|
6408
6500
|
s
|
|
6409
6501
|
]), p = i ?? (!c || c.disabled());
|
|
6410
|
-
return Y(
|
|
6502
|
+
return Y(Dt, {
|
|
6411
6503
|
ref: t,
|
|
6412
6504
|
quickCommand: r,
|
|
6413
|
-
|
|
6505
|
+
renderPopupPanel: f,
|
|
6414
6506
|
label: c?.getLabel(a),
|
|
6415
6507
|
groupKey: a,
|
|
6416
|
-
|
|
6508
|
+
renderTooltip: ({ children: e, disabled: t }) => Y(It, {
|
|
6417
6509
|
label: c?.getLabel(),
|
|
6418
6510
|
description: c?.getDescription(),
|
|
6419
6511
|
disabled: t,
|
|
@@ -6424,11 +6516,11 @@ var Oi = V(B((e, t) => {
|
|
|
6424
6516
|
...o
|
|
6425
6517
|
});
|
|
6426
6518
|
}));
|
|
6427
|
-
|
|
6428
|
-
var
|
|
6429
|
-
|
|
6519
|
+
Ri.displayName = "PresetSlicerStylesCommandButton";
|
|
6520
|
+
var zi = () => {
|
|
6521
|
+
Re("slicer", {
|
|
6430
6522
|
key: "formatSlicerStyle",
|
|
6431
|
-
render: (e) => Y(
|
|
6523
|
+
render: (e) => Y(Ri, {
|
|
6432
6524
|
...e,
|
|
6433
6525
|
commandKey: "formatSlicerStyle"
|
|
6434
6526
|
})
|
|
@@ -6437,38 +6529,38 @@ var ki = () => {
|
|
|
6437
6529
|
divider: "after"
|
|
6438
6530
|
}), P.register({
|
|
6439
6531
|
key: "insertSlicer",
|
|
6440
|
-
render: (e) => Y(
|
|
6532
|
+
render: (e) => Y(Ri, {
|
|
6441
6533
|
...e,
|
|
6442
6534
|
commandKey: "insertSlicer",
|
|
6443
6535
|
quickCommandKey: "insertSlicer"
|
|
6444
6536
|
})
|
|
6445
6537
|
}, !0);
|
|
6446
|
-
},
|
|
6538
|
+
}, Bi = Qt(On("studio:formatTaskPane", () => import("./DWUrXikL8TyDNRrI.mjs"), { select: (e) => ({ default: e.FormatTaskPane }) }).load), Vi = "formatCells", Hi = () => {
|
|
6447
6539
|
pe.registerTaskPane({
|
|
6448
|
-
key:
|
|
6540
|
+
key: Vi,
|
|
6449
6541
|
getTitle: () => "Format Cells",
|
|
6450
6542
|
getIcon: () => "CellsFormat",
|
|
6451
|
-
component:
|
|
6543
|
+
component: Bi
|
|
6452
6544
|
}, !0);
|
|
6453
|
-
},
|
|
6545
|
+
}, Ui = On("studio:manageProtectionTaskPane", () => import("./ERVyjcGWX4mUl1p_.mjs")), Wi = Qt(() => Ui.load().then((e) => ({ default: e.ManageProtectionTaskPane }))), Gi = Qt(() => Ui.load().then((e) => ({ default: e.ProtectedRangeDetailsTaskPane }))), Ki = () => {
|
|
6454
6546
|
pe.registerTaskPane({
|
|
6455
6547
|
key: "manageProtection",
|
|
6456
6548
|
getTitle: () => "Manage Protection",
|
|
6457
6549
|
getIcon: () => "Lock",
|
|
6458
|
-
component:
|
|
6550
|
+
component: Wi
|
|
6459
6551
|
}, !0), pe.registerTaskPane({
|
|
6460
6552
|
key: "protectedRangeDetails",
|
|
6461
6553
|
getTitle: () => "Manage Protection",
|
|
6462
6554
|
getIcon: () => "Lock",
|
|
6463
|
-
component:
|
|
6555
|
+
component: Gi
|
|
6464
6556
|
}, !0);
|
|
6465
|
-
},
|
|
6557
|
+
}, qi = V(B((e, t) => {
|
|
6466
6558
|
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
6559
|
N(n, { onProtectionChange: (e) => {
|
|
6468
6560
|
f(e?.getProtection().isStructureAllowed() ?? !0);
|
|
6469
6561
|
} });
|
|
6470
|
-
let p =
|
|
6471
|
-
for (let e = 0; e < _.length; e++) g.push(_[e]), _[e] === "deleteSheet" && g.push({ render: () => Y(
|
|
6562
|
+
let p = ct(), m = z(), h = { disabled: o || r === void 0 }, g = [], _ = p.resolveMembers("sheetTabMenu") ?? [];
|
|
6563
|
+
for (let e = 0; e < _.length; e++) g.push(_[e]), _[e] === "deleteSheet" && g.push({ render: () => Y(Nt, {
|
|
6472
6564
|
onMouseDown: (e) => {
|
|
6473
6565
|
e.button === 0 && e.preventDefault();
|
|
6474
6566
|
},
|
|
@@ -6480,8 +6572,8 @@ var ki = () => {
|
|
|
6480
6572
|
disabled: o || !d,
|
|
6481
6573
|
children: m(i === "sheet" ? "sheetTab.rename" : "sheetTab.renameSheet")
|
|
6482
6574
|
}) });
|
|
6483
|
-
let v =
|
|
6484
|
-
variant:
|
|
6575
|
+
let v = $t(g, {
|
|
6576
|
+
variant: Ye.Menuitem,
|
|
6485
6577
|
dividerOrientation: "horizontal",
|
|
6486
6578
|
groupKey: i,
|
|
6487
6579
|
commandState: r,
|
|
@@ -6496,8 +6588,8 @@ var ki = () => {
|
|
|
6496
6588
|
children: v
|
|
6497
6589
|
});
|
|
6498
6590
|
}));
|
|
6499
|
-
|
|
6500
|
-
var
|
|
6591
|
+
qi.displayName = "SheetTabMenu";
|
|
6592
|
+
var Ji = V(B((e, t) => {
|
|
6501
6593
|
let { workbook: n, floatReference: r, closeFloatAll: i, className: o, ...s } = e, [c, l] = G(n?.getSheets() ?? []), [u, d] = G(n?.getProtection());
|
|
6502
6594
|
N(n, {
|
|
6503
6595
|
onSheetsChange: (e) => {
|
|
@@ -6553,12 +6645,12 @@ var Ri = V(B((e, t) => {
|
|
|
6553
6645
|
}
|
|
6554
6646
|
},
|
|
6555
6647
|
children: h
|
|
6556
|
-
}), e.push(Y(
|
|
6648
|
+
}), e.push(Y(Nt, {
|
|
6557
6649
|
disabled: !u.isStructureAllowed() && o === re.Visibility.Hidden,
|
|
6558
6650
|
sx: {
|
|
6559
6651
|
color: (e) => {
|
|
6560
6652
|
let t = s ? e.palette.primary.main : e.palette.text.secondary;
|
|
6561
|
-
return p && (t = p), o === re.Visibility.Hidden && (t =
|
|
6653
|
+
return p && (t = p), o === re.Visibility.Hidden && (t = jn(t, e.palette.action.disabledOpacity)), t;
|
|
6562
6654
|
},
|
|
6563
6655
|
borderLeft: (e) => `${s ? e.palette.primary.main : "transparent"} solid 2px`,
|
|
6564
6656
|
paddingLeft: "4px",
|
|
@@ -6567,7 +6659,7 @@ var Ri = V(B((e, t) => {
|
|
|
6567
6659
|
fontWeight: s ? "700" : "400",
|
|
6568
6660
|
"&:hover": { fontWeight: "700" }
|
|
6569
6661
|
},
|
|
6570
|
-
icon: s ? Y(
|
|
6662
|
+
icon: s ? Y(Bt, {}) : void 0,
|
|
6571
6663
|
onMouseDown: (e) => e.preventDefault(),
|
|
6572
6664
|
onMouseUp: () => {
|
|
6573
6665
|
Promise.resolve(r.closeAll()).then(() => {
|
|
@@ -6578,7 +6670,7 @@ var Ri = V(B((e, t) => {
|
|
|
6578
6670
|
}
|
|
6579
6671
|
});
|
|
6580
6672
|
},
|
|
6581
|
-
children: X(
|
|
6673
|
+
children: X(tn, { children: [f, X(Z, {
|
|
6582
6674
|
sx: {
|
|
6583
6675
|
paddingRight: "0px",
|
|
6584
6676
|
paddingLeft: "4px",
|
|
@@ -6639,12 +6731,12 @@ var Ri = V(B((e, t) => {
|
|
|
6639
6731
|
children: f
|
|
6640
6732
|
});
|
|
6641
6733
|
}));
|
|
6642
|
-
|
|
6643
|
-
var
|
|
6734
|
+
Ji.displayName = "SheetsAllMenu";
|
|
6735
|
+
var Yi = V(B((e, t) => {
|
|
6644
6736
|
let { movable: n, disabled: r, floatReference: i, ...a } = e;
|
|
6645
6737
|
N(n, { onAnyChange(e) {} });
|
|
6646
|
-
let o =
|
|
6647
|
-
variant:
|
|
6738
|
+
let o = ct(), s = { disabled: r }, c = $t(o.resolveMembers("movableContextMenu") ?? [], {
|
|
6739
|
+
variant: Ye.Menuitem,
|
|
6648
6740
|
dividerOrientation: "horizontal",
|
|
6649
6741
|
groupKey: "movableContextMenu",
|
|
6650
6742
|
registry: o,
|
|
@@ -6661,11 +6753,11 @@ var zi = V(B((e, t) => {
|
|
|
6661
6753
|
children: c
|
|
6662
6754
|
});
|
|
6663
6755
|
}));
|
|
6664
|
-
|
|
6665
|
-
var
|
|
6666
|
-
let { workbook: n, disabled: r = !1,
|
|
6756
|
+
Yi.displayName = "MovableContextMenu";
|
|
6757
|
+
var Xi = V(B((e, t) => {
|
|
6758
|
+
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
6759
|
f.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
|
|
6668
|
-
}, [t]), m = W(() => ({ placement: "top-start" }), []), h =
|
|
6760
|
+
}, [t]), m = W(() => ({ placement: "top-start" }), []), h = wt(null), [g, _] = G(!1), v = H((e) => {
|
|
6669
6761
|
let { closeFloatAll: t, floatReference: r } = e;
|
|
6670
6762
|
return s({
|
|
6671
6763
|
workbook: n,
|
|
@@ -6677,35 +6769,35 @@ var Bi = V(B((e, t) => {
|
|
|
6677
6769
|
s,
|
|
6678
6770
|
o,
|
|
6679
6771
|
n
|
|
6680
|
-
]), { reference: y, component: b } =
|
|
6772
|
+
]), { reference: y, component: b } = dt({
|
|
6681
6773
|
label: "allSheet",
|
|
6682
6774
|
propsPopper: m,
|
|
6683
6775
|
anchor: h.current,
|
|
6684
6776
|
onOpen: () => _(!0),
|
|
6685
6777
|
onClose: () => _(!1),
|
|
6686
|
-
|
|
6778
|
+
renderPopupPanel: v
|
|
6687
6779
|
}), [x, S] = G(null), C = H((e) => {
|
|
6688
6780
|
let { floatReference: t } = e;
|
|
6689
|
-
return a
|
|
6781
|
+
return a ? a({
|
|
6690
6782
|
workbook: n,
|
|
6691
6783
|
index: x?.index,
|
|
6692
6784
|
tabStripRef: f.current ?? void 0,
|
|
6693
6785
|
disabled: r,
|
|
6694
6786
|
floatReference: t,
|
|
6695
6787
|
...i
|
|
6696
|
-
});
|
|
6788
|
+
}) : null;
|
|
6697
6789
|
}, [
|
|
6698
6790
|
a,
|
|
6699
6791
|
i,
|
|
6700
6792
|
r,
|
|
6701
6793
|
n,
|
|
6702
6794
|
x
|
|
6703
|
-
]), { reference: w, component: T } =
|
|
6795
|
+
]), { reference: w, component: T } = dt({
|
|
6704
6796
|
label: "sheetTab",
|
|
6705
6797
|
propsPopper: m,
|
|
6706
6798
|
anchor: { getBoundingClientRect: () => new DOMRect(x?.left || 0, x?.top || 0, 0, 0) },
|
|
6707
6799
|
onClose: () => S(null),
|
|
6708
|
-
|
|
6800
|
+
renderPopupPanel: C
|
|
6709
6801
|
});
|
|
6710
6802
|
U(() => {
|
|
6711
6803
|
x ? w.open(0) : w.close(0);
|
|
@@ -6716,10 +6808,10 @@ var Bi = V(B((e, t) => {
|
|
|
6716
6808
|
top: e.clientY - 4,
|
|
6717
6809
|
index: t
|
|
6718
6810
|
});
|
|
6719
|
-
}, []), D = H((e) => (l ??
|
|
6811
|
+
}, []), D = H((e) => (l ?? Aa)({
|
|
6720
6812
|
...e,
|
|
6721
6813
|
...c
|
|
6722
|
-
}), [l, c]), ee = Y(
|
|
6814
|
+
}), [l, c]), ee = Y(Vt, {
|
|
6723
6815
|
disableInteractive: !0,
|
|
6724
6816
|
title: g ? "" : d("workbookStrip.listAllSheets"),
|
|
6725
6817
|
children: Y(J, {
|
|
@@ -6753,9 +6845,9 @@ var Bi = V(B((e, t) => {
|
|
|
6753
6845
|
disabled: r,
|
|
6754
6846
|
renderSheetTab: D,
|
|
6755
6847
|
onTabContextMenu: E,
|
|
6756
|
-
renderScrollButtonStart:
|
|
6757
|
-
renderScrollButtonEnd:
|
|
6758
|
-
renderScrollButtonEdge:
|
|
6848
|
+
renderScrollButtonStart: Jt,
|
|
6849
|
+
renderScrollButtonEnd: qt,
|
|
6850
|
+
renderScrollButtonEdge: Kt,
|
|
6759
6851
|
...u,
|
|
6760
6852
|
children: [
|
|
6761
6853
|
ee,
|
|
@@ -6764,16 +6856,16 @@ var Bi = V(B((e, t) => {
|
|
|
6764
6856
|
]
|
|
6765
6857
|
});
|
|
6766
6858
|
}));
|
|
6767
|
-
|
|
6768
|
-
var
|
|
6769
|
-
|
|
6859
|
+
Xi.displayName = "WorkbookStrip";
|
|
6860
|
+
var Zi = V(B((e, t) => {
|
|
6861
|
+
Ue(e.workbook, "onSelectedSheetChange");
|
|
6770
6862
|
let n = e.workbook.getSelectedWorksheet();
|
|
6771
|
-
return n ? Y(
|
|
6863
|
+
return n ? Y(Qi, {
|
|
6772
6864
|
...e,
|
|
6773
6865
|
ref: t,
|
|
6774
6866
|
sheet: n
|
|
6775
6867
|
}) : null;
|
|
6776
|
-
})),
|
|
6868
|
+
})), Qi = V(B((e, t) => {
|
|
6777
6869
|
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
6870
|
N(n, { onSheetsChange() {
|
|
6779
6871
|
let e = n.getSelectedWorksheet();
|
|
@@ -6781,30 +6873,30 @@ var Vi = V(B((e, t) => {
|
|
|
6781
6873
|
} }), N(l.getSelection(), { onChange() {
|
|
6782
6874
|
f(l.getSelectedRanges()), m(l.getSelectedCell());
|
|
6783
6875
|
} });
|
|
6784
|
-
let h =
|
|
6876
|
+
let h = ct(), g = {
|
|
6785
6877
|
disabled: i,
|
|
6786
6878
|
groupKey: "contextMenu"
|
|
6787
6879
|
}, _ = d.isEntireRows(), v = d.isEntireColumns(), y = [];
|
|
6788
6880
|
if (!_ && !v) {
|
|
6789
|
-
y.push("-"), y.push(p?.getHyperlink() ? { render: (e) => Y(
|
|
6881
|
+
y.push("-"), y.push(p?.getHyperlink() ? { render: (e) => Y(Et, {
|
|
6790
6882
|
...e,
|
|
6791
6883
|
groupKey: "hyperlinkOptions",
|
|
6792
6884
|
members: ["updateHyperlink", "deleteHyperlink"],
|
|
6793
6885
|
quickCommand: "openHyperlink"
|
|
6794
6886
|
}) } : "updateHyperlink");
|
|
6795
6887
|
let e = p?.getComments();
|
|
6796
|
-
e ? e.isNote() ? y.push({ render: (e) => Y(
|
|
6888
|
+
e ? e.isNote() ? y.push({ render: (e) => Y(Et, {
|
|
6797
6889
|
...e,
|
|
6798
6890
|
groupKey: "noteOptions",
|
|
6799
6891
|
members: ["showHideNote", "deleteComments"],
|
|
6800
6892
|
quickCommand: "editNote"
|
|
6801
|
-
}) }) : y.push({ render: (e) => Y(
|
|
6893
|
+
}) }) : y.push({ render: (e) => Y(Et, {
|
|
6802
6894
|
...e,
|
|
6803
6895
|
members: ["showCommentsPane", "deleteComments"],
|
|
6804
6896
|
quickCommand: "updateComments"
|
|
6805
6897
|
}) }) : y.push("editNote", "updateComments");
|
|
6806
6898
|
let t = p?.getTable();
|
|
6807
|
-
t && y.push({ render: (e) => Y(
|
|
6899
|
+
t && y.push({ render: (e) => Y(Et, {
|
|
6808
6900
|
...e,
|
|
6809
6901
|
groupKey: "tableOptions",
|
|
6810
6902
|
members: ["convertTableToRange", "deleteTable"],
|
|
@@ -6820,8 +6912,8 @@ var Vi = V(B((e, t) => {
|
|
|
6820
6912
|
...b,
|
|
6821
6913
|
"-",
|
|
6822
6914
|
"formatCells"
|
|
6823
|
-
], S =
|
|
6824
|
-
variant:
|
|
6915
|
+
], S = $t(x, {
|
|
6916
|
+
variant: Ye.Menuitem,
|
|
6825
6917
|
dividerOrientation: "horizontal",
|
|
6826
6918
|
groupKey: "contextMenu",
|
|
6827
6919
|
registry: h,
|
|
@@ -6835,15 +6927,15 @@ var Vi = V(B((e, t) => {
|
|
|
6835
6927
|
children: S
|
|
6836
6928
|
});
|
|
6837
6929
|
}));
|
|
6838
|
-
|
|
6839
|
-
var
|
|
6930
|
+
Qi.displayName = "WorkbookContextMenuBody", Zi.displayName = "WorkbookContextMenu";
|
|
6931
|
+
var $i = "-", ea = (e) => ({
|
|
6840
6932
|
key: e,
|
|
6841
6933
|
label: de[e],
|
|
6842
6934
|
enabled: (t) => t.has(e),
|
|
6843
6935
|
run: (t) => {
|
|
6844
6936
|
t.fill({ presetId: e });
|
|
6845
6937
|
}
|
|
6846
|
-
}),
|
|
6938
|
+
}), ta = Object.freeze([
|
|
6847
6939
|
{
|
|
6848
6940
|
key: "copy",
|
|
6849
6941
|
label: de[w.Presets.Copy.id],
|
|
@@ -6852,10 +6944,10 @@ var Ui = "-", Wi = (e) => ({
|
|
|
6852
6944
|
e.fill({ presetId: w.Presets.Copy.id });
|
|
6853
6945
|
}
|
|
6854
6946
|
},
|
|
6855
|
-
|
|
6947
|
+
ea(w.Presets.Series.id),
|
|
6856
6948
|
{
|
|
6857
6949
|
key: "formatsOnly",
|
|
6858
|
-
label:
|
|
6950
|
+
label: kn("fillMenu.formatsOnly"),
|
|
6859
6951
|
enabled: () => !0,
|
|
6860
6952
|
run: (e) => {
|
|
6861
6953
|
e.fill({ type: ee.Content.Formats });
|
|
@@ -6863,7 +6955,7 @@ var Ui = "-", Wi = (e) => ({
|
|
|
6863
6955
|
},
|
|
6864
6956
|
{
|
|
6865
6957
|
key: "valuesOnly",
|
|
6866
|
-
label:
|
|
6958
|
+
label: kn("fillMenu.valuesOnly"),
|
|
6867
6959
|
enabled: () => !0,
|
|
6868
6960
|
run: (e) => {
|
|
6869
6961
|
e.fill({
|
|
@@ -6872,34 +6964,34 @@ var Ui = "-", Wi = (e) => ({
|
|
|
6872
6964
|
});
|
|
6873
6965
|
}
|
|
6874
6966
|
},
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6967
|
+
$i,
|
|
6968
|
+
ea(w.Presets.Linear.id),
|
|
6969
|
+
ea(w.Presets.Growth.id),
|
|
6970
|
+
$i,
|
|
6971
|
+
ea(w.Presets.DateDays.id),
|
|
6972
|
+
ea(w.Presets.DateWeekdays.id),
|
|
6973
|
+
ea(w.Presets.DateMonths.id),
|
|
6974
|
+
ea(w.Presets.DateMonthEnd.id),
|
|
6975
|
+
ea(w.Presets.DateYears.id),
|
|
6976
|
+
$i,
|
|
6977
|
+
ea(w.Presets.LinearTrend.id),
|
|
6978
|
+
ea(w.Presets.GrowthTrend.id),
|
|
6979
|
+
$i,
|
|
6888
6980
|
{
|
|
6889
6981
|
key: "seriesDialog",
|
|
6890
|
-
label:
|
|
6982
|
+
label: kn("fillMenu.series"),
|
|
6891
6983
|
enabled: (e) => e.size > 0,
|
|
6892
6984
|
run: (e) => {
|
|
6893
6985
|
e.series();
|
|
6894
6986
|
}
|
|
6895
6987
|
}
|
|
6896
|
-
]),
|
|
6988
|
+
]), na = V(B((e, t) => {
|
|
6897
6989
|
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
6990
|
e.run(r), o.close();
|
|
6899
|
-
}, f =
|
|
6900
|
-
if (e ===
|
|
6991
|
+
}, f = ta.map((e, t) => {
|
|
6992
|
+
if (e === $i) return Y(q, { orientation: "horizontal" }, `divider:${t}`);
|
|
6901
6993
|
let n = i || !e.enabled(u);
|
|
6902
|
-
return Y(
|
|
6994
|
+
return Y(Nt, {
|
|
6903
6995
|
className: "sxl-fillMenu-entry",
|
|
6904
6996
|
"data-entry": e.key,
|
|
6905
6997
|
disabled: n,
|
|
@@ -6925,7 +7017,7 @@ var Ui = "-", Wi = (e) => ({
|
|
|
6925
7017
|
flexDirection: "column",
|
|
6926
7018
|
overflow: "hidden"
|
|
6927
7019
|
},
|
|
6928
|
-
children: Y(
|
|
7020
|
+
children: Y(yn, {
|
|
6929
7021
|
component: "div",
|
|
6930
7022
|
sx: {
|
|
6931
7023
|
whiteSpace: "nowrap",
|
|
@@ -6948,8 +7040,8 @@ var Ui = "-", Wi = (e) => ({
|
|
|
6948
7040
|
children: f
|
|
6949
7041
|
});
|
|
6950
7042
|
}));
|
|
6951
|
-
|
|
6952
|
-
var
|
|
7043
|
+
na.displayName = "FillMenu";
|
|
7044
|
+
var ra = (e, t) => ({
|
|
6953
7045
|
width: t,
|
|
6954
7046
|
height: t,
|
|
6955
7047
|
boxSizing: "border-box",
|
|
@@ -6962,23 +7054,23 @@ var qi = (e, t) => ({
|
|
|
6962
7054
|
color: e.palette.text.primary,
|
|
6963
7055
|
borderColor: e.palette.text.primary
|
|
6964
7056
|
},
|
|
6965
|
-
"&:active": { backgroundColor:
|
|
7057
|
+
"&:active": { backgroundColor: bn(e.palette.text.primary, e.palette.action.selectedOpacity) },
|
|
6966
7058
|
"&.Mui-disabled": {
|
|
6967
7059
|
color: e.palette.text.disabled,
|
|
6968
7060
|
borderColor: e.palette.action.disabledBackground
|
|
6969
7061
|
}
|
|
6970
|
-
}),
|
|
6971
|
-
let { collapsed: t, size: n, title: r, onToggle: i, disabled: a } = e, o =
|
|
6972
|
-
return Y(
|
|
7062
|
+
}), ia = (e) => {
|
|
7063
|
+
let { collapsed: t, size: n, title: r, onToggle: i, disabled: a } = e, o = Cn();
|
|
7064
|
+
return Y(It, {
|
|
6973
7065
|
label: r,
|
|
6974
|
-
children: Y(
|
|
7066
|
+
children: Y(rn, {
|
|
6975
7067
|
className: "outline-button",
|
|
6976
7068
|
"aria-label": r,
|
|
6977
7069
|
"aria-expanded": !t,
|
|
6978
7070
|
focusRipple: !1,
|
|
6979
7071
|
tabIndex: -1,
|
|
6980
7072
|
disabled: a,
|
|
6981
|
-
sx:
|
|
7073
|
+
sx: ra(o, n),
|
|
6982
7074
|
onClick: i,
|
|
6983
7075
|
children: Y(he, {
|
|
6984
7076
|
collapsed: t,
|
|
@@ -6986,11 +7078,11 @@ var qi = (e, t) => ({
|
|
|
6986
7078
|
})
|
|
6987
7079
|
})
|
|
6988
7080
|
});
|
|
6989
|
-
},
|
|
6990
|
-
let { level: t, shown: n, size: r, title: i, onShowLevel: a, disabled: o } = e, s =
|
|
6991
|
-
return Y(
|
|
7081
|
+
}, aa = (e) => {
|
|
7082
|
+
let { level: t, shown: n, size: r, title: i, onShowLevel: a, disabled: o } = e, s = Cn();
|
|
7083
|
+
return Y(It, {
|
|
6992
7084
|
label: i,
|
|
6993
|
-
children: Y(
|
|
7085
|
+
children: Y(rn, {
|
|
6994
7086
|
className: "outline-level-button",
|
|
6995
7087
|
"aria-label": i,
|
|
6996
7088
|
focusRipple: !1,
|
|
@@ -6998,15 +7090,41 @@ var qi = (e, t) => ({
|
|
|
6998
7090
|
disabled: o,
|
|
6999
7091
|
"data-shown": n || void 0,
|
|
7000
7092
|
sx: {
|
|
7001
|
-
...
|
|
7002
|
-
...
|
|
7003
|
-
...
|
|
7093
|
+
...ra(s, r),
|
|
7094
|
+
...Ne,
|
|
7095
|
+
...Pe(r)
|
|
7004
7096
|
},
|
|
7005
7097
|
onClick: a,
|
|
7006
7098
|
children: t
|
|
7007
7099
|
})
|
|
7008
7100
|
});
|
|
7009
|
-
},
|
|
7101
|
+
}, oa = xn("div", {
|
|
7102
|
+
name: "MuiTooltip",
|
|
7103
|
+
slot: "Tooltip",
|
|
7104
|
+
overridesResolver: (e, t) => t.tooltip
|
|
7105
|
+
})(({ theme: e }) => ({
|
|
7106
|
+
backgroundColor: e.vars ? e.vars.palette.Tooltip.bg : e.alpha(e.palette.grey[700], .92),
|
|
7107
|
+
borderRadius: (e.vars || e).shape.borderRadius,
|
|
7108
|
+
color: (e.vars || e).palette.common.white,
|
|
7109
|
+
fontFamily: e.typography.fontFamily,
|
|
7110
|
+
padding: "4px 8px",
|
|
7111
|
+
fontSize: e.typography.pxToRem(11),
|
|
7112
|
+
maxWidth: 300,
|
|
7113
|
+
margin: 2,
|
|
7114
|
+
wordWrap: "break-word",
|
|
7115
|
+
fontWeight: e.typography.fontWeightMedium
|
|
7116
|
+
})), sa = (e) => {
|
|
7117
|
+
let { children: t, interactive: n, tipProps: r, className: i, style: o } = e;
|
|
7118
|
+
return Y(oa, {
|
|
7119
|
+
...r,
|
|
7120
|
+
className: a(Sn.tooltip, i),
|
|
7121
|
+
style: {
|
|
7122
|
+
...o,
|
|
7123
|
+
pointerEvents: n ? "auto" : "none"
|
|
7124
|
+
},
|
|
7125
|
+
children: t
|
|
7126
|
+
});
|
|
7127
|
+
}, ca = (e) => {
|
|
7010
7128
|
let { sheet: t, coords: n, comment: r, focusRequest: i, onClose: a } = e;
|
|
7011
7129
|
return Y(g, {
|
|
7012
7130
|
sheet: t,
|
|
@@ -7016,10 +7134,10 @@ var qi = (e, t) => ({
|
|
|
7016
7134
|
onClose: a,
|
|
7017
7135
|
elevated: !0
|
|
7018
7136
|
});
|
|
7019
|
-
},
|
|
7020
|
-
let { hyperlink: t, open: n, copy: r, edit: i, remove: a,
|
|
7137
|
+
}, la = (e) => {
|
|
7138
|
+
let { hyperlink: t, open: n, copy: r, edit: i, remove: a, disabled: o, preview: s, tipProps: c } = e, l = z(), u = t.getScreenTip(), d = t.getAddress(), f = () => {
|
|
7021
7139
|
n();
|
|
7022
|
-
},
|
|
7140
|
+
}, p = s?.title, m = {
|
|
7023
7141
|
font: "inherit",
|
|
7024
7142
|
display: "block",
|
|
7025
7143
|
width: "100%",
|
|
@@ -7028,14 +7146,13 @@ var qi = (e, t) => ({
|
|
|
7028
7146
|
textOverflow: "ellipsis",
|
|
7029
7147
|
whiteSpace: "nowrap"
|
|
7030
7148
|
};
|
|
7031
|
-
return X(
|
|
7032
|
-
...
|
|
7149
|
+
return X(dn, {
|
|
7150
|
+
...c,
|
|
7033
7151
|
elevation: 6,
|
|
7034
7152
|
role: "toolbar",
|
|
7035
7153
|
sx: {
|
|
7036
7154
|
display: "flex",
|
|
7037
7155
|
flexDirection: "column",
|
|
7038
|
-
gap: 1,
|
|
7039
7156
|
width: 320,
|
|
7040
7157
|
boxSizing: "border-box",
|
|
7041
7158
|
p: 1,
|
|
@@ -7043,7 +7160,7 @@ var qi = (e, t) => ({
|
|
|
7043
7160
|
fontSize: "var(--sxl-font-size, 13px)",
|
|
7044
7161
|
border: "1px solid var(--sxl-color-base-border, rgba(0,0,0,0.26))",
|
|
7045
7162
|
boxShadow: "0 4px 16px var(--sxl-color-shadow, rgba(0,0,0,0.2))",
|
|
7046
|
-
...
|
|
7163
|
+
...c.style
|
|
7047
7164
|
},
|
|
7048
7165
|
children: [X(Z, {
|
|
7049
7166
|
sx: {
|
|
@@ -7055,34 +7172,34 @@ var qi = (e, t) => ({
|
|
|
7055
7172
|
Y(J, {
|
|
7056
7173
|
dense: !0,
|
|
7057
7174
|
icon: Y(F, { iconKey: "HyperlinkGoto" }),
|
|
7058
|
-
propsTooltip: { title:
|
|
7059
|
-
onClick:
|
|
7175
|
+
propsTooltip: { title: l("hyperlink.open") },
|
|
7176
|
+
onClick: f
|
|
7060
7177
|
}),
|
|
7061
7178
|
X(Z, {
|
|
7062
7179
|
sx: {
|
|
7063
7180
|
flex: 1,
|
|
7064
7181
|
minWidth: 0
|
|
7065
7182
|
},
|
|
7066
|
-
children: [
|
|
7183
|
+
children: [p ? Y(cn, {
|
|
7067
7184
|
component: "button",
|
|
7068
7185
|
type: "button",
|
|
7069
7186
|
underline: "hover",
|
|
7070
|
-
title:
|
|
7187
|
+
title: p,
|
|
7071
7188
|
sx: {
|
|
7072
|
-
...
|
|
7189
|
+
...m,
|
|
7073
7190
|
fontWeight: 600
|
|
7074
7191
|
},
|
|
7075
|
-
onClick:
|
|
7076
|
-
children:
|
|
7077
|
-
}) : null, Y(
|
|
7192
|
+
onClick: f,
|
|
7193
|
+
children: p
|
|
7194
|
+
}) : null, Y(cn, {
|
|
7078
7195
|
component: "button",
|
|
7079
7196
|
type: "button",
|
|
7080
7197
|
underline: "none",
|
|
7081
|
-
title:
|
|
7082
|
-
color:
|
|
7083
|
-
sx:
|
|
7084
|
-
onClick:
|
|
7085
|
-
children:
|
|
7198
|
+
title: u ?? d,
|
|
7199
|
+
color: p ? "text.secondary" : "primary",
|
|
7200
|
+
sx: m,
|
|
7201
|
+
onClick: f,
|
|
7202
|
+
children: u ?? d
|
|
7086
7203
|
})]
|
|
7087
7204
|
}),
|
|
7088
7205
|
X(Z, {
|
|
@@ -7094,7 +7211,7 @@ var qi = (e, t) => ({
|
|
|
7094
7211
|
Y(J, {
|
|
7095
7212
|
dense: !0,
|
|
7096
7213
|
icon: Y(F, { iconKey: "ContentCopy" }),
|
|
7097
|
-
propsTooltip: { title:
|
|
7214
|
+
propsTooltip: { title: l("hyperlink.copy") },
|
|
7098
7215
|
onClick: () => {
|
|
7099
7216
|
r();
|
|
7100
7217
|
}
|
|
@@ -7102,20 +7219,22 @@ var qi = (e, t) => ({
|
|
|
7102
7219
|
Y(J, {
|
|
7103
7220
|
dense: !0,
|
|
7104
7221
|
icon: Y(F, { iconKey: "HyperlinkEdit" }),
|
|
7105
|
-
propsTooltip: { title:
|
|
7222
|
+
propsTooltip: { title: l("hyperlink.edit") },
|
|
7223
|
+
disabled: o,
|
|
7106
7224
|
onClick: i
|
|
7107
7225
|
}),
|
|
7108
7226
|
Y(J, {
|
|
7109
7227
|
dense: !0,
|
|
7110
7228
|
icon: Y(F, { iconKey: "HyperlinkDelete" }),
|
|
7111
|
-
propsTooltip: { title:
|
|
7229
|
+
propsTooltip: { title: l("hyperlink.remove") },
|
|
7230
|
+
disabled: o,
|
|
7112
7231
|
onClick: a
|
|
7113
7232
|
})
|
|
7114
7233
|
]
|
|
7115
7234
|
})
|
|
7116
7235
|
]
|
|
7117
|
-
}),
|
|
7118
|
-
onClick:
|
|
7236
|
+
}), s?.image ? Y(rn, {
|
|
7237
|
+
onClick: f,
|
|
7119
7238
|
tabIndex: -1,
|
|
7120
7239
|
sx: {
|
|
7121
7240
|
display: "block",
|
|
@@ -7123,17 +7242,18 @@ var qi = (e, t) => ({
|
|
|
7123
7242
|
overflow: "hidden"
|
|
7124
7243
|
},
|
|
7125
7244
|
children: Y(me, {
|
|
7126
|
-
src:
|
|
7127
|
-
expectedWidth:
|
|
7245
|
+
src: s.image,
|
|
7246
|
+
expectedWidth: s.imageWidth,
|
|
7247
|
+
style: { marginTop: 8 }
|
|
7128
7248
|
})
|
|
7129
7249
|
}) : null]
|
|
7130
7250
|
});
|
|
7131
|
-
},
|
|
7251
|
+
}, ua = (e) => Y(la, { ...e }), da = {
|
|
7132
7252
|
color: "transparent",
|
|
7133
7253
|
hoverColor: "transparent"
|
|
7134
|
-
},
|
|
7254
|
+
}, fa = { sx: { mx: 0 } }, pa = (e) => {
|
|
7135
7255
|
let { table: t, floatProps: n, setHeld: r } = e;
|
|
7136
|
-
return Y(
|
|
7256
|
+
return Y(dn, {
|
|
7137
7257
|
...n,
|
|
7138
7258
|
elevation: 6,
|
|
7139
7259
|
role: "toolbar",
|
|
@@ -7151,25 +7271,28 @@ var qi = (e, t) => ({
|
|
|
7151
7271
|
children: Y(p, {
|
|
7152
7272
|
commandKey: "formatTableStyle",
|
|
7153
7273
|
selectedTable: t,
|
|
7154
|
-
outlined:
|
|
7155
|
-
propsButton:
|
|
7274
|
+
outlined: da,
|
|
7275
|
+
propsButton: fa,
|
|
7156
7276
|
onPopupOpen: () => r(!0),
|
|
7157
7277
|
onPopupClose: () => r(!1)
|
|
7158
7278
|
})
|
|
7159
7279
|
});
|
|
7160
|
-
},
|
|
7280
|
+
}, 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
7281
|
transitionDelay: "160ms",
|
|
7162
7282
|
transparentBackground: !0,
|
|
7163
7283
|
...e
|
|
7164
|
-
}),
|
|
7284
|
+
}), Ca = (e) => Y(Ht, {
|
|
7165
7285
|
hideStackTrace: !0,
|
|
7166
7286
|
...e
|
|
7167
|
-
}),
|
|
7287
|
+
}), wa = (e) => {
|
|
7168
7288
|
let { key: t, ...n } = e;
|
|
7169
|
-
return Y(
|
|
7170
|
-
},
|
|
7171
|
-
let {
|
|
7172
|
-
return Y(
|
|
7289
|
+
return Y(De, { ...n }, t);
|
|
7290
|
+
}, Ta = (e) => {
|
|
7291
|
+
let { key: t, ...n } = e;
|
|
7292
|
+
return Y(li, { ...n }, t);
|
|
7293
|
+
}, Ea = (e) => Y(Xi, { ...e }), Da = (e) => Y(qi, { ...e }), Oa = (e) => Y(Ji, { ...e }), ka = (e) => {
|
|
7294
|
+
let { disabled: t, editing: n, children: r, style: i, ...a } = e, o = Cn();
|
|
7295
|
+
return Y(rn, {
|
|
7173
7296
|
component: "div",
|
|
7174
7297
|
disabled: t,
|
|
7175
7298
|
disableRipple: n,
|
|
@@ -7182,38 +7305,44 @@ var qi = (e, t) => ({
|
|
|
7182
7305
|
...a,
|
|
7183
7306
|
children: r
|
|
7184
7307
|
});
|
|
7185
|
-
},
|
|
7186
|
-
slotSurface:
|
|
7308
|
+
}, Aa = (e) => Y(ye, {
|
|
7309
|
+
slotSurface: ka,
|
|
7187
7310
|
...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
|
-
|
|
7311
|
+
}), ja = V(B((e, t) => {
|
|
7312
|
+
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(() => {
|
|
7313
|
+
let { renderCommentCard: e = ca, renderHyperlinkCard: t = ua, renderTableToolbar: n = ma, propsOutline: r, layers: i, ...a } = c ?? {};
|
|
7314
|
+
return {
|
|
7315
|
+
...a,
|
|
7316
|
+
renderCommentCard: e,
|
|
7317
|
+
renderHyperlinkCard: t,
|
|
7318
|
+
renderTableToolbar: n,
|
|
7319
|
+
propsOutline: {
|
|
7320
|
+
...r,
|
|
7321
|
+
renderButton: r?.renderButton === void 0 ? ha : r.renderButton,
|
|
7322
|
+
renderLevelButton: r?.renderLevelButton === void 0 ? ga : r.renderLevelButton
|
|
7323
|
+
},
|
|
7324
|
+
layers: [Y(ge, {}, "range-annotations"), i]
|
|
7325
|
+
};
|
|
7326
|
+
}, [c]), { renderTooltip: d } = Fn();
|
|
7327
|
+
return Y(jt, { children: Y(Nn, {
|
|
7328
|
+
renderTooltip: d ?? sa,
|
|
7329
|
+
children: Y(we, {
|
|
7330
|
+
ref: t,
|
|
7331
|
+
...l,
|
|
7332
|
+
renderTabs: n,
|
|
7333
|
+
renderContextMenu: r,
|
|
7334
|
+
renderColumnMenu: i,
|
|
7335
|
+
renderMovableMenu: a,
|
|
7336
|
+
renderFillMenu: o,
|
|
7337
|
+
renderWorkbookLoading: s,
|
|
7338
|
+
propsSheet: u
|
|
7339
|
+
})
|
|
7211
7340
|
}) });
|
|
7212
7341
|
}));
|
|
7213
|
-
|
|
7214
|
-
var
|
|
7342
|
+
ja.displayName = "WorkbookElement";
|
|
7343
|
+
var Ma = (e = !1, t = !1) => t ? null : {
|
|
7215
7344
|
"& input:not(:focus):not(:hover)": { color: (e) => e.palette.text.secondary },
|
|
7216
|
-
backgroundColor: (e) =>
|
|
7345
|
+
backgroundColor: (e) => bn(e.palette.background.paper, .6),
|
|
7217
7346
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
7218
7347
|
border: (t) => `solid ${e ? t.palette.divider : "transparent"} 1px`,
|
|
7219
7348
|
"&.Mui-disabled": { border: (t) => `solid ${e ? t.palette.divider : "transparent"} 1px` },
|
|
@@ -7226,8 +7355,8 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7226
7355
|
outline: (e) => `solid ${e.palette.primary.main} 1px !important`,
|
|
7227
7356
|
border: (e) => `1px solid ${e.palette?.primary?.main} !important`
|
|
7228
7357
|
}
|
|
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 }] =
|
|
7358
|
+
}, Na = V(B((e, t) => {
|
|
7359
|
+
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
7360
|
requestTitle: (e, t) => {
|
|
7232
7361
|
k.current = {
|
|
7233
7362
|
onAccept: e,
|
|
@@ -7238,14 +7367,14 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7238
7367
|
O.current?.focus(e);
|
|
7239
7368
|
}
|
|
7240
7369
|
}), []);
|
|
7241
|
-
|
|
7370
|
+
St(() => {
|
|
7242
7371
|
te(i !== b), C(i), x(i);
|
|
7243
7372
|
}, [i]), U(() => {
|
|
7244
|
-
ee && T !== 0 &&
|
|
7373
|
+
ee && T !== 0 && Dn.debounce(() => {
|
|
7245
7374
|
te(!1);
|
|
7246
7375
|
}, 300)();
|
|
7247
7376
|
}, [ee, T]), U(() => {
|
|
7248
|
-
y(!!b && !
|
|
7377
|
+
y(!!b && !In.isValidFileName(b));
|
|
7249
7378
|
}, [b]);
|
|
7250
7379
|
let ne = m([
|
|
7251
7380
|
A,
|
|
@@ -7264,7 +7393,7 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7264
7393
|
},
|
|
7265
7394
|
ref: ne,
|
|
7266
7395
|
...f,
|
|
7267
|
-
children: [u ? Y(
|
|
7396
|
+
children: [u ? Y(It, {
|
|
7268
7397
|
label: p("workbook.encrypted"),
|
|
7269
7398
|
children: Y(Z, {
|
|
7270
7399
|
component: "span",
|
|
@@ -7281,7 +7410,7 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7281
7410
|
},
|
|
7282
7411
|
children: Y(F, { iconKey: "Lock" })
|
|
7283
7412
|
})
|
|
7284
|
-
}) : null, Y(
|
|
7413
|
+
}) : null, Y(It, {
|
|
7285
7414
|
label: k.current?.requestReason ?? p("documentTitle.label"),
|
|
7286
7415
|
children: X(Z, {
|
|
7287
7416
|
className: a({ "Mui-focusVisible": g }),
|
|
@@ -7298,10 +7427,10 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7298
7427
|
marginRight: "2px",
|
|
7299
7428
|
paddingTop: "2px",
|
|
7300
7429
|
paddingBottom: "1px",
|
|
7301
|
-
...
|
|
7430
|
+
...Ma(!0, c),
|
|
7302
7431
|
...n
|
|
7303
7432
|
},
|
|
7304
|
-
children: [c ? X(
|
|
7433
|
+
children: [c ? X(yn, {
|
|
7305
7434
|
className: "title",
|
|
7306
7435
|
variant: "subtitle1",
|
|
7307
7436
|
component: "div",
|
|
@@ -7323,7 +7452,7 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7323
7452
|
},
|
|
7324
7453
|
children: "●"
|
|
7325
7454
|
}) : null]
|
|
7326
|
-
}) : Y(
|
|
7455
|
+
}) : Y(sn, {
|
|
7327
7456
|
sx: {
|
|
7328
7457
|
width: `${Math.min(T + 3, Math.max(D, A.current?.getBoundingClientRect()?.width))}px`,
|
|
7329
7458
|
overflow: "hidden",
|
|
@@ -7359,11 +7488,11 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7359
7488
|
_(!1), v ? x(S) : (b !== S && (s?.(b), b && k.current?.onAccept?.(b, "blur")), k.current = null);
|
|
7360
7489
|
},
|
|
7361
7490
|
onChange: (e) => {
|
|
7362
|
-
if (e.target.value.length >
|
|
7491
|
+
if (e.target.value.length > In.MAX_WORKBOOK_NAME_SIZE) return e.stopPropagation(), void e.preventDefault();
|
|
7363
7492
|
x(e.target.value);
|
|
7364
7493
|
},
|
|
7365
7494
|
onKeyDown: (e) => {
|
|
7366
|
-
(
|
|
7495
|
+
(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
7496
|
e.target?.select();
|
|
7368
7497
|
}, 0)), k.current = null, e.stopPropagation(), e.preventDefault());
|
|
7369
7498
|
},
|
|
@@ -7386,11 +7515,11 @@ var ya = (e = !1, t = !1) => t ? null : {
|
|
|
7386
7515
|
})]
|
|
7387
7516
|
});
|
|
7388
7517
|
}));
|
|
7389
|
-
|
|
7390
|
-
var
|
|
7391
|
-
|
|
7392
|
-
},
|
|
7393
|
-
let { scope: t } = e, { showModal: n } =
|
|
7518
|
+
Na.displayName = "DocumentTitle";
|
|
7519
|
+
var Pa = Zt(On("studio:templateDialog", () => import("./BOKRcLS0QikMyoWf.mjs")).load), Fa = On("studio:welcomeDialog", () => import("./BwbheU7gonBpE9Bs.mjs")), Ia = Zt(Fa.load), La = (e) => {
|
|
7520
|
+
Fa.load().then((t) => t.prefetchCatalog(e), () => {});
|
|
7521
|
+
}, Ra = V((e) => {
|
|
7522
|
+
let { scope: t } = e, { showModal: n } = en(), r = gt(), i = wt(void 0), [a, o] = vt("studio.welcome.showAtStartup", !0), s = (e, n) => {
|
|
7394
7523
|
t.resolve(e)?.execute(n);
|
|
7395
7524
|
}, c = (e) => {
|
|
7396
7525
|
s("newWorkbook", {
|
|
@@ -7399,7 +7528,7 @@ var xa = Gt(Cn("studio:templateDialog", () => import("./C9pIZVACtl9unFOp.mjs")).
|
|
|
7399
7528
|
});
|
|
7400
7529
|
}, l = L((e) => {
|
|
7401
7530
|
e?.templatePath && (i.current = e.templatePath);
|
|
7402
|
-
let t = n(
|
|
7531
|
+
let t = n(Pa, {
|
|
7403
7532
|
templatePath: i.current,
|
|
7404
7533
|
showAtStartup: a,
|
|
7405
7534
|
onShowAtStartupChange: o,
|
|
@@ -7420,7 +7549,7 @@ var xa = Gt(Cn("studio:templateDialog", () => import("./C9pIZVACtl9unFOp.mjs")).
|
|
|
7420
7549
|
if (e?.templatePath && (i.current = e.templatePath), e?.atStartup && !a) return;
|
|
7421
7550
|
let t = (e) => () => {
|
|
7422
7551
|
l.hide(), s(e);
|
|
7423
|
-
}, l = n(
|
|
7552
|
+
}, l = n(Ia, {
|
|
7424
7553
|
templatePath: i.current,
|
|
7425
7554
|
showAtStartup: a,
|
|
7426
7555
|
onShowAtStartupChange: o,
|
|
@@ -7462,12 +7591,12 @@ var xa = Gt(Cn("studio:templateDialog", () => import("./C9pIZVACtl9unFOp.mjs")).
|
|
|
7462
7591
|
u
|
|
7463
7592
|
]), null;
|
|
7464
7593
|
});
|
|
7465
|
-
|
|
7466
|
-
var
|
|
7467
|
-
|
|
7594
|
+
Ra.displayName = "TemplateCommands";
|
|
7595
|
+
var za = !1, Ba = () => {
|
|
7596
|
+
za || (za = !0, qe.DefaultCommandRegistry.registerDynamic("app", Ra), P.register({
|
|
7468
7597
|
key: "templates.newFromTemplate",
|
|
7469
7598
|
defaultKey: "newWorkbookFromTemplate",
|
|
7470
7599
|
contributions: { newWorkbookOptions: { order: 1 } }
|
|
7471
7600
|
}, !0));
|
|
7472
7601
|
};
|
|
7473
|
-
export {
|
|
7602
|
+
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 };
|