@univerjs/sheets-ui 0.8.3-nightly.202507021607 → 0.8.3-nightly.202507031607

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/lib/es/index.js CHANGED
@@ -2,11 +2,11 @@ var Mp = Object.defineProperty;
2
2
  var Ep = (r, e, t) => e in r ? Mp(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var b = (r, e, t) => Ep(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { DOCS_VIEW_KEY as Tp, SetInlineFormatBoldCommand as Pp, SetInlineFormatItalicCommand as xp, SetInlineFormatUnderlineCommand as Op, SetInlineFormatStrikethroughCommand as Ap, SetInlineFormatSubscriptCommand as Hp, SetInlineFormatSuperscriptCommand as Vp, SetInlineFormatFontSizeCommand as kp, SetInlineFormatFontFamilyCommand as Np, SetInlineFormatTextColorCommand as Vh, IEditorService as Si, getCanvasOffsetByEngine as su, VIEWPORT_KEY as _s, DOCS_COMPONENT_MAIN_LAYER_INDEX as Dp, DocSelectionRenderService as gr, BreakLineCommand as Lp, DeleteLeftCommand as kh, DeleteRightCommand as Wp, ReplaceSnapshotCommand as Nh, MoveSelectionOperation as Bp, MoveCursorOperation as Fp, CoverContentCommand as Up, NodePositionConvertToCursor as Dh, getLineBounding as Lh, DOC_VERTICAL_PADDING as Xp, SetInlineFormatCommand as Po, IMEInputCommand as zp, InsertCommand as jp, convertBodyToHtml as Yp } from "@univerjs/docs-ui";
5
- import { CommandType as K, createInterceptorKey as kn, ColorKit as xn, RANGE_TYPE as X, convertCellToRange as bs, UniverInstanceType as O, IUniverInstanceService as N, Quantity as uc, Disposable as oe, toDisposable as We, Tools as le, createIdentifier as jt, InterceptorManager as Ci, ThemeService as At, Inject as k, Injector as Rt, IConfigService as nn, generateRandomId as xo, ObjectMatrix as Ge, Direction as U, isFormulaString as ed, isFormulaId as Zp, CellValueType as Mt, numfmt as $t, ICommandService as L, IUndoRedoService as Yt, Rectangle as ae, sequenceExecute as Oo, FOCUSING_SHEET as Ht, FOCUSING_UNIVER_EDITOR as yr, EDITOR_ACTIVATED as Je, FOCUSING_COMMON_DRAWINGS as yl, FOCUSING_FX_BAR_EDITOR as Ot, FOCUSING_EDITOR_INPUT_FORMULA as Rs, FOCUSING_EDITOR_STANDALONE as Ml, LRUMap as Gp, BaselineOffset as lu, BooleanNumber as Ke, DataStreamTreeTokenType as qp, skipParseTagNames as Qp, CustomRangeType as td, DEFAULT_WORKSHEET_ROW_HEIGHT as hc, ILogService as El, LocaleService as Pe, ErrorService as Kp, CellModeEnum as Wh, isNotNullOrUndefined as Jp, extractPureTextFromCell as Bh, getReverseDirection as Fh, IContextService as ke, Workbook as $p, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Le, Optional as nd, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as De, RxDisposable as Nn, DisposableCollection as gt, IPermissionService as rt, fromEventSubject as Is, sortRules as ev, nameCharacterCheck as tv, throttle as nv, debounce as gc, VerticalAlign as dn, HorizontalAlign as It, WrapStrategy as mr, LocaleType as au, FOCUSING_EDITOR_BUT_HIDDEN as mc, DEFAULT_EMPTY_DOCUMENT_VALUE as Uh, PresetListType as rv, UserManagerService as Dt, DEFAULT_STYLES as rd, FontWeight as $o, FontItalic as es, composeStyles as iv, Dimension as Xh, get as wa, BorderStyleTypes as Ae, AbsoluteRefType as cu, NilCommand as id, splitIntoGrid as ov, UndoCommandId as sv, willLoseNumericPrecision as lv, Range as gs, cellToRange as av, handleStyleToString as du, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY as uu, DEFAULT_WORKSHEET_COLUMN_WIDTH as hu, isRealNum as zh, InterceptorEffectEnum as cv, IAuthzIoService as Tl, isValidRange as dv, dayjs as gu, BuildTextUtils as uv, DependentOn as jh, Plugin as Yh, DocumentFlavor as hv, set as gv, merge as mv, registerDependencies as mu, mergeOverrideWithDependencies as fv, touchDependencies as _a } from "@univerjs/core";
5
+ import { CommandType as K, createInterceptorKey as kn, ColorKit as xn, RANGE_TYPE as X, convertCellToRange as bs, UniverInstanceType as O, IUniverInstanceService as N, Quantity as uc, Disposable as oe, toDisposable as We, Tools as le, createIdentifier as jt, InterceptorManager as Ci, ThemeService as At, Inject as k, Injector as Rt, IConfigService as nn, generateRandomId as xo, ObjectMatrix as Ge, Direction as U, isFormulaString as ed, isFormulaId as Zp, CellValueType as Mt, numfmt as $t, ICommandService as L, IUndoRedoService as Yt, Rectangle as ae, sequenceExecute as Oo, FOCUSING_SHEET as Ht, FOCUSING_UNIVER_EDITOR as yr, EDITOR_ACTIVATED as qe, FOCUSING_COMMON_DRAWINGS as yl, FOCUSING_FX_BAR_EDITOR as Ot, FOCUSING_EDITOR_INPUT_FORMULA as Rs, FOCUSING_EDITOR_STANDALONE as Ml, LRUMap as Gp, BaselineOffset as lu, BooleanNumber as Je, DataStreamTreeTokenType as qp, skipParseTagNames as Qp, CustomRangeType as td, DEFAULT_WORKSHEET_ROW_HEIGHT as hc, ILogService as El, LocaleService as Pe, ErrorService as Kp, CellModeEnum as Wh, isNotNullOrUndefined as Jp, extractPureTextFromCell as Bh, getReverseDirection as Fh, IContextService as ke, Workbook as $p, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Le, Optional as nd, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as De, RxDisposable as Nn, DisposableCollection as gt, IPermissionService as rt, fromEventSubject as Is, sortRules as ev, nameCharacterCheck as tv, throttle as nv, debounce as gc, VerticalAlign as dn, HorizontalAlign as It, WrapStrategy as mr, LocaleType as au, FOCUSING_EDITOR_BUT_HIDDEN as mc, DEFAULT_EMPTY_DOCUMENT_VALUE as Uh, PresetListType as rv, UserManagerService as Dt, DEFAULT_STYLES as rd, FontWeight as $o, FontItalic as es, composeStyles as iv, Dimension as Xh, get as wa, BorderStyleTypes as Ae, AbsoluteRefType as cu, NilCommand as id, splitIntoGrid as ov, UndoCommandId as sv, willLoseNumericPrecision as lv, Range as gs, cellToRange as av, handleStyleToString as du, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY as uu, DEFAULT_WORKSHEET_COLUMN_WIDTH as hu, isRealNum as zh, InterceptorEffectEnum as cv, IAuthzIoService as Tl, isValidRange as dv, dayjs as gu, BuildTextUtils as uv, DependentOn as jh, Plugin as Yh, DocumentFlavor as hv, set as gv, merge as mv, registerDependencies as mu, mergeOverrideWithDependencies as fv, touchDependencies as _a } from "@univerjs/core";
6
6
  import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as ys, SELECTION_CONTROL_BORDER_BUFFER_COLOR as ts, SELECTIONS_ENABLED as Ur, REF_SELECTIONS_ENABLED as to, SheetSkeletonService as pv, SheetsSelectionsService as $, SheetInterceptorService as vn, MarkDirtyRowAutoHeightMutation as Zh, CancelMarkDirtyRowAutoHeightMutation as Gh, getSheetCommandTarget as Ue, SetWorksheetRowAutoHeightMutationFactory as qh, SetWorksheetRowAutoHeightMutation as Jn, rangeToDiscreteRange as Zi, SetSelectionsOperation as Te, SetRangeValuesMutation as be, generateNullCellValue as vv, SetRangeValuesUndoMutationFactory as en, SetWorksheetActiveOperation as nt, getPrimaryForRange as Qh, DeleteRangeMoveLeftCommand as fu, DeleteRangeMoveUpCommand as pu, alignToMergedCellsBorders as En, SetRowHiddenCommand as Kh, SetColHiddenCommand as Jh, SetBoldCommand as od, SetItalicCommand as sd, SetUnderlineCommand as ld, SetStrikeThroughCommand as ad, SetFontSizeCommand as cd, SetFontFamilyCommand as dd, SetTextColorCommand as $h, InsertRangeMoveDownCommand as fc, InsertRangeMoveRightCommand as pc, EditStateEnum as an, ViewStateEnum as ri, UnitObject as Vt, WorksheetProtectionRuleModel as ft, DeleteWorksheetProtectionCommand as Ms, RangeProtectionRuleModel as $e, DeleteRangeProtectionMutation as vu, AddRangeProtectionMutation as Sv, RemoveRowCommand as eg, RemoveColCommand as tg, RemoveSheetCommand as Cv, SetFrozenMutationFactory as ng, SetFrozenMutation as fr, getSelectionsService as Ao, SelectionMoveType as Ut, getCellAtRowCol as ms, expandToContinuousRange as wv, ScrollToCellOperation as ud, SetWorksheetColWidthMutation as cn, BEFORE_CELL_EDIT as _v, AddWorksheetProtectionCommand as rg, SetRangeValuesCommand as Pl, MoveRangeMutation as $n, RemoveRowMutation as Ho, RemoveColMutation as Vo, InsertRowMutation as ko, InsertColMutation as No, MoveRowsMutation as xl, MoveColsMutation as Ol, SetWorksheetRowHeightMutation as no, RemoveSheetMutation as On, RemoveMergeUndoMutationFactory as Al, RemoveWorksheetMergeMutation as Qt, AddWorksheetMergeMutation as Kt, getAddMergeMutationRangeByType as Hl, AddMergeUndoMutationFactory as Vl, WorkbookEditablePermission as Q, WorksheetEditPermission as te, UnitAction as ro, SetWorksheetShowCommand as hd, RangeProtectionCache as Do, WorksheetViewPermission as ig, SetWorksheetOrderMutation as gd, InsertSheetMutation as Mr, SetWorksheetNameMutation as md, SetWorksheetHideMutation as er, SetWorksheetActivateCommand as fd, WorkbookManageCollaboratorPermission as og, WorkbookRenameSheetPermission as sg, SetWorksheetOrderCommand as bv, SetWorksheetNameCommand as Rv, SetTabColorMutation as Iv, WorkbookCreateSheetPermission as lg, InsertSheetCommand as yv, ClearSelectionFormatCommand as Gi, COMMAND_LISTENER_SKELETON_CHANGE as Es, adjustRangeOnMutation as Mv, RangeProtectionPermissionEditPoint as ie, IExclusiveRangeService as Ev, BorderStyleManagerService as vc, WorksheetSetCellStylePermission as Ze, SetBorderBasicCommand as Sc, ClearSelectionAllCommand as Ui, WorksheetSetCellValuePermission as qt, ClearSelectionContentCommand as pr, WorksheetDeleteRowPermission as Tv, WorksheetDeleteColumnPermission as Pv, ToggleGridlinesCommand as ag, ToggleGridlinesMutation as xv, InsertMultiRowsAfterCommand as cg, WorksheetInsertRowPermission as Lo, InsertMultiRowsAboveCommand as dg, InsertMultiColsRightCommand as ug, InsertMultiColsLeftCommand as hg, InsertColBeforeCommand as gg, WorksheetInsertColumnPermission as mg, InsertRowBeforeCommand as fg, CancelFrozenCommand as fs, SetWorksheetRowIsAutoHeightCommand as pd, WorksheetSetRowStylePermission as Er, SetRowHeightCommand as pg, SetRowHiddenMutation as vg, SetRowVisibleMutation as Sg, SetSelectedRowsVisibleCommand as Cg, WorksheetSetColumnStylePermission as Tr, SetColWidthCommand as wg, SetColHiddenMutation as _g, SetColVisibleMutation as bg, SetSelectedColsVisibleCommand as Rg, SetTextRotationCommand as Cc, SetTextWrapCommand as wc, SetVerticalTextAlignCommand as _c, SetHorizontalTextAlignCommand as bc, ResetBackgroundColorCommand as Ig, SetBackgroundColorCommand as Ts, WorksheetCopyPermission as Ps, RangeProtectionPermissionViewPoint as Rc, WorkbookCopyPermission as Xi, SetWorksheetRowIsAutoHeightMutation as Ov, AddMergeRedoSelectionsOperationFactory as Av, AddMergeUndoSelectionsOperationFactory as Hv, MergeCellController as Vv, MERGE_CELL_INTERCEPTOR_CHECK as kv, RemoveWorksheetMergeCommand as yg, WorkbookCreateProtectPermission as kl, WorksheetDeleteProtectionPermission as Mg, WorksheetManageCollaboratorPermission as Nv, SetWorksheetHideCommand as Eg, SetTabColorCommand as Tg, CopySheetCommand as Pg, WorkbookDeleteSheetPermission as Dv, WorkbookHideSheetPermission as xg, AddWorksheetMergeCommand as Lv, AddWorksheetMergeHorizontalCommand as Wv, AddWorksheetMergeVerticalCommand as Bv, AddWorksheetMergeAllCommand as Fv, ResetTextColorCommand as Uv, SheetPermissionCheckController as vd, SetFrozenCommand as Xv, InsertRowCommand as zv, InsertColCommand as jv, MoveColsCommand as Og, MoveRowsCommand as Ag, DeltaRowHeightCommand as Yv, DeltaColumnWidthCommand as Zv, COMMAND_LISTENER_VALUE_CHANGE as Gv, RefRangeService as qv, IRefSelectionsService as Sd, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as Ic, InsertDefinedNameCommand as Qv, SetDefinedNameCommand as Kv, RemoveDefinedNameCommand as Jv, INumfmtService as $v, MoveRangeCommand as Hg, MAX_CELL_PER_SHEET_KEY as eS, INTERCEPTOR_POINT as tS, SetProtectionCommand as nS, AddRangeProtectionCommand as rS, setEndForRange as iS, baseProtectionActions as oS, DeleteRangeProtectionCommand as sS, WorksheetProtectionPointModel as lS, SetWorksheetPermissionPointsCommand as aS, getAllWorksheetPermissionPoint as cS, convertSelectionDataToRange as Vg, UniverSheetsPlugin as kg, RefSelectionsService as Ng, ToggleCellCheckboxCommand as dS, SheetPermissionInitController as uS, SetSpecificRowsVisibleCommand as hS, SetSpecificColsVisibleCommand as gS } from "@univerjs/sheets";
7
7
  import { IRenderManagerService as Ce, withCurrentTypeOfRenderer as Cd, SHEET_VIEWPORT_KEY as F, CURSOR_TYPE as ye, Vector2 as Ve, Rect as we, ScrollTimer as Gr, ScrollTimerType as bt, DashedRect as mS, Group as ba, TRANSFORM_CHANGE_OBSERVABLE_TYPE as yc, cancelRequestFrame as fS, requestNewFrame as pS, FIX_ONE_PIXEL_BLUR_OFFSET as vS, Layer as SS, SpreadsheetSkeleton as CS, ptToPixel as Su, RENDER_CLASS_TYPE as wS, DeviceInputEventType as ze, convertTransformToOffsetX as Xr, convertTransformToOffsetY as zr, convertTextRotation as wd, RENDER_RAW_FORMULA_KEY as _S, Spreadsheet as Dg, getCurrentTypeOfRenderer as Nl, ScrollBar as _d, fixLineWidthByScale as Cu, Shape as bd, SHEET_EXTENSION_PREFIX as wu, SpreadsheetRowHeader as bS, SpreadsheetColumnHeader as RS, Viewport as Cn, hasCJKText as IS, DEFAULT_PADDING_DATA as yS, SheetExtension as Lg, RegularPolygon as zi, precisionTo as Zn } from "@univerjs/engine-render";
8
8
  import { BehaviorSubject as Me, Subject as xe, switchMap as at, map as Be, of as Ie, merge as St, startWith as xt, takeUntil as ii, distinctUntilChanged as un, throttleTime as xs, EMPTY as _u, filter as Wo, combineLatest as ct, Observable as je, combineLatestWith as rr, shareReplay as bu, Subscription as qn, withLatestFrom as MS } from "rxjs";
9
- import { DEFAULT_BACKGROUND_COLOR_RGB as ES, DEFAULT_BACKGROUND_COLOR_RGBA as TS, handleStringToStyle as PS, textTrim as Ru, IClipboardInterfaceService as Dl, INotificationService as xS, IPlatformService as OS, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as Iu, HTML_CLIPBOARD_MIME_TYPE as yu, imageMimeTypeSet as AS, FILE__BMP_CLIPBOARD_MIME_TYPE as HS, FILE__WEBP_CLIPBOARD_MIME_TYPE as VS, FILE__JPEG_CLIPBOARD_MIME_TYPE as kS, FILE_PNG_CLIPBOARD_MIME_TYPE as NS, CopyCommand as DS, CutCommand as LS, PasteCommand as WS, SheetPasteShortKeyCommandName as BS, IConfirmService as rn, ISidebarService as wi, KeyCode as Z, IDialogService as Bo, useDependency as D, useObservable as ht, ComponentManager as Zt, DISABLE_AUTO_FOCUS_KEY as Mu, useEvent as Eu, useSidebarClick as Wg, MetaKeys as Se, useComponentsOfPart as Bg, ComponentContainer as Fg, useConfigValue as Ll, UI_PLUGIN_CONFIG_KEY as Rd, UIMenu as FS, ContextMenuPosition as Ct, Slider as US, IMessageService as Ug, IMenuManagerService as Id, ToolbarItem as XS, ILayoutService as Wl, getMenuHiddenObservable as ue, MenuItemType as J, IContextMenuService as Bl, COLOR_PICKER_COMPONENT as yd, FONT_SIZE_LIST as zS, FONT_SIZE_COMPONENT as jS, FONT_FAMILY_LIST as YS, FONT_FAMILY_COMPONENT as ZS, FONT_FAMILY_ITEM_COMPONENT as GS, ContextMenuGroup as Qe, RibbonPosition as qS, RibbonStartGroup as ns, ICanvasPopupService as QS, IShortcutService as Fl, IUIPartsService as Ul, BuiltInUIPart as qi, connectInjector as qr, IZenZoneService as Xg, RectPopup as KS, UniverMobileUIPlugin as JS } from "@univerjs/ui";
9
+ import { DEFAULT_BACKGROUND_COLOR_RGB as ES, DEFAULT_BACKGROUND_COLOR_RGBA as TS, handleStringToStyle as PS, textTrim as Ru, IClipboardInterfaceService as Dl, INotificationService as xS, IPlatformService as OS, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as Iu, HTML_CLIPBOARD_MIME_TYPE as yu, imageMimeTypeSet as AS, FILE__BMP_CLIPBOARD_MIME_TYPE as HS, FILE__WEBP_CLIPBOARD_MIME_TYPE as VS, FILE__JPEG_CLIPBOARD_MIME_TYPE as kS, FILE_PNG_CLIPBOARD_MIME_TYPE as NS, CopyCommand as DS, CutCommand as LS, PasteCommand as WS, SheetPasteShortKeyCommandName as BS, IConfirmService as rn, ISidebarService as wi, KeyCode as Z, IDialogService as Bo, useDependency as D, useObservable as ht, ComponentManager as Zt, DISABLE_AUTO_FOCUS_KEY as Mu, useEvent as Eu, useSidebarClick as Wg, MetaKeys as Se, useComponentsOfPart as Bg, ComponentContainer as Fg, useConfigValue as Ll, UI_PLUGIN_CONFIG_KEY as Rd, UIMenu as FS, ContextMenuPosition as Ct, Slider as US, IMessageService as Ug, IMenuManagerService as Id, ToolbarItem as XS, ILayoutService as Wl, getMenuHiddenObservable as ue, MenuItemType as J, IContextMenuService as Bl, COLOR_PICKER_COMPONENT as yd, FONT_SIZE_LIST as zS, FONT_SIZE_COMPONENT as jS, FONT_FAMILY_LIST as YS, FONT_FAMILY_COMPONENT as ZS, FONT_FAMILY_ITEM_COMPONENT as GS, ContextMenuGroup as Ke, RibbonPosition as qS, RibbonStartGroup as ns, ICanvasPopupService as QS, IShortcutService as Fl, IUIPartsService as Ul, BuiltInUIPart as qi, connectInjector as qr, IZenZoneService as Xg, RectPopup as KS, UniverMobileUIPlugin as JS } from "@univerjs/ui";
10
10
  import { forwardRef as dt, useRef as Tn, createElement as st, useState as re, useMemo as wt, useEffect as Ee, useCallback as An, useLayoutEffect as $S } from "react";
11
11
  import { DocSkeletonManagerService as Qn, DocSelectionManagerService as Md, RichTextEditingMutation as io, SetTextSelectionsOperation as Fo } from "@univerjs/docs";
12
12
  import { IDefinedNamesService as Uo, FUNCTION_NAMES_STATISTICAL as Xe, FUNCTION_NAMES_MATH as Xl, FUNCTION_NAMES_TEXT as eC, sequenceNodeType as Ra, matchToken as zg, LexerTreeBuilder as jg, IFunctionService as Yg, SetFormulaCalculationNotificationMutation as tC, operatorToken as Fr, isReferenceStrings as Zg, isReferenceStringWithEffectiveColumn as nC, serializeRangeWithSheet as Gg, NullValueObject as Tu, serializeRange as qg, deserializeRangeWithSheet as Qg } from "@univerjs/engine-formula";
@@ -3178,25 +3178,25 @@ function Dd(r) {
3178
3178
  return r.getContextValue(Ht);
3179
3179
  }
3180
3180
  function Oe(r) {
3181
- return r.getContextValue(Ht) && r.getContextValue(yr) && !r.getContextValue(Je) && !r.getContextValue(yl);
3181
+ return r.getContextValue(Ht) && r.getContextValue(yr) && !r.getContextValue(qe) && !r.getContextValue(yl);
3182
3182
  }
3183
3183
  function lm(r) {
3184
- return r.getContextValue(Ht) && r.getContextValue(yr) && !r.getContextValue(Je) && !r.getContextValue(Ot) && !r.getContextValue(yl);
3184
+ return r.getContextValue(Ht) && r.getContextValue(yr) && !r.getContextValue(qe) && !r.getContextValue(Ot) && !r.getContextValue(yl);
3185
3185
  }
3186
3186
  function YC(r) {
3187
- return r.getContextValue(Ht) && r.getContextValue(yr) && r.getContextValue(Je);
3187
+ return r.getContextValue(Ht) && r.getContextValue(yr) && r.getContextValue(qe);
3188
3188
  }
3189
3189
  function Ld(r) {
3190
- return r.getContextValue(yr) && r.getContextValue(Je);
3190
+ return r.getContextValue(yr) && r.getContextValue(qe);
3191
3191
  }
3192
3192
  function Zl(r) {
3193
3193
  return r.getContextValue(Ot) && r.getContextValue(yr);
3194
3194
  }
3195
3195
  function Wy(r) {
3196
- return r.getContextValue(Ht) && r.getContextValue(Je) && r.getContextValue(Rs) && r.getContextValue(yr);
3196
+ return r.getContextValue(Ht) && r.getContextValue(qe) && r.getContextValue(Rs) && r.getContextValue(yr);
3197
3197
  }
3198
3198
  function si(r) {
3199
- return r.getContextValue(Ht) && r.getContextValue(yr) && r.getContextValue(Je) && !r.getContextValue(Rs) && !r.getContextValue(Ml);
3199
+ return r.getContextValue(Ht) && r.getContextValue(yr) && r.getContextValue(qe) && !r.getContextValue(Rs) && !r.getContextValue(Ml);
3200
3200
  }
3201
3201
  var ZC = Object.getOwnPropertyDescriptor, GC = (r, e, t, n) => {
3202
3202
  for (var i = n > 1 ? void 0 : n ? ZC(e, t) : e, o = r.length - 1, s; o >= 0; o--)
@@ -3327,23 +3327,23 @@ function Ws(r, e) {
3327
3327
  case "b":
3328
3328
  case "em":
3329
3329
  case "strong": {
3330
- n.bl = Ke.TRUE;
3330
+ n.bl = Je.TRUE;
3331
3331
  break;
3332
3332
  }
3333
3333
  case "s": {
3334
3334
  n.st = {
3335
- s: Ke.TRUE
3335
+ s: Je.TRUE
3336
3336
  };
3337
3337
  break;
3338
3338
  }
3339
3339
  case "u": {
3340
3340
  n.ul = {
3341
- s: Ke.TRUE
3341
+ s: Je.TRUE
3342
3342
  };
3343
3343
  break;
3344
3344
  }
3345
3345
  case "i": {
3346
- n.it = Ke.TRUE;
3346
+ n.it = Je.TRUE;
3347
3347
  break;
3348
3348
  }
3349
3349
  case "sub":
@@ -3377,14 +3377,14 @@ function Fu(r, e, t) {
3377
3377
  break;
3378
3378
  }
3379
3379
  case "font-style":
3380
- e === "italic" && (t.it = Ke.TRUE);
3380
+ e === "italic" && (t.it = Je.TRUE);
3381
3381
  break;
3382
3382
  case "font-weight": {
3383
- (Number(e) > 400 || e === "bold") && (t.bl = Ke.TRUE);
3383
+ (Number(e) > 400 || e === "bold") && (t.bl = Je.TRUE);
3384
3384
  break;
3385
3385
  }
3386
3386
  case "text-decoration": {
3387
- /underline/.test(e) ? t.ul = { s: Ke.TRUE } : /overline/.test(e) ? t.ol = { s: Ke.TRUE } : /line-through/.test(e) && (t.st = { s: Ke.TRUE });
3387
+ /underline/.test(e) ? t.ul = { s: Je.TRUE } : /overline/.test(e) ? t.ol = { s: Je.TRUE } : /line-through/.test(e) && (t.st = { s: Je.TRUE });
3388
3388
  break;
3389
3389
  }
3390
3390
  case "color": {
@@ -3911,7 +3911,7 @@ const s1 = {
3911
3911
  const e = Ws(r);
3912
3912
  return {
3913
3913
  st: {
3914
- s: Ke.TRUE
3914
+ s: Je.TRUE
3915
3915
  },
3916
3916
  ...e
3917
3917
  };
@@ -3960,7 +3960,7 @@ const s1 = {
3960
3960
  filter: ["b"],
3961
3961
  getStyle(r) {
3962
3962
  const e = Ws(r);
3963
- return { bl: Ke.TRUE, ...e };
3963
+ return { bl: Je.TRUE, ...e };
3964
3964
  }
3965
3965
  }
3966
3966
  ],
@@ -5427,69 +5427,69 @@ const ql = {
5427
5427
  id: "sheet.command.set-range-bold",
5428
5428
  handler: async (r) => {
5429
5429
  const e = r.get(L);
5430
- return r.get(ke).getContextValue(Je) ? e.executeCommand(Pp.id) : e.executeCommand(od.id);
5430
+ return r.get(ke).getContextValue(qe) ? e.executeCommand(Pp.id) : e.executeCommand(od.id);
5431
5431
  }
5432
5432
  }, Ii = {
5433
5433
  type: K.COMMAND,
5434
5434
  id: "sheet.command.set-range-italic",
5435
5435
  handler: async (r) => {
5436
5436
  const e = r.get(L);
5437
- return r.get(ke).getContextValue(Je) ? e.executeCommand(xp.id) : e.executeCommand(sd.id);
5437
+ return r.get(ke).getContextValue(qe) ? e.executeCommand(xp.id) : e.executeCommand(sd.id);
5438
5438
  }
5439
5439
  }, yi = {
5440
5440
  type: K.COMMAND,
5441
5441
  id: "sheet.command.set-range-underline",
5442
5442
  handler: async (r) => {
5443
5443
  const e = r.get(L);
5444
- return r.get(ke).getContextValue(Je) ? e.executeCommand(Op.id) : e.executeCommand(ld.id);
5444
+ return r.get(ke).getContextValue(qe) ? e.executeCommand(Op.id) : e.executeCommand(ld.id);
5445
5445
  }
5446
5446
  }, Mi = {
5447
5447
  type: K.COMMAND,
5448
5448
  id: "sheet.command.set-range-stroke",
5449
5449
  handler: async (r) => {
5450
5450
  const e = r.get(L);
5451
- return r.get(ke).getContextValue(Je) ? e.executeCommand(Ap.id) : e.executeCommand(ad.id);
5451
+ return r.get(ke).getContextValue(qe) ? e.executeCommand(Ap.id) : e.executeCommand(ad.id);
5452
5452
  }
5453
5453
  }, fm = {
5454
5454
  type: K.COMMAND,
5455
5455
  id: "sheet.command.set-range-subscript",
5456
5456
  handler: async (r) => {
5457
5457
  const e = r.get(L);
5458
- return r.get(ke).getContextValue(Je) ? e.executeCommand(Hp.id) : !1;
5458
+ return r.get(ke).getContextValue(qe) ? e.executeCommand(Hp.id) : !1;
5459
5459
  }
5460
5460
  }, pm = {
5461
5461
  type: K.COMMAND,
5462
5462
  id: "sheet.command.set-range-superscript",
5463
5463
  handler: async (r) => {
5464
5464
  const e = r.get(L);
5465
- return r.get(ke).getContextValue(Je) ? e.executeCommand(Vp.id) : !1;
5465
+ return r.get(ke).getContextValue(qe) ? e.executeCommand(Vp.id) : !1;
5466
5466
  }
5467
5467
  }, Kl = {
5468
5468
  type: K.COMMAND,
5469
5469
  id: "sheet.command.set-range-fontsize",
5470
5470
  handler: async (r, e) => {
5471
5471
  const t = r.get(L);
5472
- return r.get(ke).getContextValue(Je) ? t.executeCommand(kp.id, e) : t.executeCommand(cd.id, e);
5472
+ return r.get(ke).getContextValue(qe) ? t.executeCommand(kp.id, e) : t.executeCommand(cd.id, e);
5473
5473
  }
5474
5474
  }, Jl = {
5475
5475
  type: K.COMMAND,
5476
5476
  id: "sheet.command.set-range-font-family",
5477
5477
  handler: async (r, e) => {
5478
5478
  const t = r.get(L);
5479
- return r.get(ke).getContextValue(Je) ? t.executeCommand(Np.id, e) : t.executeCommand(dd.id, e);
5479
+ return r.get(ke).getContextValue(qe) ? t.executeCommand(Np.id, e) : t.executeCommand(dd.id, e);
5480
5480
  }
5481
5481
  }, co = {
5482
5482
  type: K.COMMAND,
5483
5483
  id: "sheet.command.set-range-text-color",
5484
5484
  handler: async (r, e) => {
5485
5485
  const t = r.get(L);
5486
- return r.get(ke).getContextValue(Je) ? t.executeCommand(Vh.id, e) : t.executeCommand($h.id, e);
5486
+ return r.get(ke).getContextValue(qe) ? t.executeCommand(Vh.id, e) : t.executeCommand($h.id, e);
5487
5487
  }
5488
5488
  }, vm = {
5489
5489
  type: K.COMMAND,
5490
5490
  id: "sheet.command.reset-range-text-color",
5491
5491
  handler: async (r) => {
5492
- const e = r.get(L), n = r.get(ke).getContextValue(Je), i = r.get(At);
5492
+ const e = r.get(L), n = r.get(ke).getContextValue(qe), i = r.get(At);
5493
5493
  return n ? e.executeCommand(Vh.id, { value: null }) : e.executeCommand($h.id, {
5494
5494
  value: i.getColorFromTheme("gray.900")
5495
5495
  });
@@ -7062,7 +7062,7 @@ let zs = class extends oe {
7062
7062
  }, this._currentEditCellLayout$.next(this._currentEditCellLayout);
7063
7063
  }
7064
7064
  setEditCell(e) {
7065
- this._currentEditCell = e, this._editorService.getFocusEditor() || (this._editorService.focus(Le), this._contextService.setContextValue(Je, !1), this._contextService.setContextValue(Ml, !1));
7065
+ this._currentEditCell = e, this._editorService.getFocusEditor() || (this._editorService.focus(Le), this._contextService.setContextValue(qe, !1), this._contextService.setContextValue(Ml, !1));
7066
7066
  const t = this.getLatestEditCellState();
7067
7067
  if (!t) {
7068
7068
  this._currentEditCellState = t, this._currentEditCellLayout = t, this._currentEditCellState$.next(t), this._currentEditCellLayout$.next(t);
@@ -7207,7 +7207,7 @@ zs = K1([
7207
7207
  Dr(4, Si),
7208
7208
  Dr(5, ke)
7209
7209
  ], zs);
7210
- const qe = jt("univer.sheet-editor-bridge.service");
7210
+ const Qe = jt("univer.sheet-editor-bridge.service");
7211
7211
  var J1 = Object.getOwnPropertyDescriptor, $1 = (r, e, t, n) => {
7212
7212
  for (var i = n > 1 ? void 0 : n ? J1(e, t) : e, o = r.length - 1, s; o >= 0; o--)
7213
7213
  (s = r[o]) && (i = s(i) || i);
@@ -7274,7 +7274,7 @@ So = $1([
7274
7274
  os(1, k(he)),
7275
7275
  os(2, L),
7276
7276
  os(3, ke),
7277
- os(4, nd(qe))
7277
+ os(4, nd(Qe))
7278
7278
  ], So);
7279
7279
  const Jt = {
7280
7280
  id: "sheet.operation.set-zoom-ratio",
@@ -7294,7 +7294,7 @@ const Jt = {
7294
7294
  const { worksheet: i, subUnitId: o, unitId: s } = n, { delta: l, reset: a } = e;
7295
7295
  let c = a ? 100 : Math.round((i.getConfig().zoomRatio + l) * 100);
7296
7296
  c = Math.max(Tc[0], c), c = Math.min(Tc[1], c);
7297
- const d = c / 100, h = r.get(qe).isVisible();
7297
+ const d = c / 100, h = r.get(Qe).isVisible();
7298
7298
  return (h.unitId === s || h.unitId === De) && h.visible ? !1 : r.get(L).executeCommand(Jt.id, {
7299
7299
  unitId: s,
7300
7300
  subUnitId: o,
@@ -7307,7 +7307,7 @@ const Jt = {
7307
7307
  handler: (r, e) => {
7308
7308
  if (!e)
7309
7309
  return !1;
7310
- const { unitId: t, subUnitId: n, zoomRatio: i } = e, s = r.get(qe).isVisible();
7310
+ const { unitId: t, subUnitId: n, zoomRatio: i } = e, s = r.get(Qe).isVisible();
7311
7311
  return (s.unitId === t || s.unitId === De) && s.visible ? !1 : r.get(L).executeCommand(Jt.id, {
7312
7312
  unitId: t,
7313
7313
  subUnitId: n,
@@ -7394,7 +7394,7 @@ const da = {
7394
7394
  }, Gd = {
7395
7395
  id: "sheet.operation.set-activate-cell-edit",
7396
7396
  type: K.OPERATION,
7397
- handler: (r, e) => (r.get(qe).setEditCell(e), !0)
7397
+ handler: (r, e) => (r.get(Qe).setEditCell(e), !0)
7398
7398
  }, tt = {
7399
7399
  id: "sheet.operation.set-cell-edit-visible",
7400
7400
  type: K.OPERATION,
@@ -7402,7 +7402,7 @@ const da = {
7402
7402
  if (!e)
7403
7403
  return !1;
7404
7404
  const { unitId: t } = e, i = r.get(N).getCurrentUnitForType(O.UNIVER_SHEET);
7405
- return i ? (r.get(qe).changeVisible({
7405
+ return i ? (r.get(Qe).changeVisible({
7406
7406
  ...e,
7407
7407
  unitId: t != null ? t : i.getUnitId()
7408
7408
  }), !0) : !1;
@@ -8147,7 +8147,7 @@ js = cw([
8147
8147
  or(0, N),
8148
8148
  or(1, L),
8149
8149
  or(2, Pr),
8150
- or(3, qe),
8150
+ or(3, Qe),
8151
8151
  or(4, Ce),
8152
8152
  or(5, k(Rt)),
8153
8153
  or(6, k(Rr))
@@ -8722,7 +8722,7 @@ function Xw() {
8722
8722
  ) });
8723
8723
  }
8724
8724
  function jm(r, e) {
8725
- const t = D(qe), n = D(L);
8725
+ const t = D(Qe), n = D(L);
8726
8726
  return wt(() => ({
8727
8727
  keyCodes: [
8728
8728
  { keyCode: Z.ENTER },
@@ -8747,7 +8747,7 @@ const Gs = -1e3, ih = {
8747
8747
  }, zw = () => {
8748
8748
  const [r, e] = re({
8749
8749
  ...ih
8750
- }), t = D(fa), n = D(Si), i = D(ke), o = D(Zt), s = D(qe), l = ht(s.visible$), a = D(L), c = Tn(0), d = ht(
8750
+ }), t = D(fa), n = D(Si), i = D(ke), o = D(Zt), s = D(Qe), l = ht(s.visible$), a = D(L), c = Tn(0), d = ht(
8751
8751
  () => i.subscribeContextValue$(Mu),
8752
8752
  !1,
8753
8753
  void 0,
@@ -9024,12 +9024,12 @@ function Gw(r) {
9024
9024
  const { className: e, disableDefinedName: t } = r, [n, i] = re(!1), [o, s] = re(
9025
9025
  0
9026
9026
  /* Down */
9027
- ), l = D(va), a = D(qe), c = D(ft), d = D($e), u = D(N), h = D($), g = D(rt), m = D(Do), f = D(L), [v, p] = re({
9027
+ ), l = D(va), a = D(Qe), c = D(ft), d = D($e), u = D(N), h = D($), g = D(rt), m = D(Do), f = D(L), [v, p] = re({
9028
9028
  editDisable: !1,
9029
9029
  viewDisable: !1
9030
9030
  }), [C, w] = re(!1), S = D(Zt), I = ht(() => u.getCurrentTypeOfUnit$(O.UNIVER_SHEET), void 0, void 0, []), R = Tn(0), y = ht(a.currentEditCellState$), M = jm(R, (ne = y == null ? void 0 : y.unitId) != null ? ne : ""), E = S.get(Ad), T = Bg(xm.FORMULA_AUX), P = D(ke);
9031
9031
  ht(wt(() => P.subscribeContextValue$(Ot), [P]));
9032
- const A = P.getContextValue(Ot), H = Tn(null), x = D(Si);
9032
+ const A = P.getContextValue(Ot) || P.getContextValue(qe), H = Tn(null), x = D(Si);
9033
9033
  $S(() => {
9034
9034
  const Re = I.activeSheet$.pipe(
9035
9035
  at((de) => de ? St(
@@ -9299,7 +9299,7 @@ function qw() {
9299
9299
  label: C.getName(),
9300
9300
  index: `${w}`,
9301
9301
  sheetId: C.getSheetId(),
9302
- hidden: C.isSheetHidden() === Ke.TRUE,
9302
+ hidden: C.isSheetHidden() === Je.TRUE,
9303
9303
  selected: v === C
9304
9304
  }));
9305
9305
  e(p);
@@ -9955,7 +9955,7 @@ b(Zr, "DoubleClickDelay", 300);
9955
9955
  let ti = Zr;
9956
9956
  function t0() {
9957
9957
  var _e;
9958
- const [r, e] = re([]), [t, n] = re(""), [i, o] = re(""), [s, l] = re(!1), [a, c] = re([0, 0]), d = Tn({ slideTabBar: null }), u = Tn(null), h = D(L), g = D(Or), m = D(Pe), f = D(rn), v = D(qe, uc.OPTIONAL), p = D(ft), C = D($e), w = ht(p.resetOrder$), S = Ar(), I = D(rt), R = An(() => {
9958
+ const [r, e] = re([]), [t, n] = re(""), [i, o] = re(""), [s, l] = re(!1), [a, c] = re([0, 0]), d = Tn({ slideTabBar: null }), u = Tn(null), h = D(L), g = D(Or), m = D(Pe), f = D(rn), v = D(Qe, uc.OPTIONAL), p = D(ft), C = D($e), w = ht(p.resetOrder$), S = Ar(), I = D(rt), R = An(() => {
9959
9959
  var Fe;
9960
9960
  const G = ((Fe = S.getActiveSheet()) == null ? void 0 : Fe.getSheetId()) || "";
9961
9961
  n(G);
@@ -10249,7 +10249,7 @@ const n0 = 100, r0 = () => {
10249
10249
  ] });
10250
10250
  }, i0 = [50, 75, 100, 125, 150, 175, 200, 400];
10251
10251
  function o0() {
10252
- const r = D(L), e = D(N), t = Ar(), n = D(qe), i = ht(n.visible$), o = An(() => {
10252
+ const r = D(L), e = D(N), t = Ar(), n = D(Qe), i = ht(n.visible$), o = An(() => {
10253
10253
  if (!t) return 100;
10254
10254
  const d = t.getActiveSheet(), u = d && d.getZoomRatio() * 100 || 100;
10255
10255
  return Math.round(u);
@@ -10748,7 +10748,7 @@ let qs = class extends oe {
10748
10748
  qs = p0([
10749
10749
  Lr(0, Wl),
10750
10750
  Lr(1, fa),
10751
- Lr(2, qe),
10751
+ Lr(2, Qe),
10752
10752
  Lr(3, Ce),
10753
10753
  Lr(4, N),
10754
10754
  Lr(5, nn)
@@ -10905,7 +10905,7 @@ let Qs = class extends Nn {
10905
10905
  Qs = S0([
10906
10906
  sr(1, N),
10907
10907
  sr(2, L),
10908
- sr(3, qe),
10908
+ sr(3, Qe),
10909
10909
  sr(4, k($)),
10910
10910
  sr(5, ke),
10911
10911
  sr(6, Ce),
@@ -11396,7 +11396,7 @@ let Ks = class extends oe {
11396
11396
  if (l == null)
11397
11397
  return;
11398
11398
  const { document: a, scene: c } = l;
11399
- this._contextService.setContextValue(Je, !0);
11399
+ this._contextService.setContextValue(qe, !0);
11400
11400
  const d = this._getDocumentDataModel(), u = this._getEditorSkeleton(Le);
11401
11401
  if (!u || !d)
11402
11402
  return;
@@ -11537,7 +11537,7 @@ let Ks = class extends oe {
11537
11537
  }
11538
11538
  _exitInput(e) {
11539
11539
  var i;
11540
- this._contextService.setContextValue(Rs, !1), this._contextService.setContextValue(Je, !1), this._contextService.setContextValue(mc, !1), this._contextService.setContextValue(Ot, !1), this._cellEditorManagerService.setState({
11540
+ this._contextService.setContextValue(Rs, !1), this._contextService.setContextValue(qe, !1), this._contextService.setContextValue(mc, !1), this._contextService.setContextValue(Ot, !1), this._cellEditorManagerService.setState({
11541
11541
  show: e.visible
11542
11542
  });
11543
11543
  const t = this._getEditorObject();
@@ -11631,7 +11631,7 @@ Ks = D0([
11631
11631
  yt(0, Yt),
11632
11632
  yt(1, ke),
11633
11633
  yt(2, Ce),
11634
- yt(3, qe),
11634
+ yt(3, Qe),
11635
11635
  yt(4, fa),
11636
11636
  yt(5, k(jg)),
11637
11637
  yt(6, Yg),
@@ -11753,7 +11753,7 @@ let _o = class extends Nn {
11753
11753
  _listenFxBtnClick() {
11754
11754
  this._formulaEditorManagerService.fxBtnClick$.pipe(ii(this.dispose$)).subscribe(() => {
11755
11755
  var t, n;
11756
- if (this._contextService.getContextValue(mc) && !this._contextService.getContextValue(Je)) {
11756
+ if (this._contextService.getContextValue(mc) && !this._contextService.getContextValue(qe)) {
11757
11757
  this._univerInstanceService.setCurrentUnitForType(De), this._contextService.setContextValue(Ot, !0);
11758
11758
  const i = this._univerInstanceService.getCurrentUnitForType(O.UNIVER_SHEET), o = this._univerInstanceService.getUniverDocInstance(
11759
11759
  De
@@ -11828,7 +11828,7 @@ let _o = class extends Nn {
11828
11828
  _o = F0([
11829
11829
  wn(0, N),
11830
11830
  wn(1, Ce),
11831
- wn(2, qe),
11831
+ wn(2, Qe),
11832
11832
  wn(3, L),
11833
11833
  wn(4, ke),
11834
11834
  wn(5, va),
@@ -11991,7 +11991,7 @@ const Yy = (r, e, t, n, i, o) => {
11991
11991
  };
11992
11992
  }, Zy = (r, e, t, n, i, o) => {
11993
11993
  var y, M, E;
11994
- const s = r.get(qe), l = s.getEditCellState();
11994
+ const s = r.get(Qe), l = s.getEditCellState();
11995
11995
  if (!l || !s.isVisible().visible)
11996
11996
  return null;
11997
11997
  const { editorUnitId: c, unitId: d, sheetId: u, row: h, column: g } = l;
@@ -12503,7 +12503,7 @@ function Ti(r, e, t) {
12503
12503
  }
12504
12504
  function fe(r, e = {}, t = !1) {
12505
12505
  var h;
12506
- const i = r.get(N).getCurrentTypeOfUnit$(O.UNIVER_SHEET), o = r.get(Dt), s = r.has(qe) ? r.get(qe) : null, l = r.get(ke), c = ((h = s == null ? void 0 : s.visible$) != null ? h : Ie(null)).pipe(
12506
+ const i = r.get(N).getCurrentTypeOfUnit$(O.UNIVER_SHEET), o = r.get(Dt), s = r.has(Qe) ? r.get(Qe) : null, l = r.get(ke), c = ((h = s == null ? void 0 : s.visible$) != null ? h : Ie(null)).pipe(
12507
12507
  Ia(null),
12508
12508
  Pu(1)
12509
12509
  ), d = l.subscribeContextValue$(Ot).pipe(
@@ -12773,7 +12773,7 @@ function r_(r) {
12773
12773
  activated$: new je((n) => {
12774
12774
  const i = () => {
12775
12775
  const s = t.getCurrentUnitForType(O.UNIVER_SHEET);
12776
- return s ? s.getActiveSheet().getConfig().showGridlines === Ke.TRUE : !1;
12776
+ return s ? s.getActiveSheet().getConfig().showGridlines === Je.TRUE : !1;
12777
12777
  }, o = new gt();
12778
12778
  return o.add(e.onCommandExecuted((s) => {
12779
12779
  (s.id === xv.id || s.id === nt.id) && n.next(i());
@@ -13086,12 +13086,12 @@ function f_(r) {
13086
13086
  }
13087
13087
  s.next(v === $o.BOLD);
13088
13088
  }
13089
- if ((h === Fo.id || h === Po.id) && n.getContextValue(Je) && n.getContextValue(Ht)) {
13089
+ if ((h === Fo.id || h === Po.id) && n.getContextValue(qe) && n.getContextValue(Ht)) {
13090
13090
  const f = Qo(r);
13091
13091
  if (f == null)
13092
13092
  return;
13093
13093
  const v = (m = f.ts) == null ? void 0 : m.bl;
13094
- s.next(v === Ke.TRUE);
13094
+ s.next(v === Je.TRUE);
13095
13095
  }
13096
13096
  }), a = (d = i.getCurrentLastSelection()) == null ? void 0 : d.primary;
13097
13097
  if (!o) {
@@ -13139,11 +13139,11 @@ function p_(r) {
13139
13139
  }
13140
13140
  s.next(v === es.ITALIC);
13141
13141
  }
13142
- if ((h === Fo.id || h === Po.id) && i.getContextValue(Je) && i.getContextValue(Ht)) {
13142
+ if ((h === Fo.id || h === Po.id) && i.getContextValue(qe) && i.getContextValue(Ht)) {
13143
13143
  const f = Qo(r);
13144
13144
  if (f == null) return;
13145
13145
  const v = (m = f.ts) == null ? void 0 : m.it;
13146
- s.next(v === Ke.TRUE);
13146
+ s.next(v === Je.TRUE);
13147
13147
  }
13148
13148
  }), a = (d = n.getCurrentLastSelection()) == null ? void 0 : d.primary;
13149
13149
  let c = es.NORMAL;
@@ -13178,11 +13178,11 @@ function v_(r) {
13178
13178
  }
13179
13179
  s.next(!!(v && v.s));
13180
13180
  }
13181
- if ((h === Fo.id || h === Po.id) && i.getContextValue(Je) && i.getContextValue(Ht)) {
13181
+ if ((h === Fo.id || h === Po.id) && i.getContextValue(qe) && i.getContextValue(Ht)) {
13182
13182
  const f = Qo(r);
13183
13183
  if (f == null) return;
13184
13184
  const v = (m = f.ts) == null ? void 0 : m.ul;
13185
- s.next((v == null ? void 0 : v.s) === Ke.TRUE);
13185
+ s.next((v == null ? void 0 : v.s) === Je.TRUE);
13186
13186
  }
13187
13187
  }), a = (d = n.getCurrentLastSelection()) == null ? void 0 : d.primary;
13188
13188
  let c;
@@ -13227,12 +13227,12 @@ function S_(r) {
13227
13227
  }
13228
13228
  s.next(!!(v && v.s));
13229
13229
  }
13230
- if ((h === Fo.id || h === Po.id) && i.getContextValue(Je) && i.getContextValue(Ht)) {
13230
+ if ((h === Fo.id || h === Po.id) && i.getContextValue(qe) && i.getContextValue(Ht)) {
13231
13231
  const f = Qo(r);
13232
13232
  if (f == null)
13233
13233
  return;
13234
13234
  const v = (m = f.ts) == null ? void 0 : m.st;
13235
- s.next((v == null ? void 0 : v.s) === Ke.TRUE);
13235
+ s.next((v == null ? void 0 : v.s) === Je.TRUE);
13236
13236
  }
13237
13237
  }), a = (d = n.getCurrentLastSelection()) == null ? void 0 : d.primary;
13238
13238
  let c;
@@ -13321,7 +13321,7 @@ function w_(r) {
13321
13321
  }
13322
13322
  }, u = e.onCommandExecuted((h) => {
13323
13323
  const g = h.id;
13324
- (g === be.id || g === Te.id || g === nt.id) && c(), (g === Fo.id || g === Po.id) && i.getContextValue(Je) && i.getContextValue(Ht) && d();
13324
+ (g === be.id || g === Te.id || g === nt.id) && c(), (g === Fo.id || g === Po.id) && i.getContextValue(qe) && i.getContextValue(Ht) && d();
13325
13325
  });
13326
13326
  return c(), u.dispose;
13327
13327
  })),
@@ -13639,14 +13639,14 @@ function T_(r) {
13639
13639
  const p = i.getRange(g.startRow, g.startColumn);
13640
13640
  m = p == null ? void 0 : p.getTextRotation();
13641
13641
  }
13642
- (m == null ? void 0 : m.v) === Ke.TRUE ? o.next("v") : o.next((v = m && m.a) != null ? v : n);
13642
+ (m == null ? void 0 : m.v) === Je.TRUE ? o.next("v") : o.next((v = m && m.a) != null ? v : n);
13643
13643
  }), l = (c = e.getCurrentLastSelection()) == null ? void 0 : c.primary;
13644
13644
  let a;
13645
13645
  if (l != null) {
13646
13646
  const u = i.getRange(l.startRow, l.startColumn);
13647
13647
  a = u == null ? void 0 : u.getTextRotation();
13648
13648
  }
13649
- return (a == null ? void 0 : a.v) === Ke.TRUE ? o.next("v") : o.next((d = a && a.a) != null ? d : n), s.dispose;
13649
+ return (a == null ? void 0 : a.v) === Je.TRUE ? o.next("v") : o.next((d = a && a.a) != null ? d : n), s.dispose;
13650
13650
  })),
13651
13651
  hidden$: ue(r, O.UNIVER_SHEET),
13652
13652
  disabled$: fe(r, {
@@ -14315,7 +14315,7 @@ function G_(r) {
14315
14315
  }
14316
14316
  function pf(r) {
14317
14317
  var c;
14318
- const e = r.get(N), t = r.get(rt), n = e.getCurrentTypeOfUnit$(O.UNIVER_SHEET), i = r.get(Dt), o = r.has(qe) ? r.get(qe) : null, l = r.get(ke).subscribeContextValue$(Ot).pipe(
14318
+ const e = r.get(N), t = r.get(rt), n = e.getCurrentTypeOfUnit$(O.UNIVER_SHEET), i = r.get(Dt), o = r.has(Qe) ? r.get(Qe) : null, l = r.get(ke).subscribeContextValue$(Ot).pipe(
14319
14319
  xt(!1),
14320
14320
  bu(1)
14321
14321
  ), a = (c = o == null ? void 0 : o.visible$.pipe(
@@ -14459,7 +14459,7 @@ function J_(r) {
14459
14459
  }
14460
14460
  function vf(r) {
14461
14461
  var c;
14462
- const e = r.get(N), t = r.get(rt), n = e.getCurrentTypeOfUnit$(O.UNIVER_SHEET), i = r.get(Dt), o = r.has(qe) ? r.get(qe) : null, l = r.get(ke).subscribeContextValue$(Ot), a = (c = o == null ? void 0 : o.visible$) != null ? c : Ie(null);
14462
+ const e = r.get(N), t = r.get(rt), n = e.getCurrentTypeOfUnit$(O.UNIVER_SHEET), i = r.get(Dt), o = r.has(Qe) ? r.get(Qe) : null, l = r.get(ke).subscribeContextValue$(Ot), a = (c = o == null ? void 0 : o.visible$) != null ? c : Ie(null);
14463
14463
  return ct([n, i.currentUser$, a, l]).pipe(
14464
14464
  at(([d, u, h, g]) => !d || h != null && h.visible && h.unitId === d.getUnitId() || g ? Ie(!0) : d.activeSheet$.pipe(
14465
14465
  at((m) => {
@@ -14662,7 +14662,7 @@ function cb(r) {
14662
14662
  }
14663
14663
  function el(r, e) {
14664
14664
  const t = r.getCurrentUnitForType(O.UNIVER_SHEET).getWorksheets(), n = Array.from(t.values()).filter(
14665
- (i) => i.getConfig().hidden === Ke.FALSE
14665
+ (i) => i.getConfig().hidden === Je.FALSE
14666
14666
  );
14667
14667
  e.next(n.length === 1);
14668
14668
  }
@@ -14772,7 +14772,7 @@ const db = {
14772
14772
  }
14773
14773
  },
14774
14774
  [Ct.MAIN_AREA]: {
14775
- [Qe.FORMAT]: {
14775
+ [Ke.FORMAT]: {
14776
14776
  [hn.name]: {
14777
14777
  order: 0,
14778
14778
  menuItemFactory: ni
@@ -14822,7 +14822,7 @@ const db = {
14822
14822
  }
14823
14823
  }
14824
14824
  },
14825
- [Qe.LAYOUT]: {
14825
+ [Ke.LAYOUT]: {
14826
14826
  order: 1,
14827
14827
  [hf]: {
14828
14828
  order: 0,
@@ -14905,15 +14905,15 @@ const db = {
14905
14905
  }
14906
14906
  }
14907
14907
  },
14908
- [Qe.DATA]: {
14908
+ [Ke.DATA]: {
14909
14909
  order: 2
14910
14910
  },
14911
- [Qe.OTHERS]: {
14911
+ [Ke.OTHERS]: {
14912
14912
  order: 3
14913
14913
  }
14914
14914
  },
14915
14915
  [Ct.COL_HEADER]: {
14916
- [Qe.FORMAT]: {
14916
+ [Ke.FORMAT]: {
14917
14917
  [hn.name]: {
14918
14918
  order: 0,
14919
14919
  menuItemFactory: ni
@@ -14963,7 +14963,7 @@ const db = {
14963
14963
  }
14964
14964
  }
14965
14965
  },
14966
- [Qe.LAYOUT]: {
14966
+ [Ke.LAYOUT]: {
14967
14967
  order: 1,
14968
14968
  [hg.id]: {
14969
14969
  order: 0,
@@ -15026,15 +15026,15 @@ const db = {
15026
15026
  }
15027
15027
  }
15028
15028
  },
15029
- [Qe.DATA]: {
15029
+ [Ke.DATA]: {
15030
15030
  order: 2
15031
15031
  },
15032
- [Qe.OTHERS]: {
15032
+ [Ke.OTHERS]: {
15033
15033
  order: 3
15034
15034
  }
15035
15035
  },
15036
15036
  [Ct.ROW_HEADER]: {
15037
- [Qe.FORMAT]: {
15037
+ [Ke.FORMAT]: {
15038
15038
  [hn.name]: {
15039
15039
  order: 0,
15040
15040
  menuItemFactory: ni
@@ -15084,7 +15084,7 @@ const db = {
15084
15084
  }
15085
15085
  }
15086
15086
  },
15087
- [Qe.LAYOUT]: {
15087
+ [Ke.LAYOUT]: {
15088
15088
  order: 1,
15089
15089
  [dg.id]: {
15090
15090
  order: 0,
@@ -15147,15 +15147,15 @@ const db = {
15147
15147
  }
15148
15148
  }
15149
15149
  },
15150
- [Qe.DATA]: {
15150
+ [Ke.DATA]: {
15151
15151
  order: 2
15152
15152
  },
15153
- [Qe.OTHERS]: {
15153
+ [Ke.OTHERS]: {
15154
15154
  order: 3
15155
15155
  }
15156
15156
  },
15157
15157
  [Ct.FOOTER_TABS]: {
15158
- [Qe.OTHERS]: {
15158
+ [Ke.OTHERS]: {
15159
15159
  order: 0,
15160
15160
  [ra.id]: {
15161
15161
  order: 0,
@@ -15204,7 +15204,7 @@ const db = {
15204
15204
  }
15205
15205
  },
15206
15206
  [Ct.FOOTER_MENU]: {
15207
- [Qe.OTHERS]: {
15207
+ [Ke.OTHERS]: {
15208
15208
  [ag.id]: {
15209
15209
  order: 1,
15210
15210
  menuItemFactory: r_
@@ -19895,7 +19895,7 @@ let vi = class extends Nn {
19895
19895
  const { height: R } = S || {};
19896
19896
  R && (p[I] = {
19897
19897
  h: Number.parseFloat(R),
19898
- hd: Ke.FALSE
19898
+ hd: Je.FALSE
19899
19899
  });
19900
19900
  });
19901
19901
  const C = {
@@ -19977,7 +19977,7 @@ let vi = class extends Nn {
19977
19977
  range: S,
19978
19978
  colInfo: s.slice(m).map((R, y) => ({
19979
19979
  w: R.width ? Math.max(+R.width, i.getColumnWidth(v[y])) : f,
19980
- hd: Ke.FALSE
19980
+ hd: Je.FALSE
19981
19981
  }))
19982
19982
  };
19983
19983
  c.push({
@@ -20514,50 +20514,50 @@ function DR(r) {
20514
20514
  }
20515
20515
  const LR = {
20516
20516
  [Ct.MAIN_AREA]: {
20517
- [Qe.FORMAT]: {
20517
+ [Ke.FORMAT]: {
20518
20518
  [hn.name]: {
20519
20519
  order: 0,
20520
20520
  menuItemFactory: ni
20521
20521
  }
20522
20522
  },
20523
- [Qe.DATA]: {
20523
+ [Ke.DATA]: {
20524
20524
  order: 2
20525
20525
  },
20526
- [Qe.OTHERS]: {
20526
+ [Ke.OTHERS]: {
20527
20527
  order: 3
20528
20528
  }
20529
20529
  },
20530
20530
  [Ct.COL_HEADER]: {
20531
- [Qe.FORMAT]: {
20531
+ [Ke.FORMAT]: {
20532
20532
  [hn.name]: {
20533
20533
  order: 0,
20534
20534
  menuItemFactory: ni
20535
20535
  }
20536
20536
  },
20537
- [Qe.LAYOUT]: {
20537
+ [Ke.LAYOUT]: {
20538
20538
  order: 1
20539
20539
  },
20540
- [Qe.DATA]: {
20540
+ [Ke.DATA]: {
20541
20541
  order: 2
20542
20542
  },
20543
- [Qe.OTHERS]: {
20543
+ [Ke.OTHERS]: {
20544
20544
  order: 3
20545
20545
  }
20546
20546
  },
20547
20547
  [Ct.ROW_HEADER]: {
20548
- [Qe.FORMAT]: {
20548
+ [Ke.FORMAT]: {
20549
20549
  [hn.name]: {
20550
20550
  order: 0,
20551
20551
  menuItemFactory: ni
20552
20552
  }
20553
20553
  },
20554
- [Qe.LAYOUT]: {
20554
+ [Ke.LAYOUT]: {
20555
20555
  order: 1
20556
20556
  },
20557
- [Qe.DATA]: {
20557
+ [Ke.DATA]: {
20558
20558
  order: 2
20559
20559
  },
20560
- [Qe.OTHERS]: {
20560
+ [Ke.OTHERS]: {
20561
20561
  order: 3
20562
20562
  }
20563
20563
  }
@@ -22770,7 +22770,7 @@ const TI = (r) => {
22770
22770
  };
22771
22771
  function pp(r) {
22772
22772
  var I, R, y, M;
22773
- const { popup: { extraProps: e } } = r, { location: t, hideFn: n, onChange: i, onEdit: o, options: s, defaultValue: l, multiple: a, showEdit: c } = e, { worksheet: d } = t, [u, h] = re(""), g = D(L), m = D(Pe), [f, v] = re(l), p = D(qe), C = D(N), w = KS.useContext(), S = ((R = (I = w.current) == null ? void 0 : I.right) != null ? R : 0) - ((M = (y = w.current) == null ? void 0 : y.left) != null ? M : 0);
22773
+ const { popup: { extraProps: e } } = r, { location: t, hideFn: n, onChange: i, onEdit: o, options: s, defaultValue: l, multiple: a, showEdit: c } = e, { worksheet: d } = t, [u, h] = re(""), g = D(L), m = D(Pe), [f, v] = re(l), p = D(Qe), C = D(N), w = KS.useContext(), S = ((R = (I = w.current) == null ? void 0 : I.right) != null ? R : 0) - ((M = (y = w.current) == null ? void 0 : y.left) != null ? M : 0);
22774
22774
  return Ee(() => {
22775
22775
  const E = g.onCommandExecuted((T) => {
22776
22776
  var P, A;
@@ -23406,7 +23406,7 @@ let vl = class extends Yh {
23406
23406
  [lt, { useClass: pl }],
23407
23407
  [Sa, { useClass: Ym }],
23408
23408
  [bi, { useClass: Ls }],
23409
- [qe, { useClass: zs }],
23409
+ [Qe, { useClass: zs }],
23410
23410
  [Ir],
23411
23411
  [wo],
23412
23412
  [mi],
@@ -23637,7 +23637,7 @@ const ZI = {
23637
23637
  centerAngle: 0,
23638
23638
  vertexAngle: 0,
23639
23639
  wrapStrategy: mr.WRAP,
23640
- isRenderStyle: Ke.FALSE
23640
+ isRenderStyle: Je.FALSE
23641
23641
  }
23642
23642
  };
23643
23643
  let wl = class extends oe {
@@ -23749,7 +23749,7 @@ let wl = class extends oe {
23749
23749
  height: 1 / 0
23750
23750
  };
23751
23751
  }
23752
- ((o = t == null ? void 0 : t.dataStream) != null ? o : "").startsWith("=") ? n.isRenderStyle = Ke.TRUE : n.isRenderStyle = Ke.FALSE;
23752
+ ((o = t == null ? void 0 : t.dataStream) != null ? o : "").startsWith("=") ? n.isRenderStyle = Je.TRUE : n.isRenderStyle = Je.FALSE;
23753
23753
  }
23754
23754
  _clearParagraph(r) {
23755
23755
  const e = le.deepClone(r);
@@ -23761,7 +23761,7 @@ let wl = class extends oe {
23761
23761
  wl = YI([
23762
23762
  Xn(0, N),
23763
23763
  Xn(1, Ce),
23764
- Xn(2, qe),
23764
+ Xn(2, Qe),
23765
23765
  Xn(3, L),
23766
23766
  Xn(4, k($e)),
23767
23767
  Xn(5, k(ft)),
@@ -24734,7 +24734,7 @@ let Rl = class extends Yh {
24734
24734
  onStarting() {
24735
24735
  mu(this._injector, fv([
24736
24736
  [ui],
24737
- [qe, { useClass: zs }],
24737
+ [Qe, { useClass: zs }],
24738
24738
  [on, { useClass: Bs }],
24739
24739
  [Or, { useClass: Im }],
24740
24740
  [Dn, { useClass: Xs }],
@@ -24980,7 +24980,7 @@ export {
24980
24980
  Js as HoverRenderController,
24981
24981
  Pr as IAutoFillService,
24982
24982
  fa as ICellEditorManagerService,
24983
- qe as IEditorBridgeService,
24983
+ Qe as IEditorBridgeService,
24984
24984
  Dn as IFormatPainterService,
24985
24985
  va as IFormulaEditorManagerService,
24986
24986
  bi as IMarkSelectionService,