@sheetxl/studio-mui 0.8.0-beta.23 → 0.8.0-beta.25
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/{DEILBkTYM5GuSYLP.mjs → 5bkyBAxCvP8hvBRt.mjs} +2 -2
- package/browser/esm/{Ce5ZiG5RMMewOh20.mjs → A_TAgKe2OX4fuvMa.mjs} +4 -4
- package/browser/esm/{ClXxtB98U76iDrtj.mjs → B1cQ-aC-kTFIGCrp.mjs} +2 -2
- package/browser/esm/{DSuMuoNFUjJsd15-.mjs → B1fAvLLYv4Xa1n6v.mjs} +1 -1
- package/browser/esm/{DmfuCdn6QW__7sVr.mjs → B3R6AAPIicHsNj-c.mjs} +3 -3
- package/browser/esm/{B8DK-EICUzzkKHOT.mjs → B8zvQQdl4o8Uppic.mjs} +4 -4
- package/browser/esm/{Dv4ndHScQEENL6DA.mjs → BCCSjiGdkbFJd5LQ.mjs} +8 -8
- package/browser/esm/{JjoDQ7kBaTdBLqA4.mjs → BRMQ4xeNb77opm-1.mjs} +1 -1
- package/browser/esm/{DLuMMUERB4N5Zf-n.mjs → BUbKaovlC3EBQiS_.mjs} +4 -4
- package/browser/esm/{DFdgG6xUa0_mmiSp.mjs → Bj4S_n8JXAuBXM9T.mjs} +1 -1
- package/browser/esm/{CPGiQiXu-u6r11fr.mjs → Bo9cQ9KhePNEkhJk.mjs} +2 -2
- package/browser/esm/{CWZoE2dDxX-8yQql.mjs → BpGM26PLFrWZ_yHf.mjs} +2 -2
- package/browser/esm/{pfN8xe0LCSTqzF_2.mjs → BqMkdoI5jvnYwis3.mjs} +2 -2
- package/browser/esm/{DNVpxaUopxkKOZaG.mjs → C-KgnW4jDiThooxs.mjs} +2 -2
- package/browser/esm/{S3LY_kWRu6v1Ft40.mjs → C0LSp-aUistI_RSL.mjs} +2 -2
- package/browser/esm/{OAvkBxphUfqrOn_K.mjs → C2QqCQm3uNfAJ6i9.mjs} +1 -1
- package/browser/esm/{B5ykigtm3LE3-S9e.mjs → CH_wXXHBGVO21Rde.mjs} +2 -2
- package/browser/esm/{TFJUQcKsawCh4esx.mjs → CK77CNQNVSY-UxHc.mjs} +4 -4
- package/browser/esm/{B19n0bcO5bMPruGk.mjs → CLHw2dQd-BIxDtJE.mjs} +1 -1
- package/browser/esm/{D7ogY8ykfJGZ35jY.mjs → CN_3D_iTUy-7UcTY.mjs} +1 -1
- package/browser/esm/{D2S83AjNN8JCl2EL.mjs → COqfTuI1CD6ni3Ud.mjs} +2 -2
- package/browser/esm/{DEsDS0RX4DnyT_jk.mjs → CWIE8DEgFUVYFIpA.mjs} +4 -4
- package/browser/esm/{C5q3B-KjPRLy3Ihp.mjs → C_JfIF3rq2upsn1R.mjs} +2 -2
- package/browser/esm/{Db-NbGskcpMZZHKM.mjs → CkO9167CAPEWgeVt.mjs} +1 -1
- package/browser/esm/{C7cXbOyJfTmYUd18.mjs → Cljz7bTqnEFO74h6.mjs} +684 -683
- package/browser/esm/{Bw6mxAfCx4FULeUB.mjs → CryUpdLS2Ugsz_Ig.mjs} +1 -1
- package/browser/esm/{CI8k7kDBS1QVZn5S.mjs → CueoG2nbqNyOi-h4.mjs} +2 -2
- package/browser/esm/{xdqV7p4ssraS4FHb.mjs → CzQoGoZOnRMSR_RY.mjs} +4 -4
- package/browser/esm/{61qlLY6EQNjbQMDi.mjs → CzRhY-X1xk9pictL.mjs} +2 -2
- package/browser/esm/{BbABKdPYxk4IMSLc.mjs → D2j8f0Fu9qG7L-u6.mjs} +1 -1
- package/browser/esm/{Bcwt4-GEbF3sfJ8P.mjs → D31yxxTLAvWnl_6a.mjs} +2 -2
- package/browser/esm/{CaHNU1h47mUesQQN.mjs → D5fHPB35yb1MkBJn.mjs} +2 -2
- package/browser/esm/{ea57m6-nIYUKFyzf.mjs → D6rpTzaXcDI5dtcT.mjs} +8 -8
- package/browser/esm/{C66BP2x5G9VxianJ.mjs → DEBcIG3Kler9VUXZ.mjs} +1 -1
- package/browser/esm/{CUY_oauSAZX4Z-d-.mjs → DIbfqL2fimGtUgNG.mjs} +5 -5
- package/browser/esm/{9W8UMvVpOm879O9Q.mjs → DJMvEfiS6SDWPLtl.mjs} +1 -1
- package/browser/esm/{DZ72x5v3_f0dhXS5.mjs → DL1DUaxvbhxRDW9C.mjs} +2 -2
- package/browser/esm/{BZl2Zo1B5LmU6ND7.mjs → DOIPRwq08jIYE0wH.mjs} +3 -3
- package/browser/esm/{DuzrJpmUyTTXroFX.mjs → DR08Lb6lKvuO-kK7.mjs} +5 -5
- package/browser/esm/{DGaYmKVqluJZ8ZD8.mjs → DSI2fnBiCb8lTk6E.mjs} +2 -2
- package/browser/esm/{BpYJD74w23YliQn6.mjs → DUoSsuV4GqRXGGNo.mjs} +5 -5
- package/browser/esm/{BtR1nedinfNR24qm.mjs → DY5QdSHE8hkEt0Ou.mjs} +1 -1
- package/browser/esm/{Bwc48kjFvd98HI3-.mjs → D_Z0qdyjWXYTjeqz.mjs} +20 -20
- package/browser/esm/{3vdsx6Z062TFVqqm.mjs → Ddf1z5_p5ELccZ7i.mjs} +1 -1
- package/browser/esm/{BkGHlu2z__idmVOV.mjs → Dj90vNf4c5FUNe_v.mjs} +4 -4
- package/browser/esm/{CuCtXVvc9N3sUzWz.mjs → DoJJHMC8IkNwzK-i.mjs} +6 -6
- package/browser/esm/{B1cZfl1su2i_IUuO.mjs → DxqFUDj1yyB6FEUQ.mjs} +1 -1
- package/browser/esm/{CrKqA0lliI3x_pFG.mjs → DygvUSGGk0pHHo0b.mjs} +1 -1
- package/browser/esm/{BhkaQtl8eWTBqQSV.mjs → EBqYEw3Klx0M4x_J.mjs} +1 -1
- package/browser/esm/{B1WCXTGT4QyfuXEG.mjs → RyyEI_oZN8xFcoQ3.mjs} +3 -3
- package/browser/esm/{B0GhKutuGufS8cTX.mjs → TPpBxWP6Ap6lD2_T.mjs} +2 -2
- package/browser/esm/{CwKA4g_ulbxqKWN6.mjs → UOg0AXys8mpciaEB.mjs} +3 -3
- package/browser/esm/{Bi91aW5tILFwRzDH.mjs → YY30sw8lszbgoJGu.mjs} +1 -1
- package/browser/esm/{vcqr-88ypSy0Jx2Q.mjs → cvEDG_d_5doDWQcv.mjs} +4 -4
- package/browser/esm/{CmYZ6sd6YCXvcNFo.mjs → fbvRSygnF3mXp9VF.mjs} +3 -3
- package/browser/esm/{CT8RqHXjAPVLs2bn.mjs → hT5p2eM8bnvKL5nb.mjs} +2 -2
- package/browser/esm/index.mjs +21 -19
- package/browser/esm/{NTmBvTnoLPfgA2Cj.mjs → lxw3vGZyMOFlmm-J.mjs} +1 -1
- package/browser/esm/{DnSTmOtiviJE47Im.mjs → mN6pyuqXps_J_Iwb.mjs} +5 -5
- package/browser/esm/{BTw0PMEQ23eq2l3z.mjs → r8SlEWi0Y-H4n8PV.mjs} +2 -2
- package/licenses/dependencies.txt +33 -33
- package/node/esm/{DScYIiZenzzEpqNX.mjs → 18bo8BO9MJ-Mw_d4.mjs} +2 -2
- package/node/esm/{BS33GA7F0bkFfwXo.mjs → 6ZHpFK2-VIS4vny-.mjs} +2 -2
- package/node/esm/{C5G29l25qVLu5OZj.mjs → 8-2AaKb8ISDlohzH.mjs} +2 -2
- package/node/esm/{5Sg-hTry8N_ADjwz.mjs → B8YAUfGTtlnRHi2M.mjs} +2 -2
- package/node/esm/{BcWKuDVZKC_PVYtg.mjs → B9Ss0oErD_Jpepry.mjs} +1 -1
- package/node/esm/{BBcWEgWdtRmfiFgw.mjs → BAM8u82s5JnK7JfF.mjs} +1 -1
- package/node/esm/{COrRcQDAFnkRj95H.mjs → BGtJ5ozY8WOtf44N.mjs} +1 -1
- package/node/esm/{BcZDO-Mj9HsII_hy.mjs → BIG-ptRvPGxglh_x.mjs} +1 -1
- package/node/esm/{DdX-VVGAfrU2a52x.mjs → BL9qi-st6Jzmdr3l.mjs} +1 -1
- package/node/esm/{BT0yXqLFKoPiS71A.mjs → BSNznySJWtGvOtsu.mjs} +1 -1
- package/node/esm/{DXGG2ZQw5gsEiizJ.mjs → BTstsPHad-gz20kY.mjs} +1 -1
- package/node/esm/{Db70KVKsFGdRlKEx.mjs → B_wvium-e6TCGIDs.mjs} +1 -1
- package/node/esm/{BJYaCliDBm8LmZWp.mjs → BgQGprc6dXTM_z0v.mjs} +2 -2
- package/node/esm/{Bz_1k_dxr4BRsQv3.mjs → Bj2HxLO7JvQJrhMU.mjs} +1 -1
- package/node/esm/{eOKsk3UBMDeeE2K8.mjs → Bwh5vs3tiUEIHsgi.mjs} +2 -2
- package/node/esm/{Bq7H9YN6TQEPFxf9.mjs → C1BXcyHiQJ2h8FMQ.mjs} +2 -2
- package/node/esm/{j5sUOLJOXDDfgzyV.mjs → C9vpePuGtOy9NPEo.mjs} +1 -1
- package/node/esm/{HTk99NQ6xaWtPNfO.mjs → CHtcaCt89IhdaS8X.mjs} +1 -1
- package/node/esm/{BtYfA9MPu_ajX7Y9.mjs → CV7eSXwWO8_KJMez.mjs} +4 -4
- package/node/esm/{C2-KRircvBQzs5Ba.mjs → CVx3WGhDMXzoxwOc.mjs} +1 -1
- package/node/esm/{CspVpQ8x2lBzmEJr.mjs → Ce3DEGYJQGBtyCGf.mjs} +4 -4
- package/node/esm/{orrZaoah66_1GRIf.mjs → CjMPhdZM35dO7x25.mjs} +265 -264
- package/node/esm/{D0f2t3XyaDfFTC08.mjs → CrhQVs12xPYop-0N.mjs} +1 -1
- package/node/esm/{COXiXFKdsF49hE5l.mjs → DAo5TTNUTEsrE1DR.mjs} +2 -2
- package/node/esm/{BvdZuwQByiJVQOvh.mjs → DB0ey_u5taO1vTil.mjs} +4 -4
- package/node/esm/{BQvZ_uVsIOZSfXFf.mjs → DG-j0R1kWTl7k09_.mjs} +2 -2
- package/node/esm/{CRJi4wTYJJJq2kEV.mjs → DQ-NlfgeithMMFil.mjs} +2 -2
- package/node/esm/{d7nC9HA-O7Jg57HD.mjs → DgvrBdBQr_yfq8kU.mjs} +2 -2
- package/node/esm/{BjRqhIL_i20fCqwt.mjs → DmD4bNk-B1ukyRqm.mjs} +1 -1
- package/node/esm/{wy1h9E1aAC6zMYna.mjs → Dn0QPKUFPSxIaCbM.mjs} +2 -2
- package/node/esm/{BZjXyuhD5XzRKyKi.mjs → DsUFnSGuKYPnyZzA.mjs} +2 -2
- package/node/esm/{tUUYzU1yWSNE4COh.mjs → Dto7zWxnDTBEwOWV.mjs} +1 -1
- package/node/esm/{C5XI_nNcwDiNGqNp.mjs → DxzrjP_Nczwj2NaD.mjs} +1 -1
- package/node/esm/{DG5EIoSdFG3FutGu.mjs → EtZJoRlHr4fXhR6A.mjs} +1 -1
- package/node/esm/{DT6duO2Kls0dywMs.mjs → Xl67EnlWC7zoBIhM.mjs} +2 -2
- package/node/esm/{cFgQxgzJMvn3jgnS.mjs → ZrriOJCzPoJL2MLs.mjs} +1 -1
- package/node/esm/{CfvgBqV3sMafVSQM.mjs → iMlSA1x7BAw2mz7b.mjs} +1 -1
- package/node/esm/index.mjs +543 -540
- package/node/esm/{lHvI11zfRX3BV9uN.mjs → x76F3LK_C6OLwDc9.mjs} +2 -2
- package/node/esm/{DgHlwwldxPMVUdYv.mjs → yvFeggWgnxoK9S79.mjs} +2 -2
- package/package.json +9 -9
- package/types/src/studio/StudioProps.d.ts +10 -2
package/node/esm/index.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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.25
|
|
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 so, { Fragment as co, Suspense as po, cloneElement as uo, createContext as mo, createElement as ho, forwardRef as go, isValidElement as bo, memo as fo, useCallback as yo, useContext as xo, useEffect 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, tokenVar as Et, useCallbackRef as Wt, useCommandButtonEntry as zt, useCommandButtonRegistry as Vt, useCommandElement as Ht, useCommandScope as $t, useCommands as Gt, useDevicePixelRatio as Ut, useEditMode as qt, useFloat as jt, useFloatStack as _t, useFloatSurface as Zt, useImperativeElement as Qt, useLanguage as Yt, useLocationSearch as Xt, useMeasure as Jt, useMouseDownAndHoldListener as eo, useNotifier as to, useOptionalBoundSyncExternalStore as oo, usePersistentState as no, useResolvedThemeMode as ro, useTextSelectionDrag as ao, useTranslator as lo, useVirtualKeyboard as io } from "@sheetxl/utils-react";
|
|
10
|
+
import so, { Fragment as co, Suspense as po, cloneElement as uo, createContext as mo, createElement as ho, forwardRef as go, isValidElement as bo, memo as fo, useCallback as yo, useContext as xo, useEffect as vo, useId as ko, useImperativeHandle as wo, useLayoutEffect as So, useMemo as Co, useReducer as To, useRef as Fo, useState as Do } from "react";
|
|
11
11
|
import { AnimatedLoadingPanel as No, CommandButton as Io, CommandGroup as Bo, CommandPopupButton as Po, CommandToolbar as Ro, CommandTooltip as Mo, ContextMenu as Oo, ExhibitDivider as Ao, ExhibitFloatProvider as Lo, ExhibitIconButton as Ko, ExhibitMenuHeader as Eo, ExhibitMenuItem as Wo, ExhibitPopupIconButton as zo, ExhibitPopupMenuItem as Vo, ExhibitTooltip as Ho, InputCommandButton as $o, LabelIcon as Go, LazyLoadErrorPanel as Uo, MenuItemInsets as qo, PopupButtonType as jo, SelectedIcon as _o, SimpleTooltip as Zo, StackTraceErrorPanel as Qo, ToggleGroupButton as Yo, buttonLabelSx as Xo, createStrokeShadowFilter as Jo, defaultRenderPopupPanel as en, defaultRenderScrollButtonEdge as tn, defaultRenderScrollButtonEnd as on, defaultRenderScrollButtonStart as nn, elevateColor as rn, hexToRGB as an, lazyModal as ln, lazyPanel as sn, renderMembers as cn, strokeShadowFilter as dn, useModal as pn } from "@sheetxl/utils-mui";
|
|
12
12
|
import { Fragment as un, jsx as mn, jsxs as hn } from "react/jsx-runtime";
|
|
13
|
-
import { Avatar as gn, Box as bn, Button as fn, ButtonBase as yn, Checkbox as xn, Collapse as
|
|
13
|
+
import { Avatar as gn, Box as bn, Button as fn, ButtonBase as yn, Checkbox as xn, Collapse as vn, Divider as kn, FormControl as wn, FormControlLabel as Sn, FormHelperText as Cn, IconButton as Tn, Input as Fn, InputAdornment as Dn, InputLabel as Nn, Link as In, List as Bn, ListItem as Pn, ListItemButton as Rn, ListItemIcon as Mn, ListItemText as On, ListSubheader as An, Menu as Ln, MenuItem as Kn, MenuList as En, Paper as Wn, Select as zn, Slider as Vn, SvgIcon as Hn, Tab as $n, Tabs as Gn, TextField as Un, ToggleButton as qn, ToggleButtonGroup as jn, Typography as _n, alpha as Zn, styled as Qn, tooltipClasses as Yn, useMediaQuery as Xn, useTheme as Jn } from "@mui/material";
|
|
14
14
|
import { CommonUtils as er, CoordUtils as tr, DOMUtils as or, DefaultLanguagePackService as nr, RangeAxis as rr, TimerUtils as ar, defineLazyModule as lr, messageKey as ir, t as sr } from "@sheetxl/utils";
|
|
15
15
|
import cr, { clsx as dr } from "clsx";
|
|
16
16
|
import { alpha as pr } from "@mui/system";
|
|
17
17
|
import { useMergeRefs as ur } from "react-merge-refs";
|
|
18
18
|
import { useFormContext as mr } from "react-hook-form";
|
|
19
|
-
import { EditorDiv as hr, ListSearch as gr, PickList as br, TooltipProvider as fr, buildGridThemeCSS as yr, filterByText as xr, useTooltipSurface as
|
|
20
|
-
import { IOUtils as
|
|
19
|
+
import { EditorDiv as hr, ListSearch as gr, PickList as br, TooltipProvider as fr, buildGridThemeCSS as yr, filterByText as xr, useTooltipSurface as vr } from "@sheetxl/grid-react";
|
|
20
|
+
import { IOUtils as kr } from "@sheetxl/io";
|
|
21
21
|
var wr = {
|
|
22
22
|
"anomalies.analyze": "Analyze",
|
|
23
23
|
"anomalies.check.approximateMatch": "Approximate match",
|
|
@@ -1648,13 +1648,13 @@ var Br = {
|
|
|
1648
1648
|
n,
|
|
1649
1649
|
s,
|
|
1650
1650
|
t
|
|
1651
|
-
]),
|
|
1651
|
+
]), v = yo((e) => {
|
|
1652
1652
|
a?.(e), e.isDefaultPrevented() || e.keyCode === wt.Enter && o?.(t.toRGBA());
|
|
1653
1653
|
}, [
|
|
1654
1654
|
o,
|
|
1655
1655
|
a,
|
|
1656
1656
|
t
|
|
1657
|
-
]),
|
|
1657
|
+
]), k = Co(() => 1 === t.toRGBA().alpha ? null : mn(Ar, {
|
|
1658
1658
|
size: h,
|
|
1659
1659
|
white: p,
|
|
1660
1660
|
grey: u,
|
|
@@ -1684,11 +1684,11 @@ var Br = {
|
|
|
1684
1684
|
tabIndex: 0,
|
|
1685
1685
|
...g,
|
|
1686
1686
|
onClick: b,
|
|
1687
|
-
onKeyDown:
|
|
1687
|
+
onKeyDown: v,
|
|
1688
1688
|
onMouseOver: f,
|
|
1689
1689
|
onMouseLeave: y,
|
|
1690
1690
|
onFocus: x,
|
|
1691
|
-
children: [
|
|
1691
|
+
children: [k, mn("div", {
|
|
1692
1692
|
style: {
|
|
1693
1693
|
position: "absolute",
|
|
1694
1694
|
top: "0px",
|
|
@@ -1706,7 +1706,7 @@ var Br = {
|
|
|
1706
1706
|
adjs: a.definition.adjs
|
|
1707
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 = [];
|
|
1708
1708
|
x.push({ [u.AdjustmentType.Inv]: !0 }), x.push({ [u.AdjustmentType.Alpha]: 100 });
|
|
1709
|
-
const
|
|
1709
|
+
const v = 0 === g.toRGBA().alpha && s?.alphaGrey ? s.alphaGrey : g.adjust(x).toRGBA(m).toString(), k = yo(() => {
|
|
1710
1710
|
l?.(a);
|
|
1711
1711
|
}, [l, a]), w = yo((e) => {
|
|
1712
1712
|
i?.(a);
|
|
@@ -1740,7 +1740,7 @@ var Br = {
|
|
|
1740
1740
|
children: hn(Lr, {
|
|
1741
1741
|
selectedColor: g,
|
|
1742
1742
|
title: void 0,
|
|
1743
|
-
onSelectColor:
|
|
1743
|
+
onSelectColor: k,
|
|
1744
1744
|
onPreviewColor: w,
|
|
1745
1745
|
alphaCheckSize: d ? 9 : void 0,
|
|
1746
1746
|
darkMode: m,
|
|
@@ -1752,7 +1752,7 @@ var Br = {
|
|
|
1752
1752
|
top: "0px",
|
|
1753
1753
|
left: "0px",
|
|
1754
1754
|
pointerEvents: "none",
|
|
1755
|
-
borderColor:
|
|
1755
|
+
borderColor: v,
|
|
1756
1756
|
borderWidth: "2px",
|
|
1757
1757
|
borderStyle: "solid",
|
|
1758
1758
|
boxSizing: "border-box",
|
|
@@ -1765,7 +1765,7 @@ var Br = {
|
|
|
1765
1765
|
top: "calc(50% - 0.5px)",
|
|
1766
1766
|
transform: "translate(-50%,-50%)",
|
|
1767
1767
|
pointerEvents: "none",
|
|
1768
|
-
background:
|
|
1768
|
+
background: v,
|
|
1769
1769
|
borderRadius: "50%",
|
|
1770
1770
|
opacity: y ? "1" : "0"
|
|
1771
1771
|
} })]
|
|
@@ -1868,8 +1868,8 @@ var Br = {
|
|
|
1868
1868
|
a?.set(c, s);
|
|
1869
1869
|
const d = s.toRGBA().toString();
|
|
1870
1870
|
l?.set(d, s);
|
|
1871
|
-
}, Vr = At(lr("studio:customColorPanel", () => import("./
|
|
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:
|
|
1871
|
+
}, Vr = At(lr("studio:customColorPanel", () => import("./BAM8u82s5JnK7JfF.mjs")).load, { renderError: ({ error: e }) => mn(Uo, { error: e }) }), Hr = fo(go((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 = Pr.Start, compareRGB: C = !1, darkMode: T = !1, style: F, ...D } = e, N = lo(), I = v ?? N(k ?? ir("color.automatic")), B = r || n, P = Wt(b ?? ((e) => {}), [b]), R = Wt(f ?? ((e) => {}), [f]), M = Wt(y ?? ((e, t) => {}), [y]), O = Wt(h ?? (() => {}), [h]), A = Wt(g ?? (() => {}), [g]), [L, K] = Do(!1), E = Jn(), W = Co(() => l || t.getDefaultSchemeLookup(), [l]), z = Co(() => {
|
|
1873
1873
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), o = [];
|
|
1874
1874
|
zr(N("color.scheme.bg1"), "bg1", W, o, e, t), zr(N("color.scheme.tx1"), "tx1", W, o, e, t), zr(N("color.scheme.bg2"), "bg2", W, o, e, t), zr(N("color.scheme.tx2"), "tx2", W, o, e, t), zr(N("color.scheme.accent", { n: 1 }), "accent1", W, o, e, t), zr(N("color.scheme.accent", { n: 2 }), "accent2", W, o, e, t), zr(N("color.scheme.accent", { n: 3 }), "accent3", W, o, e, t), zr(N("color.scheme.accent", { n: 4 }), "accent4", W, o, e, t), zr(N("color.scheme.accent", { n: 5 }), "accent5", W, o, e, t), zr(N("color.scheme.accent", { n: 6 }), "accent6", W, o, e, t);
|
|
1875
1875
|
const n = w.buildPalette(o, W, e, t), r = [];
|
|
@@ -1900,13 +1900,13 @@ var Br = {
|
|
|
1900
1900
|
i,
|
|
1901
1901
|
x
|
|
1902
1902
|
]);
|
|
1903
|
-
|
|
1903
|
+
vo(() => {
|
|
1904
1904
|
u?.();
|
|
1905
1905
|
}, []);
|
|
1906
1906
|
const [V, H] = Do(!1), $ = yo(() => {
|
|
1907
1907
|
H((e) => !e);
|
|
1908
1908
|
}, []);
|
|
1909
|
-
|
|
1909
|
+
vo(() => {
|
|
1910
1910
|
if (c) H(c === Br.Custom);
|
|
1911
1911
|
else if (n) {
|
|
1912
1912
|
let e = n.toString(), t = z.mapAllPresets.get(e);
|
|
@@ -1918,7 +1918,7 @@ var Br = {
|
|
|
1918
1918
|
const G = yo(ar.debounce((e) => {
|
|
1919
1919
|
P?.(e);
|
|
1920
1920
|
}, s), [P, s]), [U, q] = Do();
|
|
1921
|
-
|
|
1921
|
+
vo(() => {
|
|
1922
1922
|
q(r || n);
|
|
1923
1923
|
}, [r, n]);
|
|
1924
1924
|
const j = Wt((e) => {
|
|
@@ -1970,7 +1970,7 @@ var Br = {
|
|
|
1970
1970
|
K(!1), "AbortError" !== e?.name && console.error(e);
|
|
1971
1971
|
});
|
|
1972
1972
|
},
|
|
1973
|
-
children: mn(
|
|
1973
|
+
children: mn(kt, { iconKey: "Colorize" })
|
|
1974
1974
|
});
|
|
1975
1975
|
}, [z, T]), ee = Co(() => {
|
|
1976
1976
|
if (!V) return;
|
|
@@ -2079,7 +2079,7 @@ var Br = {
|
|
|
2079
2079
|
children: [hn("div", {
|
|
2080
2080
|
style: { opacity: V ? "0" : 1 },
|
|
2081
2081
|
children: [
|
|
2082
|
-
oe && S === Pr.Start ? hn(un, { children: [oe, mn(
|
|
2082
|
+
oe && S === Pr.Start ? hn(un, { children: [oe, mn(kn, { style: {
|
|
2083
2083
|
marginTop: "2px",
|
|
2084
2084
|
marginBottom: "10px"
|
|
2085
2085
|
} })] }) : null,
|
|
@@ -2106,7 +2106,7 @@ var Br = {
|
|
|
2106
2106
|
compareRGB: C,
|
|
2107
2107
|
darkMode: T
|
|
2108
2108
|
}),
|
|
2109
|
-
mn(
|
|
2109
|
+
mn(kn, { style: { marginBottom: "10px" } }),
|
|
2110
2110
|
mn(Er, {
|
|
2111
2111
|
title: N("color.standardColors"),
|
|
2112
2112
|
schemeColorLookup: W,
|
|
@@ -2124,7 +2124,7 @@ var Br = {
|
|
|
2124
2124
|
opacity: 0 === z.recentColorsLimited.length ? "0" : void 0,
|
|
2125
2125
|
display: 0 === z.recentColorsLimited.length ? "none" : void 0
|
|
2126
2126
|
},
|
|
2127
|
-
children: [mn(
|
|
2127
|
+
children: [mn(kn, { style: { marginBottom: "10px" } }), mn(Er, {
|
|
2128
2128
|
title: N("color.recentColors"),
|
|
2129
2129
|
schemeColorLookup: W,
|
|
2130
2130
|
colorDefs: z.recentColorsLimited,
|
|
@@ -2138,7 +2138,7 @@ var Br = {
|
|
|
2138
2138
|
})]
|
|
2139
2139
|
}),
|
|
2140
2140
|
oe && S === Pr.End ? hn(un, { children: [
|
|
2141
|
-
mn(
|
|
2141
|
+
mn(kn, { sx: {
|
|
2142
2142
|
marginTop: "2px",
|
|
2143
2143
|
marginBottom: "2px"
|
|
2144
2144
|
} }),
|
|
@@ -2148,7 +2148,7 @@ var Br = {
|
|
|
2148
2148
|
]
|
|
2149
2149
|
}), ee]
|
|
2150
2150
|
}),
|
|
2151
|
-
mn(
|
|
2151
|
+
mn(kn, { style: { marginBottom: "10px" } }),
|
|
2152
2152
|
hn("div", {
|
|
2153
2153
|
style: {
|
|
2154
2154
|
display: "flex",
|
|
@@ -2210,20 +2210,20 @@ var Br = {
|
|
|
2210
2210
|
})
|
|
2211
2211
|
]
|
|
2212
2212
|
});
|
|
2213
|
-
})), $r = mn(
|
|
2214
|
-
const { selectedColor: o, quickColor: n, icon: r = $r, tooltip: a, label: l, onPreviewColor: i, onPreviewColorImmediate: s, onSelectColor: c, variant: d = jo.Toolbar, propsPanel: p, shouldCloseFloatAll: u = !0, compareRGB: m = !1, darkMode: h = !1, ...g } = e, b = Wt(i ?? ((e) => {}), [i]), f = Wt(s ?? ((e) => {}), [s]), y = Wt(c ?? ((e, t) => {}), [c]), [x,
|
|
2213
|
+
})), $r = mn(kt, { iconKey: "circle.colored" }), Gr = fo(go((e, t) => {
|
|
2214
|
+
const { selectedColor: o, quickColor: n, icon: r = $r, tooltip: a, label: l, onPreviewColor: i, onPreviewColorImmediate: s, onSelectColor: c, variant: d = jo.Toolbar, propsPanel: p, shouldCloseFloatAll: u = !0, compareRGB: m = !1, darkMode: h = !1, ...g } = e, b = Wt(i ?? ((e) => {}), [i]), f = Wt(s ?? ((e) => {}), [s]), y = Wt(c ?? ((e, t) => {}), [c]), [x, v] = Do(() => {}), [k, w] = Do(!1), S = n || (k ? x : void 0) || o || p?.autoColor, C = Fo(!1), T = yo(() => {
|
|
2215
2215
|
w(!1);
|
|
2216
2216
|
}, []), F = Wt(() => {
|
|
2217
|
-
|
|
2217
|
+
v(o), w(!0);
|
|
2218
2218
|
}, [o]), D = Wt((e) => {
|
|
2219
|
-
C.current || (
|
|
2219
|
+
C.current || (v(e), b?.(e));
|
|
2220
2220
|
}, [b]), N = Wt((e) => {
|
|
2221
|
-
C.current || (
|
|
2221
|
+
C.current || (v(e), f?.(e));
|
|
2222
2222
|
}, [f]), I = Wt((e, t) => {
|
|
2223
|
-
C.current || (
|
|
2223
|
+
C.current || (v(void 0), y?.(e, t));
|
|
2224
2224
|
}, [y]), B = Co(() => {
|
|
2225
2225
|
let e = "function" == typeof r ? r() : r;
|
|
2226
|
-
"string" == typeof e && (e = mn(
|
|
2226
|
+
"string" == typeof e && (e = mn(kt, { iconKey: e }));
|
|
2227
2227
|
const t = (e) => e && "none" !== e ? e : void 0, o = t(S?.toCSS(h)) ?? t(p?.autoColor?.toCSS(h)) ?? "transparent";
|
|
2228
2228
|
return mn(bn, {
|
|
2229
2229
|
className: "color-wrapper",
|
|
@@ -2456,7 +2456,7 @@ var jr = (e) => {
|
|
|
2456
2456
|
h += `M ${(e + i * t / 4 + .5) / l - a},${(e + o * t / 4 + .5) / l - a} h ${r} v ${r} h ${-r} Z `;
|
|
2457
2457
|
}
|
|
2458
2458
|
}
|
|
2459
|
-
return hn(
|
|
2459
|
+
return hn(kt, { children: [" ", mn(bn, {
|
|
2460
2460
|
ref: n,
|
|
2461
2461
|
className: "border-icon",
|
|
2462
2462
|
sx: {
|
|
@@ -2533,10 +2533,10 @@ var Qr = Object.freeze({
|
|
|
2533
2533
|
dot: n
|
|
2534
2534
|
};
|
|
2535
2535
|
}, Jr = fo(go((e, o) => {
|
|
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 = Wt(d ?? ((e) => {}), [d]), f = Wt(p ?? ((e) => {}), [p]), y = lo(), x = zt("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 = Wt(d ?? ((e) => {}), [d]), f = Wt(p ?? ((e) => {}), [p]), y = lo(), x = zt("borderOptions"), [v, k] = Do(), [w, S] = Do(), C = m || { bottom: {
|
|
2537
2537
|
style: a,
|
|
2538
2538
|
color: n?.toString() ?? u.Named.Gray
|
|
2539
|
-
} }, T =
|
|
2539
|
+
} }, T = v ?? C?.bottom?.style ?? a, F = w ?? (C?.bottom?.color ? new t(C?.bottom?.color, r) : void 0) ?? n ?? null, D = Wt((e) => mn(Zr, {
|
|
2540
2540
|
border: e,
|
|
2541
2541
|
createBorder: h
|
|
2542
2542
|
}), [h]), N = yo((e, t, o) => {
|
|
@@ -2629,7 +2629,7 @@ var Qr = Object.freeze({
|
|
|
2629
2629
|
},
|
|
2630
2630
|
children: [mn(Gr, {
|
|
2631
2631
|
variant: jo.Toolbar,
|
|
2632
|
-
icon: mn(
|
|
2632
|
+
icon: mn(kt, { iconKey: "stroke.colored" }),
|
|
2633
2633
|
selectedColor: T === i.StrokeStyle.None ? new t("transparent") : F ?? new t("transparent"),
|
|
2634
2634
|
onPreviewColor: (e) => {
|
|
2635
2635
|
S(e);
|
|
@@ -2649,7 +2649,7 @@ var Qr = Object.freeze({
|
|
|
2649
2649
|
shouldCloseFloatAll: !1
|
|
2650
2650
|
}), mn(_r, {
|
|
2651
2651
|
selectedStyle: T,
|
|
2652
|
-
onSelectStyle:
|
|
2652
|
+
onSelectStyle: k,
|
|
2653
2653
|
styleColor: F,
|
|
2654
2654
|
darkMode: s,
|
|
2655
2655
|
variant: jo.Toolbar
|
|
@@ -2697,7 +2697,7 @@ var Qr = Object.freeze({
|
|
|
2697
2697
|
...g
|
|
2698
2698
|
});
|
|
2699
2699
|
})), ea = fo(go((e, t) => {
|
|
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 = Gt([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 = Gt([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 = Wt((e) => {
|
|
2701
2701
|
b?.onBorderSelect && b.onBorderSelect(e), d?.(e), g?.execute(e);
|
|
2702
2702
|
}, [g, d]), T = yo((e) => {
|
|
2703
2703
|
const { disabled: t, children: a, title: l, ...i } = e;
|
|
@@ -2713,7 +2713,7 @@ var Qr = Object.freeze({
|
|
|
2713
2713
|
return mn(Jr, {
|
|
2714
2714
|
ref: t,
|
|
2715
2715
|
autoColor: f,
|
|
2716
|
-
darkMode:
|
|
2716
|
+
darkMode: k,
|
|
2717
2717
|
autoStrokeStyle: y,
|
|
2718
2718
|
createBorder: w,
|
|
2719
2719
|
schemeLookup: S,
|
|
@@ -2732,7 +2732,7 @@ var Qr = Object.freeze({
|
|
|
2732
2732
|
p,
|
|
2733
2733
|
m
|
|
2734
2734
|
]);
|
|
2735
|
-
|
|
2735
|
+
vo(() => {
|
|
2736
2736
|
h(u());
|
|
2737
2737
|
}, [p?.getState()]);
|
|
2738
2738
|
const b = ["formatFontSizeIncrease", "formatFontSizeDecrease"], f = Co(() => b ? hn(bn, {
|
|
@@ -2746,7 +2746,7 @@ var Qr = Object.freeze({
|
|
|
2746
2746
|
}) : null, [b]), y = Jn(), x = Co(() => `${Lt("12.3", {
|
|
2747
2747
|
size: Math.round(y.typography.fontSize),
|
|
2748
2748
|
family: y.typography.fontFamily ?? ""
|
|
2749
|
-
})}px`, [y]),
|
|
2749
|
+
})}px`, [y]), v = l ?? (!p || p.disabled()), k = ao(), w = yo((e) => {
|
|
2750
2750
|
const { onMouseDown: t, onMouseUp: o, ...n } = e;
|
|
2751
2751
|
return mn(Tn, {
|
|
2752
2752
|
component: "div",
|
|
@@ -2758,8 +2758,8 @@ var Qr = Object.freeze({
|
|
|
2758
2758
|
inputProps: {
|
|
2759
2759
|
name: "font-input",
|
|
2760
2760
|
autoComplete: "off",
|
|
2761
|
-
onPointerDown:
|
|
2762
|
-
onDragStart:
|
|
2761
|
+
onPointerDown: k.onPointerDown,
|
|
2762
|
+
onDragStart: k.onDragStart,
|
|
2763
2763
|
tabIndex: 0,
|
|
2764
2764
|
type: "number",
|
|
2765
2765
|
maxLength: 4,
|
|
@@ -2817,9 +2817,9 @@ var Qr = Object.freeze({
|
|
|
2817
2817
|
});
|
|
2818
2818
|
}, [
|
|
2819
2819
|
m,
|
|
2820
|
-
|
|
2820
|
+
v,
|
|
2821
2821
|
p,
|
|
2822
|
-
|
|
2822
|
+
k
|
|
2823
2823
|
]), S = yo((e) => {
|
|
2824
2824
|
const t = (e) => {
|
|
2825
2825
|
p?.execute(e);
|
|
@@ -2877,13 +2877,13 @@ var Qr = Object.freeze({
|
|
|
2877
2877
|
...e,
|
|
2878
2878
|
children: r
|
|
2879
2879
|
});
|
|
2880
|
-
}, [
|
|
2880
|
+
}, [v, p]);
|
|
2881
2881
|
return mn(zo, {
|
|
2882
2882
|
ref: t,
|
|
2883
2883
|
sx: { ...c },
|
|
2884
2884
|
tabIndex: -1,
|
|
2885
2885
|
outlined: !0,
|
|
2886
|
-
disabled:
|
|
2886
|
+
disabled: v,
|
|
2887
2887
|
renderPopupPanel: S,
|
|
2888
2888
|
renderTooltip: ({ children: e, disabled: t }) => mn(Ho, {
|
|
2889
2889
|
label: p?.getLabel(),
|
|
@@ -3095,7 +3095,7 @@ var na = (e, t) => {
|
|
|
3095
3095
|
disabled: t,
|
|
3096
3096
|
children: e
|
|
3097
3097
|
}),
|
|
3098
|
-
icon: mn(
|
|
3098
|
+
icon: mn(kt, { iconKey: "CurrencyDollar" }),
|
|
3099
3099
|
label: s?.getLabel?.(r),
|
|
3100
3100
|
...a
|
|
3101
3101
|
});
|
|
@@ -3294,7 +3294,7 @@ var ua = fo(go((e, t) => {
|
|
|
3294
3294
|
ua.displayName = "NumberFormatCommandButton";
|
|
3295
3295
|
var ma = ({ entry: e }) => {
|
|
3296
3296
|
const t = e.meta[L] ?? "", [o] = Gt([t]), n = t ? o?.getIcon() : void 0;
|
|
3297
|
-
return n ? "string" == typeof n ? mn(
|
|
3297
|
+
return n ? "string" == typeof n ? mn(kt, { iconKey: n }) : n : mn(kt, {});
|
|
3298
3298
|
}, ha = { agent: {
|
|
3299
3299
|
icon: "Agent",
|
|
3300
3300
|
label: (e) => e("undo.author.agent")
|
|
@@ -3315,7 +3315,7 @@ var ma = ({ entry: e }) => {
|
|
|
3315
3315
|
ml: 1,
|
|
3316
3316
|
color: "text.secondary"
|
|
3317
3317
|
},
|
|
3318
|
-
children: mn(
|
|
3318
|
+
children: mn(kt, { iconKey: o.icon })
|
|
3319
3319
|
})
|
|
3320
3320
|
});
|
|
3321
3321
|
}, ba = fo(go((e, t) => {
|
|
@@ -3324,7 +3324,7 @@ var ma = ({ entry: e }) => {
|
|
|
3324
3324
|
const u = Gt(p), m = lo(), h = u[0], g = u[1], b = l ?? h?.getContext?.()?.undoManager;
|
|
3325
3325
|
let f = c;
|
|
3326
3326
|
c || (f = !h || h.disabled(), g && !g.disabled() && (f = !1));
|
|
3327
|
-
const [y, x] = Do(0),
|
|
3327
|
+
const [y, x] = Do(0), v = yo((e) => {
|
|
3328
3328
|
let t = 0 === y ? "Cancel" : `${h?.getLabel()} ${y} Action${1 === y ? "" : "s"}`, o = !1;
|
|
3329
3329
|
b || (o = !0), o || (o = a ? !b.hasRedo() && !b.hasUndo() : !b.hasRedo());
|
|
3330
3330
|
const n = (e) => {
|
|
@@ -3463,7 +3463,7 @@ var ma = ({ entry: e }) => {
|
|
|
3463
3463
|
disabled: f,
|
|
3464
3464
|
label: h?.getLabel(i) ?? (r ? "Redo" : "Undo"),
|
|
3465
3465
|
tooltip: mn(un, { children: mn("span", { children: `${h?.getLabel() ?? "No"} last actions.` }) }),
|
|
3466
|
-
renderPopupPanel:
|
|
3466
|
+
renderPopupPanel: v,
|
|
3467
3467
|
icon: n ?? (r ? "Redo" : "Undo"),
|
|
3468
3468
|
selected: !1,
|
|
3469
3469
|
...d
|
|
@@ -3472,17 +3472,17 @@ var ma = ({ entry: e }) => {
|
|
|
3472
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 ?? {};
|
|
3473
3473
|
if (m.selectedColor) throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");
|
|
3474
3474
|
const [y] = Gt([n ?? ""]), x = y?.getContext();
|
|
3475
|
-
let
|
|
3476
|
-
d && !
|
|
3477
|
-
const
|
|
3478
|
-
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 = Co(() => ({
|
|
3478
|
+
autoColor: k,
|
|
3479
3479
|
schemeLookup: w,
|
|
3480
3480
|
recentColors: S,
|
|
3481
3481
|
darkMode: T,
|
|
3482
3482
|
...Kt("grid", T ? "dark" : "light"),
|
|
3483
3483
|
...f
|
|
3484
3484
|
}), [
|
|
3485
|
-
|
|
3485
|
+
k,
|
|
3486
3486
|
w,
|
|
3487
3487
|
S,
|
|
3488
3488
|
T
|
|
@@ -3507,7 +3507,7 @@ var ma = ({ entry: e }) => {
|
|
|
3507
3507
|
ref: o,
|
|
3508
3508
|
propsPanel: F,
|
|
3509
3509
|
icon: u ?? y?.getIcon(),
|
|
3510
|
-
quickColor:
|
|
3510
|
+
quickColor: v,
|
|
3511
3511
|
selectedColor: y?.getState(),
|
|
3512
3512
|
onSelectColor: D,
|
|
3513
3513
|
variant: i === yt.Menuitem ? jo.Menuitem : jo.Toolbar,
|
|
@@ -3689,7 +3689,7 @@ var ya = fo(go((e, t) => {
|
|
|
3689
3689
|
tooltip: c,
|
|
3690
3690
|
...r
|
|
3691
3691
|
});
|
|
3692
|
-
})),
|
|
3692
|
+
})), va = fo(go((e, t) => {
|
|
3693
3693
|
const { commandKey: o, includePasteAllInPopup: n = !0, ...r } = e;
|
|
3694
3694
|
return mn(Bo, n ? {
|
|
3695
3695
|
ref: t,
|
|
@@ -3708,12 +3708,12 @@ var ya = fo(go((e, t) => {
|
|
|
3708
3708
|
quickCommand: "paste",
|
|
3709
3709
|
...r
|
|
3710
3710
|
});
|
|
3711
|
-
})),
|
|
3711
|
+
})), ka = (e, t) => {
|
|
3712
3712
|
const o = P(e);
|
|
3713
3713
|
return o ? t(o.key, o.params) : e;
|
|
3714
3714
|
}, wa = (e, t) => {
|
|
3715
3715
|
const o = new Intl.Collator(nr.getActive(), { numeric: !0 });
|
|
3716
|
-
return [...e].sort((e, n) => o.compare(
|
|
3716
|
+
return [...e].sort((e, n) => o.compare(ka(e, t), ka(n, t)));
|
|
3717
3717
|
}, Sa = fo((e) => {
|
|
3718
3718
|
const { namedStyle: t, selectedNamed: o, hasContextMenu: n = !0, onSelectNamed: r, createCell: a, disabled: l, ...i } = e, s = lo(), c = yo((e) => {
|
|
3719
3719
|
const o = {
|
|
@@ -3768,7 +3768,7 @@ var ya = fo(go((e, t) => {
|
|
|
3768
3768
|
border: (e) => `solid ${d ? e.palette.primary.dark : "transparent"} 1px`
|
|
3769
3769
|
},
|
|
3770
3770
|
propsTooltip: {
|
|
3771
|
-
label:
|
|
3771
|
+
label: ka(t.getName(), s),
|
|
3772
3772
|
placement: "bottom-start"
|
|
3773
3773
|
},
|
|
3774
3774
|
disabled: l,
|
|
@@ -3778,13 +3778,13 @@ var ya = fo(go((e, t) => {
|
|
|
3778
3778
|
},
|
|
3779
3779
|
...i,
|
|
3780
3780
|
children: mn(ce, {
|
|
3781
|
-
value:
|
|
3781
|
+
value: ka(t.getName(), s),
|
|
3782
3782
|
cellStyle: { named: t.getName() },
|
|
3783
3783
|
createCell: a
|
|
3784
3784
|
})
|
|
3785
3785
|
}, t.getName());
|
|
3786
3786
|
return n && (u = mn(Oo, {
|
|
3787
|
-
label:
|
|
3787
|
+
label: ka(t.getName(), s),
|
|
3788
3788
|
renderPopupPanel: c,
|
|
3789
3789
|
children: u
|
|
3790
3790
|
})), u;
|
|
@@ -3865,7 +3865,7 @@ var ya = fo(go((e, t) => {
|
|
|
3865
3865
|
p.BuiltInName.Total
|
|
3866
3866
|
], c)));
|
|
3867
3867
|
let x = [];
|
|
3868
|
-
var
|
|
3868
|
+
var v, k;
|
|
3869
3869
|
return x.push(g("Accent 1", [
|
|
3870
3870
|
p.BuiltInName.Accent1_20,
|
|
3871
3871
|
p.BuiltInName.Accent1_40,
|
|
@@ -3896,9 +3896,9 @@ var ya = fo(go((e, t) => {
|
|
|
3896
3896
|
p.BuiltInName.Accent6_40,
|
|
3897
3897
|
p.BuiltInName.Accent6_60,
|
|
3898
3898
|
p.BuiltInName.Accent6
|
|
3899
|
-
])), b.push((
|
|
3899
|
+
])), b.push((v = c("cellStyle.category.themed"), k = x, hn(bn, { children: [
|
|
3900
3900
|
mn(Ao, { orientation: "horizontal" }),
|
|
3901
|
-
mn(Eo, { children:
|
|
3901
|
+
mn(Eo, { children: v }, v + "-header"),
|
|
3902
3902
|
mn(bn, {
|
|
3903
3903
|
sx: {
|
|
3904
3904
|
display: "flex",
|
|
@@ -3907,9 +3907,9 @@ var ya = fo(go((e, t) => {
|
|
|
3907
3907
|
alignItems: "start",
|
|
3908
3908
|
flexDirection: "row"
|
|
3909
3909
|
},
|
|
3910
|
-
children:
|
|
3911
|
-
},
|
|
3912
|
-
] },
|
|
3910
|
+
children: k
|
|
3911
|
+
}, v + "-presets")
|
|
3912
|
+
] }, v))), b.push(d(c("cellStyle.category.numberFormat"), [
|
|
3913
3913
|
p.BuiltInName.Comma,
|
|
3914
3914
|
p.BuiltInName.Comma0,
|
|
3915
3915
|
p.BuiltInName.Currency,
|
|
@@ -3953,17 +3953,17 @@ var ya = fo(go((e, t) => {
|
|
|
3953
3953
|
h,
|
|
3954
3954
|
m?.().getTheme(),
|
|
3955
3955
|
c
|
|
3956
|
-
]),
|
|
3956
|
+
]), v = Wt((e) => {
|
|
3957
3957
|
if (!u) return null;
|
|
3958
|
-
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 };
|
|
3959
3959
|
return o.getStyle().getFont().getSize() <= t ? o.createCell({ style: { alignment: n } }) : o.createCell({ style: {
|
|
3960
3960
|
alignment: n,
|
|
3961
3961
|
font: { size: t }
|
|
3962
3962
|
} });
|
|
3963
3963
|
}, [u?.createCell]), w = a ?? (!d || d.disabled()), S = Co(() => l ? mn(ce, {
|
|
3964
|
-
value: h ?
|
|
3964
|
+
value: h ? ka(h.getName(), c) : "",
|
|
3965
3965
|
cellStyle: h ? { named: h.getName() } : {},
|
|
3966
|
-
createCell:
|
|
3966
|
+
createCell: v,
|
|
3967
3967
|
className: "outline-hover",
|
|
3968
3968
|
disabled: w,
|
|
3969
3969
|
style: {
|
|
@@ -3979,7 +3979,7 @@ var ya = fo(go((e, t) => {
|
|
|
3979
3979
|
height: "calc(100% - 2px)",
|
|
3980
3980
|
width: "calc(100% - 1px)"
|
|
3981
3981
|
} }
|
|
3982
|
-
}) : d?.getIcon() ?? mn(
|
|
3982
|
+
}) : d?.getIcon() ?? mn(kt, {}), [
|
|
3983
3983
|
h,
|
|
3984
3984
|
w,
|
|
3985
3985
|
d,
|
|
@@ -4005,7 +4005,7 @@ var ya = fo(go((e, t) => {
|
|
|
4005
4005
|
});
|
|
4006
4006
|
})), Ta = "_sheetxl-reset_11z3j_1", Fa = 10, Da = fo(go((e, t) => {
|
|
4007
4007
|
const { styles: o, table: n, tableStyle: r = n?.getStyle() ?? o.getTableStyles().getDefault(), sx: a, disabled: l, className: i, forceThinBorder: s, cellHeight: c = Fa, isLive: d = !1, ...p } = e, u = et(), m = "dark" === u, h = Math.ceil(1.3 * c), [g, b] = To((e) => e + 1, 0);
|
|
4008
|
-
|
|
4008
|
+
vo(() => {
|
|
4009
4009
|
if (d && n) return n.addListeners({ onAnyChange: () => {
|
|
4010
4010
|
b();
|
|
4011
4011
|
} });
|
|
@@ -4087,7 +4087,7 @@ var ya = fo(go((e, t) => {
|
|
|
4087
4087
|
r,
|
|
4088
4088
|
m,
|
|
4089
4089
|
f.isHiddenButtons()
|
|
4090
|
-
]),
|
|
4090
|
+
]), v = yo((e, t) => y[t].getBorders() ?? null, [y]);
|
|
4091
4091
|
return mn(bn, {
|
|
4092
4092
|
ref: t,
|
|
4093
4093
|
className: "table-format-preview",
|
|
@@ -4101,7 +4101,7 @@ var ya = fo(go((e, t) => {
|
|
|
4101
4101
|
},
|
|
4102
4102
|
...p,
|
|
4103
4103
|
children: mn(se, {
|
|
4104
|
-
getBorderAt:
|
|
4104
|
+
getBorderAt: v,
|
|
4105
4105
|
rowCount: 5,
|
|
4106
4106
|
columnCount: 5,
|
|
4107
4107
|
forceThinBorder: s,
|
|
@@ -4218,7 +4218,7 @@ var ya = fo(go((e, t) => {
|
|
|
4218
4218
|
})), La = (e) => {
|
|
4219
4219
|
0 === e.button && e.preventDefault();
|
|
4220
4220
|
}, Ka = fo(go((e, t) => {
|
|
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:
|
|
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 = lo(), T = ao(), F = g ?? C("namedInput.label"), D = mr(), N = i && D ? D.register(i, s) : null, I = tt({
|
|
4222
4222
|
value: l ?? "",
|
|
4223
4223
|
onChange: c,
|
|
4224
4224
|
onChangeText: d,
|
|
@@ -4233,7 +4233,7 @@ var ya = fo(go((e, t) => {
|
|
|
4233
4233
|
const P = Fo(y);
|
|
4234
4234
|
P.current = y;
|
|
4235
4235
|
const R = Fo(null);
|
|
4236
|
-
|
|
4236
|
+
vo(() => {
|
|
4237
4237
|
if (I.error === R.current) return;
|
|
4238
4238
|
if (R.current = I.error, P.current?.(I.error), !i) return;
|
|
4239
4239
|
const e = B.current;
|
|
@@ -4259,7 +4259,7 @@ var ya = fo(go((e, t) => {
|
|
|
4259
4259
|
outlined: !1,
|
|
4260
4260
|
color: "primary",
|
|
4261
4261
|
"aria-label": "commit-input",
|
|
4262
|
-
icon: mn(
|
|
4262
|
+
icon: mn(kt, { iconKey: "CheckSuccess" }),
|
|
4263
4263
|
propsTooltip: {
|
|
4264
4264
|
label: C("referenceInput.commit"),
|
|
4265
4265
|
simple: !0
|
|
@@ -4275,7 +4275,7 @@ var ya = fo(go((e, t) => {
|
|
|
4275
4275
|
outlined: !1,
|
|
4276
4276
|
color: "warning",
|
|
4277
4277
|
"aria-label": "cancel-input",
|
|
4278
|
-
icon: mn(
|
|
4278
|
+
icon: mn(kt, { iconKey: "CloseError" }),
|
|
4279
4279
|
propsTooltip: {
|
|
4280
4280
|
label: C("referenceInput.cancel"),
|
|
4281
4281
|
simple: !0
|
|
@@ -4320,8 +4320,8 @@ var ya = fo(go((e, t) => {
|
|
|
4320
4320
|
autoComplete: "off",
|
|
4321
4321
|
onPointerDown: T.onPointerDown,
|
|
4322
4322
|
onDragStart: T.onDragStart,
|
|
4323
|
-
...
|
|
4324
|
-
className: cr("autoFocus",
|
|
4323
|
+
...v,
|
|
4324
|
+
className: cr("autoFocus", v?.className),
|
|
4325
4325
|
name: i,
|
|
4326
4326
|
readOnly: o,
|
|
4327
4327
|
sx: {
|
|
@@ -4338,7 +4338,7 @@ var ya = fo(go((e, t) => {
|
|
|
4338
4338
|
I.inputProps.onChange(e), N?.onChange(e);
|
|
4339
4339
|
},
|
|
4340
4340
|
onKeyDown: (e) => {
|
|
4341
|
-
I.inputProps.onKeyDown(e), e.defaultPrevented ||
|
|
4341
|
+
I.inputProps.onKeyDown(e), e.defaultPrevented || k?.(e);
|
|
4342
4342
|
},
|
|
4343
4343
|
onFocus: (e) => {
|
|
4344
4344
|
I.inputProps.onFocus(e), w?.(e);
|
|
@@ -4356,7 +4356,7 @@ Ka.displayName = "InputField";
|
|
|
4356
4356
|
var Ea = (e) => {
|
|
4357
4357
|
0 === e.button && e.preventDefault();
|
|
4358
4358
|
}, Wa = "20px", za = "4px", Va = `calc(${Wa} + ${za})`, Ha = fo(go((e, t) => {
|
|
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:
|
|
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 = lo(), K = "above" === T, E = ko(), 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"), $ = mr(), G = n && $ ? $.register(n, r) : null, U = Xe({
|
|
4360
4360
|
value: d,
|
|
4361
4361
|
onChange: p,
|
|
4362
4362
|
onChangeText: u,
|
|
@@ -4366,8 +4366,8 @@ var Ea = (e) => {
|
|
|
4366
4366
|
home: f,
|
|
4367
4367
|
equals: y,
|
|
4368
4368
|
pickAs: x,
|
|
4369
|
-
pickSpills:
|
|
4370
|
-
allowMulti:
|
|
4369
|
+
pickSpills: v,
|
|
4370
|
+
allowMulti: k,
|
|
4371
4371
|
allowCrossSheet: w,
|
|
4372
4372
|
required: S,
|
|
4373
4373
|
disabled: a
|
|
@@ -4385,9 +4385,9 @@ var Ea = (e) => {
|
|
|
4385
4385
|
const Y = Fo(I);
|
|
4386
4386
|
Y.current = I;
|
|
4387
4387
|
const X = Fo(null), J = j ? U.error : null, ee = Fo(null);
|
|
4388
|
-
|
|
4388
|
+
vo(() => {
|
|
4389
4389
|
J !== ee.current && (ee.current = J, Y.current?.(J));
|
|
4390
|
-
}, [J]),
|
|
4390
|
+
}, [J]), vo(() => {
|
|
4391
4391
|
if (U.error === X.current) return;
|
|
4392
4392
|
if (X.current = U.error, !n) return;
|
|
4393
4393
|
const e = Q.current;
|
|
@@ -4400,7 +4400,7 @@ var Ea = (e) => {
|
|
|
4400
4400
|
outlined: !1,
|
|
4401
4401
|
color: "primary",
|
|
4402
4402
|
"aria-label": "commit-reference",
|
|
4403
|
-
icon: mn(
|
|
4403
|
+
icon: mn(kt, { iconKey: "CheckSuccess" }),
|
|
4404
4404
|
propsTooltip: {
|
|
4405
4405
|
label: L("referenceInput.commit"),
|
|
4406
4406
|
simple: !0
|
|
@@ -4416,7 +4416,7 @@ var Ea = (e) => {
|
|
|
4416
4416
|
outlined: !1,
|
|
4417
4417
|
color: "warning",
|
|
4418
4418
|
"aria-label": "cancel-reference",
|
|
4419
|
-
icon: mn(
|
|
4419
|
+
icon: mn(kt, { iconKey: "CloseError" }),
|
|
4420
4420
|
propsTooltip: {
|
|
4421
4421
|
label: L("referenceInput.cancel"),
|
|
4422
4422
|
simple: !0
|
|
@@ -4432,7 +4432,7 @@ var Ea = (e) => {
|
|
|
4432
4432
|
disabled: a || !U.canSelectCurrent,
|
|
4433
4433
|
sx: { "&.Mui-disabled": { opacity: .35 } },
|
|
4434
4434
|
"aria-label": "select-current-range",
|
|
4435
|
-
icon: mn(
|
|
4435
|
+
icon: mn(kt, { iconKey: "SelectRangeMode" }),
|
|
4436
4436
|
propsTooltip: {
|
|
4437
4437
|
label: L("referenceInput.selectCurrent"),
|
|
4438
4438
|
simple: !0
|
|
@@ -4564,7 +4564,7 @@ var Ea = (e) => {
|
|
|
4564
4564
|
});
|
|
4565
4565
|
}));
|
|
4566
4566
|
Ha.displayName = "FormulaField";
|
|
4567
|
-
var $a = sn(lr("studio:tableDetailsTaskPane", () => import("./
|
|
4567
|
+
var $a = sn(lr("studio:tableDetailsTaskPane", () => import("./Bj2HxLO7JvQJrhMU.mjs"), { select: (e) => ({ default: e.TableDetailsTaskPane }) }).load), Ga = () => V.registerTaskPane({
|
|
4568
4568
|
key: pe.TableDetails,
|
|
4569
4569
|
component: $a
|
|
4570
4570
|
}, !0), Ua = fo((e) => {
|
|
@@ -4676,15 +4676,15 @@ var $a = sn(lr("studio:tableDetailsTaskPane", () => import("./Bz_1k_dxr4BRsQv3.m
|
|
|
4676
4676
|
totalsRowCount: 0,
|
|
4677
4677
|
style: e
|
|
4678
4678
|
}
|
|
4679
|
-
}))(g?.getStyleOptions(), h), [h?.getTableStyles().getDefault(), g?.getStyleOptions()]), y = g ?? f, [x,
|
|
4680
|
-
|
|
4681
|
-
|
|
4679
|
+
}))(g?.getStyleOptions(), h), [h?.getTableStyles().getDefault(), g?.getStyleOptions()]), y = g ?? f, [x, v] = Do(y);
|
|
4680
|
+
vo(() => {
|
|
4681
|
+
v(y);
|
|
4682
4682
|
}, [y]);
|
|
4683
|
-
const
|
|
4683
|
+
const k = Wt((e) => {
|
|
4684
4684
|
r?.(e), p?.execute({ name: e });
|
|
4685
4685
|
}, [p, r]), w = Fo(null), S = yo((e) => {
|
|
4686
4686
|
const t = {
|
|
4687
|
-
onSelectTableStyleName:
|
|
4687
|
+
onSelectTableStyleName: k,
|
|
4688
4688
|
styles: h
|
|
4689
4689
|
};
|
|
4690
4690
|
w.current || (w.current = document.createElement("canvas"));
|
|
@@ -5179,7 +5179,7 @@ var Ja = [
|
|
|
5179
5179
|
})
|
|
5180
5180
|
});
|
|
5181
5181
|
})), ol = fo(go((e, t) => {
|
|
5182
|
-
const { themes: o, selectedTheme: n, onSelectTheme: r, icon: a, tooltip: l, label: i, variant: s = jo.Toolbar, darkMode: c, propsPanel: d, ...p } = e, u = a || mn(
|
|
5182
|
+
const { themes: o, selectedTheme: n, onSelectTheme: r, icon: a, tooltip: l, label: i, variant: s = jo.Toolbar, darkMode: c, propsPanel: d, ...p } = e, u = a || mn(kt, { iconKey: "Theme2" }), m = {
|
|
5183
5183
|
renderPopupPanel: yo((e) => {
|
|
5184
5184
|
const { closeFloatAll: t } = e;
|
|
5185
5185
|
return mn(tl, {
|
|
@@ -5341,7 +5341,7 @@ var Ja = [
|
|
|
5341
5341
|
});
|
|
5342
5342
|
})), ul = fo(go((e, t) => {
|
|
5343
5343
|
const { groupKey: o = "workbook", disabled: n, ...r } = e, [a, l] = Do([]), i = xe.canWrite(), s = xe.canRead();
|
|
5344
|
-
|
|
5344
|
+
vo(() => {
|
|
5345
5345
|
let e = !0;
|
|
5346
5346
|
return xe.getWriteFormats().then((t) => {
|
|
5347
5347
|
e && l(t);
|
|
@@ -5527,7 +5527,7 @@ var ml = fo(go((e, t) => {
|
|
|
5527
5527
|
});
|
|
5528
5528
|
})), hl = fo((e) => {
|
|
5529
5529
|
const { label: t, value: o, min: n, step: r, disabled: a, onCommit: l } = e, i = jt(), [s, c] = Do(String(o));
|
|
5530
|
-
|
|
5530
|
+
vo(() => {
|
|
5531
5531
|
c(String(o));
|
|
5532
5532
|
}, [o]);
|
|
5533
5533
|
const d = () => {
|
|
@@ -5558,7 +5558,7 @@ var ml = fo(go((e, t) => {
|
|
|
5558
5558
|
hl.displayName = "LimitField";
|
|
5559
5559
|
var gl = fo((e) => {
|
|
5560
5560
|
const { calculation: t, disabled: o } = e, n = lo(), [r] = Gt(["calcIterativeToggle"]), [a, l] = Do(() => t?.getIterativeCalculation() ?? null);
|
|
5561
|
-
|
|
5561
|
+
vo(() => {
|
|
5562
5562
|
l(t?.getIterativeCalculation() ?? null);
|
|
5563
5563
|
}, [t]), rt(t, { onOptionsChange: () => {
|
|
5564
5564
|
l(t?.getIterativeCalculation() ?? null);
|
|
@@ -5574,7 +5574,7 @@ var gl = fo((e) => {
|
|
|
5574
5574
|
pb: 1
|
|
5575
5575
|
},
|
|
5576
5576
|
children: [
|
|
5577
|
-
mn(Mn, { children: mn(
|
|
5577
|
+
mn(Mn, { children: mn(kt, {}) }),
|
|
5578
5578
|
mn(hl, {
|
|
5579
5579
|
label: n("calcOptions.maxIterations"),
|
|
5580
5580
|
value: a?.maxIteration ?? 100,
|
|
@@ -5655,13 +5655,13 @@ var bl = fo(go((e, t) => {
|
|
|
5655
5655
|
bl.displayName = "CalculationOptionsCommandButton";
|
|
5656
5656
|
var fl = fo(go((e, t) => {
|
|
5657
5657
|
const { commandKey: o, ...n } = e, r = qt(), [a, l] = Do(!1), [i, s] = Do("primary");
|
|
5658
|
-
return
|
|
5658
|
+
return vo(() => {
|
|
5659
5659
|
const e = r.getMode();
|
|
5660
5660
|
l("copy" === e?.key || "cut" === e?.key), s("cut" === e?.key ? "warning" : "primary");
|
|
5661
5661
|
}, [r]), mn(Io, {
|
|
5662
5662
|
ref: t,
|
|
5663
5663
|
commandKey: o,
|
|
5664
|
-
icon: mn(
|
|
5664
|
+
icon: mn(kt, {
|
|
5665
5665
|
iconKey: "copy.walking",
|
|
5666
5666
|
propsSource: {
|
|
5667
5667
|
isWalking: a,
|
|
@@ -5695,7 +5695,7 @@ var fl = fo(go((e, t) => {
|
|
|
5695
5695
|
...Kt("grid", t)
|
|
5696
5696
|
}
|
|
5697
5697
|
};
|
|
5698
|
-
},
|
|
5698
|
+
}, vl = "var(--sxl-color-base-100, rgb(255, 255, 255))", kl = "var(--sxl-color-base-300, rgb(224, 224, 224))", wl = "var(--sxl-color-primary, rgb(33, 115, 70))", Sl = "var(--sxl-color-base-content, rgba(0, 0, 0, 0.87))", Cl = "var(--sxl-color-error, rgb(211, 47, 47))", Tl = (e) => Math.round(e).toString(16).padStart(2, "0"), Fl = (e, o, n) => new t(`#${Tl(e)}${Tl(o)}${Tl(n)}`).toCSS("adaptive"), Dl = (e, t, o, n) => {
|
|
5699
5699
|
if (0 === e.length) return o;
|
|
5700
5700
|
const r = (t) => yl(e[t].color, n)?.toRGBA() ?? null;
|
|
5701
5701
|
if (1 === e.length) {
|
|
@@ -5739,7 +5739,7 @@ var fl = fo(go((e, t) => {
|
|
|
5739
5739
|
const { rows: t, ...o } = e, n = et(), r = (e, o) => ({
|
|
5740
5740
|
borderRight: o < 2 ? 1 : 0,
|
|
5741
5741
|
borderBottom: e < t.length - 1 ? 1 : 0,
|
|
5742
|
-
borderColor:
|
|
5742
|
+
borderColor: kl,
|
|
5743
5743
|
minWidth: 0,
|
|
5744
5744
|
overflow: "hidden",
|
|
5745
5745
|
display: "flex",
|
|
@@ -5751,7 +5751,7 @@ var fl = fo(go((e, t) => {
|
|
|
5751
5751
|
"data-sxl-theme-mode": n,
|
|
5752
5752
|
sx: {
|
|
5753
5753
|
display: "grid",
|
|
5754
|
-
backgroundColor:
|
|
5754
|
+
backgroundColor: vl,
|
|
5755
5755
|
gridTemplateColumns: "10% 80% 10%",
|
|
5756
5756
|
gridTemplateRows: `repeat(${t.length}, minmax(0, 1fr))`,
|
|
5757
5757
|
width: "100%",
|
|
@@ -5787,9 +5787,9 @@ var Rl = fo((e) => {
|
|
|
5787
5787
|
alignItems: "center",
|
|
5788
5788
|
justifyContent: "center",
|
|
5789
5789
|
overflow: "hidden",
|
|
5790
|
-
background: o ?
|
|
5790
|
+
background: o ? vl : "none",
|
|
5791
5791
|
color: o ? Sl : void 0,
|
|
5792
|
-
border: (e) => `1px solid ${o ?
|
|
5792
|
+
border: (e) => `1px solid ${o ? kl : e.palette.divider}`,
|
|
5793
5793
|
borderRadius: 1,
|
|
5794
5794
|
fontSize: "12px",
|
|
5795
5795
|
lineHeight: 1,
|
|
@@ -5895,7 +5895,7 @@ var Ml = {
|
|
|
5895
5895
|
dataBar: Wl,
|
|
5896
5896
|
colorScale: zl,
|
|
5897
5897
|
iconSet: Vl
|
|
5898
|
-
}, $l = (e, t) => e.type === h.ScaleType.DataBar ? Bl(e, yl(e.color, t)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") : e.type === h.ScaleType.ColorScale ? Nl(e.stops ?? [],
|
|
5898
|
+
}, $l = (e, t) => e.type === h.ScaleType.DataBar ? Bl(e, yl(e.color, t)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") : e.type === h.ScaleType.ColorScale ? Nl(e.stops ?? [], vl, t) : [], Gl = (e, t) => e.type === h.ScaleType.IconSet ? mn(q, {
|
|
5899
5899
|
icons: Ae(e.iconSet),
|
|
5900
5900
|
order: "descending",
|
|
5901
5901
|
size: 14,
|
|
@@ -5976,23 +5976,23 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
5976
5976
|
groupKey: o,
|
|
5977
5977
|
propsPanel: { disableAlpha: !0 }
|
|
5978
5978
|
}), Zl = () => {
|
|
5979
|
-
|
|
5979
|
+
vt.register({
|
|
5980
5980
|
key: "insertImageInCellOptions",
|
|
5981
5981
|
members: ["insertImageInCellFromFile", "insertImageInCellFromURL"]
|
|
5982
|
-
}, !0),
|
|
5982
|
+
}, !0), vt.register({
|
|
5983
5983
|
key: "insertImageOverCellsOptions",
|
|
5984
5984
|
members: ["insertImageFromFile", "insertImageFromURL"]
|
|
5985
|
-
}, !0),
|
|
5985
|
+
}, !0), vt.register({
|
|
5986
5986
|
key: "insertImageOptions",
|
|
5987
5987
|
members: ["insertImageInCellOptions", "insertImageOverCellsOptions"]
|
|
5988
|
-
}, !0),
|
|
5988
|
+
}, !0), vt.register({
|
|
5989
5989
|
key: "insertSparklineOptions",
|
|
5990
5990
|
members: [
|
|
5991
5991
|
"insertSparklineLine",
|
|
5992
5992
|
"insertSparklineColumn",
|
|
5993
5993
|
"insertSparklineWinLoss"
|
|
5994
5994
|
]
|
|
5995
|
-
}, !0),
|
|
5995
|
+
}, !0), vt.register({
|
|
5996
5996
|
key: "commentOptions",
|
|
5997
5997
|
defaultKey: "updateComments",
|
|
5998
5998
|
members: [
|
|
@@ -6004,7 +6004,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6004
6004
|
"-",
|
|
6005
6005
|
"deleteComments"
|
|
6006
6006
|
]
|
|
6007
|
-
}, !0),
|
|
6007
|
+
}, !0), vt.register({
|
|
6008
6008
|
key: "sheetBackgroundOptions",
|
|
6009
6009
|
defaultKey: "sheetBackgroundToggle",
|
|
6010
6010
|
showLabel: !0,
|
|
@@ -6014,7 +6014,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6014
6014
|
"-",
|
|
6015
6015
|
"sheetBackgroundDelete"
|
|
6016
6016
|
]
|
|
6017
|
-
}, !0),
|
|
6017
|
+
}, !0), vt.register({
|
|
6018
6018
|
key: "mergeOptions",
|
|
6019
6019
|
defaultKey: "mergeToggle",
|
|
6020
6020
|
members: [
|
|
@@ -6024,7 +6024,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6024
6024
|
"-",
|
|
6025
6025
|
"unmerge"
|
|
6026
6026
|
]
|
|
6027
|
-
}, !0),
|
|
6027
|
+
}, !0), vt.register({
|
|
6028
6028
|
key: "underlineOptions",
|
|
6029
6029
|
render: (e, t) => mn(Yo, {
|
|
6030
6030
|
...e,
|
|
@@ -6037,7 +6037,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6037
6037
|
"formatUnderlinedAccountingToggle",
|
|
6038
6038
|
"formatUnderlinedAccountingDoubleToggle"
|
|
6039
6039
|
]
|
|
6040
|
-
}, !0),
|
|
6040
|
+
}, !0), vt.register({
|
|
6041
6041
|
key: "textOverflowOptions",
|
|
6042
6042
|
render: (e, t) => mn(Yo, {
|
|
6043
6043
|
...e,
|
|
@@ -6052,7 +6052,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6052
6052
|
"-",
|
|
6053
6053
|
"formatTextOverflowShrinkToggle"
|
|
6054
6054
|
]
|
|
6055
|
-
}, !0),
|
|
6055
|
+
}, !0), vt.register({
|
|
6056
6056
|
key: "sortOptions",
|
|
6057
6057
|
defaultKey: "sortAscending",
|
|
6058
6058
|
showLabel: !0,
|
|
@@ -6061,7 +6061,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6061
6061
|
"sortDescending",
|
|
6062
6062
|
"sortCustom"
|
|
6063
6063
|
]
|
|
6064
|
-
}, !0),
|
|
6064
|
+
}, !0), vt.register({
|
|
6065
6065
|
key: "filterOptions",
|
|
6066
6066
|
defaultKey: "tableFilterToggle",
|
|
6067
6067
|
showLabel: !0,
|
|
@@ -6070,7 +6070,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6070
6070
|
"tableFilterClear",
|
|
6071
6071
|
"tableFilterRefresh"
|
|
6072
6072
|
]
|
|
6073
|
-
}, !0),
|
|
6073
|
+
}, !0), vt.register({
|
|
6074
6074
|
key: "dataTextToColumnsOptions",
|
|
6075
6075
|
defaultKey: "dataTextToColumns",
|
|
6076
6076
|
showLabel: !0,
|
|
@@ -6109,7 +6109,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6109
6109
|
})
|
|
6110
6110
|
}
|
|
6111
6111
|
]
|
|
6112
|
-
}, !0),
|
|
6112
|
+
}, !0), vt.register({
|
|
6113
6113
|
key: "fillOptions",
|
|
6114
6114
|
members: [
|
|
6115
6115
|
"fillDown",
|
|
@@ -6119,7 +6119,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6119
6119
|
"-",
|
|
6120
6120
|
"fillSeries"
|
|
6121
6121
|
]
|
|
6122
|
-
}, !0),
|
|
6122
|
+
}, !0), vt.register({
|
|
6123
6123
|
key: "clearOptions",
|
|
6124
6124
|
members: [
|
|
6125
6125
|
"clearAll",
|
|
@@ -6131,7 +6131,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6131
6131
|
"-",
|
|
6132
6132
|
"clearHyperlinks"
|
|
6133
6133
|
]
|
|
6134
|
-
}, !0),
|
|
6134
|
+
}, !0), vt.register({
|
|
6135
6135
|
key: "conditionalFormatHighlightOptions",
|
|
6136
6136
|
members: [
|
|
6137
6137
|
"conditionalFormatGreaterThan",
|
|
@@ -6143,7 +6143,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6143
6143
|
"conditionalFormatDateOccurring",
|
|
6144
6144
|
"conditionalFormatDuplicateValues"
|
|
6145
6145
|
]
|
|
6146
|
-
}, !0),
|
|
6146
|
+
}, !0), vt.register({
|
|
6147
6147
|
key: "conditionalFormatTopBottomOptions",
|
|
6148
6148
|
members: [
|
|
6149
6149
|
"conditionalFormatTopItems",
|
|
@@ -6154,13 +6154,13 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6154
6154
|
"conditionalFormatAboveAverage",
|
|
6155
6155
|
"conditionalFormatBelowAverage"
|
|
6156
6156
|
]
|
|
6157
|
-
}, !0),
|
|
6157
|
+
}, !0), vt.register({
|
|
6158
6158
|
key: "conditionalFormatClearOptions",
|
|
6159
6159
|
members: ["conditionalFormatClearSelection", "conditionalFormatClearSheet"]
|
|
6160
|
-
}, !0),
|
|
6160
|
+
}, !0), vt.register({
|
|
6161
6161
|
key: "dataValidationClearOptions",
|
|
6162
6162
|
members: ["dataValidationClearSelection", "dataValidationClearSheet"]
|
|
6163
|
-
}, !0),
|
|
6163
|
+
}, !0), vt.register({
|
|
6164
6164
|
key: "dataValidationOptions",
|
|
6165
6165
|
members: [
|
|
6166
6166
|
"dataValidationList",
|
|
@@ -6172,7 +6172,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6172
6172
|
"dataValidationClearOptions",
|
|
6173
6173
|
"manageDataValidation"
|
|
6174
6174
|
]
|
|
6175
|
-
}, !0),
|
|
6175
|
+
}, !0), vt.register({
|
|
6176
6176
|
key: "conditionalFormatOptions",
|
|
6177
6177
|
members: [
|
|
6178
6178
|
"conditionalFormatHighlightOptions",
|
|
@@ -6186,7 +6186,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6186
6186
|
"conditionalFormatClearOptions",
|
|
6187
6187
|
"manageConditionalFormat"
|
|
6188
6188
|
]
|
|
6189
|
-
}, !0),
|
|
6189
|
+
}, !0), vt.register({
|
|
6190
6190
|
key: "pasteOptions",
|
|
6191
6191
|
defaultKey: "paste",
|
|
6192
6192
|
members: [
|
|
@@ -6198,13 +6198,13 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6198
6198
|
"pasteTranspose",
|
|
6199
6199
|
"pasteLinks"
|
|
6200
6200
|
]
|
|
6201
|
-
}, !0),
|
|
6201
|
+
}, !0), vt.register({
|
|
6202
6202
|
key: "copy",
|
|
6203
6203
|
render: (e) => mn(fl, {
|
|
6204
6204
|
...e,
|
|
6205
6205
|
commandKey: "copy"
|
|
6206
6206
|
})
|
|
6207
|
-
}, !0),
|
|
6207
|
+
}, !0), vt.register({
|
|
6208
6208
|
key: "sortFilterOptions",
|
|
6209
6209
|
defaultKey: "tableFilterToggle",
|
|
6210
6210
|
members: [
|
|
@@ -6216,7 +6216,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6216
6216
|
"tableFilterClear",
|
|
6217
6217
|
"tableFilterRefresh"
|
|
6218
6218
|
]
|
|
6219
|
-
}, !0),
|
|
6219
|
+
}, !0), vt.register({
|
|
6220
6220
|
key: "findOptions",
|
|
6221
6221
|
defaultKey: "find",
|
|
6222
6222
|
members: [
|
|
@@ -6224,7 +6224,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6224
6224
|
"findReplace",
|
|
6225
6225
|
"goto"
|
|
6226
6226
|
]
|
|
6227
|
-
}, !0),
|
|
6227
|
+
}, !0), vt.register({
|
|
6228
6228
|
key: "insertFunctionSumOptions",
|
|
6229
6229
|
defaultKey: "insertFunctionSum",
|
|
6230
6230
|
members: [
|
|
@@ -6244,11 +6244,11 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6244
6244
|
"insertRows",
|
|
6245
6245
|
"insertColumns"
|
|
6246
6246
|
];
|
|
6247
|
-
|
|
6247
|
+
vt.register({
|
|
6248
6248
|
key: "insertCellsOptions",
|
|
6249
6249
|
defaultKey: "insertCells",
|
|
6250
6250
|
members: e
|
|
6251
|
-
}, !0),
|
|
6251
|
+
}, !0), vt.register({
|
|
6252
6252
|
key: "insertSheetOptions",
|
|
6253
6253
|
defaultKey: "insertCells",
|
|
6254
6254
|
members: [
|
|
@@ -6264,11 +6264,11 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6264
6264
|
"deleteRows",
|
|
6265
6265
|
"deleteColumns"
|
|
6266
6266
|
];
|
|
6267
|
-
|
|
6267
|
+
vt.register({
|
|
6268
6268
|
key: "deleteCellsOptions",
|
|
6269
6269
|
defaultKey: "deleteCells",
|
|
6270
6270
|
members: t
|
|
6271
|
-
}, !0),
|
|
6271
|
+
}, !0), vt.register({
|
|
6272
6272
|
key: "deleteSheetOptions",
|
|
6273
6273
|
defaultKey: "deleteCells",
|
|
6274
6274
|
members: [
|
|
@@ -6276,7 +6276,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6276
6276
|
"-",
|
|
6277
6277
|
"deleteSheet"
|
|
6278
6278
|
]
|
|
6279
|
-
}, !0),
|
|
6279
|
+
}, !0), vt.register({
|
|
6280
6280
|
key: "groupOptions",
|
|
6281
6281
|
defaultKey: "group",
|
|
6282
6282
|
members: [
|
|
@@ -6286,7 +6286,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6286
6286
|
"autoOutline",
|
|
6287
6287
|
"outlineSettings"
|
|
6288
6288
|
]
|
|
6289
|
-
}, !0),
|
|
6289
|
+
}, !0), vt.register({
|
|
6290
6290
|
key: "ungroupOptions",
|
|
6291
6291
|
defaultKey: "ungroup",
|
|
6292
6292
|
members: [
|
|
@@ -6295,10 +6295,10 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6295
6295
|
"-",
|
|
6296
6296
|
"clearOutline"
|
|
6297
6297
|
]
|
|
6298
|
-
}, !0),
|
|
6298
|
+
}, !0), vt.register({
|
|
6299
6299
|
key: "textEffectsOptions",
|
|
6300
6300
|
render: (e) => mn(xa, { ...e })
|
|
6301
|
-
}, !0),
|
|
6301
|
+
}, !0), vt.register({
|
|
6302
6302
|
key: "horizontalAlignOptions",
|
|
6303
6303
|
render: (e, t) => mn(Yo, {
|
|
6304
6304
|
...e,
|
|
@@ -6332,7 +6332,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6332
6332
|
"formatAlignFillToggle",
|
|
6333
6333
|
"formatAlignDistributedHorizontalToggle"
|
|
6334
6334
|
]
|
|
6335
|
-
}, !0),
|
|
6335
|
+
}, !0), vt.register({
|
|
6336
6336
|
key: "verticalAlignOptions",
|
|
6337
6337
|
render: (e, t) => mn(Yo, {
|
|
6338
6338
|
...e,
|
|
@@ -6348,7 +6348,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6348
6348
|
"formatAlignJustifyVerticalToggle",
|
|
6349
6349
|
"formatAlignDistributedVerticalToggle"
|
|
6350
6350
|
]
|
|
6351
|
-
}, !0),
|
|
6351
|
+
}, !0), vt.register({
|
|
6352
6352
|
key: "textRotateOptions",
|
|
6353
6353
|
render: (e, t) => mn(Dr, {
|
|
6354
6354
|
...e,
|
|
@@ -6365,7 +6365,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6365
6365
|
"-",
|
|
6366
6366
|
"formatTextRotateCustom"
|
|
6367
6367
|
]
|
|
6368
|
-
}, !0),
|
|
6368
|
+
}, !0), vt.register({
|
|
6369
6369
|
key: "formatTextRotateCustom",
|
|
6370
6370
|
render: (e) => mn($o, {
|
|
6371
6371
|
...e,
|
|
@@ -6381,25 +6381,25 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6381
6381
|
maxLength: 4
|
|
6382
6382
|
}
|
|
6383
6383
|
})
|
|
6384
|
-
}, !0),
|
|
6384
|
+
}, !0), vt.register({
|
|
6385
6385
|
key: "numberFormatOptions",
|
|
6386
6386
|
render: (e, t) => mn(ua, {
|
|
6387
6387
|
...e,
|
|
6388
6388
|
groupKey: t
|
|
6389
6389
|
})
|
|
6390
|
-
}, !0),
|
|
6390
|
+
}, !0), vt.register({
|
|
6391
6391
|
key: "sheetZoomOptions",
|
|
6392
6392
|
render: (e, t) => mn(Ir, {
|
|
6393
6393
|
...e,
|
|
6394
6394
|
groupKey: t
|
|
6395
6395
|
})
|
|
6396
|
-
}, !0),
|
|
6396
|
+
}, !0), vt.register({
|
|
6397
6397
|
key: "formatCellStyle",
|
|
6398
6398
|
render: (e) => mn(Ca, {
|
|
6399
6399
|
...e,
|
|
6400
6400
|
commandKey: "formatCellStyle"
|
|
6401
6401
|
})
|
|
6402
|
-
}, !0),
|
|
6402
|
+
}, !0), vt.register({
|
|
6403
6403
|
key: "formatTableStyle",
|
|
6404
6404
|
contributions: { tableToolbar: {
|
|
6405
6405
|
anchor: "formatTableStyleClearTableStyle",
|
|
@@ -6409,14 +6409,14 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6409
6409
|
...e,
|
|
6410
6410
|
commandKey: "formatTableStyle"
|
|
6411
6411
|
})
|
|
6412
|
-
}, !0),
|
|
6412
|
+
}, !0), vt.register({
|
|
6413
6413
|
key: "sparklineColorSeries",
|
|
6414
6414
|
contributions: { sparklineToolbar: {
|
|
6415
6415
|
anchor: "sparklineAxisOptions",
|
|
6416
6416
|
order: -2
|
|
6417
6417
|
} },
|
|
6418
6418
|
render: _l("sparklineColorSeries")
|
|
6419
|
-
}, !0),
|
|
6419
|
+
}, !0), vt.register({
|
|
6420
6420
|
key: "sparklineMarkerColorOptions",
|
|
6421
6421
|
contributions: { sparklineToolbar: {
|
|
6422
6422
|
anchor: "sparklineAxisOptions",
|
|
@@ -6431,25 +6431,25 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6431
6431
|
"sparklineColorFirst",
|
|
6432
6432
|
"sparklineColorLast"
|
|
6433
6433
|
]
|
|
6434
|
-
}, !0),
|
|
6434
|
+
}, !0), vt.register({
|
|
6435
6435
|
key: "sparklineColorNegative",
|
|
6436
6436
|
render: _l("sparklineColorNegative")
|
|
6437
|
-
}, !0),
|
|
6437
|
+
}, !0), vt.register({
|
|
6438
6438
|
key: "sparklineColorMarkers",
|
|
6439
6439
|
render: _l("sparklineColorMarkers")
|
|
6440
|
-
}, !0),
|
|
6440
|
+
}, !0), vt.register({
|
|
6441
6441
|
key: "sparklineColorHigh",
|
|
6442
6442
|
render: _l("sparklineColorHigh")
|
|
6443
|
-
}, !0),
|
|
6443
|
+
}, !0), vt.register({
|
|
6444
6444
|
key: "sparklineColorLow",
|
|
6445
6445
|
render: _l("sparklineColorLow")
|
|
6446
|
-
}, !0),
|
|
6446
|
+
}, !0), vt.register({
|
|
6447
6447
|
key: "sparklineColorFirst",
|
|
6448
6448
|
render: _l("sparklineColorFirst")
|
|
6449
|
-
}, !0),
|
|
6449
|
+
}, !0), vt.register({
|
|
6450
6450
|
key: "sparklineColorLast",
|
|
6451
6451
|
render: _l("sparklineColorLast")
|
|
6452
|
-
}, !0),
|
|
6452
|
+
}, !0), vt.register({
|
|
6453
6453
|
key: "sparklineOptions",
|
|
6454
6454
|
members: [
|
|
6455
6455
|
"sparklineEditData",
|
|
@@ -6457,20 +6457,20 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6457
6457
|
"sparklineClear",
|
|
6458
6458
|
"sparklineClearGroups"
|
|
6459
6459
|
]
|
|
6460
|
-
}, !0),
|
|
6460
|
+
}, !0), vt.register({
|
|
6461
6461
|
key: "sparklineColorAxis",
|
|
6462
6462
|
contributions: { sparklineAxisOptions: {
|
|
6463
6463
|
anchor: "sparklineRightToLeftToggle",
|
|
6464
6464
|
order: -1
|
|
6465
6465
|
} },
|
|
6466
6466
|
render: _l("sparklineColorAxis")
|
|
6467
|
-
}, !0),
|
|
6467
|
+
}, !0), vt.register({
|
|
6468
6468
|
key: "formatPivotStyle",
|
|
6469
6469
|
render: (e) => mn(Xa, {
|
|
6470
6470
|
...e,
|
|
6471
6471
|
commandKey: "formatPivotStyle"
|
|
6472
6472
|
})
|
|
6473
|
-
}, !0),
|
|
6473
|
+
}, !0), vt.register({
|
|
6474
6474
|
key: "conditionalFormatDataBar",
|
|
6475
6475
|
render: (e, t) => mn(jl, {
|
|
6476
6476
|
...e,
|
|
@@ -6478,7 +6478,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6478
6478
|
commandKey: "conditionalFormatDataBar",
|
|
6479
6479
|
scaleType: "dataBar"
|
|
6480
6480
|
})
|
|
6481
|
-
}, !0),
|
|
6481
|
+
}, !0), vt.register({
|
|
6482
6482
|
key: "conditionalFormatColorScale",
|
|
6483
6483
|
render: (e, t) => mn(jl, {
|
|
6484
6484
|
...e,
|
|
@@ -6486,7 +6486,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6486
6486
|
commandKey: "conditionalFormatColorScale",
|
|
6487
6487
|
scaleType: "colorScale"
|
|
6488
6488
|
})
|
|
6489
|
-
}, !0),
|
|
6489
|
+
}, !0), vt.register({
|
|
6490
6490
|
key: "conditionalFormatIconSet",
|
|
6491
6491
|
render: (e, t) => mn(jl, {
|
|
6492
6492
|
...e,
|
|
@@ -6632,7 +6632,7 @@ var _l = (e) => (t, o) => mn(fa, {
|
|
|
6632
6632
|
Xl.displayName = "InsertFunctionCommandPopupButton";
|
|
6633
6633
|
var Jl = fo(go((e, t) => {
|
|
6634
6634
|
const { category: o, ...n } = e, r = Gt(["insertFunction"])[0], [a, l] = Do([]), [i, s] = Do(!1);
|
|
6635
|
-
|
|
6635
|
+
vo(() => {
|
|
6636
6636
|
let e = !1;
|
|
6637
6637
|
return (async () => {
|
|
6638
6638
|
const t = r?.getContext();
|
|
@@ -6803,7 +6803,7 @@ var Jl = fo(go((e, t) => {
|
|
|
6803
6803
|
disabled: t,
|
|
6804
6804
|
children: e
|
|
6805
6805
|
}),
|
|
6806
|
-
icon: mn(
|
|
6806
|
+
icon: mn(kt, { iconKey: "Locale" }),
|
|
6807
6807
|
label: i?.getLabel?.(),
|
|
6808
6808
|
...r
|
|
6809
6809
|
});
|
|
@@ -6835,7 +6835,7 @@ var ai = "insertCellControlOptions", li = fo(go((e, t) => {
|
|
|
6835
6835
|
key: "insertCellControl",
|
|
6836
6836
|
state: e.type,
|
|
6837
6837
|
getLabel: () => e.label,
|
|
6838
|
-
getIcon: () => "string" == typeof e.icon ? mn(
|
|
6838
|
+
getIcon: () => "string" == typeof e.icon ? mn(kt, { iconKey: e.icon }) : e.icon
|
|
6839
6839
|
})),
|
|
6840
6840
|
"-",
|
|
6841
6841
|
{ key: "formatCellControl" }
|
|
@@ -7088,7 +7088,7 @@ var ii = fo((e) => {
|
|
|
7088
7088
|
label: c(e.label),
|
|
7089
7089
|
simple: !0
|
|
7090
7090
|
},
|
|
7091
|
-
icon: mn(
|
|
7091
|
+
icon: mn(kt, { iconKey: Ze(e.key) }),
|
|
7092
7092
|
onClick: () => {
|
|
7093
7093
|
t?.(), b(e);
|
|
7094
7094
|
}
|
|
@@ -7124,11 +7124,11 @@ var ii = fo((e) => {
|
|
|
7124
7124
|
label: r ?? d?.getLabel(o),
|
|
7125
7125
|
disabled: u,
|
|
7126
7126
|
selected: !1,
|
|
7127
|
-
icon: a ?? mn(
|
|
7127
|
+
icon: a ?? mn(kt, { iconKey: Ze("Shapes") }),
|
|
7128
7128
|
...s
|
|
7129
7129
|
});
|
|
7130
7130
|
})), ui = () => {
|
|
7131
|
-
Zl(),
|
|
7131
|
+
Zl(), vt.register({
|
|
7132
7132
|
key: "hideUnhideOptions",
|
|
7133
7133
|
members: [
|
|
7134
7134
|
"hideColumns",
|
|
@@ -7138,7 +7138,7 @@ var ii = fo((e) => {
|
|
|
7138
7138
|
"unhideColumns",
|
|
7139
7139
|
"unhideRows"
|
|
7140
7140
|
]
|
|
7141
|
-
}, !0),
|
|
7141
|
+
}, !0), vt.register({
|
|
7142
7142
|
key: "cellsFormatOptions",
|
|
7143
7143
|
members: [
|
|
7144
7144
|
"resizeRows",
|
|
@@ -7151,22 +7151,22 @@ var ii = fo((e) => {
|
|
|
7151
7151
|
"-",
|
|
7152
7152
|
"formatCells"
|
|
7153
7153
|
]
|
|
7154
|
-
}, !0),
|
|
7154
|
+
}, !0), vt.register({
|
|
7155
7155
|
key: "formatFontFamily",
|
|
7156
7156
|
render: (e) => mn(ya, {
|
|
7157
7157
|
...e,
|
|
7158
7158
|
commandKey: "formatFontFamily"
|
|
7159
7159
|
})
|
|
7160
|
-
}, !0),
|
|
7160
|
+
}, !0), vt.register({
|
|
7161
7161
|
key: "formatFontSize",
|
|
7162
7162
|
render: (e) => mn(ta, {
|
|
7163
7163
|
...e,
|
|
7164
7164
|
commandKey: "formatFontSize"
|
|
7165
7165
|
})
|
|
7166
|
-
}, !0),
|
|
7166
|
+
}, !0), vt.register({
|
|
7167
7167
|
key: "formatBorder",
|
|
7168
7168
|
render: (e) => mn(ea, { ...e })
|
|
7169
|
-
}, !0),
|
|
7169
|
+
}, !0), vt.register({
|
|
7170
7170
|
key: "formatFontColor",
|
|
7171
7171
|
render: (e) => mn(fa, {
|
|
7172
7172
|
...e,
|
|
@@ -7174,7 +7174,7 @@ var ii = fo((e) => {
|
|
|
7174
7174
|
isSplit: !0,
|
|
7175
7175
|
propsPanel: { disableAlpha: !0 }
|
|
7176
7176
|
})
|
|
7177
|
-
}, !0),
|
|
7177
|
+
}, !0), vt.register({
|
|
7178
7178
|
key: "formatFillColor",
|
|
7179
7179
|
render: (e) => mn(fa, {
|
|
7180
7180
|
...e,
|
|
@@ -7186,7 +7186,7 @@ var ii = fo((e) => {
|
|
|
7186
7186
|
autoColorPosition: Pr.End
|
|
7187
7187
|
}
|
|
7188
7188
|
})
|
|
7189
|
-
}, !0),
|
|
7189
|
+
}, !0), vt.register({
|
|
7190
7190
|
key: "homeToolbar",
|
|
7191
7191
|
members: [
|
|
7192
7192
|
"-",
|
|
@@ -7226,7 +7226,7 @@ var ii = fo((e) => {
|
|
|
7226
7226
|
"sortFilterOptions",
|
|
7227
7227
|
"findOptions"
|
|
7228
7228
|
]
|
|
7229
|
-
}, !0),
|
|
7229
|
+
}, !0), vt.register({
|
|
7230
7230
|
key: "dataToolbar",
|
|
7231
7231
|
members: [
|
|
7232
7232
|
"refreshAll",
|
|
@@ -7260,14 +7260,14 @@ var ii = fo((e) => {
|
|
|
7260
7260
|
"database",
|
|
7261
7261
|
"web"
|
|
7262
7262
|
];
|
|
7263
|
-
for (const t of e)
|
|
7263
|
+
for (const t of e) vt.register({
|
|
7264
7264
|
key: `formulaCategory.${t}`,
|
|
7265
7265
|
render: (e) => mn(Xl, {
|
|
7266
7266
|
category: t,
|
|
7267
7267
|
...e
|
|
7268
7268
|
})
|
|
7269
7269
|
}, !0);
|
|
7270
|
-
|
|
7270
|
+
vt.register({
|
|
7271
7271
|
key: "formulaToolbar",
|
|
7272
7272
|
members: [
|
|
7273
7273
|
{
|
|
@@ -7287,10 +7287,10 @@ var ii = fo((e) => {
|
|
|
7287
7287
|
"calculateAll",
|
|
7288
7288
|
"calculate"
|
|
7289
7289
|
]
|
|
7290
|
-
}, !0),
|
|
7290
|
+
}, !0), vt.register({
|
|
7291
7291
|
key: "calculationOptions",
|
|
7292
7292
|
render: (e) => mn(bl, { ...e })
|
|
7293
|
-
}, !0),
|
|
7293
|
+
}, !0), vt.register({
|
|
7294
7294
|
key: "insertToolbar",
|
|
7295
7295
|
members: [
|
|
7296
7296
|
"insertPivotTable",
|
|
@@ -7310,12 +7310,12 @@ var ii = fo((e) => {
|
|
|
7310
7310
|
"updateHyperlink",
|
|
7311
7311
|
"updateComments"
|
|
7312
7312
|
]
|
|
7313
|
-
}, !0),
|
|
7313
|
+
}, !0), vt.register({
|
|
7314
7314
|
key: "contextMenu",
|
|
7315
7315
|
members: [
|
|
7316
7316
|
"cut",
|
|
7317
7317
|
"copy",
|
|
7318
|
-
{ render: (e) => mn(
|
|
7318
|
+
{ render: (e) => mn(va, {
|
|
7319
7319
|
...e,
|
|
7320
7320
|
commandKey: "paste",
|
|
7321
7321
|
includePasteAllInPopup: !1
|
|
@@ -7327,7 +7327,7 @@ var ii = fo((e) => {
|
|
|
7327
7327
|
"-",
|
|
7328
7328
|
"sortFilterOptions"
|
|
7329
7329
|
]
|
|
7330
|
-
}, !0), Ue(),
|
|
7330
|
+
}, !0), Ue(), vt.register({
|
|
7331
7331
|
key: "movableContextMenu",
|
|
7332
7332
|
members: [
|
|
7333
7333
|
"copy",
|
|
@@ -7345,7 +7345,7 @@ var ii = fo((e) => {
|
|
|
7345
7345
|
"-",
|
|
7346
7346
|
"formatMovable"
|
|
7347
7347
|
]
|
|
7348
|
-
}, !0),
|
|
7348
|
+
}, !0), vt.register({
|
|
7349
7349
|
key: "sheetTabMenu",
|
|
7350
7350
|
members: [
|
|
7351
7351
|
"addSheet",
|
|
@@ -7355,7 +7355,7 @@ var ii = fo((e) => {
|
|
|
7355
7355
|
{ render: () => mn(fa, {
|
|
7356
7356
|
variant: yt.Menuitem,
|
|
7357
7357
|
commandKey: "formatSheetTabColor",
|
|
7358
|
-
icon: mn(
|
|
7358
|
+
icon: mn(kt, { iconKey: "stroke.colored" }),
|
|
7359
7359
|
propsPanel: {
|
|
7360
7360
|
disableAlpha: !0,
|
|
7361
7361
|
autoColorLabelKey: ir("color.noTabColor"),
|
|
@@ -7365,7 +7365,7 @@ var ii = fo((e) => {
|
|
|
7365
7365
|
"-",
|
|
7366
7366
|
"hideSheet"
|
|
7367
7367
|
]
|
|
7368
|
-
}, !0),
|
|
7368
|
+
}, !0), vt.register({
|
|
7369
7369
|
key: "freezeOptions",
|
|
7370
7370
|
defaultKey: "freezeToggle",
|
|
7371
7371
|
members: [
|
|
@@ -7375,7 +7375,7 @@ var ii = fo((e) => {
|
|
|
7375
7375
|
"-",
|
|
7376
7376
|
"unfreeze"
|
|
7377
7377
|
]
|
|
7378
|
-
}, !0),
|
|
7378
|
+
}, !0), vt.register({
|
|
7379
7379
|
key: "protectionOptions",
|
|
7380
7380
|
defaultKey: "protectionSheetProtectOrPause",
|
|
7381
7381
|
members: [
|
|
@@ -7387,7 +7387,7 @@ var ii = fo((e) => {
|
|
|
7387
7387
|
"-",
|
|
7388
7388
|
"manageProtection"
|
|
7389
7389
|
]
|
|
7390
|
-
}, !0),
|
|
7390
|
+
}, !0), vt.register({
|
|
7391
7391
|
key: "gridlinesOptions",
|
|
7392
7392
|
defaultKey: "gridlinesToggle",
|
|
7393
7393
|
showLabel: !0,
|
|
@@ -7396,14 +7396,14 @@ var ii = fo((e) => {
|
|
|
7396
7396
|
{ render: (e) => mn(fa, {
|
|
7397
7397
|
...e,
|
|
7398
7398
|
commandKey: "sheetViewFormatGridlinesColor",
|
|
7399
|
-
icon: mn(
|
|
7399
|
+
icon: mn(kt, { iconKey: "stroke.colored" }),
|
|
7400
7400
|
propsPanel: { disableAlpha: !0 }
|
|
7401
7401
|
}) },
|
|
7402
7402
|
"-",
|
|
7403
7403
|
"sheetViewToggleGridlinesColumns",
|
|
7404
7404
|
"sheetViewToggleGridlinesRows"
|
|
7405
7405
|
]
|
|
7406
|
-
}, !0),
|
|
7406
|
+
}, !0), vt.register({
|
|
7407
7407
|
key: "headingsOptions",
|
|
7408
7408
|
defaultKey: "sheetViewToggleShowHeadings",
|
|
7409
7409
|
showLabel: !0,
|
|
@@ -7414,13 +7414,13 @@ var ii = fo((e) => {
|
|
|
7414
7414
|
"sheetViewToggleShowHeadingColumns",
|
|
7415
7415
|
"sheetViewToggleShowHeadingRows"
|
|
7416
7416
|
]
|
|
7417
|
-
}, !0),
|
|
7417
|
+
}, !0), vt.register({
|
|
7418
7418
|
key: "locale",
|
|
7419
7419
|
render: (e) => mn(ti, {
|
|
7420
7420
|
...e,
|
|
7421
7421
|
variant: "menuitem"
|
|
7422
7422
|
})
|
|
7423
|
-
}, !0),
|
|
7423
|
+
}, !0), vt.register({
|
|
7424
7424
|
key: "workbookViewOptions",
|
|
7425
7425
|
showLabel: !0,
|
|
7426
7426
|
members: [
|
|
@@ -7431,13 +7431,13 @@ var ii = fo((e) => {
|
|
|
7431
7431
|
"workbookViewToggleShowHorizontalScrollBar",
|
|
7432
7432
|
"workbookViewToggleShowVerticalScrollBar"
|
|
7433
7433
|
]
|
|
7434
|
-
}, !0),
|
|
7434
|
+
}, !0), vt.register({
|
|
7435
7435
|
key: "selectTheme",
|
|
7436
7436
|
render: (e) => mn(pl, {
|
|
7437
7437
|
...e,
|
|
7438
7438
|
commandKey: "selectTheme"
|
|
7439
7439
|
})
|
|
7440
|
-
}, !0),
|
|
7440
|
+
}, !0), vt.register({
|
|
7441
7441
|
key: "reviewToolbar",
|
|
7442
7442
|
members: [
|
|
7443
7443
|
"workbookStatistics",
|
|
@@ -7448,7 +7448,7 @@ var ii = fo((e) => {
|
|
|
7448
7448
|
"-",
|
|
7449
7449
|
"protectionOptions"
|
|
7450
7450
|
]
|
|
7451
|
-
}, !0),
|
|
7451
|
+
}, !0), vt.register({
|
|
7452
7452
|
key: "viewToolbar",
|
|
7453
7453
|
members: [
|
|
7454
7454
|
"sheetZoomOptions",
|
|
@@ -7467,7 +7467,7 @@ var ii = fo((e) => {
|
|
|
7467
7467
|
"-",
|
|
7468
7468
|
"selectTheme"
|
|
7469
7469
|
]
|
|
7470
|
-
}, !0),
|
|
7470
|
+
}, !0), vt.register({
|
|
7471
7471
|
key: be,
|
|
7472
7472
|
members: [
|
|
7473
7473
|
"homeToolbar",
|
|
@@ -7555,7 +7555,7 @@ var ii = fo((e) => {
|
|
|
7555
7555
|
disabled: t,
|
|
7556
7556
|
children: e
|
|
7557
7557
|
}),
|
|
7558
|
-
icon: mn(
|
|
7558
|
+
icon: mn(kt, { iconKey: "Language" }),
|
|
7559
7559
|
label: a?.getLabel?.(),
|
|
7560
7560
|
...r
|
|
7561
7561
|
});
|
|
@@ -7568,55 +7568,55 @@ function hi(e) {
|
|
|
7568
7568
|
}
|
|
7569
7569
|
}
|
|
7570
7570
|
var gi = () => {
|
|
7571
|
-
ui(),
|
|
7571
|
+
ui(), vt.register({ key: "fileOptions" }, !0), vt.register({
|
|
7572
7572
|
key: "newWorkbookOptions",
|
|
7573
7573
|
defaultKey: "newWorkbook",
|
|
7574
7574
|
members: ["newWorkbook"]
|
|
7575
|
-
}, !0),
|
|
7575
|
+
}, !0), vt.register({ key: "appearanceOptions" }, !0), vt.register({ key: "insertChartOptions" }, !0), vt.register({
|
|
7576
7576
|
key: "insertCellControlOptions",
|
|
7577
7577
|
defaultKey: "insertCheckbox"
|
|
7578
|
-
}, !0),
|
|
7578
|
+
}, !0), vt.register({ key: "borderOptions" }, !0), vt.register({
|
|
7579
7579
|
key: "insertDataOptions",
|
|
7580
7580
|
defaultKey: "insertDataFromFile",
|
|
7581
7581
|
contributions: { dataToolbar: { order: -1 } },
|
|
7582
7582
|
members: ["insertDataFromFile", "insertDataFromURL"]
|
|
7583
|
-
}, !0),
|
|
7583
|
+
}, !0), vt.register({
|
|
7584
7584
|
key: "undo",
|
|
7585
7585
|
contributions: { homeToolbar: { order: -1 } },
|
|
7586
7586
|
render: (e) => mn(ba, {
|
|
7587
7587
|
...e,
|
|
7588
7588
|
quickCommand: "undo"
|
|
7589
7589
|
})
|
|
7590
|
-
}, !0),
|
|
7590
|
+
}, !0), vt.register({
|
|
7591
7591
|
key: "darkModeOptions",
|
|
7592
7592
|
contributions: { viewToolbar: {
|
|
7593
7593
|
anchor: "sheetBackgroundOptions",
|
|
7594
7594
|
order: -1
|
|
7595
7595
|
} },
|
|
7596
7596
|
members: ["enableDarkGrid", "enableDarkImages"]
|
|
7597
|
-
}, !0),
|
|
7597
|
+
}, !0), vt.register({
|
|
7598
7598
|
key: "language",
|
|
7599
7599
|
render: (e) => mn(mi, {
|
|
7600
7600
|
...e,
|
|
7601
7601
|
variant: "menuitem"
|
|
7602
7602
|
})
|
|
7603
|
-
}, !0),
|
|
7603
|
+
}, !0), vt.register({
|
|
7604
7604
|
key: "languageOptions",
|
|
7605
7605
|
contributions: { viewToolbar: {
|
|
7606
7606
|
anchor: "selectTheme",
|
|
7607
7607
|
order: 1
|
|
7608
7608
|
} },
|
|
7609
7609
|
members: ["language", "locale"]
|
|
7610
|
-
}, !0),
|
|
7610
|
+
}, !0), vt.register({
|
|
7611
7611
|
key: "fullScreenToggleView",
|
|
7612
7612
|
defaultKey: "fullScreenToggle",
|
|
7613
7613
|
contributions: { viewToolbar: {
|
|
7614
7614
|
anchor: "freezeOptions",
|
|
7615
7615
|
order: 1
|
|
7616
7616
|
} }
|
|
7617
|
-
}, !0),
|
|
7617
|
+
}, !0), vt.register({
|
|
7618
7618
|
key: "helpOptions",
|
|
7619
|
-
getIcon: () => mn(
|
|
7619
|
+
getIcon: () => mn(kt, {
|
|
7620
7620
|
iconKey: "Help",
|
|
7621
7621
|
style: { transform: "scale(0.75)" }
|
|
7622
7622
|
}),
|
|
@@ -7658,7 +7658,7 @@ var fi = {
|
|
|
7658
7658
|
onClick: (e) => {
|
|
7659
7659
|
e.stopPropagation(), o();
|
|
7660
7660
|
},
|
|
7661
|
-
children: mn(
|
|
7661
|
+
children: mn(kt, {
|
|
7662
7662
|
style: { transform: "scale(0.85)" },
|
|
7663
7663
|
iconKey: t
|
|
7664
7664
|
})
|
|
@@ -7667,15 +7667,15 @@ var fi = {
|
|
|
7667
7667
|
}));
|
|
7668
7668
|
yi.displayName = "ItemCardAction";
|
|
7669
7669
|
var xi = fo((e) => {
|
|
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:
|
|
7671
|
-
|
|
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 = lo(), C = !i && !!p, T = null != a, [F, D] = Do(!1), [N, I] = To((e) => e + 1, 0);
|
|
7671
|
+
vo(() => {
|
|
7672
7672
|
if (f) return f(t, I);
|
|
7673
|
-
}, [t, f]),
|
|
7674
|
-
const B = Co(() => cr("sxl-item-card", "sxl-anchor-item-card",
|
|
7673
|
+
}, [t, f]), vo(() => {}, [F]);
|
|
7674
|
+
const B = Co(() => cr("sxl-item-card", "sxl-anchor-item-card", v, {
|
|
7675
7675
|
"sxl-read-only": i,
|
|
7676
7676
|
"Mui-selected": s
|
|
7677
7677
|
}, fi.card), [
|
|
7678
|
-
|
|
7678
|
+
v,
|
|
7679
7679
|
i,
|
|
7680
7680
|
s
|
|
7681
7681
|
]);
|
|
@@ -7716,7 +7716,7 @@ var xi = fo((e) => {
|
|
|
7716
7716
|
width: "auto"
|
|
7717
7717
|
}
|
|
7718
7718
|
}
|
|
7719
|
-
}, ...Array.isArray(
|
|
7719
|
+
}, ...Array.isArray(k) ? k : [k]],
|
|
7720
7720
|
className: B,
|
|
7721
7721
|
children: [
|
|
7722
7722
|
hn(bn, {
|
|
@@ -7835,7 +7835,7 @@ var xi = fo((e) => {
|
|
|
7835
7835
|
});
|
|
7836
7836
|
});
|
|
7837
7837
|
xi.displayName = "ItemCard";
|
|
7838
|
-
var
|
|
7838
|
+
var vi = xi, ki = fo((e) => {
|
|
7839
7839
|
const { value: t, onChange: o, placeholder: n, clearLabel: r, sx: a } = e;
|
|
7840
7840
|
return mn(Un, {
|
|
7841
7841
|
className: "sxl-items-search",
|
|
@@ -7852,7 +7852,7 @@ var ki = xi, vi = fo((e) => {
|
|
|
7852
7852
|
sx: { backgroundColor: "background.paper" },
|
|
7853
7853
|
startAdornment: mn(Dn, {
|
|
7854
7854
|
position: "start",
|
|
7855
|
-
children: mn(
|
|
7855
|
+
children: mn(kt, { iconKey: "Find" })
|
|
7856
7856
|
}),
|
|
7857
7857
|
endAdornment: t ? mn(Dn, {
|
|
7858
7858
|
position: "end",
|
|
@@ -7863,7 +7863,7 @@ var ki = xi, vi = fo((e) => {
|
|
|
7863
7863
|
0 === e.button && e.preventDefault();
|
|
7864
7864
|
},
|
|
7865
7865
|
onClick: () => o(""),
|
|
7866
|
-
icon: mn(
|
|
7866
|
+
icon: mn(kt, { iconKey: "Close" }),
|
|
7867
7867
|
size: "small"
|
|
7868
7868
|
})
|
|
7869
7869
|
}) : void 0
|
|
@@ -7876,22 +7876,22 @@ var ki = xi, vi = fo((e) => {
|
|
|
7876
7876
|
}
|
|
7877
7877
|
});
|
|
7878
7878
|
});
|
|
7879
|
-
|
|
7879
|
+
ki.displayName = "ItemsSearchField";
|
|
7880
7880
|
var wi = mo(null), Si = (e) => {
|
|
7881
7881
|
const t = xo(wi), o = Fo(e);
|
|
7882
|
-
o.current = e,
|
|
7882
|
+
o.current = e, vo(() => {
|
|
7883
7883
|
if (t) return t.register(() => o.current());
|
|
7884
7884
|
}, [t]);
|
|
7885
7885
|
}, Ci = fo((e) => {
|
|
7886
|
-
const { context: t, selected: o, onChangeSelected: n, onActivate: r, autoFocus: a = !1, className: l } = e, i = lo(), s = ut(), [c, d] = Do([]), [p, u] = Do("*"), [m, h] = Do(""), [g, b] = Do(""), [f, y] = Do([]), [x,
|
|
7886
|
+
const { context: t, selected: o, onChangeSelected: n, onActivate: r, autoFocus: a = !1, className: l } = e, i = lo(), s = ut(), [c, d] = Do([]), [p, u] = Do("*"), [m, h] = Do(""), [g, b] = Do(""), [f, y] = Do([]), [x, v] = Do(null), k = "*" === (w = p) ? void 0 : w;
|
|
7887
7887
|
var w;
|
|
7888
|
-
const S = Fo(null), C = Fo(null), T =
|
|
7889
|
-
|
|
7888
|
+
const S = Fo(null), C = Fo(null), T = ko(), F = (e) => `${T}${e}`;
|
|
7889
|
+
vo(() => {
|
|
7890
7890
|
const e = setTimeout(() => b(m.trim()), 150);
|
|
7891
7891
|
return () => clearTimeout(e);
|
|
7892
|
-
}, [m]),
|
|
7892
|
+
}, [m]), vo(() => {
|
|
7893
7893
|
a && C.current?.focus();
|
|
7894
|
-
}, [a]),
|
|
7894
|
+
}, [a]), vo(() => {
|
|
7895
7895
|
let e = !1;
|
|
7896
7896
|
return (async () => {
|
|
7897
7897
|
const o = await t?.()?.getCategories() ?? [];
|
|
@@ -7901,32 +7901,32 @@ var wi = mo(null), Si = (e) => {
|
|
|
7901
7901
|
};
|
|
7902
7902
|
}, [t]);
|
|
7903
7903
|
const D = Wt(n, [n]);
|
|
7904
|
-
|
|
7904
|
+
vo(() => {
|
|
7905
7905
|
let e = !1;
|
|
7906
7906
|
return (async () => {
|
|
7907
7907
|
const o = t?.();
|
|
7908
7908
|
if (!o) return;
|
|
7909
7909
|
const n = g ? await o.searchByText(g, {
|
|
7910
|
-
category:
|
|
7910
|
+
category: k,
|
|
7911
7911
|
limit: 100
|
|
7912
|
-
}) : await o.searchByCategory(
|
|
7912
|
+
}) : await o.searchByCategory(k);
|
|
7913
7913
|
e || (y(n), D(n[0] ?? null));
|
|
7914
7914
|
})(), () => {
|
|
7915
7915
|
e = !0;
|
|
7916
7916
|
};
|
|
7917
7917
|
}, [
|
|
7918
7918
|
t,
|
|
7919
|
-
|
|
7919
|
+
k,
|
|
7920
7920
|
g,
|
|
7921
7921
|
D
|
|
7922
|
-
]),
|
|
7923
|
-
if (!o) return void
|
|
7922
|
+
]), vo(() => {
|
|
7923
|
+
if (!o) return void v(null);
|
|
7924
7924
|
let e = !1;
|
|
7925
7925
|
const t = o.getName();
|
|
7926
7926
|
return o.getDescriptor().then((o) => {
|
|
7927
|
-
e ||
|
|
7927
|
+
e || v(Te(t, o));
|
|
7928
7928
|
}).catch(() => {
|
|
7929
|
-
e ||
|
|
7929
|
+
e || v(null);
|
|
7930
7930
|
}), () => {
|
|
7931
7931
|
e = !0;
|
|
7932
7932
|
};
|
|
@@ -7972,7 +7972,7 @@ var wi = mo(null), Si = (e) => {
|
|
|
7972
7972
|
B,
|
|
7973
7973
|
f
|
|
7974
7974
|
]);
|
|
7975
|
-
|
|
7975
|
+
vo(() => {
|
|
7976
7976
|
if (!o) return;
|
|
7977
7977
|
const e = S.current, t = e?.querySelector("[data-selected=\"true\"]");
|
|
7978
7978
|
e && t && or.scrollIntoContainer(e, t);
|
|
@@ -8043,7 +8043,7 @@ var wi = mo(null), Si = (e) => {
|
|
|
8043
8043
|
input: {
|
|
8044
8044
|
startAdornment: mn(Dn, {
|
|
8045
8045
|
position: "start",
|
|
8046
|
-
children: mn(
|
|
8046
|
+
children: mn(kt, { iconKey: "Find" })
|
|
8047
8047
|
}),
|
|
8048
8048
|
endAdornment: m ? mn(Dn, {
|
|
8049
8049
|
position: "end",
|
|
@@ -8054,7 +8054,7 @@ var wi = mo(null), Si = (e) => {
|
|
|
8054
8054
|
0 === e.button && e.preventDefault();
|
|
8055
8055
|
},
|
|
8056
8056
|
onClick: () => h(""),
|
|
8057
|
-
icon: mn(
|
|
8057
|
+
icon: mn(kt, { iconKey: "Close" }),
|
|
8058
8058
|
size: "small"
|
|
8059
8059
|
})
|
|
8060
8060
|
}) : void 0
|
|
@@ -8146,24 +8146,24 @@ var wi = mo(null), Si = (e) => {
|
|
|
8146
8146
|
});
|
|
8147
8147
|
Ci.displayName = "FunctionSearchPanel";
|
|
8148
8148
|
var Ti = fo((e) => {
|
|
8149
|
-
const { func: t, workbook: o, home: n, autoFocus: r = !1, onChangeCall: a, className: l } = e, i = lo(), s = ut(), c = void 0 !== o ? o : s, [d, p] = Do([]), [u, m] = Do([]), [h, g] = Do([]), [b, f] = Do(null), [y, x] = Do(0), [
|
|
8149
|
+
const { func: t, workbook: o, home: n, autoFocus: r = !1, onChangeCall: a, className: l } = e, i = lo(), s = ut(), c = void 0 !== o ? o : s, [d, p] = Do([]), [u, m] = Do([]), [h, g] = Do([]), [b, f] = Do(null), [y, x] = Do(0), [v, k] = Do(null), w = Fo(null), S = Fo(/* @__PURE__ */ new Map()), C = Co(() => t.getDeclaration().getParameters(), [t]), T = Co(() => Qe(C, d), [C, d]), F = Co(() => Fe(t, { locale: c?.getLocale() }), [t, c]), D = Co(() => Se(F.nameLocal ?? F.name, T, d, { separator: F.argSeparator }), [
|
|
8150
8150
|
F,
|
|
8151
8151
|
T,
|
|
8152
8152
|
d
|
|
8153
8153
|
]);
|
|
8154
|
-
|
|
8154
|
+
vo(() => {
|
|
8155
8155
|
a?.(D);
|
|
8156
|
-
}, [D, a]),
|
|
8156
|
+
}, [D, a]), vo(() => {
|
|
8157
8157
|
let e = !1;
|
|
8158
8158
|
const o = t.getName();
|
|
8159
8159
|
return t.getDescriptor().then((t) => {
|
|
8160
|
-
e ||
|
|
8160
|
+
e || k(Te(o, t));
|
|
8161
8161
|
}).catch(() => {
|
|
8162
|
-
e ||
|
|
8162
|
+
e || k(null);
|
|
8163
8163
|
}), () => {
|
|
8164
8164
|
e = !0;
|
|
8165
8165
|
};
|
|
8166
|
-
}, [t]),
|
|
8166
|
+
}, [t]), vo(() => {
|
|
8167
8167
|
r && (w.current?.querySelector("input"))?.focus();
|
|
8168
8168
|
}, [r]);
|
|
8169
8169
|
const N = Wt((e) => {
|
|
@@ -8200,7 +8200,7 @@ var Ti = fo((e) => {
|
|
|
8200
8200
|
return o[e] = n, o;
|
|
8201
8201
|
});
|
|
8202
8202
|
}, [N]);
|
|
8203
|
-
|
|
8203
|
+
vo(() => {
|
|
8204
8204
|
const e = c ? c.getSelectedWorksheet()?.getCalculation() ?? c.getCalculation() : null, t = T.some((e, t) => !e.optional && !d[t]?.trim());
|
|
8205
8205
|
if (!e || t || T.length > 0 && !d.some((e) => e?.trim())) return N(-1), void f(null);
|
|
8206
8206
|
const o = N(-1);
|
|
@@ -8234,11 +8234,11 @@ var Ti = fo((e) => {
|
|
|
8234
8234
|
i
|
|
8235
8235
|
]), M = Co(() => {
|
|
8236
8236
|
const e = T[y];
|
|
8237
|
-
if (e &&
|
|
8237
|
+
if (e && v?.name === t.getName()) return v?.params?.[e.descKey]?.description;
|
|
8238
8238
|
}, [
|
|
8239
8239
|
T,
|
|
8240
8240
|
y,
|
|
8241
|
-
|
|
8241
|
+
v,
|
|
8242
8242
|
t
|
|
8243
8243
|
]), O = Co(() => T.map((e, o) => hn(bn, {
|
|
8244
8244
|
sx: {
|
|
@@ -8362,12 +8362,12 @@ var Ti = fo((e) => {
|
|
|
8362
8362
|
textOverflow: "ellipsis"
|
|
8363
8363
|
},
|
|
8364
8364
|
children: F.nameLocal ?? F.name
|
|
8365
|
-
}),
|
|
8365
|
+
}), v?.name === t.getName() ? mn(bn, {
|
|
8366
8366
|
sx: {
|
|
8367
8367
|
paddingTop: "2px",
|
|
8368
8368
|
color: "text.secondary"
|
|
8369
8369
|
},
|
|
8370
|
-
children:
|
|
8370
|
+
children: v.summary
|
|
8371
8371
|
}) : null]
|
|
8372
8372
|
}),
|
|
8373
8373
|
mn(bn, {
|
|
@@ -8666,7 +8666,7 @@ var Bi = [
|
|
|
8666
8666
|
m,
|
|
8667
8667
|
f,
|
|
8668
8668
|
r
|
|
8669
|
-
]), { sx:
|
|
8669
|
+
]), { sx: v, ...k } = i, w = mn(Wn, {
|
|
8670
8670
|
elevation: 2,
|
|
8671
8671
|
tabIndex: 0,
|
|
8672
8672
|
sx: {
|
|
@@ -8681,9 +8681,9 @@ var Bi = [
|
|
|
8681
8681
|
marginRight: (e) => e.spacing(1),
|
|
8682
8682
|
marginTop: (e) => e.spacing(.5),
|
|
8683
8683
|
marginBottom: (e) => e.spacing(.5),
|
|
8684
|
-
...
|
|
8684
|
+
...v
|
|
8685
8685
|
},
|
|
8686
|
-
...
|
|
8686
|
+
...k,
|
|
8687
8687
|
children: h[f]
|
|
8688
8688
|
});
|
|
8689
8689
|
return hn(bn, {
|
|
@@ -8705,9 +8705,9 @@ var Li = { placement: "top-end" }, Ki = fo(go((e, t) => {
|
|
|
8705
8705
|
const { className: o, debounceDelay: n = 220, showSlider: r, sx: a, ...l } = e, i = lo(), s = gt()?.getView(), [c, d] = Do(() => s?.getZoomScale() ?? 100), [p, u] = Do(!1), m = Fo(0);
|
|
8706
8706
|
rt(s, { onZoomScaleChange: () => {
|
|
8707
8707
|
u(!0), 0 === m.current && s && d(s.getZoomScale());
|
|
8708
|
-
} }),
|
|
8708
|
+
} }), vo(() => {
|
|
8709
8709
|
m.current = 0, u(!1), d(s?.getZoomScale() ?? 100);
|
|
8710
|
-
}, [s]),
|
|
8710
|
+
}, [s]), vo(() => {
|
|
8711
8711
|
0 !== m.current && s && B.debounce(() => {
|
|
8712
8712
|
c === m.current && (m.current = 0, s.update({ zoomScale: c }));
|
|
8713
8713
|
}, n)();
|
|
@@ -8718,12 +8718,12 @@ var Li = { placement: "top-end" }, Ki = fo(go((e, t) => {
|
|
|
8718
8718
|
}, [s]), g = (e) => {
|
|
8719
8719
|
let t = e;
|
|
8720
8720
|
return e < 100 ? t = 10 / 9 * (e - 10) : e > 100 && (t = (e + 200) / 3), t;
|
|
8721
|
-
}, b = g(c), [f, y] = Do(null), x = Fo(null),
|
|
8721
|
+
}, b = g(c), [f, y] = Do(null), x = Fo(null), v = yo(() => {
|
|
8722
8722
|
const e = f;
|
|
8723
8723
|
e && requestAnimationFrame(() => {
|
|
8724
8724
|
x.current?.contains(document.activeElement) && e.focus();
|
|
8725
8725
|
});
|
|
8726
|
-
}, []),
|
|
8726
|
+
}, []), k = eo(() => {
|
|
8727
8727
|
s && h(g(s.getNextZoomScale(!1, 10)));
|
|
8728
8728
|
}), w = eo(() => {
|
|
8729
8729
|
s && h(g(s.getNextZoomScale(!0, 10)));
|
|
@@ -8748,7 +8748,7 @@ var Li = { placement: "top-end" }, Ki = fo(go((e, t) => {
|
|
|
8748
8748
|
0 === e.button && e.preventDefault();
|
|
8749
8749
|
},
|
|
8750
8750
|
onMouseUp: (e) => {
|
|
8751
|
-
0 === e.button &&
|
|
8751
|
+
0 === e.button && v();
|
|
8752
8752
|
},
|
|
8753
8753
|
...l,
|
|
8754
8754
|
children: [hn(bn, {
|
|
@@ -8776,9 +8776,9 @@ var Li = { placement: "top-end" }, Ki = fo(go((e, t) => {
|
|
|
8776
8776
|
},
|
|
8777
8777
|
size: "small",
|
|
8778
8778
|
onPointerDown: (e) => {
|
|
8779
|
-
0 !== e.button ? e.preventDefault() :
|
|
8779
|
+
0 !== e.button ? e.preventDefault() : k(e);
|
|
8780
8780
|
},
|
|
8781
|
-
children: mn(
|
|
8781
|
+
children: mn(kt, { iconKey: "Remove" })
|
|
8782
8782
|
})
|
|
8783
8783
|
}),
|
|
8784
8784
|
mn(Vn, {
|
|
@@ -8815,7 +8815,7 @@ var Li = { placement: "top-end" }, Ki = fo(go((e, t) => {
|
|
|
8815
8815
|
s && h(g(s.getNextZoomScale(e.deltaY < 0, 10)));
|
|
8816
8816
|
},
|
|
8817
8817
|
onKeyDown: (e) => {
|
|
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 ||
|
|
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();
|
|
8819
8819
|
},
|
|
8820
8820
|
onChange: (e, t) => {
|
|
8821
8821
|
Math.abs(t - 100) < 3 ? h(100) : h(t);
|
|
@@ -8838,7 +8838,7 @@ var Li = { placement: "top-end" }, Ki = fo(go((e, t) => {
|
|
|
8838
8838
|
onPointerDown: (e) => {
|
|
8839
8839
|
0 !== e.button ? e.preventDefault() : w(e);
|
|
8840
8840
|
},
|
|
8841
|
-
children: mn(
|
|
8841
|
+
children: mn(kt, { iconKey: "Add" })
|
|
8842
8842
|
})
|
|
8843
8843
|
})
|
|
8844
8844
|
]
|
|
@@ -8866,7 +8866,7 @@ var Li = { placement: "top-end" }, Ki = fo(go((e, t) => {
|
|
|
8866
8866
|
Ki.displayName = "SheetZoomScale";
|
|
8867
8867
|
var Ei = "_stats-items_151a8_1", Wi = "_stats-item_151a8_1", zi = "_stats-item-label_151a8_15", Vi = fo(go((e, t) => {
|
|
8868
8868
|
const { className: o, stats: n = $i, debounceDelay: r = 40, style: a, ...l } = e, i = gt(), s = lo(), [c, d] = Do(null), [p, u] = To((e) => e + 1, 0), m = yo(B.debounce(u, r), [r]);
|
|
8869
|
-
|
|
8869
|
+
vo(() => {
|
|
8870
8870
|
if (!i) return;
|
|
8871
8871
|
const e = i.getSelectedRanges();
|
|
8872
8872
|
if (e.isSingleCell()) return void d(null);
|
|
@@ -9003,7 +9003,7 @@ var $i = Object.freeze([
|
|
|
9003
9003
|
});
|
|
9004
9004
|
})), ji = fo((e) => {
|
|
9005
9005
|
const { debounceDelay: t = 40, className: o, style: n, ...r } = e, a = gt(), l = lo(), [i, s] = To((e) => e + 1, 0), c = yo(B.debounce(s, t), [t]), [d, p] = Do(null);
|
|
9006
|
-
if (
|
|
9006
|
+
if (vo(() => {
|
|
9007
9007
|
p(a ? Pe(a) : null);
|
|
9008
9008
|
}, [i, a]), rt(a, {
|
|
9009
9009
|
onDataChange: c,
|
|
@@ -9095,7 +9095,7 @@ var Zi = fo((e) => {
|
|
|
9095
9095
|
},
|
|
9096
9096
|
children: c > 0 && mn(Ko, {
|
|
9097
9097
|
"aria-label": "pending-results",
|
|
9098
|
-
icon: mn(
|
|
9098
|
+
icon: mn(kt, { iconKey: "PendingResults" }),
|
|
9099
9099
|
propsTooltip: {
|
|
9100
9100
|
label: l("statusBar.pending", { count: c }),
|
|
9101
9101
|
simple: !0
|
|
@@ -9109,7 +9109,7 @@ var Zi = fo((e) => {
|
|
|
9109
9109
|
Zi.displayName = "PendingStatus";
|
|
9110
9110
|
var Qi = fo(go((e, t) => {
|
|
9111
9111
|
const { style: n, className: r, children: a, childrenEnd: l, items: i, ...s } = e, c = Fo(null);
|
|
9112
|
-
|
|
9112
|
+
vo(() => {
|
|
9113
9113
|
const e = (e) => e.preventDefault();
|
|
9114
9114
|
return c.current?.addEventListener("wheel", e, { passive: !1 }), () => {
|
|
9115
9115
|
c.current?.removeEventListener("wheel", e);
|
|
@@ -9119,7 +9119,7 @@ var Qi = fo(go((e, t) => {
|
|
|
9119
9119
|
h.current = m;
|
|
9120
9120
|
const g = ((e, t) => {
|
|
9121
9121
|
const [o, n] = Do(e);
|
|
9122
|
-
return
|
|
9122
|
+
return vo(() => {
|
|
9123
9123
|
if (e === o) return;
|
|
9124
9124
|
const r = setTimeout(() => n(e), t);
|
|
9125
9125
|
return () => clearTimeout(r);
|
|
@@ -9132,23 +9132,23 @@ var Qi = fo(go((e, t) => {
|
|
|
9132
9132
|
g,
|
|
9133
9133
|
p,
|
|
9134
9134
|
u
|
|
9135
|
-
]), f = g?.cancel, y = g?.done, x = !(!f && !y),
|
|
9135
|
+
]), f = g?.cancel, y = g?.done, x = !(!f && !y), v = Fo(null), [k, w] = Do(null), S = x && k?.message === b;
|
|
9136
9136
|
So(() => {
|
|
9137
|
-
if (!x) return void (
|
|
9137
|
+
if (!x) return void (k && w(null));
|
|
9138
9138
|
if (S) return;
|
|
9139
|
-
const e =
|
|
9139
|
+
const e = v.current, t = c.current;
|
|
9140
9140
|
!e || !t || e.scrollWidth <= e.clientWidth || w({
|
|
9141
9141
|
message: b,
|
|
9142
9142
|
width: t.clientWidth
|
|
9143
9143
|
});
|
|
9144
|
-
}),
|
|
9144
|
+
}), vo(() => {
|
|
9145
9145
|
const e = c.current;
|
|
9146
9146
|
if (!S || !e || "undefined" == typeof ResizeObserver) return;
|
|
9147
9147
|
const t = new ResizeObserver(() => {
|
|
9148
|
-
e.clientWidth >
|
|
9148
|
+
e.clientWidth > k.width && w(null);
|
|
9149
9149
|
});
|
|
9150
9150
|
return t.observe(e), () => t.disconnect();
|
|
9151
|
-
}, [S,
|
|
9151
|
+
}, [S, k]);
|
|
9152
9152
|
const C = Co(() => {
|
|
9153
9153
|
const e = (e) => {
|
|
9154
9154
|
0 === e.button && e.preventDefault();
|
|
@@ -9169,7 +9169,7 @@ var Qi = fo(go((e, t) => {
|
|
|
9169
9169
|
f && mn(Ko, {
|
|
9170
9170
|
"aria-label": "cancel-mode",
|
|
9171
9171
|
color: "warning",
|
|
9172
|
-
icon: mn(
|
|
9172
|
+
icon: mn(kt, { iconKey: "CloseError" }),
|
|
9173
9173
|
propsTooltip: {
|
|
9174
9174
|
label: u("statusBar.cancelMode"),
|
|
9175
9175
|
simple: !0
|
|
@@ -9181,7 +9181,7 @@ var Qi = fo(go((e, t) => {
|
|
|
9181
9181
|
y && mn(Ko, {
|
|
9182
9182
|
"aria-label": "done-mode",
|
|
9183
9183
|
color: "primary",
|
|
9184
|
-
icon: mn(
|
|
9184
|
+
icon: mn(kt, { iconKey: "CheckSuccess" }),
|
|
9185
9185
|
propsTooltip: {
|
|
9186
9186
|
label: u("statusBar.doneMode"),
|
|
9187
9187
|
simple: !0
|
|
@@ -9191,7 +9191,7 @@ var Qi = fo(go((e, t) => {
|
|
|
9191
9191
|
sx: { marginRight: "4px" }
|
|
9192
9192
|
}),
|
|
9193
9193
|
mn(_n, {
|
|
9194
|
-
ref:
|
|
9194
|
+
ref: v,
|
|
9195
9195
|
component: "div",
|
|
9196
9196
|
sx: {
|
|
9197
9197
|
flex: "0 1 auto",
|
|
@@ -9285,8 +9285,8 @@ var Qi = fo(go((e, t) => {
|
|
|
9285
9285
|
}));
|
|
9286
9286
|
Qi.displayName = "StatusBar";
|
|
9287
9287
|
var Yi = fo(go((e, t) => {
|
|
9288
|
-
const { className: o, style: n, disabled: r, names: a, workbook: l, restoreFocus: i, readonly: s = !1, disabled: c, propsCommandPopupButton: d, ...p } = e, u = to(), m = lo(), [h, g] = Do(null), [f, y] = Do(null), [x,
|
|
9289
|
-
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 = to(), m = lo(), [h, g] = Do(null), [f, y] = Do(null), [x, v] = Do(!1), { reference: k } = _t({ parentFloat: d?.parentFloat }), [w, S] = Do(() => s || !l.getProtection().isStructureAllowed()), C = () => h?.text ?? "", [T, F] = Do(C), D = Wt(() => {
|
|
9289
|
+
if (k?.closeAll(), !T) {
|
|
9290
9290
|
const e = C();
|
|
9291
9291
|
return F(C()), e;
|
|
9292
9292
|
}
|
|
@@ -9330,7 +9330,7 @@ var Yi = fo(go((e, t) => {
|
|
|
9330
9330
|
}, [
|
|
9331
9331
|
T,
|
|
9332
9332
|
a,
|
|
9333
|
-
|
|
9333
|
+
k,
|
|
9334
9334
|
w,
|
|
9335
9335
|
u
|
|
9336
9336
|
]), N = Wt(() => {
|
|
@@ -9366,9 +9366,9 @@ var Yi = fo(go((e, t) => {
|
|
|
9366
9366
|
onClose(e) {
|
|
9367
9367
|
B([]);
|
|
9368
9368
|
}
|
|
9369
|
-
}),
|
|
9369
|
+
}), vo(() => {
|
|
9370
9370
|
F(C());
|
|
9371
|
-
}, [h]),
|
|
9371
|
+
}, [h]), vo(() => {
|
|
9372
9372
|
P();
|
|
9373
9373
|
}, [f]), rt(l, {
|
|
9374
9374
|
onProtectionChange: (e) => {
|
|
@@ -9470,7 +9470,7 @@ var Yi = fo(go((e, t) => {
|
|
|
9470
9470
|
M
|
|
9471
9471
|
]), A = Wt(async (e) => {
|
|
9472
9472
|
try {
|
|
9473
|
-
|
|
9473
|
+
k?.closeAll();
|
|
9474
9474
|
const t = a.getItems({ address: e })?.[0];
|
|
9475
9475
|
t && await t?.select(), await l.getRanges(e)?.select({ autoFocus: !0 });
|
|
9476
9476
|
} catch (e) {
|
|
@@ -9482,7 +9482,7 @@ var Yi = fo(go((e, t) => {
|
|
|
9482
9482
|
l
|
|
9483
9483
|
]), L = yo((e) => {
|
|
9484
9484
|
setTimeout(() => {
|
|
9485
|
-
|
|
9485
|
+
v(!0);
|
|
9486
9486
|
}, 0);
|
|
9487
9487
|
const t = {
|
|
9488
9488
|
variant: yt.Menuitem,
|
|
@@ -9620,8 +9620,8 @@ var Yi = fo(go((e, t) => {
|
|
|
9620
9620
|
tabIndex: -1,
|
|
9621
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)))" },
|
|
9622
9622
|
renderPopupPanel: L,
|
|
9623
|
-
onPopupOpen: () =>
|
|
9624
|
-
onPopupClose: () =>
|
|
9623
|
+
onPopupOpen: () => v(!0),
|
|
9624
|
+
onPopupClose: () => v(!1),
|
|
9625
9625
|
renderTooltip: ({ children: e, disabled: t }) => mn(Ho, {
|
|
9626
9626
|
title: t || x ? "" : m("nameBox.title"),
|
|
9627
9627
|
disabled: t,
|
|
@@ -9634,7 +9634,7 @@ var Yi = fo(go((e, t) => {
|
|
|
9634
9634
|
});
|
|
9635
9635
|
}));
|
|
9636
9636
|
Yi.displayName = "NamedCollectionEditor";
|
|
9637
|
-
var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./
|
|
9637
|
+
var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./x76F3LK_C6OLwDc9.mjs"), { select: (e) => ({ default: e.NamedDetailsTaskPane }) }).load), Ji = () => V.registerTaskPane({
|
|
9638
9638
|
key: pe.Names,
|
|
9639
9639
|
component: Xi
|
|
9640
9640
|
}, !0), es = "formula-bar", ts = (e) => {
|
|
@@ -9658,12 +9658,12 @@ var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./lHvI11zfRX3BV9uN.m
|
|
|
9658
9658
|
b(!e.isEditAllowed()), p(e.getCoords());
|
|
9659
9659
|
} }), rt(s, { onProtectionChange() {
|
|
9660
9660
|
s && b(!s.getSelectedCell().isEditAllowed());
|
|
9661
|
-
} }),
|
|
9661
|
+
} }), vo(() => {
|
|
9662
9662
|
if (s && !s.isDeleted()) return s.getRange(d).addListener(() => {
|
|
9663
9663
|
m((e) => e + 1);
|
|
9664
9664
|
});
|
|
9665
9665
|
}, [s, d]);
|
|
9666
|
-
const x = oo(o, (e) => e.getSession()),
|
|
9666
|
+
const x = oo(o, (e) => e.getSession()), v = !!x, w = Wt(() => {
|
|
9667
9667
|
o?.cancel();
|
|
9668
9668
|
}, [o]), S = Wt(() => {
|
|
9669
9669
|
o?.commit();
|
|
@@ -9685,10 +9685,10 @@ var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./lHvI11zfRX3BV9uN.m
|
|
|
9685
9685
|
},
|
|
9686
9686
|
contributor: { dynamic: Ce },
|
|
9687
9687
|
data: T
|
|
9688
|
-
} : null, [T]), D = Co(() =>
|
|
9688
|
+
} : null, [T]), D = Co(() => v || !s ? null : $e(s.getRange(d).getCell()), [
|
|
9689
9689
|
s,
|
|
9690
9690
|
d,
|
|
9691
|
-
|
|
9691
|
+
v,
|
|
9692
9692
|
u
|
|
9693
9693
|
]);
|
|
9694
9694
|
return {
|
|
@@ -9696,7 +9696,7 @@ var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./lHvI11zfRX3BV9uN.m
|
|
|
9696
9696
|
activeCoords: d,
|
|
9697
9697
|
disabled: y,
|
|
9698
9698
|
session: x,
|
|
9699
|
-
isEditing:
|
|
9699
|
+
isEditing: v,
|
|
9700
9700
|
cancel: w,
|
|
9701
9701
|
commit: S,
|
|
9702
9702
|
editorSpec: F,
|
|
@@ -9720,9 +9720,9 @@ var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./lHvI11zfRX3BV9uN.m
|
|
|
9720
9720
|
weight: null
|
|
9721
9721
|
},
|
|
9722
9722
|
alignment: {
|
|
9723
|
-
horizontal:
|
|
9724
|
-
vertical:
|
|
9725
|
-
overflow:
|
|
9723
|
+
horizontal: k.HorizontalAlignment.Left,
|
|
9724
|
+
vertical: k.VerticalAlignment.Top,
|
|
9725
|
+
overflow: k.Overflow.Visible
|
|
9726
9726
|
},
|
|
9727
9727
|
fill: { type: g.Type.None }
|
|
9728
9728
|
} }) : null,
|
|
@@ -9755,7 +9755,7 @@ var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./lHvI11zfRX3BV9uN.m
|
|
|
9755
9755
|
])
|
|
9756
9756
|
};
|
|
9757
9757
|
}, os = "_formula-bar_uer84_1", ns = (e) => mn(Yi, { ...e }), rs = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", as = fo(go((e, t) => {
|
|
9758
|
-
const { className: o, style: n, workbook: r, editable: a, showNamedCollectionEditor: l = !0, propsNamedCollectionEditor: i, renderNamedCollectionEditor: c = ns, 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 = ns, 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 } = ts({
|
|
9759
9759
|
workbook: g,
|
|
9760
9760
|
editable: a,
|
|
9761
9761
|
disabled: d,
|
|
@@ -9807,7 +9807,7 @@ var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./lHvI11zfRX3BV9uN.m
|
|
|
9807
9807
|
outlined: !1,
|
|
9808
9808
|
disabled: !D || D.disabled(),
|
|
9809
9809
|
"aria-label": "calculate-now",
|
|
9810
|
-
icon: mn(
|
|
9810
|
+
icon: mn(kt, { iconKey: "Calculate" }),
|
|
9811
9811
|
propsTooltip: {
|
|
9812
9812
|
label: D?.getLabel() ?? R("statusBar.calculate"),
|
|
9813
9813
|
simple: !0
|
|
@@ -9826,16 +9826,16 @@ var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./lHvI11zfRX3BV9uN.m
|
|
|
9826
9826
|
outlined: !1,
|
|
9827
9827
|
color: "warning",
|
|
9828
9828
|
"aria-label": "cancel-formula-edit",
|
|
9829
|
-
icon: mn(
|
|
9829
|
+
icon: mn(kt, { iconKey: "CloseError" }),
|
|
9830
9830
|
propsTooltip: {
|
|
9831
9831
|
label: R("formulaBar.cancel"),
|
|
9832
9832
|
simple: !0
|
|
9833
9833
|
},
|
|
9834
|
-
disabled: x || !
|
|
9834
|
+
disabled: x || !v,
|
|
9835
9835
|
onMouseDown: (e) => {
|
|
9836
9836
|
0 === e.button && e.preventDefault();
|
|
9837
9837
|
},
|
|
9838
|
-
onClick:
|
|
9838
|
+
onClick: k
|
|
9839
9839
|
}),
|
|
9840
9840
|
mn(Ko, {
|
|
9841
9841
|
sx: {
|
|
@@ -9847,12 +9847,12 @@ var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./lHvI11zfRX3BV9uN.m
|
|
|
9847
9847
|
outlined: !1,
|
|
9848
9848
|
color: "primary",
|
|
9849
9849
|
"aria-label": "commit-formula-edit",
|
|
9850
|
-
icon: mn(
|
|
9850
|
+
icon: mn(kt, { iconKey: "CheckSuccess" }),
|
|
9851
9851
|
propsTooltip: {
|
|
9852
9852
|
label: R("formulaBar.enter"),
|
|
9853
9853
|
simple: !0
|
|
9854
9854
|
},
|
|
9855
|
-
disabled: x || !
|
|
9855
|
+
disabled: x || !v,
|
|
9856
9856
|
onMouseDown: (e) => {
|
|
9857
9857
|
0 === e.button && e.preventDefault();
|
|
9858
9858
|
},
|
|
@@ -9868,7 +9868,7 @@ var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./lHvI11zfRX3BV9uN.m
|
|
|
9868
9868
|
outlined: !1,
|
|
9869
9869
|
disabled: !F || F.disabled(),
|
|
9870
9870
|
"aria-label": "commit-formula-function",
|
|
9871
|
-
icon: mn(
|
|
9871
|
+
icon: mn(kt, {
|
|
9872
9872
|
iconKey: "Function",
|
|
9873
9873
|
style: { transform: "scale(0.85)" }
|
|
9874
9874
|
}),
|
|
@@ -9883,9 +9883,9 @@ var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./lHvI11zfRX3BV9uN.m
|
|
|
9883
9883
|
]
|
|
9884
9884
|
}), [
|
|
9885
9885
|
x,
|
|
9886
|
-
k,
|
|
9887
|
-
F,
|
|
9888
9886
|
v,
|
|
9887
|
+
F,
|
|
9888
|
+
k,
|
|
9889
9889
|
w,
|
|
9890
9890
|
R,
|
|
9891
9891
|
P,
|
|
@@ -9979,7 +9979,7 @@ var Xi = sn(lr("studio:namedDetailsTaskPane", () => import("./lHvI11zfRX3BV9uN.m
|
|
|
9979
9979
|
dense: !0,
|
|
9980
9980
|
outlined: !1,
|
|
9981
9981
|
"aria-label": "toggle-expand-formula-edit",
|
|
9982
|
-
icon: mn(
|
|
9982
|
+
icon: mn(kt, { iconKey: K > 1 ? "ExpandLess" : "ExpandMore" }),
|
|
9983
9983
|
propsTooltip: {
|
|
9984
9984
|
label: R(K > 1 ? "formulaBar.collapse" : "formulaBar.expand"),
|
|
9985
9985
|
simple: !0
|
|
@@ -10086,7 +10086,7 @@ var ls = (e) => mn(Ko, {
|
|
|
10086
10086
|
mn(ls, {
|
|
10087
10087
|
"aria-label": "input-mode-text",
|
|
10088
10088
|
selected: n && "text" === r,
|
|
10089
|
-
icon: mn(
|
|
10089
|
+
icon: mn(kt, { iconKey: "KeyboardLetters" }),
|
|
10090
10090
|
propsTooltip: {
|
|
10091
10091
|
label: u("formulaBar.lettersKeyboard"),
|
|
10092
10092
|
simple: !0
|
|
@@ -10097,7 +10097,7 @@ var ls = (e) => mn(Ko, {
|
|
|
10097
10097
|
mn(ls, {
|
|
10098
10098
|
"aria-label": "input-mode-decimal",
|
|
10099
10099
|
selected: n && "decimal" === r,
|
|
10100
|
-
icon: mn(
|
|
10100
|
+
icon: mn(kt, { iconKey: "KeyboardNumbers" }),
|
|
10101
10101
|
propsTooltip: {
|
|
10102
10102
|
label: u("formulaBar.numbersKeyboard"),
|
|
10103
10103
|
simple: !0
|
|
@@ -10107,7 +10107,7 @@ var ls = (e) => mn(Ko, {
|
|
|
10107
10107
|
}),
|
|
10108
10108
|
mn(ls, {
|
|
10109
10109
|
"aria-label": "insert-date",
|
|
10110
|
-
icon: mn(
|
|
10110
|
+
icon: mn(kt, { iconKey: "KeyboardDate" }),
|
|
10111
10111
|
propsTooltip: {
|
|
10112
10112
|
label: u("formulaBar.dateInput"),
|
|
10113
10113
|
simple: !0
|
|
@@ -10118,7 +10118,7 @@ var ls = (e) => mn(Ko, {
|
|
|
10118
10118
|
mn(bn, { sx: { flex: "1 1 auto" } }),
|
|
10119
10119
|
mn(ls, {
|
|
10120
10120
|
"aria-label": "tab-formula-edit",
|
|
10121
|
-
icon: mn(
|
|
10121
|
+
icon: mn(kt, { iconKey: "KeyboardTab" }),
|
|
10122
10122
|
propsTooltip: {
|
|
10123
10123
|
label: u("formulaBar.tab"),
|
|
10124
10124
|
simple: !0
|
|
@@ -10128,7 +10128,7 @@ var ls = (e) => mn(Ko, {
|
|
|
10128
10128
|
}),
|
|
10129
10129
|
mn(ls, {
|
|
10130
10130
|
"aria-label": "enter-formula-edit",
|
|
10131
|
-
icon: mn(
|
|
10131
|
+
icon: mn(kt, { iconKey: "KeyboardEnter" }),
|
|
10132
10132
|
propsTooltip: {
|
|
10133
10133
|
label: u("formulaBar.enterKey"),
|
|
10134
10134
|
simple: !0
|
|
@@ -10141,7 +10141,7 @@ var ls = (e) => mn(Ko, {
|
|
|
10141
10141
|
mn(ls, {
|
|
10142
10142
|
"aria-label": "cancel-formula-edit",
|
|
10143
10143
|
color: "warning",
|
|
10144
|
-
icon: mn(
|
|
10144
|
+
icon: mn(kt, { iconKey: "CloseError" }),
|
|
10145
10145
|
propsTooltip: {
|
|
10146
10146
|
label: u("formulaBar.cancel"),
|
|
10147
10147
|
simple: !0
|
|
@@ -10152,7 +10152,7 @@ var ls = (e) => mn(Ko, {
|
|
|
10152
10152
|
mn(ls, {
|
|
10153
10153
|
"aria-label": "commit-formula-edit",
|
|
10154
10154
|
color: "primary",
|
|
10155
|
-
icon: mn(
|
|
10155
|
+
icon: mn(kt, { iconKey: "CheckSuccess" }),
|
|
10156
10156
|
propsTooltip: {
|
|
10157
10157
|
label: u("formulaBar.enter"),
|
|
10158
10158
|
simple: !0
|
|
@@ -10182,8 +10182,8 @@ var ss = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10182
10182
|
});
|
|
10183
10183
|
}, ds = ({ elementRef: e }) => (Ht($t(), e), null), ps = fo(go((e, t) => {
|
|
10184
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 = io(), y = f.getInputMode();
|
|
10185
|
-
|
|
10186
|
-
const { sheet: x, activeCoords:
|
|
10185
|
+
vo(() => f.registerEditor(es), [f]);
|
|
10186
|
+
const { sheet: x, activeCoords: v, disabled: k, isEditing: w, cancel: S, commit: C, editorSpec: T, cellEditor: F } = ts({
|
|
10187
10187
|
workbook: g,
|
|
10188
10188
|
editable: a,
|
|
10189
10189
|
disabled: l,
|
|
@@ -10202,7 +10202,7 @@ var ss = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10202
10202
|
return !!e && (!!V.current?.contains(e) || !!O.current?.contains(e));
|
|
10203
10203
|
}
|
|
10204
10204
|
}), []), [H, $] = Do(null);
|
|
10205
|
-
|
|
10205
|
+
vo(() => {
|
|
10206
10206
|
$(V.current);
|
|
10207
10207
|
}, [V]);
|
|
10208
10208
|
const G = () => (s ? O.current : V.current)?.querySelector("textarea") ?? null, U = Fo(-1 / 0), q = Wt((e) => {
|
|
@@ -10212,8 +10212,8 @@ var ss = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10212
10212
|
const o = t.inputMode !== e;
|
|
10213
10213
|
t.inputMode = e, document.activeElement !== t ? t.focus({ preventScroll: !0 }) : !o && Ot() || (U.current = performance.now(), t.blur(), t.focus({ preventScroll: !0 }));
|
|
10214
10214
|
}, [f]), j = Wt(() => {
|
|
10215
|
-
|
|
10216
|
-
}, [
|
|
10215
|
+
k || G()?.focus({ preventScroll: !0 });
|
|
10216
|
+
}, [k]), _ = Wt(() => {
|
|
10217
10217
|
if (performance.now() - U.current < 800) return;
|
|
10218
10218
|
const e = document.activeElement;
|
|
10219
10219
|
e && O.current?.contains(e) && V.current?.focus({ preventScroll: !0 });
|
|
@@ -10260,7 +10260,7 @@ var ss = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10260
10260
|
}, [X]);
|
|
10261
10261
|
let re = null;
|
|
10262
10262
|
if (s) {
|
|
10263
|
-
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;
|
|
10264
10264
|
re = mn(bn, {
|
|
10265
10265
|
className: "formula-bar-display",
|
|
10266
10266
|
sx: {
|
|
@@ -10269,7 +10269,7 @@ var ss = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10269
10269
|
overflow: "hidden",
|
|
10270
10270
|
textOverflow: "ellipsis",
|
|
10271
10271
|
wordBreak: "break-word",
|
|
10272
|
-
color: (e) =>
|
|
10272
|
+
color: (e) => k || o ? e.palette.text.disabled : e.palette.text.primary
|
|
10273
10273
|
},
|
|
10274
10274
|
children: t || o
|
|
10275
10275
|
});
|
|
@@ -10287,7 +10287,7 @@ var ss = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10287
10287
|
children: [mn(cs, {
|
|
10288
10288
|
disabled: !D || D.disabled(),
|
|
10289
10289
|
"aria-label": "commit-formula-function",
|
|
10290
|
-
icon: mn(
|
|
10290
|
+
icon: mn(kt, {
|
|
10291
10291
|
iconKey: "Function",
|
|
10292
10292
|
style: { transform: "scale(0.85)" }
|
|
10293
10293
|
}),
|
|
@@ -10316,8 +10316,8 @@ var ss = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10316
10316
|
boxShadow: "none",
|
|
10317
10317
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
10318
10318
|
backgroundColor: "var(--sxl-color-input, var(--sxl-color-base-100))",
|
|
10319
|
-
border: (e) => `solid ${
|
|
10320
|
-
"& textarea": { color: (e) =>
|
|
10319
|
+
border: (e) => `solid ${k ? e.palette.action.disabled : ss} 1px`,
|
|
10320
|
+
"& textarea": { color: (e) => k ? `${e.palette.text.disabled} !important` : e.palette.text.primary }
|
|
10321
10321
|
},
|
|
10322
10322
|
onFocus: t ? void 0 : () => R(!0),
|
|
10323
10323
|
onBlur: t ? void 0 : () => R(!1),
|
|
@@ -10332,7 +10332,7 @@ var ss = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10332
10332
|
justifyContent: "center",
|
|
10333
10333
|
alignSelf: "center",
|
|
10334
10334
|
overflow: "hidden",
|
|
10335
|
-
cursor: t && !
|
|
10335
|
+
cursor: t && !k ? "text" : void 0
|
|
10336
10336
|
},
|
|
10337
10337
|
style: { height: 20 * M + "px" },
|
|
10338
10338
|
onClick: t ? j : void 0,
|
|
@@ -10340,7 +10340,7 @@ var ss = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10340
10340
|
}),
|
|
10341
10341
|
mn(cs, {
|
|
10342
10342
|
"aria-label": "toggle-expand-formula-edit",
|
|
10343
|
-
icon: mn(
|
|
10343
|
+
icon: mn(kt, { iconKey: I ? "ExpandMore" : "ExpandLess" }),
|
|
10344
10344
|
propsTooltip: {
|
|
10345
10345
|
label: N(I ? "formulaBar.collapse" : "formulaBar.expand"),
|
|
10346
10346
|
simple: !0
|
|
@@ -10381,7 +10381,7 @@ var ss = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10381
10381
|
}),
|
|
10382
10382
|
mn(is, {
|
|
10383
10383
|
isEditing: w,
|
|
10384
|
-
disabled:
|
|
10384
|
+
disabled: k,
|
|
10385
10385
|
keyboardShown: f.isActive(),
|
|
10386
10386
|
inputMode: y,
|
|
10387
10387
|
showCancelCommit: i,
|
|
@@ -10448,7 +10448,7 @@ var ss = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
10448
10448
|
});
|
|
10449
10449
|
}));
|
|
10450
10450
|
ps.displayName = "MobileFormulaBar";
|
|
10451
|
-
var us = sn(lr("studio:externalLinksTaskPane", () => import("./
|
|
10451
|
+
var us = sn(lr("studio:externalLinksTaskPane", () => import("./BgQGprc6dXTM_z0v.mjs"), { select: (e) => ({ default: e.ExternalLinksTaskPane }) }).load), ms = () => V.registerTaskPane({
|
|
10452
10452
|
key: pe.ExternalLinks,
|
|
10453
10453
|
component: us
|
|
10454
10454
|
}, !0), hs = {
|
|
@@ -10586,7 +10586,7 @@ var us = sn(lr("studio:externalLinksTaskPane", () => import("./BJYaCliDBm8LmZWp.
|
|
|
10586
10586
|
onClick: (e) => {
|
|
10587
10587
|
e.stopPropagation(), i(e.currentTarget);
|
|
10588
10588
|
},
|
|
10589
|
-
children: mn(
|
|
10589
|
+
children: mn(kt, {
|
|
10590
10590
|
style: { transform: "scale(0.85)" },
|
|
10591
10591
|
iconKey: "MoreHorizontal"
|
|
10592
10592
|
})
|
|
@@ -10624,9 +10624,9 @@ var us = sn(lr("studio:externalLinksTaskPane", () => import("./BJYaCliDBm8LmZWp.
|
|
|
10624
10624
|
})]
|
|
10625
10625
|
});
|
|
10626
10626
|
}, ys = fo((e) => {
|
|
10627
|
-
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 = lo(), h = to(), g = Ye(n), b = Mt(Zt()?.themeScope), [f, y] = Do(null), [x,
|
|
10628
|
-
|
|
10629
|
-
r &&
|
|
10627
|
+
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 = lo(), h = to(), g = Ye(n), b = Mt(Zt()?.themeScope), [f, y] = Do(null), [x, v] = Do(null), k = Fo(null);
|
|
10628
|
+
vo(() => {
|
|
10629
|
+
r && k.current?.focus();
|
|
10630
10630
|
}, [r]);
|
|
10631
10631
|
const w = (e) => {
|
|
10632
10632
|
try {
|
|
@@ -10654,7 +10654,7 @@ var us = sn(lr("studio:externalLinksTaskPane", () => import("./BJYaCliDBm8LmZWp.
|
|
|
10654
10654
|
borderColor: "divider"
|
|
10655
10655
|
},
|
|
10656
10656
|
children: [
|
|
10657
|
-
mn(
|
|
10657
|
+
mn(kt, {
|
|
10658
10658
|
style: { transform: "scale(0.85)" },
|
|
10659
10659
|
iconKey: "Check"
|
|
10660
10660
|
}),
|
|
@@ -10675,7 +10675,7 @@ var us = sn(lr("studio:externalLinksTaskPane", () => import("./BJYaCliDBm8LmZWp.
|
|
|
10675
10675
|
onClick: () => w(() => {
|
|
10676
10676
|
n.setResolved(!1);
|
|
10677
10677
|
}),
|
|
10678
|
-
children: mn(
|
|
10678
|
+
children: mn(kt, {
|
|
10679
10679
|
style: { transform: "scale(0.85)" },
|
|
10680
10680
|
iconKey: "Undo"
|
|
10681
10681
|
})
|
|
@@ -10692,7 +10692,7 @@ var us = sn(lr("studio:externalLinksTaskPane", () => import("./BJYaCliDBm8LmZWp.
|
|
|
10692
10692
|
onClick: () => w(() => {
|
|
10693
10693
|
n.delete();
|
|
10694
10694
|
}),
|
|
10695
|
-
children: mn(
|
|
10695
|
+
children: mn(kt, {
|
|
10696
10696
|
style: { transform: "scale(0.85)" },
|
|
10697
10697
|
iconKey: "Delete"
|
|
10698
10698
|
})
|
|
@@ -10753,7 +10753,7 @@ var us = sn(lr("studio:externalLinksTaskPane", () => import("./BJYaCliDBm8LmZWp.
|
|
|
10753
10753
|
editor: f && null === f.replyId ? R(g.content, (e) => {
|
|
10754
10754
|
n.setContent(e);
|
|
10755
10755
|
}) : void 0,
|
|
10756
|
-
onMenu: I ? void 0 : (e) =>
|
|
10756
|
+
onMenu: I ? void 0 : (e) => v({
|
|
10757
10757
|
anchor: e,
|
|
10758
10758
|
replyId: null
|
|
10759
10759
|
})
|
|
@@ -10774,7 +10774,7 @@ var us = sn(lr("studio:externalLinksTaskPane", () => import("./BJYaCliDBm8LmZWp.
|
|
|
10774
10774
|
editor: f?.replyId === e.getId() ? R(e.getContent(), (t) => {
|
|
10775
10775
|
e.setContent(t);
|
|
10776
10776
|
}) : void 0,
|
|
10777
|
-
onMenu: I ? void 0 : (t) =>
|
|
10777
|
+
onMenu: I ? void 0 : (t) => v({
|
|
10778
10778
|
anchor: t,
|
|
10779
10779
|
replyId: e.getId()
|
|
10780
10780
|
})
|
|
@@ -10792,7 +10792,7 @@ var us = sn(lr("studio:externalLinksTaskPane", () => import("./BJYaCliDBm8LmZWp.
|
|
|
10792
10792
|
submitLabel: m(hs.post),
|
|
10793
10793
|
cancelLabel: m(hs.cancel),
|
|
10794
10794
|
alwaysShowActions: !0,
|
|
10795
|
-
refInput:
|
|
10795
|
+
refInput: k,
|
|
10796
10796
|
onSubmit: (e) => {
|
|
10797
10797
|
w(() => {
|
|
10798
10798
|
const n = t.getComments().add(tr.cellToRange(o), e);
|
|
@@ -10805,7 +10805,7 @@ var us = sn(lr("studio:externalLinksTaskPane", () => import("./BJYaCliDBm8LmZWp.
|
|
|
10805
10805
|
placeholder: m(hs.reply),
|
|
10806
10806
|
submitLabel: m(hs.post),
|
|
10807
10807
|
cancelLabel: m(hs.cancel),
|
|
10808
|
-
refInput:
|
|
10808
|
+
refInput: k,
|
|
10809
10809
|
onSubmit: (e) => w(() => {
|
|
10810
10810
|
n.addReply(e);
|
|
10811
10811
|
})
|
|
@@ -10815,33 +10815,33 @@ var us = sn(lr("studio:externalLinksTaskPane", () => import("./BJYaCliDBm8LmZWp.
|
|
|
10815
10815
|
anchorEl: x.anchor,
|
|
10816
10816
|
className: b.className,
|
|
10817
10817
|
...b.attrs,
|
|
10818
|
-
onClose: () =>
|
|
10818
|
+
onClose: () => v(null),
|
|
10819
10819
|
onClick: (e) => {
|
|
10820
10820
|
e.stopPropagation();
|
|
10821
10821
|
},
|
|
10822
10822
|
children: [
|
|
10823
10823
|
mn(Wo, {
|
|
10824
|
-
icon: mn(
|
|
10824
|
+
icon: mn(kt, { iconKey: "CardEdit" }),
|
|
10825
10825
|
onClick: () => {
|
|
10826
|
-
y({ replyId: x.replyId }),
|
|
10826
|
+
y({ replyId: x.replyId }), v(null);
|
|
10827
10827
|
},
|
|
10828
10828
|
children: m(hs.edit)
|
|
10829
10829
|
}),
|
|
10830
10830
|
null === x.replyId ? mn(Wo, {
|
|
10831
|
-
icon: mn(
|
|
10831
|
+
icon: mn(kt, { iconKey: g?.resolved ? "Undo" : "Check" }),
|
|
10832
10832
|
onClick: () => {
|
|
10833
10833
|
w(() => {
|
|
10834
10834
|
n.setResolved(!n.isResolved());
|
|
10835
|
-
}),
|
|
10835
|
+
}), v(null);
|
|
10836
10836
|
},
|
|
10837
10837
|
children: m(g?.resolved ? hs.reopen : hs.resolve)
|
|
10838
10838
|
}) : null,
|
|
10839
10839
|
mn(Wo, {
|
|
10840
|
-
icon: mn(
|
|
10840
|
+
icon: mn(kt, { iconKey: "Delete" }),
|
|
10841
10841
|
onClick: () => {
|
|
10842
10842
|
w(() => {
|
|
10843
10843
|
null === x.replyId ? n.delete() : P?.delete();
|
|
10844
|
-
}),
|
|
10844
|
+
}), v(null);
|
|
10845
10845
|
},
|
|
10846
10846
|
children: m(hs.delete)
|
|
10847
10847
|
})
|
|
@@ -10851,12 +10851,12 @@ var us = sn(lr("studio:externalLinksTaskPane", () => import("./BJYaCliDBm8LmZWp.
|
|
|
10851
10851
|
});
|
|
10852
10852
|
});
|
|
10853
10853
|
ys.displayName = "CommentCard";
|
|
10854
|
-
var xs = sn(lr("studio:commentsTaskPane", () => import("./
|
|
10854
|
+
var xs = sn(lr("studio:commentsTaskPane", () => import("./CHtcaCt89IhdaS8X.mjs"), { select: (e) => ({ default: e.CommentsTaskPane }) }).load), vs = () => V.registerTaskPane({
|
|
10855
10855
|
key: pe.Comments,
|
|
10856
10856
|
component: xs
|
|
10857
|
-
}, !0),
|
|
10857
|
+
}, !0), ks = "anomalies", ws = "anomalies", Ss = "showAnomaliesPane", Cs = fo((e) => {
|
|
10858
10858
|
const { scope: t } = e, o = dt(), n = o.getOpen().includes(ws);
|
|
10859
|
-
return
|
|
10859
|
+
return vo(() => {
|
|
10860
10860
|
if (!t) return;
|
|
10861
10861
|
const e = t.contribution();
|
|
10862
10862
|
return e.updateCommand(Ss, {
|
|
@@ -10875,9 +10875,9 @@ var xs = sn(lr("studio:commentsTaskPane", () => import("./HTk99NQ6xaWtPNfO.mjs")
|
|
|
10875
10875
|
]), null;
|
|
10876
10876
|
});
|
|
10877
10877
|
Cs.displayName = "AnomaliesCommands";
|
|
10878
|
-
var Ts = sn(lr("studio:anomaliesTaskPane", () => import("./
|
|
10878
|
+
var Ts = sn(lr("studio:anomaliesTaskPane", () => import("./BL9qi-st6Jzmdr3l.mjs"), { select: (e) => ({ default: e.AnomaliesTaskPane }) }).load), Fs = (e) => e.source === ks, Ds = "anomalies.showPane.review", Ns = () => {
|
|
10879
10879
|
Fr();
|
|
10880
|
-
const e = bt.DefaultCommandRegistry.registerDynamic("workbook", Cs), t =
|
|
10880
|
+
const e = bt.DefaultCommandRegistry.registerDynamic("workbook", Cs), t = vt.register({
|
|
10881
10881
|
key: Ds,
|
|
10882
10882
|
defaultKey: Ss,
|
|
10883
10883
|
contributions: { reviewToolbar: {
|
|
@@ -10906,11 +10906,11 @@ function Rs() {
|
|
|
10906
10906
|
var Ms = ({ activity: e, children: t }) => {
|
|
10907
10907
|
Rs();
|
|
10908
10908
|
const o = Jn(), [n, r] = Do(0), a = Fo(e), l = Fo(0), i = Fo(null);
|
|
10909
|
-
return
|
|
10909
|
+
return vo(() => {
|
|
10910
10910
|
if (e === a.current) return;
|
|
10911
10911
|
const t = Date.now(), o = t - l.current > 3e3;
|
|
10912
10912
|
l.current = t, o && (r(e), i.current && clearTimeout(i.current), i.current = setTimeout(() => r(0), 1400));
|
|
10913
|
-
}, [e]),
|
|
10913
|
+
}, [e]), vo(() => () => {
|
|
10914
10914
|
i.current && clearTimeout(i.current);
|
|
10915
10915
|
}, []), mn(bn, {
|
|
10916
10916
|
sx: {
|
|
@@ -10956,7 +10956,7 @@ var Ms = ({ activity: e, children: t }) => {
|
|
|
10956
10956
|
dense: !0,
|
|
10957
10957
|
...Os,
|
|
10958
10958
|
"aria-label": e,
|
|
10959
|
-
icon: mn(
|
|
10959
|
+
icon: mn(kt, {
|
|
10960
10960
|
iconKey: t,
|
|
10961
10961
|
size: 16
|
|
10962
10962
|
}),
|
|
@@ -10990,9 +10990,9 @@ var Ms = ({ activity: e, children: t }) => {
|
|
|
10990
10990
|
}), Ws = ({ store: e }) => {
|
|
10991
10991
|
Rs();
|
|
10992
10992
|
const t = it(e), o = lo(), [n, r] = Do(!1), [a, l] = Do(!1), i = Fo(null), { status: s, navigable: c, position: d, needsAttention: p, working: u } = t, m = c.length, h = m > 0 && (n || a), g = h || m > 0 || p || !!u;
|
|
10993
|
-
|
|
10993
|
+
vo(() => {
|
|
10994
10994
|
0 === m && r(!1);
|
|
10995
|
-
}, [m]),
|
|
10995
|
+
}, [m]), vo(() => () => {
|
|
10996
10996
|
i.current && clearTimeout(i.current);
|
|
10997
10997
|
}, []);
|
|
10998
10998
|
return hn(bn, {
|
|
@@ -11154,7 +11154,7 @@ var Ms = ({ activity: e, children: t }) => {
|
|
|
11154
11154
|
height: 18
|
|
11155
11155
|
}
|
|
11156
11156
|
},
|
|
11157
|
-
children: mn(
|
|
11157
|
+
children: mn(kt, { iconKey: "Help" })
|
|
11158
11158
|
})
|
|
11159
11159
|
})
|
|
11160
11160
|
})
|
|
@@ -11237,7 +11237,7 @@ var Ms = ({ activity: e, children: t }) => {
|
|
|
11237
11237
|
ml: .5,
|
|
11238
11238
|
mt: .25
|
|
11239
11239
|
},
|
|
11240
|
-
children: mn(
|
|
11240
|
+
children: mn(kt, {
|
|
11241
11241
|
iconKey: s ? "ExpandLess" : "ExpandMore",
|
|
11242
11242
|
size: 16,
|
|
11243
11243
|
ariaHidden: !0
|
|
@@ -11279,7 +11279,7 @@ var Ms = ({ activity: e, children: t }) => {
|
|
|
11279
11279
|
},
|
|
11280
11280
|
children: u
|
|
11281
11281
|
})
|
|
11282
|
-
}), d ? mn(
|
|
11282
|
+
}), d ? mn(vn, {
|
|
11283
11283
|
in: s,
|
|
11284
11284
|
unmountOnExit: !0,
|
|
11285
11285
|
children: mn(bn, {
|
|
@@ -11324,7 +11324,7 @@ var Ms = ({ activity: e, children: t }) => {
|
|
|
11324
11324
|
fontVariantNumeric: "tabular-nums",
|
|
11325
11325
|
opacity: "stale" === e.finding.status ? .5 : 1
|
|
11326
11326
|
},
|
|
11327
|
-
children: e.ordinal > 0 ? e.ordinal : mn(
|
|
11327
|
+
children: e.ordinal > 0 ? e.ordinal : mn(kt, {
|
|
11328
11328
|
iconKey: "question" === e.finding.intent ? "Help" : "CheckSuccess",
|
|
11329
11329
|
size: 14,
|
|
11330
11330
|
ariaHidden: !0
|
|
@@ -11336,7 +11336,7 @@ function js(e) {
|
|
|
11336
11336
|
}
|
|
11337
11337
|
var _s = ({ item: e, isCurrent: t, onSelect: o, onDismiss: n }) => {
|
|
11338
11338
|
const r = lo(), { finding: a } = e;
|
|
11339
|
-
return mn(
|
|
11339
|
+
return mn(vi, {
|
|
11340
11340
|
className: "sxl-agent-finding",
|
|
11341
11341
|
item: e,
|
|
11342
11342
|
messageKeys: $s,
|
|
@@ -11539,7 +11539,7 @@ var _s = ({ item: e, isCurrent: t, onSelect: o, onDismiss: n }) => {
|
|
|
11539
11539
|
at: e.timestamp,
|
|
11540
11540
|
commit: e
|
|
11541
11541
|
}))].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]));
|
|
11542
|
-
return hn(un, { children: [mn(
|
|
11542
|
+
return hn(un, { children: [mn(ki, {
|
|
11543
11543
|
value: l,
|
|
11544
11544
|
onChange: i,
|
|
11545
11545
|
placeholder: t(ee.historySearch),
|
|
@@ -11620,7 +11620,7 @@ var _s = ({ item: e, isCurrent: t, onSelect: o, onDismiss: n }) => {
|
|
|
11620
11620
|
rc.displayName = "PresenceTaskPane";
|
|
11621
11621
|
var ac = ({ store: e }) => {
|
|
11622
11622
|
const { prompt: t, working: o, workbook: n } = it(e), r = !!o;
|
|
11623
|
-
return
|
|
11623
|
+
return vo(() => {
|
|
11624
11624
|
if (!r || t) return;
|
|
11625
11625
|
const o = (t) => {
|
|
11626
11626
|
if ("Escape" !== t.key || t.defaultPrevented) return;
|
|
@@ -11690,7 +11690,7 @@ var sc = fo((e) => {
|
|
|
11690
11690
|
value: s ?? t?.getName() ?? "null",
|
|
11691
11691
|
label: p,
|
|
11692
11692
|
readOnly: l,
|
|
11693
|
-
IconComponent: (e) => mn(
|
|
11693
|
+
IconComponent: (e) => mn(kt, {
|
|
11694
11694
|
iconKey: "ExpandMore",
|
|
11695
11695
|
...e
|
|
11696
11696
|
}),
|
|
@@ -11740,7 +11740,7 @@ var cc = 0, dc = /* @__PURE__ */ new WeakMap(), pc = (e) => {
|
|
|
11740
11740
|
const o = t.getAcceptsTypes?.();
|
|
11741
11741
|
return !o || o.includes(l);
|
|
11742
11742
|
}).sort(yc(o));
|
|
11743
|
-
},
|
|
11743
|
+
}, vc = (e, t, o, n) => {
|
|
11744
11744
|
const r = yc(n), a = /* @__PURE__ */ new Map();
|
|
11745
11745
|
for (const t of e) {
|
|
11746
11746
|
const e = bc.get(t);
|
|
@@ -11754,16 +11754,16 @@ var cc = 0, dc = /* @__PURE__ */ new WeakMap(), pc = (e) => {
|
|
|
11754
11754
|
sx: wc,
|
|
11755
11755
|
children: e
|
|
11756
11756
|
}, `__header:${e}`)), o.forEach((e) => s.push(t(e)));
|
|
11757
|
-
return a.size > 0 && l.length > 0 && s.push(mn(
|
|
11757
|
+
return a.size > 0 && l.length > 0 && s.push(mn(kn, {}, "__divider:grouped")), l.length > 0 && (s.push(mn(An, {
|
|
11758
11758
|
disableSticky: !0,
|
|
11759
11759
|
sx: wc,
|
|
11760
11760
|
children: o("condition.groupBasic")
|
|
11761
|
-
}, "__header:leaf")), l.forEach((e) => s.push(t(e)))), l.length > 0 && i.length > 0 && s.push(mn(
|
|
11761
|
+
}, "__header:leaf")), l.forEach((e) => s.push(t(e)))), l.length > 0 && i.length > 0 && s.push(mn(kn, {}, "__divider")), i.length > 0 && (s.push(mn(An, {
|
|
11762
11762
|
disableSticky: !0,
|
|
11763
11763
|
sx: wc,
|
|
11764
11764
|
children: o("condition.groupCombine")
|
|
11765
11765
|
}, "__header:combinator")), i.forEach((e) => s.push(t(e)))), s;
|
|
11766
|
-
},
|
|
11766
|
+
}, kc = (e, t, o = null, n) => {
|
|
11767
11767
|
if (!e.isCombinator?.()) return e.createDefaultParam?.(o ?? void 0, n) ?? null;
|
|
11768
11768
|
const r = t.find((e) => !e.isCombinator?.()) ?? null, a = r ? {
|
|
11769
11769
|
operator: r.getName(),
|
|
@@ -11781,11 +11781,11 @@ var cc = 0, dc = /* @__PURE__ */ new WeakMap(), pc = (e) => {
|
|
|
11781
11781
|
}, Sc = { pl: 2 }, Cc = fo(go((e, t) => {
|
|
11782
11782
|
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 = lo(), h = Yt();
|
|
11783
11783
|
d ?? m("condition.operatorTitle");
|
|
11784
|
-
const g = o || mn(
|
|
11784
|
+
const g = o || mn(kt, { iconKey: "Add" }), b = Fo(c);
|
|
11785
11785
|
b.current = c;
|
|
11786
11786
|
const f = {
|
|
11787
11787
|
renderPopupPanel: yo((e) => {
|
|
11788
|
-
const { closeFloatAll: t } = e, o =
|
|
11788
|
+
const { closeFloatAll: t } = e, o = vc(s, (e) => mn(Kn, {
|
|
11789
11789
|
sx: Sc,
|
|
11790
11790
|
value: e.getName(),
|
|
11791
11791
|
onClick: () => {
|
|
@@ -11829,7 +11829,7 @@ var cc = 0, dc = /* @__PURE__ */ new WeakMap(), pc = (e) => {
|
|
|
11829
11829
|
o.forEach((e) => {
|
|
11830
11830
|
d.set(e.getName(), e);
|
|
11831
11831
|
});
|
|
11832
|
-
const p =
|
|
11832
|
+
const p = vc(o, (e) => mn(Kn, {
|
|
11833
11833
|
value: e.getName(),
|
|
11834
11834
|
sx: Sc,
|
|
11835
11835
|
children: e.getTitle?.()
|
|
@@ -11841,7 +11841,7 @@ var cc = 0, dc = /* @__PURE__ */ new WeakMap(), pc = (e) => {
|
|
|
11841
11841
|
value: t?.getName() ?? "null",
|
|
11842
11842
|
label: c,
|
|
11843
11843
|
readOnly: a,
|
|
11844
|
-
IconComponent: (e) => mn(
|
|
11844
|
+
IconComponent: (e) => mn(kt, {
|
|
11845
11845
|
iconKey: "ExpandMore",
|
|
11846
11846
|
...e
|
|
11847
11847
|
}),
|
|
@@ -12099,7 +12099,7 @@ var Wc = {}, zc = fo((e) => {
|
|
|
12099
12099
|
children: hn(zn, {
|
|
12100
12100
|
value: i,
|
|
12101
12101
|
sx: c,
|
|
12102
|
-
IconComponent: (e) => mn(
|
|
12102
|
+
IconComponent: (e) => mn(kt, {
|
|
12103
12103
|
iconKey: "ExpandMore",
|
|
12104
12104
|
...e
|
|
12105
12105
|
}),
|
|
@@ -12298,7 +12298,7 @@ var Vc = fo((e) => {
|
|
|
12298
12298
|
children: mn(zn, {
|
|
12299
12299
|
value: l,
|
|
12300
12300
|
sx: { backgroundColor: "background.paper" },
|
|
12301
|
-
IconComponent: (e) => mn(
|
|
12301
|
+
IconComponent: (e) => mn(kt, {
|
|
12302
12302
|
iconKey: "ExpandMore",
|
|
12303
12303
|
...e
|
|
12304
12304
|
}),
|
|
@@ -12312,7 +12312,7 @@ var Vc = fo((e) => {
|
|
|
12312
12312
|
disabled: n,
|
|
12313
12313
|
children: a.map((e, t) => {
|
|
12314
12314
|
const o = [];
|
|
12315
|
-
return t > 0 && o.push(mn(
|
|
12315
|
+
return t > 0 && o.push(mn(kn, {}, `divider-${t}`)), o.push(mn(An, {
|
|
12316
12316
|
sx: wc,
|
|
12317
12317
|
children: e.header
|
|
12318
12318
|
}, `header-${t}`)), e.options.map((e) => o.push(mn(Kn, {
|
|
@@ -12343,7 +12343,7 @@ var Hc = fo((e) => {
|
|
|
12343
12343
|
children: hn(zn, {
|
|
12344
12344
|
value: l ? "top" : "bottom",
|
|
12345
12345
|
sx: { backgroundColor: "background.paper" },
|
|
12346
|
-
IconComponent: (e) => mn(
|
|
12346
|
+
IconComponent: (e) => mn(kt, {
|
|
12347
12347
|
iconKey: "ExpandMore",
|
|
12348
12348
|
...e
|
|
12349
12349
|
}),
|
|
@@ -12383,7 +12383,7 @@ var Hc = fo((e) => {
|
|
|
12383
12383
|
children: hn(zn, {
|
|
12384
12384
|
value: s ? "percent" : "items",
|
|
12385
12385
|
sx: { backgroundColor: "background.paper" },
|
|
12386
|
-
IconComponent: (e) => mn(
|
|
12386
|
+
IconComponent: (e) => mn(kt, {
|
|
12387
12387
|
iconKey: "ExpandMore",
|
|
12388
12388
|
...e
|
|
12389
12389
|
}),
|
|
@@ -12519,7 +12519,7 @@ var Uc = "\0blank", qc = (e) => "string" == typeof e ? "s:" + e.toLowerCase() :
|
|
|
12519
12519
|
const { onOptionChange: t, getItems: o, selector: n, onSelectorChange: r, ignoreBlank: a = !1, readOnly: l, sx: i, propsChecklist: s } = e, { onWholeChange: c, ...d } = s ?? {}, p = lo(), u = n?.getName() === Qc, [m, h] = Do(null), [g, b] = Do(() => /* @__PURE__ */ new Set()), f = Fo(null), y = Fo(t);
|
|
12520
12520
|
y.current = t;
|
|
12521
12521
|
const x = Fo(c);
|
|
12522
|
-
x.current = c,
|
|
12522
|
+
x.current = c, vo(() => {
|
|
12523
12523
|
let e = !0;
|
|
12524
12524
|
return o({ selector: u ? Qc : null }).then((t) => {
|
|
12525
12525
|
if (!e) return;
|
|
@@ -12531,7 +12531,7 @@ var Uc = "\0blank", qc = (e) => "string" == typeof e ? "s:" + e.toLowerCase() :
|
|
|
12531
12531
|
}), () => {
|
|
12532
12532
|
e = !1;
|
|
12533
12533
|
};
|
|
12534
|
-
}, [o, u]),
|
|
12534
|
+
}, [o, u]), vo(() => {
|
|
12535
12535
|
if (!m) return;
|
|
12536
12536
|
y.current(Zc(m, g, u));
|
|
12537
12537
|
let e = !m.truncated;
|
|
@@ -12544,7 +12544,7 @@ var Uc = "\0blank", qc = (e) => "string" == typeof e ? "s:" + e.toLowerCase() :
|
|
|
12544
12544
|
u,
|
|
12545
12545
|
a
|
|
12546
12546
|
]);
|
|
12547
|
-
const
|
|
12547
|
+
const v = Co(() => {
|
|
12548
12548
|
if (!m) return [];
|
|
12549
12549
|
const e = ((e, t, o) => {
|
|
12550
12550
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -12575,7 +12575,7 @@ var Uc = "\0blank", qc = (e) => "string" == typeof e ? "s:" + e.toLowerCase() :
|
|
|
12575
12575
|
u,
|
|
12576
12576
|
a,
|
|
12577
12577
|
p
|
|
12578
|
-
]),
|
|
12578
|
+
]), k = yo((e, t) => {
|
|
12579
12579
|
l || b((o) => {
|
|
12580
12580
|
const n = new Set(o);
|
|
12581
12581
|
for (const o of e) t ? n.add(o) : n.delete(o);
|
|
@@ -12606,10 +12606,10 @@ var Uc = "\0blank", qc = (e) => "string" == typeof e ? "s:" + e.toLowerCase() :
|
|
|
12606
12606
|
...i
|
|
12607
12607
|
},
|
|
12608
12608
|
children: mn(ge, {
|
|
12609
|
-
items:
|
|
12609
|
+
items: v,
|
|
12610
12610
|
dates: m?.dates,
|
|
12611
12611
|
checked: g,
|
|
12612
|
-
onCheckedChange:
|
|
12612
|
+
onCheckedChange: k,
|
|
12613
12613
|
byDisplay: u,
|
|
12614
12614
|
onByDisplayChange: r ? w : void 0,
|
|
12615
12615
|
truncated: m?.truncated ?? !1,
|
|
@@ -12631,14 +12631,14 @@ var Xc = (e) => null == e ? "" : "boolean" == typeof e ? e ? "TRUE" : "FALSE" :
|
|
|
12631
12631
|
}
|
|
12632
12632
|
if (g) for (let t = 0; t < g.length; t++) e.push(g[t]);
|
|
12633
12633
|
return e;
|
|
12634
|
-
}, [m, g]), [
|
|
12635
|
-
|
|
12636
|
-
if (!d?.getListItemsAt || !c) return void
|
|
12634
|
+
}, [m, g]), [v, k] = Do(null), w = Fo(0);
|
|
12635
|
+
vo(() => {
|
|
12636
|
+
if (!d?.getListItemsAt || !c) return void k(null);
|
|
12637
12637
|
const e = ++w.current, { rowIndex: t, colIndex: o } = Bc(c);
|
|
12638
12638
|
d.getListItemsAt(t, o).then((t) => {
|
|
12639
|
-
e === w.current &&
|
|
12639
|
+
e === w.current && k(t);
|
|
12640
12640
|
}, () => {
|
|
12641
|
-
e === w.current &&
|
|
12641
|
+
e === w.current && k([]);
|
|
12642
12642
|
});
|
|
12643
12643
|
}, [
|
|
12644
12644
|
d,
|
|
@@ -12651,9 +12651,9 @@ var Xc = (e) => null == e ? "" : "boolean" == typeof e ? e ? "TRUE" : "FALSE" :
|
|
|
12651
12651
|
]);
|
|
12652
12652
|
const S = Co(() => {
|
|
12653
12653
|
const e = [];
|
|
12654
|
-
if (
|
|
12655
|
-
for (let t = 0; t <
|
|
12656
|
-
const o =
|
|
12654
|
+
if (v) {
|
|
12655
|
+
for (let t = 0; t < v.length; t++) {
|
|
12656
|
+
const o = v[t];
|
|
12657
12657
|
null !== o.value ? e.push({ text: o.text }) : n || e.push({ text: s("checklist.blank") });
|
|
12658
12658
|
}
|
|
12659
12659
|
return e;
|
|
@@ -12661,7 +12661,7 @@ var Xc = (e) => null == e ? "" : "boolean" == typeof e ? e ? "TRUE" : "FALSE" :
|
|
|
12661
12661
|
for (let t = 0; t < x.length; t++) e.push({ text: x[t] });
|
|
12662
12662
|
return f && !n && e.push({ text: s("checklist.blank") }), e;
|
|
12663
12663
|
}, [
|
|
12664
|
-
|
|
12664
|
+
v,
|
|
12665
12665
|
x,
|
|
12666
12666
|
f,
|
|
12667
12667
|
n,
|
|
@@ -12811,7 +12811,7 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12811
12811
|
td.Before,
|
|
12812
12812
|
td.BeforeEqualTo
|
|
12813
12813
|
]), nd = fo((e) => {
|
|
12814
|
-
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 = lo(), y = p ?? f("condition.when"), x = t?.operator ?? null,
|
|
12814
|
+
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 = lo(), y = p ?? f("condition.when"), x = t?.operator ?? null, v = () => h || g || null === r ? null : r ? mn(Ft, {
|
|
12815
12815
|
render: r,
|
|
12816
12816
|
props: {
|
|
12817
12817
|
onClick: n,
|
|
@@ -12819,10 +12819,10 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12819
12819
|
readOnly: h
|
|
12820
12820
|
}
|
|
12821
12821
|
}) : mn(Ko, {
|
|
12822
|
-
icon: mn(
|
|
12822
|
+
icon: mn(kt, { iconKey: "Close" }),
|
|
12823
12823
|
onClick: n
|
|
12824
|
-
}),
|
|
12825
|
-
|
|
12824
|
+
}), k = a.find((e) => e.getName() === x) ?? null, w = t?.param ?? null, S = !!k?.isCombinator?.(), C = x === m.BuiltInOperatorNames.InSet, [T, { width: F }] = Jt(), D = Co(() => !k || S ? null : k.getParamType?.(l ?? void 0) ?? null, [
|
|
12825
|
+
k,
|
|
12826
12826
|
S,
|
|
12827
12827
|
l
|
|
12828
12828
|
]), N = u || !S && !C && F > 360, I = Wt((e) => {
|
|
@@ -12831,7 +12831,7 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12831
12831
|
param: e
|
|
12832
12832
|
});
|
|
12833
12833
|
}, [o, x]), B = Co(() => {
|
|
12834
|
-
if (!
|
|
12834
|
+
if (!k || S) return null;
|
|
12835
12835
|
const e = {
|
|
12836
12836
|
sx: {
|
|
12837
12837
|
flex: u ? 1 : .6,
|
|
@@ -12882,7 +12882,7 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12882
12882
|
selector: l
|
|
12883
12883
|
}) : D === m.BuiltInOperatorNames.Expression ? mn(Gc, { ...e }) : null;
|
|
12884
12884
|
}, [
|
|
12885
|
-
|
|
12885
|
+
k,
|
|
12886
12886
|
S,
|
|
12887
12887
|
C,
|
|
12888
12888
|
s,
|
|
@@ -12895,14 +12895,14 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12895
12895
|
i,
|
|
12896
12896
|
u,
|
|
12897
12897
|
f
|
|
12898
|
-
]), P = Co(() => S && w ? Array.isArray(w) ? w : [w] : [], [S, w]), R = S && "not" ===
|
|
12899
|
-
if (!e || e ===
|
|
12898
|
+
]), P = Co(() => S && w ? Array.isArray(w) ? w : [w] : [], [S, w]), R = S && "not" === k?.getName(), M = (e) => {
|
|
12899
|
+
if (!e || e === k) return;
|
|
12900
12900
|
const t = !!e.isCombinator?.();
|
|
12901
12901
|
let n;
|
|
12902
|
-
if (t && S) n = "not" === e.getName() ? P[0] ??
|
|
12902
|
+
if (t && S) n = "not" === e.getName() ? P[0] ?? kc(e, a, l) : P.length > 0 ? P : kc(e, a, l);
|
|
12903
12903
|
else {
|
|
12904
|
-
const o =
|
|
12905
|
-
n = t || S || !r || r !== o ?
|
|
12904
|
+
const o = k?.getParamType?.(l ?? void 0) ?? null, r = e.getParamType?.(l ?? void 0) ?? null;
|
|
12905
|
+
n = t || S || !r || r !== o ? kc(e, a, l) : w;
|
|
12906
12906
|
}
|
|
12907
12907
|
o({
|
|
12908
12908
|
operator: e?.getName() ?? null,
|
|
@@ -12933,13 +12933,13 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12933
12933
|
u ? null : mn(Tc, {
|
|
12934
12934
|
title: y,
|
|
12935
12935
|
sx: { flex: .4 },
|
|
12936
|
-
value:
|
|
12936
|
+
value: k,
|
|
12937
12937
|
operators: a,
|
|
12938
12938
|
onChange: M,
|
|
12939
12939
|
readOnly: h
|
|
12940
12940
|
}),
|
|
12941
12941
|
B,
|
|
12942
|
-
|
|
12942
|
+
v()
|
|
12943
12943
|
]
|
|
12944
12944
|
}) : hn(un, { children: [hn(bn, {
|
|
12945
12945
|
sx: {
|
|
@@ -12952,19 +12952,19 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12952
12952
|
mn(Tc, {
|
|
12953
12953
|
title: y,
|
|
12954
12954
|
sx: { flex: 1 },
|
|
12955
|
-
value:
|
|
12955
|
+
value: k,
|
|
12956
12956
|
operators: a,
|
|
12957
12957
|
onChange: M,
|
|
12958
12958
|
readOnly: h
|
|
12959
12959
|
}),
|
|
12960
12960
|
S && !R && !h && mn(Cc, {
|
|
12961
|
-
label:
|
|
12962
|
-
icon: mn(
|
|
12961
|
+
label: k?.getTitle?.(),
|
|
12962
|
+
icon: mn(kt, { iconKey: "Add" }),
|
|
12963
12963
|
operators: a,
|
|
12964
12964
|
value: null,
|
|
12965
12965
|
onChange: (e) => {
|
|
12966
12966
|
if (!e) return;
|
|
12967
|
-
const t =
|
|
12967
|
+
const t = kc(e, a, l), n = [...P, {
|
|
12968
12968
|
operator: e?.getName() ?? null,
|
|
12969
12969
|
param: t
|
|
12970
12970
|
}];
|
|
@@ -12974,10 +12974,10 @@ var td = m.BuiltInOperatorNames, od = /* @__PURE__ */ new Set([
|
|
|
12974
12974
|
});
|
|
12975
12975
|
}
|
|
12976
12976
|
}),
|
|
12977
|
-
|
|
12977
|
+
v()
|
|
12978
12978
|
]
|
|
12979
12979
|
}), S ? mn(Fc, {
|
|
12980
|
-
operator:
|
|
12980
|
+
operator: k,
|
|
12981
12981
|
inputs: P,
|
|
12982
12982
|
onOptionChange: (e) => {
|
|
12983
12983
|
o({
|
|
@@ -13001,11 +13001,11 @@ var rd = {
|
|
|
13001
13001
|
borderColor: "divider",
|
|
13002
13002
|
borderRadius: 1
|
|
13003
13003
|
}, ad = "formula", ld = fo((e) => {
|
|
13004
|
-
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 = lo(),
|
|
13004
|
+
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 = lo(), v = Yt(), [k, w] = Do(() => t?.getSelector() ?? null), [S, C] = Do(() => t?.getOperator() ? {
|
|
13005
13005
|
operator: t.getOperator().getName(),
|
|
13006
13006
|
param: t.getParam()
|
|
13007
13007
|
} : null), [T, F] = Do(() => t?.isIncludeBlanks() ?? !1);
|
|
13008
|
-
|
|
13008
|
+
vo(() => {
|
|
13009
13009
|
if (!t) return w(null), void C(null);
|
|
13010
13010
|
const e = t.getOperator(), o = t.getSelector() ?? null;
|
|
13011
13011
|
w(o), C(e ? {
|
|
@@ -13013,47 +13013,47 @@ var rd = {
|
|
|
13013
13013
|
param: t.getParam()
|
|
13014
13014
|
} : null), F(t.isIncludeBlanks());
|
|
13015
13015
|
}, [t]);
|
|
13016
|
-
const D = Co(() => (c ?? Object.values(n.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "",
|
|
13016
|
+
const D = Co(() => (c ?? Object.values(n.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", v)), [c, v]), N = Co(() => s ?? Object.values(n.BuiltInOperators), [s]), I = Co(() => N.find((e) => e.getName() === m.BuiltInOperatorNames.Expression) ?? null, [N]), B = h && !!I, P = B && S?.operator === m.BuiltInOperatorNames.Expression, R = Co(() => {
|
|
13017
13017
|
if (s) return null;
|
|
13018
13018
|
const e = N.find((e) => e.getName() === m.BuiltInOperatorNames.InSet);
|
|
13019
13019
|
return e ? (t = Object.create(e), gc.add(t), t) : null;
|
|
13020
13020
|
var t;
|
|
13021
13021
|
}, [N, s]), M = Co(() => {
|
|
13022
|
-
const e = xc(h ?
|
|
13022
|
+
const e = xc(h ? k : null, N, v, s ? [] : void 0);
|
|
13023
13023
|
if (p) {
|
|
13024
13024
|
const t = N.find((e) => e.getName() === m.BuiltInOperatorNames.InSet);
|
|
13025
13025
|
t && !e.includes(t) && e.unshift(t);
|
|
13026
13026
|
}
|
|
13027
|
-
if (R && !
|
|
13027
|
+
if (R && !k) {
|
|
13028
13028
|
const t = e.findIndex((e) => e.getName() === m.BuiltInOperatorNames.InSet);
|
|
13029
13029
|
t >= 0 && e.splice(t, 1, R);
|
|
13030
13030
|
}
|
|
13031
13031
|
return e;
|
|
13032
13032
|
}, [
|
|
13033
|
-
v,
|
|
13034
|
-
N,
|
|
13035
13033
|
k,
|
|
13034
|
+
N,
|
|
13035
|
+
v,
|
|
13036
13036
|
s,
|
|
13037
13037
|
p,
|
|
13038
13038
|
h,
|
|
13039
13039
|
R
|
|
13040
13040
|
]), O = Co(() => B ? M.filter((e) => e.getName() !== m.BuiltInOperatorNames.Expression) : M, [M, B]), A = Fo(/* @__PURE__ */ new Map()), L = (e) => e?.getName() ?? "", K = Fo(null), E = Fo(!1);
|
|
13041
|
-
|
|
13041
|
+
vo(() => {
|
|
13042
13042
|
if (!E.current) return;
|
|
13043
13043
|
E.current = !1;
|
|
13044
13044
|
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"));
|
|
13045
13045
|
e && (e.focus(), e.select());
|
|
13046
|
-
}, [
|
|
13046
|
+
}, [k, S]);
|
|
13047
13047
|
const W = (e) => {
|
|
13048
|
-
const t = N.find((t) => t.getName() === e.operator) ?? null, n = h || !
|
|
13048
|
+
const t = N.find((t) => t.getName() === e.operator) ?? null, n = h || !k || !t || ((e, t) => {
|
|
13049
13049
|
if (!e) return !0;
|
|
13050
13050
|
const o = t.getName();
|
|
13051
13051
|
if (o === m.BuiltInOperatorNames.Blank) return !0;
|
|
13052
13052
|
if (e.getName() === m.BuiltInSelectorNames.Display && hc.has(o)) return !1;
|
|
13053
13053
|
const n = t.getAcceptsTypes?.();
|
|
13054
13054
|
return !n || n.includes(e.getSelectType() ?? null);
|
|
13055
|
-
})(
|
|
13056
|
-
n !==
|
|
13055
|
+
})(k, t) ? k : null;
|
|
13056
|
+
n !== k && w(n), C(e), o?.({
|
|
13057
13057
|
selector: n,
|
|
13058
13058
|
...e,
|
|
13059
13059
|
includeBlanks: T
|
|
@@ -13070,9 +13070,9 @@ var rd = {
|
|
|
13070
13070
|
h ? mn(sc, {
|
|
13071
13071
|
title: l,
|
|
13072
13072
|
selectors: D,
|
|
13073
|
-
value:
|
|
13073
|
+
value: k,
|
|
13074
13074
|
onChange: (e, t) => {
|
|
13075
|
-
if (S && A.current.set(P ? ad : L(
|
|
13075
|
+
if (S && A.current.set(P ? ad : L(k), S), t === ad && I) {
|
|
13076
13076
|
const e = A.current.get(ad) ?? {
|
|
13077
13077
|
operator: I.getName(),
|
|
13078
13078
|
param: I.createDefaultParam?.() ?? ""
|
|
@@ -13092,16 +13092,16 @@ var rd = {
|
|
|
13092
13092
|
const e = (c.getParamType?.(t ?? void 0) ?? null) !== (c.getParamType?.(o ?? void 0) ?? null);
|
|
13093
13093
|
return c.isCombinator?.() || e ? {
|
|
13094
13094
|
operator: n.operator,
|
|
13095
|
-
param:
|
|
13095
|
+
param: kc(c, i, o)
|
|
13096
13096
|
} : n;
|
|
13097
13097
|
}
|
|
13098
13098
|
const d = o?.getDefaultCondition?.(l) ?? null, p = s(d?.operator);
|
|
13099
13099
|
return d && p ? {
|
|
13100
13100
|
operator: d.operator,
|
|
13101
|
-
param: void 0 !== d.param ? d.param :
|
|
13101
|
+
param: void 0 !== d.param ? d.param : kc(p, i, o)
|
|
13102
13102
|
} : null;
|
|
13103
13103
|
})({
|
|
13104
|
-
from:
|
|
13104
|
+
from: k,
|
|
13105
13105
|
to: e,
|
|
13106
13106
|
current: P ? null : S,
|
|
13107
13107
|
remembered: A.current.get(L(e)) ?? null,
|
|
@@ -13133,7 +13133,7 @@ var rd = {
|
|
|
13133
13133
|
onOperatorParamChange: W,
|
|
13134
13134
|
onRemove: () => {
|
|
13135
13135
|
C(null), o?.({
|
|
13136
|
-
selector:
|
|
13136
|
+
selector: k,
|
|
13137
13137
|
operator: null,
|
|
13138
13138
|
param: null,
|
|
13139
13139
|
includeBlanks: T
|
|
@@ -13143,7 +13143,7 @@ var rd = {
|
|
|
13143
13143
|
operatorTitle: g,
|
|
13144
13144
|
operators: P ? M : O,
|
|
13145
13145
|
operatorFixed: P,
|
|
13146
|
-
selector:
|
|
13146
|
+
selector: k,
|
|
13147
13147
|
onSelectorChange: (e) => {
|
|
13148
13148
|
const t = e ? D.find((t) => t.getName() === e) ?? n.Selectors.get(e) ?? null : null;
|
|
13149
13149
|
w(t), o?.({
|
|
@@ -13166,7 +13166,7 @@ var rd = {
|
|
|
13166
13166
|
onChange: (e) => {
|
|
13167
13167
|
e && (E.current = !0, W({
|
|
13168
13168
|
operator: e?.getName() ?? null,
|
|
13169
|
-
param:
|
|
13169
|
+
param: kc(e, M, k, p ? void 0 : { ranges: d })
|
|
13170
13170
|
}));
|
|
13171
13171
|
},
|
|
13172
13172
|
readOnly: i
|
|
@@ -13187,7 +13187,7 @@ var rd = {
|
|
|
13187
13187
|
checked: T,
|
|
13188
13188
|
onChange: (e) => {
|
|
13189
13189
|
t = e.target.checked, F(t), o?.({
|
|
13190
|
-
selector:
|
|
13190
|
+
selector: k,
|
|
13191
13191
|
...S,
|
|
13192
13192
|
includeBlanks: t
|
|
13193
13193
|
});
|
|
@@ -13255,7 +13255,7 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13255
13255
|
texts: (o[N.String] ?? 0) + (o[N.Boolean] ?? 0),
|
|
13256
13256
|
showsDates: n
|
|
13257
13257
|
};
|
|
13258
|
-
})(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"),
|
|
13258
|
+
})(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 = Co(() => ((e, t, o) => {
|
|
13259
13259
|
const n = pd[e], r = md[e], a = (e) => {
|
|
13260
13260
|
const t = r.indexOf(e.getName());
|
|
13261
13261
|
return t < 0 ? r.length : t;
|
|
@@ -13265,12 +13265,12 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13265
13265
|
f,
|
|
13266
13266
|
y,
|
|
13267
13267
|
p
|
|
13268
|
-
]),
|
|
13268
|
+
]), k = Co(() => new Set(v.map((e) => e.getName())), [v]), w = Co(() => ((e) => {
|
|
13269
13269
|
const t = new Set(e.map((e) => e.getName())), o = hd().filter((e) => !t.has(e.getName()) && !mc.includes(e.getName()));
|
|
13270
13270
|
return [...e, ...o];
|
|
13271
|
-
})(
|
|
13271
|
+
})(v), [v]), S = Co(() => {
|
|
13272
13272
|
if (u) return (e) => u.getItems(e);
|
|
13273
|
-
}, [u]), [C] = Do(() => g ? null : m ? m.toJSON() : null), [T, F] = Do(() => C ? gd(C,
|
|
13273
|
+
}, [u]), [C] = Do(() => g ? null : m ? m.toJSON() : null), [T, F] = Do(() => C ? gd(C, k) : "values"), [D, I] = Do(() => C && "values" === gd(C, k) ? dd(C.selector) : sd.Display), [B, P] = Do(() => C && "values" === gd(C, k) ? C.param : null), [R, M] = Do("values" === T), O = Co(() => D ? n.Selectors.get(D) ?? null : null, [D]), A = Co(() => ({
|
|
13274
13274
|
selector: D,
|
|
13275
13275
|
operator: id.InSet,
|
|
13276
13276
|
param: B ?? {},
|
|
@@ -13278,7 +13278,7 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13278
13278
|
}), [D, B]), L = Fo({
|
|
13279
13279
|
values: !1,
|
|
13280
13280
|
blanks: !0
|
|
13281
|
-
}), [K, E] = Do(() => C && "family" === gd(C,
|
|
13281
|
+
}), [K, E] = Do(() => C && "family" === gd(C, k) ? C : null), [W, z] = Do(() => C && "custom" === gd(C, k) ? C : null), V = Co(() => K ? n.resolveInput(K) : null, [K]), H = Co(() => W ? n.resolveInput(W) : null, [W]), $ = "values" === T ? A : "family" === T ? K : W, G = Co(() => "values" === T ? n.resolveInput(A) : "family" === T ? V : H, [
|
|
13282
13282
|
T,
|
|
13283
13283
|
A,
|
|
13284
13284
|
V,
|
|
@@ -13287,32 +13287,32 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13287
13287
|
disabled: r,
|
|
13288
13288
|
variant: yt.Menuitem
|
|
13289
13289
|
}), [r]), j = yo((e) => {
|
|
13290
|
-
const t =
|
|
13290
|
+
const t = v[0] ?? null, o = ud[f], r = o ? n.Selectors.get(o) ?? null : null;
|
|
13291
13291
|
return {
|
|
13292
13292
|
selector: o,
|
|
13293
13293
|
operator: t?.getName() ?? null,
|
|
13294
|
-
param: t ?
|
|
13294
|
+
param: t ? kc(t, v, r) : null,
|
|
13295
13295
|
includeBlanks: e
|
|
13296
13296
|
};
|
|
13297
|
-
}, [f,
|
|
13297
|
+
}, [f, v]), _ = yo((e, t) => {
|
|
13298
13298
|
if (!e || e.operator === t?.operator || e.selector) return e;
|
|
13299
13299
|
const o = dd(e.operator);
|
|
13300
13300
|
if (o === id.InSet) return {
|
|
13301
13301
|
...e,
|
|
13302
13302
|
selector: sd.Display
|
|
13303
13303
|
};
|
|
13304
|
-
const r = null !== o &&
|
|
13304
|
+
const r = null !== o && k.has(o) ? ud[f] : null;
|
|
13305
13305
|
if (!r) return e;
|
|
13306
13306
|
const a = ((e) => Object.values(n.BuiltInOperators).find((t) => t.getName() === e) ?? null)(o), l = n.Selectors.get(r) ?? null;
|
|
13307
13307
|
return {
|
|
13308
13308
|
...e,
|
|
13309
13309
|
selector: r,
|
|
13310
|
-
param: a ?
|
|
13310
|
+
param: a ? kc(a, v, l) : e.param
|
|
13311
13311
|
};
|
|
13312
13312
|
}, [
|
|
13313
13313
|
f,
|
|
13314
|
-
|
|
13315
|
-
|
|
13314
|
+
k,
|
|
13315
|
+
v
|
|
13316
13316
|
]), Z = yo((e) => {
|
|
13317
13317
|
E((t) => _(e, t));
|
|
13318
13318
|
}, [_]), Q = yo((e) => {
|
|
@@ -13328,7 +13328,7 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13328
13328
|
for (const t of Array.from(J.current)) t() || (e = !1);
|
|
13329
13329
|
e && oe(!0);
|
|
13330
13330
|
}, []);
|
|
13331
|
-
|
|
13331
|
+
vo(() => {
|
|
13332
13332
|
if (!te) return;
|
|
13333
13333
|
if (oe(!1), !u || g || U || !$) return;
|
|
13334
13334
|
(async () => {
|
|
@@ -13371,7 +13371,7 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13371
13371
|
includeBlanks: t
|
|
13372
13372
|
};
|
|
13373
13373
|
const o = W, n = dd(o?.operator);
|
|
13374
|
-
return o && null !== n &&
|
|
13374
|
+
return o && null !== n && k.has(n) ? {
|
|
13375
13375
|
...o,
|
|
13376
13376
|
includeBlanks: t
|
|
13377
13377
|
} : j(t);
|
|
@@ -13387,10 +13387,10 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13387
13387
|
$,
|
|
13388
13388
|
K,
|
|
13389
13389
|
W,
|
|
13390
|
-
|
|
13390
|
+
k,
|
|
13391
13391
|
j
|
|
13392
13392
|
]), ce = Fo(null);
|
|
13393
|
-
|
|
13393
|
+
vo(() => {
|
|
13394
13394
|
if (0 === le) return;
|
|
13395
13395
|
const e = setTimeout(() => {
|
|
13396
13396
|
const e = Array.from(ce.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"));
|
|
@@ -13417,7 +13417,7 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13417
13417
|
},
|
|
13418
13418
|
condition: "family" === e ? V : H,
|
|
13419
13419
|
onConditionChange: "family" === e ? Z : Q,
|
|
13420
|
-
operators: "family" === e ?
|
|
13420
|
+
operators: "family" === e ? v : w,
|
|
13421
13421
|
showSelector: !1,
|
|
13422
13422
|
operatorTitle: "",
|
|
13423
13423
|
renderRemove: null,
|
|
@@ -13564,11 +13564,11 @@ var id = m.BuiltInOperatorNames, sd = m.BuiltInSelectorNames, cd = /* @__PURE__
|
|
|
13564
13564
|
});
|
|
13565
13565
|
}));
|
|
13566
13566
|
bd.displayName = "ColumnMenu";
|
|
13567
|
-
var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.get(yd.Display) ?? null,
|
|
13567
|
+
var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.get(yd.Display) ?? null, vd = [
|
|
13568
13568
|
fd.And,
|
|
13569
13569
|
fd.Or,
|
|
13570
13570
|
fd.Not
|
|
13571
|
-
],
|
|
13571
|
+
], kd = {
|
|
13572
13572
|
label: [
|
|
13573
13573
|
fd.EqualTo,
|
|
13574
13574
|
fd.TextStartsWith,
|
|
@@ -13603,16 +13603,16 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13603
13603
|
value: null
|
|
13604
13604
|
}, Sd = (e, t) => {
|
|
13605
13605
|
const o = Object.values(n.BuiltInOperators), r = (e) => o.find((t) => t.getName() === e);
|
|
13606
|
-
return [...
|
|
13606
|
+
return [...kd[e].flatMap((e) => {
|
|
13607
13607
|
const o = r(e);
|
|
13608
13608
|
return o ? [fc(Object.create(o), t)] : [];
|
|
13609
|
-
}), ...
|
|
13609
|
+
}), ...vd.flatMap((e) => r(e) ?? [])];
|
|
13610
13610
|
}, Cd = (e, t) => {
|
|
13611
13611
|
const o = t[0] ?? null, r = wd[e], a = r ? n.Selectors.get(r) ?? null : null;
|
|
13612
13612
|
return {
|
|
13613
13613
|
selector: r,
|
|
13614
13614
|
operator: o?.getName() ?? null,
|
|
13615
|
-
param: o ?
|
|
13615
|
+
param: o ? kc(o, t, a) : null,
|
|
13616
13616
|
includeBlanks: !1
|
|
13617
13617
|
};
|
|
13618
13618
|
}, Td = fo((e) => {
|
|
@@ -13622,7 +13622,7 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13622
13622
|
})(t)), p = Co(() => s.date || !s.label && ((e) => {
|
|
13623
13623
|
const t = e.getPivotTable(), o = t.getFields().findIndex((t) => t.getName() === e.getName()), n = t.toJSON()?.fields?.[o]?.numberFormat;
|
|
13624
13624
|
return "string" == typeof n && D.getEngine().isDateFormat(n);
|
|
13625
|
-
})(t) ? "date" : "label", [s, t]), u = l("date" === p ? "filter.dateFilters" : "filter.labelFilters"), m = l("filter.valueFilters"), h = Co(() => Sd(p, u), [p, u]), g = Co(() => Sd("value", m), [m]), b = s[p] ?? null, f = s.value?.condition ?? null, [x,
|
|
13625
|
+
})(t) ? "date" : "label", [s, t]), u = l("date" === p ? "filter.dateFilters" : "filter.labelFilters"), m = l("filter.valueFilters"), h = Co(() => Sd(p, u), [p, u]), g = Co(() => Sd("value", m), [m]), b = s[p] ?? null, f = s.value?.condition ?? null, [x, v] = Do(() => i || s.manual ? "values" : b ? "rule" : f ? "value" : "values"), k = Co(() => async () => {
|
|
13626
13626
|
const e = i ? t.getCurrentPage()?.getName() ?? null : null, o = t.getItems().map((t) => {
|
|
13627
13627
|
const o = t.getName();
|
|
13628
13628
|
return {
|
|
@@ -13648,7 +13648,7 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13648
13648
|
if (!e || e.selector || e.operator === t?.operator) return e;
|
|
13649
13649
|
const o = (n = e.operator) ? "string" == typeof n ? n : n.getName() : null;
|
|
13650
13650
|
var n;
|
|
13651
|
-
return "label" === p || null === o ||
|
|
13651
|
+
return "label" === p || null === o || vd.includes(o) ? e : {
|
|
13652
13652
|
...e,
|
|
13653
13653
|
selector: wd[p]
|
|
13654
13654
|
};
|
|
@@ -13656,7 +13656,7 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13656
13656
|
}, [p]), K = yo((e) => {
|
|
13657
13657
|
P(e);
|
|
13658
13658
|
}, []), E = yo((e) => {
|
|
13659
|
-
e && ("rule" === e && I((e) => e ?? Cd(p, h)), "value" === e && P((e) => e ?? Cd("value", g)),
|
|
13659
|
+
e && ("rule" === e && I((e) => e ?? Cd(p, h)), "value" === e && P((e) => e ?? Cd("value", g)), v(e));
|
|
13660
13660
|
}, [
|
|
13661
13661
|
p,
|
|
13662
13662
|
h,
|
|
@@ -13680,7 +13680,7 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13680
13680
|
for (const t of Array.from(V.current)) t() || (e = !1);
|
|
13681
13681
|
e && G(!0);
|
|
13682
13682
|
}, [x, z]);
|
|
13683
|
-
|
|
13683
|
+
vo(() => {
|
|
13684
13684
|
if (!$) return;
|
|
13685
13685
|
G(!1);
|
|
13686
13686
|
const e = "rule" === x ? N : B, o = "rule" === x ? O : A;
|
|
@@ -13844,7 +13844,7 @@ var fd = m.BuiltInOperatorNames, yd = m.BuiltInSelectorNames, xd = n.Selectors.g
|
|
|
13844
13844
|
children: mn(ed, {
|
|
13845
13845
|
option: w,
|
|
13846
13846
|
onOptionChange: F,
|
|
13847
|
-
getItems:
|
|
13847
|
+
getItems: k,
|
|
13848
13848
|
selector: xd,
|
|
13849
13849
|
ignoreBlank: !1,
|
|
13850
13850
|
readOnly: o,
|
|
@@ -14088,7 +14088,7 @@ var Nd = fo(go((e, t) => {
|
|
|
14088
14088
|
}));
|
|
14089
14089
|
Nd.displayName = "InsertSlicerCommandButton";
|
|
14090
14090
|
var Id = () => {
|
|
14091
|
-
const e =
|
|
14091
|
+
const e = vt.register({
|
|
14092
14092
|
key: "formatSlicerStyle",
|
|
14093
14093
|
contributions: { slicerToolbar: {
|
|
14094
14094
|
order: -1,
|
|
@@ -14098,7 +14098,7 @@ var Id = () => {
|
|
|
14098
14098
|
...e,
|
|
14099
14099
|
commandKey: "formatSlicerStyle"
|
|
14100
14100
|
})
|
|
14101
|
-
}, !0), t =
|
|
14101
|
+
}, !0), t = vt.register({
|
|
14102
14102
|
key: "insertSlicer",
|
|
14103
14103
|
render: (e) => mn(Nd, {
|
|
14104
14104
|
...e,
|
|
@@ -14323,7 +14323,7 @@ var Ad = {
|
|
|
14323
14323
|
}
|
|
14324
14324
|
}, 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 = fo((e) => {
|
|
14325
14325
|
const { percent: t, disabled: o, inputRef: n, onChange: r } = e, a = lo(), [l, i] = Do(String(t)), [s, c] = Do(!1);
|
|
14326
|
-
return
|
|
14326
|
+
return vo(() => {
|
|
14327
14327
|
s || i(String(t));
|
|
14328
14328
|
}, [t, s]), mn(Un, {
|
|
14329
14329
|
type: "number",
|
|
@@ -14360,11 +14360,11 @@ var Ad = {
|
|
|
14360
14360
|
});
|
|
14361
14361
|
Hd.displayName = "StopPositionField";
|
|
14362
14362
|
var $d = fo((e) => {
|
|
14363
|
-
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 = lo(), y = Jn(), x = Co(() => new t(n.color, a), [n.color, a]), [
|
|
14364
|
-
|
|
14363
|
+
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 = lo(), y = Jn(), x = Co(() => new t(n.color, a), [n.color, a]), [v, k] = Do(void 0), [w, S] = Do(null), [C, T] = Do(!1), [F, D] = Do(!1), [N, I] = Do(!1), [B, P] = Do(!1), R = Fo(null), M = Fo(!1), O = Wt((e) => {
|
|
14364
|
+
k(e), m(o, e ?? null);
|
|
14365
14365
|
}, [o, m]), A = Wt((e) => {
|
|
14366
14366
|
u(o, e / 100);
|
|
14367
|
-
}, [o, u]), L = Math.round(100 * r), K = Ed(
|
|
14367
|
+
}, [o, u]), L = Math.round(100 * r), K = Ed(v ?? x, a, i), E = yo((e) => {
|
|
14368
14368
|
const { closeFloat: t } = e;
|
|
14369
14369
|
return hn(bn, {
|
|
14370
14370
|
className: "sxl-gradient-stop-popup",
|
|
@@ -14374,7 +14374,7 @@ var $d = fo((e) => {
|
|
|
14374
14374
|
},
|
|
14375
14375
|
children: [mn(Hr, {
|
|
14376
14376
|
selectedColor: x,
|
|
14377
|
-
previewColor:
|
|
14377
|
+
previewColor: v,
|
|
14378
14378
|
disableAlpha: !0,
|
|
14379
14379
|
schemeLookup: a,
|
|
14380
14380
|
recentColors: l,
|
|
@@ -14403,7 +14403,7 @@ var $d = fo((e) => {
|
|
|
14403
14403
|
});
|
|
14404
14404
|
}, [
|
|
14405
14405
|
x,
|
|
14406
|
-
|
|
14406
|
+
v,
|
|
14407
14407
|
L,
|
|
14408
14408
|
o,
|
|
14409
14409
|
a,
|
|
@@ -14532,7 +14532,7 @@ var $d = fo((e) => {
|
|
|
14532
14532
|
lineHeight: 0,
|
|
14533
14533
|
"& .activeColor": { fill: K }
|
|
14534
14534
|
},
|
|
14535
|
-
children: mn(
|
|
14535
|
+
children: mn(kt, { iconKey: "circle.colored" })
|
|
14536
14536
|
}),
|
|
14537
14537
|
onClick: () => {
|
|
14538
14538
|
P(!1), V();
|
|
@@ -14544,7 +14544,7 @@ var $d = fo((e) => {
|
|
|
14544
14544
|
label: f("fill.gradientRemoveStop"),
|
|
14545
14545
|
simple: !0
|
|
14546
14546
|
},
|
|
14547
|
-
icon: mn(
|
|
14547
|
+
icon: mn(kt, { iconKey: "Close" }),
|
|
14548
14548
|
onClick: () => g(o)
|
|
14549
14549
|
})]
|
|
14550
14550
|
});
|
|
@@ -14636,7 +14636,7 @@ var Gd = fo((e) => {
|
|
|
14636
14636
|
stops: t,
|
|
14637
14637
|
keys: o
|
|
14638
14638
|
}, ...e.known].slice(0, 3)), o;
|
|
14639
|
-
}, [t]), [g, b] = Do(null), [f, y] = Do(null), [x,
|
|
14639
|
+
}, [t]), [g, b] = Do(null), [f, y] = Do(null), [x, v] = Do(null);
|
|
14640
14640
|
So(() => {
|
|
14641
14641
|
b((e) => {
|
|
14642
14642
|
if (!e?.released) return e;
|
|
@@ -14648,7 +14648,7 @@ var Gd = fo((e) => {
|
|
|
14648
14648
|
const e = window.setTimeout(() => b((e) => e?.released ? null : e), 1e3);
|
|
14649
14649
|
return () => window.clearTimeout(e);
|
|
14650
14650
|
}, [g]);
|
|
14651
|
-
const
|
|
14651
|
+
const k = !s && t.length < r, w = !s && t.length > n, S = Wt((e) => {
|
|
14652
14652
|
const t = [...e].sort((e, t) => e.stop.offset - t.stop.offset), n = {
|
|
14653
14653
|
stops: t.map((e) => e.stop),
|
|
14654
14654
|
keys: t.map((e) => e.key)
|
|
@@ -14678,7 +14678,7 @@ var Gd = fo((e) => {
|
|
|
14678
14678
|
} : null);
|
|
14679
14679
|
}, [h]), N = Wt((e, t) => {
|
|
14680
14680
|
const o = h[e];
|
|
14681
|
-
|
|
14681
|
+
v((e) => t ? o : e === o ? null : e);
|
|
14682
14682
|
}, [h]), I = Wt((e, t) => {
|
|
14683
14683
|
S(C().map((o, n) => n === e ? {
|
|
14684
14684
|
...o,
|
|
@@ -14721,12 +14721,12 @@ var Gd = fo((e) => {
|
|
|
14721
14721
|
C,
|
|
14722
14722
|
S
|
|
14723
14723
|
]), R = Wt((e) => {
|
|
14724
|
-
if (!
|
|
14724
|
+
if (!k || 0 !== e.button || null !== x) return;
|
|
14725
14725
|
if (e.target.closest(".sxl-gradient-stop")) return;
|
|
14726
14726
|
const t = e.currentTarget.getBoundingClientRect();
|
|
14727
14727
|
t.width <= 0 || P(Kd((e.clientX - t.left) / t.width));
|
|
14728
14728
|
}, [
|
|
14729
|
-
|
|
14729
|
+
k,
|
|
14730
14730
|
x,
|
|
14731
14731
|
P
|
|
14732
14732
|
]), M = Co(() => {
|
|
@@ -14770,7 +14770,7 @@ var Gd = fo((e) => {
|
|
|
14770
14770
|
border: (e) => `1px solid ${e.palette.divider}`,
|
|
14771
14771
|
backgroundImage: M,
|
|
14772
14772
|
backgroundRepeat: "no-repeat",
|
|
14773
|
-
cursor:
|
|
14773
|
+
cursor: k ? "copy" : "default",
|
|
14774
14774
|
opacity: s ? .5 : 1
|
|
14775
14775
|
},
|
|
14776
14776
|
children: t.map((e, t) => mn($d, {
|
|
@@ -14792,12 +14792,12 @@ var Gd = fo((e) => {
|
|
|
14792
14792
|
}, h[t]))
|
|
14793
14793
|
})
|
|
14794
14794
|
}), mn(Ko, {
|
|
14795
|
-
disabled: !
|
|
14795
|
+
disabled: !k,
|
|
14796
14796
|
propsTooltip: {
|
|
14797
14797
|
label: p("fill.gradientAddStop"),
|
|
14798
14798
|
simple: !0
|
|
14799
14799
|
},
|
|
14800
|
-
icon: mn(
|
|
14800
|
+
icon: mn(kt, { iconKey: "Add" }),
|
|
14801
14801
|
onClick: () => P(),
|
|
14802
14802
|
sx: { marginTop: "-3px" }
|
|
14803
14803
|
})]
|
|
@@ -14916,7 +14916,7 @@ var qd = (e) => {
|
|
|
14916
14916
|
offset: 1,
|
|
14917
14917
|
color: "4472c4"
|
|
14918
14918
|
}]
|
|
14919
|
-
}), _d = sn(lr("studio:formatTaskPane", () => import("./
|
|
14919
|
+
}), _d = sn(lr("studio:formatTaskPane", () => import("./DB0ey_u5taO1vTil.mjs"), { select: (e) => ({ default: e.FormatTaskPane }) }).load), Zd = () => V.registerTaskPane({
|
|
14920
14920
|
key: pe.FormatCells,
|
|
14921
14921
|
component: _d
|
|
14922
14922
|
}, !0), Qd = fo((e) => {
|
|
@@ -14957,7 +14957,7 @@ var qd = (e) => {
|
|
|
14957
14957
|
gap: (e) => e.spacing(.75),
|
|
14958
14958
|
minWidth: 0
|
|
14959
14959
|
},
|
|
14960
|
-
children: [mn(
|
|
14960
|
+
children: [mn(kt, {
|
|
14961
14961
|
iconKey: t ? "Lock" : "LockOpen",
|
|
14962
14962
|
size: 18,
|
|
14963
14963
|
ariaHidden: !0
|
|
@@ -14995,7 +14995,7 @@ var qd = (e) => {
|
|
|
14995
14995
|
});
|
|
14996
14996
|
});
|
|
14997
14997
|
Qd.displayName = "PasswordField";
|
|
14998
|
-
var Yd = lr("studio:manageProtectionTaskPane", () => import("./
|
|
14998
|
+
var Yd = lr("studio:manageProtectionTaskPane", () => import("./B8YAUfGTtlnRHi2M.mjs")), Xd = sn(() => Yd.load().then((e) => ({ default: e.ManageProtectionTaskPane }))), Jd = sn(() => Yd.load().then((e) => ({ default: e.ProtectedRangeDetailsTaskPane }))), ep = () => {
|
|
14999
14999
|
const e = V.registerTaskPane({
|
|
15000
15000
|
key: pe.Protection,
|
|
15001
15001
|
component: Xd
|
|
@@ -15054,10 +15054,10 @@ var op = fo(go((e, t) => {
|
|
|
15054
15054
|
}
|
|
15055
15055
|
});
|
|
15056
15056
|
const p = Co(() => {
|
|
15057
|
-
const e = [], t = o.getSheets({ visibility:
|
|
15057
|
+
const e = [], t = o.getSheets({ visibility: v.Visibility.Hidden }), r = o.getSelectedSheet();
|
|
15058
15058
|
for (let o = 0; o < t.length; o++) {
|
|
15059
15059
|
const a = t[o], l = a.getVisibility();
|
|
15060
|
-
if (l ===
|
|
15060
|
+
if (l === v.Visibility.VeryHidden) continue;
|
|
15061
15061
|
const i = r === a, s = !!a.isIWorksheet && a.getProtection().isLocked(), d = a.getTabColor(), p = "var(--sxl-color-base-100)";
|
|
15062
15062
|
let u = null, m = null, h = p;
|
|
15063
15063
|
d && (h = d.toCSS(), i || (m = d.toBlackOrWhite().toCSS()), u = mn(bn, {
|
|
@@ -15076,14 +15076,14 @@ var op = fo(go((e, t) => {
|
|
|
15076
15076
|
children: mn(bn, { sx: {
|
|
15077
15077
|
flex: "1 1 100%",
|
|
15078
15078
|
boxSizing: "content-box",
|
|
15079
|
-
opacity: i || l ===
|
|
15079
|
+
opacity: i || l === v.Visibility.Hidden ? "50%" : "100%",
|
|
15080
15080
|
border: (e) => i ? `${p} solid 1.5px` : `${e.palette.divider} solid 1px`,
|
|
15081
15081
|
background: i && d ? `linear-gradient(0deg, ${h} 0%, ${p})` : h,
|
|
15082
15082
|
borderRadius: "4px"
|
|
15083
15083
|
} })
|
|
15084
15084
|
}));
|
|
15085
15085
|
let g = null;
|
|
15086
|
-
s && (g = mn(
|
|
15086
|
+
s && (g = mn(kt, { iconKey: "Lock" })), l !== v.Visibility.Visible && (g = mn(kt, {
|
|
15087
15087
|
iconKey: "VisibilityOff",
|
|
15088
15088
|
style: { opacity: c.isStructureAllowed() ? 1 : .7 },
|
|
15089
15089
|
color: "secondary"
|
|
@@ -15101,11 +15101,11 @@ var op = fo(go((e, t) => {
|
|
|
15101
15101
|
},
|
|
15102
15102
|
children: g
|
|
15103
15103
|
})), e.push(mn(Wo, {
|
|
15104
|
-
disabled: !c.isStructureAllowed() && l ===
|
|
15104
|
+
disabled: !c.isStructureAllowed() && l === v.Visibility.Hidden,
|
|
15105
15105
|
sx: {
|
|
15106
15106
|
color: (e) => {
|
|
15107
15107
|
let t = i ? e.palette.primary.main : e.palette.text.secondary;
|
|
15108
|
-
return m && (t = m), l ===
|
|
15108
|
+
return m && (t = m), l === v.Visibility.Hidden && (t = pr(t, e.palette.action.disabledOpacity)), t;
|
|
15109
15109
|
},
|
|
15110
15110
|
borderLeft: (e) => `${i ? e.palette.primary.main : "transparent"} solid 2px`,
|
|
15111
15111
|
paddingLeft: "4px",
|
|
@@ -15224,18 +15224,18 @@ var rp = fo(go((e, t) => {
|
|
|
15224
15224
|
i,
|
|
15225
15225
|
l,
|
|
15226
15226
|
o
|
|
15227
|
-
]), { reference: x, component:
|
|
15227
|
+
]), { reference: x, component: v } = _t({
|
|
15228
15228
|
label: "allSheet",
|
|
15229
15229
|
propsPopper: h,
|
|
15230
15230
|
anchor: g.current,
|
|
15231
15231
|
onOpen: () => f(!0),
|
|
15232
15232
|
onClose: () => f(!1),
|
|
15233
15233
|
renderPopupPanel: y
|
|
15234
|
-
}), [
|
|
15234
|
+
}), [k, w] = Do(null), S = yo((e) => {
|
|
15235
15235
|
const { floatReference: t } = e;
|
|
15236
15236
|
return a ? a({
|
|
15237
15237
|
workbook: o,
|
|
15238
|
-
index:
|
|
15238
|
+
index: k?.index,
|
|
15239
15239
|
tabStripRef: u.current ?? void 0,
|
|
15240
15240
|
disabled: n,
|
|
15241
15241
|
floatReference: t,
|
|
@@ -15246,17 +15246,17 @@ var rp = fo(go((e, t) => {
|
|
|
15246
15246
|
r,
|
|
15247
15247
|
n,
|
|
15248
15248
|
o,
|
|
15249
|
-
|
|
15249
|
+
k
|
|
15250
15250
|
]), { reference: C, component: T } = _t({
|
|
15251
15251
|
label: "sheetTab",
|
|
15252
15252
|
propsPopper: h,
|
|
15253
|
-
anchor: { getBoundingClientRect: () => new DOMRect(
|
|
15253
|
+
anchor: { getBoundingClientRect: () => new DOMRect(k?.left || 0, k?.top || 0, 0, 0) },
|
|
15254
15254
|
onClose: () => w(null),
|
|
15255
15255
|
renderPopupPanel: S
|
|
15256
15256
|
});
|
|
15257
|
-
|
|
15258
|
-
|
|
15259
|
-
}, [
|
|
15257
|
+
vo(() => {
|
|
15258
|
+
k ? C.open(0) : C.close(0);
|
|
15259
|
+
}, [k]);
|
|
15260
15260
|
const F = yo((e, t) => {
|
|
15261
15261
|
e.preventDefault(), w({
|
|
15262
15262
|
left: e.clientX - 2,
|
|
@@ -15291,10 +15291,10 @@ var rp = fo(go((e, t) => {
|
|
|
15291
15291
|
onClick: () => {
|
|
15292
15292
|
b ? x.close(0) : x.open(0);
|
|
15293
15293
|
},
|
|
15294
|
-
icon: mn(
|
|
15294
|
+
icon: mn(kt, { iconKey: "Menu" })
|
|
15295
15295
|
})
|
|
15296
15296
|
});
|
|
15297
|
-
return hn(
|
|
15297
|
+
return hn(ve, {
|
|
15298
15298
|
ref: m,
|
|
15299
15299
|
workbook: o,
|
|
15300
15300
|
disabled: n,
|
|
@@ -15307,7 +15307,7 @@ var rp = fo(go((e, t) => {
|
|
|
15307
15307
|
children: [
|
|
15308
15308
|
N,
|
|
15309
15309
|
T,
|
|
15310
|
-
|
|
15310
|
+
v
|
|
15311
15311
|
]
|
|
15312
15312
|
});
|
|
15313
15313
|
}));
|
|
@@ -15361,13 +15361,13 @@ var ap = fo(go((e, t) => {
|
|
|
15361
15361
|
}
|
|
15362
15362
|
const x = [];
|
|
15363
15363
|
b && x.push("-", "hideRows", "unhideRows"), f && x.push("-", "hideColumns", "unhideColumns"), (b || f) && x.push("-"), b && x.push("autoFitRows", "resizeRows"), f && x.push("autoFitColumns", "resizeColumns");
|
|
15364
|
-
const
|
|
15364
|
+
const v = [
|
|
15365
15365
|
...h.resolveMembers("contextMenu") ?? [],
|
|
15366
15366
|
...y,
|
|
15367
15367
|
...x,
|
|
15368
15368
|
"-",
|
|
15369
15369
|
"formatCells"
|
|
15370
|
-
],
|
|
15370
|
+
], k = cn(v, {
|
|
15371
15371
|
variant: yt.Menuitem,
|
|
15372
15372
|
dividerOrientation: "horizontal",
|
|
15373
15373
|
groupKey: "contextMenu",
|
|
@@ -15379,7 +15379,7 @@ var ap = fo(go((e, t) => {
|
|
|
15379
15379
|
ref: t,
|
|
15380
15380
|
className: cr("menu", l),
|
|
15381
15381
|
...i,
|
|
15382
|
-
children:
|
|
15382
|
+
children: k
|
|
15383
15383
|
});
|
|
15384
15384
|
}));
|
|
15385
15385
|
lp.displayName = "WorkbookContextMenuBody", ap.displayName = "WorkbookContextMenu";
|
|
@@ -15626,7 +15626,7 @@ var pp = (e, t) => ({
|
|
|
15626
15626
|
children: [
|
|
15627
15627
|
mn(Ko, {
|
|
15628
15628
|
dense: !0,
|
|
15629
|
-
icon: mn(
|
|
15629
|
+
icon: mn(kt, { iconKey: "HyperlinkGoto" }),
|
|
15630
15630
|
propsTooltip: { title: c("hyperlink.open") },
|
|
15631
15631
|
onClick: u
|
|
15632
15632
|
}),
|
|
@@ -15665,7 +15665,7 @@ var pp = (e, t) => ({
|
|
|
15665
15665
|
children: [
|
|
15666
15666
|
mn(Ko, {
|
|
15667
15667
|
dense: !0,
|
|
15668
|
-
icon: mn(
|
|
15668
|
+
icon: mn(kt, { iconKey: "ContentCopy" }),
|
|
15669
15669
|
propsTooltip: { title: c("hyperlink.copy") },
|
|
15670
15670
|
onClick: () => {
|
|
15671
15671
|
n();
|
|
@@ -15673,14 +15673,14 @@ var pp = (e, t) => ({
|
|
|
15673
15673
|
}),
|
|
15674
15674
|
mn(Ko, {
|
|
15675
15675
|
dense: !0,
|
|
15676
|
-
icon: mn(
|
|
15676
|
+
icon: mn(kt, { iconKey: "HyperlinkEdit" }),
|
|
15677
15677
|
propsTooltip: { title: c("hyperlink.edit") },
|
|
15678
15678
|
disabled: l,
|
|
15679
15679
|
onClick: r
|
|
15680
15680
|
}),
|
|
15681
15681
|
mn(Ko, {
|
|
15682
15682
|
dense: !0,
|
|
15683
|
-
icon: mn(
|
|
15683
|
+
icon: mn(kt, { iconKey: "HyperlinkDelete" }),
|
|
15684
15684
|
propsTooltip: { title: c("hyperlink.remove") },
|
|
15685
15685
|
disabled: l,
|
|
15686
15686
|
onClick: a
|
|
@@ -15706,7 +15706,7 @@ var pp = (e, t) => ({
|
|
|
15706
15706
|
}, yp = (e) => mn(fp, { ...e }), xp = {
|
|
15707
15707
|
color: "transparent",
|
|
15708
15708
|
hoverColor: "transparent"
|
|
15709
|
-
},
|
|
15709
|
+
}, vp = { sx: { mx: 0 } }, kp = ({ props: e, label: t, children: o }) => {
|
|
15710
15710
|
const { floatProps: n } = e;
|
|
15711
15711
|
return mn(Wn, {
|
|
15712
15712
|
...n,
|
|
@@ -15727,21 +15727,21 @@ var pp = (e, t) => ({
|
|
|
15727
15727
|
});
|
|
15728
15728
|
}, wp = (e) => {
|
|
15729
15729
|
const { table: t, setHeld: o } = e;
|
|
15730
|
-
return mn(
|
|
15730
|
+
return mn(kp, {
|
|
15731
15731
|
props: e,
|
|
15732
15732
|
label: t.getName(),
|
|
15733
15733
|
children: mn(qa, {
|
|
15734
15734
|
commandKey: "formatTableStyle",
|
|
15735
15735
|
selectedTable: t,
|
|
15736
15736
|
outlined: xp,
|
|
15737
|
-
propsButton:
|
|
15737
|
+
propsButton: vp,
|
|
15738
15738
|
onPopupOpen: () => o(!0),
|
|
15739
15739
|
onPopupClose: () => o(!1)
|
|
15740
15740
|
})
|
|
15741
15741
|
});
|
|
15742
15742
|
}, Sp = (e) => mn(wp, { ...e }), Cp = (e) => {
|
|
15743
15743
|
const { pivot: t, setHeld: o } = e;
|
|
15744
|
-
return mn(
|
|
15744
|
+
return mn(kp, {
|
|
15745
15745
|
props: e,
|
|
15746
15746
|
label: t.getName(),
|
|
15747
15747
|
children: mn(Xa, {
|
|
@@ -15749,7 +15749,7 @@ var pp = (e, t) => ({
|
|
|
15749
15749
|
selectedPivot: t,
|
|
15750
15750
|
quickCommand: "editPivotTable",
|
|
15751
15751
|
outlined: xp,
|
|
15752
|
-
propsButton:
|
|
15752
|
+
propsButton: vp,
|
|
15753
15753
|
onPopupOpen: () => o(!0),
|
|
15754
15754
|
onPopupClose: () => o(!1)
|
|
15755
15755
|
})
|
|
@@ -15763,7 +15763,7 @@ var pp = (e, t) => ({
|
|
|
15763
15763
|
...e
|
|
15764
15764
|
}), Lp = (e) => {
|
|
15765
15765
|
const { key: t, ...o } = e;
|
|
15766
|
-
return mn(
|
|
15766
|
+
return mn(ke, { ...o }, t);
|
|
15767
15767
|
}, Kp = (e) => {
|
|
15768
15768
|
const { key: t, ...o } = e;
|
|
15769
15769
|
return mn(Qi, { ...o }, t);
|
|
@@ -15800,7 +15800,7 @@ var pp = (e, t) => ({
|
|
|
15800
15800
|
renderLevelButton: void 0 === r?.renderLevelButton ? Dp : r.renderLevelButton
|
|
15801
15801
|
}
|
|
15802
15802
|
};
|
|
15803
|
-
}, [c]), { renderTooltip: u } =
|
|
15803
|
+
}, [c]), { renderTooltip: u } = vr();
|
|
15804
15804
|
return mn(Lo, { children: mn(fr, {
|
|
15805
15805
|
renderTooltip: u ?? gp,
|
|
15806
15806
|
children: mn(fe, {
|
|
@@ -15834,7 +15834,7 @@ var Gp = (e = !1, t = !1) => t ? null : {
|
|
|
15834
15834
|
border: (e) => `1px solid ${e.palette?.primary?.main} !important`
|
|
15835
15835
|
}
|
|
15836
15836
|
}, Up = fo(go((e, t) => {
|
|
15837
|
-
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 = lo(), m = a ?? u("workbook.untitled"), [h, g] = Do(!1), [b, f] = Do(!1), [y, x] = Do(r ?? ""), [
|
|
15837
|
+
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 = lo(), m = a ?? u("workbook.untitled"), [h, g] = Do(!1), [b, f] = Do(!1), [y, x] = Do(r ?? ""), [v, k] = Do(""), [w, { width: S }] = Jt(), [C, { width: T }] = Jt(), [F, D] = Do(!1), N = Fo(null), I = Fo(null), B = Qt(t, () => ({
|
|
15838
15838
|
requestTitle: (e, t) => {
|
|
15839
15839
|
I.current = {
|
|
15840
15840
|
onAccept: e,
|
|
@@ -15846,13 +15846,13 @@ var Gp = (e = !1, t = !1) => t ? null : {
|
|
|
15846
15846
|
}
|
|
15847
15847
|
}), []);
|
|
15848
15848
|
So(() => {
|
|
15849
|
-
D(r !== y),
|
|
15850
|
-
}, [r]),
|
|
15849
|
+
D(r !== y), k(r), x(r);
|
|
15850
|
+
}, [r]), vo(() => {
|
|
15851
15851
|
F && 0 !== S && ar.debounce(() => {
|
|
15852
15852
|
D(!1);
|
|
15853
15853
|
}, 300)();
|
|
15854
|
-
}, [F, S]),
|
|
15855
|
-
f(!!y && !
|
|
15854
|
+
}, [F, S]), vo(() => {
|
|
15855
|
+
f(!!y && !kr.isValidFileName(y));
|
|
15856
15856
|
}, [y]);
|
|
15857
15857
|
const P = ur([
|
|
15858
15858
|
B,
|
|
@@ -15886,7 +15886,7 @@ var Gp = (e = !1, t = !1) => t ? null : {
|
|
|
15886
15886
|
height: "0.9em"
|
|
15887
15887
|
}
|
|
15888
15888
|
},
|
|
15889
|
-
children: mn(
|
|
15889
|
+
children: mn(kt, { iconKey: "Lock" })
|
|
15890
15890
|
})
|
|
15891
15891
|
}) : null, mn(Ho, {
|
|
15892
15892
|
label: I.current?.requestReason ?? u("documentTitle.label"),
|
|
@@ -15914,7 +15914,7 @@ var Gp = (e = !1, t = !1) => t ? null : {
|
|
|
15914
15914
|
component: "div",
|
|
15915
15915
|
sx: {
|
|
15916
15916
|
whiteSpace: "nowrap",
|
|
15917
|
-
fontStyle: y ===
|
|
15917
|
+
fontStyle: y === v && r ? void 0 : "italic",
|
|
15918
15918
|
userSelect: "none",
|
|
15919
15919
|
textOverflow: "ellipsis",
|
|
15920
15920
|
lineHeight: "1.4375em",
|
|
@@ -15941,7 +15941,7 @@ var Gp = (e = !1, t = !1) => t ? null : {
|
|
|
15941
15941
|
padding: "0px",
|
|
15942
15942
|
margin: "0px",
|
|
15943
15943
|
color: (e) => b ? e.palette.error.dark : void 0,
|
|
15944
|
-
fontStyle: y !==
|
|
15944
|
+
fontStyle: y !== v ? "italic" : void 0,
|
|
15945
15945
|
"& input": {
|
|
15946
15946
|
paddingTop: "0px",
|
|
15947
15947
|
paddingBottom: "0px",
|
|
@@ -15963,14 +15963,14 @@ var Gp = (e = !1, t = !1) => t ? null : {
|
|
|
15963
15963
|
ref: N
|
|
15964
15964
|
},
|
|
15965
15965
|
onBlur: () => {
|
|
15966
|
-
g(!1), b ? x(
|
|
15966
|
+
g(!1), b ? x(v) : (y !== v && (l?.(y), y && I.current?.onAccept?.(y, "blur")), I.current = null);
|
|
15967
15967
|
},
|
|
15968
15968
|
onChange: (e) => {
|
|
15969
|
-
if (e.target.value.length >
|
|
15969
|
+
if (e.target.value.length > kr.MAX_WORKBOOK_NAME_SIZE) return e.stopPropagation(), void e.preventDefault();
|
|
15970
15970
|
x(e.target.value);
|
|
15971
15971
|
},
|
|
15972
15972
|
onKeyDown: (e) => {
|
|
15973
|
-
(
|
|
15973
|
+
(kr.isReservedFileNameChar(e.key) || e.target?.value.length > kr.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(() => {
|
|
15974
15974
|
e.target?.select();
|
|
15975
15975
|
}, 0)), I.current = null, e.stopPropagation(), e.preventDefault());
|
|
15976
15976
|
},
|
|
@@ -15983,7 +15983,7 @@ var Gp = (e = !1, t = !1) => t ? null : {
|
|
|
15983
15983
|
top: "-9999px",
|
|
15984
15984
|
fontWeight: "600 !important",
|
|
15985
15985
|
whiteSpace: "pre",
|
|
15986
|
-
fontStyle: y !==
|
|
15986
|
+
fontStyle: y !== v ? "italic" : void 0,
|
|
15987
15987
|
fontFamily: (e) => e.typography.fontFamily,
|
|
15988
15988
|
letterSpacing: "0.00938em"
|
|
15989
15989
|
},
|
|
@@ -16009,6 +16009,7 @@ var qp = /* @__PURE__ */ new Set([
|
|
|
16009
16009
|
"renderDocumentLoading",
|
|
16010
16010
|
"propsWorkbook",
|
|
16011
16011
|
"onWorkbookLoad",
|
|
16012
|
+
"onRenderSettled",
|
|
16012
16013
|
"propsTaskPaneArea",
|
|
16013
16014
|
"renderTaskPaneArea",
|
|
16014
16015
|
"taskPaneSide",
|
|
@@ -16034,10 +16035,10 @@ var qp = /* @__PURE__ */ new Set([
|
|
|
16034
16035
|
"autoFocus",
|
|
16035
16036
|
"licenseKey",
|
|
16036
16037
|
"prefetch"
|
|
16037
|
-
]), jp = lr("studio:eagerStudio", () => import("./
|
|
16038
|
+
]), jp = lr("studio:eagerStudio", () => import("./CjMPhdZM35dO7x25.mjs").then((e) => e.t)), _p = ({ error: e, onShown: t }) => (vo(() => {
|
|
16038
16039
|
t();
|
|
16039
16040
|
}, []), mn(Uo, { error: e })), Zp = fo(go((e, t) => {
|
|
16040
|
-
const { sx: o, style: n, className: r, licenseKey: a, renderDocumentLoading: l = Op, propsDocumentLoading: i,
|
|
16041
|
+
const { sx: o, style: n, className: r, licenseKey: a, renderDocumentLoading: l = Op, propsDocumentLoading: i, onRenderSettled: s, onDocumentError: c, ...d } = e, [p, u] = ((e) => {
|
|
16041
16042
|
const t = {}, o = {};
|
|
16042
16043
|
for (const n in e) (qp.has(n) ? t : o)[n] = e[n];
|
|
16043
16044
|
return [t, o];
|
|
@@ -16048,7 +16049,7 @@ var qp = /* @__PURE__ */ new Set([
|
|
|
16048
16049
|
const [m] = no(me.Mode, ue[me.Mode]), { themeMode: h } = ro({
|
|
16049
16050
|
mode: m ?? void 0,
|
|
16050
16051
|
fallback: "system"
|
|
16051
|
-
}), g = "dark" === h, [b, f] = Do(null), y = Bt("studio",
|
|
16052
|
+
}), g = "dark" === h, [b, f] = Do(null), y = Bt("studio", ko()), [x, v] = Do(!1), k = Co(() => !l || x ? null : mn(Wn, {
|
|
16052
16053
|
style: {
|
|
16053
16054
|
backgroundColor: `var(--sxl-color-base-100, ${g ? "#121212" : "#fff"})`,
|
|
16054
16055
|
inset: 0,
|
|
@@ -16071,7 +16072,7 @@ var qp = /* @__PURE__ */ new Set([
|
|
|
16071
16072
|
x
|
|
16072
16073
|
]), w = Co(() => At(jp.load, { renderError: ({ error: e }) => mn(_p, {
|
|
16073
16074
|
error: e,
|
|
16074
|
-
onShown: () =>
|
|
16075
|
+
onShown: () => v(!0)
|
|
16075
16076
|
}) }), []);
|
|
16076
16077
|
return mn(It.Provider, {
|
|
16077
16078
|
value: "system",
|
|
@@ -16099,17 +16100,19 @@ var qp = /* @__PURE__ */ new Set([
|
|
|
16099
16100
|
...p,
|
|
16100
16101
|
host: b,
|
|
16101
16102
|
scopeClass: y,
|
|
16102
|
-
|
|
16103
|
-
|
|
16103
|
+
onRenderSettled: (e) => {
|
|
16104
|
+
v(!0), s?.(e);
|
|
16105
|
+
},
|
|
16106
|
+
onDocumentError: (e) => (v(!0), c?.(e)),
|
|
16104
16107
|
renderDocumentLoading: null,
|
|
16105
16108
|
ref: t
|
|
16106
16109
|
})
|
|
16107
|
-
}),
|
|
16110
|
+
}), k]
|
|
16108
16111
|
})
|
|
16109
16112
|
});
|
|
16110
16113
|
}));
|
|
16111
16114
|
Zp.displayName = "Studio";
|
|
16112
|
-
var Qp = ln(lr("studio:templateDialog", () => import("./
|
|
16115
|
+
var Qp = ln(lr("studio:templateDialog", () => import("./yvFeggWgnxoK9S79.mjs")).load), Yp = lr("studio:welcomeDialog", () => import("./Xl67EnlWC7zoBIhM.mjs")), Xp = ln(Yp.load), Jp = fo((e) => {
|
|
16113
16116
|
const { scope: t } = e, { showModal: o } = pn(), n = to(), r = Fo(void 0), [a, l] = no("studio.welcome.showAtStartup", !0), i = (e, o) => {
|
|
16114
16117
|
t.resolve(e)?.execute(o);
|
|
16115
16118
|
}, s = (e) => {
|
|
@@ -16167,7 +16170,7 @@ var Qp = ln(lr("studio:templateDialog", () => import("./DgHlwwldxPMVUdYv.mjs")).
|
|
|
16167
16170
|
a,
|
|
16168
16171
|
l
|
|
16169
16172
|
]);
|
|
16170
|
-
return
|
|
16173
|
+
return vo(() => {
|
|
16171
16174
|
const e = t.contribution();
|
|
16172
16175
|
return e.updateCommand("newWorkbookFromTemplate", {
|
|
16173
16176
|
tags: ["noTransaction", "noRepeat"],
|
|
@@ -16184,7 +16187,7 @@ var Qp = ln(lr("studio:templateDialog", () => import("./DgHlwwldxPMVUdYv.mjs")).
|
|
|
16184
16187
|
});
|
|
16185
16188
|
Jp.displayName = "TemplateCommands";
|
|
16186
16189
|
var eu = !1, tu = () => {
|
|
16187
|
-
eu || (eu = !0, bt.DefaultCommandRegistry.registerDynamic("app", Jp),
|
|
16190
|
+
eu || (eu = !0, bt.DefaultCommandRegistry.registerDynamic("app", Jp), vt.register({
|
|
16188
16191
|
key: "templates.newFromTemplate",
|
|
16189
16192
|
defaultKey: "newWorkbookFromTemplate",
|
|
16190
16193
|
contributions: { newWorkbookOptions: { order: 1 } }
|
|
@@ -16224,20 +16227,20 @@ var eu = !1, tu = () => {
|
|
|
16224
16227
|
urlTitle: null,
|
|
16225
16228
|
urlAddress: null
|
|
16226
16229
|
};
|
|
16227
|
-
}, [t, p]),
|
|
16230
|
+
}, [t, p]), v = Fo(null);
|
|
16228
16231
|
Co(() => {
|
|
16229
|
-
|
|
16232
|
+
v.current = y;
|
|
16230
16233
|
}, [y]);
|
|
16231
|
-
const
|
|
16232
|
-
|
|
16234
|
+
const k = Fo(a);
|
|
16235
|
+
k.current = a;
|
|
16233
16236
|
const w = yo((e) => {
|
|
16234
|
-
e &&
|
|
16237
|
+
e && v.current && (e.getOrigin().setName(v.current), v.current = null), m(e), k.current?.(e);
|
|
16235
16238
|
}, []), S = Fo(l);
|
|
16236
16239
|
S.current = l;
|
|
16237
16240
|
const C = yo((e) => {
|
|
16238
16241
|
g(e), S.current?.(e);
|
|
16239
16242
|
}, []);
|
|
16240
|
-
|
|
16243
|
+
vo(() => {
|
|
16241
16244
|
"welcome" === o && void 0 === f && ((e) => {
|
|
16242
16245
|
Yp.load().then((t) => t.prefetchCatalog(e), () => {});
|
|
16243
16246
|
})(n);
|
|
@@ -16282,4 +16285,4 @@ var eu = !1, tu = () => {
|
|
|
16282
16285
|
onWorkbookLoad: D
|
|
16283
16286
|
};
|
|
16284
16287
|
};
|
|
16285
|
-
export { Ds as ANOMALIES_REVIEW_BUTTON, Ns as AnomaliesPlugin, ml as AppearanceCommandButton, Pr as AutoColorPosition, ea as BorderCommandButton, Jr as BorderPopupButton, _r as BorderStylePopupButton, Zr as BorderTemplateIcon, da as C, bl as CalculationOptionsCommandButton, _i as CalculationRequiredStatus, ji as CircularReferenceStatus, Kr as ColorButton, Er as ColorButtonList, fa as ColorCommandButton, Hr as ColorPanel, Br as ColorPanelType, Gr as ColorPopupButton, bd as ColumnMenu, ys as CommentCard,
|
|
16288
|
+
export { Ds as ANOMALIES_REVIEW_BUTTON, Ns as AnomaliesPlugin, ml as AppearanceCommandButton, Pr as AutoColorPosition, ea as BorderCommandButton, Jr as BorderPopupButton, _r as BorderStylePopupButton, Zr as BorderTemplateIcon, da as C, bl as CalculationOptionsCommandButton, _i as CalculationRequiredStatus, ji as CircularReferenceStatus, Kr as ColorButton, Er as ColorButtonList, fa as ColorCommandButton, Hr as ColorPanel, Br as ColorPanelType, Gr as ColorPopupButton, bd as ColumnMenu, ys as CommentCard, vs as CommentsPlugin, jd as DEFAULT_GRADIENT, z as DefaultTaskPaneRegistry, Bi as DefaultWorkbookToolbars, pl as DocThemeCommandButton, Up as DocumentTitle, ms as ExternalLinksPlugin, es as FORMULA_BAR_EDITOR_ID, Va as FORMULA_FIELD_ABOVE_LABEL_HEIGHT, ul as FileCommandButton, dp as FillMenu, ya as FontFamilyCommandButton, ta as FontSizeCommandButton, Zd as FormatPlugin, as as FormulaBar, Ha as FormulaField, Ti as FunctionArgumentsPanel, Ci as FunctionSearchPanel, Ud as GradientEditor, Gd as GradientStopsBar, ai as INSERT_CELL_CONTROL_OPTIONS_KEY, Fi as INSERT_FUNCTION_PAGE_CLASS, Ka as InputField, li as InsertCellControlCommandButton, Xl as InsertFunctionCommandPopupButton, Di as InsertFunctionOption, bi as InsertFunctionSumCommandPopupButton, Ii as InsertFunctionWizard, vi as ItemCard, yi as ItemCardAction, ki as ItemsSearchField, T as LicenseManager, ps as MobileFormulaBar, is as MobileInputToolbar, Yi as NamedCollectionEditor, Ji as NamedPlugin, ua as NumberFormatCommandButton, oa as NumberFormatOption, Vi as NumberStats, Rd as PATTERN_GALLERY, Qd as PasswordField, va as PasteCommandButton, Od as PatternPopupButton, Pd as PatternSwatch, Zi as PendingStatus, Fd as PivotMenu, Cp as PivotToolbar, ac as PresenceOverlay, ic as PresencePlugin, Ws as PresenceStrip, rc as PresenceTaskPane, Ca as PresetCellStylesCommandButton, Rl as PresetChip, Xa as PresetPivotStylesCommandButton, Dd as PresetSlicerStylesCommandButton, qa as PresetTableStylesCommandButton, ep as ProtectionPlugin, xl as S, tp as SheetTabMenu, Ir as SheetZoomCommandButton, Ki as SheetZoomScale, op as SheetsAllMenu, Id as SlicerPlugin, Qi as StatusBar, Zp as Studio, jr as StyledStrokeIcon, Ga as TablePlugin, Aa as TableStyleCanvasPreview, Da as TableStylePreview, wp as TableToolbar, xa as TextEffectsCommandButton, Dr as TextRotateGroupButton, el as ThemeSelectButton, tl as ThemeSelectPanel, ol as ThemeSelectPopupButton, ba as UndoRedoCommandButton, fl as WalkingCopyCommandButton, ap as WorkbookContextMenu, $p as WorkbookElement, ye as WorkbookIO, rp as WorkbookStrip, Ai as WorkbookToolbars, Sl as _, Rc as a, Bl as b, Si as c, dl as createStudioThemeCSS, ll as createThemeFromMUITheme, Vl 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, Pi as defaultRenderToolbar, gp as defaultRenderTooltip, Ap as defaultRenderWorkbookError, Op as defaultRenderWorkbookLoading, Lp as defaultRenderWorksheet, Ul as f, Cl as g, vl as h, Ic as i, fi as l, wl as m, ld as n, ra as numberFormatCategoryLabel, na as numberFormatTypeLabel, ks as o, Ni as optionsForPage, El as p, Md as patternLabel, rd as r, Zl as registerSheetCommandGroups, Fr as registerStudioCommandCatalogs, gi as registerStudioCommandGroups, ui as registerWorkbookCommandGroups, wi as s, _e as setPrintExamplesOnLoad, tu as t, qd as toGradientValue, Bd as toPatternSlots, il as tokensToMuiOptions, pi as u, ts as useFormulaBarSession, nt as useModelListener, st as useRangeListener, nu as useStudioApp, Pl as v, Ar as w, yl as x, Nl as y };
|