@sheetxl/studio-mui 0.8.0-beta.19 → 0.8.0-beta.20
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/{D3mfQHjRbA8iPLtv.mjs → 3xocDjPLOJXjOs3x.mjs} +2 -2
- package/browser/esm/{BC0b8N0c-Yenu46_.mjs → 4RkuBXBVmw7VYQ2a.mjs} +5 -5
- package/browser/esm/{D5fCoDA2NoOFViRy.mjs → 6R-JS1ZrhnwQAyOl.mjs} +4 -4
- package/browser/esm/{DJTesgYNvoQv2Obl.mjs → B4L3swgLGqcOHo7U.mjs} +4 -4
- package/browser/esm/{Dvjjsols1lZ1qITL.mjs → BAFzUBAc7BpGUWl_.mjs} +1 -1
- package/browser/esm/{CdFz-uXCDYgv_iOM.mjs → BENsK9C3A3CnZyXZ.mjs} +1 -1
- package/browser/esm/{CLVbEJee8eD3qMJR.mjs → BRnwCembfaZpk0sc.mjs} +8 -8
- package/browser/esm/{DMWgj1E1kYrTdAnf.mjs → BSVc4NYkBnFa7T_w.mjs} +3 -3
- package/browser/esm/{BgxFFejwP2YXqYGy.mjs → BTWjCKBwd6qXldxi.mjs} +2 -2
- package/browser/esm/{z7Sn4ncaTwiv23Fv.mjs → BWSZkGPSgg9pPKni.mjs} +4 -4
- package/browser/esm/{p4Q_TpZ_s60_L7Ux.mjs → BXVE3yfw5gdtyl-s.mjs} +1 -1
- package/browser/esm/{CtJpnIXloxW2qFGC.mjs → Bfb84N1ywaVZm9kH.mjs} +4 -4
- package/browser/esm/{DhXTTl8_kMjearig.mjs → BrZVnbTt-3DeAMxo.mjs} +1 -1
- package/browser/esm/{BRfhOI9RpekZBcrO.mjs → BrdpRbJ-xKeF87FO.mjs} +6 -6
- package/browser/esm/{C8sDMsI-mfPVArSI.mjs → BtrFK5bYpBJfHRDr.mjs} +2 -2
- package/browser/esm/{Bik5wGC75z2BvotX.mjs → BuSv-OgJpZJGjcyA.mjs} +3 -3
- package/browser/esm/{B83kgckQsC0aY0NE.mjs → C1XMVwyIJNbYmtkV.mjs} +5 -5
- package/browser/esm/{s1DZ7iQHOb3R9G7m.mjs → C2MuUgU0H05eZ5qQ.mjs} +2 -2
- package/browser/esm/{DIC6M937GziE0_9l.mjs → C5ZWkOAoFpcZwFw2.mjs} +2 -2
- package/browser/esm/{D1EKHirhjR-MmeXo.mjs → C72jL8eQk_hPFDLn.mjs} +1 -1
- package/browser/esm/{BQjxD6zW8juryZHL.mjs → CDJ0jdx7Km3a5v6w.mjs} +2 -2
- package/browser/esm/{B0NC2aGu9jgdelTz.mjs → CGDNdoMTlI8f1kRw.mjs} +2 -2
- package/browser/esm/{Bscb3ZfordY8Cyzo.mjs → CGomW4hI6SQ96yIm.mjs} +2 -2
- package/browser/esm/{M-Rp0gM6kZb12Kim.mjs → CHT8_XB3_hp307XA.mjs} +1 -1
- package/browser/esm/{CEjud4n-8EggO2Im.mjs → COkfKd7FvEtpgAAI.mjs} +1 -1
- package/browser/esm/{DM9uGmTSDdyoRyRM.mjs → CSgwY4Yb3l0WoprP.mjs} +3 -3
- package/browser/esm/{BMfZqSxbgNWsKjqY.mjs → CgvHVv7iIzRRgmlF.mjs} +2 -2
- package/browser/esm/{Bece9zSczcJRj6iF.mjs → ClqW5S7FR6Pwmp1U.mjs} +2 -2
- package/browser/esm/{CzGACZ7X-3Z7pXxH.mjs → ColttpEsydVwkHtf.mjs} +2 -2
- package/browser/esm/{B2nWe09MDoBLwo_k.mjs → Cvwz0PddEGW1FJ4c.mjs} +1 -1
- package/browser/esm/{BSmY1OUM8_F-moJ0.mjs → CzfkYZGGhFc_gq0P.mjs} +4 -4
- package/browser/esm/{Bkw1PteOYKjHz41s.mjs → D-3WlyQuxUZCwLkb.mjs} +3 -3
- package/browser/esm/{CUi2AR-pqVbpTLq4.mjs → D3Aests6-QUrBfmJ.mjs} +1 -1
- package/browser/esm/{mBFrzCJis1-EVKL7.mjs → D3bI-7D37_22_-T9.mjs} +1 -1
- package/browser/esm/{BJY1GNwcHIjXI6Dy.mjs → D7ZdGXqJXmdAHu8I.mjs} +1 -1
- package/browser/esm/{DeJenn9MUICppyMl.mjs → D83oSH8xR3JfeRjI.mjs} +2 -2
- package/browser/esm/{CDuVmLEi65HzZ-mo.mjs → DCxc5HMSf1ZSHRoi.mjs} +2 -2
- package/browser/esm/{B95vnhVq0KnbcA_Y.mjs → DF0hjPW_C_3TpnDs.mjs} +1 -1
- package/browser/esm/{B_Vk87a5g9DxCz2O.mjs → DGFdTu5VfKecMohK.mjs} +5 -5
- package/browser/esm/{C8FnFcYHBHv7mRsK.mjs → DHrJOjy3Du7ZBo96.mjs} +3 -3
- package/browser/esm/{BBbQjMATTPG16Lr9.mjs → DIZ9pueRPHaNzQqo.mjs} +1 -1
- package/browser/esm/{Cmm97cKH5IugcalW.mjs → DMifD__JRvHH4COB.mjs} +1 -1
- package/browser/esm/{D4LGe9Sxrf-egOPN.mjs → DQNnDQPNut_4wO6Y.mjs} +1 -1
- package/browser/esm/{CMEIC_DYikQRzC9L.mjs → D_VpGjXScR-D-TWZ.mjs} +24 -24
- package/browser/esm/{BCJ3o3M62lsBKbae.mjs → DdtM4Sy4hFIFwWvO.mjs} +1 -1
- package/browser/esm/{Cp6H28QXgHRfTJ_n.mjs → De7cege6OU7QJqBb.mjs} +4 -4
- package/browser/esm/{3pGM81cqNJ8DDWp_.mjs → DobmIAozt-IiJp1P.mjs} +2 -2
- package/browser/esm/{Dp2cNfLOjOTs8V8x.mjs → DwYjy-b-w1xnqteA.mjs} +2 -2
- package/browser/esm/{v2EnJ1fOZEXqAVlO.mjs → JBCZvp0T2f4n-Csb.mjs} +2 -2
- package/browser/esm/{BlE9-hSf71ZoAM0M.mjs → LOzFCd9lrGWhNoCz.mjs} +1 -1
- package/browser/esm/{D9ObD_aKgMWUPN0P.mjs → LQC_4LWJQR_JjcxV.mjs} +4 -4
- package/browser/esm/{BjdZOM-UvDoJaYFo.mjs → UC9qbIWz2dYrCbJn.mjs} +2 -2
- package/browser/esm/{B45dW1aZ8s9mufl_.mjs → VoncM-mkj4eoKD1J.mjs} +2 -2
- package/browser/esm/{DApXGOAXNdSZdYbT.mjs → bOlMSpqTkmRboj5-.mjs} +2 -2
- package/browser/esm/{BsBeOKW7EhSZ9E5v.mjs → hbiHjiOvIyYM3TIl.mjs} +4 -4
- package/browser/esm/index.mjs +17 -17
- package/browser/esm/{BhHlzIhnBJqfHSKP.mjs → mlTMBwB5PG7Fo1mU.mjs} +479 -392
- package/browser/esm/{BUr5VGHQCYpQeran.mjs → nmox4_ypwR5ILBKj.mjs} +5 -5
- package/browser/esm/{8nIjNjh3EYKTlgnw.mjs → p-2ZZeZwGZfutcDk.mjs} +8 -8
- package/browser/esm/{BLZvY9XJL32hg1F-.mjs → xLnpGjmsP-zJuXUE.mjs} +1 -1
- package/node/esm/{BB5L5Y9qCXXDTqg-.mjs → 3MP8rnjjEE0LpSoH.mjs} +1 -1
- package/node/esm/{e_kM3nD2aaiphEoS.mjs → 539u16kqHOnXHBnN.mjs} +2 -2
- package/node/esm/{DhKvwk063hs0qEKD.mjs → B1WnY8cmRz7W1yrZ.mjs} +1 -1
- package/node/esm/{BpJ0H2dpKtg21Mtw.mjs → B5kuWO6ix3DmmdhQ.mjs} +2 -2
- package/node/esm/{CYP_F_suVtfwdtBl.mjs → BCYThTuIrSXfyd-N.mjs} +1 -1
- package/node/esm/{B16pFUEecGy6x7Sf.mjs → BJLg7uLC_b9f_1NJ.mjs} +2 -2
- package/node/esm/{i0R7voLYNUjkbop2.mjs → BWIatgbno8eMdTy4.mjs} +1 -1
- package/node/esm/{ClDMRc2s0BBAKhHL.mjs → BXKb4oUGpTWCF8ni.mjs} +2 -2
- package/node/esm/{DzwUDrXp4uuQ6bv0.mjs → B_TEor8YFmwmyhWj.mjs} +2 -2
- package/node/esm/{DN7uFaCytRrXMJpu.mjs → Bqda2dQ0l75gjnDb.mjs} +1 -1
- package/node/esm/{CF7peiUJfmOOPRFn.mjs → BqkiJZsCP2hEkJs9.mjs} +1 -1
- package/node/esm/{D7-QWEykZGrgV_xs.mjs → C-s3vhDAhWAnJntP.mjs} +2 -2
- package/node/esm/{CPHJFMyFxjErRLvR.mjs → CAfDDLrXsXte2avr.mjs} +2 -2
- package/node/esm/{DSAtnDj1sXUS0LYj.mjs → CDj1mR4aA0wufjjK.mjs} +1 -1
- package/node/esm/{DGzJYFzo02DBhqYC.mjs → CJX21c9lbs0lFHFH.mjs} +2 -2
- package/node/esm/{BUzCcr3jpBtj-9vH.mjs → CN5U8EzIhztKzktG.mjs} +2 -2
- package/node/esm/{CHaPiJTvsCR2Z3sC.mjs → CY8Mel9qXoQcoE6D.mjs} +4 -4
- package/node/esm/{9pdLzab-4aEax8pG.mjs → Cs9OyntWvICLrQk-.mjs} +2 -2
- package/node/esm/{Bkeg-KR5CHgIgCHZ.mjs → CsnknBUOfx3FVTP_.mjs} +1 -1
- package/node/esm/{DiCErpAUUdV9xdwZ.mjs → D8RVd9U84QC8lAvP.mjs} +1 -1
- package/node/esm/{BjwbCQEJ3tllXtIc.mjs → DAuVxjZwldORNkvx.mjs} +21 -21
- package/node/esm/{BdiSsEIgA0Pvd6bN.mjs → DLx_RKfK6MMX0tiy.mjs} +1 -1
- package/node/esm/{DqZ4g3pHAK7bKVvG.mjs → DSZIOgi3X_EmsT65.mjs} +1 -1
- package/node/esm/{Dp-aLdsFlu4Aw1Li.mjs → D_dyzcsGBlCNrIVJ.mjs} +4 -4
- package/node/esm/{CY-1AXXWawiEXRDw.mjs → Dbg6kW_63xZ_x2es.mjs} +2 -2
- package/node/esm/{B90Z94PB2O0Upt5h.mjs → DcIZXVJ5TJYu8Xf1.mjs} +1 -1
- package/node/esm/{DssxcB0PnN-PgzzK.mjs → DcIySopuRr-At74Y.mjs} +1 -1
- package/node/esm/{CASMs7A6E_qrcIMk.mjs → Dpzk8tIhwke93vji.mjs} +1 -1
- package/node/esm/{BjEZxA3zF89uf47R.mjs → FHL9tW8a0eqpp8dm.mjs} +2 -2
- package/node/esm/{D9Wle8u7Cs7tigPT.mjs → GeLMvw9JlqlFr6jw.mjs} +4 -4
- package/node/esm/{BulNRuKygH0oLixF.mjs → N8h_Ft32UJATwjlk.mjs} +1 -1
- package/node/esm/{B47JoJYzEtS6ivoC.mjs → VeNMuIWoztqGMKsZ.mjs} +1 -1
- package/node/esm/{CIAX0QoWY_xslYfv.mjs → XJAfD-_V2Sx4aW33.mjs} +2 -2
- package/node/esm/{DV5zGC0IZiv_lqwa.mjs → bIfQAr55kQq2xXaT.mjs} +1 -1
- package/node/esm/{CDbGB8TtNQhkBXqI.mjs → e5DJjIF9cuF9r_ub.mjs} +1 -1
- package/node/esm/{_gNQ05R589In7vSm.mjs → h0ih_bazDGjgIXQd.mjs} +2 -2
- package/node/esm/index.mjs +740 -653
- package/node/esm/{CGZ_p4-_DZzlvhMG.mjs → rEdJke7xorzb_Nmh.mjs} +2 -2
- package/node/esm/{DCDqfmTkvT0D2Z5h.mjs → uCFRHXTVhzTQ53TT.mjs} +2 -2
- package/node/esm/{viu5OtK-dXOIQdlG.mjs → ymnOnQfaRduubuPk.mjs} +1 -1
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +9 -0
- package/resources/locales/de/ui.msg.json +0 -1
- package/resources/locales/en/groups.cmd.json +9 -0
- package/resources/locales/en/ui.msg.json +0 -1
- package/types/src/slicer/InsertSlicerCommandButton.d.ts +13 -0
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +0 -6
package/node/esm/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
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.20
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { AutoFill as e, Color as t, CommonUtils as o, Condition as n, FontUtils as r, FormulaError as a, FormulaText as l, IBorders as i, ICalculation as s, ICell as c, ICellRange as d, ICellStyle as p, IColor as u, ICondition as m, IConditionalFormat as h, IFill as g, IFont as b, IFontCollection as f, IPivotTable as y, IRangeStats as x, ISheet as
|
|
8
|
-
import { AUTO_FILL_PRESET_LABELS as O, COLOR_SCALE_PRESETS as A, COMMAND_META_KEY as L, DATA_BAR_PRESETS as K, DEFAULT_ANNOTATION_STYLES as E, DefaultSheetLayersRegistry as W, DefaultTaskPaneRegistry as z, DefaultTaskPaneRegistry as V, FunctionArgIcons as H, FunctionPreviewContent as $, FunctionSignature as G, ICON_SET_GALLERY_BLOCKS as U, IconSetGlyphs as q, LinkPreviewImage as j, NamedItemLabel as _, OutlineGlyph as Z, PRESENCE_ICON as Q, PRESENCE_PANE_KEY as Y, PRESENCE_PIN_ICON as X, PresenceCommandKeys as J, PresenceMessages as ee, PresenceStore as te, PresetChartType as oe, RangeAnnotationLayer as ne, ShapeGallery as re, SheetKindIcon as ae, SheetTab as le, SlicerStylePreview as ie, StaticBorderRenderer as se, StaticCellRenderer as ce, StyledStrokePath as de, TaskPaneKey as pe, ThemeStateDefaults as ue, ThemeStateKey as me, ThemedChartIcon as he, ValueChecklist as ge, WORKBOOK_TOOLBARS_KEY as be, WorkbookElement as fe, WorkbookIO as ye, WorkbookIO as xe, WorkbookStrip as
|
|
9
|
-
import { Command as bt, CommandButtonEntryLabel as ft, CommandButtonType as yt, CommandScopeProvider as xt, DefaultCommandButtonRegistry as
|
|
10
|
-
import io, { Fragment as so, Suspense as co, cloneElement as po, createContext as uo, createElement as mo, forwardRef as ho, isValidElement as go, memo as bo, useCallback as fo, useContext as yo, useEffect as xo, useId as
|
|
7
|
+
import { AutoFill as e, Color as t, CommonUtils as o, Condition as n, FontUtils as r, FormulaError as a, FormulaText as l, IBorders as i, ICalculation as s, ICell as c, ICellRange as d, ICellStyle as p, IColor as u, ICondition as m, IConditionalFormat as h, IFill as g, IFont as b, IFontCollection as f, IPivotTable as y, IRangeStats as x, ISheet as v, ITextFrame as k, ITheme as w, InternalClipboard as S, InteropScalarType as C, LicenseManager as T, LicenseManager as F, NumberFormat as D, ScalarType as N, Table as I, TimerUtils as B, builtInStyleNameDisplay as P, getLocaleProfile as R, pivotStylePreviewOf as M } from "@sheetxl/sdk";
|
|
8
|
+
import { AUTO_FILL_PRESET_LABELS as O, COLOR_SCALE_PRESETS as A, COMMAND_META_KEY as L, DATA_BAR_PRESETS as K, DEFAULT_ANNOTATION_STYLES as E, DefaultSheetLayersRegistry as W, DefaultTaskPaneRegistry as z, DefaultTaskPaneRegistry as V, FunctionArgIcons as H, FunctionPreviewContent as $, FunctionSignature as G, ICON_SET_GALLERY_BLOCKS as U, IconSetGlyphs as q, LinkPreviewImage as j, NamedItemLabel as _, OutlineGlyph as Z, PRESENCE_ICON as Q, PRESENCE_PANE_KEY as Y, PRESENCE_PIN_ICON as X, PresenceCommandKeys as J, PresenceMessages as ee, PresenceStore as te, PresetChartType as oe, RangeAnnotationLayer as ne, ShapeGallery as re, SheetKindIcon as ae, SheetTab as le, SlicerStylePreview as ie, StaticBorderRenderer as se, StaticCellRenderer as ce, StyledStrokePath as de, TaskPaneKey as pe, ThemeStateDefaults as ue, ThemeStateKey as me, ThemedChartIcon as he, ValueChecklist as ge, WORKBOOK_TOOLBARS_KEY as be, WorkbookElement as fe, WorkbookIO as ye, WorkbookIO as xe, WorkbookStrip as ve, WorksheetElement as ke, argTypeKey as we, assembleCall as Se, contributeEditorCommands as Ce, createFunctionDescriptor as Te, createFunctionHint as Fe, createPresenceCommands as De, createSheetCellInput as Ne, describeConditionalIcon as Ie, editStringFromCell as Be, findSheetCircularReference as Pe, formatCellAddress as Re, formatCommentTime as Me, formatEvalValue as Oe, getConditionalIconSet as Ae, getPersonInitials as Le, getRangeAnnotationState as Ke, getSlicerStyleNames as Ee, iconSetPreset as We, isWalkedIntent as ze, outlineLevelColors as Ve, outlineLevelTextStyle as He, placeholderFromCell as $e, presetChartTypeDescriptor as Ge, registerMovableCommandGroups as Ue, registerPresenceCommandChrome as qe, selectCell as je, setPrintExamplesOnLoad as _e, shapeIconKey as Ze, toArgRows as Qe, useCommentThread as Ye, useFormulaInput as Xe, useFormulaInputParts as Je, useGridColorScheme as et, useInputField as tt, useInsertableCellControls as ot, useModelListener as nt, useModelListener as rt, useModelSync as at, usePresenceCommits as lt, usePresenceSnapshot as it, useRangeListener as st, useReferenceMode as ct, useTaskPaneArea as dt, useWindowChrome as pt, useWorkbook as ut, useWorkbookFormat as mt, useWorkbookName as ht, useWorksheet as gt } from "@sheetxl/react";
|
|
9
|
+
import { Command as bt, CommandButtonEntryLabel as ft, CommandButtonType as yt, CommandScopeProvider as xt, DefaultCommandButtonRegistry as vt, DynamicIcon as kt, KeyCodes as wt, KeyboardAccessory as St, NotifierType as Ct, ReactUtils as Tt, RenderSlot as Ft, ResizableBox as Dt, SplitPane as Nt, ThemeModeFallbackContext as It, createThemeScopeClass as Bt, defaultTheme as Pt, exitEditMode as Rt, floatThemeScopeProps as Mt, isVirtualKeyboardUp as Ot, lazyComponent as At, measureUIText as Lt, themeSurfaceProps as Kt, useCallbackRef as Et, useCommandButtonEntry as Wt, useCommandButtonRegistry as zt, useCommandElement as Vt, useCommandScope as Ht, useCommands as $t, useDevicePixelRatio as Gt, useEditMode as Ut, useFloat as qt, useFloatStack as jt, useFloatSurface as _t, useImperativeElement as Zt, useLanguage as Qt, useLocationSearch as Yt, useMeasure as Xt, useMouseDownAndHoldListener as Jt, useNotifier as eo, useOptionalBoundSyncExternalStore as to, usePersistentState as oo, useResolvedThemeMode as no, useTextSelectionDrag as ro, useTranslator as ao, useVirtualKeyboard as lo } from "@sheetxl/utils-react";
|
|
10
|
+
import io, { Fragment as so, Suspense as co, cloneElement as po, createContext as uo, createElement as mo, forwardRef as ho, isValidElement as go, memo as bo, useCallback as fo, useContext as yo, useEffect as xo, useId as vo, useImperativeHandle as ko, useLayoutEffect as wo, useMemo as So, useReducer as Co, useRef as To, useState as Fo } from "react";
|
|
11
11
|
import { AnimatedLoadingPanel as Do, CommandButton as No, CommandGroup as Io, CommandPopupButton as Bo, CommandToolbar as Po, CommandTooltip as Ro, ContextMenu as Mo, ExhibitDivider as Oo, ExhibitFloatProvider as Ao, ExhibitIconButton as Lo, ExhibitMenuHeader as Ko, ExhibitMenuItem as Eo, ExhibitPopupIconButton as Wo, ExhibitPopupMenuItem as zo, ExhibitTooltip as Vo, InputCommandButton as Ho, LabelIcon as $o, LazyLoadErrorPanel as Go, MenuItemInsets as Uo, PopupButtonType as qo, SelectedIcon as jo, SimpleTooltip as _o, StackTraceErrorPanel as Zo, ToggleGroupButton as Qo, buttonLabelSx as Yo, createStrokeShadowFilter as Xo, defaultRenderPopupPanel as Jo, defaultRenderScrollButtonEdge as en, defaultRenderScrollButtonEnd as tn, defaultRenderScrollButtonStart as on, elevateColor as nn, hexToRGB as rn, lazyModal as an, lazyPanel as ln, renderMembers as sn, strokeShadowFilter as cn, useModal as dn } from "@sheetxl/utils-mui";
|
|
12
12
|
import { Fragment as pn, jsx as un, jsxs as mn } from "react/jsx-runtime";
|
|
13
|
-
import { Avatar as hn, Box as gn, Button as bn, ButtonBase as fn, Checkbox as yn, Collapse as xn, Divider as
|
|
13
|
+
import { Avatar as hn, Box as gn, Button as bn, ButtonBase as fn, Checkbox as yn, Collapse as xn, Divider as vn, FormControl as kn, FormControlLabel as wn, FormHelperText as Sn, IconButton as Cn, Input as Tn, InputAdornment as Fn, InputLabel as Dn, Link as Nn, List as In, ListItem as Bn, ListItemButton as Pn, ListItemIcon as Rn, ListItemText as Mn, ListSubheader as On, Menu as An, MenuItem as Ln, MenuList as Kn, Paper as En, Select as Wn, Slider as zn, SvgIcon as Vn, Tab as Hn, Tabs as $n, TextField as Gn, ToggleButton as Un, ToggleButtonGroup as qn, Typography as jn, alpha as _n, styled as Zn, tooltipClasses as Qn, useMediaQuery as Yn, useTheme as Xn } from "@mui/material";
|
|
14
14
|
import { CommonUtils as Jn, CoordUtils as er, DOMUtils as tr, DefaultLanguagePackService as or, RangeAxis as nr, TimerUtils as rr, defineLazyModule as ar, messageKey as lr, t as ir } from "@sheetxl/utils";
|
|
15
15
|
import sr, { clsx as cr } from "clsx";
|
|
16
16
|
import { alpha as dr } from "@mui/system";
|
|
17
17
|
import { useMergeRefs as pr } from "react-merge-refs";
|
|
18
18
|
import { useFormContext as ur } from "react-hook-form";
|
|
19
19
|
import { EditorDiv as mr, ListSearch as hr, PickList as gr, TooltipProvider as br, buildGridThemeCSS as fr, filterByText as yr, useTooltipSurface as xr } from "@sheetxl/grid-react";
|
|
20
|
-
import { IOUtils as
|
|
21
|
-
var
|
|
20
|
+
import { IOUtils as vr } from "@sheetxl/io";
|
|
21
|
+
var kr = {
|
|
22
22
|
"anomalies.analyze": "Analyze",
|
|
23
23
|
"anomalies.check.approximateMatch": "Approximate match",
|
|
24
24
|
"anomalies.check.calculatedColumn": "Inconsistent calculated column formula",
|
|
@@ -252,7 +252,6 @@ var vr = {
|
|
|
252
252
|
"comment.resolve": "Resolve thread",
|
|
253
253
|
"comment.resolved": "Resolved",
|
|
254
254
|
"comment.save": "Save",
|
|
255
|
-
"comment.title": "Comments",
|
|
256
255
|
"comment.unknownAuthor": "Unknown",
|
|
257
256
|
"condition.above": "Above",
|
|
258
257
|
"condition.and": "and",
|
|
@@ -1068,6 +1067,15 @@ var vr = {
|
|
|
1068
1067
|
label: "Clear",
|
|
1069
1068
|
icon: "ClearAll"
|
|
1070
1069
|
},
|
|
1070
|
+
commentOptions: {
|
|
1071
|
+
label: "Comment",
|
|
1072
|
+
description: "Add, show, and move between the comments on the sheet.",
|
|
1073
|
+
icon: "CommentManage"
|
|
1074
|
+
},
|
|
1075
|
+
comments: {
|
|
1076
|
+
label: "Comments",
|
|
1077
|
+
icon: "CommentManage"
|
|
1078
|
+
},
|
|
1071
1079
|
conditionalFormatDetails: {
|
|
1072
1080
|
label: "Conditional Formatting",
|
|
1073
1081
|
icon: "FormatPaint"
|
|
@@ -1471,7 +1479,7 @@ var vr = {
|
|
|
1471
1479
|
], { DefaultCommandCatalogService: Sr } = bt, Cr = !1;
|
|
1472
1480
|
function Tr() {
|
|
1473
1481
|
Cr || (Cr = !0, Sr.registerFromManifest("@sheetxl/studio-mui", import.meta.url, {
|
|
1474
|
-
messages:
|
|
1482
|
+
messages: kr,
|
|
1475
1483
|
catalogs: wr
|
|
1476
1484
|
}));
|
|
1477
1485
|
}
|
|
@@ -1640,13 +1648,13 @@ var Ir = {
|
|
|
1640
1648
|
n,
|
|
1641
1649
|
s,
|
|
1642
1650
|
t
|
|
1643
|
-
]),
|
|
1651
|
+
]), v = fo((e) => {
|
|
1644
1652
|
a?.(e), e.isDefaultPrevented() || e.keyCode === wt.Enter && o?.(t.toRGBA());
|
|
1645
1653
|
}, [
|
|
1646
1654
|
o,
|
|
1647
1655
|
a,
|
|
1648
1656
|
t
|
|
1649
|
-
]),
|
|
1657
|
+
]), k = So(() => 1 === t.toRGBA().alpha ? null : un(Or, {
|
|
1650
1658
|
size: h,
|
|
1651
1659
|
white: p,
|
|
1652
1660
|
grey: u,
|
|
@@ -1676,11 +1684,11 @@ var Ir = {
|
|
|
1676
1684
|
tabIndex: 0,
|
|
1677
1685
|
...g,
|
|
1678
1686
|
onClick: b,
|
|
1679
|
-
onKeyDown:
|
|
1687
|
+
onKeyDown: v,
|
|
1680
1688
|
onMouseOver: f,
|
|
1681
1689
|
onMouseLeave: y,
|
|
1682
1690
|
onFocus: x,
|
|
1683
|
-
children: [
|
|
1691
|
+
children: [k, un("div", {
|
|
1684
1692
|
style: {
|
|
1685
1693
|
position: "absolute",
|
|
1686
1694
|
top: "0px",
|
|
@@ -1698,7 +1706,7 @@ var Ir = {
|
|
|
1698
1706
|
adjs: a.definition.adjs
|
|
1699
1707
|
}, (e) => o(e)), b = p ? g.toRGBA().toString() : g.toString(), f = n && (p ? n.toRGBA().toString() : n.toString()) === b, y = r && (p ? r.toRGBA().toString() : r.toString()) === b, x = [];
|
|
1700
1708
|
x.push({ [u.AdjustmentType.Inv]: !0 }), x.push({ [u.AdjustmentType.Alpha]: 100 });
|
|
1701
|
-
const
|
|
1709
|
+
const v = 0 === g.toRGBA().alpha && s?.alphaGrey ? s.alphaGrey : g.adjust(x).toRGBA(m).toString(), k = fo(() => {
|
|
1702
1710
|
l?.(a);
|
|
1703
1711
|
}, [l, a]), w = fo((e) => {
|
|
1704
1712
|
i?.(a);
|
|
@@ -1732,7 +1740,7 @@ var Ir = {
|
|
|
1732
1740
|
children: mn(Ar, {
|
|
1733
1741
|
selectedColor: g,
|
|
1734
1742
|
title: void 0,
|
|
1735
|
-
onSelectColor:
|
|
1743
|
+
onSelectColor: k,
|
|
1736
1744
|
onPreviewColor: w,
|
|
1737
1745
|
alphaCheckSize: d ? 9 : void 0,
|
|
1738
1746
|
darkMode: m,
|
|
@@ -1744,7 +1752,7 @@ var Ir = {
|
|
|
1744
1752
|
top: "0px",
|
|
1745
1753
|
left: "0px",
|
|
1746
1754
|
pointerEvents: "none",
|
|
1747
|
-
borderColor:
|
|
1755
|
+
borderColor: v,
|
|
1748
1756
|
borderWidth: "2px",
|
|
1749
1757
|
borderStyle: "solid",
|
|
1750
1758
|
boxSizing: "border-box",
|
|
@@ -1757,7 +1765,7 @@ var Ir = {
|
|
|
1757
1765
|
top: "calc(50% - 0.5px)",
|
|
1758
1766
|
transform: "translate(-50%,-50%)",
|
|
1759
1767
|
pointerEvents: "none",
|
|
1760
|
-
background:
|
|
1768
|
+
background: v,
|
|
1761
1769
|
borderRadius: "50%",
|
|
1762
1770
|
opacity: y ? "1" : "0"
|
|
1763
1771
|
} })]
|
|
@@ -1860,8 +1868,8 @@ var Ir = {
|
|
|
1860
1868
|
a?.set(c, s);
|
|
1861
1869
|
const d = s.toRGBA().toString();
|
|
1862
1870
|
l?.set(d, s);
|
|
1863
|
-
}, zr = At(ar("studio:customColorPanel", () => import("./
|
|
1864
|
-
const { selectedColor: n = null, previewColor: r = e.selectedColor ?? null, recentColors: a, schemeLookup: l, disableAlpha: i = !1, previewDebounceTime: s = 100, initialPanelType: c, defaultButtonSize: d = 24, width: p, onElementLoad: u, onDone: m, onEyeDropStart: h, onEyeDropStop: g, onPreviewColor: b, onPreviewColorImmediate: f, onSelectColor: y, autoColor: x, autoColorLabel:
|
|
1871
|
+
}, zr = At(ar("studio:customColorPanel", () => import("./BCYThTuIrSXfyd-N.mjs")).load, { renderError: ({ error: e }) => un(Go, { error: e }) }), Vr = bo(ho((e, o) => {
|
|
1872
|
+
const { selectedColor: n = null, previewColor: r = e.selectedColor ?? null, recentColors: a, schemeLookup: l, disableAlpha: i = !1, previewDebounceTime: s = 100, initialPanelType: c, defaultButtonSize: d = 24, width: p, onElementLoad: u, onDone: m, onEyeDropStart: h, onEyeDropStop: g, onPreviewColor: b, onPreviewColorImmediate: f, onSelectColor: y, autoColor: x, autoColorLabel: v, autoColorLabelKey: k, autoColorPosition: S = Br.Start, compareRGB: C = !1, darkMode: T = !1, style: F, ...D } = e, N = ao(), I = v ?? N(k ?? lr("color.automatic")), B = r || n, P = Et(b ?? ((e) => {}), [b]), R = Et(f ?? ((e) => {}), [f]), M = Et(y ?? ((e, t) => {}), [y]), O = Et(h ?? (() => {}), [h]), A = Et(g ?? (() => {}), [g]), [L, K] = Fo(!1), E = Xn(), W = So(() => l || t.getDefaultSchemeLookup(), [l]), z = So(() => {
|
|
1865
1873
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), o = [];
|
|
1866
1874
|
Wr(N("color.scheme.bg1"), "bg1", W, o, e, t), Wr(N("color.scheme.tx1"), "tx1", W, o, e, t), Wr(N("color.scheme.bg2"), "bg2", W, o, e, t), Wr(N("color.scheme.tx2"), "tx2", W, o, e, t), Wr(N("color.scheme.accent", { n: 1 }), "accent1", W, o, e, t), Wr(N("color.scheme.accent", { n: 2 }), "accent2", W, o, e, t), Wr(N("color.scheme.accent", { n: 3 }), "accent3", W, o, e, t), Wr(N("color.scheme.accent", { n: 4 }), "accent4", W, o, e, t), Wr(N("color.scheme.accent", { n: 5 }), "accent5", W, o, e, t), Wr(N("color.scheme.accent", { n: 6 }), "accent6", W, o, e, t);
|
|
1867
1875
|
const n = w.buildPalette(o, W, e, t), r = [];
|
|
@@ -1962,7 +1970,7 @@ var Ir = {
|
|
|
1962
1970
|
K(!1), "AbortError" !== e?.name && console.error(e);
|
|
1963
1971
|
});
|
|
1964
1972
|
},
|
|
1965
|
-
children: un(
|
|
1973
|
+
children: un(kt, { iconKey: "Colorize" })
|
|
1966
1974
|
});
|
|
1967
1975
|
}, [z, T]), ee = So(() => {
|
|
1968
1976
|
if (!V) return;
|
|
@@ -2071,7 +2079,7 @@ var Ir = {
|
|
|
2071
2079
|
children: [mn("div", {
|
|
2072
2080
|
style: { opacity: V ? "0" : 1 },
|
|
2073
2081
|
children: [
|
|
2074
|
-
oe && S === Br.Start ? mn(pn, { children: [oe, un(
|
|
2082
|
+
oe && S === Br.Start ? mn(pn, { children: [oe, un(vn, { style: {
|
|
2075
2083
|
marginTop: "2px",
|
|
2076
2084
|
marginBottom: "10px"
|
|
2077
2085
|
} })] }) : null,
|
|
@@ -2098,7 +2106,7 @@ var Ir = {
|
|
|
2098
2106
|
compareRGB: C,
|
|
2099
2107
|
darkMode: T
|
|
2100
2108
|
}),
|
|
2101
|
-
un(
|
|
2109
|
+
un(vn, { style: { marginBottom: "10px" } }),
|
|
2102
2110
|
un(Kr, {
|
|
2103
2111
|
title: N("color.standardColors"),
|
|
2104
2112
|
schemeColorLookup: W,
|
|
@@ -2116,7 +2124,7 @@ var Ir = {
|
|
|
2116
2124
|
opacity: 0 === z.recentColorsLimited.length ? "0" : void 0,
|
|
2117
2125
|
display: 0 === z.recentColorsLimited.length ? "none" : void 0
|
|
2118
2126
|
},
|
|
2119
|
-
children: [un(
|
|
2127
|
+
children: [un(vn, { style: { marginBottom: "10px" } }), un(Kr, {
|
|
2120
2128
|
title: N("color.recentColors"),
|
|
2121
2129
|
schemeColorLookup: W,
|
|
2122
2130
|
colorDefs: z.recentColorsLimited,
|
|
@@ -2130,7 +2138,7 @@ var Ir = {
|
|
|
2130
2138
|
})]
|
|
2131
2139
|
}),
|
|
2132
2140
|
oe && S === Br.End ? mn(pn, { children: [
|
|
2133
|
-
un(
|
|
2141
|
+
un(vn, { sx: {
|
|
2134
2142
|
marginTop: "2px",
|
|
2135
2143
|
marginBottom: "2px"
|
|
2136
2144
|
} }),
|
|
@@ -2140,7 +2148,7 @@ var Ir = {
|
|
|
2140
2148
|
]
|
|
2141
2149
|
}), ee]
|
|
2142
2150
|
}),
|
|
2143
|
-
un(
|
|
2151
|
+
un(vn, { style: { marginBottom: "10px" } }),
|
|
2144
2152
|
mn("div", {
|
|
2145
2153
|
style: {
|
|
2146
2154
|
display: "flex",
|
|
@@ -2202,20 +2210,20 @@ var Ir = {
|
|
|
2202
2210
|
})
|
|
2203
2211
|
]
|
|
2204
2212
|
});
|
|
2205
|
-
})), Hr = un(
|
|
2206
|
-
const { selectedColor: o, quickColor: n, icon: r = Hr, tooltip: a, label: l, onPreviewColor: i, onPreviewColorImmediate: s, onSelectColor: c, variant: d = qo.Toolbar, propsPanel: p, shouldCloseFloatAll: u = !0, compareRGB: m = !1, darkMode: h = !1, ...g } = e, b = Et(i ?? ((e) => {}), [i]), f = Et(s ?? ((e) => {}), [s]), y = Et(c ?? ((e, t) => {}), [c]), [x,
|
|
2213
|
+
})), Hr = un(kt, { iconKey: "circle.colored" }), $r = bo(ho((e, t) => {
|
|
2214
|
+
const { selectedColor: o, quickColor: n, icon: r = Hr, tooltip: a, label: l, onPreviewColor: i, onPreviewColorImmediate: s, onSelectColor: c, variant: d = qo.Toolbar, propsPanel: p, shouldCloseFloatAll: u = !0, compareRGB: m = !1, darkMode: h = !1, ...g } = e, b = Et(i ?? ((e) => {}), [i]), f = Et(s ?? ((e) => {}), [s]), y = Et(c ?? ((e, t) => {}), [c]), [x, v] = Fo(() => {}), [k, w] = Fo(!1), S = n || (k ? x : void 0) || o || p?.autoColor, C = To(!1), T = fo(() => {
|
|
2207
2215
|
w(!1);
|
|
2208
2216
|
}, []), F = Et(() => {
|
|
2209
|
-
|
|
2217
|
+
v(o), w(!0);
|
|
2210
2218
|
}, [o]), D = Et((e) => {
|
|
2211
|
-
C.current || (
|
|
2219
|
+
C.current || (v(e), b?.(e));
|
|
2212
2220
|
}, [b]), N = Et((e) => {
|
|
2213
|
-
C.current || (
|
|
2221
|
+
C.current || (v(e), f?.(e));
|
|
2214
2222
|
}, [f]), I = Et((e, t) => {
|
|
2215
|
-
C.current || (
|
|
2223
|
+
C.current || (v(void 0), y?.(e, t));
|
|
2216
2224
|
}, [y]), B = So(() => {
|
|
2217
2225
|
let e = "function" == typeof r ? r() : r;
|
|
2218
|
-
"string" == typeof e && (e = un(
|
|
2226
|
+
"string" == typeof e && (e = un(kt, { iconKey: e }));
|
|
2219
2227
|
const t = (e) => e && "none" !== e ? e : void 0, o = t(S?.toCSS(h)) ?? t(p?.autoColor?.toCSS(h)) ?? "transparent";
|
|
2220
2228
|
return un(gn, {
|
|
2221
2229
|
className: "color-wrapper",
|
|
@@ -2448,7 +2456,7 @@ var qr = (e) => {
|
|
|
2448
2456
|
h += `M ${(e + i * t / 4 + .5) / l - a},${(e + o * t / 4 + .5) / l - a} h ${r} v ${r} h ${-r} Z `;
|
|
2449
2457
|
}
|
|
2450
2458
|
}
|
|
2451
|
-
return mn(
|
|
2459
|
+
return mn(kt, { children: [" ", un(gn, {
|
|
2452
2460
|
ref: n,
|
|
2453
2461
|
className: "border-icon",
|
|
2454
2462
|
sx: {
|
|
@@ -2525,10 +2533,10 @@ var Zr = Object.freeze({
|
|
|
2525
2533
|
dot: n
|
|
2526
2534
|
};
|
|
2527
2535
|
}, Xr = bo(ho((e, o) => {
|
|
2528
|
-
const { autoColor: n, schemeLookup: r, autoStrokeStyle: a = i.StrokeStyle.Thin, disabled: l, darkMode: s = !1, showStylingBefore: c = !0, onSelectBorder: d, onPreviewBorder: p, selectedBorder: m, createBorder: h, ...g } = e, b = Et(d ?? ((e) => {}), [d]), f = Et(p ?? ((e) => {}), [p]), y = ao(), x = Wt("borderOptions"), [
|
|
2536
|
+
const { autoColor: n, schemeLookup: r, autoStrokeStyle: a = i.StrokeStyle.Thin, disabled: l, darkMode: s = !1, showStylingBefore: c = !0, onSelectBorder: d, onPreviewBorder: p, selectedBorder: m, createBorder: h, ...g } = e, b = Et(d ?? ((e) => {}), [d]), f = Et(p ?? ((e) => {}), [p]), y = ao(), x = Wt("borderOptions"), [v, k] = Fo(), [w, S] = Fo(), C = m || { bottom: {
|
|
2529
2537
|
style: a,
|
|
2530
2538
|
color: n?.toString() ?? u.Named.Gray
|
|
2531
|
-
} }, T =
|
|
2539
|
+
} }, T = v ?? C?.bottom?.style ?? a, F = w ?? (C?.bottom?.color ? new t(C?.bottom?.color, r) : void 0) ?? n ?? null, D = Et((e) => un(_r, {
|
|
2532
2540
|
border: e,
|
|
2533
2541
|
createBorder: h
|
|
2534
2542
|
}), [h]), N = fo((e, t, o) => {
|
|
@@ -2621,7 +2629,7 @@ var Zr = Object.freeze({
|
|
|
2621
2629
|
},
|
|
2622
2630
|
children: [un($r, {
|
|
2623
2631
|
variant: qo.Toolbar,
|
|
2624
|
-
icon: un(
|
|
2632
|
+
icon: un(kt, { iconKey: "stroke.colored" }),
|
|
2625
2633
|
selectedColor: T === i.StrokeStyle.None ? new t("transparent") : F ?? new t("transparent"),
|
|
2626
2634
|
onPreviewColor: (e) => {
|
|
2627
2635
|
S(e);
|
|
@@ -2641,7 +2649,7 @@ var Zr = Object.freeze({
|
|
|
2641
2649
|
shouldCloseFloatAll: !1
|
|
2642
2650
|
}), un(jr, {
|
|
2643
2651
|
selectedStyle: T,
|
|
2644
|
-
onSelectStyle:
|
|
2652
|
+
onSelectStyle: k,
|
|
2645
2653
|
styleColor: F,
|
|
2646
2654
|
darkMode: s,
|
|
2647
2655
|
variant: qo.Toolbar
|
|
@@ -2689,7 +2697,7 @@ var Zr = Object.freeze({
|
|
|
2689
2697
|
...g
|
|
2690
2698
|
});
|
|
2691
2699
|
})), Jr = bo(ho((e, t) => {
|
|
2692
|
-
const { commandKey: o, variant: n = yt.Toolbar, disabled: r, autoColor: a, autoStrokeStyle: l, schemeLookup: i, createBorder: s, selectedBorder: c, onSelectBorder: d, darkMode: p, icon: u, label: m, ...h } = e, g = $t([o ?? "formatBorder"])[0], b = g?.getContext() ?? null, f = b?.autoColor ?? a, y = b?.autoStyle ?? l, x = c ?? b?.quickBorder,
|
|
2700
|
+
const { commandKey: o, variant: n = yt.Toolbar, disabled: r, autoColor: a, autoStrokeStyle: l, schemeLookup: i, createBorder: s, selectedBorder: c, onSelectBorder: d, darkMode: p, icon: u, label: m, ...h } = e, g = $t([o ?? "formatBorder"])[0], b = g?.getContext() ?? null, f = b?.autoColor ?? a, y = b?.autoStyle ?? l, x = c ?? b?.quickBorder, v = et(), k = p ?? "dark" === v, w = s ?? b?.createBorder, S = i ?? b?.schemeLookup, C = Et((e) => {
|
|
2693
2701
|
b?.onBorderSelect && b.onBorderSelect(e), d?.(e), g?.execute(e);
|
|
2694
2702
|
}, [g, d]), T = fo((e) => {
|
|
2695
2703
|
const { disabled: t, children: a, title: l, ...i } = e;
|
|
@@ -2705,7 +2713,7 @@ var Zr = Object.freeze({
|
|
|
2705
2713
|
return un(Xr, {
|
|
2706
2714
|
ref: t,
|
|
2707
2715
|
autoColor: f,
|
|
2708
|
-
darkMode:
|
|
2716
|
+
darkMode: k,
|
|
2709
2717
|
autoStrokeStyle: y,
|
|
2710
2718
|
createBorder: w,
|
|
2711
2719
|
schemeLookup: S,
|
|
@@ -2738,7 +2746,7 @@ var Zr = Object.freeze({
|
|
|
2738
2746
|
}) : null, [b]), y = Xn(), x = So(() => `${Lt("12.3", {
|
|
2739
2747
|
size: Math.round(y.typography.fontSize),
|
|
2740
2748
|
family: y.typography.fontFamily ?? ""
|
|
2741
|
-
})}px`, [y]),
|
|
2749
|
+
})}px`, [y]), v = l ?? (!p || p.disabled()), k = ro(), w = fo((e) => {
|
|
2742
2750
|
const { onMouseDown: t, onMouseUp: o, ...n } = e;
|
|
2743
2751
|
return un(Cn, {
|
|
2744
2752
|
component: "div",
|
|
@@ -2750,8 +2758,8 @@ var Zr = Object.freeze({
|
|
|
2750
2758
|
inputProps: {
|
|
2751
2759
|
name: "font-input",
|
|
2752
2760
|
autoComplete: "off",
|
|
2753
|
-
onPointerDown:
|
|
2754
|
-
onDragStart:
|
|
2761
|
+
onPointerDown: k.onPointerDown,
|
|
2762
|
+
onDragStart: k.onDragStart,
|
|
2755
2763
|
tabIndex: 0,
|
|
2756
2764
|
type: "number",
|
|
2757
2765
|
maxLength: 4,
|
|
@@ -2809,9 +2817,9 @@ var Zr = Object.freeze({
|
|
|
2809
2817
|
});
|
|
2810
2818
|
}, [
|
|
2811
2819
|
m,
|
|
2812
|
-
|
|
2820
|
+
v,
|
|
2813
2821
|
p,
|
|
2814
|
-
|
|
2822
|
+
k
|
|
2815
2823
|
]), S = fo((e) => {
|
|
2816
2824
|
const t = (e) => {
|
|
2817
2825
|
p?.execute(e);
|
|
@@ -2869,13 +2877,13 @@ var Zr = Object.freeze({
|
|
|
2869
2877
|
...e,
|
|
2870
2878
|
children: r
|
|
2871
2879
|
});
|
|
2872
|
-
}, [
|
|
2880
|
+
}, [v, p]);
|
|
2873
2881
|
return un(Wo, {
|
|
2874
2882
|
ref: t,
|
|
2875
2883
|
sx: { ...c },
|
|
2876
2884
|
tabIndex: -1,
|
|
2877
2885
|
outlined: !0,
|
|
2878
|
-
disabled:
|
|
2886
|
+
disabled: v,
|
|
2879
2887
|
renderPopupPanel: S,
|
|
2880
2888
|
renderTooltip: ({ children: e, disabled: t }) => un(Vo, {
|
|
2881
2889
|
label: p?.getLabel(),
|
|
@@ -3087,7 +3095,7 @@ var oa = (e, t) => {
|
|
|
3087
3095
|
disabled: t,
|
|
3088
3096
|
children: e
|
|
3089
3097
|
}),
|
|
3090
|
-
icon: un(
|
|
3098
|
+
icon: un(kt, { iconKey: "CurrencyDollar" }),
|
|
3091
3099
|
label: s?.getLabel?.(r),
|
|
3092
3100
|
...a
|
|
3093
3101
|
});
|
|
@@ -3286,7 +3294,7 @@ var pa = bo(ho((e, t) => {
|
|
|
3286
3294
|
pa.displayName = "NumberFormatCommandButton";
|
|
3287
3295
|
var ua = ({ entry: e }) => {
|
|
3288
3296
|
const t = e.meta[L] ?? "", [o] = $t([t]), n = t ? o?.getIcon() : void 0;
|
|
3289
|
-
return n ? "string" == typeof n ? un(
|
|
3297
|
+
return n ? "string" == typeof n ? un(kt, { iconKey: n }) : n : un(kt, {});
|
|
3290
3298
|
}, ma = { agent: {
|
|
3291
3299
|
icon: "Agent",
|
|
3292
3300
|
label: (e) => e("undo.author.agent")
|
|
@@ -3307,7 +3315,7 @@ var ua = ({ entry: e }) => {
|
|
|
3307
3315
|
ml: 1,
|
|
3308
3316
|
color: "text.secondary"
|
|
3309
3317
|
},
|
|
3310
|
-
children: un(
|
|
3318
|
+
children: un(kt, { iconKey: o.icon })
|
|
3311
3319
|
})
|
|
3312
3320
|
});
|
|
3313
3321
|
}, ga = bo(ho((e, t) => {
|
|
@@ -3316,7 +3324,7 @@ var ua = ({ entry: e }) => {
|
|
|
3316
3324
|
const u = $t(p), m = ao(), h = u[0], g = u[1], b = l ?? h?.getContext?.()?.undoManager;
|
|
3317
3325
|
let f = c;
|
|
3318
3326
|
c || (f = !h || h.disabled(), g && !g.disabled() && (f = !1));
|
|
3319
|
-
const [y, x] = Fo(0),
|
|
3327
|
+
const [y, x] = Fo(0), v = fo((e) => {
|
|
3320
3328
|
let t = 0 === y ? "Cancel" : `${h?.getLabel()} ${y} Action${1 === y ? "" : "s"}`, o = !1;
|
|
3321
3329
|
b || (o = !0), o || (o = a ? !b.hasRedo() && !b.hasUndo() : !b.hasRedo());
|
|
3322
3330
|
const n = (e) => {
|
|
@@ -3455,7 +3463,7 @@ var ua = ({ entry: e }) => {
|
|
|
3455
3463
|
disabled: f,
|
|
3456
3464
|
label: h?.getLabel(i) ?? (r ? "Redo" : "Undo"),
|
|
3457
3465
|
tooltip: un(pn, { children: un("span", { children: `${h?.getLabel() ?? "No"} last actions.` }) }),
|
|
3458
|
-
renderPopupPanel:
|
|
3466
|
+
renderPopupPanel: v,
|
|
3459
3467
|
icon: n ?? (r ? "Redo" : "Undo"),
|
|
3460
3468
|
selected: !1,
|
|
3461
3469
|
...d
|
|
@@ -3464,17 +3472,17 @@ var ua = ({ entry: e }) => {
|
|
|
3464
3472
|
const { commandKey: n, groupKey: r, onSelectColor: a, disabled: l, variant: i = yt.Toolbar, quickColor: s, propsPanel: c, isSplit: d = !1, darkMode: p, icon: u, ...m } = e, { autoColor: h, schemeLookup: g, recentColors: b, ...f } = c ?? {};
|
|
3465
3473
|
if (m.selectedColor) throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");
|
|
3466
3474
|
const [y] = $t([n ?? ""]), x = y?.getContext();
|
|
3467
|
-
let
|
|
3468
|
-
d && !
|
|
3469
|
-
const
|
|
3470
|
-
autoColor:
|
|
3475
|
+
let v = s ?? x?.quickColor;
|
|
3476
|
+
d && !v && (v = new t("transparent"));
|
|
3477
|
+
const k = void 0 !== h ? h : x?.autoColor, w = g ?? x?.schemeLookup, S = b ?? x?.recentColors, C = et(), T = p ?? "dark" === C, F = So(() => ({
|
|
3478
|
+
autoColor: k,
|
|
3471
3479
|
schemeLookup: w,
|
|
3472
3480
|
recentColors: S,
|
|
3473
3481
|
darkMode: T,
|
|
3474
3482
|
...Kt("grid", T ? "dark" : "light"),
|
|
3475
3483
|
...f
|
|
3476
3484
|
}), [
|
|
3477
|
-
|
|
3485
|
+
k,
|
|
3478
3486
|
w,
|
|
3479
3487
|
S,
|
|
3480
3488
|
T
|
|
@@ -3499,7 +3507,7 @@ var ua = ({ entry: e }) => {
|
|
|
3499
3507
|
ref: o,
|
|
3500
3508
|
propsPanel: F,
|
|
3501
3509
|
icon: u ?? y?.getIcon(),
|
|
3502
|
-
quickColor:
|
|
3510
|
+
quickColor: v,
|
|
3503
3511
|
selectedColor: y?.getState(),
|
|
3504
3512
|
onSelectColor: D,
|
|
3505
3513
|
variant: i === yt.Menuitem ? qo.Menuitem : qo.Toolbar,
|
|
@@ -3700,12 +3708,12 @@ var fa = bo(ho((e, t) => {
|
|
|
3700
3708
|
quickCommand: "paste",
|
|
3701
3709
|
...r
|
|
3702
3710
|
});
|
|
3703
|
-
})),
|
|
3711
|
+
})), va = (e, t) => {
|
|
3704
3712
|
const o = P(e);
|
|
3705
3713
|
return o ? t(o.key, o.params) : e;
|
|
3706
|
-
},
|
|
3714
|
+
}, ka = (e, t) => {
|
|
3707
3715
|
const o = new Intl.Collator(or.getActive(), { numeric: !0 });
|
|
3708
|
-
return [...e].sort((e, n) => o.compare(
|
|
3716
|
+
return [...e].sort((e, n) => o.compare(va(e, t), va(n, t)));
|
|
3709
3717
|
}, wa = bo((e) => {
|
|
3710
3718
|
const { namedStyle: t, selectedNamed: o, hasContextMenu: n = !0, onSelectNamed: r, createCell: a, disabled: l, ...i } = e, s = ao(), c = fo((e) => {
|
|
3711
3719
|
const o = {
|
|
@@ -3760,7 +3768,7 @@ var fa = bo(ho((e, t) => {
|
|
|
3760
3768
|
border: (e) => `solid ${d ? e.palette.primary.dark : "transparent"} 1px`
|
|
3761
3769
|
},
|
|
3762
3770
|
propsTooltip: {
|
|
3763
|
-
label:
|
|
3771
|
+
label: va(t.getName(), s),
|
|
3764
3772
|
placement: "bottom-start"
|
|
3765
3773
|
},
|
|
3766
3774
|
disabled: l,
|
|
@@ -3770,13 +3778,13 @@ var fa = bo(ho((e, t) => {
|
|
|
3770
3778
|
},
|
|
3771
3779
|
...i,
|
|
3772
3780
|
children: un(ce, {
|
|
3773
|
-
value:
|
|
3781
|
+
value: va(t.getName(), s),
|
|
3774
3782
|
cellStyle: { named: t.getName() },
|
|
3775
3783
|
createCell: a
|
|
3776
3784
|
})
|
|
3777
3785
|
}, t.getName());
|
|
3778
3786
|
return n && (u = un(Mo, {
|
|
3779
|
-
label:
|
|
3787
|
+
label: va(t.getName(), s),
|
|
3780
3788
|
renderPopupPanel: c,
|
|
3781
3789
|
children: u
|
|
3782
3790
|
})), u;
|
|
@@ -3833,11 +3841,11 @@ var fa = bo(ho((e, t) => {
|
|
|
3833
3841
|
children: o
|
|
3834
3842
|
}, e + "-presets");
|
|
3835
3843
|
}, b = [];
|
|
3836
|
-
b.push(d(c("cellStyle.category.custom"), l, !1)), b.push(d(c("cellStyle.category.goodBadNeutral"), [p.BuiltInName.Normal, ...
|
|
3844
|
+
b.push(d(c("cellStyle.category.custom"), l, !1)), b.push(d(c("cellStyle.category.goodBadNeutral"), [p.BuiltInName.Normal, ...ka([
|
|
3837
3845
|
p.BuiltInName.Bad,
|
|
3838
3846
|
p.BuiltInName.Good,
|
|
3839
3847
|
p.BuiltInName.Neutral
|
|
3840
|
-
], c)], l.length > 0)), b.push(d(c("cellStyle.category.dataModel"),
|
|
3848
|
+
], c)], l.length > 0)), b.push(d(c("cellStyle.category.dataModel"), ka([
|
|
3841
3849
|
p.BuiltInName.Calculation,
|
|
3842
3850
|
p.BuiltInName.CheckCell,
|
|
3843
3851
|
p.BuiltInName.ExplanatoryText,
|
|
@@ -3848,7 +3856,7 @@ var fa = bo(ho((e, t) => {
|
|
|
3848
3856
|
p.BuiltInName.Note,
|
|
3849
3857
|
p.BuiltInName.Output,
|
|
3850
3858
|
p.BuiltInName.WarningText
|
|
3851
|
-
], c))), b.push(d(c("cellStyle.category.titlesHeadings"),
|
|
3859
|
+
], c))), b.push(d(c("cellStyle.category.titlesHeadings"), ka([
|
|
3852
3860
|
p.BuiltInName.Heading1,
|
|
3853
3861
|
p.BuiltInName.Heading2,
|
|
3854
3862
|
p.BuiltInName.Heading3,
|
|
@@ -3857,7 +3865,7 @@ var fa = bo(ho((e, t) => {
|
|
|
3857
3865
|
p.BuiltInName.Total
|
|
3858
3866
|
], c)));
|
|
3859
3867
|
let x = [];
|
|
3860
|
-
var
|
|
3868
|
+
var v, k;
|
|
3861
3869
|
return x.push(g("Accent 1", [
|
|
3862
3870
|
p.BuiltInName.Accent1_20,
|
|
3863
3871
|
p.BuiltInName.Accent1_40,
|
|
@@ -3888,9 +3896,9 @@ var fa = bo(ho((e, t) => {
|
|
|
3888
3896
|
p.BuiltInName.Accent6_40,
|
|
3889
3897
|
p.BuiltInName.Accent6_60,
|
|
3890
3898
|
p.BuiltInName.Accent6
|
|
3891
|
-
])), b.push((
|
|
3899
|
+
])), b.push((v = c("cellStyle.category.themed"), k = x, mn(gn, { children: [
|
|
3892
3900
|
un(Oo, { orientation: "horizontal" }),
|
|
3893
|
-
un(Ko, { children:
|
|
3901
|
+
un(Ko, { children: v }, v + "-header"),
|
|
3894
3902
|
un(gn, {
|
|
3895
3903
|
sx: {
|
|
3896
3904
|
display: "flex",
|
|
@@ -3899,9 +3907,9 @@ var fa = bo(ho((e, t) => {
|
|
|
3899
3907
|
alignItems: "start",
|
|
3900
3908
|
flexDirection: "row"
|
|
3901
3909
|
},
|
|
3902
|
-
children:
|
|
3903
|
-
},
|
|
3904
|
-
] },
|
|
3910
|
+
children: k
|
|
3911
|
+
}, v + "-presets")
|
|
3912
|
+
] }, v))), b.push(d(c("cellStyle.category.numberFormat"), [
|
|
3905
3913
|
p.BuiltInName.Comma,
|
|
3906
3914
|
p.BuiltInName.Comma0,
|
|
3907
3915
|
p.BuiltInName.Currency,
|
|
@@ -3945,17 +3953,17 @@ var fa = bo(ho((e, t) => {
|
|
|
3945
3953
|
h,
|
|
3946
3954
|
m?.().getTheme(),
|
|
3947
3955
|
c
|
|
3948
|
-
]),
|
|
3956
|
+
]), v = Et((e) => {
|
|
3949
3957
|
if (!u) return null;
|
|
3950
|
-
const t = 18 / b.getDeviceScale(), o = u.createCell(e), n = { vertical:
|
|
3958
|
+
const t = 18 / b.getDeviceScale(), o = u.createCell(e), n = { vertical: k.VerticalAlignment.Center };
|
|
3951
3959
|
return o.getStyle().getFont().getSize() <= t ? o.createCell({ style: { alignment: n } }) : o.createCell({ style: {
|
|
3952
3960
|
alignment: n,
|
|
3953
3961
|
font: { size: t }
|
|
3954
3962
|
} });
|
|
3955
3963
|
}, [u?.createCell]), w = a ?? (!d || d.disabled()), S = So(() => l ? un(ce, {
|
|
3956
|
-
value: h ?
|
|
3964
|
+
value: h ? va(h.getName(), c) : "",
|
|
3957
3965
|
cellStyle: h ? { named: h.getName() } : {},
|
|
3958
|
-
createCell:
|
|
3966
|
+
createCell: v,
|
|
3959
3967
|
className: "outline-hover",
|
|
3960
3968
|
disabled: w,
|
|
3961
3969
|
style: {
|
|
@@ -3971,7 +3979,7 @@ var fa = bo(ho((e, t) => {
|
|
|
3971
3979
|
height: "calc(100% - 2px)",
|
|
3972
3980
|
width: "calc(100% - 1px)"
|
|
3973
3981
|
} }
|
|
3974
|
-
}) : d?.getIcon() ?? un(
|
|
3982
|
+
}) : d?.getIcon() ?? un(kt, {}), [
|
|
3975
3983
|
h,
|
|
3976
3984
|
w,
|
|
3977
3985
|
d,
|
|
@@ -4079,7 +4087,7 @@ var fa = bo(ho((e, t) => {
|
|
|
4079
4087
|
r,
|
|
4080
4088
|
m,
|
|
4081
4089
|
f.isHiddenButtons()
|
|
4082
|
-
]),
|
|
4090
|
+
]), v = fo((e, t) => y[t].getBorders() ?? null, [y]);
|
|
4083
4091
|
return un(gn, {
|
|
4084
4092
|
ref: t,
|
|
4085
4093
|
className: "table-format-preview",
|
|
@@ -4093,7 +4101,7 @@ var fa = bo(ho((e, t) => {
|
|
|
4093
4101
|
},
|
|
4094
4102
|
...p,
|
|
4095
4103
|
children: un(se, {
|
|
4096
|
-
getBorderAt:
|
|
4104
|
+
getBorderAt: v,
|
|
4097
4105
|
rowCount: 5,
|
|
4098
4106
|
columnCount: 5,
|
|
4099
4107
|
forceThinBorder: s,
|
|
@@ -4210,7 +4218,7 @@ var fa = bo(ho((e, t) => {
|
|
|
4210
4218
|
})), Aa = (e) => {
|
|
4211
4219
|
0 === e.button && e.preventDefault();
|
|
4212
4220
|
}, La = bo(ho((e, t) => {
|
|
4213
|
-
const { disabled: o, className: n, sx: r, defaultInput: a, value: l, formName: i, formOptions: s, onChangeInput: c, onChangeText: d, onDone: p, changeOn: u, onValidate: m, apiRef: h, label: g, helperText: b, showError: f = !0, onChangeError: y, hideAdornment: x, propsInput:
|
|
4221
|
+
const { disabled: o, className: n, sx: r, defaultInput: a, value: l, formName: i, formOptions: s, onChangeInput: c, onChangeText: d, onDone: p, changeOn: u, onValidate: m, apiRef: h, label: g, helperText: b, showError: f = !0, onChangeError: y, hideAdornment: x, propsInput: v, onKeyDown: k, onFocus: w, ...S } = e, C = ao(), T = ro(), F = g ?? C("namedInput.label"), D = ur(), N = i && D ? D.register(i, s) : null, I = tt({
|
|
4214
4222
|
value: l ?? "",
|
|
4215
4223
|
onChange: c,
|
|
4216
4224
|
onChangeText: d,
|
|
@@ -4219,7 +4227,7 @@ var fa = bo(ho((e, t) => {
|
|
|
4219
4227
|
onValidate: m,
|
|
4220
4228
|
disabled: o
|
|
4221
4229
|
});
|
|
4222
|
-
|
|
4230
|
+
ko(h, () => I, [I]);
|
|
4223
4231
|
const B = To(D);
|
|
4224
4232
|
B.current = D;
|
|
4225
4233
|
const P = To(y);
|
|
@@ -4251,7 +4259,7 @@ var fa = bo(ho((e, t) => {
|
|
|
4251
4259
|
outlined: !1,
|
|
4252
4260
|
color: "primary",
|
|
4253
4261
|
"aria-label": "commit-input",
|
|
4254
|
-
icon: un(
|
|
4262
|
+
icon: un(kt, { iconKey: "CheckSuccess" }),
|
|
4255
4263
|
propsTooltip: {
|
|
4256
4264
|
label: C("referenceInput.commit"),
|
|
4257
4265
|
simple: !0
|
|
@@ -4267,7 +4275,7 @@ var fa = bo(ho((e, t) => {
|
|
|
4267
4275
|
outlined: !1,
|
|
4268
4276
|
color: "warning",
|
|
4269
4277
|
"aria-label": "cancel-input",
|
|
4270
|
-
icon: un(
|
|
4278
|
+
icon: un(kt, { iconKey: "CloseError" }),
|
|
4271
4279
|
propsTooltip: {
|
|
4272
4280
|
label: C("referenceInput.cancel"),
|
|
4273
4281
|
simple: !0
|
|
@@ -4287,7 +4295,7 @@ var fa = bo(ho((e, t) => {
|
|
|
4287
4295
|
I.cancel,
|
|
4288
4296
|
!!I.error
|
|
4289
4297
|
]);
|
|
4290
|
-
return un(
|
|
4298
|
+
return un(kn, {
|
|
4291
4299
|
sx: {
|
|
4292
4300
|
minWidth: 135,
|
|
4293
4301
|
width: "100%",
|
|
@@ -4312,8 +4320,8 @@ var fa = bo(ho((e, t) => {
|
|
|
4312
4320
|
autoComplete: "off",
|
|
4313
4321
|
onPointerDown: T.onPointerDown,
|
|
4314
4322
|
onDragStart: T.onDragStart,
|
|
4315
|
-
...
|
|
4316
|
-
className: sr("autoFocus",
|
|
4323
|
+
...v,
|
|
4324
|
+
className: sr("autoFocus", v?.className),
|
|
4317
4325
|
name: i,
|
|
4318
4326
|
readOnly: o,
|
|
4319
4327
|
sx: {
|
|
@@ -4330,7 +4338,7 @@ var fa = bo(ho((e, t) => {
|
|
|
4330
4338
|
I.inputProps.onChange(e), N?.onChange(e);
|
|
4331
4339
|
},
|
|
4332
4340
|
onKeyDown: (e) => {
|
|
4333
|
-
I.inputProps.onKeyDown(e), e.defaultPrevented ||
|
|
4341
|
+
I.inputProps.onKeyDown(e), e.defaultPrevented || k?.(e);
|
|
4334
4342
|
},
|
|
4335
4343
|
onFocus: (e) => {
|
|
4336
4344
|
I.inputProps.onFocus(e), w?.(e);
|
|
@@ -4348,7 +4356,7 @@ La.displayName = "InputField";
|
|
|
4348
4356
|
var Ka = (e) => {
|
|
4349
4357
|
0 === e.button && e.preventDefault();
|
|
4350
4358
|
}, Ea = "20px", Wa = "4px", za = `calc(${Ea} + ${Wa})`, Va = bo(ho((e, t) => {
|
|
4351
|
-
const { grammar: o = "formula", formName: n, formOptions: r, disabled: a, className: l, sx: i, onKeyDown: s, onFocus: c, value: d, onChangeInput: p, onChangeText: u, onDone: m, changeOn: h, apiRef: g, workbook: b, home: f, equals: y, pickAs: x, pickSpills:
|
|
4359
|
+
const { grammar: o = "formula", formName: n, formOptions: r, disabled: a, className: l, sx: i, onKeyDown: s, onFocus: c, value: d, onChangeInput: p, onChangeText: u, onDone: m, changeOn: h, apiRef: g, workbook: b, home: f, equals: y, pickAs: x, pickSpills: v, allowMulti: k, allowCrossSheet: w, required: S, label: C, labelPlacement: T = "floating", placeholder: F, helperText: D, showError: N = !0, onChangeError: I, validationError: B, hideAdornment: P, classNameInput: R, argument: M, id: O, ...A } = e, L = ao(), K = "above" === T, E = vo(), W = O ?? E, z = "formula" === o, V = void 0 === C ? L(z ? "formulaInput.label" : "rangeInput.label") : C, H = F ?? L(z ? "formulaInput.placeholder" : "rangeInput.placeholder"), $ = ur(), G = n && $ ? $.register(n, r) : null, U = Xe({
|
|
4352
4360
|
value: d,
|
|
4353
4361
|
onChange: p,
|
|
4354
4362
|
onChangeText: u,
|
|
@@ -4358,13 +4366,13 @@ var Ka = (e) => {
|
|
|
4358
4366
|
home: f,
|
|
4359
4367
|
equals: y,
|
|
4360
4368
|
pickAs: x,
|
|
4361
|
-
pickSpills:
|
|
4362
|
-
allowMulti:
|
|
4369
|
+
pickSpills: v,
|
|
4370
|
+
allowMulti: k,
|
|
4363
4371
|
allowCrossSheet: w,
|
|
4364
4372
|
required: S,
|
|
4365
4373
|
disabled: a
|
|
4366
4374
|
}, o);
|
|
4367
|
-
|
|
4375
|
+
ko(g, () => U, [U]);
|
|
4368
4376
|
const q = Je({
|
|
4369
4377
|
api: U,
|
|
4370
4378
|
grammar: o,
|
|
@@ -4392,7 +4400,7 @@ var Ka = (e) => {
|
|
|
4392
4400
|
outlined: !1,
|
|
4393
4401
|
color: "primary",
|
|
4394
4402
|
"aria-label": "commit-reference",
|
|
4395
|
-
icon: un(
|
|
4403
|
+
icon: un(kt, { iconKey: "CheckSuccess" }),
|
|
4396
4404
|
propsTooltip: {
|
|
4397
4405
|
label: L("referenceInput.commit"),
|
|
4398
4406
|
simple: !0
|
|
@@ -4408,7 +4416,7 @@ var Ka = (e) => {
|
|
|
4408
4416
|
outlined: !1,
|
|
4409
4417
|
color: "warning",
|
|
4410
4418
|
"aria-label": "cancel-reference",
|
|
4411
|
-
icon: un(
|
|
4419
|
+
icon: un(kt, { iconKey: "CloseError" }),
|
|
4412
4420
|
propsTooltip: {
|
|
4413
4421
|
label: L("referenceInput.cancel"),
|
|
4414
4422
|
simple: !0
|
|
@@ -4424,7 +4432,7 @@ var Ka = (e) => {
|
|
|
4424
4432
|
disabled: a || !U.canSelectCurrent,
|
|
4425
4433
|
sx: { "&.Mui-disabled": { opacity: .35 } },
|
|
4426
4434
|
"aria-label": "select-current-range",
|
|
4427
|
-
icon: un(
|
|
4435
|
+
icon: un(kt, { iconKey: "SelectRangeMode" }),
|
|
4428
4436
|
propsTooltip: {
|
|
4429
4437
|
label: L("referenceInput.selectCurrent"),
|
|
4430
4438
|
simple: !0
|
|
@@ -4459,7 +4467,7 @@ var Ka = (e) => {
|
|
|
4459
4467
|
U.cancel,
|
|
4460
4468
|
!!U.error
|
|
4461
4469
|
]);
|
|
4462
|
-
return mn(
|
|
4470
|
+
return mn(kn, {
|
|
4463
4471
|
sx: {
|
|
4464
4472
|
minWidth: 135,
|
|
4465
4473
|
width: "100%",
|
|
@@ -4556,7 +4564,7 @@ var Ka = (e) => {
|
|
|
4556
4564
|
});
|
|
4557
4565
|
}));
|
|
4558
4566
|
Va.displayName = "FormulaField";
|
|
4559
|
-
var Ha = ln(ar("studio:tableDetailsTaskPane", () => import("./
|
|
4567
|
+
var Ha = ln(ar("studio:tableDetailsTaskPane", () => import("./BWIatgbno8eMdTy4.mjs"), { select: (e) => ({ default: e.TableDetailsTaskPane }) }).load), $a = () => V.registerTaskPane({
|
|
4560
4568
|
key: pe.TableDetails,
|
|
4561
4569
|
component: Ha
|
|
4562
4570
|
}, !0), Ga = bo((e) => {
|
|
@@ -4668,15 +4676,15 @@ var Ha = ln(ar("studio:tableDetailsTaskPane", () => import("./i0R7voLYNUjkbop2.m
|
|
|
4668
4676
|
totalsRowCount: 0,
|
|
4669
4677
|
style: e
|
|
4670
4678
|
}
|
|
4671
|
-
}))(g?.getStyleOptions(), h), [h?.getTableStyles().getDefault(), g?.getStyleOptions()]), y = g ?? f, [x,
|
|
4679
|
+
}))(g?.getStyleOptions(), h), [h?.getTableStyles().getDefault(), g?.getStyleOptions()]), y = g ?? f, [x, v] = Fo(y);
|
|
4672
4680
|
xo(() => {
|
|
4673
|
-
|
|
4681
|
+
v(y);
|
|
4674
4682
|
}, [y]);
|
|
4675
|
-
const
|
|
4683
|
+
const k = Et((e) => {
|
|
4676
4684
|
r?.(e), p?.execute({ name: e });
|
|
4677
4685
|
}, [p, r]), w = To(null), S = fo((e) => {
|
|
4678
4686
|
const t = {
|
|
4679
|
-
onSelectTableStyleName:
|
|
4687
|
+
onSelectTableStyleName: k,
|
|
4680
4688
|
styles: h
|
|
4681
4689
|
};
|
|
4682
4690
|
w.current || (w.current = document.createElement("canvas"));
|
|
@@ -5171,7 +5179,7 @@ var Xa = [
|
|
|
5171
5179
|
})
|
|
5172
5180
|
});
|
|
5173
5181
|
})), tl = bo(ho((e, t) => {
|
|
5174
|
-
const { themes: o, selectedTheme: n, onSelectTheme: r, icon: a, tooltip: l, label: i, variant: s = qo.Toolbar, darkMode: c, propsPanel: d, ...p } = e, u = a || un(
|
|
5182
|
+
const { themes: o, selectedTheme: n, onSelectTheme: r, icon: a, tooltip: l, label: i, variant: s = qo.Toolbar, darkMode: c, propsPanel: d, ...p } = e, u = a || un(kt, { iconKey: "Theme2" }), m = {
|
|
5175
5183
|
renderPopupPanel: fo((e) => {
|
|
5176
5184
|
const { closeFloatAll: t } = e;
|
|
5177
5185
|
return un(el, {
|
|
@@ -5566,7 +5574,7 @@ var hl = bo((e) => {
|
|
|
5566
5574
|
pb: 1
|
|
5567
5575
|
},
|
|
5568
5576
|
children: [
|
|
5569
|
-
un(Rn, { children: un(
|
|
5577
|
+
un(Rn, { children: un(kt, {}) }),
|
|
5570
5578
|
un(ml, {
|
|
5571
5579
|
label: n("calcOptions.maxIterations"),
|
|
5572
5580
|
value: a?.maxIteration ?? 100,
|
|
@@ -5653,7 +5661,7 @@ var bl = bo(ho((e, t) => {
|
|
|
5653
5661
|
}, [r]), un(No, {
|
|
5654
5662
|
ref: t,
|
|
5655
5663
|
commandKey: o,
|
|
5656
|
-
icon: un(
|
|
5664
|
+
icon: un(kt, {
|
|
5657
5665
|
iconKey: "copy.walking",
|
|
5658
5666
|
propsSource: {
|
|
5659
5667
|
isWalking: a,
|
|
@@ -5687,7 +5695,7 @@ var bl = bo(ho((e, t) => {
|
|
|
5687
5695
|
...Kt("grid", t)
|
|
5688
5696
|
}
|
|
5689
5697
|
};
|
|
5690
|
-
}, xl = "var(--sxl-color-base-100, rgb(255, 255, 255))",
|
|
5698
|
+
}, xl = "var(--sxl-color-base-100, rgb(255, 255, 255))", vl = "var(--sxl-color-base-300, rgb(224, 224, 224))", kl = "var(--sxl-color-primary, rgb(33, 115, 70))", wl = "var(--sxl-color-base-content, rgba(0, 0, 0, 0.87))", Sl = "var(--sxl-color-error, rgb(211, 47, 47))", Cl = (e) => Math.round(e).toString(16).padStart(2, "0"), Tl = (e, o, n) => new t(`#${Cl(e)}${Cl(o)}${Cl(n)}`).toCSS("adaptive"), Fl = (e, t, o, n) => {
|
|
5691
5699
|
if (0 === e.length) return o;
|
|
5692
5700
|
const r = (t) => fl(e[t].color, n)?.toRGBA() ?? null;
|
|
5693
5701
|
if (1 === e.length) {
|
|
@@ -5731,7 +5739,7 @@ var bl = bo(ho((e, t) => {
|
|
|
5731
5739
|
const { rows: t, ...o } = e, n = et(), r = (e, o) => ({
|
|
5732
5740
|
borderRight: o < 2 ? 1 : 0,
|
|
5733
5741
|
borderBottom: e < t.length - 1 ? 1 : 0,
|
|
5734
|
-
borderColor:
|
|
5742
|
+
borderColor: vl,
|
|
5735
5743
|
minWidth: 0,
|
|
5736
5744
|
overflow: "hidden",
|
|
5737
5745
|
display: "flex",
|
|
@@ -5781,7 +5789,7 @@ var Pl = bo((e) => {
|
|
|
5781
5789
|
overflow: "hidden",
|
|
5782
5790
|
background: o ? xl : "none",
|
|
5783
5791
|
color: o ? wl : void 0,
|
|
5784
|
-
border: (e) => `1px solid ${o ?
|
|
5792
|
+
border: (e) => `1px solid ${o ? vl : e.palette.divider}`,
|
|
5785
5793
|
borderRadius: 1,
|
|
5786
5794
|
fontSize: "12px",
|
|
5787
5795
|
lineHeight: 1,
|
|
@@ -5968,23 +5976,35 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
5968
5976
|
groupKey: o,
|
|
5969
5977
|
propsPanel: { disableAlpha: !0 }
|
|
5970
5978
|
}), _l = () => {
|
|
5971
|
-
|
|
5979
|
+
vt.register({
|
|
5972
5980
|
key: "insertImageInCellOptions",
|
|
5973
5981
|
members: ["insertImageInCellFromFile", "insertImageInCellFromURL"]
|
|
5974
|
-
}, !0),
|
|
5982
|
+
}, !0), vt.register({
|
|
5975
5983
|
key: "insertImageOverCellsOptions",
|
|
5976
5984
|
members: ["insertImageFromFile", "insertImageFromURL"]
|
|
5977
|
-
}, !0),
|
|
5985
|
+
}, !0), vt.register({
|
|
5978
5986
|
key: "insertImageOptions",
|
|
5979
5987
|
members: ["insertImageInCellOptions", "insertImageOverCellsOptions"]
|
|
5980
|
-
}, !0),
|
|
5988
|
+
}, !0), vt.register({
|
|
5981
5989
|
key: "insertSparklineOptions",
|
|
5982
5990
|
members: [
|
|
5983
5991
|
"insertSparklineLine",
|
|
5984
5992
|
"insertSparklineColumn",
|
|
5985
5993
|
"insertSparklineWinLoss"
|
|
5986
5994
|
]
|
|
5987
|
-
}, !0),
|
|
5995
|
+
}, !0), vt.register({
|
|
5996
|
+
key: "commentOptions",
|
|
5997
|
+
defaultKey: "updateComments",
|
|
5998
|
+
members: [
|
|
5999
|
+
"updateComments",
|
|
6000
|
+
"showCommentsPane",
|
|
6001
|
+
"-",
|
|
6002
|
+
"previousComment",
|
|
6003
|
+
"nextComment",
|
|
6004
|
+
"-",
|
|
6005
|
+
"deleteComments"
|
|
6006
|
+
]
|
|
6007
|
+
}, !0), vt.register({
|
|
5988
6008
|
key: "sheetBackgroundOptions",
|
|
5989
6009
|
defaultKey: "sheetBackgroundToggle",
|
|
5990
6010
|
showLabel: !0,
|
|
@@ -5994,7 +6014,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
5994
6014
|
"-",
|
|
5995
6015
|
"sheetBackgroundDelete"
|
|
5996
6016
|
]
|
|
5997
|
-
}, !0),
|
|
6017
|
+
}, !0), vt.register({
|
|
5998
6018
|
key: "mergeOptions",
|
|
5999
6019
|
defaultKey: "mergeToggle",
|
|
6000
6020
|
members: [
|
|
@@ -6004,7 +6024,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6004
6024
|
"-",
|
|
6005
6025
|
"unmerge"
|
|
6006
6026
|
]
|
|
6007
|
-
}, !0),
|
|
6027
|
+
}, !0), vt.register({
|
|
6008
6028
|
key: "underlineOptions",
|
|
6009
6029
|
render: (e, t) => un(Qo, {
|
|
6010
6030
|
...e,
|
|
@@ -6017,7 +6037,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6017
6037
|
"formatUnderlinedAccountingToggle",
|
|
6018
6038
|
"formatUnderlinedAccountingDoubleToggle"
|
|
6019
6039
|
]
|
|
6020
|
-
}, !0),
|
|
6040
|
+
}, !0), vt.register({
|
|
6021
6041
|
key: "textOverflowOptions",
|
|
6022
6042
|
render: (e, t) => un(Qo, {
|
|
6023
6043
|
...e,
|
|
@@ -6032,7 +6052,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6032
6052
|
"-",
|
|
6033
6053
|
"formatTextOverflowShrinkToggle"
|
|
6034
6054
|
]
|
|
6035
|
-
}, !0),
|
|
6055
|
+
}, !0), vt.register({
|
|
6036
6056
|
key: "sortOptions",
|
|
6037
6057
|
defaultKey: "sortAscending",
|
|
6038
6058
|
showLabel: !0,
|
|
@@ -6041,7 +6061,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6041
6061
|
"sortDescending",
|
|
6042
6062
|
"sortCustom"
|
|
6043
6063
|
]
|
|
6044
|
-
}, !0),
|
|
6064
|
+
}, !0), vt.register({
|
|
6045
6065
|
key: "filterOptions",
|
|
6046
6066
|
defaultKey: "tableFilterToggle",
|
|
6047
6067
|
showLabel: !0,
|
|
@@ -6050,7 +6070,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6050
6070
|
"tableFilterClear",
|
|
6051
6071
|
"tableFilterRefresh"
|
|
6052
6072
|
]
|
|
6053
|
-
}, !0),
|
|
6073
|
+
}, !0), vt.register({
|
|
6054
6074
|
key: "dataTextToColumnsOptions",
|
|
6055
6075
|
defaultKey: "dataTextToColumns",
|
|
6056
6076
|
showLabel: !0,
|
|
@@ -6089,7 +6109,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6089
6109
|
})
|
|
6090
6110
|
}
|
|
6091
6111
|
]
|
|
6092
|
-
}, !0),
|
|
6112
|
+
}, !0), vt.register({
|
|
6093
6113
|
key: "fillOptions",
|
|
6094
6114
|
members: [
|
|
6095
6115
|
"fillDown",
|
|
@@ -6099,16 +6119,19 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6099
6119
|
"-",
|
|
6100
6120
|
"fillSeries"
|
|
6101
6121
|
]
|
|
6102
|
-
}, !0),
|
|
6122
|
+
}, !0), vt.register({
|
|
6103
6123
|
key: "clearOptions",
|
|
6104
6124
|
members: [
|
|
6105
6125
|
"clearAll",
|
|
6106
6126
|
"clearFormats",
|
|
6107
6127
|
"clearContents",
|
|
6128
|
+
"clearFormulas",
|
|
6108
6129
|
"clearComments",
|
|
6130
|
+
"clearNotes",
|
|
6131
|
+
"-",
|
|
6109
6132
|
"clearHyperlinks"
|
|
6110
6133
|
]
|
|
6111
|
-
}, !0),
|
|
6134
|
+
}, !0), vt.register({
|
|
6112
6135
|
key: "conditionalFormatHighlightOptions",
|
|
6113
6136
|
members: [
|
|
6114
6137
|
"conditionalFormatGreaterThan",
|
|
@@ -6120,7 +6143,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6120
6143
|
"conditionalFormatDateOccurring",
|
|
6121
6144
|
"conditionalFormatDuplicateValues"
|
|
6122
6145
|
]
|
|
6123
|
-
}, !0),
|
|
6146
|
+
}, !0), vt.register({
|
|
6124
6147
|
key: "conditionalFormatTopBottomOptions",
|
|
6125
6148
|
members: [
|
|
6126
6149
|
"conditionalFormatTopItems",
|
|
@@ -6131,13 +6154,13 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6131
6154
|
"conditionalFormatAboveAverage",
|
|
6132
6155
|
"conditionalFormatBelowAverage"
|
|
6133
6156
|
]
|
|
6134
|
-
}, !0),
|
|
6157
|
+
}, !0), vt.register({
|
|
6135
6158
|
key: "conditionalFormatClearOptions",
|
|
6136
6159
|
members: ["conditionalFormatClearSelection", "conditionalFormatClearSheet"]
|
|
6137
|
-
}, !0),
|
|
6160
|
+
}, !0), vt.register({
|
|
6138
6161
|
key: "dataValidationClearOptions",
|
|
6139
6162
|
members: ["dataValidationClearSelection", "dataValidationClearSheet"]
|
|
6140
|
-
}, !0),
|
|
6163
|
+
}, !0), vt.register({
|
|
6141
6164
|
key: "dataValidationOptions",
|
|
6142
6165
|
members: [
|
|
6143
6166
|
"dataValidationList",
|
|
@@ -6149,7 +6172,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6149
6172
|
"dataValidationClearOptions",
|
|
6150
6173
|
"manageDataValidation"
|
|
6151
6174
|
]
|
|
6152
|
-
}, !0),
|
|
6175
|
+
}, !0), vt.register({
|
|
6153
6176
|
key: "conditionalFormatOptions",
|
|
6154
6177
|
members: [
|
|
6155
6178
|
"conditionalFormatHighlightOptions",
|
|
@@ -6163,7 +6186,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6163
6186
|
"conditionalFormatClearOptions",
|
|
6164
6187
|
"manageConditionalFormat"
|
|
6165
6188
|
]
|
|
6166
|
-
}, !0),
|
|
6189
|
+
}, !0), vt.register({
|
|
6167
6190
|
key: "pasteOptions",
|
|
6168
6191
|
defaultKey: "paste",
|
|
6169
6192
|
members: [
|
|
@@ -6175,13 +6198,13 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6175
6198
|
"pasteTranspose",
|
|
6176
6199
|
"pasteLinks"
|
|
6177
6200
|
]
|
|
6178
|
-
}, !0),
|
|
6201
|
+
}, !0), vt.register({
|
|
6179
6202
|
key: "copy",
|
|
6180
6203
|
render: (e) => un(bl, {
|
|
6181
6204
|
...e,
|
|
6182
6205
|
commandKey: "copy"
|
|
6183
6206
|
})
|
|
6184
|
-
}, !0),
|
|
6207
|
+
}, !0), vt.register({
|
|
6185
6208
|
key: "sortFilterOptions",
|
|
6186
6209
|
defaultKey: "tableFilterToggle",
|
|
6187
6210
|
members: [
|
|
@@ -6193,7 +6216,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6193
6216
|
"tableFilterClear",
|
|
6194
6217
|
"tableFilterRefresh"
|
|
6195
6218
|
]
|
|
6196
|
-
}, !0),
|
|
6219
|
+
}, !0), vt.register({
|
|
6197
6220
|
key: "findOptions",
|
|
6198
6221
|
defaultKey: "find",
|
|
6199
6222
|
members: [
|
|
@@ -6201,7 +6224,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6201
6224
|
"findReplace",
|
|
6202
6225
|
"goto"
|
|
6203
6226
|
]
|
|
6204
|
-
}, !0),
|
|
6227
|
+
}, !0), vt.register({
|
|
6205
6228
|
key: "insertFunctionSumOptions",
|
|
6206
6229
|
defaultKey: "insertFunctionSum",
|
|
6207
6230
|
members: [
|
|
@@ -6221,11 +6244,11 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6221
6244
|
"insertRows",
|
|
6222
6245
|
"insertColumns"
|
|
6223
6246
|
];
|
|
6224
|
-
|
|
6247
|
+
vt.register({
|
|
6225
6248
|
key: "insertCellsOptions",
|
|
6226
6249
|
defaultKey: "insertCells",
|
|
6227
6250
|
members: e
|
|
6228
|
-
}, !0),
|
|
6251
|
+
}, !0), vt.register({
|
|
6229
6252
|
key: "insertSheetOptions",
|
|
6230
6253
|
defaultKey: "insertCells",
|
|
6231
6254
|
members: [
|
|
@@ -6241,11 +6264,11 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6241
6264
|
"deleteRows",
|
|
6242
6265
|
"deleteColumns"
|
|
6243
6266
|
];
|
|
6244
|
-
|
|
6267
|
+
vt.register({
|
|
6245
6268
|
key: "deleteCellsOptions",
|
|
6246
6269
|
defaultKey: "deleteCells",
|
|
6247
6270
|
members: t
|
|
6248
|
-
}, !0),
|
|
6271
|
+
}, !0), vt.register({
|
|
6249
6272
|
key: "deleteSheetOptions",
|
|
6250
6273
|
defaultKey: "deleteCells",
|
|
6251
6274
|
members: [
|
|
@@ -6253,7 +6276,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6253
6276
|
"-",
|
|
6254
6277
|
"deleteSheet"
|
|
6255
6278
|
]
|
|
6256
|
-
}, !0),
|
|
6279
|
+
}, !0), vt.register({
|
|
6257
6280
|
key: "groupOptions",
|
|
6258
6281
|
defaultKey: "group",
|
|
6259
6282
|
members: [
|
|
@@ -6263,7 +6286,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6263
6286
|
"autoOutline",
|
|
6264
6287
|
"outlineSettings"
|
|
6265
6288
|
]
|
|
6266
|
-
}, !0),
|
|
6289
|
+
}, !0), vt.register({
|
|
6267
6290
|
key: "ungroupOptions",
|
|
6268
6291
|
defaultKey: "ungroup",
|
|
6269
6292
|
members: [
|
|
@@ -6272,10 +6295,10 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6272
6295
|
"-",
|
|
6273
6296
|
"clearOutline"
|
|
6274
6297
|
]
|
|
6275
|
-
}, !0),
|
|
6298
|
+
}, !0), vt.register({
|
|
6276
6299
|
key: "textEffectsOptions",
|
|
6277
6300
|
render: (e) => un(ya, { ...e })
|
|
6278
|
-
}, !0),
|
|
6301
|
+
}, !0), vt.register({
|
|
6279
6302
|
key: "horizontalAlignOptions",
|
|
6280
6303
|
render: (e, t) => un(Qo, {
|
|
6281
6304
|
...e,
|
|
@@ -6309,7 +6332,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6309
6332
|
"formatAlignFillToggle",
|
|
6310
6333
|
"formatAlignDistributedHorizontalToggle"
|
|
6311
6334
|
]
|
|
6312
|
-
}, !0),
|
|
6335
|
+
}, !0), vt.register({
|
|
6313
6336
|
key: "verticalAlignOptions",
|
|
6314
6337
|
render: (e, t) => un(Qo, {
|
|
6315
6338
|
...e,
|
|
@@ -6325,7 +6348,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6325
6348
|
"formatAlignJustifyVerticalToggle",
|
|
6326
6349
|
"formatAlignDistributedVerticalToggle"
|
|
6327
6350
|
]
|
|
6328
|
-
}, !0),
|
|
6351
|
+
}, !0), vt.register({
|
|
6329
6352
|
key: "textRotateOptions",
|
|
6330
6353
|
render: (e, t) => un(Fr, {
|
|
6331
6354
|
...e,
|
|
@@ -6342,7 +6365,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6342
6365
|
"-",
|
|
6343
6366
|
"formatTextRotateCustom"
|
|
6344
6367
|
]
|
|
6345
|
-
}, !0),
|
|
6368
|
+
}, !0), vt.register({
|
|
6346
6369
|
key: "formatTextRotateCustom",
|
|
6347
6370
|
render: (e) => un(Ho, {
|
|
6348
6371
|
...e,
|
|
@@ -6358,25 +6381,25 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6358
6381
|
maxLength: 4
|
|
6359
6382
|
}
|
|
6360
6383
|
})
|
|
6361
|
-
}, !0),
|
|
6384
|
+
}, !0), vt.register({
|
|
6362
6385
|
key: "numberFormatOptions",
|
|
6363
6386
|
render: (e, t) => un(pa, {
|
|
6364
6387
|
...e,
|
|
6365
6388
|
groupKey: t
|
|
6366
6389
|
})
|
|
6367
|
-
}, !0),
|
|
6390
|
+
}, !0), vt.register({
|
|
6368
6391
|
key: "sheetZoomOptions",
|
|
6369
6392
|
render: (e, t) => un(Nr, {
|
|
6370
6393
|
...e,
|
|
6371
6394
|
groupKey: t
|
|
6372
6395
|
})
|
|
6373
|
-
}, !0),
|
|
6396
|
+
}, !0), vt.register({
|
|
6374
6397
|
key: "formatCellStyle",
|
|
6375
6398
|
render: (e) => un(Sa, {
|
|
6376
6399
|
...e,
|
|
6377
6400
|
commandKey: "formatCellStyle"
|
|
6378
6401
|
})
|
|
6379
|
-
}, !0),
|
|
6402
|
+
}, !0), vt.register({
|
|
6380
6403
|
key: "formatTableStyle",
|
|
6381
6404
|
contributions: { tableToolbar: {
|
|
6382
6405
|
anchor: "formatTableStyleClearTableStyle",
|
|
@@ -6386,14 +6409,14 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6386
6409
|
...e,
|
|
6387
6410
|
commandKey: "formatTableStyle"
|
|
6388
6411
|
})
|
|
6389
|
-
}, !0),
|
|
6412
|
+
}, !0), vt.register({
|
|
6390
6413
|
key: "sparklineColorSeries",
|
|
6391
6414
|
contributions: { sparklineToolbar: {
|
|
6392
6415
|
anchor: "sparklineAxisOptions",
|
|
6393
6416
|
order: -2
|
|
6394
6417
|
} },
|
|
6395
6418
|
render: jl("sparklineColorSeries")
|
|
6396
|
-
}, !0),
|
|
6419
|
+
}, !0), vt.register({
|
|
6397
6420
|
key: "sparklineMarkerColorOptions",
|
|
6398
6421
|
contributions: { sparklineToolbar: {
|
|
6399
6422
|
anchor: "sparklineAxisOptions",
|
|
@@ -6408,25 +6431,25 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6408
6431
|
"sparklineColorFirst",
|
|
6409
6432
|
"sparklineColorLast"
|
|
6410
6433
|
]
|
|
6411
|
-
}, !0),
|
|
6434
|
+
}, !0), vt.register({
|
|
6412
6435
|
key: "sparklineColorNegative",
|
|
6413
6436
|
render: jl("sparklineColorNegative")
|
|
6414
|
-
}, !0),
|
|
6437
|
+
}, !0), vt.register({
|
|
6415
6438
|
key: "sparklineColorMarkers",
|
|
6416
6439
|
render: jl("sparklineColorMarkers")
|
|
6417
|
-
}, !0),
|
|
6440
|
+
}, !0), vt.register({
|
|
6418
6441
|
key: "sparklineColorHigh",
|
|
6419
6442
|
render: jl("sparklineColorHigh")
|
|
6420
|
-
}, !0),
|
|
6443
|
+
}, !0), vt.register({
|
|
6421
6444
|
key: "sparklineColorLow",
|
|
6422
6445
|
render: jl("sparklineColorLow")
|
|
6423
|
-
}, !0),
|
|
6446
|
+
}, !0), vt.register({
|
|
6424
6447
|
key: "sparklineColorFirst",
|
|
6425
6448
|
render: jl("sparklineColorFirst")
|
|
6426
|
-
}, !0),
|
|
6449
|
+
}, !0), vt.register({
|
|
6427
6450
|
key: "sparklineColorLast",
|
|
6428
6451
|
render: jl("sparklineColorLast")
|
|
6429
|
-
}, !0),
|
|
6452
|
+
}, !0), vt.register({
|
|
6430
6453
|
key: "sparklineOptions",
|
|
6431
6454
|
members: [
|
|
6432
6455
|
"sparklineEditData",
|
|
@@ -6434,20 +6457,20 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6434
6457
|
"sparklineClear",
|
|
6435
6458
|
"sparklineClearGroups"
|
|
6436
6459
|
]
|
|
6437
|
-
}, !0),
|
|
6460
|
+
}, !0), vt.register({
|
|
6438
6461
|
key: "sparklineColorAxis",
|
|
6439
6462
|
contributions: { sparklineAxisOptions: {
|
|
6440
6463
|
anchor: "sparklineRightToLeftToggle",
|
|
6441
6464
|
order: -1
|
|
6442
6465
|
} },
|
|
6443
6466
|
render: jl("sparklineColorAxis")
|
|
6444
|
-
}, !0),
|
|
6467
|
+
}, !0), vt.register({
|
|
6445
6468
|
key: "formatPivotStyle",
|
|
6446
6469
|
render: (e) => un(Ya, {
|
|
6447
6470
|
...e,
|
|
6448
6471
|
commandKey: "formatPivotStyle"
|
|
6449
6472
|
})
|
|
6450
|
-
}, !0),
|
|
6473
|
+
}, !0), vt.register({
|
|
6451
6474
|
key: "conditionalFormatDataBar",
|
|
6452
6475
|
render: (e, t) => un(ql, {
|
|
6453
6476
|
...e,
|
|
@@ -6455,7 +6478,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6455
6478
|
commandKey: "conditionalFormatDataBar",
|
|
6456
6479
|
scaleType: "dataBar"
|
|
6457
6480
|
})
|
|
6458
|
-
}, !0),
|
|
6481
|
+
}, !0), vt.register({
|
|
6459
6482
|
key: "conditionalFormatColorScale",
|
|
6460
6483
|
render: (e, t) => un(ql, {
|
|
6461
6484
|
...e,
|
|
@@ -6463,7 +6486,7 @@ var jl = (e) => (t, o) => un(ba, {
|
|
|
6463
6486
|
commandKey: "conditionalFormatColorScale",
|
|
6464
6487
|
scaleType: "colorScale"
|
|
6465
6488
|
})
|
|
6466
|
-
}, !0),
|
|
6489
|
+
}, !0), vt.register({
|
|
6467
6490
|
key: "conditionalFormatIconSet",
|
|
6468
6491
|
render: (e, t) => un(ql, {
|
|
6469
6492
|
...e,
|
|
@@ -6780,7 +6803,7 @@ var Xl = bo(ho((e, t) => {
|
|
|
6780
6803
|
disabled: t,
|
|
6781
6804
|
children: e
|
|
6782
6805
|
}),
|
|
6783
|
-
icon: un(
|
|
6806
|
+
icon: un(kt, { iconKey: "Locale" }),
|
|
6784
6807
|
label: i?.getLabel?.(),
|
|
6785
6808
|
...r
|
|
6786
6809
|
});
|
|
@@ -6812,7 +6835,7 @@ var ri = "insertCellControlOptions", ai = bo(ho((e, t) => {
|
|
|
6812
6835
|
key: "insertCellControl",
|
|
6813
6836
|
state: e.type,
|
|
6814
6837
|
getLabel: () => e.label,
|
|
6815
|
-
getIcon: () => "string" == typeof e.icon ? un(
|
|
6838
|
+
getIcon: () => "string" == typeof e.icon ? un(kt, { iconKey: e.icon }) : e.icon
|
|
6816
6839
|
})),
|
|
6817
6840
|
"-",
|
|
6818
6841
|
{ key: "formatCellControl" }
|
|
@@ -7065,7 +7088,7 @@ var li = bo((e) => {
|
|
|
7065
7088
|
label: c(e.label),
|
|
7066
7089
|
simple: !0
|
|
7067
7090
|
},
|
|
7068
|
-
icon: un(
|
|
7091
|
+
icon: un(kt, { iconKey: Ze(e.key) }),
|
|
7069
7092
|
onClick: () => {
|
|
7070
7093
|
t?.(), b(e);
|
|
7071
7094
|
}
|
|
@@ -7101,11 +7124,11 @@ var li = bo((e) => {
|
|
|
7101
7124
|
label: r ?? d?.getLabel(o),
|
|
7102
7125
|
disabled: u,
|
|
7103
7126
|
selected: !1,
|
|
7104
|
-
icon: a ?? un(
|
|
7127
|
+
icon: a ?? un(kt, { iconKey: Ze("Shapes") }),
|
|
7105
7128
|
...s
|
|
7106
7129
|
});
|
|
7107
7130
|
})), pi = () => {
|
|
7108
|
-
_l(),
|
|
7131
|
+
_l(), vt.register({
|
|
7109
7132
|
key: "hideUnhideOptions",
|
|
7110
7133
|
members: [
|
|
7111
7134
|
"hideColumns",
|
|
@@ -7115,7 +7138,7 @@ var li = bo((e) => {
|
|
|
7115
7138
|
"unhideColumns",
|
|
7116
7139
|
"unhideRows"
|
|
7117
7140
|
]
|
|
7118
|
-
}, !0),
|
|
7141
|
+
}, !0), vt.register({
|
|
7119
7142
|
key: "cellsFormatOptions",
|
|
7120
7143
|
members: [
|
|
7121
7144
|
"resizeRows",
|
|
@@ -7128,22 +7151,22 @@ var li = bo((e) => {
|
|
|
7128
7151
|
"-",
|
|
7129
7152
|
"formatCells"
|
|
7130
7153
|
]
|
|
7131
|
-
}, !0),
|
|
7154
|
+
}, !0), vt.register({
|
|
7132
7155
|
key: "formatFontFamily",
|
|
7133
7156
|
render: (e) => un(fa, {
|
|
7134
7157
|
...e,
|
|
7135
7158
|
commandKey: "formatFontFamily"
|
|
7136
7159
|
})
|
|
7137
|
-
}, !0),
|
|
7160
|
+
}, !0), vt.register({
|
|
7138
7161
|
key: "formatFontSize",
|
|
7139
7162
|
render: (e) => un(ea, {
|
|
7140
7163
|
...e,
|
|
7141
7164
|
commandKey: "formatFontSize"
|
|
7142
7165
|
})
|
|
7143
|
-
}, !0),
|
|
7166
|
+
}, !0), vt.register({
|
|
7144
7167
|
key: "formatBorder",
|
|
7145
7168
|
render: (e) => un(Jr, { ...e })
|
|
7146
|
-
}, !0),
|
|
7169
|
+
}, !0), vt.register({
|
|
7147
7170
|
key: "formatFontColor",
|
|
7148
7171
|
render: (e) => un(ba, {
|
|
7149
7172
|
...e,
|
|
@@ -7151,7 +7174,7 @@ var li = bo((e) => {
|
|
|
7151
7174
|
isSplit: !0,
|
|
7152
7175
|
propsPanel: { disableAlpha: !0 }
|
|
7153
7176
|
})
|
|
7154
|
-
}, !0),
|
|
7177
|
+
}, !0), vt.register({
|
|
7155
7178
|
key: "formatFillColor",
|
|
7156
7179
|
render: (e) => un(ba, {
|
|
7157
7180
|
...e,
|
|
@@ -7163,7 +7186,7 @@ var li = bo((e) => {
|
|
|
7163
7186
|
autoColorPosition: Br.End
|
|
7164
7187
|
}
|
|
7165
7188
|
})
|
|
7166
|
-
}, !0),
|
|
7189
|
+
}, !0), vt.register({
|
|
7167
7190
|
key: "homeToolbar",
|
|
7168
7191
|
members: [
|
|
7169
7192
|
"-",
|
|
@@ -7203,7 +7226,7 @@ var li = bo((e) => {
|
|
|
7203
7226
|
"sortFilterOptions",
|
|
7204
7227
|
"findOptions"
|
|
7205
7228
|
]
|
|
7206
|
-
}, !0),
|
|
7229
|
+
}, !0), vt.register({
|
|
7207
7230
|
key: "dataToolbar",
|
|
7208
7231
|
members: [
|
|
7209
7232
|
"refreshAll",
|
|
@@ -7237,14 +7260,14 @@ var li = bo((e) => {
|
|
|
7237
7260
|
"database",
|
|
7238
7261
|
"web"
|
|
7239
7262
|
];
|
|
7240
|
-
for (const t of e)
|
|
7263
|
+
for (const t of e) vt.register({
|
|
7241
7264
|
key: `formulaCategory.${t}`,
|
|
7242
7265
|
render: (e) => un(Yl, {
|
|
7243
7266
|
category: t,
|
|
7244
7267
|
...e
|
|
7245
7268
|
})
|
|
7246
7269
|
}, !0);
|
|
7247
|
-
|
|
7270
|
+
vt.register({
|
|
7248
7271
|
key: "formulaToolbar",
|
|
7249
7272
|
members: [
|
|
7250
7273
|
{
|
|
@@ -7264,14 +7287,15 @@ var li = bo((e) => {
|
|
|
7264
7287
|
"calculateAll",
|
|
7265
7288
|
"calculate"
|
|
7266
7289
|
]
|
|
7267
|
-
}, !0),
|
|
7290
|
+
}, !0), vt.register({
|
|
7268
7291
|
key: "calculationOptions",
|
|
7269
7292
|
render: (e) => un(gl, { ...e })
|
|
7270
|
-
}, !0),
|
|
7293
|
+
}, !0), vt.register({
|
|
7271
7294
|
key: "insertToolbar",
|
|
7272
7295
|
members: [
|
|
7273
7296
|
"insertPivotTable",
|
|
7274
7297
|
"insertTable",
|
|
7298
|
+
"-",
|
|
7275
7299
|
"insertImageOptions",
|
|
7276
7300
|
{ render: (e) => un(di, {
|
|
7277
7301
|
...e,
|
|
@@ -7284,10 +7308,9 @@ var li = bo((e) => {
|
|
|
7284
7308
|
"insertSparklineOptions",
|
|
7285
7309
|
"-",
|
|
7286
7310
|
"updateHyperlink",
|
|
7287
|
-
"editNote",
|
|
7288
7311
|
"updateComments"
|
|
7289
7312
|
]
|
|
7290
|
-
}, !0),
|
|
7313
|
+
}, !0), vt.register({
|
|
7291
7314
|
key: "contextMenu",
|
|
7292
7315
|
members: [
|
|
7293
7316
|
"cut",
|
|
@@ -7304,7 +7327,7 @@ var li = bo((e) => {
|
|
|
7304
7327
|
"-",
|
|
7305
7328
|
"sortFilterOptions"
|
|
7306
7329
|
]
|
|
7307
|
-
}, !0), Ue(),
|
|
7330
|
+
}, !0), Ue(), vt.register({
|
|
7308
7331
|
key: "movableContextMenu",
|
|
7309
7332
|
members: [
|
|
7310
7333
|
"copy",
|
|
@@ -7322,7 +7345,7 @@ var li = bo((e) => {
|
|
|
7322
7345
|
"-",
|
|
7323
7346
|
"formatMovable"
|
|
7324
7347
|
]
|
|
7325
|
-
}, !0),
|
|
7348
|
+
}, !0), vt.register({
|
|
7326
7349
|
key: "sheetTabMenu",
|
|
7327
7350
|
members: [
|
|
7328
7351
|
"addSheet",
|
|
@@ -7332,7 +7355,7 @@ var li = bo((e) => {
|
|
|
7332
7355
|
{ render: () => un(ba, {
|
|
7333
7356
|
variant: yt.Menuitem,
|
|
7334
7357
|
commandKey: "formatSheetTabColor",
|
|
7335
|
-
icon: un(
|
|
7358
|
+
icon: un(kt, { iconKey: "stroke.colored" }),
|
|
7336
7359
|
propsPanel: {
|
|
7337
7360
|
disableAlpha: !0,
|
|
7338
7361
|
autoColorLabelKey: lr("color.noTabColor"),
|
|
@@ -7342,7 +7365,7 @@ var li = bo((e) => {
|
|
|
7342
7365
|
"-",
|
|
7343
7366
|
"hideSheet"
|
|
7344
7367
|
]
|
|
7345
|
-
}, !0),
|
|
7368
|
+
}, !0), vt.register({
|
|
7346
7369
|
key: "freezeOptions",
|
|
7347
7370
|
defaultKey: "freezeToggle",
|
|
7348
7371
|
members: [
|
|
@@ -7352,7 +7375,7 @@ var li = bo((e) => {
|
|
|
7352
7375
|
"-",
|
|
7353
7376
|
"unfreeze"
|
|
7354
7377
|
]
|
|
7355
|
-
}, !0),
|
|
7378
|
+
}, !0), vt.register({
|
|
7356
7379
|
key: "protectionOptions",
|
|
7357
7380
|
defaultKey: "protectionSheetProtectOrPause",
|
|
7358
7381
|
members: [
|
|
@@ -7364,7 +7387,7 @@ var li = bo((e) => {
|
|
|
7364
7387
|
"-",
|
|
7365
7388
|
"manageProtection"
|
|
7366
7389
|
]
|
|
7367
|
-
}, !0),
|
|
7390
|
+
}, !0), vt.register({
|
|
7368
7391
|
key: "gridlinesOptions",
|
|
7369
7392
|
defaultKey: "gridlinesToggle",
|
|
7370
7393
|
showLabel: !0,
|
|
@@ -7373,14 +7396,14 @@ var li = bo((e) => {
|
|
|
7373
7396
|
{ render: (e) => un(ba, {
|
|
7374
7397
|
...e,
|
|
7375
7398
|
commandKey: "sheetViewFormatGridlinesColor",
|
|
7376
|
-
icon: un(
|
|
7399
|
+
icon: un(kt, { iconKey: "stroke.colored" }),
|
|
7377
7400
|
propsPanel: { disableAlpha: !0 }
|
|
7378
7401
|
}) },
|
|
7379
7402
|
"-",
|
|
7380
7403
|
"sheetViewToggleGridlinesColumns",
|
|
7381
7404
|
"sheetViewToggleGridlinesRows"
|
|
7382
7405
|
]
|
|
7383
|
-
}, !0),
|
|
7406
|
+
}, !0), vt.register({
|
|
7384
7407
|
key: "headingsOptions",
|
|
7385
7408
|
defaultKey: "sheetViewToggleShowHeadings",
|
|
7386
7409
|
showLabel: !0,
|
|
@@ -7391,13 +7414,13 @@ var li = bo((e) => {
|
|
|
7391
7414
|
"sheetViewToggleShowHeadingColumns",
|
|
7392
7415
|
"sheetViewToggleShowHeadingRows"
|
|
7393
7416
|
]
|
|
7394
|
-
}, !0),
|
|
7417
|
+
}, !0), vt.register({
|
|
7395
7418
|
key: "locale",
|
|
7396
7419
|
render: (e) => un(ei, {
|
|
7397
7420
|
...e,
|
|
7398
7421
|
variant: "menuitem"
|
|
7399
7422
|
})
|
|
7400
|
-
}, !0),
|
|
7423
|
+
}, !0), vt.register({
|
|
7401
7424
|
key: "workbookViewOptions",
|
|
7402
7425
|
showLabel: !0,
|
|
7403
7426
|
members: [
|
|
@@ -7408,27 +7431,24 @@ var li = bo((e) => {
|
|
|
7408
7431
|
"workbookViewToggleShowHorizontalScrollBar",
|
|
7409
7432
|
"workbookViewToggleShowVerticalScrollBar"
|
|
7410
7433
|
]
|
|
7411
|
-
}, !0),
|
|
7434
|
+
}, !0), vt.register({
|
|
7412
7435
|
key: "selectTheme",
|
|
7413
7436
|
render: (e) => un(dl, {
|
|
7414
7437
|
...e,
|
|
7415
7438
|
commandKey: "selectTheme"
|
|
7416
7439
|
})
|
|
7417
|
-
}, !0),
|
|
7440
|
+
}, !0), vt.register({
|
|
7418
7441
|
key: "reviewToolbar",
|
|
7419
7442
|
members: [
|
|
7420
7443
|
"workbookStatistics",
|
|
7421
7444
|
"-",
|
|
7422
|
-
"
|
|
7423
|
-
"previousComment",
|
|
7424
|
-
"nextComment",
|
|
7425
|
-
"showCommentsPane",
|
|
7445
|
+
"commentOptions",
|
|
7426
7446
|
"-",
|
|
7427
7447
|
"editNote",
|
|
7428
7448
|
"-",
|
|
7429
7449
|
"protectionOptions"
|
|
7430
7450
|
]
|
|
7431
|
-
}, !0),
|
|
7451
|
+
}, !0), vt.register({
|
|
7432
7452
|
key: "viewToolbar",
|
|
7433
7453
|
members: [
|
|
7434
7454
|
"sheetZoomOptions",
|
|
@@ -7447,7 +7467,7 @@ var li = bo((e) => {
|
|
|
7447
7467
|
"-",
|
|
7448
7468
|
"selectTheme"
|
|
7449
7469
|
]
|
|
7450
|
-
}, !0),
|
|
7470
|
+
}, !0), vt.register({
|
|
7451
7471
|
key: be,
|
|
7452
7472
|
members: [
|
|
7453
7473
|
"homeToolbar",
|
|
@@ -7535,7 +7555,7 @@ var li = bo((e) => {
|
|
|
7535
7555
|
disabled: t,
|
|
7536
7556
|
children: e
|
|
7537
7557
|
}),
|
|
7538
|
-
icon: un(
|
|
7558
|
+
icon: un(kt, { iconKey: "Language" }),
|
|
7539
7559
|
label: a?.getLabel?.(),
|
|
7540
7560
|
...r
|
|
7541
7561
|
});
|
|
@@ -7548,55 +7568,55 @@ function mi(e) {
|
|
|
7548
7568
|
}
|
|
7549
7569
|
}
|
|
7550
7570
|
var hi = () => {
|
|
7551
|
-
pi(),
|
|
7571
|
+
pi(), vt.register({ key: "fileOptions" }, !0), vt.register({
|
|
7552
7572
|
key: "newWorkbookOptions",
|
|
7553
7573
|
defaultKey: "newWorkbook",
|
|
7554
7574
|
members: ["newWorkbook"]
|
|
7555
|
-
}, !0),
|
|
7575
|
+
}, !0), vt.register({ key: "appearanceOptions" }, !0), vt.register({ key: "insertChartOptions" }, !0), vt.register({
|
|
7556
7576
|
key: "insertCellControlOptions",
|
|
7557
7577
|
defaultKey: "insertCheckbox"
|
|
7558
|
-
}, !0),
|
|
7578
|
+
}, !0), vt.register({ key: "borderOptions" }, !0), vt.register({
|
|
7559
7579
|
key: "insertDataOptions",
|
|
7560
7580
|
defaultKey: "insertDataFromFile",
|
|
7561
7581
|
contributions: { dataToolbar: { order: -1 } },
|
|
7562
7582
|
members: ["insertDataFromFile", "insertDataFromURL"]
|
|
7563
|
-
}, !0),
|
|
7583
|
+
}, !0), vt.register({
|
|
7564
7584
|
key: "undo",
|
|
7565
7585
|
contributions: { homeToolbar: { order: -1 } },
|
|
7566
7586
|
render: (e) => un(ga, {
|
|
7567
7587
|
...e,
|
|
7568
7588
|
quickCommand: "undo"
|
|
7569
7589
|
})
|
|
7570
|
-
}, !0),
|
|
7590
|
+
}, !0), vt.register({
|
|
7571
7591
|
key: "darkModeOptions",
|
|
7572
7592
|
contributions: { viewToolbar: {
|
|
7573
7593
|
anchor: "sheetBackgroundOptions",
|
|
7574
7594
|
order: -1
|
|
7575
7595
|
} },
|
|
7576
7596
|
members: ["enableDarkGrid", "enableDarkImages"]
|
|
7577
|
-
}, !0),
|
|
7597
|
+
}, !0), vt.register({
|
|
7578
7598
|
key: "language",
|
|
7579
7599
|
render: (e) => un(ui, {
|
|
7580
7600
|
...e,
|
|
7581
7601
|
variant: "menuitem"
|
|
7582
7602
|
})
|
|
7583
|
-
}, !0),
|
|
7603
|
+
}, !0), vt.register({
|
|
7584
7604
|
key: "languageOptions",
|
|
7585
7605
|
contributions: { viewToolbar: {
|
|
7586
7606
|
anchor: "selectTheme",
|
|
7587
7607
|
order: 1
|
|
7588
7608
|
} },
|
|
7589
7609
|
members: ["language", "locale"]
|
|
7590
|
-
}, !0),
|
|
7610
|
+
}, !0), vt.register({
|
|
7591
7611
|
key: "fullScreenToggleView",
|
|
7592
7612
|
defaultKey: "fullScreenToggle",
|
|
7593
7613
|
contributions: { viewToolbar: {
|
|
7594
7614
|
anchor: "freezeOptions",
|
|
7595
7615
|
order: 1
|
|
7596
7616
|
} }
|
|
7597
|
-
}, !0),
|
|
7617
|
+
}, !0), vt.register({
|
|
7598
7618
|
key: "helpOptions",
|
|
7599
|
-
getIcon: () => un(
|
|
7619
|
+
getIcon: () => un(kt, {
|
|
7600
7620
|
iconKey: "Help",
|
|
7601
7621
|
style: { transform: "scale(0.75)" }
|
|
7602
7622
|
}),
|
|
@@ -7638,7 +7658,7 @@ var bi = {
|
|
|
7638
7658
|
onClick: (e) => {
|
|
7639
7659
|
e.stopPropagation(), o();
|
|
7640
7660
|
},
|
|
7641
|
-
children: un(
|
|
7661
|
+
children: un(kt, {
|
|
7642
7662
|
style: { transform: "scale(0.85)" },
|
|
7643
7663
|
iconKey: t
|
|
7644
7664
|
})
|
|
@@ -7647,15 +7667,15 @@ var bi = {
|
|
|
7647
7667
|
}));
|
|
7648
7668
|
fi.displayName = "ItemCardAction";
|
|
7649
7669
|
var yi = bo((e) => {
|
|
7650
|
-
const { item: t, messageKeys: o, title: n, subtitle: r, caption: a, Subtitle: l, readOnly: i = !1, selected: s = !1, canMoveUp: c = !1, canMoveDown: d = !1, onEdit: p, onSelect: u, onMoveBy: m, onDuplicate: h, onDelete: g, actions: b, subscribeItem: f, Media: y, Body: x, className:
|
|
7670
|
+
const { item: t, messageKeys: o, title: n, subtitle: r, caption: a, Subtitle: l, readOnly: i = !1, selected: s = !1, canMoveUp: c = !1, canMoveDown: d = !1, onEdit: p, onSelect: u, onMoveBy: m, onDuplicate: h, onDelete: g, actions: b, subscribeItem: f, Media: y, Body: x, className: v, sx: k, ...w } = e, S = ao(), C = !i && !!p, T = null != a, [F, D] = Fo(!1), [N, I] = Co((e) => e + 1, 0);
|
|
7651
7671
|
xo(() => {
|
|
7652
7672
|
if (f) return f(t, I);
|
|
7653
7673
|
}, [t, f]), xo(() => {}, [F]);
|
|
7654
|
-
const B = So(() => sr("sxl-item-card", "sxl-anchor-item-card",
|
|
7674
|
+
const B = So(() => sr("sxl-item-card", "sxl-anchor-item-card", v, {
|
|
7655
7675
|
"sxl-read-only": i,
|
|
7656
7676
|
"Mui-selected": s
|
|
7657
7677
|
}, bi.card), [
|
|
7658
|
-
|
|
7678
|
+
v,
|
|
7659
7679
|
i,
|
|
7660
7680
|
s
|
|
7661
7681
|
]);
|
|
@@ -7696,7 +7716,7 @@ var yi = bo((e) => {
|
|
|
7696
7716
|
width: "auto"
|
|
7697
7717
|
}
|
|
7698
7718
|
}
|
|
7699
|
-
}, ...Array.isArray(
|
|
7719
|
+
}, ...Array.isArray(k) ? k : [k]],
|
|
7700
7720
|
className: B,
|
|
7701
7721
|
children: [
|
|
7702
7722
|
mn(gn, {
|
|
@@ -7815,7 +7835,7 @@ var yi = bo((e) => {
|
|
|
7815
7835
|
});
|
|
7816
7836
|
});
|
|
7817
7837
|
yi.displayName = "ItemCard";
|
|
7818
|
-
var xi = yi,
|
|
7838
|
+
var xi = yi, vi = bo((e) => {
|
|
7819
7839
|
const { value: t, onChange: o, placeholder: n, clearLabel: r, sx: a } = e;
|
|
7820
7840
|
return un(Gn, {
|
|
7821
7841
|
className: "sxl-items-search",
|
|
@@ -7832,7 +7852,7 @@ var xi = yi, ki = bo((e) => {
|
|
|
7832
7852
|
sx: { backgroundColor: "background.paper" },
|
|
7833
7853
|
startAdornment: un(Fn, {
|
|
7834
7854
|
position: "start",
|
|
7835
|
-
children: un(
|
|
7855
|
+
children: un(kt, { iconKey: "Find" })
|
|
7836
7856
|
}),
|
|
7837
7857
|
endAdornment: t ? un(Fn, {
|
|
7838
7858
|
position: "end",
|
|
@@ -7843,7 +7863,7 @@ var xi = yi, ki = bo((e) => {
|
|
|
7843
7863
|
0 === e.button && e.preventDefault();
|
|
7844
7864
|
},
|
|
7845
7865
|
onClick: () => o(""),
|
|
7846
|
-
icon: un(
|
|
7866
|
+
icon: un(kt, { iconKey: "Close" }),
|
|
7847
7867
|
size: "small"
|
|
7848
7868
|
})
|
|
7849
7869
|
}) : void 0
|
|
@@ -7856,16 +7876,16 @@ var xi = yi, ki = bo((e) => {
|
|
|
7856
7876
|
}
|
|
7857
7877
|
});
|
|
7858
7878
|
});
|
|
7859
|
-
|
|
7860
|
-
var
|
|
7861
|
-
const t = yo(
|
|
7879
|
+
vi.displayName = "ItemsSearchField";
|
|
7880
|
+
var ki = uo(null), wi = (e) => {
|
|
7881
|
+
const t = yo(ki), o = To(e);
|
|
7862
7882
|
o.current = e, xo(() => {
|
|
7863
7883
|
if (t) return t.register(() => o.current());
|
|
7864
7884
|
}, [t]);
|
|
7865
7885
|
}, Si = bo((e) => {
|
|
7866
|
-
const { context: t, selected: o, onChangeSelected: n, onActivate: r, autoFocus: a = !1, className: l } = e, i = ao(), s = ut(), [c, d] = Fo([]), [p, u] = Fo("*"), [m, h] = Fo(""), [g, b] = Fo(""), [f, y] = Fo([]), [x,
|
|
7886
|
+
const { context: t, selected: o, onChangeSelected: n, onActivate: r, autoFocus: a = !1, className: l } = e, i = ao(), s = ut(), [c, d] = Fo([]), [p, u] = Fo("*"), [m, h] = Fo(""), [g, b] = Fo(""), [f, y] = Fo([]), [x, v] = Fo(null), k = "*" === (w = p) ? void 0 : w;
|
|
7867
7887
|
var w;
|
|
7868
|
-
const S = To(null), C = To(null), T =
|
|
7888
|
+
const S = To(null), C = To(null), T = vo(), F = (e) => `${T}${e}`;
|
|
7869
7889
|
xo(() => {
|
|
7870
7890
|
const e = setTimeout(() => b(m.trim()), 150);
|
|
7871
7891
|
return () => clearTimeout(e);
|
|
@@ -7887,26 +7907,26 @@ var vi = uo(null), wi = (e) => {
|
|
|
7887
7907
|
const o = t?.();
|
|
7888
7908
|
if (!o) return;
|
|
7889
7909
|
const n = g ? await o.searchByText(g, {
|
|
7890
|
-
category:
|
|
7910
|
+
category: k,
|
|
7891
7911
|
limit: 100
|
|
7892
|
-
}) : await o.searchByCategory(
|
|
7912
|
+
}) : await o.searchByCategory(k);
|
|
7893
7913
|
e || (y(n), D(n[0] ?? null));
|
|
7894
7914
|
})(), () => {
|
|
7895
7915
|
e = !0;
|
|
7896
7916
|
};
|
|
7897
7917
|
}, [
|
|
7898
7918
|
t,
|
|
7899
|
-
|
|
7919
|
+
k,
|
|
7900
7920
|
g,
|
|
7901
7921
|
D
|
|
7902
7922
|
]), xo(() => {
|
|
7903
|
-
if (!o) return void
|
|
7923
|
+
if (!o) return void v(null);
|
|
7904
7924
|
let e = !1;
|
|
7905
7925
|
const t = o.getName();
|
|
7906
7926
|
return o.getDescriptor().then((o) => {
|
|
7907
|
-
e ||
|
|
7927
|
+
e || v(Te(t, o));
|
|
7908
7928
|
}).catch(() => {
|
|
7909
|
-
e ||
|
|
7929
|
+
e || v(null);
|
|
7910
7930
|
}), () => {
|
|
7911
7931
|
e = !0;
|
|
7912
7932
|
};
|
|
@@ -8023,7 +8043,7 @@ var vi = uo(null), wi = (e) => {
|
|
|
8023
8043
|
input: {
|
|
8024
8044
|
startAdornment: un(Fn, {
|
|
8025
8045
|
position: "start",
|
|
8026
|
-
children: un(
|
|
8046
|
+
children: un(kt, { iconKey: "Find" })
|
|
8027
8047
|
}),
|
|
8028
8048
|
endAdornment: m ? un(Fn, {
|
|
8029
8049
|
position: "end",
|
|
@@ -8034,7 +8054,7 @@ var vi = uo(null), wi = (e) => {
|
|
|
8034
8054
|
0 === e.button && e.preventDefault();
|
|
8035
8055
|
},
|
|
8036
8056
|
onClick: () => h(""),
|
|
8037
|
-
icon: un(
|
|
8057
|
+
icon: un(kt, { iconKey: "Close" }),
|
|
8038
8058
|
size: "small"
|
|
8039
8059
|
})
|
|
8040
8060
|
}) : void 0
|
|
@@ -8126,7 +8146,7 @@ var vi = uo(null), wi = (e) => {
|
|
|
8126
8146
|
});
|
|
8127
8147
|
Si.displayName = "FunctionSearchPanel";
|
|
8128
8148
|
var Ci = bo((e) => {
|
|
8129
|
-
const { func: t, workbook: o, home: n, autoFocus: r = !1, onChangeCall: a, className: l } = e, i = ao(), s = ut(), c = void 0 !== o ? o : s, [d, p] = Fo([]), [u, m] = Fo([]), [h, g] = Fo([]), [b, f] = Fo(null), [y, x] = Fo(0), [
|
|
8149
|
+
const { func: t, workbook: o, home: n, autoFocus: r = !1, onChangeCall: a, className: l } = e, i = ao(), s = ut(), c = void 0 !== o ? o : s, [d, p] = Fo([]), [u, m] = Fo([]), [h, g] = Fo([]), [b, f] = Fo(null), [y, x] = Fo(0), [v, k] = Fo(null), w = To(null), S = To(/* @__PURE__ */ new Map()), C = So(() => t.getDeclaration().getParameters(), [t]), T = So(() => Qe(C, d), [C, d]), F = So(() => Fe(t, { locale: c?.getLocale() }), [t, c]), D = So(() => Se(F.nameLocal ?? F.name, T, d, { separator: F.argSeparator }), [
|
|
8130
8150
|
F,
|
|
8131
8151
|
T,
|
|
8132
8152
|
d
|
|
@@ -8137,9 +8157,9 @@ var Ci = bo((e) => {
|
|
|
8137
8157
|
let e = !1;
|
|
8138
8158
|
const o = t.getName();
|
|
8139
8159
|
return t.getDescriptor().then((t) => {
|
|
8140
|
-
e ||
|
|
8160
|
+
e || k(Te(o, t));
|
|
8141
8161
|
}).catch(() => {
|
|
8142
|
-
e ||
|
|
8162
|
+
e || k(null);
|
|
8143
8163
|
}), () => {
|
|
8144
8164
|
e = !0;
|
|
8145
8165
|
};
|
|
@@ -8214,11 +8234,11 @@ var Ci = bo((e) => {
|
|
|
8214
8234
|
i
|
|
8215
8235
|
]), M = So(() => {
|
|
8216
8236
|
const e = T[y];
|
|
8217
|
-
if (e &&
|
|
8237
|
+
if (e && v?.name === t.getName()) return v?.params?.[e.descKey]?.description;
|
|
8218
8238
|
}, [
|
|
8219
8239
|
T,
|
|
8220
8240
|
y,
|
|
8221
|
-
|
|
8241
|
+
v,
|
|
8222
8242
|
t
|
|
8223
8243
|
]), O = So(() => T.map((e, o) => mn(gn, {
|
|
8224
8244
|
sx: {
|
|
@@ -8342,12 +8362,12 @@ var Ci = bo((e) => {
|
|
|
8342
8362
|
textOverflow: "ellipsis"
|
|
8343
8363
|
},
|
|
8344
8364
|
children: F.nameLocal ?? F.name
|
|
8345
|
-
}),
|
|
8365
|
+
}), v?.name === t.getName() ? un(gn, {
|
|
8346
8366
|
sx: {
|
|
8347
8367
|
paddingTop: "2px",
|
|
8348
8368
|
color: "text.secondary"
|
|
8349
8369
|
},
|
|
8350
|
-
children:
|
|
8370
|
+
children: v.summary
|
|
8351
8371
|
}) : null]
|
|
8352
8372
|
}),
|
|
8353
8373
|
un(gn, {
|
|
@@ -8585,7 +8605,7 @@ var Ii = [
|
|
|
8585
8605
|
}
|
|
8586
8606
|
return e;
|
|
8587
8607
|
}, [t, o]);
|
|
8588
|
-
return un(
|
|
8608
|
+
return un(kn, {
|
|
8589
8609
|
sx: {
|
|
8590
8610
|
minWidth: "125px",
|
|
8591
8611
|
maxWidth: "125px",
|
|
@@ -8646,7 +8666,7 @@ var Ii = [
|
|
|
8646
8666
|
m,
|
|
8647
8667
|
f,
|
|
8648
8668
|
r
|
|
8649
|
-
]), { sx:
|
|
8669
|
+
]), { sx: v, ...k } = i, w = un(En, {
|
|
8650
8670
|
elevation: 2,
|
|
8651
8671
|
tabIndex: 0,
|
|
8652
8672
|
sx: {
|
|
@@ -8661,9 +8681,9 @@ var Ii = [
|
|
|
8661
8681
|
marginRight: (e) => e.spacing(1),
|
|
8662
8682
|
marginTop: (e) => e.spacing(.5),
|
|
8663
8683
|
marginBottom: (e) => e.spacing(.5),
|
|
8664
|
-
...
|
|
8684
|
+
...v
|
|
8665
8685
|
},
|
|
8666
|
-
...
|
|
8686
|
+
...k,
|
|
8667
8687
|
children: h[f]
|
|
8668
8688
|
});
|
|
8669
8689
|
return mn(gn, {
|
|
@@ -8698,12 +8718,12 @@ var Ai = { placement: "top-end" }, Li = bo(ho((e, t) => {
|
|
|
8698
8718
|
}, [s]), g = (e) => {
|
|
8699
8719
|
let t = e;
|
|
8700
8720
|
return e < 100 ? t = 10 / 9 * (e - 10) : e > 100 && (t = (e + 200) / 3), t;
|
|
8701
|
-
}, b = g(c), [f, y] = Fo(null), x = To(null),
|
|
8721
|
+
}, b = g(c), [f, y] = Fo(null), x = To(null), v = fo(() => {
|
|
8702
8722
|
const e = f;
|
|
8703
8723
|
e && requestAnimationFrame(() => {
|
|
8704
8724
|
x.current?.contains(document.activeElement) && e.focus();
|
|
8705
8725
|
});
|
|
8706
|
-
}, []),
|
|
8726
|
+
}, []), k = Jt(() => {
|
|
8707
8727
|
s && h(g(s.getNextZoomScale(!1, 10)));
|
|
8708
8728
|
}), w = Jt(() => {
|
|
8709
8729
|
s && h(g(s.getNextZoomScale(!0, 10)));
|
|
@@ -8728,7 +8748,7 @@ var Ai = { placement: "top-end" }, Li = bo(ho((e, t) => {
|
|
|
8728
8748
|
0 === e.button && e.preventDefault();
|
|
8729
8749
|
},
|
|
8730
8750
|
onMouseUp: (e) => {
|
|
8731
|
-
0 === e.button &&
|
|
8751
|
+
0 === e.button && v();
|
|
8732
8752
|
},
|
|
8733
8753
|
...l,
|
|
8734
8754
|
children: [mn(gn, {
|
|
@@ -8756,9 +8776,9 @@ var Ai = { placement: "top-end" }, Li = bo(ho((e, t) => {
|
|
|
8756
8776
|
},
|
|
8757
8777
|
size: "small",
|
|
8758
8778
|
onPointerDown: (e) => {
|
|
8759
|
-
0 !== e.button ? e.preventDefault() :
|
|
8779
|
+
0 !== e.button ? e.preventDefault() : k(e);
|
|
8760
8780
|
},
|
|
8761
|
-
children: un(
|
|
8781
|
+
children: un(kt, { iconKey: "Remove" })
|
|
8762
8782
|
})
|
|
8763
8783
|
}),
|
|
8764
8784
|
un(zn, {
|
|
@@ -8795,7 +8815,7 @@ var Ai = { placement: "top-end" }, Li = bo(ho((e, t) => {
|
|
|
8795
8815
|
s && h(g(s.getNextZoomScale(e.deltaY < 0, 10)));
|
|
8796
8816
|
},
|
|
8797
8817
|
onKeyDown: (e) => {
|
|
8798
|
-
e.which === wt.Down || e.which === wt.Right ? (s && h(g(s.getNextZoomScale(!0, 10))), e.preventDefault()) : e.which === wt.Up || e.which === wt.Left ? (s && h(g(s.getNextZoomScale(!1, 10))), e.preventDefault()) : e.which !== wt.Enter && e.which !== wt.Escape ||
|
|
8818
|
+
e.which === wt.Down || e.which === wt.Right ? (s && h(g(s.getNextZoomScale(!0, 10))), e.preventDefault()) : e.which === wt.Up || e.which === wt.Left ? (s && h(g(s.getNextZoomScale(!1, 10))), e.preventDefault()) : e.which !== wt.Enter && e.which !== wt.Escape || v();
|
|
8799
8819
|
},
|
|
8800
8820
|
onChange: (e, t) => {
|
|
8801
8821
|
Math.abs(t - 100) < 3 ? h(100) : h(t);
|
|
@@ -8818,7 +8838,7 @@ var Ai = { placement: "top-end" }, Li = bo(ho((e, t) => {
|
|
|
8818
8838
|
onPointerDown: (e) => {
|
|
8819
8839
|
0 !== e.button ? e.preventDefault() : w(e);
|
|
8820
8840
|
},
|
|
8821
|
-
children: un(
|
|
8841
|
+
children: un(kt, { iconKey: "Add" })
|
|
8822
8842
|
})
|
|
8823
8843
|
})
|
|
8824
8844
|
]
|
|
@@ -9075,7 +9095,7 @@ var _i = bo((e) => {
|
|
|
9075
9095
|
},
|
|
9076
9096
|
children: c > 0 && un(Lo, {
|
|
9077
9097
|
"aria-label": "pending-results",
|
|
9078
|
-
icon: un(
|
|
9098
|
+
icon: un(kt, { iconKey: "PendingResults" }),
|
|
9079
9099
|
propsTooltip: {
|
|
9080
9100
|
label: l("statusBar.pending", { count: c }),
|
|
9081
9101
|
simple: !0
|
|
@@ -9112,11 +9132,11 @@ var Zi = bo(ho((e, t) => {
|
|
|
9112
9132
|
g,
|
|
9113
9133
|
p,
|
|
9114
9134
|
u
|
|
9115
|
-
]), f = g?.cancel, y = g?.done, x = !(!f && !y),
|
|
9135
|
+
]), f = g?.cancel, y = g?.done, x = !(!f && !y), v = To(null), [k, w] = Fo(null), S = x && k?.message === b;
|
|
9116
9136
|
wo(() => {
|
|
9117
|
-
if (!x) return void (
|
|
9137
|
+
if (!x) return void (k && w(null));
|
|
9118
9138
|
if (S) return;
|
|
9119
|
-
const e =
|
|
9139
|
+
const e = v.current, t = c.current;
|
|
9120
9140
|
!e || !t || e.scrollWidth <= e.clientWidth || w({
|
|
9121
9141
|
message: b,
|
|
9122
9142
|
width: t.clientWidth
|
|
@@ -9125,10 +9145,10 @@ var Zi = bo(ho((e, t) => {
|
|
|
9125
9145
|
const e = c.current;
|
|
9126
9146
|
if (!S || !e || "undefined" == typeof ResizeObserver) return;
|
|
9127
9147
|
const t = new ResizeObserver(() => {
|
|
9128
|
-
e.clientWidth >
|
|
9148
|
+
e.clientWidth > k.width && w(null);
|
|
9129
9149
|
});
|
|
9130
9150
|
return t.observe(e), () => t.disconnect();
|
|
9131
|
-
}, [S,
|
|
9151
|
+
}, [S, k]);
|
|
9132
9152
|
const C = So(() => {
|
|
9133
9153
|
const e = (e) => {
|
|
9134
9154
|
0 === e.button && e.preventDefault();
|
|
@@ -9149,7 +9169,7 @@ var Zi = bo(ho((e, t) => {
|
|
|
9149
9169
|
f && un(Lo, {
|
|
9150
9170
|
"aria-label": "cancel-mode",
|
|
9151
9171
|
color: "warning",
|
|
9152
|
-
icon: un(
|
|
9172
|
+
icon: un(kt, { iconKey: "CloseError" }),
|
|
9153
9173
|
propsTooltip: {
|
|
9154
9174
|
label: u("statusBar.cancelMode"),
|
|
9155
9175
|
simple: !0
|
|
@@ -9161,7 +9181,7 @@ var Zi = bo(ho((e, t) => {
|
|
|
9161
9181
|
y && un(Lo, {
|
|
9162
9182
|
"aria-label": "done-mode",
|
|
9163
9183
|
color: "primary",
|
|
9164
|
-
icon: un(
|
|
9184
|
+
icon: un(kt, { iconKey: "CheckSuccess" }),
|
|
9165
9185
|
propsTooltip: {
|
|
9166
9186
|
label: u("statusBar.doneMode"),
|
|
9167
9187
|
simple: !0
|
|
@@ -9171,7 +9191,7 @@ var Zi = bo(ho((e, t) => {
|
|
|
9171
9191
|
sx: { marginRight: "4px" }
|
|
9172
9192
|
}),
|
|
9173
9193
|
un(jn, {
|
|
9174
|
-
ref:
|
|
9194
|
+
ref: v,
|
|
9175
9195
|
component: "div",
|
|
9176
9196
|
sx: {
|
|
9177
9197
|
flex: "0 1 auto",
|
|
@@ -9265,8 +9285,8 @@ var Zi = bo(ho((e, t) => {
|
|
|
9265
9285
|
}));
|
|
9266
9286
|
Zi.displayName = "StatusBar";
|
|
9267
9287
|
var Qi = bo(ho((e, t) => {
|
|
9268
|
-
const { className: o, style: n, disabled: r, names: a, workbook: l, restoreFocus: i, readonly: s = !1, disabled: c, propsCommandPopupButton: d, ...p } = e, u = eo(), m = ao(), [h, g] = Fo(null), [f, y] = Fo(null), [x,
|
|
9269
|
-
if (
|
|
9288
|
+
const { className: o, style: n, disabled: r, names: a, workbook: l, restoreFocus: i, readonly: s = !1, disabled: c, propsCommandPopupButton: d, ...p } = e, u = eo(), m = ao(), [h, g] = Fo(null), [f, y] = Fo(null), [x, v] = Fo(!1), { reference: k } = jt({ parentFloat: d?.parentFloat }), [w, S] = Fo(() => s || !l.getProtection().isStructureAllowed()), C = () => h?.text ?? "", [T, F] = Fo(C), D = Et(() => {
|
|
9289
|
+
if (k?.closeAll(), !T) {
|
|
9270
9290
|
const e = C();
|
|
9271
9291
|
return F(C()), e;
|
|
9272
9292
|
}
|
|
@@ -9310,7 +9330,7 @@ var Qi = bo(ho((e, t) => {
|
|
|
9310
9330
|
}, [
|
|
9311
9331
|
T,
|
|
9312
9332
|
a,
|
|
9313
|
-
|
|
9333
|
+
k,
|
|
9314
9334
|
w,
|
|
9315
9335
|
u
|
|
9316
9336
|
]), N = Et(() => {
|
|
@@ -9450,7 +9470,7 @@ var Qi = bo(ho((e, t) => {
|
|
|
9450
9470
|
M
|
|
9451
9471
|
]), A = Et(async (e) => {
|
|
9452
9472
|
try {
|
|
9453
|
-
|
|
9473
|
+
k?.closeAll();
|
|
9454
9474
|
const t = a.getItems({ address: e })?.[0];
|
|
9455
9475
|
t && await t?.select(), await l.getRanges(e)?.select({ autoFocus: !0 });
|
|
9456
9476
|
} catch (e) {
|
|
@@ -9462,7 +9482,7 @@ var Qi = bo(ho((e, t) => {
|
|
|
9462
9482
|
l
|
|
9463
9483
|
]), L = fo((e) => {
|
|
9464
9484
|
setTimeout(() => {
|
|
9465
|
-
|
|
9485
|
+
v(!0);
|
|
9466
9486
|
}, 0);
|
|
9467
9487
|
const t = {
|
|
9468
9488
|
variant: yt.Menuitem,
|
|
@@ -9600,8 +9620,8 @@ var Qi = bo(ho((e, t) => {
|
|
|
9600
9620
|
tabIndex: -1,
|
|
9601
9621
|
outlined: { color: (e) => r ? e.palette.action.disabled : "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))" },
|
|
9602
9622
|
renderPopupPanel: L,
|
|
9603
|
-
onPopupOpen: () =>
|
|
9604
|
-
onPopupClose: () =>
|
|
9623
|
+
onPopupOpen: () => v(!0),
|
|
9624
|
+
onPopupClose: () => v(!1),
|
|
9605
9625
|
renderTooltip: ({ children: e, disabled: t }) => un(Vo, {
|
|
9606
9626
|
title: t || x ? "" : m("nameBox.title"),
|
|
9607
9627
|
disabled: t,
|
|
@@ -9614,7 +9634,7 @@ var Qi = bo(ho((e, t) => {
|
|
|
9614
9634
|
});
|
|
9615
9635
|
}));
|
|
9616
9636
|
Qi.displayName = "NamedCollectionEditor";
|
|
9617
|
-
var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./
|
|
9637
|
+
var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./h0ih_bazDGjgIXQd.mjs"), { select: (e) => ({ default: e.NamedDetailsTaskPane }) }).load), Xi = () => V.registerTaskPane({
|
|
9618
9638
|
key: pe.Names,
|
|
9619
9639
|
component: Yi
|
|
9620
9640
|
}, !0), Ji = "formula-bar", es = (e) => {
|
|
@@ -9643,7 +9663,7 @@ var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./_gNQ05R589In7vSm.m
|
|
|
9643
9663
|
m((e) => e + 1);
|
|
9644
9664
|
});
|
|
9645
9665
|
}, [s, d]);
|
|
9646
|
-
const x = to(o, (e) => e.getSession()),
|
|
9666
|
+
const x = to(o, (e) => e.getSession()), v = !!x, w = Et(() => {
|
|
9647
9667
|
o?.cancel();
|
|
9648
9668
|
}, [o]), S = Et(() => {
|
|
9649
9669
|
o?.commit();
|
|
@@ -9665,10 +9685,10 @@ var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./_gNQ05R589In7vSm.m
|
|
|
9665
9685
|
},
|
|
9666
9686
|
contributor: { dynamic: Ce },
|
|
9667
9687
|
data: T
|
|
9668
|
-
} : null, [T]), D = So(() =>
|
|
9688
|
+
} : null, [T]), D = So(() => v || !s ? null : $e(s.getRange(d).getCell()), [
|
|
9669
9689
|
s,
|
|
9670
9690
|
d,
|
|
9671
|
-
|
|
9691
|
+
v,
|
|
9672
9692
|
u
|
|
9673
9693
|
]);
|
|
9674
9694
|
return {
|
|
@@ -9676,7 +9696,7 @@ var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./_gNQ05R589In7vSm.m
|
|
|
9676
9696
|
activeCoords: d,
|
|
9677
9697
|
disabled: y,
|
|
9678
9698
|
session: x,
|
|
9679
|
-
isEditing:
|
|
9699
|
+
isEditing: v,
|
|
9680
9700
|
cancel: w,
|
|
9681
9701
|
commit: S,
|
|
9682
9702
|
editorSpec: F,
|
|
@@ -9700,9 +9720,9 @@ var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./_gNQ05R589In7vSm.m
|
|
|
9700
9720
|
weight: null
|
|
9701
9721
|
},
|
|
9702
9722
|
alignment: {
|
|
9703
|
-
horizontal:
|
|
9704
|
-
vertical:
|
|
9705
|
-
overflow:
|
|
9723
|
+
horizontal: k.HorizontalAlignment.Left,
|
|
9724
|
+
vertical: k.VerticalAlignment.Top,
|
|
9725
|
+
overflow: k.Overflow.Visible
|
|
9706
9726
|
},
|
|
9707
9727
|
fill: { type: g.Type.None }
|
|
9708
9728
|
} }) : null,
|
|
@@ -9735,7 +9755,7 @@ var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./_gNQ05R589In7vSm.m
|
|
|
9735
9755
|
])
|
|
9736
9756
|
};
|
|
9737
9757
|
}, ts = "_formula-bar_uer84_1", os = (e) => un(Qi, { ...e }), ns = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", rs = bo(ho((e, t) => {
|
|
9738
|
-
const { className: o, style: n, workbook: r, editable: a, showNamedCollectionEditor: l = !0, propsNamedCollectionEditor: i, renderNamedCollectionEditor: c = os, disabled: d, showCalculateNow: p = !0, placement: u = "top", floatOnKeyboard: m, ...h } = e, g = r, f = 20, { sheet: y, disabled: x, isEditing:
|
|
9758
|
+
const { className: o, style: n, workbook: r, editable: a, showNamedCollectionEditor: l = !0, propsNamedCollectionEditor: i, renderNamedCollectionEditor: c = os, disabled: d, showCalculateNow: p = !0, placement: u = "top", floatOnKeyboard: m, ...h } = e, g = r, f = 20, { sheet: y, disabled: x, isEditing: v, cancel: k, commit: w, editorSpec: S, cellEditor: C } = es({
|
|
9739
9759
|
workbook: g,
|
|
9740
9760
|
editable: a,
|
|
9741
9761
|
disabled: d,
|
|
@@ -9787,7 +9807,7 @@ var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./_gNQ05R589In7vSm.m
|
|
|
9787
9807
|
outlined: !1,
|
|
9788
9808
|
disabled: !D || D.disabled(),
|
|
9789
9809
|
"aria-label": "calculate-now",
|
|
9790
|
-
icon: un(
|
|
9810
|
+
icon: un(kt, { iconKey: "Calculate" }),
|
|
9791
9811
|
propsTooltip: {
|
|
9792
9812
|
label: D?.getLabel() ?? R("statusBar.calculate"),
|
|
9793
9813
|
simple: !0
|
|
@@ -9806,16 +9826,16 @@ var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./_gNQ05R589In7vSm.m
|
|
|
9806
9826
|
outlined: !1,
|
|
9807
9827
|
color: "warning",
|
|
9808
9828
|
"aria-label": "cancel-formula-edit",
|
|
9809
|
-
icon: un(
|
|
9829
|
+
icon: un(kt, { iconKey: "CloseError" }),
|
|
9810
9830
|
propsTooltip: {
|
|
9811
9831
|
label: R("formulaBar.cancel"),
|
|
9812
9832
|
simple: !0
|
|
9813
9833
|
},
|
|
9814
|
-
disabled: x || !
|
|
9834
|
+
disabled: x || !v,
|
|
9815
9835
|
onMouseDown: (e) => {
|
|
9816
9836
|
0 === e.button && e.preventDefault();
|
|
9817
9837
|
},
|
|
9818
|
-
onClick:
|
|
9838
|
+
onClick: k
|
|
9819
9839
|
}),
|
|
9820
9840
|
un(Lo, {
|
|
9821
9841
|
sx: {
|
|
@@ -9827,12 +9847,12 @@ var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./_gNQ05R589In7vSm.m
|
|
|
9827
9847
|
outlined: !1,
|
|
9828
9848
|
color: "primary",
|
|
9829
9849
|
"aria-label": "commit-formula-edit",
|
|
9830
|
-
icon: un(
|
|
9850
|
+
icon: un(kt, { iconKey: "CheckSuccess" }),
|
|
9831
9851
|
propsTooltip: {
|
|
9832
9852
|
label: R("formulaBar.enter"),
|
|
9833
9853
|
simple: !0
|
|
9834
9854
|
},
|
|
9835
|
-
disabled: x || !
|
|
9855
|
+
disabled: x || !v,
|
|
9836
9856
|
onMouseDown: (e) => {
|
|
9837
9857
|
0 === e.button && e.preventDefault();
|
|
9838
9858
|
},
|
|
@@ -9848,7 +9868,7 @@ var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./_gNQ05R589In7vSm.m
|
|
|
9848
9868
|
outlined: !1,
|
|
9849
9869
|
disabled: !F || F.disabled(),
|
|
9850
9870
|
"aria-label": "commit-formula-function",
|
|
9851
|
-
icon: un(
|
|
9871
|
+
icon: un(kt, {
|
|
9852
9872
|
iconKey: "Function",
|
|
9853
9873
|
style: { transform: "scale(0.85)" }
|
|
9854
9874
|
}),
|
|
@@ -9863,9 +9883,9 @@ var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./_gNQ05R589In7vSm.m
|
|
|
9863
9883
|
]
|
|
9864
9884
|
}), [
|
|
9865
9885
|
x,
|
|
9866
|
-
k,
|
|
9867
|
-
F,
|
|
9868
9886
|
v,
|
|
9887
|
+
F,
|
|
9888
|
+
k,
|
|
9869
9889
|
w,
|
|
9870
9890
|
R,
|
|
9871
9891
|
P,
|
|
@@ -9959,7 +9979,7 @@ var Yi = ln(ar("studio:namedDetailsTaskPane", () => import("./_gNQ05R589In7vSm.m
|
|
|
9959
9979
|
dense: !0,
|
|
9960
9980
|
outlined: !1,
|
|
9961
9981
|
"aria-label": "toggle-expand-formula-edit",
|
|
9962
|
-
icon: un(
|
|
9982
|
+
icon: un(kt, { iconKey: K > 1 ? "ExpandLess" : "ExpandMore" }),
|
|
9963
9983
|
propsTooltip: {
|
|
9964
9984
|
label: R(K > 1 ? "formulaBar.collapse" : "formulaBar.expand"),
|
|
9965
9985
|
simple: !0
|
|
@@ -10066,7 +10086,7 @@ var as = (e) => un(Lo, {
|
|
|
10066
10086
|
un(as, {
|
|
10067
10087
|
"aria-label": "input-mode-text",
|
|
10068
10088
|
selected: n && "text" === r,
|
|
10069
|
-
icon: un(
|
|
10089
|
+
icon: un(kt, { iconKey: "KeyboardLetters" }),
|
|
10070
10090
|
propsTooltip: {
|
|
10071
10091
|
label: u("formulaBar.lettersKeyboard"),
|
|
10072
10092
|
simple: !0
|
|
@@ -10077,7 +10097,7 @@ var as = (e) => un(Lo, {
|
|
|
10077
10097
|
un(as, {
|
|
10078
10098
|
"aria-label": "input-mode-decimal",
|
|
10079
10099
|
selected: n && "decimal" === r,
|
|
10080
|
-
icon: un(
|
|
10100
|
+
icon: un(kt, { iconKey: "KeyboardNumbers" }),
|
|
10081
10101
|
propsTooltip: {
|
|
10082
10102
|
label: u("formulaBar.numbersKeyboard"),
|
|
10083
10103
|
simple: !0
|
|
@@ -10087,7 +10107,7 @@ var as = (e) => un(Lo, {
|
|
|
10087
10107
|
}),
|
|
10088
10108
|
un(as, {
|
|
10089
10109
|
"aria-label": "insert-date",
|
|
10090
|
-
icon: un(
|
|
10110
|
+
icon: un(kt, { iconKey: "KeyboardDate" }),
|
|
10091
10111
|
propsTooltip: {
|
|
10092
10112
|
label: u("formulaBar.dateInput"),
|
|
10093
10113
|
simple: !0
|
|
@@ -10098,7 +10118,7 @@ var as = (e) => un(Lo, {
|
|
|
10098
10118
|
un(gn, { sx: { flex: "1 1 auto" } }),
|
|
10099
10119
|
un(as, {
|
|
10100
10120
|
"aria-label": "tab-formula-edit",
|
|
10101
|
-
icon: un(
|
|
10121
|
+
icon: un(kt, { iconKey: "KeyboardTab" }),
|
|
10102
10122
|
propsTooltip: {
|
|
10103
10123
|
label: u("formulaBar.tab"),
|
|
10104
10124
|
simple: !0
|
|
@@ -10108,7 +10128,7 @@ var as = (e) => un(Lo, {
|
|
|
10108
10128
|
}),
|
|
10109
10129
|
un(as, {
|
|
10110
10130
|
"aria-label": "enter-formula-edit",
|
|
10111
|
-
icon: un(
|
|
10131
|
+
icon: un(kt, { iconKey: "KeyboardEnter" }),
|
|
10112
10132
|
propsTooltip: {
|
|
10113
10133
|
label: u("formulaBar.enterKey"),
|
|
10114
10134
|
simple: !0
|
|
@@ -10121,7 +10141,7 @@ var as = (e) => un(Lo, {
|
|
|
10121
10141
|
un(as, {
|
|
10122
10142
|
"aria-label": "cancel-formula-edit",
|
|
10123
10143
|
color: "warning",
|
|
10124
|
-
icon: un(
|
|
10144
|
+
icon: un(kt, { iconKey: "CloseError" }),
|
|
10125
10145
|
propsTooltip: {
|
|
10126
10146
|
label: u("formulaBar.cancel"),
|
|
10127
10147
|
simple: !0
|
|
@@ -10132,7 +10152,7 @@ var as = (e) => un(Lo, {
|
|
|
10132
10152
|
un(as, {
|
|
10133
10153
|
"aria-label": "commit-formula-edit",
|
|
10134
10154
|
color: "primary",
|
|
10135
|
-
icon: un(
|
|
10155
|
+
icon: un(kt, { iconKey: "CheckSuccess" }),
|
|
10136
10156
|
propsTooltip: {
|
|
10137
10157
|
label: u("formulaBar.enter"),
|
|
10138
10158
|
simple: !0
|
|
@@ -10163,7 +10183,7 @@ var is = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10163
10183
|
}, cs = ({ elementRef: e }) => (Vt(Ht(), e), null), ds = bo(ho((e, t) => {
|
|
10164
10184
|
const { className: o, style: n, workbook: r, editable: a, disabled: l, showCancelCommit: i, floatOnKeyboard: s = !0, showNamedCollectionEditor: c, propsNamedCollectionEditor: d, renderNamedCollectionEditor: p, showCalculateNow: u, placement: m, ...h } = e, g = r, f = lo(), y = f.getInputMode();
|
|
10165
10185
|
xo(() => f.registerEditor(Ji), [f]);
|
|
10166
|
-
const { sheet: x, activeCoords:
|
|
10186
|
+
const { sheet: x, activeCoords: v, disabled: k, isEditing: w, cancel: S, commit: C, editorSpec: T, cellEditor: F } = es({
|
|
10167
10187
|
workbook: g,
|
|
10168
10188
|
editable: a,
|
|
10169
10189
|
disabled: l,
|
|
@@ -10192,8 +10212,8 @@ var is = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10192
10212
|
const o = t.inputMode !== e;
|
|
10193
10213
|
t.inputMode = e, document.activeElement !== t ? t.focus({ preventScroll: !0 }) : !o && Ot() || (U.current = performance.now(), t.blur(), t.focus({ preventScroll: !0 }));
|
|
10194
10214
|
}, [f]), j = Et(() => {
|
|
10195
|
-
|
|
10196
|
-
}, [
|
|
10215
|
+
k || G()?.focus({ preventScroll: !0 });
|
|
10216
|
+
}, [k]), _ = Et(() => {
|
|
10197
10217
|
if (performance.now() - U.current < 800) return;
|
|
10198
10218
|
const e = document.activeElement;
|
|
10199
10219
|
e && O.current?.contains(e) && V.current?.focus({ preventScroll: !0 });
|
|
@@ -10240,7 +10260,7 @@ var is = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10240
10260
|
}, [X]);
|
|
10241
10261
|
let re = null;
|
|
10242
10262
|
if (s) {
|
|
10243
|
-
const e = x && !x.isDeleted() ? x.getRange(
|
|
10263
|
+
const e = x && !x.isDeleted() ? x.getRange(v).getCell() : null, t = e ? Be(e) : "", o = e && !t ? $e(e) : null;
|
|
10244
10264
|
re = un(gn, {
|
|
10245
10265
|
className: "formula-bar-display",
|
|
10246
10266
|
sx: {
|
|
@@ -10249,7 +10269,7 @@ var is = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10249
10269
|
overflow: "hidden",
|
|
10250
10270
|
textOverflow: "ellipsis",
|
|
10251
10271
|
wordBreak: "break-word",
|
|
10252
|
-
color: (e) =>
|
|
10272
|
+
color: (e) => k || o ? e.palette.text.disabled : e.palette.text.primary
|
|
10253
10273
|
},
|
|
10254
10274
|
children: t || o
|
|
10255
10275
|
});
|
|
@@ -10267,7 +10287,7 @@ var is = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10267
10287
|
children: [un(ss, {
|
|
10268
10288
|
disabled: !D || D.disabled(),
|
|
10269
10289
|
"aria-label": "commit-formula-function",
|
|
10270
|
-
icon: un(
|
|
10290
|
+
icon: un(kt, {
|
|
10271
10291
|
iconKey: "Function",
|
|
10272
10292
|
style: { transform: "scale(0.85)" }
|
|
10273
10293
|
}),
|
|
@@ -10296,8 +10316,8 @@ var is = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10296
10316
|
boxShadow: "none",
|
|
10297
10317
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
10298
10318
|
backgroundColor: "var(--sxl-color-input, var(--sxl-color-base-100))",
|
|
10299
|
-
border: (e) => `solid ${
|
|
10300
|
-
"& textarea": { color: (e) =>
|
|
10319
|
+
border: (e) => `solid ${k ? e.palette.action.disabled : is} 1px`,
|
|
10320
|
+
"& textarea": { color: (e) => k ? `${e.palette.text.disabled} !important` : e.palette.text.primary }
|
|
10301
10321
|
},
|
|
10302
10322
|
onFocus: t ? void 0 : () => R(!0),
|
|
10303
10323
|
onBlur: t ? void 0 : () => R(!1),
|
|
@@ -10312,7 +10332,7 @@ var is = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10312
10332
|
justifyContent: "center",
|
|
10313
10333
|
alignSelf: "center",
|
|
10314
10334
|
overflow: "hidden",
|
|
10315
|
-
cursor: t && !
|
|
10335
|
+
cursor: t && !k ? "text" : void 0
|
|
10316
10336
|
},
|
|
10317
10337
|
style: { height: 20 * M + "px" },
|
|
10318
10338
|
onClick: t ? j : void 0,
|
|
@@ -10320,7 +10340,7 @@ var is = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10320
10340
|
}),
|
|
10321
10341
|
un(ss, {
|
|
10322
10342
|
"aria-label": "toggle-expand-formula-edit",
|
|
10323
|
-
icon: un(
|
|
10343
|
+
icon: un(kt, { iconKey: I ? "ExpandMore" : "ExpandLess" }),
|
|
10324
10344
|
propsTooltip: {
|
|
10325
10345
|
label: N(I ? "formulaBar.collapse" : "formulaBar.expand"),
|
|
10326
10346
|
simple: !0
|
|
@@ -10361,7 +10381,7 @@ var is = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10361
10381
|
}),
|
|
10362
10382
|
un(ls, {
|
|
10363
10383
|
isEditing: w,
|
|
10364
|
-
disabled:
|
|
10384
|
+
disabled: k,
|
|
10365
10385
|
keyboardShown: f.isActive(),
|
|
10366
10386
|
inputMode: y,
|
|
10367
10387
|
showCancelCommit: i,
|
|
@@ -10428,7 +10448,7 @@ var is = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10428
10448
|
});
|
|
10429
10449
|
}));
|
|
10430
10450
|
ds.displayName = "MobileFormulaBar";
|
|
10431
|
-
var ps = ln(ar("studio:externalLinksTaskPane", () => import("./
|
|
10451
|
+
var ps = ln(ar("studio:externalLinksTaskPane", () => import("./uCFRHXTVhzTQ53TT.mjs"), { select: (e) => ({ default: e.ExternalLinksTaskPane }) }).load), us = () => V.registerTaskPane({
|
|
10432
10452
|
key: pe.ExternalLinks,
|
|
10433
10453
|
component: ps
|
|
10434
10454
|
}, !0), ms = {
|
|
@@ -10563,7 +10583,7 @@ var ps = ln(ar("studio:externalLinksTaskPane", () => import("./DCDqfmTkvT0D2Z5h.
|
|
|
10563
10583
|
onClick: (e) => {
|
|
10564
10584
|
e.stopPropagation(), i(e.currentTarget);
|
|
10565
10585
|
},
|
|
10566
|
-
children: un(
|
|
10586
|
+
children: un(kt, {
|
|
10567
10587
|
style: { transform: "scale(0.85)" },
|
|
10568
10588
|
iconKey: "MoreHorizontal"
|
|
10569
10589
|
})
|
|
@@ -10601,9 +10621,9 @@ var ps = ln(ar("studio:externalLinksTaskPane", () => import("./DCDqfmTkvT0D2Z5h.
|
|
|
10601
10621
|
})]
|
|
10602
10622
|
});
|
|
10603
10623
|
}, ys = bo((e) => {
|
|
10604
|
-
const { sheet: t, coords: o, comment: n, focusRequest: r = 0, highlighted: a = !1, elevated: l = !1, onSelect: i, onClose: s, onPosted: c, className: d, ref: p, ...u } = e, m = ao(), h = eo(), g = Ye(n), b = Mt(_t()?.themeScope), [f, y] = Fo(null), [x,
|
|
10624
|
+
const { sheet: t, coords: o, comment: n, focusRequest: r = 0, highlighted: a = !1, elevated: l = !1, onSelect: i, onClose: s, onPosted: c, className: d, ref: p, ...u } = e, m = ao(), h = eo(), g = Ye(n), b = Mt(_t()?.themeScope), [f, y] = Fo(null), [x, v] = Fo(null), k = To(null);
|
|
10605
10625
|
xo(() => {
|
|
10606
|
-
r &&
|
|
10626
|
+
r && k.current?.focus();
|
|
10607
10627
|
}, [r]);
|
|
10608
10628
|
const w = (e) => {
|
|
10609
10629
|
try {
|
|
@@ -10631,7 +10651,7 @@ var ps = ln(ar("studio:externalLinksTaskPane", () => import("./DCDqfmTkvT0D2Z5h.
|
|
|
10631
10651
|
borderColor: "divider"
|
|
10632
10652
|
},
|
|
10633
10653
|
children: [
|
|
10634
|
-
un(
|
|
10654
|
+
un(kt, {
|
|
10635
10655
|
style: { transform: "scale(0.85)" },
|
|
10636
10656
|
iconKey: "Check"
|
|
10637
10657
|
}),
|
|
@@ -10652,7 +10672,7 @@ var ps = ln(ar("studio:externalLinksTaskPane", () => import("./DCDqfmTkvT0D2Z5h.
|
|
|
10652
10672
|
onClick: () => w(() => {
|
|
10653
10673
|
n.setResolved(!1);
|
|
10654
10674
|
}),
|
|
10655
|
-
children: un(
|
|
10675
|
+
children: un(kt, {
|
|
10656
10676
|
style: { transform: "scale(0.85)" },
|
|
10657
10677
|
iconKey: "Undo"
|
|
10658
10678
|
})
|
|
@@ -10669,7 +10689,7 @@ var ps = ln(ar("studio:externalLinksTaskPane", () => import("./DCDqfmTkvT0D2Z5h.
|
|
|
10669
10689
|
onClick: () => w(() => {
|
|
10670
10690
|
n.delete();
|
|
10671
10691
|
}),
|
|
10672
|
-
children: un(
|
|
10692
|
+
children: un(kt, {
|
|
10673
10693
|
style: { transform: "scale(0.85)" },
|
|
10674
10694
|
iconKey: "Delete"
|
|
10675
10695
|
})
|
|
@@ -10730,7 +10750,7 @@ var ps = ln(ar("studio:externalLinksTaskPane", () => import("./DCDqfmTkvT0D2Z5h.
|
|
|
10730
10750
|
editor: f && null === f.replyId ? R(g.content, (e) => {
|
|
10731
10751
|
n.setContent(e);
|
|
10732
10752
|
}) : void 0,
|
|
10733
|
-
onMenu: I ? void 0 : (e) =>
|
|
10753
|
+
onMenu: I ? void 0 : (e) => v({
|
|
10734
10754
|
anchor: e,
|
|
10735
10755
|
replyId: null
|
|
10736
10756
|
})
|
|
@@ -10751,7 +10771,7 @@ var ps = ln(ar("studio:externalLinksTaskPane", () => import("./DCDqfmTkvT0D2Z5h.
|
|
|
10751
10771
|
editor: f?.replyId === e.getId() ? R(e.getContent(), (t) => {
|
|
10752
10772
|
e.setContent(t);
|
|
10753
10773
|
}) : void 0,
|
|
10754
|
-
onMenu: I ? void 0 : (t) =>
|
|
10774
|
+
onMenu: I ? void 0 : (t) => v({
|
|
10755
10775
|
anchor: t,
|
|
10756
10776
|
replyId: e.getId()
|
|
10757
10777
|
})
|
|
@@ -10769,7 +10789,7 @@ var ps = ln(ar("studio:externalLinksTaskPane", () => import("./DCDqfmTkvT0D2Z5h.
|
|
|
10769
10789
|
submitLabel: m(ms.post),
|
|
10770
10790
|
cancelLabel: m(ms.cancel),
|
|
10771
10791
|
alwaysShowActions: !0,
|
|
10772
|
-
refInput:
|
|
10792
|
+
refInput: k,
|
|
10773
10793
|
onSubmit: (e) => {
|
|
10774
10794
|
w(() => {
|
|
10775
10795
|
const n = t.getComments().add(er.cellToRange(o), e);
|
|
@@ -10782,7 +10802,7 @@ var ps = ln(ar("studio:externalLinksTaskPane", () => import("./DCDqfmTkvT0D2Z5h.
|
|
|
10782
10802
|
placeholder: m(ms.reply),
|
|
10783
10803
|
submitLabel: m(ms.post),
|
|
10784
10804
|
cancelLabel: m(ms.cancel),
|
|
10785
|
-
refInput:
|
|
10805
|
+
refInput: k,
|
|
10786
10806
|
onSubmit: (e) => w(() => {
|
|
10787
10807
|
n.addReply(e);
|
|
10788
10808
|
})
|
|
@@ -10792,33 +10812,33 @@ var ps = ln(ar("studio:externalLinksTaskPane", () => import("./DCDqfmTkvT0D2Z5h.
|
|
|
10792
10812
|
anchorEl: x.anchor,
|
|
10793
10813
|
className: b.className,
|
|
10794
10814
|
...b.attrs,
|
|
10795
|
-
onClose: () =>
|
|
10815
|
+
onClose: () => v(null),
|
|
10796
10816
|
onClick: (e) => {
|
|
10797
10817
|
e.stopPropagation();
|
|
10798
10818
|
},
|
|
10799
10819
|
children: [
|
|
10800
10820
|
un(Eo, {
|
|
10801
|
-
icon: un(
|
|
10821
|
+
icon: un(kt, { iconKey: "CardEdit" }),
|
|
10802
10822
|
onClick: () => {
|
|
10803
|
-
y({ replyId: x.replyId }),
|
|
10823
|
+
y({ replyId: x.replyId }), v(null);
|
|
10804
10824
|
},
|
|
10805
10825
|
children: m(ms.edit)
|
|
10806
10826
|
}),
|
|
10807
10827
|
null === x.replyId ? un(Eo, {
|
|
10808
|
-
icon: un(
|
|
10828
|
+
icon: un(kt, { iconKey: g?.resolved ? "Undo" : "Check" }),
|
|
10809
10829
|
onClick: () => {
|
|
10810
10830
|
w(() => {
|
|
10811
10831
|
n.setResolved(!n.isResolved());
|
|
10812
|
-
}),
|
|
10832
|
+
}), v(null);
|
|
10813
10833
|
},
|
|
10814
10834
|
children: m(g?.resolved ? ms.reopen : ms.resolve)
|
|
10815
10835
|
}) : null,
|
|
10816
10836
|
un(Eo, {
|
|
10817
|
-
icon: un(
|
|
10837
|
+
icon: un(kt, { iconKey: "Delete" }),
|
|
10818
10838
|
onClick: () => {
|
|
10819
10839
|
w(() => {
|
|
10820
10840
|
null === x.replyId ? n.delete() : P?.delete();
|
|
10821
|
-
}),
|
|
10841
|
+
}), v(null);
|
|
10822
10842
|
},
|
|
10823
10843
|
children: m(ms.delete)
|
|
10824
10844
|
})
|
|
@@ -10828,12 +10848,10 @@ var ps = ln(ar("studio:externalLinksTaskPane", () => import("./DCDqfmTkvT0D2Z5h.
|
|
|
10828
10848
|
});
|
|
10829
10849
|
});
|
|
10830
10850
|
ys.displayName = "CommentCard";
|
|
10831
|
-
var xs = ln(ar("studio:commentsTaskPane", () => import("./
|
|
10851
|
+
var xs = ln(ar("studio:commentsTaskPane", () => import("./bIfQAr55kQq2xXaT.mjs"), { select: (e) => ({ default: e.CommentsTaskPane }) }).load), vs = () => V.registerTaskPane({
|
|
10832
10852
|
key: pe.Comments,
|
|
10833
|
-
getTitle: () => ir(lr("comment.title")),
|
|
10834
|
-
getIcon: () => "CommentEdit",
|
|
10835
10853
|
component: xs
|
|
10836
|
-
}, !0),
|
|
10854
|
+
}, !0), ks = "anomalies", ws = "anomalies", Ss = "showAnomaliesPane", Cs = bo((e) => {
|
|
10837
10855
|
const { scope: t } = e, o = dt(), n = o.getOpen().includes(ws);
|
|
10838
10856
|
return xo(() => {
|
|
10839
10857
|
if (!t) return;
|
|
@@ -10854,9 +10872,9 @@ var xs = ln(ar("studio:commentsTaskPane", () => import("./DV5zGC0IZiv_lqwa.mjs")
|
|
|
10854
10872
|
]), null;
|
|
10855
10873
|
});
|
|
10856
10874
|
Cs.displayName = "AnomaliesCommands";
|
|
10857
|
-
var Ts = ln(ar("studio:anomaliesTaskPane", () => import("./
|
|
10875
|
+
var Ts = ln(ar("studio:anomaliesTaskPane", () => import("./Bqda2dQ0l75gjnDb.mjs"), { select: (e) => ({ default: e.AnomaliesTaskPane }) }).load), Fs = (e) => e.source === ks, Ds = "anomalies.showPane.review", Ns = () => {
|
|
10858
10876
|
Tr();
|
|
10859
|
-
const e = bt.DefaultCommandRegistry.registerDynamic("workbook", Cs), t =
|
|
10877
|
+
const e = bt.DefaultCommandRegistry.registerDynamic("workbook", Cs), t = vt.register({
|
|
10860
10878
|
key: Ds,
|
|
10861
10879
|
defaultKey: Ss,
|
|
10862
10880
|
contributions: { reviewToolbar: {
|
|
@@ -10935,7 +10953,7 @@ var Ms = ({ activity: e, children: t }) => {
|
|
|
10935
10953
|
dense: !0,
|
|
10936
10954
|
...Os,
|
|
10937
10955
|
"aria-label": e,
|
|
10938
|
-
icon: un(
|
|
10956
|
+
icon: un(kt, {
|
|
10939
10957
|
iconKey: t,
|
|
10940
10958
|
size: 16
|
|
10941
10959
|
}),
|
|
@@ -11133,7 +11151,7 @@ var Ms = ({ activity: e, children: t }) => {
|
|
|
11133
11151
|
height: 18
|
|
11134
11152
|
}
|
|
11135
11153
|
},
|
|
11136
|
-
children: un(
|
|
11154
|
+
children: un(kt, { iconKey: "Help" })
|
|
11137
11155
|
})
|
|
11138
11156
|
})
|
|
11139
11157
|
})
|
|
@@ -11216,7 +11234,7 @@ var Ms = ({ activity: e, children: t }) => {
|
|
|
11216
11234
|
ml: .5,
|
|
11217
11235
|
mt: .25
|
|
11218
11236
|
},
|
|
11219
|
-
children: un(
|
|
11237
|
+
children: un(kt, {
|
|
11220
11238
|
iconKey: s ? "ExpandLess" : "ExpandMore",
|
|
11221
11239
|
size: 16,
|
|
11222
11240
|
ariaHidden: !0
|
|
@@ -11303,7 +11321,7 @@ var Ms = ({ activity: e, children: t }) => {
|
|
|
11303
11321
|
fontVariantNumeric: "tabular-nums",
|
|
11304
11322
|
opacity: "stale" === e.finding.status ? .5 : 1
|
|
11305
11323
|
},
|
|
11306
|
-
children: e.ordinal > 0 ? e.ordinal : un(
|
|
11324
|
+
children: e.ordinal > 0 ? e.ordinal : un(kt, {
|
|
11307
11325
|
iconKey: "question" === e.finding.intent ? "Help" : "CheckSuccess",
|
|
11308
11326
|
size: 14,
|
|
11309
11327
|
ariaHidden: !0
|
|
@@ -11518,7 +11536,7 @@ var _s = ({ item: e, isCurrent: t, onSelect: o, onDismiss: n }) => {
|
|
|
11518
11536
|
at: e.timestamp,
|
|
11519
11537
|
commit: e
|
|
11520
11538
|
}))].sort((e, t) => t.at - e.at), p = d.filter((e) => "finding" === e.kind ? c(e.finding.label, e.finding.range) : c(e.commit.description ?? t(ee.changesUntitled))), u = new Map(n.map((e) => [e.id, e]));
|
|
11521
|
-
return mn(pn, { children: [un(
|
|
11539
|
+
return mn(pn, { children: [un(vi, {
|
|
11522
11540
|
value: l,
|
|
11523
11541
|
onChange: i,
|
|
11524
11542
|
placeholder: t(ee.historySearch),
|
|
@@ -11662,14 +11680,14 @@ var sc = bo((e) => {
|
|
|
11662
11680
|
...h,
|
|
11663
11681
|
"& .MuiSelect-icon": { display: "none" },
|
|
11664
11682
|
"& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
|
|
11665
|
-
}), mn(
|
|
11683
|
+
}), mn(kn, {
|
|
11666
11684
|
size: "small",
|
|
11667
11685
|
...c,
|
|
11668
11686
|
children: [un(Dn, { children: p }), mn(Wn, {
|
|
11669
11687
|
value: s ?? t?.getName() ?? "null",
|
|
11670
11688
|
label: p,
|
|
11671
11689
|
readOnly: l,
|
|
11672
|
-
IconComponent: (e) => un(
|
|
11690
|
+
IconComponent: (e) => un(kt, {
|
|
11673
11691
|
iconKey: "ExpandMore",
|
|
11674
11692
|
...e
|
|
11675
11693
|
}),
|
|
@@ -11719,7 +11737,7 @@ var cc = 0, dc = /* @__PURE__ */ new WeakMap(), pc = (e) => {
|
|
|
11719
11737
|
const o = t.getAcceptsTypes?.();
|
|
11720
11738
|
return !o || o.includes(l);
|
|
11721
11739
|
}).sort(yc(o));
|
|
11722
|
-
},
|
|
11740
|
+
}, vc = (e, t, o, n) => {
|
|
11723
11741
|
const r = yc(n), a = /* @__PURE__ */ new Map();
|
|
11724
11742
|
for (const t of e) {
|
|
11725
11743
|
const e = bc.get(t);
|
|
@@ -11733,16 +11751,16 @@ var cc = 0, dc = /* @__PURE__ */ new WeakMap(), pc = (e) => {
|
|
|
11733
11751
|
sx: wc,
|
|
11734
11752
|
children: e
|
|
11735
11753
|
}, `__header:${e}`)), o.forEach((e) => s.push(t(e)));
|
|
11736
|
-
return a.size > 0 && l.length > 0 && s.push(un(
|
|
11754
|
+
return a.size > 0 && l.length > 0 && s.push(un(vn, {}, "__divider:grouped")), l.length > 0 && (s.push(un(On, {
|
|
11737
11755
|
disableSticky: !0,
|
|
11738
11756
|
sx: wc,
|
|
11739
11757
|
children: o("condition.groupBasic")
|
|
11740
|
-
}, "__header:leaf")), l.forEach((e) => s.push(t(e)))), l.length > 0 && i.length > 0 && s.push(un(
|
|
11758
|
+
}, "__header:leaf")), l.forEach((e) => s.push(t(e)))), l.length > 0 && i.length > 0 && s.push(un(vn, {}, "__divider")), i.length > 0 && (s.push(un(On, {
|
|
11741
11759
|
disableSticky: !0,
|
|
11742
11760
|
sx: wc,
|
|
11743
11761
|
children: o("condition.groupCombine")
|
|
11744
11762
|
}, "__header:combinator")), i.forEach((e) => s.push(t(e)))), s;
|
|
11745
|
-
},
|
|
11763
|
+
}, kc = (e, t, o = null, n) => {
|
|
11746
11764
|
if (!e.isCombinator?.()) return e.createDefaultParam?.(o ?? void 0, n) ?? null;
|
|
11747
11765
|
const r = t.find((e) => !e.isCombinator?.()) ?? null, a = r ? {
|
|
11748
11766
|
operator: r.getName(),
|
|
@@ -11760,11 +11778,11 @@ var cc = 0, dc = /* @__PURE__ */ new WeakMap(), pc = (e) => {
|
|
|
11760
11778
|
}, Sc = { pl: 2 }, Cc = bo(ho((e, t) => {
|
|
11761
11779
|
const { icon: o, tooltip: n, label: r, darkMode: a, propsPanel: l, value: i, operators: s, onChange: c, title: d, readOnly: p = !1, ...u } = e, m = ao(), h = Qt();
|
|
11762
11780
|
d ?? m("condition.operatorTitle");
|
|
11763
|
-
const g = o || un(
|
|
11781
|
+
const g = o || un(kt, { iconKey: "Add" }), b = To(c);
|
|
11764
11782
|
b.current = c;
|
|
11765
11783
|
const f = {
|
|
11766
11784
|
renderPopupPanel: fo((e) => {
|
|
11767
|
-
const { closeFloatAll: t } = e, o =
|
|
11785
|
+
const { closeFloatAll: t } = e, o = vc(s, (e) => un(Ln, {
|
|
11768
11786
|
sx: Sc,
|
|
11769
11787
|
value: e.getName(),
|
|
11770
11788
|
onClick: () => {
|
|
@@ -11808,19 +11826,19 @@ var cc = 0, dc = /* @__PURE__ */ new WeakMap(), pc = (e) => {
|
|
|
11808
11826
|
o.forEach((e) => {
|
|
11809
11827
|
d.set(e.getName(), e);
|
|
11810
11828
|
});
|
|
11811
|
-
const p =
|
|
11829
|
+
const p = vc(o, (e) => un(Ln, {
|
|
11812
11830
|
value: e.getName(),
|
|
11813
11831
|
sx: Sc,
|
|
11814
11832
|
children: e.getTitle?.()
|
|
11815
11833
|
}, e.getName()), i, s);
|
|
11816
|
-
return mn(
|
|
11834
|
+
return mn(kn, {
|
|
11817
11835
|
size: "small",
|
|
11818
11836
|
...l,
|
|
11819
11837
|
children: [un(Dn, { children: c }), un(Wn, {
|
|
11820
11838
|
value: t?.getName() ?? "null",
|
|
11821
11839
|
label: c,
|
|
11822
11840
|
readOnly: a,
|
|
11823
|
-
IconComponent: (e) => un(
|
|
11841
|
+
IconComponent: (e) => un(kt, {
|
|
11824
11842
|
iconKey: "ExpandMore",
|
|
11825
11843
|
...e
|
|
11826
11844
|
}),
|
|
@@ -12072,13 +12090,13 @@ var Wc = {}, zc = bo((e) => {
|
|
|
12072
12090
|
gap: .25,
|
|
12073
12091
|
...a?.sx
|
|
12074
12092
|
},
|
|
12075
|
-
children: [un(
|
|
12093
|
+
children: [un(kn, {
|
|
12076
12094
|
sx: { flex: .5 },
|
|
12077
12095
|
size: "small",
|
|
12078
12096
|
children: mn(Wn, {
|
|
12079
12097
|
value: i,
|
|
12080
12098
|
sx: c,
|
|
12081
|
-
IconComponent: (e) => un(
|
|
12099
|
+
IconComponent: (e) => un(kt, {
|
|
12082
12100
|
iconKey: "ExpandMore",
|
|
12083
12101
|
...e
|
|
12084
12102
|
}),
|
|
@@ -12272,12 +12290,12 @@ var Vc = bo((e) => {
|
|
|
12272
12290
|
gap: 2,
|
|
12273
12291
|
...r?.sx
|
|
12274
12292
|
},
|
|
12275
|
-
children: un(
|
|
12293
|
+
children: un(kn, {
|
|
12276
12294
|
size: "small",
|
|
12277
12295
|
children: un(Wn, {
|
|
12278
12296
|
value: l,
|
|
12279
12297
|
sx: { backgroundColor: "background.paper" },
|
|
12280
|
-
IconComponent: (e) => un(
|
|
12298
|
+
IconComponent: (e) => un(kt, {
|
|
12281
12299
|
iconKey: "ExpandMore",
|
|
12282
12300
|
...e
|
|
12283
12301
|
}),
|
|
@@ -12291,7 +12309,7 @@ var Vc = bo((e) => {
|
|
|
12291
12309
|
disabled: n,
|
|
12292
12310
|
children: a.map((e, t) => {
|
|
12293
12311
|
const o = [];
|
|
12294
|
-
return t > 0 && o.push(un(
|
|
12312
|
+
return t > 0 && o.push(un(vn, {}, `divider-${t}`)), o.push(un(On, {
|
|
12295
12313
|
sx: wc,
|
|
12296
12314
|
children: e.header
|
|
12297
12315
|
}, `header-${t}`)), e.options.map((e) => o.push(un(Ln, {
|
|
@@ -12316,13 +12334,13 @@ var Hc = bo((e) => {
|
|
|
12316
12334
|
...r?.sx
|
|
12317
12335
|
},
|
|
12318
12336
|
children: [
|
|
12319
|
-
un(
|
|
12337
|
+
un(kn, {
|
|
12320
12338
|
size: "small",
|
|
12321
12339
|
sx: { flex: 1 },
|
|
12322
12340
|
children: mn(Wn, {
|
|
12323
12341
|
value: l ? "top" : "bottom",
|
|
12324
12342
|
sx: { backgroundColor: "background.paper" },
|
|
12325
|
-
IconComponent: (e) => un(
|
|
12343
|
+
IconComponent: (e) => un(kt, {
|
|
12326
12344
|
iconKey: "ExpandMore",
|
|
12327
12345
|
...e
|
|
12328
12346
|
}),
|
|
@@ -12356,13 +12374,13 @@ var Hc = bo((e) => {
|
|
|
12356
12374
|
slotProps: { input: { sx: { backgroundColor: "background.paper" } } },
|
|
12357
12375
|
sx: { flex: .6 }
|
|
12358
12376
|
}),
|
|
12359
|
-
un(
|
|
12377
|
+
un(kn, {
|
|
12360
12378
|
size: "small",
|
|
12361
12379
|
sx: { flex: 1 },
|
|
12362
12380
|
children: mn(Wn, {
|
|
12363
12381
|
value: s ? "percent" : "items",
|
|
12364
12382
|
sx: { backgroundColor: "background.paper" },
|
|
12365
|
-
IconComponent: (e) => un(
|
|
12383
|
+
IconComponent: (e) => un(kt, {
|
|
12366
12384
|
iconKey: "ExpandMore",
|
|
12367
12385
|
...e
|
|
12368
12386
|
}),
|
|
@@ -12523,7 +12541,7 @@ var Uc = "\0blank", qc = (e) => "string" == typeof e ? "s:" + e.toLowerCase() :
|
|
|
12523
12541
|
u,
|
|
12524
12542
|
a
|
|
12525
12543
|
]);
|
|
12526
|
-
const
|
|
12544
|
+
const v = So(() => {
|
|
12527
12545
|
if (!m) return [];
|
|
12528
12546
|
const e = ((e, t, o) => {
|
|
12529
12547
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -12554,7 +12572,7 @@ var Uc = "\0blank", qc = (e) => "string" == typeof e ? "s:" + e.toLowerCase() :
|
|
|
12554
12572
|
u,
|
|
12555
12573
|
a,
|
|
12556
12574
|
p
|
|
12557
|
-
]),
|
|
12575
|
+
]), k = fo((e, t) => {
|
|
12558
12576
|
l || b((o) => {
|
|
12559
12577
|
const n = new Set(o);
|
|
12560
12578
|
for (const o of e) t ? n.add(o) : n.delete(o);
|
|
@@ -12585,10 +12603,10 @@ var Uc = "\0blank", qc = (e) => "string" == typeof e ? "s:" + e.toLowerCase() :
|
|
|
12585
12603
|
...i
|
|
12586
12604
|
},
|
|
12587
12605
|
children: un(ge, {
|
|
12588
|
-
items:
|
|
12606
|
+
items: v,
|
|
12589
12607
|
dates: m?.dates,
|
|
12590
12608
|
checked: g,
|
|
12591
|
-
onCheckedChange:
|
|
12609
|
+
onCheckedChange: k,
|
|
12592
12610
|
byDisplay: u,
|
|
12593
12611
|
onByDisplayChange: r ? w : void 0,
|
|
12594
12612
|
truncated: m?.truncated ?? !1,
|
|
@@ -12610,14 +12628,14 @@ var Xc = (e) => null == e ? "" : "boolean" == typeof e ? e ? "TRUE" : "FALSE" :
|
|
|
12610
12628
|
}
|
|
12611
12629
|
if (g) for (let t = 0; t < g.length; t++) e.push(g[t]);
|
|
12612
12630
|
return e;
|
|
12613
|
-
}, [m, g]), [
|
|
12631
|
+
}, [m, g]), [v, k] = Fo(null), w = To(0);
|
|
12614
12632
|
xo(() => {
|
|
12615
|
-
if (!d?.getListItemsAt || !c) return void
|
|
12633
|
+
if (!d?.getListItemsAt || !c) return void k(null);
|
|
12616
12634
|
const e = ++w.current, { rowIndex: t, colIndex: o } = Bc(c);
|
|
12617
12635
|
d.getListItemsAt(t, o).then((t) => {
|
|
12618
|
-
e === w.current &&
|
|
12636
|
+
e === w.current && k(t);
|
|
12619
12637
|
}, () => {
|
|
12620
|
-
e === w.current &&
|
|
12638
|
+
e === w.current && k([]);
|
|
12621
12639
|
});
|
|
12622
12640
|
}, [
|
|
12623
12641
|
d,
|
|
@@ -12630,9 +12648,9 @@ var Xc = (e) => null == e ? "" : "boolean" == typeof e ? e ? "TRUE" : "FALSE" :
|
|
|
12630
12648
|
]);
|
|
12631
12649
|
const S = So(() => {
|
|
12632
12650
|
const e = [];
|
|
12633
|
-
if (
|
|
12634
|
-
for (let t = 0; t <
|
|
12635
|
-
const o =
|
|
12651
|
+
if (v) {
|
|
12652
|
+
for (let t = 0; t < v.length; t++) {
|
|
12653
|
+
const o = v[t];
|
|
12636
12654
|
null !== o.value ? e.push({ text: o.text }) : n || e.push({ text: s("checklist.blank") });
|
|
12637
12655
|
}
|
|
12638
12656
|
return e;
|
|
@@ -12640,7 +12658,7 @@ var Xc = (e) => null == e ? "" : "boolean" == typeof e ? e ? "TRUE" : "FALSE" :
|
|
|
12640
12658
|
for (let t = 0; t < x.length; t++) e.push({ text: x[t] });
|
|
12641
12659
|
return f && !n && e.push({ text: s("checklist.blank") }), e;
|
|
12642
12660
|
}, [
|
|
12643
|
-
|
|
12661
|
+
v,
|
|
12644
12662
|
x,
|
|
12645
12663
|
f,
|
|
12646
12664
|
n,
|
|
@@ -12790,7 +12808,7 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12790
12808
|
td.Before,
|
|
12791
12809
|
td.BeforeEqualTo
|
|
12792
12810
|
]), nd = bo((e) => {
|
|
12793
|
-
const { operatorParam: t, onOperatorParamChange: o, onRemove: n, renderRemove: r, operators: a, selector: l, onSelectorChange: i, getItems: s, propsChecklist: c, ignoreBlank: d, operatorTitle: p, operatorFixed: u = !1, readOnly: h, required: g, ...b } = e, f = ao(), y = p ?? f("condition.when"), x = t?.operator ?? null,
|
|
12811
|
+
const { operatorParam: t, onOperatorParamChange: o, onRemove: n, renderRemove: r, operators: a, selector: l, onSelectorChange: i, getItems: s, propsChecklist: c, ignoreBlank: d, operatorTitle: p, operatorFixed: u = !1, readOnly: h, required: g, ...b } = e, f = ao(), y = p ?? f("condition.when"), x = t?.operator ?? null, v = () => h || g || null === r ? null : r ? un(Ft, {
|
|
12794
12812
|
render: r,
|
|
12795
12813
|
props: {
|
|
12796
12814
|
onClick: n,
|
|
@@ -12798,10 +12816,10 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12798
12816
|
readOnly: h
|
|
12799
12817
|
}
|
|
12800
12818
|
}) : un(Lo, {
|
|
12801
|
-
icon: un(
|
|
12819
|
+
icon: un(kt, { iconKey: "Close" }),
|
|
12802
12820
|
onClick: n
|
|
12803
|
-
}),
|
|
12804
|
-
|
|
12821
|
+
}), k = a.find((e) => e.getName() === x) ?? null, w = t?.param ?? null, S = !!k?.isCombinator?.(), C = x === m.BuiltInOperatorNames.InSet, [T, { width: F }] = Xt(), D = So(() => !k || S ? null : k.getParamType?.(l ?? void 0) ?? null, [
|
|
12822
|
+
k,
|
|
12805
12823
|
S,
|
|
12806
12824
|
l
|
|
12807
12825
|
]), N = u || !S && !C && F > 360, I = Et((e) => {
|
|
@@ -12810,7 +12828,7 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12810
12828
|
param: e
|
|
12811
12829
|
});
|
|
12812
12830
|
}, [o, x]), B = So(() => {
|
|
12813
|
-
if (!
|
|
12831
|
+
if (!k || S) return null;
|
|
12814
12832
|
const e = {
|
|
12815
12833
|
sx: {
|
|
12816
12834
|
flex: u ? 1 : .6,
|
|
@@ -12861,7 +12879,7 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12861
12879
|
selector: l
|
|
12862
12880
|
}) : D === m.BuiltInOperatorNames.Expression ? un(Gc, { ...e }) : null;
|
|
12863
12881
|
}, [
|
|
12864
|
-
|
|
12882
|
+
k,
|
|
12865
12883
|
S,
|
|
12866
12884
|
C,
|
|
12867
12885
|
s,
|
|
@@ -12874,14 +12892,14 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12874
12892
|
i,
|
|
12875
12893
|
u,
|
|
12876
12894
|
f
|
|
12877
|
-
]), P = So(() => S && w ? Array.isArray(w) ? w : [w] : [], [S, w]), R = S && "not" ===
|
|
12878
|
-
if (!e || e ===
|
|
12895
|
+
]), P = So(() => S && w ? Array.isArray(w) ? w : [w] : [], [S, w]), R = S && "not" === k?.getName(), M = (e) => {
|
|
12896
|
+
if (!e || e === k) return;
|
|
12879
12897
|
const t = !!e.isCombinator?.();
|
|
12880
12898
|
let n;
|
|
12881
|
-
if (t && S) n = "not" === e.getName() ? P[0] ??
|
|
12899
|
+
if (t && S) n = "not" === e.getName() ? P[0] ?? kc(e, a, l) : P.length > 0 ? P : kc(e, a, l);
|
|
12882
12900
|
else {
|
|
12883
|
-
const o =
|
|
12884
|
-
n = t || S || !r || r !== o ?
|
|
12901
|
+
const o = k?.getParamType?.(l ?? void 0) ?? null, r = e.getParamType?.(l ?? void 0) ?? null;
|
|
12902
|
+
n = t || S || !r || r !== o ? kc(e, a, l) : w;
|
|
12885
12903
|
}
|
|
12886
12904
|
o({
|
|
12887
12905
|
operator: e?.getName() ?? null,
|
|
@@ -12912,13 +12930,13 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12912
12930
|
u ? null : un(Tc, {
|
|
12913
12931
|
title: y,
|
|
12914
12932
|
sx: { flex: .4 },
|
|
12915
|
-
value:
|
|
12933
|
+
value: k,
|
|
12916
12934
|
operators: a,
|
|
12917
12935
|
onChange: M,
|
|
12918
12936
|
readOnly: h
|
|
12919
12937
|
}),
|
|
12920
12938
|
B,
|
|
12921
|
-
|
|
12939
|
+
v()
|
|
12922
12940
|
]
|
|
12923
12941
|
}) : mn(pn, { children: [mn(gn, {
|
|
12924
12942
|
sx: {
|
|
@@ -12931,19 +12949,19 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12931
12949
|
un(Tc, {
|
|
12932
12950
|
title: y,
|
|
12933
12951
|
sx: { flex: 1 },
|
|
12934
|
-
value:
|
|
12952
|
+
value: k,
|
|
12935
12953
|
operators: a,
|
|
12936
12954
|
onChange: M,
|
|
12937
12955
|
readOnly: h
|
|
12938
12956
|
}),
|
|
12939
12957
|
S && !R && !h && un(Cc, {
|
|
12940
|
-
label:
|
|
12941
|
-
icon: un(
|
|
12958
|
+
label: k?.getTitle?.(),
|
|
12959
|
+
icon: un(kt, { iconKey: "Add" }),
|
|
12942
12960
|
operators: a,
|
|
12943
12961
|
value: null,
|
|
12944
12962
|
onChange: (e) => {
|
|
12945
12963
|
if (!e) return;
|
|
12946
|
-
const t =
|
|
12964
|
+
const t = kc(e, a, l), n = [...P, {
|
|
12947
12965
|
operator: e?.getName() ?? null,
|
|
12948
12966
|
param: t
|
|
12949
12967
|
}];
|
|
@@ -12953,10 +12971,10 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12953
12971
|
});
|
|
12954
12972
|
}
|
|
12955
12973
|
}),
|
|
12956
|
-
|
|
12974
|
+
v()
|
|
12957
12975
|
]
|
|
12958
12976
|
}), S ? un(Fc, {
|
|
12959
|
-
operator:
|
|
12977
|
+
operator: k,
|
|
12960
12978
|
inputs: P,
|
|
12961
12979
|
onOptionChange: (e) => {
|
|
12962
12980
|
o({
|
|
@@ -12980,7 +12998,7 @@ var rd = {
|
|
|
12980
12998
|
borderColor: "divider",
|
|
12981
12999
|
borderRadius: 1
|
|
12982
13000
|
}, ad = "formula", ld = bo((e) => {
|
|
12983
|
-
const { condition: t, onConditionChange: o, showIncludeBlanks: r = !0, qualifiers: a, selectorTitle: l, readOnly: i, operators: s, selectors: c, ranges: d, getItems: p, propsChecklist: u, showSelector: h = !0, operatorTitle: g, renderRemove: b, sx: f, ...y } = e, x = ao(),
|
|
13001
|
+
const { condition: t, onConditionChange: o, showIncludeBlanks: r = !0, qualifiers: a, selectorTitle: l, readOnly: i, operators: s, selectors: c, ranges: d, getItems: p, propsChecklist: u, showSelector: h = !0, operatorTitle: g, renderRemove: b, sx: f, ...y } = e, x = ao(), v = Qt(), [k, w] = Fo(() => t?.getSelector() ?? null), [S, C] = Fo(() => t?.getOperator() ? {
|
|
12984
13002
|
operator: t.getOperator().getName(),
|
|
12985
13003
|
param: t.getParam()
|
|
12986
13004
|
} : null), [T, F] = Fo(() => t?.isIncludeBlanks() ?? !1);
|
|
@@ -12992,26 +13010,26 @@ var rd = {
|
|
|
12992
13010
|
param: t.getParam()
|
|
12993
13011
|
} : null), F(t.isIncludeBlanks());
|
|
12994
13012
|
}, [t]);
|
|
12995
|
-
const D = So(() => (c ?? Object.values(n.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "",
|
|
13013
|
+
const D = So(() => (c ?? Object.values(n.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", v)), [c, v]), N = So(() => s ?? Object.values(n.BuiltInOperators), [s]), I = So(() => N.find((e) => e.getName() === m.BuiltInOperatorNames.Expression) ?? null, [N]), B = h && !!I, P = B && S?.operator === m.BuiltInOperatorNames.Expression, R = So(() => {
|
|
12996
13014
|
if (s) return null;
|
|
12997
13015
|
const e = N.find((e) => e.getName() === m.BuiltInOperatorNames.InSet);
|
|
12998
13016
|
return e ? (t = Object.create(e), gc.add(t), t) : null;
|
|
12999
13017
|
var t;
|
|
13000
13018
|
}, [N, s]), M = So(() => {
|
|
13001
|
-
const e = xc(h ?
|
|
13019
|
+
const e = xc(h ? k : null, N, v, s ? [] : void 0);
|
|
13002
13020
|
if (p) {
|
|
13003
13021
|
const t = N.find((e) => e.getName() === m.BuiltInOperatorNames.InSet);
|
|
13004
13022
|
t && !e.includes(t) && e.unshift(t);
|
|
13005
13023
|
}
|
|
13006
|
-
if (R && !
|
|
13024
|
+
if (R && !k) {
|
|
13007
13025
|
const t = e.findIndex((e) => e.getName() === m.BuiltInOperatorNames.InSet);
|
|
13008
13026
|
t >= 0 && e.splice(t, 1, R);
|
|
13009
13027
|
}
|
|
13010
13028
|
return e;
|
|
13011
13029
|
}, [
|
|
13012
|
-
v,
|
|
13013
|
-
N,
|
|
13014
13030
|
k,
|
|
13031
|
+
N,
|
|
13032
|
+
v,
|
|
13015
13033
|
s,
|
|
13016
13034
|
p,
|
|
13017
13035
|
h,
|
|
@@ -13022,17 +13040,17 @@ var rd = {
|
|
|
13022
13040
|
E.current = !1;
|
|
13023
13041
|
const e = Array.from(K.current?.querySelectorAll("input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"hidden\"]):not([tabindex=\"-1\"]), textarea") ?? []).find((e) => !e.disabled && !e.readOnly && "true" !== e.getAttribute("aria-hidden"));
|
|
13024
13042
|
e && (e.focus(), e.select());
|
|
13025
|
-
}, [
|
|
13043
|
+
}, [k, S]);
|
|
13026
13044
|
const W = (e) => {
|
|
13027
|
-
const t = N.find((t) => t.getName() === e.operator) ?? null, n = h || !
|
|
13045
|
+
const t = N.find((t) => t.getName() === e.operator) ?? null, n = h || !k || !t || ((e, t) => {
|
|
13028
13046
|
if (!e) return !0;
|
|
13029
13047
|
const o = t.getName();
|
|
13030
13048
|
if (o === m.BuiltInOperatorNames.Blank) return !0;
|
|
13031
13049
|
if (e.getName() === m.BuiltInSelectorNames.Display && hc.has(o)) return !1;
|
|
13032
13050
|
const n = t.getAcceptsTypes?.();
|
|
13033
13051
|
return !n || n.includes(e.getSelectType() ?? null);
|
|
13034
|
-
})(
|
|
13035
|
-
n !==
|
|
13052
|
+
})(k, t) ? k : null;
|
|
13053
|
+
n !== k && w(n), C(e), o?.({
|
|
13036
13054
|
selector: n,
|
|
13037
13055
|
...e,
|
|
13038
13056
|
includeBlanks: T
|
|
@@ -13049,9 +13067,9 @@ var rd = {
|
|
|
13049
13067
|
h ? un(sc, {
|
|
13050
13068
|
title: l,
|
|
13051
13069
|
selectors: D,
|
|
13052
|
-
value:
|
|
13070
|
+
value: k,
|
|
13053
13071
|
onChange: (e, t) => {
|
|
13054
|
-
if (S && A.current.set(P ? ad : L(
|
|
13072
|
+
if (S && A.current.set(P ? ad : L(k), S), t === ad && I) {
|
|
13055
13073
|
const e = A.current.get(ad) ?? {
|
|
13056
13074
|
operator: I.getName(),
|
|
13057
13075
|
param: I.createDefaultParam?.() ?? ""
|
|
@@ -13071,16 +13089,16 @@ var rd = {
|
|
|
13071
13089
|
const e = (c.getParamType?.(t ?? void 0) ?? null) !== (c.getParamType?.(o ?? void 0) ?? null);
|
|
13072
13090
|
return c.isCombinator?.() || e ? {
|
|
13073
13091
|
operator: n.operator,
|
|
13074
|
-
param:
|
|
13092
|
+
param: kc(c, i, o)
|
|
13075
13093
|
} : n;
|
|
13076
13094
|
}
|
|
13077
13095
|
const d = o?.getDefaultCondition?.(l) ?? null, p = s(d?.operator);
|
|
13078
13096
|
return d && p ? {
|
|
13079
13097
|
operator: d.operator,
|
|
13080
|
-
param: void 0 !== d.param ? d.param :
|
|
13098
|
+
param: void 0 !== d.param ? d.param : kc(p, i, o)
|
|
13081
13099
|
} : null;
|
|
13082
13100
|
})({
|
|
13083
|
-
from:
|
|
13101
|
+
from: k,
|
|
13084
13102
|
to: e,
|
|
13085
13103
|
current: P ? null : S,
|
|
13086
13104
|
remembered: A.current.get(L(e)) ?? null,
|
|
@@ -13112,7 +13130,7 @@ var rd = {
|
|
|
13112
13130
|
onOperatorParamChange: W,
|
|
13113
13131
|
onRemove: () => {
|
|
13114
13132
|
C(null), o?.({
|
|
13115
|
-
selector:
|
|
13133
|
+
selector: k,
|
|
13116
13134
|
operator: null,
|
|
13117
13135
|
param: null,
|
|
13118
13136
|
includeBlanks: T
|
|
@@ -13122,7 +13140,7 @@ var rd = {
|
|
|
13122
13140
|
operatorTitle: g,
|
|
13123
13141
|
operators: P ? M : O,
|
|
13124
13142
|
operatorFixed: P,
|
|
13125
|
-
selector:
|
|
13143
|
+
selector: k,
|
|
13126
13144
|
onSelectorChange: (e) => {
|
|
13127
13145
|
const t = e ? D.find((t) => t.getName() === e) ?? n.Selectors.get(e) ?? null : null;
|
|
13128
13146
|
w(t), o?.({
|
|
@@ -13145,7 +13163,7 @@ var rd = {
|
|
|
13145
13163
|
onChange: (e) => {
|
|
13146
13164
|
e && (E.current = !0, W({
|
|
13147
13165
|
operator: e?.getName() ?? null,
|
|
13148
|
-
param:
|
|
13166
|
+
param: kc(e, M, k, p ? void 0 : { ranges: d })
|
|
13149
13167
|
}));
|
|
13150
13168
|
},
|
|
13151
13169
|
readOnly: i
|
|
@@ -13166,7 +13184,7 @@ var rd = {
|
|
|
13166
13184
|
checked: T,
|
|
13167
13185
|
onChange: (e) => {
|
|
13168
13186
|
t = e.target.checked, F(t), o?.({
|
|
13169
|
-
selector:
|
|
13187
|
+
selector: k,
|
|
13170
13188
|
...S,
|
|
13171
13189
|
includeBlanks: t
|
|
13172
13190
|
});
|
|
@@ -13234,7 +13252,7 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13234
13252
|
texts: (o[N.String] ?? 0) + (o[N.Boolean] ?? 0),
|
|
13235
13253
|
showsDates: n
|
|
13236
13254
|
};
|
|
13237
|
-
})(u), [u])), y = c("number" === f ? "filter.numberFilters" : "date" === f ? "filter.dateFilters" : "filter.textFilters"), x = c("number" === f ? "filter.family.number" : "date" === f ? "filter.family.date" : "filter.family.text"),
|
|
13255
|
+
})(u), [u])), y = c("number" === f ? "filter.numberFilters" : "date" === f ? "filter.dateFilters" : "filter.textFilters"), x = c("number" === f ? "filter.family.number" : "date" === f ? "filter.family.date" : "filter.family.text"), v = So(() => ((e, t, o) => {
|
|
13238
13256
|
const n = pd[e], r = md[e], a = (e) => {
|
|
13239
13257
|
const t = r.indexOf(e.getName());
|
|
13240
13258
|
return t < 0 ? r.length : t;
|
|
@@ -13244,12 +13262,12 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13244
13262
|
f,
|
|
13245
13263
|
y,
|
|
13246
13264
|
p
|
|
13247
|
-
]),
|
|
13265
|
+
]), k = So(() => new Set(v.map((e) => e.getName())), [v]), w = So(() => ((e) => {
|
|
13248
13266
|
const t = new Set(e.map((e) => e.getName())), o = hd().filter((e) => !t.has(e.getName()) && !mc.includes(e.getName()));
|
|
13249
13267
|
return [...e, ...o];
|
|
13250
|
-
})(
|
|
13268
|
+
})(v), [v]), S = So(() => {
|
|
13251
13269
|
if (u) return (e) => u.getItems(e);
|
|
13252
|
-
}, [u]), [C] = Fo(() => g ? null : m ? m.toJSON() : null), [T, F] = Fo(() => C ? gd(C,
|
|
13270
|
+
}, [u]), [C] = Fo(() => g ? null : m ? m.toJSON() : null), [T, F] = Fo(() => C ? gd(C, k) : "values"), [D, I] = Fo(() => C && "values" === gd(C, k) ? dd(C.selector) : sd.Display), [B, P] = Fo(() => C && "values" === gd(C, k) ? C.param : null), [R, M] = Fo("values" === T), O = So(() => D ? n.Selectors.get(D) ?? null : null, [D]), A = So(() => ({
|
|
13253
13271
|
selector: D,
|
|
13254
13272
|
operator: id.InSet,
|
|
13255
13273
|
param: B ?? {},
|
|
@@ -13257,7 +13275,7 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13257
13275
|
}), [D, B]), L = To({
|
|
13258
13276
|
values: !1,
|
|
13259
13277
|
blanks: !0
|
|
13260
|
-
}), [K, E] = Fo(() => C && "family" === gd(C,
|
|
13278
|
+
}), [K, E] = Fo(() => C && "family" === gd(C, k) ? C : null), [W, z] = Fo(() => C && "custom" === gd(C, k) ? C : null), V = So(() => K ? n.resolveInput(K) : null, [K]), H = So(() => W ? n.resolveInput(W) : null, [W]), $ = "values" === T ? A : "family" === T ? K : W, G = So(() => "values" === T ? n.resolveInput(A) : "family" === T ? V : H, [
|
|
13261
13279
|
T,
|
|
13262
13280
|
A,
|
|
13263
13281
|
V,
|
|
@@ -13266,32 +13284,32 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13266
13284
|
disabled: r,
|
|
13267
13285
|
variant: yt.Menuitem
|
|
13268
13286
|
}), [r]), j = fo((e) => {
|
|
13269
|
-
const t =
|
|
13287
|
+
const t = v[0] ?? null, o = ud[f], r = o ? n.Selectors.get(o) ?? null : null;
|
|
13270
13288
|
return {
|
|
13271
13289
|
selector: o,
|
|
13272
13290
|
operator: t?.getName() ?? null,
|
|
13273
|
-
param: t ?
|
|
13291
|
+
param: t ? kc(t, v, r) : null,
|
|
13274
13292
|
includeBlanks: e
|
|
13275
13293
|
};
|
|
13276
|
-
}, [f,
|
|
13294
|
+
}, [f, v]), _ = fo((e, t) => {
|
|
13277
13295
|
if (!e || e.operator === t?.operator || e.selector) return e;
|
|
13278
13296
|
const o = dd(e.operator);
|
|
13279
13297
|
if (o === id.InSet) return {
|
|
13280
13298
|
...e,
|
|
13281
13299
|
selector: sd.Display
|
|
13282
13300
|
};
|
|
13283
|
-
const r = null !== o &&
|
|
13301
|
+
const r = null !== o && k.has(o) ? ud[f] : null;
|
|
13284
13302
|
if (!r) return e;
|
|
13285
13303
|
const a = ((e) => Object.values(n.BuiltInOperators).find((t) => t.getName() === e) ?? null)(o), l = n.Selectors.get(r) ?? null;
|
|
13286
13304
|
return {
|
|
13287
13305
|
...e,
|
|
13288
13306
|
selector: r,
|
|
13289
|
-
param: a ?
|
|
13307
|
+
param: a ? kc(a, v, l) : e.param
|
|
13290
13308
|
};
|
|
13291
13309
|
}, [
|
|
13292
13310
|
f,
|
|
13293
|
-
|
|
13294
|
-
|
|
13311
|
+
k,
|
|
13312
|
+
v
|
|
13295
13313
|
]), Z = fo((e) => {
|
|
13296
13314
|
E((t) => _(e, t));
|
|
13297
13315
|
}, [_]), Q = fo((e) => {
|
|
@@ -13350,7 +13368,7 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13350
13368
|
includeBlanks: t
|
|
13351
13369
|
};
|
|
13352
13370
|
const o = W, n = dd(o?.operator);
|
|
13353
|
-
return o && null !== n &&
|
|
13371
|
+
return o && null !== n && k.has(n) ? {
|
|
13354
13372
|
...o,
|
|
13355
13373
|
includeBlanks: t
|
|
13356
13374
|
} : j(t);
|
|
@@ -13366,7 +13384,7 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13366
13384
|
$,
|
|
13367
13385
|
K,
|
|
13368
13386
|
W,
|
|
13369
|
-
|
|
13387
|
+
k,
|
|
13370
13388
|
j
|
|
13371
13389
|
]), ce = To(null);
|
|
13372
13390
|
xo(() => {
|
|
@@ -13396,7 +13414,7 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13396
13414
|
},
|
|
13397
13415
|
condition: "family" === e ? V : H,
|
|
13398
13416
|
onConditionChange: "family" === e ? Z : Q,
|
|
13399
|
-
operators: "family" === e ?
|
|
13417
|
+
operators: "family" === e ? v : w,
|
|
13400
13418
|
showSelector: !1,
|
|
13401
13419
|
operatorTitle: "",
|
|
13402
13420
|
renderRemove: null,
|
|
@@ -13511,7 +13529,7 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13511
13529
|
propsChecklist: ae
|
|
13512
13530
|
})
|
|
13513
13531
|
}) : null,
|
|
13514
|
-
mn(
|
|
13532
|
+
mn(ki.Provider, {
|
|
13515
13533
|
value: ee,
|
|
13516
13534
|
children: ["family" === T ? ue("family") : null, "custom" === T ? ue("custom") : null]
|
|
13517
13535
|
})
|
|
@@ -13543,11 +13561,11 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13543
13561
|
});
|
|
13544
13562
|
}));
|
|
13545
13563
|
bd.displayName = "ColumnMenu";
|
|
13546
|
-
var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.get(yd.Display) ?? null,
|
|
13564
|
+
var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.get(yd.Display) ?? null, vd = [
|
|
13547
13565
|
fd.And,
|
|
13548
13566
|
fd.Or,
|
|
13549
13567
|
fd.Not
|
|
13550
|
-
],
|
|
13568
|
+
], kd = {
|
|
13551
13569
|
label: [
|
|
13552
13570
|
fd.EqualTo,
|
|
13553
13571
|
fd.TextStartsWith,
|
|
@@ -13582,16 +13600,16 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13582
13600
|
value: null
|
|
13583
13601
|
}, Sd = (e, t) => {
|
|
13584
13602
|
const o = Object.values(n.BuiltInOperators), r = (e) => o.find((t) => t.getName() === e);
|
|
13585
|
-
return [...
|
|
13603
|
+
return [...kd[e].flatMap((e) => {
|
|
13586
13604
|
const o = r(e);
|
|
13587
13605
|
return o ? [fc(Object.create(o), t)] : [];
|
|
13588
|
-
}), ...
|
|
13606
|
+
}), ...vd.flatMap((e) => r(e) ?? [])];
|
|
13589
13607
|
}, Cd = (e, t) => {
|
|
13590
13608
|
const o = t[0] ?? null, r = wd[e], a = r ? n.Selectors.get(r) ?? null : null;
|
|
13591
13609
|
return {
|
|
13592
13610
|
selector: r,
|
|
13593
13611
|
operator: o?.getName() ?? null,
|
|
13594
|
-
param: o ?
|
|
13612
|
+
param: o ? kc(o, t, a) : null,
|
|
13595
13613
|
includeBlanks: !1
|
|
13596
13614
|
};
|
|
13597
13615
|
}, Td = bo((e) => {
|
|
@@ -13601,7 +13619,7 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13601
13619
|
})(t)), p = So(() => s.date || !s.label && ((e) => {
|
|
13602
13620
|
const t = e.getPivotTable(), o = t.getFields().findIndex((t) => t.getName() === e.getName()), n = t.toJSON()?.fields?.[o]?.numberFormat;
|
|
13603
13621
|
return "string" == typeof n && D.getEngine().isDateFormat(n);
|
|
13604
|
-
})(t) ? "date" : "label", [s, t]), u = l("date" === p ? "filter.dateFilters" : "filter.labelFilters"), m = l("filter.valueFilters"), h = So(() => Sd(p, u), [p, u]), g = So(() => Sd("value", m), [m]), b = s[p] ?? null, f = s.value?.condition ?? null, [x,
|
|
13622
|
+
})(t) ? "date" : "label", [s, t]), u = l("date" === p ? "filter.dateFilters" : "filter.labelFilters"), m = l("filter.valueFilters"), h = So(() => Sd(p, u), [p, u]), g = So(() => Sd("value", m), [m]), b = s[p] ?? null, f = s.value?.condition ?? null, [x, v] = Fo(() => i || s.manual ? "values" : b ? "rule" : f ? "value" : "values"), k = So(() => async () => {
|
|
13605
13623
|
const e = i ? t.getCurrentPage()?.getName() ?? null : null, o = t.getItems().map((t) => {
|
|
13606
13624
|
const o = t.getName();
|
|
13607
13625
|
return {
|
|
@@ -13627,7 +13645,7 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13627
13645
|
if (!e || e.selector || e.operator === t?.operator) return e;
|
|
13628
13646
|
const o = (n = e.operator) ? "string" == typeof n ? n : n.getName() : null;
|
|
13629
13647
|
var n;
|
|
13630
|
-
return "label" === p || null === o ||
|
|
13648
|
+
return "label" === p || null === o || vd.includes(o) ? e : {
|
|
13631
13649
|
...e,
|
|
13632
13650
|
selector: wd[p]
|
|
13633
13651
|
};
|
|
@@ -13635,7 +13653,7 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13635
13653
|
}, [p]), K = fo((e) => {
|
|
13636
13654
|
P(e);
|
|
13637
13655
|
}, []), E = fo((e) => {
|
|
13638
|
-
e && ("rule" === e && I((e) => e ?? Cd(p, h)), "value" === e && P((e) => e ?? Cd("value", g)),
|
|
13656
|
+
e && ("rule" === e && I((e) => e ?? Cd(p, h)), "value" === e && P((e) => e ?? Cd("value", g)), v(e));
|
|
13639
13657
|
}, [
|
|
13640
13658
|
p,
|
|
13641
13659
|
h,
|
|
@@ -13738,7 +13756,7 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13738
13756
|
display: "flex",
|
|
13739
13757
|
flexDirection: "column"
|
|
13740
13758
|
},
|
|
13741
|
-
children: un(
|
|
13759
|
+
children: un(ki.Provider, {
|
|
13742
13760
|
value: H,
|
|
13743
13761
|
children: un(ld, {
|
|
13744
13762
|
sx: {
|
|
@@ -13823,7 +13841,7 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13823
13841
|
children: un(ed, {
|
|
13824
13842
|
option: w,
|
|
13825
13843
|
onOptionChange: F,
|
|
13826
|
-
getItems:
|
|
13844
|
+
getItems: k,
|
|
13827
13845
|
selector: xd,
|
|
13828
13846
|
ignoreBlank: !1,
|
|
13829
13847
|
readOnly: o,
|
|
@@ -13916,10 +13934,10 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13916
13934
|
}));
|
|
13917
13935
|
Fd.displayName = "PivotMenu";
|
|
13918
13936
|
var Dd = bo(ho((e, t) => {
|
|
13919
|
-
const { commandKey: o,
|
|
13920
|
-
|
|
13921
|
-
}, [
|
|
13922
|
-
const t = Ee(
|
|
13937
|
+
const { commandKey: o, disabled: n, groupKey: r, ...a } = e, l = ao(), i = $t([o])[0], s = (i?.getContext())?.styles() ?? null, c = i?.getState(), d = Et((e) => {
|
|
13938
|
+
i?.execute(e);
|
|
13939
|
+
}, [i]), p = fo((e) => {
|
|
13940
|
+
const t = Ee(s), o = (e, t, o) => 0 === t.length ? null : mn(gn, { children: [
|
|
13923
13941
|
o ? un(Oo, { orientation: "horizontal" }) : null,
|
|
13924
13942
|
un(Ko, { children: e }),
|
|
13925
13943
|
un(gn, {
|
|
@@ -13937,18 +13955,18 @@ var Dd = bo(ho((e, t) => {
|
|
|
13937
13955
|
padding: "2px",
|
|
13938
13956
|
margin: "0px",
|
|
13939
13957
|
display: "flex",
|
|
13940
|
-
border: (t) => `solid ${e ===
|
|
13958
|
+
border: (t) => `solid ${e === c ? t.palette.primary.dark : "transparent"} 1px`
|
|
13941
13959
|
},
|
|
13942
13960
|
propsTooltip: {
|
|
13943
13961
|
label: e,
|
|
13944
13962
|
placement: "bottom-start"
|
|
13945
13963
|
},
|
|
13946
|
-
disabled:
|
|
13964
|
+
disabled: n,
|
|
13947
13965
|
icon: null,
|
|
13948
|
-
onClick: () =>
|
|
13966
|
+
onClick: () => d(e),
|
|
13949
13967
|
children: un(ie, {
|
|
13950
13968
|
styleName: e,
|
|
13951
|
-
styles:
|
|
13969
|
+
styles: s,
|
|
13952
13970
|
width: 56,
|
|
13953
13971
|
height: 60
|
|
13954
13972
|
})
|
|
@@ -13965,39 +13983,109 @@ var Dd = bo(ho((e, t) => {
|
|
|
13965
13983
|
paddingBottom: (e) => `calc(${e.shape.borderRadius}px + 6px)`
|
|
13966
13984
|
},
|
|
13967
13985
|
children: [
|
|
13968
|
-
o(
|
|
13969
|
-
o(
|
|
13970
|
-
o(
|
|
13971
|
-
o(
|
|
13986
|
+
o(l("slicerStyle.category.custom"), t.custom, !1),
|
|
13987
|
+
o(l("slicerStyle.category.light"), t.light, t.custom.length > 0),
|
|
13988
|
+
o(l("slicerStyle.category.other"), t.other, !0),
|
|
13989
|
+
o(l("slicerStyle.category.dark"), t.dark, !0)
|
|
13972
13990
|
]
|
|
13973
13991
|
});
|
|
13974
13992
|
}, [
|
|
13993
|
+
s,
|
|
13994
|
+
s?.getTheme(),
|
|
13975
13995
|
c,
|
|
13976
|
-
|
|
13977
|
-
|
|
13978
|
-
|
|
13979
|
-
i
|
|
13980
|
-
]), m = r ?? (!s || s.disabled());
|
|
13996
|
+
n,
|
|
13997
|
+
l
|
|
13998
|
+
]), u = n ?? (!i || i.disabled());
|
|
13981
13999
|
return un(Bo, {
|
|
13982
14000
|
ref: t,
|
|
13983
|
-
|
|
13984
|
-
|
|
13985
|
-
|
|
13986
|
-
groupKey: a,
|
|
14001
|
+
renderPopupPanel: p,
|
|
14002
|
+
label: i?.getLabel(r),
|
|
14003
|
+
groupKey: r,
|
|
13987
14004
|
renderTooltip: ({ children: e, disabled: t }) => un(Vo, {
|
|
13988
|
-
label:
|
|
13989
|
-
description:
|
|
14005
|
+
label: i?.getLabel(),
|
|
14006
|
+
description: i?.getDescription(),
|
|
13990
14007
|
disabled: t,
|
|
13991
14008
|
children: e
|
|
13992
14009
|
}),
|
|
13993
|
-
disabled:
|
|
13994
|
-
icon:
|
|
13995
|
-
...
|
|
14010
|
+
disabled: u,
|
|
14011
|
+
icon: i?.getIcon(),
|
|
14012
|
+
...a
|
|
13996
14013
|
});
|
|
13997
14014
|
}));
|
|
13998
14015
|
Dd.displayName = "PresetSlicerStylesCommandButton";
|
|
13999
|
-
var Nd = () => {
|
|
14000
|
-
const e =
|
|
14016
|
+
var Nd = bo(ho((e, t) => {
|
|
14017
|
+
const { commandKey: o, disabled: n, groupKey: r, ...a } = e, l = $t([o])[0], i = l?.getContext(), s = i?.anchor() ?? null, c = n ?? (!l || l.disabled()), { reference: d } = jt(), p = fo((e) => {
|
|
14018
|
+
const t = (e) => {
|
|
14019
|
+
d?.closeAll(), l?.execute({ field: e });
|
|
14020
|
+
}, o = (i?.fields() ?? []).map((e) => {
|
|
14021
|
+
const o = e === s;
|
|
14022
|
+
return un(Eo, {
|
|
14023
|
+
selected: o,
|
|
14024
|
+
disabled: c,
|
|
14025
|
+
icon: o ? un(jo, {}) : void 0,
|
|
14026
|
+
sx: {
|
|
14027
|
+
display: "flex",
|
|
14028
|
+
paddingTop: "4px",
|
|
14029
|
+
paddingBottom: "4px",
|
|
14030
|
+
flex: "none"
|
|
14031
|
+
},
|
|
14032
|
+
onMouseUp: (o) => {
|
|
14033
|
+
0 === o.button && t(e);
|
|
14034
|
+
},
|
|
14035
|
+
onMouseDown: (e) => {
|
|
14036
|
+
0 === e.button && e.preventDefault();
|
|
14037
|
+
},
|
|
14038
|
+
onKeyDown: (o) => {
|
|
14039
|
+
o.keyCode !== wt.Enter && o.keyCode !== wt.Space || t(e);
|
|
14040
|
+
},
|
|
14041
|
+
children: un(jn, {
|
|
14042
|
+
component: "div",
|
|
14043
|
+
sx: {
|
|
14044
|
+
whiteSpace: "nowrap",
|
|
14045
|
+
overflow: "hidden",
|
|
14046
|
+
textOverflow: "ellipsis"
|
|
14047
|
+
},
|
|
14048
|
+
children: e
|
|
14049
|
+
})
|
|
14050
|
+
}, e);
|
|
14051
|
+
});
|
|
14052
|
+
return Jo({
|
|
14053
|
+
...e,
|
|
14054
|
+
children: un(gn, {
|
|
14055
|
+
sx: {
|
|
14056
|
+
overflow: "auto",
|
|
14057
|
+
flex: "1 1 100%"
|
|
14058
|
+
},
|
|
14059
|
+
children: o
|
|
14060
|
+
})
|
|
14061
|
+
});
|
|
14062
|
+
}, [
|
|
14063
|
+
l,
|
|
14064
|
+
i,
|
|
14065
|
+
s,
|
|
14066
|
+
c,
|
|
14067
|
+
d
|
|
14068
|
+
]);
|
|
14069
|
+
return un(Bo, {
|
|
14070
|
+
ref: t,
|
|
14071
|
+
onQuickClick: s ? () => l?.execute() : void 0,
|
|
14072
|
+
renderPopupPanel: p,
|
|
14073
|
+
label: l?.getLabel(r),
|
|
14074
|
+
groupKey: r,
|
|
14075
|
+
renderTooltip: ({ children: e, disabled: t }) => un(Vo, {
|
|
14076
|
+
label: l?.getLabel(),
|
|
14077
|
+
description: l?.getDescription(),
|
|
14078
|
+
disabled: t,
|
|
14079
|
+
children: e
|
|
14080
|
+
}),
|
|
14081
|
+
disabled: c,
|
|
14082
|
+
icon: l?.getIcon(),
|
|
14083
|
+
...a
|
|
14084
|
+
});
|
|
14085
|
+
}));
|
|
14086
|
+
Nd.displayName = "InsertSlicerCommandButton";
|
|
14087
|
+
var Id = () => {
|
|
14088
|
+
const e = vt.register({
|
|
14001
14089
|
key: "formatSlicerStyle",
|
|
14002
14090
|
contributions: { slicerToolbar: {
|
|
14003
14091
|
order: -1,
|
|
@@ -14007,19 +14095,18 @@ var Nd = () => {
|
|
|
14007
14095
|
...e,
|
|
14008
14096
|
commandKey: "formatSlicerStyle"
|
|
14009
14097
|
})
|
|
14010
|
-
}, !0), t =
|
|
14098
|
+
}, !0), t = vt.register({
|
|
14011
14099
|
key: "insertSlicer",
|
|
14012
|
-
render: (e) => un(
|
|
14100
|
+
render: (e) => un(Nd, {
|
|
14013
14101
|
...e,
|
|
14014
|
-
commandKey: "insertSlicer"
|
|
14015
|
-
quickCommandKey: "insertSlicer"
|
|
14102
|
+
commandKey: "insertSlicer"
|
|
14016
14103
|
})
|
|
14017
14104
|
}, !0);
|
|
14018
14105
|
return () => {
|
|
14019
14106
|
e(), t();
|
|
14020
14107
|
};
|
|
14021
14108
|
};
|
|
14022
|
-
function
|
|
14109
|
+
function Bd(e, t, o) {
|
|
14023
14110
|
return e === g.BuiltInSheetPattern.Solid ? {
|
|
14024
14111
|
foreground: o,
|
|
14025
14112
|
background: t
|
|
@@ -14028,9 +14115,9 @@ function Id(e, t, o) {
|
|
|
14028
14115
|
background: o
|
|
14029
14116
|
};
|
|
14030
14117
|
}
|
|
14031
|
-
var
|
|
14118
|
+
var Pd = bo((e) => {
|
|
14032
14119
|
const { patternType: t, foreground: o, background: n, createCell: r, darkMode: a = !1, className: l, style: i, ...s } = e, c = So(() => {
|
|
14033
|
-
const e =
|
|
14120
|
+
const e = Bd(t, o, n);
|
|
14034
14121
|
return r({ style: { fill: {
|
|
14035
14122
|
type: g.Type.Pattern,
|
|
14036
14123
|
patternType: t,
|
|
@@ -14055,8 +14142,8 @@ var Bd = bo((e) => {
|
|
|
14055
14142
|
...s
|
|
14056
14143
|
});
|
|
14057
14144
|
});
|
|
14058
|
-
|
|
14059
|
-
var
|
|
14145
|
+
Pd.displayName = "PatternSwatch";
|
|
14146
|
+
var Rd = Object.freeze([
|
|
14060
14147
|
g.BuiltInSheetPattern.Solid,
|
|
14061
14148
|
g.BuiltInSheetPattern.DarkGray,
|
|
14062
14149
|
g.BuiltInSheetPattern.MediumGray,
|
|
@@ -14076,7 +14163,7 @@ var Pd = Object.freeze([
|
|
|
14076
14163
|
g.BuiltInSheetPattern.LightGrid,
|
|
14077
14164
|
g.BuiltInSheetPattern.LightTrellis
|
|
14078
14165
|
]);
|
|
14079
|
-
function
|
|
14166
|
+
function Md(e, t) {
|
|
14080
14167
|
switch (t) {
|
|
14081
14168
|
case g.BuiltInSheetPattern.None: return e("fill.pattern.none");
|
|
14082
14169
|
case g.BuiltInSheetPattern.Solid: return e("fill.pattern.solid");
|
|
@@ -14100,7 +14187,7 @@ function Rd(e, t) {
|
|
|
14100
14187
|
default: return t;
|
|
14101
14188
|
}
|
|
14102
14189
|
}
|
|
14103
|
-
var
|
|
14190
|
+
var Od = bo((e) => {
|
|
14104
14191
|
const { selectedPattern: t, foreground: o, background: n, onSelectPattern: r, createCell: a, darkMode: l = !1, disabled: i, ...s } = e, c = ao(), d = Et(r ?? ((e) => {}), [r]), p = fo((e) => {
|
|
14105
14192
|
const { closeFloat: r } = e;
|
|
14106
14193
|
return un(gn, {
|
|
@@ -14110,12 +14197,12 @@ var Md = bo((e) => {
|
|
|
14110
14197
|
gap: "4px",
|
|
14111
14198
|
padding: "8px"
|
|
14112
14199
|
},
|
|
14113
|
-
children:
|
|
14114
|
-
label:
|
|
14200
|
+
children: Rd.map((e) => un(Vo, {
|
|
14201
|
+
label: Md(c, e),
|
|
14115
14202
|
children: un(gn, {
|
|
14116
14203
|
role: "button",
|
|
14117
14204
|
tabIndex: 0,
|
|
14118
|
-
"aria-label":
|
|
14205
|
+
"aria-label": Md(c, e),
|
|
14119
14206
|
"aria-pressed": e === t,
|
|
14120
14207
|
onMouseDown: (e) => e.preventDefault(),
|
|
14121
14208
|
onMouseUp: () => {
|
|
@@ -14133,7 +14220,7 @@ var Md = bo((e) => {
|
|
|
14133
14220
|
outlineOffset: "-1px",
|
|
14134
14221
|
"&:hover": { outline: (e) => `2px solid ${e.palette.primary.light}` }
|
|
14135
14222
|
},
|
|
14136
|
-
children: un(
|
|
14223
|
+
children: un(Pd, {
|
|
14137
14224
|
patternType: e,
|
|
14138
14225
|
foreground: o,
|
|
14139
14226
|
background: n,
|
|
@@ -14154,7 +14241,7 @@ var Md = bo((e) => {
|
|
|
14154
14241
|
]);
|
|
14155
14242
|
return un(Wo, {
|
|
14156
14243
|
disabled: i,
|
|
14157
|
-
tooltip: c("fill.patternTooltip", { pattern:
|
|
14244
|
+
tooltip: c("fill.patternTooltip", { pattern: Md(c, t) }),
|
|
14158
14245
|
renderPopupPanel: p,
|
|
14159
14246
|
icon: un(gn, {
|
|
14160
14247
|
sx: {
|
|
@@ -14165,7 +14252,7 @@ var Md = bo((e) => {
|
|
|
14165
14252
|
outlineOffset: "-1px",
|
|
14166
14253
|
overflow: "hidden"
|
|
14167
14254
|
},
|
|
14168
|
-
children: un(
|
|
14255
|
+
children: un(Pd, {
|
|
14169
14256
|
patternType: t,
|
|
14170
14257
|
foreground: o,
|
|
14171
14258
|
background: n,
|
|
@@ -14176,13 +14263,13 @@ var Md = bo((e) => {
|
|
|
14176
14263
|
...s
|
|
14177
14264
|
});
|
|
14178
14265
|
});
|
|
14179
|
-
|
|
14180
|
-
var
|
|
14266
|
+
Od.displayName = "PatternPopupButton";
|
|
14267
|
+
var Ad = {
|
|
14181
14268
|
resizeOnOverflow: !1,
|
|
14182
14269
|
placement: "bottom",
|
|
14183
14270
|
offsets: [0, 2],
|
|
14184
14271
|
shift: { padding: 8 }
|
|
14185
|
-
},
|
|
14272
|
+
}, Ld = ((e) => {
|
|
14186
14273
|
const t = [], o = e.length;
|
|
14187
14274
|
for (let n = 0; n < o; n++) {
|
|
14188
14275
|
const [r, a] = e[(n + o - 1) % o], [l, i, s] = e[n], [c, d] = e[(n + 1) % o], p = (e, t) => {
|
|
@@ -14218,20 +14305,20 @@ var Od = {
|
|
|
14218
14305
|
6,
|
|
14219
14306
|
1.5
|
|
14220
14307
|
]
|
|
14221
|
-
]),
|
|
14308
|
+
]), Kd = (e) => Math.max(0, Math.min(1, e)), Ed = (e, o, n) => {
|
|
14222
14309
|
try {
|
|
14223
14310
|
return (e instanceof t ? e : new t(e, o)).toCSS(n);
|
|
14224
14311
|
} catch {
|
|
14225
14312
|
return "transparent";
|
|
14226
14313
|
}
|
|
14227
|
-
},
|
|
14314
|
+
}, Wd = (e, o, n) => {
|
|
14228
14315
|
try {
|
|
14229
14316
|
const r = new t(e, n).toRGBA(), a = new t(o, n).toRGBA(), l = (e, t) => Math.round((e + t) / 2).toString(16).padStart(2, "0");
|
|
14230
14317
|
return `${l(r.red, a.red)}${l(r.green, a.green)}${l(r.blue, a.blue)}`;
|
|
14231
14318
|
} catch {
|
|
14232
14319
|
return e;
|
|
14233
14320
|
}
|
|
14234
|
-
},
|
|
14321
|
+
}, zd = (e, t) => e.offset === t.offset && String(e.color) === String(t.color), Vd = (e, t) => e.length === t.length && e.every((e, o) => zd(e, t[o])), Hd = bo((e) => {
|
|
14235
14322
|
const { percent: t, disabled: o, inputRef: n, onChange: r } = e, a = ao(), [l, i] = Fo(String(t)), [s, c] = Fo(!1);
|
|
14236
14323
|
return xo(() => {
|
|
14237
14324
|
s || i(String(t));
|
|
@@ -14268,13 +14355,13 @@ var Od = {
|
|
|
14268
14355
|
sx: { width: 120 }
|
|
14269
14356
|
});
|
|
14270
14357
|
});
|
|
14271
|
-
|
|
14272
|
-
var
|
|
14273
|
-
const { index: o, stop: n, offset: r, schemeLookup: a, recentColors: l, darkMode: i, disabled: s, canRemove: c, rampRef: d, onDrag: p, onMove: u, onPreviewColor: m, onChangeColor: h, onRemove: g, onOpenChange: b } = e, f = ao(), y = Xn(), x = So(() => new t(n.color, a), [n.color, a]), [
|
|
14274
|
-
|
|
14358
|
+
Hd.displayName = "StopPositionField";
|
|
14359
|
+
var $d = bo((e) => {
|
|
14360
|
+
const { index: o, stop: n, offset: r, schemeLookup: a, recentColors: l, darkMode: i, disabled: s, canRemove: c, rampRef: d, onDrag: p, onMove: u, onPreviewColor: m, onChangeColor: h, onRemove: g, onOpenChange: b } = e, f = ao(), y = Xn(), x = So(() => new t(n.color, a), [n.color, a]), [v, k] = Fo(void 0), [w, S] = Fo(null), [C, T] = Fo(!1), [F, D] = Fo(!1), [N, I] = Fo(!1), [B, P] = Fo(!1), R = To(null), M = To(!1), O = Et((e) => {
|
|
14361
|
+
k(e), m(o, e ?? null);
|
|
14275
14362
|
}, [o, m]), A = Et((e) => {
|
|
14276
14363
|
u(o, e / 100);
|
|
14277
|
-
}, [o, u]), L = Math.round(100 * r), K =
|
|
14364
|
+
}, [o, u]), L = Math.round(100 * r), K = Ed(v ?? x, a, i), E = fo((e) => {
|
|
14278
14365
|
const { closeFloat: t } = e;
|
|
14279
14366
|
return mn(gn, {
|
|
14280
14367
|
className: "sxl-gradient-stop-popup",
|
|
@@ -14284,7 +14371,7 @@ var Hd = bo((e) => {
|
|
|
14284
14371
|
},
|
|
14285
14372
|
children: [un(Vr, {
|
|
14286
14373
|
selectedColor: x,
|
|
14287
|
-
previewColor:
|
|
14374
|
+
previewColor: v,
|
|
14288
14375
|
disableAlpha: !0,
|
|
14289
14376
|
schemeLookup: a,
|
|
14290
14377
|
recentColors: l,
|
|
@@ -14303,7 +14390,7 @@ var Hd = bo((e) => {
|
|
|
14303
14390
|
paddingX: 1,
|
|
14304
14391
|
paddingBottom: 1
|
|
14305
14392
|
},
|
|
14306
|
-
children: un(
|
|
14393
|
+
children: un(Hd, {
|
|
14307
14394
|
percent: L,
|
|
14308
14395
|
disabled: s,
|
|
14309
14396
|
inputRef: R,
|
|
@@ -14313,7 +14400,7 @@ var Hd = bo((e) => {
|
|
|
14313
14400
|
});
|
|
14314
14401
|
}, [
|
|
14315
14402
|
x,
|
|
14316
|
-
|
|
14403
|
+
v,
|
|
14317
14404
|
L,
|
|
14318
14405
|
o,
|
|
14319
14406
|
a,
|
|
@@ -14327,7 +14414,7 @@ var Hd = bo((e) => {
|
|
|
14327
14414
|
anchor: w,
|
|
14328
14415
|
label: "gradient-stop",
|
|
14329
14416
|
renderPopupPanel: E,
|
|
14330
|
-
propsPopper:
|
|
14417
|
+
propsPopper: Ad,
|
|
14331
14418
|
onOpen: () => {
|
|
14332
14419
|
T(!0), b(o, !0), M.current && (M.current = !1, requestAnimationFrame(() => R.current?.focus()));
|
|
14333
14420
|
},
|
|
@@ -14359,7 +14446,7 @@ var Hd = bo((e) => {
|
|
|
14359
14446
|
t.moved = !0, D(!0), P(!1), W.reference.close(0);
|
|
14360
14447
|
}
|
|
14361
14448
|
const r = d.current?.getBoundingClientRect().width ?? 0;
|
|
14362
|
-
t.offset = r > 0 ?
|
|
14449
|
+
t.offset = r > 0 ? Kd(t.startOffset + n / r) : t.startOffset, p(o, t.offset, !1);
|
|
14363
14450
|
}, [
|
|
14364
14451
|
o,
|
|
14365
14452
|
d,
|
|
@@ -14384,10 +14471,10 @@ var Hd = bo((e) => {
|
|
|
14384
14471
|
const t = e.shiftKey ? .1 : .01;
|
|
14385
14472
|
switch (e.key) {
|
|
14386
14473
|
case "ArrowLeft":
|
|
14387
|
-
u(o,
|
|
14474
|
+
u(o, Kd(r - t));
|
|
14388
14475
|
break;
|
|
14389
14476
|
case "ArrowRight":
|
|
14390
|
-
u(o,
|
|
14477
|
+
u(o, Kd(r + t));
|
|
14391
14478
|
break;
|
|
14392
14479
|
case "Home":
|
|
14393
14480
|
u(o, 0);
|
|
@@ -14442,7 +14529,7 @@ var Hd = bo((e) => {
|
|
|
14442
14529
|
lineHeight: 0,
|
|
14443
14530
|
"& .activeColor": { fill: K }
|
|
14444
14531
|
},
|
|
14445
|
-
children: un(
|
|
14532
|
+
children: un(kt, { iconKey: "circle.colored" })
|
|
14446
14533
|
}),
|
|
14447
14534
|
onClick: () => {
|
|
14448
14535
|
P(!1), V();
|
|
@@ -14454,7 +14541,7 @@ var Hd = bo((e) => {
|
|
|
14454
14541
|
label: f("fill.gradientRemoveStop"),
|
|
14455
14542
|
simple: !0
|
|
14456
14543
|
},
|
|
14457
|
-
icon: un(
|
|
14544
|
+
icon: un(kt, { iconKey: "Close" }),
|
|
14458
14545
|
onClick: () => g(o)
|
|
14459
14546
|
})]
|
|
14460
14547
|
});
|
|
@@ -14515,7 +14602,7 @@ var Hd = bo((e) => {
|
|
|
14515
14602
|
viewBox: "0 0 14 17",
|
|
14516
14603
|
"aria-hidden": "true",
|
|
14517
14604
|
children: un("path", {
|
|
14518
|
-
d:
|
|
14605
|
+
d: Ld,
|
|
14519
14606
|
fill: K,
|
|
14520
14607
|
stroke: _ ? y.palette.primary.main : y.palette.text.secondary,
|
|
14521
14608
|
strokeWidth: _ ? 1.5 : 1,
|
|
@@ -14525,18 +14612,18 @@ var Hd = bo((e) => {
|
|
|
14525
14612
|
})
|
|
14526
14613
|
}), W.component] });
|
|
14527
14614
|
});
|
|
14528
|
-
|
|
14529
|
-
var
|
|
14615
|
+
$d.displayName = "StopHandle";
|
|
14616
|
+
var Gd = bo((e) => {
|
|
14530
14617
|
const { stops: t, onChange: o, minStops: n = 2, maxStops: r = 8, schemeLookup: a, recentColors: l, darkMode: i = !1, disabled: s = !1, className: c, ...d } = e, p = ao(), u = To(null), m = To({
|
|
14531
14618
|
known: [],
|
|
14532
14619
|
next: 1
|
|
14533
14620
|
}), h = So(() => {
|
|
14534
14621
|
const e = m.current, o = ((e, t, o) => {
|
|
14535
|
-
for (const o of t) if (
|
|
14622
|
+
for (const o of t) if (Vd(e, o.stops)) return o.keys;
|
|
14536
14623
|
const n = /* @__PURE__ */ new Set();
|
|
14537
14624
|
return e.map((e) => {
|
|
14538
14625
|
for (const o of t) {
|
|
14539
|
-
const t = o.stops.findIndex((t, r) => !n.has(o.keys[r]) &&
|
|
14626
|
+
const t = o.stops.findIndex((t, r) => !n.has(o.keys[r]) && zd(t, e));
|
|
14540
14627
|
if (t >= 0) return n.add(o.keys[t]), o.keys[t];
|
|
14541
14628
|
}
|
|
14542
14629
|
return -1;
|
|
@@ -14546,7 +14633,7 @@ var $d = bo((e) => {
|
|
|
14546
14633
|
stops: t,
|
|
14547
14634
|
keys: o
|
|
14548
14635
|
}, ...e.known].slice(0, 3)), o;
|
|
14549
|
-
}, [t]), [g, b] = Fo(null), [f, y] = Fo(null), [x,
|
|
14636
|
+
}, [t]), [g, b] = Fo(null), [f, y] = Fo(null), [x, v] = Fo(null);
|
|
14550
14637
|
wo(() => {
|
|
14551
14638
|
b((e) => {
|
|
14552
14639
|
if (!e?.released) return e;
|
|
@@ -14558,7 +14645,7 @@ var $d = bo((e) => {
|
|
|
14558
14645
|
const e = window.setTimeout(() => b((e) => e?.released ? null : e), 1e3);
|
|
14559
14646
|
return () => window.clearTimeout(e);
|
|
14560
14647
|
}, [g]);
|
|
14561
|
-
const
|
|
14648
|
+
const k = !s && t.length < r, w = !s && t.length > n, S = Et((e) => {
|
|
14562
14649
|
const t = [...e].sort((e, t) => e.stop.offset - t.stop.offset), n = {
|
|
14563
14650
|
stops: t.map((e) => e.stop),
|
|
14564
14651
|
keys: t.map((e) => e.key)
|
|
@@ -14588,7 +14675,7 @@ var $d = bo((e) => {
|
|
|
14588
14675
|
} : null);
|
|
14589
14676
|
}, [h]), N = Et((e, t) => {
|
|
14590
14677
|
const o = h[e];
|
|
14591
|
-
|
|
14678
|
+
v((e) => t ? o : e === o ? null : e);
|
|
14592
14679
|
}, [h]), I = Et((e, t) => {
|
|
14593
14680
|
S(C().map((o, n) => n === e ? {
|
|
14594
14681
|
...o,
|
|
@@ -14620,7 +14707,7 @@ var $d = bo((e) => {
|
|
|
14620
14707
|
S([...C(), {
|
|
14621
14708
|
stop: {
|
|
14622
14709
|
offset: n,
|
|
14623
|
-
color:
|
|
14710
|
+
color: Wd(l.color, i.color, a)
|
|
14624
14711
|
},
|
|
14625
14712
|
key: m.current.next++
|
|
14626
14713
|
}]);
|
|
@@ -14631,18 +14718,18 @@ var $d = bo((e) => {
|
|
|
14631
14718
|
C,
|
|
14632
14719
|
S
|
|
14633
14720
|
]), R = Et((e) => {
|
|
14634
|
-
if (!
|
|
14721
|
+
if (!k || 0 !== e.button || null !== x) return;
|
|
14635
14722
|
if (e.target.closest(".sxl-gradient-stop")) return;
|
|
14636
14723
|
const t = e.currentTarget.getBoundingClientRect();
|
|
14637
|
-
t.width <= 0 || P(
|
|
14724
|
+
t.width <= 0 || P(Kd((e.clientX - t.left) / t.width));
|
|
14638
14725
|
}, [
|
|
14639
|
-
|
|
14726
|
+
k,
|
|
14640
14727
|
x,
|
|
14641
14728
|
P
|
|
14642
14729
|
]), M = So(() => {
|
|
14643
14730
|
const e = t.map((e, t) => ({
|
|
14644
14731
|
offset: g?.key === h[t] ? g.offset : e.offset,
|
|
14645
|
-
css:
|
|
14732
|
+
css: Ed(f?.key === h[t] ? f.color : e.color, a, i)
|
|
14646
14733
|
}));
|
|
14647
14734
|
return e.sort((e, t) => e.offset - t.offset), `linear-gradient(90deg, ${e.map((e) => `${e.css} ${(100 * e.offset).toFixed(2)}%`).join(", ")})`;
|
|
14648
14735
|
}, [
|
|
@@ -14680,10 +14767,10 @@ var $d = bo((e) => {
|
|
|
14680
14767
|
border: (e) => `1px solid ${e.palette.divider}`,
|
|
14681
14768
|
backgroundImage: M,
|
|
14682
14769
|
backgroundRepeat: "no-repeat",
|
|
14683
|
-
cursor:
|
|
14770
|
+
cursor: k ? "copy" : "default",
|
|
14684
14771
|
opacity: s ? .5 : 1
|
|
14685
14772
|
},
|
|
14686
|
-
children: t.map((e, t) => un(
|
|
14773
|
+
children: t.map((e, t) => un($d, {
|
|
14687
14774
|
index: t,
|
|
14688
14775
|
stop: e,
|
|
14689
14776
|
offset: g?.key === h[t] ? g.offset : e.offset,
|
|
@@ -14702,19 +14789,19 @@ var $d = bo((e) => {
|
|
|
14702
14789
|
}, h[t]))
|
|
14703
14790
|
})
|
|
14704
14791
|
}), un(Lo, {
|
|
14705
|
-
disabled: !
|
|
14792
|
+
disabled: !k,
|
|
14706
14793
|
propsTooltip: {
|
|
14707
14794
|
label: p("fill.gradientAddStop"),
|
|
14708
14795
|
simple: !0
|
|
14709
14796
|
},
|
|
14710
|
-
icon: un(
|
|
14797
|
+
icon: un(kt, { iconKey: "Add" }),
|
|
14711
14798
|
onClick: () => P(),
|
|
14712
14799
|
sx: { marginTop: "-3px" }
|
|
14713
14800
|
})]
|
|
14714
14801
|
});
|
|
14715
14802
|
});
|
|
14716
|
-
|
|
14717
|
-
var
|
|
14803
|
+
Gd.displayName = "GradientStopsBar";
|
|
14804
|
+
var Ud = bo((e) => {
|
|
14718
14805
|
const { value: t, onChange: o, minStops: n, maxStops: r, schemeLookup: a, recentColors: l, darkMode: i = !1, disabled: s = !1, className: c, ...d } = e, p = ao(), u = Et((e) => {
|
|
14719
14806
|
o({
|
|
14720
14807
|
...t,
|
|
@@ -14737,7 +14824,7 @@ var Gd = bo((e) => {
|
|
|
14737
14824
|
gap: 1,
|
|
14738
14825
|
alignItems: "center"
|
|
14739
14826
|
},
|
|
14740
|
-
children: [mn(
|
|
14827
|
+
children: [mn(kn, {
|
|
14741
14828
|
size: "small",
|
|
14742
14829
|
sx: {
|
|
14743
14830
|
minWidth: 132,
|
|
@@ -14792,7 +14879,7 @@ var Gd = bo((e) => {
|
|
|
14792
14879
|
component: "div",
|
|
14793
14880
|
sx: { color: "text.secondary" },
|
|
14794
14881
|
children: p("fill.gradientStops")
|
|
14795
|
-
}), un(
|
|
14882
|
+
}), un(Gd, {
|
|
14796
14883
|
stops: t.stops,
|
|
14797
14884
|
onChange: (e) => u({ stops: e }),
|
|
14798
14885
|
minStops: n,
|
|
@@ -14805,8 +14892,8 @@ var Gd = bo((e) => {
|
|
|
14805
14892
|
})]
|
|
14806
14893
|
});
|
|
14807
14894
|
});
|
|
14808
|
-
|
|
14809
|
-
var
|
|
14895
|
+
Ud.displayName = "GradientEditor";
|
|
14896
|
+
var qd = (e) => {
|
|
14810
14897
|
const t = e.getStops();
|
|
14811
14898
|
return {
|
|
14812
14899
|
gradientType: e.getGradientType(),
|
|
@@ -14814,9 +14901,9 @@ var Ud = (e) => {
|
|
|
14814
14901
|
stops: t.length >= 2 ? t.map((e) => ({
|
|
14815
14902
|
offset: e.getOffset(),
|
|
14816
14903
|
color: e.getColor().toString()
|
|
14817
|
-
})) : [...
|
|
14904
|
+
})) : [...jd.stops]
|
|
14818
14905
|
};
|
|
14819
|
-
},
|
|
14906
|
+
}, jd = Object.freeze({
|
|
14820
14907
|
gradientType: g.GradientType.Linear,
|
|
14821
14908
|
angle: 90,
|
|
14822
14909
|
stops: [{
|
|
@@ -14826,10 +14913,10 @@ var Ud = (e) => {
|
|
|
14826
14913
|
offset: 1,
|
|
14827
14914
|
color: "4472c4"
|
|
14828
14915
|
}]
|
|
14829
|
-
}),
|
|
14916
|
+
}), _d = ln(ar("studio:formatTaskPane", () => import("./GeLMvw9JlqlFr6jw.mjs"), { select: (e) => ({ default: e.FormatTaskPane }) }).load), Zd = () => V.registerTaskPane({
|
|
14830
14917
|
key: pe.FormatCells,
|
|
14831
|
-
component:
|
|
14832
|
-
}, !0),
|
|
14918
|
+
component: _d
|
|
14919
|
+
}, !0), Qd = bo((e) => {
|
|
14833
14920
|
const { hasPassword: t, label: o, description: n, note: r, disabled: a = !1, requireCurrent: l = !1, onSet: i, onClear: s } = e, c = ao(), d = eo(), p = fo(() => {
|
|
14834
14921
|
d.showWindow("password", {
|
|
14835
14922
|
description: n,
|
|
@@ -14867,7 +14954,7 @@ var Ud = (e) => {
|
|
|
14867
14954
|
gap: (e) => e.spacing(.75),
|
|
14868
14955
|
minWidth: 0
|
|
14869
14956
|
},
|
|
14870
|
-
children: [un(
|
|
14957
|
+
children: [un(kt, {
|
|
14871
14958
|
iconKey: t ? "Lock" : "LockOpen",
|
|
14872
14959
|
size: 18,
|
|
14873
14960
|
ariaHidden: !0
|
|
@@ -14904,21 +14991,21 @@ var Ud = (e) => {
|
|
|
14904
14991
|
})]
|
|
14905
14992
|
});
|
|
14906
14993
|
});
|
|
14907
|
-
|
|
14908
|
-
var
|
|
14994
|
+
Qd.displayName = "PasswordField";
|
|
14995
|
+
var Yd = ar("studio:manageProtectionTaskPane", () => import("./Dbg6kW_63xZ_x2es.mjs")), Xd = ln(() => Yd.load().then((e) => ({ default: e.ManageProtectionTaskPane }))), Jd = ln(() => Yd.load().then((e) => ({ default: e.ProtectedRangeDetailsTaskPane }))), ep = () => {
|
|
14909
14996
|
const e = V.registerTaskPane({
|
|
14910
14997
|
key: pe.Protection,
|
|
14911
|
-
component:
|
|
14998
|
+
component: Xd
|
|
14912
14999
|
}, !0), t = V.registerTaskPane({
|
|
14913
15000
|
key: "protectedRangeDetails",
|
|
14914
15001
|
getTitle: () => "Manage Protection",
|
|
14915
15002
|
getIcon: () => "Lock",
|
|
14916
|
-
component:
|
|
15003
|
+
component: Jd
|
|
14917
15004
|
}, !0);
|
|
14918
15005
|
return () => {
|
|
14919
15006
|
e(), t();
|
|
14920
15007
|
};
|
|
14921
|
-
},
|
|
15008
|
+
}, tp = bo(ho((e, t) => {
|
|
14922
15009
|
const { workbook: o, index: n, groupKey: r = "sheet", disabled: a, floatReference: l, className: i, tabStripRef: s, ...c } = e, [d, p] = Fo(() => o?.getProtection().isStructureAllowed() ?? !0);
|
|
14923
15010
|
rt(o, { onProtectionChange: (e) => {
|
|
14924
15011
|
p(e?.getProtection().isStructureAllowed() ?? !0);
|
|
@@ -14952,8 +15039,8 @@ var Qd = ar("studio:manageProtectionTaskPane", () => import("./CY-1AXXWawiEXRDw.
|
|
|
14952
15039
|
children: f
|
|
14953
15040
|
});
|
|
14954
15041
|
}));
|
|
14955
|
-
|
|
14956
|
-
var
|
|
15042
|
+
tp.displayName = "SheetTabMenu";
|
|
15043
|
+
var op = bo(ho((e, t) => {
|
|
14957
15044
|
const { workbook: o, floatReference: n, closeFloatAll: r, className: a, ...l } = e, [i, s] = Fo(o?.getSheets() ?? []), [c, d] = Fo(o?.getProtection());
|
|
14958
15045
|
rt(o, {
|
|
14959
15046
|
onSheetsChange: (e) => {
|
|
@@ -14964,10 +15051,10 @@ var tp = bo(ho((e, t) => {
|
|
|
14964
15051
|
}
|
|
14965
15052
|
});
|
|
14966
15053
|
const p = So(() => {
|
|
14967
|
-
const e = [], t = o.getSheets({ visibility:
|
|
15054
|
+
const e = [], t = o.getSheets({ visibility: v.Visibility.Hidden }), r = o.getSelectedSheet();
|
|
14968
15055
|
for (let o = 0; o < t.length; o++) {
|
|
14969
15056
|
const a = t[o], l = a.getVisibility();
|
|
14970
|
-
if (l ===
|
|
15057
|
+
if (l === v.Visibility.VeryHidden) continue;
|
|
14971
15058
|
const i = r === a, s = !!a.isIWorksheet && a.getProtection().isLocked(), d = a.getTabColor(), p = "var(--sxl-color-base-100)";
|
|
14972
15059
|
let u = null, m = null, h = p;
|
|
14973
15060
|
d && (h = d.toCSS(), i || (m = d.toBlackOrWhite().toCSS()), u = un(gn, {
|
|
@@ -14986,14 +15073,14 @@ var tp = bo(ho((e, t) => {
|
|
|
14986
15073
|
children: un(gn, { sx: {
|
|
14987
15074
|
flex: "1 1 100%",
|
|
14988
15075
|
boxSizing: "content-box",
|
|
14989
|
-
opacity: i || l ===
|
|
15076
|
+
opacity: i || l === v.Visibility.Hidden ? "50%" : "100%",
|
|
14990
15077
|
border: (e) => i ? `${p} solid 1.5px` : `${e.palette.divider} solid 1px`,
|
|
14991
15078
|
background: i && d ? `linear-gradient(0deg, ${h} 0%, ${p})` : h,
|
|
14992
15079
|
borderRadius: "4px"
|
|
14993
15080
|
} })
|
|
14994
15081
|
}));
|
|
14995
15082
|
let g = null;
|
|
14996
|
-
s && (g = un(
|
|
15083
|
+
s && (g = un(kt, { iconKey: "Lock" })), l !== v.Visibility.Visible && (g = un(kt, {
|
|
14997
15084
|
iconKey: "VisibilityOff",
|
|
14998
15085
|
style: { opacity: c.isStructureAllowed() ? 1 : .7 },
|
|
14999
15086
|
color: "secondary"
|
|
@@ -15011,11 +15098,11 @@ var tp = bo(ho((e, t) => {
|
|
|
15011
15098
|
},
|
|
15012
15099
|
children: g
|
|
15013
15100
|
})), e.push(un(Eo, {
|
|
15014
|
-
disabled: !c.isStructureAllowed() && l ===
|
|
15101
|
+
disabled: !c.isStructureAllowed() && l === v.Visibility.Hidden,
|
|
15015
15102
|
sx: {
|
|
15016
15103
|
color: (e) => {
|
|
15017
15104
|
let t = i ? e.palette.primary.main : e.palette.text.secondary;
|
|
15018
|
-
return m && (t = m), l ===
|
|
15105
|
+
return m && (t = m), l === v.Visibility.Hidden && (t = dr(t, e.palette.action.disabledOpacity)), t;
|
|
15019
15106
|
},
|
|
15020
15107
|
borderLeft: (e) => `${i ? e.palette.primary.main : "transparent"} solid 2px`,
|
|
15021
15108
|
paddingLeft: "4px",
|
|
@@ -15096,8 +15183,8 @@ var tp = bo(ho((e, t) => {
|
|
|
15096
15183
|
children: p
|
|
15097
15184
|
});
|
|
15098
15185
|
}));
|
|
15099
|
-
|
|
15100
|
-
var
|
|
15186
|
+
op.displayName = "SheetsAllMenu";
|
|
15187
|
+
var np = bo(ho((e, t) => {
|
|
15101
15188
|
const { movable: o, disabled: n, floatReference: r, ...a } = e;
|
|
15102
15189
|
rt(o, { onAnyChange(e) {} });
|
|
15103
15190
|
const l = zt(), i = { disabled: n }, s = sn(l.resolveMembers("movableContextMenu") ?? [], {
|
|
@@ -15118,9 +15205,9 @@ var op = bo(ho((e, t) => {
|
|
|
15118
15205
|
children: s
|
|
15119
15206
|
});
|
|
15120
15207
|
}));
|
|
15121
|
-
|
|
15122
|
-
var
|
|
15123
|
-
const { workbook: o, disabled: n = !1, propsSheetTabMenu: r, renderSheetTabMenu: a =
|
|
15208
|
+
np.displayName = "MovableContextMenu";
|
|
15209
|
+
var rp = bo(ho((e, t) => {
|
|
15210
|
+
const { workbook: o, disabled: n = !1, propsSheetTabMenu: r, renderSheetTabMenu: a = Wp, propsSheetsAll: l, renderSheetsAll: i = zp, propsSheetTab: s, renderSheetTab: c, ...d } = e, p = ao(), u = To(null), m = fo((e) => {
|
|
15124
15211
|
u.current = e, "function" == typeof t ? t(e) : t && (t.current = e);
|
|
15125
15212
|
}, [t]), h = So(() => ({ placement: "top-start" }), []), g = To(null), [b, f] = Fo(!1), y = fo((e) => {
|
|
15126
15213
|
const { closeFloatAll: t, floatReference: n } = e;
|
|
@@ -15134,18 +15221,18 @@ var np = bo(ho((e, t) => {
|
|
|
15134
15221
|
i,
|
|
15135
15222
|
l,
|
|
15136
15223
|
o
|
|
15137
|
-
]), { reference: x, component:
|
|
15224
|
+
]), { reference: x, component: v } = jt({
|
|
15138
15225
|
label: "allSheet",
|
|
15139
15226
|
propsPopper: h,
|
|
15140
15227
|
anchor: g.current,
|
|
15141
15228
|
onOpen: () => f(!0),
|
|
15142
15229
|
onClose: () => f(!1),
|
|
15143
15230
|
renderPopupPanel: y
|
|
15144
|
-
}), [
|
|
15231
|
+
}), [k, w] = Fo(null), S = fo((e) => {
|
|
15145
15232
|
const { floatReference: t } = e;
|
|
15146
15233
|
return a ? a({
|
|
15147
15234
|
workbook: o,
|
|
15148
|
-
index:
|
|
15235
|
+
index: k?.index,
|
|
15149
15236
|
tabStripRef: u.current ?? void 0,
|
|
15150
15237
|
disabled: n,
|
|
15151
15238
|
floatReference: t,
|
|
@@ -15156,24 +15243,24 @@ var np = bo(ho((e, t) => {
|
|
|
15156
15243
|
r,
|
|
15157
15244
|
n,
|
|
15158
15245
|
o,
|
|
15159
|
-
|
|
15246
|
+
k
|
|
15160
15247
|
]), { reference: C, component: T } = jt({
|
|
15161
15248
|
label: "sheetTab",
|
|
15162
15249
|
propsPopper: h,
|
|
15163
|
-
anchor: { getBoundingClientRect: () => new DOMRect(
|
|
15250
|
+
anchor: { getBoundingClientRect: () => new DOMRect(k?.left || 0, k?.top || 0, 0, 0) },
|
|
15164
15251
|
onClose: () => w(null),
|
|
15165
15252
|
renderPopupPanel: S
|
|
15166
15253
|
});
|
|
15167
15254
|
xo(() => {
|
|
15168
|
-
|
|
15169
|
-
}, [
|
|
15255
|
+
k ? C.open(0) : C.close(0);
|
|
15256
|
+
}, [k]);
|
|
15170
15257
|
const F = fo((e, t) => {
|
|
15171
15258
|
e.preventDefault(), w({
|
|
15172
15259
|
left: e.clientX - 2,
|
|
15173
15260
|
top: e.clientY - 4,
|
|
15174
15261
|
index: t
|
|
15175
15262
|
});
|
|
15176
|
-
}, []), D = fo((e) => (c ??
|
|
15263
|
+
}, []), D = fo((e) => (c ?? Hp)({
|
|
15177
15264
|
...e,
|
|
15178
15265
|
...s
|
|
15179
15266
|
}), [c, s]), N = un(_o, {
|
|
@@ -15201,10 +15288,10 @@ var np = bo(ho((e, t) => {
|
|
|
15201
15288
|
onClick: () => {
|
|
15202
15289
|
b ? x.close(0) : x.open(0);
|
|
15203
15290
|
},
|
|
15204
|
-
icon: un(
|
|
15291
|
+
icon: un(kt, { iconKey: "Menu" })
|
|
15205
15292
|
})
|
|
15206
15293
|
});
|
|
15207
|
-
return mn(
|
|
15294
|
+
return mn(ve, {
|
|
15208
15295
|
ref: m,
|
|
15209
15296
|
workbook: o,
|
|
15210
15297
|
disabled: n,
|
|
@@ -15217,20 +15304,20 @@ var np = bo(ho((e, t) => {
|
|
|
15217
15304
|
children: [
|
|
15218
15305
|
N,
|
|
15219
15306
|
T,
|
|
15220
|
-
|
|
15307
|
+
v
|
|
15221
15308
|
]
|
|
15222
15309
|
});
|
|
15223
15310
|
}));
|
|
15224
|
-
|
|
15225
|
-
var
|
|
15311
|
+
rp.displayName = "WorkbookStrip";
|
|
15312
|
+
var ap = bo(ho((e, t) => {
|
|
15226
15313
|
at(e.workbook, "onSelectedSheetChange");
|
|
15227
15314
|
const o = e.workbook.getSelectedWorksheet();
|
|
15228
|
-
return o ? un(
|
|
15315
|
+
return o ? un(lp, {
|
|
15229
15316
|
...e,
|
|
15230
15317
|
ref: t,
|
|
15231
15318
|
sheet: o
|
|
15232
15319
|
}) : null;
|
|
15233
|
-
})),
|
|
15320
|
+
})), lp = bo(ho((e, t) => {
|
|
15234
15321
|
const { workbook: o, sheet: n, disabled: r, floatReference: a, className: l, ...i } = e, [s, c] = Fo(n), [d, p] = Fo(s.getSelectedRanges()), [u, m] = Fo(s.getSelectedCell());
|
|
15235
15322
|
rt(o, { onSheetsChange() {
|
|
15236
15323
|
const e = o.getSelectedWorksheet();
|
|
@@ -15271,13 +15358,13 @@ var rp = bo(ho((e, t) => {
|
|
|
15271
15358
|
}
|
|
15272
15359
|
const x = [];
|
|
15273
15360
|
b && x.push("-", "hideRows", "unhideRows"), f && x.push("-", "hideColumns", "unhideColumns"), (b || f) && x.push("-"), b && x.push("autoFitRows", "resizeRows"), f && x.push("autoFitColumns", "resizeColumns");
|
|
15274
|
-
const
|
|
15361
|
+
const v = [
|
|
15275
15362
|
...h.resolveMembers("contextMenu") ?? [],
|
|
15276
15363
|
...y,
|
|
15277
15364
|
...x,
|
|
15278
15365
|
"-",
|
|
15279
15366
|
"formatCells"
|
|
15280
|
-
],
|
|
15367
|
+
], k = sn(v, {
|
|
15281
15368
|
variant: yt.Menuitem,
|
|
15282
15369
|
dividerOrientation: "horizontal",
|
|
15283
15370
|
groupKey: "contextMenu",
|
|
@@ -15289,18 +15376,18 @@ var rp = bo(ho((e, t) => {
|
|
|
15289
15376
|
ref: t,
|
|
15290
15377
|
className: sr("menu", l),
|
|
15291
15378
|
...i,
|
|
15292
|
-
children:
|
|
15379
|
+
children: k
|
|
15293
15380
|
});
|
|
15294
15381
|
}));
|
|
15295
|
-
|
|
15296
|
-
var
|
|
15382
|
+
lp.displayName = "WorkbookContextMenuBody", ap.displayName = "WorkbookContextMenu";
|
|
15383
|
+
var ip = "-", sp = (e) => ({
|
|
15297
15384
|
key: e,
|
|
15298
15385
|
label: O[e],
|
|
15299
15386
|
enabled: (t) => t.has(e),
|
|
15300
15387
|
run: (t) => {
|
|
15301
15388
|
t.fill({ presetId: e });
|
|
15302
15389
|
}
|
|
15303
|
-
}),
|
|
15390
|
+
}), cp = Object.freeze([
|
|
15304
15391
|
{
|
|
15305
15392
|
key: "copy",
|
|
15306
15393
|
label: O[e.Presets.Copy.id],
|
|
@@ -15309,7 +15396,7 @@ var lp = "-", ip = (e) => ({
|
|
|
15309
15396
|
t.fill({ presetId: e.Presets.Copy.id });
|
|
15310
15397
|
}
|
|
15311
15398
|
},
|
|
15312
|
-
|
|
15399
|
+
sp(e.Presets.Series.id),
|
|
15313
15400
|
{
|
|
15314
15401
|
key: "formatsOnly",
|
|
15315
15402
|
label: lr("fillMenu.formatsOnly"),
|
|
@@ -15329,19 +15416,19 @@ var lp = "-", ip = (e) => ({
|
|
|
15329
15416
|
});
|
|
15330
15417
|
}
|
|
15331
15418
|
},
|
|
15332
|
-
|
|
15333
|
-
|
|
15334
|
-
|
|
15335
|
-
|
|
15336
|
-
|
|
15337
|
-
|
|
15338
|
-
|
|
15339
|
-
|
|
15340
|
-
|
|
15341
|
-
|
|
15342
|
-
|
|
15343
|
-
|
|
15344
|
-
|
|
15419
|
+
ip,
|
|
15420
|
+
sp(e.Presets.Linear.id),
|
|
15421
|
+
sp(e.Presets.Growth.id),
|
|
15422
|
+
ip,
|
|
15423
|
+
sp(e.Presets.DateDays.id),
|
|
15424
|
+
sp(e.Presets.DateWeekdays.id),
|
|
15425
|
+
sp(e.Presets.DateMonths.id),
|
|
15426
|
+
sp(e.Presets.DateMonthEnd.id),
|
|
15427
|
+
sp(e.Presets.DateYears.id),
|
|
15428
|
+
ip,
|
|
15429
|
+
sp(e.Presets.LinearTrend.id),
|
|
15430
|
+
sp(e.Presets.GrowthTrend.id),
|
|
15431
|
+
ip,
|
|
15345
15432
|
{
|
|
15346
15433
|
key: "seriesDialog",
|
|
15347
15434
|
label: lr("fillMenu.series"),
|
|
@@ -15350,11 +15437,11 @@ var lp = "-", ip = (e) => ({
|
|
|
15350
15437
|
e.series();
|
|
15351
15438
|
}
|
|
15352
15439
|
}
|
|
15353
|
-
]),
|
|
15440
|
+
]), dp = bo(ho((e, t) => {
|
|
15354
15441
|
const { workbook: o, menu: n, disabled: r, floatReference: a, className: l, ...i } = e, s = ao(), c = So(() => new Set(n.offered), [n]), d = (e) => {
|
|
15355
15442
|
e.run(n), a.close();
|
|
15356
|
-
}, p =
|
|
15357
|
-
if (e ===
|
|
15443
|
+
}, p = cp.map((e, t) => {
|
|
15444
|
+
if (e === ip) return un(Oo, { orientation: "horizontal" }, `divider:${t}`);
|
|
15358
15445
|
const o = r || !e.enabled(c);
|
|
15359
15446
|
return un(Eo, {
|
|
15360
15447
|
className: "sxl-fillMenu-entry",
|
|
@@ -15405,8 +15492,8 @@ var lp = "-", ip = (e) => ({
|
|
|
15405
15492
|
children: p
|
|
15406
15493
|
});
|
|
15407
15494
|
}));
|
|
15408
|
-
|
|
15409
|
-
var
|
|
15495
|
+
dp.displayName = "FillMenu";
|
|
15496
|
+
var pp = (e, t) => ({
|
|
15410
15497
|
width: t,
|
|
15411
15498
|
height: t,
|
|
15412
15499
|
boxSizing: "border-box",
|
|
@@ -15424,7 +15511,7 @@ var dp = (e, t) => ({
|
|
|
15424
15511
|
color: e.palette.text.disabled,
|
|
15425
15512
|
borderColor: e.palette.action.disabledBackground
|
|
15426
15513
|
}
|
|
15427
|
-
}),
|
|
15514
|
+
}), up = (e) => {
|
|
15428
15515
|
const { collapsed: t, size: o, title: n, onToggle: r, disabled: a } = e, l = Xn();
|
|
15429
15516
|
return un(Vo, {
|
|
15430
15517
|
label: n,
|
|
@@ -15435,7 +15522,7 @@ var dp = (e, t) => ({
|
|
|
15435
15522
|
focusRipple: !1,
|
|
15436
15523
|
tabIndex: -1,
|
|
15437
15524
|
disabled: a,
|
|
15438
|
-
sx:
|
|
15525
|
+
sx: pp(l, o),
|
|
15439
15526
|
onClick: r,
|
|
15440
15527
|
children: un(Z, {
|
|
15441
15528
|
collapsed: t,
|
|
@@ -15443,7 +15530,7 @@ var dp = (e, t) => ({
|
|
|
15443
15530
|
})
|
|
15444
15531
|
})
|
|
15445
15532
|
});
|
|
15446
|
-
},
|
|
15533
|
+
}, mp = (e) => {
|
|
15447
15534
|
const { level: t, shown: o, size: n, title: r, onShowLevel: a, disabled: l } = e, i = Xn();
|
|
15448
15535
|
return un(Vo, {
|
|
15449
15536
|
label: r,
|
|
@@ -15455,7 +15542,7 @@ var dp = (e, t) => ({
|
|
|
15455
15542
|
disabled: l,
|
|
15456
15543
|
"data-shown": o || void 0,
|
|
15457
15544
|
sx: {
|
|
15458
|
-
...
|
|
15545
|
+
...pp(i, n),
|
|
15459
15546
|
...Ve,
|
|
15460
15547
|
...He(n)
|
|
15461
15548
|
},
|
|
@@ -15463,7 +15550,7 @@ var dp = (e, t) => ({
|
|
|
15463
15550
|
children: t
|
|
15464
15551
|
})
|
|
15465
15552
|
});
|
|
15466
|
-
},
|
|
15553
|
+
}, hp = Zn("div", {
|
|
15467
15554
|
name: "MuiTooltip",
|
|
15468
15555
|
slot: "Tooltip",
|
|
15469
15556
|
overridesResolver: (e, t) => t.tooltip
|
|
@@ -15478,9 +15565,9 @@ var dp = (e, t) => ({
|
|
|
15478
15565
|
margin: 2,
|
|
15479
15566
|
wordWrap: "break-word",
|
|
15480
15567
|
fontWeight: e.typography.fontWeightMedium
|
|
15481
|
-
})),
|
|
15568
|
+
})), gp = (e) => {
|
|
15482
15569
|
const { children: t, interactive: o, tipProps: n, className: r, style: a } = e;
|
|
15483
|
-
return un(
|
|
15570
|
+
return un(hp, {
|
|
15484
15571
|
...n,
|
|
15485
15572
|
className: sr(Qn.tooltip, r),
|
|
15486
15573
|
style: {
|
|
@@ -15489,7 +15576,7 @@ var dp = (e, t) => ({
|
|
|
15489
15576
|
},
|
|
15490
15577
|
children: t
|
|
15491
15578
|
});
|
|
15492
|
-
},
|
|
15579
|
+
}, bp = (e) => {
|
|
15493
15580
|
const { sheet: t, coords: o, comment: n, focusRequest: r, onClose: a } = e;
|
|
15494
15581
|
return un(ys, {
|
|
15495
15582
|
sheet: t,
|
|
@@ -15499,7 +15586,7 @@ var dp = (e, t) => ({
|
|
|
15499
15586
|
onClose: a,
|
|
15500
15587
|
elevated: !0
|
|
15501
15588
|
});
|
|
15502
|
-
},
|
|
15589
|
+
}, fp = (e) => {
|
|
15503
15590
|
const { hyperlink: t, open: o, copy: n, edit: r, remove: a, disabled: l, preview: i, tipProps: s } = e, c = ao(), d = t.getScreenTip(), p = t.getAddress(), u = () => {
|
|
15504
15591
|
o();
|
|
15505
15592
|
}, m = i?.title, h = {
|
|
@@ -15536,7 +15623,7 @@ var dp = (e, t) => ({
|
|
|
15536
15623
|
children: [
|
|
15537
15624
|
un(Lo, {
|
|
15538
15625
|
dense: !0,
|
|
15539
|
-
icon: un(
|
|
15626
|
+
icon: un(kt, { iconKey: "HyperlinkGoto" }),
|
|
15540
15627
|
propsTooltip: { title: c("hyperlink.open") },
|
|
15541
15628
|
onClick: u
|
|
15542
15629
|
}),
|
|
@@ -15575,7 +15662,7 @@ var dp = (e, t) => ({
|
|
|
15575
15662
|
children: [
|
|
15576
15663
|
un(Lo, {
|
|
15577
15664
|
dense: !0,
|
|
15578
|
-
icon: un(
|
|
15665
|
+
icon: un(kt, { iconKey: "ContentCopy" }),
|
|
15579
15666
|
propsTooltip: { title: c("hyperlink.copy") },
|
|
15580
15667
|
onClick: () => {
|
|
15581
15668
|
n();
|
|
@@ -15583,14 +15670,14 @@ var dp = (e, t) => ({
|
|
|
15583
15670
|
}),
|
|
15584
15671
|
un(Lo, {
|
|
15585
15672
|
dense: !0,
|
|
15586
|
-
icon: un(
|
|
15673
|
+
icon: un(kt, { iconKey: "HyperlinkEdit" }),
|
|
15587
15674
|
propsTooltip: { title: c("hyperlink.edit") },
|
|
15588
15675
|
disabled: l,
|
|
15589
15676
|
onClick: r
|
|
15590
15677
|
}),
|
|
15591
15678
|
un(Lo, {
|
|
15592
15679
|
dense: !0,
|
|
15593
|
-
icon: un(
|
|
15680
|
+
icon: un(kt, { iconKey: "HyperlinkDelete" }),
|
|
15594
15681
|
propsTooltip: { title: c("hyperlink.remove") },
|
|
15595
15682
|
disabled: l,
|
|
15596
15683
|
onClick: a
|
|
@@ -15613,10 +15700,10 @@ var dp = (e, t) => ({
|
|
|
15613
15700
|
})
|
|
15614
15701
|
}) : null]
|
|
15615
15702
|
});
|
|
15616
|
-
},
|
|
15703
|
+
}, yp = (e) => un(fp, { ...e }), xp = {
|
|
15617
15704
|
color: "transparent",
|
|
15618
15705
|
hoverColor: "transparent"
|
|
15619
|
-
},
|
|
15706
|
+
}, vp = { sx: { mx: 0 } }, kp = ({ props: e, label: t, children: o }) => {
|
|
15620
15707
|
const { floatProps: n } = e;
|
|
15621
15708
|
return un(En, {
|
|
15622
15709
|
...n,
|
|
@@ -15635,7 +15722,7 @@ var dp = (e, t) => ({
|
|
|
15635
15722
|
},
|
|
15636
15723
|
children: o
|
|
15637
15724
|
});
|
|
15638
|
-
},
|
|
15725
|
+
}, wp = (e) => {
|
|
15639
15726
|
const { table: t, setHeld: o } = e;
|
|
15640
15727
|
return un(kp, {
|
|
15641
15728
|
props: e,
|
|
@@ -15643,13 +15730,13 @@ var dp = (e, t) => ({
|
|
|
15643
15730
|
children: un(Ua, {
|
|
15644
15731
|
commandKey: "formatTableStyle",
|
|
15645
15732
|
selectedTable: t,
|
|
15646
|
-
outlined:
|
|
15647
|
-
propsButton:
|
|
15733
|
+
outlined: xp,
|
|
15734
|
+
propsButton: vp,
|
|
15648
15735
|
onPopupOpen: () => o(!0),
|
|
15649
15736
|
onPopupClose: () => o(!1)
|
|
15650
15737
|
})
|
|
15651
15738
|
});
|
|
15652
|
-
},
|
|
15739
|
+
}, Sp = (e) => un(wp, { ...e }), Cp = (e) => {
|
|
15653
15740
|
const { pivot: t, setHeld: o } = e;
|
|
15654
15741
|
return un(kp, {
|
|
15655
15742
|
props: e,
|
|
@@ -15658,26 +15745,26 @@ var dp = (e, t) => ({
|
|
|
15658
15745
|
commandKey: "formatPivotStyle",
|
|
15659
15746
|
selectedPivot: t,
|
|
15660
15747
|
quickCommand: "editPivotTable",
|
|
15661
|
-
outlined:
|
|
15662
|
-
propsButton:
|
|
15748
|
+
outlined: xp,
|
|
15749
|
+
propsButton: vp,
|
|
15663
15750
|
onPopupOpen: () => o(!0),
|
|
15664
15751
|
onPopupClose: () => o(!1)
|
|
15665
15752
|
})
|
|
15666
15753
|
});
|
|
15667
|
-
},
|
|
15754
|
+
}, Tp = (e) => un(Cp, { ...e }), Fp = (e) => un(up, { ...e }), Dp = (e) => un(mp, { ...e }), Np = (e) => un(np, { ...e }), Ip = (e) => un(dp, { ...e }), Bp = (e) => un(ap, { ...e }), Pp = (e) => un(bd, { ...e }), Rp = (e) => un(Fd, { ...e }), Mp = (e) => "bottom" === e.placement ? un(ds, { ...e }) : un(rs, { ...e }), Op = (e) => un(Do, {
|
|
15668
15755
|
transitionDelay: "160ms",
|
|
15669
15756
|
transparentBackground: !0,
|
|
15670
15757
|
...e
|
|
15671
|
-
}),
|
|
15758
|
+
}), Ap = (e) => un(Zo, {
|
|
15672
15759
|
hideStackTrace: !0,
|
|
15673
15760
|
...e
|
|
15674
|
-
}),
|
|
15761
|
+
}), Lp = (e) => {
|
|
15675
15762
|
const { key: t, ...o } = e;
|
|
15676
|
-
return un(
|
|
15677
|
-
},
|
|
15763
|
+
return un(ke, { ...o }, t);
|
|
15764
|
+
}, Kp = (e) => {
|
|
15678
15765
|
const { key: t, ...o } = e;
|
|
15679
15766
|
return un(Zi, { ...o }, t);
|
|
15680
|
-
},
|
|
15767
|
+
}, Ep = (e) => un(rp, { ...e }), Wp = (e) => un(tp, { ...e }), zp = (e) => un(op, { ...e }), Vp = (e) => {
|
|
15681
15768
|
const { disabled: t, editing: o, children: n, style: r, ...a } = e, l = Xn();
|
|
15682
15769
|
return un(fn, {
|
|
15683
15770
|
component: "div",
|
|
@@ -15692,12 +15779,12 @@ var dp = (e, t) => ({
|
|
|
15692
15779
|
...a,
|
|
15693
15780
|
children: n
|
|
15694
15781
|
});
|
|
15695
|
-
},
|
|
15696
|
-
slotSurface:
|
|
15782
|
+
}, Hp = (e) => un(le, {
|
|
15783
|
+
slotSurface: Vp,
|
|
15697
15784
|
...e
|
|
15698
|
-
}),
|
|
15699
|
-
const { renderTabs: o =
|
|
15700
|
-
const { renderCommentCard: e =
|
|
15785
|
+
}), $p = bo(ho((e, t) => {
|
|
15786
|
+
const { renderTabs: o = Ep, renderContextMenu: n = Bp, renderColumnMenu: r = Pp, renderPivotMenu: a = Rp, renderMovableMenu: l = Np, renderFillMenu: i = Ip, renderWorkbookLoading: s = Op, propsSheet: c, ...d } = e, p = So(() => {
|
|
15787
|
+
const { renderCommentCard: e = bp, renderHyperlinkCard: t = yp, renderTableToolbar: o = Sp, renderPivotToolbar: n = Tp, propsOutline: r, ...a } = c ?? {};
|
|
15701
15788
|
return {
|
|
15702
15789
|
...a,
|
|
15703
15790
|
renderCommentCard: e,
|
|
@@ -15706,13 +15793,13 @@ var dp = (e, t) => ({
|
|
|
15706
15793
|
renderPivotToolbar: n,
|
|
15707
15794
|
propsOutline: {
|
|
15708
15795
|
...r,
|
|
15709
|
-
renderButton: void 0 === r?.renderButton ?
|
|
15710
|
-
renderLevelButton: void 0 === r?.renderLevelButton ?
|
|
15796
|
+
renderButton: void 0 === r?.renderButton ? Fp : r.renderButton,
|
|
15797
|
+
renderLevelButton: void 0 === r?.renderLevelButton ? Dp : r.renderLevelButton
|
|
15711
15798
|
}
|
|
15712
15799
|
};
|
|
15713
15800
|
}, [c]), { renderTooltip: u } = xr();
|
|
15714
15801
|
return un(Ao, { children: un(br, {
|
|
15715
|
-
renderTooltip: u ??
|
|
15802
|
+
renderTooltip: u ?? gp,
|
|
15716
15803
|
children: un(fe, {
|
|
15717
15804
|
ref: t,
|
|
15718
15805
|
...d,
|
|
@@ -15727,8 +15814,8 @@ var dp = (e, t) => ({
|
|
|
15727
15814
|
})
|
|
15728
15815
|
}) });
|
|
15729
15816
|
}));
|
|
15730
|
-
|
|
15731
|
-
var
|
|
15817
|
+
$p.displayName = "WorkbookElement";
|
|
15818
|
+
var Gp = (e = !1, t = !1) => t ? null : {
|
|
15732
15819
|
"& input:not(:focus):not(:hover)": { color: (e) => e.palette.text.secondary },
|
|
15733
15820
|
backgroundColor: (e) => _n(e.palette.background.paper, .6),
|
|
15734
15821
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
@@ -15743,8 +15830,8 @@ var $p = (e = !1, t = !1) => t ? null : {
|
|
|
15743
15830
|
outline: (e) => `solid ${e.palette.primary.main} 1px !important`,
|
|
15744
15831
|
border: (e) => `1px solid ${e.palette?.primary?.main} !important`
|
|
15745
15832
|
}
|
|
15746
|
-
},
|
|
15747
|
-
const { sx: o, workbook: n, title: r = "", placeHolder: a, onTitleChange: l, readOnly: i = !1, modified: s = !1, encrypted: c = !1, hidden: d, ...p } = e, u = ao(), m = a ?? u("workbook.untitled"), [h, g] = Fo(!1), [b, f] = Fo(!1), [y, x] = Fo(r ?? ""), [
|
|
15833
|
+
}, Up = bo(ho((e, t) => {
|
|
15834
|
+
const { sx: o, workbook: n, title: r = "", placeHolder: a, onTitleChange: l, readOnly: i = !1, modified: s = !1, encrypted: c = !1, hidden: d, ...p } = e, u = ao(), m = a ?? u("workbook.untitled"), [h, g] = Fo(!1), [b, f] = Fo(!1), [y, x] = Fo(r ?? ""), [v, k] = Fo(""), [w, { width: S }] = Xt(), [C, { width: T }] = Xt(), [F, D] = Fo(!1), N = To(null), I = To(null), B = Zt(t, () => ({
|
|
15748
15835
|
requestTitle: (e, t) => {
|
|
15749
15836
|
I.current = {
|
|
15750
15837
|
onAccept: e,
|
|
@@ -15756,13 +15843,13 @@ var $p = (e = !1, t = !1) => t ? null : {
|
|
|
15756
15843
|
}
|
|
15757
15844
|
}), []);
|
|
15758
15845
|
wo(() => {
|
|
15759
|
-
D(r !== y),
|
|
15846
|
+
D(r !== y), k(r), x(r);
|
|
15760
15847
|
}, [r]), xo(() => {
|
|
15761
15848
|
F && 0 !== S && rr.debounce(() => {
|
|
15762
15849
|
D(!1);
|
|
15763
15850
|
}, 300)();
|
|
15764
15851
|
}, [F, S]), xo(() => {
|
|
15765
|
-
f(!!y && !
|
|
15852
|
+
f(!!y && !vr.isValidFileName(y));
|
|
15766
15853
|
}, [y]);
|
|
15767
15854
|
const P = pr([
|
|
15768
15855
|
B,
|
|
@@ -15796,7 +15883,7 @@ var $p = (e = !1, t = !1) => t ? null : {
|
|
|
15796
15883
|
height: "0.9em"
|
|
15797
15884
|
}
|
|
15798
15885
|
},
|
|
15799
|
-
children: un(
|
|
15886
|
+
children: un(kt, { iconKey: "Lock" })
|
|
15800
15887
|
})
|
|
15801
15888
|
}) : null, un(Vo, {
|
|
15802
15889
|
label: I.current?.requestReason ?? u("documentTitle.label"),
|
|
@@ -15815,7 +15902,7 @@ var $p = (e = !1, t = !1) => t ? null : {
|
|
|
15815
15902
|
marginRight: "2px",
|
|
15816
15903
|
paddingTop: "2px",
|
|
15817
15904
|
paddingBottom: "1px",
|
|
15818
|
-
|
|
15905
|
+
...Gp(!0, i),
|
|
15819
15906
|
...o
|
|
15820
15907
|
},
|
|
15821
15908
|
children: [i ? mn(jn, {
|
|
@@ -15824,7 +15911,7 @@ var $p = (e = !1, t = !1) => t ? null : {
|
|
|
15824
15911
|
component: "div",
|
|
15825
15912
|
sx: {
|
|
15826
15913
|
whiteSpace: "nowrap",
|
|
15827
|
-
fontStyle: y ===
|
|
15914
|
+
fontStyle: y === v && r ? void 0 : "italic",
|
|
15828
15915
|
userSelect: "none",
|
|
15829
15916
|
textOverflow: "ellipsis",
|
|
15830
15917
|
lineHeight: "1.4375em",
|
|
@@ -15851,7 +15938,7 @@ var $p = (e = !1, t = !1) => t ? null : {
|
|
|
15851
15938
|
padding: "0px",
|
|
15852
15939
|
margin: "0px",
|
|
15853
15940
|
color: (e) => b ? e.palette.error.dark : void 0,
|
|
15854
|
-
fontStyle: y !==
|
|
15941
|
+
fontStyle: y !== v ? "italic" : void 0,
|
|
15855
15942
|
"& input": {
|
|
15856
15943
|
paddingTop: "0px",
|
|
15857
15944
|
paddingBottom: "0px",
|
|
@@ -15873,14 +15960,14 @@ var $p = (e = !1, t = !1) => t ? null : {
|
|
|
15873
15960
|
ref: N
|
|
15874
15961
|
},
|
|
15875
15962
|
onBlur: () => {
|
|
15876
|
-
g(!1), b ? x(
|
|
15963
|
+
g(!1), b ? x(v) : (y !== v && (l?.(y), y && I.current?.onAccept?.(y, "blur")), I.current = null);
|
|
15877
15964
|
},
|
|
15878
15965
|
onChange: (e) => {
|
|
15879
|
-
if (e.target.value.length >
|
|
15966
|
+
if (e.target.value.length > vr.MAX_WORKBOOK_NAME_SIZE) return e.stopPropagation(), void e.preventDefault();
|
|
15880
15967
|
x(e.target.value);
|
|
15881
15968
|
},
|
|
15882
15969
|
onKeyDown: (e) => {
|
|
15883
|
-
(
|
|
15970
|
+
(vr.isReservedFileNameChar(e.key) || e.target?.value.length > vr.MAX_WORKBOOK_NAME_SIZE) && e.preventDefault(), e.which === wt.Enter || e.which === wt.Tab ? (b ? x(v) : (l?.(y), y && (I.current?.onAccept?.(y, "keydown"), I.current = null)), e.stopPropagation(), e.preventDefault(), n?.focus()) : e.which === wt.Escape && (y === v ? n?.focus() : (x(v), setTimeout(() => {
|
|
15884
15971
|
e.target?.select();
|
|
15885
15972
|
}, 0)), I.current = null, e.stopPropagation(), e.preventDefault());
|
|
15886
15973
|
},
|
|
@@ -15893,7 +15980,7 @@ var $p = (e = !1, t = !1) => t ? null : {
|
|
|
15893
15980
|
top: "-9999px",
|
|
15894
15981
|
fontWeight: "600 !important",
|
|
15895
15982
|
whiteSpace: "pre",
|
|
15896
|
-
fontStyle: y !==
|
|
15983
|
+
fontStyle: y !== v ? "italic" : void 0,
|
|
15897
15984
|
fontFamily: (e) => e.typography.fontFamily,
|
|
15898
15985
|
letterSpacing: "0.00938em"
|
|
15899
15986
|
},
|
|
@@ -15903,8 +15990,8 @@ var $p = (e = !1, t = !1) => t ? null : {
|
|
|
15903
15990
|
})]
|
|
15904
15991
|
});
|
|
15905
15992
|
}));
|
|
15906
|
-
|
|
15907
|
-
var
|
|
15993
|
+
Up.displayName = "DocumentTitle";
|
|
15994
|
+
var qp = /* @__PURE__ */ new Set([
|
|
15908
15995
|
"square",
|
|
15909
15996
|
"elevation",
|
|
15910
15997
|
"variant",
|
|
@@ -15944,12 +16031,12 @@ var Up = /* @__PURE__ */ new Set([
|
|
|
15944
16031
|
"autoFocus",
|
|
15945
16032
|
"licenseKey",
|
|
15946
16033
|
"prefetch"
|
|
15947
|
-
]),
|
|
16034
|
+
]), jp = ar("studio:eagerStudio", () => import("./DAuVxjZwldORNkvx.mjs").then((e) => e.t)), _p = ({ error: e, onShown: t }) => (xo(() => {
|
|
15948
16035
|
t();
|
|
15949
|
-
}, []), un(Go, { error: e })),
|
|
15950
|
-
const { sx: o, style: n, className: r, licenseKey: a, renderDocumentLoading: l =
|
|
16036
|
+
}, []), un(Go, { error: e })), Zp = bo(ho((e, t) => {
|
|
16037
|
+
const { sx: o, style: n, className: r, licenseKey: a, renderDocumentLoading: l = Op, propsDocumentLoading: i, onWorkbookLoad: s, onDocumentError: c, ...d } = e, [p, u] = ((e) => {
|
|
15951
16038
|
const t = {}, o = {};
|
|
15952
|
-
for (const n in e) (
|
|
16039
|
+
for (const n in e) (qp.has(n) ? t : o)[n] = e[n];
|
|
15953
16040
|
return [t, o];
|
|
15954
16041
|
})(d);
|
|
15955
16042
|
So(() => {
|
|
@@ -15958,7 +16045,7 @@ var Up = /* @__PURE__ */ new Set([
|
|
|
15958
16045
|
const [m] = oo(me.Mode, ue[me.Mode]), { themeMode: h } = no({
|
|
15959
16046
|
mode: m ?? void 0,
|
|
15960
16047
|
fallback: "system"
|
|
15961
|
-
}), g = "dark" === h, [b, f] = Fo(null), y = Bt("studio",
|
|
16048
|
+
}), g = "dark" === h, [b, f] = Fo(null), y = Bt("studio", vo()), [x, v] = Fo(!1), k = So(() => !l || x ? null : un(En, {
|
|
15962
16049
|
style: {
|
|
15963
16050
|
backgroundColor: `var(--sxl-color-base-100, ${g ? "#121212" : "#fff"})`,
|
|
15964
16051
|
inset: 0,
|
|
@@ -15979,9 +16066,9 @@ var Up = /* @__PURE__ */ new Set([
|
|
|
15979
16066
|
i,
|
|
15980
16067
|
g,
|
|
15981
16068
|
x
|
|
15982
|
-
]), w = So(() => At(
|
|
16069
|
+
]), w = So(() => At(jp.load, { renderError: ({ error: e }) => un(_p, {
|
|
15983
16070
|
error: e,
|
|
15984
|
-
onShown: () =>
|
|
16071
|
+
onShown: () => v(!0)
|
|
15985
16072
|
}) }), []);
|
|
15986
16073
|
return un(It.Provider, {
|
|
15987
16074
|
value: "system",
|
|
@@ -16009,17 +16096,17 @@ var Up = /* @__PURE__ */ new Set([
|
|
|
16009
16096
|
...p,
|
|
16010
16097
|
host: b,
|
|
16011
16098
|
scopeClass: y,
|
|
16012
|
-
onWorkbookLoad: (e) => (requestAnimationFrame(() => requestAnimationFrame(() =>
|
|
16013
|
-
onDocumentError: (e) => (
|
|
16099
|
+
onWorkbookLoad: (e) => (requestAnimationFrame(() => requestAnimationFrame(() => v(!0))), s?.(e)),
|
|
16100
|
+
onDocumentError: (e) => (v(!0), c?.(e)),
|
|
16014
16101
|
renderDocumentLoading: null,
|
|
16015
16102
|
ref: t
|
|
16016
16103
|
})
|
|
16017
|
-
}),
|
|
16104
|
+
}), k]
|
|
16018
16105
|
})
|
|
16019
16106
|
});
|
|
16020
16107
|
}));
|
|
16021
|
-
|
|
16022
|
-
var
|
|
16108
|
+
Zp.displayName = "Studio";
|
|
16109
|
+
var Qp = an(ar("studio:templateDialog", () => import("./XJAfD-_V2Sx4aW33.mjs")).load), Yp = ar("studio:welcomeDialog", () => import("./539u16kqHOnXHBnN.mjs")), Xp = an(Yp.load), Jp = bo((e) => {
|
|
16023
16110
|
const { scope: t } = e, { showModal: o } = dn(), n = eo(), r = To(void 0), [a, l] = oo("studio.welcome.showAtStartup", !0), i = (e, o) => {
|
|
16024
16111
|
t.resolve(e)?.execute(o);
|
|
16025
16112
|
}, s = (e) => {
|
|
@@ -16029,7 +16116,7 @@ var Zp = an(ar("studio:templateDialog", () => import("./CIAX0QoWY_xslYfv.mjs")).
|
|
|
16029
16116
|
});
|
|
16030
16117
|
}, c = Et((e) => {
|
|
16031
16118
|
e?.templatePath && (r.current = e.templatePath);
|
|
16032
|
-
const t = o(
|
|
16119
|
+
const t = o(Qp, {
|
|
16033
16120
|
templatePath: r.current,
|
|
16034
16121
|
showAtStartup: a,
|
|
16035
16122
|
onShowAtStartupChange: l,
|
|
@@ -16050,7 +16137,7 @@ var Zp = an(ar("studio:templateDialog", () => import("./CIAX0QoWY_xslYfv.mjs")).
|
|
|
16050
16137
|
if (e?.templatePath && (r.current = e.templatePath), e?.atStartup && !a) return;
|
|
16051
16138
|
const t = (e) => () => {
|
|
16052
16139
|
c.hide(), i(e);
|
|
16053
|
-
}, c = o(
|
|
16140
|
+
}, c = o(Xp, {
|
|
16054
16141
|
templatePath: r.current,
|
|
16055
16142
|
showAtStartup: a,
|
|
16056
16143
|
onShowAtStartupChange: l,
|
|
@@ -16092,14 +16179,14 @@ var Zp = an(ar("studio:templateDialog", () => import("./CIAX0QoWY_xslYfv.mjs")).
|
|
|
16092
16179
|
d
|
|
16093
16180
|
]), null;
|
|
16094
16181
|
});
|
|
16095
|
-
|
|
16096
|
-
var
|
|
16097
|
-
|
|
16182
|
+
Jp.displayName = "TemplateCommands";
|
|
16183
|
+
var eu = !1, tu = () => {
|
|
16184
|
+
eu || (eu = !0, bt.DefaultCommandRegistry.registerDynamic("app", Jp), vt.register({
|
|
16098
16185
|
key: "templates.newFromTemplate",
|
|
16099
16186
|
defaultKey: "newWorkbookFromTemplate",
|
|
16100
16187
|
contributions: { newWorkbookOptions: { order: 1 } }
|
|
16101
16188
|
}, !0));
|
|
16102
|
-
},
|
|
16189
|
+
}, ou = (e = {}) => {
|
|
16103
16190
|
const { source: t, startWith: o, templatePath: n, onWorkbookLoad: r, onWorkbookChange: a, onDirtyChange: l, documentTitle: i, confirmOnClose: s, keyboardGuard: c, ...d } = e, p = Yt(), [u, m] = Fo(null), [h, g] = Fo(!1), b = ht(u);
|
|
16104
16191
|
pt(b, h, {
|
|
16105
16192
|
documentTitle: i,
|
|
@@ -16126,10 +16213,10 @@ var Jp = !1, eu = () => {
|
|
|
16126
16213
|
So(() => {
|
|
16127
16214
|
x.current = y;
|
|
16128
16215
|
}, [y]);
|
|
16129
|
-
const
|
|
16130
|
-
|
|
16131
|
-
const
|
|
16132
|
-
e && x.current && (e.getOrigin().setName(x.current), x.current = null), m(e),
|
|
16216
|
+
const v = To(a);
|
|
16217
|
+
v.current = a;
|
|
16218
|
+
const k = fo((e) => {
|
|
16219
|
+
e && x.current && (e.getOrigin().setName(x.current), x.current = null), m(e), v.current?.(e);
|
|
16133
16220
|
}, []), w = To(l);
|
|
16134
16221
|
w.current = l;
|
|
16135
16222
|
const S = fo((e) => {
|
|
@@ -16137,7 +16224,7 @@ var Jp = !1, eu = () => {
|
|
|
16137
16224
|
}, []);
|
|
16138
16225
|
xo(() => {
|
|
16139
16226
|
"welcome" === o && void 0 === f && ((e) => {
|
|
16140
|
-
|
|
16227
|
+
Yp.load().then((t) => t.prefetchCatalog(e), () => {});
|
|
16141
16228
|
})(n);
|
|
16142
16229
|
}, [
|
|
16143
16230
|
o,
|
|
@@ -16160,9 +16247,9 @@ var Jp = !1, eu = () => {
|
|
|
16160
16247
|
virtualKeyboard: "resize",
|
|
16161
16248
|
...d,
|
|
16162
16249
|
workbook: f,
|
|
16163
|
-
onWorkbookChange:
|
|
16250
|
+
onWorkbookChange: k,
|
|
16164
16251
|
onDirtyChange: S,
|
|
16165
16252
|
onWorkbookLoad: F
|
|
16166
16253
|
};
|
|
16167
16254
|
};
|
|
16168
|
-
export { Ds as ANOMALIES_REVIEW_BUTTON, Ns as AnomaliesPlugin, ul as AppearanceCommandButton, Br as AutoColorPosition, Jr as BorderCommandButton, Xr as BorderPopupButton, jr as BorderStylePopupButton, _r as BorderTemplateIcon, ca as C, gl as CalculationOptionsCommandButton, ji as CalculationRequiredStatus, qi as CircularReferenceStatus, Lr as ColorButton, Kr as ColorButtonList, ba as ColorCommandButton, Vr as ColorPanel, Ir as ColorPanelType, $r as ColorPopupButton, bd as ColumnMenu, ys as CommentCard,
|
|
16255
|
+
export { Ds as ANOMALIES_REVIEW_BUTTON, Ns as AnomaliesPlugin, ul as AppearanceCommandButton, Br as AutoColorPosition, Jr as BorderCommandButton, Xr as BorderPopupButton, jr as BorderStylePopupButton, _r as BorderTemplateIcon, ca as C, gl as CalculationOptionsCommandButton, ji as CalculationRequiredStatus, qi as CircularReferenceStatus, Lr as ColorButton, Kr as ColorButtonList, ba as ColorCommandButton, Vr as ColorPanel, Ir as ColorPanelType, $r as ColorPopupButton, bd as ColumnMenu, ys as CommentCard, vs as CommentsPlugin, jd as DEFAULT_GRADIENT, z as DefaultTaskPaneRegistry, Ii as DefaultWorkbookToolbars, dl as DocThemeCommandButton, Up as DocumentTitle, us as ExternalLinksPlugin, Ji as FORMULA_BAR_EDITOR_ID, za as FORMULA_FIELD_ABOVE_LABEL_HEIGHT, pl as FileCommandButton, dp as FillMenu, fa as FontFamilyCommandButton, ea as FontSizeCommandButton, Zd as FormatPlugin, rs as FormulaBar, Va as FormulaField, Ci as FunctionArgumentsPanel, Si as FunctionSearchPanel, Ud as GradientEditor, Gd as GradientStopsBar, ri as INSERT_CELL_CONTROL_OPTIONS_KEY, Ti as INSERT_FUNCTION_PAGE_CLASS, La as InputField, ai as InsertCellControlCommandButton, Yl as InsertFunctionCommandPopupButton, Fi as InsertFunctionOption, gi as InsertFunctionSumCommandPopupButton, Ni as InsertFunctionWizard, xi as ItemCard, fi as ItemCardAction, vi as ItemsSearchField, T as LicenseManager, ds as MobileFormulaBar, ls as MobileInputToolbar, Qi as NamedCollectionEditor, Xi as NamedPlugin, pa as NumberFormatCommandButton, ta as NumberFormatOption, zi as NumberStats, Rd as PATTERN_GALLERY, Qd as PasswordField, xa as PasteCommandButton, Od as PatternPopupButton, Pd as PatternSwatch, _i as PendingStatus, Fd as PivotMenu, Cp as PivotToolbar, ac as PresenceOverlay, ic as PresencePlugin, Ws as PresenceStrip, rc as PresenceTaskPane, Sa as PresetCellStylesCommandButton, Pl as PresetChip, Ya as PresetPivotStylesCommandButton, Dd as PresetSlicerStylesCommandButton, Ua as PresetTableStylesCommandButton, ep as ProtectionPlugin, yl as S, tp as SheetTabMenu, Nr as SheetZoomCommandButton, Li as SheetZoomScale, op as SheetsAllMenu, Id as SlicerPlugin, Zi as StatusBar, Zp as Studio, qr as StyledStrokeIcon, $a as TablePlugin, Oa as TableStyleCanvasPreview, Fa as TableStylePreview, wp as TableToolbar, ya as TextEffectsCommandButton, Fr as TextRotateGroupButton, Ja as ThemeSelectButton, el as ThemeSelectPanel, tl as ThemeSelectPopupButton, ga as UndoRedoCommandButton, bl as WalkingCopyCommandButton, ap as WorkbookContextMenu, $p as WorkbookElement, ye as WorkbookIO, rp as WorkbookStrip, Oi as WorkbookToolbars, wl as _, Rc as a, Il as b, wi as c, cl as createStudioThemeCSS, al as createThemeFromMUITheme, zl as d, Pp as defaultRenderColumnMenu, bp as defaultRenderCommentCard, Bp as defaultRenderContextMenu, Ip as defaultRenderFillMenu, Mp as defaultRenderFormulaBar, yp as defaultRenderHyperlinkCard, Np as defaultRenderMovableMenu, Fp as defaultRenderOutlineButton, Dp as defaultRenderOutlineLevelButton, Rp as defaultRenderPivotMenu, Tp as defaultRenderPivotToolbar, Hp as defaultRenderSheetTab, Wp as defaultRenderSheetTabMenu, zp as defaultRenderSheetsAll, Kp as defaultRenderStatusBar, Sp as defaultRenderTableToolbar, Ep as defaultRenderTabs, Bi as defaultRenderToolbar, gp as defaultRenderTooltip, Ap as defaultRenderWorkbookError, Op as defaultRenderWorkbookLoading, Lp as defaultRenderWorksheet, Gl as f, Sl as g, xl as h, Ic as i, bi as l, kl as m, ld as n, na as numberFormatCategoryLabel, oa as numberFormatTypeLabel, ks as o, Di as optionsForPage, Kl as p, Md as patternLabel, rd as r, _l as registerSheetCommandGroups, Tr as registerStudioCommandCatalogs, hi as registerStudioCommandGroups, pi as registerWorkbookCommandGroups, ki as s, _e as setPrintExamplesOnLoad, tu as t, qd as toGradientValue, Bd as toPatternSlots, ll as tokensToMuiOptions, di as u, es as useFormulaBarSession, nt as useModelListener, st as useRangeListener, ou as useStudioApp, Bl as v, Or as w, fl as x, Dl as y };
|