@univerjs/sheets-ui 0.10.4 → 0.10.5-nightly.202508290716
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +3 -3
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/es/index.js +197 -188
- package/lib/es/locale/ru-RU.js +6 -6
- package/lib/index.js +197 -188
- package/lib/locale/ru-RU.js +6 -6
- package/lib/types/services/cell-popup-manager.service.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +5 -5
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
- package/LICENSE +0 -176
package/lib/es/index.js
CHANGED
|
@@ -2,11 +2,11 @@ var Dp = Object.defineProperty;
|
|
|
2
2
|
var Lp = (r, e, t) => e in r ? Dp(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var b = (r, e, t) => Lp(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { DOCS_VIEW_KEY as Wp, SetInlineFormatBoldCommand as Bp, SetInlineFormatItalicCommand as Fp, SetInlineFormatUnderlineCommand as Up, SetInlineFormatStrikethroughCommand as Xp, SetInlineFormatSubscriptCommand as zp, SetInlineFormatSuperscriptCommand as jp, SetInlineFormatFontSizeCommand as Yp, SetInlineFormatFontFamilyCommand as Zp, SetInlineFormatTextColorCommand as Wh, IEditorService as Ni, getCanvasOffsetByEngine as hu, VIEWPORT_KEY as ks, DOCS_COMPONENT_MAIN_LAYER_INDEX as Gp, DocSelectionRenderService as Kn, BreakLineCommand as qp, DeleteLeftCommand as Bh, DeleteRightCommand as Qp, ReplaceSnapshotCommand as Fh, MoveSelectionOperation as Kp, MoveCursorOperation as Jp, CoverContentCommand as $p, NodePositionConvertToCursor as Uh, getLineBounding as Xh, DOC_VERTICAL_PADDING as ev, SetInlineFormatCommand as Bo, IMEInputCommand as tv, InsertCommand as nv, convertBodyToHtml as rv } from "@univerjs/docs-ui";
|
|
5
|
-
import { CommandType as K, createInterceptorKey as Nn, ColorKit as
|
|
6
|
-
import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as Bs, SELECTION_CONTROL_BORDER_BUFFER_COLOR as fs, SELECTIONS_ENABLED as Gr, REF_SELECTIONS_ENABLED as Co, SheetSkeletonService as yv, SheetsSelectionsService as $, SheetInterceptorService as Sn, MarkDirtyRowAutoHeightMutation as eg, CancelMarkDirtyRowAutoHeightMutation as tg, getSheetCommandTarget as Ue, SetWorksheetRowAutoHeightMutationFactory as ng, SetWorksheetRowAutoHeightMutation as tr, rangeToDiscreteRange as ho, SetSelectionsOperation as Te, SetRangeValuesMutation as be, generateNullCellValue as Mv, SetRangeValuesUndoMutationFactory as
|
|
5
|
+
import { CommandType as K, createInterceptorKey as Nn, ColorKit as pn, RANGE_TYPE as z, convertCellToRange as Ns, UniverInstanceType as O, IUniverInstanceService as N, Quantity as wc, Disposable as se, toDisposable as We, Tools as ue, createIdentifier as Yt, InterceptorManager as Di, ThemeService as At, Inject as k, Injector as Rt, IConfigService as Lt, generateRandomId as On, ObjectMatrix as Ge, Direction as U, isFormulaString as rd, isFormulaId as iv, CellValueType as Mt, numfmt as $t, ICommandService as L, IUndoRedoService as Zt, Rectangle as le, sequenceExecute as Fo, FOCUSING_SHEET as Ht, FOCUSING_UNIVER_EDITOR as Or, EDITOR_ACTIVATED as Je, FOCUSING_COMMON_DRAWINGS as kl, FOCUSING_FX_BAR_EDITOR as xt, FOCUSING_EDITOR_INPUT_FORMULA as Ds, FOCUSING_EDITOR_STANDALONE as Nl, LRUMap as ov, BaselineOffset as gu, BooleanNumber as Ke, DataStreamTreeTokenType as sv, skipParseTagNames as lv, CustomRangeType as id, DEFAULT_WORKSHEET_ROW_HEIGHT as _c, ILogService as Dl, LocaleService as Pe, ErrorService as av, CellModeEnum as zh, isNotNullOrUndefined as cv, extractPureTextFromCell as jh, getReverseDirection as Yh, IContextService as De, Workbook as dv, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as ke, Optional as od, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Oe, RxDisposable as Dn, DisposableCollection as ht, IPermissionService as rt, fromEventSubject as Ls, sortRules as uv, nameCharacterCheck as hv, throttle as gv, debounce as bc, VerticalAlign as dn, HorizontalAlign as It, WrapStrategy as fr, LocaleType as mu, FOCUSING_EDITOR_BUT_HIDDEN as Rc, DEFAULT_EMPTY_DOCUMENT_VALUE as Zh, isTextFormat as Ll, PresetListType as mv, UserManagerService as Wt, DEFAULT_STYLES as sd, FontWeight as hs, FontItalic as gs, composeStyles as fv, Dimension as Gh, get as Oa, BorderStyleTypes as Ve, AbsoluteRefType as fu, NilCommand as ld, splitIntoGrid as pv, UndoCommandId as vv, willLoseNumericPrecision as Sv, Range as Es, cellToRange as Cv, handleStyleToString as pu, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY as vu, DEFAULT_WORKSHEET_COLUMN_WIDTH as Su, DocumentFlavor as wv, isRealNum as qh, InterceptorEffectEnum as _v, IAuthzIoService as Wl, isValidRange as bv, dayjs as ms, BuildTextUtils as Rv, DependentOn as Qh, Plugin as Kh, merge as Jh, registerDependencies as Ws, mergeOverrideWithDependencies as $h, touchDependencies as ei, set as Iv } from "@univerjs/core";
|
|
6
|
+
import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as Bs, SELECTION_CONTROL_BORDER_BUFFER_COLOR as fs, SELECTIONS_ENABLED as Gr, REF_SELECTIONS_ENABLED as Co, SheetSkeletonService as yv, SheetsSelectionsService as $, SheetInterceptorService as Sn, MarkDirtyRowAutoHeightMutation as eg, CancelMarkDirtyRowAutoHeightMutation as tg, getSheetCommandTarget as Ue, SetWorksheetRowAutoHeightMutationFactory as ng, SetWorksheetRowAutoHeightMutation as tr, rangeToDiscreteRange as ho, SetSelectionsOperation as Te, SetRangeValuesMutation as be, generateNullCellValue as Mv, SetRangeValuesUndoMutationFactory as en, SetWorksheetActiveOperation as nt, getPrimaryForRange as rg, DeleteRangeMoveLeftCommand as Cu, DeleteRangeMoveUpCommand as wu, alignToMergedCellsBorders as Tn, SetRowHiddenCommand as ig, SetColHiddenCommand as og, SetBoldCommand as ad, SetItalicCommand as cd, SetUnderlineCommand as dd, SetStrikeThroughCommand as ud, SetFontSizeCommand as hd, SetFontFamilyCommand as gd, SetTextColorCommand as sg, InsertRangeMoveDownCommand as Ic, InsertRangeMoveRightCommand as yc, EditStateEnum as ln, ViewStateEnum as ui, UnitObject as kt, WorksheetProtectionRuleModel as ft, DeleteWorksheetProtectionCommand as Fs, RangeProtectionRuleModel as $e, DeleteRangeProtectionMutation as _u, AddRangeProtectionMutation as Ev, RemoveRowCommand as lg, RemoveColCommand as ag, RemoveSheetCommand as Tv, SetFrozenMutationFactory as cg, SetFrozenMutation as pr, getSelectionsService as Uo, SelectionMoveType as Xt, getCellAtRowCol as Ts, expandToContinuousRange as Pv, ScrollToCellOperation as md, SetWorksheetColWidthMutation as an, BEFORE_CELL_EDIT as xv, AddWorksheetProtectionCommand as dg, SetRangeValuesCommand as Bl, MoveRangeMutation as nr, RemoveRowMutation as Xo, RemoveColMutation as zo, InsertRowMutation as jo, InsertColMutation as Yo, MoveRowsMutation as Fl, MoveColsMutation as Ul, SetWorksheetRowHeightMutation as wo, RemoveSheetMutation as An, RemoveMergeUndoMutationFactory as Xl, RemoveWorksheetMergeMutation as Qt, AddWorksheetMergeMutation as Kt, getAddMergeMutationRangeByType as zl, AddMergeUndoMutationFactory as jl, WorkbookEditablePermission as Q, WorksheetEditPermission as te, UnitAction as _o, SetWorksheetShowCommand as fd, RangeProtectionCache as Zo, WorksheetViewPermission as ug, SetWorksheetOrderMutation as pd, InsertSheetMutation as Ar, SetWorksheetNameMutation as vd, SetWorksheetHideMutation as rr, SetWorksheetActivateCommand as Sd, WorkbookManageCollaboratorPermission as hg, WorkbookRenameSheetPermission as gg, SetWorksheetOrderCommand as Ov, SetWorksheetNameCommand as Av, SetTabColorMutation as Hv, WorkbookCreateSheetPermission as mg, InsertSheetCommand as Vv, ClearSelectionFormatCommand as go, COMMAND_LISTENER_SKELETON_CHANGE as Us, adjustRangeOnMutation as kv, RangeProtectionPermissionEditPoint as ie, IExclusiveRangeService as Nv, BorderStyleManagerService as Mc, WorksheetSetCellStylePermission as Ze, SetBorderBasicCommand as Ec, ClearSelectionAllCommand as so, WorksheetSetCellValuePermission as qt, ClearSelectionContentCommand as vr, WorkbookDeleteRowPermission as Dv, WorksheetDeleteRowPermission as Lv, WorkbookDeleteColumnPermission as Wv, WorksheetDeleteColumnPermission as Bv, ToggleGridlinesCommand as fg, ToggleGridlinesMutation as Fv, InsertMultiRowsAfterCommand as pg, WorkbookInsertRowPermission as Yl, WorksheetInsertRowPermission as Zl, InsertMultiRowsAboveCommand as vg, InsertMultiColsRightCommand as Sg, WorkbookInsertColumnPermission as Gl, WorksheetInsertColumnPermission as ql, InsertMultiColsLeftCommand as Cg, InsertColBeforeCommand as wg, InsertRowBeforeCommand as _g, CancelFrozenCommand as Ps, SetWorksheetRowIsAutoHeightCommand as Cd, WorksheetSetRowStylePermission as Hr, SetRowHeightCommand as bg, SetRowHiddenMutation as Rg, SetRowVisibleMutation as Ig, SetSelectedRowsVisibleCommand as yg, WorksheetSetColumnStylePermission as Vr, SetColWidthCommand as Mg, SetColHiddenMutation as Eg, SetColVisibleMutation as Tg, SetSelectedColsVisibleCommand as Pg, SetTextRotationCommand as Tc, SetTextWrapCommand as Pc, SetVerticalTextAlignCommand as xc, SetHorizontalTextAlignCommand as Oc, ResetBackgroundColorCommand as xg, SetBackgroundColorCommand as Xs, WorksheetCopyPermission as zs, RangeProtectionPermissionViewPoint as Ac, WorkbookCopyPermission as lo, SetWorksheetRowIsAutoHeightMutation as Uv, AddMergeRedoSelectionsOperationFactory as Xv, AddMergeUndoSelectionsOperationFactory as zv, MergeCellController as jv, MERGE_CELL_INTERCEPTOR_CHECK as Yv, RemoveWorksheetMergeCommand as Og, WorkbookCreateProtectPermission as Ql, WorksheetDeleteProtectionPermission as Ag, WorksheetManageCollaboratorPermission as Zv, SetWorksheetHideCommand as Hg, SetTabColorCommand as Vg, CopySheetCommand as kg, WorkbookDeleteSheetPermission as Gv, WorkbookHideSheetPermission as Ng, AddWorksheetMergeCommand as qv, AddWorksheetMergeHorizontalCommand as Qv, AddWorksheetMergeVerticalCommand as Kv, AddWorksheetMergeAllCommand as Jv, ResetTextColorCommand as $v, SheetPermissionCheckController as wd, SetFrozenCommand as eS, InsertRowCommand as tS, InsertColCommand as nS, MoveColsCommand as Dg, MoveRowsCommand as Lg, DeltaRowHeightCommand as rS, DeltaColumnWidthCommand as iS, COMMAND_LISTENER_VALUE_CHANGE as oS, RefRangeService as sS, IRefSelectionsService as _d, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as Hc, InsertDefinedNameCommand as lS, SetDefinedNameCommand as aS, RemoveDefinedNameCommand as cS, INumfmtService as dS, ToggleCellCheckboxCommand as uS, MoveRangeCommand as Wg, MAX_CELL_PER_SHEET_KEY as hS, INTERCEPTOR_POINT as gS, SheetPermissionInitController as mS, SetProtectionCommand as fS, AddRangeProtectionCommand as pS, setEndForRange as vS, baseProtectionActions as SS, DeleteRangeProtectionCommand as CS, WorksheetProtectionPointModel as wS, SetWorksheetPermissionPointsCommand as _S, getAllWorksheetPermissionPoint as bS, SetSpecificRowsVisibleCommand as RS, SetSpecificColsVisibleCommand as IS, convertSelectionDataToRange as Bg, UniverSheetsPlugin as Fg, RefSelectionsService as Ug } from "@univerjs/sheets";
|
|
7
7
|
import { IRenderManagerService as Ce, withCurrentTypeOfRenderer as bd, SHEET_VIEWPORT_KEY as F, CURSOR_TYPE as ye, Vector2 as Ne, Rect as we, ScrollTimer as ti, ScrollTimerType as _t, DashedRect as yS, Group as Aa, TRANSFORM_CHANGE_OBSERVABLE_TYPE as Vc, cancelRequestFrame as MS, requestNewFrame as ES, FIX_ONE_PIXEL_BLUR_OFFSET as TS, Layer as PS, SpreadsheetSkeleton as xS, ptToPixel as bu, RENDER_CLASS_TYPE as OS, DeviceInputEventType as ze, convertTransformToOffsetX as qr, convertTransformToOffsetY as Qr, convertTextRotation as Rd, RENDER_RAW_FORMULA_KEY as AS, Spreadsheet as Xg, getCurrentTypeOfRenderer as Go, ScrollBar as Id, fixLineWidthByScale as Ru, Shape as yd, SHEET_EXTENSION_PREFIX as Iu, SpreadsheetRowHeader as HS, SpreadsheetColumnHeader as VS, Viewport as wn, hasCJKText as kS, DEFAULT_PADDING_DATA as NS, SheetExtension as zg, RegularPolygon as ao, precisionTo as qn } from "@univerjs/engine-render";
|
|
8
|
-
import { BehaviorSubject as Me, Subject as Ae, switchMap as lt, map as Be, of as Ie, merge as St, startWith as Pt, takeUntil as hi, distinctUntilChanged as
|
|
9
|
-
import { DEFAULT_BACKGROUND_COLOR_RGB as LS, DEFAULT_BACKGROUND_COLOR_RGBA as WS, handleStringToStyle as BS, textTrim as Eu, IClipboardInterfaceService as Kl, INotificationService as FS, IPlatformService as US, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as Tu, HTML_CLIPBOARD_MIME_TYPE as Pu, imageMimeTypeSet as XS, FILE__BMP_CLIPBOARD_MIME_TYPE as zS, FILE__WEBP_CLIPBOARD_MIME_TYPE as jS, FILE__JPEG_CLIPBOARD_MIME_TYPE as YS, FILE_PNG_CLIPBOARD_MIME_TYPE as ZS, CopyCommand as GS, CutCommand as qS, PasteCommand as QS, SheetPasteShortKeyCommandName as KS, IConfirmService as
|
|
8
|
+
import { BehaviorSubject as Me, Subject as Ae, switchMap as lt, map as Be, of as Ie, merge as St, startWith as Pt, takeUntil as hi, distinctUntilChanged as un, throttleTime as js, EMPTY as yu, filter as qo, combineLatest as at, Observable as je, combineLatestWith as sr, shareReplay as Mu, Subscription as Jn, withLatestFrom as DS } from "rxjs";
|
|
9
|
+
import { DEFAULT_BACKGROUND_COLOR_RGB as LS, DEFAULT_BACKGROUND_COLOR_RGBA as WS, handleStringToStyle as BS, textTrim as Eu, IClipboardInterfaceService as Kl, INotificationService as FS, IPlatformService as US, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as Tu, HTML_CLIPBOARD_MIME_TYPE as Pu, imageMimeTypeSet as XS, FILE__BMP_CLIPBOARD_MIME_TYPE as zS, FILE__WEBP_CLIPBOARD_MIME_TYPE as jS, FILE__JPEG_CLIPBOARD_MIME_TYPE as YS, FILE_PNG_CLIPBOARD_MIME_TYPE as ZS, CopyCommand as GS, CutCommand as qS, PasteCommand as QS, SheetPasteShortKeyCommandName as KS, IConfirmService as nn, ISidebarService as Li, KeyCode as Z, IDialogService as Qo, useDependency as D, useObservable as ut, ComponentManager as Vt, DISABLE_AUTO_FOCUS_KEY as xu, useEvent as Ou, useSidebarClick as jg, MetaKeys as Se, useComponentsOfPart as JS, ComponentContainer as $S, useConfigValue as Jl, UI_PLUGIN_CONFIG_KEY as $l, UIMenu as eC, ContextMenuPosition as bt, Slider as tC, IMessageService as Yg, IMenuManagerService as Md, ToolbarItem as nC, ILayoutService as Ed, getMenuHiddenObservable as de, MenuItemType as J, IContextMenuService as Td, COLOR_PICKER_COMPONENT as Pd, FONT_SIZE_LIST as rC, FONT_SIZE_COMPONENT as iC, FONT_FAMILY_LIST as oC, FONT_FAMILY_COMPONENT as sC, FONT_FAMILY_ITEM_COMPONENT as lC, ContextMenuGroup as Qe, RibbonPosition as aC, RibbonStartGroup as ps, ICanvasPopupService as cC, IShortcutService as ea, IUIPartsService as xd, BuiltInUIPart as ni, connectInjector as ri, IZenZoneService as Zg, RectPopup as dC, UniverMobileUIPlugin as uC } from "@univerjs/ui";
|
|
10
10
|
import { forwardRef as ct, useRef as Pn, createElement as st, useState as re, useMemo as Ct, useEffect as Ee, useCallback as Hn, useLayoutEffect as hC } from "react";
|
|
11
11
|
import { DocSkeletonManagerService as $n, DocSelectionManagerService as Od, RichTextEditingMutation as bo, SetTextSelectionsOperation as Ko } from "@univerjs/docs";
|
|
12
12
|
import { IDefinedNamesService as Jo, FUNCTION_NAMES_STATISTICAL as Xe, FUNCTION_NAMES_MATH as ta, FUNCTION_NAMES_TEXT as gC, sequenceNodeType as Ha, matchToken as Gg, LexerTreeBuilder as qg, IFunctionService as Qg, SetFormulaCalculationNotificationMutation as mC, operatorToken as Zr, isReferenceStrings as Kg, isReferenceStringWithEffectiveColumn as fC, serializeRangeWithSheet as Jg, deserializeRangeWithSheet as $g, NullValueObject as Au, serializeRange as em } from "@univerjs/engine-formula";
|
|
@@ -67,7 +67,7 @@ const Vu = 0, Gs = 1, ir = 10, yC = 11, ku = 12, ia = {
|
|
|
67
67
|
}, Lc = Nn("rangeMovePermissionCheck"), Wc = Nn("rangeFillPermissionCheck");
|
|
68
68
|
var lm = /* @__PURE__ */ ((r) => (r[r.FORMULA_EDITOR_SHOW = 100] = "FORMULA_EDITOR_SHOW", r[r.MARK_SELECTION = 1e4] = "MARK_SELECTION", r))(lm || {});
|
|
69
69
|
function wr(r) {
|
|
70
|
-
const e = r.getColorFromTheme("primary.600"), t = r.getColorFromTheme("white"), n = new
|
|
70
|
+
const e = r.getColorFromTheme("primary.600"), t = r.getColorFromTheme("white"), n = new pn(e).setAlpha(0.07).toRgbString();
|
|
71
71
|
return {
|
|
72
72
|
strokeWidth: 1,
|
|
73
73
|
stroke: e,
|
|
@@ -556,7 +556,7 @@ class TC {
|
|
|
556
556
|
}
|
|
557
557
|
const w = this._skeleton.getNoMergeCellWithCoordByIndex(g, m), S = this._skeleton.getNoMergeCellWithCoordByIndex(f, v), I = (w == null ? void 0 : w.startY) || 0, R = (S == null ? void 0 : S.endY) || 0, y = (w == null ? void 0 : w.startX) || 0, E = (S == null ? void 0 : S.endX) || 0;
|
|
558
558
|
p ? this._controlHandler((H, x) => {
|
|
559
|
-
const V = new
|
|
559
|
+
const V = new pn(this._fillControlColors[x]).lighten(EC).toRgbString();
|
|
560
560
|
H.setProps({
|
|
561
561
|
fill: V
|
|
562
562
|
});
|
|
@@ -599,7 +599,7 @@ class TC {
|
|
|
599
599
|
g == null && (g = f.stroke), m == null && (m = f.strokeWidth);
|
|
600
600
|
const v = this._getScale();
|
|
601
601
|
m /= v;
|
|
602
|
-
const p = Bs / v, C = new
|
|
602
|
+
const p = Bs / v, C = new pn(g).darken(2).toRgbString();
|
|
603
603
|
this.isHelperSelection && (this._helperSelection = new we(Nu, {
|
|
604
604
|
stroke: C,
|
|
605
605
|
strokeWidth: m + p / 2
|
|
@@ -1252,7 +1252,7 @@ class Ld extends se {
|
|
|
1252
1252
|
const p = this._rowHeaderWidth, C = this._columnHeaderHeight;
|
|
1253
1253
|
if (this._highlightHeader && C > 0) {
|
|
1254
1254
|
let w = g;
|
|
1255
|
-
l === z.COLUMN && (w = new
|
|
1255
|
+
l === z.COLUMN && (w = new pn(d).setAlpha(Du).toString()), this._columnHeaderBackground.setProps({
|
|
1256
1256
|
fill: w
|
|
1257
1257
|
}), this._columnHeaderBackground.resize(o - n, C), this._columnHeaderBorder.setProps({
|
|
1258
1258
|
fill: m
|
|
@@ -1266,7 +1266,7 @@ class Ld extends se {
|
|
|
1266
1266
|
this._columnHeaderGroup.hide();
|
|
1267
1267
|
if (this._columnHeaderGroup.makeDirty(!0), this._highlightHeader && p > 0) {
|
|
1268
1268
|
let w = u;
|
|
1269
|
-
l === z.ROW && (w = new
|
|
1269
|
+
l === z.ROW && (w = new pn(d).setAlpha(Du).toString()), this._rowHeaderBackground.setProps({
|
|
1270
1270
|
fill: w
|
|
1271
1271
|
}), this._rowHeaderBackground.resize(p, s - i), this._rowHeaderBorder.setProps({
|
|
1272
1272
|
fill: h
|
|
@@ -2660,8 +2660,8 @@ const QC = {
|
|
|
2660
2660
|
if (typeof r.s == "string") {
|
|
2661
2661
|
const i = e.get(N).getFocusedUnit().getStyles().get(r.s), o = (t = i == null ? void 0 : i.n) == null ? void 0 : t.pattern;
|
|
2662
2662
|
if (o)
|
|
2663
|
-
return
|
|
2664
|
-
} else if (r.s.n &&
|
|
2663
|
+
return $t.getFormatInfo(o).isDate;
|
|
2664
|
+
} else if (r.s.n && $t.getFormatInfo(r.s.n.pattern).isDate)
|
|
2665
2665
|
return !0;
|
|
2666
2666
|
}
|
|
2667
2667
|
return !1;
|
|
@@ -3133,7 +3133,7 @@ const kr = Yt("univer.auto-fill-service"), mr = {
|
|
|
3133
3133
|
subUnitId: a,
|
|
3134
3134
|
unitId: l,
|
|
3135
3135
|
cellValue: Mv([c])
|
|
3136
|
-
}, h =
|
|
3136
|
+
}, h = en(
|
|
3137
3137
|
r,
|
|
3138
3138
|
u
|
|
3139
3139
|
), { startColumn: g, startRow: m } = d, f = {
|
|
@@ -3388,7 +3388,7 @@ function ju(r, e, t) {
|
|
|
3388
3388
|
}
|
|
3389
3389
|
case "color": {
|
|
3390
3390
|
try {
|
|
3391
|
-
const n = new
|
|
3391
|
+
const n = new pn(e);
|
|
3392
3392
|
n.isValid && (t.cl = {
|
|
3393
3393
|
rgb: n.toRgbString()
|
|
3394
3394
|
});
|
|
@@ -3397,7 +3397,7 @@ function ju(r, e, t) {
|
|
|
3397
3397
|
break;
|
|
3398
3398
|
}
|
|
3399
3399
|
case "background-color": {
|
|
3400
|
-
const n = new
|
|
3400
|
+
const n = new pn(e), i = n.isValid ? n.toRgbString() : "";
|
|
3401
3401
|
i !== LS && i !== WS && (t.bg = { rgb: i });
|
|
3402
3402
|
break;
|
|
3403
3403
|
}
|
|
@@ -3724,6 +3724,14 @@ const Vl = class Vl {
|
|
|
3724
3724
|
}
|
|
3725
3725
|
_getCellTextAndRichText(e, t, n) {
|
|
3726
3726
|
var l;
|
|
3727
|
+
if (e.innerHTML.includes("mso-spacerun:yes")) {
|
|
3728
|
+
const a = e.innerHTML.replace(/<span[^>]*mso-spacerun:yes[^>]*>.*?<\/span>/gi, ""), c = $t.parseNumber(a);
|
|
3729
|
+
if (c && c.v !== void 0 && c.v !== null)
|
|
3730
|
+
return {
|
|
3731
|
+
cellText: a,
|
|
3732
|
+
cellRichStyle: void 0
|
|
3733
|
+
};
|
|
3734
|
+
}
|
|
3727
3735
|
let i = "", o;
|
|
3728
3736
|
if (/<[^>]+>/.test(e.innerHTML) && n) {
|
|
3729
3737
|
const a = {
|
|
@@ -4191,7 +4199,7 @@ const et = {
|
|
|
4191
4199
|
pi.use(_1);
|
|
4192
4200
|
pi.use(C1);
|
|
4193
4201
|
pi.use(w1);
|
|
4194
|
-
const
|
|
4202
|
+
const rn = Yt("sheet.clipboard-service");
|
|
4195
4203
|
let tl = class extends se {
|
|
4196
4204
|
constructor(e, t, n, i, o, s, l, a, c, d, u, h, g, m) {
|
|
4197
4205
|
super();
|
|
@@ -4891,14 +4899,14 @@ function Qi() {
|
|
|
4891
4899
|
t: null
|
|
4892
4900
|
};
|
|
4893
4901
|
}
|
|
4894
|
-
const zd = 998,
|
|
4902
|
+
const zd = 998, hn = {
|
|
4895
4903
|
id: GS.id,
|
|
4896
4904
|
name: "sheet.command.copy",
|
|
4897
4905
|
type: K.COMMAND,
|
|
4898
4906
|
multi: !0,
|
|
4899
4907
|
priority: zd,
|
|
4900
4908
|
preconditions: Bd,
|
|
4901
|
-
handler: async (r) => r.get(
|
|
4909
|
+
handler: async (r) => r.get(rn).copy()
|
|
4902
4910
|
}, jd = {
|
|
4903
4911
|
id: qS.id,
|
|
4904
4912
|
name: "sheet.command.cut",
|
|
@@ -4906,8 +4914,8 @@ const zd = 998, un = {
|
|
|
4906
4914
|
multi: !0,
|
|
4907
4915
|
priority: zd,
|
|
4908
4916
|
preconditions: Bd,
|
|
4909
|
-
handler: async (r) => r.get(
|
|
4910
|
-
},
|
|
4917
|
+
handler: async (r) => r.get(rn).cut()
|
|
4918
|
+
}, gn = {
|
|
4911
4919
|
id: QS.id,
|
|
4912
4920
|
type: K.COMMAND,
|
|
4913
4921
|
multi: !0,
|
|
@@ -4915,47 +4923,47 @@ const zd = 998, un = {
|
|
|
4915
4923
|
priority: zd,
|
|
4916
4924
|
preconditions: Bd,
|
|
4917
4925
|
handler: async (r, e) => {
|
|
4918
|
-
const n = await r.get(Kl).read(), i = r.get(
|
|
4926
|
+
const n = await r.get(Kl).read(), i = r.get(rn);
|
|
4919
4927
|
return n.length !== 0 ? i.paste(n[0], e == null ? void 0 : e.value) : !1;
|
|
4920
4928
|
}
|
|
4921
4929
|
}, Uc = {
|
|
4922
4930
|
id: KS,
|
|
4923
4931
|
type: K.COMMAND,
|
|
4924
4932
|
handler: async (r, e) => {
|
|
4925
|
-
const t = r.get(
|
|
4933
|
+
const t = r.get(rn), { htmlContent: n, textContent: i, files: o } = e;
|
|
4926
4934
|
return t.legacyPaste(n, i, o), !0;
|
|
4927
4935
|
}
|
|
4928
4936
|
}, fo = {
|
|
4929
4937
|
id: "sheet.command.paste-value",
|
|
4930
4938
|
type: K.COMMAND,
|
|
4931
|
-
handler: async (r) => r.get(L).executeCommand(
|
|
4939
|
+
handler: async (r) => r.get(L).executeCommand(gn.id, { value: et.SPECIAL_PASTE_VALUE })
|
|
4932
4940
|
}, po = {
|
|
4933
4941
|
id: "sheet.command.paste-format",
|
|
4934
4942
|
type: K.COMMAND,
|
|
4935
|
-
handler: async (r) => r.get(L).executeCommand(
|
|
4943
|
+
handler: async (r) => r.get(L).executeCommand(gn.id, {
|
|
4936
4944
|
value: et.SPECIAL_PASTE_FORMAT
|
|
4937
4945
|
})
|
|
4938
4946
|
}, ii = {
|
|
4939
4947
|
id: "sheet.command.paste-col-width",
|
|
4940
4948
|
type: K.COMMAND,
|
|
4941
|
-
handler: async (r) => r.get(L).executeCommand(
|
|
4949
|
+
handler: async (r) => r.get(L).executeCommand(gn.id, {
|
|
4942
4950
|
value: et.SPECIAL_PASTE_COL_WIDTH
|
|
4943
4951
|
})
|
|
4944
4952
|
}, vo = {
|
|
4945
4953
|
id: "sheet.command.paste-besides-border",
|
|
4946
4954
|
type: K.COMMAND,
|
|
4947
|
-
handler: async (r) => r.get(L).executeCommand(
|
|
4955
|
+
handler: async (r) => r.get(L).executeCommand(gn.id, {
|
|
4948
4956
|
value: et.SPECIAL_PASTE_BESIDES_BORDER
|
|
4949
4957
|
})
|
|
4950
4958
|
}, pm = {
|
|
4951
4959
|
id: "sheet.command.optional-paste",
|
|
4952
4960
|
type: K.COMMAND,
|
|
4953
|
-
handler: async (r, { type: e }) => r.get(
|
|
4961
|
+
handler: async (r, { type: e }) => r.get(rn).rePasteWithPasteType(e)
|
|
4954
4962
|
}, es = {
|
|
4955
4963
|
type: K.COMMAND,
|
|
4956
4964
|
id: "sheet.command.delete-range-move-left-confirm",
|
|
4957
4965
|
handler: async (r) => {
|
|
4958
|
-
const e = r.get(
|
|
4966
|
+
const e = r.get(nn), t = r.get(L), n = r.get(Pe), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
|
|
4959
4967
|
if (!s)
|
|
4960
4968
|
return !1;
|
|
4961
4969
|
const l = Ue(o);
|
|
@@ -4981,7 +4989,7 @@ const zd = 998, un = {
|
|
|
4981
4989
|
type: K.COMMAND,
|
|
4982
4990
|
id: "sheet.command.delete-range-move-up-confirm",
|
|
4983
4991
|
handler: async (r) => {
|
|
4984
|
-
const e = r.get(
|
|
4992
|
+
const e = r.get(nn), t = r.get(L), n = r.get(Pe), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
|
|
4985
4993
|
if (!s) return !1;
|
|
4986
4994
|
const l = Ue(o);
|
|
4987
4995
|
if (!l) return !1;
|
|
@@ -5383,7 +5391,7 @@ const aa = {
|
|
|
5383
5391
|
if (!o) return !1;
|
|
5384
5392
|
const { worksheet: s } = o, l = s.getVisibleRows();
|
|
5385
5393
|
if (Sm(l, t)) {
|
|
5386
|
-
const c = r.get(
|
|
5394
|
+
const c = r.get(nn), d = r.get(Pe);
|
|
5387
5395
|
return await c.confirm({
|
|
5388
5396
|
id: "sheet.confirm.hide-row",
|
|
5389
5397
|
title: {
|
|
@@ -5408,7 +5416,7 @@ const aa = {
|
|
|
5408
5416
|
if (!o) return !1;
|
|
5409
5417
|
const { worksheet: s } = o, l = s.getVisibleCols();
|
|
5410
5418
|
if (Cm(l, t)) {
|
|
5411
|
-
const c = r.get(
|
|
5419
|
+
const c = r.get(nn), d = r.get(Pe);
|
|
5412
5420
|
return await c.confirm({
|
|
5413
5421
|
id: "sheet.confirm.hide-col",
|
|
5414
5422
|
title: {
|
|
@@ -5497,7 +5505,7 @@ const aa = {
|
|
|
5497
5505
|
type: K.COMMAND,
|
|
5498
5506
|
id: "sheet.command.insert-range-move-down-confirm",
|
|
5499
5507
|
handler: async (r) => {
|
|
5500
|
-
const e = r.get(
|
|
5508
|
+
const e = r.get(nn), t = r.get(L), n = r.get(Pe), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
|
|
5501
5509
|
if (!s)
|
|
5502
5510
|
return !1;
|
|
5503
5511
|
const l = Ue(o);
|
|
@@ -5531,7 +5539,7 @@ const aa = {
|
|
|
5531
5539
|
type: K.COMMAND,
|
|
5532
5540
|
id: "sheet.command.insert-range-move-right-confirm",
|
|
5533
5541
|
handler: async (r) => {
|
|
5534
|
-
const e = r.get(
|
|
5542
|
+
const e = r.get(nn), t = r.get(L), n = r.get(Pe), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
|
|
5535
5543
|
if (!s)
|
|
5536
5544
|
return !1;
|
|
5537
5545
|
const l = Ue(o);
|
|
@@ -5554,7 +5562,7 @@ const aa = {
|
|
|
5554
5562
|
}) ? t.executeCommand(yc.id) : !0 : t.executeCommand(yc.id);
|
|
5555
5563
|
}
|
|
5556
5564
|
};
|
|
5557
|
-
var bm = /* @__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))(bm || {}), me = /* @__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))(me || {}), 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 || {}), Mn = /* @__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))(Mn || {}),
|
|
5565
|
+
var bm = /* @__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))(bm || {}), me = /* @__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))(me || {}), 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 || {}), Mn = /* @__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))(Mn || {}), sn = /* @__PURE__ */ ((r) => (r[r.SomeCollaborator = 0] = "SomeCollaborator", r[r.AllCollaborator = 1] = "AllCollaborator", r[r.OneSelf = 2] = "OneSelf", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(sn || {});
|
|
5558
5566
|
const Eo = "UNIVER_SHEET_PERMISSION_PANEL", ha = "UNIVER_SHEET_PERMISSION_USER_PART", Rm = "UNIVER_SHEET_PERMISSION_USER_DIALOG", Im = "UNIVER_SHEET_PERMISSION_DIALOG", nl = "UNIVER_SHEET_PERMISSION_USER_DIALOG_ID", rl = "UNIVER_SHEET_PERMISSION_DIALOG_ID", Ss = {
|
|
5559
5567
|
[me.Copy]: "Copy",
|
|
5560
5568
|
[me.SetCellStyle]: "SetCellStyle",
|
|
@@ -5594,7 +5602,7 @@ const Eo = "UNIVER_SHEET_PERMISSION_PANEL", ha = "UNIVER_SHEET_PERMISSION_USER_P
|
|
|
5594
5602
|
id: "",
|
|
5595
5603
|
ranges: [],
|
|
5596
5604
|
viewState: ui.OthersCanView,
|
|
5597
|
-
editState:
|
|
5605
|
+
editState: ln.OnlyMe
|
|
5598
5606
|
};
|
|
5599
5607
|
class yr {
|
|
5600
5608
|
constructor() {
|
|
@@ -5773,7 +5781,7 @@ const Vn = {
|
|
|
5773
5781
|
if (!s) return !1;
|
|
5774
5782
|
const { worksheet: l } = s, a = l.getVisibleRows();
|
|
5775
5783
|
if (Sm(a, [n])) {
|
|
5776
|
-
const d = r.get(
|
|
5784
|
+
const d = r.get(nn), u = r.get(Pe);
|
|
5777
5785
|
return await d.confirm({
|
|
5778
5786
|
id: "sheet.confirm.remove-row",
|
|
5779
5787
|
title: {
|
|
@@ -5799,7 +5807,7 @@ const Vn = {
|
|
|
5799
5807
|
if (!s) return !1;
|
|
5800
5808
|
const { worksheet: l } = s, a = l.getVisibleCols();
|
|
5801
5809
|
if (Cm(a, [n])) {
|
|
5802
|
-
const d = r.get(
|
|
5810
|
+
const d = r.get(nn), u = r.get(Pe);
|
|
5803
5811
|
return await d.confirm({
|
|
5804
5812
|
id: "sheet.confirm.remove-col",
|
|
5805
5813
|
title: {
|
|
@@ -5816,7 +5824,7 @@ const Vn = {
|
|
|
5816
5824
|
id: "sheet.command.remove-sheet-confirm",
|
|
5817
5825
|
type: K.COMMAND,
|
|
5818
5826
|
handler: async (r, e) => {
|
|
5819
|
-
const { subUnitId: t } = e, n = r.get(
|
|
5827
|
+
const { subUnitId: t } = e, n = r.get(nn), i = r.get(L), o = r.get(Pe);
|
|
5820
5828
|
return await n.confirm({
|
|
5821
5829
|
id: "sheet.confirm.remove-sheet",
|
|
5822
5830
|
title: {
|
|
@@ -6426,7 +6434,7 @@ const Bt = {
|
|
|
6426
6434
|
function nw(r) {
|
|
6427
6435
|
return typeof r.isMainScene > "u";
|
|
6428
6436
|
}
|
|
6429
|
-
function
|
|
6437
|
+
function tn(r, e) {
|
|
6430
6438
|
const t = r instanceof dv ? r : r.getCurrentUnitForType(O.UNIVER_SHEET);
|
|
6431
6439
|
if (!t) return null;
|
|
6432
6440
|
const n = t.getUnitId();
|
|
@@ -6573,7 +6581,7 @@ let wi = class extends se {
|
|
|
6573
6581
|
o,
|
|
6574
6582
|
s
|
|
6575
6583
|
);
|
|
6576
|
-
this._commandService.executeCommand(
|
|
6584
|
+
this._commandService.executeCommand(fn.id, {
|
|
6577
6585
|
sheetViewStartRow: l,
|
|
6578
6586
|
sheetViewStartColumn: a,
|
|
6579
6587
|
offsetX: d,
|
|
@@ -6623,7 +6631,7 @@ let wi = class extends se {
|
|
|
6623
6631
|
ySplit: n,
|
|
6624
6632
|
xSplit: i
|
|
6625
6633
|
} = t.getFreeze();
|
|
6626
|
-
return this._commandService.syncExecuteCommand(
|
|
6634
|
+
return this._commandService.syncExecuteCommand(fn.id, {
|
|
6627
6635
|
sheetViewStartRow: r - n,
|
|
6628
6636
|
sheetViewStartColumn: e - i,
|
|
6629
6637
|
offsetX: 0,
|
|
@@ -6690,7 +6698,7 @@ let wi = class extends se {
|
|
|
6690
6698
|
}));
|
|
6691
6699
|
}
|
|
6692
6700
|
_getSheetObject() {
|
|
6693
|
-
return
|
|
6701
|
+
return tn(this._context.unit, this._context);
|
|
6694
6702
|
}
|
|
6695
6703
|
_scrollToSelectionByDirection(r) {
|
|
6696
6704
|
const e = this._getViewportBounding();
|
|
@@ -6781,7 +6789,7 @@ let wi = class extends se {
|
|
|
6781
6789
|
const A = a.getHiddenRowsInRange({ startRow: w - h, endRow: w });
|
|
6782
6790
|
w = w - A.length;
|
|
6783
6791
|
}
|
|
6784
|
-
return this._commandService.syncExecuteCommand(
|
|
6792
|
+
return this._commandService.syncExecuteCommand(fn.id, {
|
|
6785
6793
|
// sheetViewStartRow & offsetX should never be undefined, it's rendering, there should always be a value!
|
|
6786
6794
|
// sheetViewStartRow: forceTop ? Math.max(0, row - freezeYSplit) : ((startSheetViewRow ?? 0) - freezeYSplit),
|
|
6787
6795
|
// sheetViewStartColumn: forceLeft ? Math.max(0, column - freezeXSplit) : ((startSheetViewColumn ?? 0) - freezeXSplit),
|
|
@@ -6802,7 +6810,7 @@ wi = iw([
|
|
|
6802
6810
|
Ur(5, Ce),
|
|
6803
6811
|
Ur(6, k(Et))
|
|
6804
6812
|
], wi);
|
|
6805
|
-
const
|
|
6813
|
+
const mn = {
|
|
6806
6814
|
id: "sheet.operation.set-scroll",
|
|
6807
6815
|
type: K.OPERATION,
|
|
6808
6816
|
handler: (r, e) => {
|
|
@@ -6832,7 +6840,7 @@ const gn = {
|
|
|
6832
6840
|
offsetX: m = 0,
|
|
6833
6841
|
offsetY: f = 0
|
|
6834
6842
|
} = c || {};
|
|
6835
|
-
return t.executeCommand(
|
|
6843
|
+
return t.executeCommand(mn.id, {
|
|
6836
6844
|
unitId: s,
|
|
6837
6845
|
sheetId: l,
|
|
6838
6846
|
// why + ySplit? receiver - ySplit in scroll.operation.ts
|
|
@@ -6845,7 +6853,7 @@ const gn = {
|
|
|
6845
6853
|
offsetY: f + u
|
|
6846
6854
|
});
|
|
6847
6855
|
}
|
|
6848
|
-
},
|
|
6856
|
+
}, fn = {
|
|
6849
6857
|
id: "sheet.command.scroll-view",
|
|
6850
6858
|
type: K.COMMAND,
|
|
6851
6859
|
handler: (r, e) => {
|
|
@@ -6862,7 +6870,7 @@ const gn = {
|
|
|
6862
6870
|
offsetX: v,
|
|
6863
6871
|
offsetY: p
|
|
6864
6872
|
} = c || {}, { xSplit: C, ySplit: w } = i.worksheet.getConfig().freeze;
|
|
6865
|
-
return r.get(L).syncExecuteCommand(
|
|
6873
|
+
return r.get(L).syncExecuteCommand(mn.id, {
|
|
6866
6874
|
unitId: o.getUnitId(),
|
|
6867
6875
|
sheetId: s.getSheetId(),
|
|
6868
6876
|
// why + ySplit? receiver - ySplit in scroll.operation.ts
|
|
@@ -6888,7 +6896,7 @@ const gn = {
|
|
|
6888
6896
|
const e = r.get(N), t = Ue(e);
|
|
6889
6897
|
if (!t) return !1;
|
|
6890
6898
|
const { subUnitId: n, unitId: i } = t;
|
|
6891
|
-
return r.get(L).executeCommand(
|
|
6899
|
+
return r.get(L).executeCommand(mn.id, {
|
|
6892
6900
|
unitId: i,
|
|
6893
6901
|
sheetId: n,
|
|
6894
6902
|
sheetViewStartRow: 0,
|
|
@@ -6936,13 +6944,13 @@ let Mr = class extends se {
|
|
|
6936
6944
|
return {
|
|
6937
6945
|
undos: [
|
|
6938
6946
|
{
|
|
6939
|
-
id:
|
|
6947
|
+
id: an.id,
|
|
6940
6948
|
params: h
|
|
6941
6949
|
}
|
|
6942
6950
|
],
|
|
6943
6951
|
redos: [
|
|
6944
6952
|
{
|
|
6945
|
-
id:
|
|
6953
|
+
id: an.id,
|
|
6946
6954
|
params: u
|
|
6947
6955
|
}
|
|
6948
6956
|
]
|
|
@@ -7223,7 +7231,7 @@ let Oo = class extends se {
|
|
|
7223
7231
|
return n ? (n.getConfig().zoomRatio = t, n === this._context.unit.getActiveSheet() && this._updateViewZoom(t), !0) : !1;
|
|
7224
7232
|
}
|
|
7225
7233
|
_initZoomEventListener() {
|
|
7226
|
-
const e =
|
|
7234
|
+
const e = tn(this._context.unit, this._context).scene;
|
|
7227
7235
|
this.disposeWithMe(
|
|
7228
7236
|
// hold ctrl & mousewheel ---> zoom
|
|
7229
7237
|
e.onMouseWheel$.subscribeEvent((t) => {
|
|
@@ -7265,7 +7273,7 @@ let Oo = class extends se {
|
|
|
7265
7273
|
*/
|
|
7266
7274
|
_updateViewZoom(e) {
|
|
7267
7275
|
this._zoom = e;
|
|
7268
|
-
const t =
|
|
7276
|
+
const t = tn(this._context.unit, this._context);
|
|
7269
7277
|
t == null || t.scene.scale(e, e), t == null || t.spreadsheet.makeForceDirty();
|
|
7270
7278
|
}
|
|
7271
7279
|
};
|
|
@@ -7504,7 +7512,7 @@ function Om(r, e, t, n) {
|
|
|
7504
7512
|
unitId: e,
|
|
7505
7513
|
subUnitId: s,
|
|
7506
7514
|
cellValue: a.getData()
|
|
7507
|
-
}, d =
|
|
7515
|
+
}, d = en(
|
|
7508
7516
|
r,
|
|
7509
7517
|
c
|
|
7510
7518
|
);
|
|
@@ -7703,7 +7711,7 @@ let or = class extends Dn {
|
|
|
7703
7711
|
this._renderManagerService.removeRender(t);
|
|
7704
7712
|
}
|
|
7705
7713
|
_initContextListener() {
|
|
7706
|
-
this.disposeWithMe(this._contextService.subscribeContextValue$(AS).pipe(
|
|
7714
|
+
this.disposeWithMe(this._contextService.subscribeContextValue$(AS).pipe(un()).subscribe(() => {
|
|
7707
7715
|
this._renderManagerService.getRenderAll().forEach((e) => {
|
|
7708
7716
|
e.mainComponent instanceof Xg && e.mainComponent.makeForceDirty(!0);
|
|
7709
7717
|
});
|
|
@@ -7759,7 +7767,7 @@ let bi = class extends se {
|
|
|
7759
7767
|
Yo.id,
|
|
7760
7768
|
Fl.id,
|
|
7761
7769
|
Ul.id,
|
|
7762
|
-
|
|
7770
|
+
an.id,
|
|
7763
7771
|
wo.id,
|
|
7764
7772
|
be.id
|
|
7765
7773
|
];
|
|
@@ -8084,7 +8092,7 @@ let bi = class extends se {
|
|
|
8084
8092
|
unitId: c,
|
|
8085
8093
|
cellValue: NC([a])
|
|
8086
8094
|
}, y = this._injector.invoke(
|
|
8087
|
-
|
|
8095
|
+
en,
|
|
8088
8096
|
R
|
|
8089
8097
|
);
|
|
8090
8098
|
o.push({ id: be.id, params: R }), i.unshift({ id: be.id, params: y });
|
|
@@ -8099,7 +8107,7 @@ let bi = class extends se {
|
|
|
8099
8107
|
unitId: c,
|
|
8100
8108
|
cellValue: M
|
|
8101
8109
|
}, P = this._injector.invoke(
|
|
8102
|
-
|
|
8110
|
+
en,
|
|
8103
8111
|
T
|
|
8104
8112
|
);
|
|
8105
8113
|
if (this._autoFillService.getActiveHooks().forEach((x) => {
|
|
@@ -8263,7 +8271,7 @@ let Ho = class extends se {
|
|
|
8263
8271
|
constructor(e, t) {
|
|
8264
8272
|
super();
|
|
8265
8273
|
b(this, "_currentCell$", new Ae());
|
|
8266
|
-
b(this, "currentCell$", this._currentCell$.asObservable().pipe(
|
|
8274
|
+
b(this, "currentCell$", this._currentCell$.asObservable().pipe(un(
|
|
8267
8275
|
(e, t) => {
|
|
8268
8276
|
var n, i, o, s, l, a, c, d;
|
|
8269
8277
|
return ((n = e == null ? void 0 : e.location) == null ? void 0 : n.unitId) === ((i = t == null ? void 0 : t.location) == null ? void 0 : i.unitId) && ((o = e == null ? void 0 : e.location) == null ? void 0 : o.subUnitId) === ((s = t == null ? void 0 : t.location) == null ? void 0 : s.subUnitId) && ((l = e == null ? void 0 : e.location) == null ? void 0 : l.row) === ((a = t == null ? void 0 : t.location) == null ? void 0 : a.row) && ((c = e == null ? void 0 : e.location) == null ? void 0 : c.col) === ((d = t == null ? void 0 : t.location) == null ? void 0 : d.col);
|
|
@@ -8634,7 +8642,7 @@ function t0() {
|
|
|
8634
8642
|
m(!1);
|
|
8635
8643
|
}, S = e0();
|
|
8636
8644
|
if (Ee(() => r.onCommandExecuted((ae, ge) => {
|
|
8637
|
-
ae.id ===
|
|
8645
|
+
ae.id === mn.id && S();
|
|
8638
8646
|
}).dispose, [S, r]), Ee(() => {
|
|
8639
8647
|
const Y = v && We(
|
|
8640
8648
|
v.currentSkeleton$.subscribe((ae) => {
|
|
@@ -8668,7 +8676,7 @@ function t0() {
|
|
|
8668
8676
|
};
|
|
8669
8677
|
}, [l]), c.col < 0 || c.row < 0)
|
|
8670
8678
|
return null;
|
|
8671
|
-
const I =
|
|
8679
|
+
const I = tn(e, t);
|
|
8672
8680
|
if (!I || !p) return null;
|
|
8673
8681
|
const { scene: R } = I, y = v == null ? void 0 : v.getCurrentSkeleton(), E = p.getViewPort(), M = R == null ? void 0 : R.scaleX, T = R == null ? void 0 : R.scaleY, P = R == null ? void 0 : R.getViewportScrollXY(E);
|
|
8674
8682
|
if (!M || !R || !M || !T || !P) return null;
|
|
@@ -9365,7 +9373,7 @@ function l0(r) {
|
|
|
9365
9373
|
}, [i]);
|
|
9366
9374
|
const c = (d) => {
|
|
9367
9375
|
const u = a.getColorFromTheme("gray.900"), h = a.getColorFromTheme("white");
|
|
9368
|
-
return new
|
|
9376
|
+
return new pn(d).isDark() ? h : u;
|
|
9369
9377
|
};
|
|
9370
9378
|
return /* @__PURE__ */ _(
|
|
9371
9379
|
"div",
|
|
@@ -9955,7 +9963,7 @@ b($r, "DoubleClickDelay", 300);
|
|
|
9955
9963
|
let ci = $r;
|
|
9956
9964
|
function h0() {
|
|
9957
9965
|
var _e;
|
|
9958
|
-
const [r, e] = re([]), [t, n] = re(""), [i, o] = re(""), [s, l] = re(!1), [a, c] = re([0, 0]), d = Pn({ slideTabBar: null }), u = Pn(null), h = D(L), g = D(Dr), m = D(Pe), f = D(
|
|
9966
|
+
const [r, e] = re([]), [t, n] = re(""), [i, o] = re(""), [s, l] = re(!1), [a, c] = re([0, 0]), d = Pn({ slideTabBar: null }), u = Pn(null), h = D(L), g = D(Dr), m = D(Pe), f = D(nn), v = D(qe, wc.OPTIONAL), p = D(ft), C = D($e), w = ut(p.resetOrder$), S = Lr(), I = D(rt), R = Hn(() => {
|
|
9959
9967
|
var Fe;
|
|
9960
9968
|
const G = ((Fe = S.getActiveSheet()) == null ? void 0 : Fe.getSheetId()) || "";
|
|
9961
9969
|
n(G);
|
|
@@ -10394,7 +10402,7 @@ const Pa = Yt("univer.sheet-status-bar.service"), v0 = [
|
|
|
10394
10402
|
};
|
|
10395
10403
|
function C0(r) {
|
|
10396
10404
|
const { pattern: e, value: t } = r;
|
|
10397
|
-
return typeof t != "number" ? 0 : t >= 1e8 ? t.toExponential(2) : e && v0.includes(r.name) ?
|
|
10405
|
+
return typeof t != "number" ? 0 : t >= 1e8 ? t.toExponential(2) : e && v0.includes(r.name) ? $t.format(e, t, { throws: !1 }) : t.toLocaleString();
|
|
10398
10406
|
}
|
|
10399
10407
|
const dh = 800, w0 = 3, _0 = () => {
|
|
10400
10408
|
var u, h;
|
|
@@ -10589,7 +10597,7 @@ let Vo = class extends se {
|
|
|
10589
10597
|
let S = c - l, I = d - a;
|
|
10590
10598
|
S < m && (S = Math.ceil(m)), I < f && (I = Math.ceil(f));
|
|
10591
10599
|
let R = 0;
|
|
10592
|
-
v ===
|
|
10600
|
+
v === dn.MIDDLE ? R = (I - f) / 2 / s : v === dn.TOP ? R = C.t || 0 : R = (I - f) / s;
|
|
10593
10601
|
let y = 0;
|
|
10594
10602
|
p === It.CENTER ? y = (S - m) / 2 / o : p === It.RIGHT ? y = (S - m) / o : y = C.l || 0, R = R < (C.t || 0) ? C.t || 0 : R, y = y < (C.l || 0) ? C.l || 0 : y, u.updateDocumentDataMargin({
|
|
10595
10603
|
t: R,
|
|
@@ -10895,7 +10903,7 @@ let ko = class extends Dn {
|
|
|
10895
10903
|
});
|
|
10896
10904
|
}
|
|
10897
10905
|
_getSheetObject() {
|
|
10898
|
-
return
|
|
10906
|
+
return tn(this._context.unit, this._context);
|
|
10899
10907
|
}
|
|
10900
10908
|
_isCurrentSheetFocused() {
|
|
10901
10909
|
var e;
|
|
@@ -11138,7 +11146,7 @@ function H0(r, e, t, n) {
|
|
|
11138
11146
|
if (i.startsWith("="))
|
|
11139
11147
|
return k0(r, i, e, n);
|
|
11140
11148
|
const o = i.toLowerCase();
|
|
11141
|
-
return jc[o] ? jc[o] :
|
|
11149
|
+
return jc[o] ? jc[o] : $t.parseValue(i) == null ? r : i;
|
|
11142
11150
|
}
|
|
11143
11151
|
function V0(r) {
|
|
11144
11152
|
const e = /['"].*?['"]/g, t = [], n = r.split(e);
|
|
@@ -11171,11 +11179,11 @@ function k0(r, e, t, n) {
|
|
|
11171
11179
|
const d = l.startIndex + s + 2, u = l.endIndex + s + 1;
|
|
11172
11180
|
o = jr(r.slice(d, u), o, d, u);
|
|
11173
11181
|
} else if (l.nodeType !== Ha.ARRAY) {
|
|
11174
|
-
const d =
|
|
11182
|
+
const d = $t.parseValue(c);
|
|
11175
11183
|
if (d == null) {
|
|
11176
11184
|
const u = l.startIndex + s + 1, h = l.endIndex + s + 2;
|
|
11177
11185
|
o = jr(r.slice(u, h), o, u, h);
|
|
11178
|
-
} else if (typeof d.v == "number" && (d.z === void 0 ||
|
|
11186
|
+
} else if (typeof d.v == "number" && (d.z === void 0 || !$t.getFormatInfo(d.z).isDate)) {
|
|
11179
11187
|
const u = `${d.v}`, h = l.startIndex + s + 1, g = l.endIndex + s + 2, { processedString: m, offset: f } = W0(c, u);
|
|
11180
11188
|
o = jr(m, o, h, g), s += f;
|
|
11181
11189
|
}
|
|
@@ -11249,7 +11257,7 @@ let Ii = class extends se {
|
|
|
11249
11257
|
n && n.refreshEditorPosition();
|
|
11250
11258
|
}
|
|
11251
11259
|
})), this.disposeWithMe(
|
|
11252
|
-
this._editorBridgeService.visible$.pipe(
|
|
11260
|
+
this._editorBridgeService.visible$.pipe(un((e, t) => e.visible === t.visible)).subscribe(async (e) => {
|
|
11253
11261
|
e.visible ? (this._editingUnit = e.unitId, this._handleEditorVisible(e)) : this._editingUnit && (await this._handleEditorInvisible(e), this._editingUnit = "");
|
|
11254
11262
|
})
|
|
11255
11263
|
);
|
|
@@ -11484,7 +11492,7 @@ let Ii = class extends se {
|
|
|
11484
11492
|
return;
|
|
11485
11493
|
}
|
|
11486
11494
|
const g = ((v = i == null ? void 0 : i.body) == null ? void 0 : v.dataStream.length) === 2, m = t.documentLayoutObject.documentModel ? this._isCellImageData(t.documentLayoutObject.documentModel.getSnapshot()) : !1;
|
|
11487
|
-
i && !(g && m) && await this._submitEdit(i, o === (Se.CTRL_COMMAND | Z.ENTER) || o === (Se.MAC_CTRL | Z.ENTER)) === !1 || this._moveSelection(o, s, d);
|
|
11495
|
+
i && !(g && m) && await this._submitEdit(i, o === (Se.CTRL_COMMAND | Z.ENTER) || o === (Se.MAC_CTRL | Z.ENTER)) === !1 || o !== void 0 && this._moveSelection(o, s, d);
|
|
11488
11496
|
}
|
|
11489
11497
|
_getEditorObject() {
|
|
11490
11498
|
return Nd(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
|
|
@@ -11937,11 +11945,11 @@ function gf(r, e, t) {
|
|
|
11937
11945
|
const n = (u = (d = (c = e.documentSkeleton) == null ? void 0 : c.getSkeletonData()) == null ? void 0 : d.pages[0].height) != null ? u : 0, i = (m = (g = (h = e.documentSkeleton) == null ? void 0 : h.getSkeletonData()) == null ? void 0 : g.pages[0].width) != null ? m : 0, o = e.verticalAlign, s = e.horizontalAlign;
|
|
11938
11946
|
let l = 0;
|
|
11939
11947
|
switch (o) {
|
|
11940
|
-
case
|
|
11941
|
-
case
|
|
11948
|
+
case dn.UNSPECIFIED:
|
|
11949
|
+
case dn.BOTTOM:
|
|
11942
11950
|
l = r.mergeInfo.endY - r.mergeInfo.startY - n;
|
|
11943
11951
|
break;
|
|
11944
|
-
case
|
|
11952
|
+
case dn.MIDDLE:
|
|
11945
11953
|
l = (r.mergeInfo.endY - r.mergeInfo.startY - n) / 2;
|
|
11946
11954
|
break;
|
|
11947
11955
|
}
|
|
@@ -12055,7 +12063,7 @@ let Tr = class extends se {
|
|
|
12055
12063
|
b(this, "_currentColHeaderPointerUp$", new Ae());
|
|
12056
12064
|
// Notify when hovering over different cells
|
|
12057
12065
|
b(this, "currentCell$", this._currentCell$.asObservable().pipe(
|
|
12058
|
-
|
|
12066
|
+
un(
|
|
12059
12067
|
(e, t) => {
|
|
12060
12068
|
var n, i, o, s, l, a, c, d;
|
|
12061
12069
|
return ((n = e == null ? void 0 : e.location) == null ? void 0 : n.unitId) === ((i = t == null ? void 0 : t.location) == null ? void 0 : i.unitId) && ((o = e == null ? void 0 : e.location) == null ? void 0 : o.subUnitId) === ((s = t == null ? void 0 : t.location) == null ? void 0 : s.subUnitId) && ((l = e == null ? void 0 : e.location) == null ? void 0 : l.row) === ((a = t == null ? void 0 : t.location) == null ? void 0 : a.row) && ((c = e == null ? void 0 : e.location) == null ? void 0 : c.col) === ((d = t == null ? void 0 : t.location) == null ? void 0 : d.col);
|
|
@@ -12076,7 +12084,7 @@ let Tr = class extends se {
|
|
|
12076
12084
|
));
|
|
12077
12085
|
// Notify when hovering over different cells and different custom range or bullet
|
|
12078
12086
|
b(this, "currentRichText$", this._currentRichText$.pipe(
|
|
12079
|
-
|
|
12087
|
+
un(
|
|
12080
12088
|
// eslint-disable-next-line complexity
|
|
12081
12089
|
(e, t) => {
|
|
12082
12090
|
var n, i, o, s, l, a, c, d, u, h, g, m, f, v, p, C, w, S;
|
|
@@ -12098,7 +12106,7 @@ let Tr = class extends se {
|
|
|
12098
12106
|
* Nearly same as currentRichText$, but with event
|
|
12099
12107
|
*/
|
|
12100
12108
|
b(this, "currentCellPosWithEvent$", this._currentCellWithEvent$.pipe(
|
|
12101
|
-
|
|
12109
|
+
un(
|
|
12102
12110
|
(e, t) => {
|
|
12103
12111
|
var n, i, o, s, l, a, c, d;
|
|
12104
12112
|
return ((n = e == null ? void 0 : e.location) == null ? void 0 : n.unitId) === ((i = t == null ? void 0 : t.location) == null ? void 0 : i.unitId) && ((o = e == null ? void 0 : e.location) == null ? void 0 : o.subUnitId) === ((s = t == null ? void 0 : t.location) == null ? void 0 : s.subUnitId) && ((l = e == null ? void 0 : e.location) == null ? void 0 : l.row) === ((a = t == null ? void 0 : t.location) == null ? void 0 : a.row) && ((c = e == null ? void 0 : e.location) == null ? void 0 : c.col) === ((d = t == null ? void 0 : t.location) == null ? void 0 : d.col);
|
|
@@ -13487,22 +13495,22 @@ const Ch = [
|
|
|
13487
13495
|
{
|
|
13488
13496
|
label: "align.top",
|
|
13489
13497
|
icon: "AlignTopIcon",
|
|
13490
|
-
value:
|
|
13498
|
+
value: dn.TOP
|
|
13491
13499
|
},
|
|
13492
13500
|
{
|
|
13493
13501
|
label: "align.middle",
|
|
13494
13502
|
icon: "VerticalCenterIcon",
|
|
13495
|
-
value:
|
|
13503
|
+
value: dn.MIDDLE
|
|
13496
13504
|
},
|
|
13497
13505
|
{
|
|
13498
13506
|
label: "align.bottom",
|
|
13499
13507
|
icon: "AlignBottomIcon",
|
|
13500
|
-
value:
|
|
13508
|
+
value: dn.BOTTOM
|
|
13501
13509
|
}
|
|
13502
13510
|
];
|
|
13503
13511
|
function A_(r) {
|
|
13504
13512
|
var s, l;
|
|
13505
|
-
const e = r.get(N), t = r.get($), n = e.getCurrentUnitOfType(O.UNIVER_SHEET), i = n == null ? void 0 : n.getActiveSheet().getDefaultCellStyleInternal(), o = (s = i == null ? void 0 : i.vt) != null ? s :
|
|
13513
|
+
const e = r.get(N), t = r.get($), n = e.getCurrentUnitOfType(O.UNIVER_SHEET), i = n == null ? void 0 : n.getActiveSheet().getDefaultCellStyleInternal(), o = (s = i == null ? void 0 : i.vt) != null ? s : dn.BOTTOM;
|
|
13506
13514
|
return {
|
|
13507
13515
|
id: xc.id,
|
|
13508
13516
|
icon: (l = Ch.find((a) => a.value === o)) == null ? void 0 : l.icon,
|
|
@@ -13670,8 +13678,8 @@ function as(r) {
|
|
|
13670
13678
|
}
|
|
13671
13679
|
function di(r) {
|
|
13672
13680
|
return {
|
|
13673
|
-
id:
|
|
13674
|
-
commandId:
|
|
13681
|
+
id: hn.name,
|
|
13682
|
+
commandId: hn.id,
|
|
13675
13683
|
type: J.BUTTON,
|
|
13676
13684
|
title: "rightClick.copy",
|
|
13677
13685
|
icon: "CopyDoubleIcon",
|
|
@@ -13685,8 +13693,8 @@ function di(r) {
|
|
|
13685
13693
|
}
|
|
13686
13694
|
function Ya(r) {
|
|
13687
13695
|
return {
|
|
13688
|
-
id:
|
|
13689
|
-
commandId:
|
|
13696
|
+
id: gn.name,
|
|
13697
|
+
commandId: gn.id,
|
|
13690
13698
|
type: J.BUTTON,
|
|
13691
13699
|
title: "rightClick.paste",
|
|
13692
13700
|
icon: "PasteSpecialDoubleIcon",
|
|
@@ -14012,7 +14020,7 @@ function j_(r) {
|
|
|
14012
14020
|
}
|
|
14013
14021
|
const a = e.onCommandExecuted((c) => {
|
|
14014
14022
|
const d = c.id;
|
|
14015
|
-
if (d === be.id || d === Te.id || d ===
|
|
14023
|
+
if (d === be.id || d === Te.id || d === an.id)
|
|
14016
14024
|
return l();
|
|
14017
14025
|
});
|
|
14018
14026
|
return l(), a.dispose;
|
|
@@ -14037,7 +14045,7 @@ const lr = {
|
|
|
14037
14045
|
type: K.COMMAND,
|
|
14038
14046
|
id: "sheet.command.add-worksheet-merge",
|
|
14039
14047
|
handler: async (r, e) => {
|
|
14040
|
-
const t = r.get(L), n = r.get(Zt), i = r.get(N), o = r.get(
|
|
14048
|
+
const t = r.get(L), n = r.get(Zt), i = r.get(N), o = r.get(nn), s = r.get(Pe), l = e.unitId, a = e.subUnitId, c = e.selections, d = zl(c, e.value), u = i.getUniverSheetInstance(l).getSheetBySheetId(a), h = [], g = [], m = xm(u, d);
|
|
14041
14049
|
if (m && !e.defaultMerge && !await o.confirm({
|
|
14042
14050
|
id: "merge.confirm.add-worksheet-merge",
|
|
14043
14051
|
title: {
|
|
@@ -14782,7 +14790,7 @@ const pb = {
|
|
|
14782
14790
|
},
|
|
14783
14791
|
[bt.MAIN_AREA]: {
|
|
14784
14792
|
[Qe.FORMAT]: {
|
|
14785
|
-
[
|
|
14793
|
+
[hn.name]: {
|
|
14786
14794
|
order: 0,
|
|
14787
14795
|
menuItemFactory: di
|
|
14788
14796
|
},
|
|
@@ -14790,7 +14798,7 @@ const pb = {
|
|
|
14790
14798
|
// order: 1,
|
|
14791
14799
|
// menuItemFactory: CutMenuItemFactory,
|
|
14792
14800
|
// },
|
|
14793
|
-
[
|
|
14801
|
+
[gn.name]: {
|
|
14794
14802
|
order: 2,
|
|
14795
14803
|
menuItemFactory: Ya
|
|
14796
14804
|
},
|
|
@@ -14923,7 +14931,7 @@ const pb = {
|
|
|
14923
14931
|
},
|
|
14924
14932
|
[bt.COL_HEADER]: {
|
|
14925
14933
|
[Qe.FORMAT]: {
|
|
14926
|
-
[
|
|
14934
|
+
[hn.name]: {
|
|
14927
14935
|
order: 0,
|
|
14928
14936
|
menuItemFactory: di
|
|
14929
14937
|
},
|
|
@@ -14931,7 +14939,7 @@ const pb = {
|
|
|
14931
14939
|
// order: 1,
|
|
14932
14940
|
// menuItemFactory: CutMenuItemFactory,
|
|
14933
14941
|
// },
|
|
14934
|
-
[
|
|
14942
|
+
[gn.name]: {
|
|
14935
14943
|
order: 2,
|
|
14936
14944
|
menuItemFactory: Ya
|
|
14937
14945
|
},
|
|
@@ -15044,7 +15052,7 @@ const pb = {
|
|
|
15044
15052
|
},
|
|
15045
15053
|
[bt.ROW_HEADER]: {
|
|
15046
15054
|
[Qe.FORMAT]: {
|
|
15047
|
-
[
|
|
15055
|
+
[hn.name]: {
|
|
15048
15056
|
order: 0,
|
|
15049
15057
|
menuItemFactory: di
|
|
15050
15058
|
},
|
|
@@ -15052,7 +15060,7 @@ const pb = {
|
|
|
15052
15060
|
// order: 1,
|
|
15053
15061
|
// menuItemFactory: CutMenuItemFactory,
|
|
15054
15062
|
// },
|
|
15055
|
-
[
|
|
15063
|
+
[gn.name]: {
|
|
15056
15064
|
order: 2,
|
|
15057
15065
|
menuItemFactory: Ya
|
|
15058
15066
|
},
|
|
@@ -15311,7 +15319,7 @@ let yi = class extends se {
|
|
|
15311
15319
|
worksheetTypes: [Ze, te]
|
|
15312
15320
|
}), i = this._localeService.t("permission.dialog.setStyleErr");
|
|
15313
15321
|
break;
|
|
15314
|
-
case
|
|
15322
|
+
case hn.id:
|
|
15315
15323
|
n = this._sheetPermissionCheckController.permissionCheckWithRanges({
|
|
15316
15324
|
workbookTypes: [lo],
|
|
15317
15325
|
rangeTypes: [Ac],
|
|
@@ -15780,7 +15788,7 @@ let No = class extends se {
|
|
|
15780
15788
|
endY: R.startY,
|
|
15781
15789
|
startX: 0,
|
|
15782
15790
|
endX: 0
|
|
15783
|
-
}), o & 2 && this._commandService.executeCommand(
|
|
15791
|
+
}), o & 2 && this._commandService.executeCommand(fn.id, {
|
|
15784
15792
|
sheetViewStartRow: 0,
|
|
15785
15793
|
offsetY: 0
|
|
15786
15794
|
}), g.resizeWhenFreezeChange({
|
|
@@ -15817,7 +15825,7 @@ let No = class extends se {
|
|
|
15817
15825
|
endX: R.startX,
|
|
15818
15826
|
startY: 0,
|
|
15819
15827
|
endY: 0
|
|
15820
|
-
}), o & 1 && this._commandService.executeCommand(
|
|
15828
|
+
}), o & 1 && this._commandService.executeCommand(fn.id, {
|
|
15821
15829
|
sheetViewStartColumn: 0,
|
|
15822
15830
|
offsetX: 0
|
|
15823
15831
|
}), h.resizeWhenFreezeChange({
|
|
@@ -15855,7 +15863,7 @@ let No = class extends se {
|
|
|
15855
15863
|
endY: R.startY,
|
|
15856
15864
|
startX: I.startX,
|
|
15857
15865
|
endX: R.startX
|
|
15858
|
-
}), o && this._commandService.executeCommand(
|
|
15866
|
+
}), o && this._commandService.executeCommand(fn.id, {
|
|
15859
15867
|
...o & 1 ? {
|
|
15860
15868
|
sheetViewStartColumn: 0,
|
|
15861
15869
|
offsetX: 0
|
|
@@ -15954,7 +15962,7 @@ let No = class extends se {
|
|
|
15954
15962
|
);
|
|
15955
15963
|
}
|
|
15956
15964
|
_themeChange(e) {
|
|
15957
|
-
this._freezeNormalHeaderColor = Oa(e, "gray.300"), this._freezeNormalMainColor = new
|
|
15965
|
+
this._freezeNormalHeaderColor = Oa(e, "gray.300"), this._freezeNormalMainColor = new pn(this._freezeNormalHeaderColor).setAlpha(yb).toRgbString(), this._freezeActiveColor = Oa(e, "primary.600"), this._freezeHoverColor = Oa(e, "gray.500");
|
|
15958
15966
|
}
|
|
15959
15967
|
// eslint-disable-next-line max-lines-per-function
|
|
15960
15968
|
_interceptorCommands() {
|
|
@@ -16131,7 +16139,7 @@ let No = class extends se {
|
|
|
16131
16139
|
e.params && n && this._refreshCurrent();
|
|
16132
16140
|
}
|
|
16133
16141
|
break;
|
|
16134
|
-
case
|
|
16142
|
+
case an.id:
|
|
16135
16143
|
{
|
|
16136
16144
|
const t = this._getFreeze();
|
|
16137
16145
|
e.params && t && e.params.ranges.some(
|
|
@@ -16215,7 +16223,7 @@ let No = class extends se {
|
|
|
16215
16223
|
return e.freeze;
|
|
16216
16224
|
}
|
|
16217
16225
|
_getSheetObject() {
|
|
16218
|
-
return
|
|
16226
|
+
return tn(this._context.unit, this._context);
|
|
16219
16227
|
}
|
|
16220
16228
|
/**
|
|
16221
16229
|
* Core function of _refreshCurrent
|
|
@@ -17526,7 +17534,7 @@ let Mi = class extends se {
|
|
|
17526
17534
|
};
|
|
17527
17535
|
}, s = o(), l = new Me(s), a = new ht();
|
|
17528
17536
|
return a.add(this._commandService.onCommandExecuted((c) => {
|
|
17529
|
-
(c.id ===
|
|
17537
|
+
(c.id === mn.id || c.id === Jt.id) && l.next(o());
|
|
17530
17538
|
})), {
|
|
17531
17539
|
position: s,
|
|
17532
17540
|
position$: l,
|
|
@@ -17770,7 +17778,7 @@ let Mi = class extends se {
|
|
|
17770
17778
|
d();
|
|
17771
17779
|
return;
|
|
17772
17780
|
}
|
|
17773
|
-
(Us.indexOf(g.id) > -1 || g.id ===
|
|
17781
|
+
(Us.indexOf(g.id) > -1 || g.id === mn.id || g.id === Jt.id) && d();
|
|
17774
17782
|
})), {
|
|
17775
17783
|
position$: c,
|
|
17776
17784
|
disposable: u,
|
|
@@ -17821,7 +17829,7 @@ let Mi = class extends se {
|
|
|
17821
17829
|
u();
|
|
17822
17830
|
return;
|
|
17823
17831
|
}
|
|
17824
|
-
(Us.indexOf(v.id) > -1 || v.id ===
|
|
17832
|
+
(Us.indexOf(v.id) > -1 || v.id === mn.id || v.id === Jt.id) && u();
|
|
17825
17833
|
}));
|
|
17826
17834
|
const g = (v, p) => {
|
|
17827
17835
|
o = v, s = p, u();
|
|
@@ -17887,14 +17895,15 @@ let Ei = class extends se {
|
|
|
17887
17895
|
const { direction: n = "horizontal" } = t, { unitId: i, subUnitId: o, row: s, col: l } = e, a = this._ensureCellPopupMap(i, o), c = (u = a.getValue(s, l)) == null ? void 0 : u[n];
|
|
17888
17896
|
t.id = (h = t.id) != null ? h : On();
|
|
17889
17897
|
const d = () => {
|
|
17898
|
+
var v;
|
|
17890
17899
|
const g = a.getValue(s, l);
|
|
17891
17900
|
if (!g)
|
|
17892
17901
|
return;
|
|
17893
17902
|
const m = g[n];
|
|
17894
17903
|
if (!m)
|
|
17895
17904
|
return;
|
|
17896
|
-
const f = m == null ? void 0 : m.popups.findIndex((
|
|
17897
|
-
m == null || m.popups.splice(f, 1), m.popups.length === 0 && (m.disposable.dispose(), g[n] = void 0), this._change$.next({
|
|
17905
|
+
const f = m == null ? void 0 : m.popups.findIndex((p) => p.id === t.id && p.componentKey === t.componentKey);
|
|
17906
|
+
m == null || m.popups.splice(f, 1), m.popups.length === 0 && ((v = m.disposable) == null || v.dispose(), g[n] = void 0), this._change$.next({
|
|
17898
17907
|
...e,
|
|
17899
17908
|
direction: n
|
|
17900
17909
|
});
|
|
@@ -18669,7 +18678,7 @@ let ml = class extends se {
|
|
|
18669
18678
|
Po,
|
|
18670
18679
|
aa,
|
|
18671
18680
|
ca,
|
|
18672
|
-
|
|
18681
|
+
fn,
|
|
18673
18682
|
Em,
|
|
18674
18683
|
ba,
|
|
18675
18684
|
Kd,
|
|
@@ -18695,7 +18704,7 @@ let ml = class extends se {
|
|
|
18695
18704
|
qd,
|
|
18696
18705
|
ns,
|
|
18697
18706
|
Ca,
|
|
18698
|
-
|
|
18707
|
+
mn,
|
|
18699
18708
|
xo,
|
|
18700
18709
|
er,
|
|
18701
18710
|
wa,
|
|
@@ -18844,7 +18853,7 @@ class dR {
|
|
|
18844
18853
|
if (!((g = a == null ? void 0 : a.n) != null && g.pattern))
|
|
18845
18854
|
return;
|
|
18846
18855
|
const { pattern: u } = a.n;
|
|
18847
|
-
d[u] || (d[u] =
|
|
18856
|
+
d[u] || (d[u] = $t.getFormatInfo(u)), d[u].isDate && s(c);
|
|
18848
18857
|
};
|
|
18849
18858
|
if (typeof o == "string" && i === Mt.NUMBER) {
|
|
18850
18859
|
const a = Number(o);
|
|
@@ -19324,7 +19333,7 @@ const Oh = 2, RR = [
|
|
|
19324
19333
|
};
|
|
19325
19334
|
if (i.endRow < 0 || i.endCol < 0)
|
|
19326
19335
|
return null;
|
|
19327
|
-
const o = t.getRenderById(n.getUnitId()), s = o == null ? void 0 : o.with(he), l = o == null ? void 0 : o.with(gt), a =
|
|
19336
|
+
const o = t.getRenderById(n.getUnitId()), s = o == null ? void 0 : o.with(he), l = o == null ? void 0 : o.with(gt), a = tn(e, t);
|
|
19328
19337
|
if (!a || !l) return null;
|
|
19329
19338
|
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 = (P = c.getEngine()) == null ? void 0 : P.getCanvas();
|
|
19330
19339
|
if (!h || !c || !h || !g || !m) return null;
|
|
@@ -19337,7 +19346,7 @@ const Oh = 2, RR = [
|
|
|
19337
19346
|
positionY: T
|
|
19338
19347
|
};
|
|
19339
19348
|
}, yR = () => {
|
|
19340
|
-
const r = D(
|
|
19349
|
+
const r = D(rn), e = ut(r.showMenu$, !1), t = ut(r.pasteOptionsCache$, null), n = D(Pe), i = D(L), [o, s] = re(!1), [l, a] = re(!1), c = t == null ? void 0 : t.target.pastedRange, d = IR(c);
|
|
19341
19350
|
if (!d || !e || d.positionX < 50 || d.positionY < 30) return null;
|
|
19342
19351
|
const u = o || l, h = (g) => {
|
|
19343
19352
|
a(!1), i.executeCommand(pm.id, { type: g });
|
|
@@ -19398,7 +19407,7 @@ const Oh = 2, RR = [
|
|
|
19398
19407
|
Yo.id,
|
|
19399
19408
|
Fl.id,
|
|
19400
19409
|
Ul.id,
|
|
19401
|
-
|
|
19410
|
+
an.id,
|
|
19402
19411
|
wo.id,
|
|
19403
19412
|
Te.id,
|
|
19404
19413
|
vv
|
|
@@ -19574,7 +19583,7 @@ function mp(r, e, t, n) {
|
|
|
19574
19583
|
if (Ll((I = y == null ? void 0 : y.n) == null ? void 0 : I.pattern))
|
|
19575
19584
|
S.t = Mt.STRING;
|
|
19576
19585
|
else {
|
|
19577
|
-
const E = String(p.v), M =
|
|
19586
|
+
const E = String(p.v), M = $t.parseValue(E);
|
|
19578
19587
|
(M == null ? void 0 : M.v) !== void 0 && typeof M.v == "number" && (!M.z && Sv(E) ? S.t = Mt.FORCE_STRING : S.v = M.v);
|
|
19579
19588
|
}
|
|
19580
19589
|
}
|
|
@@ -19593,7 +19602,7 @@ function mp(r, e, t, n) {
|
|
|
19593
19602
|
id: be.id,
|
|
19594
19603
|
params: h
|
|
19595
19604
|
});
|
|
19596
|
-
const g =
|
|
19605
|
+
const g = en(
|
|
19597
19606
|
n,
|
|
19598
19607
|
h
|
|
19599
19608
|
);
|
|
@@ -19628,7 +19637,7 @@ function fp(r, e, t, n, i = !1) {
|
|
|
19628
19637
|
if (C.v && !e && Ll((E = y == null ? void 0 : y.n) == null ? void 0 : E.pattern))
|
|
19629
19638
|
w.s || (w.s = {}), w.s.n = y == null ? void 0 : y.n;
|
|
19630
19639
|
else {
|
|
19631
|
-
const T = String(C.v), P =
|
|
19640
|
+
const T = String(C.v), P = $t.parseValue(T);
|
|
19632
19641
|
P != null && P.z && (w.s || (w.s = {}), typeof w.s == "object" && ((M = w.s) != null && M.n ? w.s.n.pattern = P.z : w.s.n = { pattern: P.z }));
|
|
19633
19642
|
}
|
|
19634
19643
|
u.setValue(I, R, w);
|
|
@@ -19642,7 +19651,7 @@ function fp(r, e, t, n, i = !1) {
|
|
|
19642
19651
|
id: be.id,
|
|
19643
19652
|
params: g
|
|
19644
19653
|
});
|
|
19645
|
-
const m =
|
|
19654
|
+
const m = en(
|
|
19646
19655
|
n,
|
|
19647
19656
|
g
|
|
19648
19657
|
);
|
|
@@ -19671,7 +19680,7 @@ function pp(r, e, t) {
|
|
|
19671
19680
|
id: be.id,
|
|
19672
19681
|
params: d
|
|
19673
19682
|
});
|
|
19674
|
-
const u =
|
|
19683
|
+
const u = en(
|
|
19675
19684
|
t,
|
|
19676
19685
|
d
|
|
19677
19686
|
);
|
|
@@ -19697,7 +19706,7 @@ function PR(r, e, t) {
|
|
|
19697
19706
|
id: be.id,
|
|
19698
19707
|
params: d
|
|
19699
19708
|
});
|
|
19700
|
-
const u =
|
|
19709
|
+
const u = en(
|
|
19701
19710
|
t,
|
|
19702
19711
|
d
|
|
19703
19712
|
);
|
|
@@ -19807,7 +19816,7 @@ var OR = Object.getOwnPropertyDescriptor, AR = (r, e, t, n) => {
|
|
|
19807
19816
|
for (var i = n > 1 ? void 0 : n ? OR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
19808
19817
|
(s = r[o]) && (i = s(i) || i);
|
|
19809
19818
|
return i;
|
|
19810
|
-
},
|
|
19819
|
+
}, on = (r, e) => (t, n) => e(t, n, r);
|
|
19811
19820
|
const HR = [
|
|
19812
19821
|
Yo.id,
|
|
19813
19822
|
jo.id,
|
|
@@ -19854,7 +19863,7 @@ let xr = class extends Dn {
|
|
|
19854
19863
|
return t.length > 0 ? t : void 0;
|
|
19855
19864
|
}
|
|
19856
19865
|
_init() {
|
|
19857
|
-
[
|
|
19866
|
+
[hn, jd, gn].forEach(
|
|
19858
19867
|
(t) => this.disposeWithMe(this._commandService.registerMultipleCommand(t))
|
|
19859
19868
|
), [
|
|
19860
19869
|
fo,
|
|
@@ -20068,10 +20077,10 @@ let xr = class extends Dn {
|
|
|
20068
20077
|
}, {})
|
|
20069
20078
|
};
|
|
20070
20079
|
c.push({
|
|
20071
|
-
id:
|
|
20080
|
+
id: an.id,
|
|
20072
20081
|
params: S
|
|
20073
20082
|
}), d.push({
|
|
20074
|
-
id:
|
|
20083
|
+
id: an.id,
|
|
20075
20084
|
params: I
|
|
20076
20085
|
});
|
|
20077
20086
|
}
|
|
@@ -20129,7 +20138,7 @@ let xr = class extends Dn {
|
|
|
20129
20138
|
}
|
|
20130
20139
|
};
|
|
20131
20140
|
else {
|
|
20132
|
-
const c =
|
|
20141
|
+
const c = $t.parseNumber(t);
|
|
20133
20142
|
c != null && c.z ? l = {
|
|
20134
20143
|
[i.rows[0]]: {
|
|
20135
20144
|
[i.cols[0]]: {
|
|
@@ -20166,7 +20175,7 @@ let xr = class extends Dn {
|
|
|
20166
20175
|
undos: [
|
|
20167
20176
|
{
|
|
20168
20177
|
id: be.id,
|
|
20169
|
-
params:
|
|
20178
|
+
params: en(this._injector, a)
|
|
20170
20179
|
}
|
|
20171
20180
|
]
|
|
20172
20181
|
};
|
|
@@ -20251,10 +20260,10 @@ let xr = class extends Dn {
|
|
|
20251
20260
|
}, {})
|
|
20252
20261
|
};
|
|
20253
20262
|
return h.push({
|
|
20254
|
-
id:
|
|
20263
|
+
id: an.id,
|
|
20255
20264
|
params: R
|
|
20256
20265
|
}), g.push({
|
|
20257
|
-
id:
|
|
20266
|
+
id: an.id,
|
|
20258
20267
|
params: y
|
|
20259
20268
|
}), {
|
|
20260
20269
|
redos: h,
|
|
@@ -20289,7 +20298,7 @@ let xr = class extends Dn {
|
|
|
20289
20298
|
params: v
|
|
20290
20299
|
});
|
|
20291
20300
|
const p = this._injector.invoke(
|
|
20292
|
-
|
|
20301
|
+
en,
|
|
20293
20302
|
v
|
|
20294
20303
|
);
|
|
20295
20304
|
u.push({
|
|
@@ -20328,7 +20337,7 @@ let xr = class extends Dn {
|
|
|
20328
20337
|
})
|
|
20329
20338
|
), this.disposeWithMe(
|
|
20330
20339
|
this._commandService.onCommandExecuted((n) => {
|
|
20331
|
-
if (n.id ===
|
|
20340
|
+
if (n.id === mn.id) {
|
|
20332
20341
|
if (!this._sheetClipboardService.getPasteMenuVisible())
|
|
20333
20342
|
return;
|
|
20334
20343
|
const o = n.params.unitId, s = this._sheetClipboardService.getPasteOptionsCache(), l = s == null ? void 0 : s.target.unitId;
|
|
@@ -20346,16 +20355,16 @@ let xr = class extends Dn {
|
|
|
20346
20355
|
}
|
|
20347
20356
|
};
|
|
20348
20357
|
xr = AR([
|
|
20349
|
-
|
|
20350
|
-
|
|
20351
|
-
|
|
20352
|
-
|
|
20353
|
-
|
|
20354
|
-
|
|
20355
|
-
|
|
20356
|
-
|
|
20357
|
-
|
|
20358
|
-
|
|
20358
|
+
on(0, k(Rt)),
|
|
20359
|
+
on(1, N),
|
|
20360
|
+
on(2, Ce),
|
|
20361
|
+
on(3, L),
|
|
20362
|
+
on(4, De),
|
|
20363
|
+
on(5, Lt),
|
|
20364
|
+
on(6, rn),
|
|
20365
|
+
on(7, Yg),
|
|
20366
|
+
on(8, k(Pe)),
|
|
20367
|
+
on(9, xd)
|
|
20359
20368
|
], xr);
|
|
20360
20369
|
var VR = Object.getOwnPropertyDescriptor, kR = (r, e, t, n) => {
|
|
20361
20370
|
for (var i = n > 1 ? void 0 : n ? VR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -20458,7 +20467,7 @@ const LR = {
|
|
|
20458
20467
|
paragraphLineGapDefault: 0,
|
|
20459
20468
|
renderConfig: {
|
|
20460
20469
|
horizontalAlign: It.UNSPECIFIED,
|
|
20461
|
-
verticalAlign:
|
|
20470
|
+
verticalAlign: dn.TOP,
|
|
20462
20471
|
centerAngle: 0,
|
|
20463
20472
|
vertexAngle: 0,
|
|
20464
20473
|
wrapStrategy: fr.WRAP,
|
|
@@ -20790,7 +20799,7 @@ let Ai = class extends se {
|
|
|
20790
20799
|
unitId: r,
|
|
20791
20800
|
cellValue: w.getMatrix()
|
|
20792
20801
|
}, R = this._injector.invoke(
|
|
20793
|
-
|
|
20802
|
+
en,
|
|
20794
20803
|
S
|
|
20795
20804
|
), { undos: y, redos: E } = i.onCommandExecute({
|
|
20796
20805
|
id: Bl.id,
|
|
@@ -20950,7 +20959,7 @@ function GR(r) {
|
|
|
20950
20959
|
const qR = {
|
|
20951
20960
|
[bt.MAIN_AREA]: {
|
|
20952
20961
|
[Qe.FORMAT]: {
|
|
20953
|
-
[
|
|
20962
|
+
[hn.name]: {
|
|
20954
20963
|
order: 0,
|
|
20955
20964
|
menuItemFactory: di
|
|
20956
20965
|
}
|
|
@@ -20964,7 +20973,7 @@ const qR = {
|
|
|
20964
20973
|
},
|
|
20965
20974
|
[bt.COL_HEADER]: {
|
|
20966
20975
|
[Qe.FORMAT]: {
|
|
20967
|
-
[
|
|
20976
|
+
[hn.name]: {
|
|
20968
20977
|
order: 0,
|
|
20969
20978
|
menuItemFactory: di
|
|
20970
20979
|
}
|
|
@@ -20981,7 +20990,7 @@ const qR = {
|
|
|
20981
20990
|
},
|
|
20982
20991
|
[bt.ROW_HEADER]: {
|
|
20983
20992
|
[Qe.FORMAT]: {
|
|
20984
|
-
[
|
|
20993
|
+
[hn.name]: {
|
|
20985
20994
|
order: 0,
|
|
20986
20995
|
menuItemFactory: di
|
|
20987
20996
|
}
|
|
@@ -21029,7 +21038,7 @@ let Cl = class extends se {
|
|
|
21029
21038
|
Po,
|
|
21030
21039
|
aa,
|
|
21031
21040
|
ca,
|
|
21032
|
-
|
|
21041
|
+
fn,
|
|
21033
21042
|
Em,
|
|
21034
21043
|
ba,
|
|
21035
21044
|
Kd,
|
|
@@ -21055,7 +21064,7 @@ let Cl = class extends se {
|
|
|
21055
21064
|
qd,
|
|
21056
21065
|
ns,
|
|
21057
21066
|
Ca,
|
|
21058
|
-
|
|
21067
|
+
mn,
|
|
21059
21068
|
xo,
|
|
21060
21069
|
er,
|
|
21061
21070
|
wa,
|
|
@@ -21439,7 +21448,7 @@ Vi = sI([
|
|
|
21439
21448
|
ro(0, N),
|
|
21440
21449
|
ro(1, k($)),
|
|
21441
21450
|
ro(2, k(Pe)),
|
|
21442
|
-
ro(3, k(
|
|
21451
|
+
ro(3, k(rn)),
|
|
21443
21452
|
ro(4, k(wd))
|
|
21444
21453
|
], Vi);
|
|
21445
21454
|
var aI = Object.getOwnPropertyDescriptor, cI = (r, e, t, n) => {
|
|
@@ -21541,7 +21550,7 @@ const vp = (r, e, t, n, i) => {
|
|
|
21541
21550
|
description: "",
|
|
21542
21551
|
id: "",
|
|
21543
21552
|
ranges: l,
|
|
21544
|
-
editState:
|
|
21553
|
+
editState: ln.OnlyMe,
|
|
21545
21554
|
viewState: ui.OthersCanView
|
|
21546
21555
|
};
|
|
21547
21556
|
}, hI = (r, e) => {
|
|
@@ -21581,12 +21590,12 @@ const vp = (r, e, t, n, i) => {
|
|
|
21581
21590
|
};
|
|
21582
21591
|
dI(i, p) && (S.unitType = kt.Worksheet, S.ranges = []);
|
|
21583
21592
|
let R = m.selectUserList;
|
|
21584
|
-
S.editState ===
|
|
21593
|
+
S.editState === ln.OnlyMe && (R = [], m.setSelectUserList([]));
|
|
21585
21594
|
const y = {
|
|
21586
|
-
read: S.viewState === ui.OthersCanView ?
|
|
21587
|
-
edit: S.editState ===
|
|
21595
|
+
read: S.viewState === ui.OthersCanView ? sn.AllCollaborator : sn.SomeCollaborator,
|
|
21596
|
+
edit: S.editState === ln.DesignedUserCanEdit ? sn.SomeCollaborator : sn.OneSelf
|
|
21588
21597
|
};
|
|
21589
|
-
if (S.editState ===
|
|
21598
|
+
if (S.editState === ln.DesignedUserCanEdit && R.length === 0 && (R = [], y.edit = sn.OneSelf), S.permissionId) {
|
|
21590
21599
|
const M = gw(R.filter((x) => x.role === Nt.Editor), m.oldCollaboratorList.filter((x) => x.role === Nt.Editor)), T = (l == null ? void 0 : l.viewState) === S.viewState, P = (l == null ? void 0 : l.editState) === S.editState, A = S.unitType === (l == null ? void 0 : l.unitType) && S.description === l.description && S.ranges === l.ranges, H = !M || !T || !P;
|
|
21591
21600
|
if (A && H)
|
|
21592
21601
|
await u.update({
|
|
@@ -21754,7 +21763,7 @@ const vp = (r, e, t, n, i) => {
|
|
|
21754
21763
|
objectID: o,
|
|
21755
21764
|
unitID: f
|
|
21756
21765
|
})).filter((S) => S.role === Nt.Editor);
|
|
21757
|
-
w.length > 0 && t(
|
|
21766
|
+
w.length > 0 && t(ln.DesignedUserCanEdit), c.setSelectUserList(w), c.setOldCollaboratorList(w);
|
|
21758
21767
|
})() : (c.setSelectUserList([]), c.setOldCollaboratorList([]));
|
|
21759
21768
|
}, []), /* @__PURE__ */ q(Cr, { children: [
|
|
21760
21769
|
/* @__PURE__ */ _(Zs, { className: "univer-font-medium", label: s.t("permission.panel.editPermission"), children: /* @__PURE__ */ q(
|
|
@@ -21764,12 +21773,12 @@ const vp = (r, e, t, n, i) => {
|
|
|
21764
21773
|
onChange: (p) => t(p),
|
|
21765
21774
|
className: "univer-flex univer-flex-col",
|
|
21766
21775
|
children: [
|
|
21767
|
-
/* @__PURE__ */ _(Kr, { value:
|
|
21768
|
-
/* @__PURE__ */ _(Kr, { value:
|
|
21776
|
+
/* @__PURE__ */ _(Kr, { value: ln.OnlyMe, children: /* @__PURE__ */ _("span", { children: s.t("permission.panel.onlyICanEdit") }) }),
|
|
21777
|
+
/* @__PURE__ */ _(Kr, { value: ln.DesignedUserCanEdit, children: /* @__PURE__ */ _("span", { children: s.t("permission.panel.designedUserCanEdit") }) })
|
|
21769
21778
|
]
|
|
21770
21779
|
}
|
|
21771
21780
|
) }),
|
|
21772
|
-
e ===
|
|
21781
|
+
e === ln.DesignedUserCanEdit && /* @__PURE__ */ q(
|
|
21773
21782
|
"div",
|
|
21774
21783
|
{
|
|
21775
21784
|
className: xe("univer-mb-2 univer-flex univer-h-[270px] univer-flex-col univer-overflow-y-auto univer-rounded-lg univer-p-3", Wi),
|
|
@@ -21850,7 +21859,7 @@ const vp = (r, e, t, n, i) => {
|
|
|
21850
21859
|
] });
|
|
21851
21860
|
}, pI = (r) => {
|
|
21852
21861
|
var w, S;
|
|
21853
|
-
const { fromSheetBar: e, rule: t, oldRule: n } = r, i = D(Rt), o = D(Vt), s = t ? hI(i, t) : uI(i, e), [l, a] = re(s.ranges), [c, d] = re(() => vp(i, s.ranges, s.permissionId, s.unitId, s.subUnitId)), [u, h] = re(s.description), [g, m] = re((w = s.editState) != null ? w :
|
|
21862
|
+
const { fromSheetBar: e, rule: t, oldRule: n } = r, i = D(Rt), o = D(Vt), s = t ? hI(i, t) : uI(i, e), [l, a] = re(s.ranges), [c, d] = re(() => vp(i, s.ranges, s.permissionId, s.unitId, s.subUnitId)), [u, h] = re(s.description), [g, m] = re((w = s.editState) != null ? w : ln.OnlyMe), [f, v] = re((S = s.viewState) != null ? S : ui.OthersCanView), p = o.get(ha), C = p != null ? p : fI;
|
|
21854
21863
|
return Ee(() => {
|
|
21855
21864
|
const I = i.get(N), R = i.get(Li), y = I.getCurrentUnitOfType(O.UNIVER_SHEET);
|
|
21856
21865
|
if (!y) return;
|
|
@@ -21945,7 +21954,7 @@ function SI() {
|
|
|
21945
21954
|
};
|
|
21946
21955
|
}, [r]), Ee(() => {
|
|
21947
21956
|
const x = w.activeSheet$.pipe(
|
|
21948
|
-
|
|
21957
|
+
un((V, W) => (V == null ? void 0 : V.getSheetId()) === (W == null ? void 0 : W.getSheetId()))
|
|
21949
21958
|
).subscribe(async () => {
|
|
21950
21959
|
const V = await I(r);
|
|
21951
21960
|
y(V);
|
|
@@ -22238,8 +22247,8 @@ const CI = ({ showDetail: r, fromSheetBar: e, rule: t, oldRule: n }) => {
|
|
|
22238
22247
|
share: void 0,
|
|
22239
22248
|
name: "",
|
|
22240
22249
|
scope: {
|
|
22241
|
-
read:
|
|
22242
|
-
edit:
|
|
22250
|
+
read: sn.AllCollaborator,
|
|
22251
|
+
edit: sn.AllCollaborator
|
|
22243
22252
|
},
|
|
22244
22253
|
collaborators: void 0
|
|
22245
22254
|
}).then(() => {
|
|
@@ -22255,8 +22264,8 @@ const CI = ({ showDetail: r, fromSheetBar: e, rule: t, oldRule: n }) => {
|
|
|
22255
22264
|
name: "",
|
|
22256
22265
|
strategies: I,
|
|
22257
22266
|
scope: {
|
|
22258
|
-
read:
|
|
22259
|
-
edit:
|
|
22267
|
+
read: sn.AllCollaborator,
|
|
22268
|
+
edit: sn.AllCollaborator
|
|
22260
22269
|
}
|
|
22261
22270
|
}
|
|
22262
22271
|
}), d.executeCommand(_S.id, {
|
|
@@ -22487,7 +22496,7 @@ var xI = Object.getOwnPropertyDescriptor, uu = (r, e, t, n) => {
|
|
|
22487
22496
|
for (var i = n > 1 ? void 0 : n ? xI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
22488
22497
|
(s = r[o]) && (i = s(i) || i);
|
|
22489
22498
|
return i;
|
|
22490
|
-
},
|
|
22499
|
+
}, cn = (r, e) => (t, n) => e(t, n, r);
|
|
22491
22500
|
let ki = class extends se {
|
|
22492
22501
|
constructor(r, e) {
|
|
22493
22502
|
super(), this._injector = r, this._componentManager = e, this._init();
|
|
@@ -22526,8 +22535,8 @@ let ki = class extends se {
|
|
|
22526
22535
|
}
|
|
22527
22536
|
};
|
|
22528
22537
|
ki = uu([
|
|
22529
|
-
|
|
22530
|
-
|
|
22538
|
+
cn(0, k(Rt)),
|
|
22539
|
+
cn(1, k(Vt))
|
|
22531
22540
|
], ki);
|
|
22532
22541
|
let Rl = class extends se {
|
|
22533
22542
|
constructor(e, t, n, i, o) {
|
|
@@ -22558,10 +22567,10 @@ let Rl = class extends se {
|
|
|
22558
22567
|
}
|
|
22559
22568
|
};
|
|
22560
22569
|
Rl = uu([
|
|
22561
|
-
|
|
22562
|
-
|
|
22563
|
-
|
|
22564
|
-
|
|
22570
|
+
cn(1, k($e)),
|
|
22571
|
+
cn(2, k(he)),
|
|
22572
|
+
cn(3, rt),
|
|
22573
|
+
cn(4, Lt)
|
|
22565
22574
|
], Rl);
|
|
22566
22575
|
let Il = class extends se {
|
|
22567
22576
|
constructor(e, t, n, i, o) {
|
|
@@ -22586,10 +22595,10 @@ let Il = class extends se {
|
|
|
22586
22595
|
}
|
|
22587
22596
|
};
|
|
22588
22597
|
Il = uu([
|
|
22589
|
-
|
|
22590
|
-
|
|
22591
|
-
|
|
22592
|
-
|
|
22598
|
+
cn(1, k(Ce)),
|
|
22599
|
+
cn(2, k(he)),
|
|
22600
|
+
cn(3, k(ft)),
|
|
22601
|
+
cn(4, k(Lt))
|
|
22593
22602
|
], Il);
|
|
22594
22603
|
var OI = Object.getOwnPropertyDescriptor, AI = (r, e, t, n) => {
|
|
22595
22604
|
for (var i = n > 1 ? void 0 : n ? OI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -22613,7 +22622,7 @@ let yl = class extends se {
|
|
|
22613
22622
|
};
|
|
22614
22623
|
yl = AI([
|
|
22615
22624
|
vc(1, k(he)),
|
|
22616
|
-
vc(2,
|
|
22625
|
+
vc(2, rn),
|
|
22617
22626
|
vc(3, k(xr))
|
|
22618
22627
|
], yl);
|
|
22619
22628
|
var HI = Object.getOwnPropertyDescriptor, VI = (r, e, t, n) => {
|
|
@@ -23041,7 +23050,7 @@ let Tl = class extends Dn {
|
|
|
23041
23050
|
this._shapes.cols.forEach((e) => e.dispose()), this._shapes.rows.forEach((e) => e.dispose()), this._shapes = { cols: [], rows: [] };
|
|
23042
23051
|
}
|
|
23043
23052
|
_getSheetObject() {
|
|
23044
|
-
return
|
|
23053
|
+
return tn(this._workbook, this._context);
|
|
23045
23054
|
}
|
|
23046
23055
|
};
|
|
23047
23056
|
Tl = zI([
|
|
@@ -23175,7 +23184,7 @@ let $c = class extends se {
|
|
|
23175
23184
|
o,
|
|
23176
23185
|
s
|
|
23177
23186
|
);
|
|
23178
|
-
this._commandService.executeCommand(
|
|
23187
|
+
this._commandService.executeCommand(fn.id, {
|
|
23179
23188
|
sheetViewStartRow: a + ((l == null ? void 0 : l.ySplit) || 0),
|
|
23180
23189
|
sheetViewStartColumn: c + ((l == null ? void 0 : l.xSplit) || 0),
|
|
23181
23190
|
offsetX: u,
|
|
@@ -23253,7 +23262,7 @@ let $c = class extends se {
|
|
|
23253
23262
|
});
|
|
23254
23263
|
}
|
|
23255
23264
|
_getSheetObject() {
|
|
23256
|
-
return
|
|
23265
|
+
return tn(this._context.unit, this._context);
|
|
23257
23266
|
}
|
|
23258
23267
|
_scrollToSelectionByDirection(r) {
|
|
23259
23268
|
const e = this._getViewportBounding();
|
|
@@ -23331,7 +23340,7 @@ let $c = class extends se {
|
|
|
23331
23340
|
}
|
|
23332
23341
|
if (p === void 0 && C === void 0) return !1;
|
|
23333
23342
|
const { offsetX: w, offsetY: S } = this._scrollManagerService.getCurrentScrollState() || {};
|
|
23334
|
-
return this._commandService.syncExecuteCommand(
|
|
23343
|
+
return this._commandService.syncExecuteCommand(fn.id, {
|
|
23335
23344
|
sheetViewStartRow: p,
|
|
23336
23345
|
sheetViewStartColumn: C,
|
|
23337
23346
|
offsetX: C === void 0 ? w : 0,
|
|
@@ -23608,7 +23617,7 @@ function ny(r) {
|
|
|
23608
23617
|
i.forEach((A) => {
|
|
23609
23618
|
T.has(A.value) && P.push(A.value);
|
|
23610
23619
|
}), t(P);
|
|
23611
|
-
}, E = S.label.toLocaleLowerCase().indexOf(h), M = new
|
|
23620
|
+
}, E = S.label.toLocaleLowerCase().indexOf(h), M = new pn(S.color).isDark();
|
|
23612
23621
|
return /* @__PURE__ */ q(
|
|
23613
23622
|
"div",
|
|
23614
23623
|
{
|
|
@@ -24019,7 +24028,7 @@ let ed = class extends am {
|
|
|
24019
24028
|
this.disposeWithMe(We(a)), this.disposeWithMe(We(c));
|
|
24020
24029
|
}
|
|
24021
24030
|
_initUserActionSyncListener() {
|
|
24022
|
-
this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Xt.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Xt.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(Co).pipe(Pt(!1),
|
|
24031
|
+
this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Xt.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Xt.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(Co).pipe(Pt(!1), un()).subscribe((e) => {
|
|
24023
24032
|
var t;
|
|
24024
24033
|
e ? ((t = this._renderDisposable) == null || t.dispose(), this._renderDisposable = null, this._reset()) : this._renderDisposable = We(
|
|
24025
24034
|
this.selectionMoveEnd$.subscribe((n) => this._updateSelections(n, Xt.MOVE_END))
|
|
@@ -24150,7 +24159,7 @@ let ed = class extends am {
|
|
|
24150
24159
|
}
|
|
24151
24160
|
// same as PC
|
|
24152
24161
|
_getSheetObject() {
|
|
24153
|
-
return
|
|
24162
|
+
return tn(this._context.unit, this._context);
|
|
24154
24163
|
}
|
|
24155
24164
|
// same as PC
|
|
24156
24165
|
_normalSelectionDisabled() {
|
|
@@ -24307,7 +24316,7 @@ let Al = class extends Kh {
|
|
|
24307
24316
|
Ws(this._injector, $h([
|
|
24308
24317
|
[Ci],
|
|
24309
24318
|
[qe, { useClass: ol }],
|
|
24310
|
-
[
|
|
24319
|
+
[rn, { useClass: tl }],
|
|
24311
24320
|
[Dr, { useClass: Tm }],
|
|
24312
24321
|
[Ln, { useClass: il }],
|
|
24313
24322
|
[ss, { useClass: Vm }],
|
|
@@ -24587,9 +24596,9 @@ let nd = class extends am {
|
|
|
24587
24596
|
* Handle events in spreadsheet. (e.g. drag and move to make a selection)
|
|
24588
24597
|
*/
|
|
24589
24598
|
_initUserActionSyncListener() {
|
|
24590
|
-
this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Xt.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Xt.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(Co).pipe(Pt(!1),
|
|
24599
|
+
this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Xt.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Xt.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(Co).pipe(Pt(!1), un()).subscribe((e) => {
|
|
24591
24600
|
e && this._reset();
|
|
24592
|
-
})), this.disposeWithMe(this._contextService.subscribeContextValue$(Gr).pipe(Pt(!0),
|
|
24601
|
+
})), this.disposeWithMe(this._contextService.subscribeContextValue$(Gr).pipe(Pt(!0), un()).subscribe((e) => {
|
|
24593
24602
|
var t;
|
|
24594
24603
|
e ? this._renderDisposable = We(
|
|
24595
24604
|
this.selectionMoveEnd$.subscribe((n) => {
|
|
@@ -24646,7 +24655,7 @@ let nd = class extends am {
|
|
|
24646
24655
|
return t == null ? void 0 : t.scene.getActiveViewportByCoord(Ne.FromArray([e.offsetX, e.offsetY]));
|
|
24647
24656
|
}
|
|
24648
24657
|
_getSheetObject() {
|
|
24649
|
-
return
|
|
24658
|
+
return tn(this._context.unit, this._context);
|
|
24650
24659
|
}
|
|
24651
24660
|
/**
|
|
24652
24661
|
* Handle pointer down event, bind pointermove & pointerup handler.
|
|
@@ -24755,7 +24764,7 @@ let Hl = class extends Kh {
|
|
|
24755
24764
|
Ws(this._injector, $h([
|
|
24756
24765
|
[Ci],
|
|
24757
24766
|
[qe, { useClass: ol }],
|
|
24758
|
-
[
|
|
24767
|
+
[rn, { useClass: tl }],
|
|
24759
24768
|
[Dr, { useClass: Tm }],
|
|
24760
24769
|
[Ln, { useClass: il }],
|
|
24761
24770
|
[ss, { useClass: Vm }],
|
|
@@ -25005,7 +25014,7 @@ export {
|
|
|
25005
25014
|
ls as IFormulaEditorManagerService,
|
|
25006
25015
|
Bi as IMarkSelectionService,
|
|
25007
25016
|
Tp as ISheetCellDropdownManagerService,
|
|
25008
|
-
|
|
25017
|
+
rn as ISheetClipboardService,
|
|
25009
25018
|
gt as ISheetSelectionRenderService,
|
|
25010
25019
|
Pa as IStatusBarService,
|
|
25011
25020
|
Si as InsertRangeMoveDownConfirmCommand,
|
|
@@ -25032,7 +25041,7 @@ export {
|
|
|
25032
25041
|
lm as SELECTION_SHAPE_DEPTH,
|
|
25033
25042
|
Xy as SHEET_UI_PLUGIN_NAME,
|
|
25034
25043
|
Ye as SHEET_VIEW_KEY,
|
|
25035
|
-
|
|
25044
|
+
fn as ScrollCommand,
|
|
25036
25045
|
Em as ScrollToCellCommand,
|
|
25037
25046
|
Jd as ScrollToRangeOperation,
|
|
25038
25047
|
ba as SelectAllCommand,
|
|
@@ -25060,7 +25069,7 @@ export {
|
|
|
25060
25069
|
Xi as SetRangeUnderlineCommand,
|
|
25061
25070
|
wa as SetRowFrozenCommand,
|
|
25062
25071
|
ia as SetRowHeaderWidthCommand,
|
|
25063
|
-
|
|
25072
|
+
mn as SetScrollOperation,
|
|
25064
25073
|
xo as SetScrollRelativeCommand,
|
|
25065
25074
|
er as SetSelectionFrozenCommand,
|
|
25066
25075
|
rs as SetWorksheetColAutoWidthCommand,
|
|
@@ -25071,12 +25080,12 @@ export {
|
|
|
25071
25080
|
Ol as SheetCellDropdownManagerService,
|
|
25072
25081
|
Vo as SheetCellEditorResizeService,
|
|
25073
25082
|
tl as SheetClipboardService,
|
|
25074
|
-
|
|
25083
|
+
hn as SheetCopyCommand,
|
|
25075
25084
|
jd as SheetCutCommand,
|
|
25076
25085
|
C_ as SheetMenuPosition,
|
|
25077
25086
|
vo as SheetPasteBesidesBorderCommand,
|
|
25078
25087
|
ii as SheetPasteColWidthCommand,
|
|
25079
|
-
|
|
25088
|
+
gn as SheetPasteCommand,
|
|
25080
25089
|
po as SheetPasteFormatCommand,
|
|
25081
25090
|
Uc as SheetPasteShortKeyCommand,
|
|
25082
25091
|
fo as SheetPasteValueCommand,
|
|
@@ -25128,7 +25137,7 @@ export {
|
|
|
25128
25137
|
H1 as getMatrixPlainText,
|
|
25129
25138
|
Yi as getObservableWithExclusiveRange$,
|
|
25130
25139
|
Wy as getRepeatRange,
|
|
25131
|
-
|
|
25140
|
+
tn as getSheetObject,
|
|
25132
25141
|
Wd as getTopLeftSelectionOfCurrSheet,
|
|
25133
25142
|
xs as getTransformCoord,
|
|
25134
25143
|
zy as isEmbeddingFormulaEditor,
|