@univerjs/sheets-ui 0.6.2-nightly.202503031606 → 0.6.3
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/LICENSE +176 -0
- package/lib/cjs/index.js +4 -4
- package/lib/es/index.js +512 -503
- package/lib/types/services/permission/sheet-permission-user-list.service.d.ts +2 -0
- package/lib/umd/index.js +4 -4
- package/package.json +12 -12
package/lib/es/index.js
CHANGED
|
@@ -2,12 +2,12 @@ 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
4
|
import { DOCS_VIEW_KEY as wp, IEditorService as kr, getCanvasOffsetByEngine as au, VIEWPORT_KEY as Ps, DOCS_COMPONENT_MAIN_LAYER_INDEX as Rp, BreakLineCommand as Ip, DeleteLeftCommand as yp, DocSelectionRenderService as _r, ReplaceSnapshotCommand as Hh, 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 Nh, SetInlineFormatCommand as ko, NodePositionConvertToCursor as Vh, getLineBounding as Dh, 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 Es, 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 Ml, IContextService as
|
|
6
|
-
import { IRenderManagerService as be, withCurrentTypeOfRenderer as dd, SHEET_VIEWPORT_KEY as U, CURSOR_TYPE as ye, Vector2 as
|
|
7
|
-
import { useDependency as L, useObservable as
|
|
8
|
-
import BS, { forwardRef as
|
|
9
|
-
import { BehaviorSubject as
|
|
10
|
-
import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as Os, SELECTION_CONTROL_BORDER_BUFFER_COLOR as is, 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 Dl, SetStyleCommand as zS, MoveRangeCommand as pd, ReorderRangeCommand as jS, rangeToDiscreteRange as Ji, SetSelectionsOperation as
|
|
5
|
+
import { CommandType as Q, createInterceptorKey as cr, ColorKit as Hn, RANGE_TYPE as z, convertCellToRange as Es, 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 Ml, IContextService as He, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as De, EDITOR_ACTIVATED as $e, FOCUSING_EDITOR_STANDALONE as Pl, 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 Lh, sortRules as Xp, LocaleService as xe, getReverseDirection as Wh, 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 El, FOCUSING_EDITOR_INPUT_FORMULA as Ts, LocaleType as cu, FOCUSING_EDITOR_BUT_HIDDEN as hc, DEFAULT_EMPTY_DOCUMENT_VALUE as Bh, LRUMap as jp, BaselineOffset as du, DataStreamTreeTokenType as Yp, skipParseTagNames as Zp, CustomRangeType as ld, generateRandomId as Fh, DEFAULT_WORKSHEET_ROW_HEIGHT as gc, ILogService as Tl, ErrorService as Gp, CellModeEnum as Uh, isNotNullOrUndefined as qp, extractPureTextFromCell as Xh, UserManagerService as Wt, DEFAULT_STYLES as ad, FontWeight as ts, FontItalic as ns, Dimension as zh, BorderStyleTypes as Oe, AbsoluteRefType as uu, NilCommand as cd, UndoCommandId as Qp, Range as vs, cellToRange as Kp, handleStyleToString as hu, convertBodyToHtml as Jp, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY as gu, DEFAULT_WORKSHEET_COLUMN_WIDTH as mu, PresetListType as $p, isRealNum as jh, InterceptorEffectEnum as eS, splitIntoGrid as tS, IAuthzIoService as Ol, isValidRange as nS, DependentOn as Yh, Plugin as Zh, DocumentFlavor as rS, merge as iS, registerDependencies as fu, mergeOverrideWithDependencies as oS, touchDependencies as rs } from "@univerjs/core";
|
|
6
|
+
import { IRenderManagerService as be, withCurrentTypeOfRenderer as dd, 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 ud, RENDER_RAW_FORMULA_KEY as hS, Spreadsheet as Gh, getCurrentTypeOfRenderer as hd, RENDER_CLASS_TYPE as gS, ScrollBar as gd, fixLineWidthByScale as pu, ptToPixel as Su, Shape as md, SHEET_EXTENSION_PREFIX as vu, 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 Cu, useEvent as bu, 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 xl, IMenuManagerService as fd, ToolbarItem as bS, ILayoutService as Al, DEFAULT_BACKGROUND_COLOR_RGB as _S, DEFAULT_BACKGROUND_COLOR_RGBA as wS, handleStringToStyle as RS, textTrim as _u, INotificationService as IS, IPlatformService as yS, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as wu, HTML_CLIPBOARD_MIME_TYPE as Ru, 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 kl, 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 Hl, IUIPartsService as Nl, 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
|
+
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 Iu, filter as Vl, 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 Os, SELECTION_CONTROL_BORDER_BUFFER_COLOR as is, 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 Dl, SetStyleCommand as zS, MoveRangeCommand as pd, ReorderRangeCommand as jS, rangeToDiscreteRange as Ji, SetSelectionsOperation as Pe, SetRangeValuesMutation as we, getSheetCommandTarget as Ue, generateNullCellValue as YS, SetRangeValuesUndoMutationFactory as nn, IRefSelectionsService as Ll, 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 Wl, MoveColsMutation as Bl, SetWorksheetColWidthMutation as an, SetWorksheetRowHeightMutation as so, RemoveSheetMutation as Dn, RemoveMergeUndoMutationFactory as Fl, RemoveWorksheetMergeMutation as $t, AddWorksheetMergeMutation as en, getAddMergeMutationRangeByType as Ul, AddMergeUndoMutationFactory as Xl, WorkbookEditablePermission as J, WorksheetEditPermission as te, UnitAction as lo, alignToMergedCellsBorders as xn, getSelectionsService as Wo, SelectionMoveType as Yt, getCellAtRowCol as Cs, expandToContinuousRange as GS, ScrollToCellOperation as Sd, SetWorksheetShowCommand as vd, WorksheetProtectionRuleModel as pt, RangeProtectionRuleModel as et, RangeProtectionCache as Bo, WorksheetViewPermission as sg, SetWorksheetOrderMutation as Cd, InsertSheetMutation as Nr, SetWorksheetNameMutation as bd, SetWorksheetHideMutation as lr, SetWorksheetActivateCommand as _d, 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 xs, adjustRangeOnMutation as $S, getPrimaryForRange as dg, SetRowHiddenCommand as ug, SetColHiddenCommand as hg, SetBoldCommand as wd, SetItalicCommand as Rd, SetUnderlineCommand as Id, SetStrikeThroughCommand as yd, SetFontSizeCommand as Md, SetFontFamilyCommand as Pd, SetTextColorCommand as gg, SetFrozenMutationFactory as mg, SetFrozenMutation as Rr, RangeProtectionPermissionEditPoint as re, IExclusiveRangeService as ev, CancelFrozenCommand as bs, 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 As, WorksheetCopyPermission as ks, 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 yu, DeleteRangeMoveUpCommand as Mu, EditStateEnum as cn, ViewStateEnum as mi, UnitObject as Nt, DeleteWorksheetProtectionCommand as Hs, DeleteRangeProtectionMutation as Pu, 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 _s, 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 Ed, InsertMultiColsLeftCommand as xg, InsertColBeforeCommand as Ag, WorksheetInsertColumnPermission as kg, InsertRowBeforeCommand as Hg, RemoveWorksheetMergeCommand as Ng, WorkbookCreateProtectPermission as zl, 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
11
|
import { DocSkeletonManagerService as ir, DocSelectionManagerService as Td, RichTextEditingMutation as Ns, SetTextSelectionsOperation as Uo } from "@univerjs/docs";
|
|
12
12
|
import { IDefinedNamesService as Xo, FUNCTION_NAMES_STATISTICAL as Fe, FUNCTION_NAMES_MATH as jl, 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 Eu, serializeRange as Qg, deserializeRangeWithSheet as Kg } from "@univerjs/engine-formula";
|
|
13
13
|
import { isTextFormat as Zv } from "@univerjs/engine-numfmt";
|
|
@@ -350,7 +350,7 @@ class oC {
|
|
|
350
350
|
*/
|
|
351
351
|
_controlMoving(e, t) {
|
|
352
352
|
var P;
|
|
353
|
-
const n = this._scene, i = n.getScrollXYInfoByViewport(
|
|
353
|
+
const n = this._scene, i = n.getScrollXYInfoByViewport(ke.FromArray([e, t])), { scaleX: o, scaleY: s } = n.getAncestorScale(), l = this._skeleton.getCellIndexByOffset(
|
|
354
354
|
e,
|
|
355
355
|
t,
|
|
356
356
|
o,
|
|
@@ -378,7 +378,7 @@ class oC {
|
|
|
378
378
|
* @param evt
|
|
379
379
|
*/
|
|
380
380
|
_controlPointerDownHandler(e) {
|
|
381
|
-
const { offsetX: t, offsetY: n } = e, i = this._scene, o = i.getCoordRelativeToViewport(
|
|
381
|
+
const { offsetX: t, offsetY: n } = e, i = this._scene, o = i.getCoordRelativeToViewport(ke.FromArray([t, n])), { x: s, y: l } = o, a = i.getScrollXYInfoByViewport(o), { scaleX: c, scaleY: d } = i.getAncestorScale(), u = this._skeleton.getCellIndexByOffset(
|
|
382
382
|
s,
|
|
383
383
|
l,
|
|
384
384
|
c,
|
|
@@ -406,7 +406,7 @@ class oC {
|
|
|
406
406
|
if (((O = this._injector.get(lt, dc.OPTIONAL)) == null ? void 0 : O.interceptor.fetchThroughInterceptors(Pc)(!1, null)) === !1)
|
|
407
407
|
return;
|
|
408
408
|
const { x: A, y: k } = i.getCoordRelativeToViewport(
|
|
409
|
-
|
|
409
|
+
ke.FromArray([P, E])
|
|
410
410
|
);
|
|
411
411
|
this._controlMoving(A, k), i.setCursor(ye.MOVE), y.scrolling(A, k, () => {
|
|
412
412
|
this._controlMoving(A, k);
|
|
@@ -463,7 +463,7 @@ class oC {
|
|
|
463
463
|
* @param cursor
|
|
464
464
|
*/
|
|
465
465
|
_widgetPointerDownEvent(e, t) {
|
|
466
|
-
const n = this._scene, { offsetX: i, offsetY: o } = e, s = n.getCoordRelativeToViewport(
|
|
466
|
+
const n = this._scene, { offsetX: i, offsetY: o } = e, s = n.getCoordRelativeToViewport(ke.FromArray([i, o])), { x: l, y: a } = s;
|
|
467
467
|
this._startOffsetX = i, this._startOffsetY = o;
|
|
468
468
|
const {
|
|
469
469
|
startRow: c,
|
|
@@ -475,7 +475,7 @@ class oC {
|
|
|
475
475
|
const S = ri.create(n), v = n.getViewport(U.VIEW_MAIN);
|
|
476
476
|
S.startScroll(l, a, v), this._scrollTimer = S, n.disableObjectsEvent(), this._scenePointerMoveSub = n.onPointerMove$.subscribeEvent((C) => {
|
|
477
477
|
const { offsetX: w, offsetY: R } = C, { x: I, y } = n.getCoordRelativeToViewport(
|
|
478
|
-
|
|
478
|
+
ke.FromArray([w, R])
|
|
479
479
|
);
|
|
480
480
|
this._widgetMoving(I, y, t), n.setCursor(t), S.scrolling(I, y, () => {
|
|
481
481
|
this._widgetMoving(I, y, t);
|
|
@@ -493,7 +493,7 @@ class oC {
|
|
|
493
493
|
* @param cursor
|
|
494
494
|
*/
|
|
495
495
|
_widgetMoving(e, t, n) {
|
|
496
|
-
const i = this._scene, o = i.getScrollXYInfoByViewport(
|
|
496
|
+
const i = this._scene, o = i.getScrollXYInfoByViewport(ke.FromArray([this._startOffsetX, this._startOffsetY])), { scaleX: s, scaleY: l } = i.getAncestorScale(), a = this._skeleton.getCellIndexByOffset(
|
|
497
497
|
e,
|
|
498
498
|
t,
|
|
499
499
|
s,
|
|
@@ -522,7 +522,7 @@ class oC {
|
|
|
522
522
|
o,
|
|
523
523
|
s,
|
|
524
524
|
i
|
|
525
|
-
), { row: a, column: c } = l, d = n.getCoordRelativeToViewport(
|
|
525
|
+
), { row: a, column: c } = l, d = n.getCoordRelativeToViewport(ke.FromArray([e, t])), u = this._skeleton.getRowCount() - 1, h = this._skeleton.getColumnCount() - 1;
|
|
526
526
|
let g = this._relativeSelectionPositionRow, m = this._relativeSelectionPositionColumn, f = this._relativeSelectionPositionRow + this._relativeSelectionRowLength, p = this._relativeSelectionPositionColumn + this._relativeSelectionColumnLength, S = !1, v = !0;
|
|
527
527
|
if ((c < m || c > p) && a >= g && a <= f) {
|
|
528
528
|
const k = this._fillRuler(
|
|
@@ -578,7 +578,7 @@ class oC {
|
|
|
578
578
|
}, this._control.selectionFilling$.next(this._targetSelection);
|
|
579
579
|
}
|
|
580
580
|
_autoFillForPointerdown(e) {
|
|
581
|
-
const { offsetX: t, offsetY: n } = e, i = this._scene, o = i.getCoordRelativeToViewport(
|
|
581
|
+
const { offsetX: t, offsetY: n } = e, i = this._scene, o = i.getCoordRelativeToViewport(ke.FromArray([t, n])), { x: s, y: l } = o;
|
|
582
582
|
this._startOffsetX = s, this._startOffsetY = l;
|
|
583
583
|
const {
|
|
584
584
|
startRow: a,
|
|
@@ -597,7 +597,7 @@ class oC {
|
|
|
597
597
|
this.isHelperSelection && (this._helperSelection = new Ce(xu, {
|
|
598
598
|
stroke: v,
|
|
599
599
|
strokeWidth: m + S / 2
|
|
600
|
-
}), i.addObject(this._helperSelection)), this._activeViewport = i.getActiveViewportByCoord(
|
|
600
|
+
}), i.addObject(this._helperSelection)), this._activeViewport = i.getActiveViewportByCoord(ke.FromArray([t, n]));
|
|
601
601
|
const C = i.getViewport(U.VIEW_MAIN), w = ri.create(
|
|
602
602
|
i,
|
|
603
603
|
this._activeViewport.viewportKey === U.VIEW_MAIN ? Et.ALL : Et.NONE
|
|
@@ -606,11 +606,11 @@ class oC {
|
|
|
606
606
|
this._fillControlColors.push(R.fill);
|
|
607
607
|
}), this._scenePointerMoveSub = i.onPointerMove$.subscribeEvent((R) => {
|
|
608
608
|
var k;
|
|
609
|
-
const { offsetX: I, offsetY: y } = R, M = i.getActiveViewportByCoord(
|
|
609
|
+
const { offsetX: I, offsetY: y } = R, M = i.getActiveViewportByCoord(ke.FromArray([I, y]));
|
|
610
610
|
if (!this._injector.get(lt).interceptor.fetchThroughInterceptors(Ec)(!1, { x: e.offsetX, y: e.offsetY, skeleton: this._skeleton, scene: this._scene }))
|
|
611
611
|
return;
|
|
612
612
|
const { x: E, y: T } = i.getCoordRelativeToViewport(
|
|
613
|
-
|
|
613
|
+
ke.FromArray([I, y])
|
|
614
614
|
);
|
|
615
615
|
this._autoFillMoving(E, T), i.setCursor(ye.CROSSHAIR);
|
|
616
616
|
const A = this._targetSelection;
|
|
@@ -779,18 +779,18 @@ class Vd extends de {
|
|
|
779
779
|
_(this, "_columnHeaderHeight", 0);
|
|
780
780
|
_(this, "_widgetRects", []);
|
|
781
781
|
_(this, "_controlExtension");
|
|
782
|
-
_(this, "_dispose$", new
|
|
782
|
+
_(this, "_dispose$", new Me(this));
|
|
783
783
|
_(this, "dispose$", this._dispose$.asObservable());
|
|
784
784
|
/**
|
|
785
785
|
* eventSource: selectionShapeExtension selectionMoving$.next,
|
|
786
786
|
* Observer: prompt.controller
|
|
787
787
|
*/
|
|
788
|
-
_(this, "selectionMoving$", new
|
|
789
|
-
_(this, "selectionMoveEnd$", new
|
|
790
|
-
_(this, "selectionScaling$", new
|
|
791
|
-
_(this, "selectionScaled$", new
|
|
792
|
-
_(this, "selectionFilling$", new
|
|
793
|
-
_(this, "_selectionFilled$", new
|
|
788
|
+
_(this, "selectionMoving$", new Ae());
|
|
789
|
+
_(this, "selectionMoveEnd$", new Ae());
|
|
790
|
+
_(this, "selectionScaling$", new Ae());
|
|
791
|
+
_(this, "selectionScaled$", new Ae());
|
|
792
|
+
_(this, "selectionFilling$", new Ae());
|
|
793
|
+
_(this, "_selectionFilled$", new Ae());
|
|
794
794
|
_(this, "selectionFilled$", this._selectionFilled$.asObservable());
|
|
795
795
|
_(this, "_antLineOffset", 0);
|
|
796
796
|
_(this, "_antRequestNewFrame", -1);
|
|
@@ -1356,7 +1356,7 @@ class im extends de {
|
|
|
1356
1356
|
_(this, "_downObserver");
|
|
1357
1357
|
_(this, "_scenePointerMoveSub");
|
|
1358
1358
|
_(this, "_scenePointerUpSub");
|
|
1359
|
-
_(this, "_controlFillConfig$", new
|
|
1359
|
+
_(this, "_controlFillConfig$", new Me(null));
|
|
1360
1360
|
_(this, "controlFillConfig$", this._controlFillConfig$.asObservable());
|
|
1361
1361
|
_(this, "_selectionControls", []);
|
|
1362
1362
|
// sheetID:Controls
|
|
@@ -1403,7 +1403,7 @@ class im extends de {
|
|
|
1403
1403
|
/**
|
|
1404
1404
|
* Mainly emit by pointerup in spreadsheet. (pointerup is handled in _onPointerdown)
|
|
1405
1405
|
*/
|
|
1406
|
-
_(this, "_selectionMoveEnd$", new
|
|
1406
|
+
_(this, "_selectionMoveEnd$", new Me([]));
|
|
1407
1407
|
/**
|
|
1408
1408
|
* Pointerup in spreadsheet
|
|
1409
1409
|
*/
|
|
@@ -1411,12 +1411,12 @@ class im extends de {
|
|
|
1411
1411
|
/**
|
|
1412
1412
|
* Mainly emit by pointermove in spreadsheet
|
|
1413
1413
|
*/
|
|
1414
|
-
_(this, "_selectionMoving$", new
|
|
1414
|
+
_(this, "_selectionMoving$", new Ae());
|
|
1415
1415
|
/**
|
|
1416
1416
|
* Pointermove in spreadsheet
|
|
1417
1417
|
*/
|
|
1418
1418
|
_(this, "selectionMoving$", this._selectionMoving$.asObservable());
|
|
1419
|
-
_(this, "_selectionMoveStart$", new
|
|
1419
|
+
_(this, "_selectionMoveStart$", new Ae());
|
|
1420
1420
|
_(this, "selectionMoveStart$", this._selectionMoveStart$.asObservable());
|
|
1421
1421
|
_(this, "_selectionMoving", !1);
|
|
1422
1422
|
_(this, "_selectionTheme");
|
|
@@ -1614,13 +1614,13 @@ class im extends de {
|
|
|
1614
1614
|
var m, f;
|
|
1615
1615
|
let a = 0, c = 0, d = s, u = l;
|
|
1616
1616
|
this._scrollTimer = ri.create(this._scene, o), this._scrollTimer.startScroll((m = t == null ? void 0 : t.left) != null ? m : 0, (f = t == null ? void 0 : t.top) != null ? f : 0, t);
|
|
1617
|
-
const h = this._scene, g = h.getActiveViewportByCoord(
|
|
1617
|
+
const h = this._scene, g = h.getActiveViewportByCoord(ke.FromArray([s, l]));
|
|
1618
1618
|
this._scenePointerMoveSub = h.onPointerMove$.subscribeEvent((p) => {
|
|
1619
1619
|
var A, k, O, H, F, X, B, j, Y;
|
|
1620
|
-
const { offsetX: S, offsetY: v } = p, { x: C, y: w } = h.getCoordRelativeToViewport(
|
|
1620
|
+
const { offsetX: S, offsetY: v } = p, { x: C, y: w } = h.getCoordRelativeToViewport(ke.FromArray([S, v]));
|
|
1621
1621
|
this._movingHandler(C, w, n, i);
|
|
1622
1622
|
let R = C, I = w;
|
|
1623
|
-
const y = this.getActiveSelectionControl(), M = this._getFreeze(), P = y == null ? void 0 : y.model, E = (A = h.getActiveViewportByCoord(
|
|
1623
|
+
const y = this.getActiveSelectionControl(), M = this._getFreeze(), P = y == null ? void 0 : y.model, E = (A = h.getActiveViewportByCoord(ke.FromArray([S, v]))) != null ? A : this._getViewportByCell(P == null ? void 0 : P.endRow, P == null ? void 0 : P.endColumn);
|
|
1624
1624
|
if ((() => {
|
|
1625
1625
|
if (!g || !E || !t)
|
|
1626
1626
|
return !1;
|
|
@@ -1692,7 +1692,7 @@ class im extends de {
|
|
|
1692
1692
|
startColumn: (y = i == null ? void 0 : i.model.startColumn) != null ? y : -1,
|
|
1693
1693
|
endColumn: (M = i == null ? void 0 : i.model.endColumn) != null ? M : -1
|
|
1694
1694
|
}, u = l.getViewport(U.VIEW_MAIN), h = (P = this._getViewportByCell(d.endRow, d.endColumn)) != null ? P : u, g = l.getScrollXYInfoByViewport(
|
|
1695
|
-
|
|
1695
|
+
ke.FromArray([this._startViewportPosX, this._startViewportPosY]),
|
|
1696
1696
|
h
|
|
1697
1697
|
), { scaleX: m, scaleY: f } = l.getAncestorScale();
|
|
1698
1698
|
o === z.ROW ? t = Number.POSITIVE_INFINITY : o === z.COLUMN && (n = Number.POSITIVE_INFINITY);
|
|
@@ -1861,12 +1861,12 @@ let ge = class extends de {
|
|
|
1861
1861
|
_(this, "_sheetId", "");
|
|
1862
1862
|
// @TODO lumixraku, why need this? How about put dirty & sheetId & unitId in skeleton itself?
|
|
1863
1863
|
_(this, "_sheetSkeletonParamStore", /* @__PURE__ */ new Map());
|
|
1864
|
-
_(this, "_currentSkeleton$", new
|
|
1864
|
+
_(this, "_currentSkeleton$", new Me(null));
|
|
1865
1865
|
_(this, "currentSkeleton$", this._currentSkeleton$.asObservable());
|
|
1866
1866
|
/**
|
|
1867
1867
|
* CurrentSkeletonBefore for pre-triggered logic during registration
|
|
1868
1868
|
*/
|
|
1869
|
-
_(this, "_currentSkeletonBefore$", new
|
|
1869
|
+
_(this, "_currentSkeletonBefore$", new Me(null));
|
|
1870
1870
|
_(this, "currentSkeletonBefore$", this._currentSkeletonBefore$.asObservable());
|
|
1871
1871
|
this._context = e, this._injector = t, this._sheetSkService = n, this.disposeWithMe(() => {
|
|
1872
1872
|
this._currentSkeletonBefore$.complete(), this._currentSkeleton$.complete(), this._sheetSkeletonParamStore.forEach((i) => this.disposeSkeleton(i.sheetId)), this._sheetSkeletonParamStore.clear();
|
|
@@ -2058,18 +2058,18 @@ ge = cC([
|
|
|
2058
2058
|
ku(2, N(XS))
|
|
2059
2059
|
], ge);
|
|
2060
2060
|
function ur() {
|
|
2061
|
-
const r = L(V), e =
|
|
2061
|
+
const r = L(V), e = gt(() => r.getCurrentTypeOfUnit$(x.UNIVER_SHEET), void 0, void 0, []);
|
|
2062
2062
|
return e != null ? e : null;
|
|
2063
2063
|
}
|
|
2064
2064
|
function PP(r) {
|
|
2065
|
-
return
|
|
2065
|
+
return gt(() => {
|
|
2066
2066
|
var t;
|
|
2067
2067
|
return (t = r == null ? void 0 : r.activeSheet$) != null ? t : Re(null);
|
|
2068
2068
|
}, void 0, void 0, [r]);
|
|
2069
2069
|
}
|
|
2070
2070
|
function EP() {
|
|
2071
2071
|
const r = L(V);
|
|
2072
|
-
return
|
|
2072
|
+
return gt(() => _t([
|
|
2073
2073
|
r.getTypeOfUnitAdded$(x.UNIVER_SHEET),
|
|
2074
2074
|
r.getTypeOfUnitDisposed$(x.UNIVER_SHEET)
|
|
2075
2075
|
]).pipe(
|
|
@@ -2676,9 +2676,9 @@ function Lu(r) {
|
|
|
2676
2676
|
function Or(r) {
|
|
2677
2677
|
r && "custom" in r && delete r.custom;
|
|
2678
2678
|
}
|
|
2679
|
-
var ti = /* @__PURE__ */ ((r) => (r.Append = "APPEND", r.Default = "DEFAULT", r.Only = "ONLY", r))(ti || {}),
|
|
2679
|
+
var ti = /* @__PURE__ */ ((r) => (r.Append = "APPEND", r.Default = "DEFAULT", r.Only = "ONLY", r))(ti || {}), mt = /* @__PURE__ */ ((r) => (r.NUMBER = "number", r.DATE = "date", r.EXTEND_NUMBER = "extendNumber", r.CHN_NUMBER = "chnNumber", r.CHN_WEEK2 = "chnWeek2", r.CHN_WEEK3 = "chnWeek3", r.LOOP_SERIES = "loopSeries", r.FORMULA = "formula", r.OTHER = "other", r))(mt || {}), Ve = /* @__PURE__ */ ((r) => (r.COPY = "COPY", r.SERIES = "SERIES", r.ONLY_FORMAT = "ONLY_FORMAT", r.NO_FORMAT = "NO_FORMAT", r))(Ve || {});
|
|
2680
2680
|
const MC = {
|
|
2681
|
-
type:
|
|
2681
|
+
type: mt.DATE,
|
|
2682
2682
|
priority: 1100,
|
|
2683
2683
|
match: (r, e) => {
|
|
2684
2684
|
var t;
|
|
@@ -2694,36 +2694,36 @@ const MC = {
|
|
|
2694
2694
|
}
|
|
2695
2695
|
return !1;
|
|
2696
2696
|
},
|
|
2697
|
-
isContinue: (r, e) => r.type ===
|
|
2697
|
+
isContinue: (r, e) => r.type === mt.DATE,
|
|
2698
2698
|
applyFunctions: {
|
|
2699
|
-
[
|
|
2699
|
+
[Ve.SERIES]: (r, e, t) => {
|
|
2700
2700
|
const { data: n } = r;
|
|
2701
2701
|
return t === W.LEFT || t === W.UP ? (n.reverse(), Us(n, e, t).reverse()) : Us(n, e, t);
|
|
2702
2702
|
}
|
|
2703
2703
|
}
|
|
2704
2704
|
}, PC = {
|
|
2705
|
-
type:
|
|
2705
|
+
type: mt.NUMBER,
|
|
2706
2706
|
priority: 1e3,
|
|
2707
2707
|
match: (r) => typeof (r == null ? void 0 : r.v) == "number" || (r == null ? void 0 : r.t) === jt.NUMBER,
|
|
2708
|
-
isContinue: (r, e) => r.type ===
|
|
2708
|
+
isContinue: (r, e) => r.type === mt.NUMBER,
|
|
2709
2709
|
applyFunctions: {
|
|
2710
|
-
[
|
|
2710
|
+
[Ve.SERIES]: (r, e, t) => {
|
|
2711
2711
|
const { data: n } = r;
|
|
2712
2712
|
return t === W.LEFT || t === W.UP ? (n.reverse(), Us(n, e, t).reverse()) : Us(n, e, t);
|
|
2713
2713
|
}
|
|
2714
2714
|
}
|
|
2715
2715
|
}, cm = {
|
|
2716
|
-
type:
|
|
2716
|
+
type: mt.OTHER,
|
|
2717
2717
|
priority: 0,
|
|
2718
2718
|
match: () => !0,
|
|
2719
|
-
isContinue: (r, e) => r.type ===
|
|
2719
|
+
isContinue: (r, e) => r.type === mt.OTHER
|
|
2720
2720
|
}, EC = {
|
|
2721
|
-
type:
|
|
2721
|
+
type: mt.EXTEND_NUMBER,
|
|
2722
2722
|
priority: 900,
|
|
2723
2723
|
match: (r) => os(`${r == null ? void 0 : r.v}` || "").isExtendNumber,
|
|
2724
2724
|
isContinue: (r, e) => {
|
|
2725
2725
|
var t;
|
|
2726
|
-
if (r.type ===
|
|
2726
|
+
if (r.type === mt.EXTEND_NUMBER) {
|
|
2727
2727
|
const { beforeTxt: n, afterTxt: i } = os(`${(t = r.cellData) == null ? void 0 : t.v}` || ""), { beforeTxt: o, afterTxt: s } = os(`${e == null ? void 0 : e.v}` || "");
|
|
2728
2728
|
if (n === o && i === s)
|
|
2729
2729
|
return !0;
|
|
@@ -2731,7 +2731,7 @@ const MC = {
|
|
|
2731
2731
|
return !1;
|
|
2732
2732
|
},
|
|
2733
2733
|
applyFunctions: {
|
|
2734
|
-
[
|
|
2734
|
+
[Ve.SERIES]: (r, e, t) => {
|
|
2735
2735
|
var l;
|
|
2736
2736
|
const { data: n } = r, i = t === W.UP || t === W.LEFT;
|
|
2737
2737
|
let o;
|
|
@@ -2746,12 +2746,12 @@ const MC = {
|
|
|
2746
2746
|
}
|
|
2747
2747
|
}
|
|
2748
2748
|
}, TC = {
|
|
2749
|
-
type:
|
|
2749
|
+
type: mt.CHN_NUMBER,
|
|
2750
2750
|
priority: 830,
|
|
2751
2751
|
match: (r) => !!pC(`${r == null ? void 0 : r.v}` || ""),
|
|
2752
|
-
isContinue: (r, e) => r.type ===
|
|
2752
|
+
isContinue: (r, e) => r.type === mt.CHN_NUMBER,
|
|
2753
2753
|
applyFunctions: {
|
|
2754
|
-
[
|
|
2754
|
+
[Ve.SERIES]: (r, e, t) => {
|
|
2755
2755
|
var a, c, d;
|
|
2756
2756
|
const { data: n } = r, i = t === W.LEFT || t === W.UP;
|
|
2757
2757
|
if (n.length === 1) {
|
|
@@ -2783,12 +2783,12 @@ const MC = {
|
|
|
2783
2783
|
}
|
|
2784
2784
|
}
|
|
2785
2785
|
}, OC = {
|
|
2786
|
-
type:
|
|
2786
|
+
type: mt.CHN_WEEK2,
|
|
2787
2787
|
priority: 820,
|
|
2788
2788
|
match: (r) => !!SC(`${r == null ? void 0 : r.v}` || ""),
|
|
2789
|
-
isContinue: (r, e) => r.type ===
|
|
2789
|
+
isContinue: (r, e) => r.type === mt.CHN_WEEK2,
|
|
2790
2790
|
applyFunctions: {
|
|
2791
|
-
[
|
|
2791
|
+
[Ve.SERIES]: (r, e, t) => {
|
|
2792
2792
|
var l;
|
|
2793
2793
|
const { data: n } = r, i = t === W.LEFT || t === W.UP;
|
|
2794
2794
|
if (n.length === 1) {
|
|
@@ -2809,12 +2809,12 @@ const MC = {
|
|
|
2809
2809
|
}
|
|
2810
2810
|
}
|
|
2811
2811
|
}, xC = {
|
|
2812
|
-
type:
|
|
2812
|
+
type: mt.CHN_WEEK3,
|
|
2813
2813
|
priority: 810,
|
|
2814
2814
|
match: (r) => vC(`${r == null ? void 0 : r.v}` || ""),
|
|
2815
|
-
isContinue: (r, e) => r.type ===
|
|
2815
|
+
isContinue: (r, e) => r.type === mt.CHN_WEEK3,
|
|
2816
2816
|
applyFunctions: {
|
|
2817
|
-
[
|
|
2817
|
+
[Ve.SERIES]: (r, e, t) => {
|
|
2818
2818
|
var l;
|
|
2819
2819
|
const { data: n } = r, i = t === W.LEFT || t === W.UP;
|
|
2820
2820
|
if (n.length === 1) {
|
|
@@ -2838,15 +2838,15 @@ const MC = {
|
|
|
2838
2838
|
}
|
|
2839
2839
|
}
|
|
2840
2840
|
}, AC = {
|
|
2841
|
-
type:
|
|
2841
|
+
type: mt.LOOP_SERIES,
|
|
2842
2842
|
priority: 800,
|
|
2843
2843
|
match: (r) => yC(`${r == null ? void 0 : r.v}` || ""),
|
|
2844
2844
|
isContinue: (r, e) => {
|
|
2845
2845
|
var t;
|
|
2846
|
-
return r.type ===
|
|
2846
|
+
return r.type === mt.LOOP_SERIES ? _a(`${(t = r.cellData) == null ? void 0 : t.v}` || "").name === _a(`${e == null ? void 0 : e.v}` || "").name : !1;
|
|
2847
2847
|
},
|
|
2848
2848
|
applyFunctions: {
|
|
2849
|
-
[
|
|
2849
|
+
[Ve.SERIES]: (r, e, t) => {
|
|
2850
2850
|
var a, c;
|
|
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) {
|
|
@@ -2880,34 +2880,34 @@ let Xs = class extends de {
|
|
|
2880
2880
|
super();
|
|
2881
2881
|
_(this, "_rules", []);
|
|
2882
2882
|
_(this, "_hooks", []);
|
|
2883
|
-
_(this, "_applyType$", new
|
|
2883
|
+
_(this, "_applyType$", new Me(Ve.SERIES));
|
|
2884
2884
|
_(this, "_isFillingStyle", !0);
|
|
2885
2885
|
_(this, "_prevUndos", []);
|
|
2886
|
-
_(this, "_autoFillLocation$", new
|
|
2886
|
+
_(this, "_autoFillLocation$", new Me(null));
|
|
2887
2887
|
_(this, "autoFillLocation$", this._autoFillLocation$.asObservable());
|
|
2888
|
-
_(this, "_showMenu$", new
|
|
2888
|
+
_(this, "_showMenu$", new Me(!1));
|
|
2889
2889
|
_(this, "showMenu$", this._showMenu$.asObservable());
|
|
2890
2890
|
_(this, "_direction", W.DOWN);
|
|
2891
2891
|
_(this, "applyType$", this._applyType$.asObservable());
|
|
2892
|
-
_(this, "_menu$", new
|
|
2892
|
+
_(this, "_menu$", new Me([
|
|
2893
2893
|
{
|
|
2894
2894
|
label: "autoFill.copy",
|
|
2895
|
-
value:
|
|
2895
|
+
value: Ve.COPY,
|
|
2896
2896
|
disable: !1
|
|
2897
2897
|
},
|
|
2898
2898
|
{
|
|
2899
2899
|
label: "autoFill.series",
|
|
2900
|
-
value:
|
|
2900
|
+
value: Ve.SERIES,
|
|
2901
2901
|
disable: !1
|
|
2902
2902
|
},
|
|
2903
2903
|
{
|
|
2904
2904
|
label: "autoFill.formatOnly",
|
|
2905
|
-
value:
|
|
2905
|
+
value: Ve.ONLY_FORMAT,
|
|
2906
2906
|
disable: !1
|
|
2907
2907
|
},
|
|
2908
2908
|
{
|
|
2909
2909
|
label: "autoFill.noFormat",
|
|
2910
|
-
value:
|
|
2910
|
+
value: Ve.NO_FORMAT,
|
|
2911
2911
|
disable: !1
|
|
2912
2912
|
}
|
|
2913
2913
|
]));
|
|
@@ -3084,7 +3084,7 @@ let Xs = class extends de {
|
|
|
3084
3084
|
this._commandService.syncExecuteCommand(C.id, C.params);
|
|
3085
3085
|
}), this._prevUndos = [];
|
|
3086
3086
|
const l = he.union(Er(t), Er(n)), a = this.getActiveHooks(), c = this._univerInstanceService.getUnit(i, x.UNIVER_SHEET);
|
|
3087
|
-
this._commandService.syncExecuteCommand(
|
|
3087
|
+
this._commandService.syncExecuteCommand(Pe.id, {
|
|
3088
3088
|
selections: [
|
|
3089
3089
|
{
|
|
3090
3090
|
primary: { ...(v = (S = this._selectionManagerService.getCurrentLastSelection()) == null ? void 0 : S.primary) != null ? v : l },
|
|
@@ -3104,7 +3104,7 @@ let Xs = class extends de {
|
|
|
3104
3104
|
w && d.push(...w), R && u.push(...R);
|
|
3105
3105
|
});
|
|
3106
3106
|
const h = u.every((C) => this._commandService.syncExecuteCommand(C.id, C.params)), g = [];
|
|
3107
|
-
e !==
|
|
3107
|
+
e !== Ve.NO_FORMAT && u.forEach((C) => {
|
|
3108
3108
|
if (C.id === we.id) {
|
|
3109
3109
|
const { cellValue: w } = C.params;
|
|
3110
3110
|
new Je(w).forValue((I, y, M) => {
|
|
@@ -3185,7 +3185,7 @@ const Lr = vn("univer.auto-fill-service"), br = {
|
|
|
3185
3185
|
unitId: l,
|
|
3186
3186
|
subUnitId: a
|
|
3187
3187
|
};
|
|
3188
|
-
if (n.executeCommand(
|
|
3188
|
+
if (n.executeCommand(Pe.id, f), n.syncExecuteCommand(we.id, u)) {
|
|
3189
3189
|
const S = o.afterCommandExecute({
|
|
3190
3190
|
id: we.id,
|
|
3191
3191
|
params: u
|
|
@@ -3213,7 +3213,7 @@ var NC = Object.getOwnPropertyDescriptor, VC = (r, e, t, n) => {
|
|
|
3213
3213
|
let Ac = class extends de {
|
|
3214
3214
|
constructor(e, t, n, i, o, s, l) {
|
|
3215
3215
|
super();
|
|
3216
|
-
_(this, "_editorUnitId",
|
|
3216
|
+
_(this, "_editorUnitId", De);
|
|
3217
3217
|
_(this, "_editorIsDirty", !1);
|
|
3218
3218
|
_(this, "_isDisabled", !1);
|
|
3219
3219
|
_(this, "_visible", {
|
|
@@ -3225,18 +3225,18 @@ let Ac = class extends de {
|
|
|
3225
3225
|
_(this, "_currentEditCellState", null);
|
|
3226
3226
|
_(this, "_currentEditCellLayout", null);
|
|
3227
3227
|
// TODO: @weird94 this should split into to subjects, documentDataModel & position
|
|
3228
|
-
_(this, "_currentEditCellState$", new
|
|
3228
|
+
_(this, "_currentEditCellState$", new Me(null));
|
|
3229
3229
|
_(this, "currentEditCellState$", this._currentEditCellState$.asObservable());
|
|
3230
|
-
_(this, "_currentEditCellLayout$", new
|
|
3230
|
+
_(this, "_currentEditCellLayout$", new Me(null));
|
|
3231
3231
|
_(this, "currentEditCellLayout$", this._currentEditCellLayout$.asObservable());
|
|
3232
3232
|
_(this, "currentEditCell$", this._currentEditCellState$.pipe(
|
|
3233
3233
|
ct((e) => this._currentEditCellLayout$.pipe(Be((t) => e && t ? { ...e, ...t } : null)))
|
|
3234
3234
|
));
|
|
3235
|
-
_(this, "_visible$", new
|
|
3235
|
+
_(this, "_visible$", new Me(this._visible));
|
|
3236
3236
|
_(this, "visible$", this._visible$.asObservable());
|
|
3237
|
-
_(this, "_afterVisible$", new
|
|
3237
|
+
_(this, "_afterVisible$", new Me(this._visible));
|
|
3238
3238
|
_(this, "afterVisible$", this._afterVisible$.asObservable());
|
|
3239
|
-
_(this, "_forceKeepVisible$", new
|
|
3239
|
+
_(this, "_forceKeepVisible$", new Me(!1));
|
|
3240
3240
|
_(this, "forceKeepVisible$", this._forceKeepVisible$.asObservable());
|
|
3241
3241
|
this._sheetInterceptorService = e, this._renderManagerService = t, this._themeService = n, this._univerInstanceService = i, this._editorService = o, this._refSelectionsService = s, this._contextService = l, this.disposeWithMe(We(() => {
|
|
3242
3242
|
this._currentEditCellState$.complete(), this._currentEditCell = null;
|
|
@@ -3284,7 +3284,7 @@ let Ac = class extends de {
|
|
|
3284
3284
|
}, this._currentEditCellLayout$.next(this._currentEditCellLayout);
|
|
3285
3285
|
}
|
|
3286
3286
|
setEditCell(e) {
|
|
3287
|
-
this._currentEditCell = e, this._editorService.getFocusEditor() || (this._editorService.focus(
|
|
3287
|
+
this._currentEditCell = e, this._editorService.getFocusEditor() || (this._editorService.focus(De), this._contextService.setContextValue($e, !1), this._contextService.setContextValue(Pl, !1));
|
|
3288
3288
|
const t = this.getLatestEditCellState();
|
|
3289
3289
|
if (!t) {
|
|
3290
3290
|
this._currentEditCellState = t, this._currentEditCellLayout = t, this._currentEditCellState$.next(t), this._currentEditCellLayout$.next(t);
|
|
@@ -3428,12 +3428,20 @@ Ac = VC([
|
|
|
3428
3428
|
gr(3, V),
|
|
3429
3429
|
gr(4, kr),
|
|
3430
3430
|
gr(5, Ll),
|
|
3431
|
-
gr(6,
|
|
3431
|
+
gr(6, He)
|
|
3432
3432
|
], Ac);
|
|
3433
3433
|
const it = vn("univer.sheet-editor-bridge.service"), at = {
|
|
3434
3434
|
id: "sheet.operation.set-cell-edit-visible",
|
|
3435
3435
|
type: Q.OPERATION,
|
|
3436
|
-
handler: (r, e) =>
|
|
3436
|
+
handler: (r, e) => {
|
|
3437
|
+
if (!e)
|
|
3438
|
+
return !1;
|
|
3439
|
+
const { unitId: t } = e, i = r.get(V).getCurrentUnitForType(x.UNIVER_SHEET);
|
|
3440
|
+
return i ? (r.get(it).changeVisible({
|
|
3441
|
+
...e,
|
|
3442
|
+
unitId: t != null ? t : i.getUnitId()
|
|
3443
|
+
}), !0) : !1;
|
|
3444
|
+
}
|
|
3437
3445
|
}, Gl = {
|
|
3438
3446
|
id: "sheet.operation.set-cell-edit-visible-f2",
|
|
3439
3447
|
type: Q.OPERATION,
|
|
@@ -3510,7 +3518,7 @@ function Wu(r, e, t, n) {
|
|
|
3510
3518
|
return { startX: i, startY: o, endX: s, endY: l };
|
|
3511
3519
|
}
|
|
3512
3520
|
function Wn(r, e, t, n, i, o) {
|
|
3513
|
-
const s = t.getCoordRelativeToViewport(
|
|
3521
|
+
const s = t.getCoordRelativeToViewport(ke.FromArray([r, e])), { x: l, y: a } = s, c = t.getScrollXYInfoByViewport(s, i), { scaleX: d, scaleY: u } = t.getAncestorScale(), h = n.getCellIndexByOffset(
|
|
3514
3522
|
l,
|
|
3515
3523
|
a,
|
|
3516
3524
|
d,
|
|
@@ -3528,7 +3536,7 @@ function Wn(r, e, t, n, i, o) {
|
|
|
3528
3536
|
};
|
|
3529
3537
|
}
|
|
3530
3538
|
function ws(r, e, t, n) {
|
|
3531
|
-
const i = t.getCoordRelativeToViewport(
|
|
3539
|
+
const i = t.getCoordRelativeToViewport(ke.FromArray([r, e])), o = t.getViewport(U.VIEW_MAIN), s = t.getScrollXYInfoByViewport(i, o), { scaleX: l, scaleY: a } = t.getAncestorScale(), { x: c, y: d } = s, u = r / l + c, h = e / a + d;
|
|
3532
3540
|
return { x: u, y: h };
|
|
3533
3541
|
}
|
|
3534
3542
|
var LC = Object.getOwnPropertyDescriptor, WC = (r, e, t, n) => {
|
|
@@ -3598,7 +3606,7 @@ let ho = class extends de {
|
|
|
3598
3606
|
ho = WC([
|
|
3599
3607
|
ss(1, N(ge)),
|
|
3600
3608
|
ss(2, D),
|
|
3601
|
-
ss(3,
|
|
3609
|
+
ss(3, He),
|
|
3602
3610
|
ss(4, sd(it))
|
|
3603
3611
|
], ho);
|
|
3604
3612
|
const tn = {
|
|
@@ -3662,7 +3670,7 @@ let xr = class extends Un {
|
|
|
3662
3670
|
}
|
|
3663
3671
|
};
|
|
3664
3672
|
xr = FC([
|
|
3665
|
-
wa(0,
|
|
3673
|
+
wa(0, He),
|
|
3666
3674
|
wa(1, V),
|
|
3667
3675
|
wa(2, be)
|
|
3668
3676
|
], xr);
|
|
@@ -3726,7 +3734,7 @@ let zs = class extends de {
|
|
|
3726
3734
|
this._currentLocation = null, this._beforeApplyData = [], this._copyData = [], this._autoFillService.setShowMenu(!1);
|
|
3727
3735
|
}
|
|
3728
3736
|
_initSelectionControlFillChanged() {
|
|
3729
|
-
const e = new
|
|
3737
|
+
const e = new bt(), t = () => {
|
|
3730
3738
|
e.dispose();
|
|
3731
3739
|
const n = hd(x.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService);
|
|
3732
3740
|
if (!n) return;
|
|
@@ -3767,7 +3775,7 @@ let zs = class extends de {
|
|
|
3767
3775
|
});
|
|
3768
3776
|
};
|
|
3769
3777
|
t(), this.disposeWithMe(this._commandService.onCommandExecuted((n) => {
|
|
3770
|
-
n.id ===
|
|
3778
|
+
n.id === Pe.id && t();
|
|
3771
3779
|
})), this.disposeWithMe(this._univerInstanceService.getCurrentTypeOfUnit$(x.UNIVER_SHEET).subscribe(() => t()));
|
|
3772
3780
|
}
|
|
3773
3781
|
_handleDbClickFill(e) {
|
|
@@ -3808,7 +3816,7 @@ let zs = class extends de {
|
|
|
3808
3816
|
// calc apply data according to copy data and direction
|
|
3809
3817
|
_getApplyData(e, t, n, i, o, s = !0) {
|
|
3810
3818
|
const l = [], a = Math.floor(n / t), c = n % t, d = this._autoFillService.getRules();
|
|
3811
|
-
if (!s && o ===
|
|
3819
|
+
if (!s && o === Ve.ONLY_FORMAT)
|
|
3812
3820
|
return console.error("ERROR: only format can not be applied when hasStyle is false"), [];
|
|
3813
3821
|
const u = {};
|
|
3814
3822
|
d.forEach((h) => {
|
|
@@ -3837,16 +3845,16 @@ let zs = class extends de {
|
|
|
3837
3845
|
}
|
|
3838
3846
|
_applyFunctions(e, t, n, i, o, s) {
|
|
3839
3847
|
const { data: l } = e, a = n === W.UP || n === W.LEFT;
|
|
3840
|
-
if (i ===
|
|
3841
|
-
const c = o == null ? void 0 : o[
|
|
3848
|
+
if (i === Ve.COPY) {
|
|
3849
|
+
const c = o == null ? void 0 : o[Ve.COPY];
|
|
3842
3850
|
return c ? c(e, t, n, s) : (a && l.reverse(), Tr(l, t));
|
|
3843
3851
|
}
|
|
3844
|
-
if (i ===
|
|
3845
|
-
const c = o == null ? void 0 : o[
|
|
3846
|
-
return c ? c(e, t, n, s) : (a && l.reverse(), o != null && o[
|
|
3852
|
+
if (i === Ve.SERIES) {
|
|
3853
|
+
const c = o == null ? void 0 : o[Ve.SERIES];
|
|
3854
|
+
return c ? c(e, t, n, s) : (a && l.reverse(), o != null && o[Ve.COPY] ? o[Ve.COPY](e, t, n, s) : Tr(l, t));
|
|
3847
3855
|
}
|
|
3848
|
-
if (i ===
|
|
3849
|
-
const c = o == null ? void 0 : o[
|
|
3856
|
+
if (i === Ve.ONLY_FORMAT) {
|
|
3857
|
+
const c = o == null ? void 0 : o[Ve.ONLY_FORMAT];
|
|
3850
3858
|
return c ? c(e, t, n, s) : _C(l, t);
|
|
3851
3859
|
}
|
|
3852
3860
|
}
|
|
@@ -3950,7 +3958,7 @@ let zs = class extends de {
|
|
|
3950
3958
|
i.cols.forEach((d) => {
|
|
3951
3959
|
c.push(ie.deepClone(s.getValue(a, d)));
|
|
3952
3960
|
}), l.push(c);
|
|
3953
|
-
}), this._beforeApplyData = l, this._copyData = this._getCopyData(n, t), this._currentLocation = e, this._shouldDisableSeries(this._copyData) ? (this._autoFillService.setDisableApplyType(
|
|
3961
|
+
}), this._beforeApplyData = l, this._copyData = this._getCopyData(n, t), this._currentLocation = e, this._shouldDisableSeries(this._copyData) ? (this._autoFillService.setDisableApplyType(Ve.SERIES, !0), Ve.COPY) : (this._autoFillService.setDisableApplyType(Ve.SERIES, !1), this._getPreferredApplyType(this._copyData));
|
|
3954
3962
|
}
|
|
3955
3963
|
// auto fill entry
|
|
3956
3964
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -3958,7 +3966,7 @@ let zs = class extends de {
|
|
|
3958
3966
|
var A, k;
|
|
3959
3967
|
const i = [], o = [];
|
|
3960
3968
|
let s = !0;
|
|
3961
|
-
n ===
|
|
3969
|
+
n === Ve.NO_FORMAT && (s = !1, n = Ve.SERIES);
|
|
3962
3970
|
const { source: l, target: a, unitId: c, subUnitId: d } = e;
|
|
3963
3971
|
if (!l || !a || t == null)
|
|
3964
3972
|
return {
|
|
@@ -4006,7 +4014,7 @@ let zs = class extends de {
|
|
|
4006
4014
|
O.forEach((F, X) => {
|
|
4007
4015
|
F && R && (F.s = R.getStyleByCell(this._beforeApplyData[H][X]) || null);
|
|
4008
4016
|
});
|
|
4009
|
-
}), n ===
|
|
4017
|
+
}), n === Ve.ONLY_FORMAT && C.forEach((O, H) => {
|
|
4010
4018
|
O.forEach((F, X) => {
|
|
4011
4019
|
if (F) {
|
|
4012
4020
|
const B = this._beforeApplyData[H][X] || {};
|
|
@@ -4075,7 +4083,7 @@ let zs = class extends de {
|
|
|
4075
4083
|
(t) => Object.keys(t).every(
|
|
4076
4084
|
(n) => {
|
|
4077
4085
|
var i;
|
|
4078
|
-
return ((i = t[n]) == null ? void 0 : i.length) === 0 || [
|
|
4086
|
+
return ((i = t[n]) == null ? void 0 : i.length) === 0 || [mt.OTHER, mt.FORMULA].includes(n);
|
|
4079
4087
|
}
|
|
4080
4088
|
)
|
|
4081
4089
|
);
|
|
@@ -4085,10 +4093,10 @@ let zs = class extends de {
|
|
|
4085
4093
|
(n) => Object.keys(n).every(
|
|
4086
4094
|
(i) => {
|
|
4087
4095
|
var o, s;
|
|
4088
|
-
return ((o = n[i]) == null ? void 0 : o.length) === 0 || ((s = n[i]) == null ? void 0 : s.length) === 1 && n[i][0].data.length === 1 &&
|
|
4096
|
+
return ((o = n[i]) == null ? void 0 : o.length) === 0 || ((s = n[i]) == null ? void 0 : s.length) === 1 && n[i][0].data.length === 1 && mt.NUMBER === i;
|
|
4089
4097
|
}
|
|
4090
4098
|
)
|
|
4091
|
-
) ?
|
|
4099
|
+
) ? Ve.COPY : Ve.SERIES;
|
|
4092
4100
|
}
|
|
4093
4101
|
};
|
|
4094
4102
|
zs = XC([
|
|
@@ -4113,7 +4121,7 @@ let js = class extends de {
|
|
|
4113
4121
|
}
|
|
4114
4122
|
// eslint-disable-next-line max-lines-per-function
|
|
4115
4123
|
_initEventBinding() {
|
|
4116
|
-
const e = new
|
|
4124
|
+
const e = new bt(), t = this._context.unit, n = (i) => {
|
|
4117
4125
|
if (e.dispose(), !i)
|
|
4118
4126
|
return;
|
|
4119
4127
|
const o = this._context.unitId, { skeleton: s } = i, l = this._renderManagerService.getRenderById(o);
|
|
@@ -4123,7 +4131,7 @@ let js = class extends de {
|
|
|
4123
4131
|
if (!p)
|
|
4124
4132
|
return;
|
|
4125
4133
|
const S = f.getActiveViewportByCoord(
|
|
4126
|
-
|
|
4134
|
+
ke.FromArray([g, m])
|
|
4127
4135
|
);
|
|
4128
4136
|
if (!S)
|
|
4129
4137
|
return;
|
|
@@ -4259,7 +4267,7 @@ let Si = class {
|
|
|
4259
4267
|
};
|
|
4260
4268
|
Si = ZC([
|
|
4261
4269
|
Fu(0, V),
|
|
4262
|
-
Fu(1, N(
|
|
4270
|
+
Fu(1, N(xe))
|
|
4263
4271
|
], Si);
|
|
4264
4272
|
var ql = /* @__PURE__ */ ((r) => (r.MergeAll = "mergeAll", r.MergeVertical = "mergeVertical", r.MergeHorizontal = "mergeHorizontal", r))(ql || {});
|
|
4265
4273
|
function nr(r, e, t, n, i = !0, o = 1, s = !0) {
|
|
@@ -4659,7 +4667,7 @@ const Bt = {
|
|
|
4659
4667
|
}
|
|
4660
4668
|
}
|
|
4661
4669
|
];
|
|
4662
|
-
return r.get(D).executeCommand(
|
|
4670
|
+
return r.get(D).executeCommand(Pe.id, {
|
|
4663
4671
|
unitId: n.getUnitId(),
|
|
4664
4672
|
subUnitId: i.getSheetId(),
|
|
4665
4673
|
selections: f,
|
|
@@ -4767,7 +4775,7 @@ const Bt = {
|
|
|
4767
4775
|
};
|
|
4768
4776
|
}
|
|
4769
4777
|
T ? (c[d].primary = null, c[m] = I, o.setSelections(f, p, [], Yt.MOVE_END)) : c[d] = I;
|
|
4770
|
-
const A = r.get(D).executeCommand(
|
|
4778
|
+
const A = r.get(D).executeCommand(Pe.id, {
|
|
4771
4779
|
unitId: f,
|
|
4772
4780
|
subUnitId: p,
|
|
4773
4781
|
type: Yt.MOVE_END,
|
|
@@ -4792,7 +4800,7 @@ const Bt = {
|
|
|
4792
4800
|
d,
|
|
4793
4801
|
n
|
|
4794
4802
|
) : KC(l, d, n) : c === 1 ? GC(l, d, n) : qC(l, d, n);
|
|
4795
|
-
return g.rangeType = s.range.rangeType, he.equals(g, l) ? !1 : r.get(D).syncExecuteCommand(
|
|
4803
|
+
return g.rangeType = s.range.rangeType, he.equals(g, l) ? !1 : r.get(D).syncExecuteCommand(Pe.id, {
|
|
4796
4804
|
unitId: i,
|
|
4797
4805
|
subUnitId: o,
|
|
4798
4806
|
type: Yt.MOVE_END,
|
|
@@ -4828,7 +4836,7 @@ const Bt = {
|
|
|
4828
4836
|
} else
|
|
4829
4837
|
return !1;
|
|
4830
4838
|
else u ? (p = GS(g, { left: !0, right: !0, up: !0, down: !0 }, o), he.equals(p, g) && (p = Uu(o))) : p = Uu(o);
|
|
4831
|
-
return i.rangesStack.some((S) => he.equals(S, p)) || i.rangesStack.push(p), r.get(D).executeCommand(
|
|
4839
|
+
return i.rangesStack.some((S) => he.equals(S, p)) || i.rangesStack.push(p), r.get(D).executeCommand(Pe.id, {
|
|
4832
4840
|
unitId: s,
|
|
4833
4841
|
subUnitId: l,
|
|
4834
4842
|
reveal: !0,
|
|
@@ -4856,7 +4864,7 @@ let Tt = class {
|
|
|
4856
4864
|
/**
|
|
4857
4865
|
* a subject for current sheet scrollInfo, no limit by viewport.
|
|
4858
4866
|
*/
|
|
4859
|
-
_(this, "_rawScrollInfo$", new
|
|
4867
|
+
_(this, "_rawScrollInfo$", new Me(null));
|
|
4860
4868
|
/**
|
|
4861
4869
|
* a subject for current sheet scrollInfo ( events, ex wheel event and point events add deltaXY to rawScrollInfo$)
|
|
4862
4870
|
*/
|
|
@@ -4867,7 +4875,7 @@ let Tt = class {
|
|
|
4867
4875
|
* The value of this subject is the same as the value of onScrollAfter$
|
|
4868
4876
|
*
|
|
4869
4877
|
*/
|
|
4870
|
-
_(this, "validViewportScrollInfo$", new
|
|
4878
|
+
_(this, "validViewportScrollInfo$", new Me(null));
|
|
4871
4879
|
/**
|
|
4872
4880
|
* a subject for current valid scrollInfo, viewport@_scrollCore would limit rawScrollInfo$ exclude negative value or over max value.
|
|
4873
4881
|
* use this subject not rawScrollInfo$ when get scrolling state of viewport.
|
|
@@ -5231,7 +5239,7 @@ let fo = class extends de {
|
|
|
5231
5239
|
_initCommandListener() {
|
|
5232
5240
|
this.disposeWithMe(this._commandService.onCommandExecuted((r) => {
|
|
5233
5241
|
switch (r.id) {
|
|
5234
|
-
case
|
|
5242
|
+
case Pe.id:
|
|
5235
5243
|
{
|
|
5236
5244
|
const e = r.params;
|
|
5237
5245
|
e.unitId === this._context.unitId && e.reveal && this._scrollToSelection();
|
|
@@ -5395,7 +5403,7 @@ let fo = class extends de {
|
|
|
5395
5403
|
fo = i1([
|
|
5396
5404
|
zr(1, N(It)),
|
|
5397
5405
|
zr(2, N(ge)),
|
|
5398
|
-
zr(3,
|
|
5406
|
+
zr(3, He),
|
|
5399
5407
|
zr(4, D),
|
|
5400
5408
|
zr(5, be),
|
|
5401
5409
|
zr(6, N(Tt))
|
|
@@ -5414,12 +5422,12 @@ class s1 {
|
|
|
5414
5422
|
constructor() {
|
|
5415
5423
|
_(this, "_state", null);
|
|
5416
5424
|
_(this, "_rect", null);
|
|
5417
|
-
_(this, "_state$", new
|
|
5425
|
+
_(this, "_state$", new Me(null));
|
|
5418
5426
|
_(this, "state$", this._state$.asObservable());
|
|
5419
|
-
_(this, "_rect$", new
|
|
5427
|
+
_(this, "_rect$", new Me(null));
|
|
5420
5428
|
_(this, "rect$", this._rect$.asObservable());
|
|
5421
5429
|
_(this, "_focus", !1);
|
|
5422
|
-
_(this, "_focus$", new
|
|
5430
|
+
_(this, "_focus$", new Me(this._focus));
|
|
5423
5431
|
_(this, "focus$", this._focus$.asObservable());
|
|
5424
5432
|
}
|
|
5425
5433
|
dispose() {
|
|
@@ -5462,7 +5470,7 @@ var Ut = function() {
|
|
|
5462
5470
|
for (var i = 0, n = Object.getOwnPropertySymbols(r); i < n.length; i++)
|
|
5463
5471
|
e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]);
|
|
5464
5472
|
return t;
|
|
5465
|
-
},
|
|
5473
|
+
}, St = ft(function(r, e) {
|
|
5466
5474
|
var t = r.icon, n = r.id, i = r.className, o = r.extend, s = l1(r, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), a = An("_".concat(d1()));
|
|
5467
5475
|
return fm(t, "".concat(n), { defIds: t.defIds, idSuffix: a.current }, Ut({ ref: e, className: l }, s), o);
|
|
5468
5476
|
});
|
|
@@ -5492,153 +5500,153 @@ function c1(r, e) {
|
|
|
5492
5500
|
function d1() {
|
|
5493
5501
|
return Math.random().toString(36).substring(2, 8);
|
|
5494
5502
|
}
|
|
5495
|
-
|
|
5496
|
-
var u1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M11.0363 12.2367V14.0367C11.0363 14.3681 11.3049 14.6367 11.6363 14.6367C11.9676 14.6367 12.2363 14.3681 12.2363 14.0367V12.2367H14.0364C14.3677 12.2367 14.6364 11.9681 14.6364 11.6367C14.6364 11.3054 14.3677 11.0367 14.0364 11.0367H12.2363V9.23672C12.2363 8.90535 11.9676 8.63672 11.6363 8.63672C11.3049 8.63672 11.0363 8.90535 11.0363 9.23672V11.0367H9.23635C8.90498 11.0367 8.63635 11.3054 8.63635 11.6367C8.63635 11.9681 8.90498 12.2367 9.23635 12.2367H11.0363Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.56365 1.36377C1.90091 1.36377 1.36365 1.90103 1.36365 2.56377V6.16377C1.36365 6.82651 1.90091 7.36377 2.56365 7.36377H6.16365C6.82639 7.36377 7.36365 6.82651 7.36365 6.16377V2.56377C7.36365 1.90103 6.82639 1.36377 6.16365 1.36377H2.56365zM6.16365 2.56377H2.56365L2.56365 6.16377H6.16365V2.56377zM2.56365 8.63647C1.90091 8.63647 1.36365 9.17373 1.36365 9.83647V13.4365C1.36365 14.0992 1.90091 14.6365 2.56365 14.6365H6.16365C6.82639 14.6365 7.36365 14.0992 7.36365 13.4365V9.83647C7.36365 9.17373 6.82639 8.63647 6.16365 8.63647H2.56365zM6.16365 9.83647H2.56365L2.56365 13.4365H6.16365V9.83647zM9.83635 7.36377C9.17361 7.36377 8.63635 6.82651 8.63635 6.16377V2.56377C8.63635 1.90103 9.17361 1.36377 9.83635 1.36377H13.4364C14.0991 1.36377 14.6364 1.90103 14.6364 2.56377V6.16377C14.6364 6.82651 14.0991 7.36377 13.4364 7.36377H9.83635zM9.83635 6.16377V2.56377L13.4364 2.56377V6.16377H9.83635z", fillRule: "evenodd", clipRule: "evenodd" } }] }, pm =
|
|
5497
|
-
return ht(
|
|
5503
|
+
St.displayName = "UniverIcon";
|
|
5504
|
+
var u1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M11.0363 12.2367V14.0367C11.0363 14.3681 11.3049 14.6367 11.6363 14.6367C11.9676 14.6367 12.2363 14.3681 12.2363 14.0367V12.2367H14.0364C14.3677 12.2367 14.6364 11.9681 14.6364 11.6367C14.6364 11.3054 14.3677 11.0367 14.0364 11.0367H12.2363V9.23672C12.2363 8.90535 11.9676 8.63672 11.6363 8.63672C11.3049 8.63672 11.0363 8.90535 11.0363 9.23672V11.0367H9.23635C8.90498 11.0367 8.63635 11.3054 8.63635 11.6367C8.63635 11.9681 8.90498 12.2367 9.23635 12.2367H11.0363Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.56365 1.36377C1.90091 1.36377 1.36365 1.90103 1.36365 2.56377V6.16377C1.36365 6.82651 1.90091 7.36377 2.56365 7.36377H6.16365C6.82639 7.36377 7.36365 6.82651 7.36365 6.16377V2.56377C7.36365 1.90103 6.82639 1.36377 6.16365 1.36377H2.56365zM6.16365 2.56377H2.56365L2.56365 6.16377H6.16365V2.56377zM2.56365 8.63647C1.90091 8.63647 1.36365 9.17373 1.36365 9.83647V13.4365C1.36365 14.0992 1.90091 14.6365 2.56365 14.6365H6.16365C6.82639 14.6365 7.36365 14.0992 7.36365 13.4365V9.83647C7.36365 9.17373 6.82639 8.63647 6.16365 8.63647H2.56365zM6.16365 9.83647H2.56365L2.56365 13.4365H6.16365V9.83647zM9.83635 7.36377C9.17361 7.36377 8.63635 6.82651 8.63635 6.16377V2.56377C8.63635 1.90103 9.17361 1.36377 9.83635 1.36377H13.4364C14.0991 1.36377 14.6364 1.90103 14.6364 2.56377V6.16377C14.6364 6.82651 14.0991 7.36377 13.4364 7.36377H9.83635zM9.83635 6.16377V2.56377L13.4364 2.56377V6.16377H9.83635z", fillRule: "evenodd", clipRule: "evenodd" } }] }, pm = ft(function(r, e) {
|
|
5505
|
+
return ht(St, Object.assign({}, r, {
|
|
5498
5506
|
id: "autofill",
|
|
5499
5507
|
ref: e,
|
|
5500
5508
|
icon: u1
|
|
5501
5509
|
}));
|
|
5502
5510
|
});
|
|
5503
5511
|
pm.displayName = "Autofill";
|
|
5504
|
-
var h1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Wr =
|
|
5505
|
-
return ht(
|
|
5512
|
+
var h1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Wr = ft(function(r, e) {
|
|
5513
|
+
return ht(St, Object.assign({}, r, {
|
|
5506
5514
|
id: "check-mark-single",
|
|
5507
5515
|
ref: e,
|
|
5508
5516
|
icon: h1
|
|
5509
5517
|
}));
|
|
5510
5518
|
});
|
|
5511
5519
|
Wr.displayName = "CheckMarkSingle";
|
|
5512
|
-
var g1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z" } }] }, Sm =
|
|
5513
|
-
return ht(
|
|
5520
|
+
var g1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z" } }] }, Sm = ft(function(r, e) {
|
|
5521
|
+
return ht(St, Object.assign({}, r, {
|
|
5514
5522
|
id: "close-single",
|
|
5515
5523
|
ref: e,
|
|
5516
5524
|
icon: g1
|
|
5517
5525
|
}));
|
|
5518
5526
|
});
|
|
5519
5527
|
Sm.displayName = "CloseSingle";
|
|
5520
|
-
var m1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "g", attrs: { fill: "currentColor", clipPath: "url(#convert-single_clip0_911_593)" }, children: [{ tag: "path", attrs: { d: "M2.44766.848145C1.564.848145.847656 1.56449.847656 2.44814V6.44814C.847656 7.3318 1.564 8.04814 2.44766 8.04814H6.44766C7.33131 8.04814 8.04766 7.3318 8.04766 6.44814V2.44814C8.04766 1.56449 7.33131.848145 6.44766.848145H2.44766zM2.04766 6.44814V5.04824H3.84775V6.84814H2.44766C2.22674 6.84814 2.04766 6.66906 2.04766 6.44814zM2.04766 3.84824H3.84775V2.04814H2.44766C2.22674 2.04814 2.04766 2.22723 2.04766 2.44814V3.84824zM5.04775 6.84814V5.04824H6.84766V6.44814C6.84766 6.66906 6.66857 6.84814 6.44766 6.84814H5.04775zM5.04775 3.84824H6.84766V2.44814C6.84766 2.22723 6.66857 2.04814 6.44766 2.04814H5.04775V3.84824zM9.55215 7.95166C8.66849 7.95166 7.95215 8.668 7.95215 9.55166V13.5517C7.95215 14.4353 8.66849 15.1517 9.55215 15.1517L11.5522 15.1517 13.5521 15.1517C14.4358 15.1517 15.1521 14.4353 15.1521 13.5517L15.1521 11.5518 15.1521 9.55166C15.1521 8.668 14.4358 7.95166 13.5521 7.95166H9.55215zM13.9521 10.9518V9.55166C13.9521 9.33075 13.7731 9.15166 13.5521 9.15166H12.1522V10.9518H13.9521zM10.9522 10.9518V9.15166H9.55215C9.33123 9.15166 9.15215 9.33075 9.15215 9.55166V10.9518H10.9522zM9.15215 12.1518H10.9522V13.9517H9.55215C9.33123 13.9517 9.15215 13.7726 9.15215 13.5517V12.1518zM12.1522 12.1518H13.9521V13.5517C13.9521 13.7726 13.7731 13.9517 13.5521 13.9517H12.1522V12.1518z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { d: "M9.62158 2.44912C9.62158 2.11775 9.89021 1.84912 10.2216 1.84912H12.7516C13.6352 1.84912 14.3516 2.56547 14.3516 3.44912V5.9791C14.3516 6.31047 14.0829 6.5791 13.7516 6.5791 13.4202 6.5791 13.1516 6.31047 13.1516 5.9791V3.44912C13.1516 3.22821 12.9725 3.04912 12.7516 3.04912H10.2216C9.89021 3.04912 9.62158 2.78049 9.62158 2.44912zM5.77871 14.1507C6.11008 14.1507 6.37871 13.8821 6.37871 13.5507 6.37871 13.2193 6.11008 12.9507 5.77871 12.9507L3.24873 12.9507C3.02782 12.9507 2.84873 12.7716 2.84873 12.5507L2.84873 10.0207C2.84873 9.68933 2.5801 9.4207 2.24873 9.4207 1.91736 9.4207 1.64873 9.68933 1.64873 10.0207L1.64873 12.5507C1.64873 13.4343 2.36507 14.1507 3.24873 14.1507H5.77871z" } }] }, { tag: "defs", attrs: {}, children: [{ tag: "clipPath", attrs: { id: "convert-single_clip0_911_593" }, children: [{ tag: "path", attrs: { fill: "#fff", d: "M0 0H16V16H0z" } }] }] }], defIds: ["convert-single_clip0_911_593"] }, vm =
|
|
5521
|
-
return ht(
|
|
5528
|
+
var m1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "g", attrs: { fill: "currentColor", clipPath: "url(#convert-single_clip0_911_593)" }, children: [{ tag: "path", attrs: { d: "M2.44766.848145C1.564.848145.847656 1.56449.847656 2.44814V6.44814C.847656 7.3318 1.564 8.04814 2.44766 8.04814H6.44766C7.33131 8.04814 8.04766 7.3318 8.04766 6.44814V2.44814C8.04766 1.56449 7.33131.848145 6.44766.848145H2.44766zM2.04766 6.44814V5.04824H3.84775V6.84814H2.44766C2.22674 6.84814 2.04766 6.66906 2.04766 6.44814zM2.04766 3.84824H3.84775V2.04814H2.44766C2.22674 2.04814 2.04766 2.22723 2.04766 2.44814V3.84824zM5.04775 6.84814V5.04824H6.84766V6.44814C6.84766 6.66906 6.66857 6.84814 6.44766 6.84814H5.04775zM5.04775 3.84824H6.84766V2.44814C6.84766 2.22723 6.66857 2.04814 6.44766 2.04814H5.04775V3.84824zM9.55215 7.95166C8.66849 7.95166 7.95215 8.668 7.95215 9.55166V13.5517C7.95215 14.4353 8.66849 15.1517 9.55215 15.1517L11.5522 15.1517 13.5521 15.1517C14.4358 15.1517 15.1521 14.4353 15.1521 13.5517L15.1521 11.5518 15.1521 9.55166C15.1521 8.668 14.4358 7.95166 13.5521 7.95166H9.55215zM13.9521 10.9518V9.55166C13.9521 9.33075 13.7731 9.15166 13.5521 9.15166H12.1522V10.9518H13.9521zM10.9522 10.9518V9.15166H9.55215C9.33123 9.15166 9.15215 9.33075 9.15215 9.55166V10.9518H10.9522zM9.15215 12.1518H10.9522V13.9517H9.55215C9.33123 13.9517 9.15215 13.7726 9.15215 13.5517V12.1518zM12.1522 12.1518H13.9521V13.5517C13.9521 13.7726 13.7731 13.9517 13.5521 13.9517H12.1522V12.1518z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { d: "M9.62158 2.44912C9.62158 2.11775 9.89021 1.84912 10.2216 1.84912H12.7516C13.6352 1.84912 14.3516 2.56547 14.3516 3.44912V5.9791C14.3516 6.31047 14.0829 6.5791 13.7516 6.5791 13.4202 6.5791 13.1516 6.31047 13.1516 5.9791V3.44912C13.1516 3.22821 12.9725 3.04912 12.7516 3.04912H10.2216C9.89021 3.04912 9.62158 2.78049 9.62158 2.44912zM5.77871 14.1507C6.11008 14.1507 6.37871 13.8821 6.37871 13.5507 6.37871 13.2193 6.11008 12.9507 5.77871 12.9507L3.24873 12.9507C3.02782 12.9507 2.84873 12.7716 2.84873 12.5507L2.84873 10.0207C2.84873 9.68933 2.5801 9.4207 2.24873 9.4207 1.91736 9.4207 1.64873 9.68933 1.64873 10.0207L1.64873 12.5507C1.64873 13.4343 2.36507 14.1507 3.24873 14.1507H5.77871z" } }] }, { tag: "defs", attrs: {}, children: [{ tag: "clipPath", attrs: { id: "convert-single_clip0_911_593" }, children: [{ tag: "path", attrs: { fill: "#fff", d: "M0 0H16V16H0z" } }] }] }], defIds: ["convert-single_clip0_911_593"] }, vm = ft(function(r, e) {
|
|
5529
|
+
return ht(St, Object.assign({}, r, {
|
|
5522
5530
|
id: "convert-single",
|
|
5523
5531
|
ref: e,
|
|
5524
5532
|
icon: m1
|
|
5525
5533
|
}));
|
|
5526
5534
|
});
|
|
5527
5535
|
vm.displayName = "ConvertSingle";
|
|
5528
|
-
var f1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Kl =
|
|
5529
|
-
return ht(
|
|
5536
|
+
var f1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Kl = ft(function(r, e) {
|
|
5537
|
+
return ht(St, Object.assign({}, r, {
|
|
5530
5538
|
id: "delete-single",
|
|
5531
5539
|
ref: e,
|
|
5532
5540
|
icon: f1
|
|
5533
5541
|
}));
|
|
5534
5542
|
});
|
|
5535
5543
|
Kl.displayName = "DeleteSingle";
|
|
5536
|
-
var p1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.85869 12.9216C8.38445 13.4708 7.61555 13.4708 7.14131 12.9216L0.358114 5.06726C-0.406895 4.18144 0.134916 2.66683 1.2168 2.66683L14.7832 2.66683C15.8651 2.66683 16.4069 4.18144 15.6419 5.06726L8.85869 12.9216Z" } }] }, Hc =
|
|
5537
|
-
return ht(
|
|
5544
|
+
var p1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.85869 12.9216C8.38445 13.4708 7.61555 13.4708 7.14131 12.9216L0.358114 5.06726C-0.406895 4.18144 0.134916 2.66683 1.2168 2.66683L14.7832 2.66683C15.8651 2.66683 16.4069 4.18144 15.6419 5.06726L8.85869 12.9216Z" } }] }, Hc = ft(function(r, e) {
|
|
5545
|
+
return ht(St, Object.assign({}, r, {
|
|
5538
5546
|
id: "dropdown-single",
|
|
5539
5547
|
ref: e,
|
|
5540
5548
|
icon: p1
|
|
5541
5549
|
}));
|
|
5542
5550
|
});
|
|
5543
5551
|
Hc.displayName = "DropdownSingle";
|
|
5544
|
-
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" } }] }, Ud =
|
|
5545
|
-
return ht(
|
|
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" } }] }, Ud = ft(function(r, e) {
|
|
5553
|
+
return ht(St, Object.assign({}, r, {
|
|
5546
5554
|
id: "error-single",
|
|
5547
5555
|
ref: e,
|
|
5548
5556
|
icon: S1
|
|
5549
5557
|
}));
|
|
5550
5558
|
});
|
|
5551
5559
|
Ud.displayName = "ErrorSingle";
|
|
5552
|
-
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 =
|
|
5553
|
-
return ht(
|
|
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
|
+
return ht(St, Object.assign({}, r, {
|
|
5554
5562
|
id: "eyelash-single",
|
|
5555
5563
|
ref: e,
|
|
5556
5564
|
icon: v1
|
|
5557
5565
|
}));
|
|
5558
5566
|
});
|
|
5559
5567
|
Cm.displayName = "EyelashSingle";
|
|
5560
|
-
var C1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M6.06409 5.53454C5.93592 5.53454 5.84083 5.41567 5.86897 5.29063L5.95442 4.9109C6.05444 4.48178 6.23806 4.11547 6.51182 3.81952 6.81082 3.49628 7.25398 3.35405 7.79738 3.35405 7.99847 3.35405 8.21359 3.37775 8.44188 3.42245 8.46089 3.42617 8.47974 3.43006 8.49846 3.4341 8.7099 3.4798 8.93698 3.38478 9.02031 3.18514L9.24767 2.6404C9.33457 2.43219 9.23178 2.19404 9.01582 2.12874 8.98358 2.11899 8.95028 2.10912 8.91591 2.09914 8.62745 2.01631 8.28392 1.97217 7.88074 1.97217 6.82015 1.97217 6.02714 2.23936 5.4746 2.7444 4.90987 3.26069 4.50889 3.99917 4.28413 4.9762L2.83703 11.1909C2.76126 11.5286 2.666 11.8917 2.54844 12.2812 2.42975 12.6734 2.2873 13.0595 2.12221 13.4373 1.95577 13.8159 1.76813 14.1762 1.55955 14.5171 1.49345 14.6251 1.42515 14.7282 1.35467 14.8263 1.26508 14.9509 1.3347 15.133 1.48655 15.1554 2.13635 15.2509 2.8179 15.0763 3.18197 14.5296 3.32661 14.3124 3.46779 14.0646 3.60509 13.7851 3.96635 13.0497 4.30522 12.0103 4.61867 10.6574L5.469 7.01534C5.49013 6.92483 5.57082 6.86081 5.66376 6.86081H7.62478C7.8097 6.86081 7.97051 6.73405 8.01371 6.55425L8.14014 6.02798C8.20057 5.77642 8.00992 5.53454 7.75121 5.53454H6.06409zM14.3211 5.72037L12.5124 7.96963 11.4089 5.77754C11.3422 5.63012 11.1954 5.5354 11.0336 5.5354H10.3129C10.0085 5.5354 9.80921 5.85428 9.9427 6.1279L11.4089 9.05502 8.79783 12.1493C8.56587 12.4158 8.75519 12.8315 9.10855 12.8315H9.68607C9.80672 12.8315 9.9605 12.7822 10.0388 12.6904L12.1108 10.2648 13.1176 12.561C13.1786 12.7231 13.333 12.8315 13.5061 12.8315H14.3C14.5831 12.8315 14.7417 12.6175 14.6426 12.3524L13.1728 9.28628C13.1728 9.28628 15.4009 6.45542 15.6013 6.17892 15.7966 5.90929 15.6023 5.5354 15.2693 5.5354H14.6661C14.5275 5.5354 14.4333 5.58887 14.3211 5.72037z" } }] }, bm =
|
|
5561
|
-
return ht(
|
|
5568
|
+
var C1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M6.06409 5.53454C5.93592 5.53454 5.84083 5.41567 5.86897 5.29063L5.95442 4.9109C6.05444 4.48178 6.23806 4.11547 6.51182 3.81952 6.81082 3.49628 7.25398 3.35405 7.79738 3.35405 7.99847 3.35405 8.21359 3.37775 8.44188 3.42245 8.46089 3.42617 8.47974 3.43006 8.49846 3.4341 8.7099 3.4798 8.93698 3.38478 9.02031 3.18514L9.24767 2.6404C9.33457 2.43219 9.23178 2.19404 9.01582 2.12874 8.98358 2.11899 8.95028 2.10912 8.91591 2.09914 8.62745 2.01631 8.28392 1.97217 7.88074 1.97217 6.82015 1.97217 6.02714 2.23936 5.4746 2.7444 4.90987 3.26069 4.50889 3.99917 4.28413 4.9762L2.83703 11.1909C2.76126 11.5286 2.666 11.8917 2.54844 12.2812 2.42975 12.6734 2.2873 13.0595 2.12221 13.4373 1.95577 13.8159 1.76813 14.1762 1.55955 14.5171 1.49345 14.6251 1.42515 14.7282 1.35467 14.8263 1.26508 14.9509 1.3347 15.133 1.48655 15.1554 2.13635 15.2509 2.8179 15.0763 3.18197 14.5296 3.32661 14.3124 3.46779 14.0646 3.60509 13.7851 3.96635 13.0497 4.30522 12.0103 4.61867 10.6574L5.469 7.01534C5.49013 6.92483 5.57082 6.86081 5.66376 6.86081H7.62478C7.8097 6.86081 7.97051 6.73405 8.01371 6.55425L8.14014 6.02798C8.20057 5.77642 8.00992 5.53454 7.75121 5.53454H6.06409zM14.3211 5.72037L12.5124 7.96963 11.4089 5.77754C11.3422 5.63012 11.1954 5.5354 11.0336 5.5354H10.3129C10.0085 5.5354 9.80921 5.85428 9.9427 6.1279L11.4089 9.05502 8.79783 12.1493C8.56587 12.4158 8.75519 12.8315 9.10855 12.8315H9.68607C9.80672 12.8315 9.9605 12.7822 10.0388 12.6904L12.1108 10.2648 13.1176 12.561C13.1786 12.7231 13.333 12.8315 13.5061 12.8315H14.3C14.5831 12.8315 14.7417 12.6175 14.6426 12.3524L13.1728 9.28628C13.1728 9.28628 15.4009 6.45542 15.6013 6.17892 15.7966 5.90929 15.6023 5.5354 15.2693 5.5354H14.6661C14.5275 5.5354 14.4333 5.58887 14.3211 5.72037z" } }] }, bm = ft(function(r, e) {
|
|
5569
|
+
return ht(St, Object.assign({}, r, {
|
|
5562
5570
|
id: "fx-single",
|
|
5563
5571
|
ref: e,
|
|
5564
5572
|
icon: C1
|
|
5565
5573
|
}));
|
|
5566
5574
|
});
|
|
5567
5575
|
bm.displayName = "FxSingle";
|
|
5568
|
-
var b1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M6.4833 1.65005C6.4833 1.31868 6.21467 1.05005 5.8833 1.05005C5.55193 1.05005 5.2833 1.31868 5.2833 1.65005V5.28345H1.65029C1.31892 5.28345 1.05029 5.55208 1.05029 5.88345C1.05029 6.21482 1.31892 6.48345 1.65029 6.48345H5.2833V9.51684H1.65029C1.31892 9.51684 1.05029 9.78547 1.05029 10.1168C1.05029 10.4482 1.31892 10.7168 1.65029 10.7168H5.2833V14.35C5.2833 14.6814 5.55193 14.95 5.8833 14.95C6.21467 14.95 6.4833 14.6814 6.4833 14.35V10.7168H9.5167V14.35C9.5167 14.6814 9.78533 14.95 10.1167 14.95C10.4481 14.95 10.7167 14.6814 10.7167 14.35V10.7168H14.3503C14.6817 10.7168 14.9503 10.4482 14.9503 10.1168C14.9503 9.78547 14.6817 9.51685 14.3503 9.51685H10.7167V6.48345H14.3503C14.6817 6.48345 14.9503 6.21482 14.9503 5.88345C14.9503 5.55208 14.6817 5.28345 14.3503 5.28345H10.7167V1.65005C10.7167 1.31868 10.4481 1.05005 10.1167 1.05005C9.78533 1.05005 9.5167 1.31868 9.5167 1.65005V5.28345L6.4833 5.28345V1.65005ZM6.4833 6.48345V9.51684L9.5167 9.51685V6.48345L6.4833 6.48345Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.0498 3.65005C1.0498 2.21411 2.21386 1.05005 3.6498 1.05005H12.3498C13.7857 1.05005 14.9498 2.21411 14.9498 3.65005V12.3501C14.9498 13.786 13.7857 14.95 12.3498 14.95H3.6498C2.21386 14.95 1.0498 13.786 1.0498 12.35V3.65005ZM3.6498 2.25005C2.87661 2.25005 2.2498 2.87685 2.2498 3.65005V12.35C2.2498 13.1232 2.87661 13.75 3.6498 13.75H12.3498C13.123 13.75 13.7498 13.1232 13.7498 12.3501V3.65005C13.7498 2.87685 13.123 2.25005 12.3498 2.25005H3.6498Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, _m =
|
|
5569
|
-
return ht(
|
|
5576
|
+
var b1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M6.4833 1.65005C6.4833 1.31868 6.21467 1.05005 5.8833 1.05005C5.55193 1.05005 5.2833 1.31868 5.2833 1.65005V5.28345H1.65029C1.31892 5.28345 1.05029 5.55208 1.05029 5.88345C1.05029 6.21482 1.31892 6.48345 1.65029 6.48345H5.2833V9.51684H1.65029C1.31892 9.51684 1.05029 9.78547 1.05029 10.1168C1.05029 10.4482 1.31892 10.7168 1.65029 10.7168H5.2833V14.35C5.2833 14.6814 5.55193 14.95 5.8833 14.95C6.21467 14.95 6.4833 14.6814 6.4833 14.35V10.7168H9.5167V14.35C9.5167 14.6814 9.78533 14.95 10.1167 14.95C10.4481 14.95 10.7167 14.6814 10.7167 14.35V10.7168H14.3503C14.6817 10.7168 14.9503 10.4482 14.9503 10.1168C14.9503 9.78547 14.6817 9.51685 14.3503 9.51685H10.7167V6.48345H14.3503C14.6817 6.48345 14.9503 6.21482 14.9503 5.88345C14.9503 5.55208 14.6817 5.28345 14.3503 5.28345H10.7167V1.65005C10.7167 1.31868 10.4481 1.05005 10.1167 1.05005C9.78533 1.05005 9.5167 1.31868 9.5167 1.65005V5.28345L6.4833 5.28345V1.65005ZM6.4833 6.48345V9.51684L9.5167 9.51685V6.48345L6.4833 6.48345Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.0498 3.65005C1.0498 2.21411 2.21386 1.05005 3.6498 1.05005H12.3498C13.7857 1.05005 14.9498 2.21411 14.9498 3.65005V12.3501C14.9498 13.786 13.7857 14.95 12.3498 14.95H3.6498C2.21386 14.95 1.0498 13.786 1.0498 12.35V3.65005ZM3.6498 2.25005C2.87661 2.25005 2.2498 2.87685 2.2498 3.65005V12.35C2.2498 13.1232 2.87661 13.75 3.6498 13.75H12.3498C13.123 13.75 13.7498 13.1232 13.7498 12.3501V3.65005C13.7498 2.87685 13.123 2.25005 12.3498 2.25005H3.6498Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, _m = ft(function(r, e) {
|
|
5577
|
+
return ht(St, Object.assign({}, r, {
|
|
5570
5578
|
id: "hide-gridlines",
|
|
5571
5579
|
ref: e,
|
|
5572
5580
|
icon: b1
|
|
5573
5581
|
}));
|
|
5574
5582
|
});
|
|
5575
5583
|
_m.displayName = "HideGridlines";
|
|
5576
|
-
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" } }] }, Xd =
|
|
5577
|
-
return ht(
|
|
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" } }] }, Xd = ft(function(r, e) {
|
|
5585
|
+
return ht(St, Object.assign({}, r, {
|
|
5578
5586
|
id: "increase-single",
|
|
5579
5587
|
ref: e,
|
|
5580
5588
|
icon: _1
|
|
5581
5589
|
}));
|
|
5582
5590
|
});
|
|
5583
5591
|
Xd.displayName = "IncreaseSingle";
|
|
5584
|
-
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" } }] }, zd =
|
|
5585
|
-
return ht(
|
|
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" } }] }, zd = ft(function(r, e) {
|
|
5593
|
+
return ht(St, Object.assign({}, r, {
|
|
5586
5594
|
id: "lock-single",
|
|
5587
5595
|
ref: e,
|
|
5588
5596
|
icon: w1
|
|
5589
5597
|
}));
|
|
5590
5598
|
});
|
|
5591
5599
|
zd.displayName = "LockSingle";
|
|
5592
|
-
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 =
|
|
5593
|
-
return ht(
|
|
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
|
+
return ht(St, Object.assign({}, r, {
|
|
5594
5602
|
id: "more-down-single",
|
|
5595
5603
|
ref: e,
|
|
5596
5604
|
icon: R1
|
|
5597
5605
|
}));
|
|
5598
5606
|
});
|
|
5599
5607
|
vi.displayName = "MoreDownSingle";
|
|
5600
|
-
var I1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.90913 3.57564C6.14345 3.34132 6.52335 3.34132 6.75766 3.57564L10.7577 7.57564C10.992 7.80995 10.992 8.18985 10.7577 8.42417L6.75766 12.4242C6.52335 12.6585 6.14345 12.6585 5.90913 12.4242C5.67482 12.1899 5.67482 11.81 5.90913 11.5756L9.48487 7.9999L5.90913 4.42417C5.67482 4.18985 5.67482 3.80995 5.90913 3.57564Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Nc =
|
|
5601
|
-
return ht(
|
|
5608
|
+
var I1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.90913 3.57564C6.14345 3.34132 6.52335 3.34132 6.75766 3.57564L10.7577 7.57564C10.992 7.80995 10.992 8.18985 10.7577 8.42417L6.75766 12.4242C6.52335 12.6585 6.14345 12.6585 5.90913 12.4242C5.67482 12.1899 5.67482 11.81 5.90913 11.5756L9.48487 7.9999L5.90913 4.42417C5.67482 4.18985 5.67482 3.80995 5.90913 3.57564Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Nc = ft(function(r, e) {
|
|
5609
|
+
return ht(St, Object.assign({}, r, {
|
|
5602
5610
|
id: "more-single",
|
|
5603
5611
|
ref: e,
|
|
5604
5612
|
icon: I1
|
|
5605
5613
|
}));
|
|
5606
5614
|
});
|
|
5607
5615
|
Nc.displayName = "MoreSingle";
|
|
5608
|
-
var y1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, wm =
|
|
5609
|
-
return ht(
|
|
5616
|
+
var y1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, wm = ft(function(r, e) {
|
|
5617
|
+
return ht(St, Object.assign({}, r, {
|
|
5610
5618
|
id: "paint-bucket",
|
|
5611
5619
|
ref: e,
|
|
5612
5620
|
icon: y1
|
|
5613
5621
|
}));
|
|
5614
5622
|
});
|
|
5615
5623
|
wm.displayName = "PaintBucket";
|
|
5616
|
-
var M1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_102_1138", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#DCDCDC", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_102_1138)" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M7.74692 9.12463C7.74692 9.46018 8.01893 9.73219 8.35448 9.73219H11.4933C11.8288 9.73219 12.1009 9.46018 12.1009 9.12463 12.1009 8.78909 11.8288 8.51707 11.4933 8.51707H8.35448C8.01893 8.51707 7.74692 8.78909 7.74692 9.12463zM10.8636 10.8523C10.8636 11.1879 10.5915 11.4599 10.256 11.4599H8.35448C8.01893 11.4599 7.74692 11.1879 7.74692 10.8523 7.74692 10.5168 8.01893 10.2447 8.35448 10.2447H10.256C10.5915 10.2447 10.8636 10.5168 10.8636 10.8523z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.4791 1.98268C5.47913 1.71529 5.87912 1.49854 6.37252 1.49854C6.86593 1.49854 7.26592 1.71529 7.26595 1.98268H7.62187C8.22277 1.98268 8.72459 2.39534 8.84412 2.9452H9.39563C10.0856 2.9452 10.6449 3.48923 10.6449 4.16032V6.00569H12.1261C13.161 6.00569 14 6.82174 14 7.82838V11.334C14 11.8174 13.8025 12.281 13.4511 12.6228L12.0693 13.9647C11.7179 14.3065 11.2412 14.4985 10.7442 14.4985H7.91116C7.05024 14.4985 6.32492 14.0431 6.10535 13.2737H3.34925C2.6593 13.2737 2.09998 12.7297 2.09998 12.0586V4.16032C2.09998 3.48923 2.6593 2.9452 3.34925 2.9452H3.90107C4.0206 2.39534 4.52241 1.98268 5.12332 1.98268H5.4791ZM3.97249 4.16032H3.24925L3.24925 12.0586H6.03725V7.82838C6.03725 6.82174 6.87623 6.00569 7.91116 6.00569H9.49563V4.16032H8.7727C8.58289 4.59611 8.13909 4.90183 7.62187 4.90183H5.12332C4.6061 4.90183 4.1623 4.59611 3.97249 4.16032ZM5.12332 2.89403H7.62187C7.79436 2.89403 7.93419 3.03003 7.93419 3.19781V3.68671C7.93419 3.85448 7.79436 3.99049 7.62187 3.99049H5.12332C4.95083 3.99049 4.811 3.85448 4.811 3.68671V3.19781C4.811 3.03003 4.95083 2.89403 5.12332 2.89403ZM7.91116 7.11157C7.56618 7.11157 7.28652 7.38359 7.28652 7.71913V12.7851C7.28652 13.1206 7.56618 13.3927 7.91116 13.3927H10.7442C10.8401 13.3927 10.9337 13.3712 11.0182 13.3311C11.1373 13.2746 11.1859 13.1423 11.1859 13.0134V12.0066C11.1859 11.8724 11.2978 11.7636 11.4358 11.7636H12.4709C12.6034 11.7636 12.7394 11.7163 12.7975 11.6004C12.8388 11.5182 12.8608 11.4272 12.8608 11.334V7.71913C12.8608 7.38359 12.5811 7.11157 12.2362 7.11157H7.91116Z", fillRule: "evenodd", clipRule: "evenodd" } }] }] }, Rm =
|
|
5617
|
-
return ht(
|
|
5624
|
+
var M1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_102_1138", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#DCDCDC", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_102_1138)" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M7.74692 9.12463C7.74692 9.46018 8.01893 9.73219 8.35448 9.73219H11.4933C11.8288 9.73219 12.1009 9.46018 12.1009 9.12463 12.1009 8.78909 11.8288 8.51707 11.4933 8.51707H8.35448C8.01893 8.51707 7.74692 8.78909 7.74692 9.12463zM10.8636 10.8523C10.8636 11.1879 10.5915 11.4599 10.256 11.4599H8.35448C8.01893 11.4599 7.74692 11.1879 7.74692 10.8523 7.74692 10.5168 8.01893 10.2447 8.35448 10.2447H10.256C10.5915 10.2447 10.8636 10.5168 10.8636 10.8523z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.4791 1.98268C5.47913 1.71529 5.87912 1.49854 6.37252 1.49854C6.86593 1.49854 7.26592 1.71529 7.26595 1.98268H7.62187C8.22277 1.98268 8.72459 2.39534 8.84412 2.9452H9.39563C10.0856 2.9452 10.6449 3.48923 10.6449 4.16032V6.00569H12.1261C13.161 6.00569 14 6.82174 14 7.82838V11.334C14 11.8174 13.8025 12.281 13.4511 12.6228L12.0693 13.9647C11.7179 14.3065 11.2412 14.4985 10.7442 14.4985H7.91116C7.05024 14.4985 6.32492 14.0431 6.10535 13.2737H3.34925C2.6593 13.2737 2.09998 12.7297 2.09998 12.0586V4.16032C2.09998 3.48923 2.6593 2.9452 3.34925 2.9452H3.90107C4.0206 2.39534 4.52241 1.98268 5.12332 1.98268H5.4791ZM3.97249 4.16032H3.24925L3.24925 12.0586H6.03725V7.82838C6.03725 6.82174 6.87623 6.00569 7.91116 6.00569H9.49563V4.16032H8.7727C8.58289 4.59611 8.13909 4.90183 7.62187 4.90183H5.12332C4.6061 4.90183 4.1623 4.59611 3.97249 4.16032ZM5.12332 2.89403H7.62187C7.79436 2.89403 7.93419 3.03003 7.93419 3.19781V3.68671C7.93419 3.85448 7.79436 3.99049 7.62187 3.99049H5.12332C4.95083 3.99049 4.811 3.85448 4.811 3.68671V3.19781C4.811 3.03003 4.95083 2.89403 5.12332 2.89403ZM7.91116 7.11157C7.56618 7.11157 7.28652 7.38359 7.28652 7.71913V12.7851C7.28652 13.1206 7.56618 13.3927 7.91116 13.3927H10.7442C10.8401 13.3927 10.9337 13.3712 11.0182 13.3311C11.1373 13.2746 11.1859 13.1423 11.1859 13.0134V12.0066C11.1859 11.8724 11.2978 11.7636 11.4358 11.7636H12.4709C12.6034 11.7636 12.7394 11.7163 12.7975 11.6004C12.8388 11.5182 12.8608 11.4272 12.8608 11.334V7.71913C12.8608 7.38359 12.5811 7.11157 12.2362 7.11157H7.91116Z", fillRule: "evenodd", clipRule: "evenodd" } }] }] }, Rm = ft(function(r, e) {
|
|
5625
|
+
return ht(St, Object.assign({}, r, {
|
|
5618
5626
|
id: "paste-special",
|
|
5619
5627
|
ref: e,
|
|
5620
5628
|
icon: M1
|
|
5621
5629
|
}));
|
|
5622
5630
|
});
|
|
5623
5631
|
Rm.displayName = "PasteSpecial";
|
|
5624
|
-
var P1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.785 6.77762C5.78908 6.7777 5.79316 6.77774 5.79725 6.77774C5.80134 6.77774 5.80543 6.7777 5.8095 6.77762H10.0184C10.0225 6.7777 10.0266 6.77774 10.0307 6.77774C10.0347 6.77774 10.0388 6.7777 10.0429 6.77762H13.6638V7.63727C13.6638 7.96864 13.9324 8.23727 14.2638 8.23727C14.5951 8.23727 14.8638 7.96864 14.8638 7.63727V3.9999C14.8638 2.56395 13.6997 1.39989 12.2637 1.3999L3.56389 1.39999C2.12797 1.40001 0.96393 2.56405 0.96392 3.99998L0.963867 11.6666C0.963857 13.1025 2.12792 14.2666 3.56387 14.2666H8.0542C8.38557 14.2666 8.6542 13.9979 8.6542 13.6666C8.6542 13.3352 8.38557 13.0666 8.0542 13.0666H3.56387C2.79067 13.0666 2.16386 12.4398 2.16387 11.6666L2.1639 6.77762H5.785ZM6.39725 2.59996L9.43065 2.59993V5.57762H6.39725V2.59996ZM5.19725 5.57762V2.59998L3.56391 2.59999C2.79072 2.6 2.16393 3.22679 2.16392 3.99998L2.16391 5.57762H5.19725ZM13.6638 5.57762V3.9999C13.6638 3.2267 13.037 2.59989 12.2638 2.5999L10.6307 2.59992V5.57762H13.6638Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.1223 10.2333V10.7496C14.7087 10.9869 15.1223 11.5618 15.1223 12.2333V12.8999C15.1223 13.7836 14.406 14.4999 13.5223 14.4999H11.5223C10.6387 14.4999 9.92235 13.7836 9.92235 12.8999V12.2333C9.92235 11.5618 10.336 10.9869 10.9223 10.7496V10.2333C10.9223 9.34961 11.6387 8.63328 12.5223 8.63328C13.406 8.63328 14.1223 9.34961 14.1223 10.2333ZM11.1223 12.2333C11.1223 12.0124 11.3014 11.8333 11.5223 11.8333H13.5223C13.7433 11.8333 13.9223 12.0124 13.9223 12.2333V12.8999C13.9223 13.1209 13.7433 13.2999 13.5223 13.2999H11.5223C11.3014 13.2999 11.1223 13.1209 11.1223 12.8999V12.2333ZM12.9223 10.2333V10.6333H12.1223V10.2333C12.1223 10.0124 12.3014 9.83328 12.5223 9.83328C12.7433 9.83328 12.9223 10.0124 12.9223 10.2333Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Im =
|
|
5625
|
-
return ht(
|
|
5632
|
+
var P1 = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.785 6.77762C5.78908 6.7777 5.79316 6.77774 5.79725 6.77774C5.80134 6.77774 5.80543 6.7777 5.8095 6.77762H10.0184C10.0225 6.7777 10.0266 6.77774 10.0307 6.77774C10.0347 6.77774 10.0388 6.7777 10.0429 6.77762H13.6638V7.63727C13.6638 7.96864 13.9324 8.23727 14.2638 8.23727C14.5951 8.23727 14.8638 7.96864 14.8638 7.63727V3.9999C14.8638 2.56395 13.6997 1.39989 12.2637 1.3999L3.56389 1.39999C2.12797 1.40001 0.96393 2.56405 0.96392 3.99998L0.963867 11.6666C0.963857 13.1025 2.12792 14.2666 3.56387 14.2666H8.0542C8.38557 14.2666 8.6542 13.9979 8.6542 13.6666C8.6542 13.3352 8.38557 13.0666 8.0542 13.0666H3.56387C2.79067 13.0666 2.16386 12.4398 2.16387 11.6666L2.1639 6.77762H5.785ZM6.39725 2.59996L9.43065 2.59993V5.57762H6.39725V2.59996ZM5.19725 5.57762V2.59998L3.56391 2.59999C2.79072 2.6 2.16393 3.22679 2.16392 3.99998L2.16391 5.57762H5.19725ZM13.6638 5.57762V3.9999C13.6638 3.2267 13.037 2.59989 12.2638 2.5999L10.6307 2.59992V5.57762H13.6638Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.1223 10.2333V10.7496C14.7087 10.9869 15.1223 11.5618 15.1223 12.2333V12.8999C15.1223 13.7836 14.406 14.4999 13.5223 14.4999H11.5223C10.6387 14.4999 9.92235 13.7836 9.92235 12.8999V12.2333C9.92235 11.5618 10.336 10.9869 10.9223 10.7496V10.2333C10.9223 9.34961 11.6387 8.63328 12.5223 8.63328C13.406 8.63328 14.1223 9.34961 14.1223 10.2333ZM11.1223 12.2333C11.1223 12.0124 11.3014 11.8333 11.5223 11.8333H13.5223C13.7433 11.8333 13.9223 12.0124 13.9223 12.2333V12.8999C13.9223 13.1209 13.7433 13.2999 13.5223 13.2999H11.5223C11.3014 13.2999 11.1223 13.1209 11.1223 12.8999V12.2333ZM12.9223 10.2333V10.6333H12.1223V10.2333C12.1223 10.0124 12.3014 9.83328 12.5223 9.83328C12.7433 9.83328 12.9223 10.0124 12.9223 10.2333Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Im = ft(function(r, e) {
|
|
5633
|
+
return ht(St, Object.assign({}, r, {
|
|
5626
5634
|
id: "protect-single",
|
|
5627
5635
|
ref: e,
|
|
5628
5636
|
icon: P1
|
|
5629
5637
|
}));
|
|
5630
5638
|
});
|
|
5631
5639
|
Im.displayName = "ProtectSingle";
|
|
5632
|
-
var E1 = { 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 8ZM8.00008 12.3671C8.46031 12.3671 8.83342 11.994 8.83342 11.5338C8.83342 11.0735 8.46031 10.7004 8.00008 10.7004C7.53985 10.7004 7.16675 11.0735 7.16675 11.5338C7.16675 11.994 7.53985 12.3671 8.00008 12.3671ZM8.5999 4.4335C8.5999 4.10213 8.33127 3.8335 7.9999 3.8335C7.66853 3.8335 7.3999 4.10213 7.3999 4.4335V9.36683C7.3999 9.6982 7.66853 9.96683 7.9999 9.96683C8.33127 9.96683 8.5999 9.6982 8.5999 9.36683V4.4335Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Vc =
|
|
5633
|
-
return ht(
|
|
5640
|
+
var E1 = { 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 8ZM8.00008 12.3671C8.46031 12.3671 8.83342 11.994 8.83342 11.5338C8.83342 11.0735 8.46031 10.7004 8.00008 10.7004C7.53985 10.7004 7.16675 11.0735 7.16675 11.5338C7.16675 11.994 7.53985 12.3671 8.00008 12.3671ZM8.5999 4.4335C8.5999 4.10213 8.33127 3.8335 7.9999 3.8335C7.66853 3.8335 7.3999 4.10213 7.3999 4.4335V9.36683C7.3999 9.6982 7.66853 9.96683 7.9999 9.96683C8.33127 9.96683 8.5999 9.6982 8.5999 9.36683V4.4335Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Vc = ft(function(r, e) {
|
|
5641
|
+
return ht(St, Object.assign({}, r, {
|
|
5634
5642
|
id: "warning-single",
|
|
5635
5643
|
ref: e,
|
|
5636
5644
|
icon: E1
|
|
5637
5645
|
}));
|
|
5638
5646
|
});
|
|
5639
5647
|
Vc.displayName = "WarningSingle";
|
|
5640
|
-
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" } }] }, jd =
|
|
5641
|
-
return ht(
|
|
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" } }] }, jd = ft(function(r, e) {
|
|
5649
|
+
return ht(St, Object.assign({}, r, {
|
|
5642
5650
|
id: "write-single",
|
|
5643
5651
|
ref: e,
|
|
5644
5652
|
icon: T1
|
|
@@ -5649,7 +5657,7 @@ const O1 = () => {
|
|
|
5649
5657
|
const [, r] = ne({});
|
|
5650
5658
|
return Vn(() => r((e) => !e), []);
|
|
5651
5659
|
}, x1 = () => {
|
|
5652
|
-
const r = L(D), e = L(V), t = L(be), n = L(Lr), i = L(
|
|
5660
|
+
const r = L(D), e = L(V), t = L(be), n = L(Lr), i = L(xe), [o, s] = ne([]), [l, a] = ne(!1), [c, d] = ne({ row: -1, col: -1 }), [u, h] = ne(Ve.SERIES), [g, m] = ne(!1), f = ur(), { sheetSkeletonManagerService: p, selectionRenderService: S } = Dt(() => {
|
|
5653
5661
|
if (f) {
|
|
5654
5662
|
const Y = t.getRenderById(f.getUnitId());
|
|
5655
5663
|
return {
|
|
@@ -5663,20 +5671,20 @@ const O1 = () => {
|
|
|
5663
5671
|
}, C = () => {
|
|
5664
5672
|
m(!1);
|
|
5665
5673
|
}, w = O1();
|
|
5666
|
-
if (
|
|
5674
|
+
if (Ee(() => r.onCommandExecuted((le, me) => {
|
|
5667
5675
|
le.id === hn.id && w();
|
|
5668
|
-
}).dispose, [w, r]),
|
|
5676
|
+
}).dispose, [w, r]), Ee(() => {
|
|
5669
5677
|
const Y = p && We(
|
|
5670
5678
|
p.currentSkeleton$.subscribe((le) => {
|
|
5671
5679
|
le && w();
|
|
5672
5680
|
})
|
|
5673
5681
|
);
|
|
5674
5682
|
return Y == null ? void 0 : Y.dispose;
|
|
5675
|
-
}, [p, w]),
|
|
5683
|
+
}, [p, w]), Ee(() => We(
|
|
5676
5684
|
n.menu$.subscribe((le) => {
|
|
5677
5685
|
s(le.map((me) => ({ ...me, index: le.indexOf(me) })));
|
|
5678
5686
|
})
|
|
5679
|
-
).dispose, [n]),
|
|
5687
|
+
).dispose, [n]), Ee(() => We(
|
|
5680
5688
|
n.showMenu$.subscribe((le) => {
|
|
5681
5689
|
const { source: me, target: oe } = n.autoFillLocation || { source: null, target: null };
|
|
5682
5690
|
if (le && me && oe) {
|
|
@@ -5685,11 +5693,11 @@ const O1 = () => {
|
|
|
5685
5693
|
} else
|
|
5686
5694
|
d({ row: -1, col: -1 });
|
|
5687
5695
|
})
|
|
5688
|
-
).dispose, [n]),
|
|
5696
|
+
).dispose, [n]), Ee(() => We(
|
|
5689
5697
|
n.applyType$.subscribe((le) => {
|
|
5690
5698
|
h(le);
|
|
5691
5699
|
})
|
|
5692
|
-
).dispose, [n]),
|
|
5700
|
+
).dispose, [n]), Ee(() => {
|
|
5693
5701
|
function Y() {
|
|
5694
5702
|
a(!1);
|
|
5695
5703
|
}
|
|
@@ -5758,12 +5766,12 @@ const O1 = () => {
|
|
|
5758
5766
|
countBar: A1
|
|
5759
5767
|
}, H1 = [50, 75, 100, 125, 150, 175, 200, 400];
|
|
5760
5768
|
function N1() {
|
|
5761
|
-
const r = L(D), e = L(V), t = ur(), n = L(it), i =
|
|
5769
|
+
const r = L(D), e = L(V), t = ur(), n = L(it), i = gt(n.visible$), o = Vn(() => {
|
|
5762
5770
|
if (!t) return 100;
|
|
5763
5771
|
const d = t.getActiveSheet(), u = d && d.getZoomRatio() * 100 || 100;
|
|
5764
5772
|
return Math.round(u);
|
|
5765
5773
|
}, [t]), [s, l] = ne(() => o());
|
|
5766
|
-
|
|
5774
|
+
Ee(() => (l(o()), r.onCommandExecuted((u) => {
|
|
5767
5775
|
if (u.id === tn.id || u.id === rt.id) {
|
|
5768
5776
|
const h = o();
|
|
5769
5777
|
l(h);
|
|
@@ -5825,13 +5833,13 @@ const D1 = "univer-editor-container", L1 = "univer-editor-input", Xu = {
|
|
|
5825
5833
|
}, W1 = () => {
|
|
5826
5834
|
const [r, e] = ne({
|
|
5827
5835
|
...zu
|
|
5828
|
-
}), t = L(Ql), n = L(kr), i = L(
|
|
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(
|
|
5829
5837
|
() => i.subscribeContextValue$(Cu),
|
|
5830
5838
|
!1,
|
|
5831
5839
|
void 0,
|
|
5832
5840
|
[i, Cu]
|
|
5833
5841
|
), u = o.get(kd), h = s.getEditLocation();
|
|
5834
|
-
|
|
5842
|
+
Ee(() => {
|
|
5835
5843
|
const p = t.state$.subscribe((S) => {
|
|
5836
5844
|
if (S == null)
|
|
5837
5845
|
return;
|
|
@@ -5853,7 +5861,7 @@ const D1 = "univer-editor-container", L1 = "univer-editor-input", Xu = {
|
|
|
5853
5861
|
left: v,
|
|
5854
5862
|
top: C
|
|
5855
5863
|
});
|
|
5856
|
-
const y = n.getEditor(
|
|
5864
|
+
const y = n.getEditor(De);
|
|
5857
5865
|
if (y == null)
|
|
5858
5866
|
return;
|
|
5859
5867
|
const { left: M, top: P, width: E, height: T } = y.getBoundingClientRect();
|
|
@@ -5863,7 +5871,7 @@ const D1 = "univer-editor-container", L1 = "univer-editor-input", Xu = {
|
|
|
5863
5871
|
return () => {
|
|
5864
5872
|
p.unsubscribe();
|
|
5865
5873
|
};
|
|
5866
|
-
}, []),
|
|
5874
|
+
}, []), Ee(() => {
|
|
5867
5875
|
d || t.setFocus(!0);
|
|
5868
5876
|
}, [d, r]);
|
|
5869
5877
|
const g = bu(() => {
|
|
@@ -5896,7 +5904,7 @@ const D1 = "univer-editor-container", L1 = "univer-editor-input", Xu = {
|
|
|
5896
5904
|
children: u && /* @__PURE__ */ b(
|
|
5897
5905
|
u,
|
|
5898
5906
|
{
|
|
5899
|
-
editorId:
|
|
5907
|
+
editorId: De,
|
|
5900
5908
|
className: Xu.editorInput,
|
|
5901
5909
|
initValue: "",
|
|
5902
5910
|
onChange: () => {
|
|
@@ -5923,14 +5931,14 @@ const D1 = "univer-editor-container", L1 = "univer-editor-input", Xu = {
|
|
|
5923
5931
|
class B1 {
|
|
5924
5932
|
constructor() {
|
|
5925
5933
|
_(this, "_position", null);
|
|
5926
|
-
_(this, "_position$", new
|
|
5934
|
+
_(this, "_position$", new Me(null));
|
|
5927
5935
|
_(this, "position$", this._position$.asObservable());
|
|
5928
5936
|
_(this, "_focus", !1);
|
|
5929
|
-
_(this, "_focus$", new
|
|
5937
|
+
_(this, "_focus$", new Me(this._focus));
|
|
5930
5938
|
_(this, "focus$", this._focus$.asObservable());
|
|
5931
|
-
_(this, "_fxBtnClick$", new
|
|
5939
|
+
_(this, "_fxBtnClick$", new Ae());
|
|
5932
5940
|
_(this, "fxBtnClick$", this._fxBtnClick$.asObservable());
|
|
5933
|
-
_(this, "_foldBtnStatus$", new
|
|
5941
|
+
_(this, "_foldBtnStatus$", new Ae());
|
|
5934
5942
|
_(this, "foldBtnStatus$", this._foldBtnStatus$.asObservable());
|
|
5935
5943
|
}
|
|
5936
5944
|
dispose() {
|
|
@@ -5963,7 +5971,7 @@ const Jl = vn(
|
|
|
5963
5971
|
handler: async (r, e) => {
|
|
5964
5972
|
const t = r.get(Mi);
|
|
5965
5973
|
r.get(kr);
|
|
5966
|
-
const n = r.get(
|
|
5974
|
+
const n = r.get(xe), i = r.get(V), o = Ue(i);
|
|
5967
5975
|
if (!o) return !1;
|
|
5968
5976
|
const { unitId: s } = o;
|
|
5969
5977
|
switch (e.value) {
|
|
@@ -5986,18 +5994,18 @@ const Jl = vn(
|
|
|
5986
5994
|
}
|
|
5987
5995
|
};
|
|
5988
5996
|
function F1(r) {
|
|
5989
|
-
const e = L(D), t = L(
|
|
5997
|
+
const e = L(D), t = L(xe), n = L(Xo), i = L(V), o = L(Mi), l = i.getCurrentUnitForType(x.UNIVER_SHEET).getUnitId(), a = () => {
|
|
5990
5998
|
const g = n.getDefinedNameMap(l);
|
|
5991
5999
|
return g ? Array.from(Object.values(g)) : [];
|
|
5992
6000
|
}, [c, d] = ne(a());
|
|
5993
|
-
|
|
6001
|
+
Ee(() => {
|
|
5994
6002
|
const g = n.update$.subscribe(() => {
|
|
5995
6003
|
d(a());
|
|
5996
6004
|
});
|
|
5997
6005
|
return () => {
|
|
5998
6006
|
g.unsubscribe();
|
|
5999
6007
|
};
|
|
6000
|
-
}, []),
|
|
6008
|
+
}, []), Ee(() => {
|
|
6001
6009
|
const g = o.sidebarOptions$.subscribe((m) => {
|
|
6002
6010
|
m.id === po && (m.visible || setTimeout(() => {
|
|
6003
6011
|
o.sidebarOptions$.next({ visible: !1 });
|
|
@@ -6107,7 +6115,7 @@ const U1 = "univer-defined-name-container", X1 = "univer-defined-name-container-
|
|
|
6107
6115
|
};
|
|
6108
6116
|
function tb({ disable: r }) {
|
|
6109
6117
|
const [e, t] = ne(""), n = L(Xo);
|
|
6110
|
-
|
|
6118
|
+
Ee(() => {
|
|
6111
6119
|
const o = n.currentRange$.subscribe(() => {
|
|
6112
6120
|
t(n.getCurrentRangeForString());
|
|
6113
6121
|
});
|
|
@@ -6187,11 +6195,11 @@ function Cb(r) {
|
|
|
6187
6195
|
const { className: e } = r, [t, n] = ne(ut.formulaGrey), [i, o] = ne(
|
|
6188
6196
|
0
|
|
6189
6197
|
/* Down */
|
|
6190
|
-
), s = L(Jl), l = L(it), a = L(
|
|
6198
|
+
), s = L(Jl), 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({
|
|
6191
6199
|
editDisable: !1,
|
|
6192
6200
|
viewDisable: !1
|
|
6193
|
-
}), [S, v] = ne(!1), C = ur(), w = L(Xn), R =
|
|
6194
|
-
|
|
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(kd), E = Kh(sm.FORMULA_AUX), T = L(He);
|
|
6202
|
+
gt(Dt(() => T.subscribeContextValue$(At), [T]));
|
|
6195
6203
|
const A = T.getContextValue(At), k = An(null), O = L(kr);
|
|
6196
6204
|
FS(() => {
|
|
6197
6205
|
const ce = R.activeSheet$.pipe(
|
|
@@ -6205,20 +6213,20 @@ function Cb(r) {
|
|
|
6205
6213
|
var Kt, Gn;
|
|
6206
6214
|
const ze = R.getUnitId(), tt = se.getSheetId();
|
|
6207
6215
|
if (!((Kt = u.getCurrentLastSelection()) == null ? void 0 : Kt.range)) return Iu;
|
|
6208
|
-
const
|
|
6209
|
-
return
|
|
6216
|
+
const Ct = (Gn = u.getCurrentLastSelection()) == null ? void 0 : Gn.primary;
|
|
6217
|
+
return Ct ? Re({
|
|
6210
6218
|
unitId: ze,
|
|
6211
6219
|
subUnitId: tt,
|
|
6212
|
-
primary:
|
|
6220
|
+
primary: Ct
|
|
6213
6221
|
}) : Re(null);
|
|
6214
6222
|
})
|
|
6215
6223
|
) : Iu)
|
|
6216
6224
|
).subscribe((se) => {
|
|
6217
|
-
var ze, tt, wt,
|
|
6225
|
+
var ze, tt, wt, Ct, Kt, Gn;
|
|
6218
6226
|
if (se) {
|
|
6219
6227
|
const { unitId: $o, subUnitId: es, primary: fp } = se;
|
|
6220
6228
|
if (a.getRule($o, es)) {
|
|
6221
|
-
const vp = !((tt = (ze = h.getPermissionPoint(new te($o, es).id)) == null ? void 0 : ze.value) == null || tt), Cp = !((
|
|
6229
|
+
const vp = !((tt = (ze = h.getPermissionPoint(new te($o, es).id)) == null ? void 0 : ze.value) == null || tt), Cp = !((Ct = (wt = h.getPermissionPoint(new sg($o, es).id)) == null ? void 0 : wt.value) == null || Ct);
|
|
6222
6230
|
p({
|
|
6223
6231
|
viewDisable: Cp,
|
|
6224
6232
|
editDisable: vp
|
|
@@ -6239,18 +6247,18 @@ function Cb(r) {
|
|
|
6239
6247
|
return () => {
|
|
6240
6248
|
ce.unsubscribe();
|
|
6241
6249
|
};
|
|
6242
|
-
}, [R]),
|
|
6250
|
+
}, [R]), Ee(() => {
|
|
6243
6251
|
const ce = l.visible$.subscribe((se) => {
|
|
6244
6252
|
n(se.visible ? ut.formulaActive : ut.formulaGrey);
|
|
6245
6253
|
});
|
|
6246
6254
|
return () => ce.unsubscribe();
|
|
6247
|
-
}, [l.visible$]),
|
|
6255
|
+
}, [l.visible$]), Ee(() => {
|
|
6248
6256
|
const ce = l.currentEditCellState$.subscribe((se) => {
|
|
6249
6257
|
var ze, tt, wt;
|
|
6250
6258
|
(wt = (tt = (ze = se == null ? void 0 : se.documentLayoutObject.documentModel) == null ? void 0 : ze.getBody()) == null ? void 0 : tt.customBlocks) != null && wt.length ? v(!0) : v(!1);
|
|
6251
6259
|
});
|
|
6252
6260
|
return () => ce.unsubscribe();
|
|
6253
|
-
}, [l.currentEditCellState$]),
|
|
6261
|
+
}, [l.currentEditCellState$]), Ee(() => {
|
|
6254
6262
|
const ce = () => {
|
|
6255
6263
|
if (!k.current) return;
|
|
6256
6264
|
const se = k.current.getBoundingClientRect();
|
|
@@ -6300,7 +6308,7 @@ function Cb(r) {
|
|
|
6300
6308
|
{
|
|
6301
6309
|
visible: !0,
|
|
6302
6310
|
eventType: Ye.PointerDown,
|
|
6303
|
-
unitId:
|
|
6311
|
+
unitId: De
|
|
6304
6312
|
}
|
|
6305
6313
|
), T.setContextValue(At, !0);
|
|
6306
6314
|
} catch (ce) {
|
|
@@ -6401,7 +6409,7 @@ class Mm extends de {
|
|
|
6401
6409
|
_(this, "_scrollX$");
|
|
6402
6410
|
_(this, "_addSheet$");
|
|
6403
6411
|
_(this, "_currentHandler", null);
|
|
6404
|
-
this._renameId$ = new
|
|
6412
|
+
this._renameId$ = new Ae(), this.renameId$ = this._renameId$.asObservable(), this._removeId$ = new Ae(), this.removeId$ = this._removeId$.asObservable(), this._scroll$ = new Ae(), this.scroll$ = this._scroll$.asObservable(), this._scrollX$ = new Ae(), this.scrollX$ = this._scrollX$.asObservable(), this._addSheet$ = new Ae(), this.addSheet$ = this._addSheet$.asObservable();
|
|
6405
6413
|
}
|
|
6406
6414
|
setRenameId(t) {
|
|
6407
6415
|
this._renameId$.next(t);
|
|
@@ -6459,7 +6467,7 @@ function Rs(r) {
|
|
|
6459
6467
|
);
|
|
6460
6468
|
}
|
|
6461
6469
|
function yb() {
|
|
6462
|
-
const [r, e] = ne([]), [t, n] = ne(!1), i = L(V), o = L(D), s = L(Br), l = L(
|
|
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) => {
|
|
6463
6471
|
const { sheetId: p } = f;
|
|
6464
6472
|
!p || !a || (f.hidden ? o.executeCommand(vd.id, {
|
|
6465
6473
|
unitId: a.getUnitId(),
|
|
@@ -6497,9 +6505,9 @@ function yb() {
|
|
|
6497
6505
|
const g = (f) => {
|
|
6498
6506
|
n(f);
|
|
6499
6507
|
};
|
|
6500
|
-
|
|
6508
|
+
Ee(() => {
|
|
6501
6509
|
d();
|
|
6502
|
-
const f = new
|
|
6510
|
+
const f = new bt();
|
|
6503
6511
|
return f.add(u()), f.add(s.registerSheetBarMenuHandler({ handleSheetBarMenu: h })), () => f.dispose();
|
|
6504
6512
|
}, [u, s, d, a]);
|
|
6505
6513
|
const m = Dt(() => r.map((f) => ({
|
|
@@ -6545,7 +6553,7 @@ const Mb = "univer-slide-tab-bar-container", Pb = "univer-slide-tab-bar", Eb = "
|
|
|
6545
6553
|
};
|
|
6546
6554
|
function kb(r) {
|
|
6547
6555
|
const { sheetId: e, label: t, color: n, selected: i } = r, [o, s] = ne(i), l = L(Lt);
|
|
6548
|
-
|
|
6556
|
+
Ee(() => {
|
|
6549
6557
|
s(i);
|
|
6550
6558
|
}, [i]);
|
|
6551
6559
|
const a = (c) => {
|
|
@@ -7136,19 +7144,19 @@ _(ni, "DoubleClickDelay", 300);
|
|
|
7136
7144
|
let si = ni;
|
|
7137
7145
|
function Lb() {
|
|
7138
7146
|
var Ie;
|
|
7139
|
-
const [r, e] = ne([]), [t, n] = ne(""), [i, o] = ne(""), [s, l] = ne(!1), [a, c] = ne([0, 0]), d = An({ slideTabBar: null }), u = An(null), h = L(D), g = L(Br), m = L(
|
|
7147
|
+
const [r, e] = ne([]), [t, n] = ne(""), [i, o] = ne(""), [s, l] = ne(!1), [a, c] = ne([0, 0]), d = An({ slideTabBar: null }), u = An(null), h = L(D), g = L(Br), m = L(xe), f = L(rn), p = L(Fn), S = L(it, dc.OPTIONAL), v = L(pt), C = L(et), w = gt(v.resetOrder$), R = ur(), I = L(ot), y = Vn(() => {
|
|
7140
7148
|
var ve;
|
|
7141
7149
|
const G = ((ve = R.getActiveSheet()) == null ? void 0 : ve.getSheetId()) || "";
|
|
7142
7150
|
n(G);
|
|
7143
7151
|
const ee = R.getSheets(), ae = R.getActiveSheet(), Se = ee.filter((ce) => !ce.isSheetHidden()).map((ce, se) => {
|
|
7144
7152
|
var Kt;
|
|
7145
|
-
const ze = v.getRule(R.getUnitId(), ce.getSheetId()), tt = C.getSubunitRuleList(R.getUnitId(), ce.getSheetId()).length > 0,
|
|
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: [
|
|
7146
7154
|
/* @__PURE__ */ b(zd, {}),
|
|
7147
7155
|
/* @__PURE__ */ b("span", { children: ce.getName() })
|
|
7148
7156
|
] }) : /* @__PURE__ */ b("span", { children: ce.getName() });
|
|
7149
7157
|
return {
|
|
7150
7158
|
sheetId: ce.getSheetId(),
|
|
7151
|
-
label:
|
|
7159
|
+
label: Ct,
|
|
7152
7160
|
index: se,
|
|
7153
7161
|
selected: ae === ce,
|
|
7154
7162
|
color: (Kt = ce.getTabColor()) != null ? Kt : void 0
|
|
@@ -7156,7 +7164,7 @@ function Lb() {
|
|
|
7156
7164
|
});
|
|
7157
7165
|
e(Se), n(G);
|
|
7158
7166
|
}, [C, R, v]);
|
|
7159
|
-
|
|
7167
|
+
Ee(() => {
|
|
7160
7168
|
y();
|
|
7161
7169
|
const { slideTabBar: G, disconnectResizeObserver: ee } = M(), ae = X(), Se = [
|
|
7162
7170
|
B(),
|
|
@@ -7167,9 +7175,9 @@ function Lb() {
|
|
|
7167
7175
|
return () => {
|
|
7168
7176
|
ae.dispose(), G.destroy(), Se.forEach((ve) => ve.unsubscribe()), ee && ee();
|
|
7169
7177
|
};
|
|
7170
|
-
}, [w, R]),
|
|
7178
|
+
}, [w, R]), Ee(() => {
|
|
7171
7179
|
r.length > 0 && F();
|
|
7172
|
-
}, [r]),
|
|
7180
|
+
}, [r]), Ee(() => {
|
|
7173
7181
|
const G = _t(
|
|
7174
7182
|
v.ruleChange$,
|
|
7175
7183
|
C.ruleChange$
|
|
@@ -7211,12 +7219,12 @@ function Lb() {
|
|
|
7211
7219
|
},
|
|
7212
7220
|
onNameCheckAlert: (ae) => T(ae) || A(ae) || k(ae),
|
|
7213
7221
|
onNameChangeCheck: () => {
|
|
7214
|
-
var ze, tt, wt,
|
|
7222
|
+
var ze, tt, wt, Ct;
|
|
7215
7223
|
const ae = R.getUnitId(), Se = R == null ? void 0 : R.getActiveSheet();
|
|
7216
7224
|
if (!Se)
|
|
7217
7225
|
throw new Error("No active sheet found");
|
|
7218
7226
|
const ve = Se.getSheetId(), ce = v.getRule(ae, ve), se = C.getSubunitRuleList(ae, ve).length > 0;
|
|
7219
|
-
return ce || se ? (tt = (ze = I.getPermissionPoint(new lg(ae).id)) == null ? void 0 : ze.value) != null ? tt : !1 : (
|
|
7227
|
+
return ce || se ? (tt = (ze = I.getPermissionPoint(new lg(ae).id)) == null ? void 0 : ze.value) != null ? tt : !1 : (Ct = (wt = I.getPermissionPoint(new ag(ae).id)) == null ? void 0 : wt.value) != null ? Ct : !1;
|
|
7220
7228
|
}
|
|
7221
7229
|
});
|
|
7222
7230
|
d.current.slideTabBar = G;
|
|
@@ -7376,8 +7384,8 @@ function Lb() {
|
|
|
7376
7384
|
}
|
|
7377
7385
|
const Wb = 100, Bb = () => {
|
|
7378
7386
|
var f, p;
|
|
7379
|
-
const [r, e] = ne(!0), [t, n] = ne(!0), i = L(D), o = L(Br), s = L(ot), a = ur().getUnitId(), c =
|
|
7380
|
-
|
|
7387
|
+
const [r, e] = ne(!0), [t, n] = ne(!0), i = L(D), o = L(Br), s = L(ot), a = ur().getUnitId(), c = gt(s.getPermissionPoint$((f = new J(a)) == null ? void 0 : f.id)), d = gt(s.getPermissionPoint$((p = new cg(a)) == null ? void 0 : p.id));
|
|
7388
|
+
Ee(() => {
|
|
7381
7389
|
const S = o.scroll$.subscribe((v) => {
|
|
7382
7390
|
u(v);
|
|
7383
7391
|
});
|
|
@@ -7464,7 +7472,7 @@ class Pm {
|
|
|
7464
7472
|
}
|
|
7465
7473
|
}
|
|
7466
7474
|
]);
|
|
7467
|
-
_(this, "_state$", new
|
|
7475
|
+
_(this, "_state$", new Me(null));
|
|
7468
7476
|
_(this, "state$", this._state$.asObservable());
|
|
7469
7477
|
}
|
|
7470
7478
|
dispose() {
|
|
@@ -7511,7 +7519,7 @@ const $l = vn("univer.sheet-status-bar.service"), Fb = "univer-status-bar", Ub =
|
|
|
7511
7519
|
[Fe.COUNTA]: "statusbar.countA",
|
|
7512
7520
|
[zv.CONCATENATE]: "concatenate"
|
|
7513
7521
|
}, Zb = (r) => {
|
|
7514
|
-
const e = L(
|
|
7522
|
+
const e = L(xe), t = L(eg), n = L(xl), i = Gb(r), o = async () => {
|
|
7515
7523
|
await n.writeText(r.value.toString()), t.show({
|
|
7516
7524
|
type: $g.Success,
|
|
7517
7525
|
content: e.t("statusbar.copied")
|
|
@@ -7552,7 +7560,7 @@ const ju = 800, qb = 3, Qb = () => {
|
|
|
7552
7560
|
})
|
|
7553
7561
|
);
|
|
7554
7562
|
}, []);
|
|
7555
|
-
return
|
|
7563
|
+
return Ee(() => {
|
|
7556
7564
|
if (!S) return;
|
|
7557
7565
|
const E = f.state$.subscribe(P);
|
|
7558
7566
|
return () => E.unsubscribe();
|
|
@@ -7570,7 +7578,7 @@ const ju = 800, qb = 3, Qb = () => {
|
|
|
7570
7578
|
const m = window.innerWidth < ju;
|
|
7571
7579
|
t !== m && n(m);
|
|
7572
7580
|
}, 100);
|
|
7573
|
-
|
|
7581
|
+
Ee(() => (window.addEventListener("resize", c), () => {
|
|
7574
7582
|
window.removeEventListener("resize", c);
|
|
7575
7583
|
}), [t]);
|
|
7576
7584
|
const u = ((m, f, p) => e ? BS.useMemo(() => {
|
|
@@ -7665,7 +7673,7 @@ function $b() {
|
|
|
7665
7673
|
] }) : null;
|
|
7666
7674
|
}
|
|
7667
7675
|
function Tm() {
|
|
7668
|
-
const r = L(V), t = !!
|
|
7676
|
+
const r = L(V), t = !!gt(() => r.getCurrentTypeOfUnit$(x.UNIVER_SHEET), null, !1, []);
|
|
7669
7677
|
return Dt(
|
|
7670
7678
|
() => r.getAllUnitsForType(x.UNIVER_SHEET).length > 0,
|
|
7671
7679
|
[r, t]
|
|
@@ -7686,7 +7694,7 @@ let Zs = class extends de {
|
|
|
7686
7694
|
var M, P, E, T;
|
|
7687
7695
|
const e = this._editorBridgeService.getEditCellState();
|
|
7688
7696
|
if (!e) return;
|
|
7689
|
-
const { position: t, documentLayoutObject: n, canvasOffset: i, scaleX: o, scaleY: s } = e, { startX: l, startY: a, endX: c, endY: d } = t, u = this._univerInstanceService.getUnit(
|
|
7697
|
+
const { position: t, documentLayoutObject: n, canvasOffset: i, scaleX: o, scaleY: s } = e, { startX: l, startY: a, endX: c, endY: d } = t, u = this._univerInstanceService.getUnit(De, x.UNIVER_DOC);
|
|
7690
7698
|
if (u == null)
|
|
7691
7699
|
return;
|
|
7692
7700
|
const h = this._getEditorSkeleton();
|
|
@@ -7728,7 +7736,7 @@ let Zs = class extends de {
|
|
|
7728
7736
|
* to determine whether it needs to be automatically widened.
|
|
7729
7737
|
*/
|
|
7730
7738
|
_predictingSize(r, e, t, n, i = 1, o = 1) {
|
|
7731
|
-
const { startX: s, endX: l } = r, { textRotation: a, wrapStrategy: c, paddingData: d } = n, u = this._univerInstanceService.getUnit(
|
|
7739
|
+
const { startX: s, endX: l } = r, { textRotation: a, wrapStrategy: c, paddingData: d } = n, u = this._univerInstanceService.getUnit(De, x.UNIVER_DOC), { vertexAngle: h } = ud(a);
|
|
7732
7740
|
if (c === wr.WRAP && h === 0) {
|
|
7733
7741
|
u == null || u.updateDocumentDataPageSize(l - s), u == null || u.updateDocumentDataMargin({ l: d.l, t: d.t }), t.calculate();
|
|
7734
7742
|
const { actualWidth: p, actualHeight: S } = t.getActualSize();
|
|
@@ -7854,7 +7862,7 @@ let Zs = class extends de {
|
|
|
7854
7862
|
}
|
|
7855
7863
|
_getEditorSkeleton() {
|
|
7856
7864
|
var r;
|
|
7857
|
-
return (r = this._renderManagerService.getRenderById(
|
|
7865
|
+
return (r = this._renderManagerService.getRenderById(De)) == null ? void 0 : r.with(ir).getSkeleton();
|
|
7858
7866
|
}
|
|
7859
7867
|
};
|
|
7860
7868
|
Zs = t_([
|
|
@@ -7868,7 +7876,7 @@ Zs = t_([
|
|
|
7868
7876
|
function Zd(r) {
|
|
7869
7877
|
return r.getContextValue(kt);
|
|
7870
7878
|
}
|
|
7871
|
-
function
|
|
7879
|
+
function Ne(r) {
|
|
7872
7880
|
return r.getContextValue(kt) && r.getContextValue(Hr) && !r.getContextValue($e) && !r.getContextValue(El);
|
|
7873
7881
|
}
|
|
7874
7882
|
function Om(r) {
|
|
@@ -7926,7 +7934,7 @@ const Hm = {
|
|
|
7926
7934
|
binding: Z.F2,
|
|
7927
7935
|
description: "shortcut.sheet.start-editing",
|
|
7928
7936
|
group: "4_sheet-edit",
|
|
7929
|
-
preconditions:
|
|
7937
|
+
preconditions: Ne,
|
|
7930
7938
|
staticParameters: {
|
|
7931
7939
|
visible: !0,
|
|
7932
7940
|
eventType: Ye.Keyboard,
|
|
@@ -7972,19 +7980,17 @@ const Hm = {
|
|
|
7972
7980
|
}, Wm = {
|
|
7973
7981
|
id: yp.id,
|
|
7974
7982
|
preconditions: (r) => r_(r) || xm(r),
|
|
7975
|
-
binding: Z.BACKSPACE
|
|
7976
|
-
mac: Z.DELETE
|
|
7983
|
+
binding: Z.BACKSPACE
|
|
7977
7984
|
}, Bm = {
|
|
7978
7985
|
id: at.id,
|
|
7979
7986
|
description: "shortcut.sheet.delete-and-start-editing",
|
|
7980
7987
|
group: "4_sheet-edit",
|
|
7981
|
-
preconditions: (r) =>
|
|
7988
|
+
preconditions: (r) => Ne(r) && !xm(r),
|
|
7982
7989
|
binding: Z.BACKSPACE,
|
|
7983
7990
|
staticParameters: {
|
|
7984
7991
|
visible: !0,
|
|
7985
7992
|
eventType: Ye.Keyboard,
|
|
7986
|
-
keycode: Z.BACKSPACE
|
|
7987
|
-
unitId: xe
|
|
7993
|
+
keycode: Z.BACKSPACE
|
|
7988
7994
|
}
|
|
7989
7995
|
};
|
|
7990
7996
|
function o_(r) {
|
|
@@ -8200,7 +8206,7 @@ let Lc = class extends de {
|
|
|
8200
8206
|
(e = this._d) == null || e.dispose(), this._d = null;
|
|
8201
8207
|
}
|
|
8202
8208
|
_init() {
|
|
8203
|
-
const e = new
|
|
8209
|
+
const e = new bt();
|
|
8204
8210
|
return this._subscribeToCurrentCell(e), this._initialCursorSync(e), this._listenEditorFocus(e), this._commandExecutedListener(e), this._initSkeletonListener(e), e.add(() => {
|
|
8205
8211
|
clearTimeout(this._cursorTimeout);
|
|
8206
8212
|
}), this._cursorTimeout = setTimeout(() => {
|
|
@@ -8210,7 +8216,7 @@ let Lc = class extends de {
|
|
|
8210
8216
|
_initEditorVisibilityListener() {
|
|
8211
8217
|
this.disposeWithMe(
|
|
8212
8218
|
this._editorBridgeService.visible$.pipe(un((e, t) => e.visible === t.visible)).subscribe((e) => {
|
|
8213
|
-
(e.unitId === Le || e.unitId ===
|
|
8219
|
+
(e.unitId === Le || e.unitId === this._context.unitId) && e.visible ? (this._isUnitEditing = !0, this._handleEditorVisible(e)) : this._isUnitEditing && (this._handleEditorInvisible(e), this._isUnitEditing = !1);
|
|
8214
8220
|
})
|
|
8215
8221
|
);
|
|
8216
8222
|
}
|
|
@@ -8261,8 +8267,8 @@ let Lc = class extends de {
|
|
|
8261
8267
|
}
|
|
8262
8268
|
this._sheetCellEditorResizeService.resizeCellEditor(() => {
|
|
8263
8269
|
this._textSelectionManagerService.refreshSelection({
|
|
8264
|
-
unitId:
|
|
8265
|
-
subUnitId:
|
|
8270
|
+
unitId: De,
|
|
8271
|
+
subUnitId: De
|
|
8266
8272
|
});
|
|
8267
8273
|
});
|
|
8268
8274
|
}
|
|
@@ -8295,12 +8301,12 @@ let Lc = class extends de {
|
|
|
8295
8301
|
endOffset: 0
|
|
8296
8302
|
}],
|
|
8297
8303
|
{
|
|
8298
|
-
unitId:
|
|
8299
|
-
subUnitId:
|
|
8304
|
+
unitId: De,
|
|
8305
|
+
subUnitId: De
|
|
8300
8306
|
}
|
|
8301
8307
|
);
|
|
8302
|
-
const f = (S = this._renderManagerService.getRenderById(
|
|
8303
|
-
(f != null && f.canFocusing || p != null && p.canFocusing) && (this._univerInstanceService.setCurrentUnitForType(
|
|
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
|
+
(f != null && f.canFocusing || p != null && p.canFocusing) && (this._univerInstanceService.setCurrentUnitForType(De), f == null || f.activate(
|
|
8304
8310
|
Gu,
|
|
8305
8311
|
Gu,
|
|
8306
8312
|
!0
|
|
@@ -8316,7 +8322,7 @@ let Lc = class extends de {
|
|
|
8316
8322
|
const i = n.params, { unitId: o } = i;
|
|
8317
8323
|
if (!this._isCurrentSheetFocused() || S_(o) || (this._editorBridgeService.changeEditorDirty(!0), !this._editorBridgeService.isVisible().visible))
|
|
8318
8324
|
return;
|
|
8319
|
-
o ===
|
|
8325
|
+
o === De && this._sheetCellEditorResizeService.fitTextSize();
|
|
8320
8326
|
}
|
|
8321
8327
|
}));
|
|
8322
8328
|
const t = [pi.id];
|
|
@@ -8354,7 +8360,7 @@ let Lc = class extends de {
|
|
|
8354
8360
|
return;
|
|
8355
8361
|
const { document: a, scene: c } = l;
|
|
8356
8362
|
this._contextService.setContextValue($e, !0);
|
|
8357
|
-
const d = this._getDocumentDataModel(), u = this._getEditorSkeleton(
|
|
8363
|
+
const d = this._getDocumentDataModel(), u = this._getEditorSkeleton(De);
|
|
8358
8364
|
if (!(!u || !d)) {
|
|
8359
8365
|
if (this._sheetCellEditorResizeService.fitTextSize(() => {
|
|
8360
8366
|
const f = c.getViewport(Ps.VIEW_MAIN);
|
|
@@ -8376,8 +8382,8 @@ let Lc = class extends de {
|
|
|
8376
8382
|
endOffset: f
|
|
8377
8383
|
}],
|
|
8378
8384
|
{
|
|
8379
|
-
unitId:
|
|
8380
|
-
subUnitId:
|
|
8385
|
+
unitId: De,
|
|
8386
|
+
subUnitId: De
|
|
8381
8387
|
}
|
|
8382
8388
|
);
|
|
8383
8389
|
} else if (
|
|
@@ -8390,8 +8396,8 @@ let Lc = class extends de {
|
|
|
8390
8396
|
endOffset: 0
|
|
8391
8397
|
}],
|
|
8392
8398
|
{
|
|
8393
|
-
unitId:
|
|
8394
|
-
subUnitId:
|
|
8399
|
+
unitId: De,
|
|
8400
|
+
subUnitId: De
|
|
8395
8401
|
}
|
|
8396
8402
|
);
|
|
8397
8403
|
else if (t === Ye.Dblclick) {
|
|
@@ -8409,7 +8415,7 @@ let Lc = class extends de {
|
|
|
8409
8415
|
}
|
|
8410
8416
|
}
|
|
8411
8417
|
async _handleEditorInvisible(e) {
|
|
8412
|
-
const t = this._editorBridgeService.getEditCellState(), n = this._univerInstanceService.getUnit(
|
|
8418
|
+
const t = this._editorBridgeService.getEditCellState(), n = this._univerInstanceService.getUnit(De), i = ie.deepClone(n == null ? void 0 : n.getSnapshot());
|
|
8413
8419
|
let { keycode: o } = e;
|
|
8414
8420
|
if (this._cursorChange = 0, this._exitInput(e), t == null)
|
|
8415
8421
|
return;
|
|
@@ -8421,7 +8427,7 @@ let Lc = class extends de {
|
|
|
8421
8427
|
}), o === Z.ESC) {
|
|
8422
8428
|
this._editorBridgeService.isForceKeepVisible() && this._editorBridgeService.disableForceKeepVisible();
|
|
8423
8429
|
const g = this._workbookSelections.getCurrentSelections();
|
|
8424
|
-
g && (this._contextService.setContextValue(oo, !1), this._commandService.syncExecuteCommand(
|
|
8430
|
+
g && (this._contextService.setContextValue(oo, !1), this._commandService.syncExecuteCommand(Pe.id, {
|
|
8425
8431
|
unitId: this._context.unit.getUnitId(),
|
|
8426
8432
|
subUnitId: h,
|
|
8427
8433
|
selections: g
|
|
@@ -8534,7 +8540,7 @@ let Lc = class extends de {
|
|
|
8534
8540
|
});
|
|
8535
8541
|
}
|
|
8536
8542
|
_getDocumentDataModel() {
|
|
8537
|
-
return this._univerInstanceService.getUnit(
|
|
8543
|
+
return this._univerInstanceService.getUnit(De, x.UNIVER_DOC);
|
|
8538
8544
|
}
|
|
8539
8545
|
// WTF: this is should not exist at all. It is because all editor instances reuse the singleton
|
|
8540
8546
|
// "DocSelectionManagerService" and other modules. Which will be refactored soon in August, 2024.
|
|
@@ -8563,7 +8569,7 @@ let Lc = class extends de {
|
|
|
8563
8569
|
Lc = C_([
|
|
8564
8570
|
Mt(1, N($)),
|
|
8565
8571
|
Mt(2, qt),
|
|
8566
|
-
Mt(3,
|
|
8572
|
+
Mt(3, He),
|
|
8567
8573
|
Mt(4, be),
|
|
8568
8574
|
Mt(5, it),
|
|
8569
8575
|
Mt(6, Ql),
|
|
@@ -8571,7 +8577,7 @@ Lc = C_([
|
|
|
8571
8577
|
Mt(8, Zg),
|
|
8572
8578
|
Mt(9, N(Td)),
|
|
8573
8579
|
Mt(10, D),
|
|
8574
|
-
Mt(11, N(
|
|
8580
|
+
Mt(11, N(xe)),
|
|
8575
8581
|
Mt(12, kr),
|
|
8576
8582
|
Mt(13, N(Zs)),
|
|
8577
8583
|
Mt(14, V),
|
|
@@ -9643,17 +9649,17 @@ let Qs = class extends de {
|
|
|
9643
9649
|
constructor(e, t, n, i, o, s, l, a, c, d, u, h, g, m) {
|
|
9644
9650
|
super();
|
|
9645
9651
|
_(this, "_clipboardHooks", []);
|
|
9646
|
-
_(this, "_clipboardHooks$", new
|
|
9652
|
+
_(this, "_clipboardHooks$", new Me([]));
|
|
9647
9653
|
_(this, "clipboardHooks$", this._clipboardHooks$.asObservable());
|
|
9648
9654
|
_(this, "_htmlToUSM");
|
|
9649
9655
|
_(this, "_usmToHtml");
|
|
9650
9656
|
_(this, "_copyContentCache");
|
|
9651
9657
|
_(this, "_copyMarkId", null);
|
|
9652
9658
|
// Record the parsed matrix and row and column attributes
|
|
9653
|
-
_(this, "_pasteOptionsCache$", new
|
|
9659
|
+
_(this, "_pasteOptionsCache$", new Me(null));
|
|
9654
9660
|
_(this, "pasteOptionsCache$", this._pasteOptionsCache$.asObservable());
|
|
9655
9661
|
//Control the visibility of the Paste Options menu
|
|
9656
|
-
_(this, "_showMenu$", new
|
|
9662
|
+
_(this, "_showMenu$", new Me(!1));
|
|
9657
9663
|
_(this, "showMenu$", this._showMenu$.asObservable());
|
|
9658
9664
|
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({
|
|
9659
9665
|
getCurrentSkeleton: () => {
|
|
@@ -10070,7 +10076,7 @@ let Qs = class extends de {
|
|
|
10070
10076
|
}]
|
|
10071
10077
|
};
|
|
10072
10078
|
return {
|
|
10073
|
-
id:
|
|
10079
|
+
id: Pe.id,
|
|
10074
10080
|
params: C
|
|
10075
10081
|
};
|
|
10076
10082
|
}
|
|
@@ -10294,7 +10300,7 @@ Qs = Z_([
|
|
|
10294
10300
|
Ot(8, yS),
|
|
10295
10301
|
Ot(9, be),
|
|
10296
10302
|
Ot(10, N(Lt)),
|
|
10297
|
-
Ot(11, N(
|
|
10303
|
+
Ot(11, N(xe)),
|
|
10298
10304
|
Ot(12, N(Gp)),
|
|
10299
10305
|
Ot(13, N(It))
|
|
10300
10306
|
], Qs);
|
|
@@ -10414,7 +10420,7 @@ const Qd = 998, mn = {
|
|
|
10414
10420
|
if (!o) return !1;
|
|
10415
10421
|
const { worksheet: s } = o, l = s.getVisibleRows();
|
|
10416
10422
|
if (um(l, t)) {
|
|
10417
|
-
const c = r.get(rn), d = r.get(
|
|
10423
|
+
const c = r.get(rn), d = r.get(xe);
|
|
10418
10424
|
return await c.confirm({
|
|
10419
10425
|
id: "sheet.confirm.hide-row",
|
|
10420
10426
|
title: {
|
|
@@ -10439,7 +10445,7 @@ const Qd = 998, mn = {
|
|
|
10439
10445
|
if (!o) return !1;
|
|
10440
10446
|
const { worksheet: s } = o, l = s.getVisibleCols();
|
|
10441
10447
|
if (hm(l, t)) {
|
|
10442
|
-
const c = r.get(rn), d = r.get(
|
|
10448
|
+
const c = r.get(rn), d = r.get(xe);
|
|
10443
10449
|
return await c.confirm({
|
|
10444
10450
|
id: "sheet.confirm.hide-col",
|
|
10445
10451
|
title: {
|
|
@@ -10457,69 +10463,69 @@ const Qd = 998, mn = {
|
|
|
10457
10463
|
id: "sheet.command.set-range-bold",
|
|
10458
10464
|
handler: async (r) => {
|
|
10459
10465
|
const e = r.get(D);
|
|
10460
|
-
return r.get(
|
|
10466
|
+
return r.get(He).getContextValue($e) ? e.executeCommand(Ep.id) : e.executeCommand(wd.id);
|
|
10461
10467
|
}
|
|
10462
10468
|
}, xi = {
|
|
10463
10469
|
type: Q.COMMAND,
|
|
10464
10470
|
id: "sheet.command.set-range-italic",
|
|
10465
10471
|
handler: async (r) => {
|
|
10466
10472
|
const e = r.get(D);
|
|
10467
|
-
return r.get(
|
|
10473
|
+
return r.get(He).getContextValue($e) ? e.executeCommand(Tp.id) : e.executeCommand(Rd.id);
|
|
10468
10474
|
}
|
|
10469
10475
|
}, Ai = {
|
|
10470
10476
|
type: Q.COMMAND,
|
|
10471
10477
|
id: "sheet.command.set-range-underline",
|
|
10472
10478
|
handler: async (r) => {
|
|
10473
10479
|
const e = r.get(D);
|
|
10474
|
-
return r.get(
|
|
10480
|
+
return r.get(He).getContextValue($e) ? e.executeCommand(Op.id) : e.executeCommand(Id.id);
|
|
10475
10481
|
}
|
|
10476
10482
|
}, ki = {
|
|
10477
10483
|
type: Q.COMMAND,
|
|
10478
10484
|
id: "sheet.command.set-range-stroke",
|
|
10479
10485
|
handler: async (r) => {
|
|
10480
10486
|
const e = r.get(D);
|
|
10481
|
-
return r.get(
|
|
10487
|
+
return r.get(He).getContextValue($e) ? e.executeCommand(xp.id) : e.executeCommand(yd.id);
|
|
10482
10488
|
}
|
|
10483
10489
|
}, Ym = {
|
|
10484
10490
|
type: Q.COMMAND,
|
|
10485
10491
|
id: "sheet.command.set-range-subscript",
|
|
10486
10492
|
handler: async (r) => {
|
|
10487
10493
|
const e = r.get(D);
|
|
10488
|
-
return r.get(
|
|
10494
|
+
return r.get(He).getContextValue($e) ? e.executeCommand(Ap.id) : !1;
|
|
10489
10495
|
}
|
|
10490
10496
|
}, Zm = {
|
|
10491
10497
|
type: Q.COMMAND,
|
|
10492
10498
|
id: "sheet.command.set-range-superscript",
|
|
10493
10499
|
handler: async (r) => {
|
|
10494
10500
|
const e = r.get(D);
|
|
10495
|
-
return r.get(
|
|
10501
|
+
return r.get(He).getContextValue($e) ? e.executeCommand(kp.id) : !1;
|
|
10496
10502
|
}
|
|
10497
10503
|
}, na = {
|
|
10498
10504
|
type: Q.COMMAND,
|
|
10499
10505
|
id: "sheet.command.set-range-fontsize",
|
|
10500
10506
|
handler: async (r, e) => {
|
|
10501
10507
|
const t = r.get(D);
|
|
10502
|
-
return r.get(
|
|
10508
|
+
return r.get(He).getContextValue($e) ? t.executeCommand(Hp.id, e) : t.executeCommand(Md.id, e);
|
|
10503
10509
|
}
|
|
10504
10510
|
}, ra = {
|
|
10505
10511
|
type: Q.COMMAND,
|
|
10506
10512
|
id: "sheet.command.set-range-font-family",
|
|
10507
10513
|
handler: async (r, e) => {
|
|
10508
10514
|
const t = r.get(D);
|
|
10509
|
-
return r.get(
|
|
10515
|
+
return r.get(He).getContextValue($e) ? t.executeCommand(Np.id, e) : t.executeCommand(Pd.id, e);
|
|
10510
10516
|
}
|
|
10511
10517
|
}, vo = {
|
|
10512
10518
|
type: Q.COMMAND,
|
|
10513
10519
|
id: "sheet.command.set-range-text-color",
|
|
10514
10520
|
handler: async (r, e) => {
|
|
10515
10521
|
const t = r.get(D);
|
|
10516
|
-
return r.get(
|
|
10522
|
+
return r.get(He).getContextValue($e) ? t.executeCommand(Nh.id, e) : t.executeCommand(gg.id, e);
|
|
10517
10523
|
}
|
|
10518
10524
|
}, Gm = {
|
|
10519
10525
|
type: Q.COMMAND,
|
|
10520
10526
|
id: "sheet.command.reset-range-text-color",
|
|
10521
10527
|
handler: async (r) => {
|
|
10522
|
-
const e = r.get(D), n = r.get(
|
|
10528
|
+
const e = r.get(D), n = r.get(He).getContextValue($e), i = r.get(Lt);
|
|
10523
10529
|
return n ? e.executeCommand(Nh.id, { value: null }) : e.executeCommand(gg.id, { value: i.getCurrentTheme().textColor });
|
|
10524
10530
|
}
|
|
10525
10531
|
};
|
|
@@ -10538,7 +10544,7 @@ let Ks = class extends de {
|
|
|
10538
10544
|
_(this, "_status$");
|
|
10539
10545
|
_(this, "_defaultHook", null);
|
|
10540
10546
|
_(this, "_extendHooks", []);
|
|
10541
|
-
this._selectionManagerService = e, this._themeService = t, this._markSelectionService = n, this._logService = i, this._commandService = o, this._undoRedoService = s, this._status$ = new
|
|
10547
|
+
this._selectionManagerService = e, this._themeService = t, this._markSelectionService = n, this._logService = i, this._commandService = o, this._undoRedoService = s, this._status$ = new Me(
|
|
10542
10548
|
0
|
|
10543
10549
|
/* OFF */
|
|
10544
10550
|
), this.status$ = this._status$.asObservable(), this._selectionFormat = { styles: new Je(), merges: [] };
|
|
@@ -10783,13 +10789,13 @@ const aa = {
|
|
|
10783
10789
|
sheetsUiContextMenuInputContainer: sw,
|
|
10784
10790
|
sheetsUiContextMenuInputNumber: lw
|
|
10785
10791
|
}, qm = (r) => {
|
|
10786
|
-
const { prefix: e, suffix: t, value: n, onChange: i, min: o = Number.MIN_SAFE_INTEGER, max: s = Number.MAX_SAFE_INTEGER } = r, l = L(
|
|
10792
|
+
const { prefix: e, suffix: t, value: n, onChange: i, min: o = Number.MIN_SAFE_INTEGER, max: s = Number.MAX_SAFE_INTEGER } = r, l = L(xe), a = L(kl), [c, d] = ne(), u = (g) => {
|
|
10787
10793
|
var m;
|
|
10788
10794
|
d(g == null ? void 0 : g.toString()), i((m = g == null ? void 0 : g.toString()) != null ? m : "");
|
|
10789
10795
|
};
|
|
10790
|
-
|
|
10796
|
+
Ee(() => {
|
|
10791
10797
|
a.visible || d(n);
|
|
10792
|
-
}, [a.visible]),
|
|
10798
|
+
}, [a.visible]), Ee(() => {
|
|
10793
10799
|
d(n);
|
|
10794
10800
|
}, [n]);
|
|
10795
10801
|
function h(g) {
|
|
@@ -10815,7 +10821,7 @@ const aa = {
|
|
|
10815
10821
|
function aw(r) {
|
|
10816
10822
|
return r.getCurrentTypeOfUnit$(x.UNIVER_SHEET).pipe(kn((e) => e ? e.activeSheet$.pipe(Sn((t) => t ? { workbook: e, worksheet: t } : null)) : Re(null)));
|
|
10817
10823
|
}
|
|
10818
|
-
function
|
|
10824
|
+
function vt(r, e, t) {
|
|
10819
10825
|
return aw(r).pipe(kn((n) => n ? t(n) : Re(e)));
|
|
10820
10826
|
}
|
|
10821
10827
|
function cw(r, e) {
|
|
@@ -10844,7 +10850,7 @@ function Ni(r, e, t) {
|
|
|
10844
10850
|
}
|
|
10845
10851
|
function pe(r, e = {}, t = !1) {
|
|
10846
10852
|
var h;
|
|
10847
|
-
const i = r.get(V).getCurrentTypeOfUnit$(x.UNIVER_SHEET), o = r.get(Wt), s = r.has(it) ? r.get(it) : null, l = r.get(
|
|
10853
|
+
const i = r.get(V).getCurrentTypeOfUnit$(x.UNIVER_SHEET), o = r.get(Wt), s = r.has(it) ? r.get(it) : null, l = r.get(He), a = new Me(!1), c = (h = s == null ? void 0 : s.visible$) != null ? h : Re(null), d = l.subscribeContextValue$(At).subscribe((g) => {
|
|
10848
10854
|
a.next(g);
|
|
10849
10855
|
});
|
|
10850
10856
|
return dt([o.currentUser$, i, c, a]).pipe(
|
|
@@ -10855,7 +10861,7 @@ function pe(r, e = {}, t = !1) {
|
|
|
10855
10861
|
kn((S) => {
|
|
10856
10862
|
if (!S)
|
|
10857
10863
|
return Re(!0);
|
|
10858
|
-
const v = r.get($), C = r.get(et), w = r.get(
|
|
10864
|
+
const v = r.get($), C = r.get(et), w = r.get(pt), I = r.get(He).subscribeContextValue$(El).pipe(eC(!1));
|
|
10859
10865
|
return dt([v.selectionMoveEnd$, I]).pipe(
|
|
10860
10866
|
kn(([y, M]) => {
|
|
10861
10867
|
if (M)
|
|
@@ -10948,7 +10954,7 @@ function ca(r, e) {
|
|
|
10948
10954
|
);
|
|
10949
10955
|
}
|
|
10950
10956
|
function Di(r, e) {
|
|
10951
|
-
const n = r.get(V).getCurrentTypeOfUnit$(x.UNIVER_SHEET), i = r.get(
|
|
10957
|
+
const n = r.get(V).getCurrentTypeOfUnit$(x.UNIVER_SHEET), i = r.get(pt), o = r.get(et), s = r.get(ot), l = r.get(Wt);
|
|
10952
10958
|
return dt([l.currentUser$, n]).pipe(
|
|
10953
10959
|
kn(([a, c]) => c ? c.activeSheet$.pipe(
|
|
10954
10960
|
kn((d) => {
|
|
@@ -10991,7 +10997,7 @@ function uw(r) {
|
|
|
10991
10997
|
};
|
|
10992
10998
|
}
|
|
10993
10999
|
function hw(r) {
|
|
10994
|
-
const e = r.get(D), t = r.get(V), n = r.get(
|
|
11000
|
+
const e = r.get(D), t = r.get(V), n = r.get(He), i = r.get($);
|
|
10995
11001
|
return {
|
|
10996
11002
|
id: Oi.id,
|
|
10997
11003
|
type: K.BUTTON,
|
|
@@ -10999,12 +11005,12 @@ function hw(r) {
|
|
|
10999
11005
|
title: "Set bold",
|
|
11000
11006
|
tooltip: "toolbar.bold",
|
|
11001
11007
|
disabled$: pe(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] }, !0),
|
|
11002
|
-
activated$:
|
|
11008
|
+
activated$: vt(t, !1, ({ worksheet: o }) => new Xe((s) => {
|
|
11003
11009
|
var d;
|
|
11004
11010
|
const l = e.onCommandExecuted((u) => {
|
|
11005
11011
|
var g, m;
|
|
11006
11012
|
const h = u.id;
|
|
11007
|
-
if (h === we.id || h ===
|
|
11013
|
+
if (h === we.id || h === Pe.id || h === rt.id) {
|
|
11008
11014
|
const f = (g = i.getCurrentLastSelection()) == null ? void 0 : g.primary;
|
|
11009
11015
|
let p = ts.NORMAL;
|
|
11010
11016
|
if (f != null) {
|
|
@@ -11036,7 +11042,7 @@ function hw(r) {
|
|
|
11036
11042
|
};
|
|
11037
11043
|
}
|
|
11038
11044
|
function gw(r) {
|
|
11039
|
-
const e = r.get(D), t = r.get(V), n = r.get($), i = r.get(
|
|
11045
|
+
const e = r.get(D), t = r.get(V), n = r.get($), i = r.get(He);
|
|
11040
11046
|
return {
|
|
11041
11047
|
id: xi.id,
|
|
11042
11048
|
type: K.BUTTON,
|
|
@@ -11052,12 +11058,12 @@ function gw(r) {
|
|
|
11052
11058
|
},
|
|
11053
11059
|
!0
|
|
11054
11060
|
),
|
|
11055
|
-
activated$:
|
|
11061
|
+
activated$: vt(t, !1, ({ worksheet: o }) => new Xe((s) => {
|
|
11056
11062
|
var d;
|
|
11057
11063
|
const l = e.onCommandExecuted((u) => {
|
|
11058
11064
|
var g, m;
|
|
11059
11065
|
const h = u.id;
|
|
11060
|
-
if (h === we.id || h ===
|
|
11066
|
+
if (h === we.id || h === Pe.id || h === rt.id) {
|
|
11061
11067
|
const f = (g = n.getCurrentLastSelection()) == null ? void 0 : g.primary;
|
|
11062
11068
|
let p = ns.NORMAL;
|
|
11063
11069
|
if (f != null) {
|
|
@@ -11084,19 +11090,19 @@ function gw(r) {
|
|
|
11084
11090
|
};
|
|
11085
11091
|
}
|
|
11086
11092
|
function mw(r) {
|
|
11087
|
-
const e = r.get(D), t = r.get(V), n = r.get($), i = r.get(
|
|
11093
|
+
const e = r.get(D), t = r.get(V), n = r.get($), i = r.get(He);
|
|
11088
11094
|
return {
|
|
11089
11095
|
id: Ai.id,
|
|
11090
11096
|
type: K.BUTTON,
|
|
11091
11097
|
icon: "UnderlineSingle",
|
|
11092
11098
|
title: "Set underline",
|
|
11093
11099
|
tooltip: "toolbar.underline",
|
|
11094
|
-
activated$:
|
|
11100
|
+
activated$: vt(t, !1, ({ worksheet: o }) => new Xe((s) => {
|
|
11095
11101
|
var d;
|
|
11096
11102
|
const l = e.onCommandExecuted((u) => {
|
|
11097
11103
|
var g, m;
|
|
11098
11104
|
const h = u.id;
|
|
11099
|
-
if (h === we.id || h ===
|
|
11105
|
+
if (h === we.id || h === Pe.id || h === rt.id) {
|
|
11100
11106
|
const f = (g = n.getCurrentLastSelection()) == null ? void 0 : g.primary;
|
|
11101
11107
|
let p;
|
|
11102
11108
|
if (f != null) {
|
|
@@ -11124,7 +11130,7 @@ function mw(r) {
|
|
|
11124
11130
|
};
|
|
11125
11131
|
}
|
|
11126
11132
|
function fw(r) {
|
|
11127
|
-
const e = r.get(D), t = r.get(V), n = r.get($), i = r.get(
|
|
11133
|
+
const e = r.get(D), t = r.get(V), n = r.get($), i = r.get(He);
|
|
11128
11134
|
return {
|
|
11129
11135
|
id: ki.id,
|
|
11130
11136
|
type: K.BUTTON,
|
|
@@ -11132,12 +11138,12 @@ function fw(r) {
|
|
|
11132
11138
|
title: "Set strike through",
|
|
11133
11139
|
tooltip: "toolbar.strikethrough",
|
|
11134
11140
|
disabled$: pe(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] }, !0),
|
|
11135
|
-
activated$:
|
|
11141
|
+
activated$: vt(t, !1, ({ worksheet: o }) => new Xe((s) => {
|
|
11136
11142
|
var d;
|
|
11137
11143
|
const l = e.onCommandExecuted((u) => {
|
|
11138
11144
|
var g, m;
|
|
11139
11145
|
const h = u.id;
|
|
11140
|
-
if (h === we.id || h ===
|
|
11146
|
+
if (h === we.id || h === Pe.id || h === rt.id) {
|
|
11141
11147
|
const f = (g = n.getCurrentLastSelection()) == null ? void 0 : g.primary;
|
|
11142
11148
|
let p;
|
|
11143
11149
|
if (f != null) {
|
|
@@ -11178,12 +11184,12 @@ function pw(r) {
|
|
|
11178
11184
|
value: o.value
|
|
11179
11185
|
})),
|
|
11180
11186
|
disabled$: pe(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] }, !0),
|
|
11181
|
-
value$:
|
|
11187
|
+
value$: vt(t, i, ({ worksheet: o }) => new Xe((s) => {
|
|
11182
11188
|
var d;
|
|
11183
11189
|
const l = e.onCommandExecuted((u) => {
|
|
11184
11190
|
var f;
|
|
11185
11191
|
const h = u.id;
|
|
11186
|
-
if (h !== we.id && h !==
|
|
11192
|
+
if (h !== we.id && h !== Pe.id && h !== rt.id)
|
|
11187
11193
|
return;
|
|
11188
11194
|
const g = (f = n.getCurrentLastSelection()) == null ? void 0 : f.primary;
|
|
11189
11195
|
let m;
|
|
@@ -11204,7 +11210,7 @@ function pw(r) {
|
|
|
11204
11210
|
};
|
|
11205
11211
|
}
|
|
11206
11212
|
function Sw(r) {
|
|
11207
|
-
const e = r.get(D), t = r.get(V), n = r.get($), i = r.get(
|
|
11213
|
+
const e = r.get(D), t = r.get(V), n = r.get($), i = r.get(He), o = ad.fs, s = pe(r, { workbookTypes: [J], worksheetTypes: [te, Ge], rangeTypes: [re] }, !0);
|
|
11208
11214
|
return {
|
|
11209
11215
|
id: na.id,
|
|
11210
11216
|
type: K.SELECTOR,
|
|
@@ -11219,12 +11225,12 @@ function Sw(r) {
|
|
|
11219
11225
|
},
|
|
11220
11226
|
selections: NS,
|
|
11221
11227
|
disabled$: s,
|
|
11222
|
-
value$:
|
|
11228
|
+
value$: vt(t, o, ({ worksheet: l }) => new Xe((a) => {
|
|
11223
11229
|
var h;
|
|
11224
11230
|
const c = e.onCommandExecuted((g) => {
|
|
11225
11231
|
var f, p;
|
|
11226
11232
|
const m = g.id;
|
|
11227
|
-
if (m === we.id || m ===
|
|
11233
|
+
if (m === we.id || m === Pe.id || m === rt.id) {
|
|
11228
11234
|
const S = (f = n.getCurrentLastSelection()) == null ? void 0 : f.primary;
|
|
11229
11235
|
let v;
|
|
11230
11236
|
if (S != null) {
|
|
@@ -11353,12 +11359,12 @@ function ww(r) {
|
|
|
11353
11359
|
tooltip: "toolbar.horizontalAlignMode.main",
|
|
11354
11360
|
type: K.SELECTOR,
|
|
11355
11361
|
selections: lh,
|
|
11356
|
-
value$:
|
|
11362
|
+
value$: vt(e, n, ({ worksheet: i }) => new Xe((o) => {
|
|
11357
11363
|
var c;
|
|
11358
11364
|
const s = r.get(D).onCommandExecuted((d) => {
|
|
11359
11365
|
var m;
|
|
11360
11366
|
const u = d.id;
|
|
11361
|
-
if (u !== vc.id && u !==
|
|
11367
|
+
if (u !== vc.id && u !== Pe.id && u !== rt.id)
|
|
11362
11368
|
return;
|
|
11363
11369
|
const h = (m = t.getCurrentLastSelection()) == null ? void 0 : m.primary;
|
|
11364
11370
|
let g;
|
|
@@ -11404,12 +11410,12 @@ function Rw(r) {
|
|
|
11404
11410
|
tooltip: "toolbar.verticalAlignMode.main",
|
|
11405
11411
|
type: K.SELECTOR,
|
|
11406
11412
|
selections: ah,
|
|
11407
|
-
value$:
|
|
11413
|
+
value$: vt(e, n, ({ worksheet: i }) => new Xe((o) => {
|
|
11408
11414
|
var c;
|
|
11409
11415
|
const s = r.get(D).onCommandExecuted((d) => {
|
|
11410
11416
|
var m;
|
|
11411
11417
|
const u = d.id;
|
|
11412
|
-
if (u !== Sc.id && u !==
|
|
11418
|
+
if (u !== Sc.id && u !== Pe.id && u !== rt.id)
|
|
11413
11419
|
return;
|
|
11414
11420
|
const h = (m = t.getCurrentLastSelection()) == null ? void 0 : m.primary;
|
|
11415
11421
|
let g;
|
|
@@ -11455,12 +11461,12 @@ function Iw(r) {
|
|
|
11455
11461
|
icon: ch[0].icon,
|
|
11456
11462
|
type: K.SELECTOR,
|
|
11457
11463
|
selections: ch,
|
|
11458
|
-
value$:
|
|
11464
|
+
value$: vt(t, n, ({ worksheet: i }) => new Xe((o) => {
|
|
11459
11465
|
var c;
|
|
11460
11466
|
const s = r.get(D).onCommandExecuted((d) => {
|
|
11461
11467
|
var m;
|
|
11462
11468
|
const u = d.id;
|
|
11463
|
-
if (u !== pc.id && u !==
|
|
11469
|
+
if (u !== pc.id && u !== Pe.id && u !== rt.id)
|
|
11464
11470
|
return;
|
|
11465
11471
|
const h = (m = e.getCurrentLastSelection()) == null ? void 0 : m.primary;
|
|
11466
11472
|
let g;
|
|
@@ -11521,12 +11527,12 @@ function yw(r) {
|
|
|
11521
11527
|
icon: dh[0].icon,
|
|
11522
11528
|
type: K.SELECTOR,
|
|
11523
11529
|
selections: dh,
|
|
11524
|
-
value$:
|
|
11530
|
+
value$: vt(t, n, ({ worksheet: i }) => new Xe((o) => {
|
|
11525
11531
|
var c, d;
|
|
11526
11532
|
const s = r.get(D).onCommandExecuted((u) => {
|
|
11527
11533
|
var f, p;
|
|
11528
11534
|
const h = u.id;
|
|
11529
|
-
if (h !== fc.id && h !==
|
|
11535
|
+
if (h !== fc.id && h !== Pe.id && h !== rt.id)
|
|
11530
11536
|
return;
|
|
11531
11537
|
const g = (f = e.getCurrentLastSelection()) == null ? void 0 : f.primary;
|
|
11532
11538
|
let m;
|
|
@@ -11733,12 +11739,12 @@ function Aw(r) {
|
|
|
11733
11739
|
};
|
|
11734
11740
|
}
|
|
11735
11741
|
function kw(r) {
|
|
11736
|
-
const e = r.get(V), t = r.get($), n = r.get(D), i = [
|
|
11742
|
+
const e = r.get(V), t = r.get($), n = r.get(D), i = [Pe, pg, Sg].map((o) => o.id);
|
|
11737
11743
|
return {
|
|
11738
11744
|
id: vg.id,
|
|
11739
11745
|
type: K.BUTTON,
|
|
11740
11746
|
title: "rightClick.showHideRow",
|
|
11741
|
-
hidden$:
|
|
11747
|
+
hidden$: vt(e, !0, ({ worksheet: o }) => new Xe((s) => {
|
|
11742
11748
|
function l() {
|
|
11743
11749
|
var d;
|
|
11744
11750
|
const c = (d = t.getCurrentSelections()) == null ? void 0 : d.map((u) => u.range).filter((u) => u.rangeType === z.ROW);
|
|
@@ -11757,12 +11763,12 @@ function kw(r) {
|
|
|
11757
11763
|
};
|
|
11758
11764
|
}
|
|
11759
11765
|
function Hw(r) {
|
|
11760
|
-
const e = r.get(V), t = r.get($), n = r.get(D), i = [
|
|
11766
|
+
const e = r.get(V), t = r.get($), n = r.get(D), i = [Pe, bg, _g].map((o) => o.id);
|
|
11761
11767
|
return {
|
|
11762
11768
|
id: wg.id,
|
|
11763
11769
|
type: K.BUTTON,
|
|
11764
11770
|
title: "rightClick.showHideColumn",
|
|
11765
|
-
hidden$:
|
|
11771
|
+
hidden$: vt(e, !0, ({ worksheet: o }) => new Xe((s) => {
|
|
11766
11772
|
function l() {
|
|
11767
11773
|
var d;
|
|
11768
11774
|
const c = (d = t.getCurrentSelections()) == null ? void 0 : d.map((u) => u.range).filter((u) => u.rangeType === z.COLUMN);
|
|
@@ -11795,7 +11801,7 @@ function Nw(r) {
|
|
|
11795
11801
|
max: 1e3
|
|
11796
11802
|
}
|
|
11797
11803
|
},
|
|
11798
|
-
value$:
|
|
11804
|
+
value$: vt(t, i, ({ worksheet: o }) => new Xe((s) => {
|
|
11799
11805
|
function l() {
|
|
11800
11806
|
var u;
|
|
11801
11807
|
const c = (u = n.getCurrentLastSelection()) == null ? void 0 : u.primary, d = c ? o.getRowHeight(c.startRow) : i;
|
|
@@ -11803,7 +11809,7 @@ function Nw(r) {
|
|
|
11803
11809
|
}
|
|
11804
11810
|
const a = e.onCommandExecuted((c) => {
|
|
11805
11811
|
const d = c.id;
|
|
11806
|
-
if (d === we.id || d ===
|
|
11812
|
+
if (d === we.id || d === Pe.id || d === tv.id)
|
|
11807
11813
|
return l();
|
|
11808
11814
|
});
|
|
11809
11815
|
return l(), a.dispose;
|
|
@@ -11826,7 +11832,7 @@ function Vw(r) {
|
|
|
11826
11832
|
max: 1e3
|
|
11827
11833
|
}
|
|
11828
11834
|
},
|
|
11829
|
-
value$:
|
|
11835
|
+
value$: vt(t, i, ({ worksheet: o }) => new Xe((s) => {
|
|
11830
11836
|
function l() {
|
|
11831
11837
|
var u;
|
|
11832
11838
|
const c = (u = n.getCurrentLastSelection()) == null ? void 0 : u.primary;
|
|
@@ -11835,7 +11841,7 @@ function Vw(r) {
|
|
|
11835
11841
|
}
|
|
11836
11842
|
const a = e.onCommandExecuted((c) => {
|
|
11837
11843
|
const d = c.id;
|
|
11838
|
-
if (d === we.id || d ===
|
|
11844
|
+
if (d === we.id || d === Pe.id || d === an.id)
|
|
11839
11845
|
return l();
|
|
11840
11846
|
});
|
|
11841
11847
|
return l(), a.dispose;
|
|
@@ -11845,7 +11851,7 @@ function Vw(r) {
|
|
|
11845
11851
|
}
|
|
11846
11852
|
function Qo(r) {
|
|
11847
11853
|
var a;
|
|
11848
|
-
const e = r.get(V), t = r.get(Td), n = e.getUniverDocInstance(
|
|
11854
|
+
const e = r.get(V), t = r.get(Td), n = e.getUniverDocInstance(De), i = t.getActiveTextRange();
|
|
11849
11855
|
if (n == null || i == null) return null;
|
|
11850
11856
|
const o = (a = n.getBody()) == null ? void 0 : a.textRuns;
|
|
11851
11857
|
if (o == null) return;
|
|
@@ -12025,7 +12031,7 @@ let bo = class extends de {
|
|
|
12025
12031
|
_getActiveViewport(e) {
|
|
12026
12032
|
var n;
|
|
12027
12033
|
const t = (n = this._getSheetObject()) == null ? void 0 : n.scene.getViewports();
|
|
12028
|
-
return t && t.find((i) => i.isHit(new
|
|
12034
|
+
return t && t.find((i) => i.isHit(new ke(e.offsetX, e.offsetY))) || null;
|
|
12029
12035
|
}
|
|
12030
12036
|
// eslint-disable-next-line max-lines-per-function
|
|
12031
12037
|
_freezeDown(e, t, n, i = 0) {
|
|
@@ -12818,7 +12824,7 @@ let _o = class extends de {
|
|
|
12818
12824
|
const h = (k = this._workbookSelections.getCurrentLastSelection()) == null ? void 0 : k.range;
|
|
12819
12825
|
if (!h || !this.interceptor.fetchThroughInterceptors(Wa)(!1, h))
|
|
12820
12826
|
return;
|
|
12821
|
-
const { offsetX: m, offsetY: f } = c, p = i.getCoordRelativeToViewport(
|
|
12827
|
+
const { offsetX: m, offsetY: f } = c, p = i.getCoordRelativeToViewport(ke.FromArray([m, f])), { x: S, y: v } = p;
|
|
12822
12828
|
this._startOffsetX = S, this._startOffsetY = v;
|
|
12823
12829
|
const { row: C, column: w } = Wn(c.offsetX, c.offsetY, i, u);
|
|
12824
12830
|
let R;
|
|
@@ -12831,7 +12837,7 @@ let _o = class extends de {
|
|
|
12831
12837
|
if (!y)
|
|
12832
12838
|
return;
|
|
12833
12839
|
const M = i.getScrollXYInfoByViewport(
|
|
12834
|
-
|
|
12840
|
+
ke.FromArray([this._startOffsetX, this._startOffsetY])
|
|
12835
12841
|
);
|
|
12836
12842
|
this._newBackgroundAndLine(), i.setCursor(ye.GRABBING), i.disableObjectsEvent();
|
|
12837
12843
|
let P = !1, E;
|
|
@@ -12845,7 +12851,7 @@ let _o = class extends de {
|
|
|
12845
12851
|
this._dragHeaderMoveSub = i.onPointerMove$.subscribeEvent((O) => {
|
|
12846
12852
|
T();
|
|
12847
12853
|
const { offsetX: H, offsetY: F } = O, { x: X, y: B } = i.getCoordRelativeToViewport(
|
|
12848
|
-
|
|
12854
|
+
ke.FromArray([H, F])
|
|
12849
12855
|
);
|
|
12850
12856
|
this._rowColumnMoving(
|
|
12851
12857
|
X,
|
|
@@ -13199,15 +13205,15 @@ let $s = class extends de {
|
|
|
13199
13205
|
});
|
|
13200
13206
|
const O = ((le = this._columnResizeRect) == null ? void 0 : le.left) || 0, H = ((me = this._rowResizeRect) == null ? void 0 : me.top) || 0;
|
|
13201
13207
|
s.addObject(this._resizeHelperShape, ar), s.disableObjectsEvent(), this._scenePointerMoveSub = s.onPointerMove$.subscribeEvent((oe) => {
|
|
13202
|
-
var ze, tt, wt,
|
|
13208
|
+
var ze, tt, wt, Ct, Kt, Gn;
|
|
13203
13209
|
const _e = s.getCoordRelativeToViewport(
|
|
13204
|
-
|
|
13210
|
+
ke.FromArray([this._startOffsetX, this._startOffsetY])
|
|
13205
13211
|
), Ie = s.getScrollXYInfoByViewport(_e, d), G = ws(oe.offsetX, oe.offsetY, s), { x: ee, y: ae } = G, { scaleX: Se, scaleY: ve } = s.getAncestorScale(), ce = Math.max(Se, ve), se = Xc / ce;
|
|
13206
13212
|
w = ee - this._startOffsetX - se / 2, R = ae - this._startOffsetY - se / 2, Math.abs(e === 0 ? R : w) >= i0 && (C = !0), e === 0 ? (R > a - u + Ie.y - v.startY && (R = a - u + Ie.y - v.startY), R < -(v.endY - v.startY) + 2 && (R = -(v.endY - v.startY) + 2), C && ((ze = this._resizeHelperShape) == null || ze.transformByState({
|
|
13207
13213
|
top: S + R
|
|
13208
13214
|
}), (tt = this._rowResizeRect) == null || tt.transformByState({
|
|
13209
13215
|
top: H + R + se / 2
|
|
13210
|
-
}), (wt = this._rowResizeRect) == null || wt.show(), s.setCursor(ye.ROW_RESIZE))) : (w > c - h + Ie.x - v.startX && (w = c - h + Ie.x - v.startX), w < -(v.endX - v.startX) + 2 && (w = -(v.endX - v.startX) + 2), C && ((
|
|
13216
|
+
}), (wt = this._rowResizeRect) == null || wt.show(), s.setCursor(ye.ROW_RESIZE))) : (w > c - h + Ie.x - v.startX && (w = c - h + Ie.x - v.startX), w < -(v.endX - v.startX) + 2 && (w = -(v.endX - v.startX) + 2), C && ((Ct = this._resizeHelperShape) == null || Ct.transformByState({
|
|
13211
13217
|
left: p + w
|
|
13212
13218
|
}), (Kt = this._columnResizeRect) == null || Kt.transformByState({
|
|
13213
13219
|
left: O + w + se / 2
|
|
@@ -13295,7 +13301,7 @@ let el = class extends Un {
|
|
|
13295
13301
|
super();
|
|
13296
13302
|
_(this, "_renderFrameTimeMetric", null);
|
|
13297
13303
|
_(this, "_renderFrameTags", {});
|
|
13298
|
-
_(this, "_afterRenderMetric$", new
|
|
13304
|
+
_(this, "_afterRenderMetric$", new Ae());
|
|
13299
13305
|
this._context = e, this._sheetSkeletonManagerService = t, this._sheetRenderService = n, this._commandService = i, this._telemetryService = o, this._addNewRender(), this._initRenderMetricSubscriber();
|
|
13300
13306
|
}
|
|
13301
13307
|
_addNewRender() {
|
|
@@ -13590,7 +13596,7 @@ function d0(r, e) {
|
|
|
13590
13596
|
}
|
|
13591
13597
|
function u0(r, e, t, n) {
|
|
13592
13598
|
const i = t.getActiveViewportByCoord(
|
|
13593
|
-
|
|
13599
|
+
ke.FromArray([r, e])
|
|
13594
13600
|
);
|
|
13595
13601
|
if (!i)
|
|
13596
13602
|
return;
|
|
@@ -13684,7 +13690,7 @@ function rf(r, e, t, n, i, o) {
|
|
|
13684
13690
|
endColumn: f.col
|
|
13685
13691
|
};
|
|
13686
13692
|
const S = s.getActiveViewportByCoord(
|
|
13687
|
-
|
|
13693
|
+
ke.FromArray([i, o])
|
|
13688
13694
|
);
|
|
13689
13695
|
if (!S)
|
|
13690
13696
|
return;
|
|
@@ -13707,7 +13713,7 @@ const hr = {
|
|
|
13707
13713
|
type: Q.COMMAND,
|
|
13708
13714
|
id: "sheet.command.add-worksheet-merge",
|
|
13709
13715
|
handler: async (r, e) => {
|
|
13710
|
-
const t = r.get(D), n = r.get(qt), i = r.get(V), o = r.get(rn), s = r.get(
|
|
13716
|
+
const t = r.get(D), n = r.get(qt), i = r.get(V), o = r.get(rn), s = r.get(xe), l = e.unitId, a = e.subUnitId, c = e.selections, d = Ul(c, e.value), u = i.getUniverSheetInstance(l).getSheetBySheetId(a), h = [], g = [], m = tf(u, d);
|
|
13711
13717
|
if (m && !e.defaultMerge && !await o.confirm({
|
|
13712
13718
|
id: "merge.confirm.add-worksheet-merge",
|
|
13713
13719
|
title: {
|
|
@@ -13807,7 +13813,7 @@ const hr = {
|
|
|
13807
13813
|
type: Q.COMMAND,
|
|
13808
13814
|
id: "sheet.command.delete-range-move-left-confirm",
|
|
13809
13815
|
handler: async (r) => {
|
|
13810
|
-
const e = r.get(rn), t = r.get(D), n = r.get(
|
|
13816
|
+
const e = r.get(rn), t = r.get(D), n = r.get(xe), i = r.get($), o = r.get(V), s = i.getCurrentSelections();
|
|
13811
13817
|
if (!s)
|
|
13812
13818
|
return !1;
|
|
13813
13819
|
const l = Ue(o);
|
|
@@ -13833,7 +13839,7 @@ const hr = {
|
|
|
13833
13839
|
type: Q.COMMAND,
|
|
13834
13840
|
id: "sheet.command.delete-range-move-up-confirm",
|
|
13835
13841
|
handler: async (r) => {
|
|
13836
|
-
const e = r.get(rn), t = r.get(D), n = r.get(
|
|
13842
|
+
const e = r.get(rn), t = r.get(D), n = r.get(xe), i = r.get($), o = r.get(V), s = i.getCurrentSelections();
|
|
13837
13843
|
if (!s) return !1;
|
|
13838
13844
|
const l = Ue(o);
|
|
13839
13845
|
if (!l) return !1;
|
|
@@ -13865,7 +13871,7 @@ const hr = {
|
|
|
13865
13871
|
type: Q.COMMAND,
|
|
13866
13872
|
id: "sheet.command.insert-range-move-down-confirm",
|
|
13867
13873
|
handler: async (r) => {
|
|
13868
|
-
const e = r.get(rn), t = r.get(D), n = r.get(
|
|
13874
|
+
const e = r.get(rn), t = r.get(D), n = r.get(xe), i = r.get($), o = r.get(V), s = i.getCurrentSelections();
|
|
13869
13875
|
if (!s)
|
|
13870
13876
|
return !1;
|
|
13871
13877
|
const l = Ue(o);
|
|
@@ -13899,7 +13905,7 @@ const hr = {
|
|
|
13899
13905
|
type: Q.COMMAND,
|
|
13900
13906
|
id: "sheet.command.insert-range-move-right-confirm",
|
|
13901
13907
|
handler: async (r) => {
|
|
13902
|
-
const e = r.get(rn), t = r.get(D), n = r.get(
|
|
13908
|
+
const e = r.get(rn), t = r.get(D), n = r.get(xe), i = r.get($), o = r.get(V), s = i.getCurrentSelections();
|
|
13903
13909
|
if (!s)
|
|
13904
13910
|
return !1;
|
|
13905
13911
|
const l = Ue(o);
|
|
@@ -13982,9 +13988,11 @@ class wi {
|
|
|
13982
13988
|
class Fr {
|
|
13983
13989
|
constructor() {
|
|
13984
13990
|
_(this, "_userList", []);
|
|
13991
|
+
_(this, "_userList$", new Me(this._userList));
|
|
13992
|
+
_(this, "userList$", this._userList$.asObservable());
|
|
13985
13993
|
_(this, "_oldCollaboratorList", []);
|
|
13986
13994
|
_(this, "_selectUserList", []);
|
|
13987
|
-
_(this, "_selectUserList$", new
|
|
13995
|
+
_(this, "_selectUserList$", new Me(this._selectUserList));
|
|
13988
13996
|
_(this, "selectUserList$", this._selectUserList$.asObservable());
|
|
13989
13997
|
}
|
|
13990
13998
|
get userList() {
|
|
@@ -13992,7 +14000,7 @@ class Fr {
|
|
|
13992
14000
|
}
|
|
13993
14001
|
// Set all editable users of this unit
|
|
13994
14002
|
setCanEditUserList(e) {
|
|
13995
|
-
this._userList = e;
|
|
14003
|
+
this._userList = e, this._userList$.next(e);
|
|
13996
14004
|
}
|
|
13997
14005
|
reset() {
|
|
13998
14006
|
this._userList = [], this._oldCollaboratorList = [], this._selectUserList = [], this._selectUserList$.next([]);
|
|
@@ -14066,7 +14074,7 @@ const Bn = {
|
|
|
14066
14074
|
id: "sheet.command.delete-range-protection-from-context-menu",
|
|
14067
14075
|
async handler(r) {
|
|
14068
14076
|
var u;
|
|
14069
|
-
const e = r.get(D), t = r.get(V), n = r.get(qt), i = r.get($), o = r.get(
|
|
14077
|
+
const e = r.get(D), t = r.get(V), n = r.get(qt), i = r.get($), o = r.get(pt), s = t.getCurrentUnitForType(x.UNIVER_SHEET), l = s.getActiveSheet(), a = s.getUnitId(), c = l.getSheetId(), d = o.getRule(a, c);
|
|
14070
14078
|
if (d != null && d.permissionId)
|
|
14071
14079
|
return e.executeCommand(Hs.id, { unitId: a, subUnitId: c, rule: d });
|
|
14072
14080
|
{
|
|
@@ -14094,7 +14102,7 @@ const Bn = {
|
|
|
14094
14102
|
id: "sheet.command.set-range-protection-from-context-menu",
|
|
14095
14103
|
async handler(r) {
|
|
14096
14104
|
var d;
|
|
14097
|
-
const e = r.get(D), t = r.get(V), n = r.get($), i = r.get(
|
|
14105
|
+
const e = r.get(D), t = r.get(V), n = r.get($), i = r.get(pt), o = t.getCurrentUnitForType(x.UNIVER_SHEET), s = o.getActiveSheet(), l = o.getUnitId(), a = s.getSheetId(), c = i.getRule(l, a);
|
|
14098
14106
|
if (c != null && c.permissionId) {
|
|
14099
14107
|
const u = {
|
|
14100
14108
|
...c,
|
|
@@ -14135,7 +14143,7 @@ const Bn = {
|
|
|
14135
14143
|
if (!s) return !1;
|
|
14136
14144
|
const { worksheet: l } = s, a = l.getVisibleRows();
|
|
14137
14145
|
if (um(a, [n])) {
|
|
14138
|
-
const d = r.get(rn), u = r.get(
|
|
14146
|
+
const d = r.get(rn), u = r.get(xe);
|
|
14139
14147
|
return await d.confirm({
|
|
14140
14148
|
id: "sheet.confirm.remove-row",
|
|
14141
14149
|
title: {
|
|
@@ -14161,7 +14169,7 @@ const Bn = {
|
|
|
14161
14169
|
if (!s) return !1;
|
|
14162
14170
|
const { worksheet: l } = s, a = l.getVisibleCols();
|
|
14163
14171
|
if (hm(a, [n])) {
|
|
14164
|
-
const d = r.get(rn), u = r.get(
|
|
14172
|
+
const d = r.get(rn), u = r.get(xe);
|
|
14165
14173
|
return await d.confirm({
|
|
14166
14174
|
id: "sheet.confirm.remove-col",
|
|
14167
14175
|
title: {
|
|
@@ -14178,7 +14186,7 @@ const Bn = {
|
|
|
14178
14186
|
id: "sheet.command.remove-sheet-confirm",
|
|
14179
14187
|
type: Q.COMMAND,
|
|
14180
14188
|
handler: async (r, e) => {
|
|
14181
|
-
const { subUnitId: t } = e, n = r.get(rn), i = r.get(D), o = r.get(
|
|
14189
|
+
const { subUnitId: t } = e, n = r.get(rn), i = r.get(D), o = r.get(xe);
|
|
14182
14190
|
return await n.confirm({
|
|
14183
14191
|
id: "sheet.confirm.remove-sheet",
|
|
14184
14192
|
title: {
|
|
@@ -14199,7 +14207,7 @@ const Bn = {
|
|
|
14199
14207
|
async handler(r, e) {
|
|
14200
14208
|
if (!e)
|
|
14201
14209
|
return !1;
|
|
14202
|
-
const t = r.get(D), n = r.get(qt), i = r.get(
|
|
14210
|
+
const t = r.get(D), n = r.get(qt), i = r.get(pt), s = r.get(V).getCurrentUnitForType(of.UNIVER_SHEET), l = s == null ? void 0 : s.getActiveSheet(), a = s.getUnitId();
|
|
14203
14211
|
if (!l)
|
|
14204
14212
|
return !1;
|
|
14205
14213
|
const c = l.getSheetId(), d = i.getRule(a, c);
|
|
@@ -14719,14 +14727,14 @@ const Xa = {
|
|
|
14719
14727
|
hidden: d = !1,
|
|
14720
14728
|
// 是否对用户隐藏,与excel兼容,暂时用不上。
|
|
14721
14729
|
id: u
|
|
14722
|
-
} = r, g = L(V).getCurrentUnitForType(x.UNIVER_SHEET), m = L(
|
|
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(kd), []);
|
|
14723
14731
|
if (g == null)
|
|
14724
14732
|
return;
|
|
14725
14733
|
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 = [{
|
|
14726
14734
|
label: m.t("definedName.scopeWorkbook"),
|
|
14727
14735
|
value: Rc
|
|
14728
14736
|
}], me = (ve) => !Gg(ve);
|
|
14729
|
-
|
|
14737
|
+
Ee(() => {
|
|
14730
14738
|
Y(!0), M(s), A(a), O(c);
|
|
14731
14739
|
let ve = l;
|
|
14732
14740
|
l.substring(0, 1) === Qr.EQUALS ? B("formula") : me(l) ? (B("formula"), ve = Qr.EQUALS + l) : B("range"), E(ve), F("");
|
|
@@ -14850,14 +14858,14 @@ const Xa = {
|
|
|
14850
14858
|
] })
|
|
14851
14859
|
] });
|
|
14852
14860
|
}, mf = () => {
|
|
14853
|
-
const r = L(D), t = L(V).getCurrentUnitForType(x.UNIVER_SHEET), n = L(
|
|
14861
|
+
const r = L(D), t = L(V).getCurrentUnitForType(x.UNIVER_SHEET), n = L(xe), i = L(Xo), o = L($);
|
|
14854
14862
|
if (t == null)
|
|
14855
14863
|
return;
|
|
14856
14864
|
const s = t.getUnitId(), l = () => {
|
|
14857
14865
|
const T = i.getDefinedNameMap(s);
|
|
14858
14866
|
return T ? Array.from(Object.values(T)) : [];
|
|
14859
14867
|
}, [a, c] = ne(!1), [d, u] = ne(l()), [h, g] = ne(null), [m, f] = ne();
|
|
14860
|
-
|
|
14868
|
+
Ee(() => {
|
|
14861
14869
|
const T = i.update$.subscribe(() => {
|
|
14862
14870
|
u(l());
|
|
14863
14871
|
});
|
|
@@ -15095,7 +15103,7 @@ function k0(r) {
|
|
|
15095
15103
|
const i = () => {
|
|
15096
15104
|
const s = t.getCurrentUnitForType(x.UNIVER_SHEET);
|
|
15097
15105
|
return s ? s.getActiveSheet().getConfig().showGridlines === Ke.TRUE : !1;
|
|
15098
|
-
}, o = new
|
|
15106
|
+
}, o = new bt();
|
|
15099
15107
|
return o.add(e.onCommandExecuted((s) => {
|
|
15100
15108
|
(s.id === Cv.id || s.id === rt.id) && n.next(i());
|
|
15101
15109
|
})), o.add(t.getCurrentTypeOfUnit$(x.UNIVER_SHEET).subscribe(() => {
|
|
@@ -15131,7 +15139,7 @@ function N0(r) {
|
|
|
15131
15139
|
suffix: "rightClick.insertRowsAboveSuffix"
|
|
15132
15140
|
}
|
|
15133
15141
|
},
|
|
15134
|
-
value$:
|
|
15142
|
+
value$: vt(e, i, () => new Xe((o) => {
|
|
15135
15143
|
function s() {
|
|
15136
15144
|
var d;
|
|
15137
15145
|
const a = (d = t.getCurrentLastSelection()) == null ? void 0 : d.range;
|
|
@@ -15139,7 +15147,7 @@ function N0(r) {
|
|
|
15139
15147
|
a && (c = (a == null ? void 0 : a.endRow) - (a == null ? void 0 : a.startRow) + 1), o.next(c);
|
|
15140
15148
|
}
|
|
15141
15149
|
const l = n.onCommandExecuted((a) => {
|
|
15142
|
-
if (a.id ===
|
|
15150
|
+
if (a.id === Pe.id)
|
|
15143
15151
|
return s();
|
|
15144
15152
|
});
|
|
15145
15153
|
return s(), l.dispose;
|
|
@@ -15163,7 +15171,7 @@ function V0(r) {
|
|
|
15163
15171
|
suffix: "rightClick.insertColsLeftSuffix"
|
|
15164
15172
|
}
|
|
15165
15173
|
},
|
|
15166
|
-
value$:
|
|
15174
|
+
value$: vt(e, i, () => new Xe((o) => {
|
|
15167
15175
|
function s() {
|
|
15168
15176
|
var d;
|
|
15169
15177
|
const a = (d = t.getCurrentLastSelection()) == null ? void 0 : d.range;
|
|
@@ -15171,7 +15179,7 @@ function V0(r) {
|
|
|
15171
15179
|
a && (c = (a == null ? void 0 : a.endColumn) - (a == null ? void 0 : a.startColumn) + 1), o.next(c);
|
|
15172
15180
|
}
|
|
15173
15181
|
const l = n.onCommandExecuted((a) => {
|
|
15174
|
-
if (a.id ===
|
|
15182
|
+
if (a.id === Pe.id)
|
|
15175
15183
|
return s();
|
|
15176
15184
|
});
|
|
15177
15185
|
return s(), l.dispose;
|
|
@@ -15215,7 +15223,7 @@ function W0(r) {
|
|
|
15215
15223
|
suffix: "rightClick.insertRowsAfterSuffix"
|
|
15216
15224
|
}
|
|
15217
15225
|
},
|
|
15218
|
-
value$:
|
|
15226
|
+
value$: vt(e, i, () => new Xe((o) => {
|
|
15219
15227
|
function s() {
|
|
15220
15228
|
var d;
|
|
15221
15229
|
const a = (d = t.getCurrentLastSelection()) == null ? void 0 : d.range;
|
|
@@ -15223,7 +15231,7 @@ function W0(r) {
|
|
|
15223
15231
|
a && (c = (a == null ? void 0 : a.endRow) - (a == null ? void 0 : a.startRow) + 1), o.next(c);
|
|
15224
15232
|
}
|
|
15225
15233
|
const l = n.onCommandExecuted((a) => {
|
|
15226
|
-
if (a.id ===
|
|
15234
|
+
if (a.id === Pe.id)
|
|
15227
15235
|
return s();
|
|
15228
15236
|
});
|
|
15229
15237
|
return s(), l.dispose;
|
|
@@ -15247,7 +15255,7 @@ function B0(r) {
|
|
|
15247
15255
|
suffix: "rightClick.insertRowsAboveSuffix"
|
|
15248
15256
|
}
|
|
15249
15257
|
},
|
|
15250
|
-
value$:
|
|
15258
|
+
value$: vt(e, i, () => new Xe((o) => {
|
|
15251
15259
|
function s() {
|
|
15252
15260
|
var d;
|
|
15253
15261
|
const a = (d = t.getCurrentLastSelection()) == null ? void 0 : d.range;
|
|
@@ -15255,7 +15263,7 @@ function B0(r) {
|
|
|
15255
15263
|
a && (c = (a == null ? void 0 : a.endRow) - (a == null ? void 0 : a.startRow) + 1), o.next(c);
|
|
15256
15264
|
}
|
|
15257
15265
|
const l = n.onCommandExecuted((a) => {
|
|
15258
|
-
if (a.id ===
|
|
15266
|
+
if (a.id === Pe.id)
|
|
15259
15267
|
return s();
|
|
15260
15268
|
});
|
|
15261
15269
|
return s(), l.dispose;
|
|
@@ -15279,7 +15287,7 @@ function F0(r) {
|
|
|
15279
15287
|
suffix: "rightClick.insertColsLeftSuffix"
|
|
15280
15288
|
}
|
|
15281
15289
|
},
|
|
15282
|
-
value$:
|
|
15290
|
+
value$: vt(e, i, () => new Xe((o) => {
|
|
15283
15291
|
function s() {
|
|
15284
15292
|
var d;
|
|
15285
15293
|
const a = (d = t.getCurrentLastSelection()) == null ? void 0 : d.range;
|
|
@@ -15287,7 +15295,7 @@ function F0(r) {
|
|
|
15287
15295
|
a && (c = (a == null ? void 0 : a.endColumn) - (a == null ? void 0 : a.startColumn) + 1), o.next(c);
|
|
15288
15296
|
}
|
|
15289
15297
|
const l = n.onCommandExecuted((a) => {
|
|
15290
|
-
if (a.id ===
|
|
15298
|
+
if (a.id === Pe.id)
|
|
15291
15299
|
return s();
|
|
15292
15300
|
});
|
|
15293
15301
|
return s(), l.dispose;
|
|
@@ -15311,7 +15319,7 @@ function U0(r) {
|
|
|
15311
15319
|
suffix: "rightClick.insertColsRightSuffix"
|
|
15312
15320
|
}
|
|
15313
15321
|
},
|
|
15314
|
-
value$:
|
|
15322
|
+
value$: vt(e, i, () => new Xe((o) => {
|
|
15315
15323
|
function s() {
|
|
15316
15324
|
var d;
|
|
15317
15325
|
const a = (d = t.getCurrentLastSelection()) == null ? void 0 : d.range;
|
|
@@ -15319,7 +15327,7 @@ function U0(r) {
|
|
|
15319
15327
|
a && (c = (a == null ? void 0 : a.endColumn) - (a == null ? void 0 : a.startColumn) + 1), o.next(c);
|
|
15320
15328
|
}
|
|
15321
15329
|
const l = n.onCommandExecuted((a) => {
|
|
15322
|
-
if (a.id ===
|
|
15330
|
+
if (a.id === Pe.id)
|
|
15323
15331
|
return s();
|
|
15324
15332
|
});
|
|
15325
15333
|
return s(), l.dispose;
|
|
@@ -15386,7 +15394,7 @@ function G0(r) {
|
|
|
15386
15394
|
ct((s) => {
|
|
15387
15395
|
if (!s)
|
|
15388
15396
|
return Re(!0);
|
|
15389
|
-
const l = r.get(et), a = r.get(
|
|
15397
|
+
const l = r.get(et), a = r.get(pt), c = r.get($);
|
|
15390
15398
|
return _t(
|
|
15391
15399
|
c.selectionMoveEnd$,
|
|
15392
15400
|
l.ruleChange$,
|
|
@@ -15411,7 +15419,7 @@ function q0(r) {
|
|
|
15411
15419
|
ct((l) => {
|
|
15412
15420
|
if (!l)
|
|
15413
15421
|
return Re(!0);
|
|
15414
|
-
const a = r.get(et), c = r.get(
|
|
15422
|
+
const a = r.get(et), c = r.get(pt), d = r.get(ot), u = r.get($);
|
|
15415
15423
|
return _t(
|
|
15416
15424
|
u.selectionMoveEnd$,
|
|
15417
15425
|
a.ruleChange$,
|
|
@@ -15452,7 +15460,7 @@ function Q0(r) {
|
|
|
15452
15460
|
var m;
|
|
15453
15461
|
if (!l)
|
|
15454
15462
|
return Re(!0);
|
|
15455
|
-
const a = o.getUnitId(), c = r.get($), d = r.get(et), u = r.get(
|
|
15463
|
+
const a = o.getUnitId(), c = r.get($), d = r.get(et), u = r.get(pt), h = (m = t.composePermission$([new J(a).id]).pipe(Be((f) => f.every((p) => p.value)))) != null ? m : Re(!1), g = _t(
|
|
15456
15464
|
d.ruleChange$,
|
|
15457
15465
|
u.ruleChange$
|
|
15458
15466
|
).pipe(
|
|
@@ -15472,14 +15480,14 @@ function Q0(r) {
|
|
|
15472
15480
|
}
|
|
15473
15481
|
function Sf(r) {
|
|
15474
15482
|
var c;
|
|
15475
|
-
const e = r.get(V), t = r.get(ot), n = e.getCurrentTypeOfUnit$(x.UNIVER_SHEET), i = r.get(Wt), o = r.has(it) ? r.get(it) : null, l = r.get(
|
|
15483
|
+
const e = r.get(V), t = r.get(ot), n = e.getCurrentTypeOfUnit$(x.UNIVER_SHEET), i = r.get(Wt), o = r.has(it) ? r.get(it) : null, l = r.get(He).subscribeContextValue$(At), a = (c = o == null ? void 0 : o.visible$) != null ? c : Re(null);
|
|
15476
15484
|
return dt([n, i.currentUser$, a, l]).pipe(
|
|
15477
15485
|
ct(([d, u, h, g]) => !d || h != null && h.visible && h.unitId === d.getUnitId() || g ? Re(!0) : d.activeSheet$.pipe(
|
|
15478
15486
|
ct((m) => {
|
|
15479
15487
|
var M;
|
|
15480
15488
|
if (!m)
|
|
15481
15489
|
return Re(!0);
|
|
15482
|
-
const p = r.get(
|
|
15490
|
+
const p = r.get(He).subscribeContextValue$(El).pipe(Gt(!1)), S = d.getUnitId(), v = m.getSheetId(), C = r.get(et), w = r.get(pt), R = r.get($), I = (M = t.composePermission$([new zl(S).id]).pipe(Be((P) => P.every((E) => E.value)))) != null ? M : Re(!1), y = _t(
|
|
15483
15491
|
C.ruleChange$,
|
|
15484
15492
|
w.ruleChange$
|
|
15485
15493
|
).pipe(
|
|
@@ -15511,7 +15519,7 @@ function K0(r) {
|
|
|
15511
15519
|
var m;
|
|
15512
15520
|
if (!l)
|
|
15513
15521
|
return Re(!0);
|
|
15514
|
-
const a = o.getUnitId(), c = l.getSheetId(), d = r.get(et), u = r.get(
|
|
15522
|
+
const a = o.getUnitId(), c = l.getSheetId(), d = r.get(et), u = r.get(pt), h = (m = t.composePermission$([new zl(a).id]).pipe(Be((f) => f.every((p) => p.value)))) != null ? m : Re(!1), g = _t(
|
|
15515
15523
|
d.ruleChange$,
|
|
15516
15524
|
u.ruleChange$
|
|
15517
15525
|
).pipe(
|
|
@@ -15536,7 +15544,7 @@ function J0(r) {
|
|
|
15536
15544
|
ct((l) => {
|
|
15537
15545
|
if (!l)
|
|
15538
15546
|
return Re(!0);
|
|
15539
|
-
const a = o.getUnitId(), c = l.getSheetId(), d = r.get(
|
|
15547
|
+
const a = o.getUnitId(), c = l.getSheetId(), d = r.get(pt);
|
|
15540
15548
|
return d.ruleChange$.pipe(Gt(null)).pipe(
|
|
15541
15549
|
Be(() => {
|
|
15542
15550
|
var h;
|
|
@@ -15555,7 +15563,7 @@ function $0(r) {
|
|
|
15555
15563
|
var m;
|
|
15556
15564
|
if (!l)
|
|
15557
15565
|
return Re(!0);
|
|
15558
|
-
const a = o.getUnitId(), c = r.get(et), d = r.get(
|
|
15566
|
+
const a = o.getUnitId(), c = r.get(et), d = r.get(pt), u = (m = t.composePermission$([new zl(a).id, new lg(a).id]).pipe(Be((f) => f.every((p) => p.value)))) != null ? m : Re(!1), h = d.ruleChange$.pipe(Gt(null)), g = c.ruleChange$.pipe(Gt(null));
|
|
15559
15567
|
return dt([u, h, g]).pipe(
|
|
15560
15568
|
Be(([f, p, S]) => {
|
|
15561
15569
|
if (!f)
|
|
@@ -15575,7 +15583,7 @@ function eR(r) {
|
|
|
15575
15583
|
ct((l) => {
|
|
15576
15584
|
if (!l)
|
|
15577
15585
|
return Re(!0);
|
|
15578
|
-
const a = o.getUnitId(), c = l.getSheetId(), d = r.get($), u = r.get(et), h = r.get(
|
|
15586
|
+
const a = o.getUnitId(), c = l.getSheetId(), d = r.get($), u = r.get(et), h = r.get(pt), g = _t(
|
|
15579
15587
|
u.ruleChange$,
|
|
15580
15588
|
h.ruleChange$,
|
|
15581
15589
|
d.selectionMoveEnd$
|
|
@@ -15610,7 +15618,7 @@ function eR(r) {
|
|
|
15610
15618
|
}
|
|
15611
15619
|
function vf(r) {
|
|
15612
15620
|
var c;
|
|
15613
|
-
const e = r.get(V), t = r.get(ot), n = e.getCurrentTypeOfUnit$(x.UNIVER_SHEET), i = r.get(Wt), o = r.has(it) ? r.get(it) : null, l = r.get(
|
|
15621
|
+
const e = r.get(V), t = r.get(ot), n = e.getCurrentTypeOfUnit$(x.UNIVER_SHEET), i = r.get(Wt), o = r.has(it) ? r.get(it) : null, l = r.get(He).subscribeContextValue$(At), a = (c = o == null ? void 0 : o.visible$) != null ? c : Re(null);
|
|
15614
15622
|
return dt([n, i.currentUser$, a, l]).pipe(
|
|
15615
15623
|
ct(([d, u, h, g]) => !d || h != null && h.visible && h.unitId === d.getUnitId() || g ? Re(!0) : d.activeSheet$.pipe(
|
|
15616
15624
|
ct((m) => {
|
|
@@ -16355,12 +16363,12 @@ const hR = {
|
|
|
16355
16363
|
}, Cf = {
|
|
16356
16364
|
id: ug.id,
|
|
16357
16365
|
// when focusing on any other input tag do not trigger this shortcut
|
|
16358
|
-
preconditions: (r) =>
|
|
16366
|
+
preconditions: (r) => Ne(r),
|
|
16359
16367
|
binding: Z.Digit9 | Te.CTRL_COMMAND
|
|
16360
16368
|
}, bf = {
|
|
16361
16369
|
id: hg.id,
|
|
16362
16370
|
// when focusing on any other input tag do not trigger this shortcut
|
|
16363
|
-
preconditions: (r) =>
|
|
16371
|
+
preconditions: (r) => Ne(r),
|
|
16364
16372
|
binding: Z.Digit0 | Te.CTRL_COMMAND | Te.SHIFT
|
|
16365
16373
|
}, _f = {
|
|
16366
16374
|
id: Bt.id,
|
|
@@ -16368,7 +16376,7 @@ const hR = {
|
|
|
16368
16376
|
group: "3_sheet-view",
|
|
16369
16377
|
binding: Z.ARROW_DOWN,
|
|
16370
16378
|
priority: 100,
|
|
16371
|
-
preconditions:
|
|
16379
|
+
preconditions: Ne,
|
|
16372
16380
|
staticParameters: {
|
|
16373
16381
|
direction: W.DOWN
|
|
16374
16382
|
}
|
|
@@ -16378,7 +16386,7 @@ const hR = {
|
|
|
16378
16386
|
group: "3_sheet-view",
|
|
16379
16387
|
binding: Z.ARROW_UP,
|
|
16380
16388
|
priority: 100,
|
|
16381
|
-
preconditions:
|
|
16389
|
+
preconditions: Ne,
|
|
16382
16390
|
staticParameters: {
|
|
16383
16391
|
direction: W.UP
|
|
16384
16392
|
}
|
|
@@ -16408,7 +16416,7 @@ const hR = {
|
|
|
16408
16416
|
group: "3_sheet-view",
|
|
16409
16417
|
binding: Z.TAB,
|
|
16410
16418
|
priority: 100,
|
|
16411
|
-
preconditions:
|
|
16419
|
+
preconditions: Ne,
|
|
16412
16420
|
staticParameters: {
|
|
16413
16421
|
direction: W.RIGHT,
|
|
16414
16422
|
keycode: Z.TAB
|
|
@@ -16419,7 +16427,7 @@ const hR = {
|
|
|
16419
16427
|
group: "3_sheet-view",
|
|
16420
16428
|
binding: Z.TAB | Te.SHIFT,
|
|
16421
16429
|
priority: 100,
|
|
16422
|
-
preconditions:
|
|
16430
|
+
preconditions: Ne,
|
|
16423
16431
|
staticParameters: {
|
|
16424
16432
|
direction: W.LEFT,
|
|
16425
16433
|
keycode: Z.TAB
|
|
@@ -16430,7 +16438,7 @@ const hR = {
|
|
|
16430
16438
|
group: "3_sheet-view",
|
|
16431
16439
|
binding: Z.ENTER,
|
|
16432
16440
|
priority: 100,
|
|
16433
|
-
preconditions:
|
|
16441
|
+
preconditions: Ne,
|
|
16434
16442
|
staticParameters: {
|
|
16435
16443
|
direction: W.DOWN,
|
|
16436
16444
|
keycode: Z.ENTER
|
|
@@ -16441,7 +16449,7 @@ const hR = {
|
|
|
16441
16449
|
group: "3_sheet-view",
|
|
16442
16450
|
binding: Z.ENTER | Te.SHIFT,
|
|
16443
16451
|
priority: 100,
|
|
16444
|
-
preconditions:
|
|
16452
|
+
preconditions: Ne,
|
|
16445
16453
|
staticParameters: {
|
|
16446
16454
|
direction: W.UP,
|
|
16447
16455
|
keycode: Z.ENTER
|
|
@@ -16451,7 +16459,7 @@ const hR = {
|
|
|
16451
16459
|
description: "shortcut.sheet.select-below-value-cell",
|
|
16452
16460
|
group: "3_sheet-view",
|
|
16453
16461
|
binding: Z.ARROW_DOWN | Te.CTRL_COMMAND,
|
|
16454
|
-
preconditions:
|
|
16462
|
+
preconditions: Ne,
|
|
16455
16463
|
staticParameters: {
|
|
16456
16464
|
direction: W.DOWN,
|
|
16457
16465
|
jumpOver: jn.moveGap
|
|
@@ -16461,7 +16469,7 @@ const hR = {
|
|
|
16461
16469
|
description: "shortcut.sheet.select-up-value-cell",
|
|
16462
16470
|
group: "3_sheet-view",
|
|
16463
16471
|
binding: Z.ARROW_UP | Te.CTRL_COMMAND,
|
|
16464
|
-
preconditions:
|
|
16472
|
+
preconditions: Ne,
|
|
16465
16473
|
staticParameters: {
|
|
16466
16474
|
direction: W.UP,
|
|
16467
16475
|
jumpOver: jn.moveGap
|
|
@@ -16471,7 +16479,7 @@ const hR = {
|
|
|
16471
16479
|
description: "shortcut.sheet.select-left-value-cell",
|
|
16472
16480
|
group: "3_sheet-view",
|
|
16473
16481
|
binding: Z.ARROW_LEFT | Te.CTRL_COMMAND,
|
|
16474
|
-
preconditions:
|
|
16482
|
+
preconditions: Ne,
|
|
16475
16483
|
staticParameters: {
|
|
16476
16484
|
direction: W.LEFT,
|
|
16477
16485
|
jumpOver: jn.moveGap
|
|
@@ -16481,7 +16489,7 @@ const hR = {
|
|
|
16481
16489
|
description: "shortcut.sheet.select-right-value-cell",
|
|
16482
16490
|
group: "3_sheet-view",
|
|
16483
16491
|
binding: Z.ARROW_RIGHT | Te.CTRL_COMMAND,
|
|
16484
|
-
preconditions:
|
|
16492
|
+
preconditions: Ne,
|
|
16485
16493
|
staticParameters: {
|
|
16486
16494
|
direction: W.RIGHT,
|
|
16487
16495
|
jumpOver: jn.moveGap
|
|
@@ -16491,7 +16499,7 @@ const hR = {
|
|
|
16491
16499
|
description: "shortcut.sheet.expand-selection-down",
|
|
16492
16500
|
group: "3_sheet-view",
|
|
16493
16501
|
binding: Z.ARROW_DOWN | Te.SHIFT,
|
|
16494
|
-
preconditions:
|
|
16502
|
+
preconditions: Ne,
|
|
16495
16503
|
staticParameters: {
|
|
16496
16504
|
direction: W.DOWN
|
|
16497
16505
|
}
|
|
@@ -16500,7 +16508,7 @@ const hR = {
|
|
|
16500
16508
|
description: "shortcut.sheet.expand-selection-up",
|
|
16501
16509
|
group: "3_sheet-view",
|
|
16502
16510
|
binding: Z.ARROW_UP | Te.SHIFT,
|
|
16503
|
-
preconditions:
|
|
16511
|
+
preconditions: Ne,
|
|
16504
16512
|
staticParameters: {
|
|
16505
16513
|
direction: W.UP
|
|
16506
16514
|
}
|
|
@@ -16509,7 +16517,7 @@ const hR = {
|
|
|
16509
16517
|
description: "shortcut.sheet.expand-selection-left",
|
|
16510
16518
|
group: "3_sheet-view",
|
|
16511
16519
|
binding: Z.ARROW_LEFT | Te.SHIFT,
|
|
16512
|
-
preconditions:
|
|
16520
|
+
preconditions: Ne,
|
|
16513
16521
|
staticParameters: {
|
|
16514
16522
|
direction: W.LEFT
|
|
16515
16523
|
}
|
|
@@ -16518,7 +16526,7 @@ const hR = {
|
|
|
16518
16526
|
description: "shortcut.sheet.expand-selection-right",
|
|
16519
16527
|
group: "3_sheet-view",
|
|
16520
16528
|
binding: Z.ARROW_RIGHT | Te.SHIFT,
|
|
16521
|
-
preconditions:
|
|
16529
|
+
preconditions: Ne,
|
|
16522
16530
|
staticParameters: {
|
|
16523
16531
|
direction: W.RIGHT
|
|
16524
16532
|
}
|
|
@@ -16527,7 +16535,7 @@ const hR = {
|
|
|
16527
16535
|
description: "shortcut.sheet.expand-selection-to-below-gap",
|
|
16528
16536
|
group: "3_sheet-view",
|
|
16529
16537
|
binding: Z.ARROW_DOWN | Te.SHIFT | Te.CTRL_COMMAND,
|
|
16530
|
-
preconditions:
|
|
16538
|
+
preconditions: Ne,
|
|
16531
16539
|
staticParameters: {
|
|
16532
16540
|
direction: W.DOWN,
|
|
16533
16541
|
jumpOver: jn.moveGap
|
|
@@ -16537,7 +16545,7 @@ const hR = {
|
|
|
16537
16545
|
description: "shortcut.sheet.expand-selection-to-up-gap",
|
|
16538
16546
|
group: "3_sheet-view",
|
|
16539
16547
|
binding: Z.ARROW_UP | Te.SHIFT | Te.CTRL_COMMAND,
|
|
16540
|
-
preconditions:
|
|
16548
|
+
preconditions: Ne,
|
|
16541
16549
|
staticParameters: {
|
|
16542
16550
|
direction: W.UP,
|
|
16543
16551
|
jumpOver: jn.moveGap
|
|
@@ -16547,7 +16555,7 @@ const hR = {
|
|
|
16547
16555
|
description: "shortcut.sheet.expand-selection-to-left-gap",
|
|
16548
16556
|
group: "3_sheet-view",
|
|
16549
16557
|
binding: Z.ARROW_LEFT | Te.SHIFT | Te.CTRL_COMMAND,
|
|
16550
|
-
preconditions:
|
|
16558
|
+
preconditions: Ne,
|
|
16551
16559
|
staticParameters: {
|
|
16552
16560
|
direction: W.LEFT,
|
|
16553
16561
|
jumpOver: jn.moveGap
|
|
@@ -16557,7 +16565,7 @@ const hR = {
|
|
|
16557
16565
|
description: "shortcut.sheet.expand-selection-to-right-gap",
|
|
16558
16566
|
group: "3_sheet-view",
|
|
16559
16567
|
binding: Z.ARROW_RIGHT | Te.SHIFT | Te.CTRL_COMMAND,
|
|
16560
|
-
preconditions:
|
|
16568
|
+
preconditions: Ne,
|
|
16561
16569
|
staticParameters: {
|
|
16562
16570
|
direction: W.RIGHT,
|
|
16563
16571
|
jumpOver: jn.moveGap
|
|
@@ -16567,7 +16575,7 @@ const hR = {
|
|
|
16567
16575
|
description: "shortcut.sheet.select-all",
|
|
16568
16576
|
group: "3_sheet-view",
|
|
16569
16577
|
binding: Z.A | Te.CTRL_COMMAND,
|
|
16570
|
-
preconditions:
|
|
16578
|
+
preconditions: Ne,
|
|
16571
16579
|
staticParameters: {
|
|
16572
16580
|
expandToGapFirst: !0,
|
|
16573
16581
|
loop: !0
|
|
@@ -16576,43 +16584,43 @@ const hR = {
|
|
|
16576
16584
|
id: Oi.id,
|
|
16577
16585
|
description: "shortcut.sheet.set-bold",
|
|
16578
16586
|
group: "4_sheet-edit",
|
|
16579
|
-
preconditions: (r) =>
|
|
16587
|
+
preconditions: (r) => Ne(r),
|
|
16580
16588
|
binding: Z.B | Te.CTRL_COMMAND
|
|
16581
16589
|
}, Xf = {
|
|
16582
16590
|
id: xi.id,
|
|
16583
16591
|
description: "shortcut.sheet.set-italic",
|
|
16584
16592
|
group: "4_sheet-edit",
|
|
16585
|
-
preconditions: (r) =>
|
|
16593
|
+
preconditions: (r) => Ne(r),
|
|
16586
16594
|
binding: Z.I | Te.CTRL_COMMAND
|
|
16587
16595
|
}, zf = {
|
|
16588
16596
|
id: Ai.id,
|
|
16589
16597
|
description: "shortcut.sheet.set-underline",
|
|
16590
16598
|
group: "4_sheet-edit",
|
|
16591
|
-
preconditions: (r) =>
|
|
16599
|
+
preconditions: (r) => Ne(r),
|
|
16592
16600
|
binding: Z.U | Te.CTRL_COMMAND
|
|
16593
16601
|
}, jf = {
|
|
16594
16602
|
id: ki.id,
|
|
16595
16603
|
description: "shortcut.sheet.set-strike-through",
|
|
16596
16604
|
group: "4_sheet-edit",
|
|
16597
|
-
preconditions: (r) =>
|
|
16605
|
+
preconditions: (r) => Ne(r),
|
|
16598
16606
|
binding: Z.X | Te.SHIFT | Te.CTRL_COMMAND
|
|
16599
16607
|
}, Yf = {
|
|
16600
16608
|
id: oi.id,
|
|
16601
16609
|
// when focusing on any other input tag do not trigger this shortcut
|
|
16602
|
-
preconditions: (r) =>
|
|
16610
|
+
preconditions: (r) => Ne(r),
|
|
16603
16611
|
binding: Z.DELETE,
|
|
16604
16612
|
mac: Z.BACKSPACE
|
|
16605
16613
|
}, gR = {
|
|
16606
16614
|
id: oi.id,
|
|
16607
16615
|
// when focusing on any other input tag do not trigger this shortcut
|
|
16608
|
-
preconditions: (r) =>
|
|
16616
|
+
preconditions: (r) => Ne(r),
|
|
16609
16617
|
mac: Z.DELETE
|
|
16610
16618
|
}, Zf = {
|
|
16611
16619
|
id: jo.id,
|
|
16612
16620
|
description: "shortcut.sheet.zoom-in",
|
|
16613
16621
|
binding: Z.EQUAL | Te.CTRL_COMMAND,
|
|
16614
16622
|
group: "3_sheet-view",
|
|
16615
|
-
preconditions:
|
|
16623
|
+
preconditions: Ne,
|
|
16616
16624
|
priority: 1,
|
|
16617
16625
|
staticParameters: {
|
|
16618
16626
|
delta: 0.2
|
|
@@ -16625,7 +16633,7 @@ const hR = {
|
|
|
16625
16633
|
description: "shortcut.sheet.zoom-out",
|
|
16626
16634
|
binding: Z.MINUS | Te.CTRL_COMMAND,
|
|
16627
16635
|
group: "3_sheet-view",
|
|
16628
|
-
preconditions:
|
|
16636
|
+
preconditions: Ne,
|
|
16629
16637
|
priority: 1,
|
|
16630
16638
|
staticParameters: {
|
|
16631
16639
|
delta: -0.2
|
|
@@ -16637,7 +16645,7 @@ const hR = {
|
|
|
16637
16645
|
id: jo.id,
|
|
16638
16646
|
description: "shortcut.sheet.reset-zoom",
|
|
16639
16647
|
binding: Z.Digit0 | Te.CTRL_COMMAND,
|
|
16640
|
-
preconditions:
|
|
16648
|
+
preconditions: Ne,
|
|
16641
16649
|
group: "3_sheet-view",
|
|
16642
16650
|
priority: 1,
|
|
16643
16651
|
staticParameters: {
|
|
@@ -16825,7 +16833,7 @@ il = fR([
|
|
|
16825
16833
|
], il);
|
|
16826
16834
|
const pR = (r = []) => {
|
|
16827
16835
|
const e = L(Ti);
|
|
16828
|
-
|
|
16836
|
+
Ee(() => {
|
|
16829
16837
|
const t = r.map((n) => e.addShape({
|
|
16830
16838
|
range: n,
|
|
16831
16839
|
style: {
|
|
@@ -16876,7 +16884,7 @@ let yo = class extends de {
|
|
|
16876
16884
|
return this._adjustActiveSheetOnInsertSheet(n);
|
|
16877
16885
|
if (n.id === lr.id && !n.params.hidden)
|
|
16878
16886
|
return this._adjustActiveSheetOnShowSheet(n);
|
|
16879
|
-
if (n.id ===
|
|
16887
|
+
if (n.id === Pe.id)
|
|
16880
16888
|
return this._adjustActiveSheetOnSelection(n);
|
|
16881
16889
|
}));
|
|
16882
16890
|
}
|
|
@@ -17020,7 +17028,7 @@ let Mo = class extends de {
|
|
|
17020
17028
|
bottom: 1 / 0
|
|
17021
17029
|
};
|
|
17022
17030
|
return t < h && n < g ? [] : t < h ? [H] : n < g ? [H] : [H, F, X];
|
|
17023
|
-
}, a = l(), c = new
|
|
17031
|
+
}, a = l(), c = new Me(a), d = new bt();
|
|
17024
17032
|
return d.add(this._commandService.onCommandExecuted((u) => {
|
|
17025
17033
|
if (u.id === Rr.id) {
|
|
17026
17034
|
const h = l();
|
|
@@ -17042,7 +17050,7 @@ let Mo = class extends de {
|
|
|
17042
17050
|
top: d.top * m + h.top,
|
|
17043
17051
|
bottom: d.bottom * m + h.top
|
|
17044
17052
|
};
|
|
17045
|
-
}, s = o(), l = new
|
|
17053
|
+
}, s = o(), l = new Me(s), a = new bt();
|
|
17046
17054
|
return a.add(this._commandService.onCommandExecuted((c) => {
|
|
17047
17055
|
(c.id === hn.id || c.id === tn.id) && l.next(o());
|
|
17048
17056
|
})), {
|
|
@@ -17147,7 +17155,7 @@ let Mo = class extends de {
|
|
|
17147
17155
|
return null;
|
|
17148
17156
|
if (this._isSelectionMoving && !t.showOnSelectionMoving)
|
|
17149
17157
|
return;
|
|
17150
|
-
const u = new
|
|
17158
|
+
const u = new Me(e), h = this._globalPopupManagerService.addPopup({
|
|
17151
17159
|
...t,
|
|
17152
17160
|
unitId: l,
|
|
17153
17161
|
subUnitId: a,
|
|
@@ -17204,7 +17212,7 @@ let Mo = class extends de {
|
|
|
17204
17212
|
anchorRect$: p,
|
|
17205
17213
|
canvasElement: u.engine.getCanvasElement(),
|
|
17206
17214
|
hiddenRects$: C
|
|
17207
|
-
}), I = new
|
|
17215
|
+
}), I = new bt();
|
|
17208
17216
|
I.add(S), I.add(We(() => {
|
|
17209
17217
|
this._globalPopupManagerService.removePopup(R), p.complete();
|
|
17210
17218
|
})), I.add(w);
|
|
@@ -17259,7 +17267,7 @@ let Mo = class extends de {
|
|
|
17259
17267
|
anchorRect$: p,
|
|
17260
17268
|
canvasElement: u.engine.getCanvasElement(),
|
|
17261
17269
|
hiddenRects$: R
|
|
17262
|
-
}), M = new
|
|
17270
|
+
}), M = new bt();
|
|
17263
17271
|
M.add(S), M.add(We(() => {
|
|
17264
17272
|
this._globalPopupManagerService.removePopup(y), C.complete(), w.complete();
|
|
17265
17273
|
})), M.add(I);
|
|
@@ -17284,7 +17292,7 @@ let Mo = class extends de {
|
|
|
17284
17292
|
*/
|
|
17285
17293
|
_createCellPositionObserver(e, t, n, i, o) {
|
|
17286
17294
|
let s = e, l = t;
|
|
17287
|
-
const a = this._calcCellPositionByCell(s, l, n, i, o), c = new
|
|
17295
|
+
const a = this._calcCellPositionByCell(s, l, n, i, o), c = new Me(a), d = () => c.next(this._calcCellPositionByCell(s, l, n, i, o)), u = new bt();
|
|
17288
17296
|
return u.add(n.engine.clientRect$.subscribe(() => d())), u.add(this._commandService.onCommandExecuted((g) => {
|
|
17289
17297
|
if (g.id === yr.id && g.params.rowsAutoHeightInfo.findIndex((f) => f.row === s) > -1) {
|
|
17290
17298
|
d();
|
|
@@ -17324,10 +17332,10 @@ let Mo = class extends de {
|
|
|
17324
17332
|
*/
|
|
17325
17333
|
_createRangePositionObserver(e, t, n, i) {
|
|
17326
17334
|
let { startRow: o, startColumn: s } = e;
|
|
17327
|
-
const l = this._calcCellPositionByCell(o, s, t, n, i), a = new
|
|
17335
|
+
const l = this._calcCellPositionByCell(o, s, t, n, i), a = new Me(l), c = this._calcCellPositionByCell(e.endRow, e.endColumn, t, n, i), d = new Me(c), u = () => {
|
|
17328
17336
|
const p = this._calcCellPositionByCell(o, s, t, n, i), S = this._calcCellPositionByCell(e.endRow, e.endColumn, t, n, i);
|
|
17329
17337
|
a.next(p), d.next(S);
|
|
17330
|
-
}, h = new
|
|
17338
|
+
}, h = new bt();
|
|
17331
17339
|
h.add(t.engine.clientRect$.subscribe(() => u())), h.add(this._commandService.onCommandExecuted((p) => {
|
|
17332
17340
|
if (p.id === yr.id && p.params.rowsAutoHeightInfo.findIndex((v) => v.row === o) > -1) {
|
|
17333
17341
|
u();
|
|
@@ -17383,7 +17391,7 @@ var _R = Object.getOwnPropertyDescriptor, wR = (r, e, t, n) => {
|
|
|
17383
17391
|
let Po = class extends de {
|
|
17384
17392
|
constructor(e, t) {
|
|
17385
17393
|
super();
|
|
17386
|
-
_(this, "_currentAlert$", new
|
|
17394
|
+
_(this, "_currentAlert$", new Ae());
|
|
17387
17395
|
_(this, "_currentAlert", /* @__PURE__ */ new Map());
|
|
17388
17396
|
_(this, "currentAlert$", this._currentAlert$.asObservable());
|
|
17389
17397
|
this._renderManagerService = e, this._canvasPopManagerService = t, this.disposeWithMe(() => {
|
|
@@ -17512,7 +17520,7 @@ const HR = "univer-sheet-paste-options-wrapper", NR = "univer-sheet-paste-option
|
|
|
17512
17520
|
positionY: E
|
|
17513
17521
|
};
|
|
17514
17522
|
}, UR = () => {
|
|
17515
|
-
const r = L(on), e =
|
|
17523
|
+
const r = L(on), e = gt(r.showMenu$, !1), t = gt(r.pasteOptionsCache$, null), n = L(xe), i = L(D), [o, s] = ne(!1), [l, a] = ne(!1), c = t == null ? void 0 : t.target.pastedRange, d = FR(c);
|
|
17516
17524
|
if (!d || !e || d.positionX < 50 || d.positionY < 30) return null;
|
|
17517
17525
|
const u = o || l, h = (g) => {
|
|
17518
17526
|
a(!1), i.executeCommand(jm.id, { type: g });
|
|
@@ -17599,7 +17607,7 @@ const HR = "univer-sheet-paste-options-wrapper", NR = "univer-sheet-paste-option
|
|
|
17599
17607
|
Bl.id,
|
|
17600
17608
|
an.id,
|
|
17601
17609
|
so.id,
|
|
17602
|
-
|
|
17610
|
+
Pe.id,
|
|
17603
17611
|
Qp
|
|
17604
17612
|
];
|
|
17605
17613
|
function zR(r, e, t, n, i) {
|
|
@@ -17730,7 +17738,7 @@ function jR(r, e, t) {
|
|
|
17730
17738
|
...P.redos,
|
|
17731
17739
|
...F,
|
|
17732
17740
|
{
|
|
17733
|
-
id:
|
|
17741
|
+
id: Pe.id,
|
|
17734
17742
|
params: {
|
|
17735
17743
|
unitId: l,
|
|
17736
17744
|
subUnitId: c,
|
|
@@ -17743,7 +17751,7 @@ function jR(r, e, t) {
|
|
|
17743
17751
|
...P.undos,
|
|
17744
17752
|
...X,
|
|
17745
17753
|
{
|
|
17746
|
-
id:
|
|
17754
|
+
id: Pe.id,
|
|
17747
17755
|
params: {
|
|
17748
17756
|
unitId: l,
|
|
17749
17757
|
subUnitId: s,
|
|
@@ -18006,7 +18014,7 @@ const QR = [
|
|
|
18006
18014
|
let Ri = class extends Un {
|
|
18007
18015
|
constructor(e, t, n, i, o, s, l, a, c, d) {
|
|
18008
18016
|
super();
|
|
18009
|
-
_(this, "_refreshOptionalPaste$", new
|
|
18017
|
+
_(this, "_refreshOptionalPaste$", new Ae());
|
|
18010
18018
|
_(this, "refreshOptionalPaste$", this._refreshOptionalPaste$.asObservable());
|
|
18011
18019
|
this._injector = e, this._instanceService = t, this._renderManagerService = n, this._commandService = i, this._contextService = o, this._configService = s, this._sheetClipboardService = l, this._messageService = a, this._localService = c, this._uiPartsService = d, this._init(), this._initCommandListener(), this._initUIComponents(), this._pasteWithDoc();
|
|
18012
18020
|
}
|
|
@@ -18018,17 +18026,17 @@ let Ri = class extends Un {
|
|
|
18018
18026
|
const e = (i) => {
|
|
18019
18027
|
i.onPaste$.pipe(gi(this.dispose$)).subscribe((o) => {
|
|
18020
18028
|
var d, u;
|
|
18021
|
-
if (!
|
|
18029
|
+
if (!Ne(this._contextService))
|
|
18022
18030
|
return;
|
|
18023
18031
|
o.event.preventDefault();
|
|
18024
18032
|
const s = o.event, l = (d = s.clipboardData) == null ? void 0 : d.getData("text/html"), a = (u = s.clipboardData) == null ? void 0 : u.getData("text/plain"), c = this._resolveClipboardFiles(s.clipboardData);
|
|
18025
18033
|
this._commandService.executeCommand(Bc.id, { htmlContent: l, textContent: a, files: c });
|
|
18026
18034
|
});
|
|
18027
18035
|
};
|
|
18028
|
-
let t = (n = this._renderManagerService.getRenderById(
|
|
18036
|
+
let t = (n = this._renderManagerService.getRenderById(De)) == null ? void 0 : n.with(_r);
|
|
18029
18037
|
t && e(t), this._renderManagerService.created$.subscribe((i) => {
|
|
18030
18038
|
var o;
|
|
18031
|
-
i.unitId ===
|
|
18039
|
+
i.unitId === De && (t = (o = this._renderManagerService.getRenderById(De)) == null ? void 0 : o.with(_r), t && e(t));
|
|
18032
18040
|
});
|
|
18033
18041
|
}
|
|
18034
18042
|
_resolveClipboardFiles(e) {
|
|
@@ -18512,11 +18520,11 @@ Ri = qR([
|
|
|
18512
18520
|
sn(1, V),
|
|
18513
18521
|
sn(2, be),
|
|
18514
18522
|
sn(3, D),
|
|
18515
|
-
sn(4,
|
|
18523
|
+
sn(4, He),
|
|
18516
18524
|
sn(5, Fn),
|
|
18517
18525
|
sn(6, on),
|
|
18518
18526
|
sn(7, eg),
|
|
18519
|
-
sn(8, N(
|
|
18527
|
+
sn(8, N(xe)),
|
|
18520
18528
|
sn(9, Nl)
|
|
18521
18529
|
], Ri);
|
|
18522
18530
|
var KR = Object.getOwnPropertyDescriptor, JR = (r, e, t, n) => {
|
|
@@ -18527,14 +18535,14 @@ var KR = Object.getOwnPropertyDescriptor, JR = (r, e, t, n) => {
|
|
|
18527
18535
|
let Eo = class extends de {
|
|
18528
18536
|
constructor(e, t) {
|
|
18529
18537
|
super();
|
|
18530
|
-
_(this, "_currentCell$", new
|
|
18538
|
+
_(this, "_currentCell$", new Ae());
|
|
18531
18539
|
_(this, "currentCell$", this._currentCell$.asObservable().pipe(un(
|
|
18532
18540
|
(e, t) => {
|
|
18533
18541
|
var n, i, o, s, l, a, c, d;
|
|
18534
18542
|
return ((n = e == null ? void 0 : e.location) == null ? void 0 : n.unitId) === ((i = t == null ? void 0 : t.location) == null ? void 0 : i.unitId) && ((o = e == null ? void 0 : e.location) == null ? void 0 : o.subUnitId) === ((s = t == null ? void 0 : t.location) == null ? void 0 : s.subUnitId) && ((l = e == null ? void 0 : e.location) == null ? void 0 : l.row) === ((a = t == null ? void 0 : t.location) == null ? void 0 : a.row) && ((c = e == null ? void 0 : e.location) == null ? void 0 : c.col) === ((d = t == null ? void 0 : t.location) == null ? void 0 : d.col);
|
|
18535
18543
|
}
|
|
18536
18544
|
)));
|
|
18537
|
-
_(this, "_endCell$", new
|
|
18545
|
+
_(this, "_endCell$", new Ae());
|
|
18538
18546
|
_(this, "endCell$", this._endCell$.asObservable());
|
|
18539
18547
|
this._univerInstanceService = e, this._renderManagerService = t, this._initCellDisposableListener();
|
|
18540
18548
|
}
|
|
@@ -18599,7 +18607,7 @@ let sl = class extends de {
|
|
|
18599
18607
|
super(), this._context = r, this._renderManagerService = e, this._dragManagerService = t, this._sheetSkeletonManagerService = n, this._initDragEvent();
|
|
18600
18608
|
}
|
|
18601
18609
|
_initDragEvent() {
|
|
18602
|
-
const r = new
|
|
18610
|
+
const r = new bt(), e = (t) => {
|
|
18603
18611
|
if (r.dispose(), !t)
|
|
18604
18612
|
return;
|
|
18605
18613
|
const { scene: n } = this._context, i = n.onDragOver$.subscribeEvent((s) => {
|
|
@@ -18816,23 +18824,23 @@ function Sr(r) {
|
|
|
18816
18824
|
let Ar = class extends de {
|
|
18817
18825
|
constructor(e, t) {
|
|
18818
18826
|
super();
|
|
18819
|
-
_(this, "_currentCell$", new
|
|
18820
|
-
_(this, "_currentRichText$", new
|
|
18821
|
-
_(this, "_currentClickedCell$", new
|
|
18822
|
-
_(this, "_currentDbClickedCell$", new
|
|
18823
|
-
_(this, "_currentCellWithEvent$", new
|
|
18824
|
-
_(this, "_currentPointerDownCell$", new
|
|
18825
|
-
_(this, "_currentPointerUpCell$", new
|
|
18826
|
-
_(this, "_currentHoveredRowHeader$", new
|
|
18827
|
-
_(this, "_currentHoveredColHeader$", new
|
|
18828
|
-
_(this, "_currentRowHeaderClick$", new
|
|
18829
|
-
_(this, "_currentColHeaderClick$", new
|
|
18830
|
-
_(this, "_currentRowHeaderDbClick$", new
|
|
18831
|
-
_(this, "_currentColHeaderDbClick$", new
|
|
18832
|
-
_(this, "_currentRowHeaderPointerDown$", new
|
|
18833
|
-
_(this, "_currentColHeaderPointerDown$", new
|
|
18834
|
-
_(this, "_currentRowHeaderPointerUp$", new
|
|
18835
|
-
_(this, "_currentColHeaderPointerUp$", new
|
|
18827
|
+
_(this, "_currentCell$", new Me(null));
|
|
18828
|
+
_(this, "_currentRichText$", new Me(null));
|
|
18829
|
+
_(this, "_currentClickedCell$", new Ae());
|
|
18830
|
+
_(this, "_currentDbClickedCell$", new Ae());
|
|
18831
|
+
_(this, "_currentCellWithEvent$", new Ae());
|
|
18832
|
+
_(this, "_currentPointerDownCell$", new Ae());
|
|
18833
|
+
_(this, "_currentPointerUpCell$", new Ae());
|
|
18834
|
+
_(this, "_currentHoveredRowHeader$", new Me(null));
|
|
18835
|
+
_(this, "_currentHoveredColHeader$", new Me(null));
|
|
18836
|
+
_(this, "_currentRowHeaderClick$", new Ae());
|
|
18837
|
+
_(this, "_currentColHeaderClick$", new Ae());
|
|
18838
|
+
_(this, "_currentRowHeaderDbClick$", new Ae());
|
|
18839
|
+
_(this, "_currentColHeaderDbClick$", new Ae());
|
|
18840
|
+
_(this, "_currentRowHeaderPointerDown$", new Ae());
|
|
18841
|
+
_(this, "_currentColHeaderPointerDown$", new Ae());
|
|
18842
|
+
_(this, "_currentRowHeaderPointerUp$", new Ae());
|
|
18843
|
+
_(this, "_currentColHeaderPointerUp$", new Ae());
|
|
18836
18844
|
// Notify when hovering over different cells
|
|
18837
18845
|
_(this, "currentCell$", this._currentCell$.asObservable().pipe(
|
|
18838
18846
|
un(
|
|
@@ -18956,7 +18964,7 @@ let Ar = class extends de {
|
|
|
18956
18964
|
const i = this._getCalcDeps(e);
|
|
18957
18965
|
if (!i)
|
|
18958
18966
|
return;
|
|
18959
|
-
const { currentRender: o, worksheet: s, skeletonParam: l } = i, { scaleY: a } = o.scene.getAncestorScale(), c = o.scene.getViewports().find((h) => h.isHit(new
|
|
18967
|
+
const { currentRender: o, worksheet: s, skeletonParam: l } = i, { scaleY: a } = o.scene.getAncestorScale(), c = o.scene.getViewports().find((h) => h.isHit(new ke(t, n)));
|
|
18960
18968
|
if (!c || c.viewportKey !== U.VIEW_ROW_TOP && c.viewportKey !== U.VIEW_ROW_BOTTOM)
|
|
18961
18969
|
return;
|
|
18962
18970
|
const d = {
|
|
@@ -18969,7 +18977,7 @@ let Ar = class extends de {
|
|
|
18969
18977
|
const i = this._getCalcDeps(e);
|
|
18970
18978
|
if (!i)
|
|
18971
18979
|
return;
|
|
18972
|
-
const { currentRender: o, worksheet: s, skeletonParam: l } = i, { scaleX: a } = o.scene.getAncestorScale(), c = o.scene.getViewports().find((h) => h.isHit(new
|
|
18980
|
+
const { currentRender: o, worksheet: s, skeletonParam: l } = i, { scaleX: a } = o.scene.getAncestorScale(), c = o.scene.getViewports().find((h) => h.isHit(new ke(t, n)));
|
|
18973
18981
|
if (!c || c.viewportKey !== U.VIEW_COLUMN_LEFT && c.viewportKey !== U.VIEW_COLUMN_RIGHT)
|
|
18974
18982
|
return;
|
|
18975
18983
|
const d = {
|
|
@@ -19147,7 +19155,7 @@ let ll = class extends de {
|
|
|
19147
19155
|
ll = aI([
|
|
19148
19156
|
ds(1, N(Ar)),
|
|
19149
19157
|
ds(2, N(Po)),
|
|
19150
|
-
ds(3, N(
|
|
19158
|
+
ds(3, N(xe)),
|
|
19151
19159
|
ds(4, LS)
|
|
19152
19160
|
], ll);
|
|
19153
19161
|
var cI = Object.getOwnPropertyDescriptor, dI = (r, e, t, n) => {
|
|
@@ -19210,7 +19218,7 @@ let cl = class extends de {
|
|
|
19210
19218
|
}
|
|
19211
19219
|
// eslint-disable-next-line max-lines-per-function
|
|
19212
19220
|
_initPointerEvent() {
|
|
19213
|
-
const e = new
|
|
19221
|
+
const e = new bt(), t = (n) => {
|
|
19214
19222
|
if (e.dispose(), !n)
|
|
19215
19223
|
return;
|
|
19216
19224
|
const { mainComponent: i, unitId: o, components: s } = this._context;
|
|
@@ -19322,14 +19330,14 @@ function bI(r) {
|
|
|
19322
19330
|
}
|
|
19323
19331
|
s.current.clear();
|
|
19324
19332
|
}, [e]);
|
|
19325
|
-
|
|
19333
|
+
Ee(() => a(), [a]);
|
|
19326
19334
|
const c = Vn((d) => {
|
|
19327
19335
|
l.executeCommand(rt.id, {
|
|
19328
19336
|
unitId: e.getUnitId(),
|
|
19329
19337
|
subUnitId: d
|
|
19330
19338
|
});
|
|
19331
19339
|
}, [l, e]);
|
|
19332
|
-
return
|
|
19340
|
+
return Ee(() => {
|
|
19333
19341
|
const d = l.onCommandExecuted((u) => {
|
|
19334
19342
|
switch (u.id) {
|
|
19335
19343
|
case lr.id:
|
|
@@ -19586,7 +19594,7 @@ var II = Object.getOwnPropertyDescriptor, yI = (r, e, t, n) => {
|
|
|
19586
19594
|
let To = class extends de {
|
|
19587
19595
|
constructor(e, t, n, i, o, s, l, a, c) {
|
|
19588
19596
|
super();
|
|
19589
|
-
_(this, "disposableCollection", new
|
|
19597
|
+
_(this, "disposableCollection", new bt());
|
|
19590
19598
|
this._commandService = e, this._univerInstanceService = t, this._permissionService = n, this._dialogService = i, this._rangeProtectionRuleModel = o, this._autoFillService = s, this._localeService = l, this._contextService = a, this._sheetPermissionCheckController = c, this._initialize(), this._initUIEvent();
|
|
19591
19599
|
}
|
|
19592
19600
|
_initUIEvent() {
|
|
@@ -19733,8 +19741,8 @@ To = yI([
|
|
|
19733
19741
|
Rn(3, Pi),
|
|
19734
19742
|
Rn(4, N(et)),
|
|
19735
19743
|
Rn(5, Lr),
|
|
19736
|
-
Rn(6, N(
|
|
19737
|
-
Rn(7,
|
|
19744
|
+
Rn(6, N(xe)),
|
|
19745
|
+
Rn(7, He),
|
|
19738
19746
|
Rn(8, N(Fg))
|
|
19739
19747
|
], To);
|
|
19740
19748
|
var MI = Object.getOwnPropertyDescriptor, PI = (r, e, t, n) => {
|
|
@@ -19745,7 +19753,7 @@ var MI = Object.getOwnPropertyDescriptor, PI = (r, e, t, n) => {
|
|
|
19745
19753
|
let hl = class extends Un {
|
|
19746
19754
|
constructor(e, t, n, i, o, s, l, a, c, d) {
|
|
19747
19755
|
super();
|
|
19748
|
-
_(this, "disposableCollection", new
|
|
19756
|
+
_(this, "disposableCollection", new bt());
|
|
19749
19757
|
this._context = e, this._univerInstanceService = t, this._permissionService = n, this._selectionManagerService = i, this._rangeProtectionRuleModel = o, this._headerMoveRenderController = s, this._selectionRenderService = l, this._headerFreezeRenderController = a, this._rangeProtectionCache = c, this._headerResizeRenderController = d, this._initHeaderMovePermissionInterceptor(), this._initHeaderResizePermissionInterceptor(), this._initRangeFillPermissionInterceptor(), this._initRangeMovePermissionInterceptor();
|
|
19750
19758
|
}
|
|
19751
19759
|
_initHeaderMovePermissionInterceptor() {
|
|
@@ -19888,7 +19896,7 @@ const OI = "SHEET_PERMISSION_PASTE_PLUGIN";
|
|
|
19888
19896
|
let Oo = class extends de {
|
|
19889
19897
|
constructor(e, t, n, i, o) {
|
|
19890
19898
|
super();
|
|
19891
|
-
_(this, "disposableCollection", new
|
|
19899
|
+
_(this, "disposableCollection", new bt());
|
|
19892
19900
|
this._univerInstanceService = e, this._selectionManagerService = t, this._localService = n, this._sheetClipboardService = i, this._sheetPermissionCheckController = o, this._initClipboardHook();
|
|
19893
19901
|
}
|
|
19894
19902
|
_initClipboardHook() {
|
|
@@ -19927,7 +19935,7 @@ let Oo = class extends de {
|
|
|
19927
19935
|
Oo = TI([
|
|
19928
19936
|
Ui(0, V),
|
|
19929
19937
|
Ui(1, N($)),
|
|
19930
|
-
Ui(2, N(
|
|
19938
|
+
Ui(2, N(xe)),
|
|
19931
19939
|
Ui(3, N(on)),
|
|
19932
19940
|
Ui(4, N(Fg))
|
|
19933
19941
|
], Oo);
|
|
@@ -20152,7 +20160,7 @@ var VI = Object.getOwnPropertyDescriptor, DI = (r, e, t, n) => {
|
|
|
20152
20160
|
let gl = class extends Un {
|
|
20153
20161
|
constructor(e, t, n, i, o) {
|
|
20154
20162
|
super();
|
|
20155
|
-
_(this, "disposableCollection", new
|
|
20163
|
+
_(this, "disposableCollection", new bt());
|
|
20156
20164
|
this._context = e, this._univerInstanceService = t, this._permissionService = n, this._statusBarController = i, this._rangeProtectionCache = o, this._initStatusBarPermissionInterceptor();
|
|
20157
20165
|
}
|
|
20158
20166
|
_initStatusBarPermissionInterceptor() {
|
|
@@ -20196,7 +20204,7 @@ gl = DI([
|
|
|
20196
20204
|
hs(4, N(Bo))
|
|
20197
20205
|
], gl);
|
|
20198
20206
|
const op = (r, e, t, n, i) => {
|
|
20199
|
-
const o = r.get(
|
|
20207
|
+
const o = r.get(xe), s = r.get(pt), l = r.get(et);
|
|
20200
20208
|
let a = "";
|
|
20201
20209
|
if (e.length === 0)
|
|
20202
20210
|
a = o.t("permission.panel.emptyRangeError");
|
|
@@ -20274,7 +20282,7 @@ const op = (r, e, t, n, i) => {
|
|
|
20274
20282
|
sheetPermissionPanelTitle: $I,
|
|
20275
20283
|
sheetPermissionPanelFooter: ey
|
|
20276
20284
|
}, ty = (r) => {
|
|
20277
|
-
const { viewState: e, editState: t, permissionId: n, ranges: i, rangesErrMsg: o, desc: s, oldRule: l, id: a } = r, c = L(wi), d = L(Mi), u = L(Ol), h = L(
|
|
20285
|
+
const { viewState: e, editState: t, permissionId: n, ranges: i, rangesErrMsg: o, desc: s, oldRule: l, id: a } = r, c = L(wi), d = L(Mi), u = L(Ol), h = L(xe), g = L(D), m = L(Fr), p = L(V).getCurrentUnitForType(x.UNIVER_SHEET), S = p == null ? void 0 : p.getActiveSheet();
|
|
20278
20286
|
if (!p || !S)
|
|
20279
20287
|
return null;
|
|
20280
20288
|
const v = p.getUnitId(), C = S.getSheetId();
|
|
@@ -20400,7 +20408,7 @@ const op = (r, e, t, n, i) => {
|
|
|
20400
20408
|
)
|
|
20401
20409
|
] });
|
|
20402
20410
|
}, ny = (r) => {
|
|
20403
|
-
const { ranges: e, onRangesChange: t, desc: n, onDescChange: i, rangesErrMsg: o, permissionId: s } = r, l = L(Xn), a = Dt(() => l.get(nm), []), c = L(V), d = L(
|
|
20411
|
+
const { ranges: e, onRangesChange: t, desc: n, onDescChange: i, rangesErrMsg: o, permissionId: s } = r, l = L(Xn), a = Dt(() => l.get(nm), []), c = L(V), d = L(xe), u = L(It), h = c.getCurrentUnitForType(x.UNIVER_SHEET), g = h == null ? void 0 : h.getActiveSheet();
|
|
20404
20412
|
if (!h || !g)
|
|
20405
20413
|
return null;
|
|
20406
20414
|
const m = h.getUnitId(), f = g.getSheetId(), p = (S) => {
|
|
@@ -20446,7 +20454,7 @@ const op = (r, e, t, n, i) => {
|
|
|
20446
20454
|
}, ry = (r) => {
|
|
20447
20455
|
var S, v;
|
|
20448
20456
|
const { fromSheetBar: e, rule: t, oldRule: n } = r, i = L(It), o = t ? BI(i, t) : WI(i, e), [s, l] = ne(o.ranges), [a, c] = ne(() => op(i, o.ranges, o.permissionId, o.unitId, o.subUnitId)), [d, u] = ne(o.description), [h, g] = ne((S = o.editState) != null ? S : cn.OnlyMe), [m, f] = ne((v = o.viewState) != null ? v : mi.OthersCanView), p = Kh(zc);
|
|
20449
|
-
return
|
|
20457
|
+
return Ee(() => {
|
|
20450
20458
|
const C = i.get(V), w = i.get(Mi), R = C.getCurrentUnitForType(x.UNIVER_SHEET);
|
|
20451
20459
|
if (!R) return;
|
|
20452
20460
|
const I = R.getActiveSheet().getSheetId(), y = R.activeSheet$.subscribe((M) => {
|
|
@@ -20520,7 +20528,7 @@ const op = (r, e, t, n, i) => {
|
|
|
20520
20528
|
sheetPermissionPanelAddButton: Iy
|
|
20521
20529
|
}, yy = () => {
|
|
20522
20530
|
var k;
|
|
20523
|
-
const [r, e] = ne(!0), [t, n] = ne(!1), i = L(
|
|
20531
|
+
const [r, e] = ne(!0), [t, n] = ne(!1), i = L(xe), o = L(et), s = L(pt), l = L(V), a = L(D), c = L(Mi), d = L(Ol), u = L(ot), g = L(Wt).getCurrentUser(), [m, f] = ne([]), p = L(Fr), S = gt(s.ruleRefresh$, ""), v = gt(o.ruleRefresh$, ""), C = l.getCurrentUnitForType(x.UNIVER_SHEET);
|
|
20524
20532
|
if (!C)
|
|
20525
20533
|
return null;
|
|
20526
20534
|
const w = C == null ? void 0 : C.getUnitId(), R = Vn(async (O) => {
|
|
@@ -20546,7 +20554,7 @@ const op = (r, e, t, n, i) => {
|
|
|
20546
20554
|
});
|
|
20547
20555
|
return O ? _e : le;
|
|
20548
20556
|
}, []), [I, y] = ne([]);
|
|
20549
|
-
|
|
20557
|
+
Ee(() => {
|
|
20550
20558
|
const O = _t(
|
|
20551
20559
|
o.ruleChange$,
|
|
20552
20560
|
s.ruleChange$
|
|
@@ -20557,7 +20565,7 @@ const op = (r, e, t, n, i) => {
|
|
|
20557
20565
|
return () => {
|
|
20558
20566
|
O.unsubscribe();
|
|
20559
20567
|
};
|
|
20560
|
-
}, [r]),
|
|
20568
|
+
}, [r]), Ee(() => {
|
|
20561
20569
|
const O = C.activeSheet$.pipe(
|
|
20562
20570
|
un((H, F) => (H == null ? void 0 : H.getSheetId()) === (F == null ? void 0 : F.getSheetId()))
|
|
20563
20571
|
).subscribe(async () => {
|
|
@@ -20567,7 +20575,7 @@ const op = (r, e, t, n, i) => {
|
|
|
20567
20575
|
return () => {
|
|
20568
20576
|
O.unsubscribe();
|
|
20569
20577
|
};
|
|
20570
|
-
}, [r]),
|
|
20578
|
+
}, [r]), Ee(() => {
|
|
20571
20579
|
(async () => {
|
|
20572
20580
|
if (S || v) {
|
|
20573
20581
|
const H = await R(!0);
|
|
@@ -20580,7 +20588,7 @@ const op = (r, e, t, n, i) => {
|
|
|
20580
20588
|
let B;
|
|
20581
20589
|
X === Tn.Worksheet ? B = a.executeCommand(Hs.id, { unitId: H, subUnitId: F, rule: O }) : X === Tn.SelectRange && (B = a.executeCommand(Vv.id, { unitId: H, subUnitId: F, rule: O })), B && (n(!t), O.ranges === m && f([]));
|
|
20582
20590
|
};
|
|
20583
|
-
|
|
20591
|
+
Ee(() => {
|
|
20584
20592
|
p.reset();
|
|
20585
20593
|
}, []), pR(m);
|
|
20586
20594
|
const P = /* @__PURE__ */ new Map();
|
|
@@ -20649,11 +20657,11 @@ const op = (r, e, t, n, i) => {
|
|
|
20649
20657
|
if (se !== wt)
|
|
20650
20658
|
return !1;
|
|
20651
20659
|
if (ze === Tn.SelectRange) {
|
|
20652
|
-
const
|
|
20653
|
-
|
|
20660
|
+
const Ct = H.ranges || [];
|
|
20661
|
+
Ct !== m && f(Ct);
|
|
20654
20662
|
} else if (ze === Tn.Worksheet) {
|
|
20655
|
-
const
|
|
20656
|
-
|
|
20663
|
+
const Ct = [{ startRow: 0, endRow: tt.getRowCount() - 1, startColumn: 0, endColumn: tt.getColumnCount() - 1 }];
|
|
20664
|
+
Ct !== m && f(Ct);
|
|
20657
20665
|
}
|
|
20658
20666
|
},
|
|
20659
20667
|
onMouseLeave: () => f([]),
|
|
@@ -20741,14 +20749,14 @@ const op = (r, e, t, n, i) => {
|
|
|
20741
20749
|
sheetPermissionUserDialogFooterConfirm: Vy,
|
|
20742
20750
|
sheetPermissionUserDialogButton: Dy
|
|
20743
20751
|
}, Ly = () => {
|
|
20744
|
-
const r = L(
|
|
20752
|
+
const r = L(xe), e = L(V), t = L(Ol), n = L(Dv), i = L(Pi), o = L(ot), s = e.getCurrentUnitForType(x.UNIVER_SHEET), l = s.getActiveSheet();
|
|
20745
20753
|
if (!l)
|
|
20746
20754
|
throw new Error("No active sheet found");
|
|
20747
20755
|
const [a, c] = ne([]), d = L(D), [u, h] = ne(() => !!n.getRule(s.getUnitId(), l.getSheetId())), [g, m] = ne(() => Object.keys(cs).reduce((p, S) => (p[S] = {
|
|
20748
20756
|
text: r.t(`permission.panel.${cs[Number(S)]}`),
|
|
20749
20757
|
allowed: !0
|
|
20750
20758
|
}, p), {}));
|
|
20751
|
-
|
|
20759
|
+
Ee(() => {
|
|
20752
20760
|
(async () => {
|
|
20753
20761
|
const S = s.getUnitId(), v = await t.listCollaborators({
|
|
20754
20762
|
objectID: S,
|
|
@@ -20756,7 +20764,7 @@ const op = (r, e, t, n, i) => {
|
|
|
20756
20764
|
});
|
|
20757
20765
|
c(v);
|
|
20758
20766
|
})();
|
|
20759
|
-
}, []),
|
|
20767
|
+
}, []), Ee(() => {
|
|
20760
20768
|
(async () => {
|
|
20761
20769
|
const S = s.getUnitId(), v = n.getRule(S, l.getSheetId());
|
|
20762
20770
|
if (!v)
|
|
@@ -20882,22 +20890,23 @@ const op = (r, e, t, n, i) => {
|
|
|
20882
20890
|
sheetPermissionUserDialogFooterConfirm: Gy,
|
|
20883
20891
|
sheetPermissionUserDialogButton: qy
|
|
20884
20892
|
}, Qy = () => {
|
|
20885
|
-
|
|
20886
|
-
|
|
20887
|
-
|
|
20888
|
-
|
|
20889
|
-
|
|
20890
|
-
|
|
20891
|
-
|
|
20893
|
+
var d;
|
|
20894
|
+
const [r, e] = ne(""), t = L(xe), n = L(Pi), i = L(Fr), o = gt(i.userList$, i.userList), s = (d = o == null ? void 0 : o.filter((u) => {
|
|
20895
|
+
var h;
|
|
20896
|
+
return ((h = u.subject) == null ? void 0 : h.name.toLocaleLowerCase().includes(r.toLocaleLowerCase())) && u.role === Vt.Editor;
|
|
20897
|
+
})) != null ? d : [], [l, a] = ne(i.selectUserList), c = (u) => {
|
|
20898
|
+
if ((l == null ? void 0 : l.findIndex((g) => {
|
|
20899
|
+
var m, f;
|
|
20900
|
+
return ((m = g.subject) == null ? void 0 : m.userID) === ((f = u.subject) == null ? void 0 : f.userID);
|
|
20892
20901
|
})) === -1) {
|
|
20893
|
-
const
|
|
20894
|
-
a([...l,
|
|
20902
|
+
const g = { ...u };
|
|
20903
|
+
a([...l, g]);
|
|
20895
20904
|
} else {
|
|
20896
|
-
const
|
|
20897
|
-
var
|
|
20898
|
-
return ((
|
|
20905
|
+
const g = l.filter((m) => {
|
|
20906
|
+
var f, p;
|
|
20907
|
+
return ((f = m.subject) == null ? void 0 : f.userID) !== ((p = u.subject) == null ? void 0 : p.userID);
|
|
20899
20908
|
});
|
|
20900
|
-
a(
|
|
20909
|
+
a(g);
|
|
20901
20910
|
}
|
|
20902
20911
|
};
|
|
20903
20912
|
return /* @__PURE__ */ q("div", { className: Ht.sheetPermissionUserDialogWrapper, children: [
|
|
@@ -20907,19 +20916,19 @@ const op = (r, e, t, n, i) => {
|
|
|
20907
20916
|
placeholder: t.t("permission.dialog.search"),
|
|
20908
20917
|
className: Ht.sheetPermissionUserDialogSearchInput,
|
|
20909
20918
|
value: r,
|
|
20910
|
-
onChange: (
|
|
20919
|
+
onChange: (u) => e(u)
|
|
20911
20920
|
}
|
|
20912
20921
|
) }),
|
|
20913
|
-
/* @__PURE__ */ b("div", { className: Ht.sheetPermissionUserList, children: (s == null ? void 0 : s.length) > 0 ? /* @__PURE__ */ b(Mr, { children: s == null ? void 0 : s.map((
|
|
20914
|
-
var
|
|
20915
|
-
return /* @__PURE__ */ q("div", { className: Ht.sheetPermissionUserItem, onClick: () => c(
|
|
20916
|
-
/* @__PURE__ */ b(xd, { src: (
|
|
20917
|
-
/* @__PURE__ */ b("div", { className: Ht.sheetPermissionUserItemName, children: (
|
|
20918
|
-
(l == null ? void 0 : l.findIndex((
|
|
20919
|
-
var
|
|
20920
|
-
return ((
|
|
20922
|
+
/* @__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
|
+
var h, g, m;
|
|
20924
|
+
return /* @__PURE__ */ q("div", { className: Ht.sheetPermissionUserItem, onClick: () => c(u), children: [
|
|
20925
|
+
/* @__PURE__ */ b(xd, { src: (h = u.subject) == null ? void 0 : h.avatar, size: 24 }),
|
|
20926
|
+
/* @__PURE__ */ b("div", { className: Ht.sheetPermissionUserItemName, children: (g = u.subject) == null ? void 0 : g.name }),
|
|
20927
|
+
(l == null ? void 0 : l.findIndex((f) => {
|
|
20928
|
+
var p, S;
|
|
20929
|
+
return ((p = f.subject) == null ? void 0 : p.userID) === ((S = u.subject) == null ? void 0 : S.userID);
|
|
20921
20930
|
})) !== -1 && /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(Wr, {}) })
|
|
20922
|
-
] }, (
|
|
20931
|
+
] }, (m = u.subject) == null ? void 0 : m.userID);
|
|
20923
20932
|
}) }) : /* @__PURE__ */ q("div", { className: Ht.sheetPermissionUserListEmpty, children: [
|
|
20924
20933
|
/* @__PURE__ */ b("img", { width: 240, height: 120, src: sp, alt: "" }),
|
|
20925
20934
|
/* @__PURE__ */ b("p", { className: Ht.sheetPermissionUserListEmptyText, children: t.t("permission.dialog.userEmpty") })
|
|
@@ -20945,7 +20954,7 @@ const op = (r, e, t, n, i) => {
|
|
|
20945
20954
|
sheetPermissionAlertDialogTitle: Jy,
|
|
20946
20955
|
sheetPermissionAlertDialogButton: $y
|
|
20947
20956
|
}, eM = ({ errorMsg: r }) => {
|
|
20948
|
-
const e = L(
|
|
20957
|
+
const e = L(xe), t = L(Pi);
|
|
20949
20958
|
return /* @__PURE__ */ q("div", { className: ic.sheetPermissionAlertDialog, children: [
|
|
20950
20959
|
/* @__PURE__ */ b("h1", { className: ic.sheetPermissionAlertDialogTitle, children: e.t("permission.dialog.alert") }),
|
|
20951
20960
|
/* @__PURE__ */ b("p", { children: r || e.t("permission.dialog.alertContent") }),
|
|
@@ -21040,7 +21049,7 @@ class sM extends qh {
|
|
|
21040
21049
|
}
|
|
21041
21050
|
}
|
|
21042
21051
|
const lM = (r) => {
|
|
21043
|
-
const { editState: e, onEditStateChange: t, viewState: n, onViewStateChange: i, permissionId: o } = r, s = L(
|
|
21052
|
+
const { editState: e, onEditStateChange: t, viewState: n, onViewStateChange: i, permissionId: o } = r, s = L(xe), l = L(Pi), a = L(Ol), c = L(Fr), d = L(Wt), u = L(V), h = gt(c.selectUserList$, c.selectUserList), g = u.getCurrentUnitForType(x.UNIVER_SHEET), m = g == null ? void 0 : g.getActiveSheet();
|
|
21044
21053
|
if (!g || !m)
|
|
21045
21054
|
return null;
|
|
21046
21055
|
const f = g.getUnitId(), p = async () => {
|
|
@@ -21061,7 +21070,7 @@ const lM = (r) => {
|
|
|
21061
21070
|
className: "sheet-permission-user-dialog"
|
|
21062
21071
|
});
|
|
21063
21072
|
};
|
|
21064
|
-
return
|
|
21073
|
+
return Ee(() => {
|
|
21065
21074
|
o ? (async () => {
|
|
21066
21075
|
const C = (await a.listCollaborators({
|
|
21067
21076
|
objectID: o,
|
|
@@ -21233,7 +21242,7 @@ fl = lu([
|
|
|
21233
21242
|
Xt(1, N(be)),
|
|
21234
21243
|
Xt(2, N(V)),
|
|
21235
21244
|
Xt(3, N(ge)),
|
|
21236
|
-
Xt(4, N(
|
|
21245
|
+
Xt(4, N(pt)),
|
|
21237
21246
|
Xt(5, N(Fn))
|
|
21238
21247
|
], fl);
|
|
21239
21248
|
var cM = Object.getOwnPropertyDescriptor, dM = (r, e, t, n) => {
|
|
@@ -21835,7 +21844,7 @@ let Sl = class extends im {
|
|
|
21835
21844
|
return;
|
|
21836
21845
|
}
|
|
21837
21846
|
const t = this._context.unitId, { sheetId: n, skeleton: i } = e, { scene: o } = this._context, s = o.getViewport(U.VIEW_MAIN);
|
|
21838
|
-
this._changeRuntime(i, o, s), this._workbookSelections.getCurrentLastSelection() || this._commandService.syncExecuteCommand(
|
|
21847
|
+
this._changeRuntime(i, o, s), this._workbookSelections.getCurrentLastSelection() || this._commandService.syncExecuteCommand(Pe.id, {
|
|
21839
21848
|
unitId: t,
|
|
21840
21849
|
subUnitId: n,
|
|
21841
21850
|
selections: [Dd(i)]
|
|
@@ -21903,7 +21912,7 @@ let Sl = class extends im {
|
|
|
21903
21912
|
}
|
|
21904
21913
|
_updateSelections(e, t) {
|
|
21905
21914
|
const n = this._context.unit, i = n.getUnitId(), o = n.getActiveSheet().getSheetId();
|
|
21906
|
-
e.length !== 0 && this._commandService.executeCommand(
|
|
21915
|
+
e.length !== 0 && this._commandService.executeCommand(Pe.id, {
|
|
21907
21916
|
unitId: i,
|
|
21908
21917
|
subUnitId: o,
|
|
21909
21918
|
type: t,
|
|
@@ -21927,7 +21936,7 @@ let Sl = class extends im {
|
|
|
21927
21936
|
if (!s || !o)
|
|
21928
21937
|
return;
|
|
21929
21938
|
i && (this._activeViewport = i);
|
|
21930
|
-
const { offsetX: l, offsetY: a } = e, c = s.getCoordRelativeToViewport(
|
|
21939
|
+
const { offsetX: l, offsetY: a } = e, c = s.getCoordRelativeToViewport(ke.FromArray([l, a])), { x: d, y: u } = c;
|
|
21931
21940
|
this._startViewportPosX = d, this._startViewportPosY = u;
|
|
21932
21941
|
const h = s.getScrollXYInfoByViewport(c), { scaleX: g, scaleY: m } = s.getAncestorScale(), f = this._skeleton.getCellByOffset(d, u, g, m, h);
|
|
21933
21942
|
if (!f) return;
|
|
@@ -22021,7 +22030,7 @@ let Sl = class extends im {
|
|
|
22021
22030
|
// same as PC
|
|
22022
22031
|
_getActiveViewport(e) {
|
|
22023
22032
|
const t = this._getSheetObject();
|
|
22024
|
-
return t == null ? void 0 : t.scene.getActiveViewportByCoord(
|
|
22033
|
+
return t == null ? void 0 : t.scene.getActiveViewportByCoord(ke.FromArray([e.offsetX, e.offsetY]));
|
|
22025
22034
|
}
|
|
22026
22035
|
// same as PC
|
|
22027
22036
|
_getSheetObject() {
|
|
@@ -22043,7 +22052,7 @@ let Sl = class extends im {
|
|
|
22043
22052
|
const l = s.getViewport(U.VIEW_MAIN), a = this.getActiveSelectionControl();
|
|
22044
22053
|
if (!a) return;
|
|
22045
22054
|
this._changeCurrCellWhenControlPointerDown(), this._selectionMoveStart$.next(this.getSelectionDataWithStyle()), this._clearUpdatingListeners(), this._addEndingListeners(), this._scrollTimer = ri.create(this._scene, i), this._scrollTimer.startScroll((u = l == null ? void 0 : l.left) != null ? u : 0, (h = l == null ? void 0 : l.top) != null ? h : 0, l), (g = s.getTransformer()) == null || g.clearSelectedObjects();
|
|
22046
|
-
const c = s.getCoordRelativeToViewport(
|
|
22055
|
+
const c = s.getCoordRelativeToViewport(ke.FromArray([e.offsetX, e.offsetY]));
|
|
22047
22056
|
this._setupPointerMoveListener(l, a, t, i, c.x, c.y);
|
|
22048
22057
|
const d = this._shortcutService.forceEscape();
|
|
22049
22058
|
this._scenePointerUpSub = s.onPointerUp$.subscribeEvent((m) => {
|
|
@@ -22094,7 +22103,7 @@ let Sl = class extends im {
|
|
|
22094
22103
|
startColumn: n.model.startColumn,
|
|
22095
22104
|
endColumn: n.model.endColumn
|
|
22096
22105
|
}, a = s.getViewport(U.VIEW_MAIN), c = (M = this._getViewportByCell(l.endRow, l.endColumn)) != null ? M : a, d = s.getScrollXYInfoByViewport(
|
|
22097
|
-
|
|
22106
|
+
ke.FromArray([this._startViewportPosX, this._startViewportPosY]),
|
|
22098
22107
|
c
|
|
22099
22108
|
), { scaleX: u, scaleY: h } = s.getAncestorScale();
|
|
22100
22109
|
i === z.ROW ? e = Number.POSITIVE_INFINITY : i === z.COLUMN && (t = Number.POSITIVE_INFINITY);
|
|
@@ -22147,7 +22156,7 @@ Sl = bM([
|
|
|
22147
22156
|
yn(5, N(ge)),
|
|
22148
22157
|
yn(6, Tl),
|
|
22149
22158
|
yn(7, D),
|
|
22150
|
-
yn(8,
|
|
22159
|
+
yn(8, He),
|
|
22151
22160
|
yn(9, N(Tt))
|
|
22152
22161
|
], Sl);
|
|
22153
22162
|
var _M = Object.defineProperty, wM = Object.getOwnPropertyDescriptor, RM = (r, e, t) => e in r ? _M(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, IM = (r, e, t, n) => {
|
|
@@ -22491,7 +22500,7 @@ Ao = OM([
|
|
|
22491
22500
|
Mn(1, be),
|
|
22492
22501
|
Mn(2, it),
|
|
22493
22502
|
Mn(3, D),
|
|
22494
|
-
Mn(4,
|
|
22503
|
+
Mn(4, He),
|
|
22495
22504
|
Mn(5, Jl),
|
|
22496
22505
|
Mn(6, qt),
|
|
22497
22506
|
Mn(7, N(Td)),
|
|
@@ -22556,7 +22565,7 @@ let _l = class extends de {
|
|
|
22556
22565
|
}), this._syncContentAndRender(Le, e, t, n);
|
|
22557
22566
|
}
|
|
22558
22567
|
_commandExecutedListener() {
|
|
22559
|
-
const r = [
|
|
22568
|
+
const r = [De, Le];
|
|
22560
22569
|
this.disposeWithMe(
|
|
22561
22570
|
this._commandService.onCommandExecuted((t) => {
|
|
22562
22571
|
if (t.id === Ns.id) {
|
|
@@ -22564,7 +22573,7 @@ let _l = class extends de {
|
|
|
22564
22573
|
if (s || o === Hh.id)
|
|
22565
22574
|
return;
|
|
22566
22575
|
if (r.includes(i)) {
|
|
22567
|
-
const l = this._univerInstanceService.getUnit(i, x.UNIVER_DOC), a = i === Le ?
|
|
22576
|
+
const l = this._univerInstanceService.getUnit(i, x.UNIVER_DOC), a = i === Le ? De : Le;
|
|
22568
22577
|
this._checkAndSetRenderStyleConfig(l), this._syncActionsAndRender(a, n);
|
|
22569
22578
|
}
|
|
22570
22579
|
}
|
|
@@ -22593,7 +22602,7 @@ let _l = class extends de {
|
|
|
22593
22602
|
// Sync actions between cell editor and formula editor, and make `dataStream` and `paragraph` is the same.
|
|
22594
22603
|
_syncActionsAndRender(r, e) {
|
|
22595
22604
|
var l;
|
|
22596
|
-
const t = [
|
|
22605
|
+
const t = [De, Le], n = this._renderManagerService.getRenderById(r);
|
|
22597
22606
|
if (n == null)
|
|
22598
22607
|
return;
|
|
22599
22608
|
const i = n.with(ir).getSkeleton(), o = this._univerInstanceService.getUnit(r, x.UNIVER_DOC), s = this._getEditorViewModel(r);
|
|
@@ -22608,7 +22617,7 @@ let _l = class extends de {
|
|
|
22608
22617
|
_syncContentAndRender(r, e, t, n) {
|
|
22609
22618
|
var c, d;
|
|
22610
22619
|
r === Le && e.paragraphs && (e.paragraphs = this._clearParagraph(e.paragraphs));
|
|
22611
|
-
const i = [
|
|
22620
|
+
const i = [De, Le], o = (c = this._renderManagerService.getRenderById(r)) == null ? void 0 : c.with(ir).getSkeleton(), s = this._univerInstanceService.getUnit(r, x.UNIVER_DOC), l = this._getEditorViewModel(r);
|
|
22612
22621
|
if (s == null || l == null || o == null)
|
|
22613
22622
|
return;
|
|
22614
22623
|
s.getSnapshot().body = e, s.getSnapshot().drawings = t != null ? t : {}, s.getSnapshot().drawingsOrder = n != null ? n : [], this._checkAndSetRenderStyleConfig(s), l.reset(s);
|
|
@@ -22646,7 +22655,7 @@ _l = AM([
|
|
|
22646
22655
|
Kn(2, it),
|
|
22647
22656
|
Kn(3, D),
|
|
22648
22657
|
Kn(4, N(et)),
|
|
22649
|
-
Kn(5, N(
|
|
22658
|
+
Kn(5, N(pt)),
|
|
22650
22659
|
Kn(6, N(Ao)),
|
|
22651
22660
|
Kn(7, Jl)
|
|
22652
22661
|
], _l);
|
|
@@ -22807,7 +22816,7 @@ let qc = class extends de {
|
|
|
22807
22816
|
constructor(e, t, n, i) {
|
|
22808
22817
|
super();
|
|
22809
22818
|
_(this, "_initialize", () => {
|
|
22810
|
-
const e = new
|
|
22819
|
+
const e = new bt();
|
|
22811
22820
|
this.disposeWithMe(
|
|
22812
22821
|
this._selectionManagerService.selectionMoveEnd$.subscribe(() => {
|
|
22813
22822
|
e.dispose(), this._selectionRenderService.getSelectionControls().forEach((n) => {
|
|
@@ -22957,7 +22966,7 @@ let Jc = class extends Un {
|
|
|
22957
22966
|
})), this._initialRangeSelector();
|
|
22958
22967
|
}
|
|
22959
22968
|
_init() {
|
|
22960
|
-
const e = new
|
|
22969
|
+
const e = new bt();
|
|
22961
22970
|
return this._initSelectionChangeListener(e), this._initEventListener(e), this._commandExecutedListener(e), this._initialKeyboardListener(e), e;
|
|
22962
22971
|
}
|
|
22963
22972
|
_disposeCurrent() {
|
|
@@ -23033,8 +23042,8 @@ let Jc = class extends Un {
|
|
|
23033
23042
|
const a = this._contextService.getContextValue(At), c = this._contextService.getContextValue(kt), d = o.unitId;
|
|
23034
23043
|
this._editorBridgeService.isVisible().visible || d && c && !a && this._showEditorByKeyboard(l);
|
|
23035
23044
|
})), e.add(t));
|
|
23036
|
-
}, i = this._renderManagerService.getRenderById(
|
|
23037
|
-
i ? n(i) : this.disposeWithMe(this._renderManagerService.created$.pipe(Vl((o) => o.unitId ===
|
|
23045
|
+
}, i = this._renderManagerService.getRenderById(De);
|
|
23046
|
+
i ? n(i) : this.disposeWithMe(this._renderManagerService.created$.pipe(Vl((o) => o.unitId === De)).subscribe((o) => {
|
|
23038
23047
|
t == null || t.dispose(), n(o);
|
|
23039
23048
|
}));
|
|
23040
23049
|
}
|
|
@@ -23117,7 +23126,7 @@ Jc = YM([
|
|
|
23117
23126
|
Pn(3, it),
|
|
23118
23127
|
Pn(4, N($)),
|
|
23119
23128
|
Pn(5, Bp),
|
|
23120
|
-
Pn(6,
|
|
23129
|
+
Pn(6, He),
|
|
23121
23130
|
Pn(7, be),
|
|
23122
23131
|
Pn(8, kr),
|
|
23123
23132
|
Pn(9, N(ge))
|
|
@@ -23268,7 +23277,7 @@ let ed = class extends de {
|
|
|
23268
23277
|
return t >= l && t <= a;
|
|
23269
23278
|
}))) {
|
|
23270
23279
|
const s = this._getSelectionOnColumn(t);
|
|
23271
|
-
this._commandService.syncExecuteCommand(
|
|
23280
|
+
this._commandService.syncExecuteCommand(Pe.id, s);
|
|
23272
23281
|
}
|
|
23273
23282
|
e.stopPropagation(), e.preventDefault(), this._contextMenuService.triggerContextMenu(e, Rt.COL_HEADER);
|
|
23274
23283
|
}));
|
|
@@ -23660,7 +23669,7 @@ let id = class extends im {
|
|
|
23660
23669
|
const s = e.map(
|
|
23661
23670
|
(l) => Ug(l)
|
|
23662
23671
|
);
|
|
23663
|
-
this._commandService.executeCommand(
|
|
23672
|
+
this._commandService.executeCommand(Pe.id, {
|
|
23664
23673
|
unitId: i,
|
|
23665
23674
|
subUnitId: o,
|
|
23666
23675
|
type: t,
|
|
@@ -23677,7 +23686,7 @@ let id = class extends im {
|
|
|
23677
23686
|
const t = this._context.unitId, { sheetId: n, skeleton: i } = e, { scene: o } = this._context, s = o.getViewport(U.VIEW_MAIN), l = (d = (c = this._skeleton) == null ? void 0 : c.worksheet) == null ? void 0 : d.getSheetId();
|
|
23678
23687
|
if (this._changeRuntime(i, o, s), l !== i.worksheet.getSheetId()) {
|
|
23679
23688
|
const u = this._workbookSelections.getCurrentSelections();
|
|
23680
|
-
this._commandService.syncExecuteCommand(
|
|
23689
|
+
this._commandService.syncExecuteCommand(Pe.id, {
|
|
23681
23690
|
unitId: t,
|
|
23682
23691
|
subUnitId: n,
|
|
23683
23692
|
selections: u.length !== 0 ? u : [Dd(i)]
|
|
@@ -23689,7 +23698,7 @@ let id = class extends im {
|
|
|
23689
23698
|
}
|
|
23690
23699
|
_getActiveViewport(e) {
|
|
23691
23700
|
const t = this._getSheetObject();
|
|
23692
|
-
return t == null ? void 0 : t.scene.getActiveViewportByCoord(
|
|
23701
|
+
return t == null ? void 0 : t.scene.getActiveViewportByCoord(ke.FromArray([e.offsetX, e.offsetY]));
|
|
23693
23702
|
}
|
|
23694
23703
|
_getSheetObject() {
|
|
23695
23704
|
return Cn(this._context.unit, this._context);
|
|
@@ -23714,7 +23723,7 @@ let id = class extends im {
|
|
|
23714
23723
|
i && (this._activeViewport = i);
|
|
23715
23724
|
const { offsetX: a, offsetY: c } = e, d = l.getViewport(U.VIEW_MAIN);
|
|
23716
23725
|
if (!d) return;
|
|
23717
|
-
const u = l.getCoordRelativeToViewport(
|
|
23726
|
+
const u = l.getCoordRelativeToViewport(ke.FromArray([a, c])), { x: h, y: g } = u;
|
|
23718
23727
|
this._startViewportPosX = h, this._startViewportPosY = g;
|
|
23719
23728
|
const m = l.getScrollXYInfoByViewport(u), { scaleX: f, scaleY: p } = l.getAncestorScale(), S = this._skeleton.getCellByOffset(h, g, f, p, m);
|
|
23720
23729
|
if (!S) return;
|
|
@@ -23767,7 +23776,7 @@ id = sP([
|
|
|
23767
23776
|
Jn(5, N(ge)),
|
|
23768
23777
|
Jn(6, Tl),
|
|
23769
23778
|
Jn(7, D),
|
|
23770
|
-
Jn(8,
|
|
23779
|
+
Jn(8, He)
|
|
23771
23780
|
], id);
|
|
23772
23781
|
var lP = Object.defineProperty, aP = Object.getOwnPropertyDescriptor, cP = (r, e, t) => e in r ? lP(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, dP = (r, e, t, n) => {
|
|
23773
23782
|
for (var i = n > 1 ? void 0 : n ? aP(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -23987,7 +23996,7 @@ function LP(r, e, t, n, i, o, s) {
|
|
|
23987
23996
|
}
|
|
23988
23997
|
export {
|
|
23989
23998
|
lm as AFFECT_LAYOUT_STYLES,
|
|
23990
|
-
|
|
23999
|
+
Ve as APPLY_TYPE,
|
|
23991
24000
|
ci as AddRangeProtectionFromContextMenuCommand,
|
|
23992
24001
|
ua as AddRangeProtectionFromSheetBarCommand,
|
|
23993
24002
|
da as AddRangeProtectionFromToolbarCommand,
|
|
@@ -24006,7 +24015,7 @@ export {
|
|
|
24006
24015
|
s1 as CellEditorManagerService,
|
|
24007
24016
|
pa as ChangeSheetProtectionFromSheetBarCommand,
|
|
24008
24017
|
jo as ChangeZoomRatioCommand,
|
|
24009
|
-
|
|
24018
|
+
mt as DATA_TYPE,
|
|
24010
24019
|
Ko as DeleteRangeMoveLeftConfirmCommand,
|
|
24011
24020
|
bi as DeleteRangeMoveUpConfirmCommand,
|
|
24012
24021
|
ui as DeleteRangeProtectionFromContextMenuCommand,
|
|
@@ -24142,7 +24151,7 @@ export {
|
|
|
24142
24151
|
Js as checkInHeaderRanges,
|
|
24143
24152
|
LP as convertPositionCellToSheetOverGrid,
|
|
24144
24153
|
DP as convertPositionSheetOverGridToAbsolute,
|
|
24145
|
-
|
|
24154
|
+
vt as deriveStateFromActiveSheet$,
|
|
24146
24155
|
Er as discreteRangeToRange,
|
|
24147
24156
|
Ia as functionDisplayNames,
|
|
24148
24157
|
Pr as genNormalSelectionStyle,
|
|
@@ -24172,5 +24181,5 @@ export {
|
|
|
24172
24181
|
EP as useWorkbooks,
|
|
24173
24182
|
Ei as virtualizeDiscreteRanges,
|
|
24174
24183
|
AP as whenFormulaEditorActivated,
|
|
24175
|
-
|
|
24184
|
+
Ne as whenSheetEditorFocused
|
|
24176
24185
|
};
|