@univerjs/sheets-ui 0.6.6-nightly.202503201607 → 0.6.6-nightly.202503221606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var wp = Object.defineProperty;
|
|
2
2
|
var Rp = (r, e, t) => e in r ? wp(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var _ = (r, e, t) => Rp(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { DOCS_VIEW_KEY as Ip, IEditorService as Hr, getCanvasOffsetByEngine as du, VIEWPORT_KEY as Es, DOCS_COMPONENT_MAIN_LAYER_INDEX as yp, BreakLineCommand as Mp, DeleteLeftCommand as Ep, DocSelectionRenderService as _r, ReplaceSnapshotCommand as Nh, MoveSelectionOperation as Pp, MoveCursorOperation as Tp, SetInlineFormatBoldCommand as Op, SetInlineFormatItalicCommand as xp, SetInlineFormatUnderlineCommand as Ap, SetInlineFormatStrikethroughCommand as Hp, SetInlineFormatSubscriptCommand as kp, SetInlineFormatSuperscriptCommand as Vp, SetInlineFormatFontSizeCommand as Np, SetInlineFormatFontFamilyCommand as Dp, SetInlineFormatTextColorCommand as Dh, SetInlineFormatCommand as
|
|
5
|
-
import { CommandType as Q, createInterceptorKey as cr, ColorKit as
|
|
6
|
-
import { IRenderManagerService as be, withCurrentTypeOfRenderer as hd, SHEET_VIEWPORT_KEY as U, CURSOR_TYPE as ye, Vector2 as ke, Rect as Ce, ScrollTimer as ri, ScrollTimerType as Pt, DashedRect as aS, Group as Ca, TRANSFORM_CHANGE_OBSERVABLE_TYPE as fc, cancelRequestFrame as cS, requestNewFrame as dS, FIX_ONE_PIXEL_BLUR_OFFSET as uS, Layer as hS, SpreadsheetSkeleton as gS, DeviceInputEventType as Ye, convertTransformToOffsetX as Kr, convertTransformToOffsetY as Jr, convertTextRotation as gd, RENDER_RAW_FORMULA_KEY as mS, Spreadsheet as Qh, getCurrentTypeOfRenderer as md, RENDER_CLASS_TYPE as fS, ScrollBar as fd, fixLineWidthByScale as vu, ptToPixel as Cu, Shape as pd, SHEET_EXTENSION_PREFIX as bu, SpreadsheetRowHeader as pS, SpreadsheetColumnHeader as SS, Viewport as
|
|
7
|
-
import { useDependency as L, useObservable as mt, KeyCode as Z, Slider as bS, ComponentManager as Xn, DISABLE_AUTO_FOCUS_KEY as _u, useEvent as wu, useSidebarClick as Jh, MetaKeys as Te, ISidebarService as Mi, useComponentsOfPart as $h, ComponentContainer as eg, IConfirmService as rn, UI_PLUGIN_CONFIG_KEY as tg, UIMenu as _S, ContextMenuPosition as Rt, IMessageService as ng, IClipboardInterfaceService as xl, IMenuManagerService as Sd, ToolbarItem as wS, ILayoutService as Al, DEFAULT_BACKGROUND_COLOR_RGB as RS, DEFAULT_BACKGROUND_COLOR_RGBA as IS, handleStringToStyle as yS, textTrim as Ru, INotificationService as MS, IPlatformService as ES, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as Iu, HTML_CLIPBOARD_MIME_TYPE as yu, imageMimeTypeSet as PS, FILE__BMP_CLIPBOARD_MIME_TYPE as TS, FILE__WEBP_CLIPBOARD_MIME_TYPE as OS, FILE__JPEG_CLIPBOARD_MIME_TYPE as xS, FILE_PNG_CLIPBOARD_MIME_TYPE as AS, CopyCommand as HS, CutCommand as kS, PasteCommand as VS, SheetPasteShortKeyCommandName as NS, IContextMenuService as Hl, getMenuHiddenObservable as ce, MenuItemType as K, FONT_SIZE_LIST as DS, FONT_FAMILY_LIST as LS, IDialogService as Ei, ContextMenuGroup as Qe, RibbonStartGroup as ba, IShortcutService as kl, IUIPartsService as Vl, FontFamily as rg, FontFamilyItem as ig, FontSize as og, BuiltInUIPart as
|
|
8
|
-
import US, { forwardRef as pt, useRef as
|
|
4
|
+
import { DOCS_VIEW_KEY as Ip, IEditorService as Hr, getCanvasOffsetByEngine as du, VIEWPORT_KEY as Es, DOCS_COMPONENT_MAIN_LAYER_INDEX as yp, BreakLineCommand as Mp, DeleteLeftCommand as Ep, DocSelectionRenderService as _r, ReplaceSnapshotCommand as Nh, MoveSelectionOperation as Pp, MoveCursorOperation as Tp, SetInlineFormatBoldCommand as Op, SetInlineFormatItalicCommand as xp, SetInlineFormatUnderlineCommand as Ap, SetInlineFormatStrikethroughCommand as Hp, SetInlineFormatSubscriptCommand as kp, SetInlineFormatSuperscriptCommand as Vp, SetInlineFormatFontSizeCommand as Np, SetInlineFormatFontFamilyCommand as Dp, SetInlineFormatTextColorCommand as Dh, SetInlineFormatCommand as Vo, NodePositionConvertToCursor as Lh, getLineBounding as Wh, DOC_VERTICAL_PADDING as Lp, IMEInputCommand as Wp, InsertCommand as Bp, CoverContentCommand as Fp, IRangeSelectorService as Up } from "@univerjs/docs-ui";
|
|
5
|
+
import { CommandType as Q, createInterceptorKey as cr, ColorKit as Nn, RANGE_TYPE as z, convertCellToRange as Ps, UniverInstanceType as x, IUniverInstanceService as N, Quantity as uc, Disposable as ae, toDisposable as Fe, Tools as se, createIdentifier as Cn, InterceptorManager as yi, ThemeService as Lt, Inject as V, Injector as It, IConfigService as bn, ObjectMatrix as Je, Direction as W, isFormulaString as sd, isFormulaId as Xp, CellValueType as jt, numfmt as Dn, ICommandService as D, IUndoRedoService as qt, Rectangle as de, sequenceExecute as Ml, IContextService as Ve, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as We, EDITOR_ACTIVATED as $e, FOCUSING_EDITOR_STANDALONE as El, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Le, Workbook as zp, Optional as ld, FOCUSING_SHEET as Ht, RxDisposable as Un, DisposableCollection as _t, IPermissionService as ot, fromEventSubject as Bh, sortRules as jp, LocaleService as He, getReverseDirection as Fh, FOCUSING_FX_BAR_EDITOR as At, BooleanNumber as Ke, nameCharacterCheck as Yp, debounce as hc, VerticalAlign as dn, HorizontalAlign as yt, WrapStrategy as wr, FOCUSING_UNIVER_EDITOR as kr, FOCUSING_COMMON_DRAWINGS as Pl, FOCUSING_EDITOR_INPUT_FORMULA as Ts, LocaleType as uu, FOCUSING_EDITOR_BUT_HIDDEN as gc, generateRandomId as ad, DEFAULT_EMPTY_DOCUMENT_VALUE as Uh, LRUMap as Zp, BaselineOffset as hu, DataStreamTreeTokenType as Gp, skipParseTagNames as qp, CustomRangeType as cd, DEFAULT_WORKSHEET_ROW_HEIGHT as mc, ILogService as Tl, ErrorService as Qp, CellModeEnum as Xh, isNotNullOrUndefined as Kp, extractPureTextFromCell as zh, UserManagerService as Wt, DEFAULT_STYLES as dd, FontWeight as rs, FontItalic as is, composeStyles as jh, Dimension as Yh, BorderStyleTypes as xe, AbsoluteRefType as gu, NilCommand as ud, UndoCommandId as Jp, Range as vs, cellToRange as $p, handleStyleToString as mu, convertBodyToHtml as eS, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY as fu, DEFAULT_WORKSHEET_COLUMN_WIDTH as pu, PresetListType as tS, isRealNum as Zh, InterceptorEffectEnum as nS, splitIntoGrid as rS, IAuthzIoService as Ol, isValidRange as iS, DependentOn as Gh, Plugin as qh, DocumentFlavor as oS, merge as sS, registerDependencies as Su, mergeOverrideWithDependencies as lS, touchDependencies as va } from "@univerjs/core";
|
|
6
|
+
import { IRenderManagerService as be, withCurrentTypeOfRenderer as hd, SHEET_VIEWPORT_KEY as U, CURSOR_TYPE as ye, Vector2 as ke, Rect as Ce, ScrollTimer as ri, ScrollTimerType as Pt, DashedRect as aS, Group as Ca, TRANSFORM_CHANGE_OBSERVABLE_TYPE as fc, cancelRequestFrame as cS, requestNewFrame as dS, FIX_ONE_PIXEL_BLUR_OFFSET as uS, Layer as hS, SpreadsheetSkeleton as gS, DeviceInputEventType as Ye, convertTransformToOffsetX as Kr, convertTransformToOffsetY as Jr, convertTextRotation as gd, RENDER_RAW_FORMULA_KEY as mS, Spreadsheet as Qh, getCurrentTypeOfRenderer as md, RENDER_CLASS_TYPE as fS, ScrollBar as fd, fixLineWidthByScale as vu, ptToPixel as Cu, Shape as pd, SHEET_EXTENSION_PREFIX as bu, SpreadsheetRowHeader as pS, SpreadsheetColumnHeader as SS, Viewport as Rn, hasCJKText as vS, DEFAULT_PADDING_DATA as CS, SheetExtension as Kh, RegularPolygon as Gi, precisionTo as tr } from "@univerjs/engine-render";
|
|
7
|
+
import { useDependency as L, useObservable as mt, KeyCode as Z, Slider as bS, ComponentManager as Xn, DISABLE_AUTO_FOCUS_KEY as _u, useEvent as wu, useSidebarClick as Jh, MetaKeys as Te, ISidebarService as Mi, useComponentsOfPart as $h, ComponentContainer as eg, IConfirmService as rn, UI_PLUGIN_CONFIG_KEY as tg, UIMenu as _S, ContextMenuPosition as Rt, IMessageService as ng, IClipboardInterfaceService as xl, IMenuManagerService as Sd, ToolbarItem as wS, ILayoutService as Al, DEFAULT_BACKGROUND_COLOR_RGB as RS, DEFAULT_BACKGROUND_COLOR_RGBA as IS, handleStringToStyle as yS, textTrim as Ru, INotificationService as MS, IPlatformService as ES, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as Iu, HTML_CLIPBOARD_MIME_TYPE as yu, imageMimeTypeSet as PS, FILE__BMP_CLIPBOARD_MIME_TYPE as TS, FILE__WEBP_CLIPBOARD_MIME_TYPE as OS, FILE__JPEG_CLIPBOARD_MIME_TYPE as xS, FILE_PNG_CLIPBOARD_MIME_TYPE as AS, CopyCommand as HS, CutCommand as kS, PasteCommand as VS, SheetPasteShortKeyCommandName as NS, IContextMenuService as Hl, getMenuHiddenObservable as ce, MenuItemType as K, FONT_SIZE_LIST as DS, FONT_FAMILY_LIST as LS, IDialogService as Ei, ContextMenuGroup as Qe, RibbonStartGroup as ba, IShortcutService as kl, IUIPartsService as Vl, FontFamily as rg, FontFamilyItem as ig, FontSize as og, BuiltInUIPart as $i, connectInjector as ii, ICanvasPopupService as WS, IZenZoneService as BS, UniverMobileUIPlugin as FS } from "@univerjs/ui";
|
|
8
|
+
import US, { forwardRef as pt, useRef as kn, createElement as ht, useState as ne, useMemo as Dt, useEffect as Pe, useCallback as Ln, useLayoutEffect as XS } from "react";
|
|
9
9
|
import { BehaviorSubject as Me, Subject as Ae, of as Re, merge as wt, map as Be, startWith as Gt, switchMap as ct, takeUntil as gi, distinctUntilChanged as un, throttleTime as sg, EMPTY as Mu, filter as Nl, combineLatest as dt, combineLatestWith as dr, Observable as ze, Subscription as rr, withLatestFrom as zS } from "rxjs";
|
|
10
|
-
import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as Os, SELECTION_CONTROL_BORDER_BUFFER_COLOR as
|
|
11
|
-
import { DocSkeletonManagerService as ir, DocSelectionManagerService as xd, RichTextEditingMutation as Vs, SetTextSelectionsOperation as
|
|
12
|
-
import { IDefinedNamesService as
|
|
10
|
+
import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as Os, SELECTION_CONTROL_BORDER_BUFFER_COLOR as os, SELECTIONS_ENABLED as $r, REF_SELECTIONS_ENABLED as lo, SheetSkeletonService as jS, SheetsSelectionsService as $, SheetInterceptorService as zn, getSheetCommandTarget as Ue, SetWorksheetRowAutoHeightMutationFactory as lg, SetWorksheetRowAutoHeightMutation as yr, SetRangeValuesCommand as No, SetWorksheetRowIsAutoHeightCommand as Dl, SetStyleCommand as YS, MoveRangeCommand as vd, ReorderRangeCommand as ZS, rangeToDiscreteRange as eo, SetSelectionsOperation as Ee, SetRangeValuesMutation as we, generateNullCellValue as GS, SetRangeValuesUndoMutationFactory as nn, IRefSelectionsService as Ll, BEFORE_CELL_EDIT as qS, SetWorksheetActiveOperation as rt, MoveRangeMutation as sr, RemoveRowMutation as Do, RemoveColMutation as Lo, InsertRowMutation as Wo, InsertColMutation as Bo, MoveRowsMutation as Wl, MoveColsMutation as Bl, SetWorksheetColWidthMutation as an, SetWorksheetRowHeightMutation as ao, RemoveSheetMutation as Wn, RemoveMergeUndoMutationFactory as Fl, RemoveWorksheetMergeMutation as $t, AddWorksheetMergeMutation as en, getAddMergeMutationRangeByType as Ul, AddMergeUndoMutationFactory as Xl, WorkbookEditablePermission as J, WorksheetEditPermission as te, UnitAction as co, alignToMergedCellsBorders as Hn, getSelectionsService as Fo, SelectionMoveType as Yt, getCellAtRowCol as Cs, expandToContinuousRange as QS, ScrollToCellOperation as Cd, SetWorksheetShowCommand as bd, WorksheetProtectionRuleModel as St, RangeProtectionRuleModel as et, RangeProtectionCache as Uo, WorksheetViewPermission as ag, SetWorksheetOrderMutation as _d, InsertSheetMutation as Vr, SetWorksheetNameMutation as wd, SetWorksheetHideMutation as lr, SetWorksheetActivateCommand as Rd, WorkbookManageCollaboratorPermission as cg, WorkbookRenameSheetPermission as dg, SetWorksheetOrderCommand as KS, SetWorksheetNameCommand as JS, SetTabColorMutation as $S, WorkbookCreateSheetPermission as ug, InsertSheetCommand as ev, COMMAND_LISTENER_SKELETON_CHANGE as xs, adjustRangeOnMutation as tv, getPrimaryForRange as hg, SetRowHiddenCommand as gg, SetColHiddenCommand as mg, SetBoldCommand as Id, SetItalicCommand as yd, SetUnderlineCommand as Md, SetStrikeThroughCommand as Ed, SetFontSizeCommand as Pd, SetFontFamilyCommand as Td, SetTextColorCommand as fg, SetFrozenMutationFactory as pg, SetFrozenMutation as Rr, RangeProtectionPermissionEditPoint as re, IExclusiveRangeService as nv, CancelFrozenCommand as bs, WorksheetSetRowStylePermission as Nr, SetRowHeightCommand as Sg, SetRowHiddenMutation as vg, SetRowVisibleMutation as Cg, SetSelectedRowsVisibleCommand as bg, WorksheetSetCellStylePermission as Ge, WorksheetSetCellValuePermission as Jt, WorksheetSetColumnStylePermission as Dr, SetColWidthCommand as _g, SetColHiddenMutation as wg, SetColVisibleMutation as Rg, SetSelectedColsVisibleCommand as Ig, SetTextRotationCommand as pc, SetTextWrapCommand as Sc, SetVerticalTextAlignCommand as vc, SetHorizontalTextAlignCommand as Cc, ResetBackgroundColorCommand as yg, SetBackgroundColorCommand as As, WorksheetCopyPermission as Hs, RangeProtectionPermissionViewPoint as bc, WorkbookCopyPermission as qi, SetWorksheetRowIsAutoHeightMutation as rv, SetFrozenCommand as iv, InsertRangeMoveDownCommand as _c, InsertRangeMoveRightCommand as wc, InsertRowCommand as ov, InsertColCommand as sv, MoveColsCommand as Mg, MoveRowsCommand as Eg, RemoveColCommand as Pg, RemoveRowCommand as Tg, MergeCellController as lv, MERGE_CELL_INTERCEPTOR_CHECK as av, DeltaRowHeightCommand as cv, DeltaColumnWidthCommand as dv, COMMAND_LISTENER_VALUE_CHANGE as uv, AddMergeRedoSelectionsOperationFactory as hv, AddMergeUndoSelectionsOperationFactory as gv, DeleteRangeMoveLeftCommand as Eu, DeleteRangeMoveUpCommand as Pu, EditStateEnum as cn, ViewStateEnum as mi, UnitObject as Vt, DeleteWorksheetProtectionCommand as ks, DeleteRangeProtectionMutation as Tu, AddRangeProtectionMutation as mv, RemoveSheetCommand as fv, AddWorksheetProtectionCommand as Og, BorderStyleManagerService as Rc, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as Ic, InsertDefinedNameCommand as pv, SetDefinedNameCommand as Sv, RemoveDefinedNameCommand as vv, SetBorderBasicCommand as yc, ClearSelectionAllCommand as _s, ClearSelectionFormatCommand as to, ClearSelectionContentCommand as oi, WorksheetDeleteRowPermission as Cv, WorksheetDeleteColumnPermission as bv, ToggleGridlinesCommand as xg, ToggleGridlinesMutation as _v, InsertMultiRowsAfterCommand as Ag, WorksheetInsertRowPermission as Xo, InsertMultiRowsAboveCommand as Od, InsertMultiColsLeftCommand as Hg, InsertColBeforeCommand as kg, WorksheetInsertColumnPermission as Vg, InsertRowBeforeCommand as Ng, RemoveWorksheetMergeCommand as Dg, WorkbookCreateProtectPermission as zl, WorksheetDeleteProtectionPermission as Lg, WorksheetManageCollaboratorPermission as wv, SetWorksheetHideCommand as Wg, SetTabColorCommand as Bg, CopySheetCommand as Fg, WorkbookDeleteSheetPermission as Rv, WorkbookHideSheetPermission as Ug, InsertMultiColsRightCommand as Iv, AddWorksheetMergeCommand as yv, AddWorksheetMergeHorizontalCommand as Mv, AddWorksheetMergeVerticalCommand as Ev, AddWorksheetMergeAllCommand as Pv, ResetTextColorCommand as Tv, RefRangeService as Ov, MAX_CELL_PER_SHEET_KEY as xv, INTERCEPTOR_POINT as Av, SheetPermissionCheckController as Xg, INumfmtService as Hv, SetProtectionCommand as kv, AddRangeProtectionCommand as Vv, setEndForRange as Nv, baseProtectionActions as Dv, DeleteRangeProtectionCommand as Lv, WorksheetProtectionPointModel as Wv, SetWorksheetPermissionPointsCommand as Bv, getAllWorksheetPermissionPoint as Fv, convertSelectionDataToRange as zg, UniverSheetsPlugin as jg, RefSelectionsService as Yg, ToggleCellCheckboxCommand as Uv, SheetPermissionInitController as Xv, SetSpecificRowsVisibleCommand as zv, SetSpecificColsVisibleCommand as jv } from "@univerjs/sheets";
|
|
11
|
+
import { DocSkeletonManagerService as ir, DocSelectionManagerService as xd, RichTextEditingMutation as Vs, SetTextSelectionsOperation as zo } from "@univerjs/docs";
|
|
12
|
+
import { IDefinedNamesService as jo, FUNCTION_NAMES_STATISTICAL as Xe, FUNCTION_NAMES_MATH as jl, FUNCTION_NAMES_TEXT as Yv, sequenceNodeType as _a, matchToken as Zg, LexerTreeBuilder as Gg, IFunctionService as qg, SetFormulaCalculationNotificationMutation as Zv, operatorToken as Qr, isReferenceStrings as Qg, isReferenceStringWithEffectiveColumn as Gv, serializeRangeWithSheet as Kg, NullValueObject as Ou, serializeRange as Jg, deserializeRangeWithSheet as $g } from "@univerjs/engine-formula";
|
|
13
13
|
import { isTextFormat as qv } from "@univerjs/engine-numfmt";
|
|
14
14
|
import { jsx as w, jsxs as q, Fragment as Mr } from "react/jsx-runtime";
|
|
15
15
|
import { DropdownMenu as em, clsx as qe, Dropdown as Ns, DropdownLegacy as Qv, Tooltip as er, MessageType as tm, InputNumber as Kv, Separator as Jv, ColorPicker as Ad, Input as Ds, RadioGroup as Mc, Radio as ei, Select as nm, Button as pn, Confirm as $v, FormLayout as Ls, Avatar as Hd, Switch as eC } from "@univerjs/design";
|
|
16
|
-
import { finalize as tC, switchMap as
|
|
16
|
+
import { finalize as tC, switchMap as Vn, startWith as nC, map as Sn, debounceTime as Yl, filter as rm } from "rxjs/operators";
|
|
17
17
|
import { ITelemetryService as rC } from "@univerjs/telemetry";
|
|
18
18
|
function kd(r, e) {
|
|
19
19
|
if (r == null)
|
|
@@ -68,7 +68,7 @@ const xu = 0, Ws = 1, ar = 10, iC = 11, Au = 12, Nd = {
|
|
|
68
68
|
}, Pc = cr("rangeMovePermissionCheck"), Tc = cr("rangeFillPermissionCheck");
|
|
69
69
|
var om = /* @__PURE__ */ ((r) => (r[r.FORMULA_EDITOR_SHOW = 100] = "FORMULA_EDITOR_SHOW", r[r.MARK_SELECTION = 1e4] = "MARK_SELECTION", r))(om || {});
|
|
70
70
|
function Er(r) {
|
|
71
|
-
const e = r.getCurrentTheme(), t = new
|
|
71
|
+
const e = r.getCurrentTheme(), t = new Nn(e.primaryColor).setAlpha(0.07).toRgbString();
|
|
72
72
|
return {
|
|
73
73
|
strokeWidth: 1,
|
|
74
74
|
stroke: e.primaryColor,
|
|
@@ -207,7 +207,7 @@ class oC {
|
|
|
207
207
|
this._primary = null;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function uo(r, e) {
|
|
211
211
|
const { startRow: t, startColumn: n, endRow: i, endColumn: o, rangeType: s } = e, l = i < t ? i : t, a = i < t ? t : i, c = o < n ? o : n, d = o < n ? n : o, u = r.getNoMergeCellWithCoordByIndex(l, c), h = r.getNoMergeCellWithCoordByIndex(a, d);
|
|
212
212
|
return {
|
|
213
213
|
startRow: t,
|
|
@@ -222,7 +222,7 @@ function co(r, e) {
|
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
224
|
function xt(r, e) {
|
|
225
|
-
const { range: t, primary: n, style: i } = r, o =
|
|
225
|
+
const { range: t, primary: n, style: i } = r, o = uo(e, t), s = n && Bs(e, n);
|
|
226
226
|
return {
|
|
227
227
|
rangeWithCoord: o,
|
|
228
228
|
primaryWithCoord: s,
|
|
@@ -551,7 +551,7 @@ class lC {
|
|
|
551
551
|
}
|
|
552
552
|
const C = this._skeleton.getNoMergeCellWithCoordByIndex(g, m), b = this._skeleton.getNoMergeCellWithCoordByIndex(f, p), R = (C == null ? void 0 : C.startY) || 0, I = (b == null ? void 0 : b.endY) || 0, y = (C == null ? void 0 : C.startX) || 0, M = (b == null ? void 0 : b.endX) || 0;
|
|
553
553
|
S ? this._controlHandler((H, O) => {
|
|
554
|
-
const k = new
|
|
554
|
+
const k = new Nn(this._fillControlColors[O]).lighten(sC).toRgbString();
|
|
555
555
|
H.setProps({
|
|
556
556
|
fill: k
|
|
557
557
|
});
|
|
@@ -593,7 +593,7 @@ class lC {
|
|
|
593
593
|
g == null && (g = f.stroke), m == null && (m = f.strokeWidth);
|
|
594
594
|
const p = this._getScale();
|
|
595
595
|
m /= p;
|
|
596
|
-
const S = Os / p, v = new
|
|
596
|
+
const S = Os / p, v = new Nn(g).darken(2).toRgbString();
|
|
597
597
|
this.isHelperSelection && (this._helperSelection = new Ce(Hu, {
|
|
598
598
|
stroke: v,
|
|
599
599
|
strokeWidth: m + S / 2
|
|
@@ -1044,7 +1044,7 @@ class Ld extends ae {
|
|
|
1044
1044
|
top: -m / 2 + f
|
|
1045
1045
|
}), this.leftControl.setProps({
|
|
1046
1046
|
fill: i,
|
|
1047
|
-
stroke:
|
|
1047
|
+
stroke: os
|
|
1048
1048
|
}), this.rightControl.transformByState({
|
|
1049
1049
|
height: C - S,
|
|
1050
1050
|
left: v - p - g + f,
|
|
@@ -1053,7 +1053,7 @@ class Ld extends ae {
|
|
|
1053
1053
|
top: -m / 2 + f
|
|
1054
1054
|
}), this.rightControl.setProps({
|
|
1055
1055
|
fill: i,
|
|
1056
|
-
stroke:
|
|
1056
|
+
stroke: os
|
|
1057
1057
|
}), this.topControl.transformByState({
|
|
1058
1058
|
width: v - p + d,
|
|
1059
1059
|
top: -g + f,
|
|
@@ -1062,7 +1062,7 @@ class Ld extends ae {
|
|
|
1062
1062
|
strokeWidth: m
|
|
1063
1063
|
}), this.topControl.setProps({
|
|
1064
1064
|
fill: i,
|
|
1065
|
-
stroke:
|
|
1065
|
+
stroke: os
|
|
1066
1066
|
}), this.bottomControl.transformByState({
|
|
1067
1067
|
width: v - p + d,
|
|
1068
1068
|
top: C - S - g + f,
|
|
@@ -1071,7 +1071,7 @@ class Ld extends ae {
|
|
|
1071
1071
|
strokeWidth: m
|
|
1072
1072
|
}), this.bottomControl.setProps({
|
|
1073
1073
|
fill: i,
|
|
1074
|
-
stroke:
|
|
1074
|
+
stroke: os
|
|
1075
1075
|
}), l == null)
|
|
1076
1076
|
this.dashedRect.hide(), this._stopAntLineAnimation();
|
|
1077
1077
|
else {
|
|
@@ -1240,7 +1240,7 @@ class Ld extends ae {
|
|
|
1240
1240
|
const S = this._rowHeaderWidth, v = this._columnHeaderHeight;
|
|
1241
1241
|
if (this._highlightHeader && v > 0) {
|
|
1242
1242
|
let C = g;
|
|
1243
|
-
l === z.COLUMN && (C = new
|
|
1243
|
+
l === z.COLUMN && (C = new Nn(d).setAlpha(ku).toString()), this._columnHeaderBackground.setProps({
|
|
1244
1244
|
fill: C
|
|
1245
1245
|
}), this._columnHeaderBackground.resize(o - n, v), this._columnHeaderBorder.setProps({
|
|
1246
1246
|
fill: m
|
|
@@ -1254,7 +1254,7 @@ class Ld extends ae {
|
|
|
1254
1254
|
this._columnHeaderGroup.hide();
|
|
1255
1255
|
if (this._columnHeaderGroup.makeDirty(!0), this._highlightHeader && S > 0) {
|
|
1256
1256
|
let C = u;
|
|
1257
|
-
l === z.ROW && (C = new
|
|
1257
|
+
l === z.ROW && (C = new Nn(d).setAlpha(ku).toString()), this._rowHeaderBackground.setProps({
|
|
1258
1258
|
fill: C
|
|
1259
1259
|
}), this._rowHeaderBackground.resize(S, s - i), this._rowHeaderBorder.setProps({
|
|
1260
1260
|
fill: h
|
|
@@ -1350,7 +1350,7 @@ class aC extends hS {
|
|
|
1350
1350
|
this.scene.getEngine().renderFrameTimeMetric$.next(["selectionLayer", se.now() - e]);
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
const lt =
|
|
1353
|
+
const lt = Cn("univer.sheet.selection-render-service");
|
|
1354
1354
|
class sm extends ae {
|
|
1355
1355
|
constructor(t, n, i, o, s) {
|
|
1356
1356
|
super();
|
|
@@ -1804,7 +1804,7 @@ class sm extends ae {
|
|
|
1804
1804
|
return this.contextService.getContextValue($r) === !1;
|
|
1805
1805
|
}
|
|
1806
1806
|
inRefSelectionMode() {
|
|
1807
|
-
return this.contextService.getContextValue(
|
|
1807
|
+
return this.contextService.getContextValue(lo);
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
1810
|
function lm(r) {
|
|
@@ -1992,7 +1992,7 @@ let he = class extends ae {
|
|
|
1992
1992
|
/** @deprecated Use function `attachRangeWithCoord` instead. */
|
|
1993
1993
|
attachRangeWithCoord(e) {
|
|
1994
1994
|
const t = this.getCurrentSkeleton();
|
|
1995
|
-
return t ?
|
|
1995
|
+
return t ? uo(t, e) : null;
|
|
1996
1996
|
}
|
|
1997
1997
|
_getSkeletonParam(e) {
|
|
1998
1998
|
return this._sheetSkeletonParamStore.get(e);
|
|
@@ -2080,7 +2080,7 @@ function OE() {
|
|
|
2080
2080
|
}
|
|
2081
2081
|
const xE = "SheetUI";
|
|
2082
2082
|
var am = /* @__PURE__ */ ((r) => (r.FILTER_PANEL_EMBED_POINT = "filter-panel-embed-point", r.SHEETS_FOOTER = "sheets-footer", r.FORMULA_AUX = "formula-aux", r))(am || {});
|
|
2083
|
-
const
|
|
2083
|
+
const vn = "sheets-ui.config", xc = {
|
|
2084
2084
|
formulaBar: !0,
|
|
2085
2085
|
statusBarStatistic: !0,
|
|
2086
2086
|
maxAutoHeightCount: 1e3
|
|
@@ -2091,7 +2091,7 @@ var hC = Object.getOwnPropertyDescriptor, gC = (r, e, t, n) => {
|
|
|
2091
2091
|
return i;
|
|
2092
2092
|
}, Wi = (r, e) => (t, n) => e(t, n, r);
|
|
2093
2093
|
const cm = ["ff", "fs", "tr", "tb"];
|
|
2094
|
-
let
|
|
2094
|
+
let ho = class extends ae {
|
|
2095
2095
|
constructor(r, e, t, n, i) {
|
|
2096
2096
|
super(), this._renderManagerService = r, this._sheetInterceptorService = e, this._selectionManagerService = t, this._univerInstanceService = n, this._configService = i, this._initialize();
|
|
2097
2097
|
}
|
|
@@ -2115,7 +2115,7 @@ let uo = class extends ae {
|
|
|
2115
2115
|
redos: [],
|
|
2116
2116
|
undos: []
|
|
2117
2117
|
};
|
|
2118
|
-
const d = n.getConfig(
|
|
2118
|
+
const d = n.getConfig(vn);
|
|
2119
2119
|
let u = r;
|
|
2120
2120
|
Array.isArray(r) || (r && r.startRow !== void 0 && r.startRow !== void 0 ? u = [r] : u = []);
|
|
2121
2121
|
const h = this._getRangesScope(u);
|
|
@@ -2149,7 +2149,7 @@ let uo = class extends ae {
|
|
|
2149
2149
|
const { _sheetInterceptorService: r, _selectionManagerService: e } = this;
|
|
2150
2150
|
this.disposeWithMe(r.interceptCommand({
|
|
2151
2151
|
getMutations: (t) => {
|
|
2152
|
-
if (t.id ===
|
|
2152
|
+
if (t.id === No.id) {
|
|
2153
2153
|
const n = t.params;
|
|
2154
2154
|
return this.getUndoRedoParamsOfAutoHeight(n.range, n.subUnitId);
|
|
2155
2155
|
}
|
|
@@ -2200,13 +2200,13 @@ let uo = class extends ae {
|
|
|
2200
2200
|
}));
|
|
2201
2201
|
}
|
|
2202
2202
|
};
|
|
2203
|
-
|
|
2203
|
+
ho = gC([
|
|
2204
2204
|
Wi(0, be),
|
|
2205
2205
|
Wi(1, V(zn)),
|
|
2206
2206
|
Wi(2, V($)),
|
|
2207
2207
|
Wi(3, V(N)),
|
|
2208
|
-
Wi(4,
|
|
2209
|
-
],
|
|
2208
|
+
Wi(4, bn)
|
|
2209
|
+
], ho);
|
|
2210
2210
|
function Pr(r) {
|
|
2211
2211
|
const { rows: e, cols: t } = r;
|
|
2212
2212
|
return {
|
|
@@ -2260,7 +2260,7 @@ const Ac = { 零: 0, 一: 1, 二: 2, 三: 3, 四: 4, 五: 5, 六: 6, 七: 7, 八
|
|
|
2260
2260
|
万: { value: 1e4, secUnit: !0 },
|
|
2261
2261
|
亿: { value: 1e8, secUnit: !0 }
|
|
2262
2262
|
};
|
|
2263
|
-
function
|
|
2263
|
+
function An(r) {
|
|
2264
2264
|
if (!r)
|
|
2265
2265
|
return 0;
|
|
2266
2266
|
let e = 0, t = 0, n = 0, i = !1;
|
|
@@ -2311,7 +2311,7 @@ function vC(r) {
|
|
|
2311
2311
|
}
|
|
2312
2312
|
return e;
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2314
|
+
function ss(r) {
|
|
2315
2315
|
if (!r)
|
|
2316
2316
|
return {
|
|
2317
2317
|
isExtendNumber: !1
|
|
@@ -2350,7 +2350,7 @@ function _C(r, e) {
|
|
|
2350
2350
|
t++;
|
|
2351
2351
|
return t;
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function Yo(r) {
|
|
2354
2354
|
let e = !0;
|
|
2355
2355
|
const t = r[1] - r[0];
|
|
2356
2356
|
for (let n = 1; n < r.length; n++)
|
|
@@ -2486,7 +2486,7 @@ function fi(r, e, t, n = 0) {
|
|
|
2486
2486
|
const m = `${(a = r[r.length - 1]) == null ? void 0 : a.v}`;
|
|
2487
2487
|
if (m) {
|
|
2488
2488
|
const f = m.substr(m.length - 1, 1);
|
|
2489
|
-
h =
|
|
2489
|
+
h = An(f) + t * c;
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
2492
|
h < 0 && (h = Math.ceil(Math.abs(h) / 7) * 7 + h);
|
|
@@ -2501,13 +2501,13 @@ function Lu(r, e, t) {
|
|
|
2501
2501
|
for (let o = 1; o <= e; o++) {
|
|
2502
2502
|
const s = (o - 1) % r.length, l = se.deepClone(r[s]);
|
|
2503
2503
|
Or(l);
|
|
2504
|
-
const a = `${(i = r[r.length - 1]) == null ? void 0 : i.v}`, c =
|
|
2504
|
+
const a = `${(i = r[r.length - 1]) == null ? void 0 : i.v}`, c = An(a) + t * o;
|
|
2505
2505
|
let d;
|
|
2506
2506
|
c <= 0 ? d = "零" : d = SC(c), l && (l.v = d, n.push(l));
|
|
2507
2507
|
}
|
|
2508
2508
|
return n;
|
|
2509
2509
|
}
|
|
2510
|
-
const
|
|
2510
|
+
const no = {
|
|
2511
2511
|
enWeek1: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
2512
2512
|
enWeek2: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
2513
2513
|
enMonth1: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
@@ -2535,15 +2535,15 @@ const to = {
|
|
|
2535
2535
|
};
|
|
2536
2536
|
function EC(r) {
|
|
2537
2537
|
let e = !1;
|
|
2538
|
-
return Object.keys(
|
|
2539
|
-
|
|
2538
|
+
return Object.keys(no).forEach((t) => {
|
|
2539
|
+
no[t].includes(r) && (e = !0);
|
|
2540
2540
|
}), e;
|
|
2541
2541
|
}
|
|
2542
2542
|
function wa(r) {
|
|
2543
2543
|
let e = "";
|
|
2544
2544
|
const t = [];
|
|
2545
|
-
return Object.keys(
|
|
2546
|
-
|
|
2545
|
+
return Object.keys(no).forEach((n) => {
|
|
2546
|
+
no[n].includes(r) && (e = n, t.push(...no[n]));
|
|
2547
2547
|
}), { name: e, series: t };
|
|
2548
2548
|
}
|
|
2549
2549
|
function Wu(r, e, t, n) {
|
|
@@ -2695,8 +2695,8 @@ const PC = {
|
|
|
2695
2695
|
if (typeof r.s == "string") {
|
|
2696
2696
|
const i = e.get(N).getFocusedUnit().getStyles().get(r.s), o = (t = i == null ? void 0 : i.n) == null ? void 0 : t.pattern;
|
|
2697
2697
|
if (o)
|
|
2698
|
-
return
|
|
2699
|
-
} else if (r.s.n &&
|
|
2698
|
+
return Dn.getInfo(o).isDate;
|
|
2699
|
+
} else if (r.s.n && Dn.getInfo(r.s.n.pattern).isDate)
|
|
2700
2700
|
return !0;
|
|
2701
2701
|
}
|
|
2702
2702
|
return !1;
|
|
@@ -2727,11 +2727,11 @@ const PC = {
|
|
|
2727
2727
|
}, OC = {
|
|
2728
2728
|
type: ft.EXTEND_NUMBER,
|
|
2729
2729
|
priority: 900,
|
|
2730
|
-
match: (r) =>
|
|
2730
|
+
match: (r) => ss(`${r == null ? void 0 : r.v}` || "").isExtendNumber,
|
|
2731
2731
|
isContinue: (r, e) => {
|
|
2732
2732
|
var t;
|
|
2733
2733
|
if (r.type === ft.EXTEND_NUMBER) {
|
|
2734
|
-
const { beforeTxt: n, afterTxt: i } =
|
|
2734
|
+
const { beforeTxt: n, afterTxt: i } = ss(`${(t = r.cellData) == null ? void 0 : t.v}` || ""), { beforeTxt: o, afterTxt: s } = ss(`${e == null ? void 0 : e.v}` || "");
|
|
2735
2735
|
if (n === o && i === s)
|
|
2736
2736
|
return !0;
|
|
2737
2737
|
}
|
|
@@ -2747,9 +2747,9 @@ const PC = {
|
|
|
2747
2747
|
const s = [];
|
|
2748
2748
|
for (let a = 0; a < n.length; a++) {
|
|
2749
2749
|
const c = `${(l = n[a]) == null ? void 0 : l.v}`;
|
|
2750
|
-
c && s.push(Number(
|
|
2750
|
+
c && s.push(Number(ss(c).matchTxt));
|
|
2751
2751
|
}
|
|
2752
|
-
return i && (n.reverse(), s.reverse()),
|
|
2752
|
+
return i && (n.reverse(), s.reverse()), Yo(s) ? (o = s[1] - s[0], zt(Du(n, e, o), i)) : Tr(n, e);
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
2755
|
}, xC = {
|
|
@@ -2764,7 +2764,7 @@ const PC = {
|
|
|
2764
2764
|
if (n.length === 1) {
|
|
2765
2765
|
const u = `${(a = n[0]) == null ? void 0 : a.v}`;
|
|
2766
2766
|
let h;
|
|
2767
|
-
return i ? h = -1 : h = 1, u && (u === "日" ||
|
|
2767
|
+
return i ? h = -1 : h = 1, u && (u === "日" || An(u) < 7) ? zt(fi(n, e, h), i) : zt(Lu(n, e, h), i);
|
|
2768
2768
|
}
|
|
2769
2769
|
let o = !1;
|
|
2770
2770
|
for (let u = 0; u < n.length; u++)
|
|
@@ -2776,9 +2776,9 @@ const PC = {
|
|
|
2776
2776
|
let l = 0;
|
|
2777
2777
|
for (let u = 0; u < n.length; u++) {
|
|
2778
2778
|
const h = `${(d = n[u]) == null ? void 0 : d.v}`;
|
|
2779
|
-
h === "日" ? u === 0 ? s.push(0) : (l++, s.push(l * 7)) : o &&
|
|
2779
|
+
h === "日" ? u === 0 ? s.push(0) : (l++, s.push(l * 7)) : o && An(h) > 0 && An(h) < 7 ? s.push(An(h) + l * 7) : s.push(An(h));
|
|
2780
2780
|
}
|
|
2781
|
-
if (i && (n.reverse(), s.reverse()),
|
|
2781
|
+
if (i && (n.reverse(), s.reverse()), Yo(s)) {
|
|
2782
2782
|
if (o || s[s.length - 1] < 6 && s[0] > 0 || s[0] < 6 && s[s.length - 1] > 0) {
|
|
2783
2783
|
const h = s[1] - s[0];
|
|
2784
2784
|
return zt(fi(n, e, h), i);
|
|
@@ -2806,9 +2806,9 @@ const PC = {
|
|
|
2806
2806
|
let s = 0;
|
|
2807
2807
|
for (let a = 0; a < n.length; a++) {
|
|
2808
2808
|
const c = `${(l = n[a]) == null ? void 0 : l.v}`, d = c == null ? void 0 : c.substr(c.length - 1, 1);
|
|
2809
|
-
c === "周日" ? a === 0 ? o.push(0) : (s++, o.push(s * 7)) : o.push(
|
|
2809
|
+
c === "周日" ? a === 0 ? o.push(0) : (s++, o.push(s * 7)) : o.push(An(d) + s * 7);
|
|
2810
2810
|
}
|
|
2811
|
-
if (i && (n.reverse(), o.reverse()),
|
|
2811
|
+
if (i && (n.reverse(), o.reverse()), Yo(o)) {
|
|
2812
2812
|
const a = o[1] - o[0];
|
|
2813
2813
|
return zt(fi(n, e, a, 1), i);
|
|
2814
2814
|
}
|
|
@@ -2834,10 +2834,10 @@ const PC = {
|
|
|
2834
2834
|
const c = `${(l = n[a]) == null ? void 0 : l.v}`;
|
|
2835
2835
|
if (c) {
|
|
2836
2836
|
const d = c.substr(c.length - 1, 1);
|
|
2837
|
-
c === "星期日" ? a === 0 ? o.push(0) : (s++, o.push(s * 7)) : o.push(
|
|
2837
|
+
c === "星期日" ? a === 0 ? o.push(0) : (s++, o.push(s * 7)) : o.push(An(d) + s * 7);
|
|
2838
2838
|
}
|
|
2839
2839
|
}
|
|
2840
|
-
if (i && (n.reverse(), o.reverse()),
|
|
2840
|
+
if (i && (n.reverse(), o.reverse()), Yo(o)) {
|
|
2841
2841
|
const a = o[1] - o[0];
|
|
2842
2842
|
return zt(fi(n, e, a, 2), i);
|
|
2843
2843
|
}
|
|
@@ -2866,7 +2866,7 @@ const PC = {
|
|
|
2866
2866
|
const u = `${(c = n[d]) == null ? void 0 : c.v}`;
|
|
2867
2867
|
u && (u === o[0] ? d === 0 ? s.push(0) : (l++, s.push(l * o.length)) : s.push(o.indexOf(u) + l * 7));
|
|
2868
2868
|
}
|
|
2869
|
-
if (i && (n.reverse(), s.reverse()),
|
|
2869
|
+
if (i && (n.reverse(), s.reverse()), Yo(s)) {
|
|
2870
2870
|
const d = s[1] - s[0];
|
|
2871
2871
|
return zt(Wu(n, e, d, o), i);
|
|
2872
2872
|
}
|
|
@@ -2946,7 +2946,7 @@ let Xs = class extends ae {
|
|
|
2946
2946
|
if (n.startColumn === i.startColumn && n.startRow === i.startRow && n.endColumn === i.endColumn && n.endRow === i.endRow)
|
|
2947
2947
|
return !1;
|
|
2948
2948
|
if (i.endColumn < n.endColumn && i.endColumn > n.startColumn)
|
|
2949
|
-
return this._commandService.executeCommand(
|
|
2949
|
+
return this._commandService.executeCommand(go.id, {
|
|
2950
2950
|
clearRange: {
|
|
2951
2951
|
startRow: i.startRow,
|
|
2952
2952
|
endRow: i.endRow,
|
|
@@ -2956,7 +2956,7 @@ let Xs = class extends ae {
|
|
|
2956
2956
|
selectionRange: i
|
|
2957
2957
|
});
|
|
2958
2958
|
if (i.endRow < n.endRow && i.endRow > n.startRow)
|
|
2959
|
-
return this._commandService.executeCommand(
|
|
2959
|
+
return this._commandService.executeCommand(go.id, {
|
|
2960
2960
|
clearRange: {
|
|
2961
2961
|
startRow: i.endRow + 1,
|
|
2962
2962
|
endRow: n.endRow,
|
|
@@ -2983,7 +2983,7 @@ let Xs = class extends ae {
|
|
|
2983
2983
|
else
|
|
2984
2984
|
return !1;
|
|
2985
2985
|
this.direction = s;
|
|
2986
|
-
const l = this._injector.invoke((g) =>
|
|
2986
|
+
const l = this._injector.invoke((g) => eo(n, g)), a = this._injector.invoke((g) => eo(o, g));
|
|
2987
2987
|
if (!l || !a)
|
|
2988
2988
|
return !1;
|
|
2989
2989
|
this.autoFillLocation = {
|
|
@@ -3149,7 +3149,7 @@ Xs = NC([
|
|
|
3149
3149
|
Xr(4, V($)),
|
|
3150
3150
|
Xr(5, V(It))
|
|
3151
3151
|
], Xs);
|
|
3152
|
-
const Lr =
|
|
3152
|
+
const Lr = Cn("univer.auto-fill-service"), br = {
|
|
3153
3153
|
type: Q.COMMAND,
|
|
3154
3154
|
id: "sheet.command.auto-fill",
|
|
3155
3155
|
handler: async (r, e) => {
|
|
@@ -3158,7 +3158,7 @@ const Lr = vn("univer.auto-fill-service"), br = {
|
|
|
3158
3158
|
const { subUnitId: l, unitId: a } = s;
|
|
3159
3159
|
return t.triggerAutoFill(a, l, i, o);
|
|
3160
3160
|
}
|
|
3161
|
-
},
|
|
3161
|
+
}, go = {
|
|
3162
3162
|
id: "sheet.command.auto-clear-content",
|
|
3163
3163
|
type: Q.COMMAND,
|
|
3164
3164
|
handler: async (r, e) => {
|
|
@@ -3437,7 +3437,7 @@ Hc = LC([
|
|
|
3437
3437
|
gr(5, Ll),
|
|
3438
3438
|
gr(6, Ve)
|
|
3439
3439
|
], Hc);
|
|
3440
|
-
const it =
|
|
3440
|
+
const it = Cn("univer.sheet-editor-bridge.service"), at = {
|
|
3441
3441
|
id: "sheet.operation.set-cell-edit-visible",
|
|
3442
3442
|
type: Q.OPERATION,
|
|
3443
3443
|
handler: (r, e) => {
|
|
@@ -3463,7 +3463,7 @@ const it = vn("univer.sheet-editor-bridge.service"), at = {
|
|
|
3463
3463
|
id: "sheet.operation.set-cell-edit-visible-arrow",
|
|
3464
3464
|
type: Q.OPERATION,
|
|
3465
3465
|
handler: () => !0
|
|
3466
|
-
},
|
|
3466
|
+
}, Zo = {
|
|
3467
3467
|
id: "sheet.command.change-zoom-ratio",
|
|
3468
3468
|
type: Q.COMMAND,
|
|
3469
3469
|
handler: (r, e) => {
|
|
@@ -3481,7 +3481,7 @@ const it = vn("univer.sheet-editor-bridge.service"), at = {
|
|
|
3481
3481
|
zoomRatio: d
|
|
3482
3482
|
});
|
|
3483
3483
|
}
|
|
3484
|
-
},
|
|
3484
|
+
}, Go = {
|
|
3485
3485
|
id: "sheet.command.set-zoom-ratio",
|
|
3486
3486
|
type: Q.COMMAND,
|
|
3487
3487
|
handler: (r, e) => {
|
|
@@ -3498,7 +3498,7 @@ const it = vn("univer.sheet-editor-bridge.service"), at = {
|
|
|
3498
3498
|
function WC(r) {
|
|
3499
3499
|
return typeof r.isMainScene > "u";
|
|
3500
3500
|
}
|
|
3501
|
-
function
|
|
3501
|
+
function _n(r, e) {
|
|
3502
3502
|
const t = r instanceof zp ? r : r.getCurrentUnitForType(x.UNIVER_SHEET);
|
|
3503
3503
|
if (!t) return null;
|
|
3504
3504
|
const n = t.getUnitId();
|
|
@@ -3524,7 +3524,7 @@ function Fu(r, e, t, n) {
|
|
|
3524
3524
|
const { startX: i, startY: o, endX: s, endY: l } = n.getCellWithCoordByIndex(r, e);
|
|
3525
3525
|
return { startX: i, startY: o, endX: s, endY: l };
|
|
3526
3526
|
}
|
|
3527
|
-
function
|
|
3527
|
+
function Bn(r, e, t, n, i, o) {
|
|
3528
3528
|
const s = t.getCoordRelativeToViewport(ke.FromArray([r, e])), { x: l, y: a } = s, c = t.getScrollXYInfoByViewport(s, i), { scaleX: d, scaleY: u } = t.getAncestorScale(), h = n.getCellIndexByOffset(
|
|
3529
3529
|
l,
|
|
3530
3530
|
a,
|
|
@@ -3550,8 +3550,8 @@ var BC = Object.getOwnPropertyDescriptor, FC = (r, e, t, n) => {
|
|
|
3550
3550
|
for (var i = n > 1 ? void 0 : n ? BC(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
3551
3551
|
(s = r[o]) && (i = s(i) || i);
|
|
3552
3552
|
return i;
|
|
3553
|
-
},
|
|
3554
|
-
let
|
|
3553
|
+
}, ls = (r, e) => (t, n) => e(t, n, r);
|
|
3554
|
+
let mo = class extends ae {
|
|
3555
3555
|
constructor(e, t, n, i, o) {
|
|
3556
3556
|
super();
|
|
3557
3557
|
_(this, "_zoom");
|
|
@@ -3580,7 +3580,7 @@ let go = class extends ae {
|
|
|
3580
3580
|
if (!s) return;
|
|
3581
3581
|
const l = s.getZoomRatio();
|
|
3582
3582
|
let a = +Number.parseFloat(`${l + i}`).toFixed(1);
|
|
3583
|
-
a = a >= 4 ? 4 : a <= 0.1 ? 0.1 : a, this._commandService.executeCommand(
|
|
3583
|
+
a = a >= 4 ? 4 : a <= 0.1 ? 0.1 : a, this._commandService.executeCommand(Go.id, {
|
|
3584
3584
|
zoomRatio: Math.round(a * 10) / 10,
|
|
3585
3585
|
unitId: o.getUnitId(),
|
|
3586
3586
|
subUnitId: s.getSheetId()
|
|
@@ -3607,21 +3607,21 @@ let go = class extends ae {
|
|
|
3607
3607
|
t == null || t.scene.scale(e, e), t == null || t.spreadsheet.makeForceDirty();
|
|
3608
3608
|
}
|
|
3609
3609
|
_getSheetObject() {
|
|
3610
|
-
return
|
|
3610
|
+
return _n(this._context.unit, this._context);
|
|
3611
3611
|
}
|
|
3612
3612
|
};
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
],
|
|
3613
|
+
mo = FC([
|
|
3614
|
+
ls(1, V(he)),
|
|
3615
|
+
ls(2, D),
|
|
3616
|
+
ls(3, Ve),
|
|
3617
|
+
ls(4, ld(it))
|
|
3618
|
+
], mo);
|
|
3619
3619
|
const tn = {
|
|
3620
3620
|
id: "sheet.operation.set-zoom-ratio",
|
|
3621
3621
|
type: Q.OPERATION,
|
|
3622
3622
|
handler: (r, e) => {
|
|
3623
3623
|
const n = r.get(be).getRenderById(e.unitId);
|
|
3624
|
-
return n ? n.with(
|
|
3624
|
+
return n ? n.with(mo).updateZoom(e.subUnitId, e.zoomRatio) : !1;
|
|
3625
3625
|
}
|
|
3626
3626
|
};
|
|
3627
3627
|
var UC = Object.getOwnPropertyDescriptor, XC = (r, e, t, n) => {
|
|
@@ -3713,25 +3713,25 @@ let zs = class extends ae {
|
|
|
3713
3713
|
_initQuitListener() {
|
|
3714
3714
|
const e = [
|
|
3715
3715
|
at.id,
|
|
3716
|
-
|
|
3717
|
-
|
|
3716
|
+
go.id,
|
|
3717
|
+
No.id,
|
|
3718
3718
|
tn.id,
|
|
3719
3719
|
rt.id,
|
|
3720
3720
|
sr.id,
|
|
3721
|
-
No.id,
|
|
3722
3721
|
Do.id,
|
|
3723
3722
|
Lo.id,
|
|
3724
3723
|
Wo.id,
|
|
3724
|
+
Bo.id,
|
|
3725
3725
|
Wl.id,
|
|
3726
3726
|
Bl.id,
|
|
3727
3727
|
an.id,
|
|
3728
|
-
|
|
3728
|
+
ao.id,
|
|
3729
3729
|
we.id
|
|
3730
3730
|
];
|
|
3731
3731
|
this.disposeWithMe(this._commandService.onCommandExecuted((t, n) => {
|
|
3732
3732
|
var l, a;
|
|
3733
3733
|
const i = n == null ? void 0 : n.fromCollab, o = n == null ? void 0 : n.fromSync, s = n == null ? void 0 : n.fromFormula;
|
|
3734
|
-
e.includes(t.id) && !i && !o && !s && t.params.trigger !== br.id && t.params.trigger !== Zl.id && this._quit(), t.id ===
|
|
3734
|
+
e.includes(t.id) && !i && !o && !s && t.params.trigger !== br.id && t.params.trigger !== Zl.id && this._quit(), t.id === Wn.id && t.params.unitId === ((l = this._currentLocation) == null ? void 0 : l.unitId) && t.params.subUnitId === ((a = this._currentLocation) == null ? void 0 : a.subUnitId) && this._quit();
|
|
3735
3735
|
})), this.disposeWithMe(this._univerInstanceService.unitDisposed$.subscribe((t) => {
|
|
3736
3736
|
var n;
|
|
3737
3737
|
t.getUnitId() === ((n = this._currentLocation) == null ? void 0 : n.unitId) && this._quit();
|
|
@@ -4189,7 +4189,7 @@ let js = class extends ae {
|
|
|
4189
4189
|
)) == null ? void 0 : m.every((T) => T.value)))
|
|
4190
4190
|
return !1;
|
|
4191
4191
|
const P = (p = (f = I.getCell(b, R)) == null ? void 0 : f.selectionProtection) == null ? void 0 : p[0];
|
|
4192
|
-
if ((P == null ? void 0 : P[
|
|
4192
|
+
if ((P == null ? void 0 : P[co.Edit]) === !1)
|
|
4193
4193
|
return !1;
|
|
4194
4194
|
(S = v.onPointerDown) == null || S.call(v, C, h);
|
|
4195
4195
|
}
|
|
@@ -4312,7 +4312,7 @@ function nr(r, e, t, n, i = !0, o = 1, s = !0) {
|
|
|
4312
4312
|
return l;
|
|
4313
4313
|
}
|
|
4314
4314
|
function Fd(r, e, t) {
|
|
4315
|
-
const n = { ...r }, { startRow: i, startColumn: o, endRow: s, endColumn: l } =
|
|
4315
|
+
const n = { ...r }, { startRow: i, startColumn: o, endRow: s, endColumn: l } = fo(r, e, t);
|
|
4316
4316
|
let a = Bi(t, i, o, s, l).hasValue, c = !0, d = !0;
|
|
4317
4317
|
for (; d; ) {
|
|
4318
4318
|
if (W.UP === e) {
|
|
@@ -4448,14 +4448,14 @@ function Fd(r, e, t) {
|
|
|
4448
4448
|
}
|
|
4449
4449
|
}
|
|
4450
4450
|
}
|
|
4451
|
-
return
|
|
4451
|
+
return Hn(n, t, !0);
|
|
4452
4452
|
}
|
|
4453
4453
|
function hm(r, e, t) {
|
|
4454
4454
|
return nr(r, e, t, void 0, !1, 1, !1);
|
|
4455
4455
|
}
|
|
4456
4456
|
function QC(r, e, t) {
|
|
4457
4457
|
const n = Fd(r, e, t);
|
|
4458
|
-
return
|
|
4458
|
+
return Hn(de.union(n, r), t, !0);
|
|
4459
4459
|
}
|
|
4460
4460
|
function KC(r, e, t) {
|
|
4461
4461
|
const n = hm(r, e, t), i = {
|
|
@@ -4464,31 +4464,31 @@ function KC(r, e, t) {
|
|
|
4464
4464
|
endRow: Math.max(r.endRow, n.endRow),
|
|
4465
4465
|
endColumn: Math.max(r.endColumn, n.endColumn)
|
|
4466
4466
|
};
|
|
4467
|
-
return
|
|
4467
|
+
return Hn(de.union(r, i), t);
|
|
4468
4468
|
}
|
|
4469
4469
|
function JC(r, e, t, n) {
|
|
4470
|
-
const i = Fh(t), o = Fd(
|
|
4471
|
-
return t === W.UP && o.startRow <= r.startRow ?
|
|
4470
|
+
const i = Fh(t), o = Fd(fo(r, i, n), t, n);
|
|
4471
|
+
return t === W.UP && o.startRow <= r.startRow ? Hn(
|
|
4472
4472
|
{ ...e, startColumn: r.startColumn, endColumn: r.endColumn },
|
|
4473
4473
|
n,
|
|
4474
4474
|
!0
|
|
4475
|
-
) : t === W.DOWN && o.endRow >= r.endRow ?
|
|
4475
|
+
) : t === W.DOWN && o.endRow >= r.endRow ? Hn(
|
|
4476
4476
|
{ ...e, startColumn: r.startColumn, endColumn: r.endColumn },
|
|
4477
4477
|
n,
|
|
4478
4478
|
!0
|
|
4479
|
-
) : t === W.LEFT && o.startColumn <= r.startColumn ?
|
|
4479
|
+
) : t === W.LEFT && o.startColumn <= r.startColumn ? Hn(
|
|
4480
4480
|
{ ...e, startRow: r.startRow, endRow: r.endRow },
|
|
4481
4481
|
n,
|
|
4482
4482
|
!0
|
|
4483
|
-
) : t === W.RIGHT && o.endColumn >= r.endColumn ?
|
|
4483
|
+
) : t === W.RIGHT && o.endColumn >= r.endColumn ? Hn(
|
|
4484
4484
|
{ ...e, startRow: r.startRow, endRow: r.endRow },
|
|
4485
4485
|
n,
|
|
4486
4486
|
!0
|
|
4487
4487
|
) : de.union(de.clone(e), o);
|
|
4488
4488
|
}
|
|
4489
4489
|
function $C(r, e, t) {
|
|
4490
|
-
const n = Fh(e), i =
|
|
4491
|
-
return
|
|
4490
|
+
const n = Fh(e), i = fo(r, n, t), o = fo(r, e, t), s = hm(i, e, t);
|
|
4491
|
+
return Hn(de.union(o, s), t, !1);
|
|
4492
4492
|
}
|
|
4493
4493
|
function zu(r) {
|
|
4494
4494
|
return {
|
|
@@ -4499,7 +4499,7 @@ function zu(r) {
|
|
|
4499
4499
|
rangeType: z.ALL
|
|
4500
4500
|
};
|
|
4501
4501
|
}
|
|
4502
|
-
function
|
|
4502
|
+
function fo(r, e, t) {
|
|
4503
4503
|
let n;
|
|
4504
4504
|
switch (e) {
|
|
4505
4505
|
case W.UP:
|
|
@@ -4541,7 +4541,7 @@ function mo(r, e, t) {
|
|
|
4541
4541
|
default:
|
|
4542
4542
|
throw new Error("Invalid direction");
|
|
4543
4543
|
}
|
|
4544
|
-
return
|
|
4544
|
+
return Hn(n, t, !1);
|
|
4545
4545
|
}
|
|
4546
4546
|
function Bi(r, e, t, n, i) {
|
|
4547
4547
|
let o = !1;
|
|
@@ -4583,7 +4583,7 @@ function e1(r, e, t) {
|
|
|
4583
4583
|
o.startColumn = (c = n == null ? void 0 : n.startColumn) != null ? c : i.startColumn, o.endColumn = (d = n == null ? void 0 : n.endColumn) != null ? d : i.startColumn;
|
|
4584
4584
|
break;
|
|
4585
4585
|
}
|
|
4586
|
-
const s =
|
|
4586
|
+
const s = fo(o, e, t);
|
|
4587
4587
|
switch (e) {
|
|
4588
4588
|
case W.DOWN:
|
|
4589
4589
|
return i.startRow < s.startRow;
|
|
@@ -4648,7 +4648,7 @@ const Bt = {
|
|
|
4648
4648
|
return !1;
|
|
4649
4649
|
const t = Ue(r.get(N));
|
|
4650
4650
|
if (!t) return !1;
|
|
4651
|
-
const { workbook: n, worksheet: i } = t, o =
|
|
4651
|
+
const { workbook: n, worksheet: i } = t, o = Fo(r, e.fromCurrentSelection).getCurrentLastSelection();
|
|
4652
4652
|
if (!o)
|
|
4653
4653
|
return !1;
|
|
4654
4654
|
const { direction: s, jumpOver: l, extra: a } = e, { range: c, primary: d } = o, u = kc(c, d, s), h = l === 1 ? Fd(u, s, i) : nr(u, s, i), g = Cs(h.startRow, h.startColumn, i);
|
|
@@ -4694,7 +4694,7 @@ const Bt = {
|
|
|
4694
4694
|
return !1;
|
|
4695
4695
|
const t = Ue(r.get(N));
|
|
4696
4696
|
if (!t) return !1;
|
|
4697
|
-
const { workbook: n, worksheet: i } = t, o =
|
|
4697
|
+
const { workbook: n, worksheet: i } = t, o = Fo(r), { direction: s, keycode: l } = e, a = s === W.LEFT || s === W.UP, c = o.getCurrentSelections().concat(), d = c.findIndex((F) => F.primary), u = c[d];
|
|
4698
4698
|
if (!u)
|
|
4699
4699
|
return !1;
|
|
4700
4700
|
const h = a ? -1 : 1, g = d + h !== c.length ? c[d + h] : c[0], m = c.findIndex((F) => F === g), f = n.getUnitId(), p = i.getSheetId();
|
|
@@ -4800,7 +4800,7 @@ const Bt = {
|
|
|
4800
4800
|
if (!e) return !1;
|
|
4801
4801
|
const t = Ue(r.get(N));
|
|
4802
4802
|
if (!t) return !1;
|
|
4803
|
-
const { worksheet: n, unitId: i, subUnitId: o } = t, s =
|
|
4803
|
+
const { worksheet: n, unitId: i, subUnitId: o } = t, s = Fo(r).getCurrentLastSelection();
|
|
4804
4804
|
if (!s) return !1;
|
|
4805
4805
|
const { range: l, primary: a } = s, { jumpOver: c, direction: d, extra: u } = e, g = e1(s, d, n) ? c === 1 ? JC(
|
|
4806
4806
|
l,
|
|
@@ -4829,7 +4829,7 @@ const Bt = {
|
|
|
4829
4829
|
handler: async (r, e = { expandToGapFirst: !0, loop: !1 }) => {
|
|
4830
4830
|
const t = Ue(r.get(N));
|
|
4831
4831
|
if (!t) return !1;
|
|
4832
|
-
const n =
|
|
4832
|
+
const n = Fo(r).getCurrentLastSelection();
|
|
4833
4833
|
if (!n) return !1;
|
|
4834
4834
|
const i = r.get(Bd), { worksheet: o, unitId: s, subUnitId: l } = t, a = `${s}|${l}`;
|
|
4835
4835
|
a !== i.selectedRangeWorksheet && (i.rangesStack = [], i.selectedRangeWorksheet = a);
|
|
@@ -5010,7 +5010,7 @@ const hn = {
|
|
|
5010
5010
|
sheetViewStartColumn: s
|
|
5011
5011
|
}), !0;
|
|
5012
5012
|
}
|
|
5013
|
-
},
|
|
5013
|
+
}, po = {
|
|
5014
5014
|
id: "sheet.command.set-scroll-relative",
|
|
5015
5015
|
type: Q.COMMAND,
|
|
5016
5016
|
// offsetXY derived from mouse wheel event
|
|
@@ -5071,7 +5071,7 @@ const hn = {
|
|
|
5071
5071
|
type: Q.COMMAND,
|
|
5072
5072
|
handler: (r, e) => {
|
|
5073
5073
|
const t = r.get(N);
|
|
5074
|
-
return r.get(be).getRenderById(t.getCurrentUnitForType(x.UNIVER_SHEET).getUnitId()).with(
|
|
5074
|
+
return r.get(be).getRenderById(t.getCurrentUnitForType(x.UNIVER_SHEET).getUnitId()).with(So).scrollToRange(e.range, e.forceTop, e.forceLeft);
|
|
5075
5075
|
}
|
|
5076
5076
|
}, HE = {
|
|
5077
5077
|
id: "sheet.command.scroll-view-reset",
|
|
@@ -5095,7 +5095,7 @@ var o1 = Object.getOwnPropertyDescriptor, s1 = (r, e, t, n) => {
|
|
|
5095
5095
|
}, zr = (r, e) => (t, n) => e(t, n, r);
|
|
5096
5096
|
Bt.id, Yn.id;
|
|
5097
5097
|
const l1 = 3;
|
|
5098
|
-
let
|
|
5098
|
+
let So = class extends ae {
|
|
5099
5099
|
constructor(r, e, t, n, i, o, s) {
|
|
5100
5100
|
super(), this._context = r, this._injector = e, this._sheetSkeletonManagerService = t, this._contextService = n, this._commandService = i, this._renderManagerService = o, this._scrollManagerService = s, this._initCommandListener(), this._wheelEventListener(), this._scrollBarEventListener(), this._initSkeletonListener();
|
|
5101
5101
|
}
|
|
@@ -5108,7 +5108,7 @@ let po = class extends ae {
|
|
|
5108
5108
|
if (t.ctrlKey || !this._contextService.getContextValue(Ht))
|
|
5109
5109
|
return;
|
|
5110
5110
|
let i = 0, o = 0;
|
|
5111
|
-
i = t.deltaX, t.shiftKey ? i = (t.deltaY || t.deltaX) * l1 : o = t.deltaY, this._commandService.executeCommand(
|
|
5111
|
+
i = t.deltaX, t.shiftKey ? i = (t.deltaY || t.deltaX) * l1 : o = t.deltaY, this._commandService.executeCommand(po.id, { offsetX: i, offsetY: o }), this._context.scene.makeDirty(!0);
|
|
5112
5112
|
const s = e.limitedScroll(e.scrollX + i, e.scrollY + o);
|
|
5113
5113
|
s && !s.isLimitedX && !s.isLimitedY && (t.preventDefault(), r.getParent().classType === fS.SCENE_VIEWER && n.stopPropagation()), e.isWheelPreventDefaultX && e.isWheelPreventDefaultY && t.preventDefault();
|
|
5114
5114
|
})
|
|
@@ -5304,7 +5304,7 @@ let po = class extends ae {
|
|
|
5304
5304
|
}));
|
|
5305
5305
|
}
|
|
5306
5306
|
_getSheetObject() {
|
|
5307
|
-
return
|
|
5307
|
+
return _n(this._context.unit, this._context);
|
|
5308
5308
|
}
|
|
5309
5309
|
_scrollToSelectionByDirection(r) {
|
|
5310
5310
|
const e = this._getViewportBounding();
|
|
@@ -5328,7 +5328,7 @@ let po = class extends ae {
|
|
|
5328
5328
|
this._scrollToCell(s, l);
|
|
5329
5329
|
}
|
|
5330
5330
|
_getSelectionsService() {
|
|
5331
|
-
return
|
|
5331
|
+
return Fo(this._injector);
|
|
5332
5332
|
}
|
|
5333
5333
|
_getViewportBounding() {
|
|
5334
5334
|
var i, o;
|
|
@@ -5408,14 +5408,14 @@ let po = class extends ae {
|
|
|
5408
5408
|
});
|
|
5409
5409
|
}
|
|
5410
5410
|
};
|
|
5411
|
-
|
|
5411
|
+
So = s1([
|
|
5412
5412
|
zr(1, V(It)),
|
|
5413
5413
|
zr(2, V(he)),
|
|
5414
5414
|
zr(3, Ve),
|
|
5415
5415
|
zr(4, D),
|
|
5416
5416
|
zr(5, be),
|
|
5417
5417
|
zr(6, V(Tt))
|
|
5418
|
-
],
|
|
5418
|
+
], So);
|
|
5419
5419
|
const pm = {
|
|
5420
5420
|
id: "sheet.operation.scroll-to-range",
|
|
5421
5421
|
type: Q.OPERATION,
|
|
@@ -5423,7 +5423,7 @@ const pm = {
|
|
|
5423
5423
|
if (!e)
|
|
5424
5424
|
return !1;
|
|
5425
5425
|
const t = r.get(N);
|
|
5426
|
-
return r.get(be).getRenderById(t.getCurrentUnitForType(x.UNIVER_SHEET).getUnitId()).with(
|
|
5426
|
+
return r.get(be).getRenderById(t.getCurrentUnitForType(x.UNIVER_SHEET).getUnitId()).with(So).scrollToRange(e.range, e.forceTop, e.forceLeft);
|
|
5427
5427
|
}
|
|
5428
5428
|
};
|
|
5429
5429
|
class a1 {
|
|
@@ -5460,7 +5460,7 @@ class a1 {
|
|
|
5460
5460
|
this._state$.next(e);
|
|
5461
5461
|
}
|
|
5462
5462
|
}
|
|
5463
|
-
const Ql =
|
|
5463
|
+
const Ql = Cn(
|
|
5464
5464
|
"univer.sheet-cell-editor-manager.service"
|
|
5465
5465
|
);
|
|
5466
5466
|
var Ut = function() {
|
|
@@ -5479,7 +5479,7 @@ var Ut = function() {
|
|
|
5479
5479
|
e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]);
|
|
5480
5480
|
return t;
|
|
5481
5481
|
}, vt = pt(function(r, e) {
|
|
5482
|
-
var t = r.icon, n = r.id, i = r.className, o = r.extend, s = c1(r, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), a =
|
|
5482
|
+
var t = r.icon, n = r.id, i = r.className, o = r.extend, s = c1(r, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), a = kn("_".concat(h1()));
|
|
5483
5483
|
return Sm(t, "".concat(n), { defIds: t.defIds, idSuffix: a.current }, Ut({ ref: e, className: l }, s), o);
|
|
5484
5484
|
});
|
|
5485
5485
|
function Sm(r, e, t, n, i) {
|
|
@@ -5663,7 +5663,7 @@ var x1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em"
|
|
|
5663
5663
|
Zd.displayName = "WriteSingle";
|
|
5664
5664
|
const A1 = () => {
|
|
5665
5665
|
const [, r] = ne({});
|
|
5666
|
-
return
|
|
5666
|
+
return Ln(() => r((e) => !e), []);
|
|
5667
5667
|
}, H1 = () => {
|
|
5668
5668
|
const r = L(D), e = L(N), t = L(be), n = L(Lr), i = L(He), [o, s] = ne([]), [l, a] = ne(!1), [c, d] = ne({ row: -1, col: -1 }), [u, h] = ne(De.SERIES), [g, m] = ne(!1), f = ur(), { sheetSkeletonManagerService: p, selectionRenderService: S } = Dt(() => {
|
|
5669
5669
|
if (f) {
|
|
@@ -5714,7 +5714,7 @@ const A1 = () => {
|
|
|
5714
5714
|
};
|
|
5715
5715
|
}, [l]), c.col < 0 || c.row < 0)
|
|
5716
5716
|
return null;
|
|
5717
|
-
const R =
|
|
5717
|
+
const R = _n(e, t);
|
|
5718
5718
|
if (!R || !S) return null;
|
|
5719
5719
|
const { scene: I } = R, y = p == null ? void 0 : p.getCurrentSkeleton(), M = S.getViewPort(), E = I == null ? void 0 : I.scaleX, P = I == null ? void 0 : I.scaleY, T = I == null ? void 0 : I.getViewportScrollXY(M);
|
|
5720
5720
|
if (!E || !I || !E || !P || !T) return null;
|
|
@@ -5728,7 +5728,8 @@ const A1 = () => {
|
|
|
5728
5728
|
return /* @__PURE__ */ w("div", { className: "univer-absolute univer-inset-0 univer-z-10 univer-size-0", children: /* @__PURE__ */ w(
|
|
5729
5729
|
"div",
|
|
5730
5730
|
{
|
|
5731
|
-
|
|
5731
|
+
className: "univer-absolute",
|
|
5732
|
+
style: { left: `${O + 2}px`, top: `${k + 2}px` },
|
|
5732
5733
|
onMouseEnter: v,
|
|
5733
5734
|
onMouseLeave: C,
|
|
5734
5735
|
children: /* @__PURE__ */ w(
|
|
@@ -5774,7 +5775,7 @@ const A1 = () => {
|
|
|
5774
5775
|
countBar: k1
|
|
5775
5776
|
}, N1 = [50, 75, 100, 125, 150, 175, 200, 400];
|
|
5776
5777
|
function D1() {
|
|
5777
|
-
const r = L(D), e = L(N), t = ur(), n = L(it), i = mt(n.visible$), o =
|
|
5778
|
+
const r = L(D), e = L(N), t = ur(), n = L(it), i = mt(n.visible$), o = Ln(() => {
|
|
5778
5779
|
if (!t) return 100;
|
|
5779
5780
|
const d = t.getActiveSheet(), u = d && d.getZoomRatio() * 100 || 100;
|
|
5780
5781
|
return Math.round(u);
|
|
@@ -5791,7 +5792,7 @@ function D1() {
|
|
|
5791
5792
|
if (h == null)
|
|
5792
5793
|
return;
|
|
5793
5794
|
const g = d / 100;
|
|
5794
|
-
r.executeCommand(
|
|
5795
|
+
r.executeCommand(Go.id, {
|
|
5795
5796
|
unitId: u.getUnitId(),
|
|
5796
5797
|
subUnitId: h.getSheetId(),
|
|
5797
5798
|
zoomRatio: g
|
|
@@ -5841,7 +5842,7 @@ const W1 = "univer-editor-container", B1 = "univer-editor-input", ju = {
|
|
|
5841
5842
|
}, F1 = () => {
|
|
5842
5843
|
const [r, e] = ne({
|
|
5843
5844
|
...Yu
|
|
5844
|
-
}), t = L(Ql), n = L(Hr), i = L(Ve), o = L(Xn), s = L(it), l = mt(s.visible$), a = L(D), c =
|
|
5845
|
+
}), t = L(Ql), n = L(Hr), i = L(Ve), o = L(Xn), s = L(it), l = mt(s.visible$), a = L(D), c = kn(0), d = mt(
|
|
5845
5846
|
() => i.subscribeContextValue$(_u),
|
|
5846
5847
|
!1,
|
|
5847
5848
|
void 0,
|
|
@@ -5971,9 +5972,9 @@ class U1 {
|
|
|
5971
5972
|
this._position$.next(e);
|
|
5972
5973
|
}
|
|
5973
5974
|
}
|
|
5974
|
-
const Jl =
|
|
5975
|
+
const Jl = Cn(
|
|
5975
5976
|
"univer.sheet-formula-editor-manager.service"
|
|
5976
|
-
),
|
|
5977
|
+
), vo = "DefinedNameContainer", Gd = {
|
|
5977
5978
|
id: "sidebar.operation.defined-name",
|
|
5978
5979
|
type: Q.COMMAND,
|
|
5979
5980
|
handler: async (r, e) => {
|
|
@@ -5985,9 +5986,9 @@ const Jl = vn(
|
|
|
5985
5986
|
switch (e.value) {
|
|
5986
5987
|
case "open":
|
|
5987
5988
|
t.open({
|
|
5988
|
-
id:
|
|
5989
|
+
id: vo,
|
|
5989
5990
|
header: { title: n.t("definedName.featureTitle") },
|
|
5990
|
-
children: { label:
|
|
5991
|
+
children: { label: vo },
|
|
5991
5992
|
onClose: () => {
|
|
5992
5993
|
},
|
|
5993
5994
|
width: 333
|
|
@@ -6002,7 +6003,7 @@ const Jl = vn(
|
|
|
6002
6003
|
}
|
|
6003
6004
|
};
|
|
6004
6005
|
function X1(r) {
|
|
6005
|
-
const e = L(D), t = L(He), n = L(
|
|
6006
|
+
const e = L(D), t = L(He), n = L(jo), i = L(N), o = L(Mi), l = i.getCurrentUnitForType(x.UNIVER_SHEET).getUnitId(), a = () => {
|
|
6006
6007
|
const g = n.getDefinedNameMap(l);
|
|
6007
6008
|
return g ? Array.from(Object.values(g)) : [];
|
|
6008
6009
|
}, [c, d] = ne(a());
|
|
@@ -6015,7 +6016,7 @@ function X1(r) {
|
|
|
6015
6016
|
};
|
|
6016
6017
|
}, []), Pe(() => {
|
|
6017
6018
|
const g = o.sidebarOptions$.subscribe((m) => {
|
|
6018
|
-
m.id ===
|
|
6019
|
+
m.id === vo && (m.visible || setTimeout(() => {
|
|
6019
6020
|
o.sidebarOptions$.next({ visible: !1 });
|
|
6020
6021
|
}));
|
|
6021
6022
|
});
|
|
@@ -6122,7 +6123,7 @@ const z1 = "univer-defined-name-container", j1 = "univer-defined-name-container-
|
|
|
6122
6123
|
definedNameInputValidation: nb
|
|
6123
6124
|
};
|
|
6124
6125
|
function rb({ disable: r }) {
|
|
6125
|
-
const [e, t] = ne(""), n = L(
|
|
6126
|
+
const [e, t] = ne(""), n = L(jo);
|
|
6126
6127
|
Pe(() => {
|
|
6127
6128
|
const o = n.currentRange$.subscribe(() => {
|
|
6128
6129
|
t(n.getCurrentRangeForString());
|
|
@@ -6204,12 +6205,12 @@ function _b(r) {
|
|
|
6204
6205
|
const { className: e, disableDefinedName: t } = r, [n, i] = ne(ut.formulaGrey), [o, s] = ne(
|
|
6205
6206
|
0
|
|
6206
6207
|
/* Down */
|
|
6207
|
-
), l = L(Jl), a = L(it), c = L(St), d = L(et), u = L(N), h = L($), g = L(ot), m = L(
|
|
6208
|
+
), l = L(Jl), a = L(it), c = L(St), d = L(et), u = L(N), h = L($), g = L(ot), m = L(Uo), f = L(D), [p, S] = ne({
|
|
6208
6209
|
editDisable: !1,
|
|
6209
6210
|
viewDisable: !1
|
|
6210
|
-
}), [v, C] = ne(!1), b = ur(), R = L(Xn), I = mt(() => u.getCurrentTypeOfUnit$(x.UNIVER_SHEET), void 0, void 0, []), y =
|
|
6211
|
+
}), [v, C] = ne(!1), b = ur(), R = L(Xn), I = mt(() => u.getCurrentTypeOfUnit$(x.UNIVER_SHEET), void 0, void 0, []), y = kn(0), M = mt(a.currentEditCellState$), E = Em(y, (le = M == null ? void 0 : M.unitId) != null ? le : ""), P = R.get(Vd), T = $h(am.FORMULA_AUX), A = L(Ve);
|
|
6211
6212
|
mt(Dt(() => A.subscribeContextValue$(At), [A]));
|
|
6212
|
-
const H = A.getContextValue(At), O =
|
|
6213
|
+
const H = A.getContextValue(At), O = kn(null), k = L(Hr);
|
|
6213
6214
|
XS(() => {
|
|
6214
6215
|
const ue = I.activeSheet$.pipe(
|
|
6215
6216
|
ct((ve) => ve ? wt(
|
|
@@ -6233,19 +6234,19 @@ function _b(r) {
|
|
|
6233
6234
|
).subscribe((ve) => {
|
|
6234
6235
|
var tt, bt, gt, Kt, Gn, Li;
|
|
6235
6236
|
if (ve) {
|
|
6236
|
-
const { unitId:
|
|
6237
|
-
if (c.getRule(
|
|
6238
|
-
const bp = !((bt = (tt = g.getPermissionPoint(new te(
|
|
6237
|
+
const { unitId: ts, subUnitId: ns, primary: Sp } = ve;
|
|
6238
|
+
if (c.getRule(ts, ns)) {
|
|
6239
|
+
const bp = !((bt = (tt = g.getPermissionPoint(new te(ts, ns).id)) == null ? void 0 : tt.value) == null || bt), _p = !((Kt = (gt = g.getPermissionPoint(new ag(ts, ns).id)) == null ? void 0 : gt.value) == null || Kt);
|
|
6239
6240
|
S({
|
|
6240
6241
|
viewDisable: _p,
|
|
6241
6242
|
editDisable: bp
|
|
6242
6243
|
});
|
|
6243
6244
|
return;
|
|
6244
6245
|
}
|
|
6245
|
-
const { actualRow: vp, actualColumn: Cp } = Sp, Ur = m.getCellInfo(
|
|
6246
|
+
const { actualRow: vp, actualColumn: Cp } = Sp, Ur = m.getCellInfo(ts, ns, vp, Cp);
|
|
6246
6247
|
S({
|
|
6247
|
-
editDisable: !((Gn = Ur == null ? void 0 : Ur[
|
|
6248
|
-
viewDisable: !((Li = Ur == null ? void 0 : Ur[
|
|
6248
|
+
editDisable: !((Gn = Ur == null ? void 0 : Ur[co.Edit]) == null || Gn),
|
|
6249
|
+
viewDisable: !((Li = Ur == null ? void 0 : Ur[co.View]) == null || Li)
|
|
6249
6250
|
});
|
|
6250
6251
|
} else
|
|
6251
6252
|
S({
|
|
@@ -6310,7 +6311,7 @@ function _b(r) {
|
|
|
6310
6311
|
function j() {
|
|
6311
6312
|
l.handleFxBtnClick(!0);
|
|
6312
6313
|
}
|
|
6313
|
-
const { viewDisable: Y, editDisable: ie } = p, fe = ie || v, oe =
|
|
6314
|
+
const { viewDisable: Y, editDisable: ie } = p, fe = ie || v, oe = kn(!1), _e = () => {
|
|
6314
6315
|
var ue;
|
|
6315
6316
|
try {
|
|
6316
6317
|
a.isVisible().visible === !1 && f.syncExecuteCommand(
|
|
@@ -6404,7 +6405,7 @@ function _b(r) {
|
|
|
6404
6405
|
}
|
|
6405
6406
|
);
|
|
6406
6407
|
}
|
|
6407
|
-
const Br =
|
|
6408
|
+
const Br = Cn("univer.sheetbar-service");
|
|
6408
6409
|
class Pm extends ae {
|
|
6409
6410
|
constructor() {
|
|
6410
6411
|
super();
|
|
@@ -6448,7 +6449,7 @@ class Pm extends ae {
|
|
|
6448
6449
|
});
|
|
6449
6450
|
}
|
|
6450
6451
|
}
|
|
6451
|
-
const wb = "univer-sheet-bar", Rb = "univer-sheet-bar-options", Ib = "univer-sheet-bar-options-divider",
|
|
6452
|
+
const wb = "univer-sheet-bar", Rb = "univer-sheet-bar-options", Ib = "univer-sheet-bar-options-divider", as = {
|
|
6452
6453
|
sheetBar: wb,
|
|
6453
6454
|
sheetBarOptions: Rb,
|
|
6454
6455
|
sheetBarOptionsDivider: Ib
|
|
@@ -6487,7 +6488,7 @@ function Eb() {
|
|
|
6487
6488
|
unitId: a.getUnitId(),
|
|
6488
6489
|
subUnitId: p
|
|
6489
6490
|
}), n(!1));
|
|
6490
|
-
}, d =
|
|
6491
|
+
}, d = Ln(() => {
|
|
6491
6492
|
if (!a) return;
|
|
6492
6493
|
const f = a.getSheets(), p = a.getActiveSheet(), S = f.map((v, C) => ({
|
|
6493
6494
|
label: v.getName(),
|
|
@@ -6497,10 +6498,10 @@ function Eb() {
|
|
|
6497
6498
|
selected: p === v
|
|
6498
6499
|
}));
|
|
6499
6500
|
e(S);
|
|
6500
|
-
}, [a, l]), u =
|
|
6501
|
+
}, [a, l]), u = Ln(() => o.onCommandExecuted((f) => {
|
|
6501
6502
|
switch (f.id) {
|
|
6502
6503
|
case lr.id:
|
|
6503
|
-
case
|
|
6504
|
+
case Wn.id:
|
|
6504
6505
|
case wd.id:
|
|
6505
6506
|
case Vr.id:
|
|
6506
6507
|
case _d.id:
|
|
@@ -6568,7 +6569,7 @@ function Vb(r) {
|
|
|
6568
6569
|
}, [i]);
|
|
6569
6570
|
const a = (c) => {
|
|
6570
6571
|
const d = l.getCurrentTheme(), u = d.textColor, h = d.colorWhite;
|
|
6571
|
-
return new
|
|
6572
|
+
return new Nn(c).isDark() ? h : u;
|
|
6572
6573
|
};
|
|
6573
6574
|
return /* @__PURE__ */ w(
|
|
6574
6575
|
"div",
|
|
@@ -7154,7 +7155,7 @@ _(ni, "DoubleClickDelay", 300);
|
|
|
7154
7155
|
let si = ni;
|
|
7155
7156
|
function Bb() {
|
|
7156
7157
|
var Ie;
|
|
7157
|
-
const [r, e] = ne([]), [t, n] = ne(""), [i, o] = ne(""), [s, l] = ne(!1), [a, c] = ne([0, 0]), d =
|
|
7158
|
+
const [r, e] = ne([]), [t, n] = ne(""), [i, o] = ne(""), [s, l] = ne(!1), [a, c] = ne([0, 0]), d = kn({ slideTabBar: null }), u = kn(null), h = L(D), g = L(Br), m = L(He), f = L(rn), p = L(bn), S = L(it, uc.OPTIONAL), v = L(St), C = L(et), b = mt(v.resetOrder$), R = ur(), I = L(ot), y = Ln(() => {
|
|
7158
7159
|
var Se;
|
|
7159
7160
|
const G = ((Se = R.getActiveSheet()) == null ? void 0 : Se.getSheetId()) || "";
|
|
7160
7161
|
n(G);
|
|
@@ -7314,7 +7315,7 @@ function Bb() {
|
|
|
7314
7315
|
switch (G.id) {
|
|
7315
7316
|
case $S.id:
|
|
7316
7317
|
case lr.id:
|
|
7317
|
-
case
|
|
7318
|
+
case Wn.id:
|
|
7318
7319
|
case wd.id:
|
|
7319
7320
|
case Vr.id:
|
|
7320
7321
|
case _d.id:
|
|
@@ -7415,8 +7416,8 @@ const Fb = 100, Ub = () => {
|
|
|
7415
7416
|
}, m = () => {
|
|
7416
7417
|
o.setScrollX(Fb);
|
|
7417
7418
|
};
|
|
7418
|
-
return /* @__PURE__ */ q("div", { className: qe(
|
|
7419
|
-
/* @__PURE__ */ q("div", { className:
|
|
7419
|
+
return /* @__PURE__ */ q("div", { className: qe(as.sheetBar, "univer-relative univer-flex univer-h-full univer-flex-1"), children: [
|
|
7420
|
+
/* @__PURE__ */ q("div", { className: as.sheetBarOptions, children: [
|
|
7420
7421
|
/* @__PURE__ */ w(Rs, { onClick: h, disabled: !(d != null && d.value && (c != null && c.value)), children: /* @__PURE__ */ w(jd, {}) }),
|
|
7421
7422
|
/* @__PURE__ */ w(Eb, {})
|
|
7422
7423
|
] }),
|
|
@@ -7425,8 +7426,8 @@ const Fb = 100, Ub = () => {
|
|
|
7425
7426
|
"div",
|
|
7426
7427
|
{
|
|
7427
7428
|
className: `
|
|
7428
|
-
${
|
|
7429
|
-
${
|
|
7429
|
+
${as.sheetBarOptions}
|
|
7430
|
+
${as.sheetBarOptionsDivider}
|
|
7430
7431
|
`,
|
|
7431
7432
|
children: [
|
|
7432
7433
|
/* @__PURE__ */ w(Rs, { disabled: r, onClick: g, children: /* @__PURE__ */ w(Nc, { style: { transform: "rotateZ(180deg)" } }) }),
|
|
@@ -7509,7 +7510,7 @@ class Tm {
|
|
|
7509
7510
|
this._functions.push(...e);
|
|
7510
7511
|
}
|
|
7511
7512
|
}
|
|
7512
|
-
const $l =
|
|
7513
|
+
const $l = Cn("univer.sheet-status-bar.service"), Xb = "univer-status-bar", zb = "univer-single-mode", jb = "univer-status-bar-div", Yb = "univer-statistic-list-column", Zb = "univer-statistic-item", Qi = {
|
|
7513
7514
|
statusBar: Xb,
|
|
7514
7515
|
singleMode: zb,
|
|
7515
7516
|
statusBarDiv: jb,
|
|
@@ -7535,24 +7536,24 @@ const $l = vn("univer.sheet-status-bar.service"), Xb = "univer-status-bar", zb =
|
|
|
7535
7536
|
content: e.t("statusbar.copied")
|
|
7536
7537
|
});
|
|
7537
7538
|
};
|
|
7538
|
-
return /* @__PURE__ */ w(er, { title: e.t("statusbar.clickToCopy"), placement: "top", children: /* @__PURE__ */ w("div", { className:
|
|
7539
|
+
return /* @__PURE__ */ w(er, { title: e.t("statusbar.clickToCopy"), placement: "top", children: /* @__PURE__ */ w("div", { className: Qi.statisticItem, onClick: o, children: /* @__PURE__ */ w("span", { children: `${e.t(
|
|
7539
7540
|
(ya == null ? void 0 : ya[r.name]) || r.name
|
|
7540
7541
|
)}: ${i}` }) }, r.name) });
|
|
7541
7542
|
};
|
|
7542
7543
|
function Qb(r) {
|
|
7543
7544
|
const { pattern: e, value: t } = r;
|
|
7544
|
-
return typeof t != "number" ? 0 : t >= 1e8 ? t.toExponential(2) : e && Gb.includes(r.name) ?
|
|
7545
|
+
return typeof t != "number" ? 0 : t >= 1e8 ? t.toExponential(2) : e && Gb.includes(r.name) ? Dn.format(e, t, { throws: !1 }) : t.toLocaleString();
|
|
7545
7546
|
}
|
|
7546
7547
|
const Zu = 800, Kb = 3, Jb = () => {
|
|
7547
7548
|
var h, g;
|
|
7548
|
-
const e = (g = (h = L(
|
|
7549
|
+
const e = (g = (h = L(bn).getConfig(vn)) == null ? void 0 : h.statusBarStatistic) != null ? g : !0, [t, n] = ne(window.innerWidth < Zu), i = L($l), o = i.getFunctions().map((m, f) => ({
|
|
7549
7550
|
name: m.func,
|
|
7550
7551
|
value: 0,
|
|
7551
7552
|
show: !0,
|
|
7552
7553
|
disable: !1,
|
|
7553
7554
|
pattern: null
|
|
7554
7555
|
})), s = (m, f, p, S) => {
|
|
7555
|
-
const [v, C] = ne(m), [b, R] = ne(!0), I = Dt(() => v.filter((P) => P.show && !P.disable), [v]), y = Dt(() => I.find((P) => P.show && !P.disable), [I]), M = Dt(() => p && y ? [y] : I, [p, y, I]), E =
|
|
7556
|
+
const [v, C] = ne(m), [b, R] = ne(!0), I = Dt(() => v.filter((P) => P.show && !P.disable), [v]), y = Dt(() => I.find((P) => P.show && !P.disable), [I]), M = Dt(() => p && y ? [y] : I, [p, y, I]), E = Ln((P) => {
|
|
7556
7557
|
const T = P == null ? void 0 : P.values;
|
|
7557
7558
|
if (!(T != null && T.length)) {
|
|
7558
7559
|
R(!1);
|
|
@@ -7597,7 +7598,7 @@ const Zu = 800, Kb = 3, Jb = () => {
|
|
|
7597
7598
|
return /* @__PURE__ */ w(Mr, { children: v.map((C, b) => /* @__PURE__ */ q(
|
|
7598
7599
|
"div",
|
|
7599
7600
|
{
|
|
7600
|
-
className:
|
|
7601
|
+
className: Qi.statisticListColumn,
|
|
7601
7602
|
children: [
|
|
7602
7603
|
C[0] && /* @__PURE__ */ w(
|
|
7603
7604
|
p,
|
|
@@ -7629,12 +7630,12 @@ const Zu = 800, Kb = 3, Jb = () => {
|
|
|
7629
7630
|
return a && /* @__PURE__ */ q(
|
|
7630
7631
|
"div",
|
|
7631
7632
|
{
|
|
7632
|
-
className: qe(
|
|
7633
|
-
[
|
|
7633
|
+
className: qe(Qi.statusBar, {
|
|
7634
|
+
[Qi.singleMode]: t
|
|
7634
7635
|
}),
|
|
7635
7636
|
children: [
|
|
7636
7637
|
/* @__PURE__ */ w("div", { className: "univer-flex", children: u }),
|
|
7637
|
-
/* @__PURE__ */ w("div", { className:
|
|
7638
|
+
/* @__PURE__ */ w("div", { className: Qi.statusBarDiv })
|
|
7638
7639
|
]
|
|
7639
7640
|
}
|
|
7640
7641
|
);
|
|
@@ -7904,7 +7905,7 @@ function Hm(r) {
|
|
|
7904
7905
|
function kE(r) {
|
|
7905
7906
|
return r.getContextValue(Ht) && r.getContextValue($e) && r.getContextValue(Ts) && r.getContextValue(kr);
|
|
7906
7907
|
}
|
|
7907
|
-
function
|
|
7908
|
+
function Co(r) {
|
|
7908
7909
|
return r.getContextValue(Ht) && r.getContextValue(kr) && r.getContextValue($e) && !r.getContextValue(Ts) && !r.getContextValue(El);
|
|
7909
7910
|
}
|
|
7910
7911
|
const km = [
|
|
@@ -7919,7 +7920,7 @@ function Vm() {
|
|
|
7919
7920
|
r.push({
|
|
7920
7921
|
id: pi.id,
|
|
7921
7922
|
binding: e,
|
|
7922
|
-
preconditions: (t) =>
|
|
7923
|
+
preconditions: (t) => Co(t),
|
|
7923
7924
|
staticParameters: {
|
|
7924
7925
|
visible: !1,
|
|
7925
7926
|
eventType: Ye.Keyboard,
|
|
@@ -7929,7 +7930,7 @@ function Vm() {
|
|
|
7929
7930
|
}), r.push({
|
|
7930
7931
|
id: pi.id,
|
|
7931
7932
|
binding: e | Te.SHIFT,
|
|
7932
|
-
preconditions: (t) =>
|
|
7933
|
+
preconditions: (t) => Co(t),
|
|
7933
7934
|
staticParameters: {
|
|
7934
7935
|
visible: !1,
|
|
7935
7936
|
eventType: Ye.Keyboard,
|
|
@@ -7955,7 +7956,7 @@ const Nm = {
|
|
|
7955
7956
|
binding: Z.ENTER,
|
|
7956
7957
|
description: "shortcut.sheet.toggle-editing",
|
|
7957
7958
|
group: "4_sheet-edit",
|
|
7958
|
-
preconditions: (r) =>
|
|
7959
|
+
preconditions: (r) => Co(r),
|
|
7959
7960
|
staticParameters: {
|
|
7960
7961
|
visible: !1,
|
|
7961
7962
|
eventType: Ye.Keyboard,
|
|
@@ -7964,7 +7965,7 @@ const Nm = {
|
|
|
7964
7965
|
}, Lm = {
|
|
7965
7966
|
id: at.id,
|
|
7966
7967
|
binding: Z.TAB,
|
|
7967
|
-
preconditions: (r) =>
|
|
7968
|
+
preconditions: (r) => Co(r),
|
|
7968
7969
|
staticParameters: {
|
|
7969
7970
|
visible: !1,
|
|
7970
7971
|
eventType: Ye.Keyboard,
|
|
@@ -7975,7 +7976,7 @@ const Nm = {
|
|
|
7975
7976
|
binding: Z.ESC,
|
|
7976
7977
|
description: "shortcut.sheet.abort-editing",
|
|
7977
7978
|
group: "4_sheet-edit",
|
|
7978
|
-
preconditions: (r) =>
|
|
7979
|
+
preconditions: (r) => Co(r),
|
|
7979
7980
|
staticParameters: {
|
|
7980
7981
|
visible: !1,
|
|
7981
7982
|
eventType: Ye.Keyboard,
|
|
@@ -8116,7 +8117,7 @@ function u_(r, e, t, n) {
|
|
|
8116
8117
|
if (i.startsWith("="))
|
|
8117
8118
|
return g_(r, i, e, n);
|
|
8118
8119
|
const o = i.toLowerCase();
|
|
8119
|
-
return Lc[o] ? Lc[o] :
|
|
8120
|
+
return Lc[o] ? Lc[o] : Dn.parseValue(i) == null ? r : i;
|
|
8120
8121
|
}
|
|
8121
8122
|
function h_(r) {
|
|
8122
8123
|
const e = /['"].*?['"]/g, t = [], n = r.split(e);
|
|
@@ -8149,11 +8150,11 @@ function g_(r, e, t, n) {
|
|
|
8149
8150
|
const d = l.startIndex + s + 2, u = l.endIndex + s + 1;
|
|
8150
8151
|
o = Yr(r.slice(d, u), o, d, u);
|
|
8151
8152
|
} else if (l.nodeType !== _a.ARRAY) {
|
|
8152
|
-
const d =
|
|
8153
|
+
const d = Dn.parseValue(c);
|
|
8153
8154
|
if (d == null) {
|
|
8154
8155
|
const u = l.startIndex + s + 1, h = l.endIndex + s + 2;
|
|
8155
8156
|
o = Yr(r.slice(u, h), o, u, h);
|
|
8156
|
-
} else if (typeof d.v == "number" && (d.z === void 0 || !
|
|
8157
|
+
} else if (typeof d.v == "number" && (d.z === void 0 || !Dn.isDate(d.z))) {
|
|
8157
8158
|
const u = `${d.v}`, h = l.startIndex + s + 1, g = l.endIndex + s + 2, { processedString: m, offset: f } = S_(c, u);
|
|
8158
8159
|
o = Yr(m, o, h, g), s += f;
|
|
8159
8160
|
}
|
|
@@ -8257,10 +8258,10 @@ let Wc = class extends ae {
|
|
|
8257
8258
|
switch (n.id) {
|
|
8258
8259
|
case Wl.id:
|
|
8259
8260
|
case Bl.id:
|
|
8261
|
+
case Lo.id:
|
|
8260
8262
|
case Do.id:
|
|
8261
|
-
case
|
|
8262
|
-
case Wo.id:
|
|
8263
|
-
case Lo.id: {
|
|
8263
|
+
case Bo.id:
|
|
8264
|
+
case Wo.id: {
|
|
8264
8265
|
const i = this._editorBridgeService.getEditLocation();
|
|
8265
8266
|
if (!i) break;
|
|
8266
8267
|
const o = {
|
|
@@ -8443,7 +8444,7 @@ let Wc = class extends ae {
|
|
|
8443
8444
|
}), o === Z.ESC) {
|
|
8444
8445
|
this._editorBridgeService.isForceKeepVisible() && this._editorBridgeService.disableForceKeepVisible();
|
|
8445
8446
|
const p = this._workbookSelections.getCurrentSelections();
|
|
8446
|
-
p && (this._contextService.setContextValue(
|
|
8447
|
+
p && (this._contextService.setContextValue(lo, !1), this._commandService.syncExecuteCommand(Ee.id, {
|
|
8447
8448
|
unitId: this._context.unit.getUnitId(),
|
|
8448
8449
|
subUnitId: h,
|
|
8449
8450
|
selections: p
|
|
@@ -8480,10 +8481,13 @@ let Wc = class extends ae {
|
|
|
8480
8481
|
this._functionService,
|
|
8481
8482
|
l.getStyles()
|
|
8482
8483
|
);
|
|
8483
|
-
if (!d
|
|
8484
|
+
if (!d)
|
|
8485
|
+
return !0;
|
|
8486
|
+
const u = this._sheetInterceptorService.onWriteCell(l, a, o, s, d);
|
|
8487
|
+
if (u === a.getCellRaw(o, s))
|
|
8484
8488
|
return !0;
|
|
8485
8489
|
const h = ad(6);
|
|
8486
|
-
return this._commandService.syncExecuteCommand(
|
|
8490
|
+
return this._commandService.syncExecuteCommand(No.id, {
|
|
8487
8491
|
subUnitId: i,
|
|
8488
8492
|
unitId: n,
|
|
8489
8493
|
range: {
|
|
@@ -8492,7 +8496,7 @@ let Wc = class extends ae {
|
|
|
8492
8496
|
endRow: o,
|
|
8493
8497
|
endColumn: s
|
|
8494
8498
|
},
|
|
8495
|
-
value:
|
|
8499
|
+
value: u,
|
|
8496
8500
|
redoUndoId: h
|
|
8497
8501
|
}) && await this._sheetInterceptorService.onValidateCell(l, a, o, s) === !1 ? (this._undoRedoService.rollback(h, n), !1) : !0;
|
|
8498
8502
|
}
|
|
@@ -8677,7 +8681,7 @@ var I_ = Object.getOwnPropertyDescriptor, y_ = (r, e, t, n) => {
|
|
|
8677
8681
|
(s = r[o]) && (i = s(i) || i);
|
|
8678
8682
|
return i;
|
|
8679
8683
|
}, Ma = (r, e) => (t, n) => e(t, n, r);
|
|
8680
|
-
const Ju = om.MARK_SELECTION, Ti =
|
|
8684
|
+
const Ju = om.MARK_SELECTION, Ti = Cn("univer.mark-selection-service");
|
|
8681
8685
|
let Gs = class extends ae {
|
|
8682
8686
|
constructor(e, t, n) {
|
|
8683
8687
|
super();
|
|
@@ -8863,7 +8867,7 @@ function $u(r, e, t) {
|
|
|
8863
8867
|
}
|
|
8864
8868
|
case "color": {
|
|
8865
8869
|
try {
|
|
8866
|
-
const n = new
|
|
8870
|
+
const n = new Nn(e);
|
|
8867
8871
|
n.isValid && (t.cl = {
|
|
8868
8872
|
rgb: n.toRgbString()
|
|
8869
8873
|
});
|
|
@@ -8872,7 +8876,7 @@ function $u(r, e, t) {
|
|
|
8872
8876
|
break;
|
|
8873
8877
|
}
|
|
8874
8878
|
case "background-color": {
|
|
8875
|
-
const n = new
|
|
8879
|
+
const n = new Nn(e), i = n.isValid ? n.toRgbString() : "";
|
|
8876
8880
|
i !== RS && i !== IS && (t.bg = { rgb: i });
|
|
8877
8881
|
break;
|
|
8878
8882
|
}
|
|
@@ -9666,7 +9670,7 @@ const nt = {
|
|
|
9666
9670
|
Ci.use(W_);
|
|
9667
9671
|
Ci.use(D_);
|
|
9668
9672
|
Ci.use(L_);
|
|
9669
|
-
const on =
|
|
9673
|
+
const on = Cn("sheet.clipboard-service");
|
|
9670
9674
|
let Qs = class extends ae {
|
|
9671
9675
|
constructor(e, t, n, i, o, s, l, a, c, d, u, h, g, m) {
|
|
9672
9676
|
super();
|
|
@@ -9849,7 +9853,7 @@ let Qs = class extends ae {
|
|
|
9849
9853
|
const t = this._getPastingTarget();
|
|
9850
9854
|
if (!t.subUnitId || !t.selection)
|
|
9851
9855
|
return !1;
|
|
9852
|
-
const n = this._injector.invoke((h) =>
|
|
9856
|
+
const n = this._injector.invoke((h) => eo(t.selection.range, h, t.unitId, t.subUnitId));
|
|
9853
9857
|
if (!n)
|
|
9854
9858
|
return !1;
|
|
9855
9859
|
const { unitId: i, subUnitId: o } = t, s = this._clipboardHooks, l = [];
|
|
@@ -10157,7 +10161,7 @@ let Qs = class extends ae {
|
|
|
10157
10161
|
const i = this._getPastingTarget(), { selection: o, unitId: s, subUnitId: l } = i;
|
|
10158
10162
|
if (!l || !o)
|
|
10159
10163
|
return null;
|
|
10160
|
-
const a = this._injector.invoke((P) =>
|
|
10164
|
+
const a = this._injector.invoke((P) => eo(o.range, P, s, l));
|
|
10161
10165
|
if (!a)
|
|
10162
10166
|
return null;
|
|
10163
10167
|
const { ranges: [c], mapFunc: d } = Pi([a]), { startRow: u, startColumn: h, endRow: g, endColumn: m } = c, f = g - u + 1, p = m - h + 1, S = this._univerInstanceService.getCurrentUnitForType(x.UNIVER_SHEET), v = S == null ? void 0 : S.getActiveSheet();
|
|
@@ -10222,7 +10226,7 @@ let Qs = class extends ae {
|
|
|
10222
10226
|
const t = this._getPastingTarget(), { selection: n, unitId: i, subUnitId: o } = t;
|
|
10223
10227
|
if (!o || !n)
|
|
10224
10228
|
return null;
|
|
10225
|
-
const s = this._injector.invoke((C) =>
|
|
10229
|
+
const s = this._injector.invoke((C) => eo(n.range, C, i, o));
|
|
10226
10230
|
if (!s)
|
|
10227
10231
|
return null;
|
|
10228
10232
|
const { startColumn: l, endColumn: a, startRow: c, endRow: d } = e.getDataRange(), u = d - c + 1, h = a - l + 1;
|
|
@@ -10405,11 +10409,11 @@ const Jd = 998, mn = {
|
|
|
10405
10409
|
const t = r.get(on), { htmlContent: n, textContent: i, files: o } = e;
|
|
10406
10410
|
return t.legacyPaste(n, i, o), !0;
|
|
10407
10411
|
}
|
|
10408
|
-
},
|
|
10412
|
+
}, ro = {
|
|
10409
10413
|
id: "sheet.command.paste-value",
|
|
10410
10414
|
type: Q.COMMAND,
|
|
10411
10415
|
handler: async (r) => r.get(D).executeCommand(fn.id, { value: nt.SPECIAL_PASTE_VALUE })
|
|
10412
|
-
},
|
|
10416
|
+
}, io = {
|
|
10413
10417
|
id: "sheet.command.paste-format",
|
|
10414
10418
|
type: Q.COMMAND,
|
|
10415
10419
|
handler: async (r) => r.get(D).executeCommand(fn.id, {
|
|
@@ -10421,7 +10425,7 @@ const Jd = 998, mn = {
|
|
|
10421
10425
|
handler: async (r) => r.get(D).executeCommand(fn.id, {
|
|
10422
10426
|
value: nt.SPECIAL_PASTE_COL_WIDTH
|
|
10423
10427
|
})
|
|
10424
|
-
},
|
|
10428
|
+
}, oo = {
|
|
10425
10429
|
id: "sheet.command.paste-besides-border",
|
|
10426
10430
|
type: Q.COMMAND,
|
|
10427
10431
|
handler: async (r) => r.get(D).executeCommand(fn.id, {
|
|
@@ -10536,7 +10540,7 @@ const Jd = 998, mn = {
|
|
|
10536
10540
|
const t = r.get(D);
|
|
10537
10541
|
return r.get(Ve).getContextValue($e) ? t.executeCommand(Dp.id, e) : t.executeCommand(Td.id, e);
|
|
10538
10542
|
}
|
|
10539
|
-
},
|
|
10543
|
+
}, bo = {
|
|
10540
10544
|
type: Q.COMMAND,
|
|
10541
10545
|
id: "sheet.command.set-range-text-color",
|
|
10542
10546
|
handler: async (r, e) => {
|
|
@@ -10556,7 +10560,7 @@ var nw = Object.getOwnPropertyDescriptor, rw = (r, e, t, n) => {
|
|
|
10556
10560
|
(s = r[o]) && (i = s(i) || i);
|
|
10557
10561
|
return i;
|
|
10558
10562
|
}, Zr = (r, e) => (t, n) => e(t, n, r), Zt = /* @__PURE__ */ ((r) => (r[r.OFF = 0] = "OFF", r[r.ONCE = 1] = "ONCE", r[r.INFINITE = 2] = "INFINITE", r))(Zt || {});
|
|
10559
|
-
const Zn =
|
|
10563
|
+
const Zn = Cn("univer.format-painter-service");
|
|
10560
10564
|
let Ks = class extends ae {
|
|
10561
10565
|
constructor(e, t, n, i, o, s) {
|
|
10562
10566
|
super();
|
|
@@ -10658,7 +10662,7 @@ const ia = {
|
|
|
10658
10662
|
let n;
|
|
10659
10663
|
return t !== Zt.OFF ? n = Zt.OFF : n = Zt.INFINITE, r.get(D).executeCommand(ia.id, { status: n });
|
|
10660
10664
|
}
|
|
10661
|
-
},
|
|
10665
|
+
}, qo = {
|
|
10662
10666
|
type: Q.COMMAND,
|
|
10663
10667
|
id: "sheet.command.set-once-format-painter",
|
|
10664
10668
|
handler: async (r) => {
|
|
@@ -10740,7 +10744,7 @@ const sw = (r, e) => {
|
|
|
10740
10744
|
colWidth: o
|
|
10741
10745
|
};
|
|
10742
10746
|
};
|
|
10743
|
-
let
|
|
10747
|
+
let _o = class extends ae {
|
|
10744
10748
|
constructor(r, e) {
|
|
10745
10749
|
super(), this._renderManagerService = r, this._univerInstanceService = e;
|
|
10746
10750
|
}
|
|
@@ -10774,10 +10778,10 @@ let bo = class extends ae {
|
|
|
10774
10778
|
};
|
|
10775
10779
|
}
|
|
10776
10780
|
};
|
|
10777
|
-
|
|
10781
|
+
_o = ow([
|
|
10778
10782
|
ah(0, be),
|
|
10779
10783
|
ah(1, V(N))
|
|
10780
|
-
],
|
|
10784
|
+
], _o);
|
|
10781
10785
|
const aa = {
|
|
10782
10786
|
type: Q.COMMAND,
|
|
10783
10787
|
id: "sheet.command.set-col-auto-width",
|
|
@@ -10799,14 +10803,14 @@ const aa = {
|
|
|
10799
10803
|
unitId: l,
|
|
10800
10804
|
subUnitId: a,
|
|
10801
10805
|
ranges: c
|
|
10802
|
-
}, { redos: u, undos: h } = r.get(
|
|
10806
|
+
}, { redos: u, undos: h } = r.get(_o).getUndoRedoParamsOfColWidth(d);
|
|
10803
10807
|
return Ml([...u], t).result ? (n.pushUndoRedo({
|
|
10804
10808
|
unitID: l,
|
|
10805
10809
|
undoMutations: [...h],
|
|
10806
10810
|
redoMutations: [...u]
|
|
10807
10811
|
}), !0) : !1;
|
|
10808
10812
|
}
|
|
10809
|
-
}, ki = "UI_PLUGIN_SHEETS",
|
|
10813
|
+
}, ki = "UI_PLUGIN_SHEETS", Qo = `${ki}_COLOR_PICKER_COMPONENT`, eu = `${ki}_FONT_FAMILY_COMPONENT`, tu = `${ki}_FONT_FAMILY_ITEM_COMPONENT`, nu = `${ki}_FONT_SIZE_COMPONENT`, wn = `${ki}_MENU_ITEM_INPUT_COMPONENT`, lw = "univer-sheets-ui-context-menu-input", aw = "univer-sheets-ui-context-menu-input-container", cw = "univer-sheets-ui-context-menu-input-number", Ta = {
|
|
10810
10814
|
sheetsUiContextMenuInput: lw,
|
|
10811
10815
|
sheetsUiContextMenuInputContainer: aw,
|
|
10812
10816
|
sheetsUiContextMenuInputNumber: cw
|
|
@@ -10841,16 +10845,16 @@ const aa = {
|
|
|
10841
10845
|
] });
|
|
10842
10846
|
};
|
|
10843
10847
|
function dw(r) {
|
|
10844
|
-
return r.getCurrentTypeOfUnit$(x.UNIVER_SHEET).pipe(
|
|
10848
|
+
return r.getCurrentTypeOfUnit$(x.UNIVER_SHEET).pipe(Vn((e) => e ? e.activeSheet$.pipe(Sn((t) => t ? { workbook: e, worksheet: t } : null)) : Re(null)));
|
|
10845
10849
|
}
|
|
10846
10850
|
function Ct(r, e, t) {
|
|
10847
|
-
return dw(r).pipe(
|
|
10851
|
+
return dw(r).pipe(Vn((n) => n ? t(n) : Re(e)));
|
|
10848
10852
|
}
|
|
10849
10853
|
function uw(r, e) {
|
|
10850
10854
|
const t = r.get(N), n = r.get(nv), i = r.get($);
|
|
10851
10855
|
return t.getCurrentTypeOfUnit$(x.UNIVER_SHEET).pipe(
|
|
10852
|
-
|
|
10853
|
-
|
|
10856
|
+
Vn((s) => s ? dt([i.selectionMoveEnd$, s.activeSheet$]).pipe(
|
|
10857
|
+
Vn(([l, a]) => {
|
|
10854
10858
|
if (!a)
|
|
10855
10859
|
return Re(!1);
|
|
10856
10860
|
if (l.length === 0)
|
|
@@ -10879,13 +10883,13 @@ function me(r, e = {}, t = !1) {
|
|
|
10879
10883
|
tC(() => {
|
|
10880
10884
|
d.unsubscribe(), a.complete();
|
|
10881
10885
|
}),
|
|
10882
|
-
|
|
10883
|
-
|
|
10886
|
+
Vn(([g, m, f, p]) => !m || f != null && f.visible && f.unitId === m.getUnitId() && !t || p && !t ? Re(!0) : m.activeSheet$.pipe(
|
|
10887
|
+
Vn((S) => {
|
|
10884
10888
|
if (!S)
|
|
10885
10889
|
return Re(!0);
|
|
10886
10890
|
const v = r.get($), C = r.get(et), b = r.get(St), I = r.get(Ve).subscribeContextValue$(Pl).pipe(nC(!1));
|
|
10887
10891
|
return dt([v.selectionMoveEnd$, I]).pipe(
|
|
10888
|
-
|
|
10892
|
+
Vn(([y, M]) => {
|
|
10889
10893
|
if (M)
|
|
10890
10894
|
return Re(!0);
|
|
10891
10895
|
const E = m.getUnitId(), P = S.getSheetId(), T = r.get(ot), { workbookTypes: A = [J], worksheetTypes: H, rangeTypes: O } = e, k = [];
|
|
@@ -10978,8 +10982,8 @@ function ca(r, e) {
|
|
|
10978
10982
|
function Di(r, e) {
|
|
10979
10983
|
const n = r.get(N).getCurrentTypeOfUnit$(x.UNIVER_SHEET), i = r.get(St), o = r.get(et), s = r.get(ot), l = r.get(Wt);
|
|
10980
10984
|
return dt([l.currentUser$, n]).pipe(
|
|
10981
|
-
|
|
10982
|
-
|
|
10985
|
+
Vn(([a, c]) => c ? c.activeSheet$.pipe(
|
|
10986
|
+
Vn((d) => {
|
|
10983
10987
|
if (!d)
|
|
10984
10988
|
return Re(!0);
|
|
10985
10989
|
const u = c.getUnitId(), h = [];
|
|
@@ -10999,7 +11003,7 @@ var hw = /* @__PURE__ */ ((r) => (r.ROW_HEADER_CONTEXT_MENU = "ROW_HEADER_CONTEX
|
|
|
10999
11003
|
function gw(r) {
|
|
11000
11004
|
const e = r.get(Zn);
|
|
11001
11005
|
return {
|
|
11002
|
-
id:
|
|
11006
|
+
id: qo.id,
|
|
11003
11007
|
subId: $d.id,
|
|
11004
11008
|
type: K.BUTTON,
|
|
11005
11009
|
icon: "BrushSingle",
|
|
@@ -11034,15 +11038,15 @@ function mw(r) {
|
|
|
11034
11038
|
const h = u.id;
|
|
11035
11039
|
if (h === we.id || h === Ee.id || h === rt.id) {
|
|
11036
11040
|
const f = (g = i.getCurrentLastSelection()) == null ? void 0 : g.primary;
|
|
11037
|
-
let p =
|
|
11041
|
+
let p = rs.NORMAL;
|
|
11038
11042
|
if (f != null) {
|
|
11039
11043
|
const S = o.getRange(f.startRow, f.startColumn);
|
|
11040
11044
|
p = S == null ? void 0 : S.getFontWeight();
|
|
11041
11045
|
}
|
|
11042
|
-
s.next(p ===
|
|
11046
|
+
s.next(p === rs.BOLD);
|
|
11043
11047
|
}
|
|
11044
|
-
if ((h ===
|
|
11045
|
-
const f =
|
|
11048
|
+
if ((h === zo.id || h === Vo.id) && n.getContextValue($e) && n.getContextValue(Ht)) {
|
|
11049
|
+
const f = Jo(r);
|
|
11046
11050
|
if (f == null)
|
|
11047
11051
|
return;
|
|
11048
11052
|
const p = (m = f.ts) == null ? void 0 : m.bl;
|
|
@@ -11053,12 +11057,12 @@ function mw(r) {
|
|
|
11053
11057
|
s.next(!1);
|
|
11054
11058
|
return;
|
|
11055
11059
|
}
|
|
11056
|
-
let c =
|
|
11060
|
+
let c = rs.NORMAL;
|
|
11057
11061
|
if (a != null) {
|
|
11058
11062
|
const u = o.getRange(a.startRow, a.startColumn);
|
|
11059
11063
|
c = u == null ? void 0 : u.getFontWeight();
|
|
11060
11064
|
}
|
|
11061
|
-
return s.next(c ===
|
|
11065
|
+
return s.next(c === rs.BOLD), l.dispose;
|
|
11062
11066
|
})),
|
|
11063
11067
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
11064
11068
|
};
|
|
@@ -11087,26 +11091,26 @@ function fw(r) {
|
|
|
11087
11091
|
const h = u.id;
|
|
11088
11092
|
if (h === we.id || h === Ee.id || h === rt.id) {
|
|
11089
11093
|
const f = (g = n.getCurrentLastSelection()) == null ? void 0 : g.primary;
|
|
11090
|
-
let p =
|
|
11094
|
+
let p = is.NORMAL;
|
|
11091
11095
|
if (f != null) {
|
|
11092
11096
|
const S = o.getRange(f.startRow, f.startColumn);
|
|
11093
11097
|
p = S == null ? void 0 : S.getFontStyle();
|
|
11094
11098
|
}
|
|
11095
|
-
s.next(p ===
|
|
11099
|
+
s.next(p === is.ITALIC);
|
|
11096
11100
|
}
|
|
11097
|
-
if ((h ===
|
|
11098
|
-
const f =
|
|
11101
|
+
if ((h === zo.id || h === Vo.id) && i.getContextValue($e) && i.getContextValue(Ht)) {
|
|
11102
|
+
const f = Jo(r);
|
|
11099
11103
|
if (f == null) return;
|
|
11100
11104
|
const p = (m = f.ts) == null ? void 0 : m.it;
|
|
11101
11105
|
s.next(p === Ke.TRUE);
|
|
11102
11106
|
}
|
|
11103
11107
|
}), a = (d = n.getCurrentLastSelection()) == null ? void 0 : d.primary;
|
|
11104
|
-
let c =
|
|
11108
|
+
let c = is.NORMAL;
|
|
11105
11109
|
if (a != null) {
|
|
11106
11110
|
const u = o.getRange(a.startRow, a.startColumn);
|
|
11107
11111
|
c = u == null ? void 0 : u.getFontStyle();
|
|
11108
11112
|
}
|
|
11109
|
-
return s.next(c ===
|
|
11113
|
+
return s.next(c === is.ITALIC), l.dispose;
|
|
11110
11114
|
})),
|
|
11111
11115
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
11112
11116
|
};
|
|
@@ -11133,8 +11137,8 @@ function pw(r) {
|
|
|
11133
11137
|
}
|
|
11134
11138
|
s.next(!!(p && p.s));
|
|
11135
11139
|
}
|
|
11136
|
-
if ((h ===
|
|
11137
|
-
const f =
|
|
11140
|
+
if ((h === zo.id || h === Vo.id) && i.getContextValue($e) && i.getContextValue(Ht)) {
|
|
11141
|
+
const f = Jo(r);
|
|
11138
11142
|
if (f == null) return;
|
|
11139
11143
|
const p = (m = f.ts) == null ? void 0 : m.ul;
|
|
11140
11144
|
s.next((p == null ? void 0 : p.s) === Ke.TRUE);
|
|
@@ -11174,8 +11178,8 @@ function Sw(r) {
|
|
|
11174
11178
|
}
|
|
11175
11179
|
s.next(!!(p && p.s));
|
|
11176
11180
|
}
|
|
11177
|
-
if ((h ===
|
|
11178
|
-
const f =
|
|
11181
|
+
if ((h === zo.id || h === Vo.id) && i.getContextValue($e) && i.getContextValue(Ht)) {
|
|
11182
|
+
const f = Jo(r);
|
|
11179
11183
|
if (f == null)
|
|
11180
11184
|
return;
|
|
11181
11185
|
const p = (m = f.ts) == null ? void 0 : m.st;
|
|
@@ -11253,14 +11257,14 @@ function Cw(r) {
|
|
|
11253
11257
|
a.next(h);
|
|
11254
11258
|
}, d = () => {
|
|
11255
11259
|
var g, m;
|
|
11256
|
-
const h =
|
|
11260
|
+
const h = Jo(r);
|
|
11257
11261
|
if (h != null) {
|
|
11258
11262
|
const f = (m = (g = h.ts) == null ? void 0 : g.fs) != null ? m : o;
|
|
11259
11263
|
a.next(f);
|
|
11260
11264
|
}
|
|
11261
11265
|
}, u = e.onCommandExecuted((h) => {
|
|
11262
11266
|
const g = h.id;
|
|
11263
|
-
(g === we.id || g === Ee.id || g === rt.id) && c(), (g ===
|
|
11267
|
+
(g === we.id || g === Ee.id || g === rt.id) && c(), (g === zo.id || g === Vo.id) && i.getContextValue($e) && i.getContextValue(Ht) && d();
|
|
11264
11268
|
});
|
|
11265
11269
|
return c(), u.dispose;
|
|
11266
11270
|
})),
|
|
@@ -11280,14 +11284,14 @@ function bw(r) {
|
|
|
11280
11284
|
function _w(r) {
|
|
11281
11285
|
const e = r.get(D), t = r.get(Lt);
|
|
11282
11286
|
return {
|
|
11283
|
-
id:
|
|
11287
|
+
id: bo.id,
|
|
11284
11288
|
icon: "FontColor",
|
|
11285
11289
|
tooltip: "toolbar.textColor.main",
|
|
11286
11290
|
type: K.BUTTON_SELECTOR,
|
|
11287
11291
|
selections: [
|
|
11288
11292
|
{
|
|
11289
11293
|
label: {
|
|
11290
|
-
name:
|
|
11294
|
+
name: Qo,
|
|
11291
11295
|
hoverable: !1,
|
|
11292
11296
|
selectable: !1
|
|
11293
11297
|
}
|
|
@@ -11295,7 +11299,7 @@ function _w(r) {
|
|
|
11295
11299
|
],
|
|
11296
11300
|
value$: new ze((n) => {
|
|
11297
11301
|
const i = t.getCurrentTheme().textColor, o = e.onCommandExecuted((s) => {
|
|
11298
|
-
if (s.id ===
|
|
11302
|
+
if (s.id === bo.id) {
|
|
11299
11303
|
const l = s.params.value;
|
|
11300
11304
|
n.next(l != null ? l : i);
|
|
11301
11305
|
}
|
|
@@ -11325,7 +11329,7 @@ function Rw(r) {
|
|
|
11325
11329
|
selections: [
|
|
11326
11330
|
{
|
|
11327
11331
|
label: {
|
|
11328
|
-
name:
|
|
11332
|
+
name: Qo,
|
|
11329
11333
|
hoverable: !1,
|
|
11330
11334
|
selectable: !1
|
|
11331
11335
|
}
|
|
@@ -11563,7 +11567,7 @@ function Ew(r) {
|
|
|
11563
11567
|
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] })
|
|
11564
11568
|
};
|
|
11565
11569
|
}
|
|
11566
|
-
function
|
|
11570
|
+
function Ko(r) {
|
|
11567
11571
|
return new ze((t) => t.next(!r.get(xl).supportClipboard));
|
|
11568
11572
|
}
|
|
11569
11573
|
function ai(r) {
|
|
@@ -11573,7 +11577,7 @@ function ai(r) {
|
|
|
11573
11577
|
type: K.BUTTON,
|
|
11574
11578
|
title: "rightClick.copy",
|
|
11575
11579
|
icon: "Copy",
|
|
11576
|
-
disabled$: me(r, { workbookTypes: [
|
|
11580
|
+
disabled$: me(r, { workbookTypes: [qi], worksheetTypes: [Hs], rangeTypes: [bc] }),
|
|
11577
11581
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
11578
11582
|
};
|
|
11579
11583
|
}
|
|
@@ -11584,7 +11588,7 @@ function Oa(r) {
|
|
|
11584
11588
|
type: K.BUTTON,
|
|
11585
11589
|
title: "rightClick.paste",
|
|
11586
11590
|
icon: "PasteSpecial",
|
|
11587
|
-
disabled$:
|
|
11591
|
+
disabled$: Ko(r).pipe(
|
|
11588
11592
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [te, Ge, Jt], workbookTypes: [J] })),
|
|
11589
11593
|
Be(([e, t]) => e || t)
|
|
11590
11594
|
),
|
|
@@ -11603,10 +11607,10 @@ function xa(r) {
|
|
|
11603
11607
|
}
|
|
11604
11608
|
function Aa(r) {
|
|
11605
11609
|
return {
|
|
11606
|
-
id:
|
|
11610
|
+
id: ro.id,
|
|
11607
11611
|
type: K.BUTTON,
|
|
11608
11612
|
title: "rightClick.pasteValue",
|
|
11609
|
-
disabled$:
|
|
11613
|
+
disabled$: Ko(r).pipe(
|
|
11610
11614
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [Jt, te], workbookTypes: [J] })),
|
|
11611
11615
|
Be(([e, t]) => e || t)
|
|
11612
11616
|
),
|
|
@@ -11615,10 +11619,10 @@ function Aa(r) {
|
|
|
11615
11619
|
}
|
|
11616
11620
|
function Ha(r) {
|
|
11617
11621
|
return {
|
|
11618
|
-
id:
|
|
11622
|
+
id: io.id,
|
|
11619
11623
|
type: K.BUTTON,
|
|
11620
11624
|
title: "rightClick.pasteFormat",
|
|
11621
|
-
disabled$:
|
|
11625
|
+
disabled$: Ko(r).pipe(
|
|
11622
11626
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [Ge, te], workbookTypes: [J] })),
|
|
11623
11627
|
Be(([e, t]) => e || t)
|
|
11624
11628
|
),
|
|
@@ -11630,7 +11634,7 @@ function ka(r) {
|
|
|
11630
11634
|
id: li.id,
|
|
11631
11635
|
type: K.BUTTON,
|
|
11632
11636
|
title: "rightClick.pasteColWidth",
|
|
11633
|
-
disabled$:
|
|
11637
|
+
disabled$: Ko(r).pipe(
|
|
11634
11638
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [Dr, te], workbookTypes: [J] })),
|
|
11635
11639
|
Be(([e, t]) => e || t)
|
|
11636
11640
|
)
|
|
@@ -11638,10 +11642,10 @@ function ka(r) {
|
|
|
11638
11642
|
}
|
|
11639
11643
|
function Va(r) {
|
|
11640
11644
|
return {
|
|
11641
|
-
id:
|
|
11645
|
+
id: oo.id,
|
|
11642
11646
|
type: K.BUTTON,
|
|
11643
11647
|
title: "rightClick.pasteBesidesBorder",
|
|
11644
|
-
disabled$:
|
|
11648
|
+
disabled$: Ko(r).pipe(
|
|
11645
11649
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [te, Ge, Jt, Nr, Dr], workbookTypes: [J] })),
|
|
11646
11650
|
Be(([e, t]) => e || t)
|
|
11647
11651
|
),
|
|
@@ -11803,7 +11807,7 @@ function Dw(r) {
|
|
|
11803
11807
|
type: K.BUTTON,
|
|
11804
11808
|
icon: "AdjustHeight",
|
|
11805
11809
|
label: {
|
|
11806
|
-
name:
|
|
11810
|
+
name: wn,
|
|
11807
11811
|
props: {
|
|
11808
11812
|
prefix: "rightClick.rowHeight",
|
|
11809
11813
|
suffix: "px",
|
|
@@ -11834,7 +11838,7 @@ function Lw(r) {
|
|
|
11834
11838
|
type: K.BUTTON,
|
|
11835
11839
|
icon: "AdjustWidth",
|
|
11836
11840
|
label: {
|
|
11837
|
-
name:
|
|
11841
|
+
name: wn,
|
|
11838
11842
|
props: {
|
|
11839
11843
|
prefix: "rightClick.columnWidth",
|
|
11840
11844
|
suffix: "px",
|
|
@@ -11859,7 +11863,7 @@ function Lw(r) {
|
|
|
11859
11863
|
hidden$: me(r, { workbookTypes: [J], worksheetTypes: [te, Dr], rangeTypes: [re] })
|
|
11860
11864
|
};
|
|
11861
11865
|
}
|
|
11862
|
-
function
|
|
11866
|
+
function Jo(r) {
|
|
11863
11867
|
var a;
|
|
11864
11868
|
const e = r.get(N), t = r.get(xd), n = e.getUniverDocInstance(We), i = t.getActiveTextRange();
|
|
11865
11869
|
if (n == null || i == null) return null;
|
|
@@ -11874,7 +11878,7 @@ var Ww = Object.getOwnPropertyDescriptor, Bw = (r, e, t, n) => {
|
|
|
11874
11878
|
return i;
|
|
11875
11879
|
}, fr = (r, e) => (t, n) => e(t, n, r);
|
|
11876
11880
|
const Fw = "__SpreadsheetFreezeRowMainName__", Uw = "__SpreadsheetFreezeRowHeaderName__", Xw = "__SpreadsheetFreezeColumnMainName__", zw = "__SpreadsheetFreezeColumnHeaderName__", La = 2, jw = 0.01, Ui = cr("freezePermissionCheck");
|
|
11877
|
-
let
|
|
11881
|
+
let wo = class extends ae {
|
|
11878
11882
|
constructor(e, t, n, i, o, s, l, a) {
|
|
11879
11883
|
super();
|
|
11880
11884
|
_(this, "_rowFreezeHeaderRect");
|
|
@@ -12061,7 +12065,7 @@ let _o = class extends ae {
|
|
|
12061
12065
|
const h = this._getFreeze();
|
|
12062
12066
|
h && (this._changeToColumn = h.startColumn, this._changeToRow = h.startRow), this._scenePointerMoveSub = a.onPointerMove$.subscribeEvent((m) => {
|
|
12063
12067
|
var I, y, M, E;
|
|
12064
|
-
const f = this._getActiveViewport(m), { startX: p, startY: S, row: v, column: C } =
|
|
12068
|
+
const f = this._getActiveViewport(m), { startX: p, startY: S, row: v, column: C } = Bn(
|
|
12065
12069
|
m.offsetX,
|
|
12066
12070
|
m.offsetY,
|
|
12067
12071
|
a,
|
|
@@ -12436,7 +12440,7 @@ let _o = class extends ae {
|
|
|
12436
12440
|
);
|
|
12437
12441
|
}
|
|
12438
12442
|
_themeChange(e) {
|
|
12439
|
-
this._freezeNormalHeaderColor = e.grey400, this._freezeNormalMainColor = new
|
|
12443
|
+
this._freezeNormalHeaderColor = e.grey400, this._freezeNormalMainColor = new Nn(e.grey400).setAlpha(jw).toRgbString(), this._freezeActiveColor = e.primaryColor, this._freezeHoverColor = e.grey500;
|
|
12440
12444
|
}
|
|
12441
12445
|
// eslint-disable-next-line max-lines-per-function
|
|
12442
12446
|
_interceptorCommands() {
|
|
@@ -12607,7 +12611,7 @@ let _o = class extends ae {
|
|
|
12607
12611
|
(!t || t.startRow !== d || t.ySplit !== h) && (c |= 2), (!t || t.startColumn !== u || t.xSplit !== g) && (c |= 1), o.resetScroll === !1 && (c = 0), this._refreshFreeze(d, u, h, g, c);
|
|
12608
12612
|
}
|
|
12609
12613
|
break;
|
|
12610
|
-
case
|
|
12614
|
+
case ao.id:
|
|
12611
12615
|
{
|
|
12612
12616
|
const t = this._getFreeze(), n = t && e.params.ranges.some((i) => i.startRow < t.startRow);
|
|
12613
12617
|
e.params && n && this._refreshCurrent();
|
|
@@ -12697,7 +12701,7 @@ let _o = class extends ae {
|
|
|
12697
12701
|
return e.freeze;
|
|
12698
12702
|
}
|
|
12699
12703
|
_getSheetObject() {
|
|
12700
|
-
return
|
|
12704
|
+
return _n(this._context.unit, this._context);
|
|
12701
12705
|
}
|
|
12702
12706
|
/**
|
|
12703
12707
|
* Core function of _refreshCurrent
|
|
@@ -12718,7 +12722,7 @@ let _o = class extends ae {
|
|
|
12718
12722
|
this._clearFreeze(), this._createFreeze(0, s), this._createFreeze(1, s), this._updateViewport(e, t, n, i, o), (l = this._getSheetObject()) == null || l.spreadsheet.makeForceDirty();
|
|
12719
12723
|
}
|
|
12720
12724
|
};
|
|
12721
|
-
|
|
12725
|
+
wo = Bw([
|
|
12722
12726
|
fr(1, V(he)),
|
|
12723
12727
|
fr(2, D),
|
|
12724
12728
|
fr(3, V($)),
|
|
@@ -12726,7 +12730,7 @@ _o = Bw([
|
|
|
12726
12730
|
fr(5, V(Lt)),
|
|
12727
12731
|
fr(6, V(zn)),
|
|
12728
12732
|
fr(7, V(It))
|
|
12729
|
-
],
|
|
12733
|
+
], wo);
|
|
12730
12734
|
function Yw(r) {
|
|
12731
12735
|
const e = r.get($), t = r.get(et), n = r.get(N), i = r.get(lv), o = n.getCurrentTypeOfUnit$(x.UNIVER_SHEET);
|
|
12732
12736
|
return dt([
|
|
@@ -12776,7 +12780,7 @@ var Zw = Object.getOwnPropertyDescriptor, Gw = (r, e, t, n) => {
|
|
|
12776
12780
|
return i;
|
|
12777
12781
|
}, Wa = (r, e) => (t, n) => e(t, n, r);
|
|
12778
12782
|
const qw = "__SpreadsheetHeaderMoveControllerBackground__", Qw = "__SpreadsheetHeaderMoveControllerShapeLine__", Kw = "rgba(0, 0, 0, 0.1)", Jw = "rgb(119, 119, 119)", $w = 4, Ba = cr("headerMovePermissionCheck");
|
|
12779
|
-
let
|
|
12783
|
+
let Ro = class extends ae {
|
|
12780
12784
|
constructor(e, t, n, i) {
|
|
12781
12785
|
super();
|
|
12782
12786
|
_(this, "_startOffsetX", Number.NEGATIVE_INFINITY);
|
|
@@ -12814,7 +12818,7 @@ let wo = class extends ae {
|
|
|
12814
12818
|
const u = (v = this._workbookSelections.getCurrentLastSelection()) == null ? void 0 : v.range;
|
|
12815
12819
|
if (!u || !this.interceptor.fetchThroughInterceptors(Ba)(!1, u))
|
|
12816
12820
|
return;
|
|
12817
|
-
const g = this._workbookSelections.getCurrentSelections(), { row: m, column: f } =
|
|
12821
|
+
const g = this._workbookSelections.getCurrentSelections(), { row: m, column: f } = Bn(c.offsetX, c.offsetY, i, d);
|
|
12818
12822
|
if (!Js(
|
|
12819
12823
|
g,
|
|
12820
12824
|
e === z.ROW ? m : f,
|
|
@@ -12838,7 +12842,7 @@ let wo = class extends ae {
|
|
|
12838
12842
|
return;
|
|
12839
12843
|
const { offsetX: m, offsetY: f } = c, p = i.getCoordRelativeToViewport(ke.FromArray([m, f])), { x: S, y: v } = p;
|
|
12840
12844
|
this._startOffsetX = S, this._startOffsetY = v;
|
|
12841
|
-
const { row: C, column: b } =
|
|
12845
|
+
const { row: C, column: b } = Bn(c.offsetX, c.offsetY, i, u);
|
|
12842
12846
|
let R;
|
|
12843
12847
|
e === z.ROW ? (this._changeFromRow = C, R = Pt.Y) : (this._changeFromColumn = b, R = Pt.X);
|
|
12844
12848
|
const I = this._workbookSelections.getCurrentSelections(), y = Js(
|
|
@@ -13011,17 +13015,17 @@ let wo = class extends ae {
|
|
|
13011
13015
|
(e = this._moveHelperBackgroundShape) == null || e.dispose(), (t = this._moveHelperLineShape) == null || t.dispose();
|
|
13012
13016
|
}
|
|
13013
13017
|
};
|
|
13014
|
-
|
|
13018
|
+
Ro = Gw([
|
|
13015
13019
|
Wa(1, V($)),
|
|
13016
13020
|
Wa(2, V(he)),
|
|
13017
13021
|
Wa(3, D)
|
|
13018
|
-
],
|
|
13022
|
+
], Ro);
|
|
13019
13023
|
var Xc = /* @__PURE__ */ ((r) => (r[r.VERTICAL = 0] = "VERTICAL", r[r.HORIZONTAL = 1] = "HORIZONTAL", r))(Xc || {});
|
|
13020
|
-
const e0 = "rgba(120, 120, 120, 0.01)", Fa = "rgb(68, 71, 70)",
|
|
13024
|
+
const e0 = "rgba(120, 120, 120, 0.01)", Fa = "rgb(68, 71, 70)", Ki = 12, t0 = 44, zc = 4;
|
|
13021
13025
|
class mh extends pd {
|
|
13022
13026
|
constructor(t, n) {
|
|
13023
13027
|
super(t, n);
|
|
13024
|
-
_(this, "_size",
|
|
13028
|
+
_(this, "_size", Ki);
|
|
13025
13029
|
_(this, "_color", Fa);
|
|
13026
13030
|
_(this, "_mode", 0);
|
|
13027
13031
|
this.setShapeProps(n);
|
|
@@ -13038,7 +13042,7 @@ class mh extends pd {
|
|
|
13038
13042
|
_draw(t) {
|
|
13039
13043
|
const n = this.getScene();
|
|
13040
13044
|
if (!n) return;
|
|
13041
|
-
const { scaleX: i, scaleY: o } = n.getAncestorScale(), s = Math.max(i, o), l =
|
|
13045
|
+
const { scaleX: i, scaleY: o } = n.getAncestorScale(), s = Math.max(i, o), l = Ki / s, a = zc / s;
|
|
13042
13046
|
let { width: c, height: d } = this, u = 0, h = 0;
|
|
13043
13047
|
this.mode === 0 ? (c = a, u = l - a) : (d = a, h = l - a), Ce.drawWith(t, {
|
|
13044
13048
|
width: this.width,
|
|
@@ -13060,11 +13064,11 @@ class mh extends pd {
|
|
|
13060
13064
|
}
|
|
13061
13065
|
setShapeProps(t) {
|
|
13062
13066
|
return t != null && t.size && (this._size = t.size), t != null && t.mode && (this._mode = t.mode), t != null && t.color && (this._color = t.color), this.mode === 0 ? this.transformByState({
|
|
13063
|
-
width:
|
|
13067
|
+
width: Ki,
|
|
13064
13068
|
height: this.size
|
|
13065
13069
|
}) : this.transformByState({
|
|
13066
13070
|
width: this.size,
|
|
13067
|
-
height:
|
|
13071
|
+
height: Ki
|
|
13068
13072
|
}), this;
|
|
13069
13073
|
}
|
|
13070
13074
|
}
|
|
@@ -13128,12 +13132,12 @@ let $s = class extends ae {
|
|
|
13128
13132
|
const d = (M = this._sheetSkeletonManagerService.getCurrentParam()) == null ? void 0 : M.skeleton;
|
|
13129
13133
|
if (d == null || this._rowResizeRect == null || this._columnResizeRect == null)
|
|
13130
13134
|
return;
|
|
13131
|
-
const { rowHeaderWidth: u, columnHeaderHeight: h } = d, { startX: g, startY: m, endX: f, endY: p, row: S, column: v } =
|
|
13135
|
+
const { rowHeaderWidth: u, columnHeaderHeight: h } = d, { startX: g, startY: m, endX: f, endY: p, row: S, column: v } = Bn(
|
|
13132
13136
|
a.offsetX,
|
|
13133
13137
|
a.offsetY,
|
|
13134
13138
|
i,
|
|
13135
13139
|
d
|
|
13136
|
-
), C = ws(a.offsetX, a.offsetY, i), { scaleX: b, scaleY: R } = i.getAncestorScale(), I = Math.max(b, R), y =
|
|
13140
|
+
), C = ws(a.offsetX, a.offsetY, i), { scaleX: b, scaleY: R } = i.getAncestorScale(), I = Math.max(b, R), y = Ki / I;
|
|
13137
13141
|
if (e === 0) {
|
|
13138
13142
|
let E = m - y / 2;
|
|
13139
13143
|
if (C.y <= m + y / 2 && C.y >= m)
|
|
@@ -13306,17 +13310,17 @@ var l0 = Object.getOwnPropertyDescriptor, a0 = (r, e, t, n) => {
|
|
|
13306
13310
|
for (var i = n > 1 ? void 0 : n ? l0(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
13307
13311
|
(s = r[o]) && (i = s(i) || i);
|
|
13308
13312
|
return i;
|
|
13309
|
-
},
|
|
13313
|
+
}, Xi = (r, e) => (t, n) => e(t, n, r);
|
|
13310
13314
|
const c0 = 60;
|
|
13311
13315
|
let el = class extends Un {
|
|
13312
|
-
constructor(e, t, n, i, o) {
|
|
13316
|
+
constructor(e, t, n, i, o, s) {
|
|
13313
13317
|
super();
|
|
13314
13318
|
_(this, "_renderMetric$", new Ae());
|
|
13315
13319
|
_(this, "renderMetric$", this._renderMetric$.asObservable());
|
|
13316
13320
|
_(this, "_renderFrameTimeMetric", null);
|
|
13317
13321
|
_(this, "_renderFrameTags", {});
|
|
13318
13322
|
_(this, "_afterRenderMetric$", new Ae());
|
|
13319
|
-
this._context = e, this.
|
|
13323
|
+
this._context = e, this._configService = t, this._sheetSkeletonManagerService = n, this._sheetRenderService = i, this._commandService = o, this._telemetryService = s, this._addNewRender(), this._initRenderMetricSubscriber();
|
|
13320
13324
|
}
|
|
13321
13325
|
_addNewRender() {
|
|
13322
13326
|
const { scene: e, engine: t, unit: n } = this._context;
|
|
@@ -13400,7 +13404,7 @@ let el = class extends Un {
|
|
|
13400
13404
|
), t.enableLayerCache(xu, ar);
|
|
13401
13405
|
}
|
|
13402
13406
|
_initViewports(e, t, n) {
|
|
13403
|
-
const s = new
|
|
13407
|
+
const s = new Rn(U.VIEW_MAIN, e, {
|
|
13404
13408
|
left: t.width,
|
|
13405
13409
|
top: n.height,
|
|
13406
13410
|
bottom: 0,
|
|
@@ -13409,43 +13413,43 @@ let el = class extends Un {
|
|
|
13409
13413
|
allowCache: !0,
|
|
13410
13414
|
bufferEdgeX: 100,
|
|
13411
13415
|
bufferEdgeY: 100
|
|
13412
|
-
}), l = new
|
|
13416
|
+
}), l = new Rn(U.VIEW_MAIN_LEFT_TOP, e, {
|
|
13413
13417
|
isWheelPreventDefaultX: !0,
|
|
13414
13418
|
active: !1,
|
|
13415
13419
|
allowCache: !0,
|
|
13416
13420
|
bufferEdgeX: 0,
|
|
13417
13421
|
bufferEdgeY: 0
|
|
13418
|
-
}), a = new
|
|
13422
|
+
}), a = new Rn(U.VIEW_MAIN_LEFT, e, {
|
|
13419
13423
|
isWheelPreventDefaultX: !0,
|
|
13420
13424
|
active: !1,
|
|
13421
13425
|
allowCache: !0,
|
|
13422
13426
|
bufferEdgeX: 0,
|
|
13423
13427
|
bufferEdgeY: 100
|
|
13424
|
-
}), c = new
|
|
13428
|
+
}), c = new Rn(U.VIEW_MAIN_TOP, e, {
|
|
13425
13429
|
isWheelPreventDefaultX: !0,
|
|
13426
13430
|
active: !1,
|
|
13427
13431
|
allowCache: !0,
|
|
13428
13432
|
bufferEdgeX: 100,
|
|
13429
13433
|
bufferEdgeY: 0
|
|
13430
|
-
}), d = new
|
|
13434
|
+
}), d = new Rn(U.VIEW_ROW_TOP, e, {
|
|
13431
13435
|
active: !1,
|
|
13432
13436
|
isWheelPreventDefaultX: !0
|
|
13433
|
-
}), u = new
|
|
13437
|
+
}), u = new Rn(U.VIEW_ROW_BOTTOM, e, {
|
|
13434
13438
|
left: 0,
|
|
13435
13439
|
top: n.height,
|
|
13436
13440
|
bottom: 0,
|
|
13437
13441
|
width: t.width + 1,
|
|
13438
13442
|
isWheelPreventDefaultX: !0
|
|
13439
|
-
}), h = new
|
|
13443
|
+
}), h = new Rn(U.VIEW_COLUMN_LEFT, e, {
|
|
13440
13444
|
active: !1,
|
|
13441
13445
|
isWheelPreventDefaultX: !0
|
|
13442
|
-
}), g = new
|
|
13446
|
+
}), g = new Rn(U.VIEW_COLUMN_RIGHT, e, {
|
|
13443
13447
|
left: t.width,
|
|
13444
13448
|
top: 0,
|
|
13445
13449
|
height: n.height + 1,
|
|
13446
13450
|
right: 0,
|
|
13447
13451
|
isWheelPreventDefaultX: !0
|
|
13448
|
-
}), m = new
|
|
13452
|
+
}), m = new Rn(U.VIEW_LEFT_TOP, e, {
|
|
13449
13453
|
left: 0,
|
|
13450
13454
|
top: 0,
|
|
13451
13455
|
width: t.width,
|
|
@@ -13476,8 +13480,8 @@ let el = class extends Un {
|
|
|
13476
13480
|
* +-----------------+--------------------+-------------------+
|
|
13477
13481
|
*/
|
|
13478
13482
|
_addViewport(e) {
|
|
13479
|
-
const t = this._context.scene, { rowHeader: n, columnHeader: i } = e.getConfig(), { viewMain: o } = this._initViewports(t, n, i);
|
|
13480
|
-
return new fd(o), t.attachControl(), o;
|
|
13483
|
+
const t = this._context.scene, { rowHeader: n, columnHeader: i } = e.getConfig(), { viewMain: o } = this._initViewports(t, n, i), s = this._configService.getConfig(vn), l = s == null ? void 0 : s.scrollConfig;
|
|
13484
|
+
return new fd(o, l), t.attachControl(), o;
|
|
13481
13485
|
}
|
|
13482
13486
|
_initRerenderScheduler() {
|
|
13483
13487
|
this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe((e) => {
|
|
@@ -13563,10 +13567,11 @@ let el = class extends Un {
|
|
|
13563
13567
|
}
|
|
13564
13568
|
};
|
|
13565
13569
|
el = a0([
|
|
13566
|
-
|
|
13567
|
-
|
|
13568
|
-
|
|
13569
|
-
|
|
13570
|
+
Xi(1, V(bn)),
|
|
13571
|
+
Xi(2, V(he)),
|
|
13572
|
+
Xi(3, V(xr)),
|
|
13573
|
+
Xi(4, D),
|
|
13574
|
+
Xi(5, ld(rC))
|
|
13570
13575
|
], el);
|
|
13571
13576
|
function d0(r, e) {
|
|
13572
13577
|
if (r.length !== e.length) return !1;
|
|
@@ -13827,7 +13832,7 @@ const hr = {
|
|
|
13827
13832
|
subUnitId: c
|
|
13828
13833
|
});
|
|
13829
13834
|
}
|
|
13830
|
-
},
|
|
13835
|
+
}, $o = {
|
|
13831
13836
|
type: Q.COMMAND,
|
|
13832
13837
|
id: "sheet.command.delete-range-move-left-confirm",
|
|
13833
13838
|
handler: async (r) => {
|
|
@@ -13846,7 +13851,7 @@ const hr = {
|
|
|
13846
13851
|
const m = de.getIntersects(g, c);
|
|
13847
13852
|
return m ? d(g) > d(m) : !1;
|
|
13848
13853
|
}) ? await e.confirm({
|
|
13849
|
-
id:
|
|
13854
|
+
id: $o.id,
|
|
13850
13855
|
title: { title: n.t("merge.confirm.waring") },
|
|
13851
13856
|
children: { title: n.t("merge.confirm.dismantleMergeCellWaring") },
|
|
13852
13857
|
cancelText: n.t("button.cancel"),
|
|
@@ -13919,7 +13924,7 @@ const hr = {
|
|
|
13919
13924
|
confirmText: n.t("button.confirm")
|
|
13920
13925
|
}) ? t.executeCommand(_c.id) : !0 : t.executeCommand(_c.id);
|
|
13921
13926
|
}
|
|
13922
|
-
},
|
|
13927
|
+
}, es = {
|
|
13923
13928
|
type: Q.COMMAND,
|
|
13924
13929
|
id: "sheet.command.insert-range-move-right-confirm",
|
|
13925
13930
|
handler: async (r) => {
|
|
@@ -13938,7 +13943,7 @@ const hr = {
|
|
|
13938
13943
|
const m = de.getIntersects(g, c);
|
|
13939
13944
|
return m ? d(g) > d(m) : !1;
|
|
13940
13945
|
}) ? await e.confirm({
|
|
13941
|
-
id:
|
|
13946
|
+
id: es.id,
|
|
13942
13947
|
title: { title: n.t("merge.confirm.waring") },
|
|
13943
13948
|
children: { title: n.t("merge.confirm.dismantleMergeCellWaring") },
|
|
13944
13949
|
cancelText: n.t("button.cancel"),
|
|
@@ -13946,8 +13951,8 @@ const hr = {
|
|
|
13946
13951
|
}) ? t.executeCommand(wc.id) : !0 : t.executeCommand(wc.id);
|
|
13947
13952
|
}
|
|
13948
13953
|
};
|
|
13949
|
-
var lf = /* @__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))(lf || {}), ge = /* @__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))(ge || {}), Nt = /* @__PURE__ */ ((r) => (r[r.Reader = 0] = "Reader", r[r.Editor = 1] = "Editor", r[r.Owner = 2] = "Owner", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(Nt || {}),
|
|
13950
|
-
const
|
|
13954
|
+
var lf = /* @__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))(lf || {}), ge = /* @__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))(ge || {}), Nt = /* @__PURE__ */ ((r) => (r[r.Reader = 0] = "Reader", r[r.Editor = 1] = "Editor", r[r.Owner = 2] = "Owner", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(Nt || {}), xn = /* @__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))(xn || {}), ln = /* @__PURE__ */ ((r) => (r[r.SomeCollaborator = 0] = "SomeCollaborator", r[r.AllCollaborator = 1] = "AllCollaborator", r[r.OneSelf = 2] = "OneSelf", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(ln || {});
|
|
13955
|
+
const Io = "UNIVER_SHEET_PERMISSION_PANEL", jc = "UNIVER_SHEET_PERMISSION_USER_PART", af = "UNIVER_SHEET_PERMISSION_BACKGROUND", cf = "UNIVER_SHEET_PERMISSION_USER_DIALOG", df = "UNIVER_SHEET_PERMISSION_DIALOG", tl = "UNIVER_SHEET_PERMISSION_USER_DIALOG_ID", nl = "UNIVER_SHEET_PERMISSION_DIALOG_ID", cs = {
|
|
13951
13956
|
[ge.Copy]: "Copy",
|
|
13952
13957
|
[ge.SetCellStyle]: "SetCellStyle",
|
|
13953
13958
|
[ge.SetCellValue]: "SetCellValue",
|
|
@@ -14037,14 +14042,14 @@ class Fr {
|
|
|
14037
14042
|
this._selectUserList = e, this._selectUserList$.next(e);
|
|
14038
14043
|
}
|
|
14039
14044
|
}
|
|
14040
|
-
const
|
|
14045
|
+
const Fn = {
|
|
14041
14046
|
type: Q.OPERATION,
|
|
14042
14047
|
id: "sheet-permission.operation.openPanel",
|
|
14043
14048
|
async handler(r, e = {}) {
|
|
14044
14049
|
const t = r.get(Mi), n = r.get(wi), i = r.get(Fr), { showDetail: o = !0, fromSheetBar: s = !1, rule: l, oldRule: a } = e, c = {
|
|
14045
14050
|
header: { title: "permission.panel.title" },
|
|
14046
14051
|
children: {
|
|
14047
|
-
label:
|
|
14052
|
+
label: Io,
|
|
14048
14053
|
showDetail: o,
|
|
14049
14054
|
fromSheetBar: s,
|
|
14050
14055
|
rule: l,
|
|
@@ -14061,31 +14066,31 @@ const Bn = {
|
|
|
14061
14066
|
type: Q.COMMAND,
|
|
14062
14067
|
id: "sheet.command.add-range-protection-from-toolbar",
|
|
14063
14068
|
async handler(r) {
|
|
14064
|
-
return await r.get(D).executeCommand(
|
|
14069
|
+
return await r.get(D).executeCommand(Fn.id, { showDetail: !0 }), !0;
|
|
14065
14070
|
}
|
|
14066
14071
|
}, ci = {
|
|
14067
14072
|
type: Q.COMMAND,
|
|
14068
14073
|
id: "sheet.command.add-range-protection-from-context-menu",
|
|
14069
14074
|
async handler(r) {
|
|
14070
|
-
return await r.get(D).executeCommand(
|
|
14075
|
+
return await r.get(D).executeCommand(Fn.id, { showDetail: !0 }), !0;
|
|
14071
14076
|
}
|
|
14072
14077
|
}, di = {
|
|
14073
14078
|
type: Q.COMMAND,
|
|
14074
14079
|
id: "sheet.command.view-sheet-permission-from-context-menu",
|
|
14075
14080
|
async handler(r) {
|
|
14076
|
-
return await r.get(D).executeCommand(
|
|
14081
|
+
return await r.get(D).executeCommand(Fn.id, { showDetail: !1 }), !0;
|
|
14077
14082
|
}
|
|
14078
14083
|
}, ua = {
|
|
14079
14084
|
type: Q.COMMAND,
|
|
14080
14085
|
id: "sheet.command.add-range-protection-from-sheet-bar",
|
|
14081
14086
|
async handler(r) {
|
|
14082
|
-
return await r.get(D).executeCommand(
|
|
14087
|
+
return await r.get(D).executeCommand(Fn.id, { fromSheetBar: !0, showDetail: !0 }), !0;
|
|
14083
14088
|
}
|
|
14084
14089
|
}, ha = {
|
|
14085
14090
|
type: Q.COMMAND,
|
|
14086
14091
|
id: "sheet.command.view-sheet-permission-from-sheet-bar",
|
|
14087
14092
|
async handler(r) {
|
|
14088
|
-
return await r.get(D).executeCommand(
|
|
14093
|
+
return await r.get(D).executeCommand(Fn.id, { showDetail: !1 }), !0;
|
|
14089
14094
|
}
|
|
14090
14095
|
}, ui = {
|
|
14091
14096
|
type: Q.COMMAND,
|
|
@@ -14128,7 +14133,7 @@ const Bn = {
|
|
|
14128
14133
|
subUnitId: a,
|
|
14129
14134
|
ranges: []
|
|
14130
14135
|
};
|
|
14131
|
-
return await e.executeCommand(
|
|
14136
|
+
return await e.executeCommand(Fn.id, { showDetail: !0, rule: se.deepClone(u), oldRule: se.deepClone(u) }), !0;
|
|
14132
14137
|
} else {
|
|
14133
14138
|
const u = (d = n.getCurrentLastSelection()) == null ? void 0 : d.range;
|
|
14134
14139
|
if (!u)
|
|
@@ -14143,12 +14148,12 @@ const Bn = {
|
|
|
14143
14148
|
unitId: l,
|
|
14144
14149
|
subUnitId: a
|
|
14145
14150
|
};
|
|
14146
|
-
return await e.executeCommand(
|
|
14151
|
+
return await e.executeCommand(Fn.id, { showDetail: !0, rule: se.deepClone(f), oldRule: se.deepClone(f) }), !0;
|
|
14147
14152
|
} else
|
|
14148
14153
|
return !1;
|
|
14149
14154
|
}
|
|
14150
14155
|
}
|
|
14151
|
-
},
|
|
14156
|
+
}, yo = {
|
|
14152
14157
|
id: "sheet.command.remove-row-confirm",
|
|
14153
14158
|
type: Q.COMMAND,
|
|
14154
14159
|
handler: async (r, e) => {
|
|
@@ -14174,7 +14179,7 @@ const Bn = {
|
|
|
14174
14179
|
}
|
|
14175
14180
|
return await i.executeCommand(Tg.id, { range: n }), !0;
|
|
14176
14181
|
}
|
|
14177
|
-
},
|
|
14182
|
+
}, Mo = {
|
|
14178
14183
|
id: "sheet.command.remove-col-confirm",
|
|
14179
14184
|
type: Q.COMMAND,
|
|
14180
14185
|
handler: async (r, e) => {
|
|
@@ -14745,7 +14750,7 @@ const za = {
|
|
|
14745
14750
|
hidden: d = !1,
|
|
14746
14751
|
// 是否对用户隐藏,与excel兼容,暂时用不上。
|
|
14747
14752
|
id: u
|
|
14748
|
-
} = r, g = L(N).getCurrentUnitForType(x.UNIVER_SHEET), m = L(He), f = L(
|
|
14753
|
+
} = r, g = L(N).getCurrentUnitForType(x.UNIVER_SHEET), m = L(He), f = L(jo), p = L(qg), S = L(Gg), v = L(Xn), C = Dt(() => v.get(im), []), b = Dt(() => v.get(Vd), []);
|
|
14749
14754
|
if (g == null)
|
|
14750
14755
|
return;
|
|
14751
14756
|
const R = Dt(() => g.getUnitId(), []), I = Dt(() => g.getActiveSheet().getSheetId(), []), [y, M] = ne(s), [E, P] = ne(l), [T, A] = ne(a), [H, O] = ne(c), [k, F] = ne(""), [X, B] = ne(n), [j, Y] = ne(!0), ie = [{
|
|
@@ -14810,7 +14815,7 @@ const za = {
|
|
|
14810
14815
|
}, G = (Se) => {
|
|
14811
14816
|
const Oe = Se;
|
|
14812
14817
|
Oe === "formula" ? l[0] === Qr.EQUALS ? P(l) : P(`${Qr.EQUALS}`) : l[0] === Qr.EQUALS ? P("") : P(l), B(Oe);
|
|
14813
|
-
}, ee =
|
|
14818
|
+
}, ee = kn({}), [le, pe] = ne(!1);
|
|
14814
14819
|
return Jh((Se) => {
|
|
14815
14820
|
var ue;
|
|
14816
14821
|
const Oe = (ue = ee.current) == null ? void 0 : ue.handleOutClick;
|
|
@@ -14876,7 +14881,7 @@ const za = {
|
|
|
14876
14881
|
] })
|
|
14877
14882
|
] });
|
|
14878
14883
|
}, pf = () => {
|
|
14879
|
-
const r = L(D), t = L(N).getCurrentUnitForType(x.UNIVER_SHEET), n = L(He), i = L(
|
|
14884
|
+
const r = L(D), t = L(N).getCurrentUnitForType(x.UNIVER_SHEET), n = L(He), i = L(jo), o = L($);
|
|
14880
14885
|
if (t == null)
|
|
14881
14886
|
return;
|
|
14882
14887
|
const s = t.getUnitId(), l = () => {
|
|
@@ -15051,7 +15056,7 @@ function Ya(r) {
|
|
|
15051
15056
|
}
|
|
15052
15057
|
function Za(r) {
|
|
15053
15058
|
return {
|
|
15054
|
-
id:
|
|
15059
|
+
id: to.id,
|
|
15055
15060
|
type: K.BUTTON,
|
|
15056
15061
|
title: "rightClick.clearFormat",
|
|
15057
15062
|
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] }),
|
|
@@ -15080,7 +15085,7 @@ function A0(r) {
|
|
|
15080
15085
|
}
|
|
15081
15086
|
function wh(r) {
|
|
15082
15087
|
return {
|
|
15083
|
-
id:
|
|
15088
|
+
id: Mo.id,
|
|
15084
15089
|
type: K.BUTTON,
|
|
15085
15090
|
icon: "DeleteColumn",
|
|
15086
15091
|
title: "rightClick.deleteSelectedColumn",
|
|
@@ -15090,7 +15095,7 @@ function wh(r) {
|
|
|
15090
15095
|
}
|
|
15091
15096
|
function Rh(r) {
|
|
15092
15097
|
return {
|
|
15093
|
-
id:
|
|
15098
|
+
id: yo.id,
|
|
15094
15099
|
type: K.BUTTON,
|
|
15095
15100
|
icon: "DeleteRow",
|
|
15096
15101
|
title: "rightClick.deleteSelectedRow",
|
|
@@ -15100,7 +15105,7 @@ function Rh(r) {
|
|
|
15100
15105
|
}
|
|
15101
15106
|
function H0(r) {
|
|
15102
15107
|
return {
|
|
15103
|
-
id:
|
|
15108
|
+
id: $o.id,
|
|
15104
15109
|
type: K.BUTTON,
|
|
15105
15110
|
title: "rightClick.moveLeft",
|
|
15106
15111
|
icon: "DeleteCellShiftLeft",
|
|
@@ -15157,7 +15162,7 @@ function D0(r) {
|
|
|
15157
15162
|
type: K.BUTTON,
|
|
15158
15163
|
icon: "InsertRowAbove",
|
|
15159
15164
|
label: {
|
|
15160
|
-
name:
|
|
15165
|
+
name: wn,
|
|
15161
15166
|
props: {
|
|
15162
15167
|
prefix: "rightClick.insertRowsAbove",
|
|
15163
15168
|
min: 1,
|
|
@@ -15178,7 +15183,7 @@ function D0(r) {
|
|
|
15178
15183
|
});
|
|
15179
15184
|
return s(), l.dispose;
|
|
15180
15185
|
})),
|
|
15181
|
-
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [
|
|
15186
|
+
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [Xo, te], rangeTypes: [re] }),
|
|
15182
15187
|
hidden$: Jm(r, "row")
|
|
15183
15188
|
};
|
|
15184
15189
|
}
|
|
@@ -15189,7 +15194,7 @@ function L0(r) {
|
|
|
15189
15194
|
type: K.BUTTON,
|
|
15190
15195
|
icon: "LeftInsertColumn",
|
|
15191
15196
|
label: {
|
|
15192
|
-
name:
|
|
15197
|
+
name: wn,
|
|
15193
15198
|
props: {
|
|
15194
15199
|
prefix: "rightClick.insertColsLeft",
|
|
15195
15200
|
min: 1,
|
|
@@ -15216,7 +15221,7 @@ function L0(r) {
|
|
|
15216
15221
|
}
|
|
15217
15222
|
function W0(r) {
|
|
15218
15223
|
return {
|
|
15219
|
-
id:
|
|
15224
|
+
id: es.id,
|
|
15220
15225
|
type: K.BUTTON,
|
|
15221
15226
|
title: "rightClick.moveRight",
|
|
15222
15227
|
icon: "InsertCellShiftRight",
|
|
@@ -15241,7 +15246,7 @@ function F0(r) {
|
|
|
15241
15246
|
type: K.BUTTON,
|
|
15242
15247
|
icon: "InsertRowBelow",
|
|
15243
15248
|
label: {
|
|
15244
|
-
name:
|
|
15249
|
+
name: wn,
|
|
15245
15250
|
props: {
|
|
15246
15251
|
prefix: "rightClick.insertRowsAfter",
|
|
15247
15252
|
min: 1,
|
|
@@ -15262,7 +15267,7 @@ function F0(r) {
|
|
|
15262
15267
|
});
|
|
15263
15268
|
return s(), l.dispose;
|
|
15264
15269
|
})),
|
|
15265
|
-
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [
|
|
15270
|
+
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [Xo, te], rangeTypes: [re] }),
|
|
15266
15271
|
hidden$: Ni(r)
|
|
15267
15272
|
};
|
|
15268
15273
|
}
|
|
@@ -15273,7 +15278,7 @@ function U0(r) {
|
|
|
15273
15278
|
type: K.BUTTON,
|
|
15274
15279
|
icon: "InsertRowAbove",
|
|
15275
15280
|
label: {
|
|
15276
|
-
name:
|
|
15281
|
+
name: wn,
|
|
15277
15282
|
props: {
|
|
15278
15283
|
prefix: "rightClick.insertRowsAbove",
|
|
15279
15284
|
min: 1,
|
|
@@ -15294,7 +15299,7 @@ function U0(r) {
|
|
|
15294
15299
|
});
|
|
15295
15300
|
return s(), l.dispose;
|
|
15296
15301
|
})),
|
|
15297
|
-
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [
|
|
15302
|
+
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [Xo, te], rangeTypes: [re] }),
|
|
15298
15303
|
hidden$: Ni(r)
|
|
15299
15304
|
};
|
|
15300
15305
|
}
|
|
@@ -15305,7 +15310,7 @@ function X0(r) {
|
|
|
15305
15310
|
type: K.BUTTON,
|
|
15306
15311
|
icon: "LeftInsertColumn",
|
|
15307
15312
|
label: {
|
|
15308
|
-
name:
|
|
15313
|
+
name: wn,
|
|
15309
15314
|
props: {
|
|
15310
15315
|
prefix: "rightClick.insertColsLeft",
|
|
15311
15316
|
min: 1,
|
|
@@ -15326,7 +15331,7 @@ function X0(r) {
|
|
|
15326
15331
|
});
|
|
15327
15332
|
return s(), l.dispose;
|
|
15328
15333
|
})),
|
|
15329
|
-
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [
|
|
15334
|
+
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [Xo, te], rangeTypes: [re] }),
|
|
15330
15335
|
hidden$: Ni(r)
|
|
15331
15336
|
};
|
|
15332
15337
|
}
|
|
@@ -15337,7 +15342,7 @@ function z0(r) {
|
|
|
15337
15342
|
type: K.BUTTON,
|
|
15338
15343
|
icon: "RightInsertColumn",
|
|
15339
15344
|
label: {
|
|
15340
|
-
name:
|
|
15345
|
+
name: wn,
|
|
15341
15346
|
props: {
|
|
15342
15347
|
prefix: "rightClick.insertColsRight",
|
|
15343
15348
|
min: 1,
|
|
@@ -15358,7 +15363,7 @@ function z0(r) {
|
|
|
15358
15363
|
});
|
|
15359
15364
|
return s(), l.dispose;
|
|
15360
15365
|
})),
|
|
15361
|
-
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [
|
|
15366
|
+
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [Xo, te], rangeTypes: [re] }),
|
|
15362
15367
|
hidden$: Ni(r)
|
|
15363
15368
|
};
|
|
15364
15369
|
}
|
|
@@ -15464,12 +15469,12 @@ function K0(r) {
|
|
|
15464
15469
|
return ((E = d.getPermissionPoint(new wv(h, g).id)) == null ? void 0 : E.value) === !1;
|
|
15465
15470
|
if (m.filter((P) => P.ranges.some((T) => de.intersects(T, p))).length !== 1)
|
|
15466
15471
|
return !0;
|
|
15467
|
-
const { startRow: C, endRow: b, startColumn: R, endColumn: I } = p, y = r.get(
|
|
15472
|
+
const { startRow: C, endRow: b, startColumn: R, endColumn: I } = p, y = r.get(Uo);
|
|
15468
15473
|
for (let P = C; P <= b; P++)
|
|
15469
15474
|
for (let T = R; T <= I; T++) {
|
|
15470
15475
|
const A = y.getCellInfo(h, g, P, T);
|
|
15471
15476
|
if (A)
|
|
15472
|
-
return A[
|
|
15477
|
+
return A[co.ManageCollaborator] === !1;
|
|
15473
15478
|
}
|
|
15474
15479
|
return !1;
|
|
15475
15480
|
})
|
|
@@ -15628,12 +15633,12 @@ function nR(r) {
|
|
|
15628
15633
|
return ((E = t.getPermissionPoint(new Lg(a, c).id)) == null ? void 0 : E.value) === !1;
|
|
15629
15634
|
if (u.getSubunitRuleList(a, c).filter((P) => P.ranges.some((T) => de.intersects(T, S))).length !== 1)
|
|
15630
15635
|
return !0;
|
|
15631
|
-
const { startRow: b, endRow: R, startColumn: I, endColumn: y } = S, M = r.get(
|
|
15636
|
+
const { startRow: b, endRow: R, startColumn: I, endColumn: y } = S, M = r.get(Uo);
|
|
15632
15637
|
for (let P = b; P <= R; P++)
|
|
15633
15638
|
for (let T = I; T <= y; T++) {
|
|
15634
15639
|
const A = M.getCellInfo(a, c, P, T);
|
|
15635
15640
|
if (A)
|
|
15636
|
-
return A[
|
|
15641
|
+
return A[co.Delete] === !1;
|
|
15637
15642
|
}
|
|
15638
15643
|
return !1;
|
|
15639
15644
|
})
|
|
@@ -15755,7 +15760,7 @@ function aR(r) {
|
|
|
15755
15760
|
const e = r.get(N), t = r.get(D), n = new ze((o) => {
|
|
15756
15761
|
const s = t.onCommandExecuted((l) => {
|
|
15757
15762
|
const a = l.id;
|
|
15758
|
-
(a ===
|
|
15763
|
+
(a === Wn.id || a === Vr.id || a === lr.id) && rl(e, o);
|
|
15759
15764
|
});
|
|
15760
15765
|
return rl(e, o), s.dispose;
|
|
15761
15766
|
}), i = Di(r, [J, Rv]);
|
|
@@ -15795,7 +15800,7 @@ function uR(r) {
|
|
|
15795
15800
|
selections: [
|
|
15796
15801
|
{
|
|
15797
15802
|
label: {
|
|
15798
|
-
name:
|
|
15803
|
+
name: Qo,
|
|
15799
15804
|
hoverable: !1
|
|
15800
15805
|
}
|
|
15801
15806
|
}
|
|
@@ -15812,7 +15817,7 @@ function hR(r) {
|
|
|
15812
15817
|
disabled$: new ze((n) => {
|
|
15813
15818
|
const i = t.onCommandExecuted((o) => {
|
|
15814
15819
|
const s = o.id;
|
|
15815
|
-
(s ===
|
|
15820
|
+
(s === Wn.id || s === Vr.id || s === lr.id) && rl(e, n);
|
|
15816
15821
|
});
|
|
15817
15822
|
return rl(e, n), i.dispose;
|
|
15818
15823
|
}).pipe(
|
|
@@ -15835,7 +15840,7 @@ function gR(r) {
|
|
|
15835
15840
|
}
|
|
15836
15841
|
const o = t.onCommandExecuted((s) => {
|
|
15837
15842
|
const l = s.id;
|
|
15838
|
-
(l ===
|
|
15843
|
+
(l === Wn.id || l === Vr.id || l === lr.id) && i();
|
|
15839
15844
|
});
|
|
15840
15845
|
return i(), o.dispose;
|
|
15841
15846
|
}).pipe(
|
|
@@ -15853,7 +15858,7 @@ function rl(r, e) {
|
|
|
15853
15858
|
}
|
|
15854
15859
|
const mR = {
|
|
15855
15860
|
[ba.FORMAT]: {
|
|
15856
|
-
[
|
|
15861
|
+
[qo.id]: {
|
|
15857
15862
|
order: 0,
|
|
15858
15863
|
menuItemFactory: gw
|
|
15859
15864
|
},
|
|
@@ -15881,7 +15886,7 @@ const mR = {
|
|
|
15881
15886
|
order: 6,
|
|
15882
15887
|
menuItemFactory: Cw
|
|
15883
15888
|
},
|
|
15884
|
-
[
|
|
15889
|
+
[bo.id]: {
|
|
15885
15890
|
order: 7,
|
|
15886
15891
|
menuItemFactory: _w,
|
|
15887
15892
|
[Tv.id]: {
|
|
@@ -15963,11 +15968,11 @@ const mR = {
|
|
|
15963
15968
|
[Is]: {
|
|
15964
15969
|
order: 3,
|
|
15965
15970
|
menuItemFactory: xa,
|
|
15966
|
-
[
|
|
15971
|
+
[ro.id]: {
|
|
15967
15972
|
order: 0,
|
|
15968
15973
|
menuItemFactory: Aa
|
|
15969
15974
|
},
|
|
15970
|
-
[
|
|
15975
|
+
[io.id]: {
|
|
15971
15976
|
order: 1,
|
|
15972
15977
|
menuItemFactory: Ha
|
|
15973
15978
|
},
|
|
@@ -15975,7 +15980,7 @@ const mR = {
|
|
|
15975
15980
|
order: 2,
|
|
15976
15981
|
menuItemFactory: ka
|
|
15977
15982
|
},
|
|
15978
|
-
[
|
|
15983
|
+
[oo.id]: {
|
|
15979
15984
|
order: 3,
|
|
15980
15985
|
menuItemFactory: Va
|
|
15981
15986
|
}
|
|
@@ -15987,7 +15992,7 @@ const mR = {
|
|
|
15987
15992
|
order: 0,
|
|
15988
15993
|
menuItemFactory: Ya
|
|
15989
15994
|
},
|
|
15990
|
-
[
|
|
15995
|
+
[to.id]: {
|
|
15991
15996
|
order: 1,
|
|
15992
15997
|
menuItemFactory: Za
|
|
15993
15998
|
},
|
|
@@ -16010,7 +16015,7 @@ const mR = {
|
|
|
16010
16015
|
order: 1,
|
|
16011
16016
|
menuItemFactory: L0
|
|
16012
16017
|
},
|
|
16013
|
-
[
|
|
16018
|
+
[es.id]: {
|
|
16014
16019
|
order: 2,
|
|
16015
16020
|
menuItemFactory: W0
|
|
16016
16021
|
},
|
|
@@ -16022,15 +16027,15 @@ const mR = {
|
|
|
16022
16027
|
[Sf]: {
|
|
16023
16028
|
order: 0,
|
|
16024
16029
|
menuItemFactory: A0,
|
|
16025
|
-
[
|
|
16030
|
+
[Mo.id]: {
|
|
16026
16031
|
order: 0,
|
|
16027
16032
|
menuItemFactory: wh
|
|
16028
16033
|
},
|
|
16029
|
-
[
|
|
16034
|
+
[yo.id]: {
|
|
16030
16035
|
order: 1,
|
|
16031
16036
|
menuItemFactory: Rh
|
|
16032
16037
|
},
|
|
16033
|
-
[
|
|
16038
|
+
[$o.id]: {
|
|
16034
16039
|
order: 2,
|
|
16035
16040
|
menuItemFactory: H0
|
|
16036
16041
|
},
|
|
@@ -16104,11 +16109,11 @@ const mR = {
|
|
|
16104
16109
|
[Is]: {
|
|
16105
16110
|
order: 3,
|
|
16106
16111
|
menuItemFactory: xa,
|
|
16107
|
-
[
|
|
16112
|
+
[ro.id]: {
|
|
16108
16113
|
order: 0,
|
|
16109
16114
|
menuItemFactory: Aa
|
|
16110
16115
|
},
|
|
16111
|
-
[
|
|
16116
|
+
[io.id]: {
|
|
16112
16117
|
order: 1,
|
|
16113
16118
|
menuItemFactory: Ha
|
|
16114
16119
|
},
|
|
@@ -16116,7 +16121,7 @@ const mR = {
|
|
|
16116
16121
|
order: 2,
|
|
16117
16122
|
menuItemFactory: ka
|
|
16118
16123
|
},
|
|
16119
|
-
[
|
|
16124
|
+
[oo.id]: {
|
|
16120
16125
|
order: 3,
|
|
16121
16126
|
menuItemFactory: Va
|
|
16122
16127
|
}
|
|
@@ -16128,7 +16133,7 @@ const mR = {
|
|
|
16128
16133
|
order: 0,
|
|
16129
16134
|
menuItemFactory: Ya
|
|
16130
16135
|
},
|
|
16131
|
-
[
|
|
16136
|
+
[to.id]: {
|
|
16132
16137
|
order: 1,
|
|
16133
16138
|
menuItemFactory: Za
|
|
16134
16139
|
},
|
|
@@ -16156,7 +16161,7 @@ const mR = {
|
|
|
16156
16161
|
order: 2,
|
|
16157
16162
|
menuItemFactory: Nw
|
|
16158
16163
|
},
|
|
16159
|
-
[
|
|
16164
|
+
[Mo.id]: {
|
|
16160
16165
|
order: 2,
|
|
16161
16166
|
menuItemFactory: wh
|
|
16162
16167
|
},
|
|
@@ -16225,11 +16230,11 @@ const mR = {
|
|
|
16225
16230
|
[Is]: {
|
|
16226
16231
|
order: 3,
|
|
16227
16232
|
menuItemFactory: xa,
|
|
16228
|
-
[
|
|
16233
|
+
[ro.id]: {
|
|
16229
16234
|
order: 0,
|
|
16230
16235
|
menuItemFactory: Aa
|
|
16231
16236
|
},
|
|
16232
|
-
[
|
|
16237
|
+
[io.id]: {
|
|
16233
16238
|
order: 1,
|
|
16234
16239
|
menuItemFactory: Ha
|
|
16235
16240
|
},
|
|
@@ -16237,7 +16242,7 @@ const mR = {
|
|
|
16237
16242
|
order: 2,
|
|
16238
16243
|
menuItemFactory: ka
|
|
16239
16244
|
},
|
|
16240
|
-
[
|
|
16245
|
+
[oo.id]: {
|
|
16241
16246
|
order: 3,
|
|
16242
16247
|
menuItemFactory: Va
|
|
16243
16248
|
}
|
|
@@ -16249,7 +16254,7 @@ const mR = {
|
|
|
16249
16254
|
order: 0,
|
|
16250
16255
|
menuItemFactory: Ya
|
|
16251
16256
|
},
|
|
16252
|
-
[
|
|
16257
|
+
[to.id]: {
|
|
16253
16258
|
order: 1,
|
|
16254
16259
|
menuItemFactory: Za
|
|
16255
16260
|
},
|
|
@@ -16269,7 +16274,7 @@ const mR = {
|
|
|
16269
16274
|
order: 1,
|
|
16270
16275
|
menuItemFactory: F0
|
|
16271
16276
|
},
|
|
16272
|
-
[
|
|
16277
|
+
[yo.id]: {
|
|
16273
16278
|
order: 1,
|
|
16274
16279
|
menuItemFactory: Rh
|
|
16275
16280
|
},
|
|
@@ -16642,7 +16647,7 @@ const mR = {
|
|
|
16642
16647
|
preconditions: (r) => Ne(r),
|
|
16643
16648
|
mac: Z.DELETE
|
|
16644
16649
|
}, qf = {
|
|
16645
|
-
id:
|
|
16650
|
+
id: Zo.id,
|
|
16646
16651
|
description: "shortcut.sheet.zoom-in",
|
|
16647
16652
|
binding: Z.EQUAL | Te.CTRL_COMMAND,
|
|
16648
16653
|
group: "3_sheet-view",
|
|
@@ -16655,7 +16660,7 @@ const mR = {
|
|
|
16655
16660
|
id: ud.id,
|
|
16656
16661
|
binding: Z.EQUAL | Te.CTRL_COMMAND
|
|
16657
16662
|
}, Kf = {
|
|
16658
|
-
id:
|
|
16663
|
+
id: Zo.id,
|
|
16659
16664
|
description: "shortcut.sheet.zoom-out",
|
|
16660
16665
|
binding: Z.MINUS | Te.CTRL_COMMAND,
|
|
16661
16666
|
group: "3_sheet-view",
|
|
@@ -16668,7 +16673,7 @@ const mR = {
|
|
|
16668
16673
|
id: ud.id,
|
|
16669
16674
|
binding: Z.MINUS | Te.CTRL_COMMAND
|
|
16670
16675
|
}, $f = {
|
|
16671
|
-
id:
|
|
16676
|
+
id: Zo.id,
|
|
16672
16677
|
description: "shortcut.sheet.reset-zoom",
|
|
16673
16678
|
binding: Z.Digit0 | Te.CTRL_COMMAND,
|
|
16674
16679
|
preconditions: Ne,
|
|
@@ -16695,7 +16700,7 @@ let il = class extends ae {
|
|
|
16695
16700
|
}
|
|
16696
16701
|
_initComponents() {
|
|
16697
16702
|
const r = this._componentManager;
|
|
16698
|
-
this.disposeWithMe(r.register(
|
|
16703
|
+
this.disposeWithMe(r.register(wn, Km)), this.disposeWithMe(r.register(lu, ff)), this.disposeWithMe(r.register(Qo, Ad)), this.disposeWithMe(r.register(eu, rg)), this.disposeWithMe(r.register(tu, ig)), this.disposeWithMe(r.register(nu, og)), this.disposeWithMe(r.register(vo, pf)), this.disposeWithMe(r.register("HideGridlines", Rm));
|
|
16699
16704
|
}
|
|
16700
16705
|
_initCommands() {
|
|
16701
16706
|
[
|
|
@@ -16703,14 +16708,14 @@ let il = class extends ae {
|
|
|
16703
16708
|
hr,
|
|
16704
16709
|
ou,
|
|
16705
16710
|
iu,
|
|
16706
|
-
|
|
16711
|
+
Zo,
|
|
16707
16712
|
Qt,
|
|
16708
16713
|
Bt,
|
|
16709
16714
|
Yn,
|
|
16710
16715
|
Sa,
|
|
16711
16716
|
ga,
|
|
16712
|
-
Io,
|
|
16713
16717
|
yo,
|
|
16718
|
+
Mo,
|
|
16714
16719
|
ea,
|
|
16715
16720
|
ta,
|
|
16716
16721
|
gn,
|
|
@@ -16729,7 +16734,7 @@ let il = class extends ae {
|
|
|
16729
16734
|
qm,
|
|
16730
16735
|
na,
|
|
16731
16736
|
ra,
|
|
16732
|
-
|
|
16737
|
+
bo,
|
|
16733
16738
|
Qm,
|
|
16734
16739
|
yd,
|
|
16735
16740
|
Ed,
|
|
@@ -16737,28 +16742,28 @@ let il = class extends ae {
|
|
|
16737
16742
|
Pd,
|
|
16738
16743
|
ia,
|
|
16739
16744
|
$d,
|
|
16740
|
-
|
|
16745
|
+
qo,
|
|
16741
16746
|
oa,
|
|
16742
16747
|
hn,
|
|
16743
|
-
|
|
16748
|
+
po,
|
|
16744
16749
|
or,
|
|
16745
16750
|
sa,
|
|
16746
16751
|
la,
|
|
16747
16752
|
pm,
|
|
16748
16753
|
Md,
|
|
16749
|
-
|
|
16754
|
+
Go,
|
|
16750
16755
|
tn,
|
|
16751
16756
|
ma,
|
|
16752
16757
|
Zl,
|
|
16753
16758
|
_i,
|
|
16754
16759
|
bi,
|
|
16760
|
+
es,
|
|
16755
16761
|
$o,
|
|
16756
|
-
Jo,
|
|
16757
16762
|
Gd,
|
|
16758
16763
|
br,
|
|
16759
|
-
|
|
16764
|
+
go,
|
|
16760
16765
|
// permission
|
|
16761
|
-
|
|
16766
|
+
Fn,
|
|
16762
16767
|
gf,
|
|
16763
16768
|
da,
|
|
16764
16769
|
ci,
|
|
@@ -16835,8 +16840,8 @@ let il = class extends ae {
|
|
|
16835
16840
|
});
|
|
16836
16841
|
}
|
|
16837
16842
|
_initWorkbenchParts() {
|
|
16838
|
-
const r = this._uiPartsService, e = this._injector, t = this._configService.getConfig(
|
|
16839
|
-
(t == null ? void 0 : t.formulaBar) !== !1 && this.disposeWithMe(r.registerComponent(
|
|
16843
|
+
const r = this._uiPartsService, e = this._injector, t = this._configService.getConfig(vn);
|
|
16844
|
+
(t == null ? void 0 : t.formulaBar) !== !1 && this.disposeWithMe(r.registerComponent($i.HEADER, () => ii(e_, e))), this.disposeWithMe(r.registerComponent($i.FOOTER, () => ii($b, e))), this.disposeWithMe(r.registerComponent($i.CONTENT, () => ii(t_, e)));
|
|
16840
16845
|
}
|
|
16841
16846
|
_initFocusHandler() {
|
|
16842
16847
|
this.disposeWithMe(
|
|
@@ -16855,7 +16860,7 @@ il = SR([
|
|
|
16855
16860
|
qn(4, kl),
|
|
16856
16861
|
qn(5, Sd),
|
|
16857
16862
|
qn(6, Vl),
|
|
16858
|
-
qn(7,
|
|
16863
|
+
qn(7, bn)
|
|
16859
16864
|
], il);
|
|
16860
16865
|
const vR = (r = []) => {
|
|
16861
16866
|
const e = L(Ti);
|
|
@@ -16891,17 +16896,17 @@ var CR = Object.getOwnPropertyDescriptor, bR = (r, e, t, n) => {
|
|
|
16891
16896
|
(s = r[o]) && (i = s(i) || i);
|
|
16892
16897
|
return i;
|
|
16893
16898
|
}, Ih = (r, e) => (t, n) => e(t, n, r);
|
|
16894
|
-
let
|
|
16899
|
+
let Eo = class extends ae {
|
|
16895
16900
|
constructor(e, t) {
|
|
16896
16901
|
super();
|
|
16897
16902
|
_(this, "_previousSheetIndex", -1);
|
|
16898
16903
|
this._commandService = e, this._univerInstanceService = t, this.disposeWithMe(this._commandService.beforeCommandExecuted((n) => {
|
|
16899
|
-
if (n.id ===
|
|
16904
|
+
if (n.id === Wn.id)
|
|
16900
16905
|
return this._beforeAdjustActiveSheetOnRemoveSheet(
|
|
16901
16906
|
n
|
|
16902
16907
|
);
|
|
16903
16908
|
})), this.disposeWithMe(this._commandService.onCommandExecuted((n, i) => {
|
|
16904
|
-
if (n.id ===
|
|
16909
|
+
if (n.id === Wn.id)
|
|
16905
16910
|
return this._adjustActiveSheetOnRemoveSheet(n);
|
|
16906
16911
|
if (n.id === lr.id && n.params.hidden)
|
|
16907
16912
|
return this._adjustActiveSheetOnHideSheet(n);
|
|
@@ -16960,10 +16965,10 @@ let Mo = class extends ae {
|
|
|
16960
16965
|
});
|
|
16961
16966
|
}
|
|
16962
16967
|
};
|
|
16963
|
-
|
|
16968
|
+
Eo = bR([
|
|
16964
16969
|
Ih(0, D),
|
|
16965
16970
|
Ih(1, N)
|
|
16966
|
-
],
|
|
16971
|
+
], Eo);
|
|
16967
16972
|
function yh(r, e) {
|
|
16968
16973
|
const t = r.getSheetSize();
|
|
16969
16974
|
for (let n = e; n > -1; n--) {
|
|
@@ -16985,7 +16990,7 @@ var _R = Object.getOwnPropertyDescriptor, wR = (r, e, t, n) => {
|
|
|
16985
16990
|
(s = r[o]) && (i = s(i) || i);
|
|
16986
16991
|
return i;
|
|
16987
16992
|
}, pr = (r, e) => (t, n) => e(t, n, r);
|
|
16988
|
-
let
|
|
16993
|
+
let Po = class extends ae {
|
|
16989
16994
|
constructor(e, t, n, i, o, s, l) {
|
|
16990
16995
|
super();
|
|
16991
16996
|
// the DrawingTypeEnum should refer from drawing package, here we just use type, so no need to import the drawing package
|
|
@@ -17397,7 +17402,7 @@ let Eo = class extends ae {
|
|
|
17397
17402
|
};
|
|
17398
17403
|
}
|
|
17399
17404
|
};
|
|
17400
|
-
|
|
17405
|
+
Po = wR([
|
|
17401
17406
|
pr(0, V(WS)),
|
|
17402
17407
|
pr(1, be),
|
|
17403
17408
|
pr(2, N),
|
|
@@ -17405,7 +17410,7 @@ Eo = wR([
|
|
|
17405
17410
|
pr(4, D),
|
|
17406
17411
|
pr(5, Ll),
|
|
17407
17412
|
pr(6, V($))
|
|
17408
|
-
],
|
|
17413
|
+
], Po);
|
|
17409
17414
|
function ec(r) {
|
|
17410
17415
|
return Number.parseInt(r.replace("px", ""));
|
|
17411
17416
|
}
|
|
@@ -17413,8 +17418,8 @@ var RR = Object.getOwnPropertyDescriptor, IR = (r, e, t, n) => {
|
|
|
17413
17418
|
for (var i = n > 1 ? void 0 : n ? RR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
17414
17419
|
(s = r[o]) && (i = s(i) || i);
|
|
17415
17420
|
return i;
|
|
17416
|
-
}, Mh = (r, e) => (t, n) => e(t, n, r),
|
|
17417
|
-
let
|
|
17421
|
+
}, Mh = (r, e) => (t, n) => e(t, n, r), so = /* @__PURE__ */ ((r) => (r[r.INFO = 0] = "INFO", r[r.WARNING = 1] = "WARNING", r[r.ERROR = 2] = "ERROR", r))(so || {});
|
|
17422
|
+
let To = class extends ae {
|
|
17418
17423
|
constructor(e, t) {
|
|
17419
17424
|
super();
|
|
17420
17425
|
_(this, "_currentAlert$", new Ae());
|
|
@@ -17459,11 +17464,11 @@ let Po = class extends ae {
|
|
|
17459
17464
|
}), this._currentAlert.clear(), this._currentAlert$.next(Array.from(this._currentAlert.entries()));
|
|
17460
17465
|
}
|
|
17461
17466
|
};
|
|
17462
|
-
|
|
17467
|
+
To = IR([
|
|
17463
17468
|
Mh(0, be),
|
|
17464
|
-
Mh(1, V(
|
|
17465
|
-
],
|
|
17466
|
-
const yR = "univer-cell-alert", MR = "univer-cell-alert-title", ER = "univer-cell-alert-icon", PR = "univer-cell-alert-icon-error", TR = "univer-cell-alert-icon-info", OR = "univer-cell-alert-icon-warning", xR = "univer-cell-alert-content",
|
|
17469
|
+
Mh(1, V(Po))
|
|
17470
|
+
], To);
|
|
17471
|
+
const yR = "univer-cell-alert", MR = "univer-cell-alert-title", ER = "univer-cell-alert-icon", PR = "univer-cell-alert-icon-error", TR = "univer-cell-alert-icon-info", OR = "univer-cell-alert-icon-warning", xR = "univer-cell-alert-content", In = {
|
|
17467
17472
|
cellAlert: yR,
|
|
17468
17473
|
cellAlertTitle: MR,
|
|
17469
17474
|
cellAlertIcon: ER,
|
|
@@ -17478,16 +17483,16 @@ function AR({ popup: r }) {
|
|
|
17478
17483
|
if (!e)
|
|
17479
17484
|
return null;
|
|
17480
17485
|
const { type: t, title: n, message: i } = e, o = {
|
|
17481
|
-
[
|
|
17482
|
-
[
|
|
17483
|
-
[
|
|
17486
|
+
[so.ERROR]: /* @__PURE__ */ w(zd, { className: qe(In.cellAlertIcon, In.cellAlertIconError) }),
|
|
17487
|
+
[so.INFO]: /* @__PURE__ */ w(Dc, { className: qe(In.cellAlertIcon, In.cellAlertIconInfo) }),
|
|
17488
|
+
[so.WARNING]: /* @__PURE__ */ w(Dc, { className: qe(In.cellAlertIcon, In.cellAlertIconWarning) })
|
|
17484
17489
|
};
|
|
17485
|
-
return /* @__PURE__ */ q("div", { className:
|
|
17486
|
-
/* @__PURE__ */ q("div", { className:
|
|
17490
|
+
return /* @__PURE__ */ q("div", { className: In.cellAlert, children: [
|
|
17491
|
+
/* @__PURE__ */ q("div", { className: In.cellAlertTitle, children: [
|
|
17487
17492
|
t ? o[t] : null,
|
|
17488
17493
|
n
|
|
17489
17494
|
] }),
|
|
17490
|
-
/* @__PURE__ */ w("div", { className:
|
|
17495
|
+
/* @__PURE__ */ w("div", { className: In.cellAlertContent, children: i })
|
|
17491
17496
|
] });
|
|
17492
17497
|
}
|
|
17493
17498
|
const tp = "univer.sheet.cell-alert";
|
|
@@ -17533,7 +17538,7 @@ const NR = "univer-sheet-paste-options-wrapper", DR = "univer-sheet-paste-option
|
|
|
17533
17538
|
};
|
|
17534
17539
|
if (i.endRow < 0 || i.endCol < 0)
|
|
17535
17540
|
return null;
|
|
17536
|
-
const o = t.getRenderById(n.getUnitId()), s = o == null ? void 0 : o.with(he), l = o == null ? void 0 : o.with(lt), a =
|
|
17541
|
+
const o = t.getRenderById(n.getUnitId()), s = o == null ? void 0 : o.with(he), l = o == null ? void 0 : o.with(lt), a = _n(e, t);
|
|
17537
17542
|
if (!a || !l) return null;
|
|
17538
17543
|
const { scene: c } = a, d = s == null ? void 0 : s.getCurrentSkeleton(), u = l.getViewPort(), h = c == null ? void 0 : c.scaleX, g = c == null ? void 0 : c.scaleY, m = c == null ? void 0 : c.getViewportScrollXY(u), f = (T = c.getEngine()) == null ? void 0 : T.getCanvas();
|
|
17539
17544
|
if (!h || !c || !h || !g || !m) return null;
|
|
@@ -17622,17 +17627,17 @@ const NR = "univer-sheet-paste-options-wrapper", DR = "univer-sheet-paste-option
|
|
|
17622
17627
|
);
|
|
17623
17628
|
}, jR = [
|
|
17624
17629
|
at.id,
|
|
17625
|
-
|
|
17630
|
+
No.id,
|
|
17626
17631
|
tn.id,
|
|
17627
17632
|
sr.id,
|
|
17628
|
-
No.id,
|
|
17629
17633
|
Do.id,
|
|
17630
17634
|
Lo.id,
|
|
17631
17635
|
Wo.id,
|
|
17636
|
+
Bo.id,
|
|
17632
17637
|
Wl.id,
|
|
17633
17638
|
Bl.id,
|
|
17634
17639
|
an.id,
|
|
17635
|
-
|
|
17640
|
+
ao.id,
|
|
17636
17641
|
Ee.id,
|
|
17637
17642
|
Jp
|
|
17638
17643
|
];
|
|
@@ -17799,7 +17804,7 @@ function np(r, e, t, n) {
|
|
|
17799
17804
|
var C;
|
|
17800
17805
|
let p;
|
|
17801
17806
|
if (!f.p && f.v && !e) {
|
|
17802
|
-
const b = String(f.v), R =
|
|
17807
|
+
const b = String(f.v), R = Dn.parseValue(b);
|
|
17803
17808
|
(R == null ? void 0 : R.v) !== void 0 && typeof R.v == "number" && (p = R.v);
|
|
17804
17809
|
}
|
|
17805
17810
|
const { row: S, col: v } = c(g, m);
|
|
@@ -17848,7 +17853,7 @@ function rp(r, e, t, n = !1) {
|
|
|
17848
17853
|
r: null,
|
|
17849
17854
|
t: null
|
|
17850
17855
|
}));
|
|
17851
|
-
const v = String(f.v), C =
|
|
17856
|
+
const v = String(f.v), C = Dn.parseValue(v);
|
|
17852
17857
|
C != null && C.z && (p.s || (p.s = {}), typeof p.s == "object" && ((I = p.s) != null && I.n ? p.s.n.pattern = C.z : p.s.n = { pattern: C.z }));
|
|
17853
17858
|
const { row: b, col: R } = d(g, m);
|
|
17854
17859
|
c.setValue(b, R, p);
|
|
@@ -18029,10 +18034,10 @@ var QR = Object.getOwnPropertyDescriptor, KR = (r, e, t, n) => {
|
|
|
18029
18034
|
return i;
|
|
18030
18035
|
}, sn = (r, e) => (t, n) => e(t, n, r);
|
|
18031
18036
|
const JR = [
|
|
18037
|
+
Bo.id,
|
|
18032
18038
|
Wo.id,
|
|
18033
18039
|
Lo.id,
|
|
18034
18040
|
Do.id,
|
|
18035
|
-
No.id,
|
|
18036
18041
|
sr.id,
|
|
18037
18042
|
Wl.id,
|
|
18038
18043
|
Bl.id
|
|
@@ -18075,10 +18080,10 @@ let Ri = class extends Un {
|
|
|
18075
18080
|
[mn, Ym, fn].forEach(
|
|
18076
18081
|
(t) => this.disposeWithMe(this._commandService.registerMultipleCommand(t))
|
|
18077
18082
|
), [
|
|
18078
|
-
no,
|
|
18079
18083
|
ro,
|
|
18080
|
-
li,
|
|
18081
18084
|
io,
|
|
18085
|
+
li,
|
|
18086
|
+
oo,
|
|
18082
18087
|
Fc,
|
|
18083
18088
|
Zm
|
|
18084
18089
|
].forEach((t) => this.disposeWithMe(this._commandService.registerCommand(t))), this.disposeWithMe(this._sheetClipboardService.addClipboardHook(this._initCopyingHooks())), this.disposeWithMe(this._sheetClipboardService.addClipboardHook(this._initPastingHook()));
|
|
@@ -18179,10 +18184,10 @@ let Ri = class extends Un {
|
|
|
18179
18184
|
rowInfo: S
|
|
18180
18185
|
};
|
|
18181
18186
|
a.push({
|
|
18182
|
-
id:
|
|
18187
|
+
id: Wo.id,
|
|
18183
18188
|
params: C
|
|
18184
18189
|
}), c.push({
|
|
18185
|
-
id:
|
|
18190
|
+
id: Do.id,
|
|
18186
18191
|
params: {
|
|
18187
18192
|
unitId: t,
|
|
18188
18193
|
subUnitId: n,
|
|
@@ -18215,10 +18220,10 @@ let Ri = class extends Un {
|
|
|
18215
18220
|
rowHeight: f
|
|
18216
18221
|
};
|
|
18217
18222
|
a.push({
|
|
18218
|
-
id:
|
|
18223
|
+
id: ao.id,
|
|
18219
18224
|
params: S
|
|
18220
18225
|
}), c.push({
|
|
18221
|
-
id:
|
|
18226
|
+
id: ao.id,
|
|
18222
18227
|
params: {
|
|
18223
18228
|
...S,
|
|
18224
18229
|
rowHeight: p
|
|
@@ -18250,10 +18255,10 @@ let Ri = class extends Un {
|
|
|
18250
18255
|
}))
|
|
18251
18256
|
};
|
|
18252
18257
|
c.push({
|
|
18253
|
-
id:
|
|
18258
|
+
id: Bo.id,
|
|
18254
18259
|
params: R
|
|
18255
18260
|
}), d.push({
|
|
18256
|
-
id:
|
|
18261
|
+
id: Lo.id,
|
|
18257
18262
|
params: {
|
|
18258
18263
|
unitId: t,
|
|
18259
18264
|
subUnitId: n,
|
|
@@ -18517,7 +18522,7 @@ let Ri = class extends Un {
|
|
|
18517
18522
|
n.id === hr.id ? this._sheetClipboardService.removeMarkSelection() : JR.includes(n.id) && this._sheetClipboardService.removeMarkSelection();
|
|
18518
18523
|
})
|
|
18519
18524
|
);
|
|
18520
|
-
const e = this._configService.getConfig(
|
|
18525
|
+
const e = this._configService.getConfig(vn);
|
|
18521
18526
|
(t = e == null ? void 0 : e.clipboardConfig) != null && t.hidePasteOptions || (this.disposeWithMe(
|
|
18522
18527
|
this._commandService.onCommandExecuted((n) => {
|
|
18523
18528
|
jR.includes(n.id) && this._sheetClipboardService.disposePasteOptionsCache();
|
|
@@ -18535,9 +18540,9 @@ let Ri = class extends Un {
|
|
|
18535
18540
|
}
|
|
18536
18541
|
_initUIComponents() {
|
|
18537
18542
|
var t;
|
|
18538
|
-
const e = this._configService.getConfig(
|
|
18543
|
+
const e = this._configService.getConfig(vn);
|
|
18539
18544
|
(t = e == null ? void 0 : e.clipboardConfig) != null && t.hidePasteOptions || this.disposeWithMe(
|
|
18540
|
-
this._uiPartsService.registerComponent(
|
|
18545
|
+
this._uiPartsService.registerComponent($i.CONTENT, () => ii(zR, this._injector))
|
|
18541
18546
|
);
|
|
18542
18547
|
}
|
|
18543
18548
|
};
|
|
@@ -18547,7 +18552,7 @@ Ri = KR([
|
|
|
18547
18552
|
sn(2, be),
|
|
18548
18553
|
sn(3, D),
|
|
18549
18554
|
sn(4, Ve),
|
|
18550
|
-
sn(5,
|
|
18555
|
+
sn(5, bn),
|
|
18551
18556
|
sn(6, on),
|
|
18552
18557
|
sn(7, ng),
|
|
18553
18558
|
sn(8, V(He)),
|
|
@@ -18558,7 +18563,7 @@ var $R = Object.getOwnPropertyDescriptor, eI = (r, e, t, n) => {
|
|
|
18558
18563
|
(s = r[o]) && (i = s(i) || i);
|
|
18559
18564
|
return i;
|
|
18560
18565
|
}, Ph = (r, e) => (t, n) => e(t, n, r);
|
|
18561
|
-
let
|
|
18566
|
+
let Oo = class extends ae {
|
|
18562
18567
|
constructor(e, t) {
|
|
18563
18568
|
super();
|
|
18564
18569
|
_(this, "_currentCell$", new Ae());
|
|
@@ -18619,10 +18624,10 @@ let To = class extends ae {
|
|
|
18619
18624
|
});
|
|
18620
18625
|
}
|
|
18621
18626
|
};
|
|
18622
|
-
|
|
18627
|
+
Oo = eI([
|
|
18623
18628
|
Ph(0, N),
|
|
18624
18629
|
Ph(1, be)
|
|
18625
|
-
],
|
|
18630
|
+
], Oo);
|
|
18626
18631
|
var tI = Object.getOwnPropertyDescriptor, nI = (r, e, t, n) => {
|
|
18627
18632
|
for (var i = n > 1 ? void 0 : n ? tI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
18628
18633
|
(s = r[o]) && (i = s(i) || i);
|
|
@@ -18654,7 +18659,7 @@ let sl = class extends ae {
|
|
|
18654
18659
|
};
|
|
18655
18660
|
sl = nI([
|
|
18656
18661
|
tc(1, be),
|
|
18657
|
-
tc(2, V(
|
|
18662
|
+
tc(2, V(Oo)),
|
|
18658
18663
|
tc(3, V(he))
|
|
18659
18664
|
], sl);
|
|
18660
18665
|
const au = (r, e) => {
|
|
@@ -19168,7 +19173,7 @@ let ll = class extends ae {
|
|
|
19168
19173
|
if (s && s.row === r.location.row && s.col === r.location.col && s.subUnitId === r.location.subUnitId && s.unitId === r.location.unitId)
|
|
19169
19174
|
return;
|
|
19170
19175
|
this._cellAlertManagerService.showAlert({
|
|
19171
|
-
type:
|
|
19176
|
+
type: so.ERROR,
|
|
19172
19177
|
title: this._localeService.t("info.error"),
|
|
19173
19178
|
message: this._localeService.t("info.forceStringInfo"),
|
|
19174
19179
|
location: r.location,
|
|
@@ -19193,7 +19198,7 @@ let ll = class extends ae {
|
|
|
19193
19198
|
};
|
|
19194
19199
|
ll = dI([
|
|
19195
19200
|
ds(1, V(Ar)),
|
|
19196
|
-
ds(2, V(
|
|
19201
|
+
ds(2, V(To)),
|
|
19197
19202
|
ds(3, V(He)),
|
|
19198
19203
|
ds(4, BS)
|
|
19199
19204
|
], ll);
|
|
@@ -19354,7 +19359,7 @@ function _I() {
|
|
|
19354
19359
|
return r ? /* @__PURE__ */ w(wI, { workbook: r }) : null;
|
|
19355
19360
|
}
|
|
19356
19361
|
function wI(r) {
|
|
19357
|
-
const { workbook: e } = r, [t, n] = ne([]), [i, o] = ne(""), s =
|
|
19362
|
+
const { workbook: e } = r, [t, n] = ne([]), [i, o] = ne(""), s = kn(/* @__PURE__ */ new Map()), l = L(D), a = Ln(() => {
|
|
19358
19363
|
const d = e.getActiveSheet().getSheetId(), u = e.getSheets(), h = e.getActiveSheet(), g = u.filter((m) => !m.isSheetHidden()).map((m, f) => {
|
|
19359
19364
|
var p;
|
|
19360
19365
|
return {
|
|
@@ -19372,7 +19377,7 @@ function wI(r) {
|
|
|
19372
19377
|
s.current.clear();
|
|
19373
19378
|
}, [e]);
|
|
19374
19379
|
Pe(() => a(), [a]);
|
|
19375
|
-
const c =
|
|
19380
|
+
const c = Ln((d) => {
|
|
19376
19381
|
l.executeCommand(rt.id, {
|
|
19377
19382
|
unitId: e.getUnitId(),
|
|
19378
19383
|
subUnitId: d
|
|
@@ -19382,7 +19387,7 @@ function wI(r) {
|
|
|
19382
19387
|
const d = l.onCommandExecuted((u) => {
|
|
19383
19388
|
switch (u.id) {
|
|
19384
19389
|
case lr.id:
|
|
19385
|
-
case
|
|
19390
|
+
case Wn.id:
|
|
19386
19391
|
case wd.id:
|
|
19387
19392
|
case Vr.id:
|
|
19388
19393
|
case _d.id:
|
|
@@ -19474,7 +19479,7 @@ let ul = class extends ae {
|
|
|
19474
19479
|
}
|
|
19475
19480
|
_initCustomComponents() {
|
|
19476
19481
|
const r = this._componentManager;
|
|
19477
|
-
this.disposeWithMe(r.register(
|
|
19482
|
+
this.disposeWithMe(r.register(wn, Km)), this.disposeWithMe(r.register(lu, ff)), this.disposeWithMe(r.register(Qo, Ad)), this.disposeWithMe(r.register(eu, rg)), this.disposeWithMe(r.register(tu, ig)), this.disposeWithMe(r.register(nu, og)), this.disposeWithMe(r.register(vo, pf));
|
|
19478
19483
|
}
|
|
19479
19484
|
_initCommands() {
|
|
19480
19485
|
[
|
|
@@ -19482,14 +19487,14 @@ let ul = class extends ae {
|
|
|
19482
19487
|
hr,
|
|
19483
19488
|
ou,
|
|
19484
19489
|
iu,
|
|
19485
|
-
|
|
19490
|
+
Zo,
|
|
19486
19491
|
Qt,
|
|
19487
19492
|
Bt,
|
|
19488
19493
|
Yn,
|
|
19489
19494
|
Sa,
|
|
19490
19495
|
ga,
|
|
19491
|
-
Io,
|
|
19492
19496
|
yo,
|
|
19497
|
+
Mo,
|
|
19493
19498
|
ea,
|
|
19494
19499
|
ta,
|
|
19495
19500
|
gn,
|
|
@@ -19508,34 +19513,34 @@ let ul = class extends ae {
|
|
|
19508
19513
|
qm,
|
|
19509
19514
|
na,
|
|
19510
19515
|
ra,
|
|
19511
|
-
|
|
19516
|
+
bo,
|
|
19512
19517
|
yd,
|
|
19513
19518
|
Ed,
|
|
19514
19519
|
Td,
|
|
19515
19520
|
Pd,
|
|
19516
19521
|
ia,
|
|
19517
19522
|
$d,
|
|
19518
|
-
|
|
19523
|
+
qo,
|
|
19519
19524
|
oa,
|
|
19520
19525
|
hn,
|
|
19521
|
-
|
|
19526
|
+
po,
|
|
19522
19527
|
or,
|
|
19523
19528
|
sa,
|
|
19524
19529
|
la,
|
|
19525
19530
|
Md,
|
|
19526
|
-
|
|
19531
|
+
Go,
|
|
19527
19532
|
tn,
|
|
19528
19533
|
ma,
|
|
19529
19534
|
Zl,
|
|
19530
19535
|
_i,
|
|
19531
19536
|
bi,
|
|
19537
|
+
es,
|
|
19532
19538
|
$o,
|
|
19533
|
-
Jo,
|
|
19534
19539
|
Gd,
|
|
19535
19540
|
br,
|
|
19536
|
-
|
|
19541
|
+
go,
|
|
19537
19542
|
// permission
|
|
19538
|
-
|
|
19543
|
+
Fn,
|
|
19539
19544
|
gf,
|
|
19540
19545
|
da,
|
|
19541
19546
|
ci,
|
|
@@ -19608,7 +19613,7 @@ let ul = class extends ae {
|
|
|
19608
19613
|
});
|
|
19609
19614
|
}
|
|
19610
19615
|
_initWorkbenchParts() {
|
|
19611
|
-
this._uiPartsService.registerComponent(
|
|
19616
|
+
this._uiPartsService.registerComponent($i.HEADER, () => ii(_I, this._injector));
|
|
19612
19617
|
}
|
|
19613
19618
|
_initFocusHandler() {
|
|
19614
19619
|
this.disposeWithMe(
|
|
@@ -19631,8 +19636,8 @@ var MI = Object.getOwnPropertyDescriptor, EI = (r, e, t, n) => {
|
|
|
19631
19636
|
for (var i = n > 1 ? void 0 : n ? MI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
19632
19637
|
(s = r[o]) && (i = s(i) || i);
|
|
19633
19638
|
return i;
|
|
19634
|
-
},
|
|
19635
|
-
let
|
|
19639
|
+
}, yn = (r, e) => (t, n) => e(t, n, r);
|
|
19640
|
+
let xo = class extends ae {
|
|
19636
19641
|
constructor(e, t, n, i, o, s, l, a, c) {
|
|
19637
19642
|
super();
|
|
19638
19643
|
_(this, "disposableCollection", new _t());
|
|
@@ -19713,17 +19718,17 @@ let Oo = class extends ae {
|
|
|
19713
19718
|
break;
|
|
19714
19719
|
case mn.id:
|
|
19715
19720
|
n = this._sheetPermissionCheckController.permissionCheckWithRanges({
|
|
19716
|
-
workbookTypes: [
|
|
19721
|
+
workbookTypes: [qi],
|
|
19717
19722
|
rangeTypes: [bc],
|
|
19718
19723
|
worksheetTypes: [Hs]
|
|
19719
|
-
}), i = this._localeService.t("permission.dialog.copyErr"), (o = this._permissionService.getPermissionPoint(new
|
|
19724
|
+
}), i = this._localeService.t("permission.dialog.copyErr"), (o = this._permissionService.getPermissionPoint(new qi(this._univerInstanceService.getCurrentUnitForType(x.UNIVER_SHEET).getUnitId()).id)) != null && o.value || (i = this._localeService.t("permission.dialog.workbookCopyErr"));
|
|
19720
19725
|
break;
|
|
19721
19726
|
case Ym.id:
|
|
19722
19727
|
n = this._sheetPermissionCheckController.permissionCheckWithRanges({
|
|
19723
|
-
workbookTypes: [
|
|
19728
|
+
workbookTypes: [qi, J],
|
|
19724
19729
|
rangeTypes: [bc, re],
|
|
19725
19730
|
worksheetTypes: [Hs, te]
|
|
19726
|
-
}), i = this._localeService.t("permission.dialog.copyErr"), (s = this._permissionService.getPermissionPoint(new
|
|
19731
|
+
}), i = this._localeService.t("permission.dialog.copyErr"), (s = this._permissionService.getPermissionPoint(new qi(this._univerInstanceService.getCurrentUnitForType(x.UNIVER_SHEET).getUnitId()).id)) != null && s.value || (i = this._localeService.t("permission.dialog.workbookCopyErr"));
|
|
19727
19732
|
break;
|
|
19728
19733
|
case br.id:
|
|
19729
19734
|
n = this._permissionCheckByAutoFillCommand(t), i = this._localeService.t("permission.dialog.autoFillErr");
|
|
@@ -19775,22 +19780,22 @@ let Oo = class extends ae {
|
|
|
19775
19780
|
});
|
|
19776
19781
|
}
|
|
19777
19782
|
};
|
|
19778
|
-
|
|
19779
|
-
|
|
19780
|
-
|
|
19781
|
-
|
|
19782
|
-
|
|
19783
|
-
|
|
19784
|
-
|
|
19785
|
-
|
|
19786
|
-
|
|
19787
|
-
|
|
19788
|
-
],
|
|
19783
|
+
xo = EI([
|
|
19784
|
+
yn(0, D),
|
|
19785
|
+
yn(1, N),
|
|
19786
|
+
yn(2, ot),
|
|
19787
|
+
yn(3, Ei),
|
|
19788
|
+
yn(4, V(et)),
|
|
19789
|
+
yn(5, Lr),
|
|
19790
|
+
yn(6, V(He)),
|
|
19791
|
+
yn(7, Ve),
|
|
19792
|
+
yn(8, V(Xg))
|
|
19793
|
+
], xo);
|
|
19789
19794
|
var PI = Object.getOwnPropertyDescriptor, TI = (r, e, t, n) => {
|
|
19790
19795
|
for (var i = n > 1 ? void 0 : n ? PI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
19791
19796
|
(s = r[o]) && (i = s(i) || i);
|
|
19792
19797
|
return i;
|
|
19793
|
-
},
|
|
19798
|
+
}, Mn = (r, e) => (t, n) => e(t, n, r);
|
|
19794
19799
|
let hl = class extends Un {
|
|
19795
19800
|
constructor(e, t, n, i, o, s, l, a, c, d) {
|
|
19796
19801
|
super();
|
|
@@ -19918,23 +19923,23 @@ let hl = class extends Un {
|
|
|
19918
19923
|
}
|
|
19919
19924
|
};
|
|
19920
19925
|
hl = TI([
|
|
19921
|
-
|
|
19922
|
-
|
|
19923
|
-
|
|
19924
|
-
|
|
19925
|
-
|
|
19926
|
-
|
|
19927
|
-
|
|
19928
|
-
|
|
19929
|
-
|
|
19926
|
+
Mn(1, N),
|
|
19927
|
+
Mn(2, ot),
|
|
19928
|
+
Mn(3, V($)),
|
|
19929
|
+
Mn(4, V(et)),
|
|
19930
|
+
Mn(5, V(Ro)),
|
|
19931
|
+
Mn(6, lt),
|
|
19932
|
+
Mn(7, V(wo)),
|
|
19933
|
+
Mn(8, V(Uo)),
|
|
19934
|
+
Mn(9, ld($s))
|
|
19930
19935
|
], hl);
|
|
19931
19936
|
var OI = Object.getOwnPropertyDescriptor, xI = (r, e, t, n) => {
|
|
19932
19937
|
for (var i = n > 1 ? void 0 : n ? OI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
19933
19938
|
(s = r[o]) && (i = s(i) || i);
|
|
19934
19939
|
return i;
|
|
19935
|
-
},
|
|
19940
|
+
}, zi = (r, e) => (t, n) => e(t, n, r);
|
|
19936
19941
|
const AI = "SHEET_PERMISSION_PASTE_PLUGIN";
|
|
19937
|
-
let
|
|
19942
|
+
let Ao = class extends ae {
|
|
19938
19943
|
constructor(e, t, n, i, o) {
|
|
19939
19944
|
super();
|
|
19940
19945
|
_(this, "disposableCollection", new _t());
|
|
@@ -19973,18 +19978,18 @@ let xo = class extends ae {
|
|
|
19973
19978
|
);
|
|
19974
19979
|
}
|
|
19975
19980
|
};
|
|
19976
|
-
|
|
19977
|
-
|
|
19978
|
-
|
|
19979
|
-
|
|
19980
|
-
|
|
19981
|
-
|
|
19982
|
-
],
|
|
19981
|
+
Ao = xI([
|
|
19982
|
+
zi(0, N),
|
|
19983
|
+
zi(1, V($)),
|
|
19984
|
+
zi(2, V(He)),
|
|
19985
|
+
zi(3, V(on)),
|
|
19986
|
+
zi(4, V(Xg))
|
|
19987
|
+
], Ao);
|
|
19983
19988
|
var HI = Object.getOwnPropertyDescriptor, kI = (r, e, t, n) => {
|
|
19984
19989
|
for (var i = n > 1 ? void 0 : n ? HI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
19985
19990
|
(s = r[o]) && (i = s(i) || i);
|
|
19986
19991
|
return i;
|
|
19987
|
-
},
|
|
19992
|
+
}, ji = (r, e) => (t, n) => e(t, n, r);
|
|
19988
19993
|
const VI = cr("statusBarPermissionCorrect");
|
|
19989
19994
|
class NI {
|
|
19990
19995
|
constructor() {
|
|
@@ -20006,7 +20011,7 @@ class NI {
|
|
|
20006
20011
|
if (!((g = a == null ? void 0 : a.n) != null && g.pattern))
|
|
20007
20012
|
return;
|
|
20008
20013
|
const { pattern: u } = a.n;
|
|
20009
|
-
d[u] || (d[u] =
|
|
20014
|
+
d[u] || (d[u] = Dn.getInfo(u)), d[u].isDate && s(c);
|
|
20010
20015
|
};
|
|
20011
20016
|
if (typeof o == "string" && i === jt.NUMBER) {
|
|
20012
20017
|
const a = Number(o);
|
|
@@ -20187,11 +20192,11 @@ let Ii = class extends ae {
|
|
|
20187
20192
|
}
|
|
20188
20193
|
};
|
|
20189
20194
|
Ii = kI([
|
|
20190
|
-
|
|
20191
|
-
|
|
20192
|
-
|
|
20193
|
-
|
|
20194
|
-
|
|
20195
|
+
ji(0, N),
|
|
20196
|
+
ji(1, V($)),
|
|
20197
|
+
ji(2, $l),
|
|
20198
|
+
ji(3, D),
|
|
20199
|
+
ji(4, V(Hv))
|
|
20195
20200
|
], Ii);
|
|
20196
20201
|
var LI = Object.getOwnPropertyDescriptor, WI = (r, e, t, n) => {
|
|
20197
20202
|
for (var i = n > 1 ? void 0 : n ? LI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -20242,7 +20247,7 @@ gl = WI([
|
|
|
20242
20247
|
hs(1, N),
|
|
20243
20248
|
hs(2, ot),
|
|
20244
20249
|
hs(3, V(Ii)),
|
|
20245
|
-
hs(4, V(
|
|
20250
|
+
hs(4, V(Uo))
|
|
20246
20251
|
], gl);
|
|
20247
20252
|
const lp = (r, e, t, n, i) => {
|
|
20248
20253
|
const o = r.get(He), s = r.get(St), l = r.get(et);
|
|
@@ -20427,7 +20432,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20427
20432
|
const M = {
|
|
20428
20433
|
header: { title: `${h.t("permission.panel.title")}` },
|
|
20429
20434
|
children: {
|
|
20430
|
-
label:
|
|
20435
|
+
label: Io,
|
|
20431
20436
|
showDetail: !1
|
|
20432
20437
|
},
|
|
20433
20438
|
width: 330
|
|
@@ -20572,7 +20577,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20572
20577
|
const [r, e] = ne(!0), [t, n] = ne(!1), i = L(He), o = L(et), s = L(St), l = L(N), a = L(D), c = L(Mi), d = L(Ol), u = L(ot), g = L(Wt).getCurrentUser(), [m, f] = ne([]), p = L(Fr), S = mt(s.ruleRefresh$, ""), v = mt(o.ruleRefresh$, ""), C = l.getCurrentUnitForType(x.UNIVER_SHEET);
|
|
20573
20578
|
if (!C)
|
|
20574
20579
|
return null;
|
|
20575
|
-
const b = C == null ? void 0 : C.getUnitId(), R =
|
|
20580
|
+
const b = C == null ? void 0 : C.getUnitId(), R = Ln(async (O) => {
|
|
20576
20581
|
var Ie;
|
|
20577
20582
|
const k = C.getActiveSheet(), F = C.getUnitId(), X = k.getSheetId(), B = [], j = [];
|
|
20578
20583
|
C.getSheets().forEach((G) => {
|
|
@@ -20627,7 +20632,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20627
20632
|
const M = (O) => {
|
|
20628
20633
|
const { unitId: k, subUnitId: F, unitType: X } = O;
|
|
20629
20634
|
let B;
|
|
20630
|
-
X ===
|
|
20635
|
+
X === xn.Worksheet ? B = a.executeCommand(ks.id, { unitId: k, subUnitId: F, rule: O }) : X === xn.SelectRange && (B = a.executeCommand(Lv.id, { unitId: k, subUnitId: F, rule: O })), B && (n(!t), O.ranges === m && f([]));
|
|
20631
20636
|
};
|
|
20632
20637
|
Pe(() => {
|
|
20633
20638
|
p.reset();
|
|
@@ -20649,7 +20654,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20649
20654
|
const k = {
|
|
20650
20655
|
header: { title: "permission.panel.title" },
|
|
20651
20656
|
children: {
|
|
20652
|
-
label:
|
|
20657
|
+
label: Io,
|
|
20653
20658
|
showDetail: !0,
|
|
20654
20659
|
rule: se.deepClone(O),
|
|
20655
20660
|
oldRule: se.deepClone(O)
|
|
@@ -20679,13 +20684,13 @@ const lp = (r, e, t, n, i) => {
|
|
|
20679
20684
|
const F = O.actions.find((ue) => ue.action === ge.Edit), X = F == null ? void 0 : F.allowed, B = O.actions.find((ue) => ue.action === ge.View), j = B == null ? void 0 : B.allowed, Y = O.actions.find((ue) => ue.action === ge.ManageCollaborator), ie = O.actions.find((ue) => ue.action === ge.Delete), fe = (Y == null ? void 0 : Y.allowed) || g.userID === ((ee = O.creator) == null ? void 0 : ee.userID), oe = (ie == null ? void 0 : ie.allowed) || g.userID === ((le = O.creator) == null ? void 0 : le.userID);
|
|
20680
20685
|
let _e = "";
|
|
20681
20686
|
const Ie = C.getSheetBySheetId(k.subUnitId), G = Ie == null ? void 0 : Ie.getName();
|
|
20682
|
-
if (k.unitType ===
|
|
20687
|
+
if (k.unitType === xn.SelectRange) {
|
|
20683
20688
|
const ue = k.ranges, ve = ue != null && ue.length ? ue.map((tt) => {
|
|
20684
20689
|
const bt = Jg(tt);
|
|
20685
20690
|
return bt === "NaN" ? "" : bt;
|
|
20686
20691
|
}).filter((tt) => !!tt).join(",") : "";
|
|
20687
20692
|
_e = `${G}(${ve})`;
|
|
20688
|
-
} else k.unitType ===
|
|
20693
|
+
} else k.unitType === xn.Worksheet && (_e = G || "");
|
|
20689
20694
|
return /* @__PURE__ */ q(
|
|
20690
20695
|
"div",
|
|
20691
20696
|
{
|
|
@@ -20697,10 +20702,10 @@ const lp = (r, e, t, n, i) => {
|
|
|
20697
20702
|
const bt = tt.getSheetId();
|
|
20698
20703
|
if (ue !== bt)
|
|
20699
20704
|
return !1;
|
|
20700
|
-
if (ve ===
|
|
20705
|
+
if (ve === xn.SelectRange) {
|
|
20701
20706
|
const gt = k.ranges || [];
|
|
20702
20707
|
gt !== m && f(gt);
|
|
20703
|
-
} else if (ve ===
|
|
20708
|
+
} else if (ve === xn.Worksheet) {
|
|
20704
20709
|
const gt = [{ startRow: 0, endRow: tt.getRowCount() - 1, startColumn: 0, endColumn: tt.getColumnCount() - 1 }];
|
|
20705
20710
|
gt !== m && f(gt);
|
|
20706
20711
|
}
|
|
@@ -20744,7 +20749,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20744
20749
|
const O = {
|
|
20745
20750
|
header: { title: `${i.t("permission.panel.title")}` },
|
|
20746
20751
|
children: {
|
|
20747
|
-
label:
|
|
20752
|
+
label: Io,
|
|
20748
20753
|
showDetail: !0
|
|
20749
20754
|
},
|
|
20750
20755
|
width: 330
|
|
@@ -20834,7 +20839,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20834
20839
|
}));
|
|
20835
20840
|
let I = b == null ? void 0 : b.permissionId;
|
|
20836
20841
|
I ? t.update({
|
|
20837
|
-
objectType:
|
|
20842
|
+
objectType: xn.Worksheet,
|
|
20838
20843
|
objectID: I,
|
|
20839
20844
|
unitID: v,
|
|
20840
20845
|
strategies: R,
|
|
@@ -20851,7 +20856,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20851
20856
|
P && o.updatePermissionPoint(M.id, P.role === Nt.Editor);
|
|
20852
20857
|
});
|
|
20853
20858
|
}) : (I = await t.create({
|
|
20854
|
-
objectType:
|
|
20859
|
+
objectType: xn.Worksheet,
|
|
20855
20860
|
worksheetObject: {
|
|
20856
20861
|
unitID: v,
|
|
20857
20862
|
collaborators: a,
|
|
@@ -21185,7 +21190,7 @@ var dM = Object.getOwnPropertyDescriptor, cu = (r, e, t, n) => {
|
|
|
21185
21190
|
(s = r[o]) && (i = s(i) || i);
|
|
21186
21191
|
return i;
|
|
21187
21192
|
}, Xt = (r, e) => (t, n) => e(t, n, r);
|
|
21188
|
-
let
|
|
21193
|
+
let Ho = class extends ae {
|
|
21189
21194
|
constructor(r, e, t) {
|
|
21190
21195
|
super(), this._injector = r, this._componentManager = e, this._uiPartsService = t, this._init();
|
|
21191
21196
|
}
|
|
@@ -21199,7 +21204,7 @@ let Ao = class extends ae {
|
|
|
21199
21204
|
[v0, Zd],
|
|
21200
21205
|
[C0, Wr],
|
|
21201
21206
|
[hf, Yd],
|
|
21202
|
-
[
|
|
21207
|
+
[Io, Py],
|
|
21203
21208
|
[cf, Jy],
|
|
21204
21209
|
[df, By],
|
|
21205
21210
|
[sp, nM]
|
|
@@ -21212,15 +21217,15 @@ let Ao = class extends ae {
|
|
|
21212
21217
|
}
|
|
21213
21218
|
_initUiPartComponents() {
|
|
21214
21219
|
var t;
|
|
21215
|
-
const e = this._injector.get(
|
|
21220
|
+
const e = this._injector.get(bn).getConfig(vn);
|
|
21216
21221
|
(t = e == null ? void 0 : e.customComponents) != null && t.has(jc) || this.disposeWithMe(this._uiPartsService.registerComponent(jc, () => ii(cM, this._injector)));
|
|
21217
21222
|
}
|
|
21218
21223
|
};
|
|
21219
|
-
|
|
21224
|
+
Ho = cu([
|
|
21220
21225
|
Xt(0, V(It)),
|
|
21221
21226
|
Xt(1, V(Xn)),
|
|
21222
21227
|
Xt(2, V(Vl))
|
|
21223
|
-
],
|
|
21228
|
+
], Ho);
|
|
21224
21229
|
let ml = class extends ae {
|
|
21225
21230
|
constructor(e, t, n, i, o) {
|
|
21226
21231
|
var l;
|
|
@@ -21228,7 +21233,7 @@ let ml = class extends ae {
|
|
|
21228
21233
|
_(this, "_rangeProtectionCanViewRenderExtension", new oM());
|
|
21229
21234
|
_(this, "_rangeProtectionCanNotViewRenderExtension", new sM());
|
|
21230
21235
|
this._context = e, this._rangeProtectionRuleModel = t, this._sheetSkeletonManagerService = n, this._permissionService = i, this._configService = o;
|
|
21231
|
-
const s = this._configService.getConfig(
|
|
21236
|
+
const s = this._configService.getConfig(vn);
|
|
21232
21237
|
(l = s == null ? void 0 : s.customComponents) != null && l.has(af) || (this._initRender(), this._initSkeleton(), this.disposeWithMe(this._rangeProtectionRuleModel.ruleChange$.subscribe((a) => {
|
|
21233
21238
|
var c, d;
|
|
21234
21239
|
((c = a.oldRule) != null && c.id && this._rangeProtectionCanViewRenderExtension.renderCache.has(a.oldRule.id) || this._rangeProtectionCanViewRenderExtension.renderCache.has(a.rule.id)) && this._rangeProtectionCanViewRenderExtension.clearCache(), ((d = a.oldRule) != null && d.id && this._rangeProtectionCanNotViewRenderExtension.renderCache.has(a.oldRule.id) || this._rangeProtectionCanNotViewRenderExtension.renderCache.has(a.rule.id)) && this._rangeProtectionCanNotViewRenderExtension.clearCache();
|
|
@@ -21254,7 +21259,7 @@ ml = cu([
|
|
|
21254
21259
|
Xt(1, V(et)),
|
|
21255
21260
|
Xt(2, V(he)),
|
|
21256
21261
|
Xt(3, ot),
|
|
21257
|
-
Xt(4,
|
|
21262
|
+
Xt(4, bn)
|
|
21258
21263
|
], ml);
|
|
21259
21264
|
let fl = class extends ae {
|
|
21260
21265
|
constructor(e, t, n, i, o, s) {
|
|
@@ -21262,7 +21267,7 @@ let fl = class extends ae {
|
|
|
21262
21267
|
super();
|
|
21263
21268
|
_(this, "_worksheetProtectionRenderExtension", new aM());
|
|
21264
21269
|
this._context = e, this._renderManagerService = t, this._univerInstanceService = n, this._sheetSkeletonManagerService = i, this._worksheetProtectionRuleModel = o, this._configService = s;
|
|
21265
|
-
const l = this._configService.getConfig(
|
|
21270
|
+
const l = this._configService.getConfig(vn);
|
|
21266
21271
|
(a = l == null ? void 0 : l.customComponents) != null && a.has(af) || (this._initRender(), this._initSkeleton());
|
|
21267
21272
|
}
|
|
21268
21273
|
_initRender() {
|
|
@@ -21284,7 +21289,7 @@ fl = cu([
|
|
|
21284
21289
|
Xt(2, V(N)),
|
|
21285
21290
|
Xt(3, V(he)),
|
|
21286
21291
|
Xt(4, V(St)),
|
|
21287
|
-
Xt(5, V(
|
|
21292
|
+
Xt(5, V(bn))
|
|
21288
21293
|
], fl);
|
|
21289
21294
|
var uM = Object.getOwnPropertyDescriptor, hM = (r, e, t, n) => {
|
|
21290
21295
|
for (var i = n > 1 ? void 0 : n ? uM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -21313,7 +21318,7 @@ let pl = class extends ae {
|
|
|
21313
21318
|
endRow: t.endRow,
|
|
21314
21319
|
endColumn: t.endColumn
|
|
21315
21320
|
}
|
|
21316
|
-
}), this._formatPainterService.getStatus() === Zt.ONCE && this._commandService.executeCommand(
|
|
21321
|
+
}), this._formatPainterService.getStatus() === Zt.ONCE && this._commandService.executeCommand(qo.id);
|
|
21317
21322
|
}
|
|
21318
21323
|
})
|
|
21319
21324
|
);
|
|
@@ -21336,7 +21341,7 @@ var gM = Object.getOwnPropertyDescriptor, mM = (r, e, t, n) => {
|
|
|
21336
21341
|
for (var i = n > 1 ? void 0 : n ? gM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
21337
21342
|
(s = r[o]) && (i = s(i) || i);
|
|
21338
21343
|
return i;
|
|
21339
|
-
},
|
|
21344
|
+
}, Yi = (r, e) => (t, n) => e(t, n, r);
|
|
21340
21345
|
let Gc = class extends ae {
|
|
21341
21346
|
constructor(r, e, t, n, i, o) {
|
|
21342
21347
|
super(), this._context = r, this._layoutService = e, this._contextMenuService = t, this._selectionManagerService = n, this._selectionRenderService = i, this._sheetSkeletonManagerService = o, this._init();
|
|
@@ -21382,11 +21387,11 @@ let Gc = class extends ae {
|
|
|
21382
21387
|
}
|
|
21383
21388
|
};
|
|
21384
21389
|
Gc = mM([
|
|
21385
|
-
|
|
21386
|
-
|
|
21387
|
-
|
|
21388
|
-
|
|
21389
|
-
|
|
21390
|
+
Yi(1, Al),
|
|
21391
|
+
Yi(2, Hl),
|
|
21392
|
+
Yi(3, V($)),
|
|
21393
|
+
Yi(4, lt),
|
|
21394
|
+
Yi(5, V(he))
|
|
21390
21395
|
], Gc);
|
|
21391
21396
|
var fM = Object.getOwnPropertyDescriptor, pM = (r, e, t, n) => {
|
|
21392
21397
|
for (var i = n > 1 ? void 0 : n ? fM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -21553,7 +21558,7 @@ let qc = class extends ae {
|
|
|
21553
21558
|
if (!i) return;
|
|
21554
21559
|
l.x *= a, l.y *= a, o.x += l.x, o.y += l.y;
|
|
21555
21560
|
const h = l.x, g = l.y;
|
|
21556
|
-
(g !== 0 || h !== 0) && this._commandService.executeCommand(
|
|
21561
|
+
(g !== 0 || h !== 0) && this._commandService.executeCommand(po.id, { offsetY: g, offsetX: h }), Math.abs(l.x) > 1 || Math.abs(l.y) > 1 ? c = requestAnimationFrame(d) : c = null;
|
|
21557
21562
|
}, u = () => {
|
|
21558
21563
|
cancelAnimationFrame(c), c = null;
|
|
21559
21564
|
};
|
|
@@ -21564,7 +21569,7 @@ let qc = class extends ae {
|
|
|
21564
21569
|
const m = h, f = -(m.offsetX - o.x), p = -(m.offsetY - o.y);
|
|
21565
21570
|
l.x = -(m.offsetX - o.x), l.y = -(m.offsetY - o.y);
|
|
21566
21571
|
const S = f, v = p;
|
|
21567
|
-
(f !== 0 || p !== 0) && (v !== 0 || S !== 0) && this._commandService.executeCommand(
|
|
21572
|
+
(f !== 0 || p !== 0) && (v !== 0 || S !== 0) && this._commandService.executeCommand(po.id, { offsetY: v, offsetX: S }), e.getCurrentScrollState(), o.x = m.offsetX, o.y = m.offsetY, g.stopPropagation();
|
|
21568
21573
|
}), n.onPointerUp$.subscribeEvent((h) => {
|
|
21569
21574
|
s = !1, c = requestAnimationFrame(d);
|
|
21570
21575
|
}), n.onPointerLeave$.subscribeEvent(() => {
|
|
@@ -21593,7 +21598,7 @@ let qc = class extends ae {
|
|
|
21593
21598
|
});
|
|
21594
21599
|
}
|
|
21595
21600
|
_getSheetObject() {
|
|
21596
|
-
return
|
|
21601
|
+
return _n(this._context.unit, this._context);
|
|
21597
21602
|
}
|
|
21598
21603
|
_scrollToSelectionByDirection(r) {
|
|
21599
21604
|
const e = this._getViewportBounding();
|
|
@@ -21856,7 +21861,7 @@ var _M = Object.getOwnPropertyDescriptor, wM = (r, e, t, n) => {
|
|
|
21856
21861
|
for (var i = n > 1 ? void 0 : n ? _M(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
21857
21862
|
(s = r[o]) && (i = s(i) || i);
|
|
21858
21863
|
return i;
|
|
21859
|
-
},
|
|
21864
|
+
}, En = (r, e) => (t, n) => e(t, n, r);
|
|
21860
21865
|
let Sl = class extends sm {
|
|
21861
21866
|
constructor(e, t, n, i, o, s, l, a, c, d) {
|
|
21862
21867
|
super(
|
|
@@ -21899,13 +21904,13 @@ let Sl = class extends sm {
|
|
|
21899
21904
|
this._initSpreadsheetEvent(e), this.disposeWithMe(
|
|
21900
21905
|
t == null ? void 0 : t.onPointerUp$.subscribeEvent((l, a) => {
|
|
21901
21906
|
if (this._normalSelectionDisabled()) return;
|
|
21902
|
-
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { row: d } =
|
|
21907
|
+
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { row: d } = Bn(l.offsetX, l.offsetY, s, c);
|
|
21903
21908
|
tf(this._workbookSelections.getCurrentSelections(), d) || (this.createNewSelection(l, (i.zIndex || 1) + 1, z.ROW, this._getActiveViewport(l)), this._selectionMoveEnd$.next(this.getSelectionDataWithStyle()));
|
|
21904
21909
|
})
|
|
21905
21910
|
), this.disposeWithMe(
|
|
21906
21911
|
n == null ? void 0 : n.onPointerUp$.subscribeEvent((l, a) => {
|
|
21907
21912
|
if (this._normalSelectionDisabled()) return;
|
|
21908
|
-
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { column: d } =
|
|
21913
|
+
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { column: d } = Bn(l.offsetX, l.offsetY, s, c);
|
|
21909
21914
|
nf(this._workbookSelections.getCurrentSelections(), d) || (this.createNewSelection(l, (i.zIndex || 1) + 1, z.COLUMN, this._getActiveViewport(l)), this._selectionMoveEnd$.next(this.getSelectionDataWithStyle()));
|
|
21910
21915
|
})
|
|
21911
21916
|
), this.disposeWithMe(o == null ? void 0 : o.onPointerUp$.subscribeEvent((l, a) => {
|
|
@@ -21944,7 +21949,7 @@ let Sl = class extends sm {
|
|
|
21944
21949
|
this.disposeWithMe(Fe(a)), this.disposeWithMe(Fe(c));
|
|
21945
21950
|
}
|
|
21946
21951
|
_initUserActionSyncListener() {
|
|
21947
|
-
this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Yt.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Yt.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(
|
|
21952
|
+
this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Yt.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Yt.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(lo).pipe(Gt(!1), un()).subscribe((e) => {
|
|
21948
21953
|
var t;
|
|
21949
21954
|
e ? ((t = this._renderDisposable) == null || t.dispose(), this._renderDisposable = null, this._reset()) : this._renderDisposable = Fe(
|
|
21950
21955
|
this.selectionMoveEnd$.subscribe((n) => this._updateSelections(n, Yt.MOVE_END))
|
|
@@ -22075,11 +22080,11 @@ let Sl = class extends sm {
|
|
|
22075
22080
|
}
|
|
22076
22081
|
// same as PC
|
|
22077
22082
|
_getSheetObject() {
|
|
22078
|
-
return
|
|
22083
|
+
return _n(this._context.unit, this._context);
|
|
22079
22084
|
}
|
|
22080
22085
|
// same as PC
|
|
22081
22086
|
_normalSelectionDisabled() {
|
|
22082
|
-
return this._contextService.getContextValue(
|
|
22087
|
+
return this._contextService.getContextValue(lo);
|
|
22083
22088
|
}
|
|
22084
22089
|
getSelectionControls() {
|
|
22085
22090
|
return this._selectionControls;
|
|
@@ -22190,15 +22195,15 @@ let Sl = class extends sm {
|
|
|
22190
22195
|
}
|
|
22191
22196
|
};
|
|
22192
22197
|
Sl = wM([
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
|
|
22197
|
-
|
|
22198
|
-
|
|
22199
|
-
|
|
22200
|
-
|
|
22201
|
-
|
|
22198
|
+
En(1, V(It)),
|
|
22199
|
+
En(2, V(Lt)),
|
|
22200
|
+
En(3, kl),
|
|
22201
|
+
En(4, V($)),
|
|
22202
|
+
En(5, V(he)),
|
|
22203
|
+
En(6, Tl),
|
|
22204
|
+
En(7, D),
|
|
22205
|
+
En(8, Ve),
|
|
22206
|
+
En(9, V(Tt))
|
|
22202
22207
|
], Sl);
|
|
22203
22208
|
var RM = Object.defineProperty, IM = Object.getOwnPropertyDescriptor, yM = (r, e, t) => e in r ? RM(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, MM = (r, e, t, n) => {
|
|
22204
22209
|
for (var i = n > 1 ? void 0 : n ? IM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -22221,12 +22226,12 @@ let vl = class extends qh {
|
|
|
22221
22226
|
[$l, { useClass: Tm }],
|
|
22222
22227
|
[Ti, { useClass: Gs }],
|
|
22223
22228
|
[Ar],
|
|
22224
|
-
[
|
|
22225
|
-
[Eo],
|
|
22229
|
+
[Oo],
|
|
22226
22230
|
[Po],
|
|
22231
|
+
[To],
|
|
22227
22232
|
[Bd],
|
|
22228
|
-
[
|
|
22229
|
-
[
|
|
22233
|
+
[Eo],
|
|
22234
|
+
[ho],
|
|
22230
22235
|
[Ri],
|
|
22231
22236
|
[xr],
|
|
22232
22237
|
[ul],
|
|
@@ -22236,9 +22241,9 @@ let vl = class extends qh {
|
|
|
22236
22241
|
[wi],
|
|
22237
22242
|
[Fr],
|
|
22238
22243
|
[fl],
|
|
22244
|
+
[Ao],
|
|
22239
22245
|
[xo],
|
|
22240
|
-
[
|
|
22241
|
-
[Ao]
|
|
22246
|
+
[Ho]
|
|
22242
22247
|
].forEach((r) => this._injector.add(r));
|
|
22243
22248
|
}
|
|
22244
22249
|
onReady() {
|
|
@@ -22265,12 +22270,12 @@ let vl = class extends qh {
|
|
|
22265
22270
|
// HeaderMoveRenderController(HMRC) must be initialized before SelectionRenderController(SRC).
|
|
22266
22271
|
// Before HMRC expected selections remain unchanged when user clicks on the header. If we don't initialize HMRC before SRC,
|
|
22267
22272
|
// the selections will be changed by SRC first. Maybe we should merge row/col header related render controllers to one class.
|
|
22273
|
+
[Ro],
|
|
22268
22274
|
[wo],
|
|
22269
|
-
[_o],
|
|
22270
22275
|
// Caution: ScrollRenderController should placed before ZoomRenderController
|
|
22271
22276
|
// because ZoomRenderController would change scrollInfo in currentSkeletonBefore$.
|
|
22272
22277
|
[qc],
|
|
22273
|
-
[
|
|
22278
|
+
[mo],
|
|
22274
22279
|
[pl],
|
|
22275
22280
|
[ol],
|
|
22276
22281
|
[ll],
|
|
@@ -22346,7 +22351,7 @@ var TM = Object.getOwnPropertyDescriptor, OM = (r, e, t, n) => {
|
|
|
22346
22351
|
for (var i = n > 1 ? void 0 : n ? TM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
22347
22352
|
(s = r[o]) && (i = s(i) || i);
|
|
22348
22353
|
return i;
|
|
22349
|
-
},
|
|
22354
|
+
}, Zi = (r, e) => (t, n) => e(t, n, r);
|
|
22350
22355
|
let bl = class extends ae {
|
|
22351
22356
|
constructor(r, e, t, n, i) {
|
|
22352
22357
|
super(), this._selectionManagerService = r, this._themeService = e, this._instanceSrv = t, this._cmdSrv = n, this._definedNamesService = i, this._init();
|
|
@@ -22419,18 +22424,18 @@ let bl = class extends ae {
|
|
|
22419
22424
|
}
|
|
22420
22425
|
};
|
|
22421
22426
|
bl = OM([
|
|
22422
|
-
|
|
22423
|
-
|
|
22424
|
-
|
|
22425
|
-
|
|
22426
|
-
|
|
22427
|
+
Zi(0, V($)),
|
|
22428
|
+
Zi(1, V(Lt)),
|
|
22429
|
+
Zi(2, N),
|
|
22430
|
+
Zi(3, D),
|
|
22431
|
+
Zi(4, jo)
|
|
22427
22432
|
], bl);
|
|
22428
22433
|
var xM = Object.getOwnPropertyDescriptor, AM = (r, e, t, n) => {
|
|
22429
22434
|
for (var i = n > 1 ? void 0 : n ? xM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
22430
22435
|
(s = r[o]) && (i = s(i) || i);
|
|
22431
22436
|
return i;
|
|
22432
|
-
},
|
|
22433
|
-
let
|
|
22437
|
+
}, Pn = (r, e) => (t, n) => e(t, n, r);
|
|
22438
|
+
let ko = class extends Un {
|
|
22434
22439
|
constructor(e, t, n, i, o, s, l, a, c) {
|
|
22435
22440
|
super();
|
|
22436
22441
|
_(this, "_loadedMap", /* @__PURE__ */ new WeakSet());
|
|
@@ -22536,17 +22541,17 @@ let Ho = class extends Un {
|
|
|
22536
22541
|
}), a == null || a.resize(d, c), c > u ? g == null ? h && new fd(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());
|
|
22537
22542
|
}
|
|
22538
22543
|
};
|
|
22539
|
-
|
|
22540
|
-
|
|
22541
|
-
|
|
22542
|
-
|
|
22543
|
-
|
|
22544
|
-
|
|
22545
|
-
|
|
22546
|
-
|
|
22547
|
-
|
|
22548
|
-
|
|
22549
|
-
],
|
|
22544
|
+
ko = AM([
|
|
22545
|
+
Pn(0, N),
|
|
22546
|
+
Pn(1, be),
|
|
22547
|
+
Pn(2, it),
|
|
22548
|
+
Pn(3, D),
|
|
22549
|
+
Pn(4, Ve),
|
|
22550
|
+
Pn(5, Jl),
|
|
22551
|
+
Pn(6, qt),
|
|
22552
|
+
Pn(7, V(xd)),
|
|
22553
|
+
Pn(8, Hr)
|
|
22554
|
+
], ko);
|
|
22550
22555
|
var HM = Object.getOwnPropertyDescriptor, kM = (r, e, t, n) => {
|
|
22551
22556
|
for (var i = n > 1 ? void 0 : n ? HM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
22552
22557
|
(s = r[o]) && (i = s(i) || i);
|
|
@@ -22697,7 +22702,7 @@ _l = kM([
|
|
|
22697
22702
|
Kn(3, D),
|
|
22698
22703
|
Kn(4, V(et)),
|
|
22699
22704
|
Kn(5, V(St)),
|
|
22700
|
-
Kn(6, V(
|
|
22705
|
+
Kn(6, V(ko)),
|
|
22701
22706
|
Kn(7, Jl)
|
|
22702
22707
|
], _l);
|
|
22703
22708
|
var NM = Object.getOwnPropertyDescriptor, DM = (r, e, t, n) => {
|
|
@@ -22800,7 +22805,7 @@ let wl = class extends ae {
|
|
|
22800
22805
|
nn,
|
|
22801
22806
|
b
|
|
22802
22807
|
), { undos: y, redos: M } = i.onCommandExecute({
|
|
22803
|
-
id:
|
|
22808
|
+
id: No.id,
|
|
22804
22809
|
params: { ...R, range: S }
|
|
22805
22810
|
}), E = Ul(p), P = [], T = [], A = o.getUnit(r).getSheetBySheetId(e), H = rf(A, E), O = {
|
|
22806
22811
|
unitId: r,
|
|
@@ -22997,7 +23002,7 @@ var ZM = Object.getOwnPropertyDescriptor, GM = (r, e, t, n) => {
|
|
|
22997
23002
|
for (var i = n > 1 ? void 0 : n ? ZM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
22998
23003
|
(s = r[o]) && (i = s(i) || i);
|
|
22999
23004
|
return i;
|
|
23000
|
-
},
|
|
23005
|
+
}, Tn = (r, e) => (t, n) => e(t, n, r);
|
|
23001
23006
|
let $c = class extends Un {
|
|
23002
23007
|
constructor(e, t, n, i, o, s, l, a, c, d) {
|
|
23003
23008
|
super();
|
|
@@ -23089,7 +23094,7 @@ let $c = class extends Un {
|
|
|
23089
23094
|
}));
|
|
23090
23095
|
}
|
|
23091
23096
|
_commandExecutedListener(e) {
|
|
23092
|
-
const t = /* @__PURE__ */ new Set([
|
|
23097
|
+
const t = /* @__PURE__ */ new Set([to.id, Go.id]);
|
|
23093
23098
|
e.add(this._commandService.onCommandExecuted((n) => {
|
|
23094
23099
|
if (t.has(n.id)) {
|
|
23095
23100
|
if (this._editorBridgeService.isVisible().visible) return;
|
|
@@ -23154,7 +23159,7 @@ let $c = class extends Un {
|
|
|
23154
23159
|
};
|
|
23155
23160
|
}
|
|
23156
23161
|
_getSheetObject() {
|
|
23157
|
-
return
|
|
23162
|
+
return _n(this._context.unit, this._context);
|
|
23158
23163
|
}
|
|
23159
23164
|
_isCurrentSheetFocused() {
|
|
23160
23165
|
var e;
|
|
@@ -23162,18 +23167,18 @@ let $c = class extends Un {
|
|
|
23162
23167
|
}
|
|
23163
23168
|
};
|
|
23164
23169
|
$c = GM([
|
|
23165
|
-
|
|
23166
|
-
|
|
23167
|
-
|
|
23168
|
-
|
|
23169
|
-
|
|
23170
|
-
|
|
23171
|
-
|
|
23172
|
-
|
|
23173
|
-
|
|
23170
|
+
Tn(1, N),
|
|
23171
|
+
Tn(2, D),
|
|
23172
|
+
Tn(3, it),
|
|
23173
|
+
Tn(4, V($)),
|
|
23174
|
+
Tn(5, Up),
|
|
23175
|
+
Tn(6, Ve),
|
|
23176
|
+
Tn(7, be),
|
|
23177
|
+
Tn(8, Hr),
|
|
23178
|
+
Tn(9, V(he))
|
|
23174
23179
|
], $c);
|
|
23175
23180
|
var ed = /* @__PURE__ */ ((r) => (r[r.NORMAL = 0] = "NORMAL", r[r.HIGHLIGHT = 1] = "HIGHLIGHT", r))(ed || {});
|
|
23176
|
-
const qM = "rgba(0, 0, 0, 0.15)",
|
|
23181
|
+
const qM = "rgba(0, 0, 0, 0.15)", On = "rgb(0, 0, 0)", fs = "rgb(255, 255, 255, 1)";
|
|
23177
23182
|
class QM extends pd {
|
|
23178
23183
|
constructor(t, n) {
|
|
23179
23184
|
super(t, n);
|
|
@@ -23196,7 +23201,7 @@ class QM extends pd {
|
|
|
23196
23201
|
fill: qM
|
|
23197
23202
|
});
|
|
23198
23203
|
const n = this._size * 0.5 * this._iconRatio, i = Math.PI / 180 * 60, o = n * Math.sin(i), s = n * Math.cos(i);
|
|
23199
|
-
|
|
23204
|
+
Gi.drawWith(t, {
|
|
23200
23205
|
pointsGroup: [
|
|
23201
23206
|
[
|
|
23202
23207
|
{ x: -o + this._size / 2, y: -s + this._size / 2 },
|
|
@@ -23206,7 +23211,7 @@ class QM extends pd {
|
|
|
23206
23211
|
],
|
|
23207
23212
|
// left: this.left,
|
|
23208
23213
|
// top: this.top,
|
|
23209
|
-
fill:
|
|
23214
|
+
fill: On
|
|
23210
23215
|
});
|
|
23211
23216
|
}
|
|
23212
23217
|
}
|
|
@@ -23257,7 +23262,7 @@ let td = class extends ae {
|
|
|
23257
23262
|
const f = (y = this._sheetSkeletonManagerService.getCurrentParam()) == null ? void 0 : y.skeleton;
|
|
23258
23263
|
if (f == null)
|
|
23259
23264
|
return;
|
|
23260
|
-
const { rowHeaderWidth: p, columnHeaderHeight: S } = f, { startX: v, startY: C, endX: b, endY: R, column: I } =
|
|
23265
|
+
const { rowHeaderWidth: p, columnHeaderHeight: S } = f, { startX: v, startY: C, endX: b, endY: R, column: I } = Bn(
|
|
23261
23266
|
m.offsetX,
|
|
23262
23267
|
m.offsetY,
|
|
23263
23268
|
this._context.scene,
|
|
@@ -23362,11 +23367,11 @@ td = JM([
|
|
|
23362
23367
|
ps(4, V($))
|
|
23363
23368
|
], td);
|
|
23364
23369
|
var nd = /* @__PURE__ */ ((r) => (r[r.ROW = 0] = "ROW", r[r.COLUMN = 1] = "COLUMN", r))(nd || {});
|
|
23365
|
-
const
|
|
23370
|
+
const Ji = 12, nE = 0.4;
|
|
23366
23371
|
class Ah extends pd {
|
|
23367
23372
|
constructor(t, n, i) {
|
|
23368
23373
|
super(t, n);
|
|
23369
|
-
_(this, "_size",
|
|
23374
|
+
_(this, "_size", Ji);
|
|
23370
23375
|
_(this, "_iconRatio", nE);
|
|
23371
23376
|
_(this, "_hovered", !0);
|
|
23372
23377
|
_(this, "_hasPrevious", !0);
|
|
@@ -23387,16 +23392,16 @@ class Ah extends pd {
|
|
|
23387
23392
|
this._hovered && (!this._hasNext || !this._hasPrevious ? Ce.drawWith(t, {
|
|
23388
23393
|
width: this._size,
|
|
23389
23394
|
height: this._size,
|
|
23390
|
-
stroke:
|
|
23395
|
+
stroke: On,
|
|
23391
23396
|
fill: fs
|
|
23392
23397
|
}) : Ce.drawWith(t, {
|
|
23393
23398
|
width: this._size,
|
|
23394
23399
|
height: 2 * this._size,
|
|
23395
|
-
stroke:
|
|
23400
|
+
stroke: On,
|
|
23396
23401
|
fill: fs
|
|
23397
23402
|
}));
|
|
23398
23403
|
const n = this._size * 0.5 * this._iconRatio, i = Math.PI / 3, o = n * Math.cos(i), s = n * Math.sin(i);
|
|
23399
|
-
if (this._hasPrevious &&
|
|
23404
|
+
if (this._hasPrevious && Gi.drawWith(t, {
|
|
23400
23405
|
pointsGroup: [
|
|
23401
23406
|
[
|
|
23402
23407
|
{ x: this._size / 2, y: this._size / 2 - s },
|
|
@@ -23404,10 +23409,10 @@ class Ah extends pd {
|
|
|
23404
23409
|
{ x: this._size / 2 + s, y: this._size / 2 + o }
|
|
23405
23410
|
]
|
|
23406
23411
|
],
|
|
23407
|
-
fill:
|
|
23412
|
+
fill: On
|
|
23408
23413
|
}), this._hasNext) {
|
|
23409
23414
|
const l = this._hasPrevious ? 3 : 1;
|
|
23410
|
-
|
|
23415
|
+
Gi.drawWith(t, {
|
|
23411
23416
|
pointsGroup: [
|
|
23412
23417
|
[
|
|
23413
23418
|
{ x: this._size / 2, y: this._size * l / 2 + s },
|
|
@@ -23415,7 +23420,7 @@ class Ah extends pd {
|
|
|
23415
23420
|
{ x: this._size / 2 + s, y: this._size * l / 2 - o }
|
|
23416
23421
|
]
|
|
23417
23422
|
],
|
|
23418
|
-
fill:
|
|
23423
|
+
fill: On
|
|
23419
23424
|
});
|
|
23420
23425
|
}
|
|
23421
23426
|
}
|
|
@@ -23427,16 +23432,16 @@ class Ah extends pd {
|
|
|
23427
23432
|
this._hovered && (!this._hasNext || !this._hasPrevious ? Ce.drawWith(t, {
|
|
23428
23433
|
width: this._size,
|
|
23429
23434
|
height: this._size,
|
|
23430
|
-
stroke:
|
|
23435
|
+
stroke: On,
|
|
23431
23436
|
fill: fs
|
|
23432
23437
|
}) : Ce.drawWith(t, {
|
|
23433
23438
|
width: 2 * this._size,
|
|
23434
23439
|
height: this._size,
|
|
23435
|
-
stroke:
|
|
23440
|
+
stroke: On,
|
|
23436
23441
|
fill: fs
|
|
23437
23442
|
}));
|
|
23438
23443
|
const n = this._size * 0.5 * this._iconRatio, i = Math.PI / 3, o = n * Math.cos(i), s = n * Math.sin(i);
|
|
23439
|
-
if (this._hasPrevious &&
|
|
23444
|
+
if (this._hasPrevious && Gi.drawWith(t, {
|
|
23440
23445
|
pointsGroup: [
|
|
23441
23446
|
[
|
|
23442
23447
|
{ x: -o + this._size / 2, y: this._size / 2 },
|
|
@@ -23444,10 +23449,10 @@ class Ah extends pd {
|
|
|
23444
23449
|
{ x: this._size / 2 + s, y: this._size / 2 + s }
|
|
23445
23450
|
]
|
|
23446
23451
|
],
|
|
23447
|
-
fill:
|
|
23452
|
+
fill: On
|
|
23448
23453
|
}), this._hasNext) {
|
|
23449
23454
|
const l = this._hasPrevious ? 3 : 1;
|
|
23450
|
-
|
|
23455
|
+
Gi.drawWith(t, {
|
|
23451
23456
|
pointsGroup: [
|
|
23452
23457
|
[
|
|
23453
23458
|
{ x: o + this._size * l / 2, y: this._size / 2 },
|
|
@@ -23455,7 +23460,7 @@ class Ah extends pd {
|
|
|
23455
23460
|
{ x: -s + this._size * l / 2, y: this._size / 2 + s }
|
|
23456
23461
|
]
|
|
23457
23462
|
],
|
|
23458
|
-
fill:
|
|
23463
|
+
fill: On
|
|
23459
23464
|
});
|
|
23460
23465
|
}
|
|
23461
23466
|
}
|
|
@@ -23511,8 +23516,8 @@ let rd = class extends Un {
|
|
|
23511
23516
|
hovered: !1,
|
|
23512
23517
|
hasPrevious: S,
|
|
23513
23518
|
hasNext: v,
|
|
23514
|
-
top: p.startY - (S ?
|
|
23515
|
-
left: p.startX -
|
|
23519
|
+
top: p.startY - (S ? Ji : 0),
|
|
23520
|
+
left: p.startX - Ji
|
|
23516
23521
|
},
|
|
23517
23522
|
() => this._commandService.executeCommand(
|
|
23518
23523
|
zv.id,
|
|
@@ -23532,8 +23537,8 @@ let rd = class extends Un {
|
|
|
23532
23537
|
hovered: !1,
|
|
23533
23538
|
hasPrevious: S,
|
|
23534
23539
|
hasNext: v,
|
|
23535
|
-
top: 20 -
|
|
23536
|
-
left: p.startX - (S ?
|
|
23540
|
+
top: 20 - Ji,
|
|
23541
|
+
left: p.startX - (S ? Ji : 0)
|
|
23537
23542
|
},
|
|
23538
23543
|
() => this._commandService.executeCommand(
|
|
23539
23544
|
jv.id,
|
|
@@ -23551,7 +23556,7 @@ let rd = class extends Un {
|
|
|
23551
23556
|
this._shapes.cols.forEach((e) => e.dispose()), this._shapes.rows.forEach((e) => e.dispose()), this._shapes = { cols: [], rows: [] };
|
|
23552
23557
|
}
|
|
23553
23558
|
_getSheetObject() {
|
|
23554
|
-
return
|
|
23559
|
+
return _n(this._workbook, this._context);
|
|
23555
23560
|
}
|
|
23556
23561
|
};
|
|
23557
23562
|
rd = iE([
|
|
@@ -23618,12 +23623,12 @@ let od = class extends sm {
|
|
|
23618
23623
|
})), this.disposeWithMe(
|
|
23619
23624
|
t == null ? void 0 : t.onPointerDown$.subscribeEvent((l, a) => {
|
|
23620
23625
|
if (this.isSelectionDisabled() || this.inRefSelectionMode()) return;
|
|
23621
|
-
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { row: d } =
|
|
23626
|
+
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { row: d } = Bn(l.offsetX, l.offsetY, s, c);
|
|
23622
23627
|
tf(this._workbookSelections.getCurrentSelections(), d) || (this._onPointerDown(l, (i.zIndex || 1) + 1, z.ROW, this._getActiveViewport(l), Pt.Y), l.button !== 2 && a.stopPropagation());
|
|
23623
23628
|
})
|
|
23624
23629
|
), this.disposeWithMe(n == null ? void 0 : n.onPointerDown$.subscribeEvent((l, a) => {
|
|
23625
23630
|
if (this.isSelectionDisabled() || this.inRefSelectionMode()) return;
|
|
23626
|
-
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { column: d } =
|
|
23631
|
+
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { column: d } = Bn(l.offsetX, l.offsetY, s, c);
|
|
23627
23632
|
nf(this._workbookSelections.getCurrentSelections(), d) || (this._onPointerDown(l, (i.zIndex || 1) + 1, z.COLUMN, this._getActiveViewport(l), Pt.X), l.button !== 2 && a.stopPropagation());
|
|
23628
23633
|
})), this.disposeWithMe(o == null ? void 0 : o.onPointerDown$.subscribeEvent((l, a) => {
|
|
23629
23634
|
if (this.isSelectionDisabled() || this.inRefSelectionMode()) return;
|
|
@@ -23683,7 +23688,7 @@ let od = class extends sm {
|
|
|
23683
23688
|
* Handle events in spreadsheet. (e.g. drag and move to make a selection)
|
|
23684
23689
|
*/
|
|
23685
23690
|
_initUserActionSyncListener() {
|
|
23686
|
-
this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Yt.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Yt.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(
|
|
23691
|
+
this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Yt.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Yt.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(lo).pipe(Gt(!1), un()).subscribe((e) => {
|
|
23687
23692
|
e && this._reset();
|
|
23688
23693
|
})), this.disposeWithMe(this._contextService.subscribeContextValue$($r).pipe(Gt(!0), un()).subscribe((e) => {
|
|
23689
23694
|
var t;
|
|
@@ -23742,7 +23747,7 @@ let od = class extends sm {
|
|
|
23742
23747
|
return t == null ? void 0 : t.scene.getActiveViewportByCoord(ke.FromArray([e.offsetX, e.offsetY]));
|
|
23743
23748
|
}
|
|
23744
23749
|
_getSheetObject() {
|
|
23745
|
-
return
|
|
23750
|
+
return _n(this._context.unit, this._context);
|
|
23746
23751
|
}
|
|
23747
23752
|
/**
|
|
23748
23753
|
* Handle pointer down event, bind pointermove & pointerup handler.
|
|
@@ -23833,7 +23838,7 @@ let Il = class extends qh {
|
|
|
23833
23838
|
xc,
|
|
23834
23839
|
this._config
|
|
23835
23840
|
);
|
|
23836
|
-
o && this._configService.setConfig("menu", o, { merge: !0 }), this._configService.setConfig(
|
|
23841
|
+
o && this._configService.setConfig("menu", o, { merge: !0 }), this._configService.setConfig(vn, s);
|
|
23837
23842
|
}
|
|
23838
23843
|
onStarting() {
|
|
23839
23844
|
Su(this._injector, lS([
|
|
@@ -23850,15 +23855,15 @@ let Il = class extends qh {
|
|
|
23850
23855
|
[$l, { useClass: Tm }],
|
|
23851
23856
|
[Ti, { useClass: Gs }],
|
|
23852
23857
|
[Ar],
|
|
23853
|
-
[
|
|
23854
|
-
[Eo],
|
|
23858
|
+
[Oo],
|
|
23855
23859
|
[Po],
|
|
23860
|
+
[To],
|
|
23856
23861
|
[Bd],
|
|
23857
23862
|
// controllers
|
|
23858
|
-
[
|
|
23859
|
-
[
|
|
23860
|
-
[
|
|
23861
|
-
[
|
|
23863
|
+
[Eo],
|
|
23864
|
+
[ho],
|
|
23865
|
+
[_o],
|
|
23866
|
+
[ko],
|
|
23862
23867
|
[xr],
|
|
23863
23868
|
[il],
|
|
23864
23869
|
[Ii],
|
|
@@ -23871,9 +23876,9 @@ let Il = class extends qh {
|
|
|
23871
23876
|
[wi],
|
|
23872
23877
|
[Rl],
|
|
23873
23878
|
[Fr],
|
|
23879
|
+
[Ao],
|
|
23874
23880
|
[xo],
|
|
23875
|
-
[
|
|
23876
|
-
[Ao]
|
|
23881
|
+
[Ho]
|
|
23877
23882
|
], this._config.override));
|
|
23878
23883
|
}
|
|
23879
23884
|
onReady() {
|
|
@@ -23882,21 +23887,21 @@ let Il = class extends qh {
|
|
|
23882
23887
|
]), this._registerRenderBasics(), va(this._injector, [
|
|
23883
23888
|
[il],
|
|
23884
23889
|
[xr],
|
|
23885
|
-
[
|
|
23886
|
-
[
|
|
23890
|
+
[Eo],
|
|
23891
|
+
[xo],
|
|
23887
23892
|
[Rl]
|
|
23888
23893
|
]);
|
|
23889
23894
|
}
|
|
23890
23895
|
onRendered() {
|
|
23891
23896
|
this._registerRenderModules(), va(this._injector, [
|
|
23892
|
-
[
|
|
23897
|
+
[Ho],
|
|
23893
23898
|
[wi],
|
|
23894
23899
|
[Ri],
|
|
23895
|
-
[
|
|
23900
|
+
[ko],
|
|
23896
23901
|
[bl],
|
|
23897
23902
|
[Ii],
|
|
23898
|
-
[
|
|
23899
|
-
[
|
|
23903
|
+
[ho],
|
|
23904
|
+
[_o],
|
|
23900
23905
|
[_l],
|
|
23901
23906
|
[Cl]
|
|
23902
23907
|
]);
|
|
@@ -23905,7 +23910,7 @@ let Il = class extends qh {
|
|
|
23905
23910
|
va(this._injector, [
|
|
23906
23911
|
[wl],
|
|
23907
23912
|
[zs],
|
|
23908
|
-
[
|
|
23913
|
+
[Ao]
|
|
23909
23914
|
]);
|
|
23910
23915
|
}
|
|
23911
23916
|
_registerRenderBasics() {
|
|
@@ -23923,14 +23928,14 @@ let Il = class extends qh {
|
|
|
23923
23928
|
_registerRenderModules() {
|
|
23924
23929
|
var n;
|
|
23925
23930
|
const r = [
|
|
23926
|
-
[
|
|
23931
|
+
[Ro],
|
|
23927
23932
|
[rd],
|
|
23928
23933
|
[$s],
|
|
23929
23934
|
// Caution: ScrollRenderController should placed before ZoomRenderController.
|
|
23930
23935
|
[Tt],
|
|
23931
|
-
[
|
|
23932
|
-
[
|
|
23933
|
-
[
|
|
23936
|
+
[So],
|
|
23937
|
+
[wo],
|
|
23938
|
+
[mo],
|
|
23934
23939
|
[Zs],
|
|
23935
23940
|
[pl],
|
|
23936
23941
|
[Kc],
|
|
@@ -23967,7 +23972,7 @@ Il = hE([
|
|
|
23967
23972
|
Gh(jg),
|
|
23968
23973
|
Ss(1, V(It)),
|
|
23969
23974
|
Ss(2, be),
|
|
23970
|
-
Ss(3,
|
|
23975
|
+
Ss(3, bn),
|
|
23971
23976
|
Ss(4, N)
|
|
23972
23977
|
], Il);
|
|
23973
23978
|
const gE = "embedding_formula_editor", LE = (r) => r.includes(gE);
|
|
@@ -23975,12 +23980,12 @@ function WE(r, e, t, n) {
|
|
|
23975
23980
|
const { from: i, to: o } = t, { column: s, columnOffset: l, row: a, rowOffset: c } = i, { column: d, columnOffset: u, row: h, rowOffset: g } = o, m = n.ensureSkeleton(e);
|
|
23976
23981
|
if (m == null)
|
|
23977
23982
|
throw new Error("No current skeleton");
|
|
23978
|
-
const f =
|
|
23983
|
+
const f = uo(m, {
|
|
23979
23984
|
startColumn: s,
|
|
23980
23985
|
endColumn: s,
|
|
23981
23986
|
startRow: a,
|
|
23982
23987
|
endRow: a
|
|
23983
|
-
}), p =
|
|
23988
|
+
}), p = uo(m, {
|
|
23984
23989
|
startColumn: d,
|
|
23985
23990
|
endColumn: d,
|
|
23986
23991
|
startRow: h,
|
|
@@ -24000,7 +24005,7 @@ function BE(r, e, t, n, i, o, s) {
|
|
|
24000
24005
|
const { column: l, columnOffset: a, row: c, rowOffset: d } = t, u = s.ensureSkeleton(e);
|
|
24001
24006
|
if (u == null)
|
|
24002
24007
|
throw new Error("No current skeleton");
|
|
24003
|
-
const h =
|
|
24008
|
+
const h = uo(u, {
|
|
24004
24009
|
startColumn: l,
|
|
24005
24010
|
endColumn: l,
|
|
24006
24011
|
startRow: c,
|
|
@@ -24041,26 +24046,26 @@ export {
|
|
|
24041
24046
|
ua as AddRangeProtectionFromSheetBarCommand,
|
|
24042
24047
|
da as AddRangeProtectionFromToolbarCommand,
|
|
24043
24048
|
oa as ApplyFormatPainterCommand,
|
|
24044
|
-
|
|
24049
|
+
go as AutoClearContentCommand,
|
|
24045
24050
|
br as AutoFillCommand,
|
|
24046
24051
|
zs as AutoFillController,
|
|
24047
24052
|
Xs as AutoFillService,
|
|
24048
|
-
|
|
24049
|
-
|
|
24053
|
+
ho as AutoHeightController,
|
|
24054
|
+
_o as AutoWidthController,
|
|
24050
24055
|
sm as BaseSelectionRenderService,
|
|
24051
24056
|
$n as COPY_TYPE,
|
|
24052
|
-
|
|
24053
|
-
|
|
24057
|
+
To as CellAlertManagerService,
|
|
24058
|
+
so as CellAlertType,
|
|
24054
24059
|
js as CellCustomRenderController,
|
|
24055
24060
|
a1 as CellEditorManagerService,
|
|
24056
24061
|
pa as ChangeSheetProtectionFromSheetBarCommand,
|
|
24057
|
-
|
|
24062
|
+
Zo as ChangeZoomRatioCommand,
|
|
24058
24063
|
ft as DATA_TYPE,
|
|
24059
|
-
|
|
24064
|
+
$o as DeleteRangeMoveLeftConfirmCommand,
|
|
24060
24065
|
bi as DeleteRangeMoveUpConfirmCommand,
|
|
24061
24066
|
ui as DeleteRangeProtectionFromContextMenuCommand,
|
|
24062
24067
|
fa as DeleteWorksheetProtectionFormSheetBarCommand,
|
|
24063
|
-
|
|
24068
|
+
Oo as DragManagerService,
|
|
24064
24069
|
sl as DragRenderController,
|
|
24065
24070
|
gE as EMBEDDING_FORMULA_EDITOR,
|
|
24066
24071
|
Vd as EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY,
|
|
@@ -24072,9 +24077,9 @@ export {
|
|
|
24072
24077
|
nu as FONT_SIZE_COMPONENT,
|
|
24073
24078
|
Zt as FormatPainterStatus,
|
|
24074
24079
|
_b as FormulaBar,
|
|
24075
|
-
|
|
24076
|
-
|
|
24077
|
-
|
|
24080
|
+
ko as FormulaEditorController,
|
|
24081
|
+
wo as HeaderFreezeRenderController,
|
|
24082
|
+
Ro as HeaderMoveRenderController,
|
|
24078
24083
|
$s as HeaderResizeRenderController,
|
|
24079
24084
|
ta as HideColConfirmCommand,
|
|
24080
24085
|
ea as HideRowConfirmCommand,
|
|
@@ -24090,7 +24095,7 @@ export {
|
|
|
24090
24095
|
lt as ISheetSelectionRenderService,
|
|
24091
24096
|
$l as IStatusBarService,
|
|
24092
24097
|
_i as InsertRangeMoveDownConfirmCommand,
|
|
24093
|
-
|
|
24098
|
+
es as InsertRangeMoveRightConfirmCommand,
|
|
24094
24099
|
jn as JumpOver,
|
|
24095
24100
|
Gs as MarkSelectionService,
|
|
24096
24101
|
_I as MobileSheetBar,
|
|
@@ -24101,8 +24106,8 @@ export {
|
|
|
24101
24106
|
im as RANGE_SELECTOR_COMPONENT_KEY,
|
|
24102
24107
|
v_ as RANGE_SELECTOR_SYMBOLS,
|
|
24103
24108
|
Zl as RefillCommand,
|
|
24104
|
-
|
|
24105
|
-
|
|
24109
|
+
Mo as RemoveColConfirmCommand,
|
|
24110
|
+
yo as RemoveRowConfirmCommand,
|
|
24106
24111
|
ga as RemoveSheetConfirmCommand,
|
|
24107
24112
|
Sa as RenameSheetOperation,
|
|
24108
24113
|
t_ as RenderSheetContent,
|
|
@@ -24128,7 +24133,7 @@ export {
|
|
|
24128
24133
|
Dd as SetColumnHeaderHeightCommand,
|
|
24129
24134
|
ia as SetFormatPainterOperation,
|
|
24130
24135
|
$d as SetInfiniteFormatPainterCommand,
|
|
24131
|
-
|
|
24136
|
+
qo as SetOnceFormatPainterCommand,
|
|
24132
24137
|
Oi as SetRangeBoldCommand,
|
|
24133
24138
|
ra as SetRangeFontFamilyCommand,
|
|
24134
24139
|
na as SetRangeFontSizeCommand,
|
|
@@ -24137,32 +24142,32 @@ export {
|
|
|
24137
24142
|
Hi as SetRangeStrickThroughCommand,
|
|
24138
24143
|
Gm as SetRangeSubscriptCommand,
|
|
24139
24144
|
qm as SetRangeSuperscriptCommand,
|
|
24140
|
-
|
|
24145
|
+
bo as SetRangeTextColorCommand,
|
|
24141
24146
|
Ai as SetRangeUnderlineCommand,
|
|
24142
24147
|
sa as SetRowFrozenCommand,
|
|
24143
24148
|
Nd as SetRowHeaderWidthCommand,
|
|
24144
24149
|
hn as SetScrollOperation,
|
|
24145
|
-
|
|
24150
|
+
po as SetScrollRelativeCommand,
|
|
24146
24151
|
or as SetSelectionFrozenCommand,
|
|
24147
24152
|
aa as SetWorksheetColAutoWidthCommand,
|
|
24148
|
-
|
|
24153
|
+
Go as SetZoomRatioCommand,
|
|
24149
24154
|
tn as SetZoomRatioOperation,
|
|
24150
24155
|
Ub as SheetBar,
|
|
24151
|
-
|
|
24156
|
+
Po as SheetCanvasPopManagerService,
|
|
24152
24157
|
Zs as SheetCellEditorResizeService,
|
|
24153
24158
|
Qs as SheetClipboardService,
|
|
24154
24159
|
mn as SheetCopyCommand,
|
|
24155
24160
|
Ym as SheetCutCommand,
|
|
24156
24161
|
hw as SheetMenuPosition,
|
|
24157
|
-
|
|
24162
|
+
oo as SheetPasteBesidesBorderCommand,
|
|
24158
24163
|
li as SheetPasteColWidthCommand,
|
|
24159
24164
|
fn as SheetPasteCommand,
|
|
24160
|
-
|
|
24165
|
+
io as SheetPasteFormatCommand,
|
|
24161
24166
|
Fc as SheetPasteShortKeyCommand,
|
|
24162
|
-
|
|
24163
|
-
|
|
24167
|
+
ro as SheetPasteValueCommand,
|
|
24168
|
+
xo as SheetPermissionCheckUIController,
|
|
24164
24169
|
gf as SheetPermissionOpenDialogOperation,
|
|
24165
|
-
|
|
24170
|
+
Fn as SheetPermissionOpenPanelOperation,
|
|
24166
24171
|
Fr as SheetPermissionUserManagerService,
|
|
24167
24172
|
mp as SheetPrintInterceptorService,
|
|
24168
24173
|
el as SheetRenderController,
|
|
@@ -24171,7 +24176,7 @@ export {
|
|
|
24171
24176
|
he as SheetSkeletonManagerService,
|
|
24172
24177
|
il as SheetUIController,
|
|
24173
24178
|
xr as SheetsRenderService,
|
|
24174
|
-
|
|
24179
|
+
So as SheetsScrollRenderController,
|
|
24175
24180
|
mR as SheetsUIMenuSchema,
|
|
24176
24181
|
am as SheetsUIPart,
|
|
24177
24182
|
ma as ShowMenuListCommand,
|
|
@@ -24185,7 +24190,7 @@ export {
|
|
|
24185
24190
|
di as ViewSheetPermissionFromContextMenuCommand,
|
|
24186
24191
|
ha as ViewSheetPermissionFromSheetBarCommand,
|
|
24187
24192
|
Bs as attachPrimaryWithCoord,
|
|
24188
|
-
|
|
24193
|
+
uo as attachRangeWithCoord,
|
|
24189
24194
|
xt as attachSelectionWithCoord,
|
|
24190
24195
|
sI as calculateDocSkeletonRects,
|
|
24191
24196
|
Js as checkInHeaderRanges,
|
|
@@ -24200,7 +24205,7 @@ export {
|
|
|
24200
24205
|
AE as getAutoFillRepeatRange,
|
|
24201
24206
|
f0 as getCellRealRange,
|
|
24202
24207
|
Fu as getCoordByCell,
|
|
24203
|
-
|
|
24208
|
+
Bn as getCoordByOffset,
|
|
24204
24209
|
uw as getCurrentExclusiveRangeInterest$,
|
|
24205
24210
|
me as getCurrentRangeDisable$,
|
|
24206
24211
|
NE as getCustomRangePosition,
|
|
@@ -24209,7 +24214,7 @@ export {
|
|
|
24209
24214
|
K_ as getMatrixPlainText,
|
|
24210
24215
|
Vi as getObservableWithExclusiveRange$,
|
|
24211
24216
|
VE as getRepeatRange,
|
|
24212
|
-
|
|
24217
|
+
_n as getSheetObject,
|
|
24213
24218
|
Wd as getTopLeftSelectionOfCurrSheet,
|
|
24214
24219
|
ws as getTransformCoord,
|
|
24215
24220
|
LE as isEmbeddingFormulaEditor,
|