@univerjs/sheets-ui 0.6.6-nightly.202503201607 → 0.6.6-nightly.202503211606
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;
|
|
@@ -5774,7 +5774,7 @@ const A1 = () => {
|
|
|
5774
5774
|
countBar: k1
|
|
5775
5775
|
}, N1 = [50, 75, 100, 125, 150, 175, 200, 400];
|
|
5776
5776
|
function D1() {
|
|
5777
|
-
const r = L(D), e = L(N), t = ur(), n = L(it), i = mt(n.visible$), o =
|
|
5777
|
+
const r = L(D), e = L(N), t = ur(), n = L(it), i = mt(n.visible$), o = Ln(() => {
|
|
5778
5778
|
if (!t) return 100;
|
|
5779
5779
|
const d = t.getActiveSheet(), u = d && d.getZoomRatio() * 100 || 100;
|
|
5780
5780
|
return Math.round(u);
|
|
@@ -5791,7 +5791,7 @@ function D1() {
|
|
|
5791
5791
|
if (h == null)
|
|
5792
5792
|
return;
|
|
5793
5793
|
const g = d / 100;
|
|
5794
|
-
r.executeCommand(
|
|
5794
|
+
r.executeCommand(Go.id, {
|
|
5795
5795
|
unitId: u.getUnitId(),
|
|
5796
5796
|
subUnitId: h.getSheetId(),
|
|
5797
5797
|
zoomRatio: g
|
|
@@ -5841,7 +5841,7 @@ const W1 = "univer-editor-container", B1 = "univer-editor-input", ju = {
|
|
|
5841
5841
|
}, F1 = () => {
|
|
5842
5842
|
const [r, e] = ne({
|
|
5843
5843
|
...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 =
|
|
5844
|
+
}), 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
5845
|
() => i.subscribeContextValue$(_u),
|
|
5846
5846
|
!1,
|
|
5847
5847
|
void 0,
|
|
@@ -5971,9 +5971,9 @@ class U1 {
|
|
|
5971
5971
|
this._position$.next(e);
|
|
5972
5972
|
}
|
|
5973
5973
|
}
|
|
5974
|
-
const Jl =
|
|
5974
|
+
const Jl = Cn(
|
|
5975
5975
|
"univer.sheet-formula-editor-manager.service"
|
|
5976
|
-
),
|
|
5976
|
+
), vo = "DefinedNameContainer", Gd = {
|
|
5977
5977
|
id: "sidebar.operation.defined-name",
|
|
5978
5978
|
type: Q.COMMAND,
|
|
5979
5979
|
handler: async (r, e) => {
|
|
@@ -5985,9 +5985,9 @@ const Jl = vn(
|
|
|
5985
5985
|
switch (e.value) {
|
|
5986
5986
|
case "open":
|
|
5987
5987
|
t.open({
|
|
5988
|
-
id:
|
|
5988
|
+
id: vo,
|
|
5989
5989
|
header: { title: n.t("definedName.featureTitle") },
|
|
5990
|
-
children: { label:
|
|
5990
|
+
children: { label: vo },
|
|
5991
5991
|
onClose: () => {
|
|
5992
5992
|
},
|
|
5993
5993
|
width: 333
|
|
@@ -6002,7 +6002,7 @@ const Jl = vn(
|
|
|
6002
6002
|
}
|
|
6003
6003
|
};
|
|
6004
6004
|
function X1(r) {
|
|
6005
|
-
const e = L(D), t = L(He), n = L(
|
|
6005
|
+
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
6006
|
const g = n.getDefinedNameMap(l);
|
|
6007
6007
|
return g ? Array.from(Object.values(g)) : [];
|
|
6008
6008
|
}, [c, d] = ne(a());
|
|
@@ -6015,7 +6015,7 @@ function X1(r) {
|
|
|
6015
6015
|
};
|
|
6016
6016
|
}, []), Pe(() => {
|
|
6017
6017
|
const g = o.sidebarOptions$.subscribe((m) => {
|
|
6018
|
-
m.id ===
|
|
6018
|
+
m.id === vo && (m.visible || setTimeout(() => {
|
|
6019
6019
|
o.sidebarOptions$.next({ visible: !1 });
|
|
6020
6020
|
}));
|
|
6021
6021
|
});
|
|
@@ -6122,7 +6122,7 @@ const z1 = "univer-defined-name-container", j1 = "univer-defined-name-container-
|
|
|
6122
6122
|
definedNameInputValidation: nb
|
|
6123
6123
|
};
|
|
6124
6124
|
function rb({ disable: r }) {
|
|
6125
|
-
const [e, t] = ne(""), n = L(
|
|
6125
|
+
const [e, t] = ne(""), n = L(jo);
|
|
6126
6126
|
Pe(() => {
|
|
6127
6127
|
const o = n.currentRange$.subscribe(() => {
|
|
6128
6128
|
t(n.getCurrentRangeForString());
|
|
@@ -6204,12 +6204,12 @@ function _b(r) {
|
|
|
6204
6204
|
const { className: e, disableDefinedName: t } = r, [n, i] = ne(ut.formulaGrey), [o, s] = ne(
|
|
6205
6205
|
0
|
|
6206
6206
|
/* Down */
|
|
6207
|
-
), l = L(Jl), a = L(it), c = L(St), d = L(et), u = L(N), h = L($), g = L(ot), m = L(
|
|
6207
|
+
), 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
6208
|
editDisable: !1,
|
|
6209
6209
|
viewDisable: !1
|
|
6210
|
-
}), [v, C] = ne(!1), b = ur(), R = L(Xn), I = mt(() => u.getCurrentTypeOfUnit$(x.UNIVER_SHEET), void 0, void 0, []), y =
|
|
6210
|
+
}), [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
6211
|
mt(Dt(() => A.subscribeContextValue$(At), [A]));
|
|
6212
|
-
const H = A.getContextValue(At), O =
|
|
6212
|
+
const H = A.getContextValue(At), O = kn(null), k = L(Hr);
|
|
6213
6213
|
XS(() => {
|
|
6214
6214
|
const ue = I.activeSheet$.pipe(
|
|
6215
6215
|
ct((ve) => ve ? wt(
|
|
@@ -6233,19 +6233,19 @@ function _b(r) {
|
|
|
6233
6233
|
).subscribe((ve) => {
|
|
6234
6234
|
var tt, bt, gt, Kt, Gn, Li;
|
|
6235
6235
|
if (ve) {
|
|
6236
|
-
const { unitId:
|
|
6237
|
-
if (c.getRule(
|
|
6238
|
-
const bp = !((bt = (tt = g.getPermissionPoint(new te(
|
|
6236
|
+
const { unitId: ts, subUnitId: ns, primary: Sp } = ve;
|
|
6237
|
+
if (c.getRule(ts, ns)) {
|
|
6238
|
+
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
6239
|
S({
|
|
6240
6240
|
viewDisable: _p,
|
|
6241
6241
|
editDisable: bp
|
|
6242
6242
|
});
|
|
6243
6243
|
return;
|
|
6244
6244
|
}
|
|
6245
|
-
const { actualRow: vp, actualColumn: Cp } = Sp, Ur = m.getCellInfo(
|
|
6245
|
+
const { actualRow: vp, actualColumn: Cp } = Sp, Ur = m.getCellInfo(ts, ns, vp, Cp);
|
|
6246
6246
|
S({
|
|
6247
|
-
editDisable: !((Gn = Ur == null ? void 0 : Ur[
|
|
6248
|
-
viewDisable: !((Li = Ur == null ? void 0 : Ur[
|
|
6247
|
+
editDisable: !((Gn = Ur == null ? void 0 : Ur[co.Edit]) == null || Gn),
|
|
6248
|
+
viewDisable: !((Li = Ur == null ? void 0 : Ur[co.View]) == null || Li)
|
|
6249
6249
|
});
|
|
6250
6250
|
} else
|
|
6251
6251
|
S({
|
|
@@ -6310,7 +6310,7 @@ function _b(r) {
|
|
|
6310
6310
|
function j() {
|
|
6311
6311
|
l.handleFxBtnClick(!0);
|
|
6312
6312
|
}
|
|
6313
|
-
const { viewDisable: Y, editDisable: ie } = p, fe = ie || v, oe =
|
|
6313
|
+
const { viewDisable: Y, editDisable: ie } = p, fe = ie || v, oe = kn(!1), _e = () => {
|
|
6314
6314
|
var ue;
|
|
6315
6315
|
try {
|
|
6316
6316
|
a.isVisible().visible === !1 && f.syncExecuteCommand(
|
|
@@ -6404,7 +6404,7 @@ function _b(r) {
|
|
|
6404
6404
|
}
|
|
6405
6405
|
);
|
|
6406
6406
|
}
|
|
6407
|
-
const Br =
|
|
6407
|
+
const Br = Cn("univer.sheetbar-service");
|
|
6408
6408
|
class Pm extends ae {
|
|
6409
6409
|
constructor() {
|
|
6410
6410
|
super();
|
|
@@ -6448,7 +6448,7 @@ class Pm extends ae {
|
|
|
6448
6448
|
});
|
|
6449
6449
|
}
|
|
6450
6450
|
}
|
|
6451
|
-
const wb = "univer-sheet-bar", Rb = "univer-sheet-bar-options", Ib = "univer-sheet-bar-options-divider",
|
|
6451
|
+
const wb = "univer-sheet-bar", Rb = "univer-sheet-bar-options", Ib = "univer-sheet-bar-options-divider", as = {
|
|
6452
6452
|
sheetBar: wb,
|
|
6453
6453
|
sheetBarOptions: Rb,
|
|
6454
6454
|
sheetBarOptionsDivider: Ib
|
|
@@ -6487,7 +6487,7 @@ function Eb() {
|
|
|
6487
6487
|
unitId: a.getUnitId(),
|
|
6488
6488
|
subUnitId: p
|
|
6489
6489
|
}), n(!1));
|
|
6490
|
-
}, d =
|
|
6490
|
+
}, d = Ln(() => {
|
|
6491
6491
|
if (!a) return;
|
|
6492
6492
|
const f = a.getSheets(), p = a.getActiveSheet(), S = f.map((v, C) => ({
|
|
6493
6493
|
label: v.getName(),
|
|
@@ -6497,10 +6497,10 @@ function Eb() {
|
|
|
6497
6497
|
selected: p === v
|
|
6498
6498
|
}));
|
|
6499
6499
|
e(S);
|
|
6500
|
-
}, [a, l]), u =
|
|
6500
|
+
}, [a, l]), u = Ln(() => o.onCommandExecuted((f) => {
|
|
6501
6501
|
switch (f.id) {
|
|
6502
6502
|
case lr.id:
|
|
6503
|
-
case
|
|
6503
|
+
case Wn.id:
|
|
6504
6504
|
case wd.id:
|
|
6505
6505
|
case Vr.id:
|
|
6506
6506
|
case _d.id:
|
|
@@ -6568,7 +6568,7 @@ function Vb(r) {
|
|
|
6568
6568
|
}, [i]);
|
|
6569
6569
|
const a = (c) => {
|
|
6570
6570
|
const d = l.getCurrentTheme(), u = d.textColor, h = d.colorWhite;
|
|
6571
|
-
return new
|
|
6571
|
+
return new Nn(c).isDark() ? h : u;
|
|
6572
6572
|
};
|
|
6573
6573
|
return /* @__PURE__ */ w(
|
|
6574
6574
|
"div",
|
|
@@ -7154,7 +7154,7 @@ _(ni, "DoubleClickDelay", 300);
|
|
|
7154
7154
|
let si = ni;
|
|
7155
7155
|
function Bb() {
|
|
7156
7156
|
var Ie;
|
|
7157
|
-
const [r, e] = ne([]), [t, n] = ne(""), [i, o] = ne(""), [s, l] = ne(!1), [a, c] = ne([0, 0]), d =
|
|
7157
|
+
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
7158
|
var Se;
|
|
7159
7159
|
const G = ((Se = R.getActiveSheet()) == null ? void 0 : Se.getSheetId()) || "";
|
|
7160
7160
|
n(G);
|
|
@@ -7314,7 +7314,7 @@ function Bb() {
|
|
|
7314
7314
|
switch (G.id) {
|
|
7315
7315
|
case $S.id:
|
|
7316
7316
|
case lr.id:
|
|
7317
|
-
case
|
|
7317
|
+
case Wn.id:
|
|
7318
7318
|
case wd.id:
|
|
7319
7319
|
case Vr.id:
|
|
7320
7320
|
case _d.id:
|
|
@@ -7415,8 +7415,8 @@ const Fb = 100, Ub = () => {
|
|
|
7415
7415
|
}, m = () => {
|
|
7416
7416
|
o.setScrollX(Fb);
|
|
7417
7417
|
};
|
|
7418
|
-
return /* @__PURE__ */ q("div", { className: qe(
|
|
7419
|
-
/* @__PURE__ */ q("div", { className:
|
|
7418
|
+
return /* @__PURE__ */ q("div", { className: qe(as.sheetBar, "univer-relative univer-flex univer-h-full univer-flex-1"), children: [
|
|
7419
|
+
/* @__PURE__ */ q("div", { className: as.sheetBarOptions, children: [
|
|
7420
7420
|
/* @__PURE__ */ w(Rs, { onClick: h, disabled: !(d != null && d.value && (c != null && c.value)), children: /* @__PURE__ */ w(jd, {}) }),
|
|
7421
7421
|
/* @__PURE__ */ w(Eb, {})
|
|
7422
7422
|
] }),
|
|
@@ -7425,8 +7425,8 @@ const Fb = 100, Ub = () => {
|
|
|
7425
7425
|
"div",
|
|
7426
7426
|
{
|
|
7427
7427
|
className: `
|
|
7428
|
-
${
|
|
7429
|
-
${
|
|
7428
|
+
${as.sheetBarOptions}
|
|
7429
|
+
${as.sheetBarOptionsDivider}
|
|
7430
7430
|
`,
|
|
7431
7431
|
children: [
|
|
7432
7432
|
/* @__PURE__ */ w(Rs, { disabled: r, onClick: g, children: /* @__PURE__ */ w(Nc, { style: { transform: "rotateZ(180deg)" } }) }),
|
|
@@ -7509,7 +7509,7 @@ class Tm {
|
|
|
7509
7509
|
this._functions.push(...e);
|
|
7510
7510
|
}
|
|
7511
7511
|
}
|
|
7512
|
-
const $l =
|
|
7512
|
+
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
7513
|
statusBar: Xb,
|
|
7514
7514
|
singleMode: zb,
|
|
7515
7515
|
statusBarDiv: jb,
|
|
@@ -7535,24 +7535,24 @@ const $l = vn("univer.sheet-status-bar.service"), Xb = "univer-status-bar", zb =
|
|
|
7535
7535
|
content: e.t("statusbar.copied")
|
|
7536
7536
|
});
|
|
7537
7537
|
};
|
|
7538
|
-
return /* @__PURE__ */ w(er, { title: e.t("statusbar.clickToCopy"), placement: "top", children: /* @__PURE__ */ w("div", { className:
|
|
7538
|
+
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
7539
|
(ya == null ? void 0 : ya[r.name]) || r.name
|
|
7540
7540
|
)}: ${i}` }) }, r.name) });
|
|
7541
7541
|
};
|
|
7542
7542
|
function Qb(r) {
|
|
7543
7543
|
const { pattern: e, value: t } = r;
|
|
7544
|
-
return typeof t != "number" ? 0 : t >= 1e8 ? t.toExponential(2) : e && Gb.includes(r.name) ?
|
|
7544
|
+
return typeof t != "number" ? 0 : t >= 1e8 ? t.toExponential(2) : e && Gb.includes(r.name) ? Dn.format(e, t, { throws: !1 }) : t.toLocaleString();
|
|
7545
7545
|
}
|
|
7546
7546
|
const Zu = 800, Kb = 3, Jb = () => {
|
|
7547
7547
|
var h, g;
|
|
7548
|
-
const e = (g = (h = L(
|
|
7548
|
+
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
7549
|
name: m.func,
|
|
7550
7550
|
value: 0,
|
|
7551
7551
|
show: !0,
|
|
7552
7552
|
disable: !1,
|
|
7553
7553
|
pattern: null
|
|
7554
7554
|
})), 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 =
|
|
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 = Ln((P) => {
|
|
7556
7556
|
const T = P == null ? void 0 : P.values;
|
|
7557
7557
|
if (!(T != null && T.length)) {
|
|
7558
7558
|
R(!1);
|
|
@@ -7597,7 +7597,7 @@ const Zu = 800, Kb = 3, Jb = () => {
|
|
|
7597
7597
|
return /* @__PURE__ */ w(Mr, { children: v.map((C, b) => /* @__PURE__ */ q(
|
|
7598
7598
|
"div",
|
|
7599
7599
|
{
|
|
7600
|
-
className:
|
|
7600
|
+
className: Qi.statisticListColumn,
|
|
7601
7601
|
children: [
|
|
7602
7602
|
C[0] && /* @__PURE__ */ w(
|
|
7603
7603
|
p,
|
|
@@ -7629,12 +7629,12 @@ const Zu = 800, Kb = 3, Jb = () => {
|
|
|
7629
7629
|
return a && /* @__PURE__ */ q(
|
|
7630
7630
|
"div",
|
|
7631
7631
|
{
|
|
7632
|
-
className: qe(
|
|
7633
|
-
[
|
|
7632
|
+
className: qe(Qi.statusBar, {
|
|
7633
|
+
[Qi.singleMode]: t
|
|
7634
7634
|
}),
|
|
7635
7635
|
children: [
|
|
7636
7636
|
/* @__PURE__ */ w("div", { className: "univer-flex", children: u }),
|
|
7637
|
-
/* @__PURE__ */ w("div", { className:
|
|
7637
|
+
/* @__PURE__ */ w("div", { className: Qi.statusBarDiv })
|
|
7638
7638
|
]
|
|
7639
7639
|
}
|
|
7640
7640
|
);
|
|
@@ -7904,7 +7904,7 @@ function Hm(r) {
|
|
|
7904
7904
|
function kE(r) {
|
|
7905
7905
|
return r.getContextValue(Ht) && r.getContextValue($e) && r.getContextValue(Ts) && r.getContextValue(kr);
|
|
7906
7906
|
}
|
|
7907
|
-
function
|
|
7907
|
+
function Co(r) {
|
|
7908
7908
|
return r.getContextValue(Ht) && r.getContextValue(kr) && r.getContextValue($e) && !r.getContextValue(Ts) && !r.getContextValue(El);
|
|
7909
7909
|
}
|
|
7910
7910
|
const km = [
|
|
@@ -7919,7 +7919,7 @@ function Vm() {
|
|
|
7919
7919
|
r.push({
|
|
7920
7920
|
id: pi.id,
|
|
7921
7921
|
binding: e,
|
|
7922
|
-
preconditions: (t) =>
|
|
7922
|
+
preconditions: (t) => Co(t),
|
|
7923
7923
|
staticParameters: {
|
|
7924
7924
|
visible: !1,
|
|
7925
7925
|
eventType: Ye.Keyboard,
|
|
@@ -7929,7 +7929,7 @@ function Vm() {
|
|
|
7929
7929
|
}), r.push({
|
|
7930
7930
|
id: pi.id,
|
|
7931
7931
|
binding: e | Te.SHIFT,
|
|
7932
|
-
preconditions: (t) =>
|
|
7932
|
+
preconditions: (t) => Co(t),
|
|
7933
7933
|
staticParameters: {
|
|
7934
7934
|
visible: !1,
|
|
7935
7935
|
eventType: Ye.Keyboard,
|
|
@@ -7955,7 +7955,7 @@ const Nm = {
|
|
|
7955
7955
|
binding: Z.ENTER,
|
|
7956
7956
|
description: "shortcut.sheet.toggle-editing",
|
|
7957
7957
|
group: "4_sheet-edit",
|
|
7958
|
-
preconditions: (r) =>
|
|
7958
|
+
preconditions: (r) => Co(r),
|
|
7959
7959
|
staticParameters: {
|
|
7960
7960
|
visible: !1,
|
|
7961
7961
|
eventType: Ye.Keyboard,
|
|
@@ -7964,7 +7964,7 @@ const Nm = {
|
|
|
7964
7964
|
}, Lm = {
|
|
7965
7965
|
id: at.id,
|
|
7966
7966
|
binding: Z.TAB,
|
|
7967
|
-
preconditions: (r) =>
|
|
7967
|
+
preconditions: (r) => Co(r),
|
|
7968
7968
|
staticParameters: {
|
|
7969
7969
|
visible: !1,
|
|
7970
7970
|
eventType: Ye.Keyboard,
|
|
@@ -7975,7 +7975,7 @@ const Nm = {
|
|
|
7975
7975
|
binding: Z.ESC,
|
|
7976
7976
|
description: "shortcut.sheet.abort-editing",
|
|
7977
7977
|
group: "4_sheet-edit",
|
|
7978
|
-
preconditions: (r) =>
|
|
7978
|
+
preconditions: (r) => Co(r),
|
|
7979
7979
|
staticParameters: {
|
|
7980
7980
|
visible: !1,
|
|
7981
7981
|
eventType: Ye.Keyboard,
|
|
@@ -8116,7 +8116,7 @@ function u_(r, e, t, n) {
|
|
|
8116
8116
|
if (i.startsWith("="))
|
|
8117
8117
|
return g_(r, i, e, n);
|
|
8118
8118
|
const o = i.toLowerCase();
|
|
8119
|
-
return Lc[o] ? Lc[o] :
|
|
8119
|
+
return Lc[o] ? Lc[o] : Dn.parseValue(i) == null ? r : i;
|
|
8120
8120
|
}
|
|
8121
8121
|
function h_(r) {
|
|
8122
8122
|
const e = /['"].*?['"]/g, t = [], n = r.split(e);
|
|
@@ -8149,11 +8149,11 @@ function g_(r, e, t, n) {
|
|
|
8149
8149
|
const d = l.startIndex + s + 2, u = l.endIndex + s + 1;
|
|
8150
8150
|
o = Yr(r.slice(d, u), o, d, u);
|
|
8151
8151
|
} else if (l.nodeType !== _a.ARRAY) {
|
|
8152
|
-
const d =
|
|
8152
|
+
const d = Dn.parseValue(c);
|
|
8153
8153
|
if (d == null) {
|
|
8154
8154
|
const u = l.startIndex + s + 1, h = l.endIndex + s + 2;
|
|
8155
8155
|
o = Yr(r.slice(u, h), o, u, h);
|
|
8156
|
-
} else if (typeof d.v == "number" && (d.z === void 0 || !
|
|
8156
|
+
} else if (typeof d.v == "number" && (d.z === void 0 || !Dn.isDate(d.z))) {
|
|
8157
8157
|
const u = `${d.v}`, h = l.startIndex + s + 1, g = l.endIndex + s + 2, { processedString: m, offset: f } = S_(c, u);
|
|
8158
8158
|
o = Yr(m, o, h, g), s += f;
|
|
8159
8159
|
}
|
|
@@ -8257,10 +8257,10 @@ let Wc = class extends ae {
|
|
|
8257
8257
|
switch (n.id) {
|
|
8258
8258
|
case Wl.id:
|
|
8259
8259
|
case Bl.id:
|
|
8260
|
+
case Lo.id:
|
|
8260
8261
|
case Do.id:
|
|
8261
|
-
case
|
|
8262
|
-
case Wo.id:
|
|
8263
|
-
case Lo.id: {
|
|
8262
|
+
case Bo.id:
|
|
8263
|
+
case Wo.id: {
|
|
8264
8264
|
const i = this._editorBridgeService.getEditLocation();
|
|
8265
8265
|
if (!i) break;
|
|
8266
8266
|
const o = {
|
|
@@ -8443,7 +8443,7 @@ let Wc = class extends ae {
|
|
|
8443
8443
|
}), o === Z.ESC) {
|
|
8444
8444
|
this._editorBridgeService.isForceKeepVisible() && this._editorBridgeService.disableForceKeepVisible();
|
|
8445
8445
|
const p = this._workbookSelections.getCurrentSelections();
|
|
8446
|
-
p && (this._contextService.setContextValue(
|
|
8446
|
+
p && (this._contextService.setContextValue(lo, !1), this._commandService.syncExecuteCommand(Ee.id, {
|
|
8447
8447
|
unitId: this._context.unit.getUnitId(),
|
|
8448
8448
|
subUnitId: h,
|
|
8449
8449
|
selections: p
|
|
@@ -8480,10 +8480,13 @@ let Wc = class extends ae {
|
|
|
8480
8480
|
this._functionService,
|
|
8481
8481
|
l.getStyles()
|
|
8482
8482
|
);
|
|
8483
|
-
if (!d
|
|
8483
|
+
if (!d)
|
|
8484
|
+
return !0;
|
|
8485
|
+
const u = this._sheetInterceptorService.onWriteCell(l, a, o, s, d);
|
|
8486
|
+
if (u === a.getCellRaw(o, s))
|
|
8484
8487
|
return !0;
|
|
8485
8488
|
const h = ad(6);
|
|
8486
|
-
return this._commandService.syncExecuteCommand(
|
|
8489
|
+
return this._commandService.syncExecuteCommand(No.id, {
|
|
8487
8490
|
subUnitId: i,
|
|
8488
8491
|
unitId: n,
|
|
8489
8492
|
range: {
|
|
@@ -8492,7 +8495,7 @@ let Wc = class extends ae {
|
|
|
8492
8495
|
endRow: o,
|
|
8493
8496
|
endColumn: s
|
|
8494
8497
|
},
|
|
8495
|
-
value:
|
|
8498
|
+
value: u,
|
|
8496
8499
|
redoUndoId: h
|
|
8497
8500
|
}) && await this._sheetInterceptorService.onValidateCell(l, a, o, s) === !1 ? (this._undoRedoService.rollback(h, n), !1) : !0;
|
|
8498
8501
|
}
|
|
@@ -8677,7 +8680,7 @@ var I_ = Object.getOwnPropertyDescriptor, y_ = (r, e, t, n) => {
|
|
|
8677
8680
|
(s = r[o]) && (i = s(i) || i);
|
|
8678
8681
|
return i;
|
|
8679
8682
|
}, Ma = (r, e) => (t, n) => e(t, n, r);
|
|
8680
|
-
const Ju = om.MARK_SELECTION, Ti =
|
|
8683
|
+
const Ju = om.MARK_SELECTION, Ti = Cn("univer.mark-selection-service");
|
|
8681
8684
|
let Gs = class extends ae {
|
|
8682
8685
|
constructor(e, t, n) {
|
|
8683
8686
|
super();
|
|
@@ -8863,7 +8866,7 @@ function $u(r, e, t) {
|
|
|
8863
8866
|
}
|
|
8864
8867
|
case "color": {
|
|
8865
8868
|
try {
|
|
8866
|
-
const n = new
|
|
8869
|
+
const n = new Nn(e);
|
|
8867
8870
|
n.isValid && (t.cl = {
|
|
8868
8871
|
rgb: n.toRgbString()
|
|
8869
8872
|
});
|
|
@@ -8872,7 +8875,7 @@ function $u(r, e, t) {
|
|
|
8872
8875
|
break;
|
|
8873
8876
|
}
|
|
8874
8877
|
case "background-color": {
|
|
8875
|
-
const n = new
|
|
8878
|
+
const n = new Nn(e), i = n.isValid ? n.toRgbString() : "";
|
|
8876
8879
|
i !== RS && i !== IS && (t.bg = { rgb: i });
|
|
8877
8880
|
break;
|
|
8878
8881
|
}
|
|
@@ -9666,7 +9669,7 @@ const nt = {
|
|
|
9666
9669
|
Ci.use(W_);
|
|
9667
9670
|
Ci.use(D_);
|
|
9668
9671
|
Ci.use(L_);
|
|
9669
|
-
const on =
|
|
9672
|
+
const on = Cn("sheet.clipboard-service");
|
|
9670
9673
|
let Qs = class extends ae {
|
|
9671
9674
|
constructor(e, t, n, i, o, s, l, a, c, d, u, h, g, m) {
|
|
9672
9675
|
super();
|
|
@@ -9849,7 +9852,7 @@ let Qs = class extends ae {
|
|
|
9849
9852
|
const t = this._getPastingTarget();
|
|
9850
9853
|
if (!t.subUnitId || !t.selection)
|
|
9851
9854
|
return !1;
|
|
9852
|
-
const n = this._injector.invoke((h) =>
|
|
9855
|
+
const n = this._injector.invoke((h) => eo(t.selection.range, h, t.unitId, t.subUnitId));
|
|
9853
9856
|
if (!n)
|
|
9854
9857
|
return !1;
|
|
9855
9858
|
const { unitId: i, subUnitId: o } = t, s = this._clipboardHooks, l = [];
|
|
@@ -10157,7 +10160,7 @@ let Qs = class extends ae {
|
|
|
10157
10160
|
const i = this._getPastingTarget(), { selection: o, unitId: s, subUnitId: l } = i;
|
|
10158
10161
|
if (!l || !o)
|
|
10159
10162
|
return null;
|
|
10160
|
-
const a = this._injector.invoke((P) =>
|
|
10163
|
+
const a = this._injector.invoke((P) => eo(o.range, P, s, l));
|
|
10161
10164
|
if (!a)
|
|
10162
10165
|
return null;
|
|
10163
10166
|
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 +10225,7 @@ let Qs = class extends ae {
|
|
|
10222
10225
|
const t = this._getPastingTarget(), { selection: n, unitId: i, subUnitId: o } = t;
|
|
10223
10226
|
if (!o || !n)
|
|
10224
10227
|
return null;
|
|
10225
|
-
const s = this._injector.invoke((C) =>
|
|
10228
|
+
const s = this._injector.invoke((C) => eo(n.range, C, i, o));
|
|
10226
10229
|
if (!s)
|
|
10227
10230
|
return null;
|
|
10228
10231
|
const { startColumn: l, endColumn: a, startRow: c, endRow: d } = e.getDataRange(), u = d - c + 1, h = a - l + 1;
|
|
@@ -10405,11 +10408,11 @@ const Jd = 998, mn = {
|
|
|
10405
10408
|
const t = r.get(on), { htmlContent: n, textContent: i, files: o } = e;
|
|
10406
10409
|
return t.legacyPaste(n, i, o), !0;
|
|
10407
10410
|
}
|
|
10408
|
-
},
|
|
10411
|
+
}, ro = {
|
|
10409
10412
|
id: "sheet.command.paste-value",
|
|
10410
10413
|
type: Q.COMMAND,
|
|
10411
10414
|
handler: async (r) => r.get(D).executeCommand(fn.id, { value: nt.SPECIAL_PASTE_VALUE })
|
|
10412
|
-
},
|
|
10415
|
+
}, io = {
|
|
10413
10416
|
id: "sheet.command.paste-format",
|
|
10414
10417
|
type: Q.COMMAND,
|
|
10415
10418
|
handler: async (r) => r.get(D).executeCommand(fn.id, {
|
|
@@ -10421,7 +10424,7 @@ const Jd = 998, mn = {
|
|
|
10421
10424
|
handler: async (r) => r.get(D).executeCommand(fn.id, {
|
|
10422
10425
|
value: nt.SPECIAL_PASTE_COL_WIDTH
|
|
10423
10426
|
})
|
|
10424
|
-
},
|
|
10427
|
+
}, oo = {
|
|
10425
10428
|
id: "sheet.command.paste-besides-border",
|
|
10426
10429
|
type: Q.COMMAND,
|
|
10427
10430
|
handler: async (r) => r.get(D).executeCommand(fn.id, {
|
|
@@ -10536,7 +10539,7 @@ const Jd = 998, mn = {
|
|
|
10536
10539
|
const t = r.get(D);
|
|
10537
10540
|
return r.get(Ve).getContextValue($e) ? t.executeCommand(Dp.id, e) : t.executeCommand(Td.id, e);
|
|
10538
10541
|
}
|
|
10539
|
-
},
|
|
10542
|
+
}, bo = {
|
|
10540
10543
|
type: Q.COMMAND,
|
|
10541
10544
|
id: "sheet.command.set-range-text-color",
|
|
10542
10545
|
handler: async (r, e) => {
|
|
@@ -10556,7 +10559,7 @@ var nw = Object.getOwnPropertyDescriptor, rw = (r, e, t, n) => {
|
|
|
10556
10559
|
(s = r[o]) && (i = s(i) || i);
|
|
10557
10560
|
return i;
|
|
10558
10561
|
}, 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 =
|
|
10562
|
+
const Zn = Cn("univer.format-painter-service");
|
|
10560
10563
|
let Ks = class extends ae {
|
|
10561
10564
|
constructor(e, t, n, i, o, s) {
|
|
10562
10565
|
super();
|
|
@@ -10658,7 +10661,7 @@ const ia = {
|
|
|
10658
10661
|
let n;
|
|
10659
10662
|
return t !== Zt.OFF ? n = Zt.OFF : n = Zt.INFINITE, r.get(D).executeCommand(ia.id, { status: n });
|
|
10660
10663
|
}
|
|
10661
|
-
},
|
|
10664
|
+
}, qo = {
|
|
10662
10665
|
type: Q.COMMAND,
|
|
10663
10666
|
id: "sheet.command.set-once-format-painter",
|
|
10664
10667
|
handler: async (r) => {
|
|
@@ -10740,7 +10743,7 @@ const sw = (r, e) => {
|
|
|
10740
10743
|
colWidth: o
|
|
10741
10744
|
};
|
|
10742
10745
|
};
|
|
10743
|
-
let
|
|
10746
|
+
let _o = class extends ae {
|
|
10744
10747
|
constructor(r, e) {
|
|
10745
10748
|
super(), this._renderManagerService = r, this._univerInstanceService = e;
|
|
10746
10749
|
}
|
|
@@ -10774,10 +10777,10 @@ let bo = class extends ae {
|
|
|
10774
10777
|
};
|
|
10775
10778
|
}
|
|
10776
10779
|
};
|
|
10777
|
-
|
|
10780
|
+
_o = ow([
|
|
10778
10781
|
ah(0, be),
|
|
10779
10782
|
ah(1, V(N))
|
|
10780
|
-
],
|
|
10783
|
+
], _o);
|
|
10781
10784
|
const aa = {
|
|
10782
10785
|
type: Q.COMMAND,
|
|
10783
10786
|
id: "sheet.command.set-col-auto-width",
|
|
@@ -10799,14 +10802,14 @@ const aa = {
|
|
|
10799
10802
|
unitId: l,
|
|
10800
10803
|
subUnitId: a,
|
|
10801
10804
|
ranges: c
|
|
10802
|
-
}, { redos: u, undos: h } = r.get(
|
|
10805
|
+
}, { redos: u, undos: h } = r.get(_o).getUndoRedoParamsOfColWidth(d);
|
|
10803
10806
|
return Ml([...u], t).result ? (n.pushUndoRedo({
|
|
10804
10807
|
unitID: l,
|
|
10805
10808
|
undoMutations: [...h],
|
|
10806
10809
|
redoMutations: [...u]
|
|
10807
10810
|
}), !0) : !1;
|
|
10808
10811
|
}
|
|
10809
|
-
}, ki = "UI_PLUGIN_SHEETS",
|
|
10812
|
+
}, 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
10813
|
sheetsUiContextMenuInput: lw,
|
|
10811
10814
|
sheetsUiContextMenuInputContainer: aw,
|
|
10812
10815
|
sheetsUiContextMenuInputNumber: cw
|
|
@@ -10841,16 +10844,16 @@ const aa = {
|
|
|
10841
10844
|
] });
|
|
10842
10845
|
};
|
|
10843
10846
|
function dw(r) {
|
|
10844
|
-
return r.getCurrentTypeOfUnit$(x.UNIVER_SHEET).pipe(
|
|
10847
|
+
return r.getCurrentTypeOfUnit$(x.UNIVER_SHEET).pipe(Vn((e) => e ? e.activeSheet$.pipe(Sn((t) => t ? { workbook: e, worksheet: t } : null)) : Re(null)));
|
|
10845
10848
|
}
|
|
10846
10849
|
function Ct(r, e, t) {
|
|
10847
|
-
return dw(r).pipe(
|
|
10850
|
+
return dw(r).pipe(Vn((n) => n ? t(n) : Re(e)));
|
|
10848
10851
|
}
|
|
10849
10852
|
function uw(r, e) {
|
|
10850
10853
|
const t = r.get(N), n = r.get(nv), i = r.get($);
|
|
10851
10854
|
return t.getCurrentTypeOfUnit$(x.UNIVER_SHEET).pipe(
|
|
10852
|
-
|
|
10853
|
-
|
|
10855
|
+
Vn((s) => s ? dt([i.selectionMoveEnd$, s.activeSheet$]).pipe(
|
|
10856
|
+
Vn(([l, a]) => {
|
|
10854
10857
|
if (!a)
|
|
10855
10858
|
return Re(!1);
|
|
10856
10859
|
if (l.length === 0)
|
|
@@ -10879,13 +10882,13 @@ function me(r, e = {}, t = !1) {
|
|
|
10879
10882
|
tC(() => {
|
|
10880
10883
|
d.unsubscribe(), a.complete();
|
|
10881
10884
|
}),
|
|
10882
|
-
|
|
10883
|
-
|
|
10885
|
+
Vn(([g, m, f, p]) => !m || f != null && f.visible && f.unitId === m.getUnitId() && !t || p && !t ? Re(!0) : m.activeSheet$.pipe(
|
|
10886
|
+
Vn((S) => {
|
|
10884
10887
|
if (!S)
|
|
10885
10888
|
return Re(!0);
|
|
10886
10889
|
const v = r.get($), C = r.get(et), b = r.get(St), I = r.get(Ve).subscribeContextValue$(Pl).pipe(nC(!1));
|
|
10887
10890
|
return dt([v.selectionMoveEnd$, I]).pipe(
|
|
10888
|
-
|
|
10891
|
+
Vn(([y, M]) => {
|
|
10889
10892
|
if (M)
|
|
10890
10893
|
return Re(!0);
|
|
10891
10894
|
const E = m.getUnitId(), P = S.getSheetId(), T = r.get(ot), { workbookTypes: A = [J], worksheetTypes: H, rangeTypes: O } = e, k = [];
|
|
@@ -10978,8 +10981,8 @@ function ca(r, e) {
|
|
|
10978
10981
|
function Di(r, e) {
|
|
10979
10982
|
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
10983
|
return dt([l.currentUser$, n]).pipe(
|
|
10981
|
-
|
|
10982
|
-
|
|
10984
|
+
Vn(([a, c]) => c ? c.activeSheet$.pipe(
|
|
10985
|
+
Vn((d) => {
|
|
10983
10986
|
if (!d)
|
|
10984
10987
|
return Re(!0);
|
|
10985
10988
|
const u = c.getUnitId(), h = [];
|
|
@@ -10999,7 +11002,7 @@ var hw = /* @__PURE__ */ ((r) => (r.ROW_HEADER_CONTEXT_MENU = "ROW_HEADER_CONTEX
|
|
|
10999
11002
|
function gw(r) {
|
|
11000
11003
|
const e = r.get(Zn);
|
|
11001
11004
|
return {
|
|
11002
|
-
id:
|
|
11005
|
+
id: qo.id,
|
|
11003
11006
|
subId: $d.id,
|
|
11004
11007
|
type: K.BUTTON,
|
|
11005
11008
|
icon: "BrushSingle",
|
|
@@ -11034,15 +11037,15 @@ function mw(r) {
|
|
|
11034
11037
|
const h = u.id;
|
|
11035
11038
|
if (h === we.id || h === Ee.id || h === rt.id) {
|
|
11036
11039
|
const f = (g = i.getCurrentLastSelection()) == null ? void 0 : g.primary;
|
|
11037
|
-
let p =
|
|
11040
|
+
let p = rs.NORMAL;
|
|
11038
11041
|
if (f != null) {
|
|
11039
11042
|
const S = o.getRange(f.startRow, f.startColumn);
|
|
11040
11043
|
p = S == null ? void 0 : S.getFontWeight();
|
|
11041
11044
|
}
|
|
11042
|
-
s.next(p ===
|
|
11045
|
+
s.next(p === rs.BOLD);
|
|
11043
11046
|
}
|
|
11044
|
-
if ((h ===
|
|
11045
|
-
const f =
|
|
11047
|
+
if ((h === zo.id || h === Vo.id) && n.getContextValue($e) && n.getContextValue(Ht)) {
|
|
11048
|
+
const f = Jo(r);
|
|
11046
11049
|
if (f == null)
|
|
11047
11050
|
return;
|
|
11048
11051
|
const p = (m = f.ts) == null ? void 0 : m.bl;
|
|
@@ -11053,12 +11056,12 @@ function mw(r) {
|
|
|
11053
11056
|
s.next(!1);
|
|
11054
11057
|
return;
|
|
11055
11058
|
}
|
|
11056
|
-
let c =
|
|
11059
|
+
let c = rs.NORMAL;
|
|
11057
11060
|
if (a != null) {
|
|
11058
11061
|
const u = o.getRange(a.startRow, a.startColumn);
|
|
11059
11062
|
c = u == null ? void 0 : u.getFontWeight();
|
|
11060
11063
|
}
|
|
11061
|
-
return s.next(c ===
|
|
11064
|
+
return s.next(c === rs.BOLD), l.dispose;
|
|
11062
11065
|
})),
|
|
11063
11066
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
11064
11067
|
};
|
|
@@ -11087,26 +11090,26 @@ function fw(r) {
|
|
|
11087
11090
|
const h = u.id;
|
|
11088
11091
|
if (h === we.id || h === Ee.id || h === rt.id) {
|
|
11089
11092
|
const f = (g = n.getCurrentLastSelection()) == null ? void 0 : g.primary;
|
|
11090
|
-
let p =
|
|
11093
|
+
let p = is.NORMAL;
|
|
11091
11094
|
if (f != null) {
|
|
11092
11095
|
const S = o.getRange(f.startRow, f.startColumn);
|
|
11093
11096
|
p = S == null ? void 0 : S.getFontStyle();
|
|
11094
11097
|
}
|
|
11095
|
-
s.next(p ===
|
|
11098
|
+
s.next(p === is.ITALIC);
|
|
11096
11099
|
}
|
|
11097
|
-
if ((h ===
|
|
11098
|
-
const f =
|
|
11100
|
+
if ((h === zo.id || h === Vo.id) && i.getContextValue($e) && i.getContextValue(Ht)) {
|
|
11101
|
+
const f = Jo(r);
|
|
11099
11102
|
if (f == null) return;
|
|
11100
11103
|
const p = (m = f.ts) == null ? void 0 : m.it;
|
|
11101
11104
|
s.next(p === Ke.TRUE);
|
|
11102
11105
|
}
|
|
11103
11106
|
}), a = (d = n.getCurrentLastSelection()) == null ? void 0 : d.primary;
|
|
11104
|
-
let c =
|
|
11107
|
+
let c = is.NORMAL;
|
|
11105
11108
|
if (a != null) {
|
|
11106
11109
|
const u = o.getRange(a.startRow, a.startColumn);
|
|
11107
11110
|
c = u == null ? void 0 : u.getFontStyle();
|
|
11108
11111
|
}
|
|
11109
|
-
return s.next(c ===
|
|
11112
|
+
return s.next(c === is.ITALIC), l.dispose;
|
|
11110
11113
|
})),
|
|
11111
11114
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
11112
11115
|
};
|
|
@@ -11133,8 +11136,8 @@ function pw(r) {
|
|
|
11133
11136
|
}
|
|
11134
11137
|
s.next(!!(p && p.s));
|
|
11135
11138
|
}
|
|
11136
|
-
if ((h ===
|
|
11137
|
-
const f =
|
|
11139
|
+
if ((h === zo.id || h === Vo.id) && i.getContextValue($e) && i.getContextValue(Ht)) {
|
|
11140
|
+
const f = Jo(r);
|
|
11138
11141
|
if (f == null) return;
|
|
11139
11142
|
const p = (m = f.ts) == null ? void 0 : m.ul;
|
|
11140
11143
|
s.next((p == null ? void 0 : p.s) === Ke.TRUE);
|
|
@@ -11174,8 +11177,8 @@ function Sw(r) {
|
|
|
11174
11177
|
}
|
|
11175
11178
|
s.next(!!(p && p.s));
|
|
11176
11179
|
}
|
|
11177
|
-
if ((h ===
|
|
11178
|
-
const f =
|
|
11180
|
+
if ((h === zo.id || h === Vo.id) && i.getContextValue($e) && i.getContextValue(Ht)) {
|
|
11181
|
+
const f = Jo(r);
|
|
11179
11182
|
if (f == null)
|
|
11180
11183
|
return;
|
|
11181
11184
|
const p = (m = f.ts) == null ? void 0 : m.st;
|
|
@@ -11253,14 +11256,14 @@ function Cw(r) {
|
|
|
11253
11256
|
a.next(h);
|
|
11254
11257
|
}, d = () => {
|
|
11255
11258
|
var g, m;
|
|
11256
|
-
const h =
|
|
11259
|
+
const h = Jo(r);
|
|
11257
11260
|
if (h != null) {
|
|
11258
11261
|
const f = (m = (g = h.ts) == null ? void 0 : g.fs) != null ? m : o;
|
|
11259
11262
|
a.next(f);
|
|
11260
11263
|
}
|
|
11261
11264
|
}, u = e.onCommandExecuted((h) => {
|
|
11262
11265
|
const g = h.id;
|
|
11263
|
-
(g === we.id || g === Ee.id || g === rt.id) && c(), (g ===
|
|
11266
|
+
(g === we.id || g === Ee.id || g === rt.id) && c(), (g === zo.id || g === Vo.id) && i.getContextValue($e) && i.getContextValue(Ht) && d();
|
|
11264
11267
|
});
|
|
11265
11268
|
return c(), u.dispose;
|
|
11266
11269
|
})),
|
|
@@ -11280,14 +11283,14 @@ function bw(r) {
|
|
|
11280
11283
|
function _w(r) {
|
|
11281
11284
|
const e = r.get(D), t = r.get(Lt);
|
|
11282
11285
|
return {
|
|
11283
|
-
id:
|
|
11286
|
+
id: bo.id,
|
|
11284
11287
|
icon: "FontColor",
|
|
11285
11288
|
tooltip: "toolbar.textColor.main",
|
|
11286
11289
|
type: K.BUTTON_SELECTOR,
|
|
11287
11290
|
selections: [
|
|
11288
11291
|
{
|
|
11289
11292
|
label: {
|
|
11290
|
-
name:
|
|
11293
|
+
name: Qo,
|
|
11291
11294
|
hoverable: !1,
|
|
11292
11295
|
selectable: !1
|
|
11293
11296
|
}
|
|
@@ -11295,7 +11298,7 @@ function _w(r) {
|
|
|
11295
11298
|
],
|
|
11296
11299
|
value$: new ze((n) => {
|
|
11297
11300
|
const i = t.getCurrentTheme().textColor, o = e.onCommandExecuted((s) => {
|
|
11298
|
-
if (s.id ===
|
|
11301
|
+
if (s.id === bo.id) {
|
|
11299
11302
|
const l = s.params.value;
|
|
11300
11303
|
n.next(l != null ? l : i);
|
|
11301
11304
|
}
|
|
@@ -11325,7 +11328,7 @@ function Rw(r) {
|
|
|
11325
11328
|
selections: [
|
|
11326
11329
|
{
|
|
11327
11330
|
label: {
|
|
11328
|
-
name:
|
|
11331
|
+
name: Qo,
|
|
11329
11332
|
hoverable: !1,
|
|
11330
11333
|
selectable: !1
|
|
11331
11334
|
}
|
|
@@ -11563,7 +11566,7 @@ function Ew(r) {
|
|
|
11563
11566
|
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] })
|
|
11564
11567
|
};
|
|
11565
11568
|
}
|
|
11566
|
-
function
|
|
11569
|
+
function Ko(r) {
|
|
11567
11570
|
return new ze((t) => t.next(!r.get(xl).supportClipboard));
|
|
11568
11571
|
}
|
|
11569
11572
|
function ai(r) {
|
|
@@ -11573,7 +11576,7 @@ function ai(r) {
|
|
|
11573
11576
|
type: K.BUTTON,
|
|
11574
11577
|
title: "rightClick.copy",
|
|
11575
11578
|
icon: "Copy",
|
|
11576
|
-
disabled$: me(r, { workbookTypes: [
|
|
11579
|
+
disabled$: me(r, { workbookTypes: [qi], worksheetTypes: [Hs], rangeTypes: [bc] }),
|
|
11577
11580
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
11578
11581
|
};
|
|
11579
11582
|
}
|
|
@@ -11584,7 +11587,7 @@ function Oa(r) {
|
|
|
11584
11587
|
type: K.BUTTON,
|
|
11585
11588
|
title: "rightClick.paste",
|
|
11586
11589
|
icon: "PasteSpecial",
|
|
11587
|
-
disabled$:
|
|
11590
|
+
disabled$: Ko(r).pipe(
|
|
11588
11591
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [te, Ge, Jt], workbookTypes: [J] })),
|
|
11589
11592
|
Be(([e, t]) => e || t)
|
|
11590
11593
|
),
|
|
@@ -11603,10 +11606,10 @@ function xa(r) {
|
|
|
11603
11606
|
}
|
|
11604
11607
|
function Aa(r) {
|
|
11605
11608
|
return {
|
|
11606
|
-
id:
|
|
11609
|
+
id: ro.id,
|
|
11607
11610
|
type: K.BUTTON,
|
|
11608
11611
|
title: "rightClick.pasteValue",
|
|
11609
|
-
disabled$:
|
|
11612
|
+
disabled$: Ko(r).pipe(
|
|
11610
11613
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [Jt, te], workbookTypes: [J] })),
|
|
11611
11614
|
Be(([e, t]) => e || t)
|
|
11612
11615
|
),
|
|
@@ -11615,10 +11618,10 @@ function Aa(r) {
|
|
|
11615
11618
|
}
|
|
11616
11619
|
function Ha(r) {
|
|
11617
11620
|
return {
|
|
11618
|
-
id:
|
|
11621
|
+
id: io.id,
|
|
11619
11622
|
type: K.BUTTON,
|
|
11620
11623
|
title: "rightClick.pasteFormat",
|
|
11621
|
-
disabled$:
|
|
11624
|
+
disabled$: Ko(r).pipe(
|
|
11622
11625
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [Ge, te], workbookTypes: [J] })),
|
|
11623
11626
|
Be(([e, t]) => e || t)
|
|
11624
11627
|
),
|
|
@@ -11630,7 +11633,7 @@ function ka(r) {
|
|
|
11630
11633
|
id: li.id,
|
|
11631
11634
|
type: K.BUTTON,
|
|
11632
11635
|
title: "rightClick.pasteColWidth",
|
|
11633
|
-
disabled$:
|
|
11636
|
+
disabled$: Ko(r).pipe(
|
|
11634
11637
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [Dr, te], workbookTypes: [J] })),
|
|
11635
11638
|
Be(([e, t]) => e || t)
|
|
11636
11639
|
)
|
|
@@ -11638,10 +11641,10 @@ function ka(r) {
|
|
|
11638
11641
|
}
|
|
11639
11642
|
function Va(r) {
|
|
11640
11643
|
return {
|
|
11641
|
-
id:
|
|
11644
|
+
id: oo.id,
|
|
11642
11645
|
type: K.BUTTON,
|
|
11643
11646
|
title: "rightClick.pasteBesidesBorder",
|
|
11644
|
-
disabled$:
|
|
11647
|
+
disabled$: Ko(r).pipe(
|
|
11645
11648
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [te, Ge, Jt, Nr, Dr], workbookTypes: [J] })),
|
|
11646
11649
|
Be(([e, t]) => e || t)
|
|
11647
11650
|
),
|
|
@@ -11803,7 +11806,7 @@ function Dw(r) {
|
|
|
11803
11806
|
type: K.BUTTON,
|
|
11804
11807
|
icon: "AdjustHeight",
|
|
11805
11808
|
label: {
|
|
11806
|
-
name:
|
|
11809
|
+
name: wn,
|
|
11807
11810
|
props: {
|
|
11808
11811
|
prefix: "rightClick.rowHeight",
|
|
11809
11812
|
suffix: "px",
|
|
@@ -11834,7 +11837,7 @@ function Lw(r) {
|
|
|
11834
11837
|
type: K.BUTTON,
|
|
11835
11838
|
icon: "AdjustWidth",
|
|
11836
11839
|
label: {
|
|
11837
|
-
name:
|
|
11840
|
+
name: wn,
|
|
11838
11841
|
props: {
|
|
11839
11842
|
prefix: "rightClick.columnWidth",
|
|
11840
11843
|
suffix: "px",
|
|
@@ -11859,7 +11862,7 @@ function Lw(r) {
|
|
|
11859
11862
|
hidden$: me(r, { workbookTypes: [J], worksheetTypes: [te, Dr], rangeTypes: [re] })
|
|
11860
11863
|
};
|
|
11861
11864
|
}
|
|
11862
|
-
function
|
|
11865
|
+
function Jo(r) {
|
|
11863
11866
|
var a;
|
|
11864
11867
|
const e = r.get(N), t = r.get(xd), n = e.getUniverDocInstance(We), i = t.getActiveTextRange();
|
|
11865
11868
|
if (n == null || i == null) return null;
|
|
@@ -11874,7 +11877,7 @@ var Ww = Object.getOwnPropertyDescriptor, Bw = (r, e, t, n) => {
|
|
|
11874
11877
|
return i;
|
|
11875
11878
|
}, fr = (r, e) => (t, n) => e(t, n, r);
|
|
11876
11879
|
const Fw = "__SpreadsheetFreezeRowMainName__", Uw = "__SpreadsheetFreezeRowHeaderName__", Xw = "__SpreadsheetFreezeColumnMainName__", zw = "__SpreadsheetFreezeColumnHeaderName__", La = 2, jw = 0.01, Ui = cr("freezePermissionCheck");
|
|
11877
|
-
let
|
|
11880
|
+
let wo = class extends ae {
|
|
11878
11881
|
constructor(e, t, n, i, o, s, l, a) {
|
|
11879
11882
|
super();
|
|
11880
11883
|
_(this, "_rowFreezeHeaderRect");
|
|
@@ -12061,7 +12064,7 @@ let _o = class extends ae {
|
|
|
12061
12064
|
const h = this._getFreeze();
|
|
12062
12065
|
h && (this._changeToColumn = h.startColumn, this._changeToRow = h.startRow), this._scenePointerMoveSub = a.onPointerMove$.subscribeEvent((m) => {
|
|
12063
12066
|
var I, y, M, E;
|
|
12064
|
-
const f = this._getActiveViewport(m), { startX: p, startY: S, row: v, column: C } =
|
|
12067
|
+
const f = this._getActiveViewport(m), { startX: p, startY: S, row: v, column: C } = Bn(
|
|
12065
12068
|
m.offsetX,
|
|
12066
12069
|
m.offsetY,
|
|
12067
12070
|
a,
|
|
@@ -12436,7 +12439,7 @@ let _o = class extends ae {
|
|
|
12436
12439
|
);
|
|
12437
12440
|
}
|
|
12438
12441
|
_themeChange(e) {
|
|
12439
|
-
this._freezeNormalHeaderColor = e.grey400, this._freezeNormalMainColor = new
|
|
12442
|
+
this._freezeNormalHeaderColor = e.grey400, this._freezeNormalMainColor = new Nn(e.grey400).setAlpha(jw).toRgbString(), this._freezeActiveColor = e.primaryColor, this._freezeHoverColor = e.grey500;
|
|
12440
12443
|
}
|
|
12441
12444
|
// eslint-disable-next-line max-lines-per-function
|
|
12442
12445
|
_interceptorCommands() {
|
|
@@ -12607,7 +12610,7 @@ let _o = class extends ae {
|
|
|
12607
12610
|
(!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
12611
|
}
|
|
12609
12612
|
break;
|
|
12610
|
-
case
|
|
12613
|
+
case ao.id:
|
|
12611
12614
|
{
|
|
12612
12615
|
const t = this._getFreeze(), n = t && e.params.ranges.some((i) => i.startRow < t.startRow);
|
|
12613
12616
|
e.params && n && this._refreshCurrent();
|
|
@@ -12697,7 +12700,7 @@ let _o = class extends ae {
|
|
|
12697
12700
|
return e.freeze;
|
|
12698
12701
|
}
|
|
12699
12702
|
_getSheetObject() {
|
|
12700
|
-
return
|
|
12703
|
+
return _n(this._context.unit, this._context);
|
|
12701
12704
|
}
|
|
12702
12705
|
/**
|
|
12703
12706
|
* Core function of _refreshCurrent
|
|
@@ -12718,7 +12721,7 @@ let _o = class extends ae {
|
|
|
12718
12721
|
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
12722
|
}
|
|
12720
12723
|
};
|
|
12721
|
-
|
|
12724
|
+
wo = Bw([
|
|
12722
12725
|
fr(1, V(he)),
|
|
12723
12726
|
fr(2, D),
|
|
12724
12727
|
fr(3, V($)),
|
|
@@ -12726,7 +12729,7 @@ _o = Bw([
|
|
|
12726
12729
|
fr(5, V(Lt)),
|
|
12727
12730
|
fr(6, V(zn)),
|
|
12728
12731
|
fr(7, V(It))
|
|
12729
|
-
],
|
|
12732
|
+
], wo);
|
|
12730
12733
|
function Yw(r) {
|
|
12731
12734
|
const e = r.get($), t = r.get(et), n = r.get(N), i = r.get(lv), o = n.getCurrentTypeOfUnit$(x.UNIVER_SHEET);
|
|
12732
12735
|
return dt([
|
|
@@ -12776,7 +12779,7 @@ var Zw = Object.getOwnPropertyDescriptor, Gw = (r, e, t, n) => {
|
|
|
12776
12779
|
return i;
|
|
12777
12780
|
}, Wa = (r, e) => (t, n) => e(t, n, r);
|
|
12778
12781
|
const qw = "__SpreadsheetHeaderMoveControllerBackground__", Qw = "__SpreadsheetHeaderMoveControllerShapeLine__", Kw = "rgba(0, 0, 0, 0.1)", Jw = "rgb(119, 119, 119)", $w = 4, Ba = cr("headerMovePermissionCheck");
|
|
12779
|
-
let
|
|
12782
|
+
let Ro = class extends ae {
|
|
12780
12783
|
constructor(e, t, n, i) {
|
|
12781
12784
|
super();
|
|
12782
12785
|
_(this, "_startOffsetX", Number.NEGATIVE_INFINITY);
|
|
@@ -12814,7 +12817,7 @@ let wo = class extends ae {
|
|
|
12814
12817
|
const u = (v = this._workbookSelections.getCurrentLastSelection()) == null ? void 0 : v.range;
|
|
12815
12818
|
if (!u || !this.interceptor.fetchThroughInterceptors(Ba)(!1, u))
|
|
12816
12819
|
return;
|
|
12817
|
-
const g = this._workbookSelections.getCurrentSelections(), { row: m, column: f } =
|
|
12820
|
+
const g = this._workbookSelections.getCurrentSelections(), { row: m, column: f } = Bn(c.offsetX, c.offsetY, i, d);
|
|
12818
12821
|
if (!Js(
|
|
12819
12822
|
g,
|
|
12820
12823
|
e === z.ROW ? m : f,
|
|
@@ -12838,7 +12841,7 @@ let wo = class extends ae {
|
|
|
12838
12841
|
return;
|
|
12839
12842
|
const { offsetX: m, offsetY: f } = c, p = i.getCoordRelativeToViewport(ke.FromArray([m, f])), { x: S, y: v } = p;
|
|
12840
12843
|
this._startOffsetX = S, this._startOffsetY = v;
|
|
12841
|
-
const { row: C, column: b } =
|
|
12844
|
+
const { row: C, column: b } = Bn(c.offsetX, c.offsetY, i, u);
|
|
12842
12845
|
let R;
|
|
12843
12846
|
e === z.ROW ? (this._changeFromRow = C, R = Pt.Y) : (this._changeFromColumn = b, R = Pt.X);
|
|
12844
12847
|
const I = this._workbookSelections.getCurrentSelections(), y = Js(
|
|
@@ -13011,17 +13014,17 @@ let wo = class extends ae {
|
|
|
13011
13014
|
(e = this._moveHelperBackgroundShape) == null || e.dispose(), (t = this._moveHelperLineShape) == null || t.dispose();
|
|
13012
13015
|
}
|
|
13013
13016
|
};
|
|
13014
|
-
|
|
13017
|
+
Ro = Gw([
|
|
13015
13018
|
Wa(1, V($)),
|
|
13016
13019
|
Wa(2, V(he)),
|
|
13017
13020
|
Wa(3, D)
|
|
13018
|
-
],
|
|
13021
|
+
], Ro);
|
|
13019
13022
|
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)",
|
|
13023
|
+
const e0 = "rgba(120, 120, 120, 0.01)", Fa = "rgb(68, 71, 70)", Ki = 12, t0 = 44, zc = 4;
|
|
13021
13024
|
class mh extends pd {
|
|
13022
13025
|
constructor(t, n) {
|
|
13023
13026
|
super(t, n);
|
|
13024
|
-
_(this, "_size",
|
|
13027
|
+
_(this, "_size", Ki);
|
|
13025
13028
|
_(this, "_color", Fa);
|
|
13026
13029
|
_(this, "_mode", 0);
|
|
13027
13030
|
this.setShapeProps(n);
|
|
@@ -13038,7 +13041,7 @@ class mh extends pd {
|
|
|
13038
13041
|
_draw(t) {
|
|
13039
13042
|
const n = this.getScene();
|
|
13040
13043
|
if (!n) return;
|
|
13041
|
-
const { scaleX: i, scaleY: o } = n.getAncestorScale(), s = Math.max(i, o), l =
|
|
13044
|
+
const { scaleX: i, scaleY: o } = n.getAncestorScale(), s = Math.max(i, o), l = Ki / s, a = zc / s;
|
|
13042
13045
|
let { width: c, height: d } = this, u = 0, h = 0;
|
|
13043
13046
|
this.mode === 0 ? (c = a, u = l - a) : (d = a, h = l - a), Ce.drawWith(t, {
|
|
13044
13047
|
width: this.width,
|
|
@@ -13060,11 +13063,11 @@ class mh extends pd {
|
|
|
13060
13063
|
}
|
|
13061
13064
|
setShapeProps(t) {
|
|
13062
13065
|
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:
|
|
13066
|
+
width: Ki,
|
|
13064
13067
|
height: this.size
|
|
13065
13068
|
}) : this.transformByState({
|
|
13066
13069
|
width: this.size,
|
|
13067
|
-
height:
|
|
13070
|
+
height: Ki
|
|
13068
13071
|
}), this;
|
|
13069
13072
|
}
|
|
13070
13073
|
}
|
|
@@ -13128,12 +13131,12 @@ let $s = class extends ae {
|
|
|
13128
13131
|
const d = (M = this._sheetSkeletonManagerService.getCurrentParam()) == null ? void 0 : M.skeleton;
|
|
13129
13132
|
if (d == null || this._rowResizeRect == null || this._columnResizeRect == null)
|
|
13130
13133
|
return;
|
|
13131
|
-
const { rowHeaderWidth: u, columnHeaderHeight: h } = d, { startX: g, startY: m, endX: f, endY: p, row: S, column: v } =
|
|
13134
|
+
const { rowHeaderWidth: u, columnHeaderHeight: h } = d, { startX: g, startY: m, endX: f, endY: p, row: S, column: v } = Bn(
|
|
13132
13135
|
a.offsetX,
|
|
13133
13136
|
a.offsetY,
|
|
13134
13137
|
i,
|
|
13135
13138
|
d
|
|
13136
|
-
), C = ws(a.offsetX, a.offsetY, i), { scaleX: b, scaleY: R } = i.getAncestorScale(), I = Math.max(b, R), y =
|
|
13139
|
+
), C = ws(a.offsetX, a.offsetY, i), { scaleX: b, scaleY: R } = i.getAncestorScale(), I = Math.max(b, R), y = Ki / I;
|
|
13137
13140
|
if (e === 0) {
|
|
13138
13141
|
let E = m - y / 2;
|
|
13139
13142
|
if (C.y <= m + y / 2 && C.y >= m)
|
|
@@ -13306,17 +13309,17 @@ var l0 = Object.getOwnPropertyDescriptor, a0 = (r, e, t, n) => {
|
|
|
13306
13309
|
for (var i = n > 1 ? void 0 : n ? l0(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
13307
13310
|
(s = r[o]) && (i = s(i) || i);
|
|
13308
13311
|
return i;
|
|
13309
|
-
},
|
|
13312
|
+
}, Xi = (r, e) => (t, n) => e(t, n, r);
|
|
13310
13313
|
const c0 = 60;
|
|
13311
13314
|
let el = class extends Un {
|
|
13312
|
-
constructor(e, t, n, i, o) {
|
|
13315
|
+
constructor(e, t, n, i, o, s) {
|
|
13313
13316
|
super();
|
|
13314
13317
|
_(this, "_renderMetric$", new Ae());
|
|
13315
13318
|
_(this, "renderMetric$", this._renderMetric$.asObservable());
|
|
13316
13319
|
_(this, "_renderFrameTimeMetric", null);
|
|
13317
13320
|
_(this, "_renderFrameTags", {});
|
|
13318
13321
|
_(this, "_afterRenderMetric$", new Ae());
|
|
13319
|
-
this._context = e, this.
|
|
13322
|
+
this._context = e, this._configService = t, this._sheetSkeletonManagerService = n, this._sheetRenderService = i, this._commandService = o, this._telemetryService = s, this._addNewRender(), this._initRenderMetricSubscriber();
|
|
13320
13323
|
}
|
|
13321
13324
|
_addNewRender() {
|
|
13322
13325
|
const { scene: e, engine: t, unit: n } = this._context;
|
|
@@ -13400,7 +13403,7 @@ let el = class extends Un {
|
|
|
13400
13403
|
), t.enableLayerCache(xu, ar);
|
|
13401
13404
|
}
|
|
13402
13405
|
_initViewports(e, t, n) {
|
|
13403
|
-
const s = new
|
|
13406
|
+
const s = new Rn(U.VIEW_MAIN, e, {
|
|
13404
13407
|
left: t.width,
|
|
13405
13408
|
top: n.height,
|
|
13406
13409
|
bottom: 0,
|
|
@@ -13409,43 +13412,43 @@ let el = class extends Un {
|
|
|
13409
13412
|
allowCache: !0,
|
|
13410
13413
|
bufferEdgeX: 100,
|
|
13411
13414
|
bufferEdgeY: 100
|
|
13412
|
-
}), l = new
|
|
13415
|
+
}), l = new Rn(U.VIEW_MAIN_LEFT_TOP, e, {
|
|
13413
13416
|
isWheelPreventDefaultX: !0,
|
|
13414
13417
|
active: !1,
|
|
13415
13418
|
allowCache: !0,
|
|
13416
13419
|
bufferEdgeX: 0,
|
|
13417
13420
|
bufferEdgeY: 0
|
|
13418
|
-
}), a = new
|
|
13421
|
+
}), a = new Rn(U.VIEW_MAIN_LEFT, e, {
|
|
13419
13422
|
isWheelPreventDefaultX: !0,
|
|
13420
13423
|
active: !1,
|
|
13421
13424
|
allowCache: !0,
|
|
13422
13425
|
bufferEdgeX: 0,
|
|
13423
13426
|
bufferEdgeY: 100
|
|
13424
|
-
}), c = new
|
|
13427
|
+
}), c = new Rn(U.VIEW_MAIN_TOP, e, {
|
|
13425
13428
|
isWheelPreventDefaultX: !0,
|
|
13426
13429
|
active: !1,
|
|
13427
13430
|
allowCache: !0,
|
|
13428
13431
|
bufferEdgeX: 100,
|
|
13429
13432
|
bufferEdgeY: 0
|
|
13430
|
-
}), d = new
|
|
13433
|
+
}), d = new Rn(U.VIEW_ROW_TOP, e, {
|
|
13431
13434
|
active: !1,
|
|
13432
13435
|
isWheelPreventDefaultX: !0
|
|
13433
|
-
}), u = new
|
|
13436
|
+
}), u = new Rn(U.VIEW_ROW_BOTTOM, e, {
|
|
13434
13437
|
left: 0,
|
|
13435
13438
|
top: n.height,
|
|
13436
13439
|
bottom: 0,
|
|
13437
13440
|
width: t.width + 1,
|
|
13438
13441
|
isWheelPreventDefaultX: !0
|
|
13439
|
-
}), h = new
|
|
13442
|
+
}), h = new Rn(U.VIEW_COLUMN_LEFT, e, {
|
|
13440
13443
|
active: !1,
|
|
13441
13444
|
isWheelPreventDefaultX: !0
|
|
13442
|
-
}), g = new
|
|
13445
|
+
}), g = new Rn(U.VIEW_COLUMN_RIGHT, e, {
|
|
13443
13446
|
left: t.width,
|
|
13444
13447
|
top: 0,
|
|
13445
13448
|
height: n.height + 1,
|
|
13446
13449
|
right: 0,
|
|
13447
13450
|
isWheelPreventDefaultX: !0
|
|
13448
|
-
}), m = new
|
|
13451
|
+
}), m = new Rn(U.VIEW_LEFT_TOP, e, {
|
|
13449
13452
|
left: 0,
|
|
13450
13453
|
top: 0,
|
|
13451
13454
|
width: t.width,
|
|
@@ -13476,8 +13479,8 @@ let el = class extends Un {
|
|
|
13476
13479
|
* +-----------------+--------------------+-------------------+
|
|
13477
13480
|
*/
|
|
13478
13481
|
_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;
|
|
13482
|
+
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;
|
|
13483
|
+
return new fd(o, l), t.attachControl(), o;
|
|
13481
13484
|
}
|
|
13482
13485
|
_initRerenderScheduler() {
|
|
13483
13486
|
this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe((e) => {
|
|
@@ -13563,10 +13566,11 @@ let el = class extends Un {
|
|
|
13563
13566
|
}
|
|
13564
13567
|
};
|
|
13565
13568
|
el = a0([
|
|
13566
|
-
|
|
13567
|
-
|
|
13568
|
-
|
|
13569
|
-
|
|
13569
|
+
Xi(1, V(bn)),
|
|
13570
|
+
Xi(2, V(he)),
|
|
13571
|
+
Xi(3, V(xr)),
|
|
13572
|
+
Xi(4, D),
|
|
13573
|
+
Xi(5, ld(rC))
|
|
13570
13574
|
], el);
|
|
13571
13575
|
function d0(r, e) {
|
|
13572
13576
|
if (r.length !== e.length) return !1;
|
|
@@ -13827,7 +13831,7 @@ const hr = {
|
|
|
13827
13831
|
subUnitId: c
|
|
13828
13832
|
});
|
|
13829
13833
|
}
|
|
13830
|
-
},
|
|
13834
|
+
}, $o = {
|
|
13831
13835
|
type: Q.COMMAND,
|
|
13832
13836
|
id: "sheet.command.delete-range-move-left-confirm",
|
|
13833
13837
|
handler: async (r) => {
|
|
@@ -13846,7 +13850,7 @@ const hr = {
|
|
|
13846
13850
|
const m = de.getIntersects(g, c);
|
|
13847
13851
|
return m ? d(g) > d(m) : !1;
|
|
13848
13852
|
}) ? await e.confirm({
|
|
13849
|
-
id:
|
|
13853
|
+
id: $o.id,
|
|
13850
13854
|
title: { title: n.t("merge.confirm.waring") },
|
|
13851
13855
|
children: { title: n.t("merge.confirm.dismantleMergeCellWaring") },
|
|
13852
13856
|
cancelText: n.t("button.cancel"),
|
|
@@ -13919,7 +13923,7 @@ const hr = {
|
|
|
13919
13923
|
confirmText: n.t("button.confirm")
|
|
13920
13924
|
}) ? t.executeCommand(_c.id) : !0 : t.executeCommand(_c.id);
|
|
13921
13925
|
}
|
|
13922
|
-
},
|
|
13926
|
+
}, es = {
|
|
13923
13927
|
type: Q.COMMAND,
|
|
13924
13928
|
id: "sheet.command.insert-range-move-right-confirm",
|
|
13925
13929
|
handler: async (r) => {
|
|
@@ -13938,7 +13942,7 @@ const hr = {
|
|
|
13938
13942
|
const m = de.getIntersects(g, c);
|
|
13939
13943
|
return m ? d(g) > d(m) : !1;
|
|
13940
13944
|
}) ? await e.confirm({
|
|
13941
|
-
id:
|
|
13945
|
+
id: es.id,
|
|
13942
13946
|
title: { title: n.t("merge.confirm.waring") },
|
|
13943
13947
|
children: { title: n.t("merge.confirm.dismantleMergeCellWaring") },
|
|
13944
13948
|
cancelText: n.t("button.cancel"),
|
|
@@ -13946,8 +13950,8 @@ const hr = {
|
|
|
13946
13950
|
}) ? t.executeCommand(wc.id) : !0 : t.executeCommand(wc.id);
|
|
13947
13951
|
}
|
|
13948
13952
|
};
|
|
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
|
|
13953
|
+
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 || {});
|
|
13954
|
+
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
13955
|
[ge.Copy]: "Copy",
|
|
13952
13956
|
[ge.SetCellStyle]: "SetCellStyle",
|
|
13953
13957
|
[ge.SetCellValue]: "SetCellValue",
|
|
@@ -14037,14 +14041,14 @@ class Fr {
|
|
|
14037
14041
|
this._selectUserList = e, this._selectUserList$.next(e);
|
|
14038
14042
|
}
|
|
14039
14043
|
}
|
|
14040
|
-
const
|
|
14044
|
+
const Fn = {
|
|
14041
14045
|
type: Q.OPERATION,
|
|
14042
14046
|
id: "sheet-permission.operation.openPanel",
|
|
14043
14047
|
async handler(r, e = {}) {
|
|
14044
14048
|
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
14049
|
header: { title: "permission.panel.title" },
|
|
14046
14050
|
children: {
|
|
14047
|
-
label:
|
|
14051
|
+
label: Io,
|
|
14048
14052
|
showDetail: o,
|
|
14049
14053
|
fromSheetBar: s,
|
|
14050
14054
|
rule: l,
|
|
@@ -14061,31 +14065,31 @@ const Bn = {
|
|
|
14061
14065
|
type: Q.COMMAND,
|
|
14062
14066
|
id: "sheet.command.add-range-protection-from-toolbar",
|
|
14063
14067
|
async handler(r) {
|
|
14064
|
-
return await r.get(D).executeCommand(
|
|
14068
|
+
return await r.get(D).executeCommand(Fn.id, { showDetail: !0 }), !0;
|
|
14065
14069
|
}
|
|
14066
14070
|
}, ci = {
|
|
14067
14071
|
type: Q.COMMAND,
|
|
14068
14072
|
id: "sheet.command.add-range-protection-from-context-menu",
|
|
14069
14073
|
async handler(r) {
|
|
14070
|
-
return await r.get(D).executeCommand(
|
|
14074
|
+
return await r.get(D).executeCommand(Fn.id, { showDetail: !0 }), !0;
|
|
14071
14075
|
}
|
|
14072
14076
|
}, di = {
|
|
14073
14077
|
type: Q.COMMAND,
|
|
14074
14078
|
id: "sheet.command.view-sheet-permission-from-context-menu",
|
|
14075
14079
|
async handler(r) {
|
|
14076
|
-
return await r.get(D).executeCommand(
|
|
14080
|
+
return await r.get(D).executeCommand(Fn.id, { showDetail: !1 }), !0;
|
|
14077
14081
|
}
|
|
14078
14082
|
}, ua = {
|
|
14079
14083
|
type: Q.COMMAND,
|
|
14080
14084
|
id: "sheet.command.add-range-protection-from-sheet-bar",
|
|
14081
14085
|
async handler(r) {
|
|
14082
|
-
return await r.get(D).executeCommand(
|
|
14086
|
+
return await r.get(D).executeCommand(Fn.id, { fromSheetBar: !0, showDetail: !0 }), !0;
|
|
14083
14087
|
}
|
|
14084
14088
|
}, ha = {
|
|
14085
14089
|
type: Q.COMMAND,
|
|
14086
14090
|
id: "sheet.command.view-sheet-permission-from-sheet-bar",
|
|
14087
14091
|
async handler(r) {
|
|
14088
|
-
return await r.get(D).executeCommand(
|
|
14092
|
+
return await r.get(D).executeCommand(Fn.id, { showDetail: !1 }), !0;
|
|
14089
14093
|
}
|
|
14090
14094
|
}, ui = {
|
|
14091
14095
|
type: Q.COMMAND,
|
|
@@ -14128,7 +14132,7 @@ const Bn = {
|
|
|
14128
14132
|
subUnitId: a,
|
|
14129
14133
|
ranges: []
|
|
14130
14134
|
};
|
|
14131
|
-
return await e.executeCommand(
|
|
14135
|
+
return await e.executeCommand(Fn.id, { showDetail: !0, rule: se.deepClone(u), oldRule: se.deepClone(u) }), !0;
|
|
14132
14136
|
} else {
|
|
14133
14137
|
const u = (d = n.getCurrentLastSelection()) == null ? void 0 : d.range;
|
|
14134
14138
|
if (!u)
|
|
@@ -14143,12 +14147,12 @@ const Bn = {
|
|
|
14143
14147
|
unitId: l,
|
|
14144
14148
|
subUnitId: a
|
|
14145
14149
|
};
|
|
14146
|
-
return await e.executeCommand(
|
|
14150
|
+
return await e.executeCommand(Fn.id, { showDetail: !0, rule: se.deepClone(f), oldRule: se.deepClone(f) }), !0;
|
|
14147
14151
|
} else
|
|
14148
14152
|
return !1;
|
|
14149
14153
|
}
|
|
14150
14154
|
}
|
|
14151
|
-
},
|
|
14155
|
+
}, yo = {
|
|
14152
14156
|
id: "sheet.command.remove-row-confirm",
|
|
14153
14157
|
type: Q.COMMAND,
|
|
14154
14158
|
handler: async (r, e) => {
|
|
@@ -14174,7 +14178,7 @@ const Bn = {
|
|
|
14174
14178
|
}
|
|
14175
14179
|
return await i.executeCommand(Tg.id, { range: n }), !0;
|
|
14176
14180
|
}
|
|
14177
|
-
},
|
|
14181
|
+
}, Mo = {
|
|
14178
14182
|
id: "sheet.command.remove-col-confirm",
|
|
14179
14183
|
type: Q.COMMAND,
|
|
14180
14184
|
handler: async (r, e) => {
|
|
@@ -14745,7 +14749,7 @@ const za = {
|
|
|
14745
14749
|
hidden: d = !1,
|
|
14746
14750
|
// 是否对用户隐藏,与excel兼容,暂时用不上。
|
|
14747
14751
|
id: u
|
|
14748
|
-
} = r, g = L(N).getCurrentUnitForType(x.UNIVER_SHEET), m = L(He), f = L(
|
|
14752
|
+
} = 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
14753
|
if (g == null)
|
|
14750
14754
|
return;
|
|
14751
14755
|
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 +14814,7 @@ const za = {
|
|
|
14810
14814
|
}, G = (Se) => {
|
|
14811
14815
|
const Oe = Se;
|
|
14812
14816
|
Oe === "formula" ? l[0] === Qr.EQUALS ? P(l) : P(`${Qr.EQUALS}`) : l[0] === Qr.EQUALS ? P("") : P(l), B(Oe);
|
|
14813
|
-
}, ee =
|
|
14817
|
+
}, ee = kn({}), [le, pe] = ne(!1);
|
|
14814
14818
|
return Jh((Se) => {
|
|
14815
14819
|
var ue;
|
|
14816
14820
|
const Oe = (ue = ee.current) == null ? void 0 : ue.handleOutClick;
|
|
@@ -14876,7 +14880,7 @@ const za = {
|
|
|
14876
14880
|
] })
|
|
14877
14881
|
] });
|
|
14878
14882
|
}, pf = () => {
|
|
14879
|
-
const r = L(D), t = L(N).getCurrentUnitForType(x.UNIVER_SHEET), n = L(He), i = L(
|
|
14883
|
+
const r = L(D), t = L(N).getCurrentUnitForType(x.UNIVER_SHEET), n = L(He), i = L(jo), o = L($);
|
|
14880
14884
|
if (t == null)
|
|
14881
14885
|
return;
|
|
14882
14886
|
const s = t.getUnitId(), l = () => {
|
|
@@ -15051,7 +15055,7 @@ function Ya(r) {
|
|
|
15051
15055
|
}
|
|
15052
15056
|
function Za(r) {
|
|
15053
15057
|
return {
|
|
15054
|
-
id:
|
|
15058
|
+
id: to.id,
|
|
15055
15059
|
type: K.BUTTON,
|
|
15056
15060
|
title: "rightClick.clearFormat",
|
|
15057
15061
|
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] }),
|
|
@@ -15080,7 +15084,7 @@ function A0(r) {
|
|
|
15080
15084
|
}
|
|
15081
15085
|
function wh(r) {
|
|
15082
15086
|
return {
|
|
15083
|
-
id:
|
|
15087
|
+
id: Mo.id,
|
|
15084
15088
|
type: K.BUTTON,
|
|
15085
15089
|
icon: "DeleteColumn",
|
|
15086
15090
|
title: "rightClick.deleteSelectedColumn",
|
|
@@ -15090,7 +15094,7 @@ function wh(r) {
|
|
|
15090
15094
|
}
|
|
15091
15095
|
function Rh(r) {
|
|
15092
15096
|
return {
|
|
15093
|
-
id:
|
|
15097
|
+
id: yo.id,
|
|
15094
15098
|
type: K.BUTTON,
|
|
15095
15099
|
icon: "DeleteRow",
|
|
15096
15100
|
title: "rightClick.deleteSelectedRow",
|
|
@@ -15100,7 +15104,7 @@ function Rh(r) {
|
|
|
15100
15104
|
}
|
|
15101
15105
|
function H0(r) {
|
|
15102
15106
|
return {
|
|
15103
|
-
id:
|
|
15107
|
+
id: $o.id,
|
|
15104
15108
|
type: K.BUTTON,
|
|
15105
15109
|
title: "rightClick.moveLeft",
|
|
15106
15110
|
icon: "DeleteCellShiftLeft",
|
|
@@ -15157,7 +15161,7 @@ function D0(r) {
|
|
|
15157
15161
|
type: K.BUTTON,
|
|
15158
15162
|
icon: "InsertRowAbove",
|
|
15159
15163
|
label: {
|
|
15160
|
-
name:
|
|
15164
|
+
name: wn,
|
|
15161
15165
|
props: {
|
|
15162
15166
|
prefix: "rightClick.insertRowsAbove",
|
|
15163
15167
|
min: 1,
|
|
@@ -15178,7 +15182,7 @@ function D0(r) {
|
|
|
15178
15182
|
});
|
|
15179
15183
|
return s(), l.dispose;
|
|
15180
15184
|
})),
|
|
15181
|
-
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [
|
|
15185
|
+
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [Xo, te], rangeTypes: [re] }),
|
|
15182
15186
|
hidden$: Jm(r, "row")
|
|
15183
15187
|
};
|
|
15184
15188
|
}
|
|
@@ -15189,7 +15193,7 @@ function L0(r) {
|
|
|
15189
15193
|
type: K.BUTTON,
|
|
15190
15194
|
icon: "LeftInsertColumn",
|
|
15191
15195
|
label: {
|
|
15192
|
-
name:
|
|
15196
|
+
name: wn,
|
|
15193
15197
|
props: {
|
|
15194
15198
|
prefix: "rightClick.insertColsLeft",
|
|
15195
15199
|
min: 1,
|
|
@@ -15216,7 +15220,7 @@ function L0(r) {
|
|
|
15216
15220
|
}
|
|
15217
15221
|
function W0(r) {
|
|
15218
15222
|
return {
|
|
15219
|
-
id:
|
|
15223
|
+
id: es.id,
|
|
15220
15224
|
type: K.BUTTON,
|
|
15221
15225
|
title: "rightClick.moveRight",
|
|
15222
15226
|
icon: "InsertCellShiftRight",
|
|
@@ -15241,7 +15245,7 @@ function F0(r) {
|
|
|
15241
15245
|
type: K.BUTTON,
|
|
15242
15246
|
icon: "InsertRowBelow",
|
|
15243
15247
|
label: {
|
|
15244
|
-
name:
|
|
15248
|
+
name: wn,
|
|
15245
15249
|
props: {
|
|
15246
15250
|
prefix: "rightClick.insertRowsAfter",
|
|
15247
15251
|
min: 1,
|
|
@@ -15262,7 +15266,7 @@ function F0(r) {
|
|
|
15262
15266
|
});
|
|
15263
15267
|
return s(), l.dispose;
|
|
15264
15268
|
})),
|
|
15265
|
-
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [
|
|
15269
|
+
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [Xo, te], rangeTypes: [re] }),
|
|
15266
15270
|
hidden$: Ni(r)
|
|
15267
15271
|
};
|
|
15268
15272
|
}
|
|
@@ -15273,7 +15277,7 @@ function U0(r) {
|
|
|
15273
15277
|
type: K.BUTTON,
|
|
15274
15278
|
icon: "InsertRowAbove",
|
|
15275
15279
|
label: {
|
|
15276
|
-
name:
|
|
15280
|
+
name: wn,
|
|
15277
15281
|
props: {
|
|
15278
15282
|
prefix: "rightClick.insertRowsAbove",
|
|
15279
15283
|
min: 1,
|
|
@@ -15294,7 +15298,7 @@ function U0(r) {
|
|
|
15294
15298
|
});
|
|
15295
15299
|
return s(), l.dispose;
|
|
15296
15300
|
})),
|
|
15297
|
-
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [
|
|
15301
|
+
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [Xo, te], rangeTypes: [re] }),
|
|
15298
15302
|
hidden$: Ni(r)
|
|
15299
15303
|
};
|
|
15300
15304
|
}
|
|
@@ -15305,7 +15309,7 @@ function X0(r) {
|
|
|
15305
15309
|
type: K.BUTTON,
|
|
15306
15310
|
icon: "LeftInsertColumn",
|
|
15307
15311
|
label: {
|
|
15308
|
-
name:
|
|
15312
|
+
name: wn,
|
|
15309
15313
|
props: {
|
|
15310
15314
|
prefix: "rightClick.insertColsLeft",
|
|
15311
15315
|
min: 1,
|
|
@@ -15326,7 +15330,7 @@ function X0(r) {
|
|
|
15326
15330
|
});
|
|
15327
15331
|
return s(), l.dispose;
|
|
15328
15332
|
})),
|
|
15329
|
-
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [
|
|
15333
|
+
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [Xo, te], rangeTypes: [re] }),
|
|
15330
15334
|
hidden$: Ni(r)
|
|
15331
15335
|
};
|
|
15332
15336
|
}
|
|
@@ -15337,7 +15341,7 @@ function z0(r) {
|
|
|
15337
15341
|
type: K.BUTTON,
|
|
15338
15342
|
icon: "RightInsertColumn",
|
|
15339
15343
|
label: {
|
|
15340
|
-
name:
|
|
15344
|
+
name: wn,
|
|
15341
15345
|
props: {
|
|
15342
15346
|
prefix: "rightClick.insertColsRight",
|
|
15343
15347
|
min: 1,
|
|
@@ -15358,7 +15362,7 @@ function z0(r) {
|
|
|
15358
15362
|
});
|
|
15359
15363
|
return s(), l.dispose;
|
|
15360
15364
|
})),
|
|
15361
|
-
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [
|
|
15365
|
+
disabled$: me(r, { workbookTypes: [J], worksheetTypes: [Xo, te], rangeTypes: [re] }),
|
|
15362
15366
|
hidden$: Ni(r)
|
|
15363
15367
|
};
|
|
15364
15368
|
}
|
|
@@ -15464,12 +15468,12 @@ function K0(r) {
|
|
|
15464
15468
|
return ((E = d.getPermissionPoint(new wv(h, g).id)) == null ? void 0 : E.value) === !1;
|
|
15465
15469
|
if (m.filter((P) => P.ranges.some((T) => de.intersects(T, p))).length !== 1)
|
|
15466
15470
|
return !0;
|
|
15467
|
-
const { startRow: C, endRow: b, startColumn: R, endColumn: I } = p, y = r.get(
|
|
15471
|
+
const { startRow: C, endRow: b, startColumn: R, endColumn: I } = p, y = r.get(Uo);
|
|
15468
15472
|
for (let P = C; P <= b; P++)
|
|
15469
15473
|
for (let T = R; T <= I; T++) {
|
|
15470
15474
|
const A = y.getCellInfo(h, g, P, T);
|
|
15471
15475
|
if (A)
|
|
15472
|
-
return A[
|
|
15476
|
+
return A[co.ManageCollaborator] === !1;
|
|
15473
15477
|
}
|
|
15474
15478
|
return !1;
|
|
15475
15479
|
})
|
|
@@ -15628,12 +15632,12 @@ function nR(r) {
|
|
|
15628
15632
|
return ((E = t.getPermissionPoint(new Lg(a, c).id)) == null ? void 0 : E.value) === !1;
|
|
15629
15633
|
if (u.getSubunitRuleList(a, c).filter((P) => P.ranges.some((T) => de.intersects(T, S))).length !== 1)
|
|
15630
15634
|
return !0;
|
|
15631
|
-
const { startRow: b, endRow: R, startColumn: I, endColumn: y } = S, M = r.get(
|
|
15635
|
+
const { startRow: b, endRow: R, startColumn: I, endColumn: y } = S, M = r.get(Uo);
|
|
15632
15636
|
for (let P = b; P <= R; P++)
|
|
15633
15637
|
for (let T = I; T <= y; T++) {
|
|
15634
15638
|
const A = M.getCellInfo(a, c, P, T);
|
|
15635
15639
|
if (A)
|
|
15636
|
-
return A[
|
|
15640
|
+
return A[co.Delete] === !1;
|
|
15637
15641
|
}
|
|
15638
15642
|
return !1;
|
|
15639
15643
|
})
|
|
@@ -15755,7 +15759,7 @@ function aR(r) {
|
|
|
15755
15759
|
const e = r.get(N), t = r.get(D), n = new ze((o) => {
|
|
15756
15760
|
const s = t.onCommandExecuted((l) => {
|
|
15757
15761
|
const a = l.id;
|
|
15758
|
-
(a ===
|
|
15762
|
+
(a === Wn.id || a === Vr.id || a === lr.id) && rl(e, o);
|
|
15759
15763
|
});
|
|
15760
15764
|
return rl(e, o), s.dispose;
|
|
15761
15765
|
}), i = Di(r, [J, Rv]);
|
|
@@ -15795,7 +15799,7 @@ function uR(r) {
|
|
|
15795
15799
|
selections: [
|
|
15796
15800
|
{
|
|
15797
15801
|
label: {
|
|
15798
|
-
name:
|
|
15802
|
+
name: Qo,
|
|
15799
15803
|
hoverable: !1
|
|
15800
15804
|
}
|
|
15801
15805
|
}
|
|
@@ -15812,7 +15816,7 @@ function hR(r) {
|
|
|
15812
15816
|
disabled$: new ze((n) => {
|
|
15813
15817
|
const i = t.onCommandExecuted((o) => {
|
|
15814
15818
|
const s = o.id;
|
|
15815
|
-
(s ===
|
|
15819
|
+
(s === Wn.id || s === Vr.id || s === lr.id) && rl(e, n);
|
|
15816
15820
|
});
|
|
15817
15821
|
return rl(e, n), i.dispose;
|
|
15818
15822
|
}).pipe(
|
|
@@ -15835,7 +15839,7 @@ function gR(r) {
|
|
|
15835
15839
|
}
|
|
15836
15840
|
const o = t.onCommandExecuted((s) => {
|
|
15837
15841
|
const l = s.id;
|
|
15838
|
-
(l ===
|
|
15842
|
+
(l === Wn.id || l === Vr.id || l === lr.id) && i();
|
|
15839
15843
|
});
|
|
15840
15844
|
return i(), o.dispose;
|
|
15841
15845
|
}).pipe(
|
|
@@ -15853,7 +15857,7 @@ function rl(r, e) {
|
|
|
15853
15857
|
}
|
|
15854
15858
|
const mR = {
|
|
15855
15859
|
[ba.FORMAT]: {
|
|
15856
|
-
[
|
|
15860
|
+
[qo.id]: {
|
|
15857
15861
|
order: 0,
|
|
15858
15862
|
menuItemFactory: gw
|
|
15859
15863
|
},
|
|
@@ -15881,7 +15885,7 @@ const mR = {
|
|
|
15881
15885
|
order: 6,
|
|
15882
15886
|
menuItemFactory: Cw
|
|
15883
15887
|
},
|
|
15884
|
-
[
|
|
15888
|
+
[bo.id]: {
|
|
15885
15889
|
order: 7,
|
|
15886
15890
|
menuItemFactory: _w,
|
|
15887
15891
|
[Tv.id]: {
|
|
@@ -15963,11 +15967,11 @@ const mR = {
|
|
|
15963
15967
|
[Is]: {
|
|
15964
15968
|
order: 3,
|
|
15965
15969
|
menuItemFactory: xa,
|
|
15966
|
-
[
|
|
15970
|
+
[ro.id]: {
|
|
15967
15971
|
order: 0,
|
|
15968
15972
|
menuItemFactory: Aa
|
|
15969
15973
|
},
|
|
15970
|
-
[
|
|
15974
|
+
[io.id]: {
|
|
15971
15975
|
order: 1,
|
|
15972
15976
|
menuItemFactory: Ha
|
|
15973
15977
|
},
|
|
@@ -15975,7 +15979,7 @@ const mR = {
|
|
|
15975
15979
|
order: 2,
|
|
15976
15980
|
menuItemFactory: ka
|
|
15977
15981
|
},
|
|
15978
|
-
[
|
|
15982
|
+
[oo.id]: {
|
|
15979
15983
|
order: 3,
|
|
15980
15984
|
menuItemFactory: Va
|
|
15981
15985
|
}
|
|
@@ -15987,7 +15991,7 @@ const mR = {
|
|
|
15987
15991
|
order: 0,
|
|
15988
15992
|
menuItemFactory: Ya
|
|
15989
15993
|
},
|
|
15990
|
-
[
|
|
15994
|
+
[to.id]: {
|
|
15991
15995
|
order: 1,
|
|
15992
15996
|
menuItemFactory: Za
|
|
15993
15997
|
},
|
|
@@ -16010,7 +16014,7 @@ const mR = {
|
|
|
16010
16014
|
order: 1,
|
|
16011
16015
|
menuItemFactory: L0
|
|
16012
16016
|
},
|
|
16013
|
-
[
|
|
16017
|
+
[es.id]: {
|
|
16014
16018
|
order: 2,
|
|
16015
16019
|
menuItemFactory: W0
|
|
16016
16020
|
},
|
|
@@ -16022,15 +16026,15 @@ const mR = {
|
|
|
16022
16026
|
[Sf]: {
|
|
16023
16027
|
order: 0,
|
|
16024
16028
|
menuItemFactory: A0,
|
|
16025
|
-
[
|
|
16029
|
+
[Mo.id]: {
|
|
16026
16030
|
order: 0,
|
|
16027
16031
|
menuItemFactory: wh
|
|
16028
16032
|
},
|
|
16029
|
-
[
|
|
16033
|
+
[yo.id]: {
|
|
16030
16034
|
order: 1,
|
|
16031
16035
|
menuItemFactory: Rh
|
|
16032
16036
|
},
|
|
16033
|
-
[
|
|
16037
|
+
[$o.id]: {
|
|
16034
16038
|
order: 2,
|
|
16035
16039
|
menuItemFactory: H0
|
|
16036
16040
|
},
|
|
@@ -16104,11 +16108,11 @@ const mR = {
|
|
|
16104
16108
|
[Is]: {
|
|
16105
16109
|
order: 3,
|
|
16106
16110
|
menuItemFactory: xa,
|
|
16107
|
-
[
|
|
16111
|
+
[ro.id]: {
|
|
16108
16112
|
order: 0,
|
|
16109
16113
|
menuItemFactory: Aa
|
|
16110
16114
|
},
|
|
16111
|
-
[
|
|
16115
|
+
[io.id]: {
|
|
16112
16116
|
order: 1,
|
|
16113
16117
|
menuItemFactory: Ha
|
|
16114
16118
|
},
|
|
@@ -16116,7 +16120,7 @@ const mR = {
|
|
|
16116
16120
|
order: 2,
|
|
16117
16121
|
menuItemFactory: ka
|
|
16118
16122
|
},
|
|
16119
|
-
[
|
|
16123
|
+
[oo.id]: {
|
|
16120
16124
|
order: 3,
|
|
16121
16125
|
menuItemFactory: Va
|
|
16122
16126
|
}
|
|
@@ -16128,7 +16132,7 @@ const mR = {
|
|
|
16128
16132
|
order: 0,
|
|
16129
16133
|
menuItemFactory: Ya
|
|
16130
16134
|
},
|
|
16131
|
-
[
|
|
16135
|
+
[to.id]: {
|
|
16132
16136
|
order: 1,
|
|
16133
16137
|
menuItemFactory: Za
|
|
16134
16138
|
},
|
|
@@ -16156,7 +16160,7 @@ const mR = {
|
|
|
16156
16160
|
order: 2,
|
|
16157
16161
|
menuItemFactory: Nw
|
|
16158
16162
|
},
|
|
16159
|
-
[
|
|
16163
|
+
[Mo.id]: {
|
|
16160
16164
|
order: 2,
|
|
16161
16165
|
menuItemFactory: wh
|
|
16162
16166
|
},
|
|
@@ -16225,11 +16229,11 @@ const mR = {
|
|
|
16225
16229
|
[Is]: {
|
|
16226
16230
|
order: 3,
|
|
16227
16231
|
menuItemFactory: xa,
|
|
16228
|
-
[
|
|
16232
|
+
[ro.id]: {
|
|
16229
16233
|
order: 0,
|
|
16230
16234
|
menuItemFactory: Aa
|
|
16231
16235
|
},
|
|
16232
|
-
[
|
|
16236
|
+
[io.id]: {
|
|
16233
16237
|
order: 1,
|
|
16234
16238
|
menuItemFactory: Ha
|
|
16235
16239
|
},
|
|
@@ -16237,7 +16241,7 @@ const mR = {
|
|
|
16237
16241
|
order: 2,
|
|
16238
16242
|
menuItemFactory: ka
|
|
16239
16243
|
},
|
|
16240
|
-
[
|
|
16244
|
+
[oo.id]: {
|
|
16241
16245
|
order: 3,
|
|
16242
16246
|
menuItemFactory: Va
|
|
16243
16247
|
}
|
|
@@ -16249,7 +16253,7 @@ const mR = {
|
|
|
16249
16253
|
order: 0,
|
|
16250
16254
|
menuItemFactory: Ya
|
|
16251
16255
|
},
|
|
16252
|
-
[
|
|
16256
|
+
[to.id]: {
|
|
16253
16257
|
order: 1,
|
|
16254
16258
|
menuItemFactory: Za
|
|
16255
16259
|
},
|
|
@@ -16269,7 +16273,7 @@ const mR = {
|
|
|
16269
16273
|
order: 1,
|
|
16270
16274
|
menuItemFactory: F0
|
|
16271
16275
|
},
|
|
16272
|
-
[
|
|
16276
|
+
[yo.id]: {
|
|
16273
16277
|
order: 1,
|
|
16274
16278
|
menuItemFactory: Rh
|
|
16275
16279
|
},
|
|
@@ -16642,7 +16646,7 @@ const mR = {
|
|
|
16642
16646
|
preconditions: (r) => Ne(r),
|
|
16643
16647
|
mac: Z.DELETE
|
|
16644
16648
|
}, qf = {
|
|
16645
|
-
id:
|
|
16649
|
+
id: Zo.id,
|
|
16646
16650
|
description: "shortcut.sheet.zoom-in",
|
|
16647
16651
|
binding: Z.EQUAL | Te.CTRL_COMMAND,
|
|
16648
16652
|
group: "3_sheet-view",
|
|
@@ -16655,7 +16659,7 @@ const mR = {
|
|
|
16655
16659
|
id: ud.id,
|
|
16656
16660
|
binding: Z.EQUAL | Te.CTRL_COMMAND
|
|
16657
16661
|
}, Kf = {
|
|
16658
|
-
id:
|
|
16662
|
+
id: Zo.id,
|
|
16659
16663
|
description: "shortcut.sheet.zoom-out",
|
|
16660
16664
|
binding: Z.MINUS | Te.CTRL_COMMAND,
|
|
16661
16665
|
group: "3_sheet-view",
|
|
@@ -16668,7 +16672,7 @@ const mR = {
|
|
|
16668
16672
|
id: ud.id,
|
|
16669
16673
|
binding: Z.MINUS | Te.CTRL_COMMAND
|
|
16670
16674
|
}, $f = {
|
|
16671
|
-
id:
|
|
16675
|
+
id: Zo.id,
|
|
16672
16676
|
description: "shortcut.sheet.reset-zoom",
|
|
16673
16677
|
binding: Z.Digit0 | Te.CTRL_COMMAND,
|
|
16674
16678
|
preconditions: Ne,
|
|
@@ -16695,7 +16699,7 @@ let il = class extends ae {
|
|
|
16695
16699
|
}
|
|
16696
16700
|
_initComponents() {
|
|
16697
16701
|
const r = this._componentManager;
|
|
16698
|
-
this.disposeWithMe(r.register(
|
|
16702
|
+
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
16703
|
}
|
|
16700
16704
|
_initCommands() {
|
|
16701
16705
|
[
|
|
@@ -16703,14 +16707,14 @@ let il = class extends ae {
|
|
|
16703
16707
|
hr,
|
|
16704
16708
|
ou,
|
|
16705
16709
|
iu,
|
|
16706
|
-
|
|
16710
|
+
Zo,
|
|
16707
16711
|
Qt,
|
|
16708
16712
|
Bt,
|
|
16709
16713
|
Yn,
|
|
16710
16714
|
Sa,
|
|
16711
16715
|
ga,
|
|
16712
|
-
Io,
|
|
16713
16716
|
yo,
|
|
16717
|
+
Mo,
|
|
16714
16718
|
ea,
|
|
16715
16719
|
ta,
|
|
16716
16720
|
gn,
|
|
@@ -16729,7 +16733,7 @@ let il = class extends ae {
|
|
|
16729
16733
|
qm,
|
|
16730
16734
|
na,
|
|
16731
16735
|
ra,
|
|
16732
|
-
|
|
16736
|
+
bo,
|
|
16733
16737
|
Qm,
|
|
16734
16738
|
yd,
|
|
16735
16739
|
Ed,
|
|
@@ -16737,28 +16741,28 @@ let il = class extends ae {
|
|
|
16737
16741
|
Pd,
|
|
16738
16742
|
ia,
|
|
16739
16743
|
$d,
|
|
16740
|
-
|
|
16744
|
+
qo,
|
|
16741
16745
|
oa,
|
|
16742
16746
|
hn,
|
|
16743
|
-
|
|
16747
|
+
po,
|
|
16744
16748
|
or,
|
|
16745
16749
|
sa,
|
|
16746
16750
|
la,
|
|
16747
16751
|
pm,
|
|
16748
16752
|
Md,
|
|
16749
|
-
|
|
16753
|
+
Go,
|
|
16750
16754
|
tn,
|
|
16751
16755
|
ma,
|
|
16752
16756
|
Zl,
|
|
16753
16757
|
_i,
|
|
16754
16758
|
bi,
|
|
16759
|
+
es,
|
|
16755
16760
|
$o,
|
|
16756
|
-
Jo,
|
|
16757
16761
|
Gd,
|
|
16758
16762
|
br,
|
|
16759
|
-
|
|
16763
|
+
go,
|
|
16760
16764
|
// permission
|
|
16761
|
-
|
|
16765
|
+
Fn,
|
|
16762
16766
|
gf,
|
|
16763
16767
|
da,
|
|
16764
16768
|
ci,
|
|
@@ -16835,8 +16839,8 @@ let il = class extends ae {
|
|
|
16835
16839
|
});
|
|
16836
16840
|
}
|
|
16837
16841
|
_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(
|
|
16842
|
+
const r = this._uiPartsService, e = this._injector, t = this._configService.getConfig(vn);
|
|
16843
|
+
(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
16844
|
}
|
|
16841
16845
|
_initFocusHandler() {
|
|
16842
16846
|
this.disposeWithMe(
|
|
@@ -16855,7 +16859,7 @@ il = SR([
|
|
|
16855
16859
|
qn(4, kl),
|
|
16856
16860
|
qn(5, Sd),
|
|
16857
16861
|
qn(6, Vl),
|
|
16858
|
-
qn(7,
|
|
16862
|
+
qn(7, bn)
|
|
16859
16863
|
], il);
|
|
16860
16864
|
const vR = (r = []) => {
|
|
16861
16865
|
const e = L(Ti);
|
|
@@ -16891,17 +16895,17 @@ var CR = Object.getOwnPropertyDescriptor, bR = (r, e, t, n) => {
|
|
|
16891
16895
|
(s = r[o]) && (i = s(i) || i);
|
|
16892
16896
|
return i;
|
|
16893
16897
|
}, Ih = (r, e) => (t, n) => e(t, n, r);
|
|
16894
|
-
let
|
|
16898
|
+
let Eo = class extends ae {
|
|
16895
16899
|
constructor(e, t) {
|
|
16896
16900
|
super();
|
|
16897
16901
|
_(this, "_previousSheetIndex", -1);
|
|
16898
16902
|
this._commandService = e, this._univerInstanceService = t, this.disposeWithMe(this._commandService.beforeCommandExecuted((n) => {
|
|
16899
|
-
if (n.id ===
|
|
16903
|
+
if (n.id === Wn.id)
|
|
16900
16904
|
return this._beforeAdjustActiveSheetOnRemoveSheet(
|
|
16901
16905
|
n
|
|
16902
16906
|
);
|
|
16903
16907
|
})), this.disposeWithMe(this._commandService.onCommandExecuted((n, i) => {
|
|
16904
|
-
if (n.id ===
|
|
16908
|
+
if (n.id === Wn.id)
|
|
16905
16909
|
return this._adjustActiveSheetOnRemoveSheet(n);
|
|
16906
16910
|
if (n.id === lr.id && n.params.hidden)
|
|
16907
16911
|
return this._adjustActiveSheetOnHideSheet(n);
|
|
@@ -16960,10 +16964,10 @@ let Mo = class extends ae {
|
|
|
16960
16964
|
});
|
|
16961
16965
|
}
|
|
16962
16966
|
};
|
|
16963
|
-
|
|
16967
|
+
Eo = bR([
|
|
16964
16968
|
Ih(0, D),
|
|
16965
16969
|
Ih(1, N)
|
|
16966
|
-
],
|
|
16970
|
+
], Eo);
|
|
16967
16971
|
function yh(r, e) {
|
|
16968
16972
|
const t = r.getSheetSize();
|
|
16969
16973
|
for (let n = e; n > -1; n--) {
|
|
@@ -16985,7 +16989,7 @@ var _R = Object.getOwnPropertyDescriptor, wR = (r, e, t, n) => {
|
|
|
16985
16989
|
(s = r[o]) && (i = s(i) || i);
|
|
16986
16990
|
return i;
|
|
16987
16991
|
}, pr = (r, e) => (t, n) => e(t, n, r);
|
|
16988
|
-
let
|
|
16992
|
+
let Po = class extends ae {
|
|
16989
16993
|
constructor(e, t, n, i, o, s, l) {
|
|
16990
16994
|
super();
|
|
16991
16995
|
// the DrawingTypeEnum should refer from drawing package, here we just use type, so no need to import the drawing package
|
|
@@ -17397,7 +17401,7 @@ let Eo = class extends ae {
|
|
|
17397
17401
|
};
|
|
17398
17402
|
}
|
|
17399
17403
|
};
|
|
17400
|
-
|
|
17404
|
+
Po = wR([
|
|
17401
17405
|
pr(0, V(WS)),
|
|
17402
17406
|
pr(1, be),
|
|
17403
17407
|
pr(2, N),
|
|
@@ -17405,7 +17409,7 @@ Eo = wR([
|
|
|
17405
17409
|
pr(4, D),
|
|
17406
17410
|
pr(5, Ll),
|
|
17407
17411
|
pr(6, V($))
|
|
17408
|
-
],
|
|
17412
|
+
], Po);
|
|
17409
17413
|
function ec(r) {
|
|
17410
17414
|
return Number.parseInt(r.replace("px", ""));
|
|
17411
17415
|
}
|
|
@@ -17413,8 +17417,8 @@ var RR = Object.getOwnPropertyDescriptor, IR = (r, e, t, n) => {
|
|
|
17413
17417
|
for (var i = n > 1 ? void 0 : n ? RR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
17414
17418
|
(s = r[o]) && (i = s(i) || i);
|
|
17415
17419
|
return i;
|
|
17416
|
-
}, Mh = (r, e) => (t, n) => e(t, n, r),
|
|
17417
|
-
let
|
|
17420
|
+
}, 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 || {});
|
|
17421
|
+
let To = class extends ae {
|
|
17418
17422
|
constructor(e, t) {
|
|
17419
17423
|
super();
|
|
17420
17424
|
_(this, "_currentAlert$", new Ae());
|
|
@@ -17459,11 +17463,11 @@ let Po = class extends ae {
|
|
|
17459
17463
|
}), this._currentAlert.clear(), this._currentAlert$.next(Array.from(this._currentAlert.entries()));
|
|
17460
17464
|
}
|
|
17461
17465
|
};
|
|
17462
|
-
|
|
17466
|
+
To = IR([
|
|
17463
17467
|
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",
|
|
17468
|
+
Mh(1, V(Po))
|
|
17469
|
+
], To);
|
|
17470
|
+
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
17471
|
cellAlert: yR,
|
|
17468
17472
|
cellAlertTitle: MR,
|
|
17469
17473
|
cellAlertIcon: ER,
|
|
@@ -17478,16 +17482,16 @@ function AR({ popup: r }) {
|
|
|
17478
17482
|
if (!e)
|
|
17479
17483
|
return null;
|
|
17480
17484
|
const { type: t, title: n, message: i } = e, o = {
|
|
17481
|
-
[
|
|
17482
|
-
[
|
|
17483
|
-
[
|
|
17485
|
+
[so.ERROR]: /* @__PURE__ */ w(zd, { className: qe(In.cellAlertIcon, In.cellAlertIconError) }),
|
|
17486
|
+
[so.INFO]: /* @__PURE__ */ w(Dc, { className: qe(In.cellAlertIcon, In.cellAlertIconInfo) }),
|
|
17487
|
+
[so.WARNING]: /* @__PURE__ */ w(Dc, { className: qe(In.cellAlertIcon, In.cellAlertIconWarning) })
|
|
17484
17488
|
};
|
|
17485
|
-
return /* @__PURE__ */ q("div", { className:
|
|
17486
|
-
/* @__PURE__ */ q("div", { className:
|
|
17489
|
+
return /* @__PURE__ */ q("div", { className: In.cellAlert, children: [
|
|
17490
|
+
/* @__PURE__ */ q("div", { className: In.cellAlertTitle, children: [
|
|
17487
17491
|
t ? o[t] : null,
|
|
17488
17492
|
n
|
|
17489
17493
|
] }),
|
|
17490
|
-
/* @__PURE__ */ w("div", { className:
|
|
17494
|
+
/* @__PURE__ */ w("div", { className: In.cellAlertContent, children: i })
|
|
17491
17495
|
] });
|
|
17492
17496
|
}
|
|
17493
17497
|
const tp = "univer.sheet.cell-alert";
|
|
@@ -17533,7 +17537,7 @@ const NR = "univer-sheet-paste-options-wrapper", DR = "univer-sheet-paste-option
|
|
|
17533
17537
|
};
|
|
17534
17538
|
if (i.endRow < 0 || i.endCol < 0)
|
|
17535
17539
|
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 =
|
|
17540
|
+
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
17541
|
if (!a || !l) return null;
|
|
17538
17542
|
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
17543
|
if (!h || !c || !h || !g || !m) return null;
|
|
@@ -17622,17 +17626,17 @@ const NR = "univer-sheet-paste-options-wrapper", DR = "univer-sheet-paste-option
|
|
|
17622
17626
|
);
|
|
17623
17627
|
}, jR = [
|
|
17624
17628
|
at.id,
|
|
17625
|
-
|
|
17629
|
+
No.id,
|
|
17626
17630
|
tn.id,
|
|
17627
17631
|
sr.id,
|
|
17628
|
-
No.id,
|
|
17629
17632
|
Do.id,
|
|
17630
17633
|
Lo.id,
|
|
17631
17634
|
Wo.id,
|
|
17635
|
+
Bo.id,
|
|
17632
17636
|
Wl.id,
|
|
17633
17637
|
Bl.id,
|
|
17634
17638
|
an.id,
|
|
17635
|
-
|
|
17639
|
+
ao.id,
|
|
17636
17640
|
Ee.id,
|
|
17637
17641
|
Jp
|
|
17638
17642
|
];
|
|
@@ -17799,7 +17803,7 @@ function np(r, e, t, n) {
|
|
|
17799
17803
|
var C;
|
|
17800
17804
|
let p;
|
|
17801
17805
|
if (!f.p && f.v && !e) {
|
|
17802
|
-
const b = String(f.v), R =
|
|
17806
|
+
const b = String(f.v), R = Dn.parseValue(b);
|
|
17803
17807
|
(R == null ? void 0 : R.v) !== void 0 && typeof R.v == "number" && (p = R.v);
|
|
17804
17808
|
}
|
|
17805
17809
|
const { row: S, col: v } = c(g, m);
|
|
@@ -17848,7 +17852,7 @@ function rp(r, e, t, n = !1) {
|
|
|
17848
17852
|
r: null,
|
|
17849
17853
|
t: null
|
|
17850
17854
|
}));
|
|
17851
|
-
const v = String(f.v), C =
|
|
17855
|
+
const v = String(f.v), C = Dn.parseValue(v);
|
|
17852
17856
|
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
17857
|
const { row: b, col: R } = d(g, m);
|
|
17854
17858
|
c.setValue(b, R, p);
|
|
@@ -18029,10 +18033,10 @@ var QR = Object.getOwnPropertyDescriptor, KR = (r, e, t, n) => {
|
|
|
18029
18033
|
return i;
|
|
18030
18034
|
}, sn = (r, e) => (t, n) => e(t, n, r);
|
|
18031
18035
|
const JR = [
|
|
18036
|
+
Bo.id,
|
|
18032
18037
|
Wo.id,
|
|
18033
18038
|
Lo.id,
|
|
18034
18039
|
Do.id,
|
|
18035
|
-
No.id,
|
|
18036
18040
|
sr.id,
|
|
18037
18041
|
Wl.id,
|
|
18038
18042
|
Bl.id
|
|
@@ -18075,10 +18079,10 @@ let Ri = class extends Un {
|
|
|
18075
18079
|
[mn, Ym, fn].forEach(
|
|
18076
18080
|
(t) => this.disposeWithMe(this._commandService.registerMultipleCommand(t))
|
|
18077
18081
|
), [
|
|
18078
|
-
no,
|
|
18079
18082
|
ro,
|
|
18080
|
-
li,
|
|
18081
18083
|
io,
|
|
18084
|
+
li,
|
|
18085
|
+
oo,
|
|
18082
18086
|
Fc,
|
|
18083
18087
|
Zm
|
|
18084
18088
|
].forEach((t) => this.disposeWithMe(this._commandService.registerCommand(t))), this.disposeWithMe(this._sheetClipboardService.addClipboardHook(this._initCopyingHooks())), this.disposeWithMe(this._sheetClipboardService.addClipboardHook(this._initPastingHook()));
|
|
@@ -18179,10 +18183,10 @@ let Ri = class extends Un {
|
|
|
18179
18183
|
rowInfo: S
|
|
18180
18184
|
};
|
|
18181
18185
|
a.push({
|
|
18182
|
-
id:
|
|
18186
|
+
id: Wo.id,
|
|
18183
18187
|
params: C
|
|
18184
18188
|
}), c.push({
|
|
18185
|
-
id:
|
|
18189
|
+
id: Do.id,
|
|
18186
18190
|
params: {
|
|
18187
18191
|
unitId: t,
|
|
18188
18192
|
subUnitId: n,
|
|
@@ -18215,10 +18219,10 @@ let Ri = class extends Un {
|
|
|
18215
18219
|
rowHeight: f
|
|
18216
18220
|
};
|
|
18217
18221
|
a.push({
|
|
18218
|
-
id:
|
|
18222
|
+
id: ao.id,
|
|
18219
18223
|
params: S
|
|
18220
18224
|
}), c.push({
|
|
18221
|
-
id:
|
|
18225
|
+
id: ao.id,
|
|
18222
18226
|
params: {
|
|
18223
18227
|
...S,
|
|
18224
18228
|
rowHeight: p
|
|
@@ -18250,10 +18254,10 @@ let Ri = class extends Un {
|
|
|
18250
18254
|
}))
|
|
18251
18255
|
};
|
|
18252
18256
|
c.push({
|
|
18253
|
-
id:
|
|
18257
|
+
id: Bo.id,
|
|
18254
18258
|
params: R
|
|
18255
18259
|
}), d.push({
|
|
18256
|
-
id:
|
|
18260
|
+
id: Lo.id,
|
|
18257
18261
|
params: {
|
|
18258
18262
|
unitId: t,
|
|
18259
18263
|
subUnitId: n,
|
|
@@ -18517,7 +18521,7 @@ let Ri = class extends Un {
|
|
|
18517
18521
|
n.id === hr.id ? this._sheetClipboardService.removeMarkSelection() : JR.includes(n.id) && this._sheetClipboardService.removeMarkSelection();
|
|
18518
18522
|
})
|
|
18519
18523
|
);
|
|
18520
|
-
const e = this._configService.getConfig(
|
|
18524
|
+
const e = this._configService.getConfig(vn);
|
|
18521
18525
|
(t = e == null ? void 0 : e.clipboardConfig) != null && t.hidePasteOptions || (this.disposeWithMe(
|
|
18522
18526
|
this._commandService.onCommandExecuted((n) => {
|
|
18523
18527
|
jR.includes(n.id) && this._sheetClipboardService.disposePasteOptionsCache();
|
|
@@ -18535,9 +18539,9 @@ let Ri = class extends Un {
|
|
|
18535
18539
|
}
|
|
18536
18540
|
_initUIComponents() {
|
|
18537
18541
|
var t;
|
|
18538
|
-
const e = this._configService.getConfig(
|
|
18542
|
+
const e = this._configService.getConfig(vn);
|
|
18539
18543
|
(t = e == null ? void 0 : e.clipboardConfig) != null && t.hidePasteOptions || this.disposeWithMe(
|
|
18540
|
-
this._uiPartsService.registerComponent(
|
|
18544
|
+
this._uiPartsService.registerComponent($i.CONTENT, () => ii(zR, this._injector))
|
|
18541
18545
|
);
|
|
18542
18546
|
}
|
|
18543
18547
|
};
|
|
@@ -18547,7 +18551,7 @@ Ri = KR([
|
|
|
18547
18551
|
sn(2, be),
|
|
18548
18552
|
sn(3, D),
|
|
18549
18553
|
sn(4, Ve),
|
|
18550
|
-
sn(5,
|
|
18554
|
+
sn(5, bn),
|
|
18551
18555
|
sn(6, on),
|
|
18552
18556
|
sn(7, ng),
|
|
18553
18557
|
sn(8, V(He)),
|
|
@@ -18558,7 +18562,7 @@ var $R = Object.getOwnPropertyDescriptor, eI = (r, e, t, n) => {
|
|
|
18558
18562
|
(s = r[o]) && (i = s(i) || i);
|
|
18559
18563
|
return i;
|
|
18560
18564
|
}, Ph = (r, e) => (t, n) => e(t, n, r);
|
|
18561
|
-
let
|
|
18565
|
+
let Oo = class extends ae {
|
|
18562
18566
|
constructor(e, t) {
|
|
18563
18567
|
super();
|
|
18564
18568
|
_(this, "_currentCell$", new Ae());
|
|
@@ -18619,10 +18623,10 @@ let To = class extends ae {
|
|
|
18619
18623
|
});
|
|
18620
18624
|
}
|
|
18621
18625
|
};
|
|
18622
|
-
|
|
18626
|
+
Oo = eI([
|
|
18623
18627
|
Ph(0, N),
|
|
18624
18628
|
Ph(1, be)
|
|
18625
|
-
],
|
|
18629
|
+
], Oo);
|
|
18626
18630
|
var tI = Object.getOwnPropertyDescriptor, nI = (r, e, t, n) => {
|
|
18627
18631
|
for (var i = n > 1 ? void 0 : n ? tI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
18628
18632
|
(s = r[o]) && (i = s(i) || i);
|
|
@@ -18654,7 +18658,7 @@ let sl = class extends ae {
|
|
|
18654
18658
|
};
|
|
18655
18659
|
sl = nI([
|
|
18656
18660
|
tc(1, be),
|
|
18657
|
-
tc(2, V(
|
|
18661
|
+
tc(2, V(Oo)),
|
|
18658
18662
|
tc(3, V(he))
|
|
18659
18663
|
], sl);
|
|
18660
18664
|
const au = (r, e) => {
|
|
@@ -19168,7 +19172,7 @@ let ll = class extends ae {
|
|
|
19168
19172
|
if (s && s.row === r.location.row && s.col === r.location.col && s.subUnitId === r.location.subUnitId && s.unitId === r.location.unitId)
|
|
19169
19173
|
return;
|
|
19170
19174
|
this._cellAlertManagerService.showAlert({
|
|
19171
|
-
type:
|
|
19175
|
+
type: so.ERROR,
|
|
19172
19176
|
title: this._localeService.t("info.error"),
|
|
19173
19177
|
message: this._localeService.t("info.forceStringInfo"),
|
|
19174
19178
|
location: r.location,
|
|
@@ -19193,7 +19197,7 @@ let ll = class extends ae {
|
|
|
19193
19197
|
};
|
|
19194
19198
|
ll = dI([
|
|
19195
19199
|
ds(1, V(Ar)),
|
|
19196
|
-
ds(2, V(
|
|
19200
|
+
ds(2, V(To)),
|
|
19197
19201
|
ds(3, V(He)),
|
|
19198
19202
|
ds(4, BS)
|
|
19199
19203
|
], ll);
|
|
@@ -19354,7 +19358,7 @@ function _I() {
|
|
|
19354
19358
|
return r ? /* @__PURE__ */ w(wI, { workbook: r }) : null;
|
|
19355
19359
|
}
|
|
19356
19360
|
function wI(r) {
|
|
19357
|
-
const { workbook: e } = r, [t, n] = ne([]), [i, o] = ne(""), s =
|
|
19361
|
+
const { workbook: e } = r, [t, n] = ne([]), [i, o] = ne(""), s = kn(/* @__PURE__ */ new Map()), l = L(D), a = Ln(() => {
|
|
19358
19362
|
const d = e.getActiveSheet().getSheetId(), u = e.getSheets(), h = e.getActiveSheet(), g = u.filter((m) => !m.isSheetHidden()).map((m, f) => {
|
|
19359
19363
|
var p;
|
|
19360
19364
|
return {
|
|
@@ -19372,7 +19376,7 @@ function wI(r) {
|
|
|
19372
19376
|
s.current.clear();
|
|
19373
19377
|
}, [e]);
|
|
19374
19378
|
Pe(() => a(), [a]);
|
|
19375
|
-
const c =
|
|
19379
|
+
const c = Ln((d) => {
|
|
19376
19380
|
l.executeCommand(rt.id, {
|
|
19377
19381
|
unitId: e.getUnitId(),
|
|
19378
19382
|
subUnitId: d
|
|
@@ -19382,7 +19386,7 @@ function wI(r) {
|
|
|
19382
19386
|
const d = l.onCommandExecuted((u) => {
|
|
19383
19387
|
switch (u.id) {
|
|
19384
19388
|
case lr.id:
|
|
19385
|
-
case
|
|
19389
|
+
case Wn.id:
|
|
19386
19390
|
case wd.id:
|
|
19387
19391
|
case Vr.id:
|
|
19388
19392
|
case _d.id:
|
|
@@ -19474,7 +19478,7 @@ let ul = class extends ae {
|
|
|
19474
19478
|
}
|
|
19475
19479
|
_initCustomComponents() {
|
|
19476
19480
|
const r = this._componentManager;
|
|
19477
|
-
this.disposeWithMe(r.register(
|
|
19481
|
+
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
19482
|
}
|
|
19479
19483
|
_initCommands() {
|
|
19480
19484
|
[
|
|
@@ -19482,14 +19486,14 @@ let ul = class extends ae {
|
|
|
19482
19486
|
hr,
|
|
19483
19487
|
ou,
|
|
19484
19488
|
iu,
|
|
19485
|
-
|
|
19489
|
+
Zo,
|
|
19486
19490
|
Qt,
|
|
19487
19491
|
Bt,
|
|
19488
19492
|
Yn,
|
|
19489
19493
|
Sa,
|
|
19490
19494
|
ga,
|
|
19491
|
-
Io,
|
|
19492
19495
|
yo,
|
|
19496
|
+
Mo,
|
|
19493
19497
|
ea,
|
|
19494
19498
|
ta,
|
|
19495
19499
|
gn,
|
|
@@ -19508,34 +19512,34 @@ let ul = class extends ae {
|
|
|
19508
19512
|
qm,
|
|
19509
19513
|
na,
|
|
19510
19514
|
ra,
|
|
19511
|
-
|
|
19515
|
+
bo,
|
|
19512
19516
|
yd,
|
|
19513
19517
|
Ed,
|
|
19514
19518
|
Td,
|
|
19515
19519
|
Pd,
|
|
19516
19520
|
ia,
|
|
19517
19521
|
$d,
|
|
19518
|
-
|
|
19522
|
+
qo,
|
|
19519
19523
|
oa,
|
|
19520
19524
|
hn,
|
|
19521
|
-
|
|
19525
|
+
po,
|
|
19522
19526
|
or,
|
|
19523
19527
|
sa,
|
|
19524
19528
|
la,
|
|
19525
19529
|
Md,
|
|
19526
|
-
|
|
19530
|
+
Go,
|
|
19527
19531
|
tn,
|
|
19528
19532
|
ma,
|
|
19529
19533
|
Zl,
|
|
19530
19534
|
_i,
|
|
19531
19535
|
bi,
|
|
19536
|
+
es,
|
|
19532
19537
|
$o,
|
|
19533
|
-
Jo,
|
|
19534
19538
|
Gd,
|
|
19535
19539
|
br,
|
|
19536
|
-
|
|
19540
|
+
go,
|
|
19537
19541
|
// permission
|
|
19538
|
-
|
|
19542
|
+
Fn,
|
|
19539
19543
|
gf,
|
|
19540
19544
|
da,
|
|
19541
19545
|
ci,
|
|
@@ -19608,7 +19612,7 @@ let ul = class extends ae {
|
|
|
19608
19612
|
});
|
|
19609
19613
|
}
|
|
19610
19614
|
_initWorkbenchParts() {
|
|
19611
|
-
this._uiPartsService.registerComponent(
|
|
19615
|
+
this._uiPartsService.registerComponent($i.HEADER, () => ii(_I, this._injector));
|
|
19612
19616
|
}
|
|
19613
19617
|
_initFocusHandler() {
|
|
19614
19618
|
this.disposeWithMe(
|
|
@@ -19631,8 +19635,8 @@ var MI = Object.getOwnPropertyDescriptor, EI = (r, e, t, n) => {
|
|
|
19631
19635
|
for (var i = n > 1 ? void 0 : n ? MI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
19632
19636
|
(s = r[o]) && (i = s(i) || i);
|
|
19633
19637
|
return i;
|
|
19634
|
-
},
|
|
19635
|
-
let
|
|
19638
|
+
}, yn = (r, e) => (t, n) => e(t, n, r);
|
|
19639
|
+
let xo = class extends ae {
|
|
19636
19640
|
constructor(e, t, n, i, o, s, l, a, c) {
|
|
19637
19641
|
super();
|
|
19638
19642
|
_(this, "disposableCollection", new _t());
|
|
@@ -19713,17 +19717,17 @@ let Oo = class extends ae {
|
|
|
19713
19717
|
break;
|
|
19714
19718
|
case mn.id:
|
|
19715
19719
|
n = this._sheetPermissionCheckController.permissionCheckWithRanges({
|
|
19716
|
-
workbookTypes: [
|
|
19720
|
+
workbookTypes: [qi],
|
|
19717
19721
|
rangeTypes: [bc],
|
|
19718
19722
|
worksheetTypes: [Hs]
|
|
19719
|
-
}), i = this._localeService.t("permission.dialog.copyErr"), (o = this._permissionService.getPermissionPoint(new
|
|
19723
|
+
}), 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
19724
|
break;
|
|
19721
19725
|
case Ym.id:
|
|
19722
19726
|
n = this._sheetPermissionCheckController.permissionCheckWithRanges({
|
|
19723
|
-
workbookTypes: [
|
|
19727
|
+
workbookTypes: [qi, J],
|
|
19724
19728
|
rangeTypes: [bc, re],
|
|
19725
19729
|
worksheetTypes: [Hs, te]
|
|
19726
|
-
}), i = this._localeService.t("permission.dialog.copyErr"), (s = this._permissionService.getPermissionPoint(new
|
|
19730
|
+
}), 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
19731
|
break;
|
|
19728
19732
|
case br.id:
|
|
19729
19733
|
n = this._permissionCheckByAutoFillCommand(t), i = this._localeService.t("permission.dialog.autoFillErr");
|
|
@@ -19775,22 +19779,22 @@ let Oo = class extends ae {
|
|
|
19775
19779
|
});
|
|
19776
19780
|
}
|
|
19777
19781
|
};
|
|
19778
|
-
|
|
19779
|
-
|
|
19780
|
-
|
|
19781
|
-
|
|
19782
|
-
|
|
19783
|
-
|
|
19784
|
-
|
|
19785
|
-
|
|
19786
|
-
|
|
19787
|
-
|
|
19788
|
-
],
|
|
19782
|
+
xo = EI([
|
|
19783
|
+
yn(0, D),
|
|
19784
|
+
yn(1, N),
|
|
19785
|
+
yn(2, ot),
|
|
19786
|
+
yn(3, Ei),
|
|
19787
|
+
yn(4, V(et)),
|
|
19788
|
+
yn(5, Lr),
|
|
19789
|
+
yn(6, V(He)),
|
|
19790
|
+
yn(7, Ve),
|
|
19791
|
+
yn(8, V(Xg))
|
|
19792
|
+
], xo);
|
|
19789
19793
|
var PI = Object.getOwnPropertyDescriptor, TI = (r, e, t, n) => {
|
|
19790
19794
|
for (var i = n > 1 ? void 0 : n ? PI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
19791
19795
|
(s = r[o]) && (i = s(i) || i);
|
|
19792
19796
|
return i;
|
|
19793
|
-
},
|
|
19797
|
+
}, Mn = (r, e) => (t, n) => e(t, n, r);
|
|
19794
19798
|
let hl = class extends Un {
|
|
19795
19799
|
constructor(e, t, n, i, o, s, l, a, c, d) {
|
|
19796
19800
|
super();
|
|
@@ -19918,23 +19922,23 @@ let hl = class extends Un {
|
|
|
19918
19922
|
}
|
|
19919
19923
|
};
|
|
19920
19924
|
hl = TI([
|
|
19921
|
-
|
|
19922
|
-
|
|
19923
|
-
|
|
19924
|
-
|
|
19925
|
-
|
|
19926
|
-
|
|
19927
|
-
|
|
19928
|
-
|
|
19929
|
-
|
|
19925
|
+
Mn(1, N),
|
|
19926
|
+
Mn(2, ot),
|
|
19927
|
+
Mn(3, V($)),
|
|
19928
|
+
Mn(4, V(et)),
|
|
19929
|
+
Mn(5, V(Ro)),
|
|
19930
|
+
Mn(6, lt),
|
|
19931
|
+
Mn(7, V(wo)),
|
|
19932
|
+
Mn(8, V(Uo)),
|
|
19933
|
+
Mn(9, ld($s))
|
|
19930
19934
|
], hl);
|
|
19931
19935
|
var OI = Object.getOwnPropertyDescriptor, xI = (r, e, t, n) => {
|
|
19932
19936
|
for (var i = n > 1 ? void 0 : n ? OI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
19933
19937
|
(s = r[o]) && (i = s(i) || i);
|
|
19934
19938
|
return i;
|
|
19935
|
-
},
|
|
19939
|
+
}, zi = (r, e) => (t, n) => e(t, n, r);
|
|
19936
19940
|
const AI = "SHEET_PERMISSION_PASTE_PLUGIN";
|
|
19937
|
-
let
|
|
19941
|
+
let Ao = class extends ae {
|
|
19938
19942
|
constructor(e, t, n, i, o) {
|
|
19939
19943
|
super();
|
|
19940
19944
|
_(this, "disposableCollection", new _t());
|
|
@@ -19973,18 +19977,18 @@ let xo = class extends ae {
|
|
|
19973
19977
|
);
|
|
19974
19978
|
}
|
|
19975
19979
|
};
|
|
19976
|
-
|
|
19977
|
-
|
|
19978
|
-
|
|
19979
|
-
|
|
19980
|
-
|
|
19981
|
-
|
|
19982
|
-
],
|
|
19980
|
+
Ao = xI([
|
|
19981
|
+
zi(0, N),
|
|
19982
|
+
zi(1, V($)),
|
|
19983
|
+
zi(2, V(He)),
|
|
19984
|
+
zi(3, V(on)),
|
|
19985
|
+
zi(4, V(Xg))
|
|
19986
|
+
], Ao);
|
|
19983
19987
|
var HI = Object.getOwnPropertyDescriptor, kI = (r, e, t, n) => {
|
|
19984
19988
|
for (var i = n > 1 ? void 0 : n ? HI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
19985
19989
|
(s = r[o]) && (i = s(i) || i);
|
|
19986
19990
|
return i;
|
|
19987
|
-
},
|
|
19991
|
+
}, ji = (r, e) => (t, n) => e(t, n, r);
|
|
19988
19992
|
const VI = cr("statusBarPermissionCorrect");
|
|
19989
19993
|
class NI {
|
|
19990
19994
|
constructor() {
|
|
@@ -20006,7 +20010,7 @@ class NI {
|
|
|
20006
20010
|
if (!((g = a == null ? void 0 : a.n) != null && g.pattern))
|
|
20007
20011
|
return;
|
|
20008
20012
|
const { pattern: u } = a.n;
|
|
20009
|
-
d[u] || (d[u] =
|
|
20013
|
+
d[u] || (d[u] = Dn.getInfo(u)), d[u].isDate && s(c);
|
|
20010
20014
|
};
|
|
20011
20015
|
if (typeof o == "string" && i === jt.NUMBER) {
|
|
20012
20016
|
const a = Number(o);
|
|
@@ -20187,11 +20191,11 @@ let Ii = class extends ae {
|
|
|
20187
20191
|
}
|
|
20188
20192
|
};
|
|
20189
20193
|
Ii = kI([
|
|
20190
|
-
|
|
20191
|
-
|
|
20192
|
-
|
|
20193
|
-
|
|
20194
|
-
|
|
20194
|
+
ji(0, N),
|
|
20195
|
+
ji(1, V($)),
|
|
20196
|
+
ji(2, $l),
|
|
20197
|
+
ji(3, D),
|
|
20198
|
+
ji(4, V(Hv))
|
|
20195
20199
|
], Ii);
|
|
20196
20200
|
var LI = Object.getOwnPropertyDescriptor, WI = (r, e, t, n) => {
|
|
20197
20201
|
for (var i = n > 1 ? void 0 : n ? LI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -20242,7 +20246,7 @@ gl = WI([
|
|
|
20242
20246
|
hs(1, N),
|
|
20243
20247
|
hs(2, ot),
|
|
20244
20248
|
hs(3, V(Ii)),
|
|
20245
|
-
hs(4, V(
|
|
20249
|
+
hs(4, V(Uo))
|
|
20246
20250
|
], gl);
|
|
20247
20251
|
const lp = (r, e, t, n, i) => {
|
|
20248
20252
|
const o = r.get(He), s = r.get(St), l = r.get(et);
|
|
@@ -20427,7 +20431,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20427
20431
|
const M = {
|
|
20428
20432
|
header: { title: `${h.t("permission.panel.title")}` },
|
|
20429
20433
|
children: {
|
|
20430
|
-
label:
|
|
20434
|
+
label: Io,
|
|
20431
20435
|
showDetail: !1
|
|
20432
20436
|
},
|
|
20433
20437
|
width: 330
|
|
@@ -20572,7 +20576,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20572
20576
|
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
20577
|
if (!C)
|
|
20574
20578
|
return null;
|
|
20575
|
-
const b = C == null ? void 0 : C.getUnitId(), R =
|
|
20579
|
+
const b = C == null ? void 0 : C.getUnitId(), R = Ln(async (O) => {
|
|
20576
20580
|
var Ie;
|
|
20577
20581
|
const k = C.getActiveSheet(), F = C.getUnitId(), X = k.getSheetId(), B = [], j = [];
|
|
20578
20582
|
C.getSheets().forEach((G) => {
|
|
@@ -20627,7 +20631,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20627
20631
|
const M = (O) => {
|
|
20628
20632
|
const { unitId: k, subUnitId: F, unitType: X } = O;
|
|
20629
20633
|
let B;
|
|
20630
|
-
X ===
|
|
20634
|
+
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
20635
|
};
|
|
20632
20636
|
Pe(() => {
|
|
20633
20637
|
p.reset();
|
|
@@ -20649,7 +20653,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20649
20653
|
const k = {
|
|
20650
20654
|
header: { title: "permission.panel.title" },
|
|
20651
20655
|
children: {
|
|
20652
|
-
label:
|
|
20656
|
+
label: Io,
|
|
20653
20657
|
showDetail: !0,
|
|
20654
20658
|
rule: se.deepClone(O),
|
|
20655
20659
|
oldRule: se.deepClone(O)
|
|
@@ -20679,13 +20683,13 @@ const lp = (r, e, t, n, i) => {
|
|
|
20679
20683
|
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
20684
|
let _e = "";
|
|
20681
20685
|
const Ie = C.getSheetBySheetId(k.subUnitId), G = Ie == null ? void 0 : Ie.getName();
|
|
20682
|
-
if (k.unitType ===
|
|
20686
|
+
if (k.unitType === xn.SelectRange) {
|
|
20683
20687
|
const ue = k.ranges, ve = ue != null && ue.length ? ue.map((tt) => {
|
|
20684
20688
|
const bt = Jg(tt);
|
|
20685
20689
|
return bt === "NaN" ? "" : bt;
|
|
20686
20690
|
}).filter((tt) => !!tt).join(",") : "";
|
|
20687
20691
|
_e = `${G}(${ve})`;
|
|
20688
|
-
} else k.unitType ===
|
|
20692
|
+
} else k.unitType === xn.Worksheet && (_e = G || "");
|
|
20689
20693
|
return /* @__PURE__ */ q(
|
|
20690
20694
|
"div",
|
|
20691
20695
|
{
|
|
@@ -20697,10 +20701,10 @@ const lp = (r, e, t, n, i) => {
|
|
|
20697
20701
|
const bt = tt.getSheetId();
|
|
20698
20702
|
if (ue !== bt)
|
|
20699
20703
|
return !1;
|
|
20700
|
-
if (ve ===
|
|
20704
|
+
if (ve === xn.SelectRange) {
|
|
20701
20705
|
const gt = k.ranges || [];
|
|
20702
20706
|
gt !== m && f(gt);
|
|
20703
|
-
} else if (ve ===
|
|
20707
|
+
} else if (ve === xn.Worksheet) {
|
|
20704
20708
|
const gt = [{ startRow: 0, endRow: tt.getRowCount() - 1, startColumn: 0, endColumn: tt.getColumnCount() - 1 }];
|
|
20705
20709
|
gt !== m && f(gt);
|
|
20706
20710
|
}
|
|
@@ -20744,7 +20748,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20744
20748
|
const O = {
|
|
20745
20749
|
header: { title: `${i.t("permission.panel.title")}` },
|
|
20746
20750
|
children: {
|
|
20747
|
-
label:
|
|
20751
|
+
label: Io,
|
|
20748
20752
|
showDetail: !0
|
|
20749
20753
|
},
|
|
20750
20754
|
width: 330
|
|
@@ -20834,7 +20838,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20834
20838
|
}));
|
|
20835
20839
|
let I = b == null ? void 0 : b.permissionId;
|
|
20836
20840
|
I ? t.update({
|
|
20837
|
-
objectType:
|
|
20841
|
+
objectType: xn.Worksheet,
|
|
20838
20842
|
objectID: I,
|
|
20839
20843
|
unitID: v,
|
|
20840
20844
|
strategies: R,
|
|
@@ -20851,7 +20855,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20851
20855
|
P && o.updatePermissionPoint(M.id, P.role === Nt.Editor);
|
|
20852
20856
|
});
|
|
20853
20857
|
}) : (I = await t.create({
|
|
20854
|
-
objectType:
|
|
20858
|
+
objectType: xn.Worksheet,
|
|
20855
20859
|
worksheetObject: {
|
|
20856
20860
|
unitID: v,
|
|
20857
20861
|
collaborators: a,
|
|
@@ -21185,7 +21189,7 @@ var dM = Object.getOwnPropertyDescriptor, cu = (r, e, t, n) => {
|
|
|
21185
21189
|
(s = r[o]) && (i = s(i) || i);
|
|
21186
21190
|
return i;
|
|
21187
21191
|
}, Xt = (r, e) => (t, n) => e(t, n, r);
|
|
21188
|
-
let
|
|
21192
|
+
let Ho = class extends ae {
|
|
21189
21193
|
constructor(r, e, t) {
|
|
21190
21194
|
super(), this._injector = r, this._componentManager = e, this._uiPartsService = t, this._init();
|
|
21191
21195
|
}
|
|
@@ -21199,7 +21203,7 @@ let Ao = class extends ae {
|
|
|
21199
21203
|
[v0, Zd],
|
|
21200
21204
|
[C0, Wr],
|
|
21201
21205
|
[hf, Yd],
|
|
21202
|
-
[
|
|
21206
|
+
[Io, Py],
|
|
21203
21207
|
[cf, Jy],
|
|
21204
21208
|
[df, By],
|
|
21205
21209
|
[sp, nM]
|
|
@@ -21212,15 +21216,15 @@ let Ao = class extends ae {
|
|
|
21212
21216
|
}
|
|
21213
21217
|
_initUiPartComponents() {
|
|
21214
21218
|
var t;
|
|
21215
|
-
const e = this._injector.get(
|
|
21219
|
+
const e = this._injector.get(bn).getConfig(vn);
|
|
21216
21220
|
(t = e == null ? void 0 : e.customComponents) != null && t.has(jc) || this.disposeWithMe(this._uiPartsService.registerComponent(jc, () => ii(cM, this._injector)));
|
|
21217
21221
|
}
|
|
21218
21222
|
};
|
|
21219
|
-
|
|
21223
|
+
Ho = cu([
|
|
21220
21224
|
Xt(0, V(It)),
|
|
21221
21225
|
Xt(1, V(Xn)),
|
|
21222
21226
|
Xt(2, V(Vl))
|
|
21223
|
-
],
|
|
21227
|
+
], Ho);
|
|
21224
21228
|
let ml = class extends ae {
|
|
21225
21229
|
constructor(e, t, n, i, o) {
|
|
21226
21230
|
var l;
|
|
@@ -21228,7 +21232,7 @@ let ml = class extends ae {
|
|
|
21228
21232
|
_(this, "_rangeProtectionCanViewRenderExtension", new oM());
|
|
21229
21233
|
_(this, "_rangeProtectionCanNotViewRenderExtension", new sM());
|
|
21230
21234
|
this._context = e, this._rangeProtectionRuleModel = t, this._sheetSkeletonManagerService = n, this._permissionService = i, this._configService = o;
|
|
21231
|
-
const s = this._configService.getConfig(
|
|
21235
|
+
const s = this._configService.getConfig(vn);
|
|
21232
21236
|
(l = s == null ? void 0 : s.customComponents) != null && l.has(af) || (this._initRender(), this._initSkeleton(), this.disposeWithMe(this._rangeProtectionRuleModel.ruleChange$.subscribe((a) => {
|
|
21233
21237
|
var c, d;
|
|
21234
21238
|
((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 +21258,7 @@ ml = cu([
|
|
|
21254
21258
|
Xt(1, V(et)),
|
|
21255
21259
|
Xt(2, V(he)),
|
|
21256
21260
|
Xt(3, ot),
|
|
21257
|
-
Xt(4,
|
|
21261
|
+
Xt(4, bn)
|
|
21258
21262
|
], ml);
|
|
21259
21263
|
let fl = class extends ae {
|
|
21260
21264
|
constructor(e, t, n, i, o, s) {
|
|
@@ -21262,7 +21266,7 @@ let fl = class extends ae {
|
|
|
21262
21266
|
super();
|
|
21263
21267
|
_(this, "_worksheetProtectionRenderExtension", new aM());
|
|
21264
21268
|
this._context = e, this._renderManagerService = t, this._univerInstanceService = n, this._sheetSkeletonManagerService = i, this._worksheetProtectionRuleModel = o, this._configService = s;
|
|
21265
|
-
const l = this._configService.getConfig(
|
|
21269
|
+
const l = this._configService.getConfig(vn);
|
|
21266
21270
|
(a = l == null ? void 0 : l.customComponents) != null && a.has(af) || (this._initRender(), this._initSkeleton());
|
|
21267
21271
|
}
|
|
21268
21272
|
_initRender() {
|
|
@@ -21284,7 +21288,7 @@ fl = cu([
|
|
|
21284
21288
|
Xt(2, V(N)),
|
|
21285
21289
|
Xt(3, V(he)),
|
|
21286
21290
|
Xt(4, V(St)),
|
|
21287
|
-
Xt(5, V(
|
|
21291
|
+
Xt(5, V(bn))
|
|
21288
21292
|
], fl);
|
|
21289
21293
|
var uM = Object.getOwnPropertyDescriptor, hM = (r, e, t, n) => {
|
|
21290
21294
|
for (var i = n > 1 ? void 0 : n ? uM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -21313,7 +21317,7 @@ let pl = class extends ae {
|
|
|
21313
21317
|
endRow: t.endRow,
|
|
21314
21318
|
endColumn: t.endColumn
|
|
21315
21319
|
}
|
|
21316
|
-
}), this._formatPainterService.getStatus() === Zt.ONCE && this._commandService.executeCommand(
|
|
21320
|
+
}), this._formatPainterService.getStatus() === Zt.ONCE && this._commandService.executeCommand(qo.id);
|
|
21317
21321
|
}
|
|
21318
21322
|
})
|
|
21319
21323
|
);
|
|
@@ -21336,7 +21340,7 @@ var gM = Object.getOwnPropertyDescriptor, mM = (r, e, t, n) => {
|
|
|
21336
21340
|
for (var i = n > 1 ? void 0 : n ? gM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
21337
21341
|
(s = r[o]) && (i = s(i) || i);
|
|
21338
21342
|
return i;
|
|
21339
|
-
},
|
|
21343
|
+
}, Yi = (r, e) => (t, n) => e(t, n, r);
|
|
21340
21344
|
let Gc = class extends ae {
|
|
21341
21345
|
constructor(r, e, t, n, i, o) {
|
|
21342
21346
|
super(), this._context = r, this._layoutService = e, this._contextMenuService = t, this._selectionManagerService = n, this._selectionRenderService = i, this._sheetSkeletonManagerService = o, this._init();
|
|
@@ -21382,11 +21386,11 @@ let Gc = class extends ae {
|
|
|
21382
21386
|
}
|
|
21383
21387
|
};
|
|
21384
21388
|
Gc = mM([
|
|
21385
|
-
|
|
21386
|
-
|
|
21387
|
-
|
|
21388
|
-
|
|
21389
|
-
|
|
21389
|
+
Yi(1, Al),
|
|
21390
|
+
Yi(2, Hl),
|
|
21391
|
+
Yi(3, V($)),
|
|
21392
|
+
Yi(4, lt),
|
|
21393
|
+
Yi(5, V(he))
|
|
21390
21394
|
], Gc);
|
|
21391
21395
|
var fM = Object.getOwnPropertyDescriptor, pM = (r, e, t, n) => {
|
|
21392
21396
|
for (var i = n > 1 ? void 0 : n ? fM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -21553,7 +21557,7 @@ let qc = class extends ae {
|
|
|
21553
21557
|
if (!i) return;
|
|
21554
21558
|
l.x *= a, l.y *= a, o.x += l.x, o.y += l.y;
|
|
21555
21559
|
const h = l.x, g = l.y;
|
|
21556
|
-
(g !== 0 || h !== 0) && this._commandService.executeCommand(
|
|
21560
|
+
(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
21561
|
}, u = () => {
|
|
21558
21562
|
cancelAnimationFrame(c), c = null;
|
|
21559
21563
|
};
|
|
@@ -21564,7 +21568,7 @@ let qc = class extends ae {
|
|
|
21564
21568
|
const m = h, f = -(m.offsetX - o.x), p = -(m.offsetY - o.y);
|
|
21565
21569
|
l.x = -(m.offsetX - o.x), l.y = -(m.offsetY - o.y);
|
|
21566
21570
|
const S = f, v = p;
|
|
21567
|
-
(f !== 0 || p !== 0) && (v !== 0 || S !== 0) && this._commandService.executeCommand(
|
|
21571
|
+
(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
21572
|
}), n.onPointerUp$.subscribeEvent((h) => {
|
|
21569
21573
|
s = !1, c = requestAnimationFrame(d);
|
|
21570
21574
|
}), n.onPointerLeave$.subscribeEvent(() => {
|
|
@@ -21593,7 +21597,7 @@ let qc = class extends ae {
|
|
|
21593
21597
|
});
|
|
21594
21598
|
}
|
|
21595
21599
|
_getSheetObject() {
|
|
21596
|
-
return
|
|
21600
|
+
return _n(this._context.unit, this._context);
|
|
21597
21601
|
}
|
|
21598
21602
|
_scrollToSelectionByDirection(r) {
|
|
21599
21603
|
const e = this._getViewportBounding();
|
|
@@ -21856,7 +21860,7 @@ var _M = Object.getOwnPropertyDescriptor, wM = (r, e, t, n) => {
|
|
|
21856
21860
|
for (var i = n > 1 ? void 0 : n ? _M(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
21857
21861
|
(s = r[o]) && (i = s(i) || i);
|
|
21858
21862
|
return i;
|
|
21859
|
-
},
|
|
21863
|
+
}, En = (r, e) => (t, n) => e(t, n, r);
|
|
21860
21864
|
let Sl = class extends sm {
|
|
21861
21865
|
constructor(e, t, n, i, o, s, l, a, c, d) {
|
|
21862
21866
|
super(
|
|
@@ -21899,13 +21903,13 @@ let Sl = class extends sm {
|
|
|
21899
21903
|
this._initSpreadsheetEvent(e), this.disposeWithMe(
|
|
21900
21904
|
t == null ? void 0 : t.onPointerUp$.subscribeEvent((l, a) => {
|
|
21901
21905
|
if (this._normalSelectionDisabled()) return;
|
|
21902
|
-
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { row: d } =
|
|
21906
|
+
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { row: d } = Bn(l.offsetX, l.offsetY, s, c);
|
|
21903
21907
|
tf(this._workbookSelections.getCurrentSelections(), d) || (this.createNewSelection(l, (i.zIndex || 1) + 1, z.ROW, this._getActiveViewport(l)), this._selectionMoveEnd$.next(this.getSelectionDataWithStyle()));
|
|
21904
21908
|
})
|
|
21905
21909
|
), this.disposeWithMe(
|
|
21906
21910
|
n == null ? void 0 : n.onPointerUp$.subscribeEvent((l, a) => {
|
|
21907
21911
|
if (this._normalSelectionDisabled()) return;
|
|
21908
|
-
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { column: d } =
|
|
21912
|
+
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { column: d } = Bn(l.offsetX, l.offsetY, s, c);
|
|
21909
21913
|
nf(this._workbookSelections.getCurrentSelections(), d) || (this.createNewSelection(l, (i.zIndex || 1) + 1, z.COLUMN, this._getActiveViewport(l)), this._selectionMoveEnd$.next(this.getSelectionDataWithStyle()));
|
|
21910
21914
|
})
|
|
21911
21915
|
), this.disposeWithMe(o == null ? void 0 : o.onPointerUp$.subscribeEvent((l, a) => {
|
|
@@ -21944,7 +21948,7 @@ let Sl = class extends sm {
|
|
|
21944
21948
|
this.disposeWithMe(Fe(a)), this.disposeWithMe(Fe(c));
|
|
21945
21949
|
}
|
|
21946
21950
|
_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$(
|
|
21951
|
+
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
21952
|
var t;
|
|
21949
21953
|
e ? ((t = this._renderDisposable) == null || t.dispose(), this._renderDisposable = null, this._reset()) : this._renderDisposable = Fe(
|
|
21950
21954
|
this.selectionMoveEnd$.subscribe((n) => this._updateSelections(n, Yt.MOVE_END))
|
|
@@ -22075,11 +22079,11 @@ let Sl = class extends sm {
|
|
|
22075
22079
|
}
|
|
22076
22080
|
// same as PC
|
|
22077
22081
|
_getSheetObject() {
|
|
22078
|
-
return
|
|
22082
|
+
return _n(this._context.unit, this._context);
|
|
22079
22083
|
}
|
|
22080
22084
|
// same as PC
|
|
22081
22085
|
_normalSelectionDisabled() {
|
|
22082
|
-
return this._contextService.getContextValue(
|
|
22086
|
+
return this._contextService.getContextValue(lo);
|
|
22083
22087
|
}
|
|
22084
22088
|
getSelectionControls() {
|
|
22085
22089
|
return this._selectionControls;
|
|
@@ -22190,15 +22194,15 @@ let Sl = class extends sm {
|
|
|
22190
22194
|
}
|
|
22191
22195
|
};
|
|
22192
22196
|
Sl = wM([
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
|
|
22197
|
-
|
|
22198
|
-
|
|
22199
|
-
|
|
22200
|
-
|
|
22201
|
-
|
|
22197
|
+
En(1, V(It)),
|
|
22198
|
+
En(2, V(Lt)),
|
|
22199
|
+
En(3, kl),
|
|
22200
|
+
En(4, V($)),
|
|
22201
|
+
En(5, V(he)),
|
|
22202
|
+
En(6, Tl),
|
|
22203
|
+
En(7, D),
|
|
22204
|
+
En(8, Ve),
|
|
22205
|
+
En(9, V(Tt))
|
|
22202
22206
|
], Sl);
|
|
22203
22207
|
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
22208
|
for (var i = n > 1 ? void 0 : n ? IM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -22221,12 +22225,12 @@ let vl = class extends qh {
|
|
|
22221
22225
|
[$l, { useClass: Tm }],
|
|
22222
22226
|
[Ti, { useClass: Gs }],
|
|
22223
22227
|
[Ar],
|
|
22224
|
-
[
|
|
22225
|
-
[Eo],
|
|
22228
|
+
[Oo],
|
|
22226
22229
|
[Po],
|
|
22230
|
+
[To],
|
|
22227
22231
|
[Bd],
|
|
22228
|
-
[
|
|
22229
|
-
[
|
|
22232
|
+
[Eo],
|
|
22233
|
+
[ho],
|
|
22230
22234
|
[Ri],
|
|
22231
22235
|
[xr],
|
|
22232
22236
|
[ul],
|
|
@@ -22236,9 +22240,9 @@ let vl = class extends qh {
|
|
|
22236
22240
|
[wi],
|
|
22237
22241
|
[Fr],
|
|
22238
22242
|
[fl],
|
|
22243
|
+
[Ao],
|
|
22239
22244
|
[xo],
|
|
22240
|
-
[
|
|
22241
|
-
[Ao]
|
|
22245
|
+
[Ho]
|
|
22242
22246
|
].forEach((r) => this._injector.add(r));
|
|
22243
22247
|
}
|
|
22244
22248
|
onReady() {
|
|
@@ -22265,12 +22269,12 @@ let vl = class extends qh {
|
|
|
22265
22269
|
// HeaderMoveRenderController(HMRC) must be initialized before SelectionRenderController(SRC).
|
|
22266
22270
|
// Before HMRC expected selections remain unchanged when user clicks on the header. If we don't initialize HMRC before SRC,
|
|
22267
22271
|
// the selections will be changed by SRC first. Maybe we should merge row/col header related render controllers to one class.
|
|
22272
|
+
[Ro],
|
|
22268
22273
|
[wo],
|
|
22269
|
-
[_o],
|
|
22270
22274
|
// Caution: ScrollRenderController should placed before ZoomRenderController
|
|
22271
22275
|
// because ZoomRenderController would change scrollInfo in currentSkeletonBefore$.
|
|
22272
22276
|
[qc],
|
|
22273
|
-
[
|
|
22277
|
+
[mo],
|
|
22274
22278
|
[pl],
|
|
22275
22279
|
[ol],
|
|
22276
22280
|
[ll],
|
|
@@ -22346,7 +22350,7 @@ var TM = Object.getOwnPropertyDescriptor, OM = (r, e, t, n) => {
|
|
|
22346
22350
|
for (var i = n > 1 ? void 0 : n ? TM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
22347
22351
|
(s = r[o]) && (i = s(i) || i);
|
|
22348
22352
|
return i;
|
|
22349
|
-
},
|
|
22353
|
+
}, Zi = (r, e) => (t, n) => e(t, n, r);
|
|
22350
22354
|
let bl = class extends ae {
|
|
22351
22355
|
constructor(r, e, t, n, i) {
|
|
22352
22356
|
super(), this._selectionManagerService = r, this._themeService = e, this._instanceSrv = t, this._cmdSrv = n, this._definedNamesService = i, this._init();
|
|
@@ -22419,18 +22423,18 @@ let bl = class extends ae {
|
|
|
22419
22423
|
}
|
|
22420
22424
|
};
|
|
22421
22425
|
bl = OM([
|
|
22422
|
-
|
|
22423
|
-
|
|
22424
|
-
|
|
22425
|
-
|
|
22426
|
-
|
|
22426
|
+
Zi(0, V($)),
|
|
22427
|
+
Zi(1, V(Lt)),
|
|
22428
|
+
Zi(2, N),
|
|
22429
|
+
Zi(3, D),
|
|
22430
|
+
Zi(4, jo)
|
|
22427
22431
|
], bl);
|
|
22428
22432
|
var xM = Object.getOwnPropertyDescriptor, AM = (r, e, t, n) => {
|
|
22429
22433
|
for (var i = n > 1 ? void 0 : n ? xM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
22430
22434
|
(s = r[o]) && (i = s(i) || i);
|
|
22431
22435
|
return i;
|
|
22432
|
-
},
|
|
22433
|
-
let
|
|
22436
|
+
}, Pn = (r, e) => (t, n) => e(t, n, r);
|
|
22437
|
+
let ko = class extends Un {
|
|
22434
22438
|
constructor(e, t, n, i, o, s, l, a, c) {
|
|
22435
22439
|
super();
|
|
22436
22440
|
_(this, "_loadedMap", /* @__PURE__ */ new WeakSet());
|
|
@@ -22536,17 +22540,17 @@ let Ho = class extends Un {
|
|
|
22536
22540
|
}), 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
22541
|
}
|
|
22538
22542
|
};
|
|
22539
|
-
|
|
22540
|
-
|
|
22541
|
-
|
|
22542
|
-
|
|
22543
|
-
|
|
22544
|
-
|
|
22545
|
-
|
|
22546
|
-
|
|
22547
|
-
|
|
22548
|
-
|
|
22549
|
-
],
|
|
22543
|
+
ko = AM([
|
|
22544
|
+
Pn(0, N),
|
|
22545
|
+
Pn(1, be),
|
|
22546
|
+
Pn(2, it),
|
|
22547
|
+
Pn(3, D),
|
|
22548
|
+
Pn(4, Ve),
|
|
22549
|
+
Pn(5, Jl),
|
|
22550
|
+
Pn(6, qt),
|
|
22551
|
+
Pn(7, V(xd)),
|
|
22552
|
+
Pn(8, Hr)
|
|
22553
|
+
], ko);
|
|
22550
22554
|
var HM = Object.getOwnPropertyDescriptor, kM = (r, e, t, n) => {
|
|
22551
22555
|
for (var i = n > 1 ? void 0 : n ? HM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
22552
22556
|
(s = r[o]) && (i = s(i) || i);
|
|
@@ -22697,7 +22701,7 @@ _l = kM([
|
|
|
22697
22701
|
Kn(3, D),
|
|
22698
22702
|
Kn(4, V(et)),
|
|
22699
22703
|
Kn(5, V(St)),
|
|
22700
|
-
Kn(6, V(
|
|
22704
|
+
Kn(6, V(ko)),
|
|
22701
22705
|
Kn(7, Jl)
|
|
22702
22706
|
], _l);
|
|
22703
22707
|
var NM = Object.getOwnPropertyDescriptor, DM = (r, e, t, n) => {
|
|
@@ -22800,7 +22804,7 @@ let wl = class extends ae {
|
|
|
22800
22804
|
nn,
|
|
22801
22805
|
b
|
|
22802
22806
|
), { undos: y, redos: M } = i.onCommandExecute({
|
|
22803
|
-
id:
|
|
22807
|
+
id: No.id,
|
|
22804
22808
|
params: { ...R, range: S }
|
|
22805
22809
|
}), E = Ul(p), P = [], T = [], A = o.getUnit(r).getSheetBySheetId(e), H = rf(A, E), O = {
|
|
22806
22810
|
unitId: r,
|
|
@@ -22997,7 +23001,7 @@ var ZM = Object.getOwnPropertyDescriptor, GM = (r, e, t, n) => {
|
|
|
22997
23001
|
for (var i = n > 1 ? void 0 : n ? ZM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
22998
23002
|
(s = r[o]) && (i = s(i) || i);
|
|
22999
23003
|
return i;
|
|
23000
|
-
},
|
|
23004
|
+
}, Tn = (r, e) => (t, n) => e(t, n, r);
|
|
23001
23005
|
let $c = class extends Un {
|
|
23002
23006
|
constructor(e, t, n, i, o, s, l, a, c, d) {
|
|
23003
23007
|
super();
|
|
@@ -23089,7 +23093,7 @@ let $c = class extends Un {
|
|
|
23089
23093
|
}));
|
|
23090
23094
|
}
|
|
23091
23095
|
_commandExecutedListener(e) {
|
|
23092
|
-
const t = /* @__PURE__ */ new Set([
|
|
23096
|
+
const t = /* @__PURE__ */ new Set([to.id, Go.id]);
|
|
23093
23097
|
e.add(this._commandService.onCommandExecuted((n) => {
|
|
23094
23098
|
if (t.has(n.id)) {
|
|
23095
23099
|
if (this._editorBridgeService.isVisible().visible) return;
|
|
@@ -23154,7 +23158,7 @@ let $c = class extends Un {
|
|
|
23154
23158
|
};
|
|
23155
23159
|
}
|
|
23156
23160
|
_getSheetObject() {
|
|
23157
|
-
return
|
|
23161
|
+
return _n(this._context.unit, this._context);
|
|
23158
23162
|
}
|
|
23159
23163
|
_isCurrentSheetFocused() {
|
|
23160
23164
|
var e;
|
|
@@ -23162,18 +23166,18 @@ let $c = class extends Un {
|
|
|
23162
23166
|
}
|
|
23163
23167
|
};
|
|
23164
23168
|
$c = GM([
|
|
23165
|
-
|
|
23166
|
-
|
|
23167
|
-
|
|
23168
|
-
|
|
23169
|
-
|
|
23170
|
-
|
|
23171
|
-
|
|
23172
|
-
|
|
23173
|
-
|
|
23169
|
+
Tn(1, N),
|
|
23170
|
+
Tn(2, D),
|
|
23171
|
+
Tn(3, it),
|
|
23172
|
+
Tn(4, V($)),
|
|
23173
|
+
Tn(5, Up),
|
|
23174
|
+
Tn(6, Ve),
|
|
23175
|
+
Tn(7, be),
|
|
23176
|
+
Tn(8, Hr),
|
|
23177
|
+
Tn(9, V(he))
|
|
23174
23178
|
], $c);
|
|
23175
23179
|
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)",
|
|
23180
|
+
const qM = "rgba(0, 0, 0, 0.15)", On = "rgb(0, 0, 0)", fs = "rgb(255, 255, 255, 1)";
|
|
23177
23181
|
class QM extends pd {
|
|
23178
23182
|
constructor(t, n) {
|
|
23179
23183
|
super(t, n);
|
|
@@ -23196,7 +23200,7 @@ class QM extends pd {
|
|
|
23196
23200
|
fill: qM
|
|
23197
23201
|
});
|
|
23198
23202
|
const n = this._size * 0.5 * this._iconRatio, i = Math.PI / 180 * 60, o = n * Math.sin(i), s = n * Math.cos(i);
|
|
23199
|
-
|
|
23203
|
+
Gi.drawWith(t, {
|
|
23200
23204
|
pointsGroup: [
|
|
23201
23205
|
[
|
|
23202
23206
|
{ x: -o + this._size / 2, y: -s + this._size / 2 },
|
|
@@ -23206,7 +23210,7 @@ class QM extends pd {
|
|
|
23206
23210
|
],
|
|
23207
23211
|
// left: this.left,
|
|
23208
23212
|
// top: this.top,
|
|
23209
|
-
fill:
|
|
23213
|
+
fill: On
|
|
23210
23214
|
});
|
|
23211
23215
|
}
|
|
23212
23216
|
}
|
|
@@ -23257,7 +23261,7 @@ let td = class extends ae {
|
|
|
23257
23261
|
const f = (y = this._sheetSkeletonManagerService.getCurrentParam()) == null ? void 0 : y.skeleton;
|
|
23258
23262
|
if (f == null)
|
|
23259
23263
|
return;
|
|
23260
|
-
const { rowHeaderWidth: p, columnHeaderHeight: S } = f, { startX: v, startY: C, endX: b, endY: R, column: I } =
|
|
23264
|
+
const { rowHeaderWidth: p, columnHeaderHeight: S } = f, { startX: v, startY: C, endX: b, endY: R, column: I } = Bn(
|
|
23261
23265
|
m.offsetX,
|
|
23262
23266
|
m.offsetY,
|
|
23263
23267
|
this._context.scene,
|
|
@@ -23362,11 +23366,11 @@ td = JM([
|
|
|
23362
23366
|
ps(4, V($))
|
|
23363
23367
|
], td);
|
|
23364
23368
|
var nd = /* @__PURE__ */ ((r) => (r[r.ROW = 0] = "ROW", r[r.COLUMN = 1] = "COLUMN", r))(nd || {});
|
|
23365
|
-
const
|
|
23369
|
+
const Ji = 12, nE = 0.4;
|
|
23366
23370
|
class Ah extends pd {
|
|
23367
23371
|
constructor(t, n, i) {
|
|
23368
23372
|
super(t, n);
|
|
23369
|
-
_(this, "_size",
|
|
23373
|
+
_(this, "_size", Ji);
|
|
23370
23374
|
_(this, "_iconRatio", nE);
|
|
23371
23375
|
_(this, "_hovered", !0);
|
|
23372
23376
|
_(this, "_hasPrevious", !0);
|
|
@@ -23387,16 +23391,16 @@ class Ah extends pd {
|
|
|
23387
23391
|
this._hovered && (!this._hasNext || !this._hasPrevious ? Ce.drawWith(t, {
|
|
23388
23392
|
width: this._size,
|
|
23389
23393
|
height: this._size,
|
|
23390
|
-
stroke:
|
|
23394
|
+
stroke: On,
|
|
23391
23395
|
fill: fs
|
|
23392
23396
|
}) : Ce.drawWith(t, {
|
|
23393
23397
|
width: this._size,
|
|
23394
23398
|
height: 2 * this._size,
|
|
23395
|
-
stroke:
|
|
23399
|
+
stroke: On,
|
|
23396
23400
|
fill: fs
|
|
23397
23401
|
}));
|
|
23398
23402
|
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 &&
|
|
23403
|
+
if (this._hasPrevious && Gi.drawWith(t, {
|
|
23400
23404
|
pointsGroup: [
|
|
23401
23405
|
[
|
|
23402
23406
|
{ x: this._size / 2, y: this._size / 2 - s },
|
|
@@ -23404,10 +23408,10 @@ class Ah extends pd {
|
|
|
23404
23408
|
{ x: this._size / 2 + s, y: this._size / 2 + o }
|
|
23405
23409
|
]
|
|
23406
23410
|
],
|
|
23407
|
-
fill:
|
|
23411
|
+
fill: On
|
|
23408
23412
|
}), this._hasNext) {
|
|
23409
23413
|
const l = this._hasPrevious ? 3 : 1;
|
|
23410
|
-
|
|
23414
|
+
Gi.drawWith(t, {
|
|
23411
23415
|
pointsGroup: [
|
|
23412
23416
|
[
|
|
23413
23417
|
{ x: this._size / 2, y: this._size * l / 2 + s },
|
|
@@ -23415,7 +23419,7 @@ class Ah extends pd {
|
|
|
23415
23419
|
{ x: this._size / 2 + s, y: this._size * l / 2 - o }
|
|
23416
23420
|
]
|
|
23417
23421
|
],
|
|
23418
|
-
fill:
|
|
23422
|
+
fill: On
|
|
23419
23423
|
});
|
|
23420
23424
|
}
|
|
23421
23425
|
}
|
|
@@ -23427,16 +23431,16 @@ class Ah extends pd {
|
|
|
23427
23431
|
this._hovered && (!this._hasNext || !this._hasPrevious ? Ce.drawWith(t, {
|
|
23428
23432
|
width: this._size,
|
|
23429
23433
|
height: this._size,
|
|
23430
|
-
stroke:
|
|
23434
|
+
stroke: On,
|
|
23431
23435
|
fill: fs
|
|
23432
23436
|
}) : Ce.drawWith(t, {
|
|
23433
23437
|
width: 2 * this._size,
|
|
23434
23438
|
height: this._size,
|
|
23435
|
-
stroke:
|
|
23439
|
+
stroke: On,
|
|
23436
23440
|
fill: fs
|
|
23437
23441
|
}));
|
|
23438
23442
|
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 &&
|
|
23443
|
+
if (this._hasPrevious && Gi.drawWith(t, {
|
|
23440
23444
|
pointsGroup: [
|
|
23441
23445
|
[
|
|
23442
23446
|
{ x: -o + this._size / 2, y: this._size / 2 },
|
|
@@ -23444,10 +23448,10 @@ class Ah extends pd {
|
|
|
23444
23448
|
{ x: this._size / 2 + s, y: this._size / 2 + s }
|
|
23445
23449
|
]
|
|
23446
23450
|
],
|
|
23447
|
-
fill:
|
|
23451
|
+
fill: On
|
|
23448
23452
|
}), this._hasNext) {
|
|
23449
23453
|
const l = this._hasPrevious ? 3 : 1;
|
|
23450
|
-
|
|
23454
|
+
Gi.drawWith(t, {
|
|
23451
23455
|
pointsGroup: [
|
|
23452
23456
|
[
|
|
23453
23457
|
{ x: o + this._size * l / 2, y: this._size / 2 },
|
|
@@ -23455,7 +23459,7 @@ class Ah extends pd {
|
|
|
23455
23459
|
{ x: -s + this._size * l / 2, y: this._size / 2 + s }
|
|
23456
23460
|
]
|
|
23457
23461
|
],
|
|
23458
|
-
fill:
|
|
23462
|
+
fill: On
|
|
23459
23463
|
});
|
|
23460
23464
|
}
|
|
23461
23465
|
}
|
|
@@ -23511,8 +23515,8 @@ let rd = class extends Un {
|
|
|
23511
23515
|
hovered: !1,
|
|
23512
23516
|
hasPrevious: S,
|
|
23513
23517
|
hasNext: v,
|
|
23514
|
-
top: p.startY - (S ?
|
|
23515
|
-
left: p.startX -
|
|
23518
|
+
top: p.startY - (S ? Ji : 0),
|
|
23519
|
+
left: p.startX - Ji
|
|
23516
23520
|
},
|
|
23517
23521
|
() => this._commandService.executeCommand(
|
|
23518
23522
|
zv.id,
|
|
@@ -23532,8 +23536,8 @@ let rd = class extends Un {
|
|
|
23532
23536
|
hovered: !1,
|
|
23533
23537
|
hasPrevious: S,
|
|
23534
23538
|
hasNext: v,
|
|
23535
|
-
top: 20 -
|
|
23536
|
-
left: p.startX - (S ?
|
|
23539
|
+
top: 20 - Ji,
|
|
23540
|
+
left: p.startX - (S ? Ji : 0)
|
|
23537
23541
|
},
|
|
23538
23542
|
() => this._commandService.executeCommand(
|
|
23539
23543
|
jv.id,
|
|
@@ -23551,7 +23555,7 @@ let rd = class extends Un {
|
|
|
23551
23555
|
this._shapes.cols.forEach((e) => e.dispose()), this._shapes.rows.forEach((e) => e.dispose()), this._shapes = { cols: [], rows: [] };
|
|
23552
23556
|
}
|
|
23553
23557
|
_getSheetObject() {
|
|
23554
|
-
return
|
|
23558
|
+
return _n(this._workbook, this._context);
|
|
23555
23559
|
}
|
|
23556
23560
|
};
|
|
23557
23561
|
rd = iE([
|
|
@@ -23618,12 +23622,12 @@ let od = class extends sm {
|
|
|
23618
23622
|
})), this.disposeWithMe(
|
|
23619
23623
|
t == null ? void 0 : t.onPointerDown$.subscribeEvent((l, a) => {
|
|
23620
23624
|
if (this.isSelectionDisabled() || this.inRefSelectionMode()) return;
|
|
23621
|
-
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { row: d } =
|
|
23625
|
+
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { row: d } = Bn(l.offsetX, l.offsetY, s, c);
|
|
23622
23626
|
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
23627
|
})
|
|
23624
23628
|
), this.disposeWithMe(n == null ? void 0 : n.onPointerDown$.subscribeEvent((l, a) => {
|
|
23625
23629
|
if (this.isSelectionDisabled() || this.inRefSelectionMode()) return;
|
|
23626
|
-
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { column: d } =
|
|
23630
|
+
const c = this._sheetSkeletonManagerService.getCurrentParam().skeleton, { column: d } = Bn(l.offsetX, l.offsetY, s, c);
|
|
23627
23631
|
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
23632
|
})), this.disposeWithMe(o == null ? void 0 : o.onPointerDown$.subscribeEvent((l, a) => {
|
|
23629
23633
|
if (this.isSelectionDisabled() || this.inRefSelectionMode()) return;
|
|
@@ -23683,7 +23687,7 @@ let od = class extends sm {
|
|
|
23683
23687
|
* Handle events in spreadsheet. (e.g. drag and move to make a selection)
|
|
23684
23688
|
*/
|
|
23685
23689
|
_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$(
|
|
23690
|
+
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
23691
|
e && this._reset();
|
|
23688
23692
|
})), this.disposeWithMe(this._contextService.subscribeContextValue$($r).pipe(Gt(!0), un()).subscribe((e) => {
|
|
23689
23693
|
var t;
|
|
@@ -23742,7 +23746,7 @@ let od = class extends sm {
|
|
|
23742
23746
|
return t == null ? void 0 : t.scene.getActiveViewportByCoord(ke.FromArray([e.offsetX, e.offsetY]));
|
|
23743
23747
|
}
|
|
23744
23748
|
_getSheetObject() {
|
|
23745
|
-
return
|
|
23749
|
+
return _n(this._context.unit, this._context);
|
|
23746
23750
|
}
|
|
23747
23751
|
/**
|
|
23748
23752
|
* Handle pointer down event, bind pointermove & pointerup handler.
|
|
@@ -23833,7 +23837,7 @@ let Il = class extends qh {
|
|
|
23833
23837
|
xc,
|
|
23834
23838
|
this._config
|
|
23835
23839
|
);
|
|
23836
|
-
o && this._configService.setConfig("menu", o, { merge: !0 }), this._configService.setConfig(
|
|
23840
|
+
o && this._configService.setConfig("menu", o, { merge: !0 }), this._configService.setConfig(vn, s);
|
|
23837
23841
|
}
|
|
23838
23842
|
onStarting() {
|
|
23839
23843
|
Su(this._injector, lS([
|
|
@@ -23850,15 +23854,15 @@ let Il = class extends qh {
|
|
|
23850
23854
|
[$l, { useClass: Tm }],
|
|
23851
23855
|
[Ti, { useClass: Gs }],
|
|
23852
23856
|
[Ar],
|
|
23853
|
-
[
|
|
23854
|
-
[Eo],
|
|
23857
|
+
[Oo],
|
|
23855
23858
|
[Po],
|
|
23859
|
+
[To],
|
|
23856
23860
|
[Bd],
|
|
23857
23861
|
// controllers
|
|
23858
|
-
[
|
|
23859
|
-
[
|
|
23860
|
-
[
|
|
23861
|
-
[
|
|
23862
|
+
[Eo],
|
|
23863
|
+
[ho],
|
|
23864
|
+
[_o],
|
|
23865
|
+
[ko],
|
|
23862
23866
|
[xr],
|
|
23863
23867
|
[il],
|
|
23864
23868
|
[Ii],
|
|
@@ -23871,9 +23875,9 @@ let Il = class extends qh {
|
|
|
23871
23875
|
[wi],
|
|
23872
23876
|
[Rl],
|
|
23873
23877
|
[Fr],
|
|
23878
|
+
[Ao],
|
|
23874
23879
|
[xo],
|
|
23875
|
-
[
|
|
23876
|
-
[Ao]
|
|
23880
|
+
[Ho]
|
|
23877
23881
|
], this._config.override));
|
|
23878
23882
|
}
|
|
23879
23883
|
onReady() {
|
|
@@ -23882,21 +23886,21 @@ let Il = class extends qh {
|
|
|
23882
23886
|
]), this._registerRenderBasics(), va(this._injector, [
|
|
23883
23887
|
[il],
|
|
23884
23888
|
[xr],
|
|
23885
|
-
[
|
|
23886
|
-
[
|
|
23889
|
+
[Eo],
|
|
23890
|
+
[xo],
|
|
23887
23891
|
[Rl]
|
|
23888
23892
|
]);
|
|
23889
23893
|
}
|
|
23890
23894
|
onRendered() {
|
|
23891
23895
|
this._registerRenderModules(), va(this._injector, [
|
|
23892
|
-
[
|
|
23896
|
+
[Ho],
|
|
23893
23897
|
[wi],
|
|
23894
23898
|
[Ri],
|
|
23895
|
-
[
|
|
23899
|
+
[ko],
|
|
23896
23900
|
[bl],
|
|
23897
23901
|
[Ii],
|
|
23898
|
-
[
|
|
23899
|
-
[
|
|
23902
|
+
[ho],
|
|
23903
|
+
[_o],
|
|
23900
23904
|
[_l],
|
|
23901
23905
|
[Cl]
|
|
23902
23906
|
]);
|
|
@@ -23905,7 +23909,7 @@ let Il = class extends qh {
|
|
|
23905
23909
|
va(this._injector, [
|
|
23906
23910
|
[wl],
|
|
23907
23911
|
[zs],
|
|
23908
|
-
[
|
|
23912
|
+
[Ao]
|
|
23909
23913
|
]);
|
|
23910
23914
|
}
|
|
23911
23915
|
_registerRenderBasics() {
|
|
@@ -23923,14 +23927,14 @@ let Il = class extends qh {
|
|
|
23923
23927
|
_registerRenderModules() {
|
|
23924
23928
|
var n;
|
|
23925
23929
|
const r = [
|
|
23926
|
-
[
|
|
23930
|
+
[Ro],
|
|
23927
23931
|
[rd],
|
|
23928
23932
|
[$s],
|
|
23929
23933
|
// Caution: ScrollRenderController should placed before ZoomRenderController.
|
|
23930
23934
|
[Tt],
|
|
23931
|
-
[
|
|
23932
|
-
[
|
|
23933
|
-
[
|
|
23935
|
+
[So],
|
|
23936
|
+
[wo],
|
|
23937
|
+
[mo],
|
|
23934
23938
|
[Zs],
|
|
23935
23939
|
[pl],
|
|
23936
23940
|
[Kc],
|
|
@@ -23967,7 +23971,7 @@ Il = hE([
|
|
|
23967
23971
|
Gh(jg),
|
|
23968
23972
|
Ss(1, V(It)),
|
|
23969
23973
|
Ss(2, be),
|
|
23970
|
-
Ss(3,
|
|
23974
|
+
Ss(3, bn),
|
|
23971
23975
|
Ss(4, N)
|
|
23972
23976
|
], Il);
|
|
23973
23977
|
const gE = "embedding_formula_editor", LE = (r) => r.includes(gE);
|
|
@@ -23975,12 +23979,12 @@ function WE(r, e, t, n) {
|
|
|
23975
23979
|
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
23980
|
if (m == null)
|
|
23977
23981
|
throw new Error("No current skeleton");
|
|
23978
|
-
const f =
|
|
23982
|
+
const f = uo(m, {
|
|
23979
23983
|
startColumn: s,
|
|
23980
23984
|
endColumn: s,
|
|
23981
23985
|
startRow: a,
|
|
23982
23986
|
endRow: a
|
|
23983
|
-
}), p =
|
|
23987
|
+
}), p = uo(m, {
|
|
23984
23988
|
startColumn: d,
|
|
23985
23989
|
endColumn: d,
|
|
23986
23990
|
startRow: h,
|
|
@@ -24000,7 +24004,7 @@ function BE(r, e, t, n, i, o, s) {
|
|
|
24000
24004
|
const { column: l, columnOffset: a, row: c, rowOffset: d } = t, u = s.ensureSkeleton(e);
|
|
24001
24005
|
if (u == null)
|
|
24002
24006
|
throw new Error("No current skeleton");
|
|
24003
|
-
const h =
|
|
24007
|
+
const h = uo(u, {
|
|
24004
24008
|
startColumn: l,
|
|
24005
24009
|
endColumn: l,
|
|
24006
24010
|
startRow: c,
|
|
@@ -24041,26 +24045,26 @@ export {
|
|
|
24041
24045
|
ua as AddRangeProtectionFromSheetBarCommand,
|
|
24042
24046
|
da as AddRangeProtectionFromToolbarCommand,
|
|
24043
24047
|
oa as ApplyFormatPainterCommand,
|
|
24044
|
-
|
|
24048
|
+
go as AutoClearContentCommand,
|
|
24045
24049
|
br as AutoFillCommand,
|
|
24046
24050
|
zs as AutoFillController,
|
|
24047
24051
|
Xs as AutoFillService,
|
|
24048
|
-
|
|
24049
|
-
|
|
24052
|
+
ho as AutoHeightController,
|
|
24053
|
+
_o as AutoWidthController,
|
|
24050
24054
|
sm as BaseSelectionRenderService,
|
|
24051
24055
|
$n as COPY_TYPE,
|
|
24052
|
-
|
|
24053
|
-
|
|
24056
|
+
To as CellAlertManagerService,
|
|
24057
|
+
so as CellAlertType,
|
|
24054
24058
|
js as CellCustomRenderController,
|
|
24055
24059
|
a1 as CellEditorManagerService,
|
|
24056
24060
|
pa as ChangeSheetProtectionFromSheetBarCommand,
|
|
24057
|
-
|
|
24061
|
+
Zo as ChangeZoomRatioCommand,
|
|
24058
24062
|
ft as DATA_TYPE,
|
|
24059
|
-
|
|
24063
|
+
$o as DeleteRangeMoveLeftConfirmCommand,
|
|
24060
24064
|
bi as DeleteRangeMoveUpConfirmCommand,
|
|
24061
24065
|
ui as DeleteRangeProtectionFromContextMenuCommand,
|
|
24062
24066
|
fa as DeleteWorksheetProtectionFormSheetBarCommand,
|
|
24063
|
-
|
|
24067
|
+
Oo as DragManagerService,
|
|
24064
24068
|
sl as DragRenderController,
|
|
24065
24069
|
gE as EMBEDDING_FORMULA_EDITOR,
|
|
24066
24070
|
Vd as EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY,
|
|
@@ -24072,9 +24076,9 @@ export {
|
|
|
24072
24076
|
nu as FONT_SIZE_COMPONENT,
|
|
24073
24077
|
Zt as FormatPainterStatus,
|
|
24074
24078
|
_b as FormulaBar,
|
|
24075
|
-
|
|
24076
|
-
|
|
24077
|
-
|
|
24079
|
+
ko as FormulaEditorController,
|
|
24080
|
+
wo as HeaderFreezeRenderController,
|
|
24081
|
+
Ro as HeaderMoveRenderController,
|
|
24078
24082
|
$s as HeaderResizeRenderController,
|
|
24079
24083
|
ta as HideColConfirmCommand,
|
|
24080
24084
|
ea as HideRowConfirmCommand,
|
|
@@ -24090,7 +24094,7 @@ export {
|
|
|
24090
24094
|
lt as ISheetSelectionRenderService,
|
|
24091
24095
|
$l as IStatusBarService,
|
|
24092
24096
|
_i as InsertRangeMoveDownConfirmCommand,
|
|
24093
|
-
|
|
24097
|
+
es as InsertRangeMoveRightConfirmCommand,
|
|
24094
24098
|
jn as JumpOver,
|
|
24095
24099
|
Gs as MarkSelectionService,
|
|
24096
24100
|
_I as MobileSheetBar,
|
|
@@ -24101,8 +24105,8 @@ export {
|
|
|
24101
24105
|
im as RANGE_SELECTOR_COMPONENT_KEY,
|
|
24102
24106
|
v_ as RANGE_SELECTOR_SYMBOLS,
|
|
24103
24107
|
Zl as RefillCommand,
|
|
24104
|
-
|
|
24105
|
-
|
|
24108
|
+
Mo as RemoveColConfirmCommand,
|
|
24109
|
+
yo as RemoveRowConfirmCommand,
|
|
24106
24110
|
ga as RemoveSheetConfirmCommand,
|
|
24107
24111
|
Sa as RenameSheetOperation,
|
|
24108
24112
|
t_ as RenderSheetContent,
|
|
@@ -24128,7 +24132,7 @@ export {
|
|
|
24128
24132
|
Dd as SetColumnHeaderHeightCommand,
|
|
24129
24133
|
ia as SetFormatPainterOperation,
|
|
24130
24134
|
$d as SetInfiniteFormatPainterCommand,
|
|
24131
|
-
|
|
24135
|
+
qo as SetOnceFormatPainterCommand,
|
|
24132
24136
|
Oi as SetRangeBoldCommand,
|
|
24133
24137
|
ra as SetRangeFontFamilyCommand,
|
|
24134
24138
|
na as SetRangeFontSizeCommand,
|
|
@@ -24137,32 +24141,32 @@ export {
|
|
|
24137
24141
|
Hi as SetRangeStrickThroughCommand,
|
|
24138
24142
|
Gm as SetRangeSubscriptCommand,
|
|
24139
24143
|
qm as SetRangeSuperscriptCommand,
|
|
24140
|
-
|
|
24144
|
+
bo as SetRangeTextColorCommand,
|
|
24141
24145
|
Ai as SetRangeUnderlineCommand,
|
|
24142
24146
|
sa as SetRowFrozenCommand,
|
|
24143
24147
|
Nd as SetRowHeaderWidthCommand,
|
|
24144
24148
|
hn as SetScrollOperation,
|
|
24145
|
-
|
|
24149
|
+
po as SetScrollRelativeCommand,
|
|
24146
24150
|
or as SetSelectionFrozenCommand,
|
|
24147
24151
|
aa as SetWorksheetColAutoWidthCommand,
|
|
24148
|
-
|
|
24152
|
+
Go as SetZoomRatioCommand,
|
|
24149
24153
|
tn as SetZoomRatioOperation,
|
|
24150
24154
|
Ub as SheetBar,
|
|
24151
|
-
|
|
24155
|
+
Po as SheetCanvasPopManagerService,
|
|
24152
24156
|
Zs as SheetCellEditorResizeService,
|
|
24153
24157
|
Qs as SheetClipboardService,
|
|
24154
24158
|
mn as SheetCopyCommand,
|
|
24155
24159
|
Ym as SheetCutCommand,
|
|
24156
24160
|
hw as SheetMenuPosition,
|
|
24157
|
-
|
|
24161
|
+
oo as SheetPasteBesidesBorderCommand,
|
|
24158
24162
|
li as SheetPasteColWidthCommand,
|
|
24159
24163
|
fn as SheetPasteCommand,
|
|
24160
|
-
|
|
24164
|
+
io as SheetPasteFormatCommand,
|
|
24161
24165
|
Fc as SheetPasteShortKeyCommand,
|
|
24162
|
-
|
|
24163
|
-
|
|
24166
|
+
ro as SheetPasteValueCommand,
|
|
24167
|
+
xo as SheetPermissionCheckUIController,
|
|
24164
24168
|
gf as SheetPermissionOpenDialogOperation,
|
|
24165
|
-
|
|
24169
|
+
Fn as SheetPermissionOpenPanelOperation,
|
|
24166
24170
|
Fr as SheetPermissionUserManagerService,
|
|
24167
24171
|
mp as SheetPrintInterceptorService,
|
|
24168
24172
|
el as SheetRenderController,
|
|
@@ -24171,7 +24175,7 @@ export {
|
|
|
24171
24175
|
he as SheetSkeletonManagerService,
|
|
24172
24176
|
il as SheetUIController,
|
|
24173
24177
|
xr as SheetsRenderService,
|
|
24174
|
-
|
|
24178
|
+
So as SheetsScrollRenderController,
|
|
24175
24179
|
mR as SheetsUIMenuSchema,
|
|
24176
24180
|
am as SheetsUIPart,
|
|
24177
24181
|
ma as ShowMenuListCommand,
|
|
@@ -24185,7 +24189,7 @@ export {
|
|
|
24185
24189
|
di as ViewSheetPermissionFromContextMenuCommand,
|
|
24186
24190
|
ha as ViewSheetPermissionFromSheetBarCommand,
|
|
24187
24191
|
Bs as attachPrimaryWithCoord,
|
|
24188
|
-
|
|
24192
|
+
uo as attachRangeWithCoord,
|
|
24189
24193
|
xt as attachSelectionWithCoord,
|
|
24190
24194
|
sI as calculateDocSkeletonRects,
|
|
24191
24195
|
Js as checkInHeaderRanges,
|
|
@@ -24200,7 +24204,7 @@ export {
|
|
|
24200
24204
|
AE as getAutoFillRepeatRange,
|
|
24201
24205
|
f0 as getCellRealRange,
|
|
24202
24206
|
Fu as getCoordByCell,
|
|
24203
|
-
|
|
24207
|
+
Bn as getCoordByOffset,
|
|
24204
24208
|
uw as getCurrentExclusiveRangeInterest$,
|
|
24205
24209
|
me as getCurrentRangeDisable$,
|
|
24206
24210
|
NE as getCustomRangePosition,
|
|
@@ -24209,7 +24213,7 @@ export {
|
|
|
24209
24213
|
K_ as getMatrixPlainText,
|
|
24210
24214
|
Vi as getObservableWithExclusiveRange$,
|
|
24211
24215
|
VE as getRepeatRange,
|
|
24212
|
-
|
|
24216
|
+
_n as getSheetObject,
|
|
24213
24217
|
Wd as getTopLeftSelectionOfCurrSheet,
|
|
24214
24218
|
ws as getTransformCoord,
|
|
24215
24219
|
LE as isEmbeddingFormulaEditor,
|