@univerjs/sheets-ui 0.6.3-nightly.202503051607 → 0.6.3-nightly.202503061606
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 +2 -2
- package/lib/es/index.js +436 -426
- package/lib/types/controllers/editor/editing.render-controller.d.ts +2 -2
- package/lib/umd/index.js +2 -2
- package/package.json +11 -11
package/lib/es/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var bp = Object.defineProperty;
|
|
2
2
|
var _p = (r, e, t) => e in r ? bp(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var _ = (r, e, t) => _p(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { DOCS_VIEW_KEY as wp, IEditorService as kr, getCanvasOffsetByEngine as
|
|
5
|
-
import { CommandType as Q, createInterceptorKey as cr, ColorKit as Hn, RANGE_TYPE as z, convertCellToRange as Ps, UniverInstanceType as x, IUniverInstanceService as V, Quantity as dc, Disposable as de, toDisposable as We, Tools as ie, createIdentifier as vn, InterceptorManager as yi, ThemeService as Lt, Inject as N, Injector as It, IConfigService as Fn, ObjectMatrix as Je, Direction as W, isFormulaString as od, isFormulaId as Fp, CellValueType as jt, numfmt as Nn, ICommandService as D, IUndoRedoService as qt, Rectangle as he, sequenceExecute as yl, IContextService as He, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as De, EDITOR_ACTIVATED as $e, FOCUSING_EDITOR_STANDALONE as Ml, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Le, Workbook as Up, Optional as sd, FOCUSING_SHEET as kt, RxDisposable as Un, DisposableCollection as bt, IPermissionService as ot, fromEventSubject as
|
|
6
|
-
import { IRenderManagerService as be, withCurrentTypeOfRenderer as
|
|
7
|
-
import { useDependency as L, useObservable as gt, KeyCode as Z, Slider as vS, ComponentManager as Xn, DISABLE_AUTO_FOCUS_KEY as
|
|
4
|
+
import { DOCS_VIEW_KEY as wp, IEditorService as kr, getCanvasOffsetByEngine as cu, VIEWPORT_KEY as Ms, DOCS_COMPONENT_MAIN_LAYER_INDEX as Rp, BreakLineCommand as Ip, DeleteLeftCommand as yp, DocSelectionRenderService as _r, ReplaceSnapshotCommand as Nh, MoveSelectionOperation as Mp, MoveCursorOperation as Pp, SetInlineFormatBoldCommand as Ep, SetInlineFormatItalicCommand as Tp, SetInlineFormatUnderlineCommand as Op, SetInlineFormatStrikethroughCommand as xp, SetInlineFormatSubscriptCommand as Ap, SetInlineFormatSuperscriptCommand as kp, SetInlineFormatFontSizeCommand as Hp, SetInlineFormatFontFamilyCommand as Np, SetInlineFormatTextColorCommand as Vh, SetInlineFormatCommand as ko, NodePositionConvertToCursor as Dh, getLineBounding as Lh, DOC_VERTICAL_PADDING as Vp, IMEInputCommand as Dp, InsertCommand as Lp, CoverContentCommand as Wp, IRangeSelectorService as Bp } from "@univerjs/docs-ui";
|
|
5
|
+
import { CommandType as Q, createInterceptorKey as cr, ColorKit as Hn, RANGE_TYPE as z, convertCellToRange as Ps, UniverInstanceType as x, IUniverInstanceService as V, Quantity as dc, Disposable as de, toDisposable as We, Tools as ie, createIdentifier as vn, InterceptorManager as yi, ThemeService as Lt, Inject as N, Injector as It, IConfigService as Fn, ObjectMatrix as Je, Direction as W, isFormulaString as od, isFormulaId as Fp, CellValueType as jt, numfmt as Nn, ICommandService as D, IUndoRedoService as qt, Rectangle as he, sequenceExecute as yl, IContextService as He, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as De, EDITOR_ACTIVATED as $e, FOCUSING_EDITOR_STANDALONE as Ml, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Le, Workbook as Up, Optional as sd, FOCUSING_SHEET as kt, RxDisposable as Un, DisposableCollection as bt, IPermissionService as ot, fromEventSubject as Wh, sortRules as Xp, LocaleService as xe, getReverseDirection as Bh, FOCUSING_FX_BAR_EDITOR as At, BooleanNumber as Ke, nameCharacterCheck as zp, debounce as uc, VerticalAlign as dn, HorizontalAlign as yt, WrapStrategy as wr, FOCUSING_UNIVER_EDITOR as Hr, FOCUSING_COMMON_DRAWINGS as Pl, FOCUSING_EDITOR_INPUT_FORMULA as Es, LocaleType as du, FOCUSING_EDITOR_BUT_HIDDEN as hc, generateRandomId as ld, DEFAULT_EMPTY_DOCUMENT_VALUE as Fh, LRUMap as jp, BaselineOffset as uu, DataStreamTreeTokenType as Yp, skipParseTagNames as Zp, CustomRangeType as ad, DEFAULT_WORKSHEET_ROW_HEIGHT as gc, ILogService as El, ErrorService as Gp, CellModeEnum as Uh, isNotNullOrUndefined as qp, extractPureTextFromCell as Xh, UserManagerService as Wt, DEFAULT_STYLES as cd, FontWeight as ts, FontItalic as ns, Dimension as zh, BorderStyleTypes as Oe, AbsoluteRefType as hu, NilCommand as dd, UndoCommandId as Qp, Range as Ss, cellToRange as Kp, handleStyleToString as gu, convertBodyToHtml as Jp, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY as mu, DEFAULT_WORKSHEET_COLUMN_WIDTH as fu, PresetListType as $p, isRealNum as jh, InterceptorEffectEnum as eS, splitIntoGrid as tS, IAuthzIoService as Tl, isValidRange as nS, DependentOn as Yh, Plugin as Zh, DocumentFlavor as rS, merge as iS, registerDependencies as pu, mergeOverrideWithDependencies as oS, touchDependencies as Sa } from "@univerjs/core";
|
|
6
|
+
import { IRenderManagerService as be, withCurrentTypeOfRenderer as ud, SHEET_VIEWPORT_KEY as U, CURSOR_TYPE as ye, Vector2 as ke, Rect as Ce, ScrollTimer as ri, ScrollTimerType as Et, DashedRect as sS, Group as va, TRANSFORM_CHANGE_OBSERVABLE_TYPE as mc, cancelRequestFrame as lS, requestNewFrame as aS, FIX_ONE_PIXEL_BLUR_OFFSET as cS, Layer as dS, SpreadsheetSkeleton as uS, DeviceInputEventType as Ye, convertTransformToOffsetX as Kr, convertTransformToOffsetY as Jr, convertTextRotation as hd, RENDER_RAW_FORMULA_KEY as hS, Spreadsheet as Gh, getCurrentTypeOfRenderer as gd, RENDER_CLASS_TYPE as gS, ScrollBar as md, fixLineWidthByScale as Su, ptToPixel as vu, Shape as fd, SHEET_EXTENSION_PREFIX as Cu, SpreadsheetRowHeader as mS, SpreadsheetColumnHeader as fS, Viewport as _n, hasCJKText as pS, DEFAULT_PADDING_DATA as SS, SheetExtension as qh, RegularPolygon as Yi, precisionTo as tr } from "@univerjs/engine-render";
|
|
7
|
+
import { useDependency as L, useObservable as gt, KeyCode as Z, Slider as vS, ComponentManager as Xn, DISABLE_AUTO_FOCUS_KEY as bu, useEvent as _u, useSidebarClick as Qh, MetaKeys as Te, ISidebarService as Mi, useComponentsOfPart as Kh, ComponentContainer as Jh, IConfirmService as rn, UI_PLUGIN_CONFIG_KEY as $h, UIMenu as CS, ContextMenuPosition as Rt, IMessageService as eg, IClipboardInterfaceService as Ol, IMenuManagerService as pd, ToolbarItem as bS, ILayoutService as xl, DEFAULT_BACKGROUND_COLOR_RGB as _S, DEFAULT_BACKGROUND_COLOR_RGBA as wS, handleStringToStyle as RS, textTrim as wu, INotificationService as IS, IPlatformService as yS, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as Ru, HTML_CLIPBOARD_MIME_TYPE as Iu, imageMimeTypeSet as MS, FILE__BMP_CLIPBOARD_MIME_TYPE as PS, FILE__WEBP_CLIPBOARD_MIME_TYPE as ES, FILE__JPEG_CLIPBOARD_MIME_TYPE as TS, FILE_PNG_CLIPBOARD_MIME_TYPE as OS, CopyCommand as xS, CutCommand as AS, PasteCommand as kS, SheetPasteShortKeyCommandName as HS, IContextMenuService as Al, getMenuHiddenObservable as ue, MenuItemType as K, FONT_SIZE_LIST as NS, FONT_FAMILY_LIST as VS, IDialogService as Pi, ContextMenuGroup as Qe, RibbonStartGroup as Ca, IShortcutService as kl, IUIPartsService as Hl, FontFamily as tg, FontFamilyItem as ng, FontSize as rg, BuiltInUIPart as Ki, connectInjector as ii, ICanvasPopupService as DS, IZenZoneService as LS, UniverMobileUIPlugin as WS } from "@univerjs/ui";
|
|
8
8
|
import BS, { forwardRef as ft, useRef as An, createElement as ht, useState as ne, useMemo as Dt, useEffect as Ee, useCallback as Vn, useLayoutEffect as FS } from "react";
|
|
9
|
-
import { BehaviorSubject as Me, Subject as Ae, of as Re, merge as _t, map as Be, startWith as Gt, switchMap as ct, takeUntil as gi, distinctUntilChanged as un, throttleTime as ig, EMPTY as
|
|
10
|
-
import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as Ts, SELECTION_CONTROL_BORDER_BUFFER_COLOR as rs, SELECTIONS_ENABLED as $r, REF_SELECTIONS_ENABLED as oo, SheetSkeletonService as XS, SheetsSelectionsService as $, SheetInterceptorService as zn, SetWorksheetRowAutoHeightMutationFactory as og, SetWorksheetRowAutoHeightMutation as yr, SetRangeValuesCommand as Ho, SetWorksheetRowIsAutoHeightCommand as Vl, SetStyleCommand as zS, MoveRangeCommand as
|
|
11
|
-
import { DocSkeletonManagerService as ir, DocSelectionManagerService as
|
|
12
|
-
import { IDefinedNamesService as Xo, FUNCTION_NAMES_STATISTICAL as Fe, FUNCTION_NAMES_MATH as zl, FUNCTION_NAMES_TEXT as zv, sequenceNodeType as ba, matchToken as jg, LexerTreeBuilder as Yg, IFunctionService as Zg, SetFormulaCalculationNotificationMutation as jv, operatorToken as Qr, isReferenceStrings as Gg, isReferenceStringWithEffectiveColumn as Yv, serializeRangeWithSheet as qg, NullValueObject as
|
|
9
|
+
import { BehaviorSubject as Me, Subject as Ae, of as Re, merge as _t, map as Be, startWith as Gt, switchMap as ct, takeUntil as gi, distinctUntilChanged as un, throttleTime as ig, EMPTY as yu, filter as Nl, combineLatest as dt, combineLatestWith as dr, Observable as Xe, Subscription as rr, withLatestFrom as US } from "rxjs";
|
|
10
|
+
import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as Ts, SELECTION_CONTROL_BORDER_BUFFER_COLOR as rs, SELECTIONS_ENABLED as $r, REF_SELECTIONS_ENABLED as oo, SheetSkeletonService as XS, SheetsSelectionsService as $, SheetInterceptorService as zn, SetWorksheetRowAutoHeightMutationFactory as og, SetWorksheetRowAutoHeightMutation as yr, SetRangeValuesCommand as Ho, SetWorksheetRowIsAutoHeightCommand as Vl, SetStyleCommand as zS, MoveRangeCommand as Sd, ReorderRangeCommand as jS, rangeToDiscreteRange as Ji, SetSelectionsOperation as Pe, SetRangeValuesMutation as we, getSheetCommandTarget as Ue, generateNullCellValue as YS, SetRangeValuesUndoMutationFactory as nn, IRefSelectionsService as Dl, BEFORE_CELL_EDIT as ZS, SetWorksheetActiveOperation as rt, MoveRangeMutation as sr, RemoveRowMutation as No, RemoveColMutation as Vo, InsertRowMutation as Do, InsertColMutation as Lo, MoveRowsMutation as Ll, MoveColsMutation as Wl, SetWorksheetColWidthMutation as an, SetWorksheetRowHeightMutation as so, RemoveSheetMutation as Dn, RemoveMergeUndoMutationFactory as Bl, RemoveWorksheetMergeMutation as $t, AddWorksheetMergeMutation as en, getAddMergeMutationRangeByType as Fl, AddMergeUndoMutationFactory as Ul, WorkbookEditablePermission as J, WorksheetEditPermission as te, UnitAction as lo, alignToMergedCellsBorders as xn, getSelectionsService as Wo, SelectionMoveType as Yt, getCellAtRowCol as vs, expandToContinuousRange as GS, ScrollToCellOperation as vd, SetWorksheetShowCommand as Cd, WorksheetProtectionRuleModel as pt, RangeProtectionRuleModel as et, RangeProtectionCache as Bo, WorksheetViewPermission as sg, SetWorksheetOrderMutation as bd, InsertSheetMutation as Nr, SetWorksheetNameMutation as _d, SetWorksheetHideMutation as lr, SetWorksheetActivateCommand as wd, WorkbookManageCollaboratorPermission as lg, WorkbookRenameSheetPermission as ag, SetWorksheetOrderCommand as qS, SetWorksheetNameCommand as QS, SetTabColorMutation as KS, WorkbookCreateSheetPermission as cg, InsertSheetCommand as JS, COMMAND_LISTENER_SKELETON_CHANGE as Os, adjustRangeOnMutation as $S, getPrimaryForRange as dg, SetRowHiddenCommand as ug, SetColHiddenCommand as hg, SetBoldCommand as Rd, SetItalicCommand as Id, SetUnderlineCommand as yd, SetStrikeThroughCommand as Md, SetFontSizeCommand as Pd, SetFontFamilyCommand as Ed, SetTextColorCommand as gg, SetFrozenMutationFactory as mg, SetFrozenMutation as Rr, RangeProtectionPermissionEditPoint as re, IExclusiveRangeService as ev, CancelFrozenCommand as Cs, WorksheetSetRowStylePermission as Vr, SetRowHeightCommand as fg, SetRowHiddenMutation as pg, SetRowVisibleMutation as Sg, SetSelectedRowsVisibleCommand as vg, WorksheetSetCellStylePermission as Ge, WorksheetSetCellValuePermission as Jt, WorksheetSetColumnStylePermission as Dr, SetColWidthCommand as Cg, SetColHiddenMutation as bg, SetColVisibleMutation as _g, SetSelectedColsVisibleCommand as wg, SetTextRotationCommand as fc, SetTextWrapCommand as pc, SetVerticalTextAlignCommand as Sc, SetHorizontalTextAlignCommand as vc, ResetBackgroundColorCommand as Rg, SetBackgroundColorCommand as xs, WorksheetCopyPermission as As, RangeProtectionPermissionViewPoint as Cc, WorkbookCopyPermission as Zi, SetWorksheetRowIsAutoHeightMutation as tv, SetFrozenCommand as nv, InsertRangeMoveDownCommand as bc, InsertRangeMoveRightCommand as _c, InsertRowCommand as rv, InsertColCommand as iv, MoveColsCommand as Ig, MoveRowsCommand as yg, RemoveColCommand as Mg, RemoveRowCommand as Pg, MergeCellController as ov, MERGE_CELL_INTERCEPTOR_CHECK as sv, DeltaRowHeightCommand as lv, DeltaColumnWidthCommand as av, COMMAND_LISTENER_VALUE_CHANGE as cv, AddMergeRedoSelectionsOperationFactory as dv, AddMergeUndoSelectionsOperationFactory as uv, DeleteRangeMoveLeftCommand as Mu, DeleteRangeMoveUpCommand as Pu, EditStateEnum as cn, ViewStateEnum as mi, UnitObject as Nt, DeleteWorksheetProtectionCommand as ks, DeleteRangeProtectionMutation as Eu, AddRangeProtectionMutation as hv, RemoveSheetCommand as gv, AddWorksheetProtectionCommand as Eg, BorderStyleManagerService as wc, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as Rc, InsertDefinedNameCommand as mv, SetDefinedNameCommand as fv, RemoveDefinedNameCommand as pv, SetBorderBasicCommand as Ic, ClearSelectionAllCommand as bs, ClearSelectionFormatCommand as $i, ClearSelectionContentCommand as oi, WorksheetDeleteRowPermission as Sv, WorksheetDeleteColumnPermission as vv, ToggleGridlinesCommand as Tg, ToggleGridlinesMutation as Cv, InsertMultiRowsAfterCommand as Og, WorksheetInsertRowPermission as Fo, InsertMultiRowsAboveCommand as Td, InsertMultiColsLeftCommand as xg, InsertColBeforeCommand as Ag, WorksheetInsertColumnPermission as kg, InsertRowBeforeCommand as Hg, RemoveWorksheetMergeCommand as Ng, WorkbookCreateProtectPermission as Xl, WorksheetDeleteProtectionPermission as Vg, WorksheetManageCollaboratorPermission as bv, SetWorksheetHideCommand as Dg, SetTabColorCommand as Lg, CopySheetCommand as Wg, WorkbookDeleteSheetPermission as _v, WorkbookHideSheetPermission as Bg, InsertMultiColsRightCommand as wv, AddWorksheetMergeCommand as Rv, AddWorksheetMergeHorizontalCommand as Iv, AddWorksheetMergeVerticalCommand as yv, AddWorksheetMergeAllCommand as Mv, ResetTextColorCommand as Pv, RefRangeService as Ev, MAX_CELL_PER_SHEET_KEY as Tv, INTERCEPTOR_POINT as Ov, SheetPermissionCheckController as Fg, INumfmtService as xv, SetProtectionCommand as Av, AddRangeProtectionCommand as kv, setEndForRange as Hv, baseProtectionActions as Nv, DeleteRangeProtectionCommand as Vv, WorksheetProtectionPointModel as Dv, SetWorksheetPermissionPointsCommand as Lv, getAllWorksheetPermissionPoint as Wv, convertSelectionDataToRange as Ug, UniverSheetsPlugin as Xg, RefSelectionsService as zg, ToggleCellCheckboxCommand as Bv, SheetPermissionInitController as Fv, SetSpecificRowsVisibleCommand as Uv, SetSpecificColsVisibleCommand as Xv } from "@univerjs/sheets";
|
|
11
|
+
import { DocSkeletonManagerService as ir, DocSelectionManagerService as Od, RichTextEditingMutation as Hs, SetTextSelectionsOperation as Uo } from "@univerjs/docs";
|
|
12
|
+
import { IDefinedNamesService as Xo, FUNCTION_NAMES_STATISTICAL as Fe, FUNCTION_NAMES_MATH as zl, FUNCTION_NAMES_TEXT as zv, sequenceNodeType as ba, matchToken as jg, LexerTreeBuilder as Yg, IFunctionService as Zg, SetFormulaCalculationNotificationMutation as jv, operatorToken as Qr, isReferenceStrings as Gg, isReferenceStringWithEffectiveColumn as Yv, serializeRangeWithSheet as qg, NullValueObject as Tu, serializeRange as Qg, deserializeRangeWithSheet as Kg } from "@univerjs/engine-formula";
|
|
13
13
|
import { isTextFormat as Zv } from "@univerjs/engine-numfmt";
|
|
14
14
|
import { jsx as b, jsxs as q, Fragment as Mr } from "react/jsx-runtime";
|
|
15
|
-
import { DropdownMenu as Jg, clsx as qe, Dropdown as Ns, DropdownLegacy as Gv, Tooltip as er, MessageType as $g, InputNumber as qv, Separator as Qv, ColorPicker as
|
|
15
|
+
import { DropdownMenu as Jg, clsx as qe, Dropdown as Ns, DropdownLegacy as Gv, Tooltip as er, MessageType as $g, InputNumber as qv, Separator as Qv, ColorPicker as xd, Input as Vs, RadioGroup as yc, Radio as ei, Select as em, Button as pn, Confirm as Kv, FormLayout as Ds, Avatar as Ad, Switch as Jv } from "@univerjs/design";
|
|
16
16
|
import { finalize as $v, switchMap as kn, startWith as eC, map as Sn, debounceTime as jl, filter as tm } from "rxjs/operators";
|
|
17
17
|
import { ITelemetryService as tC } from "@univerjs/telemetry";
|
|
18
|
-
function
|
|
18
|
+
function kd(r, e) {
|
|
19
19
|
if (r == null)
|
|
20
20
|
return;
|
|
21
21
|
const t = e.getRenderById(r);
|
|
@@ -29,9 +29,9 @@ function Ad(r, e) {
|
|
|
29
29
|
engine: o
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
const Mc = [10, 400], nm = "RANGE_SELECTOR_COMPONENT_KEY",
|
|
32
|
+
const Mc = [10, 400], nm = "RANGE_SELECTOR_COMPONENT_KEY", Hd = "EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY";
|
|
33
33
|
var Ze = /* @__PURE__ */ ((r) => (r.MAIN = "__SpreadsheetRender__", r.ROW = "__SpreadsheetRowHeader__", r.COLUMN = "__SpreadsheetColumnHeader__", r.LEFT_TOP = "__SpreadsheetLeftTopPlaceholder__", r))(Ze || {});
|
|
34
|
-
const
|
|
34
|
+
const Ou = 0, Ls = 1, ar = 10, nC = 11, xu = 12, Nd = {
|
|
35
35
|
id: "sheet.command.set-row-header-width",
|
|
36
36
|
type: Q.COMMAND,
|
|
37
37
|
handler: async (r, e) => {
|
|
@@ -48,7 +48,7 @@ const Tu = 0, Ls = 1, ar = 10, nC = 11, Ou = 12, Hd = {
|
|
|
48
48
|
}
|
|
49
49
|
return !0;
|
|
50
50
|
}
|
|
51
|
-
},
|
|
51
|
+
}, Vd = {
|
|
52
52
|
id: "sheet.command.set-col-header-height",
|
|
53
53
|
type: Q.COMMAND,
|
|
54
54
|
handler: async (r, e) => {
|
|
@@ -252,7 +252,7 @@ function Ws(r, e) {
|
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
const
|
|
255
|
+
const Au = "__SpreadsheetHelperSelectionTempRect", iC = 35;
|
|
256
256
|
class oC {
|
|
257
257
|
constructor(e, t) {
|
|
258
258
|
_(this, "_startOffsetX", 0);
|
|
@@ -299,7 +299,7 @@ class oC {
|
|
|
299
299
|
}
|
|
300
300
|
_getFreeze() {
|
|
301
301
|
var t, n;
|
|
302
|
-
return (n = (t =
|
|
302
|
+
return (n = (t = ud(
|
|
303
303
|
x.UNIVER_SHEET,
|
|
304
304
|
ge,
|
|
305
305
|
this._injector.get(V),
|
|
@@ -395,7 +395,7 @@ class oC {
|
|
|
395
395
|
let v = 0, C = 0;
|
|
396
396
|
h < m ? v -= 1 : h > p && (v += 1), g < f ? C -= 1 : g > S && (C += 1), this._relativeSelectionPositionRow = m - h + v, this._relativeSelectionPositionColumn = f - g + C, this._relativeSelectionRowLength = p - m, this._relativeSelectionColumnLength = S - f;
|
|
397
397
|
const w = this._control.currentStyle, R = this._getScale();
|
|
398
|
-
this.isHelperSelection && (this._helperSelection = new Ce(
|
|
398
|
+
this.isHelperSelection && (this._helperSelection = new Ce(Au, {
|
|
399
399
|
stroke: w.stroke,
|
|
400
400
|
strokeWidth: w.strokeWidth / R
|
|
401
401
|
}), i.addObject(this._helperSelection));
|
|
@@ -594,7 +594,7 @@ class oC {
|
|
|
594
594
|
const p = this._getScale();
|
|
595
595
|
m /= p;
|
|
596
596
|
const S = Ts / p, v = new Hn(g).darken(2).toRgbString();
|
|
597
|
-
this.isHelperSelection && (this._helperSelection = new Ce(
|
|
597
|
+
this.isHelperSelection && (this._helperSelection = new Ce(Au, {
|
|
598
598
|
stroke: v,
|
|
599
599
|
strokeWidth: m + S / 2
|
|
600
600
|
}), i.addObject(this._helperSelection)), this._activeViewport = i.getActiveViewportByCoord(ke.FromArray([t, n]));
|
|
@@ -725,8 +725,8 @@ class oC {
|
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
var Tc = /* @__PURE__ */ ((r) => (r.Selection = "__SpreadsheetSelectionShape__", r.top = "__SpreadsheetSelectionTopControl__", r.bottom = "__SpreadsheetSelectionBottomControl__", r.left = "__SpreadsheetSelectionShapeLeftControl__", r.right = "__SpreadsheetSelectionShapeRightControl__", r.backgroundTop = "__SpreadsheetSelectionBackgroundControlTop__", r.backgroundMiddleLeft = "__SpreadsheetSelectionBackgroundControlMiddleLeft__", r.backgroundMiddleRight = "__SpreadsheetSelectionBackgroundControlMiddleRight__", r.backgroundBottom = "__SpreadsheetSelectionBackgroundControlBottom__", r.fill = "__SpreadsheetSelectionFillControl__", r.fillTopLeft = "__SpreadsheetSelectionFillControlTopLeft__", r.fillBottomRight = "__SpreadsheetSelectionFillControlBottomRight__", r.fillTopLeftInner = "__SpreadsheetSelectionFillControlTopLeftInner__", r.fillBottomRightInner = "__SpreadsheetSelectionFillControlBottomRightInner__", r.lineMain = "__SpreadsheetDragLineMainControl__", r.lineContent = "__SpreadsheetDragLineContentControl__", r.line = "__SpreadsheetDragLineControl__", r.dash = "__SpreadsheetDragDashControl__", r.rowHeaderBackground = "__SpreadSheetSelectionRowHeaderBackground__", r.rowHeaderBorder = "__SpreadSheetSelectionRowHeaderBorder__", r.rowHeaderGroup = "__SpreadSheetSelectionRowHeaderGroup__", r.columnHeaderBackground = "__SpreadSheetSelectionColumnHeaderBackground__", r.columnHeaderBorder = "__SpreadSheetSelectionColumnHeaderBorder__", r.columnHeaderGroup = "__SpreadSheetSelectionColumnHeaderGroup__", r.topLeftWidget = "__SpreadSheetSelectionTopLeftWidget__", r.topCenterWidget = "__SpreadSheetSelectionTopCenterWidget__", r.topRightWidget = "__SpreadSheetSelectionTopRightWidget__", r.middleLeftWidget = "__SpreadSheetSelectionMiddleLeftWidget__", r.middleRightWidget = "__SpreadSheetSelectionMiddleRightWidget__", r.bottomLeftWidget = "__SpreadSheetSelectionBottomLeftWidget__", r.bottomCenterWidget = "__SpreadSheetSelectionBottomCenterWidget__", r.bottomRightWidget = "__SpreadSheetSelectionBottomRightWidget__", r))(Tc || {});
|
|
728
|
-
const
|
|
729
|
-
class
|
|
728
|
+
const ku = 0.3;
|
|
729
|
+
class Dd extends de {
|
|
730
730
|
constructor(t, n, i, o) {
|
|
731
731
|
var s, l, a, c;
|
|
732
732
|
super();
|
|
@@ -1240,7 +1240,7 @@ class Vd extends de {
|
|
|
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 Hn(d).setAlpha(
|
|
1243
|
+
l === z.COLUMN && (C = new Hn(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
|
|
@@ -1253,7 +1253,7 @@ class Vd extends de {
|
|
|
1253
1253
|
this._columnHeaderGroup.hide();
|
|
1254
1254
|
if (this._columnHeaderGroup.makeDirty(!0), this._highlightHeader && S > 0) {
|
|
1255
1255
|
let C = u;
|
|
1256
|
-
l === z.ROW && (C = new Hn(d).setAlpha(
|
|
1256
|
+
l === z.ROW && (C = new Hn(d).setAlpha(ku).toString()), this._rowHeaderBackground.setProps({
|
|
1257
1257
|
fill: C
|
|
1258
1258
|
}), this._rowHeaderBackground.resize(S, s - i), this._rowHeaderBorder.setProps({
|
|
1259
1259
|
fill: h
|
|
@@ -1458,7 +1458,7 @@ class im extends de {
|
|
|
1458
1458
|
this._singleSelectionEnabled = t;
|
|
1459
1459
|
}
|
|
1460
1460
|
newSelectionControl(t, n, i) {
|
|
1461
|
-
const o = this.getSelectionControls().length, { rowHeaderWidth: s, columnHeaderHeight: l } = n, a = new
|
|
1461
|
+
const o = this.getSelectionControls().length, { rowHeaderWidth: s, columnHeaderHeight: l } = n, a = new Dd(t, o, this._selectionTheme, {
|
|
1462
1462
|
highlightHeader: this._highlightHeader,
|
|
1463
1463
|
rowHeaderWidth: s,
|
|
1464
1464
|
columnHeaderHeight: l
|
|
@@ -1815,11 +1815,11 @@ function om(r) {
|
|
|
1815
1815
|
endColumn: r.getColumnCount() - 1,
|
|
1816
1816
|
rangeType: z.ALL
|
|
1817
1817
|
},
|
|
1818
|
-
primary:
|
|
1818
|
+
primary: Ld(r).primary,
|
|
1819
1819
|
style: null
|
|
1820
1820
|
};
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function Ld(r) {
|
|
1823
1823
|
return lC(r, {
|
|
1824
1824
|
startRow: 0,
|
|
1825
1825
|
startColumn: 0,
|
|
@@ -1854,7 +1854,7 @@ var aC = Object.getOwnPropertyDescriptor, cC = (r, e, t, n) => {
|
|
|
1854
1854
|
for (var i = n > 1 ? void 0 : n ? aC(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
1855
1855
|
(s = r[o]) && (i = s(i) || i);
|
|
1856
1856
|
return i;
|
|
1857
|
-
},
|
|
1857
|
+
}, Hu = (r, e) => (t, n) => e(t, n, r);
|
|
1858
1858
|
let ge = class extends de {
|
|
1859
1859
|
constructor(e, t, n) {
|
|
1860
1860
|
super();
|
|
@@ -2026,7 +2026,7 @@ let ge = class extends de {
|
|
|
2026
2026
|
const o = e == null ? void 0 : e.with($), s = e == null ? void 0 : e.with(lt), l = o.getCurrentSelections();
|
|
2027
2027
|
s.resetSelectionsByModelData(l);
|
|
2028
2028
|
const a = this.getUnitSkeleton(e.unitId, t);
|
|
2029
|
-
a && (a.commandId =
|
|
2029
|
+
a && (a.commandId = Vd.id, this._currentSkeleton$.next(a));
|
|
2030
2030
|
}
|
|
2031
2031
|
setRowHeaderSize(e, t, n) {
|
|
2032
2032
|
var g;
|
|
@@ -2050,12 +2050,12 @@ let ge = class extends de {
|
|
|
2050
2050
|
const c = e == null ? void 0 : e.with($), d = e == null ? void 0 : e.with(lt), u = c.getCurrentSelections();
|
|
2051
2051
|
d.resetSelectionsByModelData(u);
|
|
2052
2052
|
const h = this.getCurrent();
|
|
2053
|
-
h && (h.commandId =
|
|
2053
|
+
h && (h.commandId = Nd.id, this._currentSkeleton$.next(h));
|
|
2054
2054
|
}
|
|
2055
2055
|
};
|
|
2056
2056
|
ge = cC([
|
|
2057
|
-
|
|
2058
|
-
|
|
2057
|
+
Hu(1, N(It)),
|
|
2058
|
+
Hu(2, N(XS))
|
|
2059
2059
|
], ge);
|
|
2060
2060
|
function ur() {
|
|
2061
2061
|
const r = L(V), e = gt(() => r.getCurrentTypeOfUnit$(x.UNIVER_SHEET), void 0, void 0, []);
|
|
@@ -2177,7 +2177,7 @@ let co = class extends de {
|
|
|
2177
2177
|
}
|
|
2178
2178
|
})), this.disposeWithMe(r.interceptAfterCommand({
|
|
2179
2179
|
getMutations: (t) => {
|
|
2180
|
-
if (t.id ===
|
|
2180
|
+
if (t.id === Sd.id) {
|
|
2181
2181
|
const n = t.params;
|
|
2182
2182
|
return this.getUndoRedoParamsOfAutoHeight([n.fromRange, n.toRange]);
|
|
2183
2183
|
}
|
|
@@ -2246,7 +2246,7 @@ function hC(r) {
|
|
|
2246
2246
|
});
|
|
2247
2247
|
}), e.getData();
|
|
2248
2248
|
}
|
|
2249
|
-
const xc = { 零: 0, 一: 1, 二: 2, 三: 3, 四: 4, 五: 5, 六: 6, 七: 7, 八: 8, 九: 9 }, Bs = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"],
|
|
2249
|
+
const xc = { 零: 0, 一: 1, 二: 2, 三: 3, 四: 4, 五: 5, 六: 6, 七: 7, 八: 8, 九: 9 }, Bs = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"], Nu = ["", "万", "亿", "万亿", "亿亿"], gC = ["", "十", "百", "千"], am = {
|
|
2250
2250
|
十: { value: 10, secUnit: !1 },
|
|
2251
2251
|
百: { value: 100, secUnit: !1 },
|
|
2252
2252
|
千: { value: 1e3, secUnit: !1 },
|
|
@@ -2283,7 +2283,7 @@ function fC(r) {
|
|
|
2283
2283
|
return Bs[0];
|
|
2284
2284
|
for (; r > 0; ) {
|
|
2285
2285
|
const o = r % 1e4;
|
|
2286
|
-
i && (n = Bs[0] + n), t = mC(o), t += o !== 0 ?
|
|
2286
|
+
i && (n = Bs[0] + n), t = mC(o), t += o !== 0 ? Nu[e] : Nu[0], n = t + n, i = o < 1e3 && o > 0, r = Math.floor(r / 1e4), e++;
|
|
2287
2287
|
}
|
|
2288
2288
|
return n;
|
|
2289
2289
|
}
|
|
@@ -2418,7 +2418,7 @@ function Fs(r, e, t) {
|
|
|
2418
2418
|
const d = (c - 1) % r.length, u = ie.deepClone(r[d]);
|
|
2419
2419
|
Or(u);
|
|
2420
2420
|
const h = Number((s = r[r.length - 1]) == null ? void 0 : s.v) * (Number((l = r[1]) == null ? void 0 : l.v) / Number((a = r[0]) == null ? void 0 : a.v)) ** c;
|
|
2421
|
-
u && (
|
|
2421
|
+
u && (Wu(u) && (u.v = h), n.push(u));
|
|
2422
2422
|
}
|
|
2423
2423
|
else {
|
|
2424
2424
|
const c = RC(r.length);
|
|
@@ -2426,7 +2426,7 @@ function Fs(r, e, t) {
|
|
|
2426
2426
|
const u = (d - 1) % r.length, h = ie.deepClone(r[u]);
|
|
2427
2427
|
Or(h);
|
|
2428
2428
|
const g = t === W.DOWN || t === W.RIGHT, m = IC(r.length + d, i, c, g);
|
|
2429
|
-
h && (
|
|
2429
|
+
h && (Wu(h) && (h.v = m), n.push(h));
|
|
2430
2430
|
}
|
|
2431
2431
|
}
|
|
2432
2432
|
return n;
|
|
@@ -2447,7 +2447,7 @@ function IC(r, e, t, n = !0) {
|
|
|
2447
2447
|
const d = s - c * o;
|
|
2448
2448
|
return Math.round((d + c * r) * 1e5) / 1e5;
|
|
2449
2449
|
}
|
|
2450
|
-
function
|
|
2450
|
+
function Vu(r, e, t) {
|
|
2451
2451
|
var o;
|
|
2452
2452
|
const n = [], i = /0|([1-9]+[0-9]*)/g;
|
|
2453
2453
|
for (let s = 1; s <= e; s++) {
|
|
@@ -2488,7 +2488,7 @@ function fi(r, e, t, n = 0) {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
return s;
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2491
|
+
function Du(r, e, t) {
|
|
2492
2492
|
var i;
|
|
2493
2493
|
const n = [];
|
|
2494
2494
|
for (let o = 1; o <= e; o++) {
|
|
@@ -2539,7 +2539,7 @@ function _a(r) {
|
|
|
2539
2539
|
eo[n].includes(r) && (e = n, t.push(...eo[n]));
|
|
2540
2540
|
}), { name: e, series: t };
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function Lu(r, e, t, n) {
|
|
2543
2543
|
var s;
|
|
2544
2544
|
const i = n.length, o = [];
|
|
2545
2545
|
for (let l = 1; l <= e; l++) {
|
|
@@ -2670,7 +2670,7 @@ function OP(r, e) {
|
|
|
2670
2670
|
}
|
|
2671
2671
|
return t;
|
|
2672
2672
|
}
|
|
2673
|
-
function
|
|
2673
|
+
function Wu(r) {
|
|
2674
2674
|
return !(od(r.f) || Fp(r.si) || r.t === jt.BOOLEAN);
|
|
2675
2675
|
}
|
|
2676
2676
|
function Or(r) {
|
|
@@ -2736,13 +2736,13 @@ const MC = {
|
|
|
2736
2736
|
const { data: n } = r, i = t === W.UP || t === W.LEFT;
|
|
2737
2737
|
let o;
|
|
2738
2738
|
if (n.length === 1)
|
|
2739
|
-
return o = i ? -1 : 1, zt(
|
|
2739
|
+
return o = i ? -1 : 1, zt(Vu(n, e, o), i);
|
|
2740
2740
|
const s = [];
|
|
2741
2741
|
for (let a = 0; a < n.length; a++) {
|
|
2742
2742
|
const c = `${(l = n[a]) == null ? void 0 : l.v}`;
|
|
2743
2743
|
c && s.push(Number(is(c).matchTxt));
|
|
2744
2744
|
}
|
|
2745
|
-
return i && (n.reverse(), s.reverse()), zo(s) ? (o = s[1] - s[0], zt(
|
|
2745
|
+
return i && (n.reverse(), s.reverse()), zo(s) ? (o = s[1] - s[0], zt(Vu(n, e, o), i)) : Tr(n, e);
|
|
2746
2746
|
}
|
|
2747
2747
|
}
|
|
2748
2748
|
}, TC = {
|
|
@@ -2757,7 +2757,7 @@ const MC = {
|
|
|
2757
2757
|
if (n.length === 1) {
|
|
2758
2758
|
const u = `${(a = n[0]) == null ? void 0 : a.v}`;
|
|
2759
2759
|
let h;
|
|
2760
|
-
return i ? h = -1 : h = 1, u && (u === "日" || On(u) < 7) ? zt(fi(n, e, h), i) : zt(
|
|
2760
|
+
return i ? h = -1 : h = 1, u && (u === "日" || On(u) < 7) ? zt(fi(n, e, h), i) : zt(Du(n, e, h), i);
|
|
2761
2761
|
}
|
|
2762
2762
|
let o = !1;
|
|
2763
2763
|
for (let u = 0; u < n.length; u++)
|
|
@@ -2777,7 +2777,7 @@ const MC = {
|
|
|
2777
2777
|
return zt(fi(n, e, h), i);
|
|
2778
2778
|
}
|
|
2779
2779
|
const u = s[1] - s[0];
|
|
2780
|
-
return zt(
|
|
2780
|
+
return zt(Du(n, e, u), i);
|
|
2781
2781
|
}
|
|
2782
2782
|
return Tr(n, e);
|
|
2783
2783
|
}
|
|
@@ -2851,7 +2851,7 @@ const MC = {
|
|
|
2851
2851
|
const { data: n } = r, i = t === W.LEFT || t === W.UP, { series: o } = _a(`${(a = n[0]) == null ? void 0 : a.v}` || "");
|
|
2852
2852
|
if (n.length === 1) {
|
|
2853
2853
|
let d;
|
|
2854
|
-
return i ? d = -1 : d = 1, zt(
|
|
2854
|
+
return i ? d = -1 : d = 1, zt(Lu(n, e, d, o), i);
|
|
2855
2855
|
}
|
|
2856
2856
|
const s = [];
|
|
2857
2857
|
let l = 0;
|
|
@@ -2861,7 +2861,7 @@ const MC = {
|
|
|
2861
2861
|
}
|
|
2862
2862
|
if (i && (n.reverse(), s.reverse()), zo(s)) {
|
|
2863
2863
|
const d = s[1] - s[0];
|
|
2864
|
-
return zt(
|
|
2864
|
+
return zt(Lu(n, e, d, o), i);
|
|
2865
2865
|
}
|
|
2866
2866
|
return Tr(n, e);
|
|
2867
2867
|
}
|
|
@@ -3268,7 +3268,7 @@ let Ac = class extends de {
|
|
|
3268
3268
|
const { primary: l, unitId: a, sheetId: c, scene: d, engine: u } = t, h = Ws(o, l);
|
|
3269
3269
|
if (h == null)
|
|
3270
3270
|
return;
|
|
3271
|
-
const g = Ps(h), m =
|
|
3271
|
+
const g = Ps(h), m = cu(u);
|
|
3272
3272
|
let { startX: f, startY: p, endX: S, endY: v } = g;
|
|
3273
3273
|
const { scaleX: C, scaleY: w } = d.getAncestorScale(), R = d.getViewportScrollXY(s.getViewPort());
|
|
3274
3274
|
f = Kr(f, C, R), p = Jr(p, w, R), S = Kr(S, C, R), v = Jr(v, w, R), e && this._currentEditCellLayout && (S = S - f + this._currentEditCellLayout.position.startX, v = v - p + this._currentEditCellLayout.position.startY, f = this._currentEditCellLayout.position.startX, p = this._currentEditCellLayout.position.startY), this._currentEditCellLayout = {
|
|
@@ -3325,7 +3325,7 @@ let Ac = class extends de {
|
|
|
3325
3325
|
if (!i) return;
|
|
3326
3326
|
const { primary: s, unitId: l, sheetId: a, scene: c, engine: d } = e, { startRow: u, startColumn: h } = s, g = Ws(i, s);
|
|
3327
3327
|
if (g == null) return;
|
|
3328
|
-
const m = Ps(g), f =
|
|
3328
|
+
const m = Ps(g), f = cu(d);
|
|
3329
3329
|
let { startX: p, startY: S, endX: v, endY: C } = m;
|
|
3330
3330
|
const { scaleX: w, scaleY: R } = c.getAncestorScale(), I = c.getViewportScrollXY(o.getViewPort());
|
|
3331
3331
|
p = Kr(p, w, I), S = Jr(S, R, I), v = Kr(v, w, I), C = Jr(C, R, I);
|
|
@@ -3350,7 +3350,7 @@ let Ac = class extends de {
|
|
|
3350
3350
|
if (T != null && (T.cellValueType = jt.STRING), !P || P.documentModel == null) {
|
|
3351
3351
|
const H = i.getBlankCellDocumentModel(E);
|
|
3352
3352
|
if (P != null) {
|
|
3353
|
-
const { verticalAlign: F, horizontalAlign: X, wrapStrategy: B, textRotation: j, fill: Y } = P, { centerAngle: le, vertexAngle: me } =
|
|
3353
|
+
const { verticalAlign: F, horizontalAlign: X, wrapStrategy: B, textRotation: j, fill: Y } = P, { centerAngle: le, vertexAngle: me } = hd(j);
|
|
3354
3354
|
H.documentModel.documentStyle.renderConfig = {
|
|
3355
3355
|
...T,
|
|
3356
3356
|
verticalAlign: F,
|
|
@@ -3513,7 +3513,7 @@ function Cn(r, e) {
|
|
|
3513
3513
|
engine: l
|
|
3514
3514
|
};
|
|
3515
3515
|
}
|
|
3516
|
-
function
|
|
3516
|
+
function Bu(r, e, t, n) {
|
|
3517
3517
|
const { startX: i, startY: o, endX: s, endY: l } = n.getCellWithCoordByIndex(r, e);
|
|
3518
3518
|
return { startX: i, startY: o, endX: s, endY: l };
|
|
3519
3519
|
}
|
|
@@ -3622,7 +3622,7 @@ var BC = Object.getOwnPropertyDescriptor, FC = (r, e, t, n) => {
|
|
|
3622
3622
|
(s = r[o]) && (i = s(i) || i);
|
|
3623
3623
|
return i;
|
|
3624
3624
|
}, wa = (r, e) => (t, n) => e(t, n, r);
|
|
3625
|
-
const
|
|
3625
|
+
const Fu = "univer-sheet-main-canvas";
|
|
3626
3626
|
let xr = class extends Un {
|
|
3627
3627
|
constructor(e, t, n) {
|
|
3628
3628
|
super();
|
|
@@ -3654,7 +3654,7 @@ let xr = class extends Un {
|
|
|
3654
3654
|
_createRenderer(e) {
|
|
3655
3655
|
const t = e.getUnitId();
|
|
3656
3656
|
this._renderManagerService.created$.subscribe((n) => {
|
|
3657
|
-
n.unitId === t && (n.engine.getCanvas().setId(`${
|
|
3657
|
+
n.unitId === t && (n.engine.getCanvas().setId(`${Fu}_${t}`), n.engine.getCanvas().getContext().setId(`${Fu}_${t}`));
|
|
3658
3658
|
}), this._renderManagerService.createRender(t);
|
|
3659
3659
|
}
|
|
3660
3660
|
_disposeRenderer(e) {
|
|
@@ -3736,7 +3736,7 @@ let Xs = class extends de {
|
|
|
3736
3736
|
_initSelectionControlFillChanged() {
|
|
3737
3737
|
const e = new bt(), t = () => {
|
|
3738
3738
|
e.dispose();
|
|
3739
|
-
const n =
|
|
3739
|
+
const n = gd(x.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService);
|
|
3740
3740
|
if (!n) return;
|
|
3741
3741
|
n.with(lt).getSelectionControls().forEach((s) => {
|
|
3742
3742
|
e.add(s.selectionFilled$.subscribe((l) => {
|
|
@@ -4185,7 +4185,7 @@ let zs = class extends de {
|
|
|
4185
4185
|
return !1;
|
|
4186
4186
|
(S = v.onPointerDown) == null || S.call(v, C, h);
|
|
4187
4187
|
}
|
|
4188
|
-
}), u =
|
|
4188
|
+
}), u = Wh(a.onPointerMove$).pipe(ig(30)).subscribe((h) => {
|
|
4189
4189
|
var m, f, p, S, v, C;
|
|
4190
4190
|
const g = c(h);
|
|
4191
4191
|
if (g) {
|
|
@@ -4211,7 +4211,7 @@ zs = jC([
|
|
|
4211
4211
|
Ra(2, be),
|
|
4212
4212
|
Ra(3, ot)
|
|
4213
4213
|
], zs);
|
|
4214
|
-
class
|
|
4214
|
+
class Wd extends de {
|
|
4215
4215
|
constructor() {
|
|
4216
4216
|
super(...arguments);
|
|
4217
4217
|
_(this, "rangesStack", []);
|
|
@@ -4222,7 +4222,7 @@ var YC = Object.getOwnPropertyDescriptor, ZC = (r, e, t, n) => {
|
|
|
4222
4222
|
for (var i = n > 1 ? void 0 : n ? YC(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
4223
4223
|
(s = r[o]) && (i = s(i) || i);
|
|
4224
4224
|
return i;
|
|
4225
|
-
},
|
|
4225
|
+
}, Uu = (r, e) => (t, n) => e(t, n, r);
|
|
4226
4226
|
let Si = class {
|
|
4227
4227
|
constructor(r, e) {
|
|
4228
4228
|
_(this, "_current", null);
|
|
@@ -4266,8 +4266,8 @@ let Si = class {
|
|
|
4266
4266
|
}
|
|
4267
4267
|
};
|
|
4268
4268
|
Si = ZC([
|
|
4269
|
-
|
|
4270
|
-
|
|
4269
|
+
Uu(0, V),
|
|
4270
|
+
Uu(1, N(xe))
|
|
4271
4271
|
], Si);
|
|
4272
4272
|
var Gl = /* @__PURE__ */ ((r) => (r.MergeAll = "mergeAll", r.MergeVertical = "mergeVertical", r.MergeHorizontal = "mergeHorizontal", r))(Gl || {});
|
|
4273
4273
|
function nr(r, e, t, n, i = !0, o = 1, s = !0) {
|
|
@@ -4303,7 +4303,7 @@ function nr(r, e, t, n, i = !0, o = 1, s = !0) {
|
|
|
4303
4303
|
}
|
|
4304
4304
|
return l;
|
|
4305
4305
|
}
|
|
4306
|
-
function
|
|
4306
|
+
function Bd(r, e, t) {
|
|
4307
4307
|
const n = { ...r }, { startRow: i, startColumn: o, endRow: s, endColumn: l } = go(r, e, t);
|
|
4308
4308
|
let a = Wi(t, i, o, s, l).hasValue, c = !0, d = !0;
|
|
4309
4309
|
for (; d; ) {
|
|
@@ -4446,7 +4446,7 @@ function dm(r, e, t) {
|
|
|
4446
4446
|
return nr(r, e, t, void 0, !1, 1, !1);
|
|
4447
4447
|
}
|
|
4448
4448
|
function GC(r, e, t) {
|
|
4449
|
-
const n =
|
|
4449
|
+
const n = Bd(r, e, t);
|
|
4450
4450
|
return xn(he.union(n, r), t, !0);
|
|
4451
4451
|
}
|
|
4452
4452
|
function qC(r, e, t) {
|
|
@@ -4459,7 +4459,7 @@ function qC(r, e, t) {
|
|
|
4459
4459
|
return xn(he.union(r, i), t);
|
|
4460
4460
|
}
|
|
4461
4461
|
function QC(r, e, t, n) {
|
|
4462
|
-
const i =
|
|
4462
|
+
const i = Bh(t), o = Bd(go(r, i, n), t, n);
|
|
4463
4463
|
return t === W.UP && o.startRow <= r.startRow ? xn(
|
|
4464
4464
|
{ ...e, startColumn: r.startColumn, endColumn: r.endColumn },
|
|
4465
4465
|
n,
|
|
@@ -4479,10 +4479,10 @@ function QC(r, e, t, n) {
|
|
|
4479
4479
|
) : he.union(he.clone(e), o);
|
|
4480
4480
|
}
|
|
4481
4481
|
function KC(r, e, t) {
|
|
4482
|
-
const n =
|
|
4482
|
+
const n = Bh(e), i = go(r, n, t), o = go(r, e, t), s = dm(i, e, t);
|
|
4483
4483
|
return xn(he.union(o, s), t, !1);
|
|
4484
4484
|
}
|
|
4485
|
-
function
|
|
4485
|
+
function Xu(r) {
|
|
4486
4486
|
return {
|
|
4487
4487
|
startRow: 0,
|
|
4488
4488
|
startColumn: 0,
|
|
@@ -4625,7 +4625,7 @@ function hm(r, e) {
|
|
|
4625
4625
|
return !0;
|
|
4626
4626
|
});
|
|
4627
4627
|
}
|
|
4628
|
-
function
|
|
4628
|
+
function Fd(r, e) {
|
|
4629
4629
|
return e ? r === "mergeAll" ? e.filter((t) => !(t.startRow === t.endRow && t.startColumn === t.endColumn)) : r === "mergeVertical" ? e.filter((t) => t.startRow !== t.endRow) : r === "mergeHorizontal" ? e.filter((t) => t.startColumn !== t.endColumn) : e : null;
|
|
4630
4630
|
}
|
|
4631
4631
|
function $C(r) {
|
|
@@ -4643,7 +4643,7 @@ const Bt = {
|
|
|
4643
4643
|
const { workbook: n, worksheet: i } = t, o = Wo(r, e.fromCurrentSelection).getCurrentLastSelection();
|
|
4644
4644
|
if (!o)
|
|
4645
4645
|
return !1;
|
|
4646
|
-
const { direction: s, jumpOver: l, extra: a } = e, { range: c, primary: d } = o, u = kc(c, d, s), h = l === 1 ?
|
|
4646
|
+
const { direction: s, jumpOver: l, extra: a } = e, { range: c, primary: d } = o, u = kc(c, d, s), h = l === 1 ? Bd(u, s, i) : nr(u, s, i), g = vs(h.startRow, h.startColumn, i);
|
|
4647
4647
|
if (he.equals(g, u))
|
|
4648
4648
|
return !1;
|
|
4649
4649
|
const m = n.getUnitId();
|
|
@@ -4815,7 +4815,7 @@ const Bt = {
|
|
|
4815
4815
|
reveal: !0
|
|
4816
4816
|
});
|
|
4817
4817
|
}
|
|
4818
|
-
},
|
|
4818
|
+
}, Ud = {
|
|
4819
4819
|
id: "sheet.command.select-all",
|
|
4820
4820
|
type: Q.COMMAND,
|
|
4821
4821
|
handler: async (r, e = { expandToGapFirst: !0, loop: !1 }) => {
|
|
@@ -4823,7 +4823,7 @@ const Bt = {
|
|
|
4823
4823
|
if (!t) return !1;
|
|
4824
4824
|
const n = Wo(r).getCurrentLastSelection();
|
|
4825
4825
|
if (!n) return !1;
|
|
4826
|
-
const i = r.get(
|
|
4826
|
+
const i = r.get(Wd), { worksheet: o, unitId: s, subUnitId: l } = t, a = `${s}|${l}`;
|
|
4827
4827
|
a !== i.selectedRangeWorksheet && (i.rangesStack = [], i.selectedRangeWorksheet = a);
|
|
4828
4828
|
const c = o.getMaxRows(), d = o.getMaxColumns(), { expandToGapFirst: u, loop: h } = e, { range: g, primary: m } = n, f = g.endColumn === d - 1 && g.endRow === c - 1 && g.startRow === 0 && g.startColumn === 0;
|
|
4829
4829
|
i.rangesStack.some((S) => he.equals(S, g)) || (i.rangesStack = [], i.rangesStack.push(g));
|
|
@@ -4835,7 +4835,7 @@ const Bt = {
|
|
|
4835
4835
|
p = i.rangesStack[0];
|
|
4836
4836
|
} else
|
|
4837
4837
|
return !1;
|
|
4838
|
-
else u ? (p = GS(g, { left: !0, right: !0, up: !0, down: !0 }, o), he.equals(p, g) && (p =
|
|
4838
|
+
else u ? (p = GS(g, { left: !0, right: !0, up: !0, down: !0 }, o), he.equals(p, g) && (p = Xu(o))) : p = Xu(o);
|
|
4839
4839
|
return i.rangesStack.some((S) => he.equals(S, p)) || i.rangesStack.push(p), r.get(D).executeCommand(Pe.id, {
|
|
4840
4840
|
unitId: s,
|
|
4841
4841
|
subUnitId: l,
|
|
@@ -5245,7 +5245,7 @@ let fo = class extends de {
|
|
|
5245
5245
|
e.unitId === this._context.unitId && e.reveal && this._scrollToSelection();
|
|
5246
5246
|
}
|
|
5247
5247
|
break;
|
|
5248
|
-
case
|
|
5248
|
+
case vd.id:
|
|
5249
5249
|
{
|
|
5250
5250
|
const e = r.params;
|
|
5251
5251
|
if (e.unitId === this._context.unitId) {
|
|
@@ -5549,14 +5549,14 @@ var p1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
|
|
|
5549
5549
|
}));
|
|
5550
5550
|
});
|
|
5551
5551
|
Hc.displayName = "DropdownSingle";
|
|
5552
|
-
var S1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM10.3097 5.69014C10.544 5.92445 10.544 6.30435 10.3097 6.53867L8.84843 7.9999L10.3099 9.46137C10.5442 9.69569 10.5442 10.0756 10.3099 10.3099C10.0756 10.5442 9.69569 10.5442 9.46137 10.3099L7.9999 8.84843L6.53842 10.3099C6.30411 10.5442 5.92421 10.5442 5.6899 10.3099C5.45558 10.0756 5.45558 9.69569 5.6899 9.46137L7.15137 7.9999L5.69014 6.53867C5.45583 6.30435 5.45583 5.92445 5.69014 5.69014C5.92445 5.45583 6.30435 5.45583 6.53867 5.69014L7.9999 7.15137L9.46113 5.69014C9.69544 5.45583 10.0753 5.45583 10.3097 5.69014Z", fillRule: "evenodd", clipRule: "evenodd" } }] },
|
|
5552
|
+
var S1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM10.3097 5.69014C10.544 5.92445 10.544 6.30435 10.3097 6.53867L8.84843 7.9999L10.3099 9.46137C10.5442 9.69569 10.5442 10.0756 10.3099 10.3099C10.0756 10.5442 9.69569 10.5442 9.46137 10.3099L7.9999 8.84843L6.53842 10.3099C6.30411 10.5442 5.92421 10.5442 5.6899 10.3099C5.45558 10.0756 5.45558 9.69569 5.6899 9.46137L7.15137 7.9999L5.69014 6.53867C5.45583 6.30435 5.45583 5.92445 5.69014 5.69014C5.92445 5.45583 6.30435 5.45583 6.53867 5.69014L7.9999 7.15137L9.46113 5.69014C9.69544 5.45583 10.0753 5.45583 10.3097 5.69014Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Xd = ft(function(r, e) {
|
|
5553
5553
|
return ht(St, Object.assign({}, r, {
|
|
5554
5554
|
id: "error-single",
|
|
5555
5555
|
ref: e,
|
|
5556
5556
|
icon: S1
|
|
5557
5557
|
}));
|
|
5558
5558
|
});
|
|
5559
|
-
|
|
5559
|
+
Xd.displayName = "ErrorSingle";
|
|
5560
5560
|
var v1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.28096 4.6541C1.57489 4.50109 1.93721 4.61533 2.09022 4.90926C2.27315 5.26067 2.55999 5.60455 2.94829 5.92278C4.04628 6.82266 5.87505 7.44865 7.99828 7.44865C10.1215 7.44865 11.9503 6.82267 13.0482 5.92279C13.4366 5.60455 13.7234 5.26067 13.9063 4.90927C14.0594 4.61533 14.4217 4.50109 14.7156 4.65409C15.0095 4.8071 15.1238 5.16941 14.9708 5.46334C14.6995 5.98445 14.2981 6.44997 13.8089 6.8509C13.7298 6.91575 13.6481 6.97914 13.564 7.041L15.2245 8.70153C15.4588 8.93585 15.4588 9.31575 15.2245 9.55006C14.9902 9.78438 14.6103 9.78438 14.376 9.55006L12.5041 7.67822C11.8977 7.97568 11.2181 8.21208 10.4884 8.37706L11.0996 10.6581C11.1853 10.9782 10.9954 11.3072 10.6753 11.393C10.3552 11.4787 10.0262 11.2888 9.94045 10.9687L9.29949 8.57652C8.8758 8.62404 8.44081 8.64865 7.99828 8.64865C7.55276 8.64865 7.11487 8.62371 6.68846 8.57555L6.04723 10.9687C5.96147 11.2888 5.63247 11.4788 5.31239 11.393C4.99231 11.3073 4.80236 10.9783 4.88812 10.6582L5.49983 8.37516C4.7743 8.2105 4.09843 7.9752 3.49498 7.67947L1.62436 9.55009C1.39005 9.78441 1.01015 9.78441 0.775835 9.5501C0.54152 9.31578 0.541518 8.93588 0.775832 8.70157L2.43478 7.04261C2.34987 6.98024 2.26746 6.91632 2.18764 6.8509C1.69842 6.44997 1.29706 5.98445 1.0258 5.46335C0.872791 5.16942 0.987031 4.80711 1.28096 4.6541Z" } }] }, Cm = ft(function(r, e) {
|
|
5561
5561
|
return ht(St, Object.assign({}, r, {
|
|
5562
5562
|
id: "eyelash-single",
|
|
@@ -5581,22 +5581,22 @@ var b1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
|
|
|
5581
5581
|
}));
|
|
5582
5582
|
});
|
|
5583
5583
|
_m.displayName = "HideGridlines";
|
|
5584
|
-
var _1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] },
|
|
5584
|
+
var _1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] }, zd = ft(function(r, e) {
|
|
5585
5585
|
return ht(St, Object.assign({}, r, {
|
|
5586
5586
|
id: "increase-single",
|
|
5587
5587
|
ref: e,
|
|
5588
5588
|
icon: _1
|
|
5589
5589
|
}));
|
|
5590
5590
|
});
|
|
5591
|
-
|
|
5592
|
-
var w1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.62402 7.72905C2.58427 7.72905 2.55205 7.76127 2.55205 7.80102V13.6782C2.55205 13.7179 2.58427 13.7502 2.62402 13.7502H13.3755C13.4152 13.7502 13.4474 13.7179 13.4474 13.6782V7.80102C13.4474 7.76127 13.4152 7.72905 13.3755 7.72905H2.62402ZM1.35205 7.80102C1.35205 7.09853 1.92153 6.52905 2.62402 6.52905H13.3755C14.0779 6.52905 14.6474 7.09853 14.6474 7.80102V13.6782C14.6474 14.3807 14.0779 14.9502 13.3755 14.9502H2.62402C1.92153 14.9502 1.35205 14.3807 1.35205 13.6782V7.80102Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M8 2.25005C6.69847 2.25003 5.64336 3.30513 5.64336 4.60666V7.12895C5.64336 7.46032 5.37473 7.72895 5.04336 7.72895 4.71199 7.72895 4.44336 7.46032 4.44336 7.12895V4.60666C4.44336 2.64239 6.04451 1.05565 8.00879 1.05566M8 2.25005L8.00879 1.05566 8 2.25005zM8.00879 1.05566L8 2.25005C9.30154 2.25003 10.3567 3.30513 10.3567 4.60666V7.12895C10.3567 7.46032 10.6253 7.72895 10.9567 7.72895 11.288 7.72895 11.5567 7.46032 11.5567 7.12895V4.60666C11.5567 2.64239 9.97306 1.05565 8.00879 1.05566zM8.00039 9.4668C8.33176 9.4668 8.60039 9.73543 8.60039 10.0668V12.0827C8.60039 12.4141 8.33176 12.6827 8.00039 12.6827 7.66902 12.6827 7.40039 12.4141 7.40039 12.0827V10.0668C7.40039 9.73543 7.66902 9.4668 8.00039 9.4668z", fillRule: "evenodd", clipRule: "evenodd" } }] },
|
|
5591
|
+
zd.displayName = "IncreaseSingle";
|
|
5592
|
+
var w1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.62402 7.72905C2.58427 7.72905 2.55205 7.76127 2.55205 7.80102V13.6782C2.55205 13.7179 2.58427 13.7502 2.62402 13.7502H13.3755C13.4152 13.7502 13.4474 13.7179 13.4474 13.6782V7.80102C13.4474 7.76127 13.4152 7.72905 13.3755 7.72905H2.62402ZM1.35205 7.80102C1.35205 7.09853 1.92153 6.52905 2.62402 6.52905H13.3755C14.0779 6.52905 14.6474 7.09853 14.6474 7.80102V13.6782C14.6474 14.3807 14.0779 14.9502 13.3755 14.9502H2.62402C1.92153 14.9502 1.35205 14.3807 1.35205 13.6782V7.80102Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M8 2.25005C6.69847 2.25003 5.64336 3.30513 5.64336 4.60666V7.12895C5.64336 7.46032 5.37473 7.72895 5.04336 7.72895 4.71199 7.72895 4.44336 7.46032 4.44336 7.12895V4.60666C4.44336 2.64239 6.04451 1.05565 8.00879 1.05566M8 2.25005L8.00879 1.05566 8 2.25005zM8.00879 1.05566L8 2.25005C9.30154 2.25003 10.3567 3.30513 10.3567 4.60666V7.12895C10.3567 7.46032 10.6253 7.72895 10.9567 7.72895 11.288 7.72895 11.5567 7.46032 11.5567 7.12895V4.60666C11.5567 2.64239 9.97306 1.05565 8.00879 1.05566zM8.00039 9.4668C8.33176 9.4668 8.60039 9.73543 8.60039 10.0668V12.0827C8.60039 12.4141 8.33176 12.6827 8.00039 12.6827 7.66902 12.6827 7.40039 12.4141 7.40039 12.0827V10.0668C7.40039 9.73543 7.66902 9.4668 8.00039 9.4668z", fillRule: "evenodd", clipRule: "evenodd" } }] }, jd = ft(function(r, e) {
|
|
5593
5593
|
return ht(St, Object.assign({}, r, {
|
|
5594
5594
|
id: "lock-single",
|
|
5595
5595
|
ref: e,
|
|
5596
5596
|
icon: w1
|
|
5597
5597
|
}));
|
|
5598
5598
|
});
|
|
5599
|
-
|
|
5599
|
+
jd.displayName = "LockSingle";
|
|
5600
5600
|
var R1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, vi = ft(function(r, e) {
|
|
5601
5601
|
return ht(St, Object.assign({}, r, {
|
|
5602
5602
|
id: "more-down-single",
|
|
@@ -5645,14 +5645,14 @@ var E1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
|
|
|
5645
5645
|
}));
|
|
5646
5646
|
});
|
|
5647
5647
|
Vc.displayName = "WarningSingle";
|
|
5648
|
-
var T1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.6551 1.98906C11.7476 1.08113 10.2757 1.08149 9.3686 1.98987L4.82542 6.53955C4.75087 6.61421 4.69336 6.70411 4.65682 6.80309L3.2461 10.625C3.16506 10.8446 3.21909 11.0912 3.3845 11.2568C3.54991 11.4224 3.79651 11.4767 4.01616 11.3959L7.85031 9.98517C7.94979 9.94856 8.04014 9.89077 8.11508 9.81579L12.6552 5.27327C13.5618 4.36621 13.5618 2.89607 12.6551 1.98906ZM10.2177 2.83779C10.6562 2.39869 11.3677 2.39851 11.8064 2.8374C12.2447 3.27584 12.2447 3.9865 11.8065 4.42497L7.3392 8.89457L4.82213 9.82068L5.74706 7.31487L10.2177 2.83779Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z" } }] },
|
|
5648
|
+
var T1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.6551 1.98906C11.7476 1.08113 10.2757 1.08149 9.3686 1.98987L4.82542 6.53955C4.75087 6.61421 4.69336 6.70411 4.65682 6.80309L3.2461 10.625C3.16506 10.8446 3.21909 11.0912 3.3845 11.2568C3.54991 11.4224 3.79651 11.4767 4.01616 11.3959L7.85031 9.98517C7.94979 9.94856 8.04014 9.89077 8.11508 9.81579L12.6552 5.27327C13.5618 4.36621 13.5618 2.89607 12.6551 1.98906ZM10.2177 2.83779C10.6562 2.39869 11.3677 2.39851 11.8064 2.8374C12.2447 3.27584 12.2447 3.9865 11.8065 4.42497L7.3392 8.89457L4.82213 9.82068L5.74706 7.31487L10.2177 2.83779Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z" } }] }, Yd = ft(function(r, e) {
|
|
5649
5649
|
return ht(St, Object.assign({}, r, {
|
|
5650
5650
|
id: "write-single",
|
|
5651
5651
|
ref: e,
|
|
5652
5652
|
icon: T1
|
|
5653
5653
|
}));
|
|
5654
5654
|
});
|
|
5655
|
-
|
|
5655
|
+
Yd.displayName = "WriteSingle";
|
|
5656
5656
|
const O1 = () => {
|
|
5657
5657
|
const [, r] = ne({});
|
|
5658
5658
|
return Vn(() => r((e) => !e), []);
|
|
@@ -5822,23 +5822,23 @@ function ym(r, e) {
|
|
|
5822
5822
|
}
|
|
5823
5823
|
}), [n, t, e]);
|
|
5824
5824
|
}
|
|
5825
|
-
const D1 = "univer-editor-container", L1 = "univer-editor-input",
|
|
5825
|
+
const D1 = "univer-editor-container", L1 = "univer-editor-input", zu = {
|
|
5826
5826
|
editorContainer: D1,
|
|
5827
5827
|
editorInput: L1
|
|
5828
|
-
}, js = -1e3,
|
|
5828
|
+
}, js = -1e3, ju = {
|
|
5829
5829
|
width: 0,
|
|
5830
5830
|
height: 0,
|
|
5831
5831
|
top: js,
|
|
5832
5832
|
left: js
|
|
5833
5833
|
}, W1 = () => {
|
|
5834
5834
|
const [r, e] = ne({
|
|
5835
|
-
...
|
|
5835
|
+
...ju
|
|
5836
5836
|
}), t = L(ql), n = L(kr), i = L(He), o = L(Xn), s = L(it), l = gt(s.visible$), a = L(D), c = An(0), d = gt(
|
|
5837
|
-
() => i.subscribeContextValue$(
|
|
5837
|
+
() => i.subscribeContextValue$(bu),
|
|
5838
5838
|
!1,
|
|
5839
5839
|
void 0,
|
|
5840
|
-
[i,
|
|
5841
|
-
), u = o.get(
|
|
5840
|
+
[i, bu]
|
|
5841
|
+
), u = o.get(Hd), h = s.getEditLocation();
|
|
5842
5842
|
Ee(() => {
|
|
5843
5843
|
const p = t.state$.subscribe((S) => {
|
|
5844
5844
|
if (S == null)
|
|
@@ -5852,7 +5852,7 @@ const D1 = "univer-editor-container", L1 = "univer-editor-input", Xu = {
|
|
|
5852
5852
|
} = S;
|
|
5853
5853
|
if (!I)
|
|
5854
5854
|
e({
|
|
5855
|
-
...
|
|
5855
|
+
...ju
|
|
5856
5856
|
});
|
|
5857
5857
|
else {
|
|
5858
5858
|
e({
|
|
@@ -5874,7 +5874,7 @@ const D1 = "univer-editor-container", L1 = "univer-editor-input", Xu = {
|
|
|
5874
5874
|
}, []), Ee(() => {
|
|
5875
5875
|
d || t.setFocus(!0);
|
|
5876
5876
|
}, [d, r]);
|
|
5877
|
-
const g =
|
|
5877
|
+
const g = _u(() => {
|
|
5878
5878
|
s.isVisible().visible && a.executeCommand(at.id, {
|
|
5879
5879
|
visible: !1,
|
|
5880
5880
|
eventType: Ye.PointerUp,
|
|
@@ -5882,7 +5882,7 @@ const D1 = "univer-editor-container", L1 = "univer-editor-input", Xu = {
|
|
|
5882
5882
|
});
|
|
5883
5883
|
});
|
|
5884
5884
|
Qh(g);
|
|
5885
|
-
const m = ym(c, h == null ? void 0 : h.unitId), f =
|
|
5885
|
+
const m = ym(c, h == null ? void 0 : h.unitId), f = _u((p, S) => {
|
|
5886
5886
|
a.executeCommand(pi.id, {
|
|
5887
5887
|
keycode: p,
|
|
5888
5888
|
visible: !1,
|
|
@@ -5894,7 +5894,7 @@ const D1 = "univer-editor-container", L1 = "univer-editor-input", Xu = {
|
|
|
5894
5894
|
return /* @__PURE__ */ b(
|
|
5895
5895
|
"div",
|
|
5896
5896
|
{
|
|
5897
|
-
className:
|
|
5897
|
+
className: zu.editorContainer,
|
|
5898
5898
|
style: {
|
|
5899
5899
|
left: r.left,
|
|
5900
5900
|
top: r.top,
|
|
@@ -5905,7 +5905,7 @@ const D1 = "univer-editor-container", L1 = "univer-editor-input", Xu = {
|
|
|
5905
5905
|
u,
|
|
5906
5906
|
{
|
|
5907
5907
|
editorId: De,
|
|
5908
|
-
className:
|
|
5908
|
+
className: zu.editorInput,
|
|
5909
5909
|
initValue: "",
|
|
5910
5910
|
onChange: () => {
|
|
5911
5911
|
},
|
|
@@ -5965,7 +5965,7 @@ class B1 {
|
|
|
5965
5965
|
}
|
|
5966
5966
|
const Kl = vn(
|
|
5967
5967
|
"univer.sheet-formula-editor-manager.service"
|
|
5968
|
-
), po = "DefinedNameContainer",
|
|
5968
|
+
), po = "DefinedNameContainer", Zd = {
|
|
5969
5969
|
id: "sidebar.operation.defined-name",
|
|
5970
5970
|
type: Q.COMMAND,
|
|
5971
5971
|
handler: async (r, e) => {
|
|
@@ -6016,12 +6016,12 @@ function F1(r) {
|
|
|
6016
6016
|
};
|
|
6017
6017
|
}, []);
|
|
6018
6018
|
const u = () => {
|
|
6019
|
-
e.executeCommand(
|
|
6019
|
+
e.executeCommand(Zd.id, { value: "open" });
|
|
6020
6020
|
}, h = async (g) => {
|
|
6021
6021
|
const { formulaOrRefString: m, id: f } = g, p = n.getWorksheetByRef(l, m);
|
|
6022
6022
|
if (!p)
|
|
6023
6023
|
return;
|
|
6024
|
-
p.isSheetHidden() && await e.executeCommand(
|
|
6024
|
+
p.isSheetHidden() && await e.executeCommand(Cd.id, { unitId: l, subUnitId: p.getSheetId() }), n.focusRange(l, f);
|
|
6025
6025
|
};
|
|
6026
6026
|
return /* @__PURE__ */ q("div", { className: "univer-w-[300px]", children: [
|
|
6027
6027
|
/* @__PURE__ */ b(
|
|
@@ -6198,7 +6198,7 @@ function Cb(r) {
|
|
|
6198
6198
|
), s = L(Kl), l = L(it), a = L(pt), c = L(et), d = L(V), u = L($), h = L(ot), g = L(Bo), m = L(D), [f, p] = ne({
|
|
6199
6199
|
editDisable: !1,
|
|
6200
6200
|
viewDisable: !1
|
|
6201
|
-
}), [S, v] = ne(!1), C = ur(), w = L(Xn), R = gt(() => d.getCurrentTypeOfUnit$(x.UNIVER_SHEET), void 0, void 0, []), I = An(0), y = gt(l.currentEditCellState$), M = ym(I, (ee = y == null ? void 0 : y.unitId) != null ? ee : ""), P = w.get(
|
|
6201
|
+
}), [S, v] = ne(!1), C = ur(), w = L(Xn), R = gt(() => d.getCurrentTypeOfUnit$(x.UNIVER_SHEET), void 0, void 0, []), I = An(0), y = gt(l.currentEditCellState$), M = ym(I, (ee = y == null ? void 0 : y.unitId) != null ? ee : ""), P = w.get(Hd), E = Kh(sm.FORMULA_AUX), T = L(He);
|
|
6202
6202
|
gt(Dt(() => T.subscribeContextValue$(At), [T]));
|
|
6203
6203
|
const A = T.getContextValue(At), k = An(null), O = L(kr);
|
|
6204
6204
|
FS(() => {
|
|
@@ -6212,7 +6212,7 @@ function Cb(r) {
|
|
|
6212
6212
|
ct(() => {
|
|
6213
6213
|
var Kt, Gn;
|
|
6214
6214
|
const ze = R.getUnitId(), tt = se.getSheetId();
|
|
6215
|
-
if (!((Kt = u.getCurrentLastSelection()) == null ? void 0 : Kt.range)) return
|
|
6215
|
+
if (!((Kt = u.getCurrentLastSelection()) == null ? void 0 : Kt.range)) return yu;
|
|
6216
6216
|
const Ct = (Gn = u.getCurrentLastSelection()) == null ? void 0 : Gn.primary;
|
|
6217
6217
|
return Ct ? Re({
|
|
6218
6218
|
unitId: ze,
|
|
@@ -6220,7 +6220,7 @@ function Cb(r) {
|
|
|
6220
6220
|
primary: Ct
|
|
6221
6221
|
}) : Re(null);
|
|
6222
6222
|
})
|
|
6223
|
-
) :
|
|
6223
|
+
) : yu)
|
|
6224
6224
|
).subscribe((se) => {
|
|
6225
6225
|
var ze, tt, wt, Ct, Kt, Gn;
|
|
6226
6226
|
if (se) {
|
|
@@ -6469,11 +6469,11 @@ function ws(r) {
|
|
|
6469
6469
|
function yb() {
|
|
6470
6470
|
const [r, e] = ne([]), [t, n] = ne(!1), i = L(V), o = L(D), s = L(Br), l = L(pt), a = gt(() => i.getCurrentTypeOfUnit$(x.UNIVER_SHEET), null, !1, []), c = (f) => {
|
|
6471
6471
|
const { sheetId: p } = f;
|
|
6472
|
-
!p || !a || (f.hidden ? o.executeCommand(
|
|
6472
|
+
!p || !a || (f.hidden ? o.executeCommand(Cd.id, {
|
|
6473
6473
|
unitId: a.getUnitId(),
|
|
6474
6474
|
subUnitId: p,
|
|
6475
6475
|
value: p
|
|
6476
|
-
}) : f.selected || o.executeCommand(
|
|
6476
|
+
}) : f.selected || o.executeCommand(wd.id, {
|
|
6477
6477
|
unitId: a.getUnitId(),
|
|
6478
6478
|
subUnitId: p
|
|
6479
6479
|
}), n(!1));
|
|
@@ -6491,9 +6491,9 @@ function yb() {
|
|
|
6491
6491
|
switch (f.id) {
|
|
6492
6492
|
case lr.id:
|
|
6493
6493
|
case Dn.id:
|
|
6494
|
-
case
|
|
6494
|
+
case _d.id:
|
|
6495
6495
|
case Nr.id:
|
|
6496
|
-
case
|
|
6496
|
+
case bd.id:
|
|
6497
6497
|
case rt.id:
|
|
6498
6498
|
d();
|
|
6499
6499
|
break;
|
|
@@ -7151,7 +7151,7 @@ function Lb() {
|
|
|
7151
7151
|
const ee = R.getSheets(), ae = R.getActiveSheet(), Se = ee.filter((ce) => !ce.isSheetHidden()).map((ce, se) => {
|
|
7152
7152
|
var Kt;
|
|
7153
7153
|
const ze = v.getRule(R.getUnitId(), ce.getSheetId()), tt = C.getSubunitRuleList(R.getUnitId(), ce.getSheetId()).length > 0, Ct = (ze == null ? void 0 : ze.permissionId) || tt ? /* @__PURE__ */ q(Mr, { children: [
|
|
7154
|
-
/* @__PURE__ */ b(
|
|
7154
|
+
/* @__PURE__ */ b(jd, {}),
|
|
7155
7155
|
/* @__PURE__ */ b("span", { children: ce.getName() })
|
|
7156
7156
|
] }) : /* @__PURE__ */ b("span", { children: ce.getName() });
|
|
7157
7157
|
return {
|
|
@@ -7305,9 +7305,9 @@ function Lb() {
|
|
|
7305
7305
|
case KS.id:
|
|
7306
7306
|
case lr.id:
|
|
7307
7307
|
case Dn.id:
|
|
7308
|
-
case
|
|
7308
|
+
case _d.id:
|
|
7309
7309
|
case Nr.id:
|
|
7310
|
-
case
|
|
7310
|
+
case bd.id:
|
|
7311
7311
|
case rt.id:
|
|
7312
7312
|
y();
|
|
7313
7313
|
break;
|
|
@@ -7407,7 +7407,7 @@ const Wb = 100, Bb = () => {
|
|
|
7407
7407
|
};
|
|
7408
7408
|
return /* @__PURE__ */ q("div", { className: qe(ss.sheetBar, "univer-relative univer-flex univer-h-full univer-flex-1"), children: [
|
|
7409
7409
|
/* @__PURE__ */ q("div", { className: ss.sheetBarOptions, children: [
|
|
7410
|
-
/* @__PURE__ */ b(ws, { onClick: h, disabled: !(d != null && d.value && (c != null && c.value)), children: /* @__PURE__ */ b(
|
|
7410
|
+
/* @__PURE__ */ b(ws, { onClick: h, disabled: !(d != null && d.value && (c != null && c.value)), children: /* @__PURE__ */ b(zd, {}) }),
|
|
7411
7411
|
/* @__PURE__ */ b(yb, {})
|
|
7412
7412
|
] }),
|
|
7413
7413
|
/* @__PURE__ */ b(Lb, {}),
|
|
@@ -7533,9 +7533,9 @@ function Gb(r) {
|
|
|
7533
7533
|
const { pattern: e, value: t } = r;
|
|
7534
7534
|
return typeof t != "number" ? 0 : t >= 1e8 ? t.toExponential(2) : e && Yb.includes(r.name) ? Nn.format(e, t, { throws: !1 }) : t.toLocaleString();
|
|
7535
7535
|
}
|
|
7536
|
-
const
|
|
7536
|
+
const Yu = 800, qb = 3, Qb = () => {
|
|
7537
7537
|
var h, g;
|
|
7538
|
-
const e = (g = (h = L(Fn).getConfig(Ln)) == null ? void 0 : h.statusBarStatistic) != null ? g : !0, [t, n] = ne(window.innerWidth <
|
|
7538
|
+
const e = (g = (h = L(Fn).getConfig(Ln)) == null ? void 0 : h.statusBarStatistic) != null ? g : !0, [t, n] = ne(window.innerWidth < Yu), i = L(Jl), o = i.getFunctions().map((m, f) => ({
|
|
7539
7539
|
name: m.func,
|
|
7540
7540
|
value: 0,
|
|
7541
7541
|
show: !0,
|
|
@@ -7575,7 +7575,7 @@ const ju = 800, qb = 3, Qb = () => {
|
|
|
7575
7575
|
t,
|
|
7576
7576
|
e
|
|
7577
7577
|
), c = uc(() => {
|
|
7578
|
-
const m = window.innerWidth <
|
|
7578
|
+
const m = window.innerWidth < Yu;
|
|
7579
7579
|
t !== m && n(m);
|
|
7580
7580
|
}, 100);
|
|
7581
7581
|
Ee(() => (window.addEventListener("resize", c), () => {
|
|
@@ -7630,7 +7630,7 @@ const ju = 800, qb = 3, Qb = () => {
|
|
|
7630
7630
|
);
|
|
7631
7631
|
}, Em = 36;
|
|
7632
7632
|
function Kb() {
|
|
7633
|
-
const r = L(
|
|
7633
|
+
const r = L(pd);
|
|
7634
7634
|
if (!ur()) return null;
|
|
7635
7635
|
const t = r.getMenuByPositionKey(Rt.FOOTER_MENU);
|
|
7636
7636
|
return /* @__PURE__ */ q(
|
|
@@ -7684,7 +7684,7 @@ var e_ = Object.getOwnPropertyDescriptor, t_ = (r, e, t, n) => {
|
|
|
7684
7684
|
(s = r[o]) && (i = s(i) || i);
|
|
7685
7685
|
return i;
|
|
7686
7686
|
}, jr = (r, e) => (t, n) => e(t, n, r);
|
|
7687
|
-
const
|
|
7687
|
+
const Zu = 5, Gu = 2;
|
|
7688
7688
|
let Ys = class extends de {
|
|
7689
7689
|
constructor(r, e, t, n, i, o, s) {
|
|
7690
7690
|
super(), this._context = r, this._layoutService = e, this._cellEditorManagerService = t, this._editorBridgeService = n, this._renderManagerService = i, this._sheetSkeletonManagerService = o, this._univerInstanceService = s;
|
|
@@ -7736,7 +7736,7 @@ let Ys = class extends de {
|
|
|
7736
7736
|
* to determine whether it needs to be automatically widened.
|
|
7737
7737
|
*/
|
|
7738
7738
|
_predictingSize(r, e, t, n, i = 1, o = 1) {
|
|
7739
|
-
const { startX: s, endX: l } = r, { textRotation: a, wrapStrategy: c, paddingData: d } = n, u = this._univerInstanceService.getUnit(De, x.UNIVER_DOC), { vertexAngle: h } =
|
|
7739
|
+
const { startX: s, endX: l } = r, { textRotation: a, wrapStrategy: c, paddingData: d } = n, u = this._univerInstanceService.getUnit(De, x.UNIVER_DOC), { vertexAngle: h } = hd(a);
|
|
7740
7740
|
if (c === wr.WRAP && h === 0) {
|
|
7741
7741
|
u == null || u.updateDocumentDataPageSize(l - s), u == null || u.updateDocumentDataMargin({ l: d.l, t: d.t }), t.calculate();
|
|
7742
7742
|
const { actualWidth: p, actualHeight: S } = t.getActualSize();
|
|
@@ -7750,7 +7750,7 @@ let Ys = class extends de {
|
|
|
7750
7750
|
u == null || u.updateDocumentDataPageSize(g.width / i), t.calculate();
|
|
7751
7751
|
const m = t.getActualSize();
|
|
7752
7752
|
let f = l - s;
|
|
7753
|
-
return f < m.actualWidth * i +
|
|
7753
|
+
return f < m.actualWidth * i + Zu * i && (f = m.actualWidth * i + Zu * i), u == null || u.updateDocumentDataPageSize(f / i), u == null || u.updateDocumentRenderConfig({
|
|
7754
7754
|
horizontalAlign: yt.UNSPECIFIED,
|
|
7755
7755
|
cellValueType: void 0
|
|
7756
7756
|
}), {
|
|
@@ -7764,7 +7764,7 @@ let Ys = class extends de {
|
|
|
7764
7764
|
function i(S) {
|
|
7765
7765
|
return Number.parseInt(S.replace("px", ""));
|
|
7766
7766
|
}
|
|
7767
|
-
const s = this._context.engine.getCanvasElement(), l = s.getBoundingClientRect(), a = i(s.style.width), { width: c } = l, d = c / a, { startX: u, startY: h, endX: g } = r, m = this._context.engine.width, f = document.body.clientHeight - h - Em - e.top -
|
|
7767
|
+
const s = this._context.engine.getCanvasElement(), l = s.getBoundingClientRect(), a = i(s.style.width), { width: c } = l, d = c / a, { startX: u, startY: h, endX: g } = r, m = this._context.engine.width, f = document.body.clientHeight - h - Em - e.top - Gu * 2;
|
|
7768
7768
|
let p = c - u;
|
|
7769
7769
|
if (t === yt.CENTER) {
|
|
7770
7770
|
const S = m - g, v = u;
|
|
@@ -7772,7 +7772,7 @@ let Ys = class extends de {
|
|
|
7772
7772
|
} else t === yt.RIGHT && (p = g);
|
|
7773
7773
|
return {
|
|
7774
7774
|
height: f,
|
|
7775
|
-
width: p -
|
|
7775
|
+
width: p - Gu,
|
|
7776
7776
|
scaleAdjust: d
|
|
7777
7777
|
};
|
|
7778
7778
|
}
|
|
@@ -7791,7 +7791,7 @@ let Ys = class extends de {
|
|
|
7791
7791
|
let { startX: h, startY: g } = t;
|
|
7792
7792
|
const { document: m, scene: f, engine: p } = c, S = f.getViewport(Ms.VIEW_MAIN), v = this._getEditorMaxSize(t, n, l), { height: C, width: w, scaleAdjust: R } = v;
|
|
7793
7793
|
let I = e, y = S == null ? void 0 : S.getScrollBar();
|
|
7794
|
-
I > C ? (y == null ? S && new
|
|
7794
|
+
I > C ? (y == null ? S && new md(S, { enableHorizontal: !1, barSize: 8 }) : S == null || S.resetCanvasSizeAndUpdateScroll(), S == null || S.scrollToViewportPos({
|
|
7795
7795
|
viewportScrollY: I - C
|
|
7796
7796
|
}), I = C) : (y = null, (k = S == null ? void 0 : S.getScrollBar()) == null || k.dispose()), r += (y == null ? void 0 : y.barSize) || 0, r > w && (r = w), this._addBackground(f, r / o, e / s, i);
|
|
7797
7797
|
const { scaleX: M, scaleY: P } = f.getPrecisionScale();
|
|
@@ -7802,8 +7802,8 @@ let Ys = class extends de {
|
|
|
7802
7802
|
scaleY: s * R
|
|
7803
7803
|
}), m.resize(r * R / o, e * R / s), setTimeout(() => {
|
|
7804
7804
|
p.resizeBySize(
|
|
7805
|
-
|
|
7806
|
-
|
|
7805
|
+
Su(r, M),
|
|
7806
|
+
Su(I, P)
|
|
7807
7807
|
), a == null || a();
|
|
7808
7808
|
}, 0);
|
|
7809
7809
|
const E = this._layoutService.getContentElement().getBoundingClientRect(), T = u.getBoundingClientRect();
|
|
@@ -7858,7 +7858,7 @@ let Ys = class extends de {
|
|
|
7858
7858
|
}
|
|
7859
7859
|
}
|
|
7860
7860
|
_getEditorObject() {
|
|
7861
|
-
return
|
|
7861
|
+
return kd(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
|
|
7862
7862
|
}
|
|
7863
7863
|
_getEditorSkeleton() {
|
|
7864
7864
|
var r;
|
|
@@ -7873,7 +7873,7 @@ Ys = t_([
|
|
|
7873
7873
|
jr(5, N(ge)),
|
|
7874
7874
|
jr(6, V)
|
|
7875
7875
|
], Ys);
|
|
7876
|
-
function
|
|
7876
|
+
function Gd(r) {
|
|
7877
7877
|
return r.getContextValue(kt);
|
|
7878
7878
|
}
|
|
7879
7879
|
function Ne(r) {
|
|
@@ -8094,7 +8094,7 @@ const l_ = {
|
|
|
8094
8094
|
false: "FALSE"
|
|
8095
8095
|
};
|
|
8096
8096
|
function a_(r) {
|
|
8097
|
-
return [
|
|
8097
|
+
return [du.ZH_CN, du.ZH_TW].includes(r);
|
|
8098
8098
|
}
|
|
8099
8099
|
function c_(r, e, t, n) {
|
|
8100
8100
|
let i = r;
|
|
@@ -8176,7 +8176,7 @@ var v_ = Object.getOwnPropertyDescriptor, C_ = (r, e, t, n) => {
|
|
|
8176
8176
|
(s = r[o]) && (i = s(i) || i);
|
|
8177
8177
|
return i;
|
|
8178
8178
|
}, Mt = (r, e) => (t, n) => e(t, n, r);
|
|
8179
|
-
const
|
|
8179
|
+
const qu = -1e3;
|
|
8180
8180
|
let Lc = class extends de {
|
|
8181
8181
|
constructor(e, t, n, i, o, s, l, a, c, d, u, h, g, m, f, p) {
|
|
8182
8182
|
super();
|
|
@@ -8291,8 +8291,8 @@ let Lc = class extends de {
|
|
|
8291
8291
|
return;
|
|
8292
8292
|
const a = this._getDocumentDataModel();
|
|
8293
8293
|
if (a == null) return;
|
|
8294
|
-
const { startX: c, endX: d } = i, { textRotation: u, wrapStrategy: h, documentModel: g } = o, { vertexAngle: m } =
|
|
8295
|
-
h === wr.WRAP && m === 0 && a.updateDocumentDataPageSize((d - c) / s), this._commandService.syncExecuteCommand(
|
|
8294
|
+
const { startX: c, endX: d } = i, { textRotation: u, wrapStrategy: h, documentModel: g } = o, { vertexAngle: m } = hd(u);
|
|
8295
|
+
h === wr.WRAP && m === 0 && a.updateDocumentDataPageSize((d - c) / s), this._commandService.syncExecuteCommand(Nh.id, {
|
|
8296
8296
|
unitId: l,
|
|
8297
8297
|
snapshot: g.getSnapshot()
|
|
8298
8298
|
}), this._contextService.setContextValue(hc, !0), this._textSelectionManagerService.replaceDocRanges(
|
|
@@ -8307,8 +8307,8 @@ let Lc = class extends de {
|
|
|
8307
8307
|
);
|
|
8308
8308
|
const f = (S = this._renderManagerService.getRenderById(De)) == null ? void 0 : S.with(_r), p = (v = this._renderManagerService.getRenderById(Le)) == null ? void 0 : v.with(_r);
|
|
8309
8309
|
(f != null && f.canFocusing || p != null && p.canFocusing) && (this._univerInstanceService.setCurrentUnitForType(De), f == null || f.activate(
|
|
8310
|
-
|
|
8311
|
-
|
|
8310
|
+
qu,
|
|
8311
|
+
qu,
|
|
8312
8312
|
!0
|
|
8313
8313
|
));
|
|
8314
8314
|
}));
|
|
@@ -8421,7 +8421,7 @@ let Lc = class extends de {
|
|
|
8421
8421
|
return;
|
|
8422
8422
|
this._editorBridgeService.getEditorDirty() === !1 && (o = Z.ESC);
|
|
8423
8423
|
const a = this._context.unit.getActiveSheet(), c = this._context.unitId, d = a.getSheetId(), { unitId: u, sheetId: h } = t;
|
|
8424
|
-
if (c === u && h !== d && await this._commandService.executeCommand(
|
|
8424
|
+
if (c === u && h !== d && await this._commandService.executeCommand(wd.id, {
|
|
8425
8425
|
subUnitId: h,
|
|
8426
8426
|
unitId: u
|
|
8427
8427
|
}), o === Z.ESC) {
|
|
@@ -8434,10 +8434,10 @@ let Lc = class extends de {
|
|
|
8434
8434
|
}));
|
|
8435
8435
|
return;
|
|
8436
8436
|
}
|
|
8437
|
-
i && await this._submitCellData(i)
|
|
8437
|
+
i && await this._submitCellData(i) === !1 || this._moveSelection(o);
|
|
8438
8438
|
}
|
|
8439
8439
|
_getEditorObject() {
|
|
8440
|
-
return
|
|
8440
|
+
return kd(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
|
|
8441
8441
|
}
|
|
8442
8442
|
submitCellData(e) {
|
|
8443
8443
|
return this._submitCellData(e.getSnapshot());
|
|
@@ -8445,11 +8445,11 @@ let Lc = class extends de {
|
|
|
8445
8445
|
async _submitCellData(e) {
|
|
8446
8446
|
const t = this._editorBridgeService.getEditCellState();
|
|
8447
8447
|
if (t == null)
|
|
8448
|
-
return;
|
|
8448
|
+
return !0;
|
|
8449
8449
|
const { unitId: n, sheetId: i, row: o, column: s } = t, l = this._context.unit;
|
|
8450
8450
|
let a = l.getActiveSheet();
|
|
8451
8451
|
if (!l.getSheetBySheetId(i))
|
|
8452
|
-
return;
|
|
8452
|
+
return !0;
|
|
8453
8453
|
a = l.getActiveSheet();
|
|
8454
8454
|
const d = b_(
|
|
8455
8455
|
{ ...a.getCellRaw(o, s) || {} },
|
|
@@ -8459,10 +8459,10 @@ let Lc = class extends de {
|
|
|
8459
8459
|
this._functionService,
|
|
8460
8460
|
l.getStyles()
|
|
8461
8461
|
);
|
|
8462
|
-
if (!d)
|
|
8463
|
-
return;
|
|
8464
|
-
const
|
|
8465
|
-
|
|
8462
|
+
if (!d || this._sheetInterceptorService.onWriteCell(l, a, o, s, d) === a.getCellRaw(o, s))
|
|
8463
|
+
return !0;
|
|
8464
|
+
const h = ld(6);
|
|
8465
|
+
return this._commandService.syncExecuteCommand(Ho.id, {
|
|
8466
8466
|
subUnitId: i,
|
|
8467
8467
|
unitId: n,
|
|
8468
8468
|
range: {
|
|
@@ -8471,8 +8471,9 @@ let Lc = class extends de {
|
|
|
8471
8471
|
endRow: o,
|
|
8472
8472
|
endColumn: s
|
|
8473
8473
|
},
|
|
8474
|
-
value:
|
|
8475
|
-
|
|
8474
|
+
value: d,
|
|
8475
|
+
redoUndoId: h
|
|
8476
|
+
}) && await this._sheetInterceptorService.onValidateCell(l, a, o, s) === !1 ? (this._undoRedoService.rollback(h, n), !1) : !0;
|
|
8476
8477
|
}
|
|
8477
8478
|
_exitInput(e) {
|
|
8478
8479
|
var i;
|
|
@@ -8487,7 +8488,7 @@ let Lc = class extends de {
|
|
|
8487
8488
|
const n = this._editorBridgeService.getCurrentEditorId();
|
|
8488
8489
|
n == null || !this._editorService.isSheetEditor(n) || (this._undoRedoService.clearUndoRedo(n), this._undoRedoService.clearUndoRedo(Le));
|
|
8489
8490
|
}
|
|
8490
|
-
|
|
8491
|
+
_moveSelection(e) {
|
|
8491
8492
|
if (e == null || !i_.includes(e))
|
|
8492
8493
|
return;
|
|
8493
8494
|
let t = W.LEFT;
|
|
@@ -8575,7 +8576,7 @@ Lc = C_([
|
|
|
8575
8576
|
Mt(6, ql),
|
|
8576
8577
|
Mt(7, N(Yg)),
|
|
8577
8578
|
Mt(8, Zg),
|
|
8578
|
-
Mt(9, N(
|
|
8579
|
+
Mt(9, N(Od)),
|
|
8579
8580
|
Mt(10, D),
|
|
8580
8581
|
Mt(11, N(xe)),
|
|
8581
8582
|
Mt(12, kr),
|
|
@@ -8590,14 +8591,14 @@ function b_(r, e, t, n, i, o) {
|
|
|
8590
8591
|
const { body: s } = e;
|
|
8591
8592
|
r.t = void 0;
|
|
8592
8593
|
const l = s.dataStream;
|
|
8593
|
-
let c = l.substring(l.length - 2, l.length) ===
|
|
8594
|
+
let c = l.substring(l.length - 2, l.length) === Fh ? l.substring(0, l.length - 2) : l;
|
|
8594
8595
|
const d = n.getCurrentLocale();
|
|
8595
8596
|
if (c = c_(c, t, d, i), (u = e.drawingsOrder) != null && u.length)
|
|
8596
8597
|
r.v = "", r.f = null, r.si = null, r.p = e, r.t = jt.STRING;
|
|
8597
8598
|
else if (r.s && Zv((g = (h = o == null ? void 0 : o.get(r.s)) == null ? void 0 : h.n) == null ? void 0 : g.pattern)) {
|
|
8598
8599
|
r.v = c, r.f = null, r.si = null, r.p = null, r.t = jt.STRING, Wc(s) && s.dataStream !== `\r
|
|
8599
8600
|
` && (r.p = e);
|
|
8600
|
-
const m =
|
|
8601
|
+
const m = Qu(e);
|
|
8601
8602
|
m && (r.s = m);
|
|
8602
8603
|
} else if (od(c)) {
|
|
8603
8604
|
if (r.f === c)
|
|
@@ -8616,7 +8617,7 @@ function b_(r, e, t, n, i, o) {
|
|
|
8616
8617
|
if (c === "" && r.v == null && r.p == null)
|
|
8617
8618
|
return null;
|
|
8618
8619
|
r.v = c, r.f = null, r.si = null, r.p = null;
|
|
8619
|
-
const m =
|
|
8620
|
+
const m = Qu(e);
|
|
8620
8621
|
m && (r.s = m);
|
|
8621
8622
|
}
|
|
8622
8623
|
return r;
|
|
@@ -8631,7 +8632,7 @@ function Wc(r) {
|
|
|
8631
8632
|
}) || t.some((l) => l.bullet) || t.length >= 2 || !!(n != null && n.length) || i.length > 0
|
|
8632
8633
|
);
|
|
8633
8634
|
}
|
|
8634
|
-
function
|
|
8635
|
+
function Qu(r) {
|
|
8635
8636
|
const { body: e } = r;
|
|
8636
8637
|
if (!e) return null;
|
|
8637
8638
|
const { textRuns: t = [] } = e;
|
|
@@ -8644,7 +8645,7 @@ function qu(r) {
|
|
|
8644
8645
|
}), Object.keys(n).length ? n : null;
|
|
8645
8646
|
}
|
|
8646
8647
|
function __(r, e = !1) {
|
|
8647
|
-
r.dataStream =
|
|
8648
|
+
r.dataStream = Fh, r.textRuns != null && (r.textRuns.length === 1 && !e ? (r.textRuns[0].st = 0, r.textRuns[0].ed = 1) : r.textRuns = void 0), r.paragraphs != null && (r.paragraphs = [
|
|
8648
8649
|
{
|
|
8649
8650
|
startIndex: 0
|
|
8650
8651
|
}
|
|
@@ -8655,14 +8656,14 @@ var w_ = Object.getOwnPropertyDescriptor, R_ = (r, e, t, n) => {
|
|
|
8655
8656
|
(s = r[o]) && (i = s(i) || i);
|
|
8656
8657
|
return i;
|
|
8657
8658
|
}, ya = (r, e) => (t, n) => e(t, n, r);
|
|
8658
|
-
const
|
|
8659
|
+
const Ku = rm.MARK_SELECTION, Ti = vn("univer.mark-selection-service");
|
|
8659
8660
|
let Zs = class extends de {
|
|
8660
8661
|
constructor(e, t, n) {
|
|
8661
8662
|
super();
|
|
8662
8663
|
_(this, "_shapeMap", /* @__PURE__ */ new Map());
|
|
8663
8664
|
this._currentService = e, this._renderManagerService = t, this._themeService = n;
|
|
8664
8665
|
}
|
|
8665
|
-
addShape(e, t = [], n =
|
|
8666
|
+
addShape(e, t = [], n = Ku) {
|
|
8666
8667
|
var a;
|
|
8667
8668
|
const i = this._currentService.getCurrentUnitForType(x.UNIVER_SHEET), o = (a = i.getActiveSheet()) == null ? void 0 : a.getSheetId();
|
|
8668
8669
|
if (!o) return null;
|
|
@@ -8676,7 +8677,7 @@ let Zs = class extends de {
|
|
|
8676
8677
|
};
|
|
8677
8678
|
return this._shapeMap.set(s, l), this.refreshShapes(), s;
|
|
8678
8679
|
}
|
|
8679
|
-
addShapeWithNoFresh(e, t = [], n =
|
|
8680
|
+
addShapeWithNoFresh(e, t = [], n = Ku) {
|
|
8680
8681
|
var l;
|
|
8681
8682
|
const i = this._currentService.getCurrentUnitForType(x.UNIVER_SHEET), o = (l = i.getActiveSheet()) == null ? void 0 : l.getSheetId();
|
|
8682
8683
|
if (!o) return null;
|
|
@@ -8703,7 +8704,7 @@ let Zs = class extends de {
|
|
|
8703
8704
|
if (!u) return;
|
|
8704
8705
|
const h = u.with(ge).getCurrentSkeleton();
|
|
8705
8706
|
if (!h) return;
|
|
8706
|
-
const { scene: g } = u, { rowHeaderWidth: m, columnHeaderHeight: f } = h, p = new
|
|
8707
|
+
const { scene: g } = u, { rowHeaderWidth: m, columnHeaderHeight: f } = h, p = new Dd(g, d, this._themeService, {
|
|
8707
8708
|
enableAutoFill: !1,
|
|
8708
8709
|
highlightHeader: !1,
|
|
8709
8710
|
rowHeaderWidth: m,
|
|
@@ -8800,7 +8801,7 @@ function Gs(r, e) {
|
|
|
8800
8801
|
}
|
|
8801
8802
|
case "sub":
|
|
8802
8803
|
case "sup": {
|
|
8803
|
-
n.va = i === "sup" ?
|
|
8804
|
+
n.va = i === "sup" ? uu.SUPERSCRIPT : uu.SUBSCRIPT;
|
|
8804
8805
|
break;
|
|
8805
8806
|
}
|
|
8806
8807
|
}
|
|
@@ -8810,15 +8811,15 @@ function T_(r, e) {
|
|
|
8810
8811
|
if (r instanceof CSSStyleDeclaration)
|
|
8811
8812
|
for (let t = 0; t < r.length; t++) {
|
|
8812
8813
|
const n = r[t], i = r.getPropertyValue(n);
|
|
8813
|
-
|
|
8814
|
+
Ju(n, i, e);
|
|
8814
8815
|
}
|
|
8815
8816
|
else
|
|
8816
8817
|
for (const t in r) {
|
|
8817
8818
|
const n = r[t];
|
|
8818
|
-
|
|
8819
|
+
Ju(t, n, e);
|
|
8819
8820
|
}
|
|
8820
8821
|
}
|
|
8821
|
-
function
|
|
8822
|
+
function Ju(r, e, t) {
|
|
8822
8823
|
switch (r) {
|
|
8823
8824
|
case "font-family":
|
|
8824
8825
|
t.ff = e;
|
|
@@ -8867,12 +8868,12 @@ function Um(r) {
|
|
|
8867
8868
|
switch (i) {
|
|
8868
8869
|
case "margin-top": {
|
|
8869
8870
|
const s = Number.parseInt(o);
|
|
8870
|
-
t.spaceAbove = { v: /pt/.test(o) ?
|
|
8871
|
+
t.spaceAbove = { v: /pt/.test(o) ? vu(s) : s };
|
|
8871
8872
|
break;
|
|
8872
8873
|
}
|
|
8873
8874
|
case "margin-bottom": {
|
|
8874
8875
|
const s = Number.parseInt(o);
|
|
8875
|
-
t.spaceBelow = { v: /pt/.test(o) ?
|
|
8876
|
+
t.spaceBelow = { v: /pt/.test(o) ? vu(s) : s };
|
|
8876
8877
|
break;
|
|
8877
8878
|
}
|
|
8878
8879
|
case "line-height": {
|
|
@@ -8892,7 +8893,7 @@ function Ma(r, e) {
|
|
|
8892
8893
|
});
|
|
8893
8894
|
return t;
|
|
8894
8895
|
}
|
|
8895
|
-
function
|
|
8896
|
+
function $u(r, e, t) {
|
|
8896
8897
|
var s, l, a;
|
|
8897
8898
|
const n = e.length, o = ((s = t == null ? void 0 : t.length) != null ? s : 0) === 1 && t[0].st === 0 && t[0].ed === n;
|
|
8898
8899
|
return r.p ? o && ((a = (l = r.p.body) == null ? void 0 : l.textRuns) != null && a.length) ? (r.p.body.textRuns = [], {
|
|
@@ -8903,7 +8904,7 @@ function Ju(r, e, t) {
|
|
|
8903
8904
|
s: t[0].ts
|
|
8904
8905
|
} : r;
|
|
8905
8906
|
}
|
|
8906
|
-
const
|
|
8907
|
+
const eh = [
|
|
8907
8908
|
// Rich Text Style Rules,
|
|
8908
8909
|
"color",
|
|
8909
8910
|
"background",
|
|
@@ -8924,7 +8925,7 @@ const $u = [
|
|
|
8924
8925
|
// Custom Style Rules, '--' needs to be used as a prefix.
|
|
8925
8926
|
"--data-rotate"
|
|
8926
8927
|
];
|
|
8927
|
-
function
|
|
8928
|
+
function th(r, e) {
|
|
8928
8929
|
const t = r.tagName.toLowerCase();
|
|
8929
8930
|
return typeof e == "string" ? t === e : Array.isArray(e) ? e.some((n) => n === t) : e(r);
|
|
8930
8931
|
}
|
|
@@ -9017,12 +9018,12 @@ const Il = class Il {
|
|
|
9017
9018
|
customRanges: m
|
|
9018
9019
|
};
|
|
9019
9020
|
if (!(m != null && m.length))
|
|
9020
|
-
n.setValue(0, 0,
|
|
9021
|
+
n.setValue(0, 0, $u({ v: u }, u, h));
|
|
9021
9022
|
else {
|
|
9022
9023
|
const S = this._generateDocumentDataModelSnapshot({
|
|
9023
9024
|
body: p
|
|
9024
9025
|
});
|
|
9025
|
-
n.setValue(0, 0,
|
|
9026
|
+
n.setValue(0, 0, $u({ v: u, p: S }, u, h));
|
|
9026
9027
|
}
|
|
9027
9028
|
s.push({});
|
|
9028
9029
|
}
|
|
@@ -9043,10 +9044,10 @@ const Il = class Il {
|
|
|
9043
9044
|
return n || "";
|
|
9044
9045
|
}
|
|
9045
9046
|
_getStyle(e, t) {
|
|
9046
|
-
const n =
|
|
9047
|
+
const n = nh(t), i = e.style;
|
|
9047
9048
|
let o = "";
|
|
9048
|
-
for (let s = 0; s <
|
|
9049
|
-
const l =
|
|
9049
|
+
for (let s = 0; s < eh.length; s++) {
|
|
9050
|
+
const l = eh[s];
|
|
9050
9051
|
if (l === "background") {
|
|
9051
9052
|
let c = "";
|
|
9052
9053
|
e.classList.forEach((u) => {
|
|
@@ -9121,15 +9122,15 @@ const Il = class Il {
|
|
|
9121
9122
|
if (S = this._getStyle(p, h), d > 0) {
|
|
9122
9123
|
const y = i.getValue(d - 1, m);
|
|
9123
9124
|
if ((a = y == null ? void 0 : y.style) != null && a.includes("border-bottom") && S.includes("border-top")) {
|
|
9124
|
-
const M =
|
|
9125
|
-
M &&
|
|
9125
|
+
const M = rh(y.style, "border-bottom");
|
|
9126
|
+
M && wu(M.substr(M.indexOf(":") + 1)) !== "none" && (S = S.replace(/border-top:[^;]+;/, ""));
|
|
9126
9127
|
}
|
|
9127
9128
|
}
|
|
9128
9129
|
if (f > 0) {
|
|
9129
9130
|
const y = i.getValue(d, m - 1);
|
|
9130
9131
|
if ((c = y == null ? void 0 : y.style) != null && c.includes("border-right") && S.includes("border-left")) {
|
|
9131
|
-
const M =
|
|
9132
|
-
M &&
|
|
9132
|
+
const M = rh(y.style, "border-right");
|
|
9133
|
+
M && wu(M.substr(M.indexOf(":") + 1)) !== "none" && (S = S.replace(/border-left:[^;]+;/, ""));
|
|
9133
9134
|
}
|
|
9134
9135
|
}
|
|
9135
9136
|
const { cellText: w, cellRichStyle: R } = this._getCellTextAndRichText(p, S, n), I = {
|
|
@@ -9168,7 +9169,7 @@ const Il = class Il {
|
|
|
9168
9169
|
if (l.nodeName.toLowerCase() === "br")
|
|
9169
9170
|
n.paragraphs || (n.paragraphs = []), n.paragraphs.push({ startIndex: n.dataStream.length }), n.dataStream += "\r";
|
|
9170
9171
|
else if (l.nodeType === Node.ELEMENT_NODE) {
|
|
9171
|
-
const a = this._getStyle(l, o), c = e ? i.get(e) : {}, d =
|
|
9172
|
+
const a = this._getStyle(l, o), c = e ? i.get(e) : {}, d = nh(a), u = Gs(l, d);
|
|
9172
9173
|
i.set(l, { ...c, ...u });
|
|
9173
9174
|
const { childNodes: h } = l;
|
|
9174
9175
|
this._parseCellHtml(l, h, n, i, a);
|
|
@@ -9243,12 +9244,12 @@ const Il = class Il {
|
|
|
9243
9244
|
else if (a.nodeType === Node.ELEMENT_NODE) {
|
|
9244
9245
|
if (a.nodeName === "STYLE")
|
|
9245
9246
|
continue;
|
|
9246
|
-
const c = a, d = this._processBeforeLink(c, { body: n }), u = e ? this._styleCache.get(e) : {}, h = this._styleRules.find(({ filter: p }) =>
|
|
9247
|
+
const c = a, d = this._processBeforeLink(c, { body: n }), u = e ? this._styleCache.get(e) : {}, h = this._styleRules.find(({ filter: p }) => th(a, p)), g = h ? h.getStyle(a) : Gs(a);
|
|
9247
9248
|
this._styleCache.set(a, { ...u, ...g });
|
|
9248
9249
|
const { childNodes: m } = a;
|
|
9249
9250
|
this.process(a, m, n, i);
|
|
9250
9251
|
const f = this._afterProcessRules.find(
|
|
9251
|
-
({ filter: p }) =>
|
|
9252
|
+
({ filter: p }) => th(a, p)
|
|
9252
9253
|
);
|
|
9253
9254
|
f && f.handler(n, a), this._processAfterLink(c, { body: n }, d);
|
|
9254
9255
|
}
|
|
@@ -9263,8 +9264,8 @@ const Il = class Il {
|
|
|
9263
9264
|
o.tagName.toUpperCase() === "A" && (i.customRanges = (s = i.customRanges) != null ? s : [], i.customRanges.push({
|
|
9264
9265
|
startIndex: n,
|
|
9265
9266
|
endIndex: i.dataStream.length - 1,
|
|
9266
|
-
rangeId: (l = o.dataset.rangeid) != null ? l :
|
|
9267
|
-
rangeType:
|
|
9267
|
+
rangeId: (l = o.dataset.rangeid) != null ? l : ld(),
|
|
9268
|
+
rangeType: ad.HYPERLINK,
|
|
9268
9269
|
properties: { url: o.href }
|
|
9269
9270
|
}));
|
|
9270
9271
|
}
|
|
@@ -9293,7 +9294,7 @@ function x_(r) {
|
|
|
9293
9294
|
rowCount: i.length
|
|
9294
9295
|
};
|
|
9295
9296
|
}
|
|
9296
|
-
function
|
|
9297
|
+
function nh(r) {
|
|
9297
9298
|
const e = {};
|
|
9298
9299
|
return r.split(";").forEach((n) => {
|
|
9299
9300
|
const [i, o] = n.split(":");
|
|
@@ -9339,7 +9340,7 @@ function k_(r) {
|
|
|
9339
9340
|
};
|
|
9340
9341
|
return r.replace(/<|>|&|"|'| |<br>/g, (t) => e[t]);
|
|
9341
9342
|
}
|
|
9342
|
-
function
|
|
9343
|
+
function rh(r, e) {
|
|
9343
9344
|
if (!r || !e) return null;
|
|
9344
9345
|
const t = new RegExp(`(${e}\\s*:\\s*[^;]+);`, "i"), n = r.match(t);
|
|
9345
9346
|
return n ? n[1] : null;
|
|
@@ -9436,7 +9437,7 @@ function L_(r, e, t, n, i) {
|
|
|
9436
9437
|
const o = t.map((c) => {
|
|
9437
9438
|
var d;
|
|
9438
9439
|
return (d = c.onCopyRow) == null ? void 0 : d.call(c, r);
|
|
9439
|
-
}).filter((c) => !!c), s =
|
|
9440
|
+
}).filter((c) => !!c), s = qd(o), l = Qd(s), a = e.map((c) => {
|
|
9440
9441
|
if (!i.has(`${r}-${c}`)) {
|
|
9441
9442
|
const d = n.getValue(r, c);
|
|
9442
9443
|
if (d != null && d.rowSpan && (d != null && d.colSpan))
|
|
@@ -9453,7 +9454,7 @@ function W_(r, e, t, n) {
|
|
|
9453
9454
|
const i = n.getValue(r, e), o = t.map((c) => {
|
|
9454
9455
|
var d;
|
|
9455
9456
|
return (d = c.onCopyCellStyle) == null ? void 0 : d.call(c, r, e, i == null ? void 0 : i.rowSpan, i == null ? void 0 : i.colSpan);
|
|
9456
|
-
}).filter((c) => !!c), s =
|
|
9457
|
+
}).filter((c) => !!c), s = qd(o), l = Qd(s), a = t.reduce((c, d) => {
|
|
9457
9458
|
var u;
|
|
9458
9459
|
return c || ((u = d.onCopyCellContent) == null ? void 0 : u.call(d, r, e)) || "";
|
|
9459
9460
|
}, "");
|
|
@@ -9464,16 +9465,16 @@ function B_(r, e) {
|
|
|
9464
9465
|
const i = e.map((l) => {
|
|
9465
9466
|
var a;
|
|
9466
9467
|
return (a = l.onCopyColumn) == null ? void 0 : a.call(l, n);
|
|
9467
|
-
}).filter((l) => !!l), o =
|
|
9468
|
-
return `<col ${
|
|
9468
|
+
}).filter((l) => !!l), o = qd(i);
|
|
9469
|
+
return `<col ${Qd(o)}>`;
|
|
9469
9470
|
}).join("")}</colgroup>`;
|
|
9470
9471
|
}
|
|
9471
|
-
function
|
|
9472
|
+
function qd(r) {
|
|
9472
9473
|
return r.reduce((e, t) => (Object.keys(t).forEach((i) => {
|
|
9473
9474
|
e[i] ? e[i] += `;${t[i]}` : e[i] = t[i];
|
|
9474
9475
|
}), e), {});
|
|
9475
9476
|
}
|
|
9476
|
-
function
|
|
9477
|
+
function Qd(r) {
|
|
9477
9478
|
return Object.keys(r).reduce((e, t) => (e += ` ${t}="${r[t]}"`, e), "");
|
|
9478
9479
|
}
|
|
9479
9480
|
class F_ {
|
|
@@ -9537,7 +9538,7 @@ const kP = (r, e, t = !1) => {
|
|
|
9537
9538
|
}
|
|
9538
9539
|
return d;
|
|
9539
9540
|
};
|
|
9540
|
-
function
|
|
9541
|
+
function ih(r) {
|
|
9541
9542
|
return r ? [
|
|
9542
9543
|
// Excel class names
|
|
9543
9544
|
/<td[^>]*class=".*?xl.*?"[^>]*>/i,
|
|
@@ -9572,7 +9573,7 @@ function X_(...r) {
|
|
|
9572
9573
|
function z_(r, e) {
|
|
9573
9574
|
return r.id === e.id && r.params.unitId === e.params.unitId && r.params.subUnitId === e.params.subUnitId;
|
|
9574
9575
|
}
|
|
9575
|
-
function
|
|
9576
|
+
function oh(r) {
|
|
9576
9577
|
const e = [];
|
|
9577
9578
|
for (let t = 0; t < r.length; ) {
|
|
9578
9579
|
let n = 1;
|
|
@@ -9601,7 +9602,7 @@ function Pa(r, e) {
|
|
|
9601
9602
|
if (e.rows.includes(s) && e.cols.includes(l))
|
|
9602
9603
|
return !0;
|
|
9603
9604
|
}
|
|
9604
|
-
function
|
|
9605
|
+
function sh(r, e) {
|
|
9605
9606
|
const { startRow: t, endRow: n, startColumn: i, endColumn: o } = e;
|
|
9606
9607
|
for (let s = t; s <= n; s++)
|
|
9607
9608
|
if (!r.rows.includes(s))
|
|
@@ -9664,7 +9665,7 @@ let qs = class extends de {
|
|
|
9664
9665
|
this._logService = e, this._univerInstanceService = t, this._selectionManagerService = n, this._clipboardInterfaceService = i, this._undoRedoService = o, this._commandService = s, this._markSelectionService = l, this._notificationService = a, this._platformService = c, this._renderManagerService = d, this._themeService = u, this._localeService = h, this._errorService = g, this._injector = m, this._htmlToUSM = new Ci({
|
|
9665
9666
|
getCurrentSkeleton: () => {
|
|
9666
9667
|
var f;
|
|
9667
|
-
return (f =
|
|
9668
|
+
return (f = ud(
|
|
9668
9669
|
x.UNIVER_SHEET,
|
|
9669
9670
|
ge,
|
|
9670
9671
|
this._univerInstanceService,
|
|
@@ -9722,9 +9723,9 @@ let qs = class extends de {
|
|
|
9722
9723
|
return this.copy($n.CUT);
|
|
9723
9724
|
}
|
|
9724
9725
|
async paste(e, t = nt.DEFAULT_PASTE) {
|
|
9725
|
-
const n = e.types, i = n.indexOf(
|
|
9726
|
+
const n = e.types, i = n.indexOf(Ru) !== -1 ? await e.getType(Ru).then((a) => a && a.text()) : "", o = n.indexOf(Iu) !== -1 ? await e.getType(Iu).then((a) => a && a.text()) : "", s = n.findIndex((a) => MS.has(a)), l = s === -1 || !U_(o);
|
|
9726
9727
|
if (o && l)
|
|
9727
|
-
return this._platformService.isWindows &&
|
|
9728
|
+
return this._platformService.isWindows && ih(o) && this._notificationService.show({
|
|
9728
9729
|
type: "warning",
|
|
9729
9730
|
title: this._localeService.t("clipboard.shortCutNotify.title"),
|
|
9730
9731
|
content: this._localeService.t("clipboard.shortCutNotify.useShortCutInstead")
|
|
@@ -9743,7 +9744,7 @@ let qs = class extends de {
|
|
|
9743
9744
|
return i ? this._pastePlainText(i, t) : (this._logService.error("[SheetClipboardService]", "No valid data on clipboard"), !1);
|
|
9744
9745
|
}
|
|
9745
9746
|
async legacyPaste(e, t, n) {
|
|
9746
|
-
const i =
|
|
9747
|
+
const i = ih(e != null ? e : "");
|
|
9747
9748
|
return n && !i ? this._pasteFiles(n, nt.DEFAULT_PASTE) : e ? this._pasteHTML(e, nt.DEFAULT_PASTE) : t ? /[\n\t]/.test(t) ? this._pasteHTML(j_(t), nt.DEFAULT_PASTE) : this._pastePlainText(t, nt.DEFAULT_PASTE) : this._pasteUnrecognized();
|
|
9748
9749
|
}
|
|
9749
9750
|
rePasteWithPasteType(e) {
|
|
@@ -9891,7 +9892,7 @@ let qs = class extends de {
|
|
|
9891
9892
|
if (!l)
|
|
9892
9893
|
return !1;
|
|
9893
9894
|
const a = l == null ? void 0 : l.getMergeData();
|
|
9894
|
-
return a.length && a.some((h) => Pa(h, s.pastedRange) && !
|
|
9895
|
+
return a.length && a.some((h) => Pa(h, s.pastedRange) && !sh(s.pastedRange, h)) ? (this._errorService.emit(this._localeService.t("clipboard.paste.overlappingMergedCells")), !1) : this._pasteUSM(
|
|
9895
9896
|
{
|
|
9896
9897
|
rowProperties: n,
|
|
9897
9898
|
colProperties: i,
|
|
@@ -9927,7 +9928,7 @@ let qs = class extends de {
|
|
|
9927
9928
|
if (!d)
|
|
9928
9929
|
return !1;
|
|
9929
9930
|
const u = d == null ? void 0 : d.getMergeData();
|
|
9930
|
-
if (u && u.some((M) => Pa(M, c.pastedRange) && !
|
|
9931
|
+
if (u && u.some((M) => Pa(M, c.pastedRange) && !sh(c.pastedRange, M)))
|
|
9931
9932
|
return this._errorService.emit(this._localeService.t("clipboard.paste.overlappingMergedCells")), !1;
|
|
9932
9933
|
const h = this._univerInstanceService.getUnit(s);
|
|
9933
9934
|
if (!h) return !1;
|
|
@@ -10016,7 +10017,7 @@ let qs = class extends de {
|
|
|
10016
10017
|
M && (S.push(...M.redos), v.push(...M.undos));
|
|
10017
10018
|
});
|
|
10018
10019
|
const w = this._getSetSelectionOperation(a, c, d, l, n);
|
|
10019
|
-
w && S.push(w), S =
|
|
10020
|
+
w && S.push(w), S = oh(S), v = oh(v), v.push({ id: rt.id, params: { unitId: t.unitId, subUnitId: t.subUnitId } }), this._logService.log("[SheetClipboardService]", "pasting mutations", {
|
|
10020
10021
|
undoMutationsInfo: v,
|
|
10021
10022
|
redoMutationsInfo: S
|
|
10022
10023
|
});
|
|
@@ -10349,29 +10350,29 @@ function Bi() {
|
|
|
10349
10350
|
t: null
|
|
10350
10351
|
};
|
|
10351
10352
|
}
|
|
10352
|
-
const
|
|
10353
|
+
const Kd = 998, mn = {
|
|
10353
10354
|
id: xS.id,
|
|
10354
10355
|
name: "sheet.command.copy",
|
|
10355
10356
|
type: Q.COMMAND,
|
|
10356
10357
|
multi: !0,
|
|
10357
|
-
priority:
|
|
10358
|
-
preconditions:
|
|
10358
|
+
priority: Kd,
|
|
10359
|
+
preconditions: Gd,
|
|
10359
10360
|
handler: async (r) => r.get(on).copy()
|
|
10360
10361
|
}, zm = {
|
|
10361
10362
|
id: AS.id,
|
|
10362
10363
|
name: "sheet.command.cut",
|
|
10363
10364
|
type: Q.COMMAND,
|
|
10364
10365
|
multi: !0,
|
|
10365
|
-
priority:
|
|
10366
|
-
preconditions:
|
|
10366
|
+
priority: Kd,
|
|
10367
|
+
preconditions: Gd,
|
|
10367
10368
|
handler: async (r) => r.get(on).cut()
|
|
10368
10369
|
}, fn = {
|
|
10369
10370
|
id: kS.id,
|
|
10370
10371
|
type: Q.COMMAND,
|
|
10371
10372
|
multi: !0,
|
|
10372
10373
|
name: "sheet.command.paste",
|
|
10373
|
-
priority:
|
|
10374
|
-
preconditions:
|
|
10374
|
+
priority: Kd,
|
|
10375
|
+
preconditions: Gd,
|
|
10375
10376
|
handler: async (r, e) => {
|
|
10376
10377
|
const n = await r.get(Ol).read(), i = r.get(on);
|
|
10377
10378
|
return n.length !== 0 ? i.paste(n[0], e == null ? void 0 : e.value) : !1;
|
|
@@ -10463,28 +10464,28 @@ const Qd = 998, mn = {
|
|
|
10463
10464
|
id: "sheet.command.set-range-bold",
|
|
10464
10465
|
handler: async (r) => {
|
|
10465
10466
|
const e = r.get(D);
|
|
10466
|
-
return r.get(He).getContextValue($e) ? e.executeCommand(Ep.id) : e.executeCommand(
|
|
10467
|
+
return r.get(He).getContextValue($e) ? e.executeCommand(Ep.id) : e.executeCommand(Rd.id);
|
|
10467
10468
|
}
|
|
10468
10469
|
}, xi = {
|
|
10469
10470
|
type: Q.COMMAND,
|
|
10470
10471
|
id: "sheet.command.set-range-italic",
|
|
10471
10472
|
handler: async (r) => {
|
|
10472
10473
|
const e = r.get(D);
|
|
10473
|
-
return r.get(He).getContextValue($e) ? e.executeCommand(Tp.id) : e.executeCommand(
|
|
10474
|
+
return r.get(He).getContextValue($e) ? e.executeCommand(Tp.id) : e.executeCommand(Id.id);
|
|
10474
10475
|
}
|
|
10475
10476
|
}, Ai = {
|
|
10476
10477
|
type: Q.COMMAND,
|
|
10477
10478
|
id: "sheet.command.set-range-underline",
|
|
10478
10479
|
handler: async (r) => {
|
|
10479
10480
|
const e = r.get(D);
|
|
10480
|
-
return r.get(He).getContextValue($e) ? e.executeCommand(Op.id) : e.executeCommand(
|
|
10481
|
+
return r.get(He).getContextValue($e) ? e.executeCommand(Op.id) : e.executeCommand(yd.id);
|
|
10481
10482
|
}
|
|
10482
10483
|
}, ki = {
|
|
10483
10484
|
type: Q.COMMAND,
|
|
10484
10485
|
id: "sheet.command.set-range-stroke",
|
|
10485
10486
|
handler: async (r) => {
|
|
10486
10487
|
const e = r.get(D);
|
|
10487
|
-
return r.get(He).getContextValue($e) ? e.executeCommand(xp.id) : e.executeCommand(
|
|
10488
|
+
return r.get(He).getContextValue($e) ? e.executeCommand(xp.id) : e.executeCommand(Md.id);
|
|
10488
10489
|
}
|
|
10489
10490
|
}, Ym = {
|
|
10490
10491
|
type: Q.COMMAND,
|
|
@@ -10505,28 +10506,28 @@ const Qd = 998, mn = {
|
|
|
10505
10506
|
id: "sheet.command.set-range-fontsize",
|
|
10506
10507
|
handler: async (r, e) => {
|
|
10507
10508
|
const t = r.get(D);
|
|
10508
|
-
return r.get(He).getContextValue($e) ? t.executeCommand(Hp.id, e) : t.executeCommand(
|
|
10509
|
+
return r.get(He).getContextValue($e) ? t.executeCommand(Hp.id, e) : t.executeCommand(Pd.id, e);
|
|
10509
10510
|
}
|
|
10510
10511
|
}, na = {
|
|
10511
10512
|
type: Q.COMMAND,
|
|
10512
10513
|
id: "sheet.command.set-range-font-family",
|
|
10513
10514
|
handler: async (r, e) => {
|
|
10514
10515
|
const t = r.get(D);
|
|
10515
|
-
return r.get(He).getContextValue($e) ? t.executeCommand(Np.id, e) : t.executeCommand(
|
|
10516
|
+
return r.get(He).getContextValue($e) ? t.executeCommand(Np.id, e) : t.executeCommand(Ed.id, e);
|
|
10516
10517
|
}
|
|
10517
10518
|
}, vo = {
|
|
10518
10519
|
type: Q.COMMAND,
|
|
10519
10520
|
id: "sheet.command.set-range-text-color",
|
|
10520
10521
|
handler: async (r, e) => {
|
|
10521
10522
|
const t = r.get(D);
|
|
10522
|
-
return r.get(He).getContextValue($e) ? t.executeCommand(
|
|
10523
|
+
return r.get(He).getContextValue($e) ? t.executeCommand(Vh.id, e) : t.executeCommand(gg.id, e);
|
|
10523
10524
|
}
|
|
10524
10525
|
}, Gm = {
|
|
10525
10526
|
type: Q.COMMAND,
|
|
10526
10527
|
id: "sheet.command.reset-range-text-color",
|
|
10527
10528
|
handler: async (r) => {
|
|
10528
10529
|
const e = r.get(D), n = r.get(He).getContextValue($e), i = r.get(Lt);
|
|
10529
|
-
return n ? e.executeCommand(
|
|
10530
|
+
return n ? e.executeCommand(Vh.id, { value: null }) : e.executeCommand(gg.id, { value: i.getCurrentTheme().textColor });
|
|
10530
10531
|
}
|
|
10531
10532
|
};
|
|
10532
10533
|
var ew = Object.getOwnPropertyDescriptor, tw = (r, e, t, n) => {
|
|
@@ -10628,7 +10629,7 @@ const ra = {
|
|
|
10628
10629
|
id: "sheet.operation.set-format-painter",
|
|
10629
10630
|
type: Q.OPERATION,
|
|
10630
10631
|
handler: (r, e) => e ? (r.get(Zn).setStatus(e.status), !0) : !1
|
|
10631
|
-
},
|
|
10632
|
+
}, Jd = {
|
|
10632
10633
|
type: Q.COMMAND,
|
|
10633
10634
|
id: "sheet.command.set-infinite-format-painter",
|
|
10634
10635
|
handler: async (r) => {
|
|
@@ -10701,7 +10702,7 @@ var nw = Object.getOwnPropertyDescriptor, rw = (r, e, t, n) => {
|
|
|
10701
10702
|
for (var i = n > 1 ? void 0 : n ? nw(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
10702
10703
|
(s = r[o]) && (i = s(i) || i);
|
|
10703
10704
|
return i;
|
|
10704
|
-
},
|
|
10705
|
+
}, lh = (r, e) => (t, n) => e(t, n, r);
|
|
10705
10706
|
const iw = (r, e) => {
|
|
10706
10707
|
const { unitId: t, subUnitId: n, ranges: i } = r, o = {}, s = e.getColumnManager();
|
|
10707
10708
|
for (let l = 0; l < i.length; l++) {
|
|
@@ -10753,8 +10754,8 @@ let Co = class extends de {
|
|
|
10753
10754
|
}
|
|
10754
10755
|
};
|
|
10755
10756
|
Co = rw([
|
|
10756
|
-
|
|
10757
|
-
|
|
10757
|
+
lh(0, be),
|
|
10758
|
+
lh(1, N(V))
|
|
10758
10759
|
], Co);
|
|
10759
10760
|
const la = {
|
|
10760
10761
|
type: Q.COMMAND,
|
|
@@ -10784,7 +10785,7 @@ const la = {
|
|
|
10784
10785
|
redoMutations: [...u]
|
|
10785
10786
|
}), !0) : !1;
|
|
10786
10787
|
}
|
|
10787
|
-
}, Hi = "UI_PLUGIN_SHEETS", Go = `${Hi}_COLOR_PICKER_COMPONENT`,
|
|
10788
|
+
}, Hi = "UI_PLUGIN_SHEETS", Go = `${Hi}_COLOR_PICKER_COMPONENT`, $d = `${Hi}_FONT_FAMILY_COMPONENT`, eu = `${Hi}_FONT_FAMILY_ITEM_COMPONENT`, tu = `${Hi}_FONT_SIZE_COMPONENT`, bn = `${Hi}_MENU_ITEM_INPUT_COMPONENT`, ow = "univer-sheets-ui-context-menu-input", sw = "univer-sheets-ui-context-menu-input-container", lw = "univer-sheets-ui-context-menu-input-number", Ea = {
|
|
10788
10789
|
sheetsUiContextMenuInput: ow,
|
|
10789
10790
|
sheetsUiContextMenuInputContainer: sw,
|
|
10790
10791
|
sheetsUiContextMenuInputNumber: lw
|
|
@@ -10978,7 +10979,7 @@ function uw(r) {
|
|
|
10978
10979
|
const e = r.get(Zn);
|
|
10979
10980
|
return {
|
|
10980
10981
|
id: Zo.id,
|
|
10981
|
-
subId:
|
|
10982
|
+
subId: Jd.id,
|
|
10982
10983
|
type: K.BUTTON,
|
|
10983
10984
|
icon: "BrushSingle",
|
|
10984
10985
|
title: "Format Painter",
|
|
@@ -11171,15 +11172,15 @@ function fw(r) {
|
|
|
11171
11172
|
};
|
|
11172
11173
|
}
|
|
11173
11174
|
function pw(r) {
|
|
11174
|
-
const e = r.get(D), t = r.get(V), n = r.get($), i =
|
|
11175
|
+
const e = r.get(D), t = r.get(V), n = r.get($), i = cd.ff;
|
|
11175
11176
|
return {
|
|
11176
11177
|
id: na.id,
|
|
11177
11178
|
tooltip: "toolbar.font",
|
|
11178
11179
|
type: K.SELECTOR,
|
|
11179
|
-
label:
|
|
11180
|
+
label: $d,
|
|
11180
11181
|
selections: VS.map((o) => ({
|
|
11181
11182
|
label: {
|
|
11182
|
-
name:
|
|
11183
|
+
name: eu
|
|
11183
11184
|
},
|
|
11184
11185
|
value: o.value
|
|
11185
11186
|
})),
|
|
@@ -11210,13 +11211,13 @@ function pw(r) {
|
|
|
11210
11211
|
};
|
|
11211
11212
|
}
|
|
11212
11213
|
function Sw(r) {
|
|
11213
|
-
const e = r.get(D), t = r.get(V), n = r.get($), i = r.get(He), o =
|
|
11214
|
+
const e = r.get(D), t = r.get(V), n = r.get($), i = r.get(He), o = cd.fs, s = pe(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] }, !0);
|
|
11214
11215
|
return {
|
|
11215
11216
|
id: ta.id,
|
|
11216
11217
|
type: K.SELECTOR,
|
|
11217
11218
|
tooltip: "toolbar.fontSize",
|
|
11218
11219
|
label: {
|
|
11219
|
-
name:
|
|
11220
|
+
name: tu,
|
|
11220
11221
|
props: {
|
|
11221
11222
|
min: 1,
|
|
11222
11223
|
max: 400,
|
|
@@ -11334,7 +11335,7 @@ function _w(r) {
|
|
|
11334
11335
|
disabled$: pe(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] })
|
|
11335
11336
|
};
|
|
11336
11337
|
}
|
|
11337
|
-
const
|
|
11338
|
+
const ah = [
|
|
11338
11339
|
{
|
|
11339
11340
|
label: "align.left",
|
|
11340
11341
|
icon: "LeftJustifyingSingle",
|
|
@@ -11355,10 +11356,10 @@ function ww(r) {
|
|
|
11355
11356
|
const e = r.get(V), t = r.get($), n = yt.LEFT;
|
|
11356
11357
|
return {
|
|
11357
11358
|
id: vc.id,
|
|
11358
|
-
icon:
|
|
11359
|
+
icon: ah[0].icon,
|
|
11359
11360
|
tooltip: "toolbar.horizontalAlignMode.main",
|
|
11360
11361
|
type: K.SELECTOR,
|
|
11361
|
-
selections:
|
|
11362
|
+
selections: ah,
|
|
11362
11363
|
value$: vt(e, n, ({ worksheet: i }) => new Xe((o) => {
|
|
11363
11364
|
var c;
|
|
11364
11365
|
const s = r.get(D).onCommandExecuted((d) => {
|
|
@@ -11385,7 +11386,7 @@ function ww(r) {
|
|
|
11385
11386
|
disabled$: pe(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] })
|
|
11386
11387
|
};
|
|
11387
11388
|
}
|
|
11388
|
-
const
|
|
11389
|
+
const ch = [
|
|
11389
11390
|
{
|
|
11390
11391
|
label: "align.top",
|
|
11391
11392
|
icon: "AlignTopSingle",
|
|
@@ -11406,10 +11407,10 @@ function Rw(r) {
|
|
|
11406
11407
|
const e = r.get(V), t = r.get($), n = dn.BOTTOM;
|
|
11407
11408
|
return {
|
|
11408
11409
|
id: Sc.id,
|
|
11409
|
-
icon:
|
|
11410
|
+
icon: ch[2].icon,
|
|
11410
11411
|
tooltip: "toolbar.verticalAlignMode.main",
|
|
11411
11412
|
type: K.SELECTOR,
|
|
11412
|
-
selections:
|
|
11413
|
+
selections: ch,
|
|
11413
11414
|
value$: vt(e, n, ({ worksheet: i }) => new Xe((o) => {
|
|
11414
11415
|
var c;
|
|
11415
11416
|
const s = r.get(D).onCommandExecuted((d) => {
|
|
@@ -11436,7 +11437,7 @@ function Rw(r) {
|
|
|
11436
11437
|
disabled$: pe(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] })
|
|
11437
11438
|
};
|
|
11438
11439
|
}
|
|
11439
|
-
const
|
|
11440
|
+
const dh = [
|
|
11440
11441
|
{
|
|
11441
11442
|
label: "textWrap.overflow",
|
|
11442
11443
|
icon: "OverflowSingle",
|
|
@@ -11458,9 +11459,9 @@ function Iw(r) {
|
|
|
11458
11459
|
return {
|
|
11459
11460
|
id: pc.id,
|
|
11460
11461
|
tooltip: "toolbar.textWrapMode.main",
|
|
11461
|
-
icon:
|
|
11462
|
+
icon: dh[0].icon,
|
|
11462
11463
|
type: K.SELECTOR,
|
|
11463
|
-
selections:
|
|
11464
|
+
selections: dh,
|
|
11464
11465
|
value$: vt(t, n, ({ worksheet: i }) => new Xe((o) => {
|
|
11465
11466
|
var c;
|
|
11466
11467
|
const s = r.get(D).onCommandExecuted((d) => {
|
|
@@ -11487,7 +11488,7 @@ function Iw(r) {
|
|
|
11487
11488
|
disabled$: pe(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] })
|
|
11488
11489
|
};
|
|
11489
11490
|
}
|
|
11490
|
-
const
|
|
11491
|
+
const uh = [
|
|
11491
11492
|
{
|
|
11492
11493
|
label: "textRotate.none",
|
|
11493
11494
|
icon: "NoRotationSingle",
|
|
@@ -11524,9 +11525,9 @@ function yw(r) {
|
|
|
11524
11525
|
return {
|
|
11525
11526
|
id: fc.id,
|
|
11526
11527
|
tooltip: "toolbar.textRotateMode.main",
|
|
11527
|
-
icon:
|
|
11528
|
+
icon: uh[0].icon,
|
|
11528
11529
|
type: K.SELECTOR,
|
|
11529
|
-
selections:
|
|
11530
|
+
selections: uh,
|
|
11530
11531
|
value$: vt(t, n, ({ worksheet: i }) => new Xe((o) => {
|
|
11531
11532
|
var c, d;
|
|
11532
11533
|
const s = r.get(D).onCommandExecuted((u) => {
|
|
@@ -11669,7 +11670,7 @@ function Ew(r) {
|
|
|
11669
11670
|
};
|
|
11670
11671
|
}
|
|
11671
11672
|
const Fc = "sheet.header-menu.sheet-frozen";
|
|
11672
|
-
function
|
|
11673
|
+
function hh(r) {
|
|
11673
11674
|
return {
|
|
11674
11675
|
id: Fc,
|
|
11675
11676
|
type: K.SUBITEMS,
|
|
@@ -11851,7 +11852,7 @@ function Vw(r) {
|
|
|
11851
11852
|
}
|
|
11852
11853
|
function Qo(r) {
|
|
11853
11854
|
var a;
|
|
11854
|
-
const e = r.get(V), t = r.get(
|
|
11855
|
+
const e = r.get(V), t = r.get(Od), n = e.getUniverDocInstance(De), i = t.getActiveTextRange();
|
|
11855
11856
|
if (n == null || i == null) return null;
|
|
11856
11857
|
const o = (a = n.getBody()) == null ? void 0 : a.textRuns;
|
|
11857
11858
|
if (o == null) return;
|
|
@@ -12635,8 +12636,8 @@ let bo = class extends de {
|
|
|
12635
12636
|
n && n.startRow > -1 && i.some((o) => o.startRow < n.startRow) && this._refreshCurrent();
|
|
12636
12637
|
}
|
|
12637
12638
|
break;
|
|
12638
|
-
case Hd.id:
|
|
12639
12639
|
case Nd.id:
|
|
12640
|
+
case Vd.id:
|
|
12640
12641
|
this._refreshCurrent();
|
|
12641
12642
|
}
|
|
12642
12643
|
})
|
|
@@ -13006,7 +13007,7 @@ _o = Yw([
|
|
|
13006
13007
|
], _o);
|
|
13007
13008
|
var Uc = /* @__PURE__ */ ((r) => (r[r.VERTICAL = 0] = "VERTICAL", r[r.HORIZONTAL = 1] = "HORIZONTAL", r))(Uc || {});
|
|
13008
13009
|
const Jw = "rgba(120, 120, 120, 0.01)", Ba = "rgb(68, 71, 70)", qi = 12, $w = 44, Xc = 4;
|
|
13009
|
-
class
|
|
13010
|
+
class gh extends fd {
|
|
13010
13011
|
constructor(t, n) {
|
|
13011
13012
|
super(t, n);
|
|
13012
13013
|
_(this, "_size", qi);
|
|
@@ -13061,7 +13062,7 @@ var e0 = Object.getOwnPropertyDescriptor, t0 = (r, e, t, n) => {
|
|
|
13061
13062
|
(s = r[o]) && (i = s(i) || i);
|
|
13062
13063
|
return i;
|
|
13063
13064
|
}, Fa = (r, e) => (t, n) => e(t, n, r);
|
|
13064
|
-
const n0 = "__SpreadsheetHeaderResizeControllerShapeRow__", r0 = "__SpreadsheetHeaderResizeControllerShapeColumn__",
|
|
13065
|
+
const n0 = "__SpreadsheetHeaderResizeControllerShapeRow__", r0 = "__SpreadsheetHeaderResizeControllerShapeColumn__", mh = "__SpreadsheetHeaderResizeControllerShapeHelper__", fh = "rgb(199, 199, 199)", i0 = 2, Ua = cr("headerResizePermissionCheck");
|
|
13065
13066
|
let Js = class extends de {
|
|
13066
13067
|
constructor(e, t, n, i) {
|
|
13067
13068
|
super();
|
|
@@ -13085,11 +13086,11 @@ let Js = class extends de {
|
|
|
13085
13086
|
}
|
|
13086
13087
|
_init() {
|
|
13087
13088
|
const e = this._context.scene;
|
|
13088
|
-
this._rowResizeRect = new
|
|
13089
|
+
this._rowResizeRect = new gh(n0, {
|
|
13089
13090
|
visible: !1,
|
|
13090
13091
|
mode: Uc.HORIZONTAL,
|
|
13091
13092
|
zIndex: 100
|
|
13092
|
-
}), this._columnResizeRect = new
|
|
13093
|
+
}), this._columnResizeRect = new gh(r0, {
|
|
13093
13094
|
visible: !1,
|
|
13094
13095
|
mode: Uc.VERTICAL,
|
|
13095
13096
|
zIndex: 100
|
|
@@ -13190,16 +13191,16 @@ let Js = class extends de {
|
|
|
13190
13191
|
const p = o.getOffsetByColumn(this._currentColumn), S = o.getOffsetByRow(this._currentRow), v = o.getNoMergeCellWithCoordByIndex(this._currentRow, this._currentColumn);
|
|
13191
13192
|
let C = !1, w = 0, R = 0;
|
|
13192
13193
|
const { columnTotalWidth: I, rowHeaderWidth: y, rowTotalHeight: M, columnHeaderHeight: P } = o, E = c > I + y ? c : I + y, T = a > M + P ? a : M + P, A = Math.max(m, f), k = Xc / A;
|
|
13193
|
-
e === 0 ? this._resizeHelperShape = new Ce(
|
|
13194
|
+
e === 0 ? this._resizeHelperShape = new Ce(mh, {
|
|
13194
13195
|
width: E,
|
|
13195
13196
|
height: k,
|
|
13196
|
-
fill:
|
|
13197
|
+
fill: fh,
|
|
13197
13198
|
left: 0,
|
|
13198
13199
|
top: S - k / 2
|
|
13199
|
-
}) : this._resizeHelperShape = new Ce(
|
|
13200
|
+
}) : this._resizeHelperShape = new Ce(mh, {
|
|
13200
13201
|
width: k,
|
|
13201
13202
|
height: T,
|
|
13202
|
-
fill:
|
|
13203
|
+
fill: fh,
|
|
13203
13204
|
left: p - k / 2,
|
|
13204
13205
|
top: 0
|
|
13205
13206
|
});
|
|
@@ -13323,7 +13324,7 @@ let $s = class extends Un {
|
|
|
13323
13324
|
e.beginFrame$.subscribe(() => {
|
|
13324
13325
|
this._renderFrameTimeMetric = null, this._renderFrameTags = {};
|
|
13325
13326
|
}), e.endFrame$.subscribe(() => {
|
|
13326
|
-
this._renderFrameTimeMetric && Object.keys(this._renderFrameTimeMetric).filter((i) => i.startsWith(
|
|
13327
|
+
this._renderFrameTimeMetric && Object.keys(this._renderFrameTimeMetric).filter((i) => i.startsWith(Cu)).length > 0 && this._afterRenderMetric$.next({
|
|
13327
13328
|
frameTimeMetric: this._renderFrameTimeMetric,
|
|
13328
13329
|
tags: this._renderFrameTags
|
|
13329
13330
|
});
|
|
@@ -13344,6 +13345,7 @@ let $s = class extends Un {
|
|
|
13344
13345
|
});
|
|
13345
13346
|
}
|
|
13346
13347
|
_renderMetricCapture(e) {
|
|
13348
|
+
if (!this._telemetryService) return;
|
|
13347
13349
|
const t = e;
|
|
13348
13350
|
if (t.length === 0) return;
|
|
13349
13351
|
const n = (u) => {
|
|
@@ -13352,7 +13354,7 @@ let $s = class extends Un {
|
|
|
13352
13354
|
const v = u[S].reduce((C, w) => C + w, 0);
|
|
13353
13355
|
return p[S] = v, p;
|
|
13354
13356
|
}, {});
|
|
13355
|
-
return Object.keys(u).filter((p) => p.startsWith(
|
|
13357
|
+
return Object.keys(u).filter((p) => p.startsWith(Cu)).forEach((p) => {
|
|
13356
13358
|
h += m[p];
|
|
13357
13359
|
}), { ...m, extensionTotal: h };
|
|
13358
13360
|
}, i = e.map((u) => ({ ...u, ...n(u) })), s = ((u) => Object.entries(u[0]).filter(([m, f]) => !["elapsedTime"].includes(m)).filter(([m, f]) => typeof f == "number").map(([m]) => m).reduce((m, f) => {
|
|
@@ -13376,10 +13378,10 @@ let $s = class extends Un {
|
|
|
13376
13378
|
stroke: "rgb(217, 217, 217)",
|
|
13377
13379
|
strokeWidth: 1
|
|
13378
13380
|
});
|
|
13379
|
-
this._context.mainComponent = o, n.set(Ze.MAIN, o), n.set(Ze.ROW, s), n.set(Ze.COLUMN, l), n.set(Ze.LEFT_TOP, a), t.addObjects([o],
|
|
13381
|
+
this._context.mainComponent = o, n.set(Ze.MAIN, o), n.set(Ze.ROW, s), n.set(Ze.COLUMN, l), n.set(Ze.LEFT_TOP, a), t.addObjects([o], Ou), t.addObjects(
|
|
13380
13382
|
[s, l, a],
|
|
13381
13383
|
ar
|
|
13382
|
-
), t.enableLayerCache(
|
|
13384
|
+
), t.enableLayerCache(Ou, ar);
|
|
13383
13385
|
}
|
|
13384
13386
|
_initViewports(e, t, n) {
|
|
13385
13387
|
const s = new _n(U.VIEW_MAIN, e, {
|
|
@@ -13459,7 +13461,7 @@ let $s = class extends Un {
|
|
|
13459
13461
|
*/
|
|
13460
13462
|
_addViewport(e) {
|
|
13461
13463
|
const t = this._context.scene, { rowHeader: n, columnHeader: i } = e.getConfig(), { viewMain: o } = this._initViewports(t, n, i);
|
|
13462
|
-
return new
|
|
13464
|
+
return new md(o), t.attachControl(), o;
|
|
13463
13465
|
}
|
|
13464
13466
|
_initRerenderScheduler() {
|
|
13465
13467
|
this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe((e) => {
|
|
@@ -13612,7 +13614,7 @@ function u0(r, e, t, n) {
|
|
|
13612
13614
|
col: a.column
|
|
13613
13615
|
};
|
|
13614
13616
|
}
|
|
13615
|
-
function
|
|
13617
|
+
function ph(r, e, t, n) {
|
|
13616
13618
|
const i = n.getFreeze();
|
|
13617
13619
|
if (!i || i.startRow <= 0 && i.startColumn <= 0)
|
|
13618
13620
|
return t.getViewport(U.VIEW_MAIN);
|
|
@@ -13626,7 +13628,7 @@ function fh(r, e, t, n) {
|
|
|
13626
13628
|
return t.getViewport(U.VIEW_MAIN_LEFT);
|
|
13627
13629
|
}
|
|
13628
13630
|
function h0(r, e, t, n) {
|
|
13629
|
-
const i =
|
|
13631
|
+
const i = Sh(r.left, r.top, e, t, n), o = Sh(r.right, r.bottom, e, t, n);
|
|
13630
13632
|
return {
|
|
13631
13633
|
left: i.x,
|
|
13632
13634
|
top: i.y,
|
|
@@ -13634,7 +13636,7 @@ function h0(r, e, t, n) {
|
|
|
13634
13636
|
bottom: o.y
|
|
13635
13637
|
};
|
|
13636
13638
|
}
|
|
13637
|
-
function
|
|
13639
|
+
function Sh(r, e, t, n, i) {
|
|
13638
13640
|
const { scaleX: o, scaleY: s } = t.getAncestorScale(), l = t.getViewport(U.VIEW_MAIN);
|
|
13639
13641
|
if (!l)
|
|
13640
13642
|
return {
|
|
@@ -13750,12 +13752,12 @@ const hr = {
|
|
|
13750
13752
|
redoMutations: h
|
|
13751
13753
|
}), !0) : !1;
|
|
13752
13754
|
}
|
|
13753
|
-
},
|
|
13755
|
+
}, nu = {
|
|
13754
13756
|
type: Q.COMMAND,
|
|
13755
13757
|
id: "sheet.command.add-worksheet-merge-all",
|
|
13756
13758
|
handler: async (r) => {
|
|
13757
13759
|
var d;
|
|
13758
|
-
const e = r.get(D), n = (d = r.get($).getCurrentSelections()) == null ? void 0 : d.map((u) => u.range), i =
|
|
13760
|
+
const e = r.get(D), n = (d = r.get($).getCurrentSelections()) == null ? void 0 : d.map((u) => u.range), i = Fd(Gl.MergeAll, n);
|
|
13759
13761
|
if (!(i != null && i.length))
|
|
13760
13762
|
return !1;
|
|
13761
13763
|
const s = r.get(V).getCurrentUnitForType(x.UNIVER_SHEET);
|
|
@@ -13769,12 +13771,12 @@ const hr = {
|
|
|
13769
13771
|
subUnitId: c
|
|
13770
13772
|
});
|
|
13771
13773
|
}
|
|
13772
|
-
},
|
|
13774
|
+
}, ru = {
|
|
13773
13775
|
type: Q.COMMAND,
|
|
13774
13776
|
id: "sheet.command.add-worksheet-merge-vertical",
|
|
13775
13777
|
handler: async (r) => {
|
|
13776
13778
|
var d;
|
|
13777
|
-
const e = r.get(D), n = (d = r.get($).getCurrentSelections()) == null ? void 0 : d.map((u) => u.range), i =
|
|
13779
|
+
const e = r.get(D), n = (d = r.get($).getCurrentSelections()) == null ? void 0 : d.map((u) => u.range), i = Fd(Gl.MergeVertical, n);
|
|
13778
13780
|
if (!(i != null && i.length))
|
|
13779
13781
|
return !1;
|
|
13780
13782
|
const s = r.get(V).getCurrentUnitForType(x.UNIVER_SHEET);
|
|
@@ -13789,12 +13791,12 @@ const hr = {
|
|
|
13789
13791
|
subUnitId: c
|
|
13790
13792
|
});
|
|
13791
13793
|
}
|
|
13792
|
-
},
|
|
13794
|
+
}, iu = {
|
|
13793
13795
|
type: Q.COMMAND,
|
|
13794
13796
|
id: "sheet.command.add-worksheet-merge-horizontal",
|
|
13795
13797
|
handler: async (r) => {
|
|
13796
13798
|
var d;
|
|
13797
|
-
const e = r.get(D), n = (d = r.get($).getCurrentSelections()) == null ? void 0 : d.map((u) => u.range), i =
|
|
13799
|
+
const e = r.get(D), n = (d = r.get($).getCurrentSelections()) == null ? void 0 : d.map((u) => u.range), i = Fd(Gl.MergeHorizontal, n);
|
|
13798
13800
|
if (!(i != null && i.length))
|
|
13799
13801
|
return !1;
|
|
13800
13802
|
const s = r.get(V).getCurrentUnitForType(x.UNIVER_SHEET);
|
|
@@ -13833,7 +13835,7 @@ const hr = {
|
|
|
13833
13835
|
children: { title: n.t("merge.confirm.dismantleMergeCellWaring") },
|
|
13834
13836
|
cancelText: n.t("button.cancel"),
|
|
13835
13837
|
confirmText: n.t("button.confirm")
|
|
13836
|
-
}) ? t.executeCommand(
|
|
13838
|
+
}) ? t.executeCommand(Mu.id) : !0 : t.executeCommand(Mu.id);
|
|
13837
13839
|
}
|
|
13838
13840
|
}, bi = {
|
|
13839
13841
|
type: Q.COMMAND,
|
|
@@ -13865,7 +13867,7 @@ const hr = {
|
|
|
13865
13867
|
children: { title: n.t("merge.confirm.dismantleMergeCellWaring") },
|
|
13866
13868
|
cancelText: n.t("button.cancel"),
|
|
13867
13869
|
confirmText: n.t("button.confirm")
|
|
13868
|
-
}) ? t.executeCommand(
|
|
13870
|
+
}) ? t.executeCommand(Pu.id) : !0 : t.executeCommand(Pu.id);
|
|
13869
13871
|
}
|
|
13870
13872
|
}, _i = {
|
|
13871
13873
|
type: Q.COMMAND,
|
|
@@ -14088,9 +14090,9 @@ const Bn = {
|
|
|
14088
14090
|
subUnitId: c,
|
|
14089
14091
|
ruleIds: [f.id]
|
|
14090
14092
|
};
|
|
14091
|
-
return await e.executeCommand(
|
|
14093
|
+
return await e.executeCommand(Eu.id, p) && n.pushUndoRedo({
|
|
14092
14094
|
unitID: a,
|
|
14093
|
-
redoMutations: [{ id:
|
|
14095
|
+
redoMutations: [{ id: Eu.id, params: p }],
|
|
14094
14096
|
undoMutations: [{ id: hv.id, params: { unitId: a, subUnitId: c, rules: [f] } }]
|
|
14095
14097
|
}), !0;
|
|
14096
14098
|
} else
|
|
@@ -14230,7 +14232,7 @@ const Bn = {
|
|
|
14230
14232
|
async handler(r) {
|
|
14231
14233
|
return await r.get(D).executeCommand("sheet-permission.operation.openDialog"), !0;
|
|
14232
14234
|
}
|
|
14233
|
-
},
|
|
14235
|
+
}, ou = {
|
|
14234
14236
|
id: "sheet.operation.set-activate-cell-edit",
|
|
14235
14237
|
type: Q.OPERATION,
|
|
14236
14238
|
handler: (r, e) => (r.get(it).setEditCell(e), !0)
|
|
@@ -14463,7 +14465,7 @@ const Bn = {
|
|
|
14463
14465
|
d: "M119.991 3.86215H-0.0090332V0.862152H119.991V3.86215Z",
|
|
14464
14466
|
fill: "black"
|
|
14465
14467
|
}
|
|
14466
|
-
) }),
|
|
14468
|
+
) }), vh = () => /* @__PURE__ */ b("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ b(
|
|
14467
14469
|
"path",
|
|
14468
14470
|
{
|
|
14469
14471
|
fillRule: "evenodd",
|
|
@@ -14472,7 +14474,7 @@ const Bn = {
|
|
|
14472
14474
|
fill: "black"
|
|
14473
14475
|
}
|
|
14474
14476
|
) });
|
|
14475
|
-
function
|
|
14477
|
+
function Ch(r) {
|
|
14476
14478
|
const { type: e = Oe.THIN } = r;
|
|
14477
14479
|
switch (e) {
|
|
14478
14480
|
case Oe.DASH_DOT:
|
|
@@ -14494,12 +14496,12 @@ function vh(r) {
|
|
|
14494
14496
|
case Oe.THICK:
|
|
14495
14497
|
return /* @__PURE__ */ b(P0, {});
|
|
14496
14498
|
case Oe.THIN:
|
|
14497
|
-
return /* @__PURE__ */ b(
|
|
14499
|
+
return /* @__PURE__ */ b(vh, {});
|
|
14498
14500
|
default:
|
|
14499
|
-
return /* @__PURE__ */ b(
|
|
14501
|
+
return /* @__PURE__ */ b(vh, {});
|
|
14500
14502
|
}
|
|
14501
14503
|
}
|
|
14502
|
-
const
|
|
14504
|
+
const su = `${Hi}_BORDER_PANEL_COMPONENT`, hf = [
|
|
14503
14505
|
{
|
|
14504
14506
|
label: "borderLine.borderTop",
|
|
14505
14507
|
icon: "UpBorder",
|
|
@@ -14657,7 +14659,7 @@ function gf(r) {
|
|
|
14657
14659
|
/* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(
|
|
14658
14660
|
Ns,
|
|
14659
14661
|
{
|
|
14660
|
-
overlay: /* @__PURE__ */ b("div", { className: "univer-rounded-lg univer-p-4", children: /* @__PURE__ */ b(
|
|
14662
|
+
overlay: /* @__PURE__ */ b("div", { className: "univer-rounded-lg univer-p-4", children: /* @__PURE__ */ b(xd, { onChange: (a) => o(a, "color") }) }),
|
|
14661
14663
|
children: /* @__PURE__ */ q(
|
|
14662
14664
|
"button",
|
|
14663
14665
|
{
|
|
@@ -14687,7 +14689,7 @@ function gf(r) {
|
|
|
14687
14689
|
hover:univer-bg-gray-100
|
|
14688
14690
|
`,
|
|
14689
14691
|
onClick: () => o(a.value, "style"),
|
|
14690
|
-
children: /* @__PURE__ */ b(
|
|
14692
|
+
children: /* @__PURE__ */ b(Ch, { type: a.value })
|
|
14691
14693
|
},
|
|
14692
14694
|
a.value
|
|
14693
14695
|
)) }) }),
|
|
@@ -14701,7 +14703,7 @@ function gf(r) {
|
|
|
14701
14703
|
`,
|
|
14702
14704
|
type: "button",
|
|
14703
14705
|
children: [
|
|
14704
|
-
/* @__PURE__ */ b(
|
|
14706
|
+
/* @__PURE__ */ b(Ch, { type: Oe.THIN }),
|
|
14705
14707
|
/* @__PURE__ */ b(vi, { className: "univer-text-gray-400" })
|
|
14706
14708
|
]
|
|
14707
14709
|
}
|
|
@@ -14713,7 +14715,7 @@ function gf(r) {
|
|
|
14713
14715
|
}
|
|
14714
14716
|
const Xa = {
|
|
14715
14717
|
width: "100%"
|
|
14716
|
-
},
|
|
14718
|
+
}, bh = (r) => {
|
|
14717
14719
|
const {
|
|
14718
14720
|
inputId: e,
|
|
14719
14721
|
state: t = !1,
|
|
@@ -14727,7 +14729,7 @@ const Xa = {
|
|
|
14727
14729
|
hidden: d = !1,
|
|
14728
14730
|
// 是否对用户隐藏,与excel兼容,暂时用不上。
|
|
14729
14731
|
id: u
|
|
14730
|
-
} = r, g = L(V).getCurrentUnitForType(x.UNIVER_SHEET), m = L(xe), f = L(Xo), p = L(Zg), S = L(Yg), v = L(Xn), C = Dt(() => v.get(nm), []), w = Dt(() => v.get(
|
|
14732
|
+
} = r, g = L(V).getCurrentUnitForType(x.UNIVER_SHEET), m = L(xe), f = L(Xo), p = L(Zg), S = L(Yg), v = L(Xn), C = Dt(() => v.get(nm), []), w = Dt(() => v.get(Hd), []);
|
|
14731
14733
|
if (g == null)
|
|
14732
14734
|
return;
|
|
14733
14735
|
const R = Dt(() => g.getUnitId(), []), I = Dt(() => g.getActiveSheet().getSheetId(), []), [y, M] = ne(s), [P, E] = ne(l), [T, A] = ne(a), [k, O] = ne(c), [H, F] = ne(""), [X, B] = ne(n), [j, Y] = ne(!0), le = [{
|
|
@@ -14785,7 +14787,7 @@ const Xa = {
|
|
|
14785
14787
|
i && i({
|
|
14786
14788
|
id: u || "",
|
|
14787
14789
|
name: y,
|
|
14788
|
-
formulaOrRefString: S.convertRefersToAbsolute(P,
|
|
14790
|
+
formulaOrRefString: S.convertRefersToAbsolute(P, hu.ALL, hu.ALL, ce),
|
|
14789
14791
|
comment: T,
|
|
14790
14792
|
localSheetId: k
|
|
14791
14793
|
});
|
|
@@ -14834,7 +14836,7 @@ const Xa = {
|
|
|
14834
14836
|
/* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(Vs, { affixWrapperStyle: Xa, placeholder: m.t("definedName.inputCommentPlaceholder"), value: T, onChange: A }) }),
|
|
14835
14837
|
/* @__PURE__ */ q("div", { style: { display: H.length === 0 ? "none" : "flex" }, className: Pt.definedNameInputValidation, children: [
|
|
14836
14838
|
/* @__PURE__ */ b("span", { children: H }),
|
|
14837
|
-
/* @__PURE__ */ b(
|
|
14839
|
+
/* @__PURE__ */ b(Xd, {})
|
|
14838
14840
|
] }),
|
|
14839
14841
|
/* @__PURE__ */ q("div", { children: [
|
|
14840
14842
|
/* @__PURE__ */ b(
|
|
@@ -14897,7 +14899,7 @@ const Xa = {
|
|
|
14897
14899
|
const { formulaOrRefString: A, id: k } = T, O = i.getWorksheetByRef(s, A);
|
|
14898
14900
|
if (!O)
|
|
14899
14901
|
return;
|
|
14900
|
-
O.isSheetHidden() && await r.executeCommand(
|
|
14902
|
+
O.isSheetHidden() && await r.executeCommand(Cd.id, { unitId: s, subUnitId: O.getSheetId() }), i.focusRange(s, k);
|
|
14901
14903
|
}, R = () => {
|
|
14902
14904
|
const T = d.length + 1, A = n.t("definedName.defaultName") + T;
|
|
14903
14905
|
if (i.getValueByName(s, A) == null)
|
|
@@ -14929,10 +14931,10 @@ const Xa = {
|
|
|
14929
14931
|
return /* @__PURE__ */ b("div", { className: Pt.definedNameContainer, children: /* @__PURE__ */ q("div", { className: Pt.definedNameContainerScroll, children: [
|
|
14930
14932
|
/* @__PURE__ */ q("div", { children: [
|
|
14931
14933
|
/* @__PURE__ */ q("div", { onClick: M, className: Pt.definedNameContainerAddButton, style: { display: a ? "none" : "flex" }, children: [
|
|
14932
|
-
/* @__PURE__ */ b(
|
|
14934
|
+
/* @__PURE__ */ b(zd, {}),
|
|
14933
14935
|
/* @__PURE__ */ b("span", { className: Pt.definedNameContainerAddButtonText, children: n.t("definedName.addButton") })
|
|
14934
14936
|
] }),
|
|
14935
|
-
a && /* @__PURE__ */ b(
|
|
14937
|
+
a && /* @__PURE__ */ b(bh, { confirm: p, cancel: y, state: a, inputId: "insertDefinedName", name: R(), formulaOrRefString: I() })
|
|
14936
14938
|
] }, "insertDefinedName"),
|
|
14937
14939
|
d.map((T, A) => /* @__PURE__ */ q("div", { children: [
|
|
14938
14940
|
/* @__PURE__ */ q("div", { onClick: () => {
|
|
@@ -14952,11 +14954,19 @@ const Xa = {
|
|
|
14952
14954
|
S(T.id);
|
|
14953
14955
|
}, children: /* @__PURE__ */ b(Ql, {}) }) })
|
|
14954
14956
|
] }),
|
|
14955
|
-
/* @__PURE__ */ b(
|
|
14956
|
-
|
|
14957
|
-
|
|
14957
|
+
/* @__PURE__ */ b(
|
|
14958
|
+
Kv,
|
|
14959
|
+
{
|
|
14960
|
+
visible: m === T.id,
|
|
14961
|
+
onClose: v,
|
|
14962
|
+
onConfirm: () => {
|
|
14963
|
+
C(T.id);
|
|
14964
|
+
},
|
|
14965
|
+
children: n.t("definedName.deleteConfirmText")
|
|
14966
|
+
}
|
|
14967
|
+
),
|
|
14958
14968
|
T.id === h && /* @__PURE__ */ b(
|
|
14959
|
-
|
|
14969
|
+
bh,
|
|
14960
14970
|
{
|
|
14961
14971
|
confirm: p,
|
|
14962
14972
|
cancel: y,
|
|
@@ -14992,7 +15002,7 @@ function T0(r) {
|
|
|
14992
15002
|
selections: [
|
|
14993
15003
|
{
|
|
14994
15004
|
label: {
|
|
14995
|
-
name:
|
|
15005
|
+
name: su,
|
|
14996
15006
|
hoverable: !1,
|
|
14997
15007
|
selectable: !1
|
|
14998
15008
|
},
|
|
@@ -15052,7 +15062,7 @@ function O0(r) {
|
|
|
15052
15062
|
disabled$: pe(r, { workbookTypes: [J], worksheetTypes: [te] })
|
|
15053
15063
|
};
|
|
15054
15064
|
}
|
|
15055
|
-
function
|
|
15065
|
+
function _h(r) {
|
|
15056
15066
|
return {
|
|
15057
15067
|
id: Io.id,
|
|
15058
15068
|
type: K.BUTTON,
|
|
@@ -15062,7 +15072,7 @@ function bh(r) {
|
|
|
15062
15072
|
disabled$: pe(r, { workbookTypes: [J], worksheetTypes: [te, vv] })
|
|
15063
15073
|
};
|
|
15064
15074
|
}
|
|
15065
|
-
function
|
|
15075
|
+
function wh(r) {
|
|
15066
15076
|
return {
|
|
15067
15077
|
id: Ro.id,
|
|
15068
15078
|
type: K.BUTTON,
|
|
@@ -15243,7 +15253,7 @@ function W0(r) {
|
|
|
15243
15253
|
function B0(r) {
|
|
15244
15254
|
const e = r.get(V), t = r.get($), n = r.get(D), i = 1;
|
|
15245
15255
|
return {
|
|
15246
|
-
id:
|
|
15256
|
+
id: Td.id,
|
|
15247
15257
|
type: K.BUTTON,
|
|
15248
15258
|
icon: "InsertRowAbove",
|
|
15249
15259
|
label: {
|
|
@@ -15307,7 +15317,7 @@ function F0(r) {
|
|
|
15307
15317
|
function U0(r) {
|
|
15308
15318
|
const e = r.get(V), t = r.get($), n = r.get(D), i = 1;
|
|
15309
15319
|
return {
|
|
15310
|
-
id:
|
|
15320
|
+
id: Td.id,
|
|
15311
15321
|
type: K.BUTTON,
|
|
15312
15322
|
icon: "RightInsertColumn",
|
|
15313
15323
|
label: {
|
|
@@ -15353,7 +15363,7 @@ function X0(r) {
|
|
|
15353
15363
|
}
|
|
15354
15364
|
function z0(r) {
|
|
15355
15365
|
return {
|
|
15356
|
-
id:
|
|
15366
|
+
id: nu.id,
|
|
15357
15367
|
type: K.BUTTON,
|
|
15358
15368
|
title: "merge.all",
|
|
15359
15369
|
icon: "MergeAllSingle",
|
|
@@ -15362,7 +15372,7 @@ function z0(r) {
|
|
|
15362
15372
|
}
|
|
15363
15373
|
function j0(r) {
|
|
15364
15374
|
return {
|
|
15365
|
-
id:
|
|
15375
|
+
id: ru.id,
|
|
15366
15376
|
type: K.BUTTON,
|
|
15367
15377
|
title: "merge.vertical",
|
|
15368
15378
|
icon: "VerticalIntegrationSingle",
|
|
@@ -15371,7 +15381,7 @@ function j0(r) {
|
|
|
15371
15381
|
}
|
|
15372
15382
|
function Y0(r) {
|
|
15373
15383
|
return {
|
|
15374
|
-
id:
|
|
15384
|
+
id: iu.id,
|
|
15375
15385
|
type: K.BUTTON,
|
|
15376
15386
|
title: "merge.horizontal",
|
|
15377
15387
|
icon: "HorizontalMergeSingle",
|
|
@@ -15998,11 +16008,11 @@ const hR = {
|
|
|
15998
16008
|
menuItemFactory: O0,
|
|
15999
16009
|
[Io.id]: {
|
|
16000
16010
|
order: 0,
|
|
16001
|
-
menuItemFactory:
|
|
16011
|
+
menuItemFactory: _h
|
|
16002
16012
|
},
|
|
16003
16013
|
[Ro.id]: {
|
|
16004
16014
|
order: 1,
|
|
16005
|
-
menuItemFactory:
|
|
16015
|
+
menuItemFactory: wh
|
|
16006
16016
|
},
|
|
16007
16017
|
[Ko.id]: {
|
|
16008
16018
|
order: 2,
|
|
@@ -16132,7 +16142,7 @@ const hR = {
|
|
|
16132
16142
|
},
|
|
16133
16143
|
[Io.id]: {
|
|
16134
16144
|
order: 2,
|
|
16135
|
-
menuItemFactory:
|
|
16145
|
+
menuItemFactory: _h
|
|
16136
16146
|
},
|
|
16137
16147
|
[Cg.id]: {
|
|
16138
16148
|
order: 3,
|
|
@@ -16144,7 +16154,7 @@ const hR = {
|
|
|
16144
16154
|
},
|
|
16145
16155
|
[Fc]: {
|
|
16146
16156
|
order: 5,
|
|
16147
|
-
menuItemFactory:
|
|
16157
|
+
menuItemFactory: hh,
|
|
16148
16158
|
[or.id]: {
|
|
16149
16159
|
order: 0,
|
|
16150
16160
|
menuItemFactory: Na
|
|
@@ -16235,7 +16245,7 @@ const hR = {
|
|
|
16235
16245
|
},
|
|
16236
16246
|
[Qe.LAYOUT]: {
|
|
16237
16247
|
order: 1,
|
|
16238
|
-
[
|
|
16248
|
+
[Td.id]: {
|
|
16239
16249
|
order: 0,
|
|
16240
16250
|
menuItemFactory: B0
|
|
16241
16251
|
},
|
|
@@ -16245,7 +16255,7 @@ const hR = {
|
|
|
16245
16255
|
},
|
|
16246
16256
|
[Ro.id]: {
|
|
16247
16257
|
order: 1,
|
|
16248
|
-
menuItemFactory:
|
|
16258
|
+
menuItemFactory: wh
|
|
16249
16259
|
},
|
|
16250
16260
|
[$l.id]: {
|
|
16251
16261
|
order: 2,
|
|
@@ -16265,7 +16275,7 @@ const hR = {
|
|
|
16265
16275
|
},
|
|
16266
16276
|
[Fc]: {
|
|
16267
16277
|
order: 5,
|
|
16268
|
-
menuItemFactory:
|
|
16278
|
+
menuItemFactory: hh,
|
|
16269
16279
|
[or.id]: {
|
|
16270
16280
|
order: 0,
|
|
16271
16281
|
menuItemFactory: Na
|
|
@@ -16571,7 +16581,7 @@ const hR = {
|
|
|
16571
16581
|
jumpOver: jn.moveGap
|
|
16572
16582
|
}
|
|
16573
16583
|
}, Ff = {
|
|
16574
|
-
id:
|
|
16584
|
+
id: Ud.id,
|
|
16575
16585
|
description: "shortcut.sheet.select-all",
|
|
16576
16586
|
group: "3_sheet-view",
|
|
16577
16587
|
binding: Z.A | Te.CTRL_COMMAND,
|
|
@@ -16626,7 +16636,7 @@ const hR = {
|
|
|
16626
16636
|
delta: 0.2
|
|
16627
16637
|
}
|
|
16628
16638
|
}, Gf = {
|
|
16629
|
-
id:
|
|
16639
|
+
id: dd.id,
|
|
16630
16640
|
binding: Z.EQUAL | Te.CTRL_COMMAND
|
|
16631
16641
|
}, qf = {
|
|
16632
16642
|
id: jo.id,
|
|
@@ -16639,7 +16649,7 @@ const hR = {
|
|
|
16639
16649
|
delta: -0.2
|
|
16640
16650
|
}
|
|
16641
16651
|
}, Qf = {
|
|
16642
|
-
id:
|
|
16652
|
+
id: dd.id,
|
|
16643
16653
|
binding: Z.MINUS | Te.CTRL_COMMAND
|
|
16644
16654
|
}, Kf = {
|
|
16645
16655
|
id: jo.id,
|
|
@@ -16652,7 +16662,7 @@ const hR = {
|
|
|
16652
16662
|
reset: !0
|
|
16653
16663
|
}
|
|
16654
16664
|
}, Jf = {
|
|
16655
|
-
id:
|
|
16665
|
+
id: dd.id,
|
|
16656
16666
|
binding: Z.Digit0 | Te.CTRL_COMMAND
|
|
16657
16667
|
};
|
|
16658
16668
|
var mR = Object.getOwnPropertyDescriptor, fR = (r, e, t, n) => {
|
|
@@ -16669,14 +16679,14 @@ let rl = class extends de {
|
|
|
16669
16679
|
}
|
|
16670
16680
|
_initComponents() {
|
|
16671
16681
|
const r = this._componentManager;
|
|
16672
|
-
this.disposeWithMe(r.register(bn, qm)), this.disposeWithMe(r.register(
|
|
16682
|
+
this.disposeWithMe(r.register(bn, qm)), this.disposeWithMe(r.register(su, gf)), this.disposeWithMe(r.register(Go, xd)), this.disposeWithMe(r.register($d, tg)), this.disposeWithMe(r.register(eu, ng)), this.disposeWithMe(r.register(tu, rg)), this.disposeWithMe(r.register(po, mf)), this.disposeWithMe(r.register("HideGridlines", _m));
|
|
16673
16683
|
}
|
|
16674
16684
|
_initCommands() {
|
|
16675
16685
|
[
|
|
16676
|
-
|
|
16686
|
+
nu,
|
|
16677
16687
|
hr,
|
|
16688
|
+
iu,
|
|
16678
16689
|
ru,
|
|
16679
|
-
nu,
|
|
16680
16690
|
jo,
|
|
16681
16691
|
Qt,
|
|
16682
16692
|
Bt,
|
|
@@ -16689,9 +16699,9 @@ let rl = class extends de {
|
|
|
16689
16699
|
ea,
|
|
16690
16700
|
gn,
|
|
16691
16701
|
gm,
|
|
16692
|
-
|
|
16693
|
-
|
|
16694
|
-
|
|
16702
|
+
Ud,
|
|
16703
|
+
ou,
|
|
16704
|
+
Rd,
|
|
16695
16705
|
pi,
|
|
16696
16706
|
at,
|
|
16697
16707
|
Zl,
|
|
@@ -16705,12 +16715,12 @@ let rl = class extends de {
|
|
|
16705
16715
|
na,
|
|
16706
16716
|
vo,
|
|
16707
16717
|
Gm,
|
|
16708
|
-
|
|
16709
|
-
yd,
|
|
16710
|
-
Pd,
|
|
16718
|
+
Id,
|
|
16711
16719
|
Md,
|
|
16720
|
+
Ed,
|
|
16721
|
+
Pd,
|
|
16712
16722
|
ra,
|
|
16713
|
-
|
|
16723
|
+
Jd,
|
|
16714
16724
|
Zo,
|
|
16715
16725
|
ia,
|
|
16716
16726
|
hn,
|
|
@@ -16719,7 +16729,7 @@ let rl = class extends de {
|
|
|
16719
16729
|
oa,
|
|
16720
16730
|
sa,
|
|
16721
16731
|
mm,
|
|
16722
|
-
|
|
16732
|
+
yd,
|
|
16723
16733
|
Yo,
|
|
16724
16734
|
tn,
|
|
16725
16735
|
ga,
|
|
@@ -16728,7 +16738,7 @@ let rl = class extends de {
|
|
|
16728
16738
|
bi,
|
|
16729
16739
|
Jo,
|
|
16730
16740
|
Ko,
|
|
16731
|
-
|
|
16741
|
+
Zd,
|
|
16732
16742
|
br,
|
|
16733
16743
|
uo,
|
|
16734
16744
|
// permission
|
|
@@ -16744,8 +16754,8 @@ let rl = class extends de {
|
|
|
16744
16754
|
hi,
|
|
16745
16755
|
ma,
|
|
16746
16756
|
la,
|
|
16747
|
-
|
|
16748
|
-
|
|
16757
|
+
Nd,
|
|
16758
|
+
Vd
|
|
16749
16759
|
].forEach((r) => {
|
|
16750
16760
|
this.disposeWithMe(this._commandService.registerCommand(r));
|
|
16751
16761
|
});
|
|
@@ -16815,7 +16825,7 @@ let rl = class extends de {
|
|
|
16815
16825
|
_initFocusHandler() {
|
|
16816
16826
|
this.disposeWithMe(
|
|
16817
16827
|
this._layoutService.registerFocusHandler(x.UNIVER_SHEET, (r) => {
|
|
16818
|
-
const e = this._injector.get(be), t = this._injector.get(V), n =
|
|
16828
|
+
const e = this._injector.get(be), t = this._injector.get(V), n = gd(x.UNIVER_DOC, t, e), i = n == null ? void 0 : n.with(_r);
|
|
16819
16829
|
i == null || i.focus();
|
|
16820
16830
|
})
|
|
16821
16831
|
);
|
|
@@ -16827,7 +16837,7 @@ rl = fR([
|
|
|
16827
16837
|
qn(2, xl),
|
|
16828
16838
|
qn(3, D),
|
|
16829
16839
|
qn(4, kl),
|
|
16830
|
-
qn(5,
|
|
16840
|
+
qn(5, pd),
|
|
16831
16841
|
qn(6, Hl),
|
|
16832
16842
|
qn(7, Fn)
|
|
16833
16843
|
], rl);
|
|
@@ -16864,7 +16874,7 @@ var SR = Object.getOwnPropertyDescriptor, vR = (r, e, t, n) => {
|
|
|
16864
16874
|
for (var i = n > 1 ? void 0 : n ? SR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
16865
16875
|
(s = r[o]) && (i = s(i) || i);
|
|
16866
16876
|
return i;
|
|
16867
|
-
},
|
|
16877
|
+
}, Rh = (r, e) => (t, n) => e(t, n, r);
|
|
16868
16878
|
let yo = class extends de {
|
|
16869
16879
|
constructor(e, t) {
|
|
16870
16880
|
super();
|
|
@@ -16893,7 +16903,7 @@ let yo = class extends de {
|
|
|
16893
16903
|
const { unitId: t, subUnitId: n } = e.params, i = this._univerInstanceService.getUniverSheetInstance(t);
|
|
16894
16904
|
if (!i || ((a = i.getActiveSheet()) == null ? void 0 : a.getSheetId()) !== n)
|
|
16895
16905
|
return;
|
|
16896
|
-
const s = i.getActiveSheetIndex(), l =
|
|
16906
|
+
const s = i.getActiveSheetIndex(), l = Ih(i, s);
|
|
16897
16907
|
this._switchToNextSheet(t, l);
|
|
16898
16908
|
}
|
|
16899
16909
|
_beforeAdjustActiveSheetOnRemoveSheet(e) {
|
|
@@ -16910,7 +16920,7 @@ let yo = class extends de {
|
|
|
16910
16920
|
if (!n)
|
|
16911
16921
|
return;
|
|
16912
16922
|
if (n.getActiveSheet().getSheetId() === e.params.subUnitId) {
|
|
16913
|
-
const o = this._previousSheetIndex, s = o >= 1 ? o - 1 : 0, l =
|
|
16923
|
+
const o = this._previousSheetIndex, s = o >= 1 ? o - 1 : 0, l = Ih(n, s);
|
|
16914
16924
|
this._switchToNextSheet(t, l);
|
|
16915
16925
|
}
|
|
16916
16926
|
}
|
|
@@ -16935,10 +16945,10 @@ let yo = class extends de {
|
|
|
16935
16945
|
}
|
|
16936
16946
|
};
|
|
16937
16947
|
yo = vR([
|
|
16938
|
-
|
|
16939
|
-
|
|
16948
|
+
Rh(0, D),
|
|
16949
|
+
Rh(1, V)
|
|
16940
16950
|
], yo);
|
|
16941
|
-
function
|
|
16951
|
+
function Ih(r, e) {
|
|
16942
16952
|
const t = r.getSheetSize();
|
|
16943
16953
|
for (let n = e; n > -1; n--) {
|
|
16944
16954
|
const i = r.getSheetByIndex(n);
|
|
@@ -17195,7 +17205,7 @@ let Mo = class extends de {
|
|
|
17195
17205
|
return null;
|
|
17196
17206
|
if (this._isSelectionMoving && !n.showOnSelectionMoving)
|
|
17197
17207
|
return;
|
|
17198
|
-
const m = s != null ? s :
|
|
17208
|
+
const m = s != null ? s : ph(e, t, u.scene, a);
|
|
17199
17209
|
if (!m)
|
|
17200
17210
|
return null;
|
|
17201
17211
|
const { position: f, position$: p, disposable: S, updateRowCol: v } = this._createCellPositionObserver(e, t, u, h, m), { rects$: C, disposable: w } = this._createHiddenRectObserver({
|
|
@@ -17250,7 +17260,7 @@ let Mo = class extends de {
|
|
|
17250
17260
|
return null;
|
|
17251
17261
|
if (g.selectionMoving && !s)
|
|
17252
17262
|
return;
|
|
17253
|
-
const m = o != null ? o :
|
|
17263
|
+
const m = o != null ? o : ph(e.startRow, e.startColumn, u.scene, a);
|
|
17254
17264
|
if (!m)
|
|
17255
17265
|
return null;
|
|
17256
17266
|
const { position: f, position$: p, disposable: S, updateRowCol: v, topLeftPos$: C, rightBottomPos$: w } = this._createRangePositionObserver(e, u, h, m), { rects$: R, disposable: I } = this._createHiddenRectObserver({
|
|
@@ -17387,7 +17397,7 @@ var _R = Object.getOwnPropertyDescriptor, wR = (r, e, t, n) => {
|
|
|
17387
17397
|
for (var i = n > 1 ? void 0 : n ? _R(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
17388
17398
|
(s = r[o]) && (i = s(i) || i);
|
|
17389
17399
|
return i;
|
|
17390
|
-
},
|
|
17400
|
+
}, yh = (r, e) => (t, n) => e(t, n, r), io = /* @__PURE__ */ ((r) => (r[r.INFO = 0] = "INFO", r[r.WARNING = 1] = "WARNING", r[r.ERROR = 2] = "ERROR", r))(io || {});
|
|
17391
17401
|
let Po = class extends de {
|
|
17392
17402
|
constructor(e, t) {
|
|
17393
17403
|
super();
|
|
@@ -17434,8 +17444,8 @@ let Po = class extends de {
|
|
|
17434
17444
|
}
|
|
17435
17445
|
};
|
|
17436
17446
|
Po = wR([
|
|
17437
|
-
|
|
17438
|
-
|
|
17447
|
+
yh(0, be),
|
|
17448
|
+
yh(1, N(Mo))
|
|
17439
17449
|
], Po);
|
|
17440
17450
|
const RR = "univer-cell-alert", IR = "univer-cell-alert-title", yR = "univer-cell-alert-icon", MR = "univer-cell-alert-icon-error", PR = "univer-cell-alert-icon-info", ER = "univer-cell-alert-icon-warning", TR = "univer-cell-alert-content", wn = {
|
|
17441
17451
|
cellAlert: RR,
|
|
@@ -17452,7 +17462,7 @@ function OR({ popup: r }) {
|
|
|
17452
17462
|
if (!e)
|
|
17453
17463
|
return null;
|
|
17454
17464
|
const { type: t, title: n, message: i } = e, o = {
|
|
17455
|
-
[io.ERROR]: /* @__PURE__ */ b(
|
|
17465
|
+
[io.ERROR]: /* @__PURE__ */ b(Xd, { className: qe(wn.cellAlertIcon, wn.cellAlertIconError) }),
|
|
17456
17466
|
[io.INFO]: /* @__PURE__ */ b(Vc, { className: qe(wn.cellAlertIcon, wn.cellAlertIconInfo) }),
|
|
17457
17467
|
[io.WARNING]: /* @__PURE__ */ b(Vc, { className: qe(wn.cellAlertIcon, wn.cellAlertIconWarning) })
|
|
17458
17468
|
};
|
|
@@ -17488,7 +17498,7 @@ const HR = "univer-sheet-paste-options-wrapper", NR = "univer-sheet-paste-option
|
|
|
17488
17498
|
sheetPasteOptionsMenuItem: DR,
|
|
17489
17499
|
sheetPasteOptionsMenuItemTitle: LR,
|
|
17490
17500
|
sheetPasteOptionsMenuItemIcon: WR
|
|
17491
|
-
},
|
|
17501
|
+
}, Mh = 2, BR = [
|
|
17492
17502
|
{ value: "DEFAULT_PASTE", label: "rightClick.paste" },
|
|
17493
17503
|
{ value: "SPECIAL_PASTE_VALUE", label: "rightClick.pasteValue" },
|
|
17494
17504
|
{ value: "SPECIAL_PASTE_FORMAT", label: "rightClick.pasteFormat" },
|
|
@@ -17530,8 +17540,8 @@ const HR = "univer-sheet-paste-options-wrapper", NR = "univer-sheet-paste-option
|
|
|
17530
17540
|
{
|
|
17531
17541
|
className: Gr.sheetPasteOptionsWrapper,
|
|
17532
17542
|
style: {
|
|
17533
|
-
left: d.positionX +
|
|
17534
|
-
top: d.positionY +
|
|
17543
|
+
left: d.positionX + Mh,
|
|
17544
|
+
top: d.positionY + Mh
|
|
17535
17545
|
},
|
|
17536
17546
|
onMouseEnter: () => s(!0),
|
|
17537
17547
|
onMouseLeave: () => s(!1),
|
|
@@ -17680,7 +17690,7 @@ function jR(r, e, t) {
|
|
|
17680
17690
|
},
|
|
17681
17691
|
unitId: l
|
|
17682
17692
|
}, P = g.onCommandExecute({
|
|
17683
|
-
id:
|
|
17693
|
+
id: Sd.id,
|
|
17684
17694
|
params: { toRange: d, fromRange: u }
|
|
17685
17695
|
}), E = f.getMergeData(), T = p.getMergeData(), A = E.filter((B) => he.intersects(B, u)), k = T.filter((B) => he.intersects(B, d)), O = A.map((B) => he.getRelativeRange(B, u)).map((B) => he.getPositionRange(B, d)), H = Fl(O), F = [
|
|
17686
17696
|
{
|
|
@@ -17810,7 +17820,7 @@ function tp(r, e, t, n = !1) {
|
|
|
17810
17820
|
var I;
|
|
17811
17821
|
const p = {
|
|
17812
17822
|
s: Object.assign({}, {
|
|
17813
|
-
...
|
|
17823
|
+
...cd,
|
|
17814
17824
|
pd: SS,
|
|
17815
17825
|
bg: null,
|
|
17816
17826
|
cl: null
|
|
@@ -17965,11 +17975,11 @@ function jc(r, e, t) {
|
|
|
17965
17975
|
}
|
|
17966
17976
|
function ZR(r) {
|
|
17967
17977
|
if (!r.includes("\r") && ie.isLegalUrl(r)) {
|
|
17968
|
-
const n =
|
|
17978
|
+
const n = ld(), i = `${r}`, o = {
|
|
17969
17979
|
startIndex: 0,
|
|
17970
17980
|
endIndex: i.length - 1,
|
|
17971
17981
|
rangeId: n,
|
|
17972
|
-
rangeType:
|
|
17982
|
+
rangeType: ad.HYPERLINK,
|
|
17973
17983
|
properties: {
|
|
17974
17984
|
url: r
|
|
17975
17985
|
}
|
|
@@ -18081,10 +18091,10 @@ let Ri = class extends Un {
|
|
|
18081
18091
|
(o || s) && (l.rowspan = `${o || 1}`, l.colspan = `${s || 1}`);
|
|
18082
18092
|
const a = t.getRange(n, i), c = t.getMergedCell(n, i), d = a.getTextStyle();
|
|
18083
18093
|
let u = "";
|
|
18084
|
-
if (d && (u =
|
|
18094
|
+
if (d && (u = gu(d)), c) {
|
|
18085
18095
|
const h = c.endRow, g = c.endColumn, f = t.getRange(h, g).getTextStyle();
|
|
18086
18096
|
if (f) {
|
|
18087
|
-
const p =
|
|
18097
|
+
const p = gu(f);
|
|
18088
18098
|
u ? u += p ? `;${p}` : "" : u = p;
|
|
18089
18099
|
}
|
|
18090
18100
|
}
|
|
@@ -18207,7 +18217,7 @@ let Ri = class extends Un {
|
|
|
18207
18217
|
// eslint-disable-next-line max-lines-per-function
|
|
18208
18218
|
onPasteColumns(o, s, l) {
|
|
18209
18219
|
var C;
|
|
18210
|
-
const { range: a } = o, c = [], d = [], u = i.getMaxColumns(), h = u - 1, g = a.cols[a.cols.length - 1] - h, m = s.length - g, f = (C = e._configService.getConfig(
|
|
18220
|
+
const { range: a } = o, c = [], d = [], u = i.getMaxColumns(), h = u - 1, g = a.cols[a.cols.length - 1] - h, m = s.length - g, f = (C = e._configService.getConfig(mu)) != null ? C : fu, p = a.cols, S = p[0];
|
|
18211
18221
|
if (g > 0) {
|
|
18212
18222
|
const w = {
|
|
18213
18223
|
startRow: a.rows[0],
|
|
@@ -18285,7 +18295,7 @@ let Ri = class extends Un {
|
|
|
18285
18295
|
}
|
|
18286
18296
|
_generateDocumentDataModelSnapshot(e) {
|
|
18287
18297
|
var l, a;
|
|
18288
|
-
const t = (l =
|
|
18298
|
+
const t = (l = ud(
|
|
18289
18299
|
x.UNIVER_SHEET,
|
|
18290
18300
|
ge,
|
|
18291
18301
|
this._instanceService,
|
|
@@ -18393,7 +18403,7 @@ let Ri = class extends Un {
|
|
|
18393
18403
|
const c = e._instanceService.getCurrentUnitForType(x.UNIVER_SHEET), d = c.getUnitId(), u = (M = c.getActiveSheet()) == null ? void 0 : M.getSheetId();
|
|
18394
18404
|
if (!d || !u)
|
|
18395
18405
|
throw new Error("Cannot find unitId or subUnitId");
|
|
18396
|
-
const h = [], g = [], m = e._getWorksheet(d, u), { range: f } = s, p = f.cols, S = p[0], v = m.getMaxColumns(), C = f.cols[f.cols.length - 1] - v, w = l.length - C, R = (P = e._configService.getConfig(
|
|
18406
|
+
const h = [], g = [], m = e._getWorksheet(d, u), { range: f } = s, p = f.cols, S = p[0], v = m.getMaxColumns(), C = f.cols[f.cols.length - 1] - v, w = l.length - C, R = (P = e._configService.getConfig(mu)) != null ? P : fu, I = {
|
|
18397
18407
|
unitId: d,
|
|
18398
18408
|
subUnitId: u,
|
|
18399
18409
|
ranges: [{
|
|
@@ -18531,7 +18541,7 @@ var KR = Object.getOwnPropertyDescriptor, JR = (r, e, t, n) => {
|
|
|
18531
18541
|
for (var i = n > 1 ? void 0 : n ? KR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
18532
18542
|
(s = r[o]) && (i = s(i) || i);
|
|
18533
18543
|
return i;
|
|
18534
|
-
},
|
|
18544
|
+
}, Ph = (r, e) => (t, n) => e(t, n, r);
|
|
18535
18545
|
let Eo = class extends de {
|
|
18536
18546
|
constructor(e, t) {
|
|
18537
18547
|
super();
|
|
@@ -18594,8 +18604,8 @@ let Eo = class extends de {
|
|
|
18594
18604
|
}
|
|
18595
18605
|
};
|
|
18596
18606
|
Eo = JR([
|
|
18597
|
-
|
|
18598
|
-
|
|
18607
|
+
Ph(0, V),
|
|
18608
|
+
Ph(1, be)
|
|
18599
18609
|
], Eo);
|
|
18600
18610
|
var $R = Object.getOwnPropertyDescriptor, eI = (r, e, t, n) => {
|
|
18601
18611
|
for (var i = n > 1 ? void 0 : n ? $R(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -18631,7 +18641,7 @@ ol = eI([
|
|
|
18631
18641
|
ec(2, N(Eo)),
|
|
18632
18642
|
ec(3, N(ge))
|
|
18633
18643
|
], ol);
|
|
18634
|
-
const
|
|
18644
|
+
const lu = (r, e) => {
|
|
18635
18645
|
var u, h, g, m, f;
|
|
18636
18646
|
const n = e.findNodePositionByCharIndex(r.startOffset, !0, r.segmentId, -1), i = e.getSkeletonData();
|
|
18637
18647
|
let o = r.endOffset;
|
|
@@ -18647,8 +18657,8 @@ const su = (r, e) => {
|
|
|
18647
18657
|
docsTop: 0,
|
|
18648
18658
|
pageMarginLeft: 0,
|
|
18649
18659
|
pageMarginTop: 0
|
|
18650
|
-
}, a = new
|
|
18651
|
-
return
|
|
18660
|
+
}, a = new Dh(l, e), { borderBoxPointGroup: c } = a.getRangePointData(n, s);
|
|
18661
|
+
return Lh(c).map((p) => ({
|
|
18652
18662
|
top: p.top,
|
|
18653
18663
|
bottom: p.bottom,
|
|
18654
18664
|
left: p.left,
|
|
@@ -18663,7 +18673,7 @@ const su = (r, e) => {
|
|
|
18663
18673
|
docsTop: 0,
|
|
18664
18674
|
pageMarginLeft: 0,
|
|
18665
18675
|
pageMarginTop: 0
|
|
18666
|
-
}, s = new
|
|
18676
|
+
}, s = new Dh(o, e), { borderBoxPointGroup: l } = s.getRangePointData(i, i), c = Lh(l)[0];
|
|
18667
18677
|
return {
|
|
18668
18678
|
top: c.top,
|
|
18669
18679
|
bottom: c.bottom,
|
|
@@ -18671,7 +18681,7 @@ const su = (r, e) => {
|
|
|
18671
18681
|
right: c.right
|
|
18672
18682
|
};
|
|
18673
18683
|
}, nI = (r, e, t = 0, n = 0) => {
|
|
18674
|
-
const i =
|
|
18684
|
+
const i = lu({ startOffset: e.startIndex, endOffset: e.endIndex + 1 }, r);
|
|
18675
18685
|
if (i)
|
|
18676
18686
|
return {
|
|
18677
18687
|
rects: i.map((o) => ({
|
|
@@ -18702,7 +18712,7 @@ const su = (r, e) => {
|
|
|
18702
18712
|
};
|
|
18703
18713
|
}, iI = (r, e = 0, t = 0) => {
|
|
18704
18714
|
var l, a, c, d, u, h, g;
|
|
18705
|
-
const n = r.getViewModel().getDataModel(), i = (c = (a = (l = n.getBody()) == null ? void 0 : l.customRanges) == null ? void 0 : a.filter((m) => m.rangeType ===
|
|
18715
|
+
const n = r.getViewModel().getDataModel(), i = (c = (a = (l = n.getBody()) == null ? void 0 : l.customRanges) == null ? void 0 : a.filter((m) => m.rangeType === ad.HYPERLINK)) != null ? c : [], o = (h = (u = (d = n.getBody()) == null ? void 0 : d.paragraphs) == null ? void 0 : u.filter((m) => {
|
|
18706
18716
|
var f;
|
|
18707
18717
|
return ((f = m.bullet) == null ? void 0 : f.listType.indexOf($p.CHECK_LIST)) === 0;
|
|
18708
18718
|
})) != null ? h : [], s = (g = r.getSkeletonData()) == null ? void 0 : g.pages[0].skeDrawings;
|
|
@@ -18772,7 +18782,7 @@ const HP = (r, e, t, n, i, o) => {
|
|
|
18772
18782
|
h.overflowCache.forValue((O, H, F) => {
|
|
18773
18783
|
F.startRow <= C && F.endRow >= C && F.startColumn <= v && F.endColumn >= v && (v = H, C = O);
|
|
18774
18784
|
});
|
|
18775
|
-
const w = h.getCellWithCoordByIndex(C, v), R = c.getCell(w.actualRow, w.actualColumn), { topOffset: I = 0, leftOffset: y = 0 } = (k = R == null ? void 0 : R.fontRenderExtension) != null ? k : {}, { paddingLeft: M, paddingTop: P } = rp(w, g, !1), E =
|
|
18785
|
+
const w = h.getCellWithCoordByIndex(C, v), R = c.getCell(w.actualRow, w.actualColumn), { topOffset: I = 0, leftOffset: y = 0 } = (k = R == null ? void 0 : R.fontRenderExtension) != null ? k : {}, { paddingLeft: M, paddingTop: P } = rp(w, g, !1), E = lu({ startOffset: f.startIndex, endOffset: f.endIndex }, m);
|
|
18776
18786
|
return {
|
|
18777
18787
|
rects: E == null ? void 0 : E.map((O) => ({
|
|
18778
18788
|
top: O.top + w.mergeInfo.startY + P + I + p,
|
|
@@ -18800,7 +18810,7 @@ const HP = (r, e, t, n, i, o) => {
|
|
|
18800
18810
|
const C = (P = (M = S.getViewModel().getBody()) == null ? void 0 : M.customRanges) == null ? void 0 : P.find((E) => E.rangeId === o);
|
|
18801
18811
|
if (!C)
|
|
18802
18812
|
return null;
|
|
18803
|
-
const w = 4, R =
|
|
18813
|
+
const w = 4, R = lu({ startOffset: C.startIndex, endOffset: C.endIndex }, S), I = f.engine.getCanvasElement().getBoundingClientRect();
|
|
18804
18814
|
return {
|
|
18805
18815
|
rects: R == null ? void 0 : R.map((E) => ({
|
|
18806
18816
|
top: E.top + I.top - w,
|
|
@@ -18816,7 +18826,7 @@ var oI = Object.getOwnPropertyDescriptor, sI = (r, e, t, n) => {
|
|
|
18816
18826
|
for (var i = n > 1 ? void 0 : n ? oI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
18817
18827
|
(s = r[o]) && (i = s(i) || i);
|
|
18818
18828
|
return i;
|
|
18819
|
-
},
|
|
18829
|
+
}, Eh = (r, e) => (t, n) => e(t, n, r);
|
|
18820
18830
|
function Sr(r) {
|
|
18821
18831
|
const { workbook: e, worksheet: t, ...n } = r;
|
|
18822
18832
|
return n;
|
|
@@ -19101,8 +19111,8 @@ let Ar = class extends de {
|
|
|
19101
19111
|
}
|
|
19102
19112
|
};
|
|
19103
19113
|
Ar = sI([
|
|
19104
|
-
|
|
19105
|
-
|
|
19114
|
+
Eh(0, V),
|
|
19115
|
+
Eh(1, be)
|
|
19106
19116
|
], Ar);
|
|
19107
19117
|
var lI = Object.getOwnPropertyDescriptor, aI = (r, e, t, n) => {
|
|
19108
19118
|
for (var i = n > 1 ? void 0 : n ? lI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -19162,7 +19172,7 @@ var cI = Object.getOwnPropertyDescriptor, dI = (r, e, t, n) => {
|
|
|
19162
19172
|
for (var i = n > 1 ? void 0 : n ? cI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
19163
19173
|
(s = r[o]) && (i = s(i) || i);
|
|
19164
19174
|
return i;
|
|
19165
|
-
},
|
|
19175
|
+
}, Th = (r, e) => (t, n) => e(t, n, r);
|
|
19166
19176
|
let ll = class extends Un {
|
|
19167
19177
|
constructor(r, e, t) {
|
|
19168
19178
|
super(), this._context = r, this._sheetSkeletonManagerService = e, this._sheetInterceptorService = t, this._initViewModelIntercept();
|
|
@@ -19199,8 +19209,8 @@ let ll = class extends Un {
|
|
|
19199
19209
|
}
|
|
19200
19210
|
};
|
|
19201
19211
|
ll = dI([
|
|
19202
|
-
|
|
19203
|
-
|
|
19212
|
+
Th(1, N(ge)),
|
|
19213
|
+
Th(2, N(zn))
|
|
19204
19214
|
], ll);
|
|
19205
19215
|
var uI = Object.getOwnPropertyDescriptor, hI = (r, e, t, n) => {
|
|
19206
19216
|
for (var i = n > 1 ? void 0 : n ? uI(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -19226,7 +19236,7 @@ let al = class extends de {
|
|
|
19226
19236
|
return;
|
|
19227
19237
|
e.add(i.onPointerEnter$.subscribeEvent((c) => {
|
|
19228
19238
|
this._active = !0;
|
|
19229
|
-
})), e.add(
|
|
19239
|
+
})), e.add(Wh(i.onPointerMove$).subscribe((c) => {
|
|
19230
19240
|
this._active = !0, this._hoverManagerService.triggerMouseMove(o, c);
|
|
19231
19241
|
})), e.add(i.onPointerDown$.subscribeEvent((c) => {
|
|
19232
19242
|
this._hoverManagerService.triggerPointerDown(o, c);
|
|
@@ -19342,9 +19352,9 @@ function bI(r) {
|
|
|
19342
19352
|
switch (u.id) {
|
|
19343
19353
|
case lr.id:
|
|
19344
19354
|
case Dn.id:
|
|
19345
|
-
case
|
|
19355
|
+
case _d.id:
|
|
19346
19356
|
case Nr.id:
|
|
19347
|
-
case
|
|
19357
|
+
case bd.id:
|
|
19348
19358
|
case rt.id:
|
|
19349
19359
|
a();
|
|
19350
19360
|
break;
|
|
@@ -19433,14 +19443,14 @@ let dl = class extends de {
|
|
|
19433
19443
|
}
|
|
19434
19444
|
_initCustomComponents() {
|
|
19435
19445
|
const r = this._componentManager;
|
|
19436
|
-
this.disposeWithMe(r.register(bn, qm)), this.disposeWithMe(r.register(
|
|
19446
|
+
this.disposeWithMe(r.register(bn, qm)), this.disposeWithMe(r.register(su, gf)), this.disposeWithMe(r.register(Go, xd)), this.disposeWithMe(r.register($d, tg)), this.disposeWithMe(r.register(eu, ng)), this.disposeWithMe(r.register(tu, rg)), this.disposeWithMe(r.register(po, mf));
|
|
19437
19447
|
}
|
|
19438
19448
|
_initCommands() {
|
|
19439
19449
|
[
|
|
19440
|
-
|
|
19450
|
+
nu,
|
|
19441
19451
|
hr,
|
|
19452
|
+
iu,
|
|
19442
19453
|
ru,
|
|
19443
|
-
nu,
|
|
19444
19454
|
jo,
|
|
19445
19455
|
Qt,
|
|
19446
19456
|
Bt,
|
|
@@ -19453,9 +19463,9 @@ let dl = class extends de {
|
|
|
19453
19463
|
ea,
|
|
19454
19464
|
gn,
|
|
19455
19465
|
gm,
|
|
19456
|
-
|
|
19457
|
-
|
|
19458
|
-
|
|
19466
|
+
Ud,
|
|
19467
|
+
ou,
|
|
19468
|
+
Rd,
|
|
19459
19469
|
pi,
|
|
19460
19470
|
at,
|
|
19461
19471
|
Zl,
|
|
@@ -19468,12 +19478,12 @@ let dl = class extends de {
|
|
|
19468
19478
|
ta,
|
|
19469
19479
|
na,
|
|
19470
19480
|
vo,
|
|
19471
|
-
|
|
19472
|
-
yd,
|
|
19473
|
-
Pd,
|
|
19481
|
+
Id,
|
|
19474
19482
|
Md,
|
|
19483
|
+
Ed,
|
|
19484
|
+
Pd,
|
|
19475
19485
|
ra,
|
|
19476
|
-
|
|
19486
|
+
Jd,
|
|
19477
19487
|
Zo,
|
|
19478
19488
|
ia,
|
|
19479
19489
|
hn,
|
|
@@ -19481,7 +19491,7 @@ let dl = class extends de {
|
|
|
19481
19491
|
or,
|
|
19482
19492
|
oa,
|
|
19483
19493
|
sa,
|
|
19484
|
-
|
|
19494
|
+
yd,
|
|
19485
19495
|
Yo,
|
|
19486
19496
|
tn,
|
|
19487
19497
|
ga,
|
|
@@ -19490,7 +19500,7 @@ let dl = class extends de {
|
|
|
19490
19500
|
bi,
|
|
19491
19501
|
Jo,
|
|
19492
19502
|
Ko,
|
|
19493
|
-
|
|
19503
|
+
Zd,
|
|
19494
19504
|
br,
|
|
19495
19505
|
uo,
|
|
19496
19506
|
// permission
|
|
@@ -19582,7 +19592,7 @@ dl = RI([
|
|
|
19582
19592
|
vr(2, xl),
|
|
19583
19593
|
vr(3, D),
|
|
19584
19594
|
vr(4, kl),
|
|
19585
|
-
vr(5,
|
|
19595
|
+
vr(5, pd),
|
|
19586
19596
|
vr(6, Hl)
|
|
19587
19597
|
], dl);
|
|
19588
19598
|
const Yc = "UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID", ip = "UNIVER_SHEET_PERMISSION_ALERT_DIALOG";
|
|
@@ -20177,7 +20187,7 @@ let hl = class extends Un {
|
|
|
20177
20187
|
const d = c.getArrayValue();
|
|
20178
20188
|
d.forEach((u, h) => {
|
|
20179
20189
|
u.forEach((g, m) => {
|
|
20180
|
-
d[h][m] =
|
|
20190
|
+
d[h][m] = Tu.create();
|
|
20181
20191
|
});
|
|
20182
20192
|
});
|
|
20183
20193
|
}) : t.forEach((c) => {
|
|
@@ -20188,7 +20198,7 @@ let hl = class extends Un {
|
|
|
20188
20198
|
if (((C = i.getCellRaw(m + u, p + h)) == null ? void 0 : C.v) === void 0)
|
|
20189
20199
|
return;
|
|
20190
20200
|
const v = this._rangeProtectionCache.getCellInfo(o, s, m + u, p + h);
|
|
20191
|
-
(v == null ? void 0 : v[fe.View]) === !1 && (d[m][p] =
|
|
20201
|
+
(v == null ? void 0 : v[fe.View]) === !1 && (d[m][p] = Tu.create());
|
|
20192
20202
|
});
|
|
20193
20203
|
});
|
|
20194
20204
|
}), t;
|
|
@@ -20669,14 +20679,14 @@ const op = (r, e, t, n, i) => {
|
|
|
20669
20679
|
/* @__PURE__ */ q("div", { className: je.sheetPermissionListItemHeader, children: [
|
|
20670
20680
|
/* @__PURE__ */ b(er, { title: _e, children: /* @__PURE__ */ b("div", { className: je.sheetPermissionListItemHeaderName, children: _e }) }),
|
|
20671
20681
|
(me || oe) && /* @__PURE__ */ q("div", { className: je.sheetPermissionListItemHeaderOperator, children: [
|
|
20672
|
-
me && /* @__PURE__ */ b(er, { title: i.t("permission.panel.edit"), children: /* @__PURE__ */ b("div", { className: je.sheetPermissionListItemHeaderIcon, onClick: () => E(H), children: /* @__PURE__ */ b(
|
|
20682
|
+
me && /* @__PURE__ */ b(er, { title: i.t("permission.panel.edit"), children: /* @__PURE__ */ b("div", { className: je.sheetPermissionListItemHeaderIcon, onClick: () => E(H), children: /* @__PURE__ */ b(Yd, {}) }) }),
|
|
20673
20683
|
oe && /* @__PURE__ */ b(er, { title: i.t("permission.panel.delete"), children: /* @__PURE__ */ b("div", { className: je.sheetPermissionListItemHeaderIcon, onClick: () => M(H), children: /* @__PURE__ */ b(Ql, {}) }) })
|
|
20674
20684
|
] })
|
|
20675
20685
|
] }),
|
|
20676
20686
|
/* @__PURE__ */ b("div", { className: je.sheetPermissionListItemSplit }),
|
|
20677
20687
|
/* @__PURE__ */ q("div", { className: je.sheetPermissionListItemContent, children: [
|
|
20678
20688
|
/* @__PURE__ */ q("div", { className: je.sheetPermissionListItemContentEdit, children: [
|
|
20679
|
-
/* @__PURE__ */ b(er, { title: (ve = (Se = O.creator) == null ? void 0 : Se.name) != null ? ve : "", children: /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(
|
|
20689
|
+
/* @__PURE__ */ b(er, { title: (ve = (Se = O.creator) == null ? void 0 : Se.name) != null ? ve : "", children: /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(Ad, { src: (ce = O.creator) == null ? void 0 : ce.avatar, style: { marginRight: 6 }, size: 24 }) }) }),
|
|
20680
20690
|
/* @__PURE__ */ b("span", { className: je.sheetPermissionListItemContentTitle, children: i.t("permission.panel.created") }),
|
|
20681
20691
|
/* @__PURE__ */ b("span", { className: je.sheetPermissionListItemContentSub, children: X ? `${i.t("permission.panel.iCanEdit")}` : `${i.t("permission.panel.iCanNotEdit")}` })
|
|
20682
20692
|
] }),
|
|
@@ -20922,7 +20932,7 @@ const op = (r, e, t, n, i) => {
|
|
|
20922
20932
|
/* @__PURE__ */ b("div", { className: Ht.sheetPermissionUserList, children: (s == null ? void 0 : s.length) > 0 ? /* @__PURE__ */ b(Mr, { children: s == null ? void 0 : s.map((u) => {
|
|
20923
20933
|
var h, g, m;
|
|
20924
20934
|
return /* @__PURE__ */ q("div", { className: Ht.sheetPermissionUserItem, onClick: () => c(u), children: [
|
|
20925
|
-
/* @__PURE__ */ b(
|
|
20935
|
+
/* @__PURE__ */ b(Ad, { src: (h = u.subject) == null ? void 0 : h.avatar, size: 24 }),
|
|
20926
20936
|
/* @__PURE__ */ b("div", { className: Ht.sheetPermissionUserItemName, children: (g = u.subject) == null ? void 0 : g.name }),
|
|
20927
20937
|
(l == null ? void 0 : l.findIndex((f) => {
|
|
20928
20938
|
var p, S;
|
|
@@ -21020,12 +21030,12 @@ class iM extends dp {
|
|
|
21020
21030
|
return (t == null ? void 0 : t[fe.View]) === !1;
|
|
21021
21031
|
}
|
|
21022
21032
|
}
|
|
21023
|
-
const up = "worksheet-protection",
|
|
21033
|
+
const up = "worksheet-protection", Oh = 25, oM = 80;
|
|
21024
21034
|
class sM extends qh {
|
|
21025
21035
|
constructor() {
|
|
21026
21036
|
super();
|
|
21027
21037
|
_(this, "uKey", up);
|
|
21028
|
-
_(this, "Z_INDEX",
|
|
21038
|
+
_(this, "Z_INDEX", Oh);
|
|
21029
21039
|
_(this, "_pattern");
|
|
21030
21040
|
_(this, "_img", new Image());
|
|
21031
21041
|
this._img.src = lp;
|
|
@@ -21039,7 +21049,7 @@ class sM extends qh {
|
|
|
21039
21049
|
if (this._pattern) {
|
|
21040
21050
|
if (g.length > 0) {
|
|
21041
21051
|
const m = g[0];
|
|
21042
|
-
(m == null ? void 0 : m[fe.View]) ? this.setZIndex(
|
|
21052
|
+
(m == null ? void 0 : m[fe.View]) ? this.setZIndex(Oh) : this.setZIndex(oM);
|
|
21043
21053
|
}
|
|
21044
21054
|
t.fillStyle = this._pattern, h && t.fillRect(d.startX, d.startY, u.endX - d.startX, u.endY - d.startY), t.restore();
|
|
21045
21055
|
}
|
|
@@ -21100,7 +21110,7 @@ const lM = (r) => {
|
|
|
21100
21110
|
/* @__PURE__ */ b("div", { className: st.sheetPermissionDesignPersonPanelContent, children: (h == null ? void 0 : h.length) > 0 ? h.map((S) => {
|
|
21101
21111
|
var v, C, w;
|
|
21102
21112
|
return /* @__PURE__ */ q("div", { className: st.sheetPermissionDesignPersonPanelContentItem, children: [
|
|
21103
|
-
/* @__PURE__ */ b(
|
|
21113
|
+
/* @__PURE__ */ b(Ad, { size: 24, src: (v = S.subject) == null ? void 0 : v.avatar }),
|
|
21104
21114
|
/* @__PURE__ */ b("span", { className: st.sheetPermissionDesignPersonPanelContentItemName, children: (C = S.subject) == null ? void 0 : C.name }),
|
|
21105
21115
|
/* @__PURE__ */ b(
|
|
21106
21116
|
em,
|
|
@@ -21139,7 +21149,7 @@ const lM = (r) => {
|
|
|
21139
21149
|
) })
|
|
21140
21150
|
] });
|
|
21141
21151
|
};
|
|
21142
|
-
var aM = Object.getOwnPropertyDescriptor,
|
|
21152
|
+
var aM = Object.getOwnPropertyDescriptor, au = (r, e, t, n) => {
|
|
21143
21153
|
for (var i = n > 1 ? void 0 : n ? aM(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
21144
21154
|
(s = r[o]) && (i = s(i) || i);
|
|
21145
21155
|
return i;
|
|
@@ -21155,9 +21165,9 @@ let xo = class extends de {
|
|
|
21155
21165
|
[
|
|
21156
21166
|
[cf, Im],
|
|
21157
21167
|
[f0, Ql],
|
|
21158
|
-
[p0,
|
|
21168
|
+
[p0, Yd],
|
|
21159
21169
|
[S0, Wr],
|
|
21160
|
-
[df,
|
|
21170
|
+
[df, jd],
|
|
21161
21171
|
[wo, My],
|
|
21162
21172
|
[lf, Qy],
|
|
21163
21173
|
[af, Ly],
|
|
@@ -21175,7 +21185,7 @@ let xo = class extends de {
|
|
|
21175
21185
|
(t = e == null ? void 0 : e.customComponents) != null && t.has(zc) || this.disposeWithMe(this._uiPartsService.registerComponent(zc, () => ii(lM, this._injector)));
|
|
21176
21186
|
}
|
|
21177
21187
|
};
|
|
21178
|
-
xo =
|
|
21188
|
+
xo = au([
|
|
21179
21189
|
Xt(0, N(It)),
|
|
21180
21190
|
Xt(1, N(Xn)),
|
|
21181
21191
|
Xt(2, N(Hl))
|
|
@@ -21209,7 +21219,7 @@ let gl = class extends de {
|
|
|
21209
21219
|
).pipe().subscribe(e));
|
|
21210
21220
|
}
|
|
21211
21221
|
};
|
|
21212
|
-
gl =
|
|
21222
|
+
gl = au([
|
|
21213
21223
|
Xt(1, N(et)),
|
|
21214
21224
|
Xt(2, N(ge)),
|
|
21215
21225
|
Xt(3, ot),
|
|
@@ -21238,7 +21248,7 @@ let ml = class extends de {
|
|
|
21238
21248
|
).pipe().subscribe(e));
|
|
21239
21249
|
}
|
|
21240
21250
|
};
|
|
21241
|
-
ml =
|
|
21251
|
+
ml = au([
|
|
21242
21252
|
Xt(1, N(be)),
|
|
21243
21253
|
Xt(2, N(V)),
|
|
21244
21254
|
Xt(3, N(ge)),
|
|
@@ -21374,7 +21384,7 @@ let Gc = class extends de {
|
|
|
21374
21384
|
this._commandService.onCommandExecuted((r) => {
|
|
21375
21385
|
if (fM.includes(r.id))
|
|
21376
21386
|
this._scrollToSelection();
|
|
21377
|
-
else if (r.id ===
|
|
21387
|
+
else if (r.id === vd.id) {
|
|
21378
21388
|
const e = r.params.range;
|
|
21379
21389
|
this.scrollToRange(e);
|
|
21380
21390
|
} else if (r.id === Qt.id) {
|
|
@@ -21663,7 +21673,7 @@ class hp extends de {
|
|
|
21663
21673
|
}));
|
|
21664
21674
|
}
|
|
21665
21675
|
}
|
|
21666
|
-
class vM extends
|
|
21676
|
+
class vM extends Dd {
|
|
21667
21677
|
constructor(t, n, i, o) {
|
|
21668
21678
|
super(t, n, i, o);
|
|
21669
21679
|
/**
|
|
@@ -21847,7 +21857,7 @@ let pl = class extends im {
|
|
|
21847
21857
|
this._changeRuntime(i, o, s), this._workbookSelections.getCurrentLastSelection() || this._commandService.syncExecuteCommand(Pe.id, {
|
|
21848
21858
|
unitId: t,
|
|
21849
21859
|
subUnitId: n,
|
|
21850
|
-
selections: [
|
|
21860
|
+
selections: [Ld(i)]
|
|
21851
21861
|
});
|
|
21852
21862
|
}));
|
|
21853
21863
|
}
|
|
@@ -22183,7 +22193,7 @@ let Sl = class extends Zh {
|
|
|
22183
22193
|
[Eo],
|
|
22184
22194
|
[Mo],
|
|
22185
22195
|
[Po],
|
|
22186
|
-
[
|
|
22196
|
+
[Wd],
|
|
22187
22197
|
[yo],
|
|
22188
22198
|
[co],
|
|
22189
22199
|
[Ri],
|
|
@@ -22274,7 +22284,7 @@ let vl = class extends de {
|
|
|
22274
22284
|
}
|
|
22275
22285
|
get _mainComponent() {
|
|
22276
22286
|
var e;
|
|
22277
|
-
return (e =
|
|
22287
|
+
return (e = gd(x.UNIVER_SHEET, this._instanceService, this._renderManagerService)) == null ? void 0 : e.mainComponent;
|
|
22278
22288
|
}
|
|
22279
22289
|
_initHover() {
|
|
22280
22290
|
this.disposeWithMe(this._hoverManagerService.currentRichText$.subscribe((e) => {
|
|
@@ -22325,7 +22335,7 @@ let Cl = class extends de {
|
|
|
22325
22335
|
if (t.substring(0, 1) === Qr.EQUALS && (t = t.substring(1)), !Gg(t))
|
|
22326
22336
|
return;
|
|
22327
22337
|
const i = this._instanceSrv.getUnit(e), o = await this._getSelections(i, e, t);
|
|
22328
|
-
this._selectionManagerService.setSelections(o), this._cmdSrv.executeCommand(
|
|
22338
|
+
this._selectionManagerService.setSelections(o), this._cmdSrv.executeCommand(vd.id, {
|
|
22329
22339
|
unitId: e,
|
|
22330
22340
|
range: o[0].range
|
|
22331
22341
|
});
|
|
@@ -22351,7 +22361,7 @@ let Cl = class extends de {
|
|
|
22351
22361
|
const l = n[s].trim(), a = Kg(l.trim());
|
|
22352
22362
|
if (s === 0) {
|
|
22353
22363
|
const d = r.getSheetBySheetName(a.sheetName);
|
|
22354
|
-
d && i.getSheetId() !== d.getSheetId() && (i = d, await this._cmdSrv.executeCommand(
|
|
22364
|
+
d && i.getSheetId() !== d.getSheetId() && (i = d, await this._cmdSrv.executeCommand(wd.id, {
|
|
22355
22365
|
subUnitId: i.getSheetId(),
|
|
22356
22366
|
unitId: e
|
|
22357
22367
|
}));
|
|
@@ -22464,7 +22474,7 @@ let Ao = class extends Un {
|
|
|
22464
22474
|
const e = this._univerInstanceService.unitAdded$.pipe(Nl((t) => t.getUnitId() === Le));
|
|
22465
22475
|
this.disposeWithMe(dt([this._formulaEditorManagerService.position$, e]).subscribe(([t]) => {
|
|
22466
22476
|
if (!t) return this._clearScheduledCallback();
|
|
22467
|
-
const n =
|
|
22477
|
+
const n = kd(Le, this._renderManagerService), i = this._univerInstanceService.getUniverDocInstance(
|
|
22468
22478
|
Le
|
|
22469
22479
|
);
|
|
22470
22480
|
if (n == null || i == null) return this._clearScheduledCallback();
|
|
@@ -22492,7 +22502,7 @@ let Ao = class extends Un {
|
|
|
22492
22502
|
l.transformByState({
|
|
22493
22503
|
width: d,
|
|
22494
22504
|
height: c
|
|
22495
|
-
}), a == null || a.resize(d, c), c > u ? g == null ? h && new
|
|
22505
|
+
}), a == null || a.resize(d, c), c > u ? g == null ? h && new md(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());
|
|
22496
22506
|
}
|
|
22497
22507
|
};
|
|
22498
22508
|
Ao = OM([
|
|
@@ -22503,7 +22513,7 @@ Ao = OM([
|
|
|
22503
22513
|
Mn(4, He),
|
|
22504
22514
|
Mn(5, Kl),
|
|
22505
22515
|
Mn(6, qt),
|
|
22506
|
-
Mn(7, N(
|
|
22516
|
+
Mn(7, N(Od)),
|
|
22507
22517
|
Mn(8, kr)
|
|
22508
22518
|
], Ao);
|
|
22509
22519
|
var xM = Object.getOwnPropertyDescriptor, AM = (r, e, t, n) => {
|
|
@@ -22570,7 +22580,7 @@ let bl = class extends de {
|
|
|
22570
22580
|
this._commandService.onCommandExecuted((t) => {
|
|
22571
22581
|
if (t.id === Hs.id) {
|
|
22572
22582
|
const n = t.params, { unitId: i, trigger: o, isSync: s } = n;
|
|
22573
|
-
if (s || o ===
|
|
22583
|
+
if (s || o === Nh.id)
|
|
22574
22584
|
return;
|
|
22575
22585
|
if (r.includes(i)) {
|
|
22576
22586
|
const l = this._univerInstanceService.getUnit(i, x.UNIVER_DOC), a = i === Le ? De : Le;
|
|
@@ -22845,7 +22855,7 @@ let qc = class extends de {
|
|
|
22845
22855
|
fromRange: s,
|
|
22846
22856
|
toRange: l
|
|
22847
22857
|
};
|
|
22848
|
-
this._commandService.executeCommand(
|
|
22858
|
+
this._commandService.executeCommand(Sd.id, a);
|
|
22849
22859
|
})
|
|
22850
22860
|
)
|
|
22851
22861
|
);
|
|
@@ -22997,7 +23007,7 @@ let Jc = class extends Un {
|
|
|
22997
23007
|
endColumn: u.mergeInfo.endColumn,
|
|
22998
23008
|
isMergedMainCell: u.isMergedMainCell
|
|
22999
23009
|
} : t;
|
|
23000
|
-
this._commandService.executeCommand(
|
|
23010
|
+
this._commandService.executeCommand(ou.id, {
|
|
23001
23011
|
scene: l,
|
|
23002
23012
|
engine: a,
|
|
23003
23013
|
primary: h,
|
|
@@ -23133,7 +23143,7 @@ Jc = YM([
|
|
|
23133
23143
|
], Jc);
|
|
23134
23144
|
var $c = /* @__PURE__ */ ((r) => (r[r.NORMAL = 0] = "NORMAL", r[r.HIGHLIGHT = 1] = "HIGHLIGHT", r))($c || {});
|
|
23135
23145
|
const ZM = "rgba(0, 0, 0, 0.15)", En = "rgb(0, 0, 0)", ms = "rgb(255, 255, 255, 1)";
|
|
23136
|
-
class GM extends
|
|
23146
|
+
class GM extends fd {
|
|
23137
23147
|
constructor(t, n) {
|
|
23138
23148
|
super(t, n);
|
|
23139
23149
|
_(this, "_size", 12);
|
|
@@ -23322,7 +23332,7 @@ ed = QM([
|
|
|
23322
23332
|
], ed);
|
|
23323
23333
|
var td = /* @__PURE__ */ ((r) => (r[r.ROW = 0] = "ROW", r[r.COLUMN = 1] = "COLUMN", r))(td || {});
|
|
23324
23334
|
const Qi = 12, eP = 0.4;
|
|
23325
|
-
class
|
|
23335
|
+
class xh extends fd {
|
|
23326
23336
|
constructor(t, n, i) {
|
|
23327
23337
|
super(t, n);
|
|
23328
23338
|
_(this, "_size", Qi);
|
|
@@ -23423,8 +23433,8 @@ var tP = Object.getOwnPropertyDescriptor, nP = (r, e, t, n) => {
|
|
|
23423
23433
|
for (var i = n > 1 ? void 0 : n ? tP(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
23424
23434
|
(s = r[o]) && (i = s(i) || i);
|
|
23425
23435
|
return i;
|
|
23426
|
-
},
|
|
23427
|
-
const
|
|
23436
|
+
}, Ah = (r, e) => (t, n) => e(t, n, r);
|
|
23437
|
+
const kh = "__SpreadsheetHeaderUnhideSHAPEControllerShape__";
|
|
23428
23438
|
let nd = class extends Un {
|
|
23429
23439
|
constructor(e, t, n) {
|
|
23430
23440
|
super();
|
|
@@ -23462,9 +23472,9 @@ let nd = class extends Un {
|
|
|
23462
23472
|
const n = (h = this._sheetSkeletonManagerService.getSkeletonParam(t.getSheetId())) == null ? void 0 : h.skeleton;
|
|
23463
23473
|
if (!n) return;
|
|
23464
23474
|
const i = t.getHiddenRows(), o = t.getHiddenCols(), s = this._getSheetObject(), { scene: l } = s, a = t.getRowCount(), c = i.map((g) => {
|
|
23465
|
-
const { startRow: m, endRow: f } = g, p =
|
|
23466
|
-
return new
|
|
23467
|
-
|
|
23475
|
+
const { startRow: m, endRow: f } = g, p = Bu(m, 0, l, n), S = m !== 0, v = f !== a - 1;
|
|
23476
|
+
return new xh(
|
|
23477
|
+
kh,
|
|
23468
23478
|
{
|
|
23469
23479
|
type: td.ROW,
|
|
23470
23480
|
hovered: !1,
|
|
@@ -23483,9 +23493,9 @@ let nd = class extends Un {
|
|
|
23483
23493
|
)
|
|
23484
23494
|
);
|
|
23485
23495
|
}), d = t.getColumnCount(), u = o.map((g) => {
|
|
23486
|
-
const { startColumn: m, endColumn: f } = g, p =
|
|
23487
|
-
return new
|
|
23488
|
-
|
|
23496
|
+
const { startColumn: m, endColumn: f } = g, p = Bu(0, m, l, n), S = m !== 0, v = f !== d - 1;
|
|
23497
|
+
return new xh(
|
|
23498
|
+
kh,
|
|
23489
23499
|
{
|
|
23490
23500
|
type: td.COLUMN,
|
|
23491
23501
|
hovered: !1,
|
|
@@ -23504,7 +23514,7 @@ let nd = class extends Un {
|
|
|
23504
23514
|
)
|
|
23505
23515
|
);
|
|
23506
23516
|
});
|
|
23507
|
-
l.addObjects(u,
|
|
23517
|
+
l.addObjects(u, xu), l.addObjects(c, xu), this._clearShapes(), this._shapes = { cols: u, rows: c };
|
|
23508
23518
|
}
|
|
23509
23519
|
_clearShapes() {
|
|
23510
23520
|
this._shapes.cols.forEach((e) => e.dispose()), this._shapes.rows.forEach((e) => e.dispose()), this._shapes = { cols: [], rows: [] };
|
|
@@ -23514,14 +23524,14 @@ let nd = class extends Un {
|
|
|
23514
23524
|
}
|
|
23515
23525
|
};
|
|
23516
23526
|
nd = nP([
|
|
23517
|
-
|
|
23518
|
-
|
|
23527
|
+
Ah(1, N(ge)),
|
|
23528
|
+
Ah(2, D)
|
|
23519
23529
|
], nd);
|
|
23520
23530
|
var rP = Object.getOwnPropertyDescriptor, iP = (r, e, t, n) => {
|
|
23521
23531
|
for (var i = n > 1 ? void 0 : n ? rP(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
23522
23532
|
(s = r[o]) && (i = s(i) || i);
|
|
23523
23533
|
return i;
|
|
23524
|
-
},
|
|
23534
|
+
}, Hh = (r, e) => (t, n) => e(t, n, r);
|
|
23525
23535
|
let rd = class extends de {
|
|
23526
23536
|
constructor(r, e, t) {
|
|
23527
23537
|
super(), this._context = r, this._sheetSkeletonManagerService = e, this._renderManagerService = t, this.disposeWithMe(this._context.unit.sheetDisposed$.subscribe((n) => {
|
|
@@ -23545,8 +23555,8 @@ let rd = class extends de {
|
|
|
23545
23555
|
}
|
|
23546
23556
|
};
|
|
23547
23557
|
rd = iP([
|
|
23548
|
-
|
|
23549
|
-
|
|
23558
|
+
Hh(1, N(ge)),
|
|
23559
|
+
Hh(2, be)
|
|
23550
23560
|
], rd);
|
|
23551
23561
|
var oP = Object.getOwnPropertyDescriptor, sP = (r, e, t, n) => {
|
|
23552
23562
|
for (var i = n > 1 ? void 0 : n ? oP(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -23689,7 +23699,7 @@ let id = class extends im {
|
|
|
23689
23699
|
this._commandService.syncExecuteCommand(Pe.id, {
|
|
23690
23700
|
unitId: t,
|
|
23691
23701
|
subUnitId: n,
|
|
23692
|
-
selections: u.length !== 0 ? u : [
|
|
23702
|
+
selections: u.length !== 0 ? u : [Ld(i)]
|
|
23693
23703
|
});
|
|
23694
23704
|
}
|
|
23695
23705
|
const a = this._workbookSelections.getCurrentSelections();
|
|
@@ -23795,7 +23805,7 @@ let Rl = class extends Zh {
|
|
|
23795
23805
|
o && this._configService.setConfig("menu", o, { merge: !0 }), this._configService.setConfig(Ln, s);
|
|
23796
23806
|
}
|
|
23797
23807
|
onStarting() {
|
|
23798
|
-
|
|
23808
|
+
pu(this._injector, oS([
|
|
23799
23809
|
[Si],
|
|
23800
23810
|
[it, { useClass: Ac }],
|
|
23801
23811
|
[on, { useClass: qs }],
|
|
@@ -23812,7 +23822,7 @@ let Rl = class extends Zh {
|
|
|
23812
23822
|
[Eo],
|
|
23813
23823
|
[Mo],
|
|
23814
23824
|
[Po],
|
|
23815
|
-
[
|
|
23825
|
+
[Wd],
|
|
23816
23826
|
// controllers
|
|
23817
23827
|
[yo],
|
|
23818
23828
|
[co],
|
|
@@ -23836,7 +23846,7 @@ let Rl = class extends Zh {
|
|
|
23836
23846
|
], this._config.override));
|
|
23837
23847
|
}
|
|
23838
23848
|
onReady() {
|
|
23839
|
-
this._config.disableAutoFocus || this._initAutoFocus(),
|
|
23849
|
+
this._config.disableAutoFocus || this._initAutoFocus(), pu(this._injector, [
|
|
23840
23850
|
[Ri]
|
|
23841
23851
|
]), this._registerRenderBasics(), Sa(this._injector, [
|
|
23842
23852
|
[rl],
|
|
@@ -24022,13 +24032,13 @@ export {
|
|
|
24022
24032
|
Eo as DragManagerService,
|
|
24023
24033
|
ol as DragRenderController,
|
|
24024
24034
|
uP as EMBEDDING_FORMULA_EDITOR,
|
|
24025
|
-
|
|
24035
|
+
Hd as EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY,
|
|
24026
24036
|
Lc as EditingRenderController,
|
|
24027
24037
|
Ac as EditorBridgeService,
|
|
24028
24038
|
Qt as ExpandSelectionCommand,
|
|
24029
|
-
|
|
24030
|
-
|
|
24031
|
-
|
|
24039
|
+
$d as FONT_FAMILY_COMPONENT,
|
|
24040
|
+
eu as FONT_FAMILY_ITEM_COMPONENT,
|
|
24041
|
+
tu as FONT_SIZE_COMPONENT,
|
|
24032
24042
|
Zt as FormatPainterStatus,
|
|
24033
24043
|
Cb as FormulaBar,
|
|
24034
24044
|
Ao as FormulaEditorController,
|
|
@@ -24075,18 +24085,18 @@ export {
|
|
|
24075
24085
|
gn as ScrollCommand,
|
|
24076
24086
|
gm as ScrollToCellCommand,
|
|
24077
24087
|
mm as ScrollToRangeOperation,
|
|
24078
|
-
|
|
24079
|
-
|
|
24080
|
-
|
|
24088
|
+
Ud as SelectAllCommand,
|
|
24089
|
+
Dd as SelectionControl,
|
|
24090
|
+
Dd as SelectionShape,
|
|
24081
24091
|
oC as SelectionShapeExtension,
|
|
24082
|
-
|
|
24092
|
+
ou as SetActivateCellEditOperation,
|
|
24083
24093
|
pi as SetCellEditVisibleArrowOperation,
|
|
24084
24094
|
at as SetCellEditVisibleOperation,
|
|
24085
24095
|
Zl as SetCellEditVisibleWithF2Operation,
|
|
24086
24096
|
sa as SetColumnFrozenCommand,
|
|
24087
|
-
|
|
24097
|
+
Vd as SetColumnHeaderHeightCommand,
|
|
24088
24098
|
ra as SetFormatPainterOperation,
|
|
24089
|
-
|
|
24099
|
+
Jd as SetInfiniteFormatPainterCommand,
|
|
24090
24100
|
Zo as SetOnceFormatPainterCommand,
|
|
24091
24101
|
Oi as SetRangeBoldCommand,
|
|
24092
24102
|
na as SetRangeFontFamilyCommand,
|
|
@@ -24099,7 +24109,7 @@ export {
|
|
|
24099
24109
|
vo as SetRangeTextColorCommand,
|
|
24100
24110
|
Ai as SetRangeUnderlineCommand,
|
|
24101
24111
|
oa as SetRowFrozenCommand,
|
|
24102
|
-
|
|
24112
|
+
Nd as SetRowHeaderWidthCommand,
|
|
24103
24113
|
hn as SetScrollOperation,
|
|
24104
24114
|
mo as SetScrollRelativeCommand,
|
|
24105
24115
|
or as SetSelectionFrozenCommand,
|
|
@@ -24134,7 +24144,7 @@ export {
|
|
|
24134
24144
|
hR as SheetsUIMenuSchema,
|
|
24135
24145
|
sm as SheetsUIPart,
|
|
24136
24146
|
ga as ShowMenuListCommand,
|
|
24137
|
-
|
|
24147
|
+
Zd as SidebarDefinedNameOperation,
|
|
24138
24148
|
Ii as StatusBarController,
|
|
24139
24149
|
Pm as StatusBarService,
|
|
24140
24150
|
sf as UNIVER_SHEET_PERMISSION_BACKGROUND,
|
|
@@ -24158,22 +24168,22 @@ export {
|
|
|
24158
24168
|
om as getAllSelection,
|
|
24159
24169
|
OP as getAutoFillRepeatRange,
|
|
24160
24170
|
g0 as getCellRealRange,
|
|
24161
|
-
|
|
24171
|
+
Bu as getCoordByCell,
|
|
24162
24172
|
Wn as getCoordByOffset,
|
|
24163
24173
|
cw as getCurrentExclusiveRangeInterest$,
|
|
24164
24174
|
pe as getCurrentRangeDisable$,
|
|
24165
24175
|
HP as getCustomRangePosition,
|
|
24166
24176
|
NP as getEditingCustomRangePosition,
|
|
24167
|
-
|
|
24177
|
+
kd as getEditorObject,
|
|
24168
24178
|
q_ as getMatrixPlainText,
|
|
24169
24179
|
Ni as getObservableWithExclusiveRange$,
|
|
24170
24180
|
kP as getRepeatRange,
|
|
24171
24181
|
Cn as getSheetObject,
|
|
24172
|
-
|
|
24182
|
+
Ld as getTopLeftSelectionOfCurrSheet,
|
|
24173
24183
|
_s as getTransformCoord,
|
|
24174
24184
|
VP as isEmbeddingFormulaEditor,
|
|
24175
24185
|
S_ as isRangeSelector,
|
|
24176
|
-
|
|
24186
|
+
oh as mergeSetRangeValues,
|
|
24177
24187
|
ur as useActiveWorkbook,
|
|
24178
24188
|
PP as useActiveWorksheet,
|
|
24179
24189
|
pR as useHighlightRange,
|