@univerjs/sheets-ui 0.10.13-nightly.202510290902 → 0.10.14-nightly.202511031023
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/cjs/index.js +12 -12
- package/lib/es/index.js +569 -563
- package/lib/index.js +569 -563
- package/lib/umd/index.js +12 -12
- package/package.json +12 -12
package/lib/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var Dp = Object.defineProperty;
|
|
2
2
|
var Lp = (r, e, t) => e in r ? Dp(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var _ = (r, e, t) => Lp(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { DOCS_VIEW_KEY as Wp, SetInlineFormatBoldCommand as Bp, SetInlineFormatItalicCommand as Fp, SetInlineFormatUnderlineCommand as Up, SetInlineFormatStrikethroughCommand as Xp, SetInlineFormatSubscriptCommand as zp, SetInlineFormatSuperscriptCommand as jp, SetInlineFormatFontSizeCommand as Yp, SetInlineFormatFontFamilyCommand as Zp, SetInlineFormatTextColorCommand as Bh, IEditorService as Ni, getCanvasOffsetByEngine as
|
|
5
|
-
import { CommandType as J, createInterceptorKey as Nn, ColorKit as fn, RANGE_TYPE as z, convertCellToRange as ks, UniverInstanceType as O, IUniverInstanceService as k, Quantity as
|
|
6
|
-
import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as Bs, SELECTION_CONTROL_BORDER_BUFFER_COLOR as fs, convertPrimaryWithCoordToPrimary as yv, SELECTIONS_ENABLED as Zr, REF_SELECTIONS_ENABLED as vo, SheetSkeletonService as Mv, SheetsSelectionsService as Q, SheetInterceptorService as vn, MarkDirtyRowAutoHeightMutation as tg, CancelMarkDirtyRowAutoHeightMutation as ng, getSheetCommandTarget as Xe, SetWorksheetRowAutoHeightMutationFactory as rg, SetWorksheetRowAutoHeightMutation as er, rangeToDiscreteRange as co, SetSelectionsOperation as Ie, SetRangeValuesMutation as we, generateNullCellValue as Ev, SetRangeValuesUndoMutationFactory as $t, SetWorksheetActiveOperation as nt, getPrimaryForRange as ig, DeleteRangeMoveLeftCommand as
|
|
7
|
-
import { IRenderManagerService as ve, withCurrentTypeOfRenderer as
|
|
8
|
-
import { BehaviorSubject as Me, Subject as He, switchMap as lt, map as Be, of as Ce, merge as St, startWith as Pt, takeUntil as ui, distinctUntilChanged as dn, throttleTime as js, EMPTY as
|
|
9
|
-
import { DEFAULT_BACKGROUND_COLOR_RGB as WS, DEFAULT_BACKGROUND_COLOR_RGBA as BS, handleStringToStyle as FS, textTrim as
|
|
4
|
+
import { DOCS_VIEW_KEY as Wp, SetInlineFormatBoldCommand as Bp, SetInlineFormatItalicCommand as Fp, SetInlineFormatUnderlineCommand as Up, SetInlineFormatStrikethroughCommand as Xp, SetInlineFormatSubscriptCommand as zp, SetInlineFormatSuperscriptCommand as jp, SetInlineFormatFontSizeCommand as Yp, SetInlineFormatFontFamilyCommand as Zp, SetInlineFormatTextColorCommand as Bh, IEditorService as Ni, getCanvasOffsetByEngine as uu, VIEWPORT_KEY as Ns, DOCS_COMPONENT_MAIN_LAYER_INDEX as Gp, DocSelectionRenderService as Qn, BreakLineCommand as qp, DeleteLeftCommand as Fh, DeleteRightCommand as Qp, ReplaceSnapshotCommand as Uh, MoveSelectionOperation as Kp, MoveCursorOperation as Jp, CoverContentCommand as $p, NodePositionConvertToCursor as Xh, getLineBounding as zh, DOC_VERTICAL_PADDING as ev, SetInlineFormatCommand as Lo, IMEInputCommand as tv, InsertCommand as nv, convertBodyToHtml as rv } from "@univerjs/docs-ui";
|
|
5
|
+
import { CommandType as J, createInterceptorKey as Nn, ColorKit as fn, RANGE_TYPE as z, convertCellToRange as ks, UniverInstanceType as O, IUniverInstanceService as k, Quantity as wc, Disposable as se, toDisposable as We, Tools as ce, createIdentifier as Yt, InterceptorManager as ki, ThemeService as Ht, Inject as N, Injector as Rt, IConfigService as Bt, generateRandomId as xn, ObjectMatrix as Ge, Direction as U, isFormulaString as rd, isFormulaId as iv, CellValueType as yt, numfmt as Wt, ICommandService as W, IUndoRedoService as Zt, Rectangle as oe, sequenceExecute as Wo, FOCUSING_SHEET as Vt, FOCUSING_UNIVER_EDITOR as Pr, EDITOR_ACTIVATED as Je, FOCUSING_COMMON_DRAWINGS as kl, FOCUSING_FX_BAR_EDITOR as xt, FOCUSING_EDITOR_INPUT_FORMULA as Ds, FOCUSING_EDITOR_STANDALONE as Dl, LRUMap as ov, BaselineOffset as hu, BooleanNumber as Ke, DataStreamTreeTokenType as sv, skipParseTagNames as lv, CustomRangeType as id, DEFAULT_WORKSHEET_ROW_HEIGHT as bc, ILogService as Ll, LocaleService as xe, ErrorService as av, CellModeEnum as jh, isNotNullOrUndefined as cv, extractPureTextFromCell as Yh, getReverseDirection as Zh, IContextService as De, Workbook as dv, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Oe, Optional as od, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Ae, RxDisposable as kn, DisposableCollection as ht, IPermissionService as rt, fromEventSubject as Ls, sortRules as uv, nameCharacterCheck as hv, throttle as gv, debounce as _c, VerticalAlign as cn, HorizontalAlign as It, WrapStrategy as mr, LocaleType as gu, FOCUSING_EDITOR_BUT_HIDDEN as Rc, DEFAULT_EMPTY_DOCUMENT_VALUE as Gh, isTextFormat as Wl, PresetListType as mv, UserManagerService as Ft, DEFAULT_STYLES as Bo, FontWeight as hs, FontItalic as gs, composeStyles as fv, Dimension as qh, get as Aa, BorderStyleTypes as Pe, AbsoluteRefType as mu, NilCommand as sd, splitIntoGrid as pv, UndoCommandId as vv, willLoseNumericPrecision as Sv, Range as Es, cellToRange as Cv, handleStyleToString as fu, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY as pu, DEFAULT_WORKSHEET_COLUMN_WIDTH as vu, DocumentFlavor as wv, isRealNum as Qh, InterceptorEffectEnum as bv, IAuthzIoService as Bl, isValidRange as _v, dayjs as ms, BuildTextUtils as Rv, DependentOn as Kh, Plugin as Jh, merge as $h, registerDependencies as Ws, mergeOverrideWithDependencies as eg, touchDependencies as $r, set as Iv } from "@univerjs/core";
|
|
6
|
+
import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as Bs, SELECTION_CONTROL_BORDER_BUFFER_COLOR as fs, convertPrimaryWithCoordToPrimary as yv, SELECTIONS_ENABLED as Zr, REF_SELECTIONS_ENABLED as vo, SheetSkeletonService as Mv, SheetsSelectionsService as Q, SheetInterceptorService as vn, MarkDirtyRowAutoHeightMutation as tg, CancelMarkDirtyRowAutoHeightMutation as ng, getSheetCommandTarget as Xe, SetWorksheetRowAutoHeightMutationFactory as rg, SetWorksheetRowAutoHeightMutation as er, rangeToDiscreteRange as co, SetSelectionsOperation as Ie, SetRangeValuesMutation as we, generateNullCellValue as Ev, SetRangeValuesUndoMutationFactory as $t, SetWorksheetActiveOperation as nt, getPrimaryForRange as ig, DeleteRangeMoveLeftCommand as Su, DeleteRangeMoveUpCommand as Cu, alignToMergedCellsBorders as En, SetRowHiddenCommand as og, SetColHiddenCommand as sg, SetBoldCommand as ld, SetItalicCommand as ad, SetUnderlineCommand as cd, SetStrikeThroughCommand as dd, SetFontSizeCommand as ud, SetFontFamilyCommand as hd, SetTextColorCommand as lg, InsertRangeMoveDownCommand as Ic, InsertRangeMoveRightCommand as yc, EditStateEnum as sn, ViewStateEnum as di, UnitObject as kt, WorksheetProtectionRuleModel as ft, DeleteWorksheetProtectionCommand as Fs, RangeProtectionRuleModel as $e, DeleteRangeProtectionMutation as wu, AddRangeProtectionMutation as Tv, RemoveRowCommand as ag, RemoveColCommand as cg, RemoveSheetCommand as Pv, SetFrozenMutationFactory as dg, SetFrozenMutation as fr, getSelectionsService as Fo, SelectionMoveType as Ot, getCellAtRowCol as Ts, expandToContinuousRange as xv, ScrollToCellOperation as gd, SetWorksheetColWidthMutation as ln, BEFORE_CELL_EDIT as Ov, AddWorksheetProtectionCommand as ug, SetRangeValuesCommand as Fl, MoveRangeMutation as tr, RemoveRowMutation as Uo, RemoveColMutation as Xo, InsertRowMutation as zo, InsertColMutation as jo, MoveRowsMutation as Ul, MoveColsMutation as Xl, SetWorksheetRowHeightMutation as So, RemoveSheetMutation as On, RemoveMergeUndoMutationFactory as zl, RemoveWorksheetMergeMutation as Qt, AddWorksheetMergeMutation as Kt, getAddMergeMutationRangeByType as jl, AddMergeUndoMutationFactory as Yl, WorkbookEditablePermission as K, WorksheetEditPermission as te, UnitAction as Co, SetWorksheetShowCommand as md, RangeProtectionCache as Yo, WorksheetViewPermission as hg, SetWorksheetOrderMutation as fd, InsertSheetMutation as xr, SetWorksheetNameMutation as pd, SetWorksheetHideMutation as nr, SetWorksheetActivateCommand as vd, WorkbookManageCollaboratorPermission as gg, WorkbookRenameSheetPermission as mg, SetWorksheetOrderCommand as Av, SetWorksheetNameCommand as Hv, SetTabColorMutation as Vv, WorkbookCreateSheetPermission as fg, InsertSheetCommand as Nv, ClearSelectionFormatCommand as uo, COMMAND_LISTENER_SKELETON_CHANGE as Us, adjustRangeOnMutation as kv, RangeProtectionPermissionEditPoint as ie, IExclusiveRangeService as Dv, BorderStyleManagerService as Mc, WorksheetSetCellStylePermission as Ze, SetBorderBasicCommand as Ec, ClearSelectionAllCommand as io, WorksheetSetCellValuePermission as qt, ClearSelectionContentCommand as pr, WorkbookDeleteRowPermission as Lv, WorksheetDeleteRowPermission as Wv, WorkbookDeleteColumnPermission as Bv, WorksheetDeleteColumnPermission as Fv, ToggleGridlinesCommand as pg, ToggleGridlinesMutation as Uv, InsertMultiRowsAfterCommand as vg, WorkbookInsertRowPermission as Zl, WorksheetInsertRowPermission as Gl, InsertMultiRowsAboveCommand as Sg, InsertMultiColsRightCommand as Cg, WorkbookInsertColumnPermission as ql, WorksheetInsertColumnPermission as Ql, InsertMultiColsLeftCommand as wg, InsertColBeforeCommand as bg, InsertRowBeforeCommand as _g, CancelFrozenCommand as Ps, SetWorksheetRowIsAutoHeightCommand as Sd, WorksheetSetRowStylePermission as Or, SetRowHeightCommand as Rg, SetRowHiddenMutation as Ig, SetRowVisibleMutation as yg, SetSelectedRowsVisibleCommand as Mg, WorksheetSetColumnStylePermission as Ar, SetColWidthCommand as Eg, SetColHiddenMutation as Tg, SetColVisibleMutation as Pg, SetSelectedColsVisibleCommand as xg, SetTextRotationCommand as Tc, SetTextWrapCommand as Pc, SetVerticalTextAlignCommand as xc, SetHorizontalTextAlignCommand as Oc, ResetBackgroundColorCommand as Og, SetBackgroundColorCommand as Xs, WorksheetCopyPermission as zs, RangeProtectionPermissionViewPoint as Ac, WorkbookCopyPermission as oo, SetWorksheetRowIsAutoHeightMutation as Xv, AddMergeRedoSelectionsOperationFactory as zv, AddMergeUndoSelectionsOperationFactory as jv, MergeCellController as Yv, MERGE_CELL_INTERCEPTOR_CHECK as Zv, RemoveWorksheetMergeCommand as Ag, WorkbookCreateProtectPermission as Kl, WorksheetDeleteProtectionPermission as Hg, WorksheetManageCollaboratorPermission as Gv, SetWorksheetHideCommand as Vg, SetTabColorCommand as Ng, CopySheetCommand as kg, WorkbookDeleteSheetPermission as qv, WorkbookHideSheetPermission as Dg, AddWorksheetMergeCommand as Qv, AddWorksheetMergeHorizontalCommand as Kv, AddWorksheetMergeVerticalCommand as Jv, AddWorksheetMergeAllCommand as $v, ResetTextColorCommand as eS, SheetPermissionCheckController as Cd, SetFrozenCommand as tS, InsertRowCommand as nS, InsertColCommand as rS, MoveColsCommand as Lg, MoveRowsCommand as Wg, DeltaRowHeightCommand as iS, DeltaColumnWidthCommand as oS, COMMAND_LISTENER_VALUE_CHANGE as sS, RefRangeService as lS, IRefSelectionsService as wd, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as Hc, InsertDefinedNameCommand as aS, SetDefinedNameCommand as cS, RemoveDefinedNameCommand as dS, INumfmtService as uS, ToggleCellCheckboxCommand as hS, MoveRangeCommand as Bg, MAX_CELL_PER_SHEET_KEY as gS, INTERCEPTOR_POINT as mS, SheetPermissionInitController as fS, SetProtectionCommand as pS, AddRangeProtectionCommand as vS, setEndForRange as SS, baseProtectionActions as CS, DeleteRangeProtectionCommand as wS, WorksheetProtectionPointModel as bS, SetWorksheetPermissionPointsCommand as _S, getAllWorksheetPermissionPoint as RS, SetSpecificRowsVisibleCommand as IS, SetSpecificColsVisibleCommand as yS, convertSelectionDataToRange as Fg, UniverSheetsPlugin as Ug, RefSelectionsService as Xg } from "@univerjs/sheets";
|
|
7
|
+
import { IRenderManagerService as ve, withCurrentTypeOfRenderer as bd, SHEET_VIEWPORT_KEY as F, CURSOR_TYPE as ye, Vector2 as ke, Rect as Se, ScrollTimer as ei, ScrollTimerType as bt, DashedRect as MS, Group as Ha, TRANSFORM_CHANGE_OBSERVABLE_TYPE as Vc, cancelRequestFrame as ES, requestNewFrame as TS, FIX_ONE_PIXEL_BLUR_OFFSET as PS, Layer as xS, SpreadsheetSkeleton as OS, ptToPixel as bu, RENDER_CLASS_TYPE as AS, DeviceInputEventType as je, convertTransformToOffsetX as Gr, convertTransformToOffsetY as qr, convertTextRotation as _d, RENDER_RAW_FORMULA_KEY as HS, Spreadsheet as zg, getCurrentTypeOfRenderer as Zo, ScrollBar as Rd, fixLineWidthByScale as _u, Shape as Id, SHEET_EXTENSION_PREFIX as Ru, SpreadsheetRowHeader as VS, SpreadsheetColumnHeader as NS, Viewport as Cn, hasCJKText as kS, DEFAULT_PADDING_DATA as DS, SheetExtension as jg, RegularPolygon as so, precisionTo as Gn } from "@univerjs/engine-render";
|
|
8
|
+
import { BehaviorSubject as Me, Subject as He, switchMap as lt, map as Be, of as Ce, merge as St, startWith as Pt, takeUntil as ui, distinctUntilChanged as dn, throttleTime as js, EMPTY as Iu, filter as Go, combineLatest as at, Observable as Fe, combineLatestWith as or, shareReplay as yu, Subscription as Kn, withLatestFrom as LS } from "rxjs";
|
|
9
|
+
import { DEFAULT_BACKGROUND_COLOR_RGB as WS, DEFAULT_BACKGROUND_COLOR_RGBA as BS, handleStringToStyle as FS, textTrim as Mu, IClipboardInterfaceService as Jl, INotificationService as US, IPlatformService as XS, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as Eu, HTML_CLIPBOARD_MIME_TYPE as Tu, imageMimeTypeSet as zS, FILE__BMP_CLIPBOARD_MIME_TYPE as jS, FILE__WEBP_CLIPBOARD_MIME_TYPE as YS, FILE__JPEG_CLIPBOARD_MIME_TYPE as ZS, FILE_PNG_CLIPBOARD_MIME_TYPE as GS, CopyCommand as qS, CutCommand as QS, PasteCommand as KS, SheetPasteShortKeyCommandName as JS, IConfirmService as tn, ISidebarService as Di, KeyCode as Y, IDialogService as qo, useDependency as L, useObservable as dt, ComponentManager as Nt, DISABLE_AUTO_FOCUS_KEY as Pu, useEvent as xu, useSidebarClick as Yg, MetaKeys as pe, useComponentsOfPart as $S, ComponentContainer as eC, useConfigValue as $l, UI_PLUGIN_CONFIG_KEY as ea, UIMenu as tC, ContextMenuPosition as _t, Slider as nC, IMessageService as Zg, IMenuManagerService as yd, ToolbarItem as rC, ILayoutService as Md, getMenuHiddenObservable as ae, MenuItemType as $, IContextMenuService as Ed, COLOR_PICKER_COMPONENT as Td, FONT_SIZE_LIST as iC, FONT_SIZE_COMPONENT as oC, FONT_FAMILY_LIST as sC, FONT_FAMILY_COMPONENT as lC, FONT_FAMILY_ITEM_COMPONENT as aC, ContextMenuGroup as Qe, RibbonPosition as cC, RibbonStartGroup as ps, ICanvasPopupService as dC, IShortcutService as ta, IUIPartsService as Pd, BuiltInUIPart as ti, connectInjector as ni, IZenZoneService as Gg, RectPopup as uC, UniverMobileUIPlugin as hC } from "@univerjs/ui";
|
|
10
10
|
import { useRef as Tn, createElement as st, forwardRef as ut, useState as re, useMemo as Ct, useEffect as Ee, useCallback as An, useLayoutEffect as gC } from "react";
|
|
11
|
-
import { DocSkeletonManagerService as Jn, DocSelectionManagerService as
|
|
12
|
-
import { IDefinedNamesService as Ko, FUNCTION_NAMES_STATISTICAL as ze, FUNCTION_NAMES_MATH as na, FUNCTION_NAMES_TEXT as mC, sequenceNodeType as Va, matchToken as qg, LexerTreeBuilder as Qg, IFunctionService as Kg, SetFormulaCalculationNotificationMutation as fC, operatorToken as Yr, isReferenceStrings as Jg, isReferenceStringWithEffectiveColumn as pC, serializeRangeWithSheet as $g, deserializeRangeWithSheet as em, NullValueObject as
|
|
11
|
+
import { DocSkeletonManagerService as Jn, DocSelectionManagerService as xd, RichTextEditingMutation as wo, SetTextSelectionsOperation as Qo } from "@univerjs/docs";
|
|
12
|
+
import { IDefinedNamesService as Ko, FUNCTION_NAMES_STATISTICAL as ze, FUNCTION_NAMES_MATH as na, FUNCTION_NAMES_TEXT as mC, sequenceNodeType as Va, matchToken as qg, LexerTreeBuilder as Qg, IFunctionService as Kg, SetFormulaCalculationNotificationMutation as fC, operatorToken as Yr, isReferenceStrings as Jg, isReferenceStringWithEffectiveColumn as pC, serializeRangeWithSheet as $g, deserializeRangeWithSheet as em, NullValueObject as Ou, serializeRange as tm } from "@univerjs/engine-formula";
|
|
13
13
|
import { jsx as b, jsxs as q, Fragment as Jo } from "react/jsx-runtime";
|
|
14
|
-
import { DropdownMenu as
|
|
15
|
-
import { startWith as Na, shareReplay as
|
|
14
|
+
import { DropdownMenu as Od, clsx as Te, borderClassName as Li, borderBottomClassName as Ad, scrollbarClassName as ra, borderRightClassName as Hd, Dropdown as Nc, Button as jt, DropdownLegacy as vC, Tooltip as Zn, MessageType as nm, InputNumber as SC, Separator as CC, ColorPicker as rm, Input as Ys, RadioGroup as kc, Radio as Qr, Select as im, Confirm as wC, FormLayout as Zs, Avatar as Vd, Switch as bC, borderTopClassName as Gs, CascaderList as _C, TimeInput as RC, Calendar as IC } from "@univerjs/design";
|
|
15
|
+
import { startWith as Na, shareReplay as Au, switchMap as Pn, map as pn, debounceTime as ia, filter as om } from "rxjs/operators";
|
|
16
16
|
import { ITelemetryService as yC } from "@univerjs/telemetry";
|
|
17
|
-
function
|
|
17
|
+
function Nd(r, e) {
|
|
18
18
|
if (r == null)
|
|
19
19
|
return;
|
|
20
20
|
const t = e.getRenderById(r);
|
|
@@ -28,9 +28,9 @@ function kd(r, e) {
|
|
|
28
28
|
engine: o
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const Dc = [10, 400], sm = "RANGE_SELECTOR_COMPONENT_KEY", kd = "EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY";
|
|
32
32
|
var Ye = /* @__PURE__ */ ((r) => (r.MAIN = "__SpreadsheetRender__", r.ROW = "__SpreadsheetRowHeader__", r.COLUMN = "__SpreadsheetColumnHeader__", r.LEFT_TOP = "__SpreadsheetLeftTopPlaceholder__", r))(Ye || {});
|
|
33
|
-
const
|
|
33
|
+
const Hu = 0, qs = 1, rr = 10, MC = 11, Vu = 12, oa = {
|
|
34
34
|
id: "sheet.command.set-row-header-width",
|
|
35
35
|
type: J.COMMAND,
|
|
36
36
|
handler: async (r, e) => {
|
|
@@ -64,7 +64,7 @@ const Vu = 0, qs = 1, rr = 10, MC = 11, Nu = 12, oa = {
|
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
66
|
}
|
|
67
|
-
},
|
|
67
|
+
}, Lc = Nn("rangeMovePermissionCheck"), Wc = Nn("rangeFillPermissionCheck");
|
|
68
68
|
var lm = /* @__PURE__ */ ((r) => (r[r.FORMULA_EDITOR_SHOW = 100] = "FORMULA_EDITOR_SHOW", r[r.MARK_SELECTION = 1e4] = "MARK_SELECTION", r))(lm || {});
|
|
69
69
|
function Sr(r) {
|
|
70
70
|
const e = r.getColorFromTheme("primary.600"), t = r.getColorFromTheme("white"), n = new fn(e).setAlpha(0.07).toRgbString();
|
|
@@ -251,7 +251,7 @@ function Qs(r, e) {
|
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
|
-
const
|
|
254
|
+
const Nu = "__SpreadsheetHelperSelectionTempRect", TC = 35;
|
|
255
255
|
class PC {
|
|
256
256
|
constructor(e, t) {
|
|
257
257
|
_(this, "_startOffsetX", 0);
|
|
@@ -302,7 +302,7 @@ class PC {
|
|
|
302
302
|
}
|
|
303
303
|
_getFreeze() {
|
|
304
304
|
var t, n;
|
|
305
|
-
return (n = (t =
|
|
305
|
+
return (n = (t = bd(
|
|
306
306
|
O.UNIVER_SHEET,
|
|
307
307
|
de,
|
|
308
308
|
this._injector.get(k),
|
|
@@ -339,7 +339,7 @@ class PC {
|
|
|
339
339
|
[e, t, n, i].forEach((o) => {
|
|
340
340
|
o.onPointerEnter$.subscribeEvent(() => {
|
|
341
341
|
var l;
|
|
342
|
-
((l = this._injector.get(gt,
|
|
342
|
+
((l = this._injector.get(gt, wc.OPTIONAL)) == null ? void 0 : l.interceptor.fetchThroughInterceptors(Lc)(!1, null)) !== !1 && o.setCursor(ye.MOVE);
|
|
343
343
|
}), o.onPointerLeave$.subscribeEvent(() => {
|
|
344
344
|
o.resetCursor();
|
|
345
345
|
}), o.onPointerDown$.subscribeEvent(this._controlPointerDownHandler.bind(this));
|
|
@@ -398,7 +398,7 @@ class PC {
|
|
|
398
398
|
let C = 0, w = 0;
|
|
399
399
|
h < m ? C -= 1 : h > v && (C += 1), g < f ? w -= 1 : g > p && (w += 1), this._relativeSelectionPositionRow = m - h + C, this._relativeSelectionPositionColumn = f - g + w, this._relativeSelectionRowLength = v - m, this._relativeSelectionColumnLength = p - f;
|
|
400
400
|
const S = this._control.currentStyle, I = this._getScale();
|
|
401
|
-
this.isHelperSelection && (this._helperSelection = new Se(
|
|
401
|
+
this.isHelperSelection && (this._helperSelection = new Se(Nu, {
|
|
402
402
|
stroke: S.stroke,
|
|
403
403
|
strokeWidth: S.strokeWidth / I
|
|
404
404
|
}), i.addObject(this._helperSelection));
|
|
@@ -408,7 +408,7 @@ class PC {
|
|
|
408
408
|
if (this._disabled)
|
|
409
409
|
return;
|
|
410
410
|
const { offsetX: E, offsetY: T } = M;
|
|
411
|
-
if (((x = this._injector.get(gt,
|
|
411
|
+
if (((x = this._injector.get(gt, wc.OPTIONAL)) == null ? void 0 : x.interceptor.fetchThroughInterceptors(Lc)(!1, null)) === !1)
|
|
412
412
|
return;
|
|
413
413
|
const { x: H, y: A } = i.getCoordRelativeToViewport(
|
|
414
414
|
ke.FromArray([E, T])
|
|
@@ -513,7 +513,7 @@ class PC {
|
|
|
513
513
|
_initialAutoFill() {
|
|
514
514
|
const { fillControl: e } = this._control;
|
|
515
515
|
e.onPointerEnter$.subscribeEvent((t) => {
|
|
516
|
-
this._injector.get(gt).interceptor.fetchThroughInterceptors(
|
|
516
|
+
this._injector.get(gt).interceptor.fetchThroughInterceptors(Wc)(!1, { x: t.offsetX, y: t.offsetY, skeleton: this._skeleton, scene: this._scene }) && e.setCursor(ye.CROSSHAIR);
|
|
517
517
|
}), e.onPointerLeave$.subscribeEvent(() => {
|
|
518
518
|
e.resetCursor();
|
|
519
519
|
}), e.onPointerDown$.subscribeEvent(this._autoFillForPointerdown.bind(this));
|
|
@@ -600,7 +600,7 @@ class PC {
|
|
|
600
600
|
const v = this._getScale();
|
|
601
601
|
m /= v;
|
|
602
602
|
const p = Bs / v, C = new fn(g).darken(2).toRgbString();
|
|
603
|
-
this.isHelperSelection && (this._helperSelection = new Se(
|
|
603
|
+
this.isHelperSelection && (this._helperSelection = new Se(Nu, {
|
|
604
604
|
stroke: C,
|
|
605
605
|
strokeWidth: m + p / 2
|
|
606
606
|
}), i.addObject(this._helperSelection)), this._activeViewport = i.getActiveViewportByCoord(ke.FromArray([t, n]));
|
|
@@ -613,7 +613,7 @@ class PC {
|
|
|
613
613
|
}), this._scenePointerMoveSub = i.onPointerMove$.subscribeEvent((I) => {
|
|
614
614
|
var A;
|
|
615
615
|
const { offsetX: R, offsetY: y } = I, M = i.getActiveViewportByCoord(ke.FromArray([R, y]));
|
|
616
|
-
if (!this._injector.get(gt).interceptor.fetchThroughInterceptors(
|
|
616
|
+
if (!this._injector.get(gt).interceptor.fetchThroughInterceptors(Wc)(!1, { x: e.offsetX, y: e.offsetY, skeleton: this._skeleton, scene: this._scene }))
|
|
617
617
|
return;
|
|
618
618
|
const { x: T, y: P } = i.getCoordRelativeToViewport(
|
|
619
619
|
ke.FromArray([R, y])
|
|
@@ -733,9 +733,9 @@ class PC {
|
|
|
733
733
|
return Math.max(e, t);
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
var
|
|
737
|
-
const
|
|
738
|
-
class
|
|
736
|
+
var Bc = /* @__PURE__ */ ((r) => (r.Selection = "__SpreadsheetSelectionShape__", r.top = "__SpreadsheetSelectionTopControl__", r.bottom = "__SpreadsheetSelectionBottomControl__", r.left = "__SpreadsheetSelectionShapeLeftControl__", r.right = "__SpreadsheetSelectionShapeRightControl__", r.backgroundTop = "__SpreadsheetSelectionBackgroundControlTop__", r.backgroundMiddleLeft = "__SpreadsheetSelectionBackgroundControlMiddleLeft__", r.backgroundMiddleRight = "__SpreadsheetSelectionBackgroundControlMiddleRight__", r.backgroundBottom = "__SpreadsheetSelectionBackgroundControlBottom__", r.fill = "__SpreadsheetSelectionFillControl__", r.fillTopLeft = "__SpreadsheetSelectionFillControlTopLeft__", r.fillBottomRight = "__SpreadsheetSelectionFillControlBottomRight__", r.fillTopLeftInner = "__SpreadsheetSelectionFillControlTopLeftInner__", r.fillBottomRightInner = "__SpreadsheetSelectionFillControlBottomRightInner__", r.lineMain = "__SpreadsheetDragLineMainControl__", r.lineContent = "__SpreadsheetDragLineContentControl__", r.line = "__SpreadsheetDragLineControl__", r.dash = "__SpreadsheetDragDashControl__", r.rowHeaderBackground = "__SpreadSheetSelectionRowHeaderBackground__", r.rowHeaderBorder = "__SpreadSheetSelectionRowHeaderBorder__", r.rowHeaderGroup = "__SpreadSheetSelectionRowHeaderGroup__", r.columnHeaderBackground = "__SpreadSheetSelectionColumnHeaderBackground__", r.columnHeaderBorder = "__SpreadSheetSelectionColumnHeaderBorder__", r.columnHeaderGroup = "__SpreadSheetSelectionColumnHeaderGroup__", r.topLeftWidget = "__SpreadSheetSelectionTopLeftWidget__", r.topCenterWidget = "__SpreadSheetSelectionTopCenterWidget__", r.topRightWidget = "__SpreadSheetSelectionTopRightWidget__", r.middleLeftWidget = "__SpreadSheetSelectionMiddleLeftWidget__", r.middleRightWidget = "__SpreadSheetSelectionMiddleRightWidget__", r.bottomLeftWidget = "__SpreadSheetSelectionBottomLeftWidget__", r.bottomCenterWidget = "__SpreadSheetSelectionBottomCenterWidget__", r.bottomRightWidget = "__SpreadSheetSelectionBottomRightWidget__", r))(Bc || {});
|
|
737
|
+
const ku = 0.3;
|
|
738
|
+
class Dd extends se {
|
|
739
739
|
constructor(t, n, i, o) {
|
|
740
740
|
var s, l, a, c;
|
|
741
741
|
super();
|
|
@@ -852,7 +852,7 @@ class Ld extends se {
|
|
|
852
852
|
i.addObject(this._selectionShapeGroup, qs), this.disposeWithMe(
|
|
853
853
|
We(
|
|
854
854
|
i.onTransformChange$.subscribeEvent((o) => {
|
|
855
|
-
o.type ===
|
|
855
|
+
o.type === Vc.scale && (this._updateLayoutOfSelectionControl(this._currentStyle), this._updateControlCoord());
|
|
856
856
|
})
|
|
857
857
|
)
|
|
858
858
|
);
|
|
@@ -1252,7 +1252,7 @@ class Ld extends se {
|
|
|
1252
1252
|
const p = this._rowHeaderWidth, C = this._columnHeaderHeight;
|
|
1253
1253
|
if (this._highlightHeader && C > 0) {
|
|
1254
1254
|
let w = g;
|
|
1255
|
-
l === z.COLUMN && (w = new fn(d).setAlpha(
|
|
1255
|
+
l === z.COLUMN && (w = new fn(d).setAlpha(ku).toString()), this._columnHeaderBackground.setProps({
|
|
1256
1256
|
fill: w
|
|
1257
1257
|
}), this._columnHeaderBackground.resize(o - n, C), this._columnHeaderBorder.setProps({
|
|
1258
1258
|
fill: m
|
|
@@ -1266,7 +1266,7 @@ class Ld extends se {
|
|
|
1266
1266
|
this._columnHeaderGroup.hide();
|
|
1267
1267
|
if (this._columnHeaderGroup.makeDirty(!0), this._highlightHeader && p > 0) {
|
|
1268
1268
|
let w = u;
|
|
1269
|
-
l === z.ROW && (w = new fn(d).setAlpha(
|
|
1269
|
+
l === z.ROW && (w = new fn(d).setAlpha(ku).toString()), this._rowHeaderBackground.setProps({
|
|
1270
1270
|
fill: w
|
|
1271
1271
|
}), this._rowHeaderBackground.resize(p, s - i), this._rowHeaderBorder.setProps({
|
|
1272
1272
|
fill: h
|
|
@@ -1434,7 +1434,7 @@ class am extends se {
|
|
|
1434
1434
|
_(this, "_selectionMoving", !1);
|
|
1435
1435
|
_(this, "_selectionTheme");
|
|
1436
1436
|
_(this, "_activeViewport");
|
|
1437
|
-
_(this, "interceptor", new ki({ RANGE_MOVE_PERMISSION_CHECK:
|
|
1437
|
+
_(this, "interceptor", new ki({ RANGE_MOVE_PERMISSION_CHECK: Lc, RANGE_FILL_PERMISSION_CHECK: Wc }));
|
|
1438
1438
|
_(this, "_escapeShortcutDisposable", null);
|
|
1439
1439
|
this._injector = t, this._themeService = n, this._shortcutService = i, this._sheetSkeletonManagerService = o, this.contextService = s, this._initSelectionThemeFromThemeService(), this._initMoving();
|
|
1440
1440
|
}
|
|
@@ -1471,7 +1471,7 @@ class am extends se {
|
|
|
1471
1471
|
this._singleSelectionEnabled = t;
|
|
1472
1472
|
}
|
|
1473
1473
|
newSelectionControl(t, n, i) {
|
|
1474
|
-
const o = this.getSelectionControls().length, { rowHeaderWidth: s, columnHeaderHeight: l } = n, a = new
|
|
1474
|
+
const o = this.getSelectionControls().length, { rowHeaderWidth: s, columnHeaderHeight: l } = n, a = new Dd(t, o, this._selectionTheme, {
|
|
1475
1475
|
highlightHeader: this._highlightHeader,
|
|
1476
1476
|
rowHeaderWidth: s,
|
|
1477
1477
|
columnHeaderHeight: l
|
|
@@ -1833,11 +1833,11 @@ function cm(r) {
|
|
|
1833
1833
|
endColumn: r.getColumnCount() - 1,
|
|
1834
1834
|
rangeType: z.ALL
|
|
1835
1835
|
},
|
|
1836
|
-
primary:
|
|
1836
|
+
primary: Ld(r).primary,
|
|
1837
1837
|
style: null
|
|
1838
1838
|
};
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1840
|
+
function Ld(r) {
|
|
1841
1841
|
return OC(r, {
|
|
1842
1842
|
startRow: 0,
|
|
1843
1843
|
startColumn: 0,
|
|
@@ -1872,7 +1872,7 @@ var AC = Object.getOwnPropertyDescriptor, HC = (r, e, t, n) => {
|
|
|
1872
1872
|
for (var i = n > 1 ? void 0 : n ? AC(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
1873
1873
|
(s = r[o]) && (i = s(i) || i);
|
|
1874
1874
|
return i;
|
|
1875
|
-
},
|
|
1875
|
+
}, Du = (r, e) => (t, n) => e(t, n, r);
|
|
1876
1876
|
let de = class extends se {
|
|
1877
1877
|
constructor(e, t, n) {
|
|
1878
1878
|
super();
|
|
@@ -2072,8 +2072,8 @@ let de = class extends se {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
};
|
|
2074
2074
|
de = HC([
|
|
2075
|
-
|
|
2076
|
-
|
|
2075
|
+
Du(1, N(Rt)),
|
|
2076
|
+
Du(2, N(Mv))
|
|
2077
2077
|
], de);
|
|
2078
2078
|
var VC = Object.getOwnPropertyDescriptor, NC = (r, e, t, n) => {
|
|
2079
2079
|
for (var i = n > 1 ? void 0 : n ? VC(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -2220,7 +2220,7 @@ function DC(r) {
|
|
|
2220
2220
|
});
|
|
2221
2221
|
}), e.getData();
|
|
2222
2222
|
}
|
|
2223
|
-
const
|
|
2223
|
+
const Fc = { 零: 0, 一: 1, 二: 2, 三: 3, 四: 4, 五: 5, 六: 6, 七: 7, 八: 8, 九: 9 }, Ks = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"], Lu = ["", "万", "亿", "万亿", "亿亿"], LC = ["", "十", "百", "千"], dm = {
|
|
2224
2224
|
十: { value: 10, secUnit: !1 },
|
|
2225
2225
|
百: { value: 100, secUnit: !1 },
|
|
2226
2226
|
千: { value: 1e3, secUnit: !1 },
|
|
@@ -2233,7 +2233,7 @@ function Mn(r) {
|
|
|
2233
2233
|
let e = 0, t = 0, n = 0, i = !1;
|
|
2234
2234
|
const o = r.split("");
|
|
2235
2235
|
for (let s = 0; s < o.length; s++) {
|
|
2236
|
-
const l =
|
|
2236
|
+
const l = Fc[o[s]];
|
|
2237
2237
|
if (typeof l < "u")
|
|
2238
2238
|
n = l, s === o.length - 1 && (t += n);
|
|
2239
2239
|
else {
|
|
@@ -2257,7 +2257,7 @@ function BC(r) {
|
|
|
2257
2257
|
return Ks[0];
|
|
2258
2258
|
for (; r > 0; ) {
|
|
2259
2259
|
const o = r % 1e4;
|
|
2260
|
-
i && (n = Ks[0] + n), t = WC(o), t += o !== 0 ?
|
|
2260
|
+
i && (n = Ks[0] + n), t = WC(o), t += o !== 0 ? Lu[e] : Lu[0], n = t + n, i = o < 1e3 && o > 0, r = Math.floor(r / 1e4), e++;
|
|
2261
2261
|
}
|
|
2262
2262
|
return n;
|
|
2263
2263
|
}
|
|
@@ -2267,11 +2267,11 @@ function FC(r) {
|
|
|
2267
2267
|
let e = !0;
|
|
2268
2268
|
if (r)
|
|
2269
2269
|
if (r.length === 1)
|
|
2270
|
-
r === "日" || r in
|
|
2270
|
+
r === "日" || r in Fc ? e = !0 : e = !1;
|
|
2271
2271
|
else {
|
|
2272
2272
|
const t = r.split("");
|
|
2273
2273
|
for (let n = 0; n < t.length; n++)
|
|
2274
|
-
if (!(t[n] in
|
|
2274
|
+
if (!(t[n] in Fc || t[n] in dm)) {
|
|
2275
2275
|
e = !1;
|
|
2276
2276
|
break;
|
|
2277
2277
|
}
|
|
@@ -2392,7 +2392,7 @@ function Js(r, e, t) {
|
|
|
2392
2392
|
const d = (c - 1) % r.length, u = ce.deepClone(r[d]);
|
|
2393
2393
|
_r(u);
|
|
2394
2394
|
const h = Number((s = r[r.length - 1]) == null ? void 0 : s.v) * (Number((l = r[1]) == null ? void 0 : l.v) / Number((a = r[0]) == null ? void 0 : a.v)) ** c;
|
|
2395
|
-
u && (
|
|
2395
|
+
u && (Uu(u) && (u.v = h), n.push(u));
|
|
2396
2396
|
}
|
|
2397
2397
|
else {
|
|
2398
2398
|
const c = GC(r.length);
|
|
@@ -2400,7 +2400,7 @@ function Js(r, e, t) {
|
|
|
2400
2400
|
const u = (d - 1) % r.length, h = ce.deepClone(r[u]);
|
|
2401
2401
|
_r(h);
|
|
2402
2402
|
const g = t === U.DOWN || t === U.RIGHT, m = qC(r.length + d, i, c, g);
|
|
2403
|
-
h && (
|
|
2403
|
+
h && (Uu(h) && (h.v = m), n.push(h));
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
2406
|
return n;
|
|
@@ -2421,7 +2421,7 @@ function qC(r, e, t, n = !0) {
|
|
|
2421
2421
|
const d = s - c * o;
|
|
2422
2422
|
return Math.round((d + c * r) * 1e5) / 1e5;
|
|
2423
2423
|
}
|
|
2424
|
-
function
|
|
2424
|
+
function Wu(r, e, t) {
|
|
2425
2425
|
var o;
|
|
2426
2426
|
const n = [], i = /0|([1-9]+[0-9]*)/g;
|
|
2427
2427
|
for (let s = 1; s <= e; s++) {
|
|
@@ -2464,7 +2464,7 @@ function gi(r, e, t, n = 0) {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
return s;
|
|
2466
2466
|
}
|
|
2467
|
-
function
|
|
2467
|
+
function Bu(r, e, t) {
|
|
2468
2468
|
var i;
|
|
2469
2469
|
const n = [];
|
|
2470
2470
|
for (let o = 1; o <= e; o++) {
|
|
@@ -2515,7 +2515,7 @@ function ka(r) {
|
|
|
2515
2515
|
ho[n].includes(r) && (e = n, t.push(...ho[n]));
|
|
2516
2516
|
}), { name: e, series: t };
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function Fu(r, e, t, n) {
|
|
2519
2519
|
var s;
|
|
2520
2520
|
const i = n.length, o = [];
|
|
2521
2521
|
for (let l = 1; l <= e; l++) {
|
|
@@ -2646,8 +2646,8 @@ function By(r, e) {
|
|
|
2646
2646
|
}
|
|
2647
2647
|
return t;
|
|
2648
2648
|
}
|
|
2649
|
-
function
|
|
2650
|
-
return !(
|
|
2649
|
+
function Uu(r) {
|
|
2650
|
+
return !(rd(r.f) || iv(r.si) || r.t === yt.BOOLEAN);
|
|
2651
2651
|
}
|
|
2652
2652
|
function _r(r) {
|
|
2653
2653
|
r && "custom" in r && delete r.custom;
|
|
@@ -2712,13 +2712,13 @@ const KC = {
|
|
|
2712
2712
|
const { data: n } = r, i = t === U.UP || t === U.LEFT;
|
|
2713
2713
|
let o;
|
|
2714
2714
|
if (n.length === 1)
|
|
2715
|
-
return o = i ? -1 : 1, Xt(
|
|
2715
|
+
return o = i ? -1 : 1, Xt(Wu(n, e, o), i);
|
|
2716
2716
|
const s = [];
|
|
2717
2717
|
for (let a = 0; a < n.length; a++) {
|
|
2718
2718
|
const c = `${(l = n[a]) == null ? void 0 : l.v}`;
|
|
2719
2719
|
c && s.push(Number(vs(c).matchTxt));
|
|
2720
2720
|
}
|
|
2721
|
-
return i && (n.reverse(), s.reverse()), $o(s) ? (o = s[1] - s[0], Xt(
|
|
2721
|
+
return i && (n.reverse(), s.reverse()), $o(s) ? (o = s[1] - s[0], Xt(Wu(n, e, o), i)) : br(n, e);
|
|
2722
2722
|
}
|
|
2723
2723
|
}
|
|
2724
2724
|
}, e1 = {
|
|
@@ -2733,7 +2733,7 @@ const KC = {
|
|
|
2733
2733
|
if (n.length === 1) {
|
|
2734
2734
|
const u = `${(a = n[0]) == null ? void 0 : a.v}`;
|
|
2735
2735
|
let h;
|
|
2736
|
-
return i ? h = -1 : h = 1, u && (u === "日" || Mn(u) < 7) ? Xt(gi(n, e, h), i) : Xt(
|
|
2736
|
+
return i ? h = -1 : h = 1, u && (u === "日" || Mn(u) < 7) ? Xt(gi(n, e, h), i) : Xt(Bu(n, e, h), i);
|
|
2737
2737
|
}
|
|
2738
2738
|
let o = !1;
|
|
2739
2739
|
for (let u = 0; u < n.length; u++)
|
|
@@ -2753,7 +2753,7 @@ const KC = {
|
|
|
2753
2753
|
return Xt(gi(n, e, h), i);
|
|
2754
2754
|
}
|
|
2755
2755
|
const u = s[1] - s[0];
|
|
2756
|
-
return Xt(
|
|
2756
|
+
return Xt(Bu(n, e, u), i);
|
|
2757
2757
|
}
|
|
2758
2758
|
return br(n, e);
|
|
2759
2759
|
}
|
|
@@ -2827,7 +2827,7 @@ const KC = {
|
|
|
2827
2827
|
const { data: n } = r, i = t === U.LEFT || t === U.UP, { series: o } = ka(`${(a = n[0]) == null ? void 0 : a.v}` || "");
|
|
2828
2828
|
if (n.length === 1) {
|
|
2829
2829
|
let d;
|
|
2830
|
-
return i ? d = -1 : d = 1, Xt(
|
|
2830
|
+
return i ? d = -1 : d = 1, Xt(Fu(n, e, d, o), i);
|
|
2831
2831
|
}
|
|
2832
2832
|
const s = [];
|
|
2833
2833
|
let l = 0;
|
|
@@ -2837,7 +2837,7 @@ const KC = {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
if (i && (n.reverse(), s.reverse()), $o(s)) {
|
|
2839
2839
|
const d = s[1] - s[0];
|
|
2840
|
-
return Xt(
|
|
2840
|
+
return Xt(Fu(n, e, d, o), i);
|
|
2841
2841
|
}
|
|
2842
2842
|
return br(n, e);
|
|
2843
2843
|
}
|
|
@@ -3177,7 +3177,7 @@ const Hr = Yt("univer.auto-fill-service"), gr = {
|
|
|
3177
3177
|
return !1;
|
|
3178
3178
|
}
|
|
3179
3179
|
};
|
|
3180
|
-
function
|
|
3180
|
+
function Wd(r) {
|
|
3181
3181
|
return r.getContextValue(Vt);
|
|
3182
3182
|
}
|
|
3183
3183
|
function Ve(r) {
|
|
@@ -3189,7 +3189,7 @@ function hm(r) {
|
|
|
3189
3189
|
function s1(r) {
|
|
3190
3190
|
return r.getContextValue(Vt) && r.getContextValue(Pr) && r.getContextValue(Je);
|
|
3191
3191
|
}
|
|
3192
|
-
function
|
|
3192
|
+
function Bd(r) {
|
|
3193
3193
|
return r.getContextValue(Pr) && r.getContextValue(Je);
|
|
3194
3194
|
}
|
|
3195
3195
|
function la(r) {
|
|
@@ -3206,14 +3206,14 @@ var l1 = Object.getOwnPropertyDescriptor, a1 = (r, e, t, n) => {
|
|
|
3206
3206
|
(s = r[o]) && (i = s(i) || i);
|
|
3207
3207
|
return i;
|
|
3208
3208
|
}, Da = (r, e) => (t, n) => e(t, n, r);
|
|
3209
|
-
const
|
|
3209
|
+
const Xu = lm.MARK_SELECTION, Wi = Yt("univer.mark-selection-service");
|
|
3210
3210
|
let el = class extends se {
|
|
3211
3211
|
constructor(e, t, n) {
|
|
3212
3212
|
super();
|
|
3213
3213
|
_(this, "_shapeMap", /* @__PURE__ */ new Map());
|
|
3214
3214
|
this._currentService = e, this._renderManagerService = t, this._themeService = n;
|
|
3215
3215
|
}
|
|
3216
|
-
addShape(e, t = [], n =
|
|
3216
|
+
addShape(e, t = [], n = Xu) {
|
|
3217
3217
|
var a;
|
|
3218
3218
|
const i = this._currentService.getCurrentUnitForType(O.UNIVER_SHEET), o = (a = i.getActiveSheet()) == null ? void 0 : a.getSheetId();
|
|
3219
3219
|
if (!o) return null;
|
|
@@ -3227,7 +3227,7 @@ let el = class extends se {
|
|
|
3227
3227
|
};
|
|
3228
3228
|
return this._shapeMap.set(s, l), this.refreshShapes(), s;
|
|
3229
3229
|
}
|
|
3230
|
-
addShapeWithNoFresh(e, t = [], n =
|
|
3230
|
+
addShapeWithNoFresh(e, t = [], n = Xu) {
|
|
3231
3231
|
var l;
|
|
3232
3232
|
const i = this._currentService.getCurrentUnitForType(O.UNIVER_SHEET), o = (l = i.getActiveSheet()) == null ? void 0 : l.getSheetId();
|
|
3233
3233
|
if (!o) return null;
|
|
@@ -3254,7 +3254,7 @@ let el = class extends se {
|
|
|
3254
3254
|
if (!u) return;
|
|
3255
3255
|
const h = u.with(de).getCurrentSkeleton();
|
|
3256
3256
|
if (!h) return;
|
|
3257
|
-
const { scene: g } = u, { rowHeaderWidth: m, columnHeaderHeight: f } = h, v = new
|
|
3257
|
+
const { scene: g } = u, { rowHeaderWidth: m, columnHeaderHeight: f } = h, v = new Dd(g, d, this._themeService, {
|
|
3258
3258
|
enableAutoFill: !1,
|
|
3259
3259
|
highlightHeader: !1,
|
|
3260
3260
|
rowHeaderWidth: m,
|
|
@@ -3351,7 +3351,7 @@ function tl(r, e) {
|
|
|
3351
3351
|
}
|
|
3352
3352
|
case "sub":
|
|
3353
3353
|
case "sup": {
|
|
3354
|
-
n.va = i === "sup" ?
|
|
3354
|
+
n.va = i === "sup" ? hu.SUPERSCRIPT : hu.SUBSCRIPT;
|
|
3355
3355
|
break;
|
|
3356
3356
|
}
|
|
3357
3357
|
}
|
|
@@ -3361,15 +3361,15 @@ function m1(r, e) {
|
|
|
3361
3361
|
if (r instanceof CSSStyleDeclaration)
|
|
3362
3362
|
for (let t = 0; t < r.length; t++) {
|
|
3363
3363
|
const n = r[t], i = r.getPropertyValue(n);
|
|
3364
|
-
|
|
3364
|
+
zu(n, i, e);
|
|
3365
3365
|
}
|
|
3366
3366
|
else
|
|
3367
3367
|
for (const t in r) {
|
|
3368
3368
|
const n = r[t];
|
|
3369
|
-
|
|
3369
|
+
zu(t, n, e);
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
3372
|
-
function
|
|
3372
|
+
function zu(r, e, t) {
|
|
3373
3373
|
switch (r) {
|
|
3374
3374
|
case "font-family":
|
|
3375
3375
|
t.ff = e;
|
|
@@ -3418,12 +3418,12 @@ function mm(r) {
|
|
|
3418
3418
|
switch (i) {
|
|
3419
3419
|
case "margin-top": {
|
|
3420
3420
|
const s = Number.parseInt(o);
|
|
3421
|
-
t.spaceAbove = { v: /pt/.test(o) ?
|
|
3421
|
+
t.spaceAbove = { v: /pt/.test(o) ? bu(s) : s };
|
|
3422
3422
|
break;
|
|
3423
3423
|
}
|
|
3424
3424
|
case "margin-bottom": {
|
|
3425
3425
|
const s = Number.parseInt(o);
|
|
3426
|
-
t.spaceBelow = { v: /pt/.test(o) ?
|
|
3426
|
+
t.spaceBelow = { v: /pt/.test(o) ? bu(s) : s };
|
|
3427
3427
|
break;
|
|
3428
3428
|
}
|
|
3429
3429
|
case "line-height": {
|
|
@@ -3443,7 +3443,7 @@ function La(r, e) {
|
|
|
3443
3443
|
});
|
|
3444
3444
|
return t;
|
|
3445
3445
|
}
|
|
3446
|
-
function
|
|
3446
|
+
function ju(r, e, t) {
|
|
3447
3447
|
var s, l, a;
|
|
3448
3448
|
const n = e.length, o = ((s = t == null ? void 0 : t.length) != null ? s : 0) === 1 && t[0].st === 0 && t[0].ed === n;
|
|
3449
3449
|
return r.p ? o && ((a = (l = r.p.body) == null ? void 0 : l.textRuns) != null && a.length) ? (r.p.body.textRuns = [], {
|
|
@@ -3454,7 +3454,7 @@ function Yu(r, e, t) {
|
|
|
3454
3454
|
s: t[0].ts
|
|
3455
3455
|
} : r;
|
|
3456
3456
|
}
|
|
3457
|
-
const
|
|
3457
|
+
const Yu = [
|
|
3458
3458
|
// Rich Text Style Rules,
|
|
3459
3459
|
"color",
|
|
3460
3460
|
"background",
|
|
@@ -3475,7 +3475,7 @@ const Zu = [
|
|
|
3475
3475
|
// Custom Style Rules, '--' needs to be used as a prefix.
|
|
3476
3476
|
"--data-rotate"
|
|
3477
3477
|
];
|
|
3478
|
-
function
|
|
3478
|
+
function Zu(r, e) {
|
|
3479
3479
|
const t = r.tagName.toLowerCase();
|
|
3480
3480
|
return typeof e == "string" ? t === e : Array.isArray(e) ? e.some((n) => n === t) : e(r);
|
|
3481
3481
|
}
|
|
@@ -3568,12 +3568,12 @@ const Nl = class Nl {
|
|
|
3568
3568
|
customRanges: m
|
|
3569
3569
|
};
|
|
3570
3570
|
if (!(m != null && m.length))
|
|
3571
|
-
n.setValue(0, 0,
|
|
3571
|
+
n.setValue(0, 0, ju({ v: u }, u, h));
|
|
3572
3572
|
else {
|
|
3573
3573
|
const p = this._generateDocumentDataModelSnapshot({
|
|
3574
3574
|
body: v
|
|
3575
3575
|
});
|
|
3576
|
-
n.setValue(0, 0,
|
|
3576
|
+
n.setValue(0, 0, ju({ v: u, p }, u, h));
|
|
3577
3577
|
}
|
|
3578
3578
|
s.push({});
|
|
3579
3579
|
}
|
|
@@ -3594,10 +3594,10 @@ const Nl = class Nl {
|
|
|
3594
3594
|
return n || "";
|
|
3595
3595
|
}
|
|
3596
3596
|
_getStyle(e, t) {
|
|
3597
|
-
const n =
|
|
3597
|
+
const n = Gu(t), i = e.style;
|
|
3598
3598
|
let o = "";
|
|
3599
|
-
for (let s = 0; s <
|
|
3600
|
-
const l =
|
|
3599
|
+
for (let s = 0; s < Yu.length; s++) {
|
|
3600
|
+
const l = Yu[s];
|
|
3601
3601
|
if (l === "background") {
|
|
3602
3602
|
let c = "";
|
|
3603
3603
|
e.classList.forEach((u) => {
|
|
@@ -3672,15 +3672,15 @@ const Nl = class Nl {
|
|
|
3672
3672
|
if (p = this._getStyle(v, h), d > 0) {
|
|
3673
3673
|
const y = i.getValue(d - 1, m);
|
|
3674
3674
|
if ((a = y == null ? void 0 : y.style) != null && a.includes("border-bottom") && p.includes("border-top")) {
|
|
3675
|
-
const M =
|
|
3676
|
-
M &&
|
|
3675
|
+
const M = qu(y.style, "border-bottom");
|
|
3676
|
+
M && Mu(M.substr(M.indexOf(":") + 1)) !== "none" && (p = p.replace(/border-top:[^;]+;/, ""));
|
|
3677
3677
|
}
|
|
3678
3678
|
}
|
|
3679
3679
|
if (f > 0) {
|
|
3680
3680
|
const y = i.getValue(d, m - 1);
|
|
3681
3681
|
if ((c = y == null ? void 0 : y.style) != null && c.includes("border-right") && p.includes("border-left")) {
|
|
3682
|
-
const M =
|
|
3683
|
-
M &&
|
|
3682
|
+
const M = qu(y.style, "border-right");
|
|
3683
|
+
M && Mu(M.substr(M.indexOf(":") + 1)) !== "none" && (p = p.replace(/border-left:[^;]+;/, ""));
|
|
3684
3684
|
}
|
|
3685
3685
|
}
|
|
3686
3686
|
const { cellText: S, cellRichStyle: I } = this._getCellTextAndRichText(v, p, n), R = {
|
|
@@ -3719,7 +3719,7 @@ const Nl = class Nl {
|
|
|
3719
3719
|
if (l.nodeName.toLowerCase() === "br")
|
|
3720
3720
|
n.paragraphs || (n.paragraphs = []), n.paragraphs.push({ startIndex: n.dataStream.length }), n.dataStream += "\r";
|
|
3721
3721
|
else if (l.nodeType === Node.ELEMENT_NODE) {
|
|
3722
|
-
const a = this._getStyle(l, o), c = e ? i.get(e) : {}, d =
|
|
3722
|
+
const a = this._getStyle(l, o), c = e ? i.get(e) : {}, d = Gu(a), u = tl(l, d);
|
|
3723
3723
|
i.set(l, { ...c, ...u });
|
|
3724
3724
|
const { childNodes: h } = l;
|
|
3725
3725
|
this._parseCellHtml(l, h, n, i, a);
|
|
@@ -3802,12 +3802,12 @@ const Nl = class Nl {
|
|
|
3802
3802
|
else if (a.nodeType === Node.ELEMENT_NODE) {
|
|
3803
3803
|
if (a.nodeName === "STYLE")
|
|
3804
3804
|
continue;
|
|
3805
|
-
const c = a, d = this._processBeforeLink(c, { body: n }), u = e ? this._styleCache.get(e) : {}, h = this._styleRules.find(({ filter: v }) =>
|
|
3805
|
+
const c = a, d = this._processBeforeLink(c, { body: n }), u = e ? this._styleCache.get(e) : {}, h = this._styleRules.find(({ filter: v }) => Zu(a, v)), g = h ? h.getStyle(a) : tl(a);
|
|
3806
3806
|
this._styleCache.set(a, { ...u, ...g });
|
|
3807
3807
|
const { childNodes: m } = a;
|
|
3808
3808
|
this.process(a, m, n, i);
|
|
3809
3809
|
const f = this._afterProcessRules.find(
|
|
3810
|
-
({ filter: v }) =>
|
|
3810
|
+
({ filter: v }) => Zu(a, v)
|
|
3811
3811
|
);
|
|
3812
3812
|
f && f.handler(n, a), this._processAfterLink(c, { body: n }, d);
|
|
3813
3813
|
}
|
|
@@ -3823,7 +3823,7 @@ const Nl = class Nl {
|
|
|
3823
3823
|
startIndex: n,
|
|
3824
3824
|
endIndex: i.dataStream.length - 1,
|
|
3825
3825
|
rangeId: (l = o.dataset.rangeid) != null ? l : xn(),
|
|
3826
|
-
rangeType:
|
|
3826
|
+
rangeType: id.HYPERLINK,
|
|
3827
3827
|
properties: { url: o.href }
|
|
3828
3828
|
}));
|
|
3829
3829
|
}
|
|
@@ -3843,7 +3843,7 @@ function p1(r) {
|
|
|
3843
3843
|
const i = Array.from(t).map((o) => fm(o[1])).map((o) => {
|
|
3844
3844
|
if (!o.height) {
|
|
3845
3845
|
const s = o.style, l = s && s.match(/height\s*:\s*(\d+(\.\d+)?)px/);
|
|
3846
|
-
o.height = `${l ? Number.parseInt(l[1], 10) :
|
|
3846
|
+
o.height = `${l ? Number.parseInt(l[1], 10) : bc}`;
|
|
3847
3847
|
}
|
|
3848
3848
|
return o;
|
|
3849
3849
|
});
|
|
@@ -3852,7 +3852,7 @@ function p1(r) {
|
|
|
3852
3852
|
rowCount: i.length
|
|
3853
3853
|
};
|
|
3854
3854
|
}
|
|
3855
|
-
function
|
|
3855
|
+
function Gu(r) {
|
|
3856
3856
|
const e = {};
|
|
3857
3857
|
return r.split(";").forEach((n) => {
|
|
3858
3858
|
const [i, o] = n.split(":");
|
|
@@ -3898,7 +3898,7 @@ function S1(r) {
|
|
|
3898
3898
|
};
|
|
3899
3899
|
return r.replace(/<|>|&|"|'| |<br>/g, (t) => e[t]);
|
|
3900
3900
|
}
|
|
3901
|
-
function
|
|
3901
|
+
function qu(r, e) {
|
|
3902
3902
|
if (!r || !e) return null;
|
|
3903
3903
|
const t = new RegExp(`(${e}\\s*:\\s*[^;]+);`, "i"), n = r.match(t);
|
|
3904
3904
|
return n ? n[1] : null;
|
|
@@ -3995,7 +3995,7 @@ function R1(r, e, t, n, i) {
|
|
|
3995
3995
|
const o = t.map((c) => {
|
|
3996
3996
|
var d;
|
|
3997
3997
|
return (d = c.onCopyRow) == null ? void 0 : d.call(c, r);
|
|
3998
|
-
}).filter((c) => !!c), s =
|
|
3998
|
+
}).filter((c) => !!c), s = Fd(o), l = Ud(s), a = e.map((c) => {
|
|
3999
3999
|
if (!i.has(`${r}-${c}`)) {
|
|
4000
4000
|
const d = n.getValue(r, c);
|
|
4001
4001
|
if (d != null && d.rowSpan && (d != null && d.colSpan))
|
|
@@ -4012,7 +4012,7 @@ function I1(r, e, t, n) {
|
|
|
4012
4012
|
const i = n.getValue(r, e), o = t.map((c) => {
|
|
4013
4013
|
var d;
|
|
4014
4014
|
return (d = c.onCopyCellStyle) == null ? void 0 : d.call(c, r, e, i == null ? void 0 : i.rowSpan, i == null ? void 0 : i.colSpan);
|
|
4015
|
-
}).filter((c) => !!c), s =
|
|
4015
|
+
}).filter((c) => !!c), s = Fd(o), l = Ud(s), a = t.reduce((c, d) => {
|
|
4016
4016
|
var u;
|
|
4017
4017
|
return c || ((u = d.onCopyCellContent) == null ? void 0 : u.call(d, r, e)) || "";
|
|
4018
4018
|
}, "");
|
|
@@ -4023,16 +4023,16 @@ function y1(r, e) {
|
|
|
4023
4023
|
const i = e.map((l) => {
|
|
4024
4024
|
var a;
|
|
4025
4025
|
return (a = l.onCopyColumn) == null ? void 0 : a.call(l, n);
|
|
4026
|
-
}).filter((l) => !!l), o =
|
|
4027
|
-
return `<col ${
|
|
4026
|
+
}).filter((l) => !!l), o = Fd(i);
|
|
4027
|
+
return `<col ${Ud(o)} />`;
|
|
4028
4028
|
}).join("")}</colgroup>`;
|
|
4029
4029
|
}
|
|
4030
|
-
function
|
|
4030
|
+
function Fd(r) {
|
|
4031
4031
|
return r.reduce((e, t) => (Object.keys(t).forEach((i) => {
|
|
4032
4032
|
e[i] ? e[i] += `;${t[i]}` : e[i] = t[i];
|
|
4033
4033
|
}), e), {});
|
|
4034
4034
|
}
|
|
4035
|
-
function
|
|
4035
|
+
function Ud(r) {
|
|
4036
4036
|
return Object.keys(r).reduce((e, t) => `${e} ${t}="${r[t]}"`, "");
|
|
4037
4037
|
}
|
|
4038
4038
|
class M1 {
|
|
@@ -4096,7 +4096,7 @@ const Uy = (r, e, t = !1) => {
|
|
|
4096
4096
|
}
|
|
4097
4097
|
return d;
|
|
4098
4098
|
};
|
|
4099
|
-
function
|
|
4099
|
+
function Qu(r) {
|
|
4100
4100
|
return r ? [
|
|
4101
4101
|
// Excel class names
|
|
4102
4102
|
/<td[^>]*class=".*?xl.*?"[^>]*>/i,
|
|
@@ -4131,7 +4131,7 @@ function T1(...r) {
|
|
|
4131
4131
|
function P1(r, e) {
|
|
4132
4132
|
return r.id === e.id && r.params.unitId === e.params.unitId && r.params.subUnitId === e.params.subUnitId;
|
|
4133
4133
|
}
|
|
4134
|
-
function
|
|
4134
|
+
function Ku(r) {
|
|
4135
4135
|
const e = [];
|
|
4136
4136
|
for (let t = 0; t < r.length; ) {
|
|
4137
4137
|
let n = 1;
|
|
@@ -4160,7 +4160,7 @@ function Wa(r, e) {
|
|
|
4160
4160
|
if (e.rows.includes(s) && e.cols.includes(l))
|
|
4161
4161
|
return !0;
|
|
4162
4162
|
}
|
|
4163
|
-
function
|
|
4163
|
+
function Ju(r, e) {
|
|
4164
4164
|
const { startRow: t, endRow: n, startColumn: i, endColumn: o } = e;
|
|
4165
4165
|
for (let s = t; s <= n; s++)
|
|
4166
4166
|
if (!r.rows.includes(s))
|
|
@@ -4223,7 +4223,7 @@ let nl = class extends se {
|
|
|
4223
4223
|
this._logService = e, this._univerInstanceService = t, this._selectionManagerService = n, this._clipboardInterfaceService = i, this._undoRedoService = o, this._commandService = s, this._markSelectionService = l, this._notificationService = a, this._platformService = c, this._renderManagerService = d, this._themeService = u, this._localeService = h, this._errorService = g, this._injector = m, this._htmlToUSM = new fi({
|
|
4224
4224
|
getCurrentSkeleton: () => {
|
|
4225
4225
|
var f;
|
|
4226
|
-
return (f =
|
|
4226
|
+
return (f = bd(
|
|
4227
4227
|
O.UNIVER_SHEET,
|
|
4228
4228
|
de,
|
|
4229
4229
|
this._univerInstanceService,
|
|
@@ -4281,9 +4281,9 @@ let nl = class extends se {
|
|
|
4281
4281
|
return this.copy(Yn.CUT);
|
|
4282
4282
|
}
|
|
4283
4283
|
async paste(e, t = et.DEFAULT_PASTE) {
|
|
4284
|
-
const n = e.types, i = n.indexOf(
|
|
4284
|
+
const n = e.types, i = n.indexOf(Eu) !== -1 ? await e.getType(Eu).then((a) => a && a.text()) : "", o = n.indexOf(Tu) !== -1 ? await e.getType(Tu).then((a) => a && a.text()) : "", s = n.findIndex((a) => zS.has(a)), l = s === -1 || !E1(o);
|
|
4285
4285
|
if (o && l)
|
|
4286
|
-
return this._platformService.isWindows &&
|
|
4286
|
+
return this._platformService.isWindows && Qu(o) && this._notificationService.show({
|
|
4287
4287
|
type: "warning",
|
|
4288
4288
|
title: this._localeService.t("clipboard.shortCutNotify.title"),
|
|
4289
4289
|
content: this._localeService.t("clipboard.shortCutNotify.useShortCutInstead")
|
|
@@ -4302,7 +4302,7 @@ let nl = class extends se {
|
|
|
4302
4302
|
return i ? this._pastePlainText(i, t) : (this._logService.error("[SheetClipboardService]", "No valid data on clipboard"), !1);
|
|
4303
4303
|
}
|
|
4304
4304
|
async legacyPaste(e, t, n) {
|
|
4305
|
-
const i =
|
|
4305
|
+
const i = Qu(e != null ? e : "");
|
|
4306
4306
|
return n && !i ? this._pasteFiles(n, et.DEFAULT_PASTE) : e ? this._pasteHTML(e, et.DEFAULT_PASTE) : t ? /[\n\t]/.test(t) ? this._pasteHTML(x1(t), et.DEFAULT_PASTE) : this._pastePlainText(t, et.DEFAULT_PASTE) : this._pasteUnrecognized();
|
|
4307
4307
|
}
|
|
4308
4308
|
rePasteWithPasteType(e) {
|
|
@@ -4450,7 +4450,7 @@ let nl = class extends se {
|
|
|
4450
4450
|
if (!l)
|
|
4451
4451
|
return !1;
|
|
4452
4452
|
const a = l == null ? void 0 : l.getMergeData();
|
|
4453
|
-
return a.length && a.some((h) => Wa(h, s.pastedRange) &&
|
|
4453
|
+
return a.length && a.some((h) => Wa(h, s.pastedRange) && !Ju(s.pastedRange, h)) ? (this._errorService.emit(this._localeService.t("clipboard.paste.overlappingMergedCells")), !1) : this._pasteUSM(
|
|
4454
4454
|
{
|
|
4455
4455
|
rowProperties: n,
|
|
4456
4456
|
colProperties: i,
|
|
@@ -4483,7 +4483,7 @@ let nl = class extends se {
|
|
|
4483
4483
|
if (!u)
|
|
4484
4484
|
return !1;
|
|
4485
4485
|
const h = u == null ? void 0 : u.getMergeData();
|
|
4486
|
-
if (h && h.some((y) => Wa(y, d.pastedRange) &&
|
|
4486
|
+
if (h && h.some((y) => Wa(y, d.pastedRange) && !Ju(d.pastedRange, y)))
|
|
4487
4487
|
return this._errorService.emit(this._localeService.t("clipboard.paste.overlappingMergedCells")), !1;
|
|
4488
4488
|
const g = this._univerInstanceService.getUnit(s);
|
|
4489
4489
|
if (!g) return !1;
|
|
@@ -4570,7 +4570,7 @@ let nl = class extends se {
|
|
|
4570
4570
|
M && (p.push(...M.redos), C.push(...M.undos));
|
|
4571
4571
|
});
|
|
4572
4572
|
const S = this._getSetSelectionOperation(a, c, d, l, n);
|
|
4573
|
-
S && p.push(S), p =
|
|
4573
|
+
S && p.push(S), p = Ku(p), C = Ku(C), C.push({ id: nt.id, params: { unitId: t.unitId, subUnitId: t.subUnitId } }), this._logService.log("[SheetClipboardService]", "pasting mutations", {
|
|
4574
4574
|
undoMutationsInfo: C,
|
|
4575
4575
|
redoMutationsInfo: p
|
|
4576
4576
|
});
|
|
@@ -4903,34 +4903,34 @@ function Gi() {
|
|
|
4903
4903
|
t: null
|
|
4904
4904
|
};
|
|
4905
4905
|
}
|
|
4906
|
-
const
|
|
4906
|
+
const Xd = 998, un = {
|
|
4907
4907
|
id: qS.id,
|
|
4908
4908
|
name: "sheet.command.copy",
|
|
4909
4909
|
type: J.COMMAND,
|
|
4910
4910
|
multi: !0,
|
|
4911
|
-
priority:
|
|
4912
|
-
preconditions:
|
|
4911
|
+
priority: Xd,
|
|
4912
|
+
preconditions: Wd,
|
|
4913
4913
|
handler: async (r) => r.get(nn).copy()
|
|
4914
|
-
},
|
|
4914
|
+
}, zd = {
|
|
4915
4915
|
id: QS.id,
|
|
4916
4916
|
name: "sheet.command.cut",
|
|
4917
4917
|
type: J.COMMAND,
|
|
4918
4918
|
multi: !0,
|
|
4919
|
-
priority:
|
|
4920
|
-
preconditions:
|
|
4919
|
+
priority: Xd,
|
|
4920
|
+
preconditions: Wd,
|
|
4921
4921
|
handler: async (r) => r.get(nn).cut()
|
|
4922
4922
|
}, hn = {
|
|
4923
4923
|
id: KS.id,
|
|
4924
4924
|
type: J.COMMAND,
|
|
4925
4925
|
multi: !0,
|
|
4926
4926
|
name: "sheet.command.paste",
|
|
4927
|
-
priority:
|
|
4928
|
-
preconditions:
|
|
4927
|
+
priority: Xd,
|
|
4928
|
+
preconditions: Wd,
|
|
4929
4929
|
handler: async (r, e) => {
|
|
4930
4930
|
const n = await r.get(Jl).read(), i = r.get(nn);
|
|
4931
4931
|
return n.length !== 0 ? i.paste(n[0], e == null ? void 0 : e.value) : !1;
|
|
4932
4932
|
}
|
|
4933
|
-
},
|
|
4933
|
+
}, Uc = {
|
|
4934
4934
|
id: JS,
|
|
4935
4935
|
type: J.COMMAND,
|
|
4936
4936
|
handler: async (r, e) => {
|
|
@@ -4987,7 +4987,7 @@ const zd = 998, un = {
|
|
|
4987
4987
|
children: { title: n.t("merge.confirm.dismantleMergeCellWarning") },
|
|
4988
4988
|
cancelText: n.t("button.cancel"),
|
|
4989
4989
|
confirmText: n.t("button.confirm")
|
|
4990
|
-
}) ? t.executeCommand(
|
|
4990
|
+
}) ? t.executeCommand(Su.id) : !0 : t.executeCommand(Su.id);
|
|
4991
4991
|
}
|
|
4992
4992
|
}, pi = {
|
|
4993
4993
|
type: J.COMMAND,
|
|
@@ -5019,7 +5019,7 @@ const zd = 998, un = {
|
|
|
5019
5019
|
children: { title: n.t("merge.confirm.dismantleMergeCellWarning") },
|
|
5020
5020
|
cancelText: n.t("button.cancel"),
|
|
5021
5021
|
confirmText: n.t("button.confirm")
|
|
5022
|
-
}) ? t.executeCommand(
|
|
5022
|
+
}) ? t.executeCommand(Cu.id) : !0 : t.executeCommand(Cu.id);
|
|
5023
5023
|
}
|
|
5024
5024
|
};
|
|
5025
5025
|
var aa = /* @__PURE__ */ ((r) => (r.MergeAll = "mergeAll", r.MergeVertical = "mergeVertical", r.MergeHorizontal = "mergeHorizontal", r))(aa || {});
|
|
@@ -5056,7 +5056,7 @@ function qn(r, e, t, n, i = !0, o = 1, s = !0) {
|
|
|
5056
5056
|
}
|
|
5057
5057
|
return l;
|
|
5058
5058
|
}
|
|
5059
|
-
function
|
|
5059
|
+
function jd(r, e, t) {
|
|
5060
5060
|
const n = { ...r }, { startRow: i, startColumn: o, endRow: s, endColumn: l } = Ro(r, e, t);
|
|
5061
5061
|
let a = qi(t, i, o, s, l).hasValue, c = !0, d = !0;
|
|
5062
5062
|
for (; d; ) {
|
|
@@ -5199,7 +5199,7 @@ function vm(r, e, t) {
|
|
|
5199
5199
|
return qn(r, e, t, void 0, !1, 1, !1);
|
|
5200
5200
|
}
|
|
5201
5201
|
function W1(r, e, t) {
|
|
5202
|
-
const n =
|
|
5202
|
+
const n = jd(r, e, t);
|
|
5203
5203
|
return En(oe.union(n, r), t, !0);
|
|
5204
5204
|
}
|
|
5205
5205
|
function B1(r, e, t) {
|
|
@@ -5212,7 +5212,7 @@ function B1(r, e, t) {
|
|
|
5212
5212
|
return En(oe.union(r, i), t);
|
|
5213
5213
|
}
|
|
5214
5214
|
function F1(r, e, t, n) {
|
|
5215
|
-
const i = Zh(t), o =
|
|
5215
|
+
const i = Zh(t), o = jd(Ro(r, i, n), t, n);
|
|
5216
5216
|
return t === U.UP && o.startRow <= r.startRow ? En(
|
|
5217
5217
|
{ ...e, startColumn: r.startColumn, endColumn: r.endColumn },
|
|
5218
5218
|
n,
|
|
@@ -5235,7 +5235,7 @@ function U1(r, e, t) {
|
|
|
5235
5235
|
const n = Zh(e), i = Ro(r, n, t), o = Ro(r, e, t), s = vm(i, e, t);
|
|
5236
5236
|
return En(oe.union(o, s), t, !1);
|
|
5237
5237
|
}
|
|
5238
|
-
function
|
|
5238
|
+
function $u(r) {
|
|
5239
5239
|
return {
|
|
5240
5240
|
startRow: 0,
|
|
5241
5241
|
startColumn: 0,
|
|
@@ -5299,7 +5299,7 @@ function qi(r, e, t, n, i) {
|
|
|
5299
5299
|
matrix: s
|
|
5300
5300
|
};
|
|
5301
5301
|
}
|
|
5302
|
-
function
|
|
5302
|
+
function Xc(r, e, t) {
|
|
5303
5303
|
const n = oe.clone(r);
|
|
5304
5304
|
if (e == null)
|
|
5305
5305
|
return n;
|
|
@@ -5378,7 +5378,7 @@ function Cm(r, e) {
|
|
|
5378
5378
|
return !0;
|
|
5379
5379
|
});
|
|
5380
5380
|
}
|
|
5381
|
-
function
|
|
5381
|
+
function Yd(r, e) {
|
|
5382
5382
|
return e ? r === "mergeAll" ? e.filter((t) => !(t.startRow === t.endRow && t.startColumn === t.endColumn)) : r === "mergeVertical" ? e.filter((t) => t.startRow !== t.endRow) : r === "mergeHorizontal" ? e.filter((t) => t.startColumn !== t.endColumn) : e : null;
|
|
5383
5383
|
}
|
|
5384
5384
|
function z1(r) {
|
|
@@ -5438,28 +5438,28 @@ const ca = {
|
|
|
5438
5438
|
id: "sheet.command.set-range-bold",
|
|
5439
5439
|
handler: async (r) => {
|
|
5440
5440
|
const e = r.get(W);
|
|
5441
|
-
return r.get(De).getContextValue(Je) ? e.executeCommand(Bp.id) : e.executeCommand(
|
|
5441
|
+
return r.get(De).getContextValue(Je) ? e.executeCommand(Bp.id) : e.executeCommand(ld.id);
|
|
5442
5442
|
}
|
|
5443
5443
|
}, Fi = {
|
|
5444
5444
|
type: J.COMMAND,
|
|
5445
5445
|
id: "sheet.command.set-range-italic",
|
|
5446
5446
|
handler: async (r) => {
|
|
5447
5447
|
const e = r.get(W);
|
|
5448
|
-
return r.get(De).getContextValue(Je) ? e.executeCommand(Fp.id) : e.executeCommand(
|
|
5448
|
+
return r.get(De).getContextValue(Je) ? e.executeCommand(Fp.id) : e.executeCommand(ad.id);
|
|
5449
5449
|
}
|
|
5450
5450
|
}, Ui = {
|
|
5451
5451
|
type: J.COMMAND,
|
|
5452
5452
|
id: "sheet.command.set-range-underline",
|
|
5453
5453
|
handler: async (r) => {
|
|
5454
5454
|
const e = r.get(W);
|
|
5455
|
-
return r.get(De).getContextValue(Je) ? e.executeCommand(Up.id) : e.executeCommand(
|
|
5455
|
+
return r.get(De).getContextValue(Je) ? e.executeCommand(Up.id) : e.executeCommand(cd.id);
|
|
5456
5456
|
}
|
|
5457
5457
|
}, Xi = {
|
|
5458
5458
|
type: J.COMMAND,
|
|
5459
5459
|
id: "sheet.command.set-range-stroke",
|
|
5460
5460
|
handler: async (r) => {
|
|
5461
5461
|
const e = r.get(W);
|
|
5462
|
-
return r.get(De).getContextValue(Je) ? e.executeCommand(Xp.id) : e.executeCommand(
|
|
5462
|
+
return r.get(De).getContextValue(Je) ? e.executeCommand(Xp.id) : e.executeCommand(dd.id);
|
|
5463
5463
|
}
|
|
5464
5464
|
}, wm = {
|
|
5465
5465
|
type: J.COMMAND,
|
|
@@ -5480,14 +5480,14 @@ const ca = {
|
|
|
5480
5480
|
id: "sheet.command.set-range-fontsize",
|
|
5481
5481
|
handler: async (r, e) => {
|
|
5482
5482
|
const t = r.get(W);
|
|
5483
|
-
return r.get(De).getContextValue(Je) ? t.executeCommand(Yp.id, e) : t.executeCommand(
|
|
5483
|
+
return r.get(De).getContextValue(Je) ? t.executeCommand(Yp.id, e) : t.executeCommand(ud.id, e);
|
|
5484
5484
|
}
|
|
5485
5485
|
}, ha = {
|
|
5486
5486
|
type: J.COMMAND,
|
|
5487
5487
|
id: "sheet.command.set-range-font-family",
|
|
5488
5488
|
handler: async (r, e) => {
|
|
5489
5489
|
const t = r.get(W);
|
|
5490
|
-
return r.get(De).getContextValue(Je) ? t.executeCommand(Zp.id, e) : t.executeCommand(
|
|
5490
|
+
return r.get(De).getContextValue(Je) ? t.executeCommand(Zp.id, e) : t.executeCommand(hd.id, e);
|
|
5491
5491
|
}
|
|
5492
5492
|
}, Io = {
|
|
5493
5493
|
type: J.COMMAND,
|
|
@@ -5496,7 +5496,7 @@ const ca = {
|
|
|
5496
5496
|
const t = r.get(W);
|
|
5497
5497
|
return r.get(De).getContextValue(Je) ? t.executeCommand(Bh.id, e) : t.executeCommand(lg.id, e);
|
|
5498
5498
|
}
|
|
5499
|
-
},
|
|
5499
|
+
}, Zd = {
|
|
5500
5500
|
type: J.COMMAND,
|
|
5501
5501
|
id: "sheet.command.reset-range-text-color",
|
|
5502
5502
|
handler: async (r) => {
|
|
@@ -5537,7 +5537,7 @@ const ca = {
|
|
|
5537
5537
|
children: { title: n.t("merge.confirm.dismantleMergeCellWarning") },
|
|
5538
5538
|
cancelText: n.t("button.cancel"),
|
|
5539
5539
|
confirmText: n.t("button.confirm")
|
|
5540
|
-
}) ? t.executeCommand(
|
|
5540
|
+
}) ? t.executeCommand(Ic.id) : !0 : t.executeCommand(Ic.id);
|
|
5541
5541
|
}
|
|
5542
5542
|
}, ts = {
|
|
5543
5543
|
type: J.COMMAND,
|
|
@@ -5563,7 +5563,7 @@ const ca = {
|
|
|
5563
5563
|
children: { title: n.t("merge.confirm.dismantleMergeCellWarning") },
|
|
5564
5564
|
cancelText: n.t("button.cancel"),
|
|
5565
5565
|
confirmText: n.t("button.confirm")
|
|
5566
|
-
}) ? t.executeCommand(
|
|
5566
|
+
}) ? t.executeCommand(yc.id) : !0 : t.executeCommand(yc.id);
|
|
5567
5567
|
}
|
|
5568
5568
|
};
|
|
5569
5569
|
var _m = /* @__PURE__ */ ((r) => (r[r.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", r[r.UNIVER_DOC = 1] = "UNIVER_DOC", r[r.UNIVER_SHEET = 2] = "UNIVER_SHEET", r[r.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", r[r.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(_m || {}), ue = /* @__PURE__ */ ((r) => (r[r.View = 0] = "View", r[r.Edit = 1] = "Edit", r[r.ManageCollaborator = 2] = "ManageCollaborator", r[r.Print = 3] = "Print", r[r.Duplicate = 4] = "Duplicate", r[r.Comment = 5] = "Comment", r[r.Copy = 6] = "Copy", r[r.Share = 7] = "Share", r[r.Export = 8] = "Export", r[r.MoveWorksheet = 9] = "MoveWorksheet", r[r.DeleteWorksheet = 10] = "DeleteWorksheet", r[r.HideWorksheet = 11] = "HideWorksheet", r[r.RenameWorksheet = 12] = "RenameWorksheet", r[r.CreateWorksheet = 13] = "CreateWorksheet", r[r.SetWorksheetStyle = 14] = "SetWorksheetStyle", r[r.EditWorksheetCell = 15] = "EditWorksheetCell", r[r.InsertHyperlink = 16] = "InsertHyperlink", r[r.Sort = 17] = "Sort", r[r.Filter = 18] = "Filter", r[r.PivotTable = 19] = "PivotTable", r[r.FloatImg = 20] = "FloatImg", r[r.History = 21] = "History", r[r.RwHgtClWdt = 22] = "RwHgtClWdt", r[r.ViemRwHgtClWdt = 23] = "ViemRwHgtClWdt", r[r.ViewFilter = 24] = "ViewFilter", r[r.MoveSheet = 25] = "MoveSheet", r[r.DeleteSheet = 26] = "DeleteSheet", r[r.HideSheet = 27] = "HideSheet", r[r.CopySheet = 28] = "CopySheet", r[r.RenameSheet = 29] = "RenameSheet", r[r.CreateSheet = 30] = "CreateSheet", r[r.SelectProtectedCells = 31] = "SelectProtectedCells", r[r.SelectUnProtectedCells = 32] = "SelectUnProtectedCells", r[r.SetCellStyle = 33] = "SetCellStyle", r[r.SetCellValue = 34] = "SetCellValue", r[r.SetRowStyle = 35] = "SetRowStyle", r[r.SetColumnStyle = 36] = "SetColumnStyle", r[r.InsertRow = 37] = "InsertRow", r[r.InsertColumn = 38] = "InsertColumn", r[r.DeleteRow = 39] = "DeleteRow", r[r.DeleteColumn = 40] = "DeleteColumn", r[r.EditExtraObject = 41] = "EditExtraObject", r[r.Delete = 42] = "Delete", r[r.RecoverHistory = 43] = "RecoverHistory", r[r.ViewHistory = 44] = "ViewHistory", r[r.CreatePermissionObject = 45] = "CreatePermissionObject", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(ue || {}), Dt = /* @__PURE__ */ ((r) => (r[r.Reader = 0] = "Reader", r[r.Editor = 1] = "Editor", r[r.Owner = 2] = "Owner", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(Dt || {}), yn = /* @__PURE__ */ ((r) => (r[r.Unkonwn = 0] = "Unkonwn", r[r.Workbook = 1] = "Workbook", r[r.Worksheet = 2] = "Worksheet", r[r.SelectRange = 3] = "SelectRange", r[r.Document = 4] = "Document", r[r.Slide = 5] = "Slide", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(yn || {}), on = /* @__PURE__ */ ((r) => (r[r.SomeCollaborator = 0] = "SomeCollaborator", r[r.AllCollaborator = 1] = "AllCollaborator", r[r.OneSelf = 2] = "OneSelf", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(on || {});
|
|
@@ -5726,9 +5726,9 @@ const Hn = {
|
|
|
5726
5726
|
subUnitId: c,
|
|
5727
5727
|
ruleIds: [f.id]
|
|
5728
5728
|
};
|
|
5729
|
-
return await e.executeCommand(
|
|
5729
|
+
return await e.executeCommand(wu.id, v) && n.pushUndoRedo({
|
|
5730
5730
|
unitID: a,
|
|
5731
|
-
redoMutations: [{ id:
|
|
5731
|
+
redoMutations: [{ id: wu.id, params: v }],
|
|
5732
5732
|
undoMutations: [{ id: Tv.id, params: { unitId: a, subUnitId: c, rules: [f] } }]
|
|
5733
5733
|
}), !0;
|
|
5734
5734
|
} else
|
|
@@ -5939,7 +5939,7 @@ const Ca = {
|
|
|
5939
5939
|
id: "sheet.operation.set-format-painter",
|
|
5940
5940
|
type: J.OPERATION,
|
|
5941
5941
|
handler: (r, e) => e ? (r.get(Dn).setStatus(e.status), !0) : !1
|
|
5942
|
-
},
|
|
5942
|
+
}, Gd = {
|
|
5943
5943
|
type: J.COMMAND,
|
|
5944
5944
|
id: "sheet.command.set-infinite-format-painter",
|
|
5945
5945
|
handler: async (r) => {
|
|
@@ -6145,7 +6145,7 @@ const $n = {
|
|
|
6145
6145
|
/* Column */
|
|
6146
6146
|
}), !0)
|
|
6147
6147
|
};
|
|
6148
|
-
class
|
|
6148
|
+
class qd extends se {
|
|
6149
6149
|
constructor() {
|
|
6150
6150
|
super(...arguments);
|
|
6151
6151
|
_(this, "rangesStack", []);
|
|
@@ -6156,7 +6156,7 @@ var tw = Object.getOwnPropertyDescriptor, nw = (r, e, t, n) => {
|
|
|
6156
6156
|
for (var i = n > 1 ? void 0 : n ? tw(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
6157
6157
|
(s = r[o]) && (i = s(i) || i);
|
|
6158
6158
|
return i;
|
|
6159
|
-
},
|
|
6159
|
+
}, eh = (r, e) => (t, n) => e(t, n, r);
|
|
6160
6160
|
let Si = class {
|
|
6161
6161
|
constructor(r, e) {
|
|
6162
6162
|
_(this, "_current", null);
|
|
@@ -6200,8 +6200,8 @@ let Si = class {
|
|
|
6200
6200
|
}
|
|
6201
6201
|
};
|
|
6202
6202
|
Si = nw([
|
|
6203
|
-
|
|
6204
|
-
|
|
6203
|
+
eh(0, k),
|
|
6204
|
+
eh(1, N(xe))
|
|
6205
6205
|
], Si);
|
|
6206
6206
|
var Ln = /* @__PURE__ */ ((r) => (r[r.moveStopeOne = 0] = "moveStopeOne", r[r.moveGap = 1] = "moveGap", r[r.moveStepPage = 2] = "moveStepPage", r[r.moveStepEnd = 3] = "moveStepEnd", r))(Ln || {});
|
|
6207
6207
|
const Ut = {
|
|
@@ -6215,7 +6215,7 @@ const Ut = {
|
|
|
6215
6215
|
const { workbook: n, worksheet: i } = t, o = Fo(r, e.fromCurrentSelection).getCurrentLastSelection();
|
|
6216
6216
|
if (!o)
|
|
6217
6217
|
return !1;
|
|
6218
|
-
const { direction: s, jumpOver: l, extra: a } = e, { range: c, primary: d } = o, u =
|
|
6218
|
+
const { direction: s, jumpOver: l, extra: a } = e, { range: c, primary: d } = o, u = Xc(c, d, s), h = l === 1 ? jd(u, s, i) : qn(u, s, i), g = Ts(h.startRow, h.startColumn, i);
|
|
6219
6219
|
if (oe.equals(g, u))
|
|
6220
6220
|
return !1;
|
|
6221
6221
|
const m = n.getUnitId();
|
|
@@ -6265,7 +6265,7 @@ const Ut = {
|
|
|
6265
6265
|
if (!u)
|
|
6266
6266
|
return !1;
|
|
6267
6267
|
const { range: p } = u, C = u.primary;
|
|
6268
|
-
let w =
|
|
6268
|
+
let w = Xc(p, C, s);
|
|
6269
6269
|
const S = r.get(Si), I = S.getCurrentBySearch({
|
|
6270
6270
|
unitId: f,
|
|
6271
6271
|
sheetId: v,
|
|
@@ -6285,7 +6285,7 @@ const Ut = {
|
|
|
6285
6285
|
const B = I == null ? void 0 : I.selection;
|
|
6286
6286
|
if (B != null) {
|
|
6287
6287
|
const { range: j, primary: G } = B;
|
|
6288
|
-
w =
|
|
6288
|
+
w = Xc(j, G, s);
|
|
6289
6289
|
}
|
|
6290
6290
|
S.remove({
|
|
6291
6291
|
unitId: f,
|
|
@@ -6396,7 +6396,7 @@ const Ut = {
|
|
|
6396
6396
|
if (!t) return !1;
|
|
6397
6397
|
const n = Fo(r).getCurrentLastSelection();
|
|
6398
6398
|
if (!n) return !1;
|
|
6399
|
-
const i = r.get(
|
|
6399
|
+
const i = r.get(qd), { worksheet: o, unitId: s, subUnitId: l } = t, a = `${s}|${l}`;
|
|
6400
6400
|
a !== i.selectedRangeWorksheet && (i.rangesStack = [], i.selectedRangeWorksheet = a);
|
|
6401
6401
|
const c = o.getMaxRows(), d = o.getMaxColumns(), { expandToGapFirst: u, loop: h } = e, { range: g, primary: m } = n, f = g.endColumn === d - 1 && g.endRow === c - 1 && g.startRow === 0 && g.startColumn === 0;
|
|
6402
6402
|
i.rangesStack.some((I) => oe.equals(I, g)) || (i.rangesStack = [], i.rangesStack.push(g));
|
|
@@ -6408,7 +6408,7 @@ const Ut = {
|
|
|
6408
6408
|
v = i.rangesStack[0];
|
|
6409
6409
|
} else
|
|
6410
6410
|
return !1;
|
|
6411
|
-
else u ? (v = xv(g, { left: !0, right: !0, up: !0, down: !0 }, o), oe.equals(v, g) && (v =
|
|
6411
|
+
else u ? (v = xv(g, { left: !0, right: !0, up: !0, down: !0 }, o), oe.equals(v, g) && (v = $u(o))) : v = $u(o);
|
|
6412
6412
|
i.rangesStack.some((I) => oe.equals(I, v)) || i.rangesStack.push(v);
|
|
6413
6413
|
const p = [];
|
|
6414
6414
|
p.push({
|
|
@@ -6460,7 +6460,7 @@ function en(r, e) {
|
|
|
6460
6460
|
engine: l
|
|
6461
6461
|
};
|
|
6462
6462
|
}
|
|
6463
|
-
function
|
|
6463
|
+
function th(r, e, t, n) {
|
|
6464
6464
|
const { startX: i, startY: o, endX: s, endY: l } = n.getCellWithCoordByIndex(r, e);
|
|
6465
6465
|
return { startX: i, startY: o, endX: s, endY: l };
|
|
6466
6466
|
}
|
|
@@ -6663,7 +6663,7 @@ let Ci = class extends se {
|
|
|
6663
6663
|
e.unitId === this._context.unitId && e.reveal && this._scrollToSelection();
|
|
6664
6664
|
}
|
|
6665
6665
|
break;
|
|
6666
|
-
case
|
|
6666
|
+
case gd.id:
|
|
6667
6667
|
{
|
|
6668
6668
|
const e = r.params;
|
|
6669
6669
|
if (e.unitId === this._context.unitId) {
|
|
@@ -6929,7 +6929,7 @@ var lw = Object.getOwnPropertyDescriptor, aw = (r, e, t, n) => {
|
|
|
6929
6929
|
for (var i = n > 1 ? void 0 : n ? lw(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
6930
6930
|
(s = r[o]) && (i = s(i) || i);
|
|
6931
6931
|
return i;
|
|
6932
|
-
},
|
|
6932
|
+
}, nh = (r, e) => (t, n) => e(t, n, r);
|
|
6933
6933
|
const cw = (r, e) => {
|
|
6934
6934
|
const { unitId: t, subUnitId: n, ranges: i } = r, o = {}, s = e.getColumnManager();
|
|
6935
6935
|
for (let l = 0; l < i.length; l++) {
|
|
@@ -6979,8 +6979,8 @@ let Ir = class extends se {
|
|
|
6979
6979
|
}
|
|
6980
6980
|
};
|
|
6981
6981
|
Ir = aw([
|
|
6982
|
-
|
|
6983
|
-
|
|
6982
|
+
nh(0, ve),
|
|
6983
|
+
nh(1, N(k))
|
|
6984
6984
|
], Ir);
|
|
6985
6985
|
const rs = {
|
|
6986
6986
|
type: J.COMMAND,
|
|
@@ -7074,7 +7074,7 @@ let sl = class extends se {
|
|
|
7074
7074
|
const { primary: l, scene: a, engine: c } = t, d = Qs(o, l);
|
|
7075
7075
|
if (d == null)
|
|
7076
7076
|
return;
|
|
7077
|
-
const u = ks(d), h =
|
|
7077
|
+
const u = ks(d), h = uu(c);
|
|
7078
7078
|
let { startX: g, startY: m, endX: f, endY: v } = u;
|
|
7079
7079
|
const { scaleX: p, scaleY: C } = a.getAncestorScale(), w = a.getViewportScrollXY(s.getViewPort());
|
|
7080
7080
|
g = Gr(g, p, w), m = qr(m, C, w), f = Gr(f, p, w), v = qr(v, C, w), e && this._currentEditCellLayout && (f = f - g + this._currentEditCellLayout.position.startX, v = v - m + this._currentEditCellLayout.position.startY, g = this._currentEditCellLayout.position.startX, m = this._currentEditCellLayout.position.startY), this._currentEditCellLayout = {
|
|
@@ -7131,7 +7131,7 @@ let sl = class extends se {
|
|
|
7131
7131
|
if (!i) return;
|
|
7132
7132
|
const { primary: s, unitId: l, sheetId: a, scene: c, engine: d } = e, { startRow: u, startColumn: h } = s, g = Qs(i, s);
|
|
7133
7133
|
if (g == null) return;
|
|
7134
|
-
const m = ks(g), f =
|
|
7134
|
+
const m = ks(g), f = uu(d);
|
|
7135
7135
|
let { startX: v, startY: p, endX: C, endY: w } = m;
|
|
7136
7136
|
const { scaleX: S, scaleY: I } = c.getAncestorScale(), R = c.getViewportScrollXY(o.getViewPort());
|
|
7137
7137
|
v = Gr(v, S, R), p = qr(p, I, R), C = Gr(C, S, R), w = qr(w, I, R);
|
|
@@ -7156,7 +7156,7 @@ let sl = class extends se {
|
|
|
7156
7156
|
if (P != null && (P.cellValueType = yt.STRING), !E || E.documentModel == null) {
|
|
7157
7157
|
const V = y.getBlankCellDocumentModel(T, M.row, M.col);
|
|
7158
7158
|
if (E != null) {
|
|
7159
|
-
const { verticalAlign: D, horizontalAlign: X, wrapStrategy: B, textRotation: j, fill: G } = E, { centerAngle: ge, vertexAngle: Re } =
|
|
7159
|
+
const { verticalAlign: D, horizontalAlign: X, wrapStrategy: B, textRotation: j, fill: G } = E, { centerAngle: ge, vertexAngle: Re } = _d(j);
|
|
7160
7160
|
V.documentModel.documentStyle.renderConfig = {
|
|
7161
7161
|
...P,
|
|
7162
7162
|
verticalAlign: D,
|
|
@@ -7302,7 +7302,7 @@ Po = gw([
|
|
|
7302
7302
|
Cs(1, N(de)),
|
|
7303
7303
|
Cs(2, W),
|
|
7304
7304
|
Cs(3, De),
|
|
7305
|
-
Cs(4,
|
|
7305
|
+
Cs(4, od(qe))
|
|
7306
7306
|
], Po);
|
|
7307
7307
|
const Jt = {
|
|
7308
7308
|
id: "sheet.operation.set-zoom-ratio",
|
|
@@ -7321,7 +7321,7 @@ const Jt = {
|
|
|
7321
7321
|
if (!n) return !1;
|
|
7322
7322
|
const { worksheet: i, subUnitId: o, unitId: s } = n, { delta: l, reset: a } = e;
|
|
7323
7323
|
let c = a ? 100 : Math.round((i.getConfig().zoomRatio + l) * 100);
|
|
7324
|
-
c = Math.max(
|
|
7324
|
+
c = Math.max(Dc[0], c), c = Math.min(Dc[1], c);
|
|
7325
7325
|
const d = c / 100, h = r.get(qe).isVisible();
|
|
7326
7326
|
return (h.unitId === s || h.unitId === Ae) && h.visible ? !1 : r.get(W).executeCommand(Jt.id, {
|
|
7327
7327
|
unitId: s,
|
|
@@ -7419,7 +7419,7 @@ const Ia = {
|
|
|
7419
7419
|
async handler(r) {
|
|
7420
7420
|
return await r.get(W).executeCommand("sheet-permission.operation.openDialog"), !0;
|
|
7421
7421
|
}
|
|
7422
|
-
},
|
|
7422
|
+
}, Qd = {
|
|
7423
7423
|
id: "sheet.operation.set-activate-cell-edit",
|
|
7424
7424
|
type: J.OPERATION,
|
|
7425
7425
|
handler: (r, e) => (r.get(qe).setEditCell(e), !0)
|
|
@@ -7456,7 +7456,7 @@ const Ia = {
|
|
|
7456
7456
|
const t = r.get(Nr);
|
|
7457
7457
|
return e && t.setRenameId(e.subUnitId), !0;
|
|
7458
7458
|
}
|
|
7459
|
-
},
|
|
7459
|
+
}, Kd = {
|
|
7460
7460
|
id: "sheet.operation.scroll-to-range",
|
|
7461
7461
|
type: J.OPERATION,
|
|
7462
7462
|
handler: (r, e) => {
|
|
@@ -7479,7 +7479,7 @@ const Ia = {
|
|
|
7479
7479
|
onClose: () => t.close(il)
|
|
7480
7480
|
}), !0;
|
|
7481
7481
|
}
|
|
7482
|
-
}, xo = "DefinedNameContainer",
|
|
7482
|
+
}, xo = "DefinedNameContainer", Jd = {
|
|
7483
7483
|
id: "sidebar.operation.defined-name",
|
|
7484
7484
|
type: J.COMMAND,
|
|
7485
7485
|
handler: async (r, e) => {
|
|
@@ -7569,7 +7569,7 @@ function vw(r, e, t, n) {
|
|
|
7569
7569
|
col: a.column
|
|
7570
7570
|
};
|
|
7571
7571
|
}
|
|
7572
|
-
function
|
|
7572
|
+
function rh(r, e, t, n) {
|
|
7573
7573
|
const i = n.getFreeze();
|
|
7574
7574
|
if (!i || i.startRow <= 0 && i.startColumn <= 0)
|
|
7575
7575
|
return t.getViewport(F.VIEW_MAIN);
|
|
@@ -7583,7 +7583,7 @@ function ih(r, e, t, n) {
|
|
|
7583
7583
|
return t.getViewport(F.VIEW_MAIN_LEFT);
|
|
7584
7584
|
}
|
|
7585
7585
|
function Sw(r, e, t, n) {
|
|
7586
|
-
const i =
|
|
7586
|
+
const i = ih(r.left, r.top, e, t, n), o = ih(r.right, r.bottom, e, t, n);
|
|
7587
7587
|
return {
|
|
7588
7588
|
left: i.x,
|
|
7589
7589
|
top: i.y,
|
|
@@ -7591,7 +7591,7 @@ function Sw(r, e, t, n) {
|
|
|
7591
7591
|
bottom: o.y
|
|
7592
7592
|
};
|
|
7593
7593
|
}
|
|
7594
|
-
function
|
|
7594
|
+
function ih(r, e, t, n, i) {
|
|
7595
7595
|
const { scaleX: o, scaleY: s } = t.getAncestorScale(), l = t.getViewport(F.VIEW_MAIN);
|
|
7596
7596
|
if (!l)
|
|
7597
7597
|
return {
|
|
@@ -7692,7 +7692,7 @@ var Hm = /* @__PURE__ */ ((r) => (r.FILTER_PANEL_EMBED_POINT = "filter-panel-emb
|
|
|
7692
7692
|
(s = r[o]) && (i = s(i) || i);
|
|
7693
7693
|
return i;
|
|
7694
7694
|
}, ws = (r, e) => (t, n) => e(t, n, r);
|
|
7695
|
-
const
|
|
7695
|
+
const oh = "univer-sheet-main-canvas";
|
|
7696
7696
|
let ir = class extends kn {
|
|
7697
7697
|
constructor(e, t, n, i) {
|
|
7698
7698
|
super();
|
|
@@ -7724,7 +7724,7 @@ let ir = class extends kn {
|
|
|
7724
7724
|
_createRenderer(e) {
|
|
7725
7725
|
const t = e.getUnitId();
|
|
7726
7726
|
this._renderManagerService.created$.subscribe((n) => {
|
|
7727
|
-
n.unitId === t && (n.engine.getCanvas().setId(`${
|
|
7727
|
+
n.unitId === t && (n.engine.getCanvas().setId(`${oh}_${t}`), n.engine.getCanvas().getContext().setId(`${oh}_${t}`));
|
|
7728
7728
|
}), this._renderManagerService.createRender(t);
|
|
7729
7729
|
}
|
|
7730
7730
|
_disposeRenderer(e) {
|
|
@@ -8287,7 +8287,7 @@ var Mw = Object.getOwnPropertyDescriptor, Ew = (r, e, t, n) => {
|
|
|
8287
8287
|
for (var i = n > 1 ? void 0 : n ? Mw(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
8288
8288
|
(s = r[o]) && (i = s(i) || i);
|
|
8289
8289
|
return i;
|
|
8290
|
-
},
|
|
8290
|
+
}, sh = (r, e) => (t, n) => e(t, n, r);
|
|
8291
8291
|
let Oo = class extends se {
|
|
8292
8292
|
constructor(e, t) {
|
|
8293
8293
|
super();
|
|
@@ -8350,8 +8350,8 @@ let Oo = class extends se {
|
|
|
8350
8350
|
}
|
|
8351
8351
|
};
|
|
8352
8352
|
Oo = Ew([
|
|
8353
|
-
|
|
8354
|
-
|
|
8353
|
+
sh(0, k),
|
|
8354
|
+
sh(1, ve)
|
|
8355
8355
|
], Oo);
|
|
8356
8356
|
var Tw = Object.getOwnPropertyDescriptor, Pw = (r, e, t, n) => {
|
|
8357
8357
|
for (var i = n > 1 ? void 0 : n ? Tw(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -8681,14 +8681,14 @@ const Lw = {
|
|
|
8681
8681
|
clipRule: "evenodd"
|
|
8682
8682
|
}
|
|
8683
8683
|
}]
|
|
8684
|
-
},
|
|
8684
|
+
}, $d = ut(function(e, t) {
|
|
8685
8685
|
return st(ct, Object.assign({}, e, {
|
|
8686
8686
|
id: "error-icon",
|
|
8687
8687
|
ref: t,
|
|
8688
8688
|
icon: Lw
|
|
8689
8689
|
}));
|
|
8690
8690
|
});
|
|
8691
|
-
|
|
8691
|
+
$d.displayName = "ErrorIcon";
|
|
8692
8692
|
const Ww = {
|
|
8693
8693
|
tag: "svg",
|
|
8694
8694
|
attrs: {
|
|
@@ -8759,14 +8759,14 @@ const Fw = {
|
|
|
8759
8759
|
d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z"
|
|
8760
8760
|
}
|
|
8761
8761
|
}]
|
|
8762
|
-
},
|
|
8762
|
+
}, eu = ut(function(e, t) {
|
|
8763
8763
|
return st(ct, Object.assign({}, e, {
|
|
8764
8764
|
id: "increase-icon",
|
|
8765
8765
|
ref: t,
|
|
8766
8766
|
icon: Fw
|
|
8767
8767
|
}));
|
|
8768
8768
|
});
|
|
8769
|
-
|
|
8769
|
+
eu.displayName = "IncreaseIcon";
|
|
8770
8770
|
const Uw = {
|
|
8771
8771
|
tag: "svg",
|
|
8772
8772
|
attrs: {
|
|
@@ -8829,14 +8829,14 @@ const Xw = {
|
|
|
8829
8829
|
}
|
|
8830
8830
|
}
|
|
8831
8831
|
]
|
|
8832
|
-
},
|
|
8832
|
+
}, tu = ut(function(e, t) {
|
|
8833
8833
|
return st(ct, Object.assign({}, e, {
|
|
8834
8834
|
id: "lock-icon",
|
|
8835
8835
|
ref: t,
|
|
8836
8836
|
icon: Xw
|
|
8837
8837
|
}));
|
|
8838
8838
|
});
|
|
8839
|
-
|
|
8839
|
+
tu.displayName = "LockIcon";
|
|
8840
8840
|
const zw = {
|
|
8841
8841
|
tag: "svg",
|
|
8842
8842
|
attrs: {
|
|
@@ -8881,14 +8881,14 @@ const jw = {
|
|
|
8881
8881
|
clipRule: "evenodd"
|
|
8882
8882
|
}
|
|
8883
8883
|
}]
|
|
8884
|
-
},
|
|
8884
|
+
}, zc = ut(function(e, t) {
|
|
8885
8885
|
return st(ct, Object.assign({}, e, {
|
|
8886
8886
|
id: "more-icon",
|
|
8887
8887
|
ref: t,
|
|
8888
8888
|
icon: jw
|
|
8889
8889
|
}));
|
|
8890
8890
|
});
|
|
8891
|
-
|
|
8891
|
+
zc.displayName = "MoreIcon";
|
|
8892
8892
|
const Yw = {
|
|
8893
8893
|
tag: "svg",
|
|
8894
8894
|
attrs: {
|
|
@@ -8997,14 +8997,14 @@ const qw = {
|
|
|
8997
8997
|
d: "M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z"
|
|
8998
8998
|
}
|
|
8999
8999
|
}]
|
|
9000
|
-
},
|
|
9000
|
+
}, nu = ut(function(e, t) {
|
|
9001
9001
|
return st(ct, Object.assign({}, e, {
|
|
9002
9002
|
id: "write-icon",
|
|
9003
9003
|
ref: t,
|
|
9004
9004
|
icon: qw
|
|
9005
9005
|
}));
|
|
9006
9006
|
});
|
|
9007
|
-
|
|
9007
|
+
nu.displayName = "WriteIcon";
|
|
9008
9008
|
const Qw = {
|
|
9009
9009
|
tag: "svg",
|
|
9010
9010
|
attrs: {
|
|
@@ -9084,14 +9084,14 @@ const Kw = {
|
|
|
9084
9084
|
clipRule: "evenodd"
|
|
9085
9085
|
}
|
|
9086
9086
|
}]
|
|
9087
|
-
},
|
|
9087
|
+
}, ru = ut(function(e, t) {
|
|
9088
9088
|
return st(ct, Object.assign({}, e, {
|
|
9089
9089
|
id: "hide-gridlines-double-icon",
|
|
9090
9090
|
ref: t,
|
|
9091
9091
|
icon: Kw
|
|
9092
9092
|
}));
|
|
9093
9093
|
});
|
|
9094
|
-
|
|
9094
|
+
ru.displayName = "HideGridlinesDoubleIcon";
|
|
9095
9095
|
const Jw = {
|
|
9096
9096
|
tag: "svg",
|
|
9097
9097
|
attrs: {
|
|
@@ -9249,7 +9249,7 @@ function t0() {
|
|
|
9249
9249
|
onMouseEnter: C,
|
|
9250
9250
|
onMouseLeave: w,
|
|
9251
9251
|
children: /* @__PURE__ */ b(
|
|
9252
|
-
|
|
9252
|
+
Od,
|
|
9253
9253
|
{
|
|
9254
9254
|
align: "start",
|
|
9255
9255
|
items: j.map((G) => ({
|
|
@@ -9301,20 +9301,20 @@ function Gm(r, e) {
|
|
|
9301
9301
|
}
|
|
9302
9302
|
}), [n, t, e]);
|
|
9303
9303
|
}
|
|
9304
|
-
const dl = -1e3,
|
|
9304
|
+
const dl = -1e3, lh = {
|
|
9305
9305
|
width: 0,
|
|
9306
9306
|
height: 0,
|
|
9307
9307
|
top: dl,
|
|
9308
9308
|
left: dl
|
|
9309
9309
|
}, n0 = () => {
|
|
9310
9310
|
const [r, e] = re({
|
|
9311
|
-
...
|
|
9311
|
+
...lh
|
|
9312
9312
|
}), t = L(ss), n = L(Ni), i = L(De), o = L(Nt), s = L(qe), l = dt(s.visible$), a = L(W), c = Tn(0), d = dt(
|
|
9313
|
-
() => i.subscribeContextValue$(
|
|
9313
|
+
() => i.subscribeContextValue$(Pu),
|
|
9314
9314
|
!1,
|
|
9315
9315
|
void 0,
|
|
9316
|
-
[i,
|
|
9317
|
-
), u = o.get(
|
|
9316
|
+
[i, Pu]
|
|
9317
|
+
), u = o.get(kd), h = s.getEditLocation();
|
|
9318
9318
|
Ee(() => {
|
|
9319
9319
|
const v = t.state$.subscribe((p) => {
|
|
9320
9320
|
if (p == null)
|
|
@@ -9328,7 +9328,7 @@ const dl = -1e3, ah = {
|
|
|
9328
9328
|
} = p;
|
|
9329
9329
|
if (!R)
|
|
9330
9330
|
e({
|
|
9331
|
-
...
|
|
9331
|
+
...lh
|
|
9332
9332
|
});
|
|
9333
9333
|
else {
|
|
9334
9334
|
e({
|
|
@@ -9350,7 +9350,7 @@ const dl = -1e3, ah = {
|
|
|
9350
9350
|
}, []), Ee(() => {
|
|
9351
9351
|
d || t.setFocus(!0);
|
|
9352
9352
|
}, [d, r]);
|
|
9353
|
-
const g =
|
|
9353
|
+
const g = xu(() => {
|
|
9354
9354
|
s.isVisible().visible && a.executeCommand(tt.id, {
|
|
9355
9355
|
visible: !1,
|
|
9356
9356
|
eventType: je.PointerUp,
|
|
@@ -9358,7 +9358,7 @@ const dl = -1e3, ah = {
|
|
|
9358
9358
|
});
|
|
9359
9359
|
});
|
|
9360
9360
|
Yg(g);
|
|
9361
|
-
const m = Gm(c, h == null ? void 0 : h.unitId), f =
|
|
9361
|
+
const m = Gm(c, h == null ? void 0 : h.unitId), f = xu((v, p) => {
|
|
9362
9362
|
a.executeCommand(wi.id, {
|
|
9363
9363
|
keycode: v,
|
|
9364
9364
|
visible: !1,
|
|
@@ -9465,12 +9465,12 @@ function r0() {
|
|
|
9465
9465
|
};
|
|
9466
9466
|
}, []);
|
|
9467
9467
|
const d = () => {
|
|
9468
|
-
r.executeCommand(
|
|
9468
|
+
r.executeCommand(Jd.id, { value: "open" });
|
|
9469
9469
|
}, u = async (h) => {
|
|
9470
9470
|
const { formulaOrRefString: g, id: m } = h, f = t.getWorksheetByRef(s, g);
|
|
9471
9471
|
if (!f)
|
|
9472
9472
|
return;
|
|
9473
|
-
f.isSheetHidden() && await r.executeCommand(
|
|
9473
|
+
f.isSheetHidden() && await r.executeCommand(md.id, { unitId: s, subUnitId: f.getSheetId() }), t.focusRange(s, m);
|
|
9474
9474
|
};
|
|
9475
9475
|
return /* @__PURE__ */ q("div", { className: "univer-w-[300px]", children: [
|
|
9476
9476
|
/* @__PURE__ */ b(
|
|
@@ -9487,7 +9487,7 @@ function r0() {
|
|
|
9487
9487
|
children: /* @__PURE__ */ q(
|
|
9488
9488
|
"div",
|
|
9489
9489
|
{
|
|
9490
|
-
className: Te("univer-flex univer-items-center univer-justify-between univer-gap-2 univer-py-1",
|
|
9490
|
+
className: Te("univer-flex univer-items-center univer-justify-between univer-gap-2 univer-py-1", Ad),
|
|
9491
9491
|
children: [
|
|
9492
9492
|
/* @__PURE__ */ b(
|
|
9493
9493
|
"div",
|
|
@@ -9553,7 +9553,7 @@ function i0({ disable: r }) {
|
|
|
9553
9553
|
/* @__PURE__ */ b(
|
|
9554
9554
|
"input",
|
|
9555
9555
|
{
|
|
9556
|
-
className: Te("univer-box-border univer-h-full univer-w-full univer-appearance-none univer-px-1.5 univer-text-gray-900 focus:univer-outline-none dark:!univer-border-r-gray-700 dark:!univer-bg-gray-900 dark:!univer-text-white",
|
|
9556
|
+
className: Te("univer-box-border univer-h-full univer-w-full univer-appearance-none univer-px-1.5 univer-text-gray-900 focus:univer-outline-none dark:!univer-border-r-gray-700 dark:!univer-bg-gray-900 dark:!univer-text-white", Hd, {
|
|
9557
9557
|
"univer-cursor-not-allowed": r
|
|
9558
9558
|
}),
|
|
9559
9559
|
type: "text",
|
|
@@ -9562,7 +9562,7 @@ function i0({ disable: r }) {
|
|
|
9562
9562
|
}
|
|
9563
9563
|
),
|
|
9564
9564
|
/* @__PURE__ */ b(
|
|
9565
|
-
|
|
9565
|
+
Nc,
|
|
9566
9566
|
{
|
|
9567
9567
|
overlay: /* @__PURE__ */ b("div", { className: "univer-z-[1001]", children: /* @__PURE__ */ b(r0, {}) }),
|
|
9568
9568
|
disabled: r,
|
|
@@ -9589,7 +9589,7 @@ function o0(r) {
|
|
|
9589
9589
|
), l = L(ls), a = L(qe), c = L(ft), d = L($e), u = L(k), h = L(Q), g = L(rt), m = L(Yo), f = L(W), [v, p] = re({
|
|
9590
9590
|
editDisable: !1,
|
|
9591
9591
|
viewDisable: !1
|
|
9592
|
-
}), [C, w] = re(!1), S = L(Nt), I = dt(() => u.getCurrentTypeOfUnit$(O.UNIVER_SHEET), void 0, void 0, []), R = Tn(0), y = dt(a.currentEditCellState$), M = Gm(R, (ne = y == null ? void 0 : y.unitId) != null ? ne : ""), E = S.get(
|
|
9592
|
+
}), [C, w] = re(!1), S = L(Nt), I = dt(() => u.getCurrentTypeOfUnit$(O.UNIVER_SHEET), void 0, void 0, []), R = Tn(0), y = dt(a.currentEditCellState$), M = Gm(R, (ne = y == null ? void 0 : y.unitId) != null ? ne : ""), E = S.get(kd), T = $S(Hm.FORMULA_AUX), P = L(De);
|
|
9593
9593
|
dt(Ct(() => P.subscribeContextValue$(xt), [P]));
|
|
9594
9594
|
const H = P.getContextValue(xt), A = Tn(null), x = L(Ni);
|
|
9595
9595
|
gC(() => {
|
|
@@ -9603,7 +9603,7 @@ function o0(r) {
|
|
|
9603
9603
|
lt(() => {
|
|
9604
9604
|
var Bn, Fn;
|
|
9605
9605
|
const it = I.getUnitId(), ot = le.getSheetId();
|
|
9606
|
-
if (!((Bn = h.getCurrentLastSelection()) == null ? void 0 : Bn.range)) return
|
|
9606
|
+
if (!((Bn = h.getCurrentLastSelection()) == null ? void 0 : Bn.range)) return Iu;
|
|
9607
9607
|
const wt = (Fn = h.getCurrentLastSelection()) == null ? void 0 : Fn.primary;
|
|
9608
9608
|
return wt ? Ce({
|
|
9609
9609
|
unitId: it,
|
|
@@ -9611,7 +9611,7 @@ function o0(r) {
|
|
|
9611
9611
|
primary: wt
|
|
9612
9612
|
}) : Ce(null);
|
|
9613
9613
|
})
|
|
9614
|
-
) :
|
|
9614
|
+
) : Iu)
|
|
9615
9615
|
).subscribe((le) => {
|
|
9616
9616
|
var it, ot, vt, wt, Bn, Fn;
|
|
9617
9617
|
if (le) {
|
|
@@ -9716,7 +9716,7 @@ function o0(r) {
|
|
|
9716
9716
|
"div",
|
|
9717
9717
|
{
|
|
9718
9718
|
"data-u-comp": "formula-bar",
|
|
9719
|
-
className: Te("univer-box-border univer-flex univer-bg-white univer-transition-[height] univer-ease-linear dark:!univer-bg-gray-900",
|
|
9719
|
+
className: Te("univer-box-border univer-flex univer-bg-white univer-transition-[height] univer-ease-linear dark:!univer-bg-gray-900", Ad, e, {
|
|
9720
9720
|
"univer-h-7": o === 0,
|
|
9721
9721
|
"univer-h-20": o === 1,
|
|
9722
9722
|
"univer-pointer-events-none": G
|
|
@@ -9727,7 +9727,7 @@ function o0(r) {
|
|
|
9727
9727
|
/* @__PURE__ */ b("div", { className: Te("univer-py-1.5", { "univer-cursor-not-allowed univer-text-gray-200": ge }), children: /* @__PURE__ */ q(
|
|
9728
9728
|
"div",
|
|
9729
9729
|
{
|
|
9730
|
-
className: Te("univer-relative univer-box-border univer-flex univer-h-full univer-w-20 univer-items-center univer-justify-center univer-text-xs",
|
|
9730
|
+
className: Te("univer-relative univer-box-border univer-flex univer-h-full univer-w-20 univer-items-center univer-justify-center univer-text-xs", Hd),
|
|
9731
9731
|
children: [
|
|
9732
9732
|
/* @__PURE__ */ b(
|
|
9733
9733
|
"span",
|
|
@@ -9851,11 +9851,11 @@ function Os(r) {
|
|
|
9851
9851
|
function s0() {
|
|
9852
9852
|
const [r, e] = re([]), [t, n] = re(!1), i = L(k), o = L(W), s = L(Nr), l = L(ft), a = dt(() => i.getCurrentTypeOfUnit$(O.UNIVER_SHEET), null, !1, []), c = (f) => {
|
|
9853
9853
|
const { sheetId: v } = f;
|
|
9854
|
-
!v || !a || (f.hidden ? o.executeCommand(
|
|
9854
|
+
!v || !a || (f.hidden ? o.executeCommand(md.id, {
|
|
9855
9855
|
unitId: a.getUnitId(),
|
|
9856
9856
|
subUnitId: v,
|
|
9857
9857
|
value: v
|
|
9858
|
-
}) : f.selected || o.executeCommand(
|
|
9858
|
+
}) : f.selected || o.executeCommand(vd.id, {
|
|
9859
9859
|
unitId: a.getUnitId(),
|
|
9860
9860
|
subUnitId: v
|
|
9861
9861
|
}), n(!1));
|
|
@@ -9873,9 +9873,9 @@ function s0() {
|
|
|
9873
9873
|
switch (f.id) {
|
|
9874
9874
|
case nr.id:
|
|
9875
9875
|
case On.id:
|
|
9876
|
-
case vd.id:
|
|
9877
|
-
case xr.id:
|
|
9878
9876
|
case pd.id:
|
|
9877
|
+
case xr.id:
|
|
9878
|
+
case fd.id:
|
|
9879
9879
|
case nt.id:
|
|
9880
9880
|
d();
|
|
9881
9881
|
break;
|
|
@@ -9914,7 +9914,7 @@ function s0() {
|
|
|
9914
9914
|
}
|
|
9915
9915
|
})), [r]);
|
|
9916
9916
|
return /* @__PURE__ */ b(
|
|
9917
|
-
|
|
9917
|
+
Od,
|
|
9918
9918
|
{
|
|
9919
9919
|
align: "start",
|
|
9920
9920
|
items: m,
|
|
@@ -10521,14 +10521,14 @@ _(Jr, "DoubleClickDelay", 300);
|
|
|
10521
10521
|
let ai = Jr;
|
|
10522
10522
|
function h0() {
|
|
10523
10523
|
var Ne;
|
|
10524
|
-
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 = L(W), g = L(Nr), m = L(xe), f = L(tn), v = L(qe,
|
|
10524
|
+
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 = L(W), g = L(Nr), m = L(xe), f = L(tn), v = L(qe, wc.OPTIONAL), p = L(ft), C = L($e), w = dt(p.resetOrder$), S = kr(), I = L(rt), R = An(() => {
|
|
10525
10525
|
var Ue;
|
|
10526
10526
|
const Z = ((Ue = S.getActiveSheet()) == null ? void 0 : Ue.getSheetId()) || "";
|
|
10527
10527
|
n(Z);
|
|
10528
10528
|
const ee = S.getSheets(), ne = S.getActiveSheet(), fe = ee.filter((me) => !me.isSheetHidden()).map((me, _e) => {
|
|
10529
10529
|
var wt;
|
|
10530
10530
|
const le = p.getRule(S.getUnitId(), me.getSheetId()), it = C.getSubunitRuleList(S.getUnitId(), me.getSheetId()).length > 0, vt = (le == null ? void 0 : le.permissionId) || it ? /* @__PURE__ */ q(Jo, { children: [
|
|
10531
|
-
/* @__PURE__ */ b(
|
|
10531
|
+
/* @__PURE__ */ b(tu, {}),
|
|
10532
10532
|
/* @__PURE__ */ b("span", { className: "univer-outline-none", children: me.getName() })
|
|
10533
10533
|
] }) : /* @__PURE__ */ b("span", { className: "univer-outline-none", children: me.getName() });
|
|
10534
10534
|
return {
|
|
@@ -10680,9 +10680,9 @@ function h0() {
|
|
|
10680
10680
|
case Vv.id:
|
|
10681
10681
|
case nr.id:
|
|
10682
10682
|
case On.id:
|
|
10683
|
-
case vd.id:
|
|
10684
|
-
case xr.id:
|
|
10685
10683
|
case pd.id:
|
|
10684
|
+
case xr.id:
|
|
10685
|
+
case fd.id:
|
|
10686
10686
|
case nt.id:
|
|
10687
10687
|
R();
|
|
10688
10688
|
break;
|
|
@@ -10765,7 +10765,7 @@ function h0() {
|
|
|
10765
10765
|
}
|
|
10766
10766
|
);
|
|
10767
10767
|
}
|
|
10768
|
-
const
|
|
10768
|
+
const ah = 100, g0 = () => {
|
|
10769
10769
|
var f, v;
|
|
10770
10770
|
const [r, e] = re(!0), [t, n] = re(!0), i = L(W), o = L(Nr), s = L(rt), a = kr().getUnitId(), c = dt(s.getPermissionPoint$((f = new K(a)) == null ? void 0 : f.id)), d = dt(s.getPermissionPoint$((v = new fg(a)) == null ? void 0 : v.id)), u = (p) => {
|
|
10771
10771
|
const { leftEnd: C, rightEnd: w } = p;
|
|
@@ -10784,9 +10784,9 @@ const ch = 100, g0 = () => {
|
|
|
10784
10784
|
o.setAddSheet(0);
|
|
10785
10785
|
}, 0);
|
|
10786
10786
|
}, g = () => {
|
|
10787
|
-
o.setScrollX(-
|
|
10787
|
+
o.setScrollX(-ah);
|
|
10788
10788
|
}, m = () => {
|
|
10789
|
-
o.setScrollX(
|
|
10789
|
+
o.setScrollX(ah);
|
|
10790
10790
|
};
|
|
10791
10791
|
return /* @__PURE__ */ q("div", { className: "univer-relative univer-flex univer-h-full univer-min-w-0 univer-flex-1", children: [
|
|
10792
10792
|
/* @__PURE__ */ q("div", { className: "univer-flex univer-items-center", children: [
|
|
@@ -10796,7 +10796,7 @@ const ch = 100, g0 = () => {
|
|
|
10796
10796
|
className: "univer-mr-2",
|
|
10797
10797
|
onClick: h,
|
|
10798
10798
|
disabled: !(d != null && d.value && (c != null && c.value)),
|
|
10799
|
-
children: /* @__PURE__ */ b(
|
|
10799
|
+
children: /* @__PURE__ */ b(eu, {})
|
|
10800
10800
|
}
|
|
10801
10801
|
),
|
|
10802
10802
|
/* @__PURE__ */ b(s0, {})
|
|
@@ -10807,8 +10807,8 @@ const ch = 100, g0 = () => {
|
|
|
10807
10807
|
{
|
|
10808
10808
|
className: 'univer-relative univer-flex univer-items-center univer-px-2 after:univer-absolute after:univer-right-0 after:univer-top-1/2 after:univer-h-4 after:univer-w-px after:-univer-translate-y-1/2 after:univer-bg-gray-200 after:univer-content-[""]',
|
|
10809
10809
|
children: [
|
|
10810
|
-
/* @__PURE__ */ b(Os, { disabled: r, onClick: g, children: /* @__PURE__ */ b(
|
|
10811
|
-
/* @__PURE__ */ b(Os, { disabled: t, onClick: m, children: /* @__PURE__ */ b(
|
|
10810
|
+
/* @__PURE__ */ b(Os, { disabled: r, onClick: g, children: /* @__PURE__ */ b(zc, { className: "univer-rotate-180" }) }),
|
|
10811
|
+
/* @__PURE__ */ b(Os, { disabled: t, onClick: m, children: /* @__PURE__ */ b(zc, {}) })
|
|
10812
10812
|
]
|
|
10813
10813
|
}
|
|
10814
10814
|
)
|
|
@@ -10843,7 +10843,7 @@ function f0() {
|
|
|
10843
10843
|
nC,
|
|
10844
10844
|
{
|
|
10845
10845
|
disabled: c,
|
|
10846
|
-
min:
|
|
10846
|
+
min: Dc[0],
|
|
10847
10847
|
value: s,
|
|
10848
10848
|
shortcuts: m0,
|
|
10849
10849
|
onChange: a
|
|
@@ -10962,9 +10962,9 @@ function C0(r) {
|
|
|
10962
10962
|
const { pattern: e, value: t } = r;
|
|
10963
10963
|
return typeof t != "number" ? 0 : t >= 1e8 ? t.toExponential(2) : e && v0.includes(r.name) ? Wt.format(e, t, { throws: !1 }) : t.toLocaleString();
|
|
10964
10964
|
}
|
|
10965
|
-
const
|
|
10965
|
+
const ch = 800, w0 = 3, b0 = () => {
|
|
10966
10966
|
var u, h;
|
|
10967
|
-
const r = (h = (u = $l(At)) == null ? void 0 : u.statusBarStatistic) != null ? h : !0, [e, t] = re(window.innerWidth <
|
|
10967
|
+
const r = (h = (u = $l(At)) == null ? void 0 : u.statusBarStatistic) != null ? h : !0, [e, t] = re(window.innerWidth < ch), n = L(xa), i = n.getFunctions().map((g, m) => ({
|
|
10968
10968
|
name: g.func,
|
|
10969
10969
|
value: 0,
|
|
10970
10970
|
show: !0,
|
|
@@ -11003,8 +11003,8 @@ const dh = 800, w0 = 3, b0 = () => {
|
|
|
11003
11003
|
n,
|
|
11004
11004
|
e,
|
|
11005
11005
|
r
|
|
11006
|
-
), a =
|
|
11007
|
-
const g = window.innerWidth <
|
|
11006
|
+
), a = _c(() => {
|
|
11007
|
+
const g = window.innerWidth < ch;
|
|
11008
11008
|
e !== g && t(g);
|
|
11009
11009
|
}, 100);
|
|
11010
11010
|
Ee(() => (window.addEventListener("resize", a), () => {
|
|
@@ -11039,7 +11039,7 @@ const dh = 800, w0 = 3, b0 = () => {
|
|
|
11039
11039
|
}, Km = 36;
|
|
11040
11040
|
function _0() {
|
|
11041
11041
|
var c;
|
|
11042
|
-
const r = $l(At), e = L(
|
|
11042
|
+
const r = $l(At), e = L(yd), t = (c = r == null ? void 0 : r.footer) != null ? c : !0;
|
|
11043
11043
|
if (!kr() || !t) return null;
|
|
11044
11044
|
const i = e.getMenuByPositionKey(_t.FOOTER_MENU), { sheetBar: o = !0, statisticBar: s = !0, menus: l = !0, zoomSlider: a = !0 } = (r == null ? void 0 : r.footer) || {};
|
|
11045
11045
|
return !o && !s && !l && !a ? null : /* @__PURE__ */ q(
|
|
@@ -11090,7 +11090,7 @@ var I0 = Object.getOwnPropertyDescriptor, y0 = (r, e, t, n) => {
|
|
|
11090
11090
|
(s = r[o]) && (i = s(i) || i);
|
|
11091
11091
|
return i;
|
|
11092
11092
|
}, Xr = (r, e) => (t, n) => e(t, n, r);
|
|
11093
|
-
const
|
|
11093
|
+
const dh = 5, uh = 2;
|
|
11094
11094
|
let Ao = class extends se {
|
|
11095
11095
|
constructor(r, e, t, n, i, o) {
|
|
11096
11096
|
super(), this._layoutService = r, this._cellEditorManagerService = e, this._editorBridgeService = t, this._renderManagerService = n, this._univerInstanceService = i, this._configService = o;
|
|
@@ -11145,7 +11145,7 @@ let Ao = class extends se {
|
|
|
11145
11145
|
let R = 0;
|
|
11146
11146
|
v === cn.MIDDLE ? R = (I - f) / 2 / s : v === cn.TOP ? R = C.t || 0 : R = (I - f) / s;
|
|
11147
11147
|
let y = 0;
|
|
11148
|
-
p === It.CENTER
|
|
11148
|
+
p === It.CENTER || (p === It.RIGHT ? y = (S - m) / o : y = C.l || 0), R = R < (C.t || 0) ? C.t || 0 : R, y = y < (C.l || 0) ? C.l || 0 : y, u.updateDocumentDataMargin({
|
|
11149
11149
|
t: R,
|
|
11150
11150
|
l: y
|
|
11151
11151
|
}), h.calculate(), this._editAreaProcessing(
|
|
@@ -11165,7 +11165,7 @@ let Ao = class extends se {
|
|
|
11165
11165
|
* to determine whether it needs to be automatically widened.
|
|
11166
11166
|
*/
|
|
11167
11167
|
_predictingSize(r, e, t, n, i = 1, o = 1) {
|
|
11168
|
-
const { startX: s, endX: l } = r, { textRotation: a, wrapStrategy: c, paddingData: d } = n, u = this._univerInstanceService.getUnit(Oe, O.UNIVER_DOC), { vertexAngle: h } =
|
|
11168
|
+
const { startX: s, endX: l } = r, { textRotation: a, wrapStrategy: c, paddingData: d } = n, u = this._univerInstanceService.getUnit(Oe, O.UNIVER_DOC), { vertexAngle: h } = _d(a);
|
|
11169
11169
|
if (c === mr.WRAP && h === 0) {
|
|
11170
11170
|
u == null || u.updateDocumentDataPageSize(l - s), u == null || u.updateDocumentDataMargin({ l: d.l, t: d.t }), t.calculate();
|
|
11171
11171
|
const { actualWidth: v, actualHeight: p } = t.getActualSize();
|
|
@@ -11179,7 +11179,7 @@ let Ao = class extends se {
|
|
|
11179
11179
|
u == null || u.updateDocumentDataPageSize(g.width / i), t.calculate();
|
|
11180
11180
|
const m = t.getActualSize();
|
|
11181
11181
|
let f = l - s;
|
|
11182
|
-
return f < m.actualWidth * i +
|
|
11182
|
+
return f < m.actualWidth * i + dh * i && (f = m.actualWidth * i + dh * i), u == null || u.updateDocumentDataPageSize(f / i), u == null || u.updateDocumentRenderConfig({
|
|
11183
11183
|
horizontalAlign: It.UNSPECIFIED,
|
|
11184
11184
|
cellValueType: void 0
|
|
11185
11185
|
}), {
|
|
@@ -11196,7 +11196,7 @@ let Ao = class extends se {
|
|
|
11196
11196
|
}
|
|
11197
11197
|
const o = this.engine;
|
|
11198
11198
|
if (!o) return;
|
|
11199
|
-
const s = o.getCanvasElement(), l = s.getBoundingClientRect(), a = i(s.style.width), { width: c } = l, d = c / a, { startX: u, startY: h, endX: g } = r, m = o.width, f = ((w = (C = this._configService.getConfig(ea)) == null ? void 0 : C.footer) == null || w) && ((I = (S = this._configService.getConfig(At)) == null ? void 0 : S.footer) == null || I) ? Km : 0, v = document.body.clientHeight - h - f - e.top -
|
|
11199
|
+
const s = o.getCanvasElement(), l = s.getBoundingClientRect(), a = i(s.style.width), { width: c } = l, d = c / a, { startX: u, startY: h, endX: g } = r, m = o.width, f = ((w = (C = this._configService.getConfig(ea)) == null ? void 0 : C.footer) == null || w) && ((I = (S = this._configService.getConfig(At)) == null ? void 0 : S.footer) == null || I) ? Km : 0, v = document.body.clientHeight - h - f - e.top - uh * 2;
|
|
11200
11200
|
let p = c - u;
|
|
11201
11201
|
if (t === It.CENTER) {
|
|
11202
11202
|
const R = m - g, y = u;
|
|
@@ -11204,7 +11204,7 @@ let Ao = class extends se {
|
|
|
11204
11204
|
} else t === It.RIGHT && (p = g);
|
|
11205
11205
|
return {
|
|
11206
11206
|
height: v,
|
|
11207
|
-
width: p -
|
|
11207
|
+
width: p - uh,
|
|
11208
11208
|
scaleAdjust: d
|
|
11209
11209
|
};
|
|
11210
11210
|
}
|
|
@@ -11225,7 +11225,7 @@ let Ao = class extends se {
|
|
|
11225
11225
|
let { startX: h, startY: g } = t;
|
|
11226
11226
|
const { document: m, scene: f, engine: v } = c, p = f.getViewport(Ns.VIEW_MAIN), C = this._getEditorMaxSize(t, n, l), { height: w, width: S, scaleAdjust: I } = C;
|
|
11227
11227
|
let R = e, y = p == null ? void 0 : p.getScrollBar();
|
|
11228
|
-
R > w ? (y == null ? p && new
|
|
11228
|
+
R > w ? (y == null ? p && new Rd(p, { enableHorizontal: !1, barSize: 8 }) : p == null || p.resetCanvasSizeAndUpdateScroll(), p == null || p.scrollToViewportPos({
|
|
11229
11229
|
viewportScrollY: R - w
|
|
11230
11230
|
}), R = w) : (y = null, (A = p == null ? void 0 : p.getScrollBar()) == null || A.dispose()), r += (y == null ? void 0 : y.barSize) || 0, r > S && (r = S), this._addBackground(f, r / o, e / s, i);
|
|
11231
11231
|
const { scaleX: M, scaleY: E } = f.getPrecisionScale();
|
|
@@ -11236,8 +11236,8 @@ let Ao = class extends se {
|
|
|
11236
11236
|
scaleY: s * I
|
|
11237
11237
|
}), m.resize(r * I / o, e * I / s), setTimeout(() => {
|
|
11238
11238
|
v.resizeBySize(
|
|
11239
|
-
|
|
11240
|
-
|
|
11239
|
+
_u(r, M),
|
|
11240
|
+
_u(R, E)
|
|
11241
11241
|
), a == null || a();
|
|
11242
11242
|
}, 0);
|
|
11243
11243
|
const T = this._layoutService.getContentElement().getBoundingClientRect(), P = u.getBoundingClientRect();
|
|
@@ -11292,7 +11292,7 @@ let Ao = class extends se {
|
|
|
11292
11292
|
}
|
|
11293
11293
|
}
|
|
11294
11294
|
_getEditorObject() {
|
|
11295
|
-
return
|
|
11295
|
+
return Nd(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
|
|
11296
11296
|
}
|
|
11297
11297
|
_getEditorSkeleton() {
|
|
11298
11298
|
var r;
|
|
@@ -11300,7 +11300,7 @@ let Ao = class extends se {
|
|
|
11300
11300
|
}
|
|
11301
11301
|
};
|
|
11302
11302
|
Ao = y0([
|
|
11303
|
-
Xr(0,
|
|
11303
|
+
Xr(0, Md),
|
|
11304
11304
|
Xr(1, ss),
|
|
11305
11305
|
Xr(2, qe),
|
|
11306
11306
|
Xr(3, ve),
|
|
@@ -11352,7 +11352,7 @@ let Ho = class extends kn {
|
|
|
11352
11352
|
endColumn: u.mergeInfo.endColumn,
|
|
11353
11353
|
isMergedMainCell: u.isMergedMainCell
|
|
11354
11354
|
} : t;
|
|
11355
|
-
this._commandService.executeCommand(
|
|
11355
|
+
this._commandService.executeCommand(Qd.id, {
|
|
11356
11356
|
scene: l,
|
|
11357
11357
|
engine: a,
|
|
11358
11358
|
primary: h,
|
|
@@ -11557,15 +11557,15 @@ const nf = {
|
|
|
11557
11557
|
binding: Y.ENTER | pe.ALT
|
|
11558
11558
|
}, cf = {
|
|
11559
11559
|
id: Fh.id,
|
|
11560
|
-
preconditions: (r) =>
|
|
11560
|
+
preconditions: (r) => Bd(r) || la(r),
|
|
11561
11561
|
binding: Y.BACKSPACE
|
|
11562
11562
|
}, df = {
|
|
11563
11563
|
id: Qp.id,
|
|
11564
|
-
preconditions: (r) =>
|
|
11564
|
+
preconditions: (r) => Bd(r) || la(r),
|
|
11565
11565
|
binding: Y.DELETE
|
|
11566
11566
|
}, uf = {
|
|
11567
11567
|
id: Fh.id,
|
|
11568
|
-
preconditions: (r) =>
|
|
11568
|
+
preconditions: (r) => Bd(r) || la(r),
|
|
11569
11569
|
binding: Y.BACKSPACE | pe.SHIFT
|
|
11570
11570
|
}, hf = {
|
|
11571
11571
|
id: tt.id,
|
|
@@ -11675,12 +11675,12 @@ const O0 = {
|
|
|
11675
11675
|
"]": "]",
|
|
11676
11676
|
"{": "{",
|
|
11677
11677
|
"}": "}"
|
|
11678
|
-
},
|
|
11678
|
+
}, jc = {
|
|
11679
11679
|
true: "TRUE",
|
|
11680
11680
|
false: "FALSE"
|
|
11681
11681
|
};
|
|
11682
11682
|
function A0(r) {
|
|
11683
|
-
return [
|
|
11683
|
+
return [gu.ZH_CN, gu.ZH_TW].includes(r);
|
|
11684
11684
|
}
|
|
11685
11685
|
function H0(r, e, t, n) {
|
|
11686
11686
|
let i = r;
|
|
@@ -11692,7 +11692,7 @@ function H0(r, e, t, n) {
|
|
|
11692
11692
|
if (i.startsWith("="))
|
|
11693
11693
|
return N0(r, i, e, n);
|
|
11694
11694
|
const o = i.toLowerCase();
|
|
11695
|
-
return
|
|
11695
|
+
return jc[o] ? jc[o] : Wt.parseValue(i) == null ? r : i;
|
|
11696
11696
|
}
|
|
11697
11697
|
function V0(r) {
|
|
11698
11698
|
const e = /['"].*?['"]/g, t = [], n = r.split(e);
|
|
@@ -11709,7 +11709,7 @@ function N0(r, e, t, n) {
|
|
|
11709
11709
|
return i.forEach((l, a) => {
|
|
11710
11710
|
if (typeof l == "object") {
|
|
11711
11711
|
const c = l.token;
|
|
11712
|
-
if (
|
|
11712
|
+
if (jc[c.toLowerCase()]) {
|
|
11713
11713
|
const d = l.startIndex + s + 1, u = l.endIndex + s + 2;
|
|
11714
11714
|
o = zr(c.toLocaleUpperCase(), o, d, u);
|
|
11715
11715
|
} else if (l.nodeType === Va.FUNCTION && k0(c, n, i, a) || l.nodeType === Va.REFERENCE) {
|
|
@@ -11762,7 +11762,7 @@ var U0 = Object.getOwnPropertyDescriptor, X0 = (r, e, t, n) => {
|
|
|
11762
11762
|
(s = r[o]) && (i = s(i) || i);
|
|
11763
11763
|
return i;
|
|
11764
11764
|
}, Mt = (r, e) => (t, n) => e(t, n, r);
|
|
11765
|
-
const
|
|
11765
|
+
const hh = -1e3;
|
|
11766
11766
|
let Ri = class extends se {
|
|
11767
11767
|
constructor(e, t, n, i, o, s, l, a, c, d, u, h, g, m, f) {
|
|
11768
11768
|
super();
|
|
@@ -11881,11 +11881,11 @@ let Ri = class extends se {
|
|
|
11881
11881
|
return;
|
|
11882
11882
|
const a = this._getDocumentDataModel();
|
|
11883
11883
|
if (a == null) return;
|
|
11884
|
-
const { startX: c, endX: d } = i, { textRotation: u, wrapStrategy: h, documentModel: g } = o, { vertexAngle: m } =
|
|
11884
|
+
const { startX: c, endX: d } = i, { textRotation: u, wrapStrategy: h, documentModel: g } = o, { vertexAngle: m } = _d(u);
|
|
11885
11885
|
h === mr.WRAP && m === 0 && a.updateDocumentDataPageSize((d - c) / s), this._commandService.syncExecuteCommand(Uh.id, {
|
|
11886
11886
|
unitId: l,
|
|
11887
11887
|
snapshot: g.getSnapshot()
|
|
11888
|
-
}), this._contextService.setContextValue(
|
|
11888
|
+
}), this._contextService.setContextValue(Rc, !0), this._textSelectionManagerService.replaceDocRanges(
|
|
11889
11889
|
[{
|
|
11890
11890
|
startOffset: 0,
|
|
11891
11891
|
endOffset: 0
|
|
@@ -11897,8 +11897,8 @@ let Ri = class extends se {
|
|
|
11897
11897
|
);
|
|
11898
11898
|
const f = (p = this._renderManagerService.getRenderById(Oe)) == null ? void 0 : p.with(Qn), v = (C = this._renderManagerService.getRenderById(Ae)) == null ? void 0 : C.with(Qn);
|
|
11899
11899
|
(f != null && f.canFocusing || v != null && v.canFocusing) && (this._univerInstanceService.setCurrentUnitForType(Oe), f == null || f.activate(
|
|
11900
|
-
|
|
11901
|
-
|
|
11900
|
+
hh,
|
|
11901
|
+
hh,
|
|
11902
11902
|
!0
|
|
11903
11903
|
));
|
|
11904
11904
|
}));
|
|
@@ -11938,7 +11938,7 @@ let Ri = class extends se {
|
|
|
11938
11938
|
const i = this._editorBridgeService.getEditLocation();
|
|
11939
11939
|
if (i == null)
|
|
11940
11940
|
return;
|
|
11941
|
-
this._commandService.syncExecuteCommand(
|
|
11941
|
+
this._commandService.syncExecuteCommand(Kd.id, {
|
|
11942
11942
|
range: {
|
|
11943
11943
|
startRow: i.row,
|
|
11944
11944
|
startColumn: i.column,
|
|
@@ -12030,7 +12030,7 @@ let Ri = class extends se {
|
|
|
12030
12030
|
if (!l)
|
|
12031
12031
|
return;
|
|
12032
12032
|
const a = l.getActiveSheet(), c = l.getUnitId(), d = a.getSheetId(), { unitId: u, sheetId: h } = t;
|
|
12033
|
-
if (c === u && h !== d && await this._commandService.executeCommand(
|
|
12033
|
+
if (c === u && h !== d && await this._commandService.executeCommand(vd.id, {
|
|
12034
12034
|
subUnitId: h,
|
|
12035
12035
|
unitId: u
|
|
12036
12036
|
}), o === Y.ESC) {
|
|
@@ -12041,7 +12041,7 @@ let Ri = class extends se {
|
|
|
12041
12041
|
i && !(g && m) && await this._submitEdit(i, o === (pe.CTRL_COMMAND | Y.ENTER) || o === (pe.MAC_CTRL | Y.ENTER)) === !1 || o !== void 0 && this._moveSelection(o, s, d);
|
|
12042
12042
|
}
|
|
12043
12043
|
_getEditorObject() {
|
|
12044
|
-
return
|
|
12044
|
+
return Nd(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
|
|
12045
12045
|
}
|
|
12046
12046
|
_isCellImageData(e) {
|
|
12047
12047
|
var n, i;
|
|
@@ -12074,7 +12074,7 @@ let Ri = class extends se {
|
|
|
12074
12074
|
return !0;
|
|
12075
12075
|
this._removeComposedCellStyleInCellData(u, c.getComposedCellStyle(s, l));
|
|
12076
12076
|
const h = this._sheetInterceptorService.onWriteCell(a, c, s, l, u);
|
|
12077
|
-
if (ce.diffValue(
|
|
12077
|
+
if (ce.diffValue(mh(h), mh(c.getCellRaw(s, l))))
|
|
12078
12078
|
return !0;
|
|
12079
12079
|
const g = t ? (v = this._workbookSelections.getCurrentLastSelection()) == null ? void 0 : v.range : {
|
|
12080
12080
|
startRow: s,
|
|
@@ -12099,7 +12099,7 @@ let Ri = class extends se {
|
|
|
12099
12099
|
}
|
|
12100
12100
|
_exitInput(e) {
|
|
12101
12101
|
var i, o;
|
|
12102
|
-
this._contextService.setContextValue(Ds, !1), this._contextService.setContextValue(Je, !1), this._contextService.setContextValue(
|
|
12102
|
+
this._contextService.setContextValue(Ds, !1), this._contextService.setContextValue(Je, !1), this._contextService.setContextValue(Rc, !1), this._contextService.setContextValue(xt, !1), this._cellEditorManagerService.setState({
|
|
12103
12103
|
show: e.visible
|
|
12104
12104
|
});
|
|
12105
12105
|
const t = this._getEditorObject();
|
|
@@ -12197,7 +12197,7 @@ Ri = X0([
|
|
|
12197
12197
|
Mt(4, ss),
|
|
12198
12198
|
Mt(5, N(Qg)),
|
|
12199
12199
|
Mt(6, Kg),
|
|
12200
|
-
Mt(7, N(
|
|
12200
|
+
Mt(7, N(xd)),
|
|
12201
12201
|
Mt(8, W),
|
|
12202
12202
|
Mt(9, N(xe)),
|
|
12203
12203
|
Mt(10, Ni),
|
|
@@ -12218,11 +12218,11 @@ function z0(r, e, t, n, i, o) {
|
|
|
12218
12218
|
if (c = H0(c, t, d, i), (u = e.drawingsOrder) != null && u.length)
|
|
12219
12219
|
r.v = "", r.f = null, r.si = null, r.p = e, r.t = yt.STRING;
|
|
12220
12220
|
else if (r.s && Wl((g = (h = o == null ? void 0 : o.get(r.s)) == null ? void 0 : h.n) == null ? void 0 : g.pattern)) {
|
|
12221
|
-
r.v = c, r.f = null, r.si = null, r.p = null, r.t = yt.STRING,
|
|
12221
|
+
r.v = c, r.f = null, r.si = null, r.p = null, r.t = yt.STRING, Yc(s) && s.dataStream !== `\r
|
|
12222
12222
|
` && (r.p = e);
|
|
12223
|
-
const m =
|
|
12223
|
+
const m = gh(e);
|
|
12224
12224
|
m && (r.s = m);
|
|
12225
|
-
} else if (
|
|
12225
|
+
} else if (rd(c)) {
|
|
12226
12226
|
if (r.f === c)
|
|
12227
12227
|
return null;
|
|
12228
12228
|
const m = t.checkIfAddBracket(c);
|
|
@@ -12232,19 +12232,19 @@ function z0(r, e, t, n, i, o) {
|
|
|
12232
12232
|
} else if (P0(c)) {
|
|
12233
12233
|
const m = x0(c);
|
|
12234
12234
|
r.v = m, r.f = null, r.si = null, r.p = null, r.t = yt.FORCE_STRING;
|
|
12235
|
-
} else if (
|
|
12235
|
+
} else if (Yc(s))
|
|
12236
12236
|
s.dataStream === `\r
|
|
12237
12237
|
` ? (r.v = "", r.f = null, r.si = null, r.p = null) : (r.p = e, r.v = null, r.f = null, r.si = null);
|
|
12238
12238
|
else {
|
|
12239
12239
|
if (c === "" && r.v == null && r.p == null)
|
|
12240
12240
|
return null;
|
|
12241
12241
|
r.v = c, r.f = null, r.si = null, r.p = null;
|
|
12242
|
-
const m =
|
|
12242
|
+
const m = gh(e);
|
|
12243
12243
|
m && (r.s = m);
|
|
12244
12244
|
}
|
|
12245
12245
|
return r;
|
|
12246
12246
|
}
|
|
12247
|
-
function
|
|
12247
|
+
function Yc(r) {
|
|
12248
12248
|
const { textRuns: e = [], paragraphs: t = [], customRanges: n, customBlocks: i = [] } = r, o = r.dataStream.replace(/(\r\n)+$/, ""), s = ["va"];
|
|
12249
12249
|
return (
|
|
12250
12250
|
// This is because after editing, an inexplicable second paragraph style will appear \r\n
|
|
@@ -12254,7 +12254,7 @@ function Zc(r) {
|
|
|
12254
12254
|
}) || t.some((l) => l.bullet) || t.length >= 2 || !!(n != null && n.length) || i.length > 0
|
|
12255
12255
|
);
|
|
12256
12256
|
}
|
|
12257
|
-
function
|
|
12257
|
+
function gh(r) {
|
|
12258
12258
|
const { body: e } = r;
|
|
12259
12259
|
if (!e) return null;
|
|
12260
12260
|
const { textRuns: t = [] } = e;
|
|
@@ -12273,7 +12273,7 @@ function j0(r, e = !1) {
|
|
|
12273
12273
|
}
|
|
12274
12274
|
]), r.sectionBreaks != null && (r.sectionBreaks = void 0), r.tables != null && (r.tables = void 0), r.customRanges != null && (r.customRanges = void 0), r.customBlocks != null && (r.customBlocks = void 0);
|
|
12275
12275
|
}
|
|
12276
|
-
function
|
|
12276
|
+
function mh(r) {
|
|
12277
12277
|
return r && Object.fromEntries(
|
|
12278
12278
|
Object.entries(r).filter(([e, t]) => !(t == null || Array.isArray(t) && t.length === 0 || typeof t == "object" && Object.keys(t).length === 0))
|
|
12279
12279
|
);
|
|
@@ -12320,7 +12320,7 @@ let yr = class extends kn {
|
|
|
12320
12320
|
_listenFxBtnClick() {
|
|
12321
12321
|
this._formulaEditorManagerService.fxBtnClick$.pipe(ui(this.dispose$)).subscribe(() => {
|
|
12322
12322
|
var t;
|
|
12323
|
-
if (this._contextService.getContextValue(
|
|
12323
|
+
if (this._contextService.getContextValue(Rc) && !this._contextService.getContextValue(Je)) {
|
|
12324
12324
|
this._univerInstanceService.setCurrentUnitForType(Ae);
|
|
12325
12325
|
const n = this._univerInstanceService.getUniverDocInstance(
|
|
12326
12326
|
Ae
|
|
@@ -12367,7 +12367,7 @@ let yr = class extends kn {
|
|
|
12367
12367
|
const e = this._univerInstanceService.unitAdded$.pipe(Go((t) => t.getUnitId() === Ae));
|
|
12368
12368
|
this.disposeWithMe(at([this._formulaEditorManagerService.position$, e]).subscribe(([t]) => {
|
|
12369
12369
|
if (!t) return this._clearScheduledCallback();
|
|
12370
|
-
const n =
|
|
12370
|
+
const n = Nd(Ae, this._renderManagerService), i = this._univerInstanceService.getUniverDocInstance(
|
|
12371
12371
|
Ae
|
|
12372
12372
|
);
|
|
12373
12373
|
if (n == null || i == null) return this._clearScheduledCallback();
|
|
@@ -12395,7 +12395,7 @@ let yr = class extends kn {
|
|
|
12395
12395
|
l.transformByState({
|
|
12396
12396
|
width: d,
|
|
12397
12397
|
height: c
|
|
12398
|
-
}), a == null || a.resize(d, c), c > u ? g == null ? h && new
|
|
12398
|
+
}), a == null || a.resize(d, c), c > u ? g == null ? h && new Rd(h, { enableHorizontal: !1, barSize: 8 }) : h == null || h.resetCanvasSizeAndUpdateScroll() : (g = null, h == null || h.scrollToViewportPos({ viewportScrollX: 0, viewportScrollY: 0 }), (f = h == null ? void 0 : h.getScrollBar()) == null || f.dispose());
|
|
12399
12399
|
}
|
|
12400
12400
|
};
|
|
12401
12401
|
yr = Z0([
|
|
@@ -12406,10 +12406,10 @@ yr = Z0([
|
|
|
12406
12406
|
wn(4, De),
|
|
12407
12407
|
wn(5, ls),
|
|
12408
12408
|
wn(6, Zt),
|
|
12409
|
-
wn(7, N(
|
|
12409
|
+
wn(7, N(xd)),
|
|
12410
12410
|
wn(8, Ni)
|
|
12411
12411
|
], yr);
|
|
12412
|
-
const G0 = "embedding_formula_editor", Zy = (r) => r.includes(G0),
|
|
12412
|
+
const G0 = "embedding_formula_editor", Zy = (r) => r.includes(G0), iu = (r, e) => {
|
|
12413
12413
|
var u, h, g, m, f;
|
|
12414
12414
|
const n = e.findNodePositionByCharIndex(r.startOffset, !0, r.segmentId, -1), i = e.getSkeletonData();
|
|
12415
12415
|
let o = r.endOffset;
|
|
@@ -12449,7 +12449,7 @@ const G0 = "embedding_formula_editor", Zy = (r) => r.includes(G0), ou = (r, e) =
|
|
|
12449
12449
|
right: c.right
|
|
12450
12450
|
};
|
|
12451
12451
|
}, Q0 = (r, e, t = 0, n = 0) => {
|
|
12452
|
-
const i =
|
|
12452
|
+
const i = iu({ startOffset: e.startIndex, endOffset: e.endIndex + 1 }, r);
|
|
12453
12453
|
if (i)
|
|
12454
12454
|
return {
|
|
12455
12455
|
rects: i.map((o) => ({
|
|
@@ -12480,7 +12480,7 @@ const G0 = "embedding_formula_editor", Zy = (r) => r.includes(G0), ou = (r, e) =
|
|
|
12480
12480
|
};
|
|
12481
12481
|
}, J0 = (r, e = 0, t = 0) => {
|
|
12482
12482
|
var l, a, c, d, u, h, g;
|
|
12483
|
-
const n = r.getViewModel().getDataModel(), i = (c = (a = (l = n.getBody()) == null ? void 0 : l.customRanges) == null ? void 0 : a.filter((m) => m.rangeType ===
|
|
12483
|
+
const n = r.getViewModel().getDataModel(), i = (c = (a = (l = n.getBody()) == null ? void 0 : l.customRanges) == null ? void 0 : a.filter((m) => m.rangeType === id.HYPERLINK)) != null ? c : [], o = (h = (u = (d = n.getBody()) == null ? void 0 : d.paragraphs) == null ? void 0 : u.filter((m) => {
|
|
12484
12484
|
var f;
|
|
12485
12485
|
return ((f = m.bullet) == null ? void 0 : f.listType.indexOf(mv.CHECK_LIST)) === 0;
|
|
12486
12486
|
})) != null ? h : [], s = (g = r.getSkeletonData()) == null ? void 0 : g.pages[0].skeDrawings;
|
|
@@ -12551,7 +12551,7 @@ const Gy = (r, e, t, n, i, o) => {
|
|
|
12551
12551
|
h.overflowCache.forValue((x, V, D) => {
|
|
12552
12552
|
D.startRow <= w && D.endRow >= w && D.startColumn <= C && D.endColumn >= C && (C = V, w = x);
|
|
12553
12553
|
});
|
|
12554
|
-
const S = h.getCellWithCoordByIndex(w, C), I = c.getCell(S.actualRow, S.actualColumn), { topOffset: R = 0, leftOffset: y = 0 } = (A = I == null ? void 0 : I.fontRenderExtension) != null ? A : {}, { paddingLeft: M, paddingTop: E } = gf(S, g, !1), T =
|
|
12554
|
+
const S = h.getCellWithCoordByIndex(w, C), I = c.getCell(S.actualRow, S.actualColumn), { topOffset: R = 0, leftOffset: y = 0 } = (A = I == null ? void 0 : I.fontRenderExtension) != null ? A : {}, { paddingLeft: M, paddingTop: E } = gf(S, g, !1), T = iu({ startOffset: f.startIndex, endOffset: f.endIndex }, m);
|
|
12555
12555
|
return {
|
|
12556
12556
|
rects: T == null ? void 0 : T.map((x) => ({
|
|
12557
12557
|
top: x.top + S.mergeInfo.startY + E + R + v,
|
|
@@ -12579,7 +12579,7 @@ const Gy = (r, e, t, n, i, o) => {
|
|
|
12579
12579
|
const w = (E = (M = p.getViewModel().getBody()) == null ? void 0 : M.customRanges) == null ? void 0 : E.find((T) => T.rangeId === o);
|
|
12580
12580
|
if (!w)
|
|
12581
12581
|
return null;
|
|
12582
|
-
const S = 4, I =
|
|
12582
|
+
const S = 4, I = iu({ startOffset: w.startIndex, endOffset: w.endIndex }, p), R = f.engine.getCanvasElement().getBoundingClientRect();
|
|
12583
12583
|
return {
|
|
12584
12584
|
rects: I == null ? void 0 : I.map((T) => ({
|
|
12585
12585
|
top: T.top + R.top - S,
|
|
@@ -12595,7 +12595,7 @@ var $0 = Object.getOwnPropertyDescriptor, eb = (r, e, t, n) => {
|
|
|
12595
12595
|
for (var i = n > 1 ? void 0 : n ? $0(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
12596
12596
|
(s = r[o]) && (i = s(i) || i);
|
|
12597
12597
|
return i;
|
|
12598
|
-
},
|
|
12598
|
+
}, fh = (r, e) => (t, n) => e(t, n, r);
|
|
12599
12599
|
function cr(r) {
|
|
12600
12600
|
const { workbook: e, worksheet: t, ...n } = r;
|
|
12601
12601
|
return n;
|
|
@@ -12895,8 +12895,8 @@ let Mr = class extends se {
|
|
|
12895
12895
|
}
|
|
12896
12896
|
};
|
|
12897
12897
|
Mr = eb([
|
|
12898
|
-
|
|
12899
|
-
|
|
12898
|
+
fh(0, k),
|
|
12899
|
+
fh(1, ve)
|
|
12900
12900
|
], Mr);
|
|
12901
12901
|
var tb = Object.getOwnPropertyDescriptor, nb = (r, e, t, n) => {
|
|
12902
12902
|
for (var i = n > 1 ? void 0 : n ? tb(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -12967,7 +12967,7 @@ ul = nb([
|
|
|
12967
12967
|
Xa(2, N(de)),
|
|
12968
12968
|
Xa(3, N(Et))
|
|
12969
12969
|
], ul);
|
|
12970
|
-
const mf = "UI_PLUGIN_SHEETS",
|
|
12970
|
+
const mf = "UI_PLUGIN_SHEETS", ou = `${mf}_BORDER_PANEL_COMPONENT`, ff = [
|
|
12971
12971
|
{
|
|
12972
12972
|
label: "borderLine.borderTop",
|
|
12973
12973
|
icon: "UpBorderDoubleIcon",
|
|
@@ -13078,10 +13078,10 @@ function he(r, e = {}, t = !1) {
|
|
|
13078
13078
|
var h;
|
|
13079
13079
|
const i = r.get(k).getCurrentTypeOfUnit$(O.UNIVER_SHEET), o = r.get(Ft), s = r.has(qe) ? r.get(qe) : null, l = r.get(De), c = ((h = s == null ? void 0 : s.visible$) != null ? h : Ce(null)).pipe(
|
|
13080
13080
|
Na(null),
|
|
13081
|
-
|
|
13081
|
+
Au(1)
|
|
13082
13082
|
), d = l.subscribeContextValue$(xt).pipe(
|
|
13083
13083
|
Na(!1),
|
|
13084
|
-
|
|
13084
|
+
Au(1)
|
|
13085
13085
|
);
|
|
13086
13086
|
return at([o.currentUser$, i, c, d]).pipe(
|
|
13087
13087
|
Pn(([g, m, f, v]) => !m || f != null && f.visible && f.unitId === m.getUnitId() && !t || v && !t ? Ce(!0) : m.activeSheet$.pipe(
|
|
@@ -13201,13 +13201,13 @@ function Yi(r, e) {
|
|
|
13201
13201
|
);
|
|
13202
13202
|
}
|
|
13203
13203
|
function ob(r) {
|
|
13204
|
-
const e = r.get(
|
|
13204
|
+
const e = r.get(Mc), t = he(r, { workbookTypes: [K], worksheetTypes: [te, Ze], rangeTypes: [ie] });
|
|
13205
13205
|
return {
|
|
13206
|
-
id:
|
|
13206
|
+
id: Ec.id,
|
|
13207
13207
|
icon: new Fe((n) => {
|
|
13208
|
-
const i = "AllBorderIcon", o = r.get(
|
|
13208
|
+
const i = "AllBorderIcon", o = r.get(Mc), s = r.get(W).onCommandExecuted((l) => {
|
|
13209
13209
|
var h;
|
|
13210
|
-
if (l.id !==
|
|
13210
|
+
if (l.id !== Ec.id)
|
|
13211
13211
|
return;
|
|
13212
13212
|
const { type: c } = o.getBorderInfo(), d = ff.find((g) => g.value === c), u = (h = d == null ? void 0 : d.icon) != null ? h : i;
|
|
13213
13213
|
n.next(u);
|
|
@@ -13220,7 +13220,7 @@ function ob(r) {
|
|
|
13220
13220
|
selections: [
|
|
13221
13221
|
{
|
|
13222
13222
|
label: {
|
|
13223
|
-
name:
|
|
13223
|
+
name: ou,
|
|
13224
13224
|
hoverable: !1,
|
|
13225
13225
|
selectable: !1
|
|
13226
13226
|
},
|
|
@@ -13296,7 +13296,7 @@ function sb(r) {
|
|
|
13296
13296
|
disabled$: he(r, { workbookTypes: [K], worksheetTypes: [te] })
|
|
13297
13297
|
};
|
|
13298
13298
|
}
|
|
13299
|
-
function
|
|
13299
|
+
function ph(r) {
|
|
13300
13300
|
return {
|
|
13301
13301
|
id: Eo.id,
|
|
13302
13302
|
type: $.BUTTON,
|
|
@@ -13306,7 +13306,7 @@ function vh(r) {
|
|
|
13306
13306
|
disabled$: he(r, { workbookTypes: [K, Bv], worksheetTypes: [te, Fv] })
|
|
13307
13307
|
};
|
|
13308
13308
|
}
|
|
13309
|
-
function
|
|
13309
|
+
function vh(r) {
|
|
13310
13310
|
return {
|
|
13311
13311
|
id: Mo.id,
|
|
13312
13312
|
type: $.BUTTON,
|
|
@@ -13358,7 +13358,7 @@ function cb(r) {
|
|
|
13358
13358
|
};
|
|
13359
13359
|
}
|
|
13360
13360
|
const Sn = `${mf}_MENU_ITEM_INPUT_COMPONENT`, Cf = (r) => {
|
|
13361
|
-
const { prefix: e, suffix: t, value: n, onChange: i, min: o = Number.MIN_SAFE_INTEGER, max: s = Number.MAX_SAFE_INTEGER } = r, l = L(xe), a = L(
|
|
13361
|
+
const { prefix: e, suffix: t, value: n, onChange: i, min: o = Number.MIN_SAFE_INTEGER, max: s = Number.MAX_SAFE_INTEGER } = r, l = L(xe), a = L(Ed), [c, d] = re(), u = (g) => {
|
|
13362
13362
|
if (!g) {
|
|
13363
13363
|
d(o.toString());
|
|
13364
13364
|
return;
|
|
@@ -13618,7 +13618,7 @@ function wb(r) {
|
|
|
13618
13618
|
const e = r.get(Dn);
|
|
13619
13619
|
return {
|
|
13620
13620
|
id: ns.id,
|
|
13621
|
-
subId:
|
|
13621
|
+
subId: Gd.id,
|
|
13622
13622
|
type: $.BUTTON,
|
|
13623
13623
|
icon: "BrushIcon",
|
|
13624
13624
|
title: "Format Painter",
|
|
@@ -13903,7 +13903,7 @@ function Mb(r) {
|
|
|
13903
13903
|
}
|
|
13904
13904
|
function Eb(r) {
|
|
13905
13905
|
return {
|
|
13906
|
-
id:
|
|
13906
|
+
id: Zd.id,
|
|
13907
13907
|
type: $.BUTTON,
|
|
13908
13908
|
title: "toolbar.resetColor",
|
|
13909
13909
|
icon: "NoColorDoubleIcon",
|
|
@@ -13925,7 +13925,7 @@ function Tb(r) {
|
|
|
13925
13925
|
selections: [
|
|
13926
13926
|
{
|
|
13927
13927
|
label: {
|
|
13928
|
-
name:
|
|
13928
|
+
name: Td,
|
|
13929
13929
|
hoverable: !1,
|
|
13930
13930
|
selectable: !1
|
|
13931
13931
|
},
|
|
@@ -13976,7 +13976,7 @@ function xb(r) {
|
|
|
13976
13976
|
selections: [
|
|
13977
13977
|
{
|
|
13978
13978
|
label: {
|
|
13979
|
-
name:
|
|
13979
|
+
name: Td,
|
|
13980
13980
|
hoverable: !1,
|
|
13981
13981
|
selectable: !1
|
|
13982
13982
|
},
|
|
@@ -14004,7 +14004,7 @@ function xb(r) {
|
|
|
14004
14004
|
})
|
|
14005
14005
|
};
|
|
14006
14006
|
}
|
|
14007
|
-
const
|
|
14007
|
+
const Sh = [
|
|
14008
14008
|
{
|
|
14009
14009
|
label: "align.left",
|
|
14010
14010
|
icon: "LeftJustifyingIcon",
|
|
@@ -14025,17 +14025,17 @@ function Ob(r) {
|
|
|
14025
14025
|
var s, l;
|
|
14026
14026
|
const e = r.get(k), t = r.get(Q), n = e.getCurrentUnitOfType(O.UNIVER_SHEET), i = n == null ? void 0 : n.getActiveSheet().getDefaultCellStyleInternal(), o = (s = i == null ? void 0 : i.ht) != null ? s : It.LEFT;
|
|
14027
14027
|
return {
|
|
14028
|
-
id:
|
|
14029
|
-
icon: (l =
|
|
14028
|
+
id: Oc.id,
|
|
14029
|
+
icon: (l = Sh.find((a) => a.value === o)) == null ? void 0 : l.icon,
|
|
14030
14030
|
tooltip: "toolbar.horizontalAlignMode.main",
|
|
14031
14031
|
type: $.SELECTOR,
|
|
14032
|
-
selections:
|
|
14032
|
+
selections: Sh,
|
|
14033
14033
|
value$: pt(e, o, ({ worksheet: a }) => new Fe((c) => {
|
|
14034
14034
|
var g, m;
|
|
14035
14035
|
const d = r.get(W).onCommandExecuted((f) => {
|
|
14036
14036
|
var w, S;
|
|
14037
14037
|
const v = f.id;
|
|
14038
|
-
if (v !==
|
|
14038
|
+
if (v !== Oc.id && v !== Ie.id && v !== nt.id)
|
|
14039
14039
|
return;
|
|
14040
14040
|
const p = (w = t.getCurrentLastSelection()) == null ? void 0 : w.primary;
|
|
14041
14041
|
let C;
|
|
@@ -14060,7 +14060,7 @@ function Ob(r) {
|
|
|
14060
14060
|
})
|
|
14061
14061
|
};
|
|
14062
14062
|
}
|
|
14063
|
-
const
|
|
14063
|
+
const Ch = [
|
|
14064
14064
|
{
|
|
14065
14065
|
label: "align.top",
|
|
14066
14066
|
icon: "AlignTopIcon",
|
|
@@ -14081,17 +14081,17 @@ function Ab(r) {
|
|
|
14081
14081
|
var s, l;
|
|
14082
14082
|
const e = r.get(k), t = r.get(Q), n = e.getCurrentUnitOfType(O.UNIVER_SHEET), i = n == null ? void 0 : n.getActiveSheet().getDefaultCellStyleInternal(), o = (s = i == null ? void 0 : i.vt) != null ? s : cn.BOTTOM;
|
|
14083
14083
|
return {
|
|
14084
|
-
id:
|
|
14085
|
-
icon: (l =
|
|
14084
|
+
id: xc.id,
|
|
14085
|
+
icon: (l = Ch.find((a) => a.value === o)) == null ? void 0 : l.icon,
|
|
14086
14086
|
tooltip: "toolbar.verticalAlignMode.main",
|
|
14087
14087
|
type: $.SELECTOR,
|
|
14088
|
-
selections:
|
|
14088
|
+
selections: Ch,
|
|
14089
14089
|
value$: pt(e, o, ({ worksheet: a }) => new Fe((c) => {
|
|
14090
14090
|
var g, m;
|
|
14091
14091
|
const d = r.get(W).onCommandExecuted((f) => {
|
|
14092
14092
|
var w, S;
|
|
14093
14093
|
const v = f.id;
|
|
14094
|
-
if (v !==
|
|
14094
|
+
if (v !== xc.id && v !== Ie.id && v !== nt.id)
|
|
14095
14095
|
return;
|
|
14096
14096
|
const p = (w = t.getCurrentLastSelection()) == null ? void 0 : w.primary;
|
|
14097
14097
|
let C;
|
|
@@ -14116,7 +14116,7 @@ function Ab(r) {
|
|
|
14116
14116
|
})
|
|
14117
14117
|
};
|
|
14118
14118
|
}
|
|
14119
|
-
const
|
|
14119
|
+
const wh = [
|
|
14120
14120
|
{
|
|
14121
14121
|
label: "textWrap.overflow",
|
|
14122
14122
|
icon: "OverflowIcon",
|
|
@@ -14137,17 +14137,17 @@ function Hb(r) {
|
|
|
14137
14137
|
var s, l;
|
|
14138
14138
|
const e = r.get(Q), t = r.get(k), n = t.getCurrentUnitOfType(O.UNIVER_SHEET), i = n == null ? void 0 : n.getActiveSheet().getDefaultCellStyleInternal(), o = (s = i == null ? void 0 : i.tb) != null ? s : mr.OVERFLOW;
|
|
14139
14139
|
return {
|
|
14140
|
-
id:
|
|
14140
|
+
id: Pc.id,
|
|
14141
14141
|
tooltip: "toolbar.textWrapMode.main",
|
|
14142
|
-
icon: (l =
|
|
14142
|
+
icon: (l = wh.find((a) => a.value === o)) == null ? void 0 : l.icon,
|
|
14143
14143
|
type: $.SELECTOR,
|
|
14144
|
-
selections:
|
|
14144
|
+
selections: wh,
|
|
14145
14145
|
value$: pt(t, o, ({ worksheet: a }) => new Fe((c) => {
|
|
14146
14146
|
var g, m;
|
|
14147
14147
|
const d = r.get(W).onCommandExecuted((f) => {
|
|
14148
14148
|
var w, S;
|
|
14149
14149
|
const v = f.id;
|
|
14150
|
-
if (v !==
|
|
14150
|
+
if (v !== Pc.id && v !== Ie.id && v !== nt.id)
|
|
14151
14151
|
return;
|
|
14152
14152
|
const p = (w = e.getCurrentLastSelection()) == null ? void 0 : w.primary;
|
|
14153
14153
|
let C;
|
|
@@ -14172,7 +14172,7 @@ function Hb(r) {
|
|
|
14172
14172
|
})
|
|
14173
14173
|
};
|
|
14174
14174
|
}
|
|
14175
|
-
const
|
|
14175
|
+
const bh = [
|
|
14176
14176
|
{
|
|
14177
14177
|
label: "textRotate.none",
|
|
14178
14178
|
icon: "NoRotationIcon",
|
|
@@ -14207,17 +14207,17 @@ const _h = [
|
|
|
14207
14207
|
function Vb(r) {
|
|
14208
14208
|
const e = r.get(Q), t = r.get(k), n = 0;
|
|
14209
14209
|
return {
|
|
14210
|
-
id:
|
|
14210
|
+
id: Tc.id,
|
|
14211
14211
|
tooltip: "toolbar.textRotateMode.main",
|
|
14212
|
-
icon:
|
|
14212
|
+
icon: bh[0].icon,
|
|
14213
14213
|
type: $.SELECTOR,
|
|
14214
|
-
selections:
|
|
14214
|
+
selections: bh,
|
|
14215
14215
|
value$: pt(t, n, ({ worksheet: i }) => new Fe((o) => {
|
|
14216
14216
|
var c, d;
|
|
14217
14217
|
const s = r.get(W).onCommandExecuted((u) => {
|
|
14218
14218
|
var f, v;
|
|
14219
14219
|
const h = u.id;
|
|
14220
|
-
if (h !==
|
|
14220
|
+
if (h !== Tc.id && h !== Ie.id && h !== nt.id)
|
|
14221
14221
|
return;
|
|
14222
14222
|
const g = (f = e.getCurrentLastSelection()) == null ? void 0 : f.primary;
|
|
14223
14223
|
let m;
|
|
@@ -14255,7 +14255,7 @@ function ci(r) {
|
|
|
14255
14255
|
disabled$: he(r, {
|
|
14256
14256
|
workbookTypes: [oo],
|
|
14257
14257
|
worksheetTypes: [zs],
|
|
14258
|
-
rangeTypes: [
|
|
14258
|
+
rangeTypes: [Ac]
|
|
14259
14259
|
}),
|
|
14260
14260
|
hidden$: ae(r, O.UNIVER_SHEET)
|
|
14261
14261
|
};
|
|
@@ -14359,7 +14359,7 @@ function Ja(r) {
|
|
|
14359
14359
|
}
|
|
14360
14360
|
function Nb(r) {
|
|
14361
14361
|
return {
|
|
14362
|
-
id:
|
|
14362
|
+
id: Sd.id,
|
|
14363
14363
|
type: $.BUTTON,
|
|
14364
14364
|
icon: "AutoHeightDoubleIcon",
|
|
14365
14365
|
title: "rightClick.fitContent",
|
|
@@ -14395,10 +14395,10 @@ function Db(r) {
|
|
|
14395
14395
|
hidden$: ae(r, O.UNIVER_SHEET)
|
|
14396
14396
|
};
|
|
14397
14397
|
}
|
|
14398
|
-
const
|
|
14399
|
-
function
|
|
14398
|
+
const Zc = "sheet.header-menu.sheet-frozen";
|
|
14399
|
+
function _h(r) {
|
|
14400
14400
|
return {
|
|
14401
|
-
id:
|
|
14401
|
+
id: Zc,
|
|
14402
14402
|
type: $.SUBITEMS,
|
|
14403
14403
|
title: "rightClick.freeze",
|
|
14404
14404
|
icon: "FreezeToSelectedIcon",
|
|
@@ -14603,7 +14603,7 @@ function jb(r) {
|
|
|
14603
14603
|
}
|
|
14604
14604
|
function cs(r) {
|
|
14605
14605
|
var a;
|
|
14606
|
-
const e = r.get(k), t = r.get(
|
|
14606
|
+
const e = r.get(k), t = r.get(xd), n = e.getUnit(Oe), i = t.getActiveTextRange();
|
|
14607
14607
|
if (n == null || i == null) return null;
|
|
14608
14608
|
const o = (a = n.getBody()) == null ? void 0 : a.textRuns;
|
|
14609
14609
|
if (o == null) return;
|
|
@@ -14654,12 +14654,12 @@ const sr = {
|
|
|
14654
14654
|
redoMutations: h
|
|
14655
14655
|
}), !0) : !1;
|
|
14656
14656
|
}
|
|
14657
|
-
},
|
|
14657
|
+
}, su = {
|
|
14658
14658
|
type: J.COMMAND,
|
|
14659
14659
|
id: "sheet.command.add-worksheet-merge-all",
|
|
14660
14660
|
handler: async (r) => {
|
|
14661
14661
|
var d;
|
|
14662
|
-
const e = r.get(W), n = (d = r.get(Q).getCurrentSelections()) == null ? void 0 : d.map((u) => u.range), i =
|
|
14662
|
+
const e = r.get(W), n = (d = r.get(Q).getCurrentSelections()) == null ? void 0 : d.map((u) => u.range), i = Yd(aa.MergeAll, n);
|
|
14663
14663
|
if (!(i != null && i.length))
|
|
14664
14664
|
return !1;
|
|
14665
14665
|
const s = r.get(k).getCurrentUnitForType(O.UNIVER_SHEET);
|
|
@@ -14673,12 +14673,12 @@ const sr = {
|
|
|
14673
14673
|
subUnitId: c
|
|
14674
14674
|
});
|
|
14675
14675
|
}
|
|
14676
|
-
},
|
|
14676
|
+
}, lu = {
|
|
14677
14677
|
type: J.COMMAND,
|
|
14678
14678
|
id: "sheet.command.add-worksheet-merge-vertical",
|
|
14679
14679
|
handler: async (r) => {
|
|
14680
14680
|
var d;
|
|
14681
|
-
const e = r.get(W), n = (d = r.get(Q).getCurrentSelections()) == null ? void 0 : d.map((u) => u.range), i =
|
|
14681
|
+
const e = r.get(W), n = (d = r.get(Q).getCurrentSelections()) == null ? void 0 : d.map((u) => u.range), i = Yd(aa.MergeVertical, n);
|
|
14682
14682
|
if (!(i != null && i.length))
|
|
14683
14683
|
return !1;
|
|
14684
14684
|
const s = r.get(k).getCurrentUnitForType(O.UNIVER_SHEET);
|
|
@@ -14693,12 +14693,12 @@ const sr = {
|
|
|
14693
14693
|
subUnitId: c
|
|
14694
14694
|
});
|
|
14695
14695
|
}
|
|
14696
|
-
},
|
|
14696
|
+
}, au = {
|
|
14697
14697
|
type: J.COMMAND,
|
|
14698
14698
|
id: "sheet.command.add-worksheet-merge-horizontal",
|
|
14699
14699
|
handler: async (r) => {
|
|
14700
14700
|
var d;
|
|
14701
|
-
const e = r.get(W), n = (d = r.get(Q).getCurrentSelections()) == null ? void 0 : d.map((u) => u.range), i =
|
|
14701
|
+
const e = r.get(W), n = (d = r.get(Q).getCurrentSelections()) == null ? void 0 : d.map((u) => u.range), i = Yd(aa.MergeHorizontal, n);
|
|
14702
14702
|
if (!(i != null && i.length))
|
|
14703
14703
|
return !1;
|
|
14704
14704
|
const s = r.get(k).getCurrentUnitForType(O.UNIVER_SHEET);
|
|
@@ -14774,7 +14774,7 @@ function Zb(r) {
|
|
|
14774
14774
|
}
|
|
14775
14775
|
function Gb(r) {
|
|
14776
14776
|
return {
|
|
14777
|
-
id:
|
|
14777
|
+
id: su.id,
|
|
14778
14778
|
type: $.BUTTON,
|
|
14779
14779
|
title: "merge.all",
|
|
14780
14780
|
icon: "MergeAllIcon",
|
|
@@ -14783,7 +14783,7 @@ function Gb(r) {
|
|
|
14783
14783
|
}
|
|
14784
14784
|
function qb(r) {
|
|
14785
14785
|
return {
|
|
14786
|
-
id:
|
|
14786
|
+
id: lu.id,
|
|
14787
14787
|
type: $.BUTTON,
|
|
14788
14788
|
title: "merge.vertical",
|
|
14789
14789
|
icon: "VerticalIntegrationIcon",
|
|
@@ -14792,7 +14792,7 @@ function qb(r) {
|
|
|
14792
14792
|
}
|
|
14793
14793
|
function Qb(r) {
|
|
14794
14794
|
return {
|
|
14795
|
-
id:
|
|
14795
|
+
id: au.id,
|
|
14796
14796
|
type: $.BUTTON,
|
|
14797
14797
|
title: "merge.horizontal",
|
|
14798
14798
|
icon: "HorizontalMergeIcon",
|
|
@@ -14903,10 +14903,10 @@ function If(r) {
|
|
|
14903
14903
|
var c;
|
|
14904
14904
|
const e = r.get(k), t = r.get(rt), n = e.getCurrentTypeOfUnit$(O.UNIVER_SHEET), i = r.get(Ft), o = r.has(qe) ? r.get(qe) : null, l = r.get(De).subscribeContextValue$(xt).pipe(
|
|
14905
14905
|
Pt(!1),
|
|
14906
|
-
|
|
14906
|
+
yu(1)
|
|
14907
14907
|
), a = (c = o == null ? void 0 : o.visible$.pipe(
|
|
14908
14908
|
Pt(null),
|
|
14909
|
-
|
|
14909
|
+
yu(1)
|
|
14910
14910
|
)) != null ? c : Ce(null);
|
|
14911
14911
|
return at([n, i.currentUser$, a, l]).pipe(
|
|
14912
14912
|
lt(([d, u, h, g]) => !d || h != null && h.visible && h.unitId === d.getUnitId() || g ? Ce(!0) : d.activeSheet$.pipe(
|
|
@@ -15196,7 +15196,7 @@ function g_(r) {
|
|
|
15196
15196
|
selections: [
|
|
15197
15197
|
{
|
|
15198
15198
|
label: {
|
|
15199
|
-
name:
|
|
15199
|
+
name: Td,
|
|
15200
15200
|
hoverable: !1
|
|
15201
15201
|
}
|
|
15202
15202
|
}
|
|
@@ -15307,25 +15307,25 @@ const p_ = {
|
|
|
15307
15307
|
menuItemFactory: Pb
|
|
15308
15308
|
}
|
|
15309
15309
|
},
|
|
15310
|
-
[
|
|
15310
|
+
[Ec.id]: {
|
|
15311
15311
|
order: 11,
|
|
15312
15312
|
menuItemFactory: ob
|
|
15313
15313
|
}
|
|
15314
15314
|
},
|
|
15315
15315
|
[ps.LAYOUT]: {
|
|
15316
|
-
[
|
|
15316
|
+
[Oc.id]: {
|
|
15317
15317
|
order: 0,
|
|
15318
15318
|
menuItemFactory: Ob
|
|
15319
15319
|
},
|
|
15320
|
-
[
|
|
15320
|
+
[xc.id]: {
|
|
15321
15321
|
order: 3,
|
|
15322
15322
|
menuItemFactory: Ab
|
|
15323
15323
|
},
|
|
15324
|
-
[
|
|
15324
|
+
[Pc.id]: {
|
|
15325
15325
|
order: 6,
|
|
15326
15326
|
menuItemFactory: Hb
|
|
15327
15327
|
},
|
|
15328
|
-
[
|
|
15328
|
+
[Tc.id]: {
|
|
15329
15329
|
order: 7,
|
|
15330
15330
|
menuItemFactory: Vb
|
|
15331
15331
|
},
|
|
@@ -15435,11 +15435,11 @@ const p_ = {
|
|
|
15435
15435
|
menuItemFactory: sb,
|
|
15436
15436
|
[Eo.id]: {
|
|
15437
15437
|
order: 0,
|
|
15438
|
-
menuItemFactory:
|
|
15438
|
+
menuItemFactory: ph
|
|
15439
15439
|
},
|
|
15440
15440
|
[Mo.id]: {
|
|
15441
15441
|
order: 1,
|
|
15442
|
-
menuItemFactory:
|
|
15442
|
+
menuItemFactory: vh
|
|
15443
15443
|
},
|
|
15444
15444
|
[es.id]: {
|
|
15445
15445
|
order: 2,
|
|
@@ -15569,7 +15569,7 @@ const p_ = {
|
|
|
15569
15569
|
},
|
|
15570
15570
|
[Eo.id]: {
|
|
15571
15571
|
order: 2,
|
|
15572
|
-
menuItemFactory:
|
|
15572
|
+
menuItemFactory: ph
|
|
15573
15573
|
},
|
|
15574
15574
|
[Eg.id]: {
|
|
15575
15575
|
order: 3,
|
|
@@ -15579,9 +15579,9 @@ const p_ = {
|
|
|
15579
15579
|
order: 4,
|
|
15580
15580
|
menuItemFactory: kb
|
|
15581
15581
|
},
|
|
15582
|
-
[
|
|
15582
|
+
[Zc]: {
|
|
15583
15583
|
order: 5,
|
|
15584
|
-
menuItemFactory:
|
|
15584
|
+
menuItemFactory: _h,
|
|
15585
15585
|
[$n.id]: {
|
|
15586
15586
|
order: 0,
|
|
15587
15587
|
menuItemFactory: $a
|
|
@@ -15682,7 +15682,7 @@ const p_ = {
|
|
|
15682
15682
|
},
|
|
15683
15683
|
[Mo.id]: {
|
|
15684
15684
|
order: 1,
|
|
15685
|
-
menuItemFactory:
|
|
15685
|
+
menuItemFactory: vh
|
|
15686
15686
|
},
|
|
15687
15687
|
[ca.id]: {
|
|
15688
15688
|
order: 2,
|
|
@@ -15696,13 +15696,13 @@ const p_ = {
|
|
|
15696
15696
|
order: 3,
|
|
15697
15697
|
menuItemFactory: zb
|
|
15698
15698
|
},
|
|
15699
|
-
[
|
|
15699
|
+
[Sd.id]: {
|
|
15700
15700
|
order: 4,
|
|
15701
15701
|
menuItemFactory: Nb
|
|
15702
15702
|
},
|
|
15703
|
-
[
|
|
15703
|
+
[Zc]: {
|
|
15704
15704
|
order: 5,
|
|
15705
|
-
menuItemFactory:
|
|
15705
|
+
menuItemFactory: _h,
|
|
15706
15706
|
[$n.id]: {
|
|
15707
15707
|
order: 0,
|
|
15708
15708
|
menuItemFactory: $a
|
|
@@ -15867,7 +15867,7 @@ let Ii = class extends se {
|
|
|
15867
15867
|
worksheetTypes: [te, Ar]
|
|
15868
15868
|
}), i = this._localeService.t("permission.dialog.pasteErr");
|
|
15869
15869
|
break;
|
|
15870
|
-
case
|
|
15870
|
+
case Uc.id:
|
|
15871
15871
|
n = this._permissionCheckByPaste(t), i = this._localeService.t("permission.dialog.pasteErr");
|
|
15872
15872
|
break;
|
|
15873
15873
|
case wa.id:
|
|
@@ -15891,14 +15891,14 @@ let Ii = class extends se {
|
|
|
15891
15891
|
case un.id:
|
|
15892
15892
|
n = this._sheetPermissionCheckController.permissionCheckWithRanges({
|
|
15893
15893
|
workbookTypes: [oo],
|
|
15894
|
-
rangeTypes: [
|
|
15894
|
+
rangeTypes: [Ac],
|
|
15895
15895
|
worksheetTypes: [zs]
|
|
15896
15896
|
}), i = this._localeService.t("permission.dialog.copyErr"), (o = this._permissionService.getPermissionPoint(new oo(this._univerInstanceService.getCurrentUnitForType(O.UNIVER_SHEET).getUnitId()).id)) != null && o.value || (i = this._localeService.t("permission.dialog.workbookCopyErr"));
|
|
15897
15897
|
break;
|
|
15898
|
-
case
|
|
15898
|
+
case zd.id:
|
|
15899
15899
|
n = this._sheetPermissionCheckController.permissionCheckWithRanges({
|
|
15900
15900
|
workbookTypes: [oo, K],
|
|
15901
|
-
rangeTypes: [
|
|
15901
|
+
rangeTypes: [Ac, ie],
|
|
15902
15902
|
worksheetTypes: [zs, te]
|
|
15903
15903
|
}), i = this._localeService.t("permission.dialog.copyErr"), (s = this._permissionService.getPermissionPoint(new oo(this._univerInstanceService.getCurrentUnitForType(O.UNIVER_SHEET).getUnitId()).id)) != null && s.value || (i = this._localeService.t("permission.dialog.workbookCopyErr"));
|
|
15904
15904
|
break;
|
|
@@ -15961,7 +15961,7 @@ Ii = S_([
|
|
|
15961
15961
|
bn(5, Hr),
|
|
15962
15962
|
bn(6, N(xe)),
|
|
15963
15963
|
bn(7, De),
|
|
15964
|
-
bn(8, N(
|
|
15964
|
+
bn(8, N(Cd))
|
|
15965
15965
|
], Ii);
|
|
15966
15966
|
var C_ = Object.getOwnPropertyDescriptor, w_ = (r, e, t, n) => {
|
|
15967
15967
|
for (var i = n > 1 ? void 0 : n ? C_(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -16503,8 +16503,8 @@ let Vo = class extends se {
|
|
|
16503
16503
|
this._sheetSkeletonManagerService.currentSkeleton$.subscribe((e) => {
|
|
16504
16504
|
[
|
|
16505
16505
|
nt.id,
|
|
16506
|
-
|
|
16507
|
-
|
|
16506
|
+
Ic.id,
|
|
16507
|
+
yc.id
|
|
16508
16508
|
].includes((e == null ? void 0 : e.commandId) || "") && this._refreshCurrent();
|
|
16509
16509
|
})
|
|
16510
16510
|
)
|
|
@@ -16755,7 +16755,7 @@ let Vo = class extends se {
|
|
|
16755
16755
|
return;
|
|
16756
16756
|
const { scene: t } = e;
|
|
16757
16757
|
this.disposeWithMe(t.onTransformChange$.subscribeEvent((n) => {
|
|
16758
|
-
[
|
|
16758
|
+
[Vc.scale, Vc.all].includes(n.type) && this._refreshCurrent();
|
|
16759
16759
|
}));
|
|
16760
16760
|
}
|
|
16761
16761
|
_clearObserverEvent() {
|
|
@@ -17068,9 +17068,9 @@ No = E_([
|
|
|
17068
17068
|
ac(2, N(de)),
|
|
17069
17069
|
ac(3, W)
|
|
17070
17070
|
], No);
|
|
17071
|
-
var
|
|
17072
|
-
const H_ = "rgba(120, 120, 120, 0.01)", dc = "rgb(68, 71, 70)", lo = 12, V_ = 44,
|
|
17073
|
-
class
|
|
17071
|
+
var Gc = /* @__PURE__ */ ((r) => (r[r.VERTICAL = 0] = "VERTICAL", r[r.HORIZONTAL = 1] = "HORIZONTAL", r))(Gc || {});
|
|
17072
|
+
const H_ = "rgba(120, 120, 120, 0.01)", dc = "rgb(68, 71, 70)", lo = 12, V_ = 44, qc = 4;
|
|
17073
|
+
class Rh extends Id {
|
|
17074
17074
|
constructor(t, n) {
|
|
17075
17075
|
super(t, n);
|
|
17076
17076
|
_(this, "_size", lo);
|
|
@@ -17090,7 +17090,7 @@ class Ih extends yd {
|
|
|
17090
17090
|
_draw(t) {
|
|
17091
17091
|
const n = this.getScene();
|
|
17092
17092
|
if (!n) return;
|
|
17093
|
-
const { scaleX: i, scaleY: o } = n.getAncestorScale(), s = Math.max(i, o), l = lo / s, a =
|
|
17093
|
+
const { scaleX: i, scaleY: o } = n.getAncestorScale(), s = Math.max(i, o), l = lo / s, a = qc / s;
|
|
17094
17094
|
let { width: c, height: d } = this, u = 0, h = 0;
|
|
17095
17095
|
this.mode === 0 ? (c = a, u = l - a) : (d = a, h = l - a), Se.drawWith(t, {
|
|
17096
17096
|
width: this.width,
|
|
@@ -17125,7 +17125,7 @@ var N_ = Object.getOwnPropertyDescriptor, k_ = (r, e, t, n) => {
|
|
|
17125
17125
|
(s = r[o]) && (i = s(i) || i);
|
|
17126
17126
|
return i;
|
|
17127
17127
|
}, uc = (r, e) => (t, n) => e(t, n, r);
|
|
17128
|
-
const D_ = "__SpreadsheetHeaderResizeControllerShapeRow__", L_ = "__SpreadsheetHeaderResizeControllerShapeColumn__",
|
|
17128
|
+
const D_ = "__SpreadsheetHeaderResizeControllerShapeRow__", L_ = "__SpreadsheetHeaderResizeControllerShapeColumn__", Ih = "__SpreadsheetHeaderResizeControllerShapeHelper__", yh = "rgb(199, 199, 199)", W_ = 2, hc = Nn("headerResizePermissionCheck");
|
|
17129
17129
|
let ko = class extends se {
|
|
17130
17130
|
constructor(e, t, n, i) {
|
|
17131
17131
|
super();
|
|
@@ -17149,13 +17149,13 @@ let ko = class extends se {
|
|
|
17149
17149
|
}
|
|
17150
17150
|
_init() {
|
|
17151
17151
|
const e = this._context.scene;
|
|
17152
|
-
this._rowResizeRect = new
|
|
17152
|
+
this._rowResizeRect = new Rh(D_, {
|
|
17153
17153
|
visible: !1,
|
|
17154
|
-
mode:
|
|
17154
|
+
mode: Gc.HORIZONTAL,
|
|
17155
17155
|
zIndex: 100
|
|
17156
|
-
}), this._columnResizeRect = new
|
|
17156
|
+
}), this._columnResizeRect = new Rh(L_, {
|
|
17157
17157
|
visible: !1,
|
|
17158
|
-
mode:
|
|
17158
|
+
mode: Gc.VERTICAL,
|
|
17159
17159
|
zIndex: 100
|
|
17160
17160
|
}), e.addObjects([this._rowResizeRect, this._columnResizeRect], rr), this._initialHover(
|
|
17161
17161
|
0
|
|
@@ -17253,17 +17253,17 @@ let ko = class extends se {
|
|
|
17253
17253
|
this._startOffsetX = g.x, this._startOffsetY = g.y;
|
|
17254
17254
|
const v = o.getOffsetByColumn(this._currentColumn), p = o.getOffsetByRow(this._currentRow), C = o.getNoMergeCellWithCoordByIndex(this._currentRow, this._currentColumn);
|
|
17255
17255
|
let w = !1, S = 0, I = 0;
|
|
17256
|
-
const { columnTotalWidth: R, rowHeaderWidth: y, rowTotalHeight: M, columnHeaderHeight: E } = o, T = c > R + y ? c : R + y, P = a > M + E ? a : M + E, H = Math.max(m, f), A =
|
|
17257
|
-
e === 0 ? this._resizeHelperShape = new Se(
|
|
17256
|
+
const { columnTotalWidth: R, rowHeaderWidth: y, rowTotalHeight: M, columnHeaderHeight: E } = o, T = c > R + y ? c : R + y, P = a > M + E ? a : M + E, H = Math.max(m, f), A = qc / H;
|
|
17257
|
+
e === 0 ? this._resizeHelperShape = new Se(Ih, {
|
|
17258
17258
|
width: T,
|
|
17259
17259
|
height: A,
|
|
17260
|
-
fill:
|
|
17260
|
+
fill: yh,
|
|
17261
17261
|
left: 0,
|
|
17262
17262
|
top: p - A / 2
|
|
17263
|
-
}) : this._resizeHelperShape = new Se(
|
|
17263
|
+
}) : this._resizeHelperShape = new Se(Ih, {
|
|
17264
17264
|
width: A,
|
|
17265
17265
|
height: P,
|
|
17266
|
-
fill:
|
|
17266
|
+
fill: yh,
|
|
17267
17267
|
left: v - A / 2,
|
|
17268
17268
|
top: 0
|
|
17269
17269
|
});
|
|
@@ -17272,7 +17272,7 @@ let ko = class extends se {
|
|
|
17272
17272
|
var it, ot, vt, wt, Bn, Fn;
|
|
17273
17273
|
const Ne = s.getCoordRelativeToViewport(
|
|
17274
17274
|
ke.FromArray([this._startOffsetX, this._startOffsetY])
|
|
17275
|
-
), Z = s.getScrollXYInfoByViewport(Ne, d), ee = xs(be.offsetX, be.offsetY, s), { x: ne, y: fe } = ee, { scaleX: Ue, scaleY: me } = s.getAncestorScale(), _e = Math.max(Ue, me), le =
|
|
17275
|
+
), Z = s.getScrollXYInfoByViewport(Ne, d), ee = xs(be.offsetX, be.offsetY, s), { x: ne, y: fe } = ee, { scaleX: Ue, scaleY: me } = s.getAncestorScale(), _e = Math.max(Ue, me), le = qc / _e;
|
|
17276
17276
|
S = ne - this._startOffsetX - le / 2, I = fe - this._startOffsetY - le / 2, Math.abs(e === 0 ? I : S) >= W_ && (w = !0), e === 0 ? (I > a - u + Z.y - C.startY && (I = a - u + Z.y - C.startY), I < -(C.endY - C.startY) + 2 && (I = -(C.endY - C.startY) + 2), w && ((it = this._resizeHelperShape) == null || it.transformByState({
|
|
17277
17277
|
top: p + I
|
|
17278
17278
|
}), (ot = this._rowResizeRect) == null || ot.transformByState({
|
|
@@ -17329,7 +17329,7 @@ let ko = class extends se {
|
|
|
17329
17329
|
}
|
|
17330
17330
|
case 0:
|
|
17331
17331
|
this._commandService.executeCommand(
|
|
17332
|
-
|
|
17332
|
+
Sd.id,
|
|
17333
17333
|
{
|
|
17334
17334
|
ranges: [{
|
|
17335
17335
|
startRow: this._currentRow,
|
|
@@ -17388,7 +17388,7 @@ let ml = class extends kn {
|
|
|
17388
17388
|
e.beginFrame$.subscribe(() => {
|
|
17389
17389
|
this._renderFrameTimeMetric = null, this._renderFrameTags = {};
|
|
17390
17390
|
}), e.endFrame$.subscribe(() => {
|
|
17391
|
-
this._renderFrameTimeMetric && Object.keys(this._renderFrameTimeMetric).filter((i) => i.startsWith(
|
|
17391
|
+
this._renderFrameTimeMetric && Object.keys(this._renderFrameTimeMetric).filter((i) => i.startsWith(Ru)).length > 0 && this._afterRenderMetric$.next({
|
|
17392
17392
|
frameTimeMetric: this._renderFrameTimeMetric,
|
|
17393
17393
|
tags: this._renderFrameTags
|
|
17394
17394
|
});
|
|
@@ -17422,7 +17422,7 @@ let ml = class extends kn {
|
|
|
17422
17422
|
const w = h[C].reduce((S, I) => S + I, 0);
|
|
17423
17423
|
return p[C] = w, p;
|
|
17424
17424
|
}, {});
|
|
17425
|
-
return Object.keys(h).filter((p) => p.startsWith(
|
|
17425
|
+
return Object.keys(h).filter((p) => p.startsWith(Ru)).forEach((p) => {
|
|
17426
17426
|
g += f[p];
|
|
17427
17427
|
}), { ...f, extensionTotal: g };
|
|
17428
17428
|
}, i = e.map((h) => ({ ...h, ...n(h) })), s = ((h) => Object.entries(h[0]).filter(([f, v]) => !["elapsedTime"].includes(f)).filter(([f, v]) => typeof v == "number").map(([f]) => f).reduce((f, v) => {
|
|
@@ -17446,10 +17446,10 @@ let ml = class extends kn {
|
|
|
17446
17446
|
stroke: "rgb(217, 217, 217)",
|
|
17447
17447
|
strokeWidth: 1
|
|
17448
17448
|
});
|
|
17449
|
-
this._context.mainComponent = o, n.set(Ye.MAIN, o), n.set(Ye.ROW, s), n.set(Ye.COLUMN, l), n.set(Ye.LEFT_TOP, a), t.addObjects([o],
|
|
17449
|
+
this._context.mainComponent = o, n.set(Ye.MAIN, o), n.set(Ye.ROW, s), n.set(Ye.COLUMN, l), n.set(Ye.LEFT_TOP, a), t.addObjects([o], Hu), t.addObjects(
|
|
17450
17450
|
[s, l, a],
|
|
17451
17451
|
rr
|
|
17452
|
-
), t.enableLayerCache(
|
|
17452
|
+
), t.enableLayerCache(Hu, rr);
|
|
17453
17453
|
}
|
|
17454
17454
|
_initViewports(e, t, n) {
|
|
17455
17455
|
const s = new Cn(F.VIEW_MAIN, e, {
|
|
@@ -17529,7 +17529,7 @@ let ml = class extends kn {
|
|
|
17529
17529
|
*/
|
|
17530
17530
|
_addViewport(e) {
|
|
17531
17531
|
const t = this._context.scene, { rowHeader: n, columnHeader: i } = e.getConfig(), { viewMain: o } = this._initViewports(t, n, i), s = this._configService.getConfig(At), l = s == null ? void 0 : s.scrollConfig;
|
|
17532
|
-
return new
|
|
17532
|
+
return new Rd(o, l), t.attachControl(), o;
|
|
17533
17533
|
}
|
|
17534
17534
|
_initRerenderScheduler() {
|
|
17535
17535
|
this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe((e) => {
|
|
@@ -17619,7 +17619,7 @@ ml = F_([
|
|
|
17619
17619
|
Ki(2, N(de)),
|
|
17620
17620
|
Ki(3, N(ir)),
|
|
17621
17621
|
Ki(4, W),
|
|
17622
|
-
Ki(5,
|
|
17622
|
+
Ki(5, od(yC))
|
|
17623
17623
|
], ml);
|
|
17624
17624
|
const X_ = ({ className: r }) => /* @__PURE__ */ q("svg", { className: r, width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
17625
17625
|
/* @__PURE__ */ b("path", { d: "M0.98999 1.08218H-0.0100098V0.0821838H0.98999V1.08218Z" }),
|
|
@@ -17852,7 +17852,7 @@ const X_ = ({ className: r }) => /* @__PURE__ */ q("svg", { className: r, width:
|
|
|
17852
17852
|
d: "M119.991 1.15668H-0.0090332V0.156677H119.991V1.15668Z"
|
|
17853
17853
|
}
|
|
17854
17854
|
) });
|
|
17855
|
-
function
|
|
17855
|
+
function Mh(r) {
|
|
17856
17856
|
const { type: e = Pe.THIN, className: t } = r;
|
|
17857
17857
|
switch (e) {
|
|
17858
17858
|
case Pe.DASH_DOT:
|
|
@@ -17948,7 +17948,7 @@ function nR(r) {
|
|
|
17948
17948
|
}
|
|
17949
17949
|
function Ef(r) {
|
|
17950
17950
|
var h;
|
|
17951
|
-
const e = L(Nt), t = L(
|
|
17951
|
+
const e = L(Nt), t = L(Mc), n = L(Q), { isAllValuesSame: i, value: o } = n.getCellStylesProperty("bd"), s = i ? tR(o) : void 0, l = i ? nR(o) : void 0, { onChange: a, value: c } = r;
|
|
17952
17952
|
function d(g, m) {
|
|
17953
17953
|
a == null || a({
|
|
17954
17954
|
...c,
|
|
@@ -17982,7 +17982,7 @@ function Ef(r) {
|
|
|
17982
17982
|
/* @__PURE__ */ b(CC, {}),
|
|
17983
17983
|
/* @__PURE__ */ q("div", { className: "univer-flex univer-items-center univer-gap-2", children: [
|
|
17984
17984
|
/* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(
|
|
17985
|
-
|
|
17985
|
+
Nc,
|
|
17986
17986
|
{
|
|
17987
17987
|
overlay: /* @__PURE__ */ b("div", { className: "univer-rounded-lg univer-p-4", children: /* @__PURE__ */ b(rm, { value: s, onChange: (g) => d(g, "color") }) }),
|
|
17988
17988
|
children: /* @__PURE__ */ q(
|
|
@@ -18005,7 +18005,7 @@ function Ef(r) {
|
|
|
18005
18005
|
}
|
|
18006
18006
|
) }),
|
|
18007
18007
|
/* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(
|
|
18008
|
-
|
|
18008
|
+
Nc,
|
|
18009
18009
|
{
|
|
18010
18010
|
overlay: /* @__PURE__ */ b("section", { className: "univer-rounded-lg univer-p-1.5", children: /* @__PURE__ */ b("ul", { className: "univer-m-0 univer-grid univer-list-none univer-gap-1 univer-p-0", children: eR.map((g) => /* @__PURE__ */ q(
|
|
18011
18011
|
"li",
|
|
@@ -18020,7 +18020,7 @@ function Ef(r) {
|
|
|
18020
18020
|
}
|
|
18021
18021
|
),
|
|
18022
18022
|
/* @__PURE__ */ b(
|
|
18023
|
-
|
|
18023
|
+
Mh,
|
|
18024
18024
|
{
|
|
18025
18025
|
className: "univer-ml-6 univer-fill-gray-900 dark:!univer-fill-white",
|
|
18026
18026
|
type: g.value
|
|
@@ -18037,7 +18037,7 @@ function Ef(r) {
|
|
|
18037
18037
|
type: "button",
|
|
18038
18038
|
children: [
|
|
18039
18039
|
/* @__PURE__ */ b(
|
|
18040
|
-
|
|
18040
|
+
Mh,
|
|
18041
18041
|
{
|
|
18042
18042
|
className: "univer-fill-gray-900 dark:!univer-fill-white",
|
|
18043
18043
|
type: l != null ? l : Pe.THIN
|
|
@@ -18052,7 +18052,7 @@ function Ef(r) {
|
|
|
18052
18052
|
] })
|
|
18053
18053
|
] });
|
|
18054
18054
|
}
|
|
18055
|
-
const
|
|
18055
|
+
const cu = "sheets.component.cell-popup";
|
|
18056
18056
|
var rR = Object.getOwnPropertyDescriptor, iR = (r, e, t, n) => {
|
|
18057
18057
|
for (var i = n > 1 ? void 0 : n ? rR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
18058
18058
|
(s = r[o]) && (i = s(i) || i);
|
|
@@ -18293,7 +18293,7 @@ let yi = class extends se {
|
|
|
18293
18293
|
return null;
|
|
18294
18294
|
if (this._isSelectionMoving && !n.showOnSelectionMoving)
|
|
18295
18295
|
return;
|
|
18296
|
-
const m = s != null ? s :
|
|
18296
|
+
const m = s != null ? s : rh(e, t, u.scene, a);
|
|
18297
18297
|
if (!m)
|
|
18298
18298
|
return null;
|
|
18299
18299
|
const { position: f, position$: v, disposable: p, updateRowCol: C } = this._createCellPositionObserver(e, t, u, h, m), { rects$: w, disposable: S } = this._createHiddenRectObserver({
|
|
@@ -18347,7 +18347,7 @@ let yi = class extends se {
|
|
|
18347
18347
|
return null;
|
|
18348
18348
|
if (g.selectionMoving && !s)
|
|
18349
18349
|
return;
|
|
18350
|
-
const m = o != null ? o :
|
|
18350
|
+
const m = o != null ? o : rh(e.startRow, e.startColumn, u.scene, a);
|
|
18351
18351
|
if (!m)
|
|
18352
18352
|
return null;
|
|
18353
18353
|
const { position: f, position$: v, disposable: p, updateRowCol: C, topLeftPos$: w, rightBottomPos$: S } = this._createRangePositionObserver(e, u, h, m), { rects$: I, disposable: R } = this._createHiddenRectObserver({
|
|
@@ -18489,7 +18489,7 @@ yi = iR([
|
|
|
18489
18489
|
ur(2, k),
|
|
18490
18490
|
ur(3, N(lS)),
|
|
18491
18491
|
ur(4, W),
|
|
18492
|
-
ur(5,
|
|
18492
|
+
ur(5, wd),
|
|
18493
18493
|
ur(6, N(Q))
|
|
18494
18494
|
], yi);
|
|
18495
18495
|
function gc(r) {
|
|
@@ -18541,7 +18541,7 @@ let Mi = class extends se {
|
|
|
18541
18541
|
{
|
|
18542
18542
|
...t,
|
|
18543
18543
|
direction: n,
|
|
18544
|
-
componentKey:
|
|
18544
|
+
componentKey: cu,
|
|
18545
18545
|
extraProps: {
|
|
18546
18546
|
...e,
|
|
18547
18547
|
direction: n
|
|
@@ -18587,7 +18587,7 @@ const Tf = (r) => {
|
|
|
18587
18587
|
const h = d.get(u.componentKey);
|
|
18588
18588
|
return h ? /* @__PURE__ */ b(h, { popup: u }, (g = u.id) != null ? g : u.componentKey) : null;
|
|
18589
18589
|
}) });
|
|
18590
|
-
},
|
|
18590
|
+
}, Eh = (r) => {
|
|
18591
18591
|
const {
|
|
18592
18592
|
inputId: e,
|
|
18593
18593
|
state: t = !1,
|
|
@@ -18597,16 +18597,16 @@ const Tf = (r) => {
|
|
|
18597
18597
|
name: s,
|
|
18598
18598
|
formulaOrRefString: l,
|
|
18599
18599
|
comment: a = "",
|
|
18600
|
-
localSheetId: c =
|
|
18600
|
+
localSheetId: c = Hc,
|
|
18601
18601
|
hidden: d = !1,
|
|
18602
18602
|
// 是否对用户隐藏,与excel兼容,暂时用不上。
|
|
18603
18603
|
id: u
|
|
18604
|
-
} = r, g = L(k).getCurrentUnitForType(O.UNIVER_SHEET), m = L(xe), f = L(Ko), v = L(Kg), p = L(Qg), C = L(Nt), w = Ct(() => C.get(sm), []), S = Ct(() => C.get(
|
|
18604
|
+
} = r, g = L(k).getCurrentUnitForType(O.UNIVER_SHEET), m = L(xe), f = L(Ko), v = L(Kg), p = L(Qg), C = L(Nt), w = Ct(() => C.get(sm), []), S = Ct(() => C.get(kd), []);
|
|
18605
18605
|
if (g == null)
|
|
18606
18606
|
return;
|
|
18607
18607
|
const I = Ct(() => g.getUnitId(), []), R = Ct(() => g.getActiveSheet().getSheetId(), []), [y, M] = re(s), [E, T] = re(l), [P, H] = re(a), [A, x] = re(c), [V, D] = re(""), [X, B] = re(n), [j, G] = re(!0), ge = [{
|
|
18608
18608
|
label: m.t("definedName.scopeWorkbook"),
|
|
18609
|
-
value:
|
|
18609
|
+
value: Hc
|
|
18610
18610
|
}], Re = (me) => !Jg(me);
|
|
18611
18611
|
Ee(() => {
|
|
18612
18612
|
G(!0), M(s), H(a), x(c);
|
|
@@ -18659,7 +18659,7 @@ const Tf = (r) => {
|
|
|
18659
18659
|
i && i({
|
|
18660
18660
|
id: u || "",
|
|
18661
18661
|
name: y,
|
|
18662
|
-
formulaOrRefString: p.convertRefersToAbsolute(E,
|
|
18662
|
+
formulaOrRefString: p.convertRefersToAbsolute(E, mu.ALL, mu.ALL, _e),
|
|
18663
18663
|
comment: P,
|
|
18664
18664
|
localSheetId: A
|
|
18665
18665
|
});
|
|
@@ -18673,7 +18673,7 @@ const Tf = (r) => {
|
|
|
18673
18673
|
}), /* @__PURE__ */ q(
|
|
18674
18674
|
"div",
|
|
18675
18675
|
{
|
|
18676
|
-
className: Te("univer-grid univer-space-y-2 univer-pb-1",
|
|
18676
|
+
className: Te("univer-grid univer-space-y-2 univer-pb-1", Ad, {
|
|
18677
18677
|
"univer-hidden": !t
|
|
18678
18678
|
}),
|
|
18679
18679
|
children: [
|
|
@@ -18687,7 +18687,7 @@ const Tf = (r) => {
|
|
|
18687
18687
|
onChange: M
|
|
18688
18688
|
}
|
|
18689
18689
|
) }),
|
|
18690
|
-
/* @__PURE__ */ b("div", { children: /* @__PURE__ */ q(
|
|
18690
|
+
/* @__PURE__ */ b("div", { children: /* @__PURE__ */ q(kc, { value: X, onChange: ee, children: [
|
|
18691
18691
|
/* @__PURE__ */ b(Qr, { value: "range", children: m.t("definedName.ratioRange") }),
|
|
18692
18692
|
/* @__PURE__ */ b(Qr, { value: "formula", children: m.t("definedName.ratioFormula") })
|
|
18693
18693
|
] }) }),
|
|
@@ -18734,7 +18734,8 @@ const Tf = (r) => {
|
|
|
18734
18734
|
className: "univer-w-full",
|
|
18735
18735
|
placeholder: m.t("definedName.inputCommentPlaceholder"),
|
|
18736
18736
|
value: P,
|
|
18737
|
-
onChange: H
|
|
18737
|
+
onChange: H,
|
|
18738
|
+
allowClear: !0
|
|
18738
18739
|
}
|
|
18739
18740
|
) }),
|
|
18740
18741
|
/* @__PURE__ */ q(
|
|
@@ -18746,7 +18747,7 @@ const Tf = (r) => {
|
|
|
18746
18747
|
}),
|
|
18747
18748
|
children: [
|
|
18748
18749
|
/* @__PURE__ */ b("span", { children: V }),
|
|
18749
|
-
/* @__PURE__ */ b(
|
|
18750
|
+
/* @__PURE__ */ b($d, {})
|
|
18750
18751
|
]
|
|
18751
18752
|
}
|
|
18752
18753
|
),
|
|
@@ -18812,7 +18813,7 @@ const Tf = (r) => {
|
|
|
18812
18813
|
const { formulaOrRefString: H, id: A } = P, x = i.getWorksheetByRef(s, H);
|
|
18813
18814
|
if (!x)
|
|
18814
18815
|
return;
|
|
18815
|
-
x.isSheetHidden() && await r.executeCommand(
|
|
18816
|
+
x.isSheetHidden() && await r.executeCommand(md.id, { unitId: s, subUnitId: x.getSheetId() }), i.focusRange(s, A);
|
|
18816
18817
|
}, I = () => {
|
|
18817
18818
|
const P = d.length + 1, H = n.t("definedName.defaultName") + P;
|
|
18818
18819
|
if (i.getValueByName(s, H) == null)
|
|
@@ -18859,13 +18860,13 @@ const Tf = (r) => {
|
|
|
18859
18860
|
),
|
|
18860
18861
|
onClick: M,
|
|
18861
18862
|
children: [
|
|
18862
|
-
/* @__PURE__ */ b(
|
|
18863
|
+
/* @__PURE__ */ b(eu, {}),
|
|
18863
18864
|
/* @__PURE__ */ b("span", { className: "univer-ml-1", children: n.t("definedName.addButton") })
|
|
18864
18865
|
]
|
|
18865
18866
|
}
|
|
18866
18867
|
),
|
|
18867
18868
|
a && /* @__PURE__ */ b(
|
|
18868
|
-
|
|
18869
|
+
Eh,
|
|
18869
18870
|
{
|
|
18870
18871
|
confirm: v,
|
|
18871
18872
|
cancel: y,
|
|
@@ -18898,7 +18899,7 @@ const Tf = (r) => {
|
|
|
18898
18899
|
className: "univer-my-1 univer-max-h-[100px] univer-max-w-[190px] univer-overflow-hidden univer-text-ellipsis univer-text-sm univer-font-medium univer-text-gray-900 dark:!univer-text-white",
|
|
18899
18900
|
children: [
|
|
18900
18901
|
P.name,
|
|
18901
|
-
/* @__PURE__ */ b("span", { className: "univer-text-xxs univer-ml-1 univer-text-gray-400", children: P.localSheetId ===
|
|
18902
|
+
/* @__PURE__ */ b("span", { className: "univer-text-xxs univer-ml-1 univer-text-gray-400", children: P.localSheetId === Hc || P.localSheetId == null ? "" : T(P.localSheetId) })
|
|
18902
18903
|
]
|
|
18903
18904
|
}
|
|
18904
18905
|
),
|
|
@@ -18953,7 +18954,7 @@ const Tf = (r) => {
|
|
|
18953
18954
|
}
|
|
18954
18955
|
),
|
|
18955
18956
|
P.id === h && /* @__PURE__ */ b(
|
|
18956
|
-
|
|
18957
|
+
Eh,
|
|
18957
18958
|
{
|
|
18958
18959
|
confirm: v,
|
|
18959
18960
|
cancel: y,
|
|
@@ -19234,7 +19235,7 @@ const Tf = (r) => {
|
|
|
19234
19235
|
preconditions: (r) => Ve(r),
|
|
19235
19236
|
binding: pe.SHIFT + Y.BACKSPACE
|
|
19236
19237
|
}, sp = {
|
|
19237
|
-
id:
|
|
19238
|
+
id: zd.id,
|
|
19238
19239
|
// when focusing on any other input tag do not trigger this shortcut
|
|
19239
19240
|
preconditions: (r) => Ve(r),
|
|
19240
19241
|
binding: pe.SHIFT + Y.DELETE
|
|
@@ -19249,7 +19250,7 @@ const Tf = (r) => {
|
|
|
19249
19250
|
delta: 0.2
|
|
19250
19251
|
}
|
|
19251
19252
|
}, ap = {
|
|
19252
|
-
id:
|
|
19253
|
+
id: sd.id,
|
|
19253
19254
|
binding: Y.EQUAL | pe.CTRL_COMMAND
|
|
19254
19255
|
}, cp = {
|
|
19255
19256
|
id: is.id,
|
|
@@ -19262,7 +19263,7 @@ const Tf = (r) => {
|
|
|
19262
19263
|
delta: -0.2
|
|
19263
19264
|
}
|
|
19264
19265
|
}, dp = {
|
|
19265
|
-
id:
|
|
19266
|
+
id: sd.id,
|
|
19266
19267
|
binding: Y.MINUS | pe.CTRL_COMMAND
|
|
19267
19268
|
}, up = {
|
|
19268
19269
|
id: is.id,
|
|
@@ -19275,7 +19276,7 @@ const Tf = (r) => {
|
|
|
19275
19276
|
reset: !0
|
|
19276
19277
|
}
|
|
19277
19278
|
}, hp = {
|
|
19278
|
-
id:
|
|
19279
|
+
id: sd.id,
|
|
19279
19280
|
binding: Y.Digit0 | pe.CTRL_COMMAND
|
|
19280
19281
|
};
|
|
19281
19282
|
var aR = Object.getOwnPropertyDescriptor, cR = (r, e, t, n) => {
|
|
@@ -19292,14 +19293,14 @@ let fl = class extends se {
|
|
|
19292
19293
|
}
|
|
19293
19294
|
_initComponents() {
|
|
19294
19295
|
const r = this._componentManager;
|
|
19295
|
-
this.disposeWithMe(r.register(Sn, Cf)), this.disposeWithMe(r.register(
|
|
19296
|
+
this.disposeWithMe(r.register(Sn, Cf)), this.disposeWithMe(r.register(ou, Ef)), this.disposeWithMe(r.register(xo, Pf)), this.disposeWithMe(r.register(cu, Tf)), this.disposeWithMe(r.register("HideGridlinesDoubleIcon", ru));
|
|
19296
19297
|
}
|
|
19297
19298
|
_initCommands() {
|
|
19298
19299
|
[
|
|
19299
|
-
|
|
19300
|
+
su,
|
|
19300
19301
|
sr,
|
|
19301
|
-
cu,
|
|
19302
19302
|
au,
|
|
19303
|
+
lu,
|
|
19303
19304
|
is,
|
|
19304
19305
|
Gt,
|
|
19305
19306
|
Ut,
|
|
@@ -19313,8 +19314,8 @@ let fl = class extends se {
|
|
|
19313
19314
|
mn,
|
|
19314
19315
|
Em,
|
|
19315
19316
|
Ra,
|
|
19316
|
-
|
|
19317
|
-
|
|
19317
|
+
Qd,
|
|
19318
|
+
ld,
|
|
19318
19319
|
wi,
|
|
19319
19320
|
tt,
|
|
19320
19321
|
Ea,
|
|
@@ -19327,13 +19328,13 @@ let fl = class extends se {
|
|
|
19327
19328
|
ua,
|
|
19328
19329
|
ha,
|
|
19329
19330
|
Io,
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
gd,
|
|
19331
|
+
Zd,
|
|
19332
|
+
ad,
|
|
19333
|
+
dd,
|
|
19334
19334
|
hd,
|
|
19335
|
+
ud,
|
|
19335
19336
|
Ca,
|
|
19336
|
-
|
|
19337
|
+
Gd,
|
|
19337
19338
|
ns,
|
|
19338
19339
|
wa,
|
|
19339
19340
|
gn,
|
|
@@ -19341,8 +19342,8 @@ let fl = class extends se {
|
|
|
19341
19342
|
$n,
|
|
19342
19343
|
ba,
|
|
19343
19344
|
_a,
|
|
19344
|
-
|
|
19345
|
-
|
|
19345
|
+
Kd,
|
|
19346
|
+
cd,
|
|
19346
19347
|
os,
|
|
19347
19348
|
Jt,
|
|
19348
19349
|
Ia,
|
|
@@ -19351,7 +19352,7 @@ let fl = class extends se {
|
|
|
19351
19352
|
pi,
|
|
19352
19353
|
ts,
|
|
19353
19354
|
es,
|
|
19354
|
-
|
|
19355
|
+
Jd,
|
|
19355
19356
|
gr,
|
|
19356
19357
|
_o,
|
|
19357
19358
|
// permission
|
|
@@ -19452,11 +19453,11 @@ let fl = class extends se {
|
|
|
19452
19453
|
fl = cR([
|
|
19453
19454
|
Un(0, N(Rt)),
|
|
19454
19455
|
Un(1, N(Nt)),
|
|
19455
|
-
Un(2,
|
|
19456
|
+
Un(2, Md),
|
|
19456
19457
|
Un(3, W),
|
|
19457
19458
|
Un(4, ta),
|
|
19458
|
-
Un(5,
|
|
19459
|
-
Un(6,
|
|
19459
|
+
Un(5, yd),
|
|
19460
|
+
Un(6, Pd),
|
|
19460
19461
|
Un(7, Bt)
|
|
19461
19462
|
], fl);
|
|
19462
19463
|
var dR = Object.getOwnPropertyDescriptor, uR = (r, e, t, n) => {
|
|
@@ -19549,14 +19550,14 @@ let Er = class extends se {
|
|
|
19549
19550
|
this._registerSelectionListener();
|
|
19550
19551
|
}
|
|
19551
19552
|
_registerSelectionListener() {
|
|
19552
|
-
const e =
|
|
19553
|
+
const e = _c((n) => {
|
|
19553
19554
|
var o;
|
|
19554
19555
|
const i = (o = n[n.length - 1]) == null ? void 0 : o.primary;
|
|
19555
19556
|
this._calculateSelection(
|
|
19556
19557
|
n.map((s) => s.range),
|
|
19557
19558
|
i
|
|
19558
19559
|
);
|
|
19559
|
-
}, 100), t =
|
|
19560
|
+
}, 100), t = _c((n) => {
|
|
19560
19561
|
var o;
|
|
19561
19562
|
const i = (o = n[n.length - 1]) == null ? void 0 : o.primary;
|
|
19562
19563
|
this._calculateSelection(
|
|
@@ -19705,7 +19706,7 @@ var pR = Object.getOwnPropertyDescriptor, vR = (r, e, t, n) => {
|
|
|
19705
19706
|
for (var i = n > 1 ? void 0 : n ? pR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
19706
19707
|
(s = r[o]) && (i = s(i) || i);
|
|
19707
19708
|
return i;
|
|
19708
|
-
},
|
|
19709
|
+
}, Th = (r, e) => (t, n) => e(t, n, r);
|
|
19709
19710
|
let Ei = class extends se {
|
|
19710
19711
|
constructor(e, t) {
|
|
19711
19712
|
super();
|
|
@@ -19734,7 +19735,7 @@ let Ei = class extends se {
|
|
|
19734
19735
|
const { unitId: t, subUnitId: n } = e.params, i = this._univerInstanceService.getUniverSheetInstance(t);
|
|
19735
19736
|
if (!i || ((a = i.getActiveSheet()) == null ? void 0 : a.getSheetId()) !== n)
|
|
19736
19737
|
return;
|
|
19737
|
-
const s = i.getActiveSheetIndex(), l =
|
|
19738
|
+
const s = i.getActiveSheetIndex(), l = Ph(i, s);
|
|
19738
19739
|
this._switchToNextSheet(t, l);
|
|
19739
19740
|
}
|
|
19740
19741
|
_beforeAdjustActiveSheetOnRemoveSheet(e) {
|
|
@@ -19751,7 +19752,7 @@ let Ei = class extends se {
|
|
|
19751
19752
|
if (!n)
|
|
19752
19753
|
return;
|
|
19753
19754
|
if (n.getActiveSheet().getSheetId() === e.params.subUnitId) {
|
|
19754
|
-
const o = this._previousSheetIndex, s = o >= 1 ? o - 1 : 0, l =
|
|
19755
|
+
const o = this._previousSheetIndex, s = o >= 1 ? o - 1 : 0, l = Ph(n, s);
|
|
19755
19756
|
this._switchToNextSheet(t, l);
|
|
19756
19757
|
}
|
|
19757
19758
|
}
|
|
@@ -19776,10 +19777,10 @@ let Ei = class extends se {
|
|
|
19776
19777
|
}
|
|
19777
19778
|
};
|
|
19778
19779
|
Ei = vR([
|
|
19779
|
-
|
|
19780
|
-
|
|
19780
|
+
Th(0, W),
|
|
19781
|
+
Th(1, k)
|
|
19781
19782
|
], Ei);
|
|
19782
|
-
function
|
|
19783
|
+
function Ph(r, e) {
|
|
19783
19784
|
const t = r.getSheetSize();
|
|
19784
19785
|
for (let n = e; n > -1; n--) {
|
|
19785
19786
|
const i = r.getSheetByIndex(n);
|
|
@@ -19799,7 +19800,7 @@ var SR = Object.getOwnPropertyDescriptor, CR = (r, e, t, n) => {
|
|
|
19799
19800
|
for (var i = n > 1 ? void 0 : n ? SR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
19800
19801
|
(s = r[o]) && (i = s(i) || i);
|
|
19801
19802
|
return i;
|
|
19802
|
-
},
|
|
19803
|
+
}, xh = (r, e) => (t, n) => e(t, n, r), po = /* @__PURE__ */ ((r) => (r[r.INFO = 0] = "INFO", r[r.WARNING = 1] = "WARNING", r[r.ERROR = 2] = "ERROR", r))(po || {});
|
|
19803
19804
|
let Do = class extends se {
|
|
19804
19805
|
constructor(e, t) {
|
|
19805
19806
|
super();
|
|
@@ -19855,8 +19856,8 @@ let Do = class extends se {
|
|
|
19855
19856
|
}
|
|
19856
19857
|
};
|
|
19857
19858
|
Do = CR([
|
|
19858
|
-
|
|
19859
|
-
|
|
19859
|
+
xh(0, ve),
|
|
19860
|
+
xh(1, N(Mi))
|
|
19860
19861
|
], Do);
|
|
19861
19862
|
function wR({ popup: r }) {
|
|
19862
19863
|
var s;
|
|
@@ -19864,7 +19865,7 @@ function wR({ popup: r }) {
|
|
|
19864
19865
|
if (!e)
|
|
19865
19866
|
return null;
|
|
19866
19867
|
const { type: t, title: n, message: i } = e, o = {
|
|
19867
|
-
[po.ERROR]: /* @__PURE__ */ b(
|
|
19868
|
+
[po.ERROR]: /* @__PURE__ */ b($d, { className: "univer-mr-1.5 univer-text-red-500" }),
|
|
19868
19869
|
[po.INFO]: /* @__PURE__ */ b(Fm, { className: "univer-mr-1.5 univer-text-blue-500" }),
|
|
19869
19870
|
[po.WARNING]: /* @__PURE__ */ b(zm, { className: "univer-mr-1.5 univer-text-yellow-500" })
|
|
19870
19871
|
};
|
|
@@ -19947,7 +19948,7 @@ Ti = yR([
|
|
|
19947
19948
|
_s(2, W),
|
|
19948
19949
|
_s(3, ve)
|
|
19949
19950
|
], Ti);
|
|
19950
|
-
const
|
|
19951
|
+
const Oh = 2, MR = [
|
|
19951
19952
|
{ value: "DEFAULT_PASTE", label: "rightClick.paste" },
|
|
19952
19953
|
{ value: "SPECIAL_PASTE_VALUE", label: "rightClick.pasteValue" },
|
|
19953
19954
|
{ value: "SPECIAL_PASTE_FORMAT", label: "rightClick.pasteFormat" },
|
|
@@ -19989,13 +19990,13 @@ const Ah = 2, MR = [
|
|
|
19989
19990
|
{
|
|
19990
19991
|
className: "univer-absolute",
|
|
19991
19992
|
style: {
|
|
19992
|
-
left: d.positionX +
|
|
19993
|
-
top: d.positionY +
|
|
19993
|
+
left: d.positionX + Oh,
|
|
19994
|
+
top: d.positionY + Oh
|
|
19994
19995
|
},
|
|
19995
19996
|
onMouseEnter: () => s(!0),
|
|
19996
19997
|
onMouseLeave: () => s(!1),
|
|
19997
19998
|
children: /* @__PURE__ */ b(
|
|
19998
|
-
|
|
19999
|
+
Od,
|
|
19999
20000
|
{
|
|
20000
20001
|
align: "start",
|
|
20001
20002
|
items: MR.map((g) => ({
|
|
@@ -20059,7 +20060,7 @@ function xR(r, e, t, n, i) {
|
|
|
20059
20060
|
o.push(...h), s.push(...u);
|
|
20060
20061
|
const { undos: g, redos: m } = fp(e, r, t, i, !0);
|
|
20061
20062
|
o.push(...m), s.push(...g);
|
|
20062
|
-
const { undos: f, redos: v } =
|
|
20063
|
+
const { undos: f, redos: v } = Qc(
|
|
20063
20064
|
e,
|
|
20064
20065
|
t,
|
|
20065
20066
|
i
|
|
@@ -20220,7 +20221,7 @@ function mp(r, e, t, n) {
|
|
|
20220
20221
|
(E == null ? void 0 : E.v) !== void 0 && typeof E.v == "number" && (!E.z && Sv(M) ? S.t = yt.FORCE_STRING : S.v = E.v);
|
|
20221
20222
|
}
|
|
20222
20223
|
}
|
|
20223
|
-
if ((R = p.p) != null && R.body &&
|
|
20224
|
+
if ((R = p.p) != null && R.body && Yc(p.p.body)) {
|
|
20224
20225
|
const y = ce.deepClone({ p: p.p, v: p.v });
|
|
20225
20226
|
u.setValue(C, w, y);
|
|
20226
20227
|
} else
|
|
@@ -20350,7 +20351,7 @@ function AR(r, e, t) {
|
|
|
20350
20351
|
}
|
|
20351
20352
|
return { undos: i, redos: n };
|
|
20352
20353
|
}
|
|
20353
|
-
function
|
|
20354
|
+
function Qc(r, e, t) {
|
|
20354
20355
|
const n = [], i = [], { unitId: o, subUnitId: s, range: l } = r, { startColumn: a, startRow: c, endColumn: d, endRow: u } = Cr(l), h = [];
|
|
20355
20356
|
e.forValue((C, w, S) => {
|
|
20356
20357
|
if (S.rowSpan && S.rowSpan > 1) {
|
|
@@ -20417,7 +20418,7 @@ function HR(r) {
|
|
|
20417
20418
|
startIndex: 0,
|
|
20418
20419
|
endIndex: i.length - 1,
|
|
20419
20420
|
rangeId: n,
|
|
20420
|
-
rangeType:
|
|
20421
|
+
rangeType: id.HYPERLINK,
|
|
20421
20422
|
properties: {
|
|
20422
20423
|
url: r
|
|
20423
20424
|
}
|
|
@@ -20478,7 +20479,7 @@ let Tr = class extends kn {
|
|
|
20478
20479
|
return;
|
|
20479
20480
|
o.event.preventDefault();
|
|
20480
20481
|
const s = o.event, l = (d = s.clipboardData) == null ? void 0 : d.getData("text/html"), a = (u = s.clipboardData) == null ? void 0 : u.getData("text/plain"), c = this._resolveClipboardFiles(s.clipboardData);
|
|
20481
|
-
this._commandService.executeCommand(
|
|
20482
|
+
this._commandService.executeCommand(Uc.id, { htmlContent: l, textContent: a, files: c });
|
|
20482
20483
|
}), i == null || i.onKeydown$.subscribe((o) => {
|
|
20483
20484
|
o.event.key === "Escape" && this._sheetClipboardService.removeMarkSelection();
|
|
20484
20485
|
});
|
|
@@ -20496,14 +20497,14 @@ let Tr = class extends kn {
|
|
|
20496
20497
|
return t.length > 0 ? t : void 0;
|
|
20497
20498
|
}
|
|
20498
20499
|
_init() {
|
|
20499
|
-
[un,
|
|
20500
|
+
[un, zd, hn].forEach(
|
|
20500
20501
|
(t) => this.disposeWithMe(this._commandService.registerMultipleCommand(t))
|
|
20501
20502
|
), [
|
|
20502
20503
|
go,
|
|
20503
20504
|
mo,
|
|
20504
20505
|
ri,
|
|
20505
20506
|
fo,
|
|
20506
|
-
|
|
20507
|
+
Uc,
|
|
20507
20508
|
pm
|
|
20508
20509
|
].forEach((t) => this.disposeWithMe(this._commandService.registerCommand(t))), this.disposeWithMe(this._sheetClipboardService.addClipboardHook(this._initCopyingHooks())), this.disposeWithMe(this._sheetClipboardService.addClipboardHook(this._initPastingHook()));
|
|
20509
20510
|
const e = this._initSpecialPasteHooks().map(
|
|
@@ -20531,10 +20532,10 @@ let Tr = class extends kn {
|
|
|
20531
20532
|
(o || s) && (l.rowspan = `${o || 1}`, l.colspan = `${s || 1}`);
|
|
20532
20533
|
const a = t.getMergedCell(n, i), c = t.getComposedCellStyle(n, i);
|
|
20533
20534
|
let d = "";
|
|
20534
|
-
if (c && (d =
|
|
20535
|
+
if (c && (d = fu(c)), a) {
|
|
20535
20536
|
const u = a.endRow, h = a.endColumn, m = t.getRange(u, h).getTextStyle();
|
|
20536
20537
|
if (m) {
|
|
20537
|
-
const f =
|
|
20538
|
+
const f = fu(m);
|
|
20538
20539
|
d ? d += f ? `;${f}` : "" : d = f;
|
|
20539
20540
|
}
|
|
20540
20541
|
}
|
|
@@ -20621,10 +20622,10 @@ let Tr = class extends kn {
|
|
|
20621
20622
|
if (w) {
|
|
20622
20623
|
const R = m.getRow(l.rows[0] + C), y = Number.parseFloat(w);
|
|
20623
20624
|
if (R) {
|
|
20624
|
-
const { h: M =
|
|
20625
|
+
const { h: M = bc, ah: E = 0 } = R, T = Math.max(M, E);
|
|
20625
20626
|
y > T ? (f[C + l.rows[0]] = y, v[C + l.rows[0]] = T) : (f[C + l.rows[0]] = T, v[C + l.rows[0]] = T);
|
|
20626
20627
|
} else
|
|
20627
|
-
f[C + l.rows[0]] = y, v[C + l.rows[0]] = (I = (S = m.getRow(l.rows[0] + C)) == null ? void 0 : S.h) != null ? I :
|
|
20628
|
+
f[C + l.rows[0]] = y, v[C + l.rows[0]] = (I = (S = m.getRow(l.rows[0] + C)) == null ? void 0 : S.h) != null ? I : bc;
|
|
20628
20629
|
}
|
|
20629
20630
|
}), Object.keys(f).length) {
|
|
20630
20631
|
const p = {
|
|
@@ -20657,7 +20658,7 @@ let Tr = class extends kn {
|
|
|
20657
20658
|
// eslint-disable-next-line max-lines-per-function
|
|
20658
20659
|
onPasteColumns(o, s, l) {
|
|
20659
20660
|
var w;
|
|
20660
|
-
const { range: a } = o, c = [], d = [], u = i.getMaxColumns(), h = u - 1, g = a.cols[a.cols.length - 1] - h, m = s.length - g, f = (w = e._configService.getConfig(
|
|
20661
|
+
const { range: a } = o, c = [], d = [], u = i.getMaxColumns(), h = u - 1, g = a.cols[a.cols.length - 1] - h, m = s.length - g, f = (w = e._configService.getConfig(pu)) != null ? w : vu, v = a.cols, p = v[0];
|
|
20661
20662
|
if (g > 0) {
|
|
20662
20663
|
const S = {
|
|
20663
20664
|
startRow: a.rows[0],
|
|
@@ -20735,7 +20736,7 @@ let Tr = class extends kn {
|
|
|
20735
20736
|
}
|
|
20736
20737
|
_generateDocumentDataModelSnapshot(e) {
|
|
20737
20738
|
var l, a;
|
|
20738
|
-
const t = (l =
|
|
20739
|
+
const t = (l = bd(
|
|
20739
20740
|
O.UNIVER_SHEET,
|
|
20740
20741
|
de,
|
|
20741
20742
|
this._instanceService,
|
|
@@ -20760,7 +20761,7 @@ let Tr = class extends kn {
|
|
|
20760
20761
|
}
|
|
20761
20762
|
}
|
|
20762
20763
|
};
|
|
20763
|
-
} else if (
|
|
20764
|
+
} else if (rd(t))
|
|
20764
20765
|
l = {
|
|
20765
20766
|
[i.rows[0]]: {
|
|
20766
20767
|
[i.cols[0]]: {
|
|
@@ -20832,7 +20833,7 @@ let Tr = class extends kn {
|
|
|
20832
20833
|
onPasteCells: (s, l, a) => {
|
|
20833
20834
|
const c = [], d = [], { undos: u, redos: h } = this._injector.invoke((p) => pp(l, a, p));
|
|
20834
20835
|
c.push(...h), d.push(...u);
|
|
20835
|
-
const { undos: g, redos: m } = this._injector.invoke((p) =>
|
|
20836
|
+
const { undos: g, redos: m } = this._injector.invoke((p) => Qc(
|
|
20836
20837
|
l,
|
|
20837
20838
|
a,
|
|
20838
20839
|
p
|
|
@@ -20865,7 +20866,7 @@ let Tr = class extends kn {
|
|
|
20865
20866
|
const c = e._instanceService.getCurrentUnitForType(O.UNIVER_SHEET), d = c.getUnitId(), u = (M = c.getActiveSheet()) == null ? void 0 : M.getSheetId();
|
|
20866
20867
|
if (!d || !u)
|
|
20867
20868
|
throw new Error("Cannot find unitId or subUnitId");
|
|
20868
|
-
const h = [], g = [], m = e._getWorksheet(d, u), { range: f } = s, v = f.cols, p = v[0], C = m.getMaxColumns(), w = f.cols[f.cols.length - 1] - C, S = l.length - w, I = (E = e._configService.getConfig(
|
|
20869
|
+
const h = [], g = [], m = e._getWorksheet(d, u), { range: f } = s, v = f.cols, p = v[0], C = m.getMaxColumns(), w = f.cols[f.cols.length - 1] - C, S = l.length - w, I = (E = e._configService.getConfig(pu)) != null ? E : vu, R = {
|
|
20869
20870
|
unitId: d,
|
|
20870
20871
|
subUnitId: u,
|
|
20871
20872
|
ranges: [{
|
|
@@ -20938,7 +20939,7 @@ let Tr = class extends kn {
|
|
|
20938
20939
|
id: we.id,
|
|
20939
20940
|
params: p
|
|
20940
20941
|
});
|
|
20941
|
-
const { undos: C, redos: w } = this._injector.invoke((S) =>
|
|
20942
|
+
const { undos: C, redos: w } = this._injector.invoke((S) => Qc(l, a, S));
|
|
20942
20943
|
return u.push(...C), d.push(...w), {
|
|
20943
20944
|
redos: d,
|
|
20944
20945
|
undos: u
|
|
@@ -20997,7 +20998,7 @@ Tr = NR([
|
|
|
20997
20998
|
rn(6, nn),
|
|
20998
20999
|
rn(7, Zg),
|
|
20999
21000
|
rn(8, N(xe)),
|
|
21000
|
-
rn(9,
|
|
21001
|
+
rn(9, Pd)
|
|
21001
21002
|
], Tr);
|
|
21002
21003
|
var DR = Object.getOwnPropertyDescriptor, LR = (r, e, t, n) => {
|
|
21003
21004
|
for (var i = n > 1 ? void 0 : n ? DR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -21023,7 +21024,7 @@ let Pi = class extends se {
|
|
|
21023
21024
|
if (t.substring(0, 1) === Yr.EQUALS && (t = t.substring(1)), !Jg(t))
|
|
21024
21025
|
return;
|
|
21025
21026
|
const i = this._instanceSrv.getUnit(e), o = await this._getSelections(i, e, t);
|
|
21026
|
-
this._selectionManagerService.setSelections(o), this._cmdSrv.executeCommand(
|
|
21027
|
+
this._selectionManagerService.setSelections(o), this._cmdSrv.executeCommand(gd.id, {
|
|
21027
21028
|
unitId: e,
|
|
21028
21029
|
range: o[0].range
|
|
21029
21030
|
});
|
|
@@ -21049,7 +21050,7 @@ let Pi = class extends se {
|
|
|
21049
21050
|
const l = n[s].trim(), a = em(l.trim());
|
|
21050
21051
|
if (s === 0) {
|
|
21051
21052
|
const d = r.getSheetBySheetName(a.sheetName);
|
|
21052
|
-
d && i.getSheetId() !== d.getSheetId() && (i = d, await this._cmdSrv.executeCommand(
|
|
21053
|
+
d && i.getSheetId() !== d.getSheetId() && (i = d, await this._cmdSrv.executeCommand(vd.id, {
|
|
21053
21054
|
subUnitId: i.getSheetId(),
|
|
21054
21055
|
unitId: e
|
|
21055
21056
|
}));
|
|
@@ -21240,7 +21241,7 @@ var UR = Object.getOwnPropertyDescriptor, XR = (r, e, t, n) => {
|
|
|
21240
21241
|
(s = r[o]) && (i = s(i) || i);
|
|
21241
21242
|
return i;
|
|
21242
21243
|
}, eo = (r, e) => (t, n) => e(t, n, r);
|
|
21243
|
-
const
|
|
21244
|
+
const Ah = "SHEET_FORCE_STRING_ALERT";
|
|
21244
21245
|
let vl = class extends se {
|
|
21245
21246
|
constructor(r, e, t, n, i, o) {
|
|
21246
21247
|
super(), this._context = r, this._hoverManagerService = e, this._cellAlertManagerService = t, this._localeService = n, this._zenZoneService = i, this._configService = o, this._init();
|
|
@@ -21252,22 +21253,27 @@ let vl = class extends se {
|
|
|
21252
21253
|
this.disposeWithMe(this._hoverManagerService.currentCell$.subscribe((r) => {
|
|
21253
21254
|
var e, t;
|
|
21254
21255
|
if (r) {
|
|
21255
|
-
const
|
|
21256
|
-
if (!
|
|
21257
|
-
const
|
|
21258
|
-
if (!
|
|
21259
|
-
if ((
|
|
21260
|
-
const
|
|
21261
|
-
|
|
21256
|
+
const n = r.location, o = this._context.unit.getActiveSheet();
|
|
21257
|
+
if (!o) return;
|
|
21258
|
+
const s = o.getCell(n.row, n.col);
|
|
21259
|
+
if (!s || s.v === null || s.v === void 0) return;
|
|
21260
|
+
if ((s.t === yt.FORCE_STRING || s.t === yt.STRING) && (Qh(s.v) || typeof s.v == "string" && Wt.parseNumber(s.v))) {
|
|
21261
|
+
const l = this._cellAlertManagerService.currentAlert;
|
|
21262
|
+
for (const [a, c] of l.entries()) {
|
|
21263
|
+
const d = (e = c == null ? void 0 : c.alert) == null ? void 0 : e.location;
|
|
21264
|
+
if (d && d.row === n.row && d.col === n.col && d.subUnitId === n.subUnitId && d.unitId === n.unitId)
|
|
21265
|
+
return;
|
|
21266
|
+
}
|
|
21267
|
+
if ((t = this._configService.getConfig(At)) != null && t.disableForceStringAlert)
|
|
21262
21268
|
return;
|
|
21263
21269
|
this._cellAlertManagerService.showAlert({
|
|
21264
21270
|
type: po.ERROR,
|
|
21265
21271
|
title: this._localeService.t("info.error"),
|
|
21266
21272
|
message: this._localeService.t("info.forceStringInfo"),
|
|
21267
|
-
location:
|
|
21273
|
+
location: n,
|
|
21268
21274
|
width: 200,
|
|
21269
21275
|
height: 74,
|
|
21270
|
-
key:
|
|
21276
|
+
key: Ah
|
|
21271
21277
|
});
|
|
21272
21278
|
return;
|
|
21273
21279
|
}
|
|
@@ -21281,7 +21287,7 @@ let vl = class extends se {
|
|
|
21281
21287
|
}));
|
|
21282
21288
|
}
|
|
21283
21289
|
_hideAlert() {
|
|
21284
|
-
this._cellAlertManagerService.removeAlert(
|
|
21290
|
+
this._cellAlertManagerService.removeAlert(Ah);
|
|
21285
21291
|
}
|
|
21286
21292
|
};
|
|
21287
21293
|
vl = XR([
|
|
@@ -21295,7 +21301,7 @@ var zR = Object.getOwnPropertyDescriptor, jR = (r, e, t, n) => {
|
|
|
21295
21301
|
for (var i = n > 1 ? void 0 : n ? zR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
21296
21302
|
(s = r[o]) && (i = s(i) || i);
|
|
21297
21303
|
return i;
|
|
21298
|
-
},
|
|
21304
|
+
}, mc = (r, e) => (t, n) => e(t, n, r);
|
|
21299
21305
|
let Sl = class extends kn {
|
|
21300
21306
|
constructor(r, e, t, n) {
|
|
21301
21307
|
super(), this._context = r, this._sheetSkeletonManagerService = e, this._sheetInterceptorService = t, this._configService = n, this._initViewModelIntercept();
|
|
@@ -21332,9 +21338,9 @@ let Sl = class extends kn {
|
|
|
21332
21338
|
}
|
|
21333
21339
|
};
|
|
21334
21340
|
Sl = jR([
|
|
21335
|
-
|
|
21336
|
-
|
|
21337
|
-
|
|
21341
|
+
mc(1, N(de)),
|
|
21342
|
+
mc(2, N(vn)),
|
|
21343
|
+
mc(3, Bt)
|
|
21338
21344
|
], Sl);
|
|
21339
21345
|
var YR = Object.getOwnPropertyDescriptor, ZR = (r, e, t, n) => {
|
|
21340
21346
|
for (var i = n > 1 ? void 0 : n ? YR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -21525,7 +21531,7 @@ var GR = Object.getOwnPropertyDescriptor, qR = (r, e, t, n) => {
|
|
|
21525
21531
|
for (var i = n > 1 ? void 0 : n ? GR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
21526
21532
|
(s = r[o]) && (i = s(i) || i);
|
|
21527
21533
|
return i;
|
|
21528
|
-
},
|
|
21534
|
+
}, fc = (r, e) => (t, n) => e(t, n, r);
|
|
21529
21535
|
let Cl = class extends se {
|
|
21530
21536
|
constructor(r, e, t, n) {
|
|
21531
21537
|
super(), this._context = r, this._markSelectionService = e, this._commandService = t, this._sheetSkeletonManagerService = n, this._initListeners();
|
|
@@ -21550,9 +21556,9 @@ let Cl = class extends se {
|
|
|
21550
21556
|
}
|
|
21551
21557
|
};
|
|
21552
21558
|
Cl = qR([
|
|
21553
|
-
|
|
21554
|
-
|
|
21555
|
-
|
|
21559
|
+
fc(1, N(Wi)),
|
|
21560
|
+
fc(2, W),
|
|
21561
|
+
fc(3, N(de))
|
|
21556
21562
|
], Cl);
|
|
21557
21563
|
function QR() {
|
|
21558
21564
|
const r = kr();
|
|
@@ -21588,9 +21594,9 @@ function KR(r) {
|
|
|
21588
21594
|
switch (u.id) {
|
|
21589
21595
|
case nr.id:
|
|
21590
21596
|
case On.id:
|
|
21591
|
-
case vd.id:
|
|
21592
|
-
case xr.id:
|
|
21593
21597
|
case pd.id:
|
|
21598
|
+
case xr.id:
|
|
21599
|
+
case fd.id:
|
|
21594
21600
|
case nt.id:
|
|
21595
21601
|
a();
|
|
21596
21602
|
break;
|
|
@@ -21614,7 +21620,7 @@ function KR(r) {
|
|
|
21614
21620
|
univer-whitespace-nowrap univer-px-1 univer-py-0.5 univer-text-center univer-text-xs
|
|
21615
21621
|
univer-leading-7
|
|
21616
21622
|
`,
|
|
21617
|
-
|
|
21623
|
+
Hd,
|
|
21618
21624
|
{
|
|
21619
21625
|
"univer-bg-white univer-text-primary-600 dark:!univer-bg-slate-600": d.sheetId === i
|
|
21620
21626
|
}
|
|
@@ -21691,14 +21697,14 @@ let wl = class extends se {
|
|
|
21691
21697
|
}
|
|
21692
21698
|
_initComponents() {
|
|
21693
21699
|
const r = this._componentManager;
|
|
21694
|
-
this.disposeWithMe(r.register(Sn, Cf)), this.disposeWithMe(r.register(
|
|
21700
|
+
this.disposeWithMe(r.register(Sn, Cf)), this.disposeWithMe(r.register(ou, Ef)), this.disposeWithMe(r.register(xo, Pf)), this.disposeWithMe(r.register(cu, Tf)), this.disposeWithMe(r.register("HideGridlinesDoubleIcon", ru));
|
|
21695
21701
|
}
|
|
21696
21702
|
_initCommands() {
|
|
21697
21703
|
[
|
|
21698
|
-
|
|
21704
|
+
su,
|
|
21699
21705
|
sr,
|
|
21700
|
-
cu,
|
|
21701
21706
|
au,
|
|
21707
|
+
lu,
|
|
21702
21708
|
is,
|
|
21703
21709
|
Gt,
|
|
21704
21710
|
Ut,
|
|
@@ -21712,8 +21718,8 @@ let wl = class extends se {
|
|
|
21712
21718
|
mn,
|
|
21713
21719
|
Em,
|
|
21714
21720
|
Ra,
|
|
21715
|
-
|
|
21716
|
-
|
|
21721
|
+
Qd,
|
|
21722
|
+
ld,
|
|
21717
21723
|
wi,
|
|
21718
21724
|
tt,
|
|
21719
21725
|
Ea,
|
|
@@ -21726,13 +21732,13 @@ let wl = class extends se {
|
|
|
21726
21732
|
ua,
|
|
21727
21733
|
ha,
|
|
21728
21734
|
Io,
|
|
21729
|
-
|
|
21730
|
-
|
|
21731
|
-
|
|
21732
|
-
gd,
|
|
21735
|
+
Zd,
|
|
21736
|
+
ad,
|
|
21737
|
+
dd,
|
|
21733
21738
|
hd,
|
|
21739
|
+
ud,
|
|
21734
21740
|
Ca,
|
|
21735
|
-
|
|
21741
|
+
Gd,
|
|
21736
21742
|
ns,
|
|
21737
21743
|
wa,
|
|
21738
21744
|
gn,
|
|
@@ -21740,8 +21746,8 @@ let wl = class extends se {
|
|
|
21740
21746
|
$n,
|
|
21741
21747
|
ba,
|
|
21742
21748
|
_a,
|
|
21743
|
-
|
|
21744
|
-
|
|
21749
|
+
Kd,
|
|
21750
|
+
cd,
|
|
21745
21751
|
os,
|
|
21746
21752
|
Jt,
|
|
21747
21753
|
Ia,
|
|
@@ -21750,7 +21756,7 @@ let wl = class extends se {
|
|
|
21750
21756
|
pi,
|
|
21751
21757
|
ts,
|
|
21752
21758
|
es,
|
|
21753
|
-
|
|
21759
|
+
Jd,
|
|
21754
21760
|
gr,
|
|
21755
21761
|
_o,
|
|
21756
21762
|
// permission
|
|
@@ -21851,18 +21857,18 @@ let wl = class extends se {
|
|
|
21851
21857
|
wl = eI([
|
|
21852
21858
|
zn(0, N(Rt)),
|
|
21853
21859
|
zn(1, N(Nt)),
|
|
21854
|
-
zn(2,
|
|
21860
|
+
zn(2, Md),
|
|
21855
21861
|
zn(3, W),
|
|
21856
21862
|
zn(4, ta),
|
|
21857
|
-
zn(5,
|
|
21858
|
-
zn(6,
|
|
21863
|
+
zn(5, yd),
|
|
21864
|
+
zn(6, Pd),
|
|
21859
21865
|
zn(7, Bt)
|
|
21860
21866
|
], wl);
|
|
21861
21867
|
var tI = Object.getOwnPropertyDescriptor, nI = (r, e, t, n) => {
|
|
21862
21868
|
for (var i = n > 1 ? void 0 : n ? tI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
21863
21869
|
(s = r[o]) && (i = s(i) || i);
|
|
21864
21870
|
return i;
|
|
21865
|
-
},
|
|
21871
|
+
}, pc = (r, e) => (t, n) => e(t, n, r);
|
|
21866
21872
|
let bl = class extends se {
|
|
21867
21873
|
constructor(e, t, n, i) {
|
|
21868
21874
|
super();
|
|
@@ -21913,9 +21919,9 @@ let bl = class extends se {
|
|
|
21913
21919
|
}
|
|
21914
21920
|
};
|
|
21915
21921
|
bl = nI([
|
|
21916
|
-
|
|
21917
|
-
|
|
21918
|
-
|
|
21922
|
+
pc(1, N(gt)),
|
|
21923
|
+
pc(2, N(Q)),
|
|
21924
|
+
pc(3, N(W))
|
|
21919
21925
|
], bl);
|
|
21920
21926
|
var rI = Object.getOwnPropertyDescriptor, iI = (r, e, t, n) => {
|
|
21921
21927
|
for (var i = n > 1 ? void 0 : n ? rI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -22073,7 +22079,7 @@ _l = lI([
|
|
|
22073
22079
|
_n(6, gt),
|
|
22074
22080
|
_n(7, N(Vo)),
|
|
22075
22081
|
_n(8, N(Yo)),
|
|
22076
|
-
_n(9,
|
|
22082
|
+
_n(9, od(ko))
|
|
22077
22083
|
], _l);
|
|
22078
22084
|
var aI = Object.getOwnPropertyDescriptor, cI = (r, e, t, n) => {
|
|
22079
22085
|
for (var i = n > 1 ? void 0 : n ? aI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -22125,7 +22131,7 @@ Hi = cI([
|
|
|
22125
22131
|
to(1, N(Q)),
|
|
22126
22132
|
to(2, N(xe)),
|
|
22127
22133
|
to(3, N(nn)),
|
|
22128
|
-
to(4, N(
|
|
22134
|
+
to(4, N(Cd))
|
|
22129
22135
|
], Hi);
|
|
22130
22136
|
var uI = Object.getOwnPropertyDescriptor, hI = (r, e, t, n) => {
|
|
22131
22137
|
for (var i = n > 1 ? void 0 : n ? uI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -22152,7 +22158,7 @@ let Rl = class extends kn {
|
|
|
22152
22158
|
const d = c.getArrayValue();
|
|
22153
22159
|
d.forEach((u, h) => {
|
|
22154
22160
|
u.forEach((g, m) => {
|
|
22155
|
-
d[h][m] =
|
|
22161
|
+
d[h][m] = Ou.create();
|
|
22156
22162
|
});
|
|
22157
22163
|
});
|
|
22158
22164
|
}) : t.forEach((c) => {
|
|
@@ -22163,7 +22169,7 @@ let Rl = class extends kn {
|
|
|
22163
22169
|
if (((w = i.getCellRaw(m + u, v + h)) == null ? void 0 : w.v) === void 0)
|
|
22164
22170
|
return;
|
|
22165
22171
|
const C = this._rangeProtectionCache.getCellInfo(o, s, m + u, v + h);
|
|
22166
|
-
(C == null ? void 0 : C[ue.View]) === !1 && (d[m][v] =
|
|
22172
|
+
(C == null ? void 0 : C[ue.View]) === !1 && (d[m][v] = Ou.create());
|
|
22167
22173
|
});
|
|
22168
22174
|
});
|
|
22169
22175
|
}), t;
|
|
@@ -22443,7 +22449,7 @@ const vp = (r, e, t, n, i) => {
|
|
|
22443
22449
|
})() : (c.setSelectUserList([]), c.setOldCollaboratorList([]));
|
|
22444
22450
|
}, []), /* @__PURE__ */ q(Jo, { children: [
|
|
22445
22451
|
/* @__PURE__ */ b(Zs, { className: "univer-font-medium", label: s.t("permission.panel.editPermission"), children: /* @__PURE__ */ q(
|
|
22446
|
-
|
|
22452
|
+
kc,
|
|
22447
22453
|
{
|
|
22448
22454
|
value: e,
|
|
22449
22455
|
onChange: (p) => t(p),
|
|
@@ -22471,7 +22477,7 @@ const vp = (r, e, t, n, i) => {
|
|
|
22471
22477
|
{
|
|
22472
22478
|
className: "univer-mb-3 univer-flex univer-h-7 univer-items-center univer-leading-7 last:univer-mb-0",
|
|
22473
22479
|
children: [
|
|
22474
|
-
/* @__PURE__ */ b(
|
|
22480
|
+
/* @__PURE__ */ b(Vd, { size: 24, src: (C = p.subject) == null ? void 0 : C.avatar }),
|
|
22475
22481
|
/* @__PURE__ */ b(
|
|
22476
22482
|
"span",
|
|
22477
22483
|
{
|
|
@@ -22521,7 +22527,7 @@ const vp = (r, e, t, n, i) => {
|
|
|
22521
22527
|
}
|
|
22522
22528
|
),
|
|
22523
22529
|
/* @__PURE__ */ b(Zs, { className: "univer-font-medium", label: s.t("permission.panel.viewPermission"), children: /* @__PURE__ */ q(
|
|
22524
|
-
|
|
22530
|
+
kc,
|
|
22525
22531
|
{
|
|
22526
22532
|
value: n,
|
|
22527
22533
|
onChange: (p) => i(p),
|
|
@@ -22747,7 +22753,7 @@ function bI() {
|
|
|
22747
22753
|
{
|
|
22748
22754
|
className: "univer-box-border univer-h-6 univer-rounded-sm univer-p-1 hover:univer-bg-gray-200",
|
|
22749
22755
|
onClick: () => T(V),
|
|
22750
|
-
children: /* @__PURE__ */ b(
|
|
22756
|
+
children: /* @__PURE__ */ b(nu, {})
|
|
22751
22757
|
}
|
|
22752
22758
|
) }),
|
|
22753
22759
|
be && /* @__PURE__ */ b(Zn, { title: s.t("permission.panel.delete"), children: /* @__PURE__ */ b(
|
|
@@ -22763,7 +22769,7 @@ function bI() {
|
|
|
22763
22769
|
/* @__PURE__ */ b("div", { className: "univer-my-2 univer-h-px univer-bg-gray-200" }),
|
|
22764
22770
|
/* @__PURE__ */ q("div", { children: [
|
|
22765
22771
|
/* @__PURE__ */ q("div", { className: "univer-flex univer-items-center", children: [
|
|
22766
|
-
/* @__PURE__ */ b(Zn, { title: (me = (Ue = x.creator) == null ? void 0 : Ue.name) != null ? me : "", children: /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(
|
|
22772
|
+
/* @__PURE__ */ b(Zn, { title: (me = (Ue = x.creator) == null ? void 0 : Ue.name) != null ? me : "", children: /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(Vd, { src: (_e = x.creator) == null ? void 0 : _e.avatar, className: "univer-mr-1.5", size: 24 }) }) }),
|
|
22767
22773
|
/* @__PURE__ */ b(
|
|
22768
22774
|
"span",
|
|
22769
22775
|
{
|
|
@@ -23047,7 +23053,7 @@ const _I = ({ showDetail: r, fromSheetBar: e, rule: t, oldRule: n }) => {
|
|
|
23047
23053
|
className: "univer-my-2 univer-flex univer-items-center univer-rounded-md hover:univer-bg-gray-50",
|
|
23048
23054
|
onClick: () => c(u),
|
|
23049
23055
|
children: [
|
|
23050
|
-
/* @__PURE__ */ b(
|
|
23056
|
+
/* @__PURE__ */ b(Vd, { src: (h = u.subject) == null ? void 0 : h.avatar, size: 24 }),
|
|
23051
23057
|
/* @__PURE__ */ b("div", { className: "univer-ml-1.5 univer-flex-1", children: (g = u.subject) == null ? void 0 : g.name }),
|
|
23052
23058
|
(l == null ? void 0 : l.findIndex((f) => {
|
|
23053
23059
|
var v, p;
|
|
@@ -23172,7 +23178,7 @@ class AI extends jg {
|
|
|
23172
23178
|
this.Z_INDEX = t;
|
|
23173
23179
|
}
|
|
23174
23180
|
}
|
|
23175
|
-
var HI = Object.getOwnPropertyDescriptor,
|
|
23181
|
+
var HI = Object.getOwnPropertyDescriptor, du = (r, e, t, n) => {
|
|
23176
23182
|
for (var i = n > 1 ? void 0 : n ? HI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
23177
23183
|
(s = r[o]) && (i = s(i) || i);
|
|
23178
23184
|
return i;
|
|
@@ -23188,9 +23194,9 @@ let Vi = class extends se {
|
|
|
23188
23194
|
[
|
|
23189
23195
|
[ym, Xm],
|
|
23190
23196
|
[Y1, Pa],
|
|
23191
|
-
[Z1,
|
|
23197
|
+
[Z1, nu],
|
|
23192
23198
|
[G1, Dr],
|
|
23193
|
-
[Mm,
|
|
23199
|
+
[Mm, tu],
|
|
23194
23200
|
[yo, _I],
|
|
23195
23201
|
[Rm, yI],
|
|
23196
23202
|
[Im, II],
|
|
@@ -23214,7 +23220,7 @@ let Vi = class extends se {
|
|
|
23214
23220
|
}
|
|
23215
23221
|
}
|
|
23216
23222
|
};
|
|
23217
|
-
Vi =
|
|
23223
|
+
Vi = du([
|
|
23218
23224
|
an(0, N(Rt)),
|
|
23219
23225
|
an(1, N(Nt))
|
|
23220
23226
|
], Vi);
|
|
@@ -23246,7 +23252,7 @@ let Il = class extends se {
|
|
|
23246
23252
|
).pipe().subscribe(e));
|
|
23247
23253
|
}
|
|
23248
23254
|
};
|
|
23249
|
-
Il =
|
|
23255
|
+
Il = du([
|
|
23250
23256
|
an(1, N($e)),
|
|
23251
23257
|
an(2, N(de)),
|
|
23252
23258
|
an(3, rt),
|
|
@@ -23274,7 +23280,7 @@ let yl = class extends se {
|
|
|
23274
23280
|
).pipe().subscribe(e));
|
|
23275
23281
|
}
|
|
23276
23282
|
};
|
|
23277
|
-
yl =
|
|
23283
|
+
yl = du([
|
|
23278
23284
|
an(1, N(ve)),
|
|
23279
23285
|
an(2, N(de)),
|
|
23280
23286
|
an(3, N(ft)),
|
|
@@ -23284,7 +23290,7 @@ var VI = Object.getOwnPropertyDescriptor, NI = (r, e, t, n) => {
|
|
|
23284
23290
|
for (var i = n > 1 ? void 0 : n ? VI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
23285
23291
|
(s = r[o]) && (i = s(i) || i);
|
|
23286
23292
|
return i;
|
|
23287
|
-
},
|
|
23293
|
+
}, vc = (r, e) => (t, n) => e(t, n, r);
|
|
23288
23294
|
let Ml = class extends se {
|
|
23289
23295
|
constructor(r, e, t, n) {
|
|
23290
23296
|
super(), this._context = r, this._sheetSkeletonManagerService = e, this._sheetClipboardService = t, this._sheetClipboardController = n, this._initialize();
|
|
@@ -23301,15 +23307,15 @@ let Ml = class extends se {
|
|
|
23301
23307
|
}
|
|
23302
23308
|
};
|
|
23303
23309
|
Ml = NI([
|
|
23304
|
-
|
|
23305
|
-
|
|
23306
|
-
|
|
23310
|
+
vc(1, N(de)),
|
|
23311
|
+
vc(2, nn),
|
|
23312
|
+
vc(3, N(Tr))
|
|
23307
23313
|
], Ml);
|
|
23308
23314
|
var kI = Object.getOwnPropertyDescriptor, DI = (r, e, t, n) => {
|
|
23309
23315
|
for (var i = n > 1 ? void 0 : n ? kI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
23310
23316
|
(s = r[o]) && (i = s(i) || i);
|
|
23311
23317
|
return i;
|
|
23312
|
-
},
|
|
23318
|
+
}, Sc = (r, e) => (t, n) => e(t, n, r);
|
|
23313
23319
|
let El = class extends se {
|
|
23314
23320
|
constructor(r, e, t, n) {
|
|
23315
23321
|
super(), this._context = r, this._formatPainterService = e, this._selectionRenderService = t, this._commandService = n, this._initialize();
|
|
@@ -23347,13 +23353,13 @@ let El = class extends se {
|
|
|
23347
23353
|
}
|
|
23348
23354
|
};
|
|
23349
23355
|
El = DI([
|
|
23350
|
-
|
|
23351
|
-
|
|
23352
|
-
|
|
23356
|
+
Sc(1, Dn),
|
|
23357
|
+
Sc(2, gt),
|
|
23358
|
+
Sc(3, W)
|
|
23353
23359
|
], El);
|
|
23354
|
-
var
|
|
23360
|
+
var Kc = /* @__PURE__ */ ((r) => (r[r.NORMAL = 0] = "NORMAL", r[r.HIGHLIGHT = 1] = "HIGHLIGHT", r))(Kc || {});
|
|
23355
23361
|
const LI = "rgba(0, 0, 0, 0.15)", In = "rgb(0, 0, 0)", Is = "rgb(255, 255, 255, 1)";
|
|
23356
|
-
class WI extends
|
|
23362
|
+
class WI extends Id {
|
|
23357
23363
|
constructor(t, n) {
|
|
23358
23364
|
super(t, n);
|
|
23359
23365
|
_(this, "_size", 12);
|
|
@@ -23481,12 +23487,12 @@ let Tl = class extends se {
|
|
|
23481
23487
|
_initialHoverMenu() {
|
|
23482
23488
|
this._hoverMenu != null && (this._hoverMenu.onPointerEnter$.subscribeEvent(() => {
|
|
23483
23489
|
this._hoverMenu != null && (this._hoverMenu.setProps({
|
|
23484
|
-
mode:
|
|
23490
|
+
mode: Kc.HIGHLIGHT,
|
|
23485
23491
|
visible: !0
|
|
23486
23492
|
}), this._context.scene.setCursor(ye.POINTER));
|
|
23487
23493
|
}), this._hoverMenu.onPointerLeave$.subscribeEvent(() => {
|
|
23488
23494
|
this._hoverMenu != null && (this._hoverMenu.setProps({
|
|
23489
|
-
mode:
|
|
23495
|
+
mode: Kc.NORMAL,
|
|
23490
23496
|
visible: !1
|
|
23491
23497
|
}), this._context.scene.resetCursor());
|
|
23492
23498
|
}), this._hoverMenu.onPointerDown$.subscribeEvent((e) => {
|
|
@@ -23536,13 +23542,13 @@ let Tl = class extends se {
|
|
|
23536
23542
|
};
|
|
23537
23543
|
Tl = FI([
|
|
23538
23544
|
ys(1, N(de)),
|
|
23539
|
-
ys(2,
|
|
23545
|
+
ys(2, Ed),
|
|
23540
23546
|
ys(3, W),
|
|
23541
23547
|
ys(4, N(Q))
|
|
23542
23548
|
], Tl);
|
|
23543
|
-
var
|
|
23549
|
+
var Jc = /* @__PURE__ */ ((r) => (r[r.ROW = 0] = "ROW", r[r.COLUMN = 1] = "COLUMN", r))(Jc || {});
|
|
23544
23550
|
const ao = 12, jI = 0.4;
|
|
23545
|
-
class Vh extends
|
|
23551
|
+
class Vh extends Id {
|
|
23546
23552
|
constructor(t, n, i) {
|
|
23547
23553
|
super(t, n);
|
|
23548
23554
|
_(this, "_size", ao);
|
|
@@ -23682,11 +23688,11 @@ let Pl = class extends kn {
|
|
|
23682
23688
|
const n = (h = this._sheetSkeletonManagerService.getSkeletonParam(t.getSheetId())) == null ? void 0 : h.skeleton;
|
|
23683
23689
|
if (!n) return;
|
|
23684
23690
|
const i = t.getHiddenRows(), o = t.getHiddenCols(), s = this._getSheetObject(), { scene: l } = s, a = t.getRowCount(), c = i.map((g) => {
|
|
23685
|
-
const { startRow: m, endRow: f } = g, v =
|
|
23691
|
+
const { startRow: m, endRow: f } = g, v = th(m, 0, l, n), p = m !== 0, C = f !== a - 1;
|
|
23686
23692
|
return new Vh(
|
|
23687
23693
|
kh,
|
|
23688
23694
|
{
|
|
23689
|
-
type:
|
|
23695
|
+
type: Jc.ROW,
|
|
23690
23696
|
hovered: !1,
|
|
23691
23697
|
hasPrevious: p,
|
|
23692
23698
|
hasNext: C,
|
|
@@ -23703,11 +23709,11 @@ let Pl = class extends kn {
|
|
|
23703
23709
|
)
|
|
23704
23710
|
);
|
|
23705
23711
|
}), d = t.getColumnCount(), u = o.map((g) => {
|
|
23706
|
-
const { startColumn: m, endColumn: f } = g, v =
|
|
23712
|
+
const { startColumn: m, endColumn: f } = g, v = th(0, m, l, n), p = m !== 0, C = f !== d - 1;
|
|
23707
23713
|
return new Vh(
|
|
23708
23714
|
kh,
|
|
23709
23715
|
{
|
|
23710
|
-
type:
|
|
23716
|
+
type: Jc.COLUMN,
|
|
23711
23717
|
hovered: !1,
|
|
23712
23718
|
hasPrevious: p,
|
|
23713
23719
|
hasNext: C,
|
|
@@ -23724,7 +23730,7 @@ let Pl = class extends kn {
|
|
|
23724
23730
|
)
|
|
23725
23731
|
);
|
|
23726
23732
|
});
|
|
23727
|
-
l.addObjects(u,
|
|
23733
|
+
l.addObjects(u, Vu), l.addObjects(c, Vu), this._clearShapes(), this._shapes = { cols: u, rows: c };
|
|
23728
23734
|
}
|
|
23729
23735
|
_clearShapes() {
|
|
23730
23736
|
this._shapes.cols.forEach((e) => e.dispose()), this._shapes.rows.forEach((e) => e.dispose()), this._shapes = { cols: [], rows: [] };
|
|
@@ -23743,7 +23749,7 @@ var GI = Object.getOwnPropertyDescriptor, qI = (r, e, t, n) => {
|
|
|
23743
23749
|
return i;
|
|
23744
23750
|
}, jr = (r, e) => (t, n) => e(t, n, r);
|
|
23745
23751
|
const QI = [Ut.id, Wn.id];
|
|
23746
|
-
let
|
|
23752
|
+
let $c = class extends se {
|
|
23747
23753
|
constructor(r, e, t, n, i, o, s) {
|
|
23748
23754
|
super(), this._context = r, this._sheetSkeletonManagerService = e, this._commandService = t, this._renderManagerService = n, this._selectionManagerService = i, this._scrollManagerService = o, this._univerInstanceService = s, this._init();
|
|
23749
23755
|
}
|
|
@@ -23764,7 +23770,7 @@ let ed = class extends se {
|
|
|
23764
23770
|
this._commandService.onCommandExecuted((r) => {
|
|
23765
23771
|
if (QI.includes(r.id))
|
|
23766
23772
|
this._scrollToSelection();
|
|
23767
|
-
else if (r.id ===
|
|
23773
|
+
else if (r.id === gd.id) {
|
|
23768
23774
|
const e = r.params.range;
|
|
23769
23775
|
this.scrollToRange(e);
|
|
23770
23776
|
} else if (r.id === Gt.id) {
|
|
@@ -24028,14 +24034,14 @@ let ed = class extends se {
|
|
|
24028
24034
|
});
|
|
24029
24035
|
}
|
|
24030
24036
|
};
|
|
24031
|
-
|
|
24037
|
+
$c = qI([
|
|
24032
24038
|
jr(1, N(de)),
|
|
24033
24039
|
jr(2, W),
|
|
24034
24040
|
jr(3, ve),
|
|
24035
24041
|
jr(4, N(Q)),
|
|
24036
24042
|
jr(5, N(Et)),
|
|
24037
24043
|
jr(6, k)
|
|
24038
|
-
],
|
|
24044
|
+
], $c);
|
|
24039
24045
|
var KI = Object.getOwnPropertyDescriptor, JI = (r, e, t, n) => {
|
|
24040
24046
|
for (var i = n > 1 ? void 0 : n ? KI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
24041
24047
|
(s = r[o]) && (i = s(i) || i);
|
|
@@ -24267,7 +24273,7 @@ function iy(r) {
|
|
|
24267
24273
|
return r.split(",").filter(Boolean);
|
|
24268
24274
|
}
|
|
24269
24275
|
function oy(r) {
|
|
24270
|
-
const { value: e, onChange: t, multiple: n, options: i, title: o, onEdit: s, filter: l, style: a, location: c, showEdit: d } = r, u = L(xe), h = l == null ? void 0 : l.toLowerCase(), { row: g, col: m, unitId: f, subUnitId: v } = c, p = i.filter((S) => h ? S.label.toLowerCase().includes(h) : !0), C = L(
|
|
24276
|
+
const { value: e, onChange: t, multiple: n, options: i, title: o, onEdit: s, filter: l, style: a, location: c, showEdit: d } = r, u = L(xe), h = l == null ? void 0 : l.toLowerCase(), { row: g, col: m, unitId: f, subUnitId: v } = c, p = i.filter((S) => h ? S.label.toLowerCase().includes(h) : !0), C = L(Cd), w = Ct(() => C.permissionCheckWithRanges(
|
|
24271
24277
|
{
|
|
24272
24278
|
workbookTypes: [K],
|
|
24273
24279
|
rangeTypes: [ie],
|
|
@@ -24468,7 +24474,7 @@ class Pp extends se {
|
|
|
24468
24474
|
return this._printComponentMap.get(t);
|
|
24469
24475
|
}
|
|
24470
24476
|
}
|
|
24471
|
-
class uy extends
|
|
24477
|
+
class uy extends Dd {
|
|
24472
24478
|
constructor(t, n, i, o) {
|
|
24473
24479
|
super(t, n, i, o);
|
|
24474
24480
|
/**
|
|
@@ -24484,7 +24490,7 @@ class uy extends Ld {
|
|
|
24484
24490
|
}
|
|
24485
24491
|
initControlPoints() {
|
|
24486
24492
|
const t = this.currentStyle, n = t.expandCornerSize || 0, i = (t.expandCornerSize || 0) / 4, o = t.autofillStrokeWidth || 0, s = t.stroke, l = t.autofillStroke, a = this.zIndex;
|
|
24487
|
-
this._fillControlTopLeft = new Se(
|
|
24493
|
+
this._fillControlTopLeft = new Se(Bc.fillTopLeft + a, {
|
|
24488
24494
|
zIndex: a + 2,
|
|
24489
24495
|
width: n,
|
|
24490
24496
|
height: n,
|
|
@@ -24492,7 +24498,7 @@ class uy extends Ld {
|
|
|
24492
24498
|
visualWidth: i,
|
|
24493
24499
|
visualHeight: i,
|
|
24494
24500
|
strokeWidth: o
|
|
24495
|
-
}), this._fillControlBottomRight = new Se(
|
|
24501
|
+
}), this._fillControlBottomRight = new Se(Bc.fillBottomRight + a, {
|
|
24496
24502
|
zIndex: a + 2,
|
|
24497
24503
|
width: n,
|
|
24498
24504
|
height: n,
|
|
@@ -24621,7 +24627,7 @@ var hy = Object.getOwnPropertyDescriptor, gy = (r, e, t, n) => {
|
|
|
24621
24627
|
(s = r[o]) && (i = s(i) || i);
|
|
24622
24628
|
return i;
|
|
24623
24629
|
}, Rn = (r, e) => (t, n) => e(t, n, r);
|
|
24624
|
-
let
|
|
24630
|
+
let ed = class extends am {
|
|
24625
24631
|
constructor(e, t, n, i, o, s, l, a, c, d) {
|
|
24626
24632
|
super(
|
|
24627
24633
|
t,
|
|
@@ -24652,7 +24658,7 @@ let td = class extends am {
|
|
|
24652
24658
|
this._changeRuntime(i, o, s), this._workbookSelections.getCurrentLastSelection() || this._commandService.syncExecuteCommand(Ie.id, {
|
|
24653
24659
|
unitId: t,
|
|
24654
24660
|
subUnitId: n,
|
|
24655
|
-
selections: [
|
|
24661
|
+
selections: [Ld(i)]
|
|
24656
24662
|
});
|
|
24657
24663
|
}));
|
|
24658
24664
|
}
|
|
@@ -24953,7 +24959,7 @@ let td = class extends am {
|
|
|
24953
24959
|
this.disposeWithMe(We(n));
|
|
24954
24960
|
}
|
|
24955
24961
|
};
|
|
24956
|
-
|
|
24962
|
+
ed = gy([
|
|
24957
24963
|
Rn(1, N(Rt)),
|
|
24958
24964
|
Rn(2, N(Ht)),
|
|
24959
24965
|
Rn(3, ta),
|
|
@@ -24963,7 +24969,7 @@ td = gy([
|
|
|
24963
24969
|
Rn(7, W),
|
|
24964
24970
|
Rn(8, De),
|
|
24965
24971
|
Rn(9, N(Et))
|
|
24966
|
-
],
|
|
24972
|
+
], ed);
|
|
24967
24973
|
var my = Object.defineProperty, fy = Object.getOwnPropertyDescriptor, py = (r, e, t) => e in r ? my(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, vy = (r, e, t, n) => {
|
|
24968
24974
|
for (var i = n > 1 ? void 0 : n ? fy(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
24969
24975
|
(s = r[o]) && (i = s(i) || i);
|
|
@@ -25001,7 +25007,7 @@ let Hl = class extends Jh {
|
|
|
25001
25007
|
[Dn, { useClass: ol }],
|
|
25002
25008
|
[ss, { useClass: Vm }],
|
|
25003
25009
|
[ls, { useClass: qm }],
|
|
25004
|
-
[
|
|
25010
|
+
[wd, { useClass: Xg }],
|
|
25005
25011
|
[Hr, { useClass: $s }],
|
|
25006
25012
|
[Pp],
|
|
25007
25013
|
[xa, { useClass: Qm }],
|
|
@@ -25011,7 +25017,7 @@ let Hl = class extends Jh {
|
|
|
25011
25017
|
[yi],
|
|
25012
25018
|
[Mi],
|
|
25013
25019
|
[Do],
|
|
25014
|
-
[
|
|
25020
|
+
[qd],
|
|
25015
25021
|
[Tp, { useClass: Al }],
|
|
25016
25022
|
[Ao],
|
|
25017
25023
|
// controllers
|
|
@@ -25075,7 +25081,7 @@ let Hl = class extends Jh {
|
|
|
25075
25081
|
[de],
|
|
25076
25082
|
[xl],
|
|
25077
25083
|
[ml],
|
|
25078
|
-
[gt, { useClass:
|
|
25084
|
+
[gt, { useClass: ed }],
|
|
25079
25085
|
[Et],
|
|
25080
25086
|
[Ol]
|
|
25081
25087
|
].forEach((r) => {
|
|
@@ -25092,7 +25098,7 @@ let Hl = class extends Jh {
|
|
|
25092
25098
|
[ko],
|
|
25093
25099
|
// TODO: Should not register these two Controllers at the same time
|
|
25094
25100
|
[Ci],
|
|
25095
|
-
[
|
|
25101
|
+
[$c],
|
|
25096
25102
|
[Vo],
|
|
25097
25103
|
[Po],
|
|
25098
25104
|
[El],
|
|
@@ -25137,8 +25143,8 @@ var Sy = Object.getOwnPropertyDescriptor, Cy = (r, e, t, n) => {
|
|
|
25137
25143
|
for (var i = n > 1 ? void 0 : n ? Sy(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
25138
25144
|
(s = r[o]) && (i = s(i) || i);
|
|
25139
25145
|
return i;
|
|
25140
|
-
},
|
|
25141
|
-
let
|
|
25146
|
+
}, Cc = (r, e) => (t, n) => e(t, n, r);
|
|
25147
|
+
let td = class extends se {
|
|
25142
25148
|
constructor(r, e, t, n) {
|
|
25143
25149
|
super(), this._context = r, this._contextMenuService = e, this._selectionManagerService = t, this._selectionRenderService = n, this._init();
|
|
25144
25150
|
}
|
|
@@ -25178,17 +25184,17 @@ let nd = class extends se {
|
|
|
25178
25184
|
this.disposeWithMe(s);
|
|
25179
25185
|
}
|
|
25180
25186
|
};
|
|
25181
|
-
|
|
25182
|
-
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
],
|
|
25187
|
+
td = Cy([
|
|
25188
|
+
Cc(1, Ed),
|
|
25189
|
+
Cc(2, N(Q)),
|
|
25190
|
+
Cc(3, gt)
|
|
25191
|
+
], td);
|
|
25186
25192
|
var wy = Object.getOwnPropertyDescriptor, by = (r, e, t, n) => {
|
|
25187
25193
|
for (var i = n > 1 ? void 0 : n ? wy(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
25188
25194
|
(s = r[o]) && (i = s(i) || i);
|
|
25189
25195
|
return i;
|
|
25190
25196
|
}, jn = (r, e) => (t, n) => e(t, n, r);
|
|
25191
|
-
let
|
|
25197
|
+
let nd = class extends am {
|
|
25192
25198
|
constructor(e, t, n, i, o, s, l, a, c) {
|
|
25193
25199
|
super(
|
|
25194
25200
|
t,
|
|
@@ -25327,7 +25333,7 @@ let rd = class extends am {
|
|
|
25327
25333
|
this._commandService.syncExecuteCommand(Ie.id, {
|
|
25328
25334
|
unitId: t,
|
|
25329
25335
|
subUnitId: n,
|
|
25330
|
-
selections: u.length !== 0 ? u : [
|
|
25336
|
+
selections: u.length !== 0 ? u : [Ld(i)]
|
|
25331
25337
|
});
|
|
25332
25338
|
}
|
|
25333
25339
|
const a = this._workbookSelections.getCurrentSelections();
|
|
@@ -25406,7 +25412,7 @@ let rd = class extends am {
|
|
|
25406
25412
|
}), (P = this._scene.getEngine()) == null || P.setCapture();
|
|
25407
25413
|
}
|
|
25408
25414
|
};
|
|
25409
|
-
|
|
25415
|
+
nd = by([
|
|
25410
25416
|
jn(1, N(Rt)),
|
|
25411
25417
|
jn(2, N(Ht)),
|
|
25412
25418
|
jn(3, ta),
|
|
@@ -25415,7 +25421,7 @@ rd = by([
|
|
|
25415
25421
|
jn(6, Ll),
|
|
25416
25422
|
jn(7, W),
|
|
25417
25423
|
jn(8, De)
|
|
25418
|
-
],
|
|
25424
|
+
], nd);
|
|
25419
25425
|
var _y = Object.defineProperty, Ry = Object.getOwnPropertyDescriptor, Iy = (r, e, t) => e in r ? _y(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, yy = (r, e, t, n) => {
|
|
25420
25426
|
for (var i = n > 1 ? void 0 : n ? Ry(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
25421
25427
|
(s = r[o]) && (i = s(i) || i);
|
|
@@ -25453,7 +25459,7 @@ let Vl = class extends Jh {
|
|
|
25453
25459
|
[Dn, { useClass: ol }],
|
|
25454
25460
|
[ss, { useClass: Vm }],
|
|
25455
25461
|
[ls, { useClass: qm }],
|
|
25456
|
-
[
|
|
25462
|
+
[wd, { useClass: Xg }],
|
|
25457
25463
|
[Hr, { useClass: $s }],
|
|
25458
25464
|
[Pp],
|
|
25459
25465
|
[xa, { useClass: Qm }],
|
|
@@ -25463,7 +25469,7 @@ let Vl = class extends Jh {
|
|
|
25463
25469
|
[yi],
|
|
25464
25470
|
[Mi],
|
|
25465
25471
|
[Do],
|
|
25466
|
-
[
|
|
25472
|
+
[qd],
|
|
25467
25473
|
[Tp, { useClass: Al }],
|
|
25468
25474
|
[Ao],
|
|
25469
25475
|
// controllers
|
|
@@ -25527,7 +25533,7 @@ let Vl = class extends Jh {
|
|
|
25527
25533
|
[de],
|
|
25528
25534
|
[xl],
|
|
25529
25535
|
[ml],
|
|
25530
|
-
[gt, { useClass:
|
|
25536
|
+
[gt, { useClass: nd }],
|
|
25531
25537
|
[Ol]
|
|
25532
25538
|
].forEach((r) => {
|
|
25533
25539
|
this.disposeWithMe(this._renderManagerService.registerRenderModule(O.UNIVER_SHEET, r));
|
|
@@ -25555,7 +25561,7 @@ let Vl = class extends Jh {
|
|
|
25555
25561
|
[al],
|
|
25556
25562
|
[Sl],
|
|
25557
25563
|
[ll],
|
|
25558
|
-
[
|
|
25564
|
+
[td],
|
|
25559
25565
|
[bl],
|
|
25560
25566
|
// editor
|
|
25561
25567
|
[Ho],
|
|
@@ -25677,7 +25683,7 @@ export {
|
|
|
25677
25683
|
Oo as DragManagerService,
|
|
25678
25684
|
al as DragRenderController,
|
|
25679
25685
|
G0 as EMBEDDING_FORMULA_EDITOR,
|
|
25680
|
-
|
|
25686
|
+
kd as EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY,
|
|
25681
25687
|
Ri as EditingRenderController,
|
|
25682
25688
|
sl as EditorBridgeService,
|
|
25683
25689
|
Gt as ExpandSelectionCommand,
|
|
@@ -25720,26 +25726,26 @@ export {
|
|
|
25720
25726
|
Jm as RenderSheetContent,
|
|
25721
25727
|
_0 as RenderSheetFooter,
|
|
25722
25728
|
R0 as RenderSheetHeader,
|
|
25723
|
-
|
|
25729
|
+
Zd as ResetRangeTextColorCommand,
|
|
25724
25730
|
Xy as ResetScrollCommand,
|
|
25725
25731
|
lm as SELECTION_SHAPE_DEPTH,
|
|
25726
25732
|
Yy as SHEET_UI_PLUGIN_NAME,
|
|
25727
25733
|
Ye as SHEET_VIEW_KEY,
|
|
25728
25734
|
mn as ScrollCommand,
|
|
25729
25735
|
Em as ScrollToCellCommand,
|
|
25730
|
-
|
|
25736
|
+
Kd as ScrollToRangeOperation,
|
|
25731
25737
|
Ra as SelectAllCommand,
|
|
25732
|
-
|
|
25733
|
-
|
|
25738
|
+
Dd as SelectionControl,
|
|
25739
|
+
Dd as SelectionShape,
|
|
25734
25740
|
PC as SelectionShapeExtension,
|
|
25735
|
-
|
|
25741
|
+
Qd as SetActivateCellEditOperation,
|
|
25736
25742
|
wi as SetCellEditVisibleArrowOperation,
|
|
25737
25743
|
tt as SetCellEditVisibleOperation,
|
|
25738
25744
|
Ea as SetCellEditVisibleWithF2Operation,
|
|
25739
25745
|
_a as SetColumnFrozenCommand,
|
|
25740
25746
|
sa as SetColumnHeaderHeightCommand,
|
|
25741
25747
|
Ca as SetFormatPainterOperation,
|
|
25742
|
-
|
|
25748
|
+
Gd as SetInfiniteFormatPainterCommand,
|
|
25743
25749
|
ns as SetOnceFormatPainterCommand,
|
|
25744
25750
|
Bi as SetRangeBoldCommand,
|
|
25745
25751
|
ha as SetRangeFontFamilyCommand,
|
|
@@ -25765,13 +25771,13 @@ export {
|
|
|
25765
25771
|
Ao as SheetCellEditorResizeService,
|
|
25766
25772
|
nl as SheetClipboardService,
|
|
25767
25773
|
un as SheetCopyCommand,
|
|
25768
|
-
|
|
25774
|
+
zd as SheetCutCommand,
|
|
25769
25775
|
Cb as SheetMenuPosition,
|
|
25770
25776
|
fo as SheetPasteBesidesBorderCommand,
|
|
25771
25777
|
ri as SheetPasteColWidthCommand,
|
|
25772
25778
|
hn as SheetPasteCommand,
|
|
25773
25779
|
mo as SheetPasteFormatCommand,
|
|
25774
|
-
|
|
25780
|
+
Uc as SheetPasteShortKeyCommand,
|
|
25775
25781
|
go as SheetPasteValueCommand,
|
|
25776
25782
|
Ii as SheetPermissionCheckUIController,
|
|
25777
25783
|
Pm as SheetPermissionOpenDialogOperation,
|
|
@@ -25780,7 +25786,7 @@ export {
|
|
|
25780
25786
|
Pp as SheetPrintInterceptorService,
|
|
25781
25787
|
ml as SheetRenderController,
|
|
25782
25788
|
Et as SheetScrollManagerService,
|
|
25783
|
-
|
|
25789
|
+
nd as SheetSelectionRenderService,
|
|
25784
25790
|
de as SheetSkeletonManagerService,
|
|
25785
25791
|
fl as SheetUIController,
|
|
25786
25792
|
ir as SheetsRenderService,
|
|
@@ -25788,7 +25794,7 @@ export {
|
|
|
25788
25794
|
p_ as SheetsUIMenuSchema,
|
|
25789
25795
|
Hm as SheetsUIPart,
|
|
25790
25796
|
Ia as ShowMenuListCommand,
|
|
25791
|
-
|
|
25797
|
+
Jd as SidebarDefinedNameOperation,
|
|
25792
25798
|
Er as StatusBarController,
|
|
25793
25799
|
Qm as StatusBarService,
|
|
25794
25800
|
ga as UNIVER_SHEET_PERMISSION_USER_PART,
|
|
@@ -25811,22 +25817,22 @@ export {
|
|
|
25811
25817
|
cm as getAllSelection,
|
|
25812
25818
|
By as getAutoFillRepeatRange,
|
|
25813
25819
|
Cw as getCellRealRange,
|
|
25814
|
-
|
|
25820
|
+
th as getCoordByCell,
|
|
25815
25821
|
Vn as getCoordByOffset,
|
|
25816
25822
|
ib as getCurrentExclusiveRangeInterest$,
|
|
25817
25823
|
he as getCurrentRangeDisable$,
|
|
25818
25824
|
Gy as getCustomRangePosition,
|
|
25819
25825
|
qy as getEditingCustomRangePosition,
|
|
25820
|
-
|
|
25826
|
+
Nd as getEditorObject,
|
|
25821
25827
|
V1 as getMatrixPlainText,
|
|
25822
25828
|
zi as getObservableWithExclusiveRange$,
|
|
25823
25829
|
Uy as getRepeatRange,
|
|
25824
25830
|
en as getSheetObject,
|
|
25825
|
-
|
|
25831
|
+
Ld as getTopLeftSelectionOfCurrSheet,
|
|
25826
25832
|
xs as getTransformCoord,
|
|
25827
25833
|
Zy as isEmbeddingFormulaEditor,
|
|
25828
25834
|
F0 as isRangeSelector,
|
|
25829
|
-
|
|
25835
|
+
Ku as mergeSetRangeValues,
|
|
25830
25836
|
kr as useActiveWorkbook,
|
|
25831
25837
|
zy as useActiveWorksheet,
|
|
25832
25838
|
fR as useHighlightRange,
|