@univerjs/sheets-ui 0.6.6-nightly.202503191607 → 0.6.6-nightly.202503201607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +16 -16
- package/lib/es/index.js +993 -968
- package/lib/types/controllers/editor/editing.render-controller.d.ts +1 -0
- package/lib/types/services/hover-manager.service.d.ts +12 -3
- package/lib/types/services/utils/doc-skeleton-util.d.ts +1 -0
- package/lib/umd/index.js +2 -2
- package/package.json +11 -11
package/lib/es/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var wp = Object.defineProperty;
|
|
2
2
|
var Rp = (r, e, t) => e in r ? wp(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var _ = (r, e, t) => Rp(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { DOCS_VIEW_KEY as Ip, IEditorService as Hr, getCanvasOffsetByEngine as du, VIEWPORT_KEY as Es, DOCS_COMPONENT_MAIN_LAYER_INDEX as yp, BreakLineCommand as Mp, DeleteLeftCommand as Ep, DocSelectionRenderService as _r, ReplaceSnapshotCommand as Nh, MoveSelectionOperation as Pp, MoveCursorOperation as Tp, SetInlineFormatBoldCommand as Op, SetInlineFormatItalicCommand as xp, SetInlineFormatUnderlineCommand as Ap, SetInlineFormatStrikethroughCommand as Hp, SetInlineFormatSubscriptCommand as kp, SetInlineFormatSuperscriptCommand as Vp, SetInlineFormatFontSizeCommand as Np, SetInlineFormatFontFamilyCommand as Dp, SetInlineFormatTextColorCommand as Dh, SetInlineFormatCommand as ko, NodePositionConvertToCursor as Lh, getLineBounding as Wh, DOC_VERTICAL_PADDING as Lp, IMEInputCommand as Wp, InsertCommand as Bp, CoverContentCommand as Fp, IRangeSelectorService as Up } from "@univerjs/docs-ui";
|
|
5
|
-
import { CommandType as Q, createInterceptorKey as cr, ColorKit as kn, RANGE_TYPE as z, convertCellToRange as Ps, UniverInstanceType as x, IUniverInstanceService as N, Quantity as uc, Disposable as ae, toDisposable as
|
|
5
|
+
import { CommandType as Q, createInterceptorKey as cr, ColorKit as kn, RANGE_TYPE as z, convertCellToRange as Ps, UniverInstanceType as x, IUniverInstanceService as N, Quantity as uc, Disposable as ae, toDisposable as Fe, Tools as se, createIdentifier as vn, InterceptorManager as yi, ThemeService as Lt, Inject as V, Injector as It, IConfigService as Fn, ObjectMatrix as Je, Direction as W, isFormulaString as sd, isFormulaId as Xp, CellValueType as jt, numfmt as Vn, ICommandService as D, IUndoRedoService as qt, Rectangle as de, sequenceExecute as Ml, IContextService as Ve, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as We, EDITOR_ACTIVATED as $e, FOCUSING_EDITOR_STANDALONE as El, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Le, Workbook as zp, Optional as ld, FOCUSING_SHEET as Ht, RxDisposable as Un, DisposableCollection as _t, IPermissionService as ot, fromEventSubject as Bh, sortRules as jp, LocaleService as He, getReverseDirection as Fh, FOCUSING_FX_BAR_EDITOR as At, BooleanNumber as Ke, nameCharacterCheck as Yp, debounce as hc, VerticalAlign as dn, HorizontalAlign as yt, WrapStrategy as wr, FOCUSING_UNIVER_EDITOR as kr, FOCUSING_COMMON_DRAWINGS as Pl, FOCUSING_EDITOR_INPUT_FORMULA as Ts, LocaleType as uu, FOCUSING_EDITOR_BUT_HIDDEN as gc, generateRandomId as ad, DEFAULT_EMPTY_DOCUMENT_VALUE as Uh, LRUMap as Zp, BaselineOffset as hu, DataStreamTreeTokenType as Gp, skipParseTagNames as qp, CustomRangeType as cd, DEFAULT_WORKSHEET_ROW_HEIGHT as mc, ILogService as Tl, ErrorService as Qp, CellModeEnum as Xh, isNotNullOrUndefined as Kp, extractPureTextFromCell as zh, UserManagerService as Wt, DEFAULT_STYLES as dd, FontWeight as ns, FontItalic as rs, composeStyles as jh, Dimension as Yh, BorderStyleTypes as xe, AbsoluteRefType as gu, NilCommand as ud, UndoCommandId as Jp, Range as vs, cellToRange as $p, handleStyleToString as mu, convertBodyToHtml as eS, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY as fu, DEFAULT_WORKSHEET_COLUMN_WIDTH as pu, PresetListType as tS, isRealNum as Zh, InterceptorEffectEnum as nS, splitIntoGrid as rS, IAuthzIoService as Ol, isValidRange as iS, DependentOn as Gh, Plugin as qh, DocumentFlavor as oS, merge as sS, registerDependencies as Su, mergeOverrideWithDependencies as lS, touchDependencies as va } from "@univerjs/core";
|
|
6
6
|
import { IRenderManagerService as be, withCurrentTypeOfRenderer as hd, SHEET_VIEWPORT_KEY as U, CURSOR_TYPE as ye, Vector2 as ke, Rect as Ce, ScrollTimer as ri, ScrollTimerType as Pt, DashedRect as aS, Group as Ca, TRANSFORM_CHANGE_OBSERVABLE_TYPE as fc, cancelRequestFrame as cS, requestNewFrame as dS, FIX_ONE_PIXEL_BLUR_OFFSET as uS, Layer as hS, SpreadsheetSkeleton as gS, DeviceInputEventType as Ye, convertTransformToOffsetX as Kr, convertTransformToOffsetY as Jr, convertTextRotation as gd, RENDER_RAW_FORMULA_KEY as mS, Spreadsheet as Qh, getCurrentTypeOfRenderer as md, RENDER_CLASS_TYPE as fS, ScrollBar as fd, fixLineWidthByScale as vu, ptToPixel as Cu, Shape as pd, SHEET_EXTENSION_PREFIX as bu, SpreadsheetRowHeader as pS, SpreadsheetColumnHeader as SS, Viewport as _n, hasCJKText as vS, DEFAULT_PADDING_DATA as CS, SheetExtension as Kh, RegularPolygon as Zi, precisionTo as tr } from "@univerjs/engine-render";
|
|
7
7
|
import { useDependency as L, useObservable as mt, KeyCode as Z, Slider as bS, ComponentManager as Xn, DISABLE_AUTO_FOCUS_KEY as _u, useEvent as wu, useSidebarClick as Jh, MetaKeys as Te, ISidebarService as Mi, useComponentsOfPart as $h, ComponentContainer as eg, IConfirmService as rn, UI_PLUGIN_CONFIG_KEY as tg, UIMenu as _S, ContextMenuPosition as Rt, IMessageService as ng, IClipboardInterfaceService as xl, IMenuManagerService as Sd, ToolbarItem as wS, ILayoutService as Al, DEFAULT_BACKGROUND_COLOR_RGB as RS, DEFAULT_BACKGROUND_COLOR_RGBA as IS, handleStringToStyle as yS, textTrim as Ru, INotificationService as MS, IPlatformService as ES, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as Iu, HTML_CLIPBOARD_MIME_TYPE as yu, imageMimeTypeSet as PS, FILE__BMP_CLIPBOARD_MIME_TYPE as TS, FILE__WEBP_CLIPBOARD_MIME_TYPE as OS, FILE__JPEG_CLIPBOARD_MIME_TYPE as xS, FILE_PNG_CLIPBOARD_MIME_TYPE as AS, CopyCommand as HS, CutCommand as kS, PasteCommand as VS, SheetPasteShortKeyCommandName as NS, IContextMenuService as Hl, getMenuHiddenObservable as ce, MenuItemType as K, FONT_SIZE_LIST as DS, FONT_FAMILY_LIST as LS, IDialogService as Ei, ContextMenuGroup as Qe, RibbonStartGroup as ba, IShortcutService as kl, IUIPartsService as Vl, FontFamily as rg, FontFamilyItem as ig, FontSize as og, BuiltInUIPart as Ji, connectInjector as ii, ICanvasPopupService as WS, IZenZoneService as BS, UniverMobileUIPlugin as FS } from "@univerjs/ui";
|
|
8
8
|
import US, { forwardRef as pt, useRef as An, createElement as ht, useState as ne, useMemo as Dt, useEffect as Pe, useCallback as Nn, useLayoutEffect as XS } from "react";
|
|
9
|
-
import { BehaviorSubject as Me, Subject as Ae, of as Re, merge as wt, map 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 so, SheetSkeletonService as jS, SheetsSelectionsService as $, SheetInterceptorService as zn, getSheetCommandTarget as
|
|
9
|
+
import { BehaviorSubject as Me, Subject as Ae, of as Re, merge as wt, map as Be, startWith as Gt, switchMap as ct, takeUntil as gi, distinctUntilChanged as un, throttleTime as sg, EMPTY as Mu, filter as Nl, combineLatest as dt, combineLatestWith as dr, Observable as ze, Subscription as rr, withLatestFrom as zS } from "rxjs";
|
|
10
|
+
import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as Os, SELECTION_CONTROL_BORDER_BUFFER_COLOR as is, SELECTIONS_ENABLED as $r, REF_SELECTIONS_ENABLED as so, SheetSkeletonService as jS, SheetsSelectionsService as $, SheetInterceptorService as zn, getSheetCommandTarget as Ue, SetWorksheetRowAutoHeightMutationFactory as lg, SetWorksheetRowAutoHeightMutation as yr, SetRangeValuesCommand as Vo, SetWorksheetRowIsAutoHeightCommand as Dl, SetStyleCommand as YS, MoveRangeCommand as vd, ReorderRangeCommand as ZS, rangeToDiscreteRange as $i, SetSelectionsOperation as Ee, SetRangeValuesMutation as we, generateNullCellValue as GS, SetRangeValuesUndoMutationFactory as nn, IRefSelectionsService as Ll, BEFORE_CELL_EDIT as qS, SetWorksheetActiveOperation as rt, MoveRangeMutation as sr, RemoveRowMutation as No, RemoveColMutation as Do, InsertRowMutation as Lo, InsertColMutation as Wo, MoveRowsMutation as Wl, MoveColsMutation as Bl, SetWorksheetColWidthMutation as an, SetWorksheetRowHeightMutation as lo, 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 ao, alignToMergedCellsBorders as xn, getSelectionsService as Bo, SelectionMoveType as Yt, getCellAtRowCol as Cs, expandToContinuousRange as QS, ScrollToCellOperation as Cd, SetWorksheetShowCommand as bd, WorksheetProtectionRuleModel as St, RangeProtectionRuleModel as et, RangeProtectionCache as Fo, WorksheetViewPermission as ag, SetWorksheetOrderMutation as _d, InsertSheetMutation as Vr, SetWorksheetNameMutation as wd, SetWorksheetHideMutation as lr, SetWorksheetActivateCommand as Rd, WorkbookManageCollaboratorPermission as cg, WorkbookRenameSheetPermission as dg, SetWorksheetOrderCommand as KS, SetWorksheetNameCommand as JS, SetTabColorMutation as $S, WorkbookCreateSheetPermission as ug, InsertSheetCommand as ev, COMMAND_LISTENER_SKELETON_CHANGE as xs, adjustRangeOnMutation as tv, getPrimaryForRange as hg, SetRowHiddenCommand as gg, SetColHiddenCommand as mg, SetBoldCommand as Id, SetItalicCommand as yd, SetUnderlineCommand as Md, SetStrikeThroughCommand as Ed, SetFontSizeCommand as Pd, SetFontFamilyCommand as Td, SetTextColorCommand as fg, SetFrozenMutationFactory as pg, SetFrozenMutation as Rr, RangeProtectionPermissionEditPoint as re, IExclusiveRangeService as nv, CancelFrozenCommand as bs, WorksheetSetRowStylePermission as Nr, SetRowHeightCommand as Sg, SetRowHiddenMutation as vg, SetRowVisibleMutation as Cg, SetSelectedRowsVisibleCommand as bg, WorksheetSetCellStylePermission as Ge, WorksheetSetCellValuePermission as Jt, WorksheetSetColumnStylePermission as Dr, SetColWidthCommand as _g, SetColHiddenMutation as wg, SetColVisibleMutation as Rg, SetSelectedColsVisibleCommand as Ig, SetTextRotationCommand as pc, SetTextWrapCommand as Sc, SetVerticalTextAlignCommand as vc, SetHorizontalTextAlignCommand as Cc, ResetBackgroundColorCommand as yg, SetBackgroundColorCommand as As, WorksheetCopyPermission as Hs, RangeProtectionPermissionViewPoint as bc, WorkbookCopyPermission as Gi, SetWorksheetRowIsAutoHeightMutation as rv, SetFrozenCommand as iv, InsertRangeMoveDownCommand as _c, InsertRangeMoveRightCommand as wc, InsertRowCommand as ov, InsertColCommand as sv, MoveColsCommand as Mg, MoveRowsCommand as Eg, RemoveColCommand as Pg, RemoveRowCommand as Tg, MergeCellController as lv, MERGE_CELL_INTERCEPTOR_CHECK as av, DeltaRowHeightCommand as cv, DeltaColumnWidthCommand as dv, COMMAND_LISTENER_VALUE_CHANGE as uv, AddMergeRedoSelectionsOperationFactory as hv, AddMergeUndoSelectionsOperationFactory as gv, DeleteRangeMoveLeftCommand as Eu, DeleteRangeMoveUpCommand as Pu, EditStateEnum as cn, ViewStateEnum as mi, UnitObject as Vt, DeleteWorksheetProtectionCommand as ks, DeleteRangeProtectionMutation as Tu, AddRangeProtectionMutation as mv, RemoveSheetCommand as fv, AddWorksheetProtectionCommand as Og, BorderStyleManagerService as Rc, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as Ic, InsertDefinedNameCommand as pv, SetDefinedNameCommand as Sv, RemoveDefinedNameCommand as vv, SetBorderBasicCommand as yc, ClearSelectionAllCommand as _s, ClearSelectionFormatCommand as eo, ClearSelectionContentCommand as oi, WorksheetDeleteRowPermission as Cv, WorksheetDeleteColumnPermission as bv, ToggleGridlinesCommand as xg, ToggleGridlinesMutation as _v, InsertMultiRowsAfterCommand as Ag, WorksheetInsertRowPermission as Uo, InsertMultiRowsAboveCommand as Od, InsertMultiColsLeftCommand as Hg, InsertColBeforeCommand as kg, WorksheetInsertColumnPermission as Vg, InsertRowBeforeCommand as Ng, RemoveWorksheetMergeCommand as Dg, WorkbookCreateProtectPermission as zl, WorksheetDeleteProtectionPermission as Lg, WorksheetManageCollaboratorPermission as wv, SetWorksheetHideCommand as Wg, SetTabColorCommand as Bg, CopySheetCommand as Fg, WorkbookDeleteSheetPermission as Rv, WorkbookHideSheetPermission as Ug, InsertMultiColsRightCommand as Iv, AddWorksheetMergeCommand as yv, AddWorksheetMergeHorizontalCommand as Mv, AddWorksheetMergeVerticalCommand as Ev, AddWorksheetMergeAllCommand as Pv, ResetTextColorCommand as Tv, RefRangeService as Ov, MAX_CELL_PER_SHEET_KEY as xv, INTERCEPTOR_POINT as Av, SheetPermissionCheckController as Xg, INumfmtService as Hv, SetProtectionCommand as kv, AddRangeProtectionCommand as Vv, setEndForRange as Nv, baseProtectionActions as Dv, DeleteRangeProtectionCommand as Lv, WorksheetProtectionPointModel as Wv, SetWorksheetPermissionPointsCommand as Bv, getAllWorksheetPermissionPoint as Fv, convertSelectionDataToRange as zg, UniverSheetsPlugin as jg, RefSelectionsService as Yg, ToggleCellCheckboxCommand as Uv, SheetPermissionInitController as Xv, SetSpecificRowsVisibleCommand as zv, SetSpecificColsVisibleCommand as jv } from "@univerjs/sheets";
|
|
11
11
|
import { DocSkeletonManagerService as ir, DocSelectionManagerService as xd, RichTextEditingMutation as Vs, SetTextSelectionsOperation as Xo } from "@univerjs/docs";
|
|
12
12
|
import { IDefinedNamesService as zo, FUNCTION_NAMES_STATISTICAL as Xe, FUNCTION_NAMES_MATH as jl, FUNCTION_NAMES_TEXT as Yv, sequenceNodeType as _a, matchToken as Zg, LexerTreeBuilder as Gg, IFunctionService as qg, SetFormulaCalculationNotificationMutation as Zv, operatorToken as Qr, isReferenceStrings as Qg, isReferenceStringWithEffectiveColumn as Gv, serializeRangeWithSheet as Kg, NullValueObject as Ou, serializeRange as Jg, deserializeRangeWithSheet as $g } from "@univerjs/engine-formula";
|
|
13
13
|
import { isTextFormat as qv } from "@univerjs/engine-numfmt";
|
|
14
|
-
import { jsx as
|
|
14
|
+
import { jsx as w, jsxs as q, Fragment as Mr } from "react/jsx-runtime";
|
|
15
15
|
import { DropdownMenu as em, clsx as qe, Dropdown as Ns, DropdownLegacy as Qv, Tooltip as er, MessageType as tm, InputNumber as Kv, Separator as Jv, ColorPicker as Ad, Input as Ds, RadioGroup as Mc, Radio as ei, Select as nm, Button as pn, Confirm as $v, FormLayout as Ls, Avatar as Hd, Switch as eC } from "@univerjs/design";
|
|
16
16
|
import { finalize as tC, switchMap as Hn, startWith as nC, map as Sn, debounceTime as Yl, filter as rm } from "rxjs/operators";
|
|
17
17
|
import { ITelemetryService as rC } from "@univerjs/telemetry";
|
|
@@ -92,19 +92,19 @@ function Er(r) {
|
|
|
92
92
|
}
|
|
93
93
|
class oC {
|
|
94
94
|
constructor() {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
_(this, "_startColumn", -1);
|
|
96
|
+
_(this, "_startRow", -1);
|
|
97
|
+
_(this, "_endColumn", -1);
|
|
98
|
+
_(this, "_endRow", -1);
|
|
99
|
+
_(this, "_startX", 0);
|
|
100
|
+
_(this, "_startY", 0);
|
|
101
|
+
_(this, "_endX", 0);
|
|
102
|
+
_(this, "_endY", 0);
|
|
103
103
|
/**
|
|
104
104
|
* The highlight cell of a selection. aka: current cell
|
|
105
105
|
*/
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
_(this, "_primary");
|
|
107
|
+
_(this, "_rangeType", z.NORMAL);
|
|
108
108
|
}
|
|
109
109
|
get startColumn() {
|
|
110
110
|
return this._startColumn;
|
|
@@ -255,21 +255,21 @@ function Bs(r, e) {
|
|
|
255
255
|
const Hu = "__SpreadsheetHelperSelectionTempRect", sC = 35;
|
|
256
256
|
class lC {
|
|
257
257
|
constructor(e, t) {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
258
|
+
_(this, "_startOffsetX", 0);
|
|
259
|
+
_(this, "_startOffsetY", 0);
|
|
260
|
+
_(this, "_relativeSelectionPositionRow", 0);
|
|
261
|
+
_(this, "_relativeSelectionPositionColumn", 0);
|
|
262
|
+
_(this, "_relativeSelectionRowLength", 0);
|
|
263
|
+
_(this, "_relativeSelectionColumnLength", 0);
|
|
264
|
+
_(this, "_scenePointerMoveSub");
|
|
265
|
+
_(this, "_scenePointerUpSub");
|
|
266
266
|
/**
|
|
267
267
|
* The shadow selection under cursor when move whole selection control(for moving normal selection)
|
|
268
268
|
*/
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
269
|
+
_(this, "_helperSelection");
|
|
270
|
+
_(this, "_scrollTimer");
|
|
271
|
+
_(this, "_activeViewport");
|
|
272
|
+
_(this, "_targetSelection", {
|
|
273
273
|
startY: 0,
|
|
274
274
|
endY: 0,
|
|
275
275
|
startX: 0,
|
|
@@ -279,13 +279,13 @@ class lC {
|
|
|
279
279
|
startColumn: -1,
|
|
280
280
|
endColumn: -1
|
|
281
281
|
});
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
282
|
+
_(this, "_isInMergeState", !1);
|
|
283
|
+
_(this, "_fillControlColors", []);
|
|
284
|
+
_(this, "_skeleton");
|
|
285
|
+
_(this, "_scene");
|
|
286
|
+
_(this, "_themeService");
|
|
287
|
+
_(this, "_injector");
|
|
288
|
+
_(this, "_selectionHooks");
|
|
289
289
|
this._control = e, this._skeleton = t.skeleton, this._scene = t.scene, this._themeService = t.themeService, this._injector = t.injector, this._selectionHooks = t.selectionHooks, this._initialControl(), this._initialWidget(), this._initialAutoFill(), this._control.dispose$.subscribe(() => {
|
|
290
290
|
this.dispose();
|
|
291
291
|
});
|
|
@@ -730,70 +730,70 @@ class Ld extends ae {
|
|
|
730
730
|
constructor(t, n, i, o) {
|
|
731
731
|
var s, l, a, c;
|
|
732
732
|
super();
|
|
733
|
-
|
|
733
|
+
_(this, "_isHelperSelection", !0);
|
|
734
734
|
/**
|
|
735
735
|
* For ref selections, there is no auto fill.
|
|
736
736
|
*/
|
|
737
|
-
|
|
737
|
+
_(this, "_enableAutoFill", !0);
|
|
738
738
|
/**
|
|
739
739
|
* Only normal selections with primary cell has auto fill.
|
|
740
740
|
* This works for multiple normal selections. Only last selection has primary cell and auto fill.
|
|
741
741
|
*/
|
|
742
|
-
|
|
742
|
+
_(this, "_showAutoFill", !1);
|
|
743
743
|
/**
|
|
744
744
|
* If rowHeader & col Header would be highlighted with selection.
|
|
745
745
|
*/
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
746
|
+
_(this, "_highlightHeader", !0);
|
|
747
|
+
_(this, "_selectionRenderModel");
|
|
748
|
+
_(this, "_leftBorder");
|
|
749
|
+
_(this, "_rightBorder");
|
|
750
|
+
_(this, "_topBorder");
|
|
751
|
+
_(this, "_bottomBorder");
|
|
752
|
+
_(this, "_backgroundControlTop");
|
|
753
|
+
_(this, "_backgroundControlBottom");
|
|
754
|
+
_(this, "_backgroundControlMiddleLeft");
|
|
755
|
+
_(this, "_backgroundControlMiddleRight");
|
|
756
|
+
_(this, "_autoFillControl");
|
|
757
|
+
_(this, "_selectionShapeGroup");
|
|
758
|
+
_(this, "_rowHeaderBackground");
|
|
759
|
+
_(this, "_rowHeaderBorder");
|
|
760
|
+
_(this, "_rowHeaderGroup");
|
|
761
|
+
_(this, "_columnHeaderBackground");
|
|
762
|
+
_(this, "_columnHeaderBorder");
|
|
763
|
+
_(this, "_columnHeaderGroup");
|
|
764
|
+
_(this, "_dashedRect");
|
|
765
765
|
// for ref selection
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
766
|
+
_(this, "_topLeftWidget");
|
|
767
|
+
_(this, "_topCenterWidget");
|
|
768
|
+
_(this, "_topRightWidget");
|
|
769
|
+
_(this, "_middleLeftWidget");
|
|
770
|
+
_(this, "_middleRightWidget");
|
|
771
|
+
_(this, "_bottomLeftWidget");
|
|
772
|
+
_(this, "_bottomCenterWidget");
|
|
773
|
+
_(this, "_bottomRightWidget");
|
|
774
774
|
// why three style prop? what's diff between _selectionStyle & _currentStyle?
|
|
775
775
|
// protected _selectionStyle: Nullable<ISelectionStyle>;
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
776
|
+
_(this, "_defaultStyle");
|
|
777
|
+
_(this, "_currentStyle");
|
|
778
|
+
_(this, "_rowHeaderWidth", 0);
|
|
779
|
+
_(this, "_columnHeaderHeight", 0);
|
|
780
|
+
_(this, "_widgetRects", []);
|
|
781
|
+
_(this, "_controlExtension");
|
|
782
|
+
_(this, "_dispose$", new Me(this));
|
|
783
|
+
_(this, "dispose$", this._dispose$.asObservable());
|
|
784
784
|
/**
|
|
785
785
|
* eventSource: selectionShapeExtension selectionMoving$.next,
|
|
786
786
|
* Observer: prompt.controller
|
|
787
787
|
*/
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
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
|
+
_(this, "selectionFilled$", this._selectionFilled$.asObservable());
|
|
795
|
+
_(this, "_antLineOffset", 0);
|
|
796
|
+
_(this, "_antRequestNewFrame", -1);
|
|
797
797
|
this._scene = t, this._zIndex = n, this._themeService = i, this._enableAutoFill = (s = o == null ? void 0 : o.enableAutoFill) != null ? s : !0, this._highlightHeader = (l = o == null ? void 0 : o.highlightHeader) != null ? l : !0, this._rowHeaderWidth = (a = o == null ? void 0 : o.rowHeaderWidth) != null ? a : 0, this._columnHeaderHeight = (c = o == null ? void 0 : o.columnHeaderHeight) != null ? c : 0, this._initializeSheetBody(), this._initialHeader();
|
|
798
798
|
}
|
|
799
799
|
_initializeSheetBody() {
|
|
@@ -841,7 +841,7 @@ class Ld extends ae {
|
|
|
841
841
|
this._widgetRects = this._initialWidget(), this._selectionShapeGroup = new Ca("__SpreadsheetSelectionShape__" + t, ...n, ...this._widgetRects), this._selectionShapeGroup.hide(), this._selectionShapeGroup.evented = !1, this._selectionShapeGroup.zIndex = t;
|
|
842
842
|
const i = this.getScene();
|
|
843
843
|
i.addObject(this._selectionShapeGroup, Ws), this.disposeWithMe(
|
|
844
|
-
|
|
844
|
+
Fe(
|
|
845
845
|
i.onTransformChange$.subscribeEvent((o) => {
|
|
846
846
|
o.type === fc.scale && (this._updateLayoutOfSelectionControl(this._currentStyle), this._updateControlCoord());
|
|
847
847
|
})
|
|
@@ -1354,14 +1354,14 @@ const lt = vn("univer.sheet.selection-render-service");
|
|
|
1354
1354
|
class sm extends ae {
|
|
1355
1355
|
constructor(t, n, i, o, s) {
|
|
1356
1356
|
super();
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1357
|
+
_(this, "_downObserver");
|
|
1358
|
+
_(this, "_scenePointerMoveSub");
|
|
1359
|
+
_(this, "_scenePointerUpSub");
|
|
1360
|
+
_(this, "_controlFillConfig$", new Me(null));
|
|
1361
|
+
_(this, "controlFillConfig$", this._controlFillConfig$.asObservable());
|
|
1362
|
+
_(this, "_selectionControls", []);
|
|
1363
1363
|
// sheetID:Controls
|
|
1364
|
-
|
|
1364
|
+
_(this, "_startRangeWhenPointerDown", {
|
|
1365
1365
|
startY: 0,
|
|
1366
1366
|
endY: 0,
|
|
1367
1367
|
startX: 0,
|
|
@@ -1371,59 +1371,59 @@ class sm extends ae {
|
|
|
1371
1371
|
startColumn: -1,
|
|
1372
1372
|
endColumn: -1
|
|
1373
1373
|
});
|
|
1374
|
-
|
|
1374
|
+
_(this, "_activeControlIndex", -1);
|
|
1375
1375
|
/**
|
|
1376
1376
|
* the posX of viewport when the pointer down
|
|
1377
1377
|
*/
|
|
1378
|
-
|
|
1378
|
+
_(this, "_startViewportPosX", 0);
|
|
1379
1379
|
/**
|
|
1380
1380
|
* the posY of viewport when the pointer down
|
|
1381
1381
|
*/
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1382
|
+
_(this, "_startViewportPosY", 0);
|
|
1383
|
+
_(this, "_scrollTimer");
|
|
1384
|
+
_(this, "_cancelDownSubscription");
|
|
1385
|
+
_(this, "_cancelUpSubscription");
|
|
1386
|
+
_(this, "_skeleton");
|
|
1387
1387
|
/**
|
|
1388
1388
|
* From renderContext.
|
|
1389
1389
|
*/
|
|
1390
|
-
|
|
1390
|
+
_(this, "_scene");
|
|
1391
1391
|
// The type of selector determines the type of data range and the highlighting style of the title bar, now it always true. In future, this could be configurable by user.
|
|
1392
|
-
|
|
1392
|
+
_(this, "_highlightHeader", !0);
|
|
1393
1393
|
// protected _shouldDetectMergedCells: boolean = true;
|
|
1394
|
-
|
|
1394
|
+
_(this, "_rangeType", z.NORMAL);
|
|
1395
1395
|
// The style of the selection area, including dashed lines, color, thickness, autofill, other points for modifying the range of the selection area, title highlighting, and so on, can all be customized.
|
|
1396
|
-
|
|
1396
|
+
_(this, "_selectionStyle");
|
|
1397
1397
|
// #region ref range selection
|
|
1398
1398
|
// we put the properties here for simplicity
|
|
1399
1399
|
// Used in the formula selection feature, a new selection string is added by drawing a box with the mouse.
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1400
|
+
_(this, "_remainLastEnabled", !1);
|
|
1401
|
+
_(this, "_skipLastEnabled", !1);
|
|
1402
|
+
_(this, "_singleSelectionEnabled", !1);
|
|
1403
1403
|
// #endregion
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Mainly emit by pointerup in spreadsheet. (pointerup is handled in _onPointerdown)
|
|
1406
1406
|
*/
|
|
1407
|
-
|
|
1407
|
+
_(this, "_selectionMoveEnd$", new Me([]));
|
|
1408
1408
|
/**
|
|
1409
1409
|
* Pointerup in spreadsheet
|
|
1410
1410
|
*/
|
|
1411
|
-
|
|
1411
|
+
_(this, "selectionMoveEnd$", this._selectionMoveEnd$.asObservable());
|
|
1412
1412
|
/**
|
|
1413
1413
|
* Mainly emit by pointermove in spreadsheet
|
|
1414
1414
|
*/
|
|
1415
|
-
|
|
1415
|
+
_(this, "_selectionMoving$", new Ae());
|
|
1416
1416
|
/**
|
|
1417
1417
|
* Pointermove in spreadsheet
|
|
1418
1418
|
*/
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1419
|
+
_(this, "selectionMoving$", this._selectionMoving$.asObservable());
|
|
1420
|
+
_(this, "_selectionMoveStart$", new Ae());
|
|
1421
|
+
_(this, "selectionMoveStart$", this._selectionMoveStart$.asObservable());
|
|
1422
|
+
_(this, "_selectionMoving", !1);
|
|
1423
|
+
_(this, "_selectionTheme");
|
|
1424
|
+
_(this, "_activeViewport");
|
|
1425
|
+
_(this, "interceptor", new yi({ RANGE_MOVE_PERMISSION_CHECK: Pc, RANGE_FILL_PERMISSION_CHECK: Tc }));
|
|
1426
|
+
_(this, "_escapeShortcutDisposable", null);
|
|
1427
1427
|
this._injector = t, this._themeService = n, this._shortcutService = i, this._sheetSkeletonManagerService = o, this.contextService = s, this._initSelectionThemeFromThemeService(), this._initMoving();
|
|
1428
1428
|
}
|
|
1429
1429
|
get selectionMoving() {
|
|
@@ -1859,16 +1859,16 @@ var dC = Object.getOwnPropertyDescriptor, uC = (r, e, t, n) => {
|
|
|
1859
1859
|
let he = class extends ae {
|
|
1860
1860
|
constructor(e, t, n) {
|
|
1861
1861
|
super();
|
|
1862
|
-
|
|
1862
|
+
_(this, "_sheetId", "");
|
|
1863
1863
|
// @TODO lumixraku, why need this? How about put dirty & sheetId & unitId in skeleton itself?
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1864
|
+
_(this, "_sheetSkeletonParamStore", /* @__PURE__ */ new Map());
|
|
1865
|
+
_(this, "_currentSkeleton$", new Me(null));
|
|
1866
|
+
_(this, "currentSkeleton$", this._currentSkeleton$.asObservable());
|
|
1867
1867
|
/**
|
|
1868
1868
|
* CurrentSkeletonBefore for pre-triggered logic during registration
|
|
1869
1869
|
*/
|
|
1870
|
-
|
|
1871
|
-
|
|
1870
|
+
_(this, "_currentSkeletonBefore$", new Me(null));
|
|
1871
|
+
_(this, "currentSkeletonBefore$", this._currentSkeletonBefore$.asObservable());
|
|
1872
1872
|
this._context = e, this._injector = t, this._sheetSkService = n, this.disposeWithMe(() => {
|
|
1873
1873
|
this._currentSkeletonBefore$.complete(), this._currentSkeleton$.complete(), this._sheetSkeletonParamStore.forEach((i) => this.disposeSkeleton(i.sheetId)), this._sheetSkeletonParamStore.clear();
|
|
1874
1874
|
}), this._initRemoveSheet();
|
|
@@ -2074,7 +2074,7 @@ function OE() {
|
|
|
2074
2074
|
r.getTypeOfUnitAdded$(x.UNIVER_SHEET),
|
|
2075
2075
|
r.getTypeOfUnitDisposed$(x.UNIVER_SHEET)
|
|
2076
2076
|
]).pipe(
|
|
2077
|
-
|
|
2077
|
+
Be(() => r.getAllUnitsForType(x.UNIVER_SHEET)),
|
|
2078
2078
|
Gt(r.getAllUnitsForType(x.UNIVER_SHEET))
|
|
2079
2079
|
), [], void 0, [r]);
|
|
2080
2080
|
}
|
|
@@ -2106,7 +2106,7 @@ let uo = class extends ae {
|
|
|
2106
2106
|
const { _univerInstanceService: t, _configService: n } = this, i = t.getCurrentUnitForType(x.UNIVER_SHEET), o = i.getUnitId();
|
|
2107
2107
|
let s = i.getActiveSheet(), l = s.getSheetId();
|
|
2108
2108
|
if (e) {
|
|
2109
|
-
const v =
|
|
2109
|
+
const v = Ue(t, { unitId: o, subUnitId: e });
|
|
2110
2110
|
v && (s = v.worksheet, l = s.getSheetId());
|
|
2111
2111
|
}
|
|
2112
2112
|
const c = this._renderManagerService.getRenderById(o).with(he).ensureSkeleton(l);
|
|
@@ -2885,18 +2885,18 @@ var VC = Object.getOwnPropertyDescriptor, NC = (r, e, t, n) => {
|
|
|
2885
2885
|
let Xs = class extends ae {
|
|
2886
2886
|
constructor(e, t, n, i, o, s) {
|
|
2887
2887
|
super();
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2888
|
+
_(this, "_rules", []);
|
|
2889
|
+
_(this, "_hooks", []);
|
|
2890
|
+
_(this, "_applyType$", new Me(De.SERIES));
|
|
2891
|
+
_(this, "_isFillingStyle", !0);
|
|
2892
|
+
_(this, "_prevUndos", []);
|
|
2893
|
+
_(this, "_autoFillLocation$", new Me(null));
|
|
2894
|
+
_(this, "autoFillLocation$", this._autoFillLocation$.asObservable());
|
|
2895
|
+
_(this, "_showMenu$", new Me(!1));
|
|
2896
|
+
_(this, "showMenu$", this._showMenu$.asObservable());
|
|
2897
|
+
_(this, "_direction", W.DOWN);
|
|
2898
|
+
_(this, "applyType$", this._applyType$.asObservable());
|
|
2899
|
+
_(this, "_menu$", new Me([
|
|
2900
2900
|
{
|
|
2901
2901
|
label: "autoFill.copy",
|
|
2902
2902
|
value: De.COPY,
|
|
@@ -2918,7 +2918,7 @@ let Xs = class extends ae {
|
|
|
2918
2918
|
disable: !1
|
|
2919
2919
|
}
|
|
2920
2920
|
]));
|
|
2921
|
-
|
|
2921
|
+
_(this, "menu$", this._menu$.asObservable());
|
|
2922
2922
|
this._commandService = e, this._undoRedoService = t, this._renderManagerService = n, this._univerInstanceService = i, this._selectionManagerService = o, this._injector = s, this._init();
|
|
2923
2923
|
}
|
|
2924
2924
|
_init() {
|
|
@@ -3009,7 +3009,7 @@ let Xs = class extends ae {
|
|
|
3009
3009
|
addHook(e) {
|
|
3010
3010
|
if (this._hooks.find((t) => t.id === e.id))
|
|
3011
3011
|
throw new Error(`Add hook failed, hook id '${e.id}' already exist!`);
|
|
3012
|
-
return e.priority === void 0 && (e.priority = 0), e.type === void 0 && (e.type = ti.Append), this._hooks.push(e),
|
|
3012
|
+
return e.priority === void 0 && (e.priority = 0), e.type === void 0 && (e.type = ti.Append), this._hooks.push(e), Fe(() => {
|
|
3013
3013
|
const t = this._hooks.findIndex((n) => n === e);
|
|
3014
3014
|
t > -1 && this._hooks.splice(t, 1);
|
|
3015
3015
|
});
|
|
@@ -3153,7 +3153,7 @@ const Lr = vn("univer.auto-fill-service"), br = {
|
|
|
3153
3153
|
type: Q.COMMAND,
|
|
3154
3154
|
id: "sheet.command.auto-fill",
|
|
3155
3155
|
handler: async (r, e) => {
|
|
3156
|
-
const t = r.get(Lr), n = r.get(N), { sourceRange: i, targetRange: o } = e, s =
|
|
3156
|
+
const t = r.get(Lr), n = r.get(N), { sourceRange: i, targetRange: o } = e, s = Ue(n);
|
|
3157
3157
|
if (!s) return !1;
|
|
3158
3158
|
const { subUnitId: l, unitId: a } = s;
|
|
3159
3159
|
return t.triggerAutoFill(a, l, i, o);
|
|
@@ -3162,7 +3162,7 @@ const Lr = vn("univer.auto-fill-service"), br = {
|
|
|
3162
3162
|
id: "sheet.command.auto-clear-content",
|
|
3163
3163
|
type: Q.COMMAND,
|
|
3164
3164
|
handler: async (r, e) => {
|
|
3165
|
-
const t = r.get(N), n = r.get(D), i = r.get(qt), o = r.get(zn), s =
|
|
3165
|
+
const t = r.get(N), n = r.get(D), i = r.get(qt), o = r.get(zn), s = Ue(t);
|
|
3166
3166
|
if (!s) return !1;
|
|
3167
3167
|
const { unitId: l, subUnitId: a } = s, { clearRange: c, selectionRange: d } = e, u = {
|
|
3168
3168
|
subUnitId: a,
|
|
@@ -3220,32 +3220,32 @@ var DC = Object.getOwnPropertyDescriptor, LC = (r, e, t, n) => {
|
|
|
3220
3220
|
let Hc = class extends ae {
|
|
3221
3221
|
constructor(e, t, n, i, o, s, l) {
|
|
3222
3222
|
super();
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3223
|
+
_(this, "_editorUnitId", We);
|
|
3224
|
+
_(this, "_editorIsDirty", !1);
|
|
3225
|
+
_(this, "_isDisabled", !1);
|
|
3226
|
+
_(this, "_visible", {
|
|
3227
3227
|
visible: !1,
|
|
3228
3228
|
eventType: Ye.Dblclick,
|
|
3229
3229
|
unitId: ""
|
|
3230
3230
|
});
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3231
|
+
_(this, "_currentEditCell", null);
|
|
3232
|
+
_(this, "_currentEditCellState", null);
|
|
3233
|
+
_(this, "_currentEditCellLayout", null);
|
|
3234
3234
|
// TODO: @weird94 this should split into to subjects, documentDataModel & position
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
ct((e) => this._currentEditCellLayout$.pipe(
|
|
3235
|
+
_(this, "_currentEditCellState$", new Me(null));
|
|
3236
|
+
_(this, "currentEditCellState$", this._currentEditCellState$.asObservable());
|
|
3237
|
+
_(this, "_currentEditCellLayout$", new Me(null));
|
|
3238
|
+
_(this, "currentEditCellLayout$", this._currentEditCellLayout$.asObservable());
|
|
3239
|
+
_(this, "currentEditCell$", this._currentEditCellState$.pipe(
|
|
3240
|
+
ct((e) => this._currentEditCellLayout$.pipe(Be((t) => e && t ? { ...e, ...t } : null)))
|
|
3241
3241
|
));
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
this._sheetInterceptorService = e, this._renderManagerService = t, this._themeService = n, this._univerInstanceService = i, this._editorService = o, this._refSelectionsService = s, this._contextService = l, this.disposeWithMe(
|
|
3242
|
+
_(this, "_visible$", new Me(this._visible));
|
|
3243
|
+
_(this, "visible$", this._visible$.asObservable());
|
|
3244
|
+
_(this, "_afterVisible$", new Me(this._visible));
|
|
3245
|
+
_(this, "afterVisible$", this._afterVisible$.asObservable());
|
|
3246
|
+
_(this, "_forceKeepVisible$", new Me(!1));
|
|
3247
|
+
_(this, "forceKeepVisible$", this._forceKeepVisible$.asObservable());
|
|
3248
|
+
this._sheetInterceptorService = e, this._renderManagerService = t, this._themeService = n, this._univerInstanceService = i, this._editorService = o, this._refSelectionsService = s, this._contextService = l, this.disposeWithMe(Fe(() => {
|
|
3249
3249
|
this._currentEditCellState$.complete(), this._currentEditCell = null;
|
|
3250
3250
|
})), this._univerInstanceService.getTypeOfUnitDisposed$(x.UNIVER_SHEET).subscribe((a) => {
|
|
3251
3251
|
var c;
|
|
@@ -3469,7 +3469,7 @@ const it = vn("univer.sheet-editor-bridge.service"), at = {
|
|
|
3469
3469
|
handler: (r, e) => {
|
|
3470
3470
|
if (!e)
|
|
3471
3471
|
return !1;
|
|
3472
|
-
const t = r.get(N), n =
|
|
3472
|
+
const t = r.get(N), n = Ue(t);
|
|
3473
3473
|
if (!n) return !1;
|
|
3474
3474
|
const { worksheet: i, subUnitId: o, unitId: s } = n, { delta: l, reset: a } = e;
|
|
3475
3475
|
let c = a ? 100 : Math.round((i.getConfig().zoomRatio + l) * 100);
|
|
@@ -3554,7 +3554,7 @@ var BC = Object.getOwnPropertyDescriptor, FC = (r, e, t, n) => {
|
|
|
3554
3554
|
let go = class extends ae {
|
|
3555
3555
|
constructor(e, t, n, i, o) {
|
|
3556
3556
|
super();
|
|
3557
|
-
|
|
3557
|
+
_(this, "_zoom");
|
|
3558
3558
|
this._context = e, this._sheetSkeletonManagerService = t, this._commandService = n, this._contextService = i, this._editorBridgeService = o, this._initSkeletonListener(), this._initZoomEventListener();
|
|
3559
3559
|
}
|
|
3560
3560
|
updateZoom(e, t) {
|
|
@@ -3633,7 +3633,7 @@ const Uu = "univer-sheet-main-canvas";
|
|
|
3633
3633
|
let xr = class extends Un {
|
|
3634
3634
|
constructor(e, t, n) {
|
|
3635
3635
|
super();
|
|
3636
|
-
|
|
3636
|
+
_(this, "_skeletonChangeMutations", /* @__PURE__ */ new Set());
|
|
3637
3637
|
this._contextService = e, this._instanceSrv = t, this._renderManagerService = n, Promise.resolve().then(() => this._init());
|
|
3638
3638
|
}
|
|
3639
3639
|
/**
|
|
@@ -3643,8 +3643,8 @@ let xr = class extends Un {
|
|
|
3643
3643
|
* @returns a disposable to unregister the mutation
|
|
3644
3644
|
*/
|
|
3645
3645
|
registerSkeletonChangingMutations(e) {
|
|
3646
|
-
return this._skeletonChangeMutations.has(e) ?
|
|
3647
|
-
}) : (this._skeletonChangeMutations.add(e),
|
|
3646
|
+
return this._skeletonChangeMutations.has(e) ? Fe(() => {
|
|
3647
|
+
}) : (this._skeletonChangeMutations.add(e), Fe(() => this._skeletonChangeMutations.delete(e)));
|
|
3648
3648
|
}
|
|
3649
3649
|
/**
|
|
3650
3650
|
* Examine if a mutation would make the skeleton to change.
|
|
@@ -3689,10 +3689,10 @@ var zC = Object.getOwnPropertyDescriptor, jC = (r, e, t, n) => {
|
|
|
3689
3689
|
let zs = class extends ae {
|
|
3690
3690
|
constructor(e, t, n, i, o, s, l) {
|
|
3691
3691
|
super();
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3692
|
+
_(this, "_beforeApplyData", []);
|
|
3693
|
+
_(this, "_currentLocation", null);
|
|
3694
|
+
_(this, "_copyData", []);
|
|
3695
|
+
_(this, "_defaultHook");
|
|
3696
3696
|
this._univerInstanceService = e, this._commandService = t, this._autoFillService = n, this._editorBridgeService = i, this._renderManagerService = o, this._injector = s, this._sheetsRenderService = l, this._defaultHook = {
|
|
3697
3697
|
id: "default",
|
|
3698
3698
|
type: ti.Default,
|
|
@@ -4124,7 +4124,7 @@ var YC = Object.getOwnPropertyDescriptor, ZC = (r, e, t, n) => {
|
|
|
4124
4124
|
let js = class extends ae {
|
|
4125
4125
|
constructor(e, t, n, i) {
|
|
4126
4126
|
super();
|
|
4127
|
-
|
|
4127
|
+
_(this, "_enterActiveRender");
|
|
4128
4128
|
this._context = e, this._sheetSkeletonManagerService = t, this._renderManagerService = n, this._permissionService = i, this._initEventBinding();
|
|
4129
4129
|
}
|
|
4130
4130
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -4222,8 +4222,8 @@ js = ZC([
|
|
|
4222
4222
|
class Bd extends ae {
|
|
4223
4223
|
constructor() {
|
|
4224
4224
|
super(...arguments);
|
|
4225
|
-
|
|
4226
|
-
|
|
4225
|
+
_(this, "rangesStack", []);
|
|
4226
|
+
_(this, "selectedRangeWorksheet", "");
|
|
4227
4227
|
}
|
|
4228
4228
|
}
|
|
4229
4229
|
var GC = Object.getOwnPropertyDescriptor, qC = (r, e, t, n) => {
|
|
@@ -4233,8 +4233,8 @@ var GC = Object.getOwnPropertyDescriptor, qC = (r, e, t, n) => {
|
|
|
4233
4233
|
}, Xu = (r, e) => (t, n) => e(t, n, r);
|
|
4234
4234
|
let Si = class {
|
|
4235
4235
|
constructor(r, e) {
|
|
4236
|
-
|
|
4237
|
-
|
|
4236
|
+
_(this, "_current", null);
|
|
4237
|
+
_(this, "_shortcutParam", []);
|
|
4238
4238
|
this._univerInstanceService = r, this._localeService = e;
|
|
4239
4239
|
}
|
|
4240
4240
|
dispose() {
|
|
@@ -4646,7 +4646,7 @@ const Bt = {
|
|
|
4646
4646
|
handler: (r, e) => {
|
|
4647
4647
|
if (!e)
|
|
4648
4648
|
return !1;
|
|
4649
|
-
const t =
|
|
4649
|
+
const t = Ue(r.get(N));
|
|
4650
4650
|
if (!t) return !1;
|
|
4651
4651
|
const { workbook: n, worksheet: i } = t, o = Bo(r, e.fromCurrentSelection).getCurrentLastSelection();
|
|
4652
4652
|
if (!o)
|
|
@@ -4692,7 +4692,7 @@ const Bt = {
|
|
|
4692
4692
|
var k;
|
|
4693
4693
|
if (!e)
|
|
4694
4694
|
return !1;
|
|
4695
|
-
const t =
|
|
4695
|
+
const t = Ue(r.get(N));
|
|
4696
4696
|
if (!t) return !1;
|
|
4697
4697
|
const { workbook: n, worksheet: i } = t, o = Bo(r), { direction: s, keycode: l } = e, a = s === W.LEFT || s === W.UP, c = o.getCurrentSelections().concat(), d = c.findIndex((F) => F.primary), u = c[d];
|
|
4698
4698
|
if (!u)
|
|
@@ -4798,7 +4798,7 @@ const Bt = {
|
|
|
4798
4798
|
type: Q.COMMAND,
|
|
4799
4799
|
handler: (r, e) => {
|
|
4800
4800
|
if (!e) return !1;
|
|
4801
|
-
const t =
|
|
4801
|
+
const t = Ue(r.get(N));
|
|
4802
4802
|
if (!t) return !1;
|
|
4803
4803
|
const { worksheet: n, unitId: i, subUnitId: o } = t, s = Bo(r).getCurrentLastSelection();
|
|
4804
4804
|
if (!s) return !1;
|
|
@@ -4827,7 +4827,7 @@ const Bt = {
|
|
|
4827
4827
|
id: "sheet.command.select-all",
|
|
4828
4828
|
type: Q.COMMAND,
|
|
4829
4829
|
handler: async (r, e = { expandToGapFirst: !0, loop: !1 }) => {
|
|
4830
|
-
const t =
|
|
4830
|
+
const t = Ue(r.get(N));
|
|
4831
4831
|
if (!t) return !1;
|
|
4832
4832
|
const n = Bo(r).getCurrentLastSelection();
|
|
4833
4833
|
if (!n) return !1;
|
|
@@ -4868,27 +4868,27 @@ let Tt = class {
|
|
|
4868
4868
|
/**
|
|
4869
4869
|
* a map holds all scroll info for each sheet(valid value)
|
|
4870
4870
|
*/
|
|
4871
|
-
|
|
4871
|
+
_(this, "_scrollStateMap", /* @__PURE__ */ new Map());
|
|
4872
4872
|
/**
|
|
4873
4873
|
* a subject for current sheet scrollInfo, no limit by viewport.
|
|
4874
4874
|
*/
|
|
4875
|
-
|
|
4875
|
+
_(this, "_rawScrollInfo$", new Me(null));
|
|
4876
4876
|
/**
|
|
4877
4877
|
* a subject for current sheet scrollInfo ( events, ex wheel event and point events add deltaXY to rawScrollInfo$)
|
|
4878
4878
|
*/
|
|
4879
|
-
|
|
4879
|
+
_(this, "rawScrollInfo$", this._rawScrollInfo$.asObservable());
|
|
4880
4880
|
/**
|
|
4881
4881
|
* a subject for current valid scrollInfo, viewport@_scrollCore would limit rawScrollInfo$ exclude negative value or over max value.
|
|
4882
4882
|
* use this subject not rawScrollInfo$ when get scrolling state of viewport.
|
|
4883
4883
|
* The value of this subject is the same as the value of onScrollAfter$
|
|
4884
4884
|
*
|
|
4885
4885
|
*/
|
|
4886
|
-
|
|
4886
|
+
_(this, "validViewportScrollInfo$", new Me(null));
|
|
4887
4887
|
/**
|
|
4888
4888
|
* a subject for current valid scrollInfo, viewport@_scrollCore would limit rawScrollInfo$ exclude negative value or over max value.
|
|
4889
4889
|
* use this subject not rawScrollInfo$ when get scrolling state of viewport.
|
|
4890
4890
|
*/
|
|
4891
|
-
|
|
4891
|
+
_(this, "_searchParamForScroll", null);
|
|
4892
4892
|
this._context = r, this._sheetSkeletonManagerService = e;
|
|
4893
4893
|
}
|
|
4894
4894
|
dispose() {
|
|
@@ -5016,7 +5016,7 @@ const hn = {
|
|
|
5016
5016
|
// offsetXY derived from mouse wheel event
|
|
5017
5017
|
// this._commandService.executeCommand(SetScrollRelativeCommand.id, { offsetY });
|
|
5018
5018
|
handler: async (r, e) => {
|
|
5019
|
-
const t = r.get(D), n = r.get(N), i = r.get(be), o =
|
|
5019
|
+
const t = r.get(D), n = r.get(N), i = r.get(be), o = Ue(n);
|
|
5020
5020
|
if (!o) return !1;
|
|
5021
5021
|
const { unitId: s, subUnitId: l } = o, c = i.getRenderById(s).with(Tt).getCurrentScrollState(), { offsetX: d = 0, offsetY: u = 0 } = e || {}, {
|
|
5022
5022
|
sheetViewStartRow: h = 0,
|
|
@@ -5043,7 +5043,7 @@ const hn = {
|
|
|
5043
5043
|
handler: (r, e) => {
|
|
5044
5044
|
if (!e)
|
|
5045
5045
|
return !1;
|
|
5046
|
-
const t = r.get(N), n = r.get(be), i =
|
|
5046
|
+
const t = r.get(N), n = r.get(be), i = Ue(t);
|
|
5047
5047
|
if (!i) return !1;
|
|
5048
5048
|
const { workbook: o, worksheet: s, unitId: l } = i, c = n.getRenderById(l).with(Tt).getCurrentScrollState();
|
|
5049
5049
|
if (!s)
|
|
@@ -5077,7 +5077,7 @@ const hn = {
|
|
|
5077
5077
|
id: "sheet.command.scroll-view-reset",
|
|
5078
5078
|
type: Q.COMMAND,
|
|
5079
5079
|
handler: async (r) => {
|
|
5080
|
-
const e = r.get(N), t =
|
|
5080
|
+
const e = r.get(N), t = Ue(e);
|
|
5081
5081
|
if (!t) return !1;
|
|
5082
5082
|
const { subUnitId: n, unitId: i } = t;
|
|
5083
5083
|
return r.get(D).executeCommand(hn.id, {
|
|
@@ -5120,7 +5120,7 @@ let po = class extends ae {
|
|
|
5120
5120
|
if (r == null) return;
|
|
5121
5121
|
const e = r.getViewport(U.VIEW_MAIN);
|
|
5122
5122
|
e && (this.disposeWithMe(
|
|
5123
|
-
|
|
5123
|
+
Fe(
|
|
5124
5124
|
this._scrollManagerService.rawScrollInfo$.subscribe((t) => {
|
|
5125
5125
|
var h;
|
|
5126
5126
|
const n = (h = this._sheetSkeletonManagerService.getCurrentParam()) == null ? void 0 : h.skeleton;
|
|
@@ -5197,7 +5197,7 @@ let po = class extends ae {
|
|
|
5197
5197
|
));
|
|
5198
5198
|
}
|
|
5199
5199
|
_initSkeletonListener() {
|
|
5200
|
-
this.disposeWithMe(
|
|
5200
|
+
this.disposeWithMe(Fe(
|
|
5201
5201
|
this._sheetSkeletonManagerService.currentSkeletonBefore$.subscribe((r) => {
|
|
5202
5202
|
if (r == null)
|
|
5203
5203
|
return;
|
|
@@ -5428,15 +5428,15 @@ const pm = {
|
|
|
5428
5428
|
};
|
|
5429
5429
|
class a1 {
|
|
5430
5430
|
constructor() {
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5431
|
+
_(this, "_state", null);
|
|
5432
|
+
_(this, "_rect", null);
|
|
5433
|
+
_(this, "_state$", new Me(null));
|
|
5434
|
+
_(this, "state$", this._state$.asObservable());
|
|
5435
|
+
_(this, "_rect$", new Me(null));
|
|
5436
|
+
_(this, "rect$", this._rect$.asObservable());
|
|
5437
|
+
_(this, "_focus", !1);
|
|
5438
|
+
_(this, "_focus$", new Me(this._focus));
|
|
5439
|
+
_(this, "focus$", this._focus$.asObservable());
|
|
5440
5440
|
}
|
|
5441
5441
|
dispose() {
|
|
5442
5442
|
this._state$.complete(), this._state = null, this._rect$.complete(), this._rect = null;
|
|
@@ -5682,17 +5682,17 @@ const A1 = () => {
|
|
|
5682
5682
|
if (Pe(() => r.onCommandExecuted((ie, fe) => {
|
|
5683
5683
|
ie.id === hn.id && b();
|
|
5684
5684
|
}).dispose, [b, r]), Pe(() => {
|
|
5685
|
-
const Y = p &&
|
|
5685
|
+
const Y = p && Fe(
|
|
5686
5686
|
p.currentSkeleton$.subscribe((ie) => {
|
|
5687
5687
|
ie && b();
|
|
5688
5688
|
})
|
|
5689
5689
|
);
|
|
5690
5690
|
return Y == null ? void 0 : Y.dispose;
|
|
5691
|
-
}, [p, b]), Pe(() =>
|
|
5691
|
+
}, [p, b]), Pe(() => Fe(
|
|
5692
5692
|
n.menu$.subscribe((ie) => {
|
|
5693
5693
|
s(ie.map((fe) => ({ ...fe, index: ie.indexOf(fe) })));
|
|
5694
5694
|
})
|
|
5695
|
-
).dispose, [n]), Pe(() =>
|
|
5695
|
+
).dispose, [n]), Pe(() => Fe(
|
|
5696
5696
|
n.showMenu$.subscribe((ie) => {
|
|
5697
5697
|
const { source: fe, target: oe } = n.autoFillLocation || { source: null, target: null };
|
|
5698
5698
|
if (ie && fe && oe) {
|
|
@@ -5701,7 +5701,7 @@ const A1 = () => {
|
|
|
5701
5701
|
} else
|
|
5702
5702
|
d({ row: -1, col: -1 });
|
|
5703
5703
|
})
|
|
5704
|
-
).dispose, [n]), Pe(() =>
|
|
5704
|
+
).dispose, [n]), Pe(() => Fe(
|
|
5705
5705
|
n.applyType$.subscribe((ie) => {
|
|
5706
5706
|
h(ie);
|
|
5707
5707
|
})
|
|
@@ -5725,13 +5725,13 @@ const A1 = () => {
|
|
|
5725
5725
|
}, X = (Y) => {
|
|
5726
5726
|
r.executeCommand(Zl.id, { type: Y.value }), a(!1);
|
|
5727
5727
|
}, B = l || g, j = o.filter((Y) => !Y.disable);
|
|
5728
|
-
return /* @__PURE__ */
|
|
5728
|
+
return /* @__PURE__ */ w("div", { className: "univer-absolute univer-inset-0 univer-z-10 univer-size-0", children: /* @__PURE__ */ w(
|
|
5729
5729
|
"div",
|
|
5730
5730
|
{
|
|
5731
5731
|
style: { left: `${O + 2}px`, top: `${k + 2}px`, position: "absolute" },
|
|
5732
5732
|
onMouseEnter: v,
|
|
5733
5733
|
onMouseLeave: C,
|
|
5734
|
-
children: /* @__PURE__ */
|
|
5734
|
+
children: /* @__PURE__ */ w(
|
|
5735
5735
|
em,
|
|
5736
5736
|
{
|
|
5737
5737
|
align: "start",
|
|
@@ -5755,14 +5755,14 @@ const A1 = () => {
|
|
|
5755
5755
|
"univer-bg-white": !l
|
|
5756
5756
|
}),
|
|
5757
5757
|
children: [
|
|
5758
|
-
/* @__PURE__ */
|
|
5758
|
+
/* @__PURE__ */ w(
|
|
5759
5759
|
vm,
|
|
5760
5760
|
{
|
|
5761
5761
|
style: { color: "#35322B" },
|
|
5762
5762
|
extend: { colorChannel1: "rgb(var(--green-700, #409f11))" }
|
|
5763
5763
|
}
|
|
5764
5764
|
),
|
|
5765
|
-
B && /* @__PURE__ */
|
|
5765
|
+
B && /* @__PURE__ */ w(vi, { className: "univer-text-[10px] univer-text-gray-400" })
|
|
5766
5766
|
]
|
|
5767
5767
|
}
|
|
5768
5768
|
)
|
|
@@ -5798,7 +5798,7 @@ function D1() {
|
|
|
5798
5798
|
});
|
|
5799
5799
|
}
|
|
5800
5800
|
const c = (i == null ? void 0 : i.visible) && (i.unitId === (t == null ? void 0 : t.getUnitId()) || i.unitId === Le);
|
|
5801
|
-
return /* @__PURE__ */
|
|
5801
|
+
return /* @__PURE__ */ w(
|
|
5802
5802
|
bS,
|
|
5803
5803
|
{
|
|
5804
5804
|
disabled: c,
|
|
@@ -5810,7 +5810,7 @@ function D1() {
|
|
|
5810
5810
|
);
|
|
5811
5811
|
}
|
|
5812
5812
|
function L1(r) {
|
|
5813
|
-
return /* @__PURE__ */
|
|
5813
|
+
return /* @__PURE__ */ w("section", { className: V1.countBar, children: /* @__PURE__ */ w(D1, {}) });
|
|
5814
5814
|
}
|
|
5815
5815
|
function Em(r, e) {
|
|
5816
5816
|
const t = L(it), n = L(D);
|
|
@@ -5899,7 +5899,7 @@ const W1 = "univer-editor-container", B1 = "univer-editor-input", ju = {
|
|
|
5899
5899
|
unitId: h == null ? void 0 : h.unitId
|
|
5900
5900
|
});
|
|
5901
5901
|
});
|
|
5902
|
-
return /* @__PURE__ */
|
|
5902
|
+
return /* @__PURE__ */ w(
|
|
5903
5903
|
"div",
|
|
5904
5904
|
{
|
|
5905
5905
|
className: ju.editorContainer,
|
|
@@ -5909,7 +5909,7 @@ const W1 = "univer-editor-container", B1 = "univer-editor-input", ju = {
|
|
|
5909
5909
|
width: r.width,
|
|
5910
5910
|
height: r.height
|
|
5911
5911
|
},
|
|
5912
|
-
children: u && /* @__PURE__ */
|
|
5912
|
+
children: u && /* @__PURE__ */ w(
|
|
5913
5913
|
u,
|
|
5914
5914
|
{
|
|
5915
5915
|
editorId: We,
|
|
@@ -5938,16 +5938,16 @@ const W1 = "univer-editor-container", B1 = "univer-editor-input", ju = {
|
|
|
5938
5938
|
};
|
|
5939
5939
|
class U1 {
|
|
5940
5940
|
constructor() {
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5941
|
+
_(this, "_position", null);
|
|
5942
|
+
_(this, "_position$", new Me(null));
|
|
5943
|
+
_(this, "position$", this._position$.asObservable());
|
|
5944
|
+
_(this, "_focus", !1);
|
|
5945
|
+
_(this, "_focus$", new Me(this._focus));
|
|
5946
|
+
_(this, "focus$", this._focus$.asObservable());
|
|
5947
|
+
_(this, "_fxBtnClick$", new Ae());
|
|
5948
|
+
_(this, "fxBtnClick$", this._fxBtnClick$.asObservable());
|
|
5949
|
+
_(this, "_foldBtnStatus$", new Ae());
|
|
5950
|
+
_(this, "foldBtnStatus$", this._foldBtnStatus$.asObservable());
|
|
5951
5951
|
}
|
|
5952
5952
|
dispose() {
|
|
5953
5953
|
this._position$.complete(), this._focus$.complete(), this._position = null, this._focus = !1;
|
|
@@ -5979,7 +5979,7 @@ const Jl = vn(
|
|
|
5979
5979
|
handler: async (r, e) => {
|
|
5980
5980
|
const t = r.get(Mi);
|
|
5981
5981
|
r.get(Hr);
|
|
5982
|
-
const n = r.get(He), i = r.get(N), o =
|
|
5982
|
+
const n = r.get(He), i = r.get(N), o = Ue(i);
|
|
5983
5983
|
if (!o) return !1;
|
|
5984
5984
|
const { unitId: s } = o;
|
|
5985
5985
|
switch (e.value) {
|
|
@@ -6032,7 +6032,7 @@ function X1(r) {
|
|
|
6032
6032
|
p.isSheetHidden() && await e.executeCommand(bd.id, { unitId: l, subUnitId: p.getSheetId() }), n.focusRange(l, f);
|
|
6033
6033
|
};
|
|
6034
6034
|
return /* @__PURE__ */ q("div", { className: "univer-w-[300px]", children: [
|
|
6035
|
-
/* @__PURE__ */
|
|
6035
|
+
/* @__PURE__ */ w(
|
|
6036
6036
|
"ul",
|
|
6037
6037
|
{
|
|
6038
6038
|
className: `
|
|
@@ -6040,7 +6040,7 @@ function X1(r) {
|
|
|
6040
6040
|
univer-scrollbar-thin univer-scrollbar-track-transparent univer-scrollbar-thumb-gray-300
|
|
6041
6041
|
univer-scrollbar-w-[4px]
|
|
6042
6042
|
`,
|
|
6043
|
-
children: c.map((g, m) => /* @__PURE__ */
|
|
6043
|
+
children: c.map((g, m) => /* @__PURE__ */ w(
|
|
6044
6044
|
"li",
|
|
6045
6045
|
{
|
|
6046
6046
|
className: `
|
|
@@ -6059,7 +6059,7 @@ function X1(r) {
|
|
|
6059
6059
|
univer-border-b univer-border-solid univer-border-gray-200 univer-py-1
|
|
6060
6060
|
`,
|
|
6061
6061
|
children: [
|
|
6062
|
-
/* @__PURE__ */
|
|
6062
|
+
/* @__PURE__ */ w(
|
|
6063
6063
|
"div",
|
|
6064
6064
|
{
|
|
6065
6065
|
className: `
|
|
@@ -6070,7 +6070,7 @@ function X1(r) {
|
|
|
6070
6070
|
children: g.name
|
|
6071
6071
|
}
|
|
6072
6072
|
),
|
|
6073
|
-
/* @__PURE__ */
|
|
6073
|
+
/* @__PURE__ */ w(
|
|
6074
6074
|
"div",
|
|
6075
6075
|
{
|
|
6076
6076
|
className: `
|
|
@@ -6099,8 +6099,8 @@ function X1(r) {
|
|
|
6099
6099
|
`,
|
|
6100
6100
|
onClick: u,
|
|
6101
6101
|
children: [
|
|
6102
|
-
/* @__PURE__ */
|
|
6103
|
-
/* @__PURE__ */
|
|
6102
|
+
/* @__PURE__ */ w("div", { className: "univer-mb-2 univer-text-sm univer-font-semibold univer-text-gray-600", children: t.t("definedName.managerTitle") }),
|
|
6103
|
+
/* @__PURE__ */ w("div", { className: "univer-text-xs univer-text-gray-400", children: t.t("definedName.managerDescription") })
|
|
6104
6104
|
]
|
|
6105
6105
|
}
|
|
6106
6106
|
)
|
|
@@ -6141,7 +6141,7 @@ function rb({ disable: r }) {
|
|
|
6141
6141
|
univer-py-1.5 univer-transition-all
|
|
6142
6142
|
`,
|
|
6143
6143
|
children: [
|
|
6144
|
-
/* @__PURE__ */
|
|
6144
|
+
/* @__PURE__ */ w(
|
|
6145
6145
|
"input",
|
|
6146
6146
|
{
|
|
6147
6147
|
className: qe(`
|
|
@@ -6156,12 +6156,12 @@ function rb({ disable: r }) {
|
|
|
6156
6156
|
onChange: i
|
|
6157
6157
|
}
|
|
6158
6158
|
),
|
|
6159
|
-
/* @__PURE__ */
|
|
6159
|
+
/* @__PURE__ */ w(
|
|
6160
6160
|
Ns,
|
|
6161
6161
|
{
|
|
6162
|
-
overlay: /* @__PURE__ */
|
|
6162
|
+
overlay: /* @__PURE__ */ w("div", { className: "univer-z-[1001]", children: /* @__PURE__ */ w(X1, {}) }),
|
|
6163
6163
|
disabled: r,
|
|
6164
|
-
children: /* @__PURE__ */
|
|
6164
|
+
children: /* @__PURE__ */ w(
|
|
6165
6165
|
"a",
|
|
6166
6166
|
{
|
|
6167
6167
|
className: qe(`
|
|
@@ -6171,7 +6171,7 @@ function rb({ disable: r }) {
|
|
|
6171
6171
|
`, {
|
|
6172
6172
|
"univer-cursor-not-allowed univer-text-gray-300 hover:univer-bg-transparent": r
|
|
6173
6173
|
}),
|
|
6174
|
-
children: /* @__PURE__ */
|
|
6174
|
+
children: /* @__PURE__ */ w(vi, {})
|
|
6175
6175
|
}
|
|
6176
6176
|
)
|
|
6177
6177
|
}
|
|
@@ -6338,26 +6338,26 @@ function _b(r) {
|
|
|
6338
6338
|
pointerEvents: ie ? "none" : "auto"
|
|
6339
6339
|
},
|
|
6340
6340
|
children: [
|
|
6341
|
-
/* @__PURE__ */
|
|
6341
|
+
/* @__PURE__ */ w("div", { className: ut.nameRanges, children: /* @__PURE__ */ w(rb, { disable: t != null ? t : ie }) }),
|
|
6342
6342
|
/* @__PURE__ */ q("div", { className: ut.formulaBar, children: [
|
|
6343
|
-
/* @__PURE__ */
|
|
6344
|
-
/* @__PURE__ */
|
|
6343
|
+
/* @__PURE__ */ w("div", { className: qe(ut.formulaIcon, { [ut.formulaIconDisable]: fe }), children: /* @__PURE__ */ q("div", { className: ut.formulaIconWrapper, children: [
|
|
6344
|
+
/* @__PURE__ */ w(
|
|
6345
6345
|
"span",
|
|
6346
6346
|
{
|
|
6347
6347
|
className: qe(ut.iconContainer, ut.iconContainerError, n),
|
|
6348
6348
|
onClick: X,
|
|
6349
|
-
children: /* @__PURE__ */
|
|
6349
|
+
children: /* @__PURE__ */ w(Cm, {})
|
|
6350
6350
|
}
|
|
6351
6351
|
),
|
|
6352
|
-
/* @__PURE__ */
|
|
6352
|
+
/* @__PURE__ */ w(
|
|
6353
6353
|
"span",
|
|
6354
6354
|
{
|
|
6355
6355
|
className: qe(ut.iconContainer, ut.iconContainerSuccess, n),
|
|
6356
6356
|
onClick: B,
|
|
6357
|
-
children: /* @__PURE__ */
|
|
6357
|
+
children: /* @__PURE__ */ w(Wr, {})
|
|
6358
6358
|
}
|
|
6359
6359
|
),
|
|
6360
|
-
/* @__PURE__ */
|
|
6360
|
+
/* @__PURE__ */ w("span", { className: qe(ut.iconContainer, ut.iconContainerFx), onClick: j, children: /* @__PURE__ */ w(wm, {}) })
|
|
6361
6361
|
] }) }),
|
|
6362
6362
|
/* @__PURE__ */ q("div", { className: ut.formulaContainer, children: [
|
|
6363
6363
|
/* @__PURE__ */ q(
|
|
@@ -6369,7 +6369,7 @@ function _b(r) {
|
|
|
6369
6369
|
ref: O,
|
|
6370
6370
|
style: { pointerEvents: ee ? "none" : "auto" },
|
|
6371
6371
|
children: [
|
|
6372
|
-
P && /* @__PURE__ */
|
|
6372
|
+
P && /* @__PURE__ */ w(
|
|
6373
6373
|
P,
|
|
6374
6374
|
{
|
|
6375
6375
|
disableSelectionOnClick: !0,
|
|
@@ -6392,14 +6392,14 @@ function _b(r) {
|
|
|
6392
6392
|
disableContextMenu: !1
|
|
6393
6393
|
}
|
|
6394
6394
|
),
|
|
6395
|
-
ee ? /* @__PURE__ */
|
|
6395
|
+
ee ? /* @__PURE__ */ w("div", { className: ut.formulaInputMask }) : null
|
|
6396
6396
|
]
|
|
6397
6397
|
}
|
|
6398
6398
|
),
|
|
6399
|
-
/* @__PURE__ */
|
|
6399
|
+
/* @__PURE__ */ w("div", { className: qe(ut.arrowContainer, { [ut.arrowContainerDisable]: ie }), onClick: F, children: o === 0 ? /* @__PURE__ */ w(Vc, {}) : /* @__PURE__ */ w(Vc, { style: { transform: "rotateZ(180deg)" } }) })
|
|
6400
6400
|
] })
|
|
6401
6401
|
] }),
|
|
6402
|
-
/* @__PURE__ */
|
|
6402
|
+
/* @__PURE__ */ w(eg, { components: T }, "formula-aux")
|
|
6403
6403
|
]
|
|
6404
6404
|
}
|
|
6405
6405
|
);
|
|
@@ -6408,17 +6408,17 @@ const Br = vn("univer.sheetbar-service");
|
|
|
6408
6408
|
class Pm extends ae {
|
|
6409
6409
|
constructor() {
|
|
6410
6410
|
super();
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6411
|
+
_(this, "renameId$");
|
|
6412
|
+
_(this, "removeId$");
|
|
6413
|
+
_(this, "scroll$");
|
|
6414
|
+
_(this, "scrollX$");
|
|
6415
|
+
_(this, "addSheet$");
|
|
6416
|
+
_(this, "_renameId$");
|
|
6417
|
+
_(this, "_removeId$");
|
|
6418
|
+
_(this, "_scroll$");
|
|
6419
|
+
_(this, "_scrollX$");
|
|
6420
|
+
_(this, "_addSheet$");
|
|
6421
|
+
_(this, "_currentHandler", null);
|
|
6422
6422
|
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();
|
|
6423
6423
|
}
|
|
6424
6424
|
setRenameId(t) {
|
|
@@ -6443,7 +6443,7 @@ class Pm extends ae {
|
|
|
6443
6443
|
registerSheetBarMenuHandler(t) {
|
|
6444
6444
|
if (this._currentHandler)
|
|
6445
6445
|
throw new Error("There is already a context menu handler!");
|
|
6446
|
-
return this._currentHandler = t,
|
|
6446
|
+
return this._currentHandler = t, Fe(() => {
|
|
6447
6447
|
this._currentHandler = null;
|
|
6448
6448
|
});
|
|
6449
6449
|
}
|
|
@@ -6463,7 +6463,7 @@ function Rs(r) {
|
|
|
6463
6463
|
}
|
|
6464
6464
|
o && o(a);
|
|
6465
6465
|
};
|
|
6466
|
-
return /* @__PURE__ */
|
|
6466
|
+
return /* @__PURE__ */ w(
|
|
6467
6467
|
"button",
|
|
6468
6468
|
{
|
|
6469
6469
|
type: "button",
|
|
@@ -6524,10 +6524,10 @@ function Eb() {
|
|
|
6524
6524
|
type: "item",
|
|
6525
6525
|
children: /* @__PURE__ */ q("div", { className: "univer-relative univer-box-border univer-pl-6", children: [
|
|
6526
6526
|
(f.selected || f.hidden) && /* @__PURE__ */ q("span", { className: "univer-absolute univer-left-1 univer-top-0.5", children: [
|
|
6527
|
-
f.selected && /* @__PURE__ */
|
|
6528
|
-
f.hidden && /* @__PURE__ */
|
|
6527
|
+
f.selected && /* @__PURE__ */ w(Wr, { className: "univer-size-4 univer-text-primary-600" }),
|
|
6528
|
+
f.hidden && /* @__PURE__ */ w(_m, { className: "univer-size-4 univer-text-gray-400" })
|
|
6529
6529
|
] }),
|
|
6530
|
-
/* @__PURE__ */
|
|
6530
|
+
/* @__PURE__ */ w(
|
|
6531
6531
|
"span",
|
|
6532
6532
|
{
|
|
6533
6533
|
className: qe({
|
|
@@ -6541,14 +6541,14 @@ function Eb() {
|
|
|
6541
6541
|
c(f);
|
|
6542
6542
|
}
|
|
6543
6543
|
})), [r]);
|
|
6544
|
-
return /* @__PURE__ */
|
|
6544
|
+
return /* @__PURE__ */ w(
|
|
6545
6545
|
em,
|
|
6546
6546
|
{
|
|
6547
6547
|
align: "start",
|
|
6548
6548
|
items: m,
|
|
6549
6549
|
open: t,
|
|
6550
6550
|
onOpenChange: g,
|
|
6551
|
-
children: /* @__PURE__ */
|
|
6551
|
+
children: /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(Rs, { children: /* @__PURE__ */ w(bm, {}) }) })
|
|
6552
6552
|
}
|
|
6553
6553
|
);
|
|
6554
6554
|
}
|
|
@@ -6570,7 +6570,7 @@ function Vb(r) {
|
|
|
6570
6570
|
const d = l.getCurrentTheme(), u = d.textColor, h = d.colorWhite;
|
|
6571
6571
|
return new kn(c).isDark() ? h : u;
|
|
6572
6572
|
};
|
|
6573
|
-
return /* @__PURE__ */
|
|
6573
|
+
return /* @__PURE__ */ w(
|
|
6574
6574
|
"div",
|
|
6575
6575
|
{
|
|
6576
6576
|
"data-id": e,
|
|
@@ -6583,7 +6583,7 @@ function Vb(r) {
|
|
|
6583
6583
|
color: !o && n ? a(n) : "",
|
|
6584
6584
|
boxShadow: o && n ? `0px 0px 8px rgba(0, 0, 0, 0.08), inset 0px -2px 0px 0px ${n}` : ""
|
|
6585
6585
|
},
|
|
6586
|
-
children: /* @__PURE__ */
|
|
6586
|
+
children: /* @__PURE__ */ w("div", { className: Ft.slideTabDiv, children: t })
|
|
6587
6587
|
},
|
|
6588
6588
|
e
|
|
6589
6589
|
);
|
|
@@ -6613,11 +6613,11 @@ const Nb = {
|
|
|
6613
6613
|
};
|
|
6614
6614
|
class Lb {
|
|
6615
6615
|
constructor(e) {
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6616
|
+
_(this, "_config");
|
|
6617
|
+
_(this, "_status", 0);
|
|
6618
|
+
_(this, "_start", 0);
|
|
6619
|
+
_(this, "_handle", 0);
|
|
6620
|
+
_(this, "_delayHandle", null);
|
|
6621
6621
|
this._config = {
|
|
6622
6622
|
...Db,
|
|
6623
6623
|
...e
|
|
@@ -6670,14 +6670,14 @@ class Lb {
|
|
|
6670
6670
|
}
|
|
6671
6671
|
class Ir {
|
|
6672
6672
|
constructor(e, t) {
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6673
|
+
_(this, "_slideTabItem");
|
|
6674
|
+
_(this, "_animate");
|
|
6675
|
+
_(this, "_midline", 0);
|
|
6676
|
+
_(this, "_translateX");
|
|
6677
|
+
_(this, "_scrollbar");
|
|
6678
|
+
_(this, "_slideTabBar");
|
|
6679
|
+
_(this, "_editMode");
|
|
6680
|
+
_(this, "_placeholder");
|
|
6681
6681
|
this._slideTabItem = e, this._animate = null, this._translateX = 0, this._editMode = !1, this._slideTabBar = t, this._placeholder = null, this._scrollbar = t.getScrollbar(), this.update();
|
|
6682
6682
|
}
|
|
6683
6683
|
static midline(e) {
|
|
@@ -6824,8 +6824,8 @@ class Ir {
|
|
|
6824
6824
|
}
|
|
6825
6825
|
class Wb {
|
|
6826
6826
|
constructor(e) {
|
|
6827
|
-
|
|
6828
|
-
|
|
6827
|
+
_(this, "_slideTabBar");
|
|
6828
|
+
_(this, "_scrollX");
|
|
6829
6829
|
const t = e.primeval();
|
|
6830
6830
|
this._scrollX = t.scrollLeft, this._slideTabBar = e;
|
|
6831
6831
|
}
|
|
@@ -6845,39 +6845,39 @@ const ni = class ni {
|
|
|
6845
6845
|
// eslint-disable-next-line max-lines-per-function
|
|
6846
6846
|
constructor(e) {
|
|
6847
6847
|
// in milliseconds
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6848
|
+
_(this, "_activeTabItemIndex", 0);
|
|
6849
|
+
_(this, "_slideTabBar");
|
|
6850
|
+
_(this, "_slideTabItems", []);
|
|
6851
|
+
_(this, "_config");
|
|
6852
|
+
_(this, "_downActionX", 0);
|
|
6853
|
+
_(this, "_moveActionX", 0);
|
|
6854
|
+
_(this, "_compareIndex", 0);
|
|
6855
|
+
_(this, "_activeTabItem", null);
|
|
6856
|
+
_(this, "_moveAction");
|
|
6857
|
+
_(this, "_upAction");
|
|
6858
|
+
_(this, "_downAction");
|
|
6859
|
+
_(this, "_wheelAction");
|
|
6860
|
+
_(this, "_scrollIncremental", 0);
|
|
6861
|
+
_(this, "_compareDirection", 0);
|
|
6862
|
+
_(this, "_autoScrollTime", null);
|
|
6863
|
+
_(this, "_slideScrollbar");
|
|
6864
|
+
_(this, "_longPressTimer", null);
|
|
6865
6865
|
/**
|
|
6866
6866
|
* left border line
|
|
6867
6867
|
*/
|
|
6868
|
-
|
|
6868
|
+
_(this, "_leftBoundingLine", 0);
|
|
6869
6869
|
/**
|
|
6870
6870
|
* right border line
|
|
6871
6871
|
*/
|
|
6872
|
-
|
|
6872
|
+
_(this, "_rightBoundingLine", 0);
|
|
6873
6873
|
/**
|
|
6874
6874
|
* The distance required to move to the left border
|
|
6875
6875
|
*/
|
|
6876
|
-
|
|
6876
|
+
_(this, "_leftMoveX", 0);
|
|
6877
6877
|
/**
|
|
6878
6878
|
* The distance required to move to the right border
|
|
6879
6879
|
*/
|
|
6880
|
-
|
|
6880
|
+
_(this, "_rightMoveX", 0);
|
|
6881
6881
|
var s;
|
|
6882
6882
|
if (e.slideTabBarContainer == null)
|
|
6883
6883
|
throw new Error("not found slide-tab-bar root element");
|
|
@@ -7148,9 +7148,9 @@ const ni = class ni {
|
|
|
7148
7148
|
}
|
|
7149
7149
|
};
|
|
7150
7150
|
/** Time in milliseconds to wait to raise long press events if button is still pressed */
|
|
7151
|
-
|
|
7151
|
+
_(ni, "LongPressDelay", 500), // in milliseconds
|
|
7152
7152
|
/** Time in milliseconds with two consecutive clicks will be considered as a double click */
|
|
7153
|
-
|
|
7153
|
+
_(ni, "DoubleClickDelay", 300);
|
|
7154
7154
|
let si = ni;
|
|
7155
7155
|
function Bb() {
|
|
7156
7156
|
var Ie;
|
|
@@ -7161,9 +7161,9 @@ function Bb() {
|
|
|
7161
7161
|
const ee = R.getSheets(), le = R.getActiveSheet(), pe = ee.filter((Oe) => !Oe.isSheetHidden()).map((Oe, ue) => {
|
|
7162
7162
|
var Kt;
|
|
7163
7163
|
const ve = v.getRule(R.getUnitId(), Oe.getSheetId()), tt = C.getSubunitRuleList(R.getUnitId(), Oe.getSheetId()).length > 0, gt = (ve == null ? void 0 : ve.permissionId) || tt ? /* @__PURE__ */ q(Mr, { children: [
|
|
7164
|
-
/* @__PURE__ */
|
|
7165
|
-
/* @__PURE__ */
|
|
7166
|
-
] }) : /* @__PURE__ */
|
|
7164
|
+
/* @__PURE__ */ w(Yd, {}),
|
|
7165
|
+
/* @__PURE__ */ w("span", { children: Oe.getName() })
|
|
7166
|
+
] }) : /* @__PURE__ */ w("span", { children: Oe.getName() });
|
|
7167
7167
|
return {
|
|
7168
7168
|
sheetId: Oe.getSheetId(),
|
|
7169
7169
|
label: gt,
|
|
@@ -7361,14 +7361,14 @@ function Bb() {
|
|
|
7361
7361
|
l(G);
|
|
7362
7362
|
}
|
|
7363
7363
|
};
|
|
7364
|
-
return /* @__PURE__ */
|
|
7364
|
+
return /* @__PURE__ */ w(
|
|
7365
7365
|
Qv,
|
|
7366
7366
|
{
|
|
7367
7367
|
className: Ft.slideTabItemDropdown,
|
|
7368
7368
|
visible: s,
|
|
7369
7369
|
align: { offset: a },
|
|
7370
7370
|
trigger: ["contextMenu"],
|
|
7371
|
-
overlay: /* @__PURE__ */
|
|
7371
|
+
overlay: /* @__PURE__ */ w(
|
|
7372
7372
|
_S,
|
|
7373
7373
|
{
|
|
7374
7374
|
menuType: Rt.FOOTER_TABS,
|
|
@@ -7379,14 +7379,14 @@ function Bb() {
|
|
|
7379
7379
|
}
|
|
7380
7380
|
),
|
|
7381
7381
|
onVisibleChange: _e,
|
|
7382
|
-
children: /* @__PURE__ */
|
|
7382
|
+
children: /* @__PURE__ */ w(
|
|
7383
7383
|
"div",
|
|
7384
7384
|
{
|
|
7385
7385
|
className: Ft.slideTabBarContainer,
|
|
7386
7386
|
ref: u,
|
|
7387
7387
|
onDragStart: (G) => G.preventDefault(),
|
|
7388
7388
|
onContextMenu: (G) => G.preventDefault(),
|
|
7389
|
-
children: /* @__PURE__ */
|
|
7389
|
+
children: /* @__PURE__ */ w("div", { className: Ft.slideTabBar, style: { boxShadow: i }, children: r.map((G) => /* @__PURE__ */ ht(Vb, { ...G, key: G.sheetId, selected: t === G.sheetId })) })
|
|
7390
7390
|
}
|
|
7391
7391
|
)
|
|
7392
7392
|
}
|
|
@@ -7417,10 +7417,10 @@ const Fb = 100, Ub = () => {
|
|
|
7417
7417
|
};
|
|
7418
7418
|
return /* @__PURE__ */ q("div", { className: qe(ls.sheetBar, "univer-relative univer-flex univer-h-full univer-flex-1"), children: [
|
|
7419
7419
|
/* @__PURE__ */ q("div", { className: ls.sheetBarOptions, children: [
|
|
7420
|
-
/* @__PURE__ */
|
|
7421
|
-
/* @__PURE__ */
|
|
7420
|
+
/* @__PURE__ */ w(Rs, { onClick: h, disabled: !(d != null && d.value && (c != null && c.value)), children: /* @__PURE__ */ w(jd, {}) }),
|
|
7421
|
+
/* @__PURE__ */ w(Eb, {})
|
|
7422
7422
|
] }),
|
|
7423
|
-
/* @__PURE__ */
|
|
7423
|
+
/* @__PURE__ */ w(Bb, {}),
|
|
7424
7424
|
(!r || !t) && /* @__PURE__ */ q(
|
|
7425
7425
|
"div",
|
|
7426
7426
|
{
|
|
@@ -7429,8 +7429,8 @@ const Fb = 100, Ub = () => {
|
|
|
7429
7429
|
${ls.sheetBarOptionsDivider}
|
|
7430
7430
|
`,
|
|
7431
7431
|
children: [
|
|
7432
|
-
/* @__PURE__ */
|
|
7433
|
-
/* @__PURE__ */
|
|
7432
|
+
/* @__PURE__ */ w(Rs, { disabled: r, onClick: g, children: /* @__PURE__ */ w(Nc, { style: { transform: "rotateZ(180deg)" } }) }),
|
|
7433
|
+
/* @__PURE__ */ w(Rs, { disabled: t, onClick: m, children: /* @__PURE__ */ w(Nc, {}) })
|
|
7434
7434
|
]
|
|
7435
7435
|
}
|
|
7436
7436
|
)
|
|
@@ -7438,7 +7438,7 @@ const Fb = 100, Ub = () => {
|
|
|
7438
7438
|
};
|
|
7439
7439
|
class Tm {
|
|
7440
7440
|
constructor() {
|
|
7441
|
-
|
|
7441
|
+
_(this, "_functions", [
|
|
7442
7442
|
{
|
|
7443
7443
|
func: Xe.MAX,
|
|
7444
7444
|
filter: (e) => {
|
|
@@ -7482,8 +7482,8 @@ class Tm {
|
|
|
7482
7482
|
}
|
|
7483
7483
|
}
|
|
7484
7484
|
]);
|
|
7485
|
-
|
|
7486
|
-
|
|
7485
|
+
_(this, "_state$", new Me(null));
|
|
7486
|
+
_(this, "state$", this._state$.asObservable());
|
|
7487
7487
|
}
|
|
7488
7488
|
dispose() {
|
|
7489
7489
|
this._state$.complete();
|
|
@@ -7535,7 +7535,7 @@ const $l = vn("univer.sheet-status-bar.service"), Xb = "univer-status-bar", zb =
|
|
|
7535
7535
|
content: e.t("statusbar.copied")
|
|
7536
7536
|
});
|
|
7537
7537
|
};
|
|
7538
|
-
return /* @__PURE__ */
|
|
7538
|
+
return /* @__PURE__ */ w(er, { title: e.t("statusbar.clickToCopy"), placement: "top", children: /* @__PURE__ */ w("div", { className: qi.statisticItem, onClick: o, children: /* @__PURE__ */ w("span", { children: `${e.t(
|
|
7539
7539
|
(ya == null ? void 0 : ya[r.name]) || r.name
|
|
7540
7540
|
)}: ${i}` }) }, r.name) });
|
|
7541
7541
|
};
|
|
@@ -7594,19 +7594,19 @@ const Zu = 800, Kb = 3, Jb = () => {
|
|
|
7594
7594
|
const u = ((m, f, p) => e ? US.useMemo(() => {
|
|
7595
7595
|
if (m.length > f) {
|
|
7596
7596
|
const v = m.reduce((C, b, R) => (R % 2 === 0 && C.push(m.slice(R, R + 2)), C), []);
|
|
7597
|
-
return /* @__PURE__ */
|
|
7597
|
+
return /* @__PURE__ */ w(Mr, { children: v.map((C, b) => /* @__PURE__ */ q(
|
|
7598
7598
|
"div",
|
|
7599
7599
|
{
|
|
7600
7600
|
className: qi.statisticListColumn,
|
|
7601
7601
|
children: [
|
|
7602
|
-
C[0] && /* @__PURE__ */
|
|
7602
|
+
C[0] && /* @__PURE__ */ w(
|
|
7603
7603
|
p,
|
|
7604
7604
|
{
|
|
7605
7605
|
...C[0]
|
|
7606
7606
|
},
|
|
7607
7607
|
C[0].name
|
|
7608
7608
|
),
|
|
7609
|
-
C[1] && /* @__PURE__ */
|
|
7609
|
+
C[1] && /* @__PURE__ */ w(
|
|
7610
7610
|
p,
|
|
7611
7611
|
{
|
|
7612
7612
|
...C[1]
|
|
@@ -7618,7 +7618,7 @@ const Zu = 800, Kb = 3, Jb = () => {
|
|
|
7618
7618
|
`stat-col-${b}`
|
|
7619
7619
|
)) });
|
|
7620
7620
|
}
|
|
7621
|
-
return /* @__PURE__ */
|
|
7621
|
+
return /* @__PURE__ */ w(Mr, { children: m.map((v) => /* @__PURE__ */ w(
|
|
7622
7622
|
p,
|
|
7623
7623
|
{
|
|
7624
7624
|
...v
|
|
@@ -7633,8 +7633,8 @@ const Zu = 800, Kb = 3, Jb = () => {
|
|
|
7633
7633
|
[qi.singleMode]: t
|
|
7634
7634
|
}),
|
|
7635
7635
|
children: [
|
|
7636
|
-
/* @__PURE__ */
|
|
7637
|
-
/* @__PURE__ */
|
|
7636
|
+
/* @__PURE__ */ w("div", { className: "univer-flex", children: u }),
|
|
7637
|
+
/* @__PURE__ */ w("div", { className: qi.statusBarDiv })
|
|
7638
7638
|
]
|
|
7639
7639
|
}
|
|
7640
7640
|
);
|
|
@@ -7656,11 +7656,11 @@ function $b() {
|
|
|
7656
7656
|
},
|
|
7657
7657
|
"data-range-selector": !0,
|
|
7658
7658
|
children: [
|
|
7659
|
-
/* @__PURE__ */
|
|
7660
|
-
/* @__PURE__ */
|
|
7661
|
-
t.length && /* @__PURE__ */
|
|
7659
|
+
/* @__PURE__ */ w(Ub, {}),
|
|
7660
|
+
/* @__PURE__ */ w(Jb, {}),
|
|
7661
|
+
t.length && /* @__PURE__ */ w("div", { className: "univer-mr-2 univer-flex univer-gap-2", children: t.map((n) => {
|
|
7662
7662
|
var i;
|
|
7663
|
-
return (i = n.children) == null ? void 0 : i.map((o) => (o == null ? void 0 : o.item) && /* @__PURE__ */
|
|
7663
|
+
return (i = n.children) == null ? void 0 : i.map((o) => (o == null ? void 0 : o.item) && /* @__PURE__ */ w(
|
|
7664
7664
|
wS,
|
|
7665
7665
|
{
|
|
7666
7666
|
...o.item
|
|
@@ -7668,18 +7668,18 @@ function $b() {
|
|
|
7668
7668
|
o.key
|
|
7669
7669
|
));
|
|
7670
7670
|
}) }),
|
|
7671
|
-
/* @__PURE__ */
|
|
7671
|
+
/* @__PURE__ */ w(L1, {})
|
|
7672
7672
|
]
|
|
7673
7673
|
}
|
|
7674
7674
|
);
|
|
7675
7675
|
}
|
|
7676
7676
|
function e_() {
|
|
7677
|
-
return xm() ? /* @__PURE__ */
|
|
7677
|
+
return xm() ? /* @__PURE__ */ w(_b, {}) : null;
|
|
7678
7678
|
}
|
|
7679
7679
|
function t_() {
|
|
7680
7680
|
return xm() ? /* @__PURE__ */ q(Mr, { children: [
|
|
7681
|
-
/* @__PURE__ */
|
|
7682
|
-
/* @__PURE__ */
|
|
7681
|
+
/* @__PURE__ */ w(F1, {}),
|
|
7682
|
+
/* @__PURE__ */ w(H1, {})
|
|
7683
7683
|
] }) : null;
|
|
7684
7684
|
}
|
|
7685
7685
|
function xm() {
|
|
@@ -8193,12 +8193,12 @@ let Wc = class extends ae {
|
|
|
8193
8193
|
/**
|
|
8194
8194
|
* It is used to distinguish whether the user has actively moved the cursor in the editor, mainly through mouse clicks.
|
|
8195
8195
|
*/
|
|
8196
|
-
|
|
8196
|
+
_(this, "_cursorChange", 0);
|
|
8197
8197
|
/** If the corresponding unit is active and prepared for editing. */
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8198
|
+
_(this, "_isUnitEditing", !1);
|
|
8199
|
+
_(this, "_workbookSelections");
|
|
8200
|
+
_(this, "_d");
|
|
8201
|
+
_(this, "_cursorTimeout");
|
|
8202
8202
|
this._context = e, this._undoRedoService = n, this._contextService = i, this._renderManagerService = o, this._editorBridgeService = s, this._cellEditorManagerService = l, this._lexerTreeBuilder = a, this._functionService = c, this._textSelectionManagerService = d, this._commandService = u, this._localService = h, this._editorService = g, this._sheetCellEditorResizeService = m, this._univerInstanceService = f, this._sheetInterceptorService = p, this._workbookSelections = t.getWorkbookSelections(this._context.unitId), this.disposeWithMe(this._univerInstanceService.getCurrentTypeOfUnit$(x.UNIVER_SHEET).subscribe((S) => {
|
|
8203
8203
|
(S == null ? void 0 : S.getUnitId()) === this._context.unitId ? this._d = this._init() : (this._disposeCurrent(), this._isUnitEditing && (this._handleEditorInvisible({
|
|
8204
8204
|
visible: !1,
|
|
@@ -8349,9 +8349,8 @@ let Wc = class extends ae {
|
|
|
8349
8349
|
}));
|
|
8350
8350
|
}
|
|
8351
8351
|
// You can double-click on the cell or input content by keyboard to put the cell into the edit state.
|
|
8352
|
-
// eslint-disable-next-line complexity
|
|
8353
8352
|
_handleEditorVisible(e) {
|
|
8354
|
-
var
|
|
8353
|
+
var g, m, f;
|
|
8355
8354
|
const { eventType: t, keycode: n } = e;
|
|
8356
8355
|
this._cursorChange = t === Ye.PointerDown || t === Ye.Dblclick ? 2 : 1;
|
|
8357
8356
|
const i = this._editorBridgeService.getEditLocation();
|
|
@@ -8371,60 +8370,67 @@ let Wc = class extends ae {
|
|
|
8371
8370
|
const { document: a, scene: c } = l;
|
|
8372
8371
|
this._contextService.setContextValue($e, !0);
|
|
8373
8372
|
const d = this._getDocumentDataModel(), u = this._getEditorSkeleton(We);
|
|
8374
|
-
if (!
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
})
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8373
|
+
if (!u || !d)
|
|
8374
|
+
return;
|
|
8375
|
+
this._sheetCellEditorResizeService.fitTextSize(() => {
|
|
8376
|
+
const p = c.getViewport(Es.VIEW_MAIN);
|
|
8377
|
+
p == null || p.scrollToViewportPos({
|
|
8378
|
+
viewportScrollX: Number.POSITIVE_INFINITY,
|
|
8379
|
+
viewportScrollY: Number.POSITIVE_INFINITY
|
|
8380
|
+
});
|
|
8381
|
+
});
|
|
8382
|
+
const h = () => {
|
|
8383
|
+
this._emptyDocumentDataModel(d.getSnapshot().documentStyle, !!s), a.makeDirty(), (n === Z.BACKSPACE || t === Ye.Dblclick) && (u.calculate(), this._editorBridgeService.changeEditorDirty(!0)), this._textSelectionManagerService.replaceDocRanges(
|
|
8384
|
+
[{
|
|
8385
|
+
startOffset: 0,
|
|
8386
|
+
endOffset: 0
|
|
8387
|
+
}],
|
|
8388
|
+
{
|
|
8389
|
+
unitId: We,
|
|
8390
|
+
subUnitId: We
|
|
8391
|
+
}
|
|
8392
|
+
);
|
|
8393
|
+
};
|
|
8394
|
+
if (this._isCellImageData(d.getSnapshot()))
|
|
8395
|
+
h();
|
|
8396
|
+
else if (t === Ye.Keyboard && n === Z.F2) {
|
|
8397
|
+
a.makeDirty(), this._textSelectionManagerService.replaceDocRanges([
|
|
8398
|
+
{
|
|
8399
|
+
startOffset: 0,
|
|
8400
|
+
endOffset: 0
|
|
8401
|
+
}
|
|
8402
|
+
]);
|
|
8403
|
+
const p = ((m = (g = d.getBody()) == null ? void 0 : g.dataStream.length) != null ? m : 2) - 2;
|
|
8404
|
+
this._textSelectionManagerService.replaceDocRanges(
|
|
8405
|
+
[{
|
|
8406
|
+
startOffset: p,
|
|
8407
|
+
endOffset: p
|
|
8408
|
+
}],
|
|
8409
|
+
{
|
|
8410
|
+
unitId: We,
|
|
8411
|
+
subUnitId: We
|
|
8412
|
+
}
|
|
8413
|
+
);
|
|
8414
|
+
} else if (
|
|
8415
|
+
// clear and edit
|
|
8416
|
+
t === Ye.Keyboard || t === Ye.Dblclick && s
|
|
8417
|
+
)
|
|
8418
|
+
h();
|
|
8419
|
+
else if (t === Ye.Dblclick) {
|
|
8420
|
+
if (this._contextService.getContextValue(Ts))
|
|
8421
|
+
return;
|
|
8422
|
+
const p = d.getBody().dataStream.length - 2 || 0;
|
|
8423
|
+
this._textSelectionManagerService.replaceDocRanges([
|
|
8424
|
+
{
|
|
8425
|
+
startOffset: p,
|
|
8426
|
+
endOffset: p
|
|
8427
|
+
}
|
|
8428
|
+
]);
|
|
8425
8429
|
}
|
|
8430
|
+
(f = this._renderManagerService.getRenderById(o)) == null || f.scene.resetCursor();
|
|
8426
8431
|
}
|
|
8427
8432
|
async _handleEditorInvisible(e) {
|
|
8433
|
+
var f;
|
|
8428
8434
|
const t = this._editorBridgeService.getEditCellState(), n = this._univerInstanceService.getUnit(We), i = se.deepClone(n == null ? void 0 : n.getSnapshot());
|
|
8429
8435
|
let { keycode: o } = e;
|
|
8430
8436
|
if (this._cursorChange = 0, this._exitInput(e), t == null)
|
|
@@ -8436,19 +8442,24 @@ let Wc = class extends ae {
|
|
|
8436
8442
|
unitId: u
|
|
8437
8443
|
}), o === Z.ESC) {
|
|
8438
8444
|
this._editorBridgeService.isForceKeepVisible() && this._editorBridgeService.disableForceKeepVisible();
|
|
8439
|
-
const
|
|
8440
|
-
|
|
8445
|
+
const p = this._workbookSelections.getCurrentSelections();
|
|
8446
|
+
p && (this._contextService.setContextValue(so, !1), this._commandService.syncExecuteCommand(Ee.id, {
|
|
8441
8447
|
unitId: this._context.unit.getUnitId(),
|
|
8442
8448
|
subUnitId: h,
|
|
8443
|
-
selections:
|
|
8449
|
+
selections: p
|
|
8444
8450
|
}));
|
|
8445
8451
|
return;
|
|
8446
8452
|
}
|
|
8447
|
-
i
|
|
8453
|
+
const g = ((f = i == null ? void 0 : i.body) == null ? void 0 : f.dataStream.length) === 2, m = t.documentLayoutObject.documentModel ? this._isCellImageData(t.documentLayoutObject.documentModel.getSnapshot()) : !1;
|
|
8454
|
+
i && !(g && m) && await this._submitCellData(i) === !1 || this._moveSelection(o);
|
|
8448
8455
|
}
|
|
8449
8456
|
_getEditorObject() {
|
|
8450
8457
|
return kd(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
|
|
8451
8458
|
}
|
|
8459
|
+
_isCellImageData(e) {
|
|
8460
|
+
var n, i;
|
|
8461
|
+
return ((i = (n = e.drawingsOrder) == null ? void 0 : n.length) != null ? i : 0) > 0;
|
|
8462
|
+
}
|
|
8452
8463
|
submitCellData(e) {
|
|
8453
8464
|
return this._submitCellData(e.getSnapshot());
|
|
8454
8465
|
}
|
|
@@ -8537,7 +8548,7 @@ let Wc = class extends ae {
|
|
|
8537
8548
|
const t = this._getEditorObject();
|
|
8538
8549
|
if (!(t != null && t.document)) return;
|
|
8539
8550
|
const { document: n } = t;
|
|
8540
|
-
e.add(
|
|
8551
|
+
e.add(Fe(n.onPointerDown$.subscribeEvent(() => {
|
|
8541
8552
|
this._cursorChange === 1 && (this._cursorChange = 2);
|
|
8542
8553
|
})));
|
|
8543
8554
|
}
|
|
@@ -8670,7 +8681,7 @@ const Ju = om.MARK_SELECTION, Ti = vn("univer.mark-selection-service");
|
|
|
8670
8681
|
let Gs = class extends ae {
|
|
8671
8682
|
constructor(e, t, n) {
|
|
8672
8683
|
super();
|
|
8673
|
-
|
|
8684
|
+
_(this, "_shapeMap", /* @__PURE__ */ new Map());
|
|
8674
8685
|
this._currentService = e, this._renderManagerService = t, this._themeService = n;
|
|
8675
8686
|
}
|
|
8676
8687
|
addShape(e, t = [], n = Ju) {
|
|
@@ -8764,7 +8775,7 @@ function T_(r) {
|
|
|
8764
8775
|
}
|
|
8765
8776
|
class O_ {
|
|
8766
8777
|
constructor() {
|
|
8767
|
-
|
|
8778
|
+
_(this, "_cache", new Zp(M_));
|
|
8768
8779
|
}
|
|
8769
8780
|
set(e, t) {
|
|
8770
8781
|
this._cache.set(e, t);
|
|
@@ -8941,12 +8952,12 @@ function nh(r, e) {
|
|
|
8941
8952
|
}
|
|
8942
8953
|
const yl = class yl {
|
|
8943
8954
|
constructor(e) {
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8955
|
+
_(this, "_styleMap", /* @__PURE__ */ new Map());
|
|
8956
|
+
_(this, "_styleCache", /* @__PURE__ */ new Map());
|
|
8957
|
+
_(this, "_styleRules", []);
|
|
8958
|
+
_(this, "_afterProcessRules", []);
|
|
8959
|
+
_(this, "_dom", null);
|
|
8960
|
+
_(this, "_getCurrentSkeleton");
|
|
8950
8961
|
this._getCurrentSkeleton = e.getCurrentSkeleton;
|
|
8951
8962
|
}
|
|
8952
8963
|
static use(e) {
|
|
@@ -9283,7 +9294,7 @@ const yl = class yl {
|
|
|
9283
9294
|
this._dom = null, this._styleCache.clear(), this._styleMap.clear();
|
|
9284
9295
|
}
|
|
9285
9296
|
};
|
|
9286
|
-
|
|
9297
|
+
_(yl, "_pluginList", []);
|
|
9287
9298
|
let Ci = yl;
|
|
9288
9299
|
function H_(r) {
|
|
9289
9300
|
const e = /<tr([\s\S]*?)>([\s\S]*?)<\/tr>/gi, t = r.matchAll(e);
|
|
@@ -9659,19 +9670,19 @@ const on = vn("sheet.clipboard-service");
|
|
|
9659
9670
|
let Qs = class extends ae {
|
|
9660
9671
|
constructor(e, t, n, i, o, s, l, a, c, d, u, h, g, m) {
|
|
9661
9672
|
super();
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9673
|
+
_(this, "_clipboardHooks", []);
|
|
9674
|
+
_(this, "_clipboardHooks$", new Me([]));
|
|
9675
|
+
_(this, "clipboardHooks$", this._clipboardHooks$.asObservable());
|
|
9676
|
+
_(this, "_htmlToUSM");
|
|
9677
|
+
_(this, "_usmToHtml");
|
|
9678
|
+
_(this, "_copyContentCache");
|
|
9679
|
+
_(this, "_copyMarkId", null);
|
|
9669
9680
|
// Record the parsed matrix and row and column attributes
|
|
9670
|
-
|
|
9671
|
-
|
|
9681
|
+
_(this, "_pasteOptionsCache$", new Me(null));
|
|
9682
|
+
_(this, "pasteOptionsCache$", this._pasteOptionsCache$.asObservable());
|
|
9672
9683
|
//Control the visibility of the Paste Options menu
|
|
9673
|
-
|
|
9674
|
-
|
|
9684
|
+
_(this, "_showMenu$", new Me(!1));
|
|
9685
|
+
_(this, "showMenu$", this._showMenu$.asObservable());
|
|
9675
9686
|
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({
|
|
9676
9687
|
getCurrentSkeleton: () => {
|
|
9677
9688
|
var f;
|
|
@@ -9781,7 +9792,7 @@ let Qs = class extends ae {
|
|
|
9781
9792
|
const i = n.priority || 0;
|
|
9782
9793
|
return (e.priority || 0) < i;
|
|
9783
9794
|
});
|
|
9784
|
-
return this._clipboardHooks.splice(t !== -1 ? t : this._clipboardHooks.length, 0, e), this._notifyClipboardHook(),
|
|
9795
|
+
return this._clipboardHooks.splice(t !== -1 ? t : this._clipboardHooks.length, 0, e), this._notifyClipboardHook(), Fe(() => {
|
|
9785
9796
|
const n = this._clipboardHooks.indexOf(e);
|
|
9786
9797
|
n > -1 && (this._clipboardHooks.splice(n, 1), this._notifyClipboardHook());
|
|
9787
9798
|
});
|
|
@@ -10427,7 +10438,7 @@ const Jd = 998, mn = {
|
|
|
10427
10438
|
var a;
|
|
10428
10439
|
const t = (a = r.get($).getCurrentSelections()) == null ? void 0 : a.map((c) => c.range);
|
|
10429
10440
|
if (!(t != null && t.length)) return !1;
|
|
10430
|
-
const n = r.get(D), i = r.get(N), o =
|
|
10441
|
+
const n = r.get(D), i = r.get(N), o = Ue(i);
|
|
10431
10442
|
if (!o) return !1;
|
|
10432
10443
|
const { worksheet: s } = o, l = s.getVisibleRows();
|
|
10433
10444
|
if (gm(l, t)) {
|
|
@@ -10452,7 +10463,7 @@ const Jd = 998, mn = {
|
|
|
10452
10463
|
const t = (a = r.get($).getCurrentSelections()) == null ? void 0 : a.map((c) => c.range);
|
|
10453
10464
|
if (!(t != null && t.length))
|
|
10454
10465
|
return !1;
|
|
10455
|
-
const n = r.get(D), i = r.get(N), o =
|
|
10466
|
+
const n = r.get(D), i = r.get(N), o = Ue(i);
|
|
10456
10467
|
if (!o) return !1;
|
|
10457
10468
|
const { worksheet: s } = o, l = s.getVisibleCols();
|
|
10458
10469
|
if (mm(l, t)) {
|
|
@@ -10549,12 +10560,12 @@ const Zn = vn("univer.format-painter-service");
|
|
|
10549
10560
|
let Ks = class extends ae {
|
|
10550
10561
|
constructor(e, t, n, i, o, s) {
|
|
10551
10562
|
super();
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
|
|
10563
|
+
_(this, "status$");
|
|
10564
|
+
_(this, "_selectionFormat");
|
|
10565
|
+
_(this, "_markId", null);
|
|
10566
|
+
_(this, "_status$");
|
|
10567
|
+
_(this, "_defaultHook", null);
|
|
10568
|
+
_(this, "_extendHooks", []);
|
|
10558
10569
|
this._selectionManagerService = e, this._themeService = t, this._markSelectionService = n, this._logService = i, this._commandService = o, this._undoRedoService = s, this._status$ = new Me(
|
|
10559
10570
|
0
|
|
10560
10571
|
/* OFF */
|
|
@@ -10663,7 +10674,7 @@ const ia = {
|
|
|
10663
10674
|
type: Q.COMMAND,
|
|
10664
10675
|
id: "sheet.command.set-selection-frozen",
|
|
10665
10676
|
handler: async (r, e) => {
|
|
10666
|
-
const { type: t } = e || {}, n = r.get(N), i = r.get(qt), o =
|
|
10677
|
+
const { type: t } = e || {}, n = r.get(N), i = r.get(qt), o = Ue(n);
|
|
10667
10678
|
if (!o) return !1;
|
|
10668
10679
|
const { unitId: s, subUnitId: l } = o, a = r.get(D), d = r.get($).getCurrentSelections();
|
|
10669
10680
|
if (!d)
|
|
@@ -10734,7 +10745,7 @@ let bo = class extends ae {
|
|
|
10734
10745
|
super(), this._renderManagerService = r, this._univerInstanceService = e;
|
|
10735
10746
|
}
|
|
10736
10747
|
getUndoRedoParamsOfColWidth(r) {
|
|
10737
|
-
const e = { redos: [], undos: [] }, { _univerInstanceService: t } = this, n =
|
|
10748
|
+
const e = { redos: [], undos: [] }, { _univerInstanceService: t } = this, n = Ue(t);
|
|
10738
10749
|
if (!n) return e;
|
|
10739
10750
|
const { unitId: i, subUnitId: o, worksheet: s } = n, l = this._renderManagerService.getRenderById(i).with(he);
|
|
10740
10751
|
if (!l.getCurrentParam()) return e;
|
|
@@ -10771,7 +10782,7 @@ const aa = {
|
|
|
10771
10782
|
type: Q.COMMAND,
|
|
10772
10783
|
id: "sheet.command.set-col-auto-width",
|
|
10773
10784
|
handler: (r, e) => {
|
|
10774
|
-
const t = r.get(D), n = r.get(qt), i = r.get($), o = r.get(N), s =
|
|
10785
|
+
const t = r.get(D), n = r.get(qt), i = r.get($), o = r.get(N), s = Ue(o, e);
|
|
10775
10786
|
if (!s) return !1;
|
|
10776
10787
|
const { unitId: l, subUnitId: a } = s;
|
|
10777
10788
|
let c = [];
|
|
@@ -10814,7 +10825,7 @@ const aa = {
|
|
|
10814
10825
|
}
|
|
10815
10826
|
return /* @__PURE__ */ q("div", { className: Ta.sheetsUiContextMenuInput, children: [
|
|
10816
10827
|
l.t(e),
|
|
10817
|
-
/* @__PURE__ */
|
|
10828
|
+
/* @__PURE__ */ w("span", { className: Ta.sheetsUiContextMenuInputContainer, onClick: (g) => g.stopPropagation(), children: /* @__PURE__ */ w(
|
|
10818
10829
|
Kv,
|
|
10819
10830
|
{
|
|
10820
10831
|
className: Ta.sheetsUiContextMenuInputNumber,
|
|
@@ -11575,7 +11586,7 @@ function Oa(r) {
|
|
|
11575
11586
|
icon: "PasteSpecial",
|
|
11576
11587
|
disabled$: Qo(r).pipe(
|
|
11577
11588
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [te, Ge, Jt], workbookTypes: [J] })),
|
|
11578
|
-
|
|
11589
|
+
Be(([e, t]) => e || t)
|
|
11579
11590
|
),
|
|
11580
11591
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
11581
11592
|
};
|
|
@@ -11597,7 +11608,7 @@ function Aa(r) {
|
|
|
11597
11608
|
title: "rightClick.pasteValue",
|
|
11598
11609
|
disabled$: Qo(r).pipe(
|
|
11599
11610
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [Jt, te], workbookTypes: [J] })),
|
|
11600
|
-
|
|
11611
|
+
Be(([e, t]) => e || t)
|
|
11601
11612
|
),
|
|
11602
11613
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
11603
11614
|
};
|
|
@@ -11609,7 +11620,7 @@ function Ha(r) {
|
|
|
11609
11620
|
title: "rightClick.pasteFormat",
|
|
11610
11621
|
disabled$: Qo(r).pipe(
|
|
11611
11622
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [Ge, te], workbookTypes: [J] })),
|
|
11612
|
-
|
|
11623
|
+
Be(([e, t]) => e || t)
|
|
11613
11624
|
),
|
|
11614
11625
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
11615
11626
|
};
|
|
@@ -11621,7 +11632,7 @@ function ka(r) {
|
|
|
11621
11632
|
title: "rightClick.pasteColWidth",
|
|
11622
11633
|
disabled$: Qo(r).pipe(
|
|
11623
11634
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [Dr, te], workbookTypes: [J] })),
|
|
11624
|
-
|
|
11635
|
+
Be(([e, t]) => e || t)
|
|
11625
11636
|
)
|
|
11626
11637
|
};
|
|
11627
11638
|
}
|
|
@@ -11632,7 +11643,7 @@ function Va(r) {
|
|
|
11632
11643
|
title: "rightClick.pasteBesidesBorder",
|
|
11633
11644
|
disabled$: Qo(r).pipe(
|
|
11634
11645
|
dr(me(r, { rangeTypes: [re], worksheetTypes: [te, Ge, Jt, Nr, Dr], workbookTypes: [J] })),
|
|
11635
|
-
|
|
11646
|
+
Be(([e, t]) => e || t)
|
|
11636
11647
|
),
|
|
11637
11648
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
11638
11649
|
};
|
|
@@ -11866,26 +11877,26 @@ const Fw = "__SpreadsheetFreezeRowMainName__", Uw = "__SpreadsheetFreezeRowHeade
|
|
|
11866
11877
|
let _o = class extends ae {
|
|
11867
11878
|
constructor(e, t, n, i, o, s, l, a) {
|
|
11868
11879
|
super();
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
|
|
11881
|
-
|
|
11882
|
-
|
|
11883
|
-
|
|
11884
|
-
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
11880
|
+
_(this, "_rowFreezeHeaderRect");
|
|
11881
|
+
_(this, "_rowFreezeMainRect");
|
|
11882
|
+
_(this, "_columnFreezeHeaderRect");
|
|
11883
|
+
_(this, "_columnFreezeMainRect");
|
|
11884
|
+
_(this, "_freezeDownSubs");
|
|
11885
|
+
_(this, "_freezePointerEnterSubs");
|
|
11886
|
+
_(this, "_freezePointerLeaveSubs");
|
|
11887
|
+
_(this, "_scenePointerMoveSub");
|
|
11888
|
+
_(this, "_scenePointerUpSub");
|
|
11889
|
+
_(this, "_changeToRow", -1);
|
|
11890
|
+
_(this, "_changeToColumn", -1);
|
|
11891
|
+
_(this, "_changeToOffsetX", 0);
|
|
11892
|
+
_(this, "_changeToOffsetY", 0);
|
|
11893
|
+
_(this, "_activeViewport", null);
|
|
11894
|
+
_(this, "_freezeNormalHeaderColor", "");
|
|
11895
|
+
_(this, "_freezeNormalMainColor", "");
|
|
11896
|
+
_(this, "_freezeActiveColor", "");
|
|
11897
|
+
_(this, "_freezeHoverColor", "");
|
|
11898
|
+
_(this, "_lastFreeze");
|
|
11899
|
+
_(this, "interceptor", new yi({ FREEZE_PERMISSION_CHECK: Ui }));
|
|
11889
11900
|
this._context = e, this._sheetSkeletonManagerService = t, this._commandService = n, this._selectionManagerService = i, this._scrollManagerService = o, this._themeService = s, this._sheetInterceptorService = l, this._injector = a, this._initialize();
|
|
11890
11901
|
}
|
|
11891
11902
|
dispose() {
|
|
@@ -12393,7 +12404,7 @@ let _o = class extends ae {
|
|
|
12393
12404
|
*/
|
|
12394
12405
|
_skeletonListener() {
|
|
12395
12406
|
this.disposeWithMe(
|
|
12396
|
-
|
|
12407
|
+
Fe(
|
|
12397
12408
|
this._sheetSkeletonManagerService.currentSkeleton$.subscribe((e) => {
|
|
12398
12409
|
[
|
|
12399
12410
|
rt.id,
|
|
@@ -12720,7 +12731,7 @@ function Yw(r) {
|
|
|
12720
12731
|
const e = r.get($), t = r.get(et), n = r.get(N), i = r.get(lv), o = n.getCurrentTypeOfUnit$(x.UNIVER_SHEET);
|
|
12721
12732
|
return dt([
|
|
12722
12733
|
e.selectionMoveEnd$,
|
|
12723
|
-
o.pipe(
|
|
12734
|
+
o.pipe(Be((s) => {
|
|
12724
12735
|
var l;
|
|
12725
12736
|
return (l = s == null ? void 0 : s.getUnitId()) != null ? l : "";
|
|
12726
12737
|
})),
|
|
@@ -12729,7 +12740,7 @@ function Yw(r) {
|
|
|
12729
12740
|
return (l = s == null ? void 0 : s.activeSheet$) != null ? l : Re(null);
|
|
12730
12741
|
}))
|
|
12731
12742
|
]).pipe(
|
|
12732
|
-
|
|
12743
|
+
Be(([s, l, a]) => {
|
|
12733
12744
|
if (!a || !s || s.length === 0) return !1;
|
|
12734
12745
|
const c = a.getSheetId(), d = s.map((g) => g.range);
|
|
12735
12746
|
if (i.interceptor.fetchThroughInterceptors(av)(!1, d))
|
|
@@ -12768,22 +12779,22 @@ const qw = "__SpreadsheetHeaderMoveControllerBackground__", Qw = "__SpreadsheetH
|
|
|
12768
12779
|
let wo = class extends ae {
|
|
12769
12780
|
constructor(e, t, n, i) {
|
|
12770
12781
|
super();
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
|
|
12781
|
-
|
|
12782
|
-
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
|
|
12782
|
+
_(this, "_startOffsetX", Number.NEGATIVE_INFINITY);
|
|
12783
|
+
_(this, "_startOffsetY", Number.NEGATIVE_INFINITY);
|
|
12784
|
+
_(this, "_moveHelperBackgroundShape");
|
|
12785
|
+
_(this, "_moveHelperLineShape");
|
|
12786
|
+
_(this, "_headerPointerDownSubs");
|
|
12787
|
+
_(this, "_headerPointerMoveSubs");
|
|
12788
|
+
_(this, "_headerPointerLeaveSubs");
|
|
12789
|
+
_(this, "_dragHeaderMoveSub");
|
|
12790
|
+
_(this, "_scenePointerUpSub");
|
|
12791
|
+
_(this, "_scrollTimer");
|
|
12792
|
+
_(this, "_changeFromColumn", -1);
|
|
12793
|
+
_(this, "_changeFromRow", -1);
|
|
12794
|
+
_(this, "_changeToColumn", -1);
|
|
12795
|
+
_(this, "_changeToRow", -1);
|
|
12796
|
+
_(this, "interceptor", new yi({ HEADER_MOVE_PERMISSION_CHECK: Ba }));
|
|
12797
|
+
_(this, "_workbookSelections");
|
|
12787
12798
|
this._context = e, this._sheetSkeletonManagerService = n, this._commandService = i, this._workbookSelections = t.getWorkbookSelections(this._context.unitId), this._init();
|
|
12788
12799
|
}
|
|
12789
12800
|
dispose() {
|
|
@@ -13010,9 +13021,9 @@ const e0 = "rgba(120, 120, 120, 0.01)", Fa = "rgb(68, 71, 70)", Qi = 12, t0 = 44
|
|
|
13010
13021
|
class mh extends pd {
|
|
13011
13022
|
constructor(t, n) {
|
|
13012
13023
|
super(t, n);
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
|
|
13024
|
+
_(this, "_size", Qi);
|
|
13025
|
+
_(this, "_color", Fa);
|
|
13026
|
+
_(this, "_mode", 0);
|
|
13016
13027
|
this.setShapeProps(n);
|
|
13017
13028
|
}
|
|
13018
13029
|
get size() {
|
|
@@ -13066,18 +13077,18 @@ const i0 = "__SpreadsheetHeaderResizeControllerShapeRow__", o0 = "__SpreadsheetH
|
|
|
13066
13077
|
let $s = class extends ae {
|
|
13067
13078
|
constructor(e, t, n, i) {
|
|
13068
13079
|
super();
|
|
13069
|
-
|
|
13070
|
-
|
|
13071
|
-
|
|
13072
|
-
|
|
13073
|
-
|
|
13080
|
+
_(this, "_currentRow", 0);
|
|
13081
|
+
_(this, "_currentColumn", 0);
|
|
13082
|
+
_(this, "_rowResizeRect");
|
|
13083
|
+
_(this, "_columnResizeRect");
|
|
13084
|
+
_(this, "_headerPointerSubs");
|
|
13074
13085
|
// private _colHeaderPointerSubs: Array<Subscription>;
|
|
13075
|
-
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13080
|
-
|
|
13086
|
+
_(this, "_scenePointerMoveSub");
|
|
13087
|
+
_(this, "_scenePointerUpSub");
|
|
13088
|
+
_(this, "_resizeHelperShape");
|
|
13089
|
+
_(this, "_startOffsetX", Number.POSITIVE_INFINITY);
|
|
13090
|
+
_(this, "_startOffsetY", Number.POSITIVE_INFINITY);
|
|
13091
|
+
_(this, "interceptor", new yi({ HEADER_RESIZE_PERMISSION_CHECK: Xa }));
|
|
13081
13092
|
this._context = e, this._sheetSkeletonManagerService = t, this._selectionManagerService = n, this._commandService = i, this._init();
|
|
13082
13093
|
}
|
|
13083
13094
|
dispose() {
|
|
@@ -13300,11 +13311,11 @@ const c0 = 60;
|
|
|
13300
13311
|
let el = class extends Un {
|
|
13301
13312
|
constructor(e, t, n, i, o) {
|
|
13302
13313
|
super();
|
|
13303
|
-
|
|
13304
|
-
|
|
13305
|
-
|
|
13306
|
-
|
|
13307
|
-
|
|
13314
|
+
_(this, "_renderMetric$", new Ae());
|
|
13315
|
+
_(this, "renderMetric$", this._renderMetric$.asObservable());
|
|
13316
|
+
_(this, "_renderFrameTimeMetric", null);
|
|
13317
|
+
_(this, "_renderFrameTags", {});
|
|
13318
|
+
_(this, "_afterRenderMetric$", new Ae());
|
|
13308
13319
|
this._context = e, this._sheetSkeletonManagerService = t, this._sheetRenderService = n, this._commandService = i, this._telemetryService = o, this._addNewRender(), this._initRenderMetricSubscriber();
|
|
13309
13320
|
}
|
|
13310
13321
|
_addNewRender() {
|
|
@@ -13823,7 +13834,7 @@ const hr = {
|
|
|
13823
13834
|
const e = r.get(rn), t = r.get(D), n = r.get(He), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
|
|
13824
13835
|
if (!s)
|
|
13825
13836
|
return !1;
|
|
13826
|
-
const l =
|
|
13837
|
+
const l = Ue(o);
|
|
13827
13838
|
if (!l) return !1;
|
|
13828
13839
|
const { worksheet: a } = l;
|
|
13829
13840
|
let c = s[0].range;
|
|
@@ -13848,7 +13859,7 @@ const hr = {
|
|
|
13848
13859
|
handler: async (r) => {
|
|
13849
13860
|
const e = r.get(rn), t = r.get(D), n = r.get(He), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
|
|
13850
13861
|
if (!s) return !1;
|
|
13851
|
-
const l =
|
|
13862
|
+
const l = Ue(o);
|
|
13852
13863
|
if (!l) return !1;
|
|
13853
13864
|
const { worksheet: a } = l;
|
|
13854
13865
|
let c = s[0].range;
|
|
@@ -13881,7 +13892,7 @@ const hr = {
|
|
|
13881
13892
|
const e = r.get(rn), t = r.get(D), n = r.get(He), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
|
|
13882
13893
|
if (!s)
|
|
13883
13894
|
return !1;
|
|
13884
|
-
const l =
|
|
13895
|
+
const l = Ue(o);
|
|
13885
13896
|
if (!l) return !1;
|
|
13886
13897
|
const { worksheet: a } = l;
|
|
13887
13898
|
let c = s[0].range;
|
|
@@ -13915,7 +13926,7 @@ const hr = {
|
|
|
13915
13926
|
const e = r.get(rn), t = r.get(D), n = r.get(He), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
|
|
13916
13927
|
if (!s)
|
|
13917
13928
|
return !1;
|
|
13918
|
-
const l =
|
|
13929
|
+
const l = Ue(o);
|
|
13919
13930
|
if (!l) return !1;
|
|
13920
13931
|
const { worksheet: a } = l;
|
|
13921
13932
|
let c = s[0].range;
|
|
@@ -13979,8 +13990,8 @@ const Ro = "UNIVER_SHEET_PERMISSION_PANEL", jc = "UNIVER_SHEET_PERMISSION_USER_P
|
|
|
13979
13990
|
};
|
|
13980
13991
|
class wi {
|
|
13981
13992
|
constructor() {
|
|
13982
|
-
|
|
13983
|
-
|
|
13993
|
+
_(this, "_rule", b0);
|
|
13994
|
+
_(this, "_visible", !1);
|
|
13984
13995
|
}
|
|
13985
13996
|
setVisible(e) {
|
|
13986
13997
|
this._visible = e;
|
|
@@ -13994,13 +14005,13 @@ class wi {
|
|
|
13994
14005
|
}
|
|
13995
14006
|
class Fr {
|
|
13996
14007
|
constructor() {
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14008
|
+
_(this, "_userList", []);
|
|
14009
|
+
_(this, "_userList$", new Me(this._userList));
|
|
14010
|
+
_(this, "userList$", this._userList$.asObservable());
|
|
14011
|
+
_(this, "_oldCollaboratorList", []);
|
|
14012
|
+
_(this, "_selectUserList", []);
|
|
14013
|
+
_(this, "_selectUserList$", new Me(this._selectUserList));
|
|
14014
|
+
_(this, "selectUserList$", this._selectUserList$.asObservable());
|
|
14004
14015
|
}
|
|
14005
14016
|
get userList() {
|
|
14006
14017
|
return this._userList;
|
|
@@ -14146,7 +14157,7 @@ const Bn = {
|
|
|
14146
14157
|
let n = e == null ? void 0 : e.range;
|
|
14147
14158
|
if (n || (n = (c = t.getCurrentLastSelection()) == null ? void 0 : c.range), !n)
|
|
14148
14159
|
return !1;
|
|
14149
|
-
const i = r.get(D), o = r.get(N), s =
|
|
14160
|
+
const i = r.get(D), o = r.get(N), s = Ue(o);
|
|
14150
14161
|
if (!s) return !1;
|
|
14151
14162
|
const { worksheet: l } = s, a = l.getVisibleRows();
|
|
14152
14163
|
if (gm(a, [n])) {
|
|
@@ -14172,7 +14183,7 @@ const Bn = {
|
|
|
14172
14183
|
let n = e == null ? void 0 : e.range;
|
|
14173
14184
|
if (n || (n = (c = t.getCurrentLastSelection()) == null ? void 0 : c.range), !n)
|
|
14174
14185
|
return !1;
|
|
14175
|
-
const i = r.get(D), o = r.get(N), s =
|
|
14186
|
+
const i = r.get(D), o = r.get(N), s = Ue(o);
|
|
14176
14187
|
if (!s) return !1;
|
|
14177
14188
|
const { worksheet: l } = s, a = l.getVisibleCols();
|
|
14178
14189
|
if (mm(a, [n])) {
|
|
@@ -14263,137 +14274,137 @@ const Bn = {
|
|
|
14263
14274
|
}), !0;
|
|
14264
14275
|
}
|
|
14265
14276
|
}, _0 = () => /* @__PURE__ */ q("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
14266
|
-
/* @__PURE__ */
|
|
14267
|
-
/* @__PURE__ */
|
|
14268
|
-
/* @__PURE__ */
|
|
14269
|
-
/* @__PURE__ */
|
|
14270
|
-
/* @__PURE__ */
|
|
14271
|
-
/* @__PURE__ */
|
|
14272
|
-
/* @__PURE__ */
|
|
14273
|
-
/* @__PURE__ */
|
|
14274
|
-
/* @__PURE__ */
|
|
14275
|
-
/* @__PURE__ */
|
|
14276
|
-
/* @__PURE__ */
|
|
14277
|
-
/* @__PURE__ */
|
|
14278
|
-
/* @__PURE__ */
|
|
14279
|
-
/* @__PURE__ */
|
|
14280
|
-
/* @__PURE__ */
|
|
14281
|
-
/* @__PURE__ */
|
|
14282
|
-
/* @__PURE__ */
|
|
14283
|
-
/* @__PURE__ */
|
|
14284
|
-
/* @__PURE__ */
|
|
14285
|
-
/* @__PURE__ */
|
|
14286
|
-
/* @__PURE__ */
|
|
14287
|
-
/* @__PURE__ */
|
|
14288
|
-
/* @__PURE__ */
|
|
14289
|
-
/* @__PURE__ */
|
|
14290
|
-
/* @__PURE__ */
|
|
14291
|
-
/* @__PURE__ */
|
|
14292
|
-
/* @__PURE__ */
|
|
14277
|
+
/* @__PURE__ */ w("path", { d: "M0.98999 1.08218H-0.0100098V0.0821838H0.98999V1.08218Z", fill: "black" }),
|
|
14278
|
+
/* @__PURE__ */ w("path", { d: "M5.78992 1.08218H2.78992V0.0821838H5.78992V1.08218Z", fill: "black" }),
|
|
14279
|
+
/* @__PURE__ */ w("path", { d: "M7.58984 1.08218H8.58984V0.0821838H7.58984V1.08218Z", fill: "black" }),
|
|
14280
|
+
/* @__PURE__ */ w("path", { d: "M14.9152 1.08218H13.9152V0.0821838H14.9152V1.08218Z", fill: "black" }),
|
|
14281
|
+
/* @__PURE__ */ w("path", { d: "M16.7151 1.08218H19.7151V0.0821838H16.7151V1.08218Z", fill: "black" }),
|
|
14282
|
+
/* @__PURE__ */ w("path", { d: "M22.515 1.08218H21.515V0.0821838H22.515V1.08218Z", fill: "black" }),
|
|
14283
|
+
/* @__PURE__ */ w("path", { d: "M27.8405 1.08218H28.8405V0.0821838H27.8405V1.08218Z", fill: "black" }),
|
|
14284
|
+
/* @__PURE__ */ w("path", { d: "M33.6404 1.08218H30.6404V0.0821838H33.6404V1.08218Z", fill: "black" }),
|
|
14285
|
+
/* @__PURE__ */ w("path", { d: "M35.4403 1.08218H36.4403V0.0821838H35.4403V1.08218Z", fill: "black" }),
|
|
14286
|
+
/* @__PURE__ */ w("path", { d: "M42.7657 1.08218H41.7657V0.0821838H42.7657V1.08218Z", fill: "black" }),
|
|
14287
|
+
/* @__PURE__ */ w("path", { d: "M44.5657 1.08218H47.5657V0.0821838H44.5657V1.08218Z", fill: "black" }),
|
|
14288
|
+
/* @__PURE__ */ w("path", { d: "M50.3656 1.08218H49.3656V0.0821838H50.3656V1.08218Z", fill: "black" }),
|
|
14289
|
+
/* @__PURE__ */ w("path", { d: "M55.691 1.08218H56.691V0.0821838H55.691V1.08218Z", fill: "black" }),
|
|
14290
|
+
/* @__PURE__ */ w("path", { d: "M61.491 1.08218H58.491V0.0821838H61.491V1.08218Z", fill: "black" }),
|
|
14291
|
+
/* @__PURE__ */ w("path", { d: "M63.2909 1.08218H64.2909V0.0821838H63.2909V1.08218Z", fill: "black" }),
|
|
14292
|
+
/* @__PURE__ */ w("path", { d: "M70.6163 1.08218H69.6163V0.0821838H70.6163V1.08218Z", fill: "black" }),
|
|
14293
|
+
/* @__PURE__ */ w("path", { d: "M72.4163 1.08218H75.4163V0.0821838H72.4163V1.08218Z", fill: "black" }),
|
|
14294
|
+
/* @__PURE__ */ w("path", { d: "M78.2162 1.08218H77.2162V0.0821838H78.2162V1.08218Z", fill: "black" }),
|
|
14295
|
+
/* @__PURE__ */ w("path", { d: "M83.5416 1.08218H84.5416V0.0821838H83.5416V1.08218Z", fill: "black" }),
|
|
14296
|
+
/* @__PURE__ */ w("path", { d: "M89.3416 1.08218H86.3416V0.0821838H89.3416V1.08218Z", fill: "black" }),
|
|
14297
|
+
/* @__PURE__ */ w("path", { d: "M91.1415 1.08218H92.1415V0.0821838H91.1415V1.08218Z", fill: "black" }),
|
|
14298
|
+
/* @__PURE__ */ w("path", { d: "M98.4669 1.08218H97.4669V0.0821838H98.4669V1.08218Z", fill: "black" }),
|
|
14299
|
+
/* @__PURE__ */ w("path", { d: "M100.267 1.08218H103.267V0.0821838H100.267V1.08218Z", fill: "black" }),
|
|
14300
|
+
/* @__PURE__ */ w("path", { d: "M106.067 1.08218H105.067V0.0821838H106.067V1.08218Z", fill: "black" }),
|
|
14301
|
+
/* @__PURE__ */ w("path", { d: "M111.392 1.08218H112.392V0.0821838H111.392V1.08218Z", fill: "black" }),
|
|
14302
|
+
/* @__PURE__ */ w("path", { d: "M117.192 1.08218H114.192V0.0821838H117.192V1.08218Z", fill: "black" }),
|
|
14303
|
+
/* @__PURE__ */ w("path", { d: "M118.992 1.08218H119.992V0.0821838H118.992V1.08218Z", fill: "black" })
|
|
14293
14304
|
] }), w0 = () => /* @__PURE__ */ q("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
14294
|
-
/* @__PURE__ */
|
|
14295
|
-
/* @__PURE__ */
|
|
14296
|
-
/* @__PURE__ */
|
|
14297
|
-
/* @__PURE__ */
|
|
14298
|
-
/* @__PURE__ */
|
|
14299
|
-
/* @__PURE__ */
|
|
14300
|
-
/* @__PURE__ */
|
|
14301
|
-
/* @__PURE__ */
|
|
14302
|
-
/* @__PURE__ */
|
|
14303
|
-
/* @__PURE__ */
|
|
14304
|
-
/* @__PURE__ */
|
|
14305
|
-
/* @__PURE__ */
|
|
14306
|
-
/* @__PURE__ */
|
|
14307
|
-
/* @__PURE__ */
|
|
14308
|
-
/* @__PURE__ */
|
|
14309
|
-
/* @__PURE__ */
|
|
14310
|
-
/* @__PURE__ */
|
|
14311
|
-
/* @__PURE__ */
|
|
14312
|
-
/* @__PURE__ */
|
|
14313
|
-
/* @__PURE__ */
|
|
14314
|
-
/* @__PURE__ */
|
|
14315
|
-
/* @__PURE__ */
|
|
14316
|
-
/* @__PURE__ */
|
|
14317
|
-
/* @__PURE__ */
|
|
14318
|
-
/* @__PURE__ */
|
|
14319
|
-
/* @__PURE__ */
|
|
14320
|
-
/* @__PURE__ */
|
|
14321
|
-
/* @__PURE__ */
|
|
14305
|
+
/* @__PURE__ */ w("path", { d: "M-0.0100098 1.15771H0.98999V0.157715H-0.0100098V1.15771Z", fill: "black" }),
|
|
14306
|
+
/* @__PURE__ */ w("path", { d: "M2.78992 1.15771H5.78992V0.157715H2.78992V1.15771Z", fill: "black" }),
|
|
14307
|
+
/* @__PURE__ */ w("path", { d: "M8.58984 1.15771H7.58984V0.157715H8.58984V1.15771Z", fill: "black" }),
|
|
14308
|
+
/* @__PURE__ */ w("path", { d: "M10.3899 1.15771H11.3899V0.157715H10.3899V1.15771Z", fill: "black" }),
|
|
14309
|
+
/* @__PURE__ */ w("path", { d: "M19.0903 1.15771H18.0903V0.157715H19.0903V1.15771Z", fill: "black" }),
|
|
14310
|
+
/* @__PURE__ */ w("path", { d: "M20.8903 1.15771H23.8903V0.157715H20.8903V1.15771Z", fill: "black" }),
|
|
14311
|
+
/* @__PURE__ */ w("path", { d: "M26.6902 1.15771H25.6902V0.157715H26.6902V1.15771Z", fill: "black" }),
|
|
14312
|
+
/* @__PURE__ */ w("path", { d: "M28.4902 1.15771H29.4902V0.157715H28.4902V1.15771Z", fill: "black" }),
|
|
14313
|
+
/* @__PURE__ */ w("path", { d: "M37.1907 1.15771H36.1907V0.157715H37.1907V1.15771Z", fill: "black" }),
|
|
14314
|
+
/* @__PURE__ */ w("path", { d: "M38.9906 1.15771H41.9906V0.157715H38.9906V1.15771Z", fill: "black" }),
|
|
14315
|
+
/* @__PURE__ */ w("path", { d: "M44.7905 1.15771H43.7905V0.157715H44.7905V1.15771Z", fill: "black" }),
|
|
14316
|
+
/* @__PURE__ */ w("path", { d: "M46.5906 1.15771H47.5906V0.157715H46.5906V1.15771Z", fill: "black" }),
|
|
14317
|
+
/* @__PURE__ */ w("path", { d: "M55.291 1.15771H54.291V0.157715H55.291V1.15771Z", fill: "black" }),
|
|
14318
|
+
/* @__PURE__ */ w("path", { d: "M57.0909 1.15771H60.0909V0.157715H57.0909V1.15771Z", fill: "black" }),
|
|
14319
|
+
/* @__PURE__ */ w("path", { d: "M62.8909 1.15771H61.8909V0.157715H62.8909V1.15771Z", fill: "black" }),
|
|
14320
|
+
/* @__PURE__ */ w("path", { d: "M64.6909 1.15771H65.6909V0.157715H64.6909V1.15771Z", fill: "black" }),
|
|
14321
|
+
/* @__PURE__ */ w("path", { d: "M73.3914 1.15771H72.3914V0.157715H73.3914V1.15771Z", fill: "black" }),
|
|
14322
|
+
/* @__PURE__ */ w("path", { d: "M75.1913 1.15771H78.1913V0.157715H75.1913V1.15771Z", fill: "black" }),
|
|
14323
|
+
/* @__PURE__ */ w("path", { d: "M80.9912 1.15771H79.9912V0.157715H80.9912V1.15771Z", fill: "black" }),
|
|
14324
|
+
/* @__PURE__ */ w("path", { d: "M82.7913 1.15771H83.7913V0.157715H82.7913V1.15771Z", fill: "black" }),
|
|
14325
|
+
/* @__PURE__ */ w("path", { d: "M91.4917 1.15771H90.4917V0.157715H91.4917V1.15771Z", fill: "black" }),
|
|
14326
|
+
/* @__PURE__ */ w("path", { d: "M93.2916 1.15771H96.2916V0.157715H93.2916V1.15771Z", fill: "black" }),
|
|
14327
|
+
/* @__PURE__ */ w("path", { d: "M99.0916 1.15771H98.0916V0.157715H99.0916V1.15771Z", fill: "black" }),
|
|
14328
|
+
/* @__PURE__ */ w("path", { d: "M100.892 1.15771H101.892V0.157715H100.892V1.15771Z", fill: "black" }),
|
|
14329
|
+
/* @__PURE__ */ w("path", { d: "M109.592 1.15771H108.592V0.157715H109.592V1.15771Z", fill: "black" }),
|
|
14330
|
+
/* @__PURE__ */ w("path", { d: "M111.392 1.15771H114.392V0.157715H111.392V1.15771Z", fill: "black" }),
|
|
14331
|
+
/* @__PURE__ */ w("path", { d: "M117.192 1.15771H116.192V0.157715H117.192V1.15771Z", fill: "black" }),
|
|
14332
|
+
/* @__PURE__ */ w("path", { d: "M118.992 1.15771H119.992V0.157715H118.992V1.15771Z", fill: "black" })
|
|
14322
14333
|
] }), R0 = () => /* @__PURE__ */ q("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
14323
|
-
/* @__PURE__ */
|
|
14324
|
-
/* @__PURE__ */
|
|
14325
|
-
/* @__PURE__ */
|
|
14326
|
-
/* @__PURE__ */
|
|
14327
|
-
/* @__PURE__ */
|
|
14328
|
-
/* @__PURE__ */
|
|
14329
|
-
/* @__PURE__ */
|
|
14330
|
-
/* @__PURE__ */
|
|
14331
|
-
/* @__PURE__ */
|
|
14332
|
-
/* @__PURE__ */
|
|
14333
|
-
/* @__PURE__ */
|
|
14334
|
-
/* @__PURE__ */
|
|
14335
|
-
/* @__PURE__ */
|
|
14336
|
-
/* @__PURE__ */
|
|
14337
|
-
/* @__PURE__ */
|
|
14338
|
-
/* @__PURE__ */
|
|
14339
|
-
/* @__PURE__ */
|
|
14340
|
-
/* @__PURE__ */
|
|
14341
|
-
/* @__PURE__ */
|
|
14342
|
-
/* @__PURE__ */
|
|
14334
|
+
/* @__PURE__ */ w("path", { d: "M-0.00842285 1.22449H2.99158V0.224487H-0.00842285V1.22449Z", fill: "black" }),
|
|
14335
|
+
/* @__PURE__ */ w("path", { d: "M6.14941 1.22449H9.14941V0.224487H6.14941V1.22449Z", fill: "black" }),
|
|
14336
|
+
/* @__PURE__ */ w("path", { d: "M15.3073 1.22449H12.3073V0.224487H15.3073V1.22449Z", fill: "black" }),
|
|
14337
|
+
/* @__PURE__ */ w("path", { d: "M18.4651 1.22449H21.4651V0.224487H18.4651V1.22449Z", fill: "black" }),
|
|
14338
|
+
/* @__PURE__ */ w("path", { d: "M27.6229 1.22449H24.6229V0.224487H27.6229V1.22449Z", fill: "black" }),
|
|
14339
|
+
/* @__PURE__ */ w("path", { d: "M30.7808 1.22449H33.7808V0.224487H30.7808V1.22449Z", fill: "black" }),
|
|
14340
|
+
/* @__PURE__ */ w("path", { d: "M39.9386 1.22449H36.9386V0.224487H39.9386V1.22449Z", fill: "black" }),
|
|
14341
|
+
/* @__PURE__ */ w("path", { d: "M43.0964 1.22449H46.0964V0.224487H43.0964V1.22449Z", fill: "black" }),
|
|
14342
|
+
/* @__PURE__ */ w("path", { d: "M52.2543 1.22449H49.2543V0.224487H52.2543V1.22449Z", fill: "black" }),
|
|
14343
|
+
/* @__PURE__ */ w("path", { d: "M55.4121 1.22449H58.4121V0.224487H55.4121V1.22449Z", fill: "black" }),
|
|
14344
|
+
/* @__PURE__ */ w("path", { d: "M64.5699 1.22449H61.5699V0.224487H64.5699V1.22449Z", fill: "black" }),
|
|
14345
|
+
/* @__PURE__ */ w("path", { d: "M67.7278 1.22449H70.7278V0.224487H67.7278V1.22449Z", fill: "black" }),
|
|
14346
|
+
/* @__PURE__ */ w("path", { d: "M76.8856 1.22449H73.8856V0.224487H76.8856V1.22449Z", fill: "black" }),
|
|
14347
|
+
/* @__PURE__ */ w("path", { d: "M80.0435 1.22449H83.0435V0.224487H80.0435V1.22449Z", fill: "black" }),
|
|
14348
|
+
/* @__PURE__ */ w("path", { d: "M89.2013 1.22449H86.2013V0.224487H89.2013V1.22449Z", fill: "black" }),
|
|
14349
|
+
/* @__PURE__ */ w("path", { d: "M92.3591 1.22449H95.3591V0.224487H92.3591V1.22449Z", fill: "black" }),
|
|
14350
|
+
/* @__PURE__ */ w("path", { d: "M101.517 1.22449H98.517V0.224487H101.517V1.22449Z", fill: "black" }),
|
|
14351
|
+
/* @__PURE__ */ w("path", { d: "M104.675 1.22449H107.675V0.224487H104.675V1.22449Z", fill: "black" }),
|
|
14352
|
+
/* @__PURE__ */ w("path", { d: "M113.833 1.22449H110.833V0.224487H113.833V1.22449Z", fill: "black" }),
|
|
14353
|
+
/* @__PURE__ */ w("path", { d: "M116.99 1.22449H119.99V0.224487H116.99V1.22449Z", fill: "black" })
|
|
14343
14354
|
] }), I0 = () => /* @__PURE__ */ q("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
14344
|
-
/* @__PURE__ */
|
|
14345
|
-
/* @__PURE__ */
|
|
14346
|
-
/* @__PURE__ */
|
|
14347
|
-
/* @__PURE__ */
|
|
14348
|
-
/* @__PURE__ */
|
|
14349
|
-
/* @__PURE__ */
|
|
14350
|
-
/* @__PURE__ */
|
|
14351
|
-
/* @__PURE__ */
|
|
14352
|
-
/* @__PURE__ */
|
|
14353
|
-
/* @__PURE__ */
|
|
14354
|
-
/* @__PURE__ */
|
|
14355
|
-
/* @__PURE__ */
|
|
14356
|
-
/* @__PURE__ */
|
|
14357
|
-
/* @__PURE__ */
|
|
14358
|
-
/* @__PURE__ */
|
|
14359
|
-
/* @__PURE__ */
|
|
14360
|
-
/* @__PURE__ */
|
|
14361
|
-
/* @__PURE__ */
|
|
14362
|
-
/* @__PURE__ */
|
|
14363
|
-
/* @__PURE__ */
|
|
14364
|
-
/* @__PURE__ */
|
|
14365
|
-
/* @__PURE__ */
|
|
14366
|
-
/* @__PURE__ */
|
|
14367
|
-
/* @__PURE__ */
|
|
14368
|
-
/* @__PURE__ */
|
|
14369
|
-
/* @__PURE__ */
|
|
14370
|
-
/* @__PURE__ */
|
|
14371
|
-
/* @__PURE__ */
|
|
14372
|
-
/* @__PURE__ */
|
|
14373
|
-
/* @__PURE__ */
|
|
14374
|
-
/* @__PURE__ */
|
|
14375
|
-
/* @__PURE__ */
|
|
14376
|
-
/* @__PURE__ */
|
|
14377
|
-
/* @__PURE__ */
|
|
14378
|
-
/* @__PURE__ */
|
|
14379
|
-
/* @__PURE__ */
|
|
14380
|
-
/* @__PURE__ */
|
|
14381
|
-
/* @__PURE__ */
|
|
14382
|
-
/* @__PURE__ */
|
|
14383
|
-
/* @__PURE__ */
|
|
14384
|
-
/* @__PURE__ */
|
|
14385
|
-
/* @__PURE__ */
|
|
14386
|
-
/* @__PURE__ */
|
|
14387
|
-
/* @__PURE__ */
|
|
14388
|
-
/* @__PURE__ */
|
|
14389
|
-
/* @__PURE__ */
|
|
14390
|
-
/* @__PURE__ */
|
|
14391
|
-
/* @__PURE__ */
|
|
14392
|
-
/* @__PURE__ */
|
|
14393
|
-
/* @__PURE__ */
|
|
14394
|
-
/* @__PURE__ */
|
|
14395
|
-
/* @__PURE__ */
|
|
14396
|
-
] }), y0 = () => /* @__PURE__ */
|
|
14355
|
+
/* @__PURE__ */ w("path", { d: "M-0.00976562 1.65707H0.990234V0.657074H-0.00976562V1.65707Z", fill: "black" }),
|
|
14356
|
+
/* @__PURE__ */ w("path", { d: "M2.32361 1.65707H3.32361V0.657074H2.32361V1.65707Z", fill: "black" }),
|
|
14357
|
+
/* @__PURE__ */ w("path", { d: "M5.65698 1.65707H4.65698V0.657074H5.65698V1.65707Z", fill: "black" }),
|
|
14358
|
+
/* @__PURE__ */ w("path", { d: "M6.99036 1.65707H7.99036V0.657074H6.99036V1.65707Z", fill: "black" }),
|
|
14359
|
+
/* @__PURE__ */ w("path", { d: "M10.3237 1.65707H9.32373V0.657074H10.3237V1.65707Z", fill: "black" }),
|
|
14360
|
+
/* @__PURE__ */ w("path", { d: "M11.6571 1.65707H12.6571V0.657074H11.6571V1.65707Z", fill: "black" }),
|
|
14361
|
+
/* @__PURE__ */ w("path", { d: "M14.9905 1.65707H13.9905V0.657074H14.9905V1.65707Z", fill: "black" }),
|
|
14362
|
+
/* @__PURE__ */ w("path", { d: "M16.3239 1.65707H17.3239V0.657074H16.3239V1.65707Z", fill: "black" }),
|
|
14363
|
+
/* @__PURE__ */ w("path", { d: "M19.6572 1.65707H18.6572V0.657074H19.6572V1.65707Z", fill: "black" }),
|
|
14364
|
+
/* @__PURE__ */ w("path", { d: "M20.9906 1.65707H21.9906V0.657074H20.9906V1.65707Z", fill: "black" }),
|
|
14365
|
+
/* @__PURE__ */ w("path", { d: "M24.324 1.65707H23.324V0.657074H24.324V1.65707Z", fill: "black" }),
|
|
14366
|
+
/* @__PURE__ */ w("path", { d: "M25.6573 1.65707H26.6573V0.657074H25.6573V1.65707Z", fill: "black" }),
|
|
14367
|
+
/* @__PURE__ */ w("path", { d: "M28.9907 1.65707H27.9907V0.657074H28.9907V1.65707Z", fill: "black" }),
|
|
14368
|
+
/* @__PURE__ */ w("path", { d: "M30.3241 1.65707H31.3241V0.657074H30.3241V1.65707Z", fill: "black" }),
|
|
14369
|
+
/* @__PURE__ */ w("path", { d: "M33.6575 1.65707H32.6575V0.657074H33.6575V1.65707Z", fill: "black" }),
|
|
14370
|
+
/* @__PURE__ */ w("path", { d: "M34.9908 1.65707H35.9908V0.657074H34.9908V1.65707Z", fill: "black" }),
|
|
14371
|
+
/* @__PURE__ */ w("path", { d: "M38.3242 1.65707H37.3242V0.657074H38.3242V1.65707Z", fill: "black" }),
|
|
14372
|
+
/* @__PURE__ */ w("path", { d: "M39.6576 1.65707H40.6576V0.657074H39.6576V1.65707Z", fill: "black" }),
|
|
14373
|
+
/* @__PURE__ */ w("path", { d: "M42.991 1.65707H41.991V0.657074H42.991V1.65707Z", fill: "black" }),
|
|
14374
|
+
/* @__PURE__ */ w("path", { d: "M44.3243 1.65707H45.3243V0.657074H44.3243V1.65707Z", fill: "black" }),
|
|
14375
|
+
/* @__PURE__ */ w("path", { d: "M47.6577 1.65707H46.6577V0.657074H47.6577V1.65707Z", fill: "black" }),
|
|
14376
|
+
/* @__PURE__ */ w("path", { d: "M48.9911 1.65707H49.9911V0.657074H48.9911V1.65707Z", fill: "black" }),
|
|
14377
|
+
/* @__PURE__ */ w("path", { d: "M52.3245 1.65707H51.3245V0.657074H52.3245V1.65707Z", fill: "black" }),
|
|
14378
|
+
/* @__PURE__ */ w("path", { d: "M53.6578 1.65707H54.6578V0.657074H53.6578V1.65707Z", fill: "black" }),
|
|
14379
|
+
/* @__PURE__ */ w("path", { d: "M56.9912 1.65707H55.9912V0.657074H56.9912V1.65707Z", fill: "black" }),
|
|
14380
|
+
/* @__PURE__ */ w("path", { d: "M58.3246 1.65707H59.3246V0.657074H58.3246V1.65707Z", fill: "black" }),
|
|
14381
|
+
/* @__PURE__ */ w("path", { d: "M61.658 1.65707H60.658V0.657074H61.658V1.65707Z", fill: "black" }),
|
|
14382
|
+
/* @__PURE__ */ w("path", { d: "M62.9913 1.65707H63.9913V0.657074H62.9913V1.65707Z", fill: "black" }),
|
|
14383
|
+
/* @__PURE__ */ w("path", { d: "M66.3247 1.65707H65.3247V0.657074H66.3247V1.65707Z", fill: "black" }),
|
|
14384
|
+
/* @__PURE__ */ w("path", { d: "M67.6581 1.65707H68.6581V0.657074H67.6581V1.65707Z", fill: "black" }),
|
|
14385
|
+
/* @__PURE__ */ w("path", { d: "M70.9915 1.65707H69.9915V0.657074H70.9915V1.65707Z", fill: "black" }),
|
|
14386
|
+
/* @__PURE__ */ w("path", { d: "M72.3248 1.65707H73.3248V0.657074H72.3248V1.65707Z", fill: "black" }),
|
|
14387
|
+
/* @__PURE__ */ w("path", { d: "M75.6582 1.65707H74.6582V0.657074H75.6582V1.65707Z", fill: "black" }),
|
|
14388
|
+
/* @__PURE__ */ w("path", { d: "M76.9916 1.65707H77.9916V0.657074H76.9916V1.65707Z", fill: "black" }),
|
|
14389
|
+
/* @__PURE__ */ w("path", { d: "M80.325 1.65707H79.325V0.657074H80.325V1.65707Z", fill: "black" }),
|
|
14390
|
+
/* @__PURE__ */ w("path", { d: "M81.6583 1.65707H82.6583V0.657074H81.6583V1.65707Z", fill: "black" }),
|
|
14391
|
+
/* @__PURE__ */ w("path", { d: "M84.9917 1.65707H83.9917V0.657074H84.9917V1.65707Z", fill: "black" }),
|
|
14392
|
+
/* @__PURE__ */ w("path", { d: "M86.3251 1.65707H87.3251V0.657074H86.3251V1.65707Z", fill: "black" }),
|
|
14393
|
+
/* @__PURE__ */ w("path", { d: "M89.6584 1.65707H88.6584V0.657074H89.6584V1.65707Z", fill: "black" }),
|
|
14394
|
+
/* @__PURE__ */ w("path", { d: "M90.9918 1.65707H91.9918V0.657074H90.9918V1.65707Z", fill: "black" }),
|
|
14395
|
+
/* @__PURE__ */ w("path", { d: "M94.3252 1.65707H93.3252V0.657074H94.3252V1.65707Z", fill: "black" }),
|
|
14396
|
+
/* @__PURE__ */ w("path", { d: "M95.6586 1.65707H96.6586V0.657074H95.6586V1.65707Z", fill: "black" }),
|
|
14397
|
+
/* @__PURE__ */ w("path", { d: "M98.9919 1.65707H97.9919V0.657074H98.9919V1.65707Z", fill: "black" }),
|
|
14398
|
+
/* @__PURE__ */ w("path", { d: "M100.325 1.65707H101.325V0.657074H100.325V1.65707Z", fill: "black" }),
|
|
14399
|
+
/* @__PURE__ */ w("path", { d: "M103.659 1.65707H102.659V0.657074H103.659V1.65707Z", fill: "black" }),
|
|
14400
|
+
/* @__PURE__ */ w("path", { d: "M104.992 1.65707H105.992V0.657074H104.992V1.65707Z", fill: "black" }),
|
|
14401
|
+
/* @__PURE__ */ w("path", { d: "M108.325 1.65707H107.325V0.657074H108.325V1.65707Z", fill: "black" }),
|
|
14402
|
+
/* @__PURE__ */ w("path", { d: "M109.659 1.65707H110.659V0.657074H109.659V1.65707Z", fill: "black" }),
|
|
14403
|
+
/* @__PURE__ */ w("path", { d: "M112.992 1.65707H111.992V0.657074H112.992V1.65707Z", fill: "black" }),
|
|
14404
|
+
/* @__PURE__ */ w("path", { d: "M114.325 1.65707H115.325V0.657074H114.325V1.65707Z", fill: "black" }),
|
|
14405
|
+
/* @__PURE__ */ w("path", { d: "M117.659 1.65707H116.659V0.657074H117.659V1.65707Z", fill: "black" }),
|
|
14406
|
+
/* @__PURE__ */ w("path", { d: "M118.992 1.65707H119.992V0.657074H118.992V1.65707Z", fill: "black" })
|
|
14407
|
+
] }), y0 = () => /* @__PURE__ */ w("svg", { width: "120", height: "3", viewBox: "0 0 120 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ w(
|
|
14397
14408
|
"path",
|
|
14398
14409
|
{
|
|
14399
14410
|
fillRule: "evenodd",
|
|
@@ -14402,67 +14413,67 @@ const Bn = {
|
|
|
14402
14413
|
fill: "black"
|
|
14403
14414
|
}
|
|
14404
14415
|
) }), M0 = () => /* @__PURE__ */ q("svg", { width: "120", height: "3", viewBox: "0 0 120 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
14405
|
-
/* @__PURE__ */
|
|
14406
|
-
/* @__PURE__ */
|
|
14407
|
-
/* @__PURE__ */
|
|
14408
|
-
/* @__PURE__ */
|
|
14409
|
-
/* @__PURE__ */
|
|
14410
|
-
/* @__PURE__ */
|
|
14411
|
-
/* @__PURE__ */
|
|
14412
|
-
/* @__PURE__ */
|
|
14413
|
-
/* @__PURE__ */
|
|
14414
|
-
/* @__PURE__ */
|
|
14415
|
-
/* @__PURE__ */
|
|
14416
|
-
/* @__PURE__ */
|
|
14417
|
-
/* @__PURE__ */
|
|
14418
|
-
/* @__PURE__ */
|
|
14419
|
-
/* @__PURE__ */
|
|
14420
|
-
/* @__PURE__ */
|
|
14421
|
-
/* @__PURE__ */
|
|
14422
|
-
/* @__PURE__ */
|
|
14416
|
+
/* @__PURE__ */ w("path", { d: "M-0.0100098 2.47614H1.98999V0.476135H-0.0100098V2.47614Z", fill: "black" }),
|
|
14417
|
+
/* @__PURE__ */ w("path", { d: "M3.99014 2.47614H9.99014V0.476135H3.99014V2.47614Z", fill: "black" }),
|
|
14418
|
+
/* @__PURE__ */ w("path", { d: "M13.9901 2.47614H11.9901V0.476135H13.9901V2.47614Z", fill: "black" }),
|
|
14419
|
+
/* @__PURE__ */ w("path", { d: "M21.1904 2.47614H23.1904V0.476135H21.1904V2.47614Z", fill: "black" }),
|
|
14420
|
+
/* @__PURE__ */ w("path", { d: "M31.1906 2.47614H25.1906V0.476135H31.1906V2.47614Z", fill: "black" }),
|
|
14421
|
+
/* @__PURE__ */ w("path", { d: "M33.1906 2.47614H35.1906V0.476135H33.1906V2.47614Z", fill: "black" }),
|
|
14422
|
+
/* @__PURE__ */ w("path", { d: "M44.3909 2.47614H42.3909V0.476135H44.3909V2.47614Z", fill: "black" }),
|
|
14423
|
+
/* @__PURE__ */ w("path", { d: "M46.391 2.47614H52.391V0.476135H46.391V2.47614Z", fill: "black" }),
|
|
14424
|
+
/* @__PURE__ */ w("path", { d: "M56.391 2.47614H54.391V0.476135H56.391V2.47614Z", fill: "black" }),
|
|
14425
|
+
/* @__PURE__ */ w("path", { d: "M63.5913 2.47614H65.5913V0.476135H63.5913V2.47614Z", fill: "black" }),
|
|
14426
|
+
/* @__PURE__ */ w("path", { d: "M73.5915 2.47614H67.5915V0.476135H73.5915V2.47614Z", fill: "black" }),
|
|
14427
|
+
/* @__PURE__ */ w("path", { d: "M75.5915 2.47614H77.5915V0.476135H75.5915V2.47614Z", fill: "black" }),
|
|
14428
|
+
/* @__PURE__ */ w("path", { d: "M86.7917 2.47614H84.7917V0.476135H86.7917V2.47614Z", fill: "black" }),
|
|
14429
|
+
/* @__PURE__ */ w("path", { d: "M88.7919 2.47614H94.7919V0.476135H88.7919V2.47614Z", fill: "black" }),
|
|
14430
|
+
/* @__PURE__ */ w("path", { d: "M98.7919 2.47614H96.7919V0.476135H98.7919V2.47614Z", fill: "black" }),
|
|
14431
|
+
/* @__PURE__ */ w("path", { d: "M105.992 2.47614H107.992V0.476135H105.992V2.47614Z", fill: "black" }),
|
|
14432
|
+
/* @__PURE__ */ w("path", { d: "M115.992 2.47614H109.992V0.476135H115.992V2.47614Z", fill: "black" }),
|
|
14433
|
+
/* @__PURE__ */ w("path", { d: "M117.992 2.47614H119.992V0.476135H117.992V2.47614Z", fill: "black" })
|
|
14423
14434
|
] }), E0 = () => /* @__PURE__ */ q("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
14424
|
-
/* @__PURE__ */
|
|
14425
|
-
/* @__PURE__ */
|
|
14426
|
-
/* @__PURE__ */
|
|
14427
|
-
/* @__PURE__ */
|
|
14428
|
-
/* @__PURE__ */
|
|
14429
|
-
/* @__PURE__ */
|
|
14430
|
-
/* @__PURE__ */
|
|
14431
|
-
/* @__PURE__ */
|
|
14432
|
-
/* @__PURE__ */
|
|
14433
|
-
/* @__PURE__ */
|
|
14434
|
-
/* @__PURE__ */
|
|
14435
|
-
/* @__PURE__ */
|
|
14436
|
-
/* @__PURE__ */
|
|
14437
|
-
/* @__PURE__ */
|
|
14438
|
-
/* @__PURE__ */
|
|
14439
|
-
/* @__PURE__ */
|
|
14440
|
-
/* @__PURE__ */
|
|
14441
|
-
/* @__PURE__ */
|
|
14442
|
-
/* @__PURE__ */
|
|
14443
|
-
/* @__PURE__ */
|
|
14435
|
+
/* @__PURE__ */ w("path", { d: "M-0.0100098 2.00415H1.98999V0.00415039H-0.0100098V2.00415Z", fill: "black" }),
|
|
14436
|
+
/* @__PURE__ */ w("path", { d: "M3.99014 2.00415H9.99014V0.00415039H3.99014V2.00415Z", fill: "black" }),
|
|
14437
|
+
/* @__PURE__ */ w("path", { d: "M13.9901 2.00415H11.9901V0.00415039H13.9901V2.00415Z", fill: "black" }),
|
|
14438
|
+
/* @__PURE__ */ w("path", { d: "M15.9901 2.00415H17.9901V0.00415039H15.9901V2.00415Z", fill: "black" }),
|
|
14439
|
+
/* @__PURE__ */ w("path", { d: "M27.4905 2.00415H25.4905V0.00415039H27.4905V2.00415Z", fill: "black" }),
|
|
14440
|
+
/* @__PURE__ */ w("path", { d: "M29.4906 2.00415H35.4906V0.00415039H29.4906V2.00415Z", fill: "black" }),
|
|
14441
|
+
/* @__PURE__ */ w("path", { d: "M39.4906 2.00415H37.4906V0.00415039H39.4906V2.00415Z", fill: "black" }),
|
|
14442
|
+
/* @__PURE__ */ w("path", { d: "M41.4906 2.00415H43.4906V0.00415039H41.4906V2.00415Z", fill: "black" }),
|
|
14443
|
+
/* @__PURE__ */ w("path", { d: "M52.991 2.00415H50.991V0.00415039H52.991V2.00415Z", fill: "black" }),
|
|
14444
|
+
/* @__PURE__ */ w("path", { d: "M54.9911 2.00415H60.9911V0.00415039H54.9911V2.00415Z", fill: "black" }),
|
|
14445
|
+
/* @__PURE__ */ w("path", { d: "M64.9911 2.00415H62.9911V0.00415039H64.9911V2.00415Z", fill: "black" }),
|
|
14446
|
+
/* @__PURE__ */ w("path", { d: "M66.9911 2.00415H68.9911V0.00415039H66.9911V2.00415Z", fill: "black" }),
|
|
14447
|
+
/* @__PURE__ */ w("path", { d: "M78.4915 2.00415H76.4915V0.00415039H78.4915V2.00415Z", fill: "black" }),
|
|
14448
|
+
/* @__PURE__ */ w("path", { d: "M80.4916 2.00415H86.4916V0.00415039H80.4916V2.00415Z", fill: "black" }),
|
|
14449
|
+
/* @__PURE__ */ w("path", { d: "M90.4916 2.00415H88.4916V0.00415039H90.4916V2.00415Z", fill: "black" }),
|
|
14450
|
+
/* @__PURE__ */ w("path", { d: "M92.4916 2.00415H94.4916V0.00415039H92.4916V2.00415Z", fill: "black" }),
|
|
14451
|
+
/* @__PURE__ */ w("path", { d: "M103.992 2.00415H101.992V0.00415039H103.992V2.00415Z", fill: "black" }),
|
|
14452
|
+
/* @__PURE__ */ w("path", { d: "M105.992 2.00415H111.992V0.00415039H105.992V2.00415Z", fill: "black" }),
|
|
14453
|
+
/* @__PURE__ */ w("path", { d: "M115.992 2.00415H113.992V0.00415039H115.992V2.00415Z", fill: "black" }),
|
|
14454
|
+
/* @__PURE__ */ w("path", { d: "M117.992 2.00415H119.992V0.00415039H117.992V2.00415Z", fill: "black" })
|
|
14444
14455
|
] }), P0 = () => /* @__PURE__ */ q("svg", { width: "118", height: "3", viewBox: "0 0 118 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
14445
|
-
/* @__PURE__ */
|
|
14446
|
-
/* @__PURE__ */
|
|
14447
|
-
/* @__PURE__ */
|
|
14448
|
-
/* @__PURE__ */
|
|
14449
|
-
/* @__PURE__ */
|
|
14450
|
-
/* @__PURE__ */
|
|
14451
|
-
/* @__PURE__ */
|
|
14452
|
-
/* @__PURE__ */
|
|
14453
|
-
/* @__PURE__ */
|
|
14454
|
-
/* @__PURE__ */
|
|
14455
|
-
/* @__PURE__ */
|
|
14456
|
-
/* @__PURE__ */
|
|
14457
|
-
/* @__PURE__ */
|
|
14458
|
-
/* @__PURE__ */
|
|
14459
|
-
/* @__PURE__ */
|
|
14460
|
-
/* @__PURE__ */
|
|
14461
|
-
/* @__PURE__ */
|
|
14462
|
-
/* @__PURE__ */
|
|
14463
|
-
/* @__PURE__ */
|
|
14464
|
-
/* @__PURE__ */
|
|
14465
|
-
] }), T0 = () => /* @__PURE__ */
|
|
14456
|
+
/* @__PURE__ */ w("path", { d: "M-0.00854492 2.94815H1.99146V0.948151H-0.00854492V2.94815Z", fill: "black" }),
|
|
14457
|
+
/* @__PURE__ */ w("path", { d: "M6.09668 2.94815H8.09668V0.948151H6.09668V2.94815Z", fill: "black" }),
|
|
14458
|
+
/* @__PURE__ */ w("path", { d: "M14.2019 2.94815H12.2019V0.948151H14.2019V2.94815Z", fill: "black" }),
|
|
14459
|
+
/* @__PURE__ */ w("path", { d: "M18.3071 2.94815H20.3071V0.948151H18.3071V2.94815Z", fill: "black" }),
|
|
14460
|
+
/* @__PURE__ */ w("path", { d: "M26.4124 2.94815H24.4124V0.948151H26.4124V2.94815Z", fill: "black" }),
|
|
14461
|
+
/* @__PURE__ */ w("path", { d: "M30.5176 2.94815H32.5176V0.948151H30.5176V2.94815Z", fill: "black" }),
|
|
14462
|
+
/* @__PURE__ */ w("path", { d: "M38.6228 2.94815H36.6228V0.948151H38.6228V2.94815Z", fill: "black" }),
|
|
14463
|
+
/* @__PURE__ */ w("path", { d: "M42.728 2.94815H44.728V0.948151H42.728V2.94815Z", fill: "black" }),
|
|
14464
|
+
/* @__PURE__ */ w("path", { d: "M50.8333 2.94815H48.8333V0.948151H50.8333V2.94815Z", fill: "black" }),
|
|
14465
|
+
/* @__PURE__ */ w("path", { d: "M54.9385 2.94815H56.9385V0.948151H54.9385V2.94815Z", fill: "black" }),
|
|
14466
|
+
/* @__PURE__ */ w("path", { d: "M63.0437 2.94815H61.0437V0.948151H63.0437V2.94815Z", fill: "black" }),
|
|
14467
|
+
/* @__PURE__ */ w("path", { d: "M67.1489 2.94815H69.1489V0.948151H67.1489V2.94815Z", fill: "black" }),
|
|
14468
|
+
/* @__PURE__ */ w("path", { d: "M75.2542 2.94815H73.2542V0.948151H75.2542V2.94815Z", fill: "black" }),
|
|
14469
|
+
/* @__PURE__ */ w("path", { d: "M79.3594 2.94815H81.3594V0.948151H79.3594V2.94815Z", fill: "black" }),
|
|
14470
|
+
/* @__PURE__ */ w("path", { d: "M87.4645 2.94815H85.4645V0.948151H87.4645V2.94815Z", fill: "black" }),
|
|
14471
|
+
/* @__PURE__ */ w("path", { d: "M91.5697 2.94815H93.5697V0.948151H91.5697V2.94815Z", fill: "black" }),
|
|
14472
|
+
/* @__PURE__ */ w("path", { d: "M99.6749 2.94815H97.6749V0.948151H99.6749V2.94815Z", fill: "black" }),
|
|
14473
|
+
/* @__PURE__ */ w("path", { d: "M103.78 2.94815H105.78V0.948151H103.78V2.94815Z", fill: "black" }),
|
|
14474
|
+
/* @__PURE__ */ w("path", { d: "M111.885 2.94815H109.885V0.948151H111.885V2.94815Z", fill: "black" }),
|
|
14475
|
+
/* @__PURE__ */ w("path", { d: "M115.991 2.94815H117.991V0.948151H115.991V2.94815Z", fill: "black" })
|
|
14476
|
+
] }), T0 = () => /* @__PURE__ */ w("svg", { width: "120", height: "4", viewBox: "0 0 120 4", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ w(
|
|
14466
14477
|
"path",
|
|
14467
14478
|
{
|
|
14468
14479
|
fillRule: "evenodd",
|
|
@@ -14470,7 +14481,7 @@ const Bn = {
|
|
|
14470
14481
|
d: "M119.991 3.86215H-0.0090332V0.862152H119.991V3.86215Z",
|
|
14471
14482
|
fill: "black"
|
|
14472
14483
|
}
|
|
14473
|
-
) }), Ch = () => /* @__PURE__ */
|
|
14484
|
+
) }), Ch = () => /* @__PURE__ */ w("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ w(
|
|
14474
14485
|
"path",
|
|
14475
14486
|
{
|
|
14476
14487
|
fillRule: "evenodd",
|
|
@@ -14483,27 +14494,27 @@ function bh(r) {
|
|
|
14483
14494
|
const { type: e = xe.THIN } = r;
|
|
14484
14495
|
switch (e) {
|
|
14485
14496
|
case xe.DASH_DOT:
|
|
14486
|
-
return /* @__PURE__ */
|
|
14497
|
+
return /* @__PURE__ */ w(_0, {});
|
|
14487
14498
|
case xe.DASH_DOT_DOT:
|
|
14488
|
-
return /* @__PURE__ */
|
|
14499
|
+
return /* @__PURE__ */ w(w0, {});
|
|
14489
14500
|
case xe.DASHED:
|
|
14490
|
-
return /* @__PURE__ */
|
|
14501
|
+
return /* @__PURE__ */ w(R0, {});
|
|
14491
14502
|
case xe.HAIR:
|
|
14492
|
-
return /* @__PURE__ */
|
|
14503
|
+
return /* @__PURE__ */ w(I0, {});
|
|
14493
14504
|
case xe.MEDIUM:
|
|
14494
|
-
return /* @__PURE__ */
|
|
14505
|
+
return /* @__PURE__ */ w(y0, {});
|
|
14495
14506
|
case xe.MEDIUM_DASH_DOT:
|
|
14496
|
-
return /* @__PURE__ */
|
|
14507
|
+
return /* @__PURE__ */ w(M0, {});
|
|
14497
14508
|
case xe.MEDIUM_DASH_DOT_DOT:
|
|
14498
|
-
return /* @__PURE__ */
|
|
14509
|
+
return /* @__PURE__ */ w(E0, {});
|
|
14499
14510
|
case xe.MEDIUM_DASHED:
|
|
14500
|
-
return /* @__PURE__ */
|
|
14511
|
+
return /* @__PURE__ */ w(P0, {});
|
|
14501
14512
|
case xe.THICK:
|
|
14502
|
-
return /* @__PURE__ */
|
|
14513
|
+
return /* @__PURE__ */ w(T0, {});
|
|
14503
14514
|
case xe.THIN:
|
|
14504
|
-
return /* @__PURE__ */
|
|
14515
|
+
return /* @__PURE__ */ w(Ch, {});
|
|
14505
14516
|
default:
|
|
14506
|
-
return /* @__PURE__ */
|
|
14517
|
+
return /* @__PURE__ */ w(Ch, {});
|
|
14507
14518
|
}
|
|
14508
14519
|
}
|
|
14509
14520
|
const lu = `${ki}_BORDER_PANEL_COMPONENT`, mf = [
|
|
@@ -14639,10 +14650,10 @@ function ff(r) {
|
|
|
14639
14650
|
}
|
|
14640
14651
|
function s(a) {
|
|
14641
14652
|
const c = e.get(a);
|
|
14642
|
-
return c && /* @__PURE__ */
|
|
14653
|
+
return c && /* @__PURE__ */ w(c, { extend: { colorChannel1: "#2c53f1" } });
|
|
14643
14654
|
}
|
|
14644
14655
|
return /* @__PURE__ */ q("section", { className: "univer-box-border univer-grid univer-gap-2 univer-p-1.5", children: [
|
|
14645
|
-
/* @__PURE__ */
|
|
14656
|
+
/* @__PURE__ */ w("div", { className: "univer-box-border univer-grid univer-grid-cols-5 univer-gap-2", children: mf.map((a) => /* @__PURE__ */ w(
|
|
14646
14657
|
"a",
|
|
14647
14658
|
{
|
|
14648
14659
|
className: qe(`
|
|
@@ -14659,12 +14670,12 @@ function ff(r) {
|
|
|
14659
14670
|
},
|
|
14660
14671
|
a.value
|
|
14661
14672
|
)) }),
|
|
14662
|
-
/* @__PURE__ */
|
|
14673
|
+
/* @__PURE__ */ w(Jv, {}),
|
|
14663
14674
|
/* @__PURE__ */ q("div", { className: "univer-flex univer-items-center univer-gap-2", children: [
|
|
14664
|
-
/* @__PURE__ */
|
|
14675
|
+
/* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(
|
|
14665
14676
|
Ns,
|
|
14666
14677
|
{
|
|
14667
|
-
overlay: /* @__PURE__ */
|
|
14678
|
+
overlay: /* @__PURE__ */ w("div", { className: "univer-rounded-lg univer-p-4", children: /* @__PURE__ */ w(Ad, { onChange: (a) => o(a, "color") }) }),
|
|
14668
14679
|
children: /* @__PURE__ */ q(
|
|
14669
14680
|
"button",
|
|
14670
14681
|
{
|
|
@@ -14675,17 +14686,17 @@ function ff(r) {
|
|
|
14675
14686
|
`,
|
|
14676
14687
|
type: "button",
|
|
14677
14688
|
children: [
|
|
14678
|
-
/* @__PURE__ */
|
|
14679
|
-
/* @__PURE__ */
|
|
14689
|
+
/* @__PURE__ */ w(Im, { extend: { colorChannel1: (l = i == null ? void 0 : i.color) != null ? l : "rgb(var(--primary-color))" } }),
|
|
14690
|
+
/* @__PURE__ */ w(vi, { className: "univer-text-gray-400" })
|
|
14680
14691
|
]
|
|
14681
14692
|
}
|
|
14682
14693
|
)
|
|
14683
14694
|
}
|
|
14684
14695
|
) }),
|
|
14685
|
-
/* @__PURE__ */
|
|
14696
|
+
/* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(
|
|
14686
14697
|
Ns,
|
|
14687
14698
|
{
|
|
14688
|
-
overlay: /* @__PURE__ */
|
|
14699
|
+
overlay: /* @__PURE__ */ w("section", { className: "univer-rounded-lg univer-p-1.5", children: /* @__PURE__ */ w("ul", { className: "univer-m-0 univer-grid univer-list-none univer-gap-1 univer-p-0", children: O0.map((a) => /* @__PURE__ */ w(
|
|
14689
14700
|
"li",
|
|
14690
14701
|
{
|
|
14691
14702
|
className: `
|
|
@@ -14694,7 +14705,7 @@ function ff(r) {
|
|
|
14694
14705
|
hover:univer-bg-gray-100
|
|
14695
14706
|
`,
|
|
14696
14707
|
onClick: () => o(a.value, "style"),
|
|
14697
|
-
children: /* @__PURE__ */
|
|
14708
|
+
children: /* @__PURE__ */ w(bh, { type: a.value })
|
|
14698
14709
|
},
|
|
14699
14710
|
a.value
|
|
14700
14711
|
)) }) }),
|
|
@@ -14708,8 +14719,8 @@ function ff(r) {
|
|
|
14708
14719
|
`,
|
|
14709
14720
|
type: "button",
|
|
14710
14721
|
children: [
|
|
14711
|
-
/* @__PURE__ */
|
|
14712
|
-
/* @__PURE__ */
|
|
14722
|
+
/* @__PURE__ */ w(bh, { type: xe.THIN }),
|
|
14723
|
+
/* @__PURE__ */ w(vi, { className: "univer-text-gray-400" })
|
|
14713
14724
|
]
|
|
14714
14725
|
}
|
|
14715
14726
|
)
|
|
@@ -14805,12 +14816,12 @@ const za = {
|
|
|
14805
14816
|
const Oe = (ue = ee.current) == null ? void 0 : ue.handleOutClick;
|
|
14806
14817
|
Oe && Oe(Se, () => pe(!1));
|
|
14807
14818
|
}), /* @__PURE__ */ q("div", { className: Et.definedNameInput, style: { display: t ? "block" : "none" }, children: [
|
|
14808
|
-
/* @__PURE__ */
|
|
14809
|
-
/* @__PURE__ */
|
|
14810
|
-
/* @__PURE__ */
|
|
14811
|
-
/* @__PURE__ */
|
|
14819
|
+
/* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(Ds, { placeholder: m.t("definedName.inputNamePlaceholder"), value: y, allowClear: !0, onChange: M, affixWrapperStyle: za }) }),
|
|
14820
|
+
/* @__PURE__ */ w("div", { children: /* @__PURE__ */ q(Mc, { value: X, onChange: G, children: [
|
|
14821
|
+
/* @__PURE__ */ w(ei, { value: "range", children: m.t("definedName.ratioRange") }),
|
|
14822
|
+
/* @__PURE__ */ w(ei, { value: "formula", children: m.t("definedName.ratioFormula") })
|
|
14812
14823
|
] }) }),
|
|
14813
|
-
X === "range" ? C && /* @__PURE__ */
|
|
14824
|
+
X === "range" ? C && /* @__PURE__ */ w(
|
|
14814
14825
|
C,
|
|
14815
14826
|
{
|
|
14816
14827
|
unitId: R,
|
|
@@ -14819,7 +14830,7 @@ const za = {
|
|
|
14819
14830
|
onChange: (Se, Oe) => oe(Oe),
|
|
14820
14831
|
supportAcrossSheet: !0
|
|
14821
14832
|
}
|
|
14822
|
-
) : b && /* @__PURE__ */
|
|
14833
|
+
) : b && /* @__PURE__ */ w(
|
|
14823
14834
|
b,
|
|
14824
14835
|
{
|
|
14825
14836
|
initValue: E,
|
|
@@ -14837,14 +14848,14 @@ const za = {
|
|
|
14837
14848
|
actions: ee.current
|
|
14838
14849
|
}
|
|
14839
14850
|
),
|
|
14840
|
-
/* @__PURE__ */
|
|
14841
|
-
/* @__PURE__ */
|
|
14851
|
+
/* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(nm, { style: za, value: H, options: ie, onChange: O }) }),
|
|
14852
|
+
/* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(Ds, { affixWrapperStyle: za, placeholder: m.t("definedName.inputCommentPlaceholder"), value: T, onChange: A }) }),
|
|
14842
14853
|
/* @__PURE__ */ q("div", { style: { display: k.length === 0 ? "none" : "flex" }, className: Et.definedNameInputValidation, children: [
|
|
14843
|
-
/* @__PURE__ */
|
|
14844
|
-
/* @__PURE__ */
|
|
14854
|
+
/* @__PURE__ */ w("span", { children: k }),
|
|
14855
|
+
/* @__PURE__ */ w(zd, {})
|
|
14845
14856
|
] }),
|
|
14846
14857
|
/* @__PURE__ */ q("div", { children: [
|
|
14847
|
-
/* @__PURE__ */
|
|
14858
|
+
/* @__PURE__ */ w(
|
|
14848
14859
|
pn,
|
|
14849
14860
|
{
|
|
14850
14861
|
onClick: () => {
|
|
@@ -14853,7 +14864,7 @@ const za = {
|
|
|
14853
14864
|
children: m.t("definedName.cancel")
|
|
14854
14865
|
}
|
|
14855
14866
|
),
|
|
14856
|
-
/* @__PURE__ */
|
|
14867
|
+
/* @__PURE__ */ w(
|
|
14857
14868
|
pn,
|
|
14858
14869
|
{
|
|
14859
14870
|
style: { marginLeft: 15 },
|
|
@@ -14933,13 +14944,13 @@ const za = {
|
|
|
14933
14944
|
const A = t.getSheetBySheetId(T);
|
|
14934
14945
|
return A == null ? "" : A.getName();
|
|
14935
14946
|
};
|
|
14936
|
-
return /* @__PURE__ */
|
|
14947
|
+
return /* @__PURE__ */ w("div", { className: Et.definedNameContainer, children: /* @__PURE__ */ q("div", { className: Et.definedNameContainerScroll, children: [
|
|
14937
14948
|
/* @__PURE__ */ q("div", { children: [
|
|
14938
14949
|
/* @__PURE__ */ q("div", { onClick: M, className: Et.definedNameContainerAddButton, style: { display: a ? "none" : "flex" }, children: [
|
|
14939
|
-
/* @__PURE__ */
|
|
14940
|
-
/* @__PURE__ */
|
|
14950
|
+
/* @__PURE__ */ w(jd, {}),
|
|
14951
|
+
/* @__PURE__ */ w("span", { className: Et.definedNameContainerAddButtonText, children: n.t("definedName.addButton") })
|
|
14941
14952
|
] }),
|
|
14942
|
-
a && /* @__PURE__ */
|
|
14953
|
+
a && /* @__PURE__ */ w(_h, { confirm: p, cancel: y, state: a, inputId: "insertDefinedName", name: R(), formulaOrRefString: I() })
|
|
14943
14954
|
] }, "insertDefinedName"),
|
|
14944
14955
|
d.map((T, A) => /* @__PURE__ */ q("div", { children: [
|
|
14945
14956
|
/* @__PURE__ */ q("div", { onClick: () => {
|
|
@@ -14948,18 +14959,18 @@ const za = {
|
|
|
14948
14959
|
/* @__PURE__ */ q("div", { title: T.comment, children: [
|
|
14949
14960
|
/* @__PURE__ */ q("div", { className: Et.definedNameContainerItemName, children: [
|
|
14950
14961
|
T.name,
|
|
14951
|
-
/* @__PURE__ */
|
|
14962
|
+
/* @__PURE__ */ w("span", { className: Et.definedNameContainerItemNameForSheet, children: T.localSheetId === Ic || T.localSheetId == null ? "" : P(T.localSheetId) })
|
|
14952
14963
|
] }),
|
|
14953
|
-
/* @__PURE__ */
|
|
14964
|
+
/* @__PURE__ */ w("div", { className: Et.definedNameContainerItemFormulaOrRefString, children: T.formulaOrRefString })
|
|
14954
14965
|
] }),
|
|
14955
|
-
/* @__PURE__ */
|
|
14966
|
+
/* @__PURE__ */ w(er, { title: n.t("definedName.updateButton"), placement: "top", children: /* @__PURE__ */ w("div", { className: qe(Et.definedNameContainerItemUpdate, Et.definedNameContainerItemShow), onClick: () => {
|
|
14956
14967
|
E(T.id);
|
|
14957
|
-
}, children: /* @__PURE__ */
|
|
14958
|
-
/* @__PURE__ */
|
|
14968
|
+
}, children: /* @__PURE__ */ w(Wr, {}) }) }),
|
|
14969
|
+
/* @__PURE__ */ w(er, { title: n.t("definedName.deleteButton"), placement: "top", children: /* @__PURE__ */ w("div", { className: qe(Et.definedNameContainerItemDelete, Et.definedNameContainerItemShow), onClick: () => {
|
|
14959
14970
|
S(T.id);
|
|
14960
|
-
}, children: /* @__PURE__ */
|
|
14971
|
+
}, children: /* @__PURE__ */ w(Kl, {}) }) })
|
|
14961
14972
|
] }),
|
|
14962
|
-
/* @__PURE__ */
|
|
14973
|
+
/* @__PURE__ */ w(
|
|
14963
14974
|
$v,
|
|
14964
14975
|
{
|
|
14965
14976
|
visible: m === T.id,
|
|
@@ -14970,7 +14981,7 @@ const za = {
|
|
|
14970
14981
|
children: n.t("definedName.deleteConfirmText")
|
|
14971
14982
|
}
|
|
14972
14983
|
),
|
|
14973
|
-
T.id === h && /* @__PURE__ */
|
|
14984
|
+
T.id === h && /* @__PURE__ */ w(
|
|
14974
14985
|
_h,
|
|
14975
14986
|
{
|
|
14976
14987
|
confirm: p,
|
|
@@ -15362,7 +15373,7 @@ function j0(r) {
|
|
|
15362
15373
|
hidden$: ce(r, x.UNIVER_SHEET),
|
|
15363
15374
|
disabled$: e.pipe(
|
|
15364
15375
|
dr(t),
|
|
15365
|
-
|
|
15376
|
+
Be(([n, i]) => n || i)
|
|
15366
15377
|
)
|
|
15367
15378
|
};
|
|
15368
15379
|
}
|
|
@@ -15415,7 +15426,7 @@ function Q0(r) {
|
|
|
15415
15426
|
l.ruleChange$,
|
|
15416
15427
|
a.ruleChange$
|
|
15417
15428
|
).pipe(
|
|
15418
|
-
|
|
15429
|
+
Be(() => {
|
|
15419
15430
|
const d = i.getUnitId(), u = s.getSheetId(), h = l.getSubunitRuleList(d, u), g = c.getCurrentSelections(), m = g == null ? void 0 : g.map((S) => S.range), f = h.map((S) => S.ranges).flat();
|
|
15420
15431
|
if (!m)
|
|
15421
15432
|
return !1;
|
|
@@ -15440,7 +15451,7 @@ function K0(r) {
|
|
|
15440
15451
|
a.ruleChange$,
|
|
15441
15452
|
c.ruleChange$
|
|
15442
15453
|
).pipe(
|
|
15443
|
-
|
|
15454
|
+
Be(() => {
|
|
15444
15455
|
var M, E;
|
|
15445
15456
|
const h = o.getUnitId(), g = l.getSheetId(), m = t.getSubunitRuleList(h, g), f = (M = u.getCurrentSelections()) == null ? void 0 : M.map((P) => P.range);
|
|
15446
15457
|
if (m.map((P) => P.ranges).flat(), !(f != null && f.length) || f.length > 1)
|
|
@@ -15475,14 +15486,14 @@ function J0(r) {
|
|
|
15475
15486
|
var m;
|
|
15476
15487
|
if (!l)
|
|
15477
15488
|
return Re(!0);
|
|
15478
|
-
const a = o.getUnitId(), c = r.get($), d = r.get(et), u = r.get(St), h = (m = t.composePermission$([new J(a).id]).pipe(
|
|
15489
|
+
const a = o.getUnitId(), c = r.get($), d = r.get(et), u = r.get(St), h = (m = t.composePermission$([new J(a).id]).pipe(Be((f) => f.every((p) => p.value)))) != null ? m : Re(!1), g = wt(
|
|
15479
15490
|
d.ruleChange$,
|
|
15480
15491
|
u.ruleChange$
|
|
15481
15492
|
).pipe(
|
|
15482
15493
|
Gt(null)
|
|
15483
15494
|
);
|
|
15484
15495
|
return dt([h, g, c.selectionMoveEnd$]).pipe(
|
|
15485
|
-
|
|
15496
|
+
Be(([f, p, S]) => {
|
|
15486
15497
|
if (!f)
|
|
15487
15498
|
return !0;
|
|
15488
15499
|
const v = c.getCurrentSelections(), C = v == null ? void 0 : v.map((b) => b.range);
|
|
@@ -15502,14 +15513,14 @@ function Cf(r) {
|
|
|
15502
15513
|
var M;
|
|
15503
15514
|
if (!m)
|
|
15504
15515
|
return Re(!0);
|
|
15505
|
-
const p = r.get(Ve).subscribeContextValue$(Pl).pipe(Gt(!1)), S = d.getUnitId(), v = m.getSheetId(), C = r.get(et), b = r.get(St), R = r.get($), I = (M = t.composePermission$([new zl(S).id]).pipe(
|
|
15516
|
+
const p = r.get(Ve).subscribeContextValue$(Pl).pipe(Gt(!1)), S = d.getUnitId(), v = m.getSheetId(), C = r.get(et), b = r.get(St), R = r.get($), I = (M = t.composePermission$([new zl(S).id]).pipe(Be((E) => E.every((P) => P.value)))) != null ? M : Re(!1), y = wt(
|
|
15506
15517
|
C.ruleChange$,
|
|
15507
15518
|
b.ruleChange$
|
|
15508
15519
|
).pipe(
|
|
15509
15520
|
Gt(null)
|
|
15510
15521
|
);
|
|
15511
15522
|
return dt([I, y, R.selectionMoveEnd$, p]).pipe(
|
|
15512
|
-
|
|
15523
|
+
Be(([E, P, T, A]) => {
|
|
15513
15524
|
if (!E || A)
|
|
15514
15525
|
return !0;
|
|
15515
15526
|
const H = R.getCurrentSelections(), O = H == null ? void 0 : H.map((B) => B.range);
|
|
@@ -15534,14 +15545,14 @@ function $0(r) {
|
|
|
15534
15545
|
var m;
|
|
15535
15546
|
if (!l)
|
|
15536
15547
|
return Re(!0);
|
|
15537
|
-
const a = o.getUnitId(), c = l.getSheetId(), d = r.get(et), u = r.get(St), h = (m = t.composePermission$([new zl(a).id]).pipe(
|
|
15548
|
+
const a = o.getUnitId(), c = l.getSheetId(), d = r.get(et), u = r.get(St), h = (m = t.composePermission$([new zl(a).id]).pipe(Be((f) => f.every((p) => p.value)))) != null ? m : Re(!1), g = wt(
|
|
15538
15549
|
d.ruleChange$,
|
|
15539
15550
|
u.ruleChange$
|
|
15540
15551
|
).pipe(
|
|
15541
15552
|
Gt(null)
|
|
15542
15553
|
);
|
|
15543
15554
|
return dt([h, g]).pipe(
|
|
15544
|
-
|
|
15555
|
+
Be(([f, p]) => {
|
|
15545
15556
|
var C;
|
|
15546
15557
|
if (!f) return !0;
|
|
15547
15558
|
const S = u.getRule(a, c);
|
|
@@ -15561,7 +15572,7 @@ function eR(r) {
|
|
|
15561
15572
|
return Re(!0);
|
|
15562
15573
|
const a = o.getUnitId(), c = l.getSheetId(), d = r.get(St);
|
|
15563
15574
|
return d.ruleChange$.pipe(Gt(null)).pipe(
|
|
15564
|
-
|
|
15575
|
+
Be(() => {
|
|
15565
15576
|
var h;
|
|
15566
15577
|
return d.getRule(a, c) ? ((h = t.getPermissionPoint(new Lg(a, c).id)) == null ? void 0 : h.value) === !1 : !0;
|
|
15567
15578
|
})
|
|
@@ -15578,9 +15589,9 @@ function tR(r) {
|
|
|
15578
15589
|
var m;
|
|
15579
15590
|
if (!l)
|
|
15580
15591
|
return Re(!0);
|
|
15581
|
-
const a = o.getUnitId(), c = r.get(et), d = r.get(St), u = (m = t.composePermission$([new zl(a).id, new cg(a).id]).pipe(
|
|
15592
|
+
const a = o.getUnitId(), c = r.get(et), d = r.get(St), u = (m = t.composePermission$([new zl(a).id, new cg(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));
|
|
15582
15593
|
return dt([u, h, g]).pipe(
|
|
15583
|
-
|
|
15594
|
+
Be(([f, p, S]) => {
|
|
15584
15595
|
if (!f)
|
|
15585
15596
|
return !0;
|
|
15586
15597
|
const v = l.getSheetId(), C = d.getRule(a, v), b = c.getSubunitRuleList(a, v);
|
|
@@ -15604,7 +15615,7 @@ function nR(r) {
|
|
|
15604
15615
|
d.selectionMoveEnd$
|
|
15605
15616
|
).pipe(Gt(null));
|
|
15606
15617
|
return dt([g]).pipe(
|
|
15607
|
-
|
|
15618
|
+
Be(([m]) => {
|
|
15608
15619
|
var E;
|
|
15609
15620
|
const f = r.get($).getCurrentSelections(), p = f == null ? void 0 : f.map((P) => P.range);
|
|
15610
15621
|
if (!(p != null && p.length) || p.length > 1)
|
|
@@ -15641,8 +15652,8 @@ function bf(r) {
|
|
|
15641
15652
|
if (!m)
|
|
15642
15653
|
return Re(!0);
|
|
15643
15654
|
const f = d.getUnitId();
|
|
15644
|
-
return ((v = (S = t.getPermissionPoint$(new J(f).id)) == null ? void 0 : S.pipe(
|
|
15645
|
-
|
|
15655
|
+
return ((v = (S = t.getPermissionPoint$(new J(f).id)) == null ? void 0 : S.pipe(Be((C) => !!C.value))) != null ? v : Re(!1)).pipe(
|
|
15656
|
+
Be((C) => !C)
|
|
15646
15657
|
);
|
|
15647
15658
|
})
|
|
15648
15659
|
))
|
|
@@ -15753,7 +15764,7 @@ function aR(r) {
|
|
|
15753
15764
|
type: K.BUTTON,
|
|
15754
15765
|
title: "sheetConfig.delete",
|
|
15755
15766
|
disabled$: dt([n, i]).pipe(
|
|
15756
|
-
|
|
15767
|
+
Be(([o, s]) => o || s)
|
|
15757
15768
|
),
|
|
15758
15769
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
15759
15770
|
};
|
|
@@ -15806,7 +15817,7 @@ function hR(r) {
|
|
|
15806
15817
|
return rl(e, n), i.dispose;
|
|
15807
15818
|
}).pipe(
|
|
15808
15819
|
dr(Di(r, [J, Ug])),
|
|
15809
|
-
|
|
15820
|
+
Be(([n, i]) => n || i)
|
|
15810
15821
|
),
|
|
15811
15822
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
15812
15823
|
};
|
|
@@ -15829,7 +15840,7 @@ function gR(r) {
|
|
|
15829
15840
|
return i(), o.dispose;
|
|
15830
15841
|
}).pipe(
|
|
15831
15842
|
dr(Di(r, [J, Ug])),
|
|
15832
|
-
|
|
15843
|
+
Be(([n, i]) => n || i)
|
|
15833
15844
|
),
|
|
15834
15845
|
hidden$: ce(r, x.UNIVER_SHEET)
|
|
15835
15846
|
};
|
|
@@ -16883,7 +16894,7 @@ var CR = Object.getOwnPropertyDescriptor, bR = (r, e, t, n) => {
|
|
|
16883
16894
|
let Mo = class extends ae {
|
|
16884
16895
|
constructor(e, t) {
|
|
16885
16896
|
super();
|
|
16886
|
-
|
|
16897
|
+
_(this, "_previousSheetIndex", -1);
|
|
16887
16898
|
this._commandService = e, this._univerInstanceService = t, this.disposeWithMe(this._commandService.beforeCommandExecuted((n) => {
|
|
16888
16899
|
if (n.id === Dn.id)
|
|
16889
16900
|
return this._beforeAdjustActiveSheetOnRemoveSheet(
|
|
@@ -16978,8 +16989,8 @@ let Eo = class extends ae {
|
|
|
16978
16989
|
constructor(e, t, n, i, o, s, l) {
|
|
16979
16990
|
super();
|
|
16980
16991
|
// the DrawingTypeEnum should refer from drawing package, here we just use type, so no need to import the drawing package
|
|
16981
|
-
|
|
16982
|
-
|
|
16992
|
+
_(this, "_popupMenuFeatureMap", /* @__PURE__ */ new Map());
|
|
16993
|
+
_(this, "_isSelectionMoving", !1);
|
|
16983
16994
|
this._globalPopupManagerService = e, this._renderManagerService = t, this._univerInstanceService = n, this._refRangeService = i, this._commandService = o, this._refSelectionsService = s, this._selectionManagerService = l, this._initMoving();
|
|
16984
16995
|
}
|
|
16985
16996
|
_initMoving() {
|
|
@@ -17228,7 +17239,7 @@ let Eo = class extends ae {
|
|
|
17228
17239
|
canvasElement: u.engine.getCanvasElement(),
|
|
17229
17240
|
hiddenRects$: C
|
|
17230
17241
|
}), I = new _t();
|
|
17231
|
-
I.add(S), I.add(
|
|
17242
|
+
I.add(S), I.add(Fe(() => {
|
|
17232
17243
|
this._globalPopupManagerService.removePopup(R), p.complete();
|
|
17233
17244
|
})), I.add(b);
|
|
17234
17245
|
const y = { startRow: e, endRow: e, startColumn: t, endColumn: t };
|
|
@@ -17283,7 +17294,7 @@ let Eo = class extends ae {
|
|
|
17283
17294
|
canvasElement: u.engine.getCanvasElement(),
|
|
17284
17295
|
hiddenRects$: R
|
|
17285
17296
|
}), M = new _t();
|
|
17286
|
-
M.add(S), M.add(
|
|
17297
|
+
M.add(S), M.add(Fe(() => {
|
|
17287
17298
|
this._globalPopupManagerService.removePopup(y), C.complete(), b.complete();
|
|
17288
17299
|
})), M.add(I);
|
|
17289
17300
|
const E = { ...e };
|
|
@@ -17361,7 +17372,7 @@ let Eo = class extends ae {
|
|
|
17361
17372
|
const g = (p, S) => {
|
|
17362
17373
|
o = p, s = S, u();
|
|
17363
17374
|
}, m = a.pipe(
|
|
17364
|
-
|
|
17375
|
+
Be((p) => {
|
|
17365
17376
|
const S = this._calcCellPositionByCell(e.endRow, e.endColumn, t, n, i);
|
|
17366
17377
|
return {
|
|
17367
17378
|
top: p.top,
|
|
@@ -17406,9 +17417,9 @@ var RR = Object.getOwnPropertyDescriptor, IR = (r, e, t, n) => {
|
|
|
17406
17417
|
let Po = class extends ae {
|
|
17407
17418
|
constructor(e, t) {
|
|
17408
17419
|
super();
|
|
17409
|
-
|
|
17410
|
-
|
|
17411
|
-
|
|
17420
|
+
_(this, "_currentAlert$", new Ae());
|
|
17421
|
+
_(this, "_currentAlert", /* @__PURE__ */ new Map());
|
|
17422
|
+
_(this, "currentAlert$", this._currentAlert$.asObservable());
|
|
17412
17423
|
this._renderManagerService = e, this._canvasPopManagerService = t, this.disposeWithMe(() => {
|
|
17413
17424
|
this._currentAlert$.complete();
|
|
17414
17425
|
});
|
|
@@ -17467,16 +17478,16 @@ function AR({ popup: r }) {
|
|
|
17467
17478
|
if (!e)
|
|
17468
17479
|
return null;
|
|
17469
17480
|
const { type: t, title: n, message: i } = e, o = {
|
|
17470
|
-
[oo.ERROR]: /* @__PURE__ */
|
|
17471
|
-
[oo.INFO]: /* @__PURE__ */
|
|
17472
|
-
[oo.WARNING]: /* @__PURE__ */
|
|
17481
|
+
[oo.ERROR]: /* @__PURE__ */ w(zd, { className: qe(wn.cellAlertIcon, wn.cellAlertIconError) }),
|
|
17482
|
+
[oo.INFO]: /* @__PURE__ */ w(Dc, { className: qe(wn.cellAlertIcon, wn.cellAlertIconInfo) }),
|
|
17483
|
+
[oo.WARNING]: /* @__PURE__ */ w(Dc, { className: qe(wn.cellAlertIcon, wn.cellAlertIconWarning) })
|
|
17473
17484
|
};
|
|
17474
17485
|
return /* @__PURE__ */ q("div", { className: wn.cellAlert, children: [
|
|
17475
17486
|
/* @__PURE__ */ q("div", { className: wn.cellAlertTitle, children: [
|
|
17476
17487
|
t ? o[t] : null,
|
|
17477
17488
|
n
|
|
17478
17489
|
] }),
|
|
17479
|
-
/* @__PURE__ */
|
|
17490
|
+
/* @__PURE__ */ w("div", { className: wn.cellAlertContent, children: i })
|
|
17480
17491
|
] });
|
|
17481
17492
|
}
|
|
17482
17493
|
const tp = "univer.sheet.cell-alert";
|
|
@@ -17540,7 +17551,7 @@ const NR = "univer-sheet-paste-options-wrapper", DR = "univer-sheet-paste-option
|
|
|
17540
17551
|
const u = o || l, h = (g) => {
|
|
17541
17552
|
a(!1), i.executeCommand(Zm.id, { type: g });
|
|
17542
17553
|
};
|
|
17543
|
-
return /* @__PURE__ */
|
|
17554
|
+
return /* @__PURE__ */ w(
|
|
17544
17555
|
"div",
|
|
17545
17556
|
{
|
|
17546
17557
|
className: Gr.sheetPasteOptionsWrapper,
|
|
@@ -17550,16 +17561,16 @@ const NR = "univer-sheet-paste-options-wrapper", DR = "univer-sheet-paste-option
|
|
|
17550
17561
|
},
|
|
17551
17562
|
onMouseEnter: () => s(!0),
|
|
17552
17563
|
onMouseLeave: () => s(!1),
|
|
17553
|
-
children: /* @__PURE__ */
|
|
17564
|
+
children: /* @__PURE__ */ w(
|
|
17554
17565
|
Ns,
|
|
17555
17566
|
{
|
|
17556
|
-
overlay: /* @__PURE__ */
|
|
17567
|
+
overlay: /* @__PURE__ */ w(
|
|
17557
17568
|
"div",
|
|
17558
17569
|
{
|
|
17559
17570
|
className: qe(Gr.sheetPasteOptionsMenu, `
|
|
17560
17571
|
univer-border univer-border-solid univer-border-gray-200 univer-opacity-100
|
|
17561
17572
|
`),
|
|
17562
|
-
children: /* @__PURE__ */
|
|
17573
|
+
children: /* @__PURE__ */ w("ul", { children: UR.map((g) => {
|
|
17563
17574
|
const m = nt[g.value], f = (t == null ? void 0 : t.pasteType) === m;
|
|
17564
17575
|
return /* @__PURE__ */ q(
|
|
17565
17576
|
"li",
|
|
@@ -17567,8 +17578,8 @@ const NR = "univer-sheet-paste-options-wrapper", DR = "univer-sheet-paste-option
|
|
|
17567
17578
|
className: qe(Gr.sheetPasteOptionsMenuItem, "hover:univer-bg-neutral-100"),
|
|
17568
17579
|
onClick: () => h(g.value),
|
|
17569
17580
|
children: [
|
|
17570
|
-
/* @__PURE__ */
|
|
17571
|
-
/* @__PURE__ */
|
|
17581
|
+
/* @__PURE__ */ w("span", { children: f && /* @__PURE__ */ w(Wr, { className: Gr.sheetPasteOptionsMenuItemIcon, style: { color: "rgb(var(--green-700, #409f11))" } }) }),
|
|
17582
|
+
/* @__PURE__ */ w(
|
|
17572
17583
|
"div",
|
|
17573
17584
|
{
|
|
17574
17585
|
className: qe(Gr.sheetPasteOptionsMenuItemTitle, `
|
|
@@ -17594,14 +17605,14 @@ const NR = "univer-sheet-paste-options-wrapper", DR = "univer-sheet-paste-option
|
|
|
17594
17605
|
a(!l);
|
|
17595
17606
|
},
|
|
17596
17607
|
children: [
|
|
17597
|
-
/* @__PURE__ */
|
|
17608
|
+
/* @__PURE__ */ w(
|
|
17598
17609
|
ym,
|
|
17599
17610
|
{
|
|
17600
17611
|
style: { color: "#35322B" },
|
|
17601
17612
|
extend: { colorChannel1: "rgb(var(--green-700))" }
|
|
17602
17613
|
}
|
|
17603
17614
|
),
|
|
17604
|
-
u && /* @__PURE__ */
|
|
17615
|
+
u && /* @__PURE__ */ w(vi, {})
|
|
17605
17616
|
]
|
|
17606
17617
|
}
|
|
17607
17618
|
)
|
|
@@ -18029,8 +18040,8 @@ const JR = [
|
|
|
18029
18040
|
let Ri = class extends Un {
|
|
18030
18041
|
constructor(e, t, n, i, o, s, l, a, c, d) {
|
|
18031
18042
|
super();
|
|
18032
|
-
|
|
18033
|
-
|
|
18043
|
+
_(this, "_refreshOptionalPaste$", new Ae());
|
|
18044
|
+
_(this, "refreshOptionalPaste$", this._refreshOptionalPaste$.asObservable());
|
|
18034
18045
|
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();
|
|
18035
18046
|
}
|
|
18036
18047
|
refreshOptionalPaste() {
|
|
@@ -18550,15 +18561,15 @@ var $R = Object.getOwnPropertyDescriptor, eI = (r, e, t, n) => {
|
|
|
18550
18561
|
let To = class extends ae {
|
|
18551
18562
|
constructor(e, t) {
|
|
18552
18563
|
super();
|
|
18553
|
-
|
|
18554
|
-
|
|
18564
|
+
_(this, "_currentCell$", new Ae());
|
|
18565
|
+
_(this, "currentCell$", this._currentCell$.asObservable().pipe(un(
|
|
18555
18566
|
(e, t) => {
|
|
18556
18567
|
var n, i, o, s, l, a, c, d;
|
|
18557
18568
|
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);
|
|
18558
18569
|
}
|
|
18559
18570
|
)));
|
|
18560
|
-
|
|
18561
|
-
|
|
18571
|
+
_(this, "_endCell$", new Ae());
|
|
18572
|
+
_(this, "endCell$", this._endCell$.asObservable());
|
|
18562
18573
|
this._univerInstanceService = e, this._renderManagerService = t, this._initCellDisposableListener();
|
|
18563
18574
|
}
|
|
18564
18575
|
dispose() {
|
|
@@ -18731,7 +18742,8 @@ const au = (r, e) => {
|
|
|
18731
18742
|
bottom: s.get(m).aTop + s.get(m).width,
|
|
18732
18743
|
left: s.get(m).aLeft,
|
|
18733
18744
|
right: s.get(m).aLeft + s.get(m).height
|
|
18734
|
-
}
|
|
18745
|
+
},
|
|
18746
|
+
drawing: s.get(m)
|
|
18735
18747
|
})) : []
|
|
18736
18748
|
};
|
|
18737
18749
|
};
|
|
@@ -18839,25 +18851,25 @@ function Sr(r) {
|
|
|
18839
18851
|
let Ar = class extends ae {
|
|
18840
18852
|
constructor(e, t) {
|
|
18841
18853
|
super();
|
|
18842
|
-
|
|
18843
|
-
|
|
18844
|
-
|
|
18845
|
-
|
|
18846
|
-
|
|
18847
|
-
|
|
18848
|
-
|
|
18849
|
-
|
|
18850
|
-
|
|
18851
|
-
|
|
18852
|
-
|
|
18853
|
-
|
|
18854
|
-
|
|
18855
|
-
|
|
18856
|
-
|
|
18857
|
-
|
|
18858
|
-
|
|
18854
|
+
_(this, "_currentCell$", new Me(null));
|
|
18855
|
+
_(this, "_currentRichText$", new Me(null));
|
|
18856
|
+
_(this, "_currentClickedCell$", new Ae());
|
|
18857
|
+
_(this, "_currentDbClickedCell$", new Ae());
|
|
18858
|
+
_(this, "_currentCellWithEvent$", new Ae());
|
|
18859
|
+
_(this, "_currentPointerDownCell$", new Ae());
|
|
18860
|
+
_(this, "_currentPointerUpCell$", new Ae());
|
|
18861
|
+
_(this, "_currentHoveredRowHeader$", new Me(null));
|
|
18862
|
+
_(this, "_currentHoveredColHeader$", new Me(null));
|
|
18863
|
+
_(this, "_currentRowHeaderClick$", new Ae());
|
|
18864
|
+
_(this, "_currentColHeaderClick$", new Ae());
|
|
18865
|
+
_(this, "_currentRowHeaderDbClick$", new Ae());
|
|
18866
|
+
_(this, "_currentColHeaderDbClick$", new Ae());
|
|
18867
|
+
_(this, "_currentRowHeaderPointerDown$", new Ae());
|
|
18868
|
+
_(this, "_currentColHeaderPointerDown$", new Ae());
|
|
18869
|
+
_(this, "_currentRowHeaderPointerUp$", new Ae());
|
|
18870
|
+
_(this, "_currentColHeaderPointerUp$", new Ae());
|
|
18859
18871
|
// Notify when hovering over different cells
|
|
18860
|
-
|
|
18872
|
+
_(this, "currentCell$", this._currentCell$.asObservable().pipe(
|
|
18861
18873
|
un(
|
|
18862
18874
|
(e, t) => {
|
|
18863
18875
|
var n, i, o, s, l, a, c, d;
|
|
@@ -18865,16 +18877,28 @@ let Ar = class extends ae {
|
|
|
18865
18877
|
}
|
|
18866
18878
|
)
|
|
18867
18879
|
));
|
|
18880
|
+
_(this, "currentRichTextNoDistinct$", this._currentRichText$.pipe(
|
|
18881
|
+
Be((e) => e && {
|
|
18882
|
+
unitId: e.location.unitId,
|
|
18883
|
+
subUnitId: e.location.subUnitId,
|
|
18884
|
+
row: e.location.row,
|
|
18885
|
+
col: e.location.col,
|
|
18886
|
+
customRange: e.customRange,
|
|
18887
|
+
bullet: e.bullet,
|
|
18888
|
+
rect: e.rect,
|
|
18889
|
+
drawing: e.drawing
|
|
18890
|
+
})
|
|
18891
|
+
));
|
|
18868
18892
|
// Notify when hovering over different cells and different custom range or bullet
|
|
18869
|
-
|
|
18893
|
+
_(this, "currentRichText$", this._currentRichText$.pipe(
|
|
18870
18894
|
un(
|
|
18871
18895
|
// eslint-disable-next-line complexity
|
|
18872
18896
|
(e, t) => {
|
|
18873
|
-
var n, i, o, s, l, a, c, d, u, h, g, m, f, p, S, v;
|
|
18874
|
-
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) && ((u = e == null ? void 0 : e.customRange) == null ? void 0 : u.rangeId) === ((h = t == null ? void 0 : t.customRange) == null ? void 0 : h.rangeId) && ((g = e == null ? void 0 : e.bullet) == null ? void 0 : g.startIndex) === ((m = t == null ? void 0 : t.bullet) == null ? void 0 : m.startIndex) && ((f = e == null ? void 0 : e.customRange) == null ? void 0 : f.startIndex) === ((p = t == null ? void 0 : t.customRange) == null ? void 0 : p.startIndex) && ((S = e == null ? void 0 : e.customRange) == null ? void 0 : S.endIndex) === ((v = t == null ? void 0 : t.customRange) == null ? void 0 : v.endIndex) && (e == null ? void 0 : e.drawing) === (t == null ? void 0 : t.drawing);
|
|
18897
|
+
var n, i, o, s, l, a, c, d, u, h, g, m, f, p, S, v, C, b;
|
|
18898
|
+
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) && ((u = e == null ? void 0 : e.customRange) == null ? void 0 : u.rangeId) === ((h = t == null ? void 0 : t.customRange) == null ? void 0 : h.rangeId) && ((g = e == null ? void 0 : e.bullet) == null ? void 0 : g.startIndex) === ((m = t == null ? void 0 : t.bullet) == null ? void 0 : m.startIndex) && ((f = e == null ? void 0 : e.customRange) == null ? void 0 : f.startIndex) === ((p = t == null ? void 0 : t.customRange) == null ? void 0 : p.startIndex) && ((S = e == null ? void 0 : e.customRange) == null ? void 0 : S.endIndex) === ((v = t == null ? void 0 : t.customRange) == null ? void 0 : v.endIndex) && ((C = e == null ? void 0 : e.drawing) == null ? void 0 : C.drawingId) === ((b = t == null ? void 0 : t.drawing) == null ? void 0 : b.drawingId);
|
|
18875
18899
|
}
|
|
18876
18900
|
),
|
|
18877
|
-
|
|
18901
|
+
Be((e) => e && {
|
|
18878
18902
|
unitId: e.location.unitId,
|
|
18879
18903
|
subUnitId: e.location.subUnitId,
|
|
18880
18904
|
row: e.location.row,
|
|
@@ -18888,14 +18912,14 @@ let Ar = class extends ae {
|
|
|
18888
18912
|
/**
|
|
18889
18913
|
* Nearly same as currentRichText$, but with event
|
|
18890
18914
|
*/
|
|
18891
|
-
|
|
18915
|
+
_(this, "currentCellPosWithEvent$", this._currentCellWithEvent$.pipe(
|
|
18892
18916
|
un(
|
|
18893
18917
|
(e, t) => {
|
|
18894
18918
|
var n, i, o, s, l, a, c, d;
|
|
18895
18919
|
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);
|
|
18896
18920
|
}
|
|
18897
18921
|
),
|
|
18898
|
-
|
|
18922
|
+
Be((e) => e && {
|
|
18899
18923
|
unitId: e.location.unitId,
|
|
18900
18924
|
subUnitId: e.location.subUnitId,
|
|
18901
18925
|
row: e.location.row,
|
|
@@ -18904,21 +18928,21 @@ let Ar = class extends ae {
|
|
|
18904
18928
|
})
|
|
18905
18929
|
));
|
|
18906
18930
|
// Notify when mouse position changes
|
|
18907
|
-
|
|
18908
|
-
|
|
18909
|
-
|
|
18910
|
-
|
|
18911
|
-
|
|
18912
|
-
|
|
18913
|
-
|
|
18914
|
-
|
|
18915
|
-
|
|
18916
|
-
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
|
|
18920
|
-
|
|
18921
|
-
|
|
18931
|
+
_(this, "currentPosition$", this._currentCell$.asObservable());
|
|
18932
|
+
_(this, "currentClickedCell$", this._currentClickedCell$.asObservable());
|
|
18933
|
+
_(this, "currentDbClickedCell$", this._currentDbClickedCell$.asObservable());
|
|
18934
|
+
_(this, "currentPointerDownCell$", this._currentPointerDownCell$.asObservable());
|
|
18935
|
+
_(this, "currentPointerUpCell$", this._currentPointerUpCell$.asObservable());
|
|
18936
|
+
_(this, "currentHoveredRowHeader$", this._currentHoveredRowHeader$.asObservable());
|
|
18937
|
+
_(this, "currentHoveredColHeader$", this._currentHoveredColHeader$.asObservable());
|
|
18938
|
+
_(this, "currentRowHeaderClick$", this._currentRowHeaderClick$.asObservable());
|
|
18939
|
+
_(this, "currentColHeaderClick$", this._currentColHeaderClick$.asObservable());
|
|
18940
|
+
_(this, "currentRowHeaderDbClick$", this._currentRowHeaderDbClick$.asObservable());
|
|
18941
|
+
_(this, "currentColHeaderDbClick$", this._currentColHeaderDbClick$.asObservable());
|
|
18942
|
+
_(this, "currentRowHeaderPointerDown$", this._currentRowHeaderPointerDown$.asObservable());
|
|
18943
|
+
_(this, "currentColHeaderPointerDown$", this._currentColHeaderPointerDown$.asObservable());
|
|
18944
|
+
_(this, "currentRowHeaderPointerUp$", this._currentRowHeaderPointerUp$.asObservable());
|
|
18945
|
+
_(this, "currentColHeaderPointerUp$", this._currentColHeaderPointerUp$.asObservable());
|
|
18922
18946
|
this._univerInstanceService = e, this._renderManagerService = t, this._initCellDisposableListener();
|
|
18923
18947
|
}
|
|
18924
18948
|
dispose() {
|
|
@@ -18947,7 +18971,6 @@ let Ar = class extends ae {
|
|
|
18947
18971
|
if (!(!(s != null && s.getCurrentScrollState()) || !i))
|
|
18948
18972
|
return { currentRender: i, workbook: t, worksheet: n, skeletonParam: o };
|
|
18949
18973
|
}
|
|
18950
|
-
// eslint-disable-next-line complexity
|
|
18951
18974
|
_calcActiveCell(e, t, n, i, o, s) {
|
|
18952
18975
|
var R, I, y;
|
|
18953
18976
|
const l = sf(e, t, n, i, o, s), a = i.skeleton;
|
|
@@ -18967,7 +18990,7 @@ let Ar = class extends ae {
|
|
|
18967
18990
|
overflowLocation: d,
|
|
18968
18991
|
customRange: g == null ? void 0 : g.range,
|
|
18969
18992
|
bullet: m == null ? void 0 : m.paragraph,
|
|
18970
|
-
drawing: f
|
|
18993
|
+
drawing: f,
|
|
18971
18994
|
rect: b && {
|
|
18972
18995
|
top: b.top + p.mergeInfo.startY + v,
|
|
18973
18996
|
bottom: b.bottom + p.mergeInfo.startY + v,
|
|
@@ -19226,7 +19249,7 @@ var gI = Object.getOwnPropertyDescriptor, mI = (r, e, t, n) => {
|
|
|
19226
19249
|
let cl = class extends ae {
|
|
19227
19250
|
constructor(e, t, n, i) {
|
|
19228
19251
|
super();
|
|
19229
|
-
|
|
19252
|
+
_(this, "_active", !1);
|
|
19230
19253
|
this._context = e, this._hoverManagerService = t, this._sheetSkeletonManagerService = n, this._scrollManagerService = i, this._initPointerEvent(), this._initScrollEvent();
|
|
19231
19254
|
}
|
|
19232
19255
|
get active() {
|
|
@@ -19247,7 +19270,9 @@ let cl = class extends ae {
|
|
|
19247
19270
|
})), e.add(i.onPointerDown$.subscribeEvent((c) => {
|
|
19248
19271
|
this._hoverManagerService.triggerPointerDown(o, c);
|
|
19249
19272
|
})), e.add(i.onPointerUp$.subscribeEvent((c) => {
|
|
19250
|
-
this._hoverManagerService.triggerPointerUp(o, c)
|
|
19273
|
+
this._hoverManagerService.triggerPointerUp(o, c);
|
|
19274
|
+
})), e.add(i.onClick$.subscribeEvent((c) => {
|
|
19275
|
+
this._hoverManagerService.triggerClick(o, c.offsetX, c.offsetY);
|
|
19251
19276
|
})), e.add(i.onDblclick$.subscribeEvent((c) => {
|
|
19252
19277
|
this._hoverManagerService.triggerDbClick(o, c.offsetX, c.offsetY);
|
|
19253
19278
|
})), e.add(i.onPointerLeave$.subscribeEvent(() => {
|
|
@@ -19326,7 +19351,7 @@ const SI = "univer-mobile-sheet-bar-container", vI = "univer-mobile-sheet-bar-sl
|
|
|
19326
19351
|
};
|
|
19327
19352
|
function _I() {
|
|
19328
19353
|
const r = ur();
|
|
19329
|
-
return r ? /* @__PURE__ */
|
|
19354
|
+
return r ? /* @__PURE__ */ w(wI, { workbook: r }) : null;
|
|
19330
19355
|
}
|
|
19331
19356
|
function wI(r) {
|
|
19332
19357
|
const { workbook: e } = r, [t, n] = ne([]), [i, o] = ne(""), s = An(/* @__PURE__ */ new Map()), l = L(D), a = Nn(() => {
|
|
@@ -19367,7 +19392,7 @@ function wI(r) {
|
|
|
19367
19392
|
}
|
|
19368
19393
|
});
|
|
19369
19394
|
return () => d.dispose();
|
|
19370
|
-
}, [l, a]), /* @__PURE__ */
|
|
19395
|
+
}, [l, a]), /* @__PURE__ */ w("div", { className: us.mobileSheetBarContainer, children: /* @__PURE__ */ w("div", { className: us.mobileSheetBarSlider, children: t.map((d) => /* @__PURE__ */ w(
|
|
19371
19396
|
"div",
|
|
19372
19397
|
{
|
|
19373
19398
|
className: qe(
|
|
@@ -19610,7 +19635,7 @@ var MI = Object.getOwnPropertyDescriptor, EI = (r, e, t, n) => {
|
|
|
19610
19635
|
let Oo = class extends ae {
|
|
19611
19636
|
constructor(e, t, n, i, o, s, l, a, c) {
|
|
19612
19637
|
super();
|
|
19613
|
-
|
|
19638
|
+
_(this, "disposableCollection", new _t());
|
|
19614
19639
|
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();
|
|
19615
19640
|
}
|
|
19616
19641
|
_initUIEvent() {
|
|
@@ -19734,7 +19759,7 @@ let Oo = class extends ae {
|
|
|
19734
19759
|
_permissionCheckByAutoFillCommand(e) {
|
|
19735
19760
|
if (!e)
|
|
19736
19761
|
return !1;
|
|
19737
|
-
const { targetRange: t } = e, n =
|
|
19762
|
+
const { targetRange: t } = e, n = Ue(this._univerInstanceService);
|
|
19738
19763
|
if (!n)
|
|
19739
19764
|
return !1;
|
|
19740
19765
|
const { worksheet: i, unitId: o, subUnitId: s } = n;
|
|
@@ -19769,7 +19794,7 @@ var PI = Object.getOwnPropertyDescriptor, TI = (r, e, t, n) => {
|
|
|
19769
19794
|
let hl = class extends Un {
|
|
19770
19795
|
constructor(e, t, n, i, o, s, l, a, c, d) {
|
|
19771
19796
|
super();
|
|
19772
|
-
|
|
19797
|
+
_(this, "disposableCollection", new _t());
|
|
19773
19798
|
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();
|
|
19774
19799
|
}
|
|
19775
19800
|
_initHeaderMovePermissionInterceptor() {
|
|
@@ -19777,7 +19802,7 @@ let hl = class extends Un {
|
|
|
19777
19802
|
this.disposeWithMe(
|
|
19778
19803
|
this._headerMoveRenderController.interceptor.intercept(e, {
|
|
19779
19804
|
handler: (t, n) => {
|
|
19780
|
-
const i =
|
|
19805
|
+
const i = Ue(this._univerInstanceService);
|
|
19781
19806
|
if (!i)
|
|
19782
19807
|
return !1;
|
|
19783
19808
|
const { unitId: o, subUnitId: s } = i;
|
|
@@ -19805,7 +19830,7 @@ let hl = class extends Un {
|
|
|
19805
19830
|
this._headerResizeRenderController.interceptor.intercept(this._headerResizeRenderController.interceptor.getInterceptPoints().HEADER_RESIZE_PERMISSION_CHECK, {
|
|
19806
19831
|
handler: (e, t) => {
|
|
19807
19832
|
var s, l, a, c;
|
|
19808
|
-
const n =
|
|
19833
|
+
const n = Ue(this._univerInstanceService);
|
|
19809
19834
|
if (!n)
|
|
19810
19835
|
return !1;
|
|
19811
19836
|
const { unitId: i, subUnitId: o } = n;
|
|
@@ -19824,7 +19849,7 @@ let hl = class extends Un {
|
|
|
19824
19849
|
this._selectionRenderService.interceptor.intercept(this._selectionRenderService.interceptor.getInterceptPoints().RANGE_FILL_PERMISSION_CHECK, {
|
|
19825
19850
|
handler: (e, t) => {
|
|
19826
19851
|
var m, f, p;
|
|
19827
|
-
const n =
|
|
19852
|
+
const n = Ue(this._univerInstanceService);
|
|
19828
19853
|
if (!n)
|
|
19829
19854
|
return !1;
|
|
19830
19855
|
const { worksheet: i, unitId: o, subUnitId: s } = n;
|
|
@@ -19858,7 +19883,7 @@ let hl = class extends Un {
|
|
|
19858
19883
|
this._selectionRenderService.interceptor.intercept(this._selectionRenderService.interceptor.getInterceptPoints().RANGE_MOVE_PERMISSION_CHECK, {
|
|
19859
19884
|
handler: (e, t) => {
|
|
19860
19885
|
var h;
|
|
19861
|
-
const n =
|
|
19886
|
+
const n = Ue(this._univerInstanceService);
|
|
19862
19887
|
if (!n)
|
|
19863
19888
|
return !1;
|
|
19864
19889
|
const { worksheet: i, unitId: o, subUnitId: s } = n;
|
|
@@ -19912,7 +19937,7 @@ const AI = "SHEET_PERMISSION_PASTE_PLUGIN";
|
|
|
19912
19937
|
let xo = class extends ae {
|
|
19913
19938
|
constructor(e, t, n, i, o) {
|
|
19914
19939
|
super();
|
|
19915
|
-
|
|
19940
|
+
_(this, "disposableCollection", new _t());
|
|
19916
19941
|
this._univerInstanceService = e, this._selectionManagerService = t, this._localService = n, this._sheetClipboardService = i, this._sheetPermissionCheckController = o, this._initClipboardHook();
|
|
19917
19942
|
}
|
|
19918
19943
|
_initClipboardHook() {
|
|
@@ -19963,11 +19988,11 @@ var HI = Object.getOwnPropertyDescriptor, kI = (r, e, t, n) => {
|
|
|
19963
19988
|
const VI = cr("statusBarPermissionCorrect");
|
|
19964
19989
|
class NI {
|
|
19965
19990
|
constructor() {
|
|
19966
|
-
|
|
19967
|
-
|
|
19968
|
-
|
|
19969
|
-
|
|
19970
|
-
|
|
19991
|
+
_(this, "_sum", 0);
|
|
19992
|
+
_(this, "_count", 0);
|
|
19993
|
+
_(this, "_countNumber", 0);
|
|
19994
|
+
_(this, "_min", Number.POSITIVE_INFINITY);
|
|
19995
|
+
_(this, "_max", Number.NEGATIVE_INFINITY);
|
|
19971
19996
|
}
|
|
19972
19997
|
add(e, t, n) {
|
|
19973
19998
|
if (!(e != null && e.v))
|
|
@@ -20038,7 +20063,7 @@ function DI(r) {
|
|
|
20038
20063
|
let Ii = class extends ae {
|
|
20039
20064
|
constructor(e, t, n, i, o) {
|
|
20040
20065
|
super();
|
|
20041
|
-
|
|
20066
|
+
_(this, "interceptor", new yi({ STATUS_BAR_PERMISSION_CORRECT: VI }));
|
|
20042
20067
|
this._univerInstanceService = e, this._selectionManagerService = t, this._statusBarService = n, this._commandService = i, this._numfmtService = o, this._init();
|
|
20043
20068
|
}
|
|
20044
20069
|
_init() {
|
|
@@ -20061,13 +20086,13 @@ let Ii = class extends ae {
|
|
|
20061
20086
|
);
|
|
20062
20087
|
}, 500);
|
|
20063
20088
|
this.disposeWithMe(
|
|
20064
|
-
|
|
20089
|
+
Fe(
|
|
20065
20090
|
this._selectionManagerService.selectionMoving$.subscribe((n) => {
|
|
20066
20091
|
n && t(n);
|
|
20067
20092
|
})
|
|
20068
20093
|
)
|
|
20069
20094
|
), this.disposeWithMe(
|
|
20070
|
-
|
|
20095
|
+
Fe(
|
|
20071
20096
|
this._selectionManagerService.selectionMoveEnd$.subscribe((n) => {
|
|
20072
20097
|
n && e(n);
|
|
20073
20098
|
})
|
|
@@ -20176,7 +20201,7 @@ var LI = Object.getOwnPropertyDescriptor, WI = (r, e, t, n) => {
|
|
|
20176
20201
|
let gl = class extends Un {
|
|
20177
20202
|
constructor(e, t, n, i, o) {
|
|
20178
20203
|
super();
|
|
20179
|
-
|
|
20204
|
+
_(this, "disposableCollection", new _t());
|
|
20180
20205
|
this._context = e, this._univerInstanceService = t, this._permissionService = n, this._statusBarController = i, this._rangeProtectionCache = o, this._initStatusBarPermissionInterceptor();
|
|
20181
20206
|
}
|
|
20182
20207
|
_initStatusBarPermissionInterceptor() {
|
|
@@ -20185,7 +20210,7 @@ let gl = class extends Un {
|
|
|
20185
20210
|
priority: 100,
|
|
20186
20211
|
handler: (e, t) => {
|
|
20187
20212
|
var a;
|
|
20188
|
-
const n =
|
|
20213
|
+
const n = Ue(this._univerInstanceService);
|
|
20189
20214
|
if (!n)
|
|
20190
20215
|
return e != null ? e : [];
|
|
20191
20216
|
const { worksheet: i, unitId: o, subUnitId: s } = n;
|
|
@@ -20303,7 +20328,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20303
20328
|
return null;
|
|
20304
20329
|
const v = p.getUnitId(), C = S.getSheetId();
|
|
20305
20330
|
return /* @__PURE__ */ q("div", { className: st.sheetPermissionPanelFooter, children: [
|
|
20306
|
-
/* @__PURE__ */
|
|
20331
|
+
/* @__PURE__ */ w(
|
|
20307
20332
|
pn,
|
|
20308
20333
|
{
|
|
20309
20334
|
type: "primary",
|
|
@@ -20412,7 +20437,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20412
20437
|
children: h.t("permission.button.confirm")
|
|
20413
20438
|
}
|
|
20414
20439
|
),
|
|
20415
|
-
/* @__PURE__ */
|
|
20440
|
+
/* @__PURE__ */ w(
|
|
20416
20441
|
pn,
|
|
20417
20442
|
{
|
|
20418
20443
|
className: st.sheetPermissionPanelFooterCancel,
|
|
@@ -20441,13 +20466,13 @@ const lp = (r, e, t, n, i) => {
|
|
|
20441
20466
|
t(y, M);
|
|
20442
20467
|
};
|
|
20443
20468
|
return /* @__PURE__ */ q(Mr, { children: [
|
|
20444
|
-
/* @__PURE__ */
|
|
20469
|
+
/* @__PURE__ */ w(
|
|
20445
20470
|
Ls,
|
|
20446
20471
|
{
|
|
20447
20472
|
className: st.sheetPermissionPanelTitle,
|
|
20448
20473
|
label: d.t("permission.panel.protectedRange"),
|
|
20449
20474
|
error: o,
|
|
20450
|
-
children: a && /* @__PURE__ */
|
|
20475
|
+
children: a && /* @__PURE__ */ w(
|
|
20451
20476
|
a,
|
|
20452
20477
|
{
|
|
20453
20478
|
unitId: m,
|
|
@@ -20458,7 +20483,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20458
20483
|
)
|
|
20459
20484
|
}
|
|
20460
20485
|
),
|
|
20461
|
-
/* @__PURE__ */
|
|
20486
|
+
/* @__PURE__ */ w(Ls, { className: st.sheetPermissionPanelTitle, label: d.t("permission.panel.permissionDirection"), children: /* @__PURE__ */ w(
|
|
20462
20487
|
Ds,
|
|
20463
20488
|
{
|
|
20464
20489
|
value: n,
|
|
@@ -20480,7 +20505,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20480
20505
|
y.unsubscribe();
|
|
20481
20506
|
};
|
|
20482
20507
|
}, []), /* @__PURE__ */ q("div", { className: st.permissionPanelDetailWrapper, children: [
|
|
20483
|
-
/* @__PURE__ */
|
|
20508
|
+
/* @__PURE__ */ w(
|
|
20484
20509
|
iy,
|
|
20485
20510
|
{
|
|
20486
20511
|
permissionId: o.permissionId,
|
|
@@ -20493,7 +20518,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20493
20518
|
onDescChange: (C) => u(C)
|
|
20494
20519
|
}
|
|
20495
20520
|
),
|
|
20496
|
-
/* @__PURE__ */
|
|
20521
|
+
/* @__PURE__ */ w(
|
|
20497
20522
|
eg,
|
|
20498
20523
|
{
|
|
20499
20524
|
components: p,
|
|
@@ -20507,7 +20532,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20507
20532
|
},
|
|
20508
20533
|
"user-part"
|
|
20509
20534
|
),
|
|
20510
|
-
/* @__PURE__ */
|
|
20535
|
+
/* @__PURE__ */ w(
|
|
20511
20536
|
ry,
|
|
20512
20537
|
{
|
|
20513
20538
|
permissionId: o.permissionId,
|
|
@@ -20638,15 +20663,15 @@ const lp = (r, e, t, n, i) => {
|
|
|
20638
20663
|
return /* @__PURE__ */ q("div", { className: je.sheetPermissionListPanelWrapper, children: [
|
|
20639
20664
|
/* @__PURE__ */ q("div", { className: je.sheetPermissionListPanelHeader, children: [
|
|
20640
20665
|
/* @__PURE__ */ q("div", { className: je.sheetPermissionListPanelHeaderType, onClick: () => T(!0), children: [
|
|
20641
|
-
/* @__PURE__ */
|
|
20642
|
-
r && /* @__PURE__ */
|
|
20666
|
+
/* @__PURE__ */ w("div", { className: qe({ [je.sheetPermissionListPanelHeaderSelect]: r }), children: i.t("permission.panel.currentSheet") }),
|
|
20667
|
+
r && /* @__PURE__ */ w("div", { className: je.sheetPermissionListPanelHeaderTypeBottom })
|
|
20643
20668
|
] }),
|
|
20644
20669
|
/* @__PURE__ */ q("div", { className: je.sheetPermissionListPanelHeaderType, onClick: () => T(!1), children: [
|
|
20645
|
-
/* @__PURE__ */
|
|
20646
|
-
!r && /* @__PURE__ */
|
|
20670
|
+
/* @__PURE__ */ w("div", { className: qe({ [je.sheetPermissionListPanelHeaderSelect]: !r }), children: i.t("permission.panel.allSheet") }),
|
|
20671
|
+
!r && /* @__PURE__ */ w("div", { className: je.sheetPermissionListPanelHeaderTypeBottom })
|
|
20647
20672
|
] })
|
|
20648
20673
|
] }),
|
|
20649
|
-
(I == null ? void 0 : I.length) > 0 ? /* @__PURE__ */
|
|
20674
|
+
(I == null ? void 0 : I.length) > 0 ? /* @__PURE__ */ w("div", { className: je.sheetPermissionListPanelContent, children: I == null ? void 0 : I.map((O) => {
|
|
20650
20675
|
var ee, le, pe, Se, Oe;
|
|
20651
20676
|
const k = E.get(O.objectID);
|
|
20652
20677
|
if (!k)
|
|
@@ -20683,34 +20708,34 @@ const lp = (r, e, t, n, i) => {
|
|
|
20683
20708
|
onMouseLeave: () => f([]),
|
|
20684
20709
|
children: [
|
|
20685
20710
|
/* @__PURE__ */ q("div", { className: je.sheetPermissionListItemHeader, children: [
|
|
20686
|
-
/* @__PURE__ */
|
|
20711
|
+
/* @__PURE__ */ w(er, { title: _e, children: /* @__PURE__ */ w("div", { className: je.sheetPermissionListItemHeaderName, children: _e }) }),
|
|
20687
20712
|
(fe || oe) && /* @__PURE__ */ q("div", { className: je.sheetPermissionListItemHeaderOperator, children: [
|
|
20688
|
-
fe && /* @__PURE__ */
|
|
20689
|
-
oe && /* @__PURE__ */
|
|
20713
|
+
fe && /* @__PURE__ */ w(er, { title: i.t("permission.panel.edit"), children: /* @__PURE__ */ w("div", { className: je.sheetPermissionListItemHeaderIcon, onClick: () => P(k), children: /* @__PURE__ */ w(Zd, {}) }) }),
|
|
20714
|
+
oe && /* @__PURE__ */ w(er, { title: i.t("permission.panel.delete"), children: /* @__PURE__ */ w("div", { className: je.sheetPermissionListItemHeaderIcon, onClick: () => M(k), children: /* @__PURE__ */ w(Kl, {}) }) })
|
|
20690
20715
|
] })
|
|
20691
20716
|
] }),
|
|
20692
|
-
/* @__PURE__ */
|
|
20717
|
+
/* @__PURE__ */ w("div", { className: je.sheetPermissionListItemSplit }),
|
|
20693
20718
|
/* @__PURE__ */ q("div", { className: je.sheetPermissionListItemContent, children: [
|
|
20694
20719
|
/* @__PURE__ */ q("div", { className: je.sheetPermissionListItemContentEdit, children: [
|
|
20695
|
-
/* @__PURE__ */
|
|
20696
|
-
/* @__PURE__ */
|
|
20697
|
-
/* @__PURE__ */
|
|
20720
|
+
/* @__PURE__ */ w(er, { title: (Se = (pe = O.creator) == null ? void 0 : pe.name) != null ? Se : "", children: /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(Hd, { src: (Oe = O.creator) == null ? void 0 : Oe.avatar, style: { marginRight: 6 }, size: 24 }) }) }),
|
|
20721
|
+
/* @__PURE__ */ w("span", { className: je.sheetPermissionListItemContentTitle, children: i.t("permission.panel.created") }),
|
|
20722
|
+
/* @__PURE__ */ w("span", { className: je.sheetPermissionListItemContentSub, children: X ? `${i.t("permission.panel.iCanEdit")}` : `${i.t("permission.panel.iCanNotEdit")}` })
|
|
20698
20723
|
] }),
|
|
20699
20724
|
/* @__PURE__ */ q("div", { className: je.sheetPermissionListItemContentView, children: [
|
|
20700
|
-
/* @__PURE__ */
|
|
20701
|
-
/* @__PURE__ */
|
|
20725
|
+
/* @__PURE__ */ w("span", { className: je.sheetPermissionListItemContentTitle, children: i.t("permission.panel.viewPermission") }),
|
|
20726
|
+
/* @__PURE__ */ w("span", { className: je.sheetPermissionListItemContentSub, children: j ? `${i.t("permission.panel.iCanView")}` : `${i.t("permission.panel.iCanNotView")}` })
|
|
20702
20727
|
] }),
|
|
20703
|
-
k.description && /* @__PURE__ */
|
|
20728
|
+
k.description && /* @__PURE__ */ w(er, { title: k.description, children: /* @__PURE__ */ w("div", { className: je.sheetPermissionListItemContentDesc, children: k.description }) })
|
|
20704
20729
|
] })
|
|
20705
20730
|
]
|
|
20706
20731
|
},
|
|
20707
20732
|
O.objectID
|
|
20708
20733
|
);
|
|
20709
20734
|
}) }) : /* @__PURE__ */ q("div", { className: je.sheetPermissionListEmpty, children: [
|
|
20710
|
-
/* @__PURE__ */
|
|
20711
|
-
/* @__PURE__ */
|
|
20735
|
+
/* @__PURE__ */ w("img", { width: 240, height: 120, src: sy, alt: "" }),
|
|
20736
|
+
/* @__PURE__ */ w("p", { className: je.sheetPermissionListEmptyText, children: i.t("permission.dialog.listEmpty") })
|
|
20712
20737
|
] }),
|
|
20713
|
-
A && /* @__PURE__ */
|
|
20738
|
+
A && /* @__PURE__ */ w("div", { className: je.sheetPermissionPanelAddWrapper, children: /* @__PURE__ */ q(
|
|
20714
20739
|
pn,
|
|
20715
20740
|
{
|
|
20716
20741
|
className: je.sheetPermissionPanelAddButton,
|
|
@@ -20727,7 +20752,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20727
20752
|
c.open(O);
|
|
20728
20753
|
},
|
|
20729
20754
|
children: [
|
|
20730
|
-
/* @__PURE__ */
|
|
20755
|
+
/* @__PURE__ */ w("div", { children: "+ " }),
|
|
20731
20756
|
i.t("permission.button.addNewPermission")
|
|
20732
20757
|
]
|
|
20733
20758
|
}
|
|
@@ -20737,10 +20762,10 @@ const lp = (r, e, t, n, i) => {
|
|
|
20737
20762
|
var u;
|
|
20738
20763
|
const i = L(N), o = L($);
|
|
20739
20764
|
if (!L(wi).getVisible()) return null;
|
|
20740
|
-
const l =
|
|
20765
|
+
const l = Ue(i);
|
|
20741
20766
|
if (!l) return null;
|
|
20742
20767
|
const { worksheet: a } = l, d = ((u = o.getCurrentSelections()) == null ? void 0 : u.map((h) => h.range)).reduce((h, g) => h + Kg(a.getName(), g), "");
|
|
20743
|
-
return r ? /* @__PURE__ */
|
|
20768
|
+
return r ? /* @__PURE__ */ w(
|
|
20744
20769
|
oy,
|
|
20745
20770
|
{
|
|
20746
20771
|
fromSheetBar: e,
|
|
@@ -20748,15 +20773,15 @@ const lp = (r, e, t, n, i) => {
|
|
|
20748
20773
|
oldRule: n
|
|
20749
20774
|
},
|
|
20750
20775
|
e ? "sheet-bar" : "normal"
|
|
20751
|
-
) : /* @__PURE__ */
|
|
20776
|
+
) : /* @__PURE__ */ w(Ey, {}, d);
|
|
20752
20777
|
}, Ty = "univer-spin-container", Oy = "univer-spin-overlay", xy = "univer-spinner", Ay = "univer-content-blur", gs = {
|
|
20753
20778
|
spinContainer: Ty,
|
|
20754
20779
|
spinOverlay: Oy,
|
|
20755
20780
|
spinner: xy,
|
|
20756
20781
|
contentBlur: Ay
|
|
20757
20782
|
}, Hy = ({ loading: r, children: e }) => /* @__PURE__ */ q("div", { className: gs.spinContainer, children: [
|
|
20758
|
-
r && /* @__PURE__ */
|
|
20759
|
-
/* @__PURE__ */
|
|
20783
|
+
r && /* @__PURE__ */ w("div", { className: gs.spinOverlay, children: /* @__PURE__ */ w("div", { className: gs.spinner }) }),
|
|
20784
|
+
/* @__PURE__ */ w("div", { className: r ? gs.contentBlur : "", children: e })
|
|
20760
20785
|
] }), ky = "univer-sheet-permission-dialog-wrapper", Vy = "univer-sheet-permission-dialog-split", Ny = "univer-sheet-permission-dialog-item", Dy = "univer-sheet-permission-user-dialog-footer", Ly = "univer-sheet-permission-user-dialog-footer-confirm", Wy = "univer-sheet-permission-user-dialog-button", Qn = {
|
|
20761
20786
|
sheetPermissionDialogWrapper: ky,
|
|
20762
20787
|
sheetPermissionDialogSplit: Vy,
|
|
@@ -20845,13 +20870,13 @@ const lp = (r, e, t, n, i) => {
|
|
|
20845
20870
|
}
|
|
20846
20871
|
}));
|
|
20847
20872
|
};
|
|
20848
|
-
return /* @__PURE__ */
|
|
20849
|
-
/* @__PURE__ */
|
|
20873
|
+
return /* @__PURE__ */ w(Hy, { loading: u, children: /* @__PURE__ */ q("div", { className: Qn.sheetPermissionDialogWrapper, children: [
|
|
20874
|
+
/* @__PURE__ */ w("div", { className: Qn.sheetPermissionDialogSplit }),
|
|
20850
20875
|
Object.keys(g).map((p) => {
|
|
20851
20876
|
const S = g[p], { text: v, allowed: C } = S;
|
|
20852
20877
|
return /* @__PURE__ */ q("div", { className: Qn.sheetPermissionDialogItem, children: [
|
|
20853
|
-
/* @__PURE__ */
|
|
20854
|
-
/* @__PURE__ */
|
|
20878
|
+
/* @__PURE__ */ w("div", { children: v }),
|
|
20879
|
+
/* @__PURE__ */ w(
|
|
20855
20880
|
eC,
|
|
20856
20881
|
{
|
|
20857
20882
|
defaultChecked: C,
|
|
@@ -20868,9 +20893,9 @@ const lp = (r, e, t, n, i) => {
|
|
|
20868
20893
|
)
|
|
20869
20894
|
] }, v);
|
|
20870
20895
|
}),
|
|
20871
|
-
/* @__PURE__ */
|
|
20896
|
+
/* @__PURE__ */ w("div", { className: Qn.sheetPermissionDialogSplit }),
|
|
20872
20897
|
/* @__PURE__ */ q("div", { className: Qn.sheetPermissionUserDialogFooter, children: [
|
|
20873
|
-
/* @__PURE__ */
|
|
20898
|
+
/* @__PURE__ */ w(
|
|
20874
20899
|
pn,
|
|
20875
20900
|
{
|
|
20876
20901
|
className: Qn.sheetPermissionUserDialogButton,
|
|
@@ -20880,7 +20905,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20880
20905
|
children: r.t("permission.button.cancel")
|
|
20881
20906
|
}
|
|
20882
20907
|
),
|
|
20883
|
-
/* @__PURE__ */
|
|
20908
|
+
/* @__PURE__ */ w(
|
|
20884
20909
|
pn,
|
|
20885
20910
|
{
|
|
20886
20911
|
type: "primary",
|
|
@@ -20926,7 +20951,7 @@ const lp = (r, e, t, n, i) => {
|
|
|
20926
20951
|
}
|
|
20927
20952
|
};
|
|
20928
20953
|
return /* @__PURE__ */ q("div", { className: kt.sheetPermissionUserDialogWrapper, children: [
|
|
20929
|
-
/* @__PURE__ */
|
|
20954
|
+
/* @__PURE__ */ w("div", { className: kt.sheetPermissionUserDialogSearch, children: /* @__PURE__ */ w(
|
|
20930
20955
|
Ds,
|
|
20931
20956
|
{
|
|
20932
20957
|
placeholder: t.t("permission.dialog.search"),
|
|
@@ -20935,24 +20960,24 @@ const lp = (r, e, t, n, i) => {
|
|
|
20935
20960
|
onChange: (u) => e(u)
|
|
20936
20961
|
}
|
|
20937
20962
|
) }),
|
|
20938
|
-
/* @__PURE__ */
|
|
20963
|
+
/* @__PURE__ */ w("div", { className: kt.sheetPermissionUserList, children: (s == null ? void 0 : s.length) > 0 ? /* @__PURE__ */ w(Mr, { children: s == null ? void 0 : s.map((u) => {
|
|
20939
20964
|
var h, g, m;
|
|
20940
20965
|
return /* @__PURE__ */ q("div", { className: kt.sheetPermissionUserItem, onClick: () => c(u), children: [
|
|
20941
|
-
/* @__PURE__ */
|
|
20942
|
-
/* @__PURE__ */
|
|
20966
|
+
/* @__PURE__ */ w(Hd, { src: (h = u.subject) == null ? void 0 : h.avatar, size: 24 }),
|
|
20967
|
+
/* @__PURE__ */ w("div", { className: kt.sheetPermissionUserItemName, children: (g = u.subject) == null ? void 0 : g.name }),
|
|
20943
20968
|
(l == null ? void 0 : l.findIndex((f) => {
|
|
20944
20969
|
var p, S;
|
|
20945
20970
|
return ((p = f.subject) == null ? void 0 : p.userID) === ((S = u.subject) == null ? void 0 : S.userID);
|
|
20946
|
-
})) !== -1 && /* @__PURE__ */
|
|
20971
|
+
})) !== -1 && /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(Wr, {}) })
|
|
20947
20972
|
] }, (m = u.subject) == null ? void 0 : m.userID);
|
|
20948
20973
|
}) }) : /* @__PURE__ */ q("div", { className: kt.sheetPermissionUserListEmpty, children: [
|
|
20949
|
-
/* @__PURE__ */
|
|
20950
|
-
/* @__PURE__ */
|
|
20974
|
+
/* @__PURE__ */ w("img", { width: 240, height: 120, src: ap, alt: "" }),
|
|
20975
|
+
/* @__PURE__ */ w("p", { className: kt.sheetPermissionUserListEmptyText, children: t.t("permission.dialog.userEmpty") })
|
|
20951
20976
|
] }) }),
|
|
20952
|
-
/* @__PURE__ */
|
|
20977
|
+
/* @__PURE__ */ w("div", { className: kt.sheetPermissionSplit }),
|
|
20953
20978
|
/* @__PURE__ */ q("div", { className: kt.sheetPermissionUserDialogFooter, children: [
|
|
20954
|
-
/* @__PURE__ */
|
|
20955
|
-
/* @__PURE__ */
|
|
20979
|
+
/* @__PURE__ */ w(pn, { className: kt.sheetPermissionUserDialogButton, onClick: () => n.close(tl), children: t.t("permission.button.cancel") }),
|
|
20980
|
+
/* @__PURE__ */ w(
|
|
20956
20981
|
pn,
|
|
20957
20982
|
{
|
|
20958
20983
|
type: "primary",
|
|
@@ -20972,9 +20997,9 @@ const lp = (r, e, t, n, i) => {
|
|
|
20972
20997
|
}, nM = ({ errorMsg: r }) => {
|
|
20973
20998
|
const e = L(He), t = L(Ei);
|
|
20974
20999
|
return /* @__PURE__ */ q("div", { className: oc.sheetPermissionAlertDialog, children: [
|
|
20975
|
-
/* @__PURE__ */
|
|
20976
|
-
/* @__PURE__ */
|
|
20977
|
-
/* @__PURE__ */
|
|
21000
|
+
/* @__PURE__ */ w("h1", { className: oc.sheetPermissionAlertDialogTitle, children: e.t("permission.dialog.alert") }),
|
|
21001
|
+
/* @__PURE__ */ w("p", { children: r || e.t("permission.dialog.alertContent") }),
|
|
21002
|
+
/* @__PURE__ */ w("div", { className: oc.sheetPermissionAlertDialogButton, children: /* @__PURE__ */ w(
|
|
20978
21003
|
pn,
|
|
20979
21004
|
{
|
|
20980
21005
|
type: "primary",
|
|
@@ -20989,9 +21014,9 @@ const lp = (r, e, t, n, i) => {
|
|
|
20989
21014
|
class hp extends Kh {
|
|
20990
21015
|
constructor() {
|
|
20991
21016
|
super();
|
|
20992
|
-
|
|
20993
|
-
|
|
20994
|
-
|
|
21017
|
+
_(this, "_pattern", null);
|
|
21018
|
+
_(this, "_img", new Image());
|
|
21019
|
+
_(this, "renderCache", /* @__PURE__ */ new Set());
|
|
20995
21020
|
this._img.src = cp;
|
|
20996
21021
|
}
|
|
20997
21022
|
clearCache() {
|
|
@@ -21019,8 +21044,8 @@ class hp extends Kh {
|
|
|
21019
21044
|
class oM extends hp {
|
|
21020
21045
|
constructor() {
|
|
21021
21046
|
super();
|
|
21022
|
-
|
|
21023
|
-
|
|
21047
|
+
_(this, "uKey", dp);
|
|
21048
|
+
_(this, "Z_INDEX", rM);
|
|
21024
21049
|
}
|
|
21025
21050
|
shouldRender(t) {
|
|
21026
21051
|
return (t == null ? void 0 : t[ge.View]) !== !1;
|
|
@@ -21029,8 +21054,8 @@ class oM extends hp {
|
|
|
21029
21054
|
class sM extends hp {
|
|
21030
21055
|
constructor() {
|
|
21031
21056
|
super();
|
|
21032
|
-
|
|
21033
|
-
|
|
21057
|
+
_(this, "uKey", up);
|
|
21058
|
+
_(this, "Z_INDEX", iM);
|
|
21034
21059
|
}
|
|
21035
21060
|
shouldRender(t) {
|
|
21036
21061
|
return (t == null ? void 0 : t[ge.View]) === !1;
|
|
@@ -21040,10 +21065,10 @@ const gp = "worksheet-protection", xh = 25, lM = 80;
|
|
|
21040
21065
|
class aM extends Kh {
|
|
21041
21066
|
constructor() {
|
|
21042
21067
|
super();
|
|
21043
|
-
|
|
21044
|
-
|
|
21045
|
-
|
|
21046
|
-
|
|
21068
|
+
_(this, "uKey", gp);
|
|
21069
|
+
_(this, "Z_INDEX", xh);
|
|
21070
|
+
_(this, "_pattern");
|
|
21071
|
+
_(this, "_img", new Image());
|
|
21047
21072
|
this._img.src = cp;
|
|
21048
21073
|
}
|
|
21049
21074
|
draw(t, n, i) {
|
|
@@ -21095,30 +21120,30 @@ const cM = (r) => {
|
|
|
21095
21120
|
C.length > 0 && t(cn.DesignedUserCanEdit), c.setSelectUserList(C), c.setOldCollaboratorList(C);
|
|
21096
21121
|
})() : (c.setSelectUserList([]), c.setOldCollaboratorList([]));
|
|
21097
21122
|
}, []), /* @__PURE__ */ q(Mr, { children: [
|
|
21098
|
-
/* @__PURE__ */
|
|
21123
|
+
/* @__PURE__ */ w(Ls, { className: st.sheetPermissionPanelTitle, label: s.t("permission.panel.editPermission"), children: /* @__PURE__ */ q(
|
|
21099
21124
|
Mc,
|
|
21100
21125
|
{
|
|
21101
21126
|
value: e,
|
|
21102
21127
|
onChange: (S) => t(S),
|
|
21103
21128
|
className: st.radioGroupVertical,
|
|
21104
21129
|
children: [
|
|
21105
|
-
/* @__PURE__ */
|
|
21106
|
-
/* @__PURE__ */
|
|
21130
|
+
/* @__PURE__ */ w(ei, { value: cn.OnlyMe, children: /* @__PURE__ */ w("span", { className: st.text, children: s.t("permission.panel.onlyICanEdit") }) }),
|
|
21131
|
+
/* @__PURE__ */ w(ei, { value: cn.DesignedUserCanEdit, children: /* @__PURE__ */ w("span", { className: st.text, children: s.t("permission.panel.designedUserCanEdit") }) })
|
|
21107
21132
|
]
|
|
21108
21133
|
}
|
|
21109
21134
|
) }),
|
|
21110
21135
|
e === cn.DesignedUserCanEdit && /* @__PURE__ */ q("div", { className: st.sheetPermissionDesignPersonPanel, children: [
|
|
21111
21136
|
/* @__PURE__ */ q("div", { className: st.sheetPermissionDesignPersonPanelHeader, children: [
|
|
21112
|
-
/* @__PURE__ */
|
|
21113
|
-
/* @__PURE__ */
|
|
21137
|
+
/* @__PURE__ */ w("span", { children: s.t("permission.panel.designedPerson") }),
|
|
21138
|
+
/* @__PURE__ */ w("span", { className: st.sheetPermissionDesignPersonPanelHeaderAdd, onClick: p, children: s.t("permission.panel.addPerson") })
|
|
21114
21139
|
] }),
|
|
21115
|
-
/* @__PURE__ */
|
|
21116
|
-
/* @__PURE__ */
|
|
21140
|
+
/* @__PURE__ */ w("div", { className: st.sheetPermissionDesignPersonPanelSplit }),
|
|
21141
|
+
/* @__PURE__ */ w("div", { className: st.sheetPermissionDesignPersonPanelContent, children: (h == null ? void 0 : h.length) > 0 ? h.map((S) => {
|
|
21117
21142
|
var v, C, b;
|
|
21118
21143
|
return /* @__PURE__ */ q("div", { className: st.sheetPermissionDesignPersonPanelContentItem, children: [
|
|
21119
|
-
/* @__PURE__ */
|
|
21120
|
-
/* @__PURE__ */
|
|
21121
|
-
/* @__PURE__ */
|
|
21144
|
+
/* @__PURE__ */ w(Hd, { size: 24, src: (v = S.subject) == null ? void 0 : v.avatar }),
|
|
21145
|
+
/* @__PURE__ */ w("span", { className: st.sheetPermissionDesignPersonPanelContentItemName, children: (C = S.subject) == null ? void 0 : C.name }),
|
|
21146
|
+
/* @__PURE__ */ w(
|
|
21122
21147
|
nm,
|
|
21123
21148
|
{
|
|
21124
21149
|
className: st.sheetPermissionDesignPersonPanelContentItemSelect,
|
|
@@ -21137,19 +21162,19 @@ const cM = (r) => {
|
|
|
21137
21162
|
)
|
|
21138
21163
|
] }, (b = S.subject) == null ? void 0 : b.userID);
|
|
21139
21164
|
}) : /* @__PURE__ */ q("div", { className: st.sheetPermissionUserListEmpty, children: [
|
|
21140
|
-
/* @__PURE__ */
|
|
21141
|
-
/* @__PURE__ */
|
|
21165
|
+
/* @__PURE__ */ w("img", { width: 240, height: 120, src: ap, alt: "" }),
|
|
21166
|
+
/* @__PURE__ */ w("p", { className: st.sheetPermissionUserListEmptyText, children: s.t("permission.dialog.userEmpty") })
|
|
21142
21167
|
] }) })
|
|
21143
21168
|
] }),
|
|
21144
|
-
/* @__PURE__ */
|
|
21169
|
+
/* @__PURE__ */ w(Ls, { className: st.sheetPermissionPanelTitle, label: s.t("permission.panel.viewPermission"), children: /* @__PURE__ */ q(
|
|
21145
21170
|
Mc,
|
|
21146
21171
|
{
|
|
21147
21172
|
value: n,
|
|
21148
21173
|
onChange: (S) => i(S),
|
|
21149
21174
|
className: st.radioGroupVertical,
|
|
21150
21175
|
children: [
|
|
21151
|
-
/* @__PURE__ */
|
|
21152
|
-
/* @__PURE__ */
|
|
21176
|
+
/* @__PURE__ */ w(ei, { value: mi.OthersCanView, children: /* @__PURE__ */ w("span", { className: st.text, children: s.t("permission.panel.othersCanView") }) }),
|
|
21177
|
+
/* @__PURE__ */ w(ei, { value: mi.NoOneElseCanView, children: /* @__PURE__ */ w("span", { className: st.text, children: s.t("permission.panel.noOneElseCanView") }) })
|
|
21153
21178
|
]
|
|
21154
21179
|
}
|
|
21155
21180
|
) })
|
|
@@ -21200,8 +21225,8 @@ let ml = class extends ae {
|
|
|
21200
21225
|
constructor(e, t, n, i, o) {
|
|
21201
21226
|
var l;
|
|
21202
21227
|
super();
|
|
21203
|
-
|
|
21204
|
-
|
|
21228
|
+
_(this, "_rangeProtectionCanViewRenderExtension", new oM());
|
|
21229
|
+
_(this, "_rangeProtectionCanNotViewRenderExtension", new sM());
|
|
21205
21230
|
this._context = e, this._rangeProtectionRuleModel = t, this._sheetSkeletonManagerService = n, this._permissionService = i, this._configService = o;
|
|
21206
21231
|
const s = this._configService.getConfig(Ln);
|
|
21207
21232
|
(l = s == null ? void 0 : s.customComponents) != null && l.has(af) || (this._initRender(), this._initSkeleton(), this.disposeWithMe(this._rangeProtectionRuleModel.ruleChange$.subscribe((a) => {
|
|
@@ -21235,7 +21260,7 @@ let fl = class extends ae {
|
|
|
21235
21260
|
constructor(e, t, n, i, o, s) {
|
|
21236
21261
|
var a;
|
|
21237
21262
|
super();
|
|
21238
|
-
|
|
21263
|
+
_(this, "_worksheetProtectionRenderExtension", new aM());
|
|
21239
21264
|
this._context = e, this._renderManagerService = t, this._univerInstanceService = n, this._sheetSkeletonManagerService = i, this._worksheetProtectionRuleModel = o, this._configService = s;
|
|
21240
21265
|
const l = this._configService.getConfig(Ln);
|
|
21241
21266
|
(a = l == null ? void 0 : l.customComponents) != null && a.has(af) || (this._initRender(), this._initSkeleton());
|
|
@@ -21295,7 +21320,7 @@ let pl = class extends ae {
|
|
|
21295
21320
|
}
|
|
21296
21321
|
_bindFormatPainterStatus() {
|
|
21297
21322
|
this.disposeWithMe(
|
|
21298
|
-
|
|
21323
|
+
Fe(this._formatPainterService.status$.subscribe((r) => {
|
|
21299
21324
|
const e = this._context.scene;
|
|
21300
21325
|
e && (r !== Zt.OFF ? e.setDefaultCursor(ye.CELL) : e.setDefaultCursor(ye.DEFAULT));
|
|
21301
21326
|
}))
|
|
@@ -21425,7 +21450,7 @@ let qc = class extends ae {
|
|
|
21425
21450
|
if (r == null) return;
|
|
21426
21451
|
const e = r.getViewport(U.VIEW_MAIN);
|
|
21427
21452
|
e && (this.disposeWithMe(
|
|
21428
|
-
|
|
21453
|
+
Fe(
|
|
21429
21454
|
// wheel event --> set-scroll.command('sheet.operation.set-scroll') --> scroll.operation.ts -->
|
|
21430
21455
|
// scrollManagerService.setScrollInfoAndEmitEvent ---> scrollManagerService.setScrollInfo(raw value, may be negative) &&
|
|
21431
21456
|
// _notifyCurrentScrollInfo
|
|
@@ -21500,7 +21525,7 @@ let qc = class extends ae {
|
|
|
21500
21525
|
));
|
|
21501
21526
|
}
|
|
21502
21527
|
_initSkeletonListener() {
|
|
21503
|
-
this.disposeWithMe(
|
|
21528
|
+
this.disposeWithMe(Fe(
|
|
21504
21529
|
this._sheetSkeletonManagerService.currentSkeletonBefore$.subscribe((r) => {
|
|
21505
21530
|
if (r == null)
|
|
21506
21531
|
return;
|
|
@@ -21666,7 +21691,7 @@ const vM = cr("PRINTING_RANGE"), CM = cr("PRINTING_COMPONENT_COLLECT");
|
|
|
21666
21691
|
class mp extends ae {
|
|
21667
21692
|
constructor() {
|
|
21668
21693
|
super();
|
|
21669
|
-
|
|
21694
|
+
_(this, "interceptor", new yi({
|
|
21670
21695
|
PRINTING_RANGE: vM,
|
|
21671
21696
|
PRINTING_COMPONENT_COLLECT: CM
|
|
21672
21697
|
}));
|
|
@@ -21685,12 +21710,12 @@ class bM extends Ld {
|
|
|
21685
21710
|
/**
|
|
21686
21711
|
* topLeft controlPointer, it is not visible, just transparent, for handling event.
|
|
21687
21712
|
*/
|
|
21688
|
-
|
|
21713
|
+
_(this, "_fillControlTopLeft");
|
|
21689
21714
|
/**
|
|
21690
21715
|
* bottomRight controlPointer, it is not visible, just transparent, for handling event.
|
|
21691
21716
|
*/
|
|
21692
|
-
|
|
21693
|
-
|
|
21717
|
+
_(this, "_fillControlBottomRight");
|
|
21718
|
+
_(this, "_rangeType", z.NORMAL);
|
|
21694
21719
|
this._scene = t, this._zIndex = n, this._themeService = i, this._rangeType = (o == null ? void 0 : o.rangeType) || z.NORMAL, this.initControlPoints();
|
|
21695
21720
|
}
|
|
21696
21721
|
initControlPoints() {
|
|
@@ -21841,12 +21866,12 @@ let Sl = class extends sm {
|
|
|
21841
21866
|
s,
|
|
21842
21867
|
c
|
|
21843
21868
|
);
|
|
21844
|
-
|
|
21845
|
-
|
|
21846
|
-
|
|
21847
|
-
|
|
21869
|
+
_(this, "_workbookSelections");
|
|
21870
|
+
_(this, "_renderDisposable", null);
|
|
21871
|
+
_(this, "_expandingSelection", !1);
|
|
21872
|
+
_(this, "_selectionControls", []);
|
|
21848
21873
|
// sheetID:Controls
|
|
21849
|
-
|
|
21874
|
+
_(this, "expandingControlMode", "bottom-right");
|
|
21850
21875
|
this._context = e, this._logService = l, this._commandService = a, this._contextService = c, this._scrollManagerService = d, this._workbookSelections = o.getWorkbookSelections(this._context.unitId), this._init();
|
|
21851
21876
|
}
|
|
21852
21877
|
_init() {
|
|
@@ -21916,12 +21941,12 @@ let Sl = class extends sm {
|
|
|
21916
21941
|
const h = 10;
|
|
21917
21942
|
Math.abs(d.offsetX - o.x) > h || Math.abs(d.offsetY - o.y) > h || (l(d, !1), u.stopPropagation());
|
|
21918
21943
|
});
|
|
21919
|
-
this.disposeWithMe(
|
|
21944
|
+
this.disposeWithMe(Fe(a)), this.disposeWithMe(Fe(c));
|
|
21920
21945
|
}
|
|
21921
21946
|
_initUserActionSyncListener() {
|
|
21922
21947
|
this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Yt.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Yt.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(so).pipe(Gt(!1), un()).subscribe((e) => {
|
|
21923
21948
|
var t;
|
|
21924
|
-
e ? ((t = this._renderDisposable) == null || t.dispose(), this._renderDisposable = null, this._reset()) : this._renderDisposable =
|
|
21949
|
+
e ? ((t = this._renderDisposable) == null || t.dispose(), this._renderDisposable = null, this._reset()) : this._renderDisposable = Fe(
|
|
21925
21950
|
this.selectionMoveEnd$.subscribe((n) => this._updateSelections(n, Yt.MOVE_END))
|
|
21926
21951
|
);
|
|
21927
21952
|
}));
|
|
@@ -22161,7 +22186,7 @@ let Sl = class extends sm {
|
|
|
22161
22186
|
const a = (h = this._sheetSkeletonManagerService.getCurrentParam()) == null ? void 0 : h.skeleton, c = a == null ? void 0 : a.rowTotalHeight, d = a == null ? void 0 : a.columnTotalWidth, u = l.rangeType;
|
|
22162
22187
|
u === z.COLUMN ? l.transformControlPoint(0, s, d, c) : u === z.ROW && l.transformControlPoint(o, 0, d, c);
|
|
22163
22188
|
});
|
|
22164
|
-
this.disposeWithMe(
|
|
22189
|
+
this.disposeWithMe(Fe(n));
|
|
22165
22190
|
}
|
|
22166
22191
|
};
|
|
22167
22192
|
Sl = wM([
|
|
@@ -22285,7 +22310,7 @@ var EM = Object.getOwnPropertyDescriptor, PM = (r, e, t, n) => {
|
|
|
22285
22310
|
let Cl = class extends ae {
|
|
22286
22311
|
constructor(e, t, n, i) {
|
|
22287
22312
|
super();
|
|
22288
|
-
|
|
22313
|
+
_(this, "_isPointer", !1);
|
|
22289
22314
|
this._hoverManagerService = e, this._instanceService = t, this._commandService = n, this._renderManagerService = i, this._initPointerEvent(), this._initHover();
|
|
22290
22315
|
}
|
|
22291
22316
|
get _mainComponent() {
|
|
@@ -22408,8 +22433,8 @@ var xM = Object.getOwnPropertyDescriptor, AM = (r, e, t, n) => {
|
|
|
22408
22433
|
let Ho = class extends Un {
|
|
22409
22434
|
constructor(e, t, n, i, o, s, l, a, c) {
|
|
22410
22435
|
super();
|
|
22411
|
-
|
|
22412
|
-
|
|
22436
|
+
_(this, "_loadedMap", /* @__PURE__ */ new WeakSet());
|
|
22437
|
+
_(this, "_scheduledCallback", -1);
|
|
22413
22438
|
this._univerInstanceService = e, this._renderManagerService = t, this._editorBridgeService = n, this._commandService = i, this._contextService = o, this._formulaEditorManagerService = s, this._undoRedoService = l, this._textSelectionManagerService = a, this._editorService = c, this._initialize();
|
|
22414
22439
|
}
|
|
22415
22440
|
_initialize() {
|
|
@@ -22831,13 +22856,13 @@ var LM = Object.getOwnPropertyDescriptor, WM = (r, e, t, n) => {
|
|
|
22831
22856
|
let Qc = class extends ae {
|
|
22832
22857
|
constructor(e, t, n, i) {
|
|
22833
22858
|
super();
|
|
22834
|
-
|
|
22859
|
+
_(this, "_initialize", () => {
|
|
22835
22860
|
const e = new _t();
|
|
22836
22861
|
this.disposeWithMe(
|
|
22837
22862
|
this._selectionManagerService.selectionMoveEnd$.subscribe(() => {
|
|
22838
22863
|
e.dispose(), this._selectionRenderService.getSelectionControls().forEach((n) => {
|
|
22839
22864
|
e.add(
|
|
22840
|
-
|
|
22865
|
+
Fe(
|
|
22841
22866
|
n.selectionMoveEnd$.subscribe((i) => {
|
|
22842
22867
|
if (!i)
|
|
22843
22868
|
return;
|
|
@@ -22904,7 +22929,7 @@ let Kc = class extends ae {
|
|
|
22904
22929
|
}
|
|
22905
22930
|
_initialize() {
|
|
22906
22931
|
this.disposeWithMe(
|
|
22907
|
-
|
|
22932
|
+
Fe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe((r) => {
|
|
22908
22933
|
if (!(r != null && r.unitId) || !this._sheetClipboardService.getPasteMenuVisible())
|
|
22909
22934
|
return;
|
|
22910
22935
|
const e = this._sheetClipboardService.getPasteOptionsCache(), t = e == null ? void 0 : e.target.unitId;
|
|
@@ -22976,7 +23001,7 @@ var ZM = Object.getOwnPropertyDescriptor, GM = (r, e, t, n) => {
|
|
|
22976
23001
|
let $c = class extends Un {
|
|
22977
23002
|
constructor(e, t, n, i, o, s, l, a, c, d) {
|
|
22978
23003
|
super();
|
|
22979
|
-
|
|
23004
|
+
_(this, "_d");
|
|
22980
23005
|
this._context = e, this._instanceSrv = t, this._commandService = n, this._editorBridgeService = i, this._selectionManagerService = o, this._rangeSelectorService = s, this._contextService = l, this._renderManagerService = a, this._editorService = c, this._sheetSkeletonManagerService = d, this.disposeWithMe(this._instanceSrv.getCurrentTypeOfUnit$(x.UNIVER_SHEET).subscribe((u) => {
|
|
22981
23006
|
u && u.getUnitId() === this._context.unitId ? this._d = this._init() : this._disposeCurrent();
|
|
22982
23007
|
})), this._initialRangeSelector();
|
|
@@ -23052,7 +23077,7 @@ let $c = class extends Un {
|
|
|
23052
23077
|
let t = null;
|
|
23053
23078
|
const n = (o) => {
|
|
23054
23079
|
const s = o.with(_r);
|
|
23055
|
-
s && (t =
|
|
23080
|
+
s && (t = Fe(s.onInputBefore$.subscribe((l) => {
|
|
23056
23081
|
if (!this._isCurrentSheetFocused())
|
|
23057
23082
|
return;
|
|
23058
23083
|
const a = this._contextService.getContextValue(At), c = this._contextService.getContextValue(Ht), d = o.unitId;
|
|
@@ -23152,9 +23177,9 @@ const qM = "rgba(0, 0, 0, 0.15)", Pn = "rgb(0, 0, 0)", fs = "rgb(255, 255, 255,
|
|
|
23152
23177
|
class QM extends pd {
|
|
23153
23178
|
constructor(t, n) {
|
|
23154
23179
|
super(t, n);
|
|
23155
|
-
|
|
23156
|
-
|
|
23157
|
-
|
|
23180
|
+
_(this, "_size", 12);
|
|
23181
|
+
_(this, "_iconRatio", 0.4);
|
|
23182
|
+
_(this, "_mode", 0);
|
|
23158
23183
|
this.setShapeProps(n);
|
|
23159
23184
|
}
|
|
23160
23185
|
setShapeProps(t) {
|
|
@@ -23194,17 +23219,17 @@ const $M = "__SpreadsheetHeaderMenuSHAPEControllerShape__", eE = "__SpreadsheetH
|
|
|
23194
23219
|
let td = class extends ae {
|
|
23195
23220
|
constructor(e, t, n, i, o) {
|
|
23196
23221
|
super();
|
|
23197
|
-
|
|
23198
|
-
|
|
23199
|
-
|
|
23222
|
+
_(this, "_hoverRect");
|
|
23223
|
+
_(this, "_hoverMenu");
|
|
23224
|
+
_(this, "_currentColumn", Number.POSITIVE_INFINITY);
|
|
23200
23225
|
// private _rowHeaderPointerMoveSub: Subscription;
|
|
23201
23226
|
// private _colHeaderPointerMoveSub: Subscription;
|
|
23202
23227
|
// private _rowHeaderPointerLeaveSub: Subscription;
|
|
23203
23228
|
// private _colHeaderPointerLeaveSub: Subscription;
|
|
23204
23229
|
// private _rowHeaderPointerEnterSub: Subscription;
|
|
23205
23230
|
// private _colHeaderPointerEnterSub: Subscription;
|
|
23206
|
-
|
|
23207
|
-
|
|
23231
|
+
_(this, "_headerPointerSubs");
|
|
23232
|
+
_(this, "_colHeaderPointerSubs");
|
|
23208
23233
|
this._context = e, this._sheetSkeletonManagerService = t, this._contextMenuService = n, this._commandService = i, this._selectionManagerService = o, this._initialize();
|
|
23209
23234
|
}
|
|
23210
23235
|
dispose() {
|
|
@@ -23341,12 +23366,12 @@ const Ki = 12, nE = 0.4;
|
|
|
23341
23366
|
class Ah extends pd {
|
|
23342
23367
|
constructor(t, n, i) {
|
|
23343
23368
|
super(t, n);
|
|
23344
|
-
|
|
23345
|
-
|
|
23346
|
-
|
|
23347
|
-
|
|
23348
|
-
|
|
23349
|
-
|
|
23369
|
+
_(this, "_size", Ki);
|
|
23370
|
+
_(this, "_iconRatio", nE);
|
|
23371
|
+
_(this, "_hovered", !0);
|
|
23372
|
+
_(this, "_hasPrevious", !0);
|
|
23373
|
+
_(this, "_hasNext", !0);
|
|
23374
|
+
_(this, "_unhideType");
|
|
23350
23375
|
n && this.setShapeProps(n), this.onPointerEnter$.subscribeEvent(() => this.setShapeProps({ hovered: !0 })), this.onPointerLeave$.subscribeEvent(() => this.setShapeProps({ hovered: !1 })), this.onPointerDown$.subscribeEvent(() => i == null ? void 0 : i());
|
|
23351
23376
|
}
|
|
23352
23377
|
setShapeProps(t) {
|
|
@@ -23444,7 +23469,7 @@ const kh = "__SpreadsheetHeaderUnhideSHAPEControllerShape__";
|
|
|
23444
23469
|
let rd = class extends Un {
|
|
23445
23470
|
constructor(e, t, n) {
|
|
23446
23471
|
super();
|
|
23447
|
-
|
|
23472
|
+
_(this, "_shapes", { cols: [], rows: [] });
|
|
23448
23473
|
this._context = e, this._sheetSkeletonManagerService = t, this._commandService = n, this._init();
|
|
23449
23474
|
}
|
|
23450
23475
|
get _workbook() {
|
|
@@ -23578,8 +23603,8 @@ let od = class extends sm {
|
|
|
23578
23603
|
s,
|
|
23579
23604
|
c
|
|
23580
23605
|
);
|
|
23581
|
-
|
|
23582
|
-
|
|
23606
|
+
_(this, "_workbookSelections");
|
|
23607
|
+
_(this, "_renderDisposable", null);
|
|
23583
23608
|
this._context = e, this._logService = l, this._commandService = a, this._contextService = c, this._workbookSelections = o.getWorkbookSelections(this._context.unitId), this._init();
|
|
23584
23609
|
}
|
|
23585
23610
|
_init() {
|
|
@@ -23662,7 +23687,7 @@ let od = class extends sm {
|
|
|
23662
23687
|
e && this._reset();
|
|
23663
23688
|
})), this.disposeWithMe(this._contextService.subscribeContextValue$($r).pipe(Gt(!0), un()).subscribe((e) => {
|
|
23664
23689
|
var t;
|
|
23665
|
-
e ? this._renderDisposable =
|
|
23690
|
+
e ? this._renderDisposable = Fe(
|
|
23666
23691
|
this.selectionMoveEnd$.subscribe((n) => {
|
|
23667
23692
|
this._updateSelections(n, Yt.MOVE_END);
|
|
23668
23693
|
})
|