@univerjs/docs-ui 0.10.10-experimental.20251010-3f807c5 → 0.10.10-experimental.20251016-33b0941
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +2 -2
- package/lib/es/index.js +305 -304
- package/lib/index.js +305 -304
- package/lib/types/controllers/doc-header-footer.controller.d.ts +1 -0
- package/lib/types/controllers/render-controllers/doc-editor-bridge.controller.d.ts +0 -1
- package/lib/umd/index.js +2 -2
- package/package.json +11 -11
package/lib/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var Mc = Object.defineProperty;
|
|
2
2
|
var _c = (n, e, t) => e in n ? Mc(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var O = (n, e, t) => _c(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { IUniverInstanceService as L, Inject as j, Disposable as me, toDisposable as _n, UniverInstanceType as _, BuildTextUtils as ce, JSONX as W, ObjectRelativeFromV as ft, ObjectRelativeFromH as
|
|
4
|
+
import { IUniverInstanceService as L, Inject as j, Disposable as me, toDisposable as _n, UniverInstanceType as _, BuildTextUtils as ce, JSONX as W, ObjectRelativeFromV as ft, ObjectRelativeFromH as Ro, CommandType as D, sequenceExecuteAsync as Nr, ICommandService as T, DataStreamTreeTokenType as V, TextX as Ie, TextXActionType as G, PresetListType as ye, UpdateDocsAttributeType as on, Tools as ue, generateRandomId as ge, TableRowHeightRule as Dc, TableSizeType as Yi, TableTextWrapType as wc, TableAlignmentType as Pc, MemoryCursor as Nt, SHEET_EDITOR_UNITS as In, PositionedObjectLayoutType as bo, BlockType as Nc, LRUMap as Lc, BaselineOffset as Ve, BooleanNumber as z, ColorKit as Us, DrawingTypeEnum as Lr, skipParseTagNames as Qc, CustomRangeType as Qr, DataStreamTreeNodeType as an, createIdentifier as Ki, ILogService as Ur, SliceBodyType as ar, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as yo, DOC_RANGE_TYPE as He, normalizeBody as Uc, getBodySlice as qi, FOCUSING_DOC as Dn, EDITOR_ACTIVATED as to, DashStyleType as Fc, RxDisposable as Rt, ThemeService as Fr, IUndoRedoService as xo, PRESET_LIST_TYPE as Hc, HorizontalAlign as Ue, NamedStyleType as K, RANGE_DIRECTION as De, COLORS as fn, Rectangle as kc, DocumentFlavor as Pe, LocaleService as Ke, isInternalEditorID as bt, IContextService as Hr, Injector as wn, FOCUSING_EDITOR_STANDALONE as Fs, VerticalAlign as Vc, DEFAULT_EMPTY_DOCUMENT_VALUE as Xi, PageOrientType as Wc, PAPER_TYPES as jc, PAGE_SIZE as cr, DOCS_ZEN_EDITOR_UNIT_ID_KEY as ot, DEFAULT_STYLES as Oo, NAMED_STYLE_MAP as zc, DisposableCollection as Sn, fromEventSubject as _t, deepCompare as Gc, FOCUSING_UNIVER_EDITOR as kr, FOCUSING_COMMON_DRAWINGS as Zi, getPlainText as no, debounce as Vr, SpacingRule as Xt, IConfigService as Wr, QuickListTypeMap as zo, Direction as le, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Yc, checkForSubstrings as Kc, createInterceptorKey as Ji, InterceptorManager as qc, UndoCommandId as Hs, RedoCommandId as ks, DependentOn as Xc, Plugin as Zc, merge as Jc, touchDependencies as Vs, mergeOverrideWithDependencies as $c, createInternalEditorID as el } from "@univerjs/core";
|
|
5
5
|
import { DocSelectionManagerService as Y, RichTextEditingMutation as X, DocSkeletonManagerService as de, SetTextSelectionsOperation as Le, DocStateEmitService as tl, DocInterceptorService as nl } from "@univerjs/docs";
|
|
6
|
-
import { IRenderManagerService as pe, DocumentEditArea as ve, hasListGlyph as ol, isIndentByGlyph as rl, isFirstGlyph as sl, getParagraphByGlyph as il, pixelToPt as al, ptToPixel as Ws, parseDataStreamToTree as cl, Liquid as $i, GlyphType as ea, DocumentSkeletonPageType as Oe, getPageFromPath as lr, getTableIdAndSliceIndex as js, NORMAL_TEXT_SELECTION_PLUGIN_STYLE as vn, getColor as pn, RegularPolygon as ta, Rect as
|
|
7
|
-
import { IClipboardInterfaceService as sa, FILE_PNG_CLIPBOARD_MIME_TYPE as Sl, FILE__WEBP_CLIPBOARD_MIME_TYPE as vl, FILE__JPEG_CLIPBOARD_MIME_TYPE as Cl, FILE__BMP_CLIPBOARD_MIME_TYPE as Rl, HTML_CLIPBOARD_MIME_TYPE as ia, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as aa, CopyCommand as bl, CutCommand as yl, PasteCommand as xl, ILayoutService as To, KeyCode as q, IConfirmService as ca, useDependency as J, ComponentManager as sn, ISidebarService as la, getMenuHiddenObservable as se, MenuItemType as Z, COLOR_PICKER_COMPONENT as da, FONT_FAMILY_LIST as Ol, FONT_FAMILY_COMPONENT as Tl, FONT_FAMILY_ITEM_COMPONENT as Bl, FONT_SIZE_LIST as Ml, FONT_SIZE_COMPONENT as _l, HEADING_LIST as Ys, COMMON_LABEL_COMPONENT as Dl, HEADING_ITEM_COMPONENT as wl, ICanvasPopupService as Pl, IMenuManagerService as Aa, ToolbarItem as Nl, MenuManagerPosition as Ll, useObservable as tt, RectPopup as Ql, DesktopMenu as Ul, ContextMenuPosition as
|
|
6
|
+
import { IRenderManagerService as pe, DocumentEditArea as ve, hasListGlyph as ol, isIndentByGlyph as rl, isFirstGlyph as sl, getParagraphByGlyph as il, pixelToPt as al, ptToPixel as Ws, parseDataStreamToTree as cl, Liquid as $i, GlyphType as ea, DocumentSkeletonPageType as Oe, getPageFromPath as lr, getTableIdAndSliceIndex as js, NORMAL_TEXT_SELECTION_PLUGIN_STYLE as vn, getColor as pn, RegularPolygon as ta, Rect as qn, getOffsetRectForDom as ll, ScrollTimer as dl, CURSOR_TYPE as Dt, getSystemHighlightColor as Al, Vector2 as Cn, PageLayoutType as Rn, Shape as ul, Path as zs, pxToNum as na, TRANSFORM_CHANGE_OBSERVABLE_TYPE as oa, getNumberUnitValue as rn, Viewport as hl, ScrollBar as dr, Layer as Gs, Documents as gl, DocBackground as fl, getLastLine as pl, lineIterator as ml, getLastColumn as El, UniverRenderEnginePlugin as Il, DeviceInputEventType as ra } from "@univerjs/engine-render";
|
|
7
|
+
import { IClipboardInterfaceService as sa, FILE_PNG_CLIPBOARD_MIME_TYPE as Sl, FILE__WEBP_CLIPBOARD_MIME_TYPE as vl, FILE__JPEG_CLIPBOARD_MIME_TYPE as Cl, FILE__BMP_CLIPBOARD_MIME_TYPE as Rl, HTML_CLIPBOARD_MIME_TYPE as ia, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as aa, CopyCommand as bl, CutCommand as yl, PasteCommand as xl, ILayoutService as To, KeyCode as q, IConfirmService as ca, useDependency as J, ComponentManager as sn, ISidebarService as la, getMenuHiddenObservable as se, MenuItemType as Z, COLOR_PICKER_COMPONENT as da, FONT_FAMILY_LIST as Ol, FONT_FAMILY_COMPONENT as Tl, FONT_FAMILY_ITEM_COMPONENT as Bl, FONT_SIZE_LIST as Ml, FONT_SIZE_COMPONENT as _l, HEADING_LIST as Ys, COMMON_LABEL_COMPONENT as Dl, HEADING_ITEM_COMPONENT as wl, ICanvasPopupService as Pl, IMenuManagerService as Aa, ToolbarItem as Nl, MenuManagerPosition as Ll, useObservable as tt, RectPopup as Ql, DesktopMenu as Ul, ContextMenuPosition as oo, MetaKeys as te, Slider as Fl, useConfigValue as ua, useEvent as En, ContextMenuGroup as cn, RibbonInsertGroup as Hl, RibbonStartGroup as Ks, IUIPartsService as kl, IShortcutService as Bo, BuiltInUIPart as qs, connectInjector as Xs, imageMimeTypeSet as Vl, IContextMenuService as Wl } from "@univerjs/ui";
|
|
8
8
|
import { ImageSourceType as jr } from "@univerjs/drawing";
|
|
9
|
-
import { Subject as be, BehaviorSubject as Fe, merge as ha, filter as
|
|
9
|
+
import { Subject as be, BehaviorSubject as Fe, merge as ha, filter as ro, takeUntil as pt, fromEvent as ze, Observable as fe, map as Pn, combineLatest as Nn, distinctUntilChanged as Wt, throttleTime as bn, switchMap as jl, take as zl, first as Gl, of as Yl, animationFrameScheduler as Kl } from "rxjs";
|
|
10
10
|
import { filter as Ar, bufferTime as ql, map as Xl } from "rxjs/operators";
|
|
11
11
|
import { jsxs as re, jsx as Q, Fragment as Zl } from "react/jsx-runtime";
|
|
12
12
|
import { forwardRef as Te, useRef as ke, createElement as Be, useState as Ee, useEffect as Ce, useMemo as _e, useCallback as ga, useImperativeHandle as Jl, useLayoutEffect as fa } from "react";
|
|
13
|
-
import { Checkbox as Zs, InputNumber as at, Button as $l, clsx as Ge, borderClassName as
|
|
13
|
+
import { Checkbox as Zs, InputNumber as at, Button as $l, clsx as Ge, borderClassName as Ln, Select as pa, scrollbarClassName as ed, Tooltip as td } from "@univerjs/design";
|
|
14
14
|
var nd = Object.getOwnPropertyDescriptor, od = (n, e, t, o) => {
|
|
15
15
|
for (var r = o > 1 ? void 0 : o ? nd(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
16
16
|
(i = n[s]) && (r = i(r) || r);
|
|
@@ -240,7 +240,7 @@ function $f(n, e = 0, t = 0) {
|
|
|
240
240
|
height: n.height
|
|
241
241
|
},
|
|
242
242
|
positionH: {
|
|
243
|
-
relativeFrom:
|
|
243
|
+
relativeFrom: Ro.MARGIN,
|
|
244
244
|
posOffset: (n.left || 0) - e
|
|
245
245
|
},
|
|
246
246
|
positionV: {
|
|
@@ -277,7 +277,7 @@ var hd = Object.getOwnPropertyDescriptor, gd = (n, e, t, o) => {
|
|
|
277
277
|
(i = n[s]) && (r = i(r) || r);
|
|
278
278
|
return r;
|
|
279
279
|
}, Yo = (n, e) => (t, o) => e(t, o, n);
|
|
280
|
-
const fd = 11, pd = 9,
|
|
280
|
+
const fd = 11, pd = 9, Vn = {
|
|
281
281
|
/**
|
|
282
282
|
* fontFamily
|
|
283
283
|
*/
|
|
@@ -311,15 +311,15 @@ let ct = class extends me {
|
|
|
311
311
|
const e = this._univerInstanceService.getCurrentUnitForType(_.UNIVER_DOC);
|
|
312
312
|
if (e == null)
|
|
313
313
|
return {
|
|
314
|
-
...
|
|
314
|
+
...Vn
|
|
315
315
|
};
|
|
316
316
|
const t = e == null ? void 0 : e.getUnitId(), o = (i = this._renderManagerService.getRenderById(t)) == null ? void 0 : i.with(de), r = o == null ? void 0 : o.getViewModel();
|
|
317
317
|
return r == null ? {
|
|
318
|
-
...
|
|
318
|
+
...Vn
|
|
319
319
|
} : r.getEditArea() === ve.BODY ? {
|
|
320
|
-
...
|
|
320
|
+
...Vn
|
|
321
321
|
} : {
|
|
322
|
-
...
|
|
322
|
+
...Vn,
|
|
323
323
|
fs: pd
|
|
324
324
|
};
|
|
325
325
|
}
|
|
@@ -552,7 +552,7 @@ function Ea(n, e, t) {
|
|
|
552
552
|
textWrap: wc.NONE,
|
|
553
553
|
position: {
|
|
554
554
|
positionH: {
|
|
555
|
-
relativeFrom:
|
|
555
|
+
relativeFrom: Ro.PAGE,
|
|
556
556
|
posOffset: 0
|
|
557
557
|
},
|
|
558
558
|
positionV: {
|
|
@@ -588,7 +588,7 @@ function Ea(n, e, t) {
|
|
|
588
588
|
}
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function Qn(n, e) {
|
|
592
592
|
if (!n && !e)
|
|
593
593
|
return null;
|
|
594
594
|
if (e && e.length > 0) {
|
|
@@ -1267,7 +1267,7 @@ const Dd = "doc.command.insert-text", Ca = {
|
|
|
1267
1267
|
return A.params.actions = u.editOp(h.serialize(), p), !!c.syncExecuteCommand(A.id, A.params);
|
|
1268
1268
|
}
|
|
1269
1269
|
};
|
|
1270
|
-
function
|
|
1270
|
+
function Un(n) {
|
|
1271
1271
|
var i, a, c, d;
|
|
1272
1272
|
const e = n.get(L), o = n.get(Y).getActiveTextRange(), r = e.getCurrentUnitOfType(_.UNIVER_DOC);
|
|
1273
1273
|
return !o || !o.collapsed || !r || o.segmentId ? !1 : ce.range.getParagraphsInRange(o, (a = (i = r.getBody()) == null ? void 0 : i.paragraphs) != null ? a : [], (d = (c = r.getBody()) == null ? void 0 : c.dataStream) != null ? d : "")[0];
|
|
@@ -1539,7 +1539,7 @@ const wo = {
|
|
|
1539
1539
|
if (P == null)
|
|
1540
1540
|
return !0;
|
|
1541
1541
|
const N = (F = (w = s.getBody()) == null ? void 0 : w.customBlocks) == null ? void 0 : F.find(($) => $.blockId === b.drawingId);
|
|
1542
|
-
if (P.layoutType ===
|
|
1542
|
+
if (P.layoutType === bo.INLINE || (N == null ? void 0 : N.blockType) === Nc.CUSTOM) {
|
|
1543
1543
|
const $ = s.getUnitId();
|
|
1544
1544
|
r = await o.executeCommand(Jr.id, {
|
|
1545
1545
|
direction: Ne.LEFT,
|
|
@@ -1634,7 +1634,7 @@ const wo = {
|
|
|
1634
1634
|
const b = (v = o.getSnapshot().drawings) == null ? void 0 : v[(S = R.drawingId) != null ? S : ""];
|
|
1635
1635
|
if (b == null)
|
|
1636
1636
|
return !0;
|
|
1637
|
-
if (b.layoutType ===
|
|
1637
|
+
if (b.layoutType === bo.INLINE) {
|
|
1638
1638
|
const C = o.getUnitId();
|
|
1639
1639
|
I = await s.executeCommand(Jr.id, {
|
|
1640
1640
|
direction: Ne.RIGHT,
|
|
@@ -1715,7 +1715,7 @@ const ts = {
|
|
|
1715
1715
|
const e = n.get(L), t = n.get(T), o = e.getCurrentUnitOfType(_.UNIVER_DOC);
|
|
1716
1716
|
if (!o)
|
|
1717
1717
|
return !1;
|
|
1718
|
-
const r = (l = (d = o.getBody()) == null ? void 0 : d.dataStream) != null ? l : "", s =
|
|
1718
|
+
const r = (l = (d = o.getBody()) == null ? void 0 : d.dataStream) != null ? l : "", s = Un(n);
|
|
1719
1719
|
if (!s)
|
|
1720
1720
|
return !1;
|
|
1721
1721
|
const i = ce.selection.delete(
|
|
@@ -1853,7 +1853,7 @@ function ti(n, e) {
|
|
|
1853
1853
|
const t = n.tagName.toLowerCase();
|
|
1854
1854
|
return typeof e == "string" ? t === e : Array.isArray(e) ? e.some((o) => o === t) : e(n);
|
|
1855
1855
|
}
|
|
1856
|
-
const ni = 660,
|
|
1856
|
+
const ni = 660, Co = class Co {
|
|
1857
1857
|
constructor() {
|
|
1858
1858
|
O(this, "_tableCache", []);
|
|
1859
1859
|
O(this, "_styleCache", /* @__PURE__ */ new Map());
|
|
@@ -1867,7 +1867,7 @@ const ni = 660, Ro = class Ro {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
convert(e, t = {}) {
|
|
1869
1869
|
var a;
|
|
1870
|
-
const o =
|
|
1870
|
+
const o = Co._pluginList.find((c) => c.checkPasteType(e)), r = Ud(e), i = {
|
|
1871
1871
|
body: {
|
|
1872
1872
|
dataStream: "",
|
|
1873
1873
|
paragraphs: [],
|
|
@@ -1911,7 +1911,7 @@ const ni = 660, Ro = class Ro {
|
|
|
1911
1911
|
size: { width: f, height: p },
|
|
1912
1912
|
angle: 0,
|
|
1913
1913
|
positionH: {
|
|
1914
|
-
relativeFrom:
|
|
1914
|
+
relativeFrom: Ro.PAGE,
|
|
1915
1915
|
posOffset: 0
|
|
1916
1916
|
},
|
|
1917
1917
|
positionV: {
|
|
@@ -1919,7 +1919,7 @@ const ni = 660, Ro = class Ro {
|
|
|
1919
1919
|
posOffset: 0
|
|
1920
1920
|
}
|
|
1921
1921
|
},
|
|
1922
|
-
layoutType:
|
|
1922
|
+
layoutType: bo.INLINE,
|
|
1923
1923
|
drawingType: Lr.DRAWING_IMAGE,
|
|
1924
1924
|
unitId: o.id || "",
|
|
1925
1925
|
subUnitId: o.id || ""
|
|
@@ -2012,8 +2012,8 @@ ${V.TABLE_CELL_END}`;
|
|
|
2012
2012
|
}));
|
|
2013
2013
|
}
|
|
2014
2014
|
};
|
|
2015
|
-
O(
|
|
2016
|
-
let en =
|
|
2015
|
+
O(Co, "_pluginList", []);
|
|
2016
|
+
let en = Co;
|
|
2017
2017
|
const Fd = {
|
|
2018
2018
|
name: "univer-doc-paste-plugin-lark",
|
|
2019
2019
|
checkPasteType(n) {
|
|
@@ -2334,7 +2334,7 @@ let hr = class extends me {
|
|
|
2334
2334
|
if (!t && !o && r.length && (t = await this._createImagePasteHtml(r)), !t && !o)
|
|
2335
2335
|
return this._logService.warn("[DocClipboardController] html and text cannot be both empty!"), !1;
|
|
2336
2336
|
const a = this._genDocDataFromHtmlAndText(t, o, i);
|
|
2337
|
-
if (i ===
|
|
2337
|
+
if (i === yo)
|
|
2338
2338
|
if (o) {
|
|
2339
2339
|
const c = ce.transform.fromPlainText(o);
|
|
2340
2340
|
return this._paste({ body: c });
|
|
@@ -2578,7 +2578,7 @@ let hr = class extends me {
|
|
|
2578
2578
|
title: "",
|
|
2579
2579
|
source: A.source,
|
|
2580
2580
|
description: "",
|
|
2581
|
-
layoutType:
|
|
2581
|
+
layoutType: bo.INLINE,
|
|
2582
2582
|
drawingType: Lr.DRAWING_IMAGE,
|
|
2583
2583
|
transform: {
|
|
2584
2584
|
width: h,
|
|
@@ -2588,7 +2588,7 @@ let hr = class extends me {
|
|
|
2588
2588
|
docTransform: {
|
|
2589
2589
|
angle: 0,
|
|
2590
2590
|
size: { width: h, height: u },
|
|
2591
|
-
positionH: { relativeFrom:
|
|
2591
|
+
positionH: { relativeFrom: Ro.CHARACTER, posOffset: 0 },
|
|
2592
2592
|
positionV: { relativeFrom: ft.LINE, posOffset: 0 }
|
|
2593
2593
|
}
|
|
2594
2594
|
};
|
|
@@ -2603,9 +2603,9 @@ hr = Yd([
|
|
|
2603
2603
|
ln(4, j(Y))
|
|
2604
2604
|
], hr);
|
|
2605
2605
|
function Po(n) {
|
|
2606
|
-
return n.getContextValue(
|
|
2606
|
+
return n.getContextValue(Dn) || n.getContextValue(to);
|
|
2607
2607
|
}
|
|
2608
|
-
const os = 999,
|
|
2608
|
+
const os = 999, so = {
|
|
2609
2609
|
id: bl.id,
|
|
2610
2610
|
name: "doc.command.copy",
|
|
2611
2611
|
type: D.COMMAND,
|
|
@@ -2617,7 +2617,7 @@ const os = 999, io = {
|
|
|
2617
2617
|
id: "doc.command.copy-current-paragraph",
|
|
2618
2618
|
type: D.COMMAND,
|
|
2619
2619
|
handler: async (n) => {
|
|
2620
|
-
const e = n.get(Lt), t =
|
|
2620
|
+
const e = n.get(Lt), t = Un(n);
|
|
2621
2621
|
return t ? e.copy(
|
|
2622
2622
|
ar.copy,
|
|
2623
2623
|
[{
|
|
@@ -2639,7 +2639,7 @@ const os = 999, io = {
|
|
|
2639
2639
|
id: "doc.command.cut-current-paragraph",
|
|
2640
2640
|
type: D.COMMAND,
|
|
2641
2641
|
handler: async (n) => {
|
|
2642
|
-
const e = n.get(Lt), t =
|
|
2642
|
+
const e = n.get(Lt), t = Un(n);
|
|
2643
2643
|
return t ? e.cut(
|
|
2644
2644
|
[{
|
|
2645
2645
|
startOffset: t.paragraphStart,
|
|
@@ -2678,7 +2678,7 @@ const os = 999, io = {
|
|
|
2678
2678
|
id: "doc.command.insert-horizontal-line-bellow",
|
|
2679
2679
|
type: D.COMMAND,
|
|
2680
2680
|
handler: (n) => {
|
|
2681
|
-
const e = n.get(T), t =
|
|
2681
|
+
const e = n.get(T), t = Un(n);
|
|
2682
2682
|
return t ? e.syncExecuteCommand(No.id, {
|
|
2683
2683
|
insertRange: {
|
|
2684
2684
|
startOffset: t.startIndex + 1,
|
|
@@ -2972,7 +2972,7 @@ const si = "doc.command.set-inline-format-bold", Qt = {
|
|
|
2972
2972
|
t
|
|
2973
2973
|
);
|
|
2974
2974
|
}
|
|
2975
|
-
}, fi = "doc.command.reset-inline-format-text-background-color",
|
|
2975
|
+
}, fi = "doc.command.reset-inline-format-text-background-color", Fn = {
|
|
2976
2976
|
id: fi,
|
|
2977
2977
|
type: D.COMMAND,
|
|
2978
2978
|
handler: async (n, e) => {
|
|
@@ -2992,7 +2992,7 @@ const si = "doc.command.set-inline-format-bold", Qt = {
|
|
|
2992
2992
|
[tn.id]: "ff",
|
|
2993
2993
|
[Et.id]: "cl",
|
|
2994
2994
|
[It.id]: "bg",
|
|
2995
|
-
[
|
|
2995
|
+
[Fn.id]: "bg",
|
|
2996
2996
|
[yt.id]: "va",
|
|
2997
2997
|
[kt.id]: "va"
|
|
2998
2998
|
}, xt = {
|
|
@@ -3047,7 +3047,7 @@ const si = "doc.command.set-inline-format-bold", Qt = {
|
|
|
3047
3047
|
};
|
|
3048
3048
|
break;
|
|
3049
3049
|
}
|
|
3050
|
-
case
|
|
3050
|
+
case Fn.id: {
|
|
3051
3051
|
g = {
|
|
3052
3052
|
rgb: null
|
|
3053
3053
|
};
|
|
@@ -3379,7 +3379,7 @@ const Pa = {
|
|
|
3379
3379
|
};
|
|
3380
3380
|
return t.syncExecuteCommand(Pa.id, d);
|
|
3381
3381
|
}
|
|
3382
|
-
},
|
|
3382
|
+
}, Hn = {
|
|
3383
3383
|
id: "doc.command.list-operation",
|
|
3384
3384
|
type: D.COMMAND,
|
|
3385
3385
|
handler: (n, e) => {
|
|
@@ -3439,7 +3439,7 @@ const Pa = {
|
|
|
3439
3439
|
return p.params.actions = f.editOp(g.serialize(), m), !!r.syncExecuteCommand(p.id, p.params);
|
|
3440
3440
|
}
|
|
3441
3441
|
};
|
|
3442
|
-
var
|
|
3442
|
+
var Xn = /* @__PURE__ */ ((n) => (n[n.increase = 1] = "increase", n[n.decrease = -1] = "decrease", n))(Xn || {});
|
|
3443
3443
|
const fr = {
|
|
3444
3444
|
id: "doc.command.change-list-nesting-level",
|
|
3445
3445
|
type: D.COMMAND,
|
|
@@ -3477,12 +3477,12 @@ const fr = {
|
|
|
3477
3477
|
return e != null && e.value ? t.syncExecuteCommand(Qo.id, {
|
|
3478
3478
|
listType: e.value,
|
|
3479
3479
|
docRange: e.docRange
|
|
3480
|
-
}) : t.syncExecuteCommand(
|
|
3480
|
+
}) : t.syncExecuteCommand(Hn.id, {
|
|
3481
3481
|
listType: ye.BULLET_LIST,
|
|
3482
3482
|
docRange: e == null ? void 0 : e.docRange
|
|
3483
3483
|
});
|
|
3484
3484
|
}
|
|
3485
|
-
},
|
|
3485
|
+
}, io = {
|
|
3486
3486
|
id: "doc.command.check-list",
|
|
3487
3487
|
type: D.COMMAND,
|
|
3488
3488
|
handler: (n, e) => {
|
|
@@ -3490,7 +3490,7 @@ const fr = {
|
|
|
3490
3490
|
return e != null && e.value ? t.syncExecuteCommand(Qo.id, {
|
|
3491
3491
|
listType: e.value,
|
|
3492
3492
|
docRange: e.docRange
|
|
3493
|
-
}) : t.syncExecuteCommand(
|
|
3493
|
+
}) : t.syncExecuteCommand(Hn.id, {
|
|
3494
3494
|
listType: ye.CHECK_LIST,
|
|
3495
3495
|
docRange: e == null ? void 0 : e.docRange
|
|
3496
3496
|
});
|
|
@@ -3531,7 +3531,7 @@ const fr = {
|
|
|
3531
3531
|
const t = n.get(T);
|
|
3532
3532
|
return e != null && e.value ? t.syncExecuteCommand(Qo.id, {
|
|
3533
3533
|
listType: e.value
|
|
3534
|
-
}) : t.syncExecuteCommand(
|
|
3534
|
+
}) : t.syncExecuteCommand(Hn.id, {
|
|
3535
3535
|
listType: ye.ORDER_LIST
|
|
3536
3536
|
});
|
|
3537
3537
|
}
|
|
@@ -3608,7 +3608,7 @@ const fr = {
|
|
|
3608
3608
|
};
|
|
3609
3609
|
function ls(n, e) {
|
|
3610
3610
|
var l, A;
|
|
3611
|
-
const t = n.get(T), o =
|
|
3611
|
+
const t = n.get(T), o = Un(n);
|
|
3612
3612
|
if (!o)
|
|
3613
3613
|
return !1;
|
|
3614
3614
|
const r = n.get(L).getCurrentUnitOfType(_.UNIVER_DOC);
|
|
@@ -3758,7 +3758,7 @@ const ds = {
|
|
|
3758
3758
|
const o = n.get(L).getUnit(e.unitId, _.UNIVER_DOC);
|
|
3759
3759
|
return o ? (o.setZoomRatio(e.zoomRatio), !0) : !1;
|
|
3760
3760
|
}
|
|
3761
|
-
},
|
|
3761
|
+
}, Zn = {
|
|
3762
3762
|
type: D.COMMAND,
|
|
3763
3763
|
id: "doc.command.set-zoom-ratio",
|
|
3764
3764
|
handler: async (n, e) => {
|
|
@@ -3894,7 +3894,7 @@ const ds = {
|
|
|
3894
3894
|
handler: (n) => n.get(T).syncExecuteCommand(Ze.id, {
|
|
3895
3895
|
value: K.HEADING_5
|
|
3896
3896
|
})
|
|
3897
|
-
},
|
|
3897
|
+
}, ao = {
|
|
3898
3898
|
id: "doc.command.normal-text-heading",
|
|
3899
3899
|
type: D.COMMAND,
|
|
3900
3900
|
handler: (n) => n.get(T).syncExecuteCommand(Ze.id, {
|
|
@@ -3913,7 +3913,7 @@ const ds = {
|
|
|
3913
3913
|
value: K.SUBTITLE
|
|
3914
3914
|
})
|
|
3915
3915
|
};
|
|
3916
|
-
var
|
|
3916
|
+
var Jn = /* @__PURE__ */ ((n) => (n[n.page = 0] = "page", n[n.section = 1] = "section", n[n.column = 2] = "column", n[n.line = 3] = "line", n[n.divide = 4] = "divide", n[n.glyph = 5] = "glyph", n))(Jn || {});
|
|
3917
3917
|
const qt = {
|
|
3918
3918
|
page: 0,
|
|
3919
3919
|
section: 1,
|
|
@@ -4087,7 +4087,7 @@ class St {
|
|
|
4087
4087
|
_checkPreviousNodePositionState(e, t = !0) {
|
|
4088
4088
|
let o = e, r;
|
|
4089
4089
|
for (; o >= 0; ) {
|
|
4090
|
-
const s =
|
|
4090
|
+
const s = Jn[o];
|
|
4091
4091
|
let i;
|
|
4092
4092
|
if (t ? i = this._currentStartState[s] : i = this._currentEndState[s], i === void 0)
|
|
4093
4093
|
return;
|
|
@@ -4099,7 +4099,7 @@ class St {
|
|
|
4099
4099
|
}
|
|
4100
4100
|
_getSelectionRuler(e, t, o, r, s) {
|
|
4101
4101
|
let i = 0, a = r;
|
|
4102
|
-
const c =
|
|
4102
|
+
const c = Jn[e], d = Jn[e + 1];
|
|
4103
4103
|
if (d === null || c === null)
|
|
4104
4104
|
return {
|
|
4105
4105
|
start_next: i,
|
|
@@ -4377,7 +4377,7 @@ class Va {
|
|
|
4377
4377
|
}
|
|
4378
4378
|
}
|
|
4379
4379
|
const sA = "__TestSelectionRange__", iA = "__TestSelectionAnchor__", mi = 6, Jo = 500, aA = 500, Er = 3;
|
|
4380
|
-
function
|
|
4380
|
+
function $n(n) {
|
|
4381
4381
|
const e = n[0], t = e[0], o = e[2], { x: r, y: s } = t, { x: i, y: a } = o;
|
|
4382
4382
|
return {
|
|
4383
4383
|
left: r,
|
|
@@ -4478,7 +4478,7 @@ class Zt {
|
|
|
4478
4478
|
const { contentBoxPointGroup: l, cursorList: A } = i.getRangePointData(e, e);
|
|
4479
4479
|
if (this._setCursorList(A), l.length === 0)
|
|
4480
4480
|
return;
|
|
4481
|
-
const h =
|
|
4481
|
+
const h = $n(l);
|
|
4482
4482
|
return {
|
|
4483
4483
|
...h,
|
|
4484
4484
|
left: h.left + r,
|
|
@@ -4488,7 +4488,7 @@ class Zt {
|
|
|
4488
4488
|
const { borderBoxPointGroup: a, cursorList: c } = i.getRangePointData(e, t);
|
|
4489
4489
|
if (this._setCursorList(c), a.length === 0)
|
|
4490
4490
|
return;
|
|
4491
|
-
const d =
|
|
4491
|
+
const d = $n(a);
|
|
4492
4492
|
return {
|
|
4493
4493
|
...d,
|
|
4494
4494
|
left: d.left + r,
|
|
@@ -4580,7 +4580,7 @@ class Zt {
|
|
|
4580
4580
|
}
|
|
4581
4581
|
_createOrUpdateAnchor(e, t, o, r) {
|
|
4582
4582
|
var f, p, m;
|
|
4583
|
-
const s =
|
|
4583
|
+
const s = $n(e), { left: i } = s;
|
|
4584
4584
|
let { top: a, height: c } = s;
|
|
4585
4585
|
const d = 14;
|
|
4586
4586
|
c < d && (a -= d - c, c = d);
|
|
@@ -4591,7 +4591,7 @@ class Zt {
|
|
|
4591
4591
|
this._anchorShape.transformByState({ left: A, top: h, height: c }), this._anchorShape.show(), u ? this._anchorShape.skew(-l, 0) : this._anchorShape.skew(0, 0);
|
|
4592
4592
|
return;
|
|
4593
4593
|
}
|
|
4594
|
-
const g = new
|
|
4594
|
+
const g = new qn(iA + ge(mi), {
|
|
4595
4595
|
left: A,
|
|
4596
4596
|
top: h,
|
|
4597
4597
|
height: c,
|
|
@@ -4931,7 +4931,7 @@ var gA = Object.getOwnPropertyDescriptor, fA = (n, e, t, o) => {
|
|
|
4931
4931
|
for (var r = o > 1 ? void 0 : o ? gA(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
4932
4932
|
(i = n[s]) && (r = i(r) || r);
|
|
4933
4933
|
return r;
|
|
4934
|
-
},
|
|
4934
|
+
}, Wn = (n, e) => (t, o) => e(t, o, n);
|
|
4935
4935
|
let Re = class extends Rt {
|
|
4936
4936
|
constructor(e, t, o, r, s) {
|
|
4937
4937
|
super();
|
|
@@ -4951,7 +4951,7 @@ let Re = class extends Rt {
|
|
|
4951
4951
|
O(this, "onSelectionStart$", this._onSelectionStart$.asObservable());
|
|
4952
4952
|
O(this, "onChangeByEvent$", ha(
|
|
4953
4953
|
this._onInput$,
|
|
4954
|
-
this._onKeydown$.pipe(
|
|
4954
|
+
this._onKeydown$.pipe(ro((e) => e.event.keyCode === q.BACKSPACE)),
|
|
4955
4955
|
this._onCompositionend$
|
|
4956
4956
|
));
|
|
4957
4957
|
O(this, "_onPaste$", new be());
|
|
@@ -5627,10 +5627,10 @@ let Re = class extends Rt {
|
|
|
5627
5627
|
}
|
|
5628
5628
|
};
|
|
5629
5629
|
Re = fA([
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5630
|
+
Wn(1, To),
|
|
5631
|
+
Wn(2, Ur),
|
|
5632
|
+
Wn(3, L),
|
|
5633
|
+
Wn(4, j(de))
|
|
5634
5634
|
], Re);
|
|
5635
5635
|
const Vo = {
|
|
5636
5636
|
id: "doc.command.switch-mode",
|
|
@@ -5762,7 +5762,7 @@ const Vo = {
|
|
|
5762
5762
|
type: D.COMMAND,
|
|
5763
5763
|
// eslint-disable-next-line max-lines-per-function
|
|
5764
5764
|
handler: async (n) => {
|
|
5765
|
-
const e = n.get(Y), t = n.get(L), o = n.get(T), r = e.getRectRanges(), s = e.getActiveTextRange(), i =
|
|
5765
|
+
const e = n.get(Y), t = n.get(L), o = n.get(T), r = e.getRectRanges(), s = e.getActiveTextRange(), i = Qn(s, r);
|
|
5766
5766
|
if (i == null)
|
|
5767
5767
|
return !1;
|
|
5768
5768
|
const { segmentId: a } = i, c = t.getCurrentUniverDocInstance(), d = c == null ? void 0 : c.getSelfOrHeaderFooterModel(a).getBody();
|
|
@@ -5776,7 +5776,7 @@ const Vo = {
|
|
|
5776
5776
|
return !1;
|
|
5777
5777
|
const { offset: p, rowIndexes: m, len: I, tableId: S, cursor: v, selectWholeTable: R } = f;
|
|
5778
5778
|
if (R)
|
|
5779
|
-
return o.executeCommand(
|
|
5779
|
+
return o.executeCommand(kn.id);
|
|
5780
5780
|
const E = [], b = [{
|
|
5781
5781
|
startOffset: v,
|
|
5782
5782
|
endOffset: v,
|
|
@@ -5809,7 +5809,7 @@ const Vo = {
|
|
|
5809
5809
|
type: D.COMMAND,
|
|
5810
5810
|
// eslint-disable-next-line max-lines-per-function
|
|
5811
5811
|
handler: async (n) => {
|
|
5812
|
-
const e = n.get(Y), t = n.get(L), o = n.get(T), r = e.getRectRanges(), s = e.getActiveTextRange(), i =
|
|
5812
|
+
const e = n.get(Y), t = n.get(L), o = n.get(T), r = e.getRectRanges(), s = e.getActiveTextRange(), i = Qn(s, r);
|
|
5813
5813
|
if (i == null)
|
|
5814
5814
|
return !1;
|
|
5815
5815
|
const { segmentId: a } = i, c = t.getCurrentUniverDocInstance(), d = c == null ? void 0 : c.getSelfOrHeaderFooterModel(a).getBody();
|
|
@@ -5823,7 +5823,7 @@ const Vo = {
|
|
|
5823
5823
|
return !1;
|
|
5824
5824
|
const { offsets: p, columnIndexes: m, tableId: I, cursor: S, rowCount: v, selectWholeTable: R } = f;
|
|
5825
5825
|
if (R)
|
|
5826
|
-
return o.executeCommand(
|
|
5826
|
+
return o.executeCommand(kn.id);
|
|
5827
5827
|
const E = [], b = [{
|
|
5828
5828
|
startOffset: S,
|
|
5829
5829
|
endOffset: S,
|
|
@@ -5859,12 +5859,12 @@ const Vo = {
|
|
|
5859
5859
|
}
|
|
5860
5860
|
return y.params.actions = E.reduce((x, M) => W.compose(x, M), null), !!o.syncExecuteCommand(y.id, y.params);
|
|
5861
5861
|
}
|
|
5862
|
-
},
|
|
5862
|
+
}, kn = {
|
|
5863
5863
|
id: "doc.table.delete-table",
|
|
5864
5864
|
type: D.COMMAND,
|
|
5865
5865
|
// eslint-disable-next-line max-lines-per-function
|
|
5866
5866
|
handler: async (n) => {
|
|
5867
|
-
const e = n.get(Y), t = n.get(L), o = n.get(T), r = e.getRectRanges(), s = e.getActiveTextRange(), i =
|
|
5867
|
+
const e = n.get(Y), t = n.get(L), o = n.get(T), r = e.getRectRanges(), s = e.getActiveTextRange(), i = Qn(s, r);
|
|
5868
5868
|
if (i == null)
|
|
5869
5869
|
return !1;
|
|
5870
5870
|
const { segmentId: a } = i, c = t.getCurrentUniverDocInstance(), d = c == null ? void 0 : c.getSelfOrHeaderFooterModel(a).getBody();
|
|
@@ -5921,7 +5921,7 @@ const Vo = {
|
|
|
5921
5921
|
type: D.COMMAND,
|
|
5922
5922
|
// eslint-disable-next-line max-lines-per-function
|
|
5923
5923
|
handler: async (n, e) => {
|
|
5924
|
-
const { position: t } = e, o = n.get(Y), r = n.get(L), s = n.get(T), i = o.getRectRanges(), a = o.getActiveTextRange(), c =
|
|
5924
|
+
const { position: t } = e, o = n.get(Y), r = n.get(L), s = n.get(T), i = o.getRectRanges(), a = o.getActiveTextRange(), c = Qn(a, i);
|
|
5925
5925
|
if (c == null)
|
|
5926
5926
|
return !1;
|
|
5927
5927
|
const { segmentId: d } = c, l = r.getCurrentUnitForType(_.UNIVER_DOC), A = l == null ? void 0 : l.getSelfOrHeaderFooterModel(d).getBody();
|
|
@@ -5966,7 +5966,7 @@ const Vo = {
|
|
|
5966
5966
|
// eslint-disable-next-line max-lines-per-function
|
|
5967
5967
|
handler: async (n, e) => {
|
|
5968
5968
|
var ne, ie, ae;
|
|
5969
|
-
const { position: t } = e, o = n.get(Y), r = n.get(L), s = n.get(T), i = o.getRectRanges(), a = o.getActiveTextRange(), c =
|
|
5969
|
+
const { position: t } = e, o = n.get(Y), r = n.get(L), s = n.get(T), i = o.getRectRanges(), a = o.getActiveTextRange(), c = Qn(a, i);
|
|
5970
5970
|
if (c == null)
|
|
5971
5971
|
return !1;
|
|
5972
5972
|
const { segmentId: d } = c, l = r.getCurrentUniverDocInstance(), A = l == null ? void 0 : l.getSelfOrHeaderFooterModel(d).getBody();
|
|
@@ -6593,7 +6593,7 @@ let vr = class extends me {
|
|
|
6593
6593
|
}
|
|
6594
6594
|
blur(e) {
|
|
6595
6595
|
const t = this.getFocusEditor();
|
|
6596
|
-
e && (t == null || t.setSelectionRanges([])), t == null || t.blur(), this._contextService.setContextValue(
|
|
6596
|
+
e && (t == null || t.setSelectionRanges([])), t == null || t.blur(), this._contextService.setContextValue(to, !1), this._contextService.setContextValue(Fs, !1), this._setFocusId(null), this._blur$.next(null);
|
|
6597
6597
|
}
|
|
6598
6598
|
focus(e) {
|
|
6599
6599
|
if (e === this._focusEditorUnitId || (this._focusEditorUnitId && this.blur(), e == null))
|
|
@@ -6603,7 +6603,7 @@ let vr = class extends me {
|
|
|
6603
6603
|
return;
|
|
6604
6604
|
this._univerInstanceService.setCurrentUnitForType(e);
|
|
6605
6605
|
const o = t.getValue().length;
|
|
6606
|
-
this._contextService.setContextValue(
|
|
6606
|
+
this._contextService.setContextValue(to, !0), bt(e) || this._contextService.setContextValue(Fs, !0), t.focus(), this._setFocusId(e), this._focus$.next({
|
|
6607
6607
|
startOffset: o,
|
|
6608
6608
|
endOffset: o
|
|
6609
6609
|
});
|
|
@@ -6680,7 +6680,7 @@ vr = zA([
|
|
|
6680
6680
|
Tt(3, Hr),
|
|
6681
6681
|
Tt(4, T),
|
|
6682
6682
|
Tt(5, xo),
|
|
6683
|
-
Tt(6, j(
|
|
6683
|
+
Tt(6, j(wn))
|
|
6684
6684
|
], vr);
|
|
6685
6685
|
const Ye = Ki("univer.editor.service"), Cr = "COMPONENT_DOC_HEADER_FOOTER_PANEL";
|
|
6686
6686
|
function YA(n, e, t) {
|
|
@@ -6712,7 +6712,7 @@ const KA = (n) => {
|
|
|
6712
6712
|
let E = !1;
|
|
6713
6713
|
if (g === "useFirstPageHeaderFooter" && u === !0 && ((S === ve.HEADER && !p.firstPageHeaderId || S === ve.FOOTER && !p.firstPageFooterId) && (v = !0), v && R === 0 && (E = !0)), g === "evenAndOddHeaders" && u === !0 && ((S === ve.HEADER && !p.evenPageHeaderId || S === ve.FOOTER && !p.evenPageFooterId) && (v = !0), v && R % 2 === 1 && (E = !0)), v) {
|
|
6714
6714
|
const C = ge(6);
|
|
6715
|
-
E && a.setSegment(C), r.executeCommand(
|
|
6715
|
+
E && a.setSegment(C), r.executeCommand(eo, {
|
|
6716
6716
|
unitId: i,
|
|
6717
6717
|
segmentId: C,
|
|
6718
6718
|
headerFooterProps: {
|
|
@@ -6728,7 +6728,7 @@ const KA = (n) => {
|
|
|
6728
6728
|
S,
|
|
6729
6729
|
y
|
|
6730
6730
|
);
|
|
6731
|
-
B && B !== C && a.setSegment(B), r.executeCommand(
|
|
6731
|
+
B && B !== C && a.setSegment(B), r.executeCommand(eo, {
|
|
6732
6732
|
unitId: i,
|
|
6733
6733
|
headerFooterProps: {
|
|
6734
6734
|
[g]: u ? z.TRUE : z.FALSE
|
|
@@ -6740,7 +6740,7 @@ const KA = (n) => {
|
|
|
6740
6740
|
d((f) => ({
|
|
6741
6741
|
...f,
|
|
6742
6742
|
[g]: u
|
|
6743
|
-
})), await r.executeCommand(
|
|
6743
|
+
})), await r.executeCommand(eo, {
|
|
6744
6744
|
unitId: i,
|
|
6745
6745
|
headerFooterProps: {
|
|
6746
6746
|
[g]: u
|
|
@@ -6846,7 +6846,7 @@ function ZA(n, e) {
|
|
|
6846
6846
|
let s = 0;
|
|
6847
6847
|
s = Math.min(t, o / 2, r / 2), n.beginPath(), n.moveTo(0, 0), n.lineTo(o, 0), n.lineTo(o, r - s), n.arc(o - s, r - s, s, 0, Math.PI / 2, !1), n.lineTo(0, r), n.lineTo(0, 0), n.closePath(), e.fill && (n.save(), n.fillStyle = e.fill, e.fillRule === "evenodd" ? n.fill("evenodd") : n.fill(), n.restore());
|
|
6848
6848
|
}
|
|
6849
|
-
class
|
|
6849
|
+
class co extends ul {
|
|
6850
6850
|
constructor(t, o) {
|
|
6851
6851
|
super(t, o);
|
|
6852
6852
|
O(this, "color");
|
|
@@ -6884,7 +6884,7 @@ class lo extends ul {
|
|
|
6884
6884
|
t.restore();
|
|
6885
6885
|
}
|
|
6886
6886
|
_draw(t) {
|
|
6887
|
-
|
|
6887
|
+
co.drawWith(t, this);
|
|
6888
6888
|
}
|
|
6889
6889
|
}
|
|
6890
6890
|
var JA = Object.getOwnPropertyDescriptor, $A = (n, e, t, o) => {
|
|
@@ -6952,6 +6952,9 @@ let Rr = class extends me {
|
|
|
6952
6952
|
_initialize() {
|
|
6953
6953
|
this._init(), this._drawHeaderFooterLabel(), this._initCustomComponents(), this._listenSwitchMode();
|
|
6954
6954
|
}
|
|
6955
|
+
dispose() {
|
|
6956
|
+
super.dispose();
|
|
6957
|
+
}
|
|
6955
6958
|
// Close header footer panel when switch mode.
|
|
6956
6959
|
_listenSwitchMode() {
|
|
6957
6960
|
this.disposeWithMe(
|
|
@@ -7016,73 +7019,75 @@ let Rr = class extends me {
|
|
|
7016
7019
|
// eslint-disable-next-line max-lines-per-function
|
|
7017
7020
|
_drawHeaderFooterLabel() {
|
|
7018
7021
|
const e = this._localeService;
|
|
7019
|
-
this.
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7022
|
+
this.disposeWithMe(
|
|
7023
|
+
this._instanceSrv.getCurrentTypeOfUnit$(_.UNIVER_DOC).subscribe((t) => {
|
|
7024
|
+
if (t == null)
|
|
7025
|
+
return;
|
|
7026
|
+
const o = t.getUnitId(), r = this._renderManagerService.getRenderById(o);
|
|
7027
|
+
if (this._editorService.isEditor(o) || this._instanceSrv.getUniverDocInstance(o) == null || r == null)
|
|
7028
|
+
return;
|
|
7029
|
+
const { mainComponent: s } = r, i = s;
|
|
7030
|
+
this.disposeWithMe(
|
|
7031
|
+
_n(
|
|
7032
|
+
// eslint-disable-next-line max-lines-per-function
|
|
7033
|
+
i.pageRender$.subscribe((a) => {
|
|
7034
|
+
if (this._editorService.isEditor(o) || !this._isTraditionalMode())
|
|
7035
|
+
return;
|
|
7036
|
+
const l = this._docSkeletonManagerService.getViewModel().getEditArea() === ve.BODY, { page: A, pageLeft: h, pageTop: u, ctx: g } = a, { pageWidth: f, pageHeight: p, marginTop: m, marginBottom: I } = A;
|
|
7037
|
+
if (g.save(), g.translate(h - 0.5, u - 0.5), l ? (qn.drawWith(g, {
|
|
7038
|
+
left: 0,
|
|
7039
|
+
top: 0,
|
|
7040
|
+
width: f,
|
|
7041
|
+
height: m,
|
|
7042
|
+
fill: "rgba(255, 255, 255, 0.5)"
|
|
7043
|
+
}), g.save(), g.translate(0, p - I), qn.drawWith(g, {
|
|
7044
|
+
left: 0,
|
|
7045
|
+
top: 0,
|
|
7046
|
+
width: f,
|
|
7047
|
+
height: I,
|
|
7048
|
+
fill: "rgba(255, 255, 255, 0.5)"
|
|
7049
|
+
}), g.restore()) : (g.save(), g.translate(0, m), qn.drawWith(g, {
|
|
7050
|
+
left: 0,
|
|
7051
|
+
top: m,
|
|
7052
|
+
width: f,
|
|
7053
|
+
height: p - m - I,
|
|
7054
|
+
fill: "rgba(255, 255, 255, 0.5)"
|
|
7055
|
+
}), g.restore()), !l) {
|
|
7056
|
+
const S = {
|
|
7057
|
+
dataArray: [{
|
|
7058
|
+
command: "M",
|
|
7059
|
+
points: [0, m]
|
|
7060
|
+
}, {
|
|
7061
|
+
command: "L",
|
|
7062
|
+
points: [f, m]
|
|
7063
|
+
}],
|
|
7064
|
+
strokeWidth: 1,
|
|
7065
|
+
stroke: Ci
|
|
7066
|
+
}, v = {
|
|
7067
|
+
dataArray: [{
|
|
7068
|
+
command: "M",
|
|
7069
|
+
points: [0, p - I]
|
|
7070
|
+
}, {
|
|
7071
|
+
command: "L",
|
|
7072
|
+
points: [f, p - I]
|
|
7073
|
+
}],
|
|
7074
|
+
strokeWidth: 1,
|
|
7075
|
+
stroke: Ci
|
|
7076
|
+
};
|
|
7077
|
+
zs.drawWith(g, S), zs.drawWith(g, v), g.translate(0, m + 1), co.drawWith(g, {
|
|
7078
|
+
text: e.t("headerFooter.header"),
|
|
7079
|
+
color: Ri
|
|
7080
|
+
}), g.translate(0, p - m - I), co.drawWith(g, {
|
|
7081
|
+
text: e.t("headerFooter.footer"),
|
|
7082
|
+
color: Ri
|
|
7083
|
+
});
|
|
7084
|
+
}
|
|
7085
|
+
g.restore();
|
|
7086
|
+
})
|
|
7087
|
+
)
|
|
7088
|
+
);
|
|
7089
|
+
})
|
|
7090
|
+
);
|
|
7086
7091
|
}
|
|
7087
7092
|
_isEditorReadOnly(e) {
|
|
7088
7093
|
const t = this._editorService.getEditor(e);
|
|
@@ -7199,8 +7204,8 @@ function nr(n, e, t, o) {
|
|
|
7199
7204
|
}
|
|
7200
7205
|
return o;
|
|
7201
7206
|
}
|
|
7202
|
-
const
|
|
7203
|
-
id:
|
|
7207
|
+
const eo = "doc.command.core-header-footer", uc = {
|
|
7208
|
+
id: eo,
|
|
7204
7209
|
type: D.COMMAND,
|
|
7205
7210
|
// eslint-disable-next-line max-lines-per-function
|
|
7206
7211
|
handler: async (n, e) => {
|
|
@@ -7268,7 +7273,7 @@ const to = "doc.command.core-header-footer", uc = {
|
|
|
7268
7273
|
return /* @__PURE__ */ Q("div", { className: "univer-grid univer-grid-cols-3 univer-gap-2 univer-p-1.5", children: o.map((r) => /* @__PURE__ */ Q(
|
|
7269
7274
|
"a",
|
|
7270
7275
|
{
|
|
7271
|
-
className: Ge("univer-block univer-h-20 univer-w-[72px] univer-cursor-pointer univer-overflow-hidden univer-rounded univer-transition-all hover:univer-border-primary-500",
|
|
7276
|
+
className: Ge("univer-block univer-h-20 univer-w-[72px] univer-cursor-pointer univer-overflow-hidden univer-rounded univer-transition-all hover:univer-border-primary-500", Ln, {
|
|
7272
7277
|
"univer-border-primary-500": e === r.value
|
|
7273
7278
|
}),
|
|
7274
7279
|
onClick: () => {
|
|
@@ -7996,7 +8001,7 @@ function Su(n) {
|
|
|
7996
8001
|
type: Z.BUTTON,
|
|
7997
8002
|
icon: "HeaderFooterIcon",
|
|
7998
8003
|
tooltip: "toolbar.headerFooter",
|
|
7999
|
-
hidden$:
|
|
8004
|
+
hidden$: Nn(se(n, _.UNIVER_DOC, void 0, ot), cu(n), (e, t) => e || t)
|
|
8000
8005
|
};
|
|
8001
8006
|
}
|
|
8002
8007
|
const vu = "GridIcon", Ec = "doc.menu.table";
|
|
@@ -8008,7 +8013,7 @@ function Cu(n) {
|
|
|
8008
8013
|
tooltip: "toolbar.table.main",
|
|
8009
8014
|
disabled$: lu(n),
|
|
8010
8015
|
// Do not show header footer menu and insert table at zen mode.
|
|
8011
|
-
hidden$:
|
|
8016
|
+
hidden$: Nn(se(n, _.UNIVER_DOC, void 0, ot), au(n), (e, t) => e || t)
|
|
8012
8017
|
};
|
|
8013
8018
|
}
|
|
8014
8019
|
function Ru(n) {
|
|
@@ -8176,7 +8181,7 @@ function yi(n) {
|
|
|
8176
8181
|
tooltip: "toolbar.order",
|
|
8177
8182
|
hidden$: se(n, _.UNIVER_DOC),
|
|
8178
8183
|
disabled$: xe(n),
|
|
8179
|
-
activated$: Bn(n).pipe(
|
|
8184
|
+
activated$: Bn(n).pipe(Pn((e) => !!(e && e.indexOf("ORDER_LIST") === 0)))
|
|
8180
8185
|
};
|
|
8181
8186
|
}
|
|
8182
8187
|
function xi(n) {
|
|
@@ -8198,18 +8203,18 @@ function xi(n) {
|
|
|
8198
8203
|
tooltip: "toolbar.unorder",
|
|
8199
8204
|
disabled$: xe(n),
|
|
8200
8205
|
hidden$: se(n, _.UNIVER_DOC),
|
|
8201
|
-
activated$: Bn(n).pipe(
|
|
8206
|
+
activated$: Bn(n).pipe(Pn((e) => !!(e && e.indexOf("BULLET_LIST") === 0)))
|
|
8202
8207
|
};
|
|
8203
8208
|
}
|
|
8204
8209
|
function Oi(n) {
|
|
8205
8210
|
return {
|
|
8206
|
-
id:
|
|
8211
|
+
id: io.id,
|
|
8207
8212
|
type: Z.BUTTON,
|
|
8208
8213
|
icon: "TodoListDoubleIcon",
|
|
8209
8214
|
tooltip: "toolbar.checklist",
|
|
8210
8215
|
disabled$: xe(n),
|
|
8211
8216
|
hidden$: se(n, _.UNIVER_DOC),
|
|
8212
|
-
activated$: Bn(n).pipe(
|
|
8217
|
+
activated$: Bn(n).pipe(Pn((e) => !!(e && e.indexOf("CHECK_LIST") === 0)))
|
|
8213
8218
|
};
|
|
8214
8219
|
}
|
|
8215
8220
|
function Bu(n) {
|
|
@@ -8235,7 +8240,7 @@ function Bu(n) {
|
|
|
8235
8240
|
}
|
|
8236
8241
|
function Mu(n) {
|
|
8237
8242
|
return {
|
|
8238
|
-
id:
|
|
8243
|
+
id: Fn.id,
|
|
8239
8244
|
type: Z.BUTTON,
|
|
8240
8245
|
title: "toolbar.resetColor",
|
|
8241
8246
|
icon: "NoColorDoubleIcon"
|
|
@@ -8347,10 +8352,10 @@ const wu = {
|
|
|
8347
8352
|
[K.HEADING_3]: fs,
|
|
8348
8353
|
[K.HEADING_4]: ps,
|
|
8349
8354
|
[K.HEADING_5]: ms,
|
|
8350
|
-
[K.NORMAL_TEXT]:
|
|
8355
|
+
[K.NORMAL_TEXT]: ao,
|
|
8351
8356
|
[K.TITLE]: Ua,
|
|
8352
8357
|
[K.SUBTITLE]: Fa,
|
|
8353
|
-
[K.NAMED_STYLE_TYPE_UNSPECIFIED]:
|
|
8358
|
+
[K.NAMED_STYLE_TYPE_UNSPECIFIED]: ao
|
|
8354
8359
|
}, Ic = {
|
|
8355
8360
|
[K.HEADING_1]: { key: "H1Icon", component: tc },
|
|
8356
8361
|
[K.HEADING_2]: { key: "H2Icon", component: nc },
|
|
@@ -8438,7 +8443,7 @@ var Ku = Object.getOwnPropertyDescriptor, qu = (n, e, t, o) => {
|
|
|
8438
8443
|
for (var r = o > 1 ? void 0 : o ? Ku(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
8439
8444
|
(i = n[s]) && (r = i(r) || r);
|
|
8440
8445
|
return r;
|
|
8441
|
-
},
|
|
8446
|
+
}, jn = (n, e) => (t, o) => e(t, o, n);
|
|
8442
8447
|
function vc(n, e) {
|
|
8443
8448
|
const t = Bi(n.left, n.top, e), o = Bi(n.right, n.bottom, e);
|
|
8444
8449
|
return {
|
|
@@ -8606,7 +8611,7 @@ let Mn = class extends me {
|
|
|
8606
8611
|
const { direction: r = "top", multipleDirection: s } = e, i = this._renderManagerService.getRenderById(t);
|
|
8607
8612
|
if (!i)
|
|
8608
8613
|
throw new Error(`Current render not found, unitId: ${t}`);
|
|
8609
|
-
const { positions: a, positions$: c, disposable: d } = this._createRangePositionObserver(n, i), l = c.pipe(
|
|
8614
|
+
const { positions: a, positions$: c, disposable: d } = this._createRangePositionObserver(n, i), l = c.pipe(Pn((h) => r.includes("top") ? h[0] : h[h.length - 1])), A = this._globalPopupManagerService.addPopup({
|
|
8610
8615
|
...e,
|
|
8611
8616
|
unitId: t,
|
|
8612
8617
|
subUnitId: "default",
|
|
@@ -8627,10 +8632,10 @@ let Mn = class extends me {
|
|
|
8627
8632
|
// #endregion
|
|
8628
8633
|
};
|
|
8629
8634
|
Mn = qu([
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8635
|
+
jn(0, j(Pl)),
|
|
8636
|
+
jn(1, pe),
|
|
8637
|
+
jn(2, L),
|
|
8638
|
+
jn(3, T)
|
|
8634
8639
|
], Mn);
|
|
8635
8640
|
var Xu = Object.getOwnPropertyDescriptor, Zu = (n, e, t, o) => {
|
|
8636
8641
|
for (var r = o > 1 ? void 0 : o ? Xu(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
@@ -8781,7 +8786,7 @@ let Pt = class extends me {
|
|
|
8781
8786
|
this._customRangeDirty = !0, this._bulletDirty = !0, this._paragraphDirty = !0;
|
|
8782
8787
|
})), this.disposeWithMe(
|
|
8783
8788
|
_t(this._context.engine.onTransformChange$).pipe(
|
|
8784
|
-
|
|
8789
|
+
ro((e) => e.type === oa.resize)
|
|
8785
8790
|
).subscribe(() => {
|
|
8786
8791
|
this._customRangeDirty = !0, this._bulletDirty = !0, this._paragraphDirty = !0;
|
|
8787
8792
|
})
|
|
@@ -8808,8 +8813,8 @@ let Pt = class extends me {
|
|
|
8808
8813
|
}));
|
|
8809
8814
|
const e = _t(this._context.mainComponent.onPointerDown$), t = _t(this._context.scene.onPointerUp$);
|
|
8810
8815
|
this.disposeWithMe(e.pipe(
|
|
8811
|
-
jl((o) => t.pipe(zl(1),
|
|
8812
|
-
|
|
8816
|
+
jl((o) => t.pipe(zl(1), Pn((r) => ({ down: o, up: r })))),
|
|
8817
|
+
ro(({ down: o, up: r }) => o.target === r.target && r.timeStamp - o.timeStamp < 300)
|
|
8813
8818
|
).subscribe(({ down: o }) => {
|
|
8814
8819
|
if (o.button === 2)
|
|
8815
8820
|
return;
|
|
@@ -9087,7 +9092,7 @@ function nh(n) {
|
|
|
9087
9092
|
}, [t]), /* @__PURE__ */ Q(
|
|
9088
9093
|
"div",
|
|
9089
9094
|
{
|
|
9090
|
-
className: Ge("univer-box-border univer-flex univer-rounded univer-bg-white univer-py-1.5 univer-shadow-sm dark:!univer-border-gray-700 dark:!univer-bg-gray-900",
|
|
9095
|
+
className: Ge("univer-box-border univer-flex univer-rounded univer-bg-white univer-py-1.5 univer-shadow-sm dark:!univer-border-gray-700 dark:!univer-bg-gray-900", Ln),
|
|
9091
9096
|
children: o.map((s) => s.item && /* @__PURE__ */ Q("div", { className: "univer-flex univer-flex-nowrap univer-gap-2 univer-px-2", children: /* @__PURE__ */ Q(Nl, { ...s.item }, s.key) }, s.key))
|
|
9092
9097
|
}
|
|
9093
9098
|
);
|
|
@@ -9108,7 +9113,7 @@ const ih = [
|
|
|
9108
9113
|
V.CUSTOM_BLOCK,
|
|
9109
9114
|
V.PARAGRAPH
|
|
9110
9115
|
];
|
|
9111
|
-
let
|
|
9116
|
+
let lo = class extends me {
|
|
9112
9117
|
constructor(e, t, o, r, s, i) {
|
|
9113
9118
|
super();
|
|
9114
9119
|
O(this, "_floatMenu", null);
|
|
@@ -9169,19 +9174,19 @@ let Ao = class extends me {
|
|
|
9169
9174
|
}, _n(() => this._hideFloatMenu());
|
|
9170
9175
|
}
|
|
9171
9176
|
};
|
|
9172
|
-
|
|
9177
|
+
lo = rh([
|
|
9173
9178
|
dn(1, j(Y)),
|
|
9174
9179
|
dn(2, j(Mn)),
|
|
9175
9180
|
dn(3, j(sn)),
|
|
9176
9181
|
dn(4, j(L)),
|
|
9177
9182
|
dn(5, j(Re))
|
|
9178
|
-
],
|
|
9183
|
+
], lo);
|
|
9179
9184
|
var ah = Object.getOwnPropertyDescriptor, ch = (n, e, t, o) => {
|
|
9180
9185
|
for (var r = o > 1 ? void 0 : o ? ah(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
9181
9186
|
(i = n[s]) && (r = i(r) || r);
|
|
9182
9187
|
return r;
|
|
9183
9188
|
}, An = (n, e) => (t, o) => e(t, o, n);
|
|
9184
|
-
let
|
|
9189
|
+
let Ao = class extends me {
|
|
9185
9190
|
constructor(e, t, o, r, s, i) {
|
|
9186
9191
|
super();
|
|
9187
9192
|
O(this, "_paragrahMenu", null);
|
|
@@ -9217,7 +9222,7 @@ let uo = class extends me {
|
|
|
9217
9222
|
this.hideParagraphMenu(!0);
|
|
9218
9223
|
};
|
|
9219
9224
|
this.disposeWithMe(
|
|
9220
|
-
|
|
9225
|
+
Nn([this._docEventManagerService.hoverParagraphRealTime$, this._docEventManagerService.hoverParagraphLeft$]).pipe(bn(16)).subscribe(([o, r]) => {
|
|
9221
9226
|
const s = o != null ? o : r;
|
|
9222
9227
|
e(s);
|
|
9223
9228
|
})
|
|
@@ -9261,16 +9266,16 @@ let uo = class extends me {
|
|
|
9261
9266
|
this._paragrahMenu && (this._paragrahMenu.disposable.canDispose() || e) && (this._paragrahMenu.disposable.dispose(), this._paragrahMenu = null);
|
|
9262
9267
|
}
|
|
9263
9268
|
};
|
|
9264
|
-
|
|
9269
|
+
Ao = ch([
|
|
9265
9270
|
An(1, j(Y)),
|
|
9266
9271
|
An(2, j(Pt)),
|
|
9267
9272
|
An(3, j(Mn)),
|
|
9268
9273
|
An(4, j(de)),
|
|
9269
|
-
An(5, j(
|
|
9270
|
-
],
|
|
9274
|
+
An(5, j(lo))
|
|
9275
|
+
], Ao);
|
|
9271
9276
|
const lh = ({ popup: n }) => {
|
|
9272
9277
|
var E, b;
|
|
9273
|
-
const [e, t] = Ee(!1), o = ke(null), r = J(T), s = J(To), i = ke(null), a = ke(!1), c = J(pe), d = J(L), l = c.getRenderById(n.unitId), A = d.getUnit(n.unitId, _.UNIVER_DOC), h = l == null ? void 0 : l.with(
|
|
9278
|
+
const [e, t] = Ee(!1), o = ke(null), r = J(T), s = J(To), i = ke(null), a = ke(!1), c = J(pe), d = J(L), l = c.getRenderById(n.unitId), A = d.getUnit(n.unitId, _.UNIVER_DOC), h = l == null ? void 0 : l.with(Ao), u = l == null ? void 0 : l.with(Pt), g = tt(u == null ? void 0 : u.hoverParagraph$), f = tt(u == null ? void 0 : u.hoverParagraphLeft$), p = (E = g != null ? g : f) == null ? void 0 : E.startIndex, m = _e(() => {
|
|
9274
9279
|
var y, C;
|
|
9275
9280
|
return (C = (y = A == null ? void 0 : A.getBody()) == null ? void 0 : y.paragraphs) == null ? void 0 : C.find((B) => B.startIndex === p);
|
|
9276
9281
|
}, [A, g]), I = (b = m == null ? void 0 : m.paragraphStyle) == null ? void 0 : b.namedStyleType, S = Ic[I != null ? I : K.NORMAL_TEXT], v = _e(() => new Fe({
|
|
@@ -9287,7 +9292,7 @@ const lh = ({ popup: n }) => {
|
|
|
9287
9292
|
{
|
|
9288
9293
|
"data-u-comp": "paragraph-menu",
|
|
9289
9294
|
ref: i,
|
|
9290
|
-
className: Ge("univer-mr-1 univer-inline-flex univer-h-7 univer-cursor-pointer univer-items-center univer-gap-1 univer-rounded-full univer-px-2.5 univer-py-0 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-600",
|
|
9295
|
+
className: Ge("univer-mr-1 univer-inline-flex univer-h-7 univer-cursor-pointer univer-items-center univer-gap-1 univer-rounded-full univer-px-2.5 univer-py-0 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-600", Ln, {
|
|
9291
9296
|
"univer-bg-gray-100 dark:!univer-bg-gray-700": e,
|
|
9292
9297
|
"univer-bg-white dark:!univer-bg-gray-700": !e
|
|
9293
9298
|
}),
|
|
@@ -9348,7 +9353,7 @@ const lh = ({ popup: n }) => {
|
|
|
9348
9353
|
Ul,
|
|
9349
9354
|
{
|
|
9350
9355
|
style: { width: 212 },
|
|
9351
|
-
menuType:
|
|
9356
|
+
menuType: oo.PARAGRAPH,
|
|
9352
9357
|
onOptionSelect: (y) => {
|
|
9353
9358
|
const { label: C, commandId: B, value: x } = y;
|
|
9354
9359
|
r && r.executeCommand(B != null ? B : C, { value: x }), s.focus(), R();
|
|
@@ -9362,10 +9367,10 @@ const lh = ({ popup: n }) => {
|
|
|
9362
9367
|
] });
|
|
9363
9368
|
};
|
|
9364
9369
|
function Se(n) {
|
|
9365
|
-
return n.getContextValue(
|
|
9370
|
+
return n.getContextValue(Dn) && n.getContextValue(kr) && !n.getContextValue(Zi);
|
|
9366
9371
|
}
|
|
9367
9372
|
function dh(n) {
|
|
9368
|
-
return n.getContextValue(
|
|
9373
|
+
return n.getContextValue(Dn) && n.getContextValue(kr) && !n.getContextValue(Zi);
|
|
9369
9374
|
}
|
|
9370
9375
|
const Ah = {
|
|
9371
9376
|
id: Jt.id,
|
|
@@ -9627,7 +9632,7 @@ function Uh() {
|
|
|
9627
9632
|
const { paragraphStart: ne, paragraphEnd: ie } = k;
|
|
9628
9633
|
return {
|
|
9629
9634
|
id: U.paragraphStyle.headingId,
|
|
9630
|
-
text:
|
|
9635
|
+
text: no(r.slice(ne, ie)),
|
|
9631
9636
|
level: H,
|
|
9632
9637
|
isTitle: ((ae = U.paragraphStyle) == null ? void 0 : ae.namedStyleType) === K.TITLE
|
|
9633
9638
|
};
|
|
@@ -9896,7 +9901,7 @@ function qh() {
|
|
|
9896
9901
|
/* @__PURE__ */ Q(
|
|
9897
9902
|
"div",
|
|
9898
9903
|
{
|
|
9899
|
-
className: Ge("univer-mt-4 univer-box-border univer-flex univer-w-full univer-items-center univer-justify-between univer-gap-1 univer-rounded-md univer-p-1",
|
|
9904
|
+
className: Ge("univer-mt-4 univer-box-border univer-flex univer-w-full univer-items-center univer-justify-between univer-gap-1 univer-rounded-md univer-p-1", Ln),
|
|
9900
9905
|
children: e.map((E) => /* @__PURE__ */ Q(td, { title: E.label, placement: "bottom", children: /* @__PURE__ */ Q(
|
|
9901
9906
|
"span",
|
|
9902
9907
|
{
|
|
@@ -10087,8 +10092,8 @@ const At = (n) => {
|
|
|
10087
10092
|
return Li(o, e, t), () => r.unsubscribe();
|
|
10088
10093
|
});
|
|
10089
10094
|
}, tg = (n) => ({
|
|
10090
|
-
id:
|
|
10091
|
-
commandId:
|
|
10095
|
+
id: so.name,
|
|
10096
|
+
commandId: so.id,
|
|
10092
10097
|
type: Z.BUTTON,
|
|
10093
10098
|
icon: "CopyDoubleIcon",
|
|
10094
10099
|
title: "rightClick.copy",
|
|
@@ -10127,7 +10132,7 @@ function ig(n) {
|
|
|
10127
10132
|
type: Z.SUBITEMS,
|
|
10128
10133
|
title: "table.insert",
|
|
10129
10134
|
icon: "InsertDoubleIcon",
|
|
10130
|
-
hidden$:
|
|
10135
|
+
hidden$: Nn(se(n, _.UNIVER_DOC), At(n), (e, t) => e || t)
|
|
10131
10136
|
};
|
|
10132
10137
|
}
|
|
10133
10138
|
function ag(n) {
|
|
@@ -10177,7 +10182,7 @@ function Ag(n) {
|
|
|
10177
10182
|
type: Z.SUBITEMS,
|
|
10178
10183
|
title: "table.delete",
|
|
10179
10184
|
icon: "ReduceDoubleIcon",
|
|
10180
|
-
hidden$:
|
|
10185
|
+
hidden$: Nn(se(n, _.UNIVER_DOC), At(n), (e, t) => e || t)
|
|
10181
10186
|
};
|
|
10182
10187
|
}
|
|
10183
10188
|
function ug(n) {
|
|
@@ -10202,7 +10207,7 @@ function hg(n) {
|
|
|
10202
10207
|
}
|
|
10203
10208
|
function gg(n) {
|
|
10204
10209
|
return {
|
|
10205
|
-
id:
|
|
10210
|
+
id: kn.id,
|
|
10206
10211
|
type: Z.BUTTON,
|
|
10207
10212
|
title: "table.deleteTable",
|
|
10208
10213
|
icon: "GridIcon",
|
|
@@ -10255,7 +10260,7 @@ const fg = {
|
|
|
10255
10260
|
[It.id]: {
|
|
10256
10261
|
order: 9,
|
|
10257
10262
|
menuItemFactory: _u,
|
|
10258
|
-
[
|
|
10263
|
+
[Fn.id]: {
|
|
10259
10264
|
order: 0,
|
|
10260
10265
|
menuItemFactory: Mu
|
|
10261
10266
|
}
|
|
@@ -10290,7 +10295,7 @@ const fg = {
|
|
|
10290
10295
|
order: 8,
|
|
10291
10296
|
menuItemFactory: xi
|
|
10292
10297
|
},
|
|
10293
|
-
[
|
|
10298
|
+
[io.id]: {
|
|
10294
10299
|
order: 9,
|
|
10295
10300
|
menuItemFactory: Oi
|
|
10296
10301
|
},
|
|
@@ -10317,9 +10322,9 @@ const fg = {
|
|
|
10317
10322
|
}
|
|
10318
10323
|
}
|
|
10319
10324
|
},
|
|
10320
|
-
[
|
|
10325
|
+
[oo.MAIN_AREA]: {
|
|
10321
10326
|
[cn.FORMAT]: {
|
|
10322
|
-
[
|
|
10327
|
+
[so.name]: {
|
|
10323
10328
|
order: 0,
|
|
10324
10329
|
menuItemFactory: tg
|
|
10325
10330
|
},
|
|
@@ -10372,14 +10377,14 @@ const fg = {
|
|
|
10372
10377
|
order: 2,
|
|
10373
10378
|
menuItemFactory: hg
|
|
10374
10379
|
},
|
|
10375
|
-
[
|
|
10380
|
+
[kn.id]: {
|
|
10376
10381
|
order: 3,
|
|
10377
10382
|
menuItemFactory: gg
|
|
10378
10383
|
}
|
|
10379
10384
|
}
|
|
10380
10385
|
}
|
|
10381
10386
|
},
|
|
10382
|
-
[
|
|
10387
|
+
[oo.PARAGRAPH]: {
|
|
10383
10388
|
[cn.QUICK]: {
|
|
10384
10389
|
[hs.id]: {
|
|
10385
10390
|
order: 0,
|
|
@@ -10401,7 +10406,7 @@ const fg = {
|
|
|
10401
10406
|
order: 4,
|
|
10402
10407
|
menuItemFactory: Uu
|
|
10403
10408
|
},
|
|
10404
|
-
[
|
|
10409
|
+
[ao.id]: {
|
|
10405
10410
|
order: 5,
|
|
10406
10411
|
menuItemFactory: Fu
|
|
10407
10412
|
},
|
|
@@ -10413,7 +10418,7 @@ const fg = {
|
|
|
10413
10418
|
order: 7,
|
|
10414
10419
|
menuItemFactory: xi
|
|
10415
10420
|
},
|
|
10416
|
-
[
|
|
10421
|
+
[io.id]: {
|
|
10417
10422
|
order: 8,
|
|
10418
10423
|
menuItemFactory: Oi
|
|
10419
10424
|
}
|
|
@@ -10461,7 +10466,7 @@ var pg = Object.getOwnPropertyDescriptor, mg = (n, e, t, o) => {
|
|
|
10461
10466
|
(i = n[s]) && (r = i(r) || r);
|
|
10462
10467
|
return r;
|
|
10463
10468
|
}, it = (n, e) => (t, o) => e(t, o, n);
|
|
10464
|
-
let
|
|
10469
|
+
let uo = class extends me {
|
|
10465
10470
|
constructor(n, e, t, o, r, s, i, a, c) {
|
|
10466
10471
|
super(), this._injector = n, this._componentManager = e, this._commandService = t, this._layoutService = o, this._menuManagerService = r, this._uiPartsService = s, this._univerInstanceService = i, this._shortcutService = a, this._configService = c, this._init();
|
|
10467
10472
|
}
|
|
@@ -10524,8 +10529,8 @@ let ho = class extends me {
|
|
|
10524
10529
|
);
|
|
10525
10530
|
}
|
|
10526
10531
|
};
|
|
10527
|
-
|
|
10528
|
-
it(0, j(
|
|
10532
|
+
uo = mg([
|
|
10533
|
+
it(0, j(wn)),
|
|
10529
10534
|
it(1, j(sn)),
|
|
10530
10535
|
it(2, T),
|
|
10531
10536
|
it(3, To),
|
|
@@ -10534,14 +10539,14 @@ ho = mg([
|
|
|
10534
10539
|
it(6, L),
|
|
10535
10540
|
it(7, Bo),
|
|
10536
10541
|
it(8, Wr)
|
|
10537
|
-
],
|
|
10542
|
+
], uo);
|
|
10538
10543
|
var Eg = Object.getOwnPropertyDescriptor, Ig = (n, e, t, o) => {
|
|
10539
10544
|
for (var r = o > 1 ? void 0 : o ? Eg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
10540
10545
|
(i = n[s]) && (r = i(r) || r);
|
|
10541
10546
|
return r;
|
|
10542
10547
|
}, sr = (n, e) => (t, o) => e(t, o, n);
|
|
10543
10548
|
const Qi = 1.5;
|
|
10544
|
-
let
|
|
10549
|
+
let ho = class extends Rt {
|
|
10545
10550
|
constructor(n, e, t, o) {
|
|
10546
10551
|
super(), this._context = n, this._textSelectionManagerService = e, this._editorService = t, this._docSkeletonManagerService = o, this._init();
|
|
10547
10552
|
}
|
|
@@ -10550,7 +10555,7 @@ let go = class extends Rt {
|
|
|
10550
10555
|
if (n == null)
|
|
10551
10556
|
return;
|
|
10552
10557
|
const { isEditing: e, unitId: t } = n;
|
|
10553
|
-
t !== this._context.unitId || !e || this._context.unitId !==
|
|
10558
|
+
t !== this._context.unitId || !e || this._context.unitId !== yo && this._scrollToSelection();
|
|
10554
10559
|
});
|
|
10555
10560
|
}
|
|
10556
10561
|
scrollToRange(n) {
|
|
@@ -10565,7 +10570,7 @@ let go = class extends Rt {
|
|
|
10565
10570
|
const { unitId: e, scene: t, mainComponent: o } = this._context, r = this._docSkeletonManagerService.getSkeleton();
|
|
10566
10571
|
if (o == null || r == null)
|
|
10567
10572
|
return;
|
|
10568
|
-
const s = o.getOffsetConfig(), { docsLeft: i, docsTop: a } = s, c = new St(s, r), { contentBoxPointGroup: d } = c.getRangePointData(n, n), { left: l, top: A, height: h } =
|
|
10573
|
+
const s = o.getOffsetConfig(), { docsLeft: i, docsTop: a } = s, c = new St(s, r), { contentBoxPointGroup: d } = c.getRangePointData(n, n), { left: l, top: A, height: h } = $n(d), u = l + i, g = A + a, f = t.getViewport(je.VIEW_MAIN), p = this._editorService.getEditor(e);
|
|
10569
10574
|
if (f == null)
|
|
10570
10575
|
return;
|
|
10571
10576
|
const {
|
|
@@ -10589,11 +10594,11 @@ let go = class extends Rt {
|
|
|
10589
10594
|
e && this.scrollToNode(t);
|
|
10590
10595
|
}
|
|
10591
10596
|
};
|
|
10592
|
-
|
|
10597
|
+
ho = Ig([
|
|
10593
10598
|
sr(1, j(Y)),
|
|
10594
10599
|
sr(2, Ye),
|
|
10595
10600
|
sr(3, j(de))
|
|
10596
|
-
],
|
|
10601
|
+
], ho);
|
|
10597
10602
|
var Sg = Object.getOwnPropertyDescriptor, vg = (n, e, t, o) => {
|
|
10598
10603
|
for (var r = o > 1 ? void 0 : o ? Sg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
10599
10604
|
(i = n[s]) && (r = i(r) || r);
|
|
@@ -10765,7 +10770,7 @@ let xr = class {
|
|
|
10765
10770
|
};
|
|
10766
10771
|
xr = bg([
|
|
10767
10772
|
ir(0, j(Ke)),
|
|
10768
|
-
ir(1, j(
|
|
10773
|
+
ir(1, j(wn)),
|
|
10769
10774
|
ir(2, Wr)
|
|
10770
10775
|
], xr);
|
|
10771
10776
|
var yg = Object.getOwnPropertyDescriptor, xg = (n, e, t, o) => {
|
|
@@ -10773,22 +10778,22 @@ var yg = Object.getOwnPropertyDescriptor, xg = (n, e, t, o) => {
|
|
|
10773
10778
|
(i = n[s]) && (r = i(r) || r);
|
|
10774
10779
|
return r;
|
|
10775
10780
|
}, Og = (n, e) => (t, o) => e(t, o, n);
|
|
10776
|
-
let
|
|
10781
|
+
let go = class extends Rt {
|
|
10777
10782
|
constructor(e) {
|
|
10778
10783
|
super();
|
|
10779
10784
|
O(this, "_docContainerController");
|
|
10780
10785
|
this._injector = e, this._docContainerController = this._injector.createInstance(xr);
|
|
10781
10786
|
}
|
|
10782
10787
|
};
|
|
10783
|
-
|
|
10784
|
-
Og(0, j(
|
|
10785
|
-
],
|
|
10788
|
+
go = xg([
|
|
10789
|
+
Og(0, j(wn))
|
|
10790
|
+
], go);
|
|
10786
10791
|
var Tg = Object.getOwnPropertyDescriptor, Bg = (n, e, t, o) => {
|
|
10787
10792
|
for (var r = o > 1 ? void 0 : o ? Tg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
10788
10793
|
(i = n[s]) && (r = i(r) || r);
|
|
10789
10794
|
return r;
|
|
10790
10795
|
}, Ui = (n, e) => (t, o) => e(t, o, n);
|
|
10791
|
-
let
|
|
10796
|
+
let fo = class extends me {
|
|
10792
10797
|
constructor(n, e) {
|
|
10793
10798
|
super(), this._docAutoFormatService = n, this._renderManagerService = e, this._initListTabAutoFormat(), this._initSpaceAutoFormat(), this._initDefaultEnterFormat(), this._initExitListAutoFormat();
|
|
10794
10799
|
}
|
|
@@ -10815,7 +10820,7 @@ let po = class extends me {
|
|
|
10815
10820
|
return [{
|
|
10816
10821
|
id: fr.id,
|
|
10817
10822
|
params: {
|
|
10818
|
-
type: e != null && e.shift ?
|
|
10823
|
+
type: e != null && e.shift ? Xn.decrease : Xn.increase
|
|
10819
10824
|
}
|
|
10820
10825
|
}];
|
|
10821
10826
|
},
|
|
@@ -10893,10 +10898,10 @@ let po = class extends me {
|
|
|
10893
10898
|
return e ? e.nestingLevel > 0 ? [{
|
|
10894
10899
|
id: fr.id,
|
|
10895
10900
|
params: {
|
|
10896
|
-
type:
|
|
10901
|
+
type: Xn.decrease
|
|
10897
10902
|
}
|
|
10898
10903
|
}] : [{
|
|
10899
|
-
id:
|
|
10904
|
+
id: Hn.id,
|
|
10900
10905
|
params: {
|
|
10901
10906
|
listType: n.paragraphs[0].bullet.listType
|
|
10902
10907
|
}
|
|
@@ -10920,10 +10925,10 @@ let po = class extends me {
|
|
|
10920
10925
|
);
|
|
10921
10926
|
}
|
|
10922
10927
|
};
|
|
10923
|
-
|
|
10928
|
+
fo = Bg([
|
|
10924
10929
|
Ui(0, j(wt)),
|
|
10925
10930
|
Ui(1, pe)
|
|
10926
|
-
],
|
|
10931
|
+
], fo);
|
|
10927
10932
|
function Mg(n) {
|
|
10928
10933
|
return n.rows[0].cells[0].sections[0].columns[0].lines[0];
|
|
10929
10934
|
}
|
|
@@ -11033,8 +11038,8 @@ var Lg = Object.getOwnPropertyDescriptor, Qg = (n, e, t, o) => {
|
|
|
11033
11038
|
for (var r = o > 1 ? void 0 : o ? Lg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11034
11039
|
(i = n[s]) && (r = i(r) || r);
|
|
11035
11040
|
return r;
|
|
11036
|
-
},
|
|
11037
|
-
let
|
|
11041
|
+
}, zn = (n, e) => (t, o) => e(t, o, n);
|
|
11042
|
+
let po = class extends me {
|
|
11038
11043
|
constructor(e, t, o, r) {
|
|
11039
11044
|
super();
|
|
11040
11045
|
O(this, "_onInputSubscription");
|
|
@@ -11324,7 +11329,7 @@ let mo = class extends me {
|
|
|
11324
11329
|
}
|
|
11325
11330
|
_scrollToFocusNodePosition(e, t) {
|
|
11326
11331
|
var r;
|
|
11327
|
-
const o = (r = this._renderManagerService.getRenderById(e)) == null ? void 0 : r.with(
|
|
11332
|
+
const o = (r = this._renderManagerService.getRenderById(e)) == null ? void 0 : r.with(ho);
|
|
11328
11333
|
o != null && o.scrollToRange({
|
|
11329
11334
|
startOffset: t,
|
|
11330
11335
|
endOffset: t,
|
|
@@ -11335,12 +11340,12 @@ let mo = class extends me {
|
|
|
11335
11340
|
return ld(this._univerInstanceService, this._renderManagerService);
|
|
11336
11341
|
}
|
|
11337
11342
|
};
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
],
|
|
11343
|
+
po = Qg([
|
|
11344
|
+
zn(0, L),
|
|
11345
|
+
zn(1, pe),
|
|
11346
|
+
zn(2, j(Y)),
|
|
11347
|
+
zn(3, T)
|
|
11348
|
+
], po);
|
|
11344
11349
|
function Hi(n, e) {
|
|
11345
11350
|
var o, r;
|
|
11346
11351
|
let t = null;
|
|
@@ -11413,7 +11418,7 @@ var Fg = Object.getOwnPropertyDescriptor, Hg = (n, e, t, o) => {
|
|
|
11413
11418
|
(i = n[s]) && (r = i(r) || r);
|
|
11414
11419
|
return r;
|
|
11415
11420
|
}, ki = (n, e) => (t, o) => e(t, o, n);
|
|
11416
|
-
let
|
|
11421
|
+
let mo = class extends me {
|
|
11417
11422
|
constructor(n, e) {
|
|
11418
11423
|
super(), this._commandService = n, this._componentManager = e, this._initialize();
|
|
11419
11424
|
}
|
|
@@ -11432,15 +11437,15 @@ let Eo = class extends me {
|
|
|
11432
11437
|
_init() {
|
|
11433
11438
|
}
|
|
11434
11439
|
};
|
|
11435
|
-
|
|
11440
|
+
mo = Hg([
|
|
11436
11441
|
ki(0, T),
|
|
11437
11442
|
ki(1, j(sn))
|
|
11438
|
-
],
|
|
11443
|
+
], mo);
|
|
11439
11444
|
var kg = Object.getOwnPropertyDescriptor, Vg = (n, e, t, o) => {
|
|
11440
11445
|
for (var r = o > 1 ? void 0 : o ? kg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11441
11446
|
(i = n[s]) && (r = i(r) || r);
|
|
11442
11447
|
return r;
|
|
11443
|
-
},
|
|
11448
|
+
}, Gn = (n, e) => (t, o) => e(t, o, n);
|
|
11444
11449
|
let Or = class extends me {
|
|
11445
11450
|
constructor(n, e, t, o, r) {
|
|
11446
11451
|
super(), this._context = n, this._docSkeletonManagerService = e, this._commandService = t, this._docEventManagerService = o, this._textSelectionManagerService = r, this._initPointerDownObserver(), this._initHoverCursor();
|
|
@@ -11469,17 +11474,17 @@ let Or = class extends me {
|
|
|
11469
11474
|
}
|
|
11470
11475
|
};
|
|
11471
11476
|
Or = Vg([
|
|
11472
|
-
|
|
11473
|
-
|
|
11474
|
-
|
|
11475
|
-
|
|
11477
|
+
Gn(1, j(de)),
|
|
11478
|
+
Gn(2, T),
|
|
11479
|
+
Gn(3, j(Pt)),
|
|
11480
|
+
Gn(4, j(Y))
|
|
11476
11481
|
], Or);
|
|
11477
11482
|
var Wg = Object.getOwnPropertyDescriptor, jg = (n, e, t, o) => {
|
|
11478
11483
|
for (var r = o > 1 ? void 0 : o ? Wg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11479
11484
|
(i = n[s]) && (r = i(r) || r);
|
|
11480
11485
|
return r;
|
|
11481
11486
|
}, un = (n, e) => (t, o) => e(t, o, n);
|
|
11482
|
-
let
|
|
11487
|
+
let Eo = class extends Rt {
|
|
11483
11488
|
constructor(n, e, t, o, r, s) {
|
|
11484
11489
|
super(), this._context = n, this._commandService = e, this._docClipboardService = t, this._docSelectionRenderService = o, this._contextService = r, this._editorService = s, this._init();
|
|
11485
11490
|
}
|
|
@@ -11500,13 +11505,13 @@ let Io = class extends Rt {
|
|
|
11500
11505
|
});
|
|
11501
11506
|
}
|
|
11502
11507
|
};
|
|
11503
|
-
|
|
11508
|
+
Eo = jg([
|
|
11504
11509
|
un(1, T),
|
|
11505
11510
|
un(2, Lt),
|
|
11506
11511
|
un(3, j(Re)),
|
|
11507
11512
|
un(4, Hr),
|
|
11508
11513
|
un(5, Ye)
|
|
11509
|
-
],
|
|
11514
|
+
], Eo);
|
|
11510
11515
|
var zg = Object.getOwnPropertyDescriptor, Gg = (n, e, t, o) => {
|
|
11511
11516
|
for (var r = o > 1 ? void 0 : o ? zg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11512
11517
|
(i = n[s]) && (r = i(r) || r);
|
|
@@ -11515,7 +11520,7 @@ var zg = Object.getOwnPropertyDescriptor, Gg = (n, e, t, o) => {
|
|
|
11515
11520
|
const Yg = [
|
|
11516
11521
|
Xi,
|
|
11517
11522
|
Yc,
|
|
11518
|
-
|
|
11523
|
+
yo,
|
|
11519
11524
|
ot
|
|
11520
11525
|
];
|
|
11521
11526
|
let Tr = class extends me {
|
|
@@ -11525,7 +11530,7 @@ let Tr = class extends me {
|
|
|
11525
11530
|
_initPointerDown() {
|
|
11526
11531
|
var t, o;
|
|
11527
11532
|
const e = ((o = (t = this._context) == null ? void 0 : t.mainComponent) == null ? void 0 : o.onPointerDown$).subscribeEvent((r) => {
|
|
11528
|
-
r.button === 2 && this._contextMenuService.triggerContextMenu(r,
|
|
11533
|
+
r.button === 2 && this._contextMenuService.triggerContextMenu(r, oo.MAIN_AREA);
|
|
11529
11534
|
});
|
|
11530
11535
|
this.disposeWithMe(e);
|
|
11531
11536
|
}
|
|
@@ -11546,7 +11551,7 @@ var Kg = Object.getOwnPropertyDescriptor, qg = (n, e, t, o) => {
|
|
|
11546
11551
|
(i = n[s]) && (r = i(r) || r);
|
|
11547
11552
|
return r;
|
|
11548
11553
|
}, Gt = (n, e) => (t, o) => e(t, o, n);
|
|
11549
|
-
let
|
|
11554
|
+
let Io = class extends me {
|
|
11550
11555
|
constructor(e, t, o, r, s, i, a) {
|
|
11551
11556
|
super();
|
|
11552
11557
|
O(this, "_initialEditors", /* @__PURE__ */ new Set());
|
|
@@ -11587,8 +11592,8 @@ let So = class extends me {
|
|
|
11587
11592
|
})
|
|
11588
11593
|
), this.disposeWithMe(
|
|
11589
11594
|
this._docSelectionRenderService.onBlur$.subscribe(() => {
|
|
11590
|
-
const { unitId: e } = this._context, t = this._editorService.getEditor(e), o = this._editorService.getFocusEditor()
|
|
11591
|
-
|
|
11595
|
+
const { unitId: e } = this._context, t = this._editorService.getEditor(e), o = this._editorService.getFocusEditor();
|
|
11596
|
+
t == null || t.isSheetEditor() || o && o.getEditorId() === e || e.includes("range_selector") || e.includes("embedding_formula_editor") || this._editorService.blur();
|
|
11592
11597
|
})
|
|
11593
11598
|
);
|
|
11594
11599
|
}
|
|
@@ -11637,24 +11642,20 @@ let So = class extends me {
|
|
|
11637
11642
|
})
|
|
11638
11643
|
);
|
|
11639
11644
|
}
|
|
11640
|
-
_getEditorSkeleton() {
|
|
11641
|
-
var e;
|
|
11642
|
-
return (e = this._renderManagerService.getRenderById(Dn)) == null ? void 0 : e.with(de).getSkeleton();
|
|
11643
|
-
}
|
|
11644
11645
|
};
|
|
11645
|
-
|
|
11646
|
+
Io = qg([
|
|
11646
11647
|
Gt(1, L),
|
|
11647
11648
|
Gt(2, Ye),
|
|
11648
11649
|
Gt(3, T),
|
|
11649
11650
|
Gt(4, j(Re)),
|
|
11650
11651
|
Gt(5, j(de)),
|
|
11651
11652
|
Gt(6, pe)
|
|
11652
|
-
],
|
|
11653
|
+
], Io);
|
|
11653
11654
|
var Xg = Object.getOwnPropertyDescriptor, Zg = (n, e, t, o) => {
|
|
11654
11655
|
for (var r = o > 1 ? void 0 : o ? Xg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11655
11656
|
(i = n[s]) && (r = i(r) || r);
|
|
11656
11657
|
return r;
|
|
11657
|
-
},
|
|
11658
|
+
}, Yn = (n, e) => (t, o) => e(t, o, n);
|
|
11658
11659
|
let Br = class extends me {
|
|
11659
11660
|
constructor(e, t, o, r, s) {
|
|
11660
11661
|
super();
|
|
@@ -11711,16 +11712,16 @@ let Br = class extends me {
|
|
|
11711
11712
|
}
|
|
11712
11713
|
};
|
|
11713
11714
|
Br = Zg([
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11715
|
+
Yn(1, j(Re)),
|
|
11716
|
+
Yn(2, j(Lo)),
|
|
11717
|
+
Yn(3, j(de)),
|
|
11718
|
+
Yn(4, T)
|
|
11718
11719
|
], Br);
|
|
11719
11720
|
var Jg = Object.getOwnPropertyDescriptor, $g = (n, e, t, o) => {
|
|
11720
11721
|
for (var r = o > 1 ? void 0 : o ? Jg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11721
11722
|
(i = n[s]) && (r = i(r) || r);
|
|
11722
11723
|
return r;
|
|
11723
|
-
},
|
|
11724
|
+
}, Kn = (n, e) => (t, o) => e(t, o, n);
|
|
11724
11725
|
let Mr = class extends me {
|
|
11725
11726
|
constructor(e, t, o, r, s) {
|
|
11726
11727
|
super();
|
|
@@ -11772,10 +11773,10 @@ let Mr = class extends me {
|
|
|
11772
11773
|
}
|
|
11773
11774
|
};
|
|
11774
11775
|
Mr = $g([
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11776
|
+
Kn(1, j(Re)),
|
|
11777
|
+
Kn(2, j(de)),
|
|
11778
|
+
Kn(3, T),
|
|
11779
|
+
Kn(4, j(ct))
|
|
11779
11780
|
], Mr);
|
|
11780
11781
|
class Ns extends me {
|
|
11781
11782
|
constructor(e) {
|
|
@@ -11810,7 +11811,7 @@ let _r = class extends me {
|
|
|
11810
11811
|
_initResize() {
|
|
11811
11812
|
this.disposeWithMe(
|
|
11812
11813
|
_t(this._context.engine.onTransformChange$).pipe(
|
|
11813
|
-
|
|
11814
|
+
ro((n) => n.type === oa.resize),
|
|
11814
11815
|
bn(0, Kl)
|
|
11815
11816
|
).subscribe(() => {
|
|
11816
11817
|
this._docPageLayoutService.calculatePagePosition(), this._textSelectionManagerService.refreshSelection();
|
|
@@ -11965,7 +11966,7 @@ let wr = class extends me {
|
|
|
11965
11966
|
constructor(e, t, o, r, s, i, a, c, d) {
|
|
11966
11967
|
super();
|
|
11967
11968
|
O(this, "_isSheetEditor", !1);
|
|
11968
|
-
this._context = e, this._contextService = t, this._docSkeletonManagerService = o, this._univerInstanceService = r, this._commandService = s, this._textSelectionManagerService = i, this._editorService = a, this._docPageLayoutService = c, this._renderManagerService = d, this._initSkeletonListener(), this._initCommandExecutedListener(), this._initRenderRefresher(), this._isSheetEditor = this._context.unitId ===
|
|
11969
|
+
this._context = e, this._contextService = t, this._docSkeletonManagerService = o, this._univerInstanceService = r, this._commandService = s, this._textSelectionManagerService = i, this._editorService = a, this._docPageLayoutService = c, this._renderManagerService = d, this._initSkeletonListener(), this._initCommandExecutedListener(), this._initRenderRefresher(), this._isSheetEditor = this._context.unitId === yo;
|
|
11969
11970
|
const l = this._univerInstanceService.getCurrentUnitOfType(_.UNIVER_SHEET), A = l && this._renderManagerService.getRenderById(l.getUnitId());
|
|
11970
11971
|
setTimeout(() => this.updateViewZoom(A && this._isSheetEditor ? A.scene.scaleX : 1, !0), 20), bt(this._context.unitId) || this._initZoomEventListener();
|
|
11971
11972
|
}
|
|
@@ -11975,7 +11976,7 @@ let wr = class extends me {
|
|
|
11975
11976
|
return;
|
|
11976
11977
|
const { unitId: t, scene: o } = this._context;
|
|
11977
11978
|
this._editorService.isEditor(t) || this.disposeWithMe(o.onMouseWheel$.subscribeEvent((r) => {
|
|
11978
|
-
if (!r.ctrlKey || !this._contextService.getContextValue(
|
|
11979
|
+
if (!r.ctrlKey || !this._contextService.getContextValue(Dn))
|
|
11979
11980
|
return;
|
|
11980
11981
|
const s = this._univerInstanceService.getCurrentUniverDocInstance();
|
|
11981
11982
|
if (!s)
|
|
@@ -11988,7 +11989,7 @@ let wr = class extends me {
|
|
|
11988
11989
|
c *= r.deltaY > 0 ? -1 : 1, o.scaleX < 1 && (c /= 2);
|
|
11989
11990
|
const d = s.zoomRatio;
|
|
11990
11991
|
let l = +Number.parseFloat(`${d + c}`).toFixed(1);
|
|
11991
|
-
l = l >= 4 ? 4 : l <= 0.1 ? 0.1 : l, this._commandService.executeCommand(
|
|
11992
|
+
l = l >= 4 ? 4 : l <= 0.1 ? 0.1 : l, this._commandService.executeCommand(Zn.id, {
|
|
11992
11993
|
zoomRatio: l,
|
|
11993
11994
|
unitId: s.getUnitId()
|
|
11994
11995
|
}), r.preventDefault();
|
|
@@ -12015,7 +12016,7 @@ let wr = class extends me {
|
|
|
12015
12016
|
}
|
|
12016
12017
|
})), this.disposeWithMe(
|
|
12017
12018
|
this._commandService.beforeCommandExecuted((t) => {
|
|
12018
|
-
t.id === Vo.id && this._commandService.executeCommand(
|
|
12019
|
+
t.id === Vo.id && this._commandService.executeCommand(Zn.id, {
|
|
12019
12020
|
zoomRatio: 1,
|
|
12020
12021
|
unitId: this._context.unitId
|
|
12021
12022
|
});
|
|
@@ -12039,7 +12040,7 @@ let wr = class extends me {
|
|
|
12039
12040
|
r *= t.deltaY > 0 ? -1 : 1, e.scaleX < 1 && (r /= 2);
|
|
12040
12041
|
const s = this._context.unit.zoomRatio;
|
|
12041
12042
|
let i = +Number.parseFloat(`${s + r}`).toFixed(1);
|
|
12042
|
-
i = i >= 4 ? 4 : i <= 0.1 ? 0.1 : i, this._commandService.executeCommand(
|
|
12043
|
+
i = i >= 4 ? 4 : i <= 0.1 ? 0.1 : i, this._commandService.executeCommand(Zn.id, {
|
|
12043
12044
|
zoomRatio: Math.round(i * 10) / 10,
|
|
12044
12045
|
documentId: this._context.unitId
|
|
12045
12046
|
}), t.preventDefault();
|
|
@@ -12087,7 +12088,7 @@ var df = Object.getOwnPropertyDescriptor, Af = (n, e, t, o) => {
|
|
|
12087
12088
|
return r;
|
|
12088
12089
|
}, hn = (n, e) => (t, o) => e(t, o, n);
|
|
12089
12090
|
const ji = 300;
|
|
12090
|
-
let
|
|
12091
|
+
let So = class extends Rt {
|
|
12091
12092
|
constructor(e, t, o, r, s) {
|
|
12092
12093
|
super();
|
|
12093
12094
|
O(this, "_docStateChange$", new Fe(null));
|
|
@@ -12206,20 +12207,20 @@ let vo = class extends Rt {
|
|
|
12206
12207
|
t.length = 0, this._docStateChange$.next(u);
|
|
12207
12208
|
}
|
|
12208
12209
|
};
|
|
12209
|
-
|
|
12210
|
+
So = Af([
|
|
12210
12211
|
hn(0, j(xo)),
|
|
12211
12212
|
hn(1, T),
|
|
12212
12213
|
hn(2, L),
|
|
12213
12214
|
hn(3, j(tl)),
|
|
12214
12215
|
hn(4, pe)
|
|
12215
|
-
],
|
|
12216
|
+
], So);
|
|
12216
12217
|
var uf = Object.getOwnPropertyDescriptor, hf = (n, e, t, o) => {
|
|
12217
12218
|
for (var r = o > 1 ? void 0 : o ? uf(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
12218
12219
|
(i = n[s]) && (r = i(r) || r);
|
|
12219
12220
|
return r;
|
|
12220
12221
|
}, zi = (n, e) => (t, o) => e(t, o, n);
|
|
12221
12222
|
const Gi = "univer-doc-main-canvas";
|
|
12222
|
-
let
|
|
12223
|
+
let vo = class extends Rt {
|
|
12223
12224
|
constructor(n, e) {
|
|
12224
12225
|
super(), this._instanceSrv = n, this._renderManagerService = e, this._init();
|
|
12225
12226
|
}
|
|
@@ -12241,10 +12242,10 @@ let Co = class extends Rt {
|
|
|
12241
12242
|
this._renderManagerService.removeRender(e);
|
|
12242
12243
|
}
|
|
12243
12244
|
};
|
|
12244
|
-
|
|
12245
|
+
vo = hf([
|
|
12245
12246
|
zi(0, L),
|
|
12246
12247
|
zi(1, pe)
|
|
12247
|
-
],
|
|
12248
|
+
], vo);
|
|
12248
12249
|
const gf = {
|
|
12249
12250
|
id: yn.id,
|
|
12250
12251
|
preconditions: dh,
|
|
@@ -12316,7 +12317,7 @@ const gf = {
|
|
|
12316
12317
|
}, yf = {
|
|
12317
12318
|
id: Ta.id,
|
|
12318
12319
|
binding: q.A | te.CTRL_COMMAND,
|
|
12319
|
-
preconditions: (n) => n.getContextValue(kr) && (n.getContextValue(
|
|
12320
|
+
preconditions: (n) => n.getContextValue(kr) && (n.getContextValue(Dn) || n.getContextValue(to))
|
|
12320
12321
|
};
|
|
12321
12322
|
var xf = Object.defineProperty, Of = Object.getOwnPropertyDescriptor, Tf = (n, e, t) => e in n ? xf(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Bf = (n, e, t, o) => {
|
|
12322
12323
|
for (var r = o > 1 ? void 0 : o ? Of(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
@@ -12336,19 +12337,19 @@ let Pr = class extends Zc {
|
|
|
12336
12337
|
}
|
|
12337
12338
|
onReady() {
|
|
12338
12339
|
this._initRenderBasics(), this._markDocAsFocused(), Vs(this._injector, [
|
|
12339
|
-
[
|
|
12340
|
-
[
|
|
12340
|
+
[So],
|
|
12341
|
+
[vo]
|
|
12341
12342
|
]);
|
|
12342
12343
|
}
|
|
12343
12344
|
onRendered() {
|
|
12344
12345
|
this._initUI(), this._initRenderModules(), Vs(this._injector, [
|
|
12346
|
+
[fo],
|
|
12345
12347
|
[po],
|
|
12346
|
-
[mo],
|
|
12347
12348
|
[nn],
|
|
12348
|
-
[
|
|
12349
|
+
[mo],
|
|
12349
12350
|
// FIXME: LifecycleStages.Rendered must be used, otherwise the menu cannot be added to the DOM, but the sheet ui
|
|
12350
12351
|
// plugin can be added in LifecycleStages.Ready
|
|
12351
|
-
[
|
|
12352
|
+
[uo]
|
|
12352
12353
|
]);
|
|
12353
12354
|
}
|
|
12354
12355
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -12365,7 +12366,7 @@ let Pr = class extends Zc {
|
|
|
12365
12366
|
lt,
|
|
12366
12367
|
tn,
|
|
12367
12368
|
Et,
|
|
12368
|
-
|
|
12369
|
+
Fn,
|
|
12369
12370
|
It,
|
|
12370
12371
|
xt,
|
|
12371
12372
|
Yr,
|
|
@@ -12378,7 +12379,7 @@ let Pr = class extends Zc {
|
|
|
12378
12379
|
nt,
|
|
12379
12380
|
Tn,
|
|
12380
12381
|
On,
|
|
12381
|
-
|
|
12382
|
+
Hn,
|
|
12382
12383
|
Uo,
|
|
12383
12384
|
Fo,
|
|
12384
12385
|
Ho,
|
|
@@ -12394,7 +12395,7 @@ let Pr = class extends Zc {
|
|
|
12394
12395
|
Os,
|
|
12395
12396
|
Ss,
|
|
12396
12397
|
vs,
|
|
12397
|
-
|
|
12398
|
+
kn,
|
|
12398
12399
|
_s,
|
|
12399
12400
|
Ga,
|
|
12400
12401
|
Jt,
|
|
@@ -12402,7 +12403,7 @@ let Pr = class extends Zc {
|
|
|
12402
12403
|
yn,
|
|
12403
12404
|
fr,
|
|
12404
12405
|
Qo,
|
|
12405
|
-
|
|
12406
|
+
io,
|
|
12406
12407
|
Na,
|
|
12407
12408
|
La,
|
|
12408
12409
|
Ba,
|
|
@@ -12413,7 +12414,7 @@ let Pr = class extends Zc {
|
|
|
12413
12414
|
Xd,
|
|
12414
12415
|
Da,
|
|
12415
12416
|
Zd,
|
|
12416
|
-
|
|
12417
|
+
Zn,
|
|
12417
12418
|
Ta,
|
|
12418
12419
|
ws,
|
|
12419
12420
|
vt,
|
|
@@ -12431,7 +12432,7 @@ let Pr = class extends Zc {
|
|
|
12431
12432
|
fs,
|
|
12432
12433
|
ps,
|
|
12433
12434
|
ms,
|
|
12434
|
-
|
|
12435
|
+
ao,
|
|
12435
12436
|
Ua,
|
|
12436
12437
|
Fa,
|
|
12437
12438
|
ds,
|
|
@@ -12442,7 +12443,7 @@ let Pr = class extends Zc {
|
|
|
12442
12443
|
Ds
|
|
12443
12444
|
].forEach((n) => {
|
|
12444
12445
|
this.disposeWithMe(this._commandService.registerCommand(n));
|
|
12445
|
-
}), [
|
|
12446
|
+
}), [so, ss, as].forEach((n) => this.disposeWithMe(this._commandService.registerMultipleCommand(n)));
|
|
12446
12447
|
}
|
|
12447
12448
|
_initializeShortcut() {
|
|
12448
12449
|
[
|
|
@@ -12466,19 +12467,19 @@ let Pr = class extends Zc {
|
|
|
12466
12467
|
_initDependencies(n) {
|
|
12467
12468
|
$c([
|
|
12468
12469
|
[lf],
|
|
12469
|
-
[Io],
|
|
12470
|
-
[So],
|
|
12471
|
-
[ho],
|
|
12472
|
-
[po],
|
|
12473
12470
|
[Eo],
|
|
12474
|
-
[
|
|
12471
|
+
[Io],
|
|
12472
|
+
[uo],
|
|
12475
12473
|
[fo],
|
|
12474
|
+
[mo],
|
|
12475
|
+
[po],
|
|
12476
|
+
[go],
|
|
12476
12477
|
[nn],
|
|
12477
12478
|
[Ye, { useClass: vr }],
|
|
12478
12479
|
[Lt, { useClass: hr }],
|
|
12479
12480
|
[Mn],
|
|
12480
|
-
[Co],
|
|
12481
12481
|
[vo],
|
|
12482
|
+
[So],
|
|
12482
12483
|
[wt],
|
|
12483
12484
|
[ct]
|
|
12484
12485
|
], this._config.override).forEach((t) => n.add(t));
|
|
@@ -12495,7 +12496,7 @@ let Pr = class extends Zc {
|
|
|
12495
12496
|
}
|
|
12496
12497
|
}
|
|
12497
12498
|
_initUI() {
|
|
12498
|
-
this._injector.get(
|
|
12499
|
+
this._injector.get(go);
|
|
12499
12500
|
}
|
|
12500
12501
|
_initRenderBasics() {
|
|
12501
12502
|
[
|
|
@@ -12513,18 +12514,18 @@ let Pr = class extends Zc {
|
|
|
12513
12514
|
_initRenderModules() {
|
|
12514
12515
|
[
|
|
12515
12516
|
[Pt],
|
|
12517
|
+
[lo],
|
|
12516
12518
|
[Ao],
|
|
12517
|
-
[
|
|
12518
|
-
[go],
|
|
12519
|
+
[ho],
|
|
12519
12520
|
[Dr],
|
|
12520
12521
|
[Rr],
|
|
12521
12522
|
[_r],
|
|
12522
12523
|
[Tr],
|
|
12523
12524
|
[Or],
|
|
12524
|
-
[
|
|
12525
|
+
[Eo],
|
|
12525
12526
|
[Mr],
|
|
12526
12527
|
[Br],
|
|
12527
|
-
[
|
|
12528
|
+
[Io]
|
|
12528
12529
|
].forEach((n) => {
|
|
12529
12530
|
this._renderManagerSrv.registerRenderModule(_.UNIVER_DOC, n);
|
|
12530
12531
|
});
|
|
@@ -12533,7 +12534,7 @@ let Pr = class extends Zc {
|
|
|
12533
12534
|
Mf(Pr, "pluginName", id);
|
|
12534
12535
|
Pr = Bf([
|
|
12535
12536
|
Xc(Il),
|
|
12536
|
-
gn(1, j(
|
|
12537
|
+
gn(1, j(wn)),
|
|
12537
12538
|
gn(2, pe),
|
|
12538
12539
|
gn(3, T),
|
|
12539
12540
|
gn(4, Ur),
|
|
@@ -12734,7 +12735,7 @@ function Nf(n, e) {
|
|
|
12734
12735
|
if (r.id === X.id) {
|
|
12735
12736
|
if (r.params.unitId !== n.getEditorId()) return;
|
|
12736
12737
|
const c = n.getDocumentData();
|
|
12737
|
-
e(c,
|
|
12738
|
+
e(c, no((i = (s = c.body) == null ? void 0 : s.dataStream) != null ? i : ""));
|
|
12738
12739
|
}
|
|
12739
12740
|
});
|
|
12740
12741
|
return () => {
|
|
@@ -12784,7 +12785,7 @@ const ep = (n) => {
|
|
|
12784
12785
|
const U = En((k) => {
|
|
12785
12786
|
var ae, oe;
|
|
12786
12787
|
const ne = x == null ? void 0 : x.with(de), ie = ne == null ? void 0 : ne.getSkeleton().getActualSize();
|
|
12787
|
-
ie && (A == null || A(ie.actualHeight), E(Math.max(u, Math.min(ie.actualHeight + 10, g)))), h == null || h(k,
|
|
12788
|
+
ie && (A == null || A(ie.actualHeight), E(Math.max(u, Math.min(ie.actualHeight + 10, g)))), h == null || h(k, no((oe = (ae = k.body) == null ? void 0 : ae.dataStream) != null ? oe : "")), $();
|
|
12788
12789
|
});
|
|
12789
12790
|
return Ce(() => {
|
|
12790
12791
|
var ne, ie;
|
|
@@ -12797,7 +12798,7 @@ const ep = (n) => {
|
|
|
12797
12798
|
}, [C]), tt(C == null ? void 0 : C.blur$), tt(C == null ? void 0 : C.focus$), Ce(() => {
|
|
12798
12799
|
var ne, ie;
|
|
12799
12800
|
const k = C == null ? void 0 : C.getDocumentData();
|
|
12800
|
-
S == null || S(F,
|
|
12801
|
+
S == null || S(F, no((ie = (ne = k == null ? void 0 : k.body) == null ? void 0 : ne.dataStream) != null ? ie : ""));
|
|
12801
12802
|
}, [F, S]), Ce(() => {
|
|
12802
12803
|
const k = (ie) => {
|
|
12803
12804
|
var oe, he;
|
|
@@ -12811,7 +12812,7 @@ const ep = (n) => {
|
|
|
12811
12812
|
}, [C, y, I, v]), Pf(F && a, !1, C), _f(F, i, C), Nf(C, U), /* @__PURE__ */ Q("div", { className: e, style: c, children: /* @__PURE__ */ re(
|
|
12812
12813
|
"div",
|
|
12813
12814
|
{
|
|
12814
|
-
className: Ge("univer-relative univer-box-border univer-flex univer-h-8 univer-w-full univer-items-center univer-justify-around univer-gap-2 univer-rounded-md univer-pb-0.5 univer-pl-1.5 univer-pr-2 univer-pt-1.5",
|
|
12815
|
+
className: Ge("univer-relative univer-box-border univer-flex univer-h-8 univer-w-full univer-items-center univer-justify-around univer-gap-2 univer-rounded-md univer-pb-0.5 univer-pl-1.5 univer-pr-2 univer-pt-1.5", Ln, {
|
|
12815
12816
|
"univer-border-primary-500": F
|
|
12816
12817
|
}),
|
|
12817
12818
|
style: { height: R },
|
|
@@ -12847,9 +12848,9 @@ export {
|
|
|
12847
12848
|
Yr as BreakLineCommand,
|
|
12848
12849
|
On as BulletListCommand,
|
|
12849
12850
|
fr as ChangeListNestingLevelCommand,
|
|
12850
|
-
|
|
12851
|
+
Xn as ChangeListNestingLevelType,
|
|
12851
12852
|
Qo as ChangeListTypeCommand,
|
|
12852
|
-
|
|
12853
|
+
io as CheckListCommand,
|
|
12853
12854
|
Zd as CoverContentCommand,
|
|
12854
12855
|
ja as CreateDocTableCommand,
|
|
12855
12856
|
$t as CutContentCommand,
|
|
@@ -12867,9 +12868,9 @@ export {
|
|
|
12867
12868
|
wo as DeleteLeftCommand,
|
|
12868
12869
|
ya as DeleteRightCommand,
|
|
12869
12870
|
wt as DocAutoFormatService,
|
|
12870
|
-
|
|
12871
|
+
ho as DocBackScrollRenderController,
|
|
12871
12872
|
Mn as DocCanvasPopManagerService,
|
|
12872
|
-
|
|
12873
|
+
so as DocCopyCommand,
|
|
12873
12874
|
Ts as DocCreateTableOperation,
|
|
12874
12875
|
ss as DocCutCommand,
|
|
12875
12876
|
Pt as DocEventManagerService,
|
|
@@ -12879,10 +12880,10 @@ export {
|
|
|
12879
12880
|
yr as DocRenderController,
|
|
12880
12881
|
Ta as DocSelectAllCommand,
|
|
12881
12882
|
Re as DocSelectionRenderService,
|
|
12882
|
-
|
|
12883
|
+
So as DocStateChangeManagerService,
|
|
12883
12884
|
vs as DocTableDeleteColumnsCommand,
|
|
12884
12885
|
Ss as DocTableDeleteRowsCommand,
|
|
12885
|
-
|
|
12886
|
+
kn as DocTableDeleteTableCommand,
|
|
12886
12887
|
vA as DocTableInsertColumnCommand,
|
|
12887
12888
|
xs as DocTableInsertColumnLeftCommand,
|
|
12888
12889
|
Os as DocTableInsertColumnRightCommand,
|
|
@@ -12890,8 +12891,8 @@ export {
|
|
|
12890
12891
|
ys as DocTableInsertRowBellowCommand,
|
|
12891
12892
|
za as DocTableInsertRowCommand,
|
|
12892
12893
|
Ga as DocTableTabCommand,
|
|
12893
|
-
|
|
12894
|
-
|
|
12894
|
+
uo as DocUIController,
|
|
12895
|
+
vo as DocsRenderService,
|
|
12895
12896
|
fg as DocsUIMenuSchema,
|
|
12896
12897
|
WA as Editor,
|
|
12897
12898
|
Dd as EditorInsertTextCommandId,
|
|
@@ -12904,7 +12905,7 @@ export {
|
|
|
12904
12905
|
va as InnerPasteCommand,
|
|
12905
12906
|
Ca as InsertCommand,
|
|
12906
12907
|
eA as InsertCustomRangeCommand,
|
|
12907
|
-
|
|
12908
|
+
Hn as ListOperationCommand,
|
|
12908
12909
|
$r as MergeTwoParagraphCommand,
|
|
12909
12910
|
vt as MoveCursorOperation,
|
|
12910
12911
|
Ct as MoveSelectionOperation,
|
|
@@ -12921,9 +12922,9 @@ export {
|
|
|
12921
12922
|
Pa as ReplaceSelectionCommand,
|
|
12922
12923
|
Da as ReplaceSnapshotCommand,
|
|
12923
12924
|
$d as ReplaceTextRunsCommand,
|
|
12924
|
-
|
|
12925
|
+
Fn as ResetInlineFormatTextBackgroundColorCommand,
|
|
12925
12926
|
ep as RichTextEditor,
|
|
12926
|
-
|
|
12927
|
+
Zn as SetDocZoomRatioCommand,
|
|
12927
12928
|
nt as SetDocZoomRatioOperation,
|
|
12928
12929
|
Qt as SetInlineFormatBoldCommand,
|
|
12929
12930
|
xt as SetInlineFormatCommand,
|
|
@@ -12954,7 +12955,7 @@ export {
|
|
|
12954
12955
|
Jf as docDrawingPositionToTransform,
|
|
12955
12956
|
Ea as genTableSource,
|
|
12956
12957
|
ma as generateParagraphs,
|
|
12957
|
-
|
|
12958
|
+
$n as getAnchorBounding,
|
|
12958
12959
|
uA as getCanvasOffsetByEngine,
|
|
12959
12960
|
qe as getCommandSkeleton,
|
|
12960
12961
|
es as getCursorWhenDelete,
|