@univerjs/docs-ui 0.12.2 → 0.12.3-experimental.20251205-e439e48
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 +11 -11
- package/lib/es/index.js +767 -763
- package/lib/index.js +767 -763
- package/lib/umd/index.js +10 -10
- package/package.json +11 -11
- package/LICENSE +0 -176
package/lib/es/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var Bc = Object.defineProperty;
|
|
2
2
|
var Mc = (n, e, t) => e in n ? Bc(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var O = (n, e, t) => Mc(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { IUniverInstanceService as L, Inject as j, Disposable as me, toDisposable as Mn, UniverInstanceType as _, BuildTextUtils as ce, JSONX as W, ObjectRelativeFromV as gt, ObjectRelativeFromH as Co, CommandType as D, sequenceExecuteAsync as Pr, ICommandService as T, DataStreamTreeTokenType as V, TextX as Ie, TextXActionType as G, PresetListType as ye, UpdateDocsAttributeType as nn, Tools as ue, generateRandomId as ge, TableRowHeightRule as _c, TableSizeType as Gi, TableTextWrapType as Dc, TableAlignmentType as wc, MemoryCursor as
|
|
4
|
+
import { IUniverInstanceService as L, Inject as j, Disposable as me, toDisposable as Mn, UniverInstanceType as _, BuildTextUtils as ce, JSONX as W, ObjectRelativeFromV as gt, ObjectRelativeFromH as Co, CommandType as D, sequenceExecuteAsync as Pr, ICommandService as T, DataStreamTreeTokenType as V, TextX as Ie, TextXActionType as G, PresetListType as ye, UpdateDocsAttributeType as nn, Tools as ue, generateRandomId as ge, TableRowHeightRule as _c, TableSizeType as Gi, TableTextWrapType as Dc, TableAlignmentType as wc, MemoryCursor as Nt, SHEET_EDITOR_UNITS as En, PositionedObjectLayoutType as Ro, BlockType as Pc, LRUMap as Nc, BaselineOffset as Ve, BooleanNumber as z, ColorKit as Qs, DrawingTypeEnum as Nr, skipParseTagNames as Lc, CustomRangeType as Lr, DataStreamTreeNodeType as sn, createIdentifier as Yi, ILogService as Qr, SliceBodyType as ir, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as bo, DOC_RANGE_TYPE as He, normalizeBody as Qc, getBodySlice as Ki, FOCUSING_DOC as _n, EDITOR_ACTIVATED as eo, DashStyleType as Uc, RxDisposable as Ct, ThemeService as Ur, IUndoRedoService as yo, PRESET_LIST_TYPE as Fc, HorizontalAlign as Ue, NamedStyleType as K, RANGE_DIRECTION as De, COLORS as gn, Rectangle as Hc, DocumentFlavor as Pe, LocaleService as Ye, isInternalEditorID as Rt, IContextService as Fr, Injector as Dn, FOCUSING_EDITOR_STANDALONE as Us, VerticalAlign as kc, DEFAULT_EMPTY_DOCUMENT_VALUE as qi, PageOrientType as Vc, PAPER_TYPES as Wc, PAGE_SIZE as ar, DOCS_ZEN_EDITOR_UNIT_ID_KEY as nt, DEFAULT_STYLES as xo, NAMED_STYLE_MAP as jc, DisposableCollection as In, fromEventSubject as Mt, deepCompare as zc, FOCUSING_UNIVER_EDITOR as Hr, FOCUSING_COMMON_DRAWINGS as Xi, getPlainText as to, debounce as kr, SpacingRule as Xt, IConfigService as Vr, QuickListTypeMap as jo, Direction as le, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Gc, checkForSubstrings as Yc, createInterceptorKey as Zi, InterceptorManager as Kc, UndoCommandId as Fs, RedoCommandId as Hs, DependentOn as qc, Plugin as Xc, merge as Zc, touchDependencies as ks, mergeOverrideWithDependencies as Jc, createInternalEditorID as $c } from "@univerjs/core";
|
|
5
5
|
import { DocSelectionManagerService as Y, RichTextEditingMutation as X, DocSkeletonManagerService as de, SetTextSelectionsOperation as Le, DocStateEmitService as el, DocInterceptorService as tl } from "@univerjs/docs";
|
|
6
|
-
import { IRenderManagerService as pe, DocumentEditArea as ve, hasListGlyph as nl, isIndentByGlyph as ol, isFirstGlyph as rl, getParagraphByGlyph as sl, pixelToPt as il, ptToPixel as Vs, parseDataStreamToTree as al, Liquid as Ji, GlyphType as $i, DocumentSkeletonPageType as Oe, getPageFromPath as cr, getTableIdAndSliceIndex as Ws, NORMAL_TEXT_SELECTION_PLUGIN_STYLE as Sn, getColor as fn, RegularPolygon as ea, Rect as Kn, getOffsetRectForDom as cl, ScrollTimer as ll, CURSOR_TYPE as
|
|
7
|
-
import { IClipboardInterfaceService as ra, FILE_PNG_CLIPBOARD_MIME_TYPE as Il, FILE__WEBP_CLIPBOARD_MIME_TYPE as Sl, FILE__JPEG_CLIPBOARD_MIME_TYPE as vl, FILE__BMP_CLIPBOARD_MIME_TYPE as Cl, HTML_CLIPBOARD_MIME_TYPE as sa, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as ia, CopyCommand as Rl, CutCommand as bl, PasteCommand as yl, ILayoutService as Oo, KeyCode as q, IConfirmService as aa, useDependency as J, ComponentManager as rn, ISidebarService as ca, getMenuHiddenObservable as se, MenuItemType as Z, COLOR_PICKER_COMPONENT as la,
|
|
6
|
+
import { IRenderManagerService as pe, DocumentEditArea as ve, hasListGlyph as nl, isIndentByGlyph as ol, isFirstGlyph as rl, getParagraphByGlyph as sl, pixelToPt as il, ptToPixel as Vs, parseDataStreamToTree as al, Liquid as Ji, GlyphType as $i, DocumentSkeletonPageType as Oe, getPageFromPath as cr, getTableIdAndSliceIndex as Ws, NORMAL_TEXT_SELECTION_PLUGIN_STYLE as Sn, getColor as fn, RegularPolygon as ea, Rect as Kn, getOffsetRectForDom as cl, ScrollTimer as ll, CURSOR_TYPE as Dt, getSystemHighlightColor as dl, Vector2 as vn, PageLayoutType as Cn, Shape as Al, Path as js, pxToNum as ta, TRANSFORM_CHANGE_OBSERVABLE_TYPE as na, getNumberUnitValue as on, Viewport as ul, ScrollBar as lr, Layer as zs, Documents as hl, DocBackground as gl, getLastLine as fl, lineIterator as pl, getLastColumn as ml, UniverRenderEnginePlugin as El, DeviceInputEventType as oa } from "@univerjs/engine-render";
|
|
7
|
+
import { IClipboardInterfaceService as ra, FILE_PNG_CLIPBOARD_MIME_TYPE as Il, FILE__WEBP_CLIPBOARD_MIME_TYPE as Sl, FILE__JPEG_CLIPBOARD_MIME_TYPE as vl, FILE__BMP_CLIPBOARD_MIME_TYPE as Cl, HTML_CLIPBOARD_MIME_TYPE as sa, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as ia, CopyCommand as Rl, CutCommand as bl, PasteCommand as yl, ILayoutService as Oo, KeyCode as q, IConfirmService as aa, useDependency as J, ComponentManager as rn, ISidebarService as ca, getMenuHiddenObservable as se, MenuItemType as Z, COLOR_PICKER_COMPONENT as la, FONT_FAMILY_ITEM_COMPONENT as xl, FONT_FAMILY_COMPONENT as Ol, FONT_SIZE_LIST as Tl, FONT_SIZE_COMPONENT as Bl, HEADING_LIST as Gs, COMMON_LABEL_COMPONENT as Ml, HEADING_ITEM_COMPONENT as _l, ICanvasPopupService as Dl, IMenuManagerService as da, ToolbarItem as wl, MenuManagerPosition as Pl, useObservable as et, RectPopup as Nl, DesktopMenu as Ll, ContextMenuPosition as no, MetaKeys as te, Slider as Ql, useConfigValue as Aa, useEvent as mn, ContextMenuGroup as an, RibbonInsertGroup as Ul, RibbonStartGroup as Ys, IUIPartsService as Fl, IShortcutService as To, BuiltInUIPart as Ks, connectInjector as qs, imageMimeTypeSet as Hl, IContextMenuService as kl } from "@univerjs/ui";
|
|
8
8
|
import { ImageSourceType as Wr } from "@univerjs/drawing";
|
|
9
|
-
import { Subject as be, BehaviorSubject as Fe, merge as ua, filter as oo, takeUntil as ft, fromEvent as je, Observable as fe, map as wn, combineLatest as Pn, distinctUntilChanged as
|
|
10
|
-
import { useRef as ke, createElement as Te, forwardRef as Be, useState as Ee, useEffect as Ce, useMemo as _e, useCallback as ha, useImperativeHandle as
|
|
11
|
-
import { filter as dr, bufferTime as
|
|
12
|
-
import { jsxs as re, jsx as Q, Fragment as
|
|
13
|
-
import { Checkbox as Xs, InputNumber as it, Button as
|
|
14
|
-
var
|
|
15
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
9
|
+
import { Subject as be, BehaviorSubject as Fe, merge as ua, filter as oo, takeUntil as ft, fromEvent as je, Observable as fe, map as wn, combineLatest as Pn, distinctUntilChanged as Wt, throttleTime as Rn, switchMap as Vl, take as Wl, first as jl, of as zl, animationFrameScheduler as Gl } from "rxjs";
|
|
10
|
+
import { useRef as ke, createElement as Te, forwardRef as Be, useState as Ee, useEffect as Ce, useMemo as _e, useCallback as ha, useImperativeHandle as Yl, useLayoutEffect as ga } from "react";
|
|
11
|
+
import { filter as dr, bufferTime as Kl, map as ql } from "rxjs/operators";
|
|
12
|
+
import { jsxs as re, jsx as Q, Fragment as Xl } from "react/jsx-runtime";
|
|
13
|
+
import { Checkbox as Xs, InputNumber as it, Button as Zl, clsx as ze, borderClassName as Nn, Select as fa, scrollbarClassName as Jl, Tooltip as $l } from "@univerjs/design";
|
|
14
|
+
var ed = Object.getOwnPropertyDescriptor, td = (n, e, t, o) => {
|
|
15
|
+
for (var r = o > 1 ? void 0 : o ? ed(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
16
16
|
(i = n[s]) && (r = i(r) || r);
|
|
17
17
|
return r;
|
|
18
18
|
}, Zs = (n, e) => (t, o) => e(t, o, n);
|
|
19
|
-
let
|
|
19
|
+
let wt = class extends me {
|
|
20
20
|
constructor(e, t) {
|
|
21
21
|
super();
|
|
22
22
|
O(this, "_matches", /* @__PURE__ */ new Map());
|
|
@@ -53,11 +53,11 @@ let Dt = class extends me {
|
|
|
53
53
|
return [];
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
wt = td([
|
|
57
57
|
Zs(0, L),
|
|
58
58
|
Zs(1, j(Y))
|
|
59
|
-
],
|
|
60
|
-
const
|
|
59
|
+
], wt);
|
|
60
|
+
const nd = {
|
|
61
61
|
undo: !0,
|
|
62
62
|
redo: !0,
|
|
63
63
|
// Undo redo
|
|
@@ -85,7 +85,7 @@ const od = {
|
|
|
85
85
|
// 'Wrap mode'
|
|
86
86
|
textRotateMode: !0
|
|
87
87
|
// 'Text Rotation Mode'
|
|
88
|
-
},
|
|
88
|
+
}, od = {
|
|
89
89
|
outerLeft: !1,
|
|
90
90
|
outerRight: !1,
|
|
91
91
|
header: !0,
|
|
@@ -98,9 +98,9 @@ const od = {
|
|
|
98
98
|
frozenContent: !1,
|
|
99
99
|
infoBar: !0,
|
|
100
100
|
toolbar: !0
|
|
101
|
-
},
|
|
101
|
+
}, rd = "DOC_UI_PLUGIN";
|
|
102
102
|
var $e = /* @__PURE__ */ ((n) => (n.MAIN = "__Document_Render_Main__", n.BACKGROUND = "__Document_Render_Background__", n))($e || {}), We = /* @__PURE__ */ ((n) => (n.VIEW_MAIN = "viewMain", n.VIEW_TOP = "viewTop", n.VIEW_LEFT = "viewLeft", n.VIEW_LEFT_TOP = "viewLeftTop", n))(We || {});
|
|
103
|
-
const
|
|
103
|
+
const sd = 0, zo = 2, id = 4, Js = 10, jf = "normalTextSelectionPluginName";
|
|
104
104
|
function pt(n) {
|
|
105
105
|
const { mainComponent: e, scene: t, engine: o, components: r } = n, s = e, i = r.get($e.BACKGROUND);
|
|
106
106
|
return {
|
|
@@ -110,7 +110,7 @@ function pt(n) {
|
|
|
110
110
|
engine: o
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function ad(n, e) {
|
|
114
114
|
const t = n.getCurrentUnitOfType(_.UNIVER_DOC);
|
|
115
115
|
if (!t)
|
|
116
116
|
return null;
|
|
@@ -125,7 +125,7 @@ function cd(n, e) {
|
|
|
125
125
|
engine: a
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function zf(n, e) {
|
|
129
129
|
const t = e.getRenderById(n);
|
|
130
130
|
if (t == null)
|
|
131
131
|
return;
|
|
@@ -137,7 +137,7 @@ function Gf(n, e) {
|
|
|
137
137
|
engine: s
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function cd(n) {
|
|
141
141
|
const { unitId: e, ranges: t, id: o, type: r, segmentId: s } = n, i = {
|
|
142
142
|
id: X.id,
|
|
143
143
|
params: {
|
|
@@ -150,12 +150,12 @@ function ld(n) {
|
|
|
150
150
|
}, a = W.getInstance(), c = ce.customDecoration.add({ ranges: t, id: o, type: r });
|
|
151
151
|
return i.params.actions = a.editOp(c.serialize()), i;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Gf(n, e) {
|
|
154
154
|
const { segmentId: t, id: o, type: r, unitId: s } = e, i = n.get(Y), a = n.get(L), c = s ? a.getUnit(s, _.UNIVER_DOC) : a.getCurrentUnitForType(_.UNIVER_DOC);
|
|
155
155
|
if (!c)
|
|
156
156
|
return !1;
|
|
157
157
|
const d = c.getUnitId(), l = i.getTextRanges({ unitId: d, subUnitId: d });
|
|
158
|
-
return !l || !c.getBody() ? !1 :
|
|
158
|
+
return !l || !c.getBody() ? !1 : cd(
|
|
159
159
|
{
|
|
160
160
|
unitId: d,
|
|
161
161
|
ranges: l,
|
|
@@ -165,7 +165,7 @@ function Yf(n, e) {
|
|
|
165
165
|
}
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Yf(n, e) {
|
|
169
169
|
const { unitId: t, id: o, segmentId: r } = e, i = n.get(L).getUnit(t);
|
|
170
170
|
if (!i)
|
|
171
171
|
return !1;
|
|
@@ -184,7 +184,7 @@ function Kf(n, e) {
|
|
|
184
184
|
const d = W.getInstance();
|
|
185
185
|
return a.params.actions = d.editOp(c.serialize()), a;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Kf(n, e) {
|
|
188
188
|
return e.some((t) => n.startIndex > t.startIndex && n.startIndex < t.endIndex);
|
|
189
189
|
}
|
|
190
190
|
function Bo(n, e, t, o, r) {
|
|
@@ -225,7 +225,7 @@ function jr(n, e, t) {
|
|
|
225
225
|
function zr(n, e) {
|
|
226
226
|
return n.filter((t) => e > t.startIndex && e <= t.endIndex);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function qf(n) {
|
|
229
229
|
return {
|
|
230
230
|
left: n.positionH.posOffset,
|
|
231
231
|
top: n.positionV.posOffset,
|
|
@@ -233,7 +233,7 @@ function Xf(n) {
|
|
|
233
233
|
height: n.size.height
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Xf(n, e = 0, t = 0) {
|
|
237
237
|
return {
|
|
238
238
|
size: {
|
|
239
239
|
width: n.width,
|
|
@@ -250,34 +250,34 @@ function Zf(n, e = 0, t = 0) {
|
|
|
250
250
|
angle: n.angle || 0
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
const
|
|
254
|
-
id:
|
|
253
|
+
const ld = "doc.command.tab", Jt = {
|
|
254
|
+
id: ld,
|
|
255
255
|
type: D.COMMAND,
|
|
256
256
|
async handler(n, e) {
|
|
257
|
-
const o = n.get(
|
|
257
|
+
const o = n.get(wt).onAutoFormat(Jt.id, e);
|
|
258
258
|
return (await Pr(o, n.get(T))).result;
|
|
259
259
|
}
|
|
260
|
-
},
|
|
261
|
-
id:
|
|
260
|
+
}, dd = "doc.command.after-space", Mo = {
|
|
261
|
+
id: dd,
|
|
262
262
|
type: D.COMMAND,
|
|
263
263
|
async handler(n) {
|
|
264
|
-
const t = n.get(
|
|
264
|
+
const t = n.get(wt).onAutoFormat(Mo.id);
|
|
265
265
|
return (await Pr(t, n.get(T))).result;
|
|
266
266
|
}
|
|
267
267
|
}, bn = {
|
|
268
268
|
id: "doc.command.enter",
|
|
269
269
|
type: D.COMMAND,
|
|
270
270
|
async handler(n) {
|
|
271
|
-
const t = n.get(
|
|
271
|
+
const t = n.get(wt).onAutoFormat(bn.id);
|
|
272
272
|
return (await Pr(t, n.get(T))).result;
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
|
-
var
|
|
276
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
275
|
+
var Ad = Object.getOwnPropertyDescriptor, ud = (n, e, t, o) => {
|
|
276
|
+
for (var r = o > 1 ? void 0 : o ? Ad(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
277
277
|
(i = n[s]) && (r = i(r) || r);
|
|
278
278
|
return r;
|
|
279
279
|
}, Go = (n, e) => (t, o) => e(t, o, n);
|
|
280
|
-
const
|
|
280
|
+
const hd = 11, gd = 9, kn = {
|
|
281
281
|
/**
|
|
282
282
|
* fontFamily
|
|
283
283
|
*/
|
|
@@ -285,7 +285,7 @@ const gd = 11, fd = 9, kn = {
|
|
|
285
285
|
/**
|
|
286
286
|
* fontSize
|
|
287
287
|
*/
|
|
288
|
-
fs:
|
|
288
|
+
fs: hd
|
|
289
289
|
};
|
|
290
290
|
let at = class extends me {
|
|
291
291
|
constructor(e, t, o) {
|
|
@@ -320,7 +320,7 @@ let at = class extends me {
|
|
|
320
320
|
...kn
|
|
321
321
|
} : {
|
|
322
322
|
...kn,
|
|
323
|
-
fs:
|
|
323
|
+
fs: gd
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
326
|
setStyleCache(e) {
|
|
@@ -333,7 +333,7 @@ let at = class extends me {
|
|
|
333
333
|
this._cacheStyle = null;
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
|
-
at =
|
|
336
|
+
at = ud([
|
|
337
337
|
Go(0, j(Y)),
|
|
338
338
|
Go(1, L),
|
|
339
339
|
Go(2, pe)
|
|
@@ -476,7 +476,7 @@ const Gr = {
|
|
|
476
476
|
}
|
|
477
477
|
};
|
|
478
478
|
var _o = /* @__PURE__ */ ((n) => (n[n.ABOVE = 0] = "ABOVE", n[n.BELLOW = 1] = "BELLOW", n))(_o || {}), Yr = /* @__PURE__ */ ((n) => (n[n.LEFT = 0] = "LEFT", n[n.RIGHT = 1] = "RIGHT", n))(Yr || {});
|
|
479
|
-
function
|
|
479
|
+
function fd(n, e) {
|
|
480
480
|
let t = V.TABLE_START;
|
|
481
481
|
const o = [], r = [];
|
|
482
482
|
for (let s = 0; s < n; s++) {
|
|
@@ -613,7 +613,7 @@ function Ln(n, e) {
|
|
|
613
613
|
};
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function pd(n) {
|
|
617
617
|
let e = V.TABLE_ROW_START;
|
|
618
618
|
const t = [], o = [];
|
|
619
619
|
for (let r = 0; r < n; r++)
|
|
@@ -634,7 +634,7 @@ ${V.TABLE_CELL_END}`, t.push({
|
|
|
634
634
|
sectionBreaks: o
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function md() {
|
|
638
638
|
const n = `${V.TABLE_CELL_START}\r
|
|
639
639
|
${V.TABLE_CELL_END}`, e = [], t = [];
|
|
640
640
|
return e.push({
|
|
@@ -652,7 +652,7 @@ ${V.TABLE_CELL_END}`, e = [], t = [];
|
|
|
652
652
|
sectionBreaks: t
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Ed(n, e, t) {
|
|
656
656
|
var A, h, u;
|
|
657
657
|
const { startOffset: o, endOffset: r, segmentId: s } = n, i = t.getSelfOrHeaderFooterViewModel(s), a = e === 0 ? o : r;
|
|
658
658
|
let c = null;
|
|
@@ -681,7 +681,7 @@ function Id(n, e, t) {
|
|
|
681
681
|
insertRowIndex: e === 0 ? l : l + 1
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Id(n, e, t) {
|
|
685
685
|
var u, g, f;
|
|
686
686
|
const { startOffset: o, endOffset: r, segmentId: s } = n, i = t.getSelfOrHeaderFooterViewModel(s), a = e === 0 ? o : r, c = (f = (g = (u = t.getBody()) == null ? void 0 : u.tables) == null ? void 0 : g.find((p) => a >= p.startIndex && a <= p.endIndex)) == null ? void 0 : f.tableId, d = [];
|
|
687
687
|
let l = null, A = -1;
|
|
@@ -724,7 +724,7 @@ function Sd(n, e, t) {
|
|
|
724
724
|
rowCount: l.children.length
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Sd(n, e, t) {
|
|
728
728
|
const o = [];
|
|
729
729
|
let r = e[t].size.width.v, s = 0;
|
|
730
730
|
for (let i = 0; i < e.length; i++)
|
|
@@ -768,7 +768,7 @@ function Ea(n, e) {
|
|
|
768
768
|
selectWholeTable: A
|
|
769
769
|
};
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function vd(n, e) {
|
|
772
772
|
var g, f, p;
|
|
773
773
|
const { startOffset: t, endOffset: o, segmentId: r } = n, s = e.getSelfOrHeaderFooterViewModel(r), i = (p = (f = (g = e.getBody()) == null ? void 0 : g.tables) == null ? void 0 : f.find((m) => t >= m.startIndex && o <= m.endIndex)) == null ? void 0 : p.tableId, a = [];
|
|
774
774
|
let c = null;
|
|
@@ -839,7 +839,7 @@ function Ia(n, e) {
|
|
|
839
839
|
cursor: d
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Cd(n, e) {
|
|
843
843
|
var g, f, p;
|
|
844
844
|
const { startOffset: t, endOffset: o, segmentId: r } = n, s = e.getSelfOrHeaderFooterViewModel(r), i = (p = (f = (g = e.getBody()) == null ? void 0 : g.tables) == null ? void 0 : f.find((m) => t >= m.startIndex && o <= m.endIndex)) == null ? void 0 : p.tableId, a = [];
|
|
845
845
|
let c = null, d = -1, l = -1, A = -1, h = -1;
|
|
@@ -928,7 +928,7 @@ function $s(n, e, t) {
|
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function Rd(n, e) {
|
|
932
932
|
const t = [], { customBlocks: o = [] } = n;
|
|
933
933
|
for (const r of e) {
|
|
934
934
|
const { startOffset: s, endOffset: i } = r;
|
|
@@ -940,13 +940,13 @@ function bd(n, e) {
|
|
|
940
940
|
}
|
|
941
941
|
return t;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function bd(n) {
|
|
944
944
|
return n.some((e) => {
|
|
945
945
|
const { startNodePosition: t } = e;
|
|
946
946
|
return t ? (t == null ? void 0 : t.path.indexOf("cells")) > -1 : !1;
|
|
947
947
|
});
|
|
948
948
|
}
|
|
949
|
-
const
|
|
949
|
+
const yd = En, Sa = {
|
|
950
950
|
id: "doc.command.inner-paste",
|
|
951
951
|
type: D.COMMAND,
|
|
952
952
|
// eslint-disable-next-line max-lines-per-function, complexity
|
|
@@ -966,10 +966,10 @@ const xd = En, Sa = {
|
|
|
966
966
|
textRanges: o,
|
|
967
967
|
segmentId: t
|
|
968
968
|
}
|
|
969
|
-
}, m = new
|
|
969
|
+
}, m = new Nt();
|
|
970
970
|
m.reset();
|
|
971
971
|
const I = new Ie(), S = W.getInstance(), v = [], R = !!((C = l.tables) != null && C.length), E = !!((B = l.customBlocks) != null && B.length);
|
|
972
|
-
if (R && t || R &&
|
|
972
|
+
if (R && t || R && bd(c) || c.length && (d != null && d.length))
|
|
973
973
|
return !1;
|
|
974
974
|
for (let P = 0; P < c.length; P++) {
|
|
975
975
|
const N = c[P], { startOffset: ee, endOffset: $, collapsed: U } = N, H = ee - m.cursor, k = ue.deepClone(l);
|
|
@@ -993,7 +993,7 @@ const xd = En, Sa = {
|
|
|
993
993
|
v.push(At), v.push(Je);
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
-
const ne = jr((w = g.customRanges) != null ? w : [], $,
|
|
996
|
+
const ne = jr((w = g.customRanges) != null ? w : [], $, yd.includes(f)), ie = zr((F = g.customDecorations) != null ? F : [], $);
|
|
997
997
|
if (ne && (k.customRanges = [{
|
|
998
998
|
...ne,
|
|
999
999
|
startIndex: 0,
|
|
@@ -1021,7 +1021,7 @@ const xd = En, Sa = {
|
|
|
1021
1021
|
return v.push(S.editOp(I.serialize(), b)), p.params.actions = v.reduce((P, N) => W.compose(P, N), null), !!s.syncExecuteCommand(p.id, p.params);
|
|
1022
1022
|
}
|
|
1023
1023
|
};
|
|
1024
|
-
function
|
|
1024
|
+
function xd(n, e) {
|
|
1025
1025
|
const { startOffset: t, endOffset: o } = n, r = e.some((i) => i.startIndex === o), s = Math.max(t, r ? o - 1 : o);
|
|
1026
1026
|
return {
|
|
1027
1027
|
...n,
|
|
@@ -1029,15 +1029,15 @@ function Od(n, e) {
|
|
|
1029
1029
|
collapsed: t === s
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function Od(n, e, t) {
|
|
1033
1033
|
var g, f;
|
|
1034
1034
|
const o = e.getSelfOrHeaderFooterModel(t).getBody(), r = new Ie(), s = W.getInstance(), i = [];
|
|
1035
1035
|
if (o == null)
|
|
1036
1036
|
return i;
|
|
1037
|
-
const { tables: a = [] } = o, c = new
|
|
1037
|
+
const { tables: a = [] } = o, c = new Nt();
|
|
1038
1038
|
c.reset();
|
|
1039
1039
|
for (let p = 0; p < n.length; p++) {
|
|
1040
|
-
const m =
|
|
1040
|
+
const m = xd(n[p], a), { startOffset: I, endOffset: S, collapsed: v } = m, R = I - c.cursor;
|
|
1041
1041
|
v ? r.push({
|
|
1042
1042
|
t: G.RETAIN,
|
|
1043
1043
|
len: R
|
|
@@ -1045,7 +1045,7 @@ function Td(n, e, t) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
const d = Ae(e, t);
|
|
1047
1047
|
i.push(s.editOp(r.serialize(), d));
|
|
1048
|
-
const l =
|
|
1048
|
+
const l = Rd(o, n), A = (g = e.getDrawings()) != null ? g : {}, h = (f = e.getDrawingsOrder()) != null ? f : [], u = l.sort((p, m) => h.indexOf(p) > h.indexOf(m) ? -1 : h.indexOf(p) < h.indexOf(m) ? 1 : 0);
|
|
1049
1049
|
if (u.length > 0)
|
|
1050
1050
|
for (const p of u) {
|
|
1051
1051
|
const m = A[p], I = h.indexOf(p);
|
|
@@ -1056,11 +1056,11 @@ function Td(n, e, t) {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
return i.reduce((p, m) => W.compose(p, m), null);
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function Td(n, e, t, o) {
|
|
1060
1060
|
const r = [];
|
|
1061
1061
|
if (e.getSelfOrHeaderFooterModel(o).getBody() == null)
|
|
1062
1062
|
return r;
|
|
1063
|
-
const i = new Ie(), a = W.getInstance(), c = new
|
|
1063
|
+
const i = new Ie(), a = W.getInstance(), c = new Nt();
|
|
1064
1064
|
c.reset();
|
|
1065
1065
|
for (const l of n) {
|
|
1066
1066
|
const { startOffset: A, endOffset: h, spanEntireRow: u, spanEntireTable: g } = l;
|
|
@@ -1097,7 +1097,7 @@ function Bd(n, e, t, o) {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
c.moveCursorTo(p + I);
|
|
1099
1099
|
} else {
|
|
1100
|
-
const f =
|
|
1100
|
+
const f = Cd({ startOffset: A, endOffset: h, segmentId: o }, t);
|
|
1101
1101
|
if (f == null)
|
|
1102
1102
|
continue;
|
|
1103
1103
|
const { offsets: p } = f;
|
|
@@ -1116,10 +1116,10 @@ function Bd(n, e, t, o) {
|
|
|
1116
1116
|
const d = Ae(e, o);
|
|
1117
1117
|
return r.push(a.editOp(i.serialize(), d)), r.reduce((l, A) => W.compose(l, A), null);
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function Bd(n, e, t, o, r) {
|
|
1120
1120
|
let s = [];
|
|
1121
|
-
if (Array.isArray(n) && (n == null ? void 0 : n.length) !== 0 && (s =
|
|
1122
|
-
const i =
|
|
1121
|
+
if (Array.isArray(n) && (n == null ? void 0 : n.length) !== 0 && (s = Od(n, t, r)), Array.isArray(e) && (e == null ? void 0 : e.length) !== 0) {
|
|
1122
|
+
const i = Td(e, t, o, r);
|
|
1123
1123
|
s == null || s.length === 0 ? s = i : s = W.compose(
|
|
1124
1124
|
s,
|
|
1125
1125
|
W.transform(i, s, "right")
|
|
@@ -1127,7 +1127,7 @@ function Md(n, e, t, o, r) {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
return s;
|
|
1129
1129
|
}
|
|
1130
|
-
const
|
|
1130
|
+
const $t = {
|
|
1131
1131
|
id: "doc.command.inner-cut",
|
|
1132
1132
|
type: D.COMMAND,
|
|
1133
1133
|
handler: (n, e) => {
|
|
@@ -1152,12 +1152,12 @@ const Jt = {
|
|
|
1152
1152
|
textRanges: i
|
|
1153
1153
|
}
|
|
1154
1154
|
};
|
|
1155
|
-
return u.params.actions =
|
|
1155
|
+
return u.params.actions = Bd(a, c, l, h, s), !!o.syncExecuteCommand(u.id, u.params);
|
|
1156
1156
|
}
|
|
1157
1157
|
};
|
|
1158
1158
|
var Ne = /* @__PURE__ */ ((n) => (n[n.LEFT = 0] = "LEFT", n[n.RIGHT = 1] = "RIGHT", n))(Ne || {});
|
|
1159
|
-
const
|
|
1160
|
-
id:
|
|
1159
|
+
const Md = "doc.command.insert-text", va = {
|
|
1160
|
+
id: Md,
|
|
1161
1161
|
type: D.COMMAND,
|
|
1162
1162
|
handler: async (n, e) => {
|
|
1163
1163
|
var E;
|
|
@@ -1475,7 +1475,7 @@ const Do = {
|
|
|
1475
1475
|
endOffset: P
|
|
1476
1476
|
}
|
|
1477
1477
|
];
|
|
1478
|
-
return o.executeCommand(
|
|
1478
|
+
return o.executeCommand($t.id, {
|
|
1479
1479
|
segmentId: N,
|
|
1480
1480
|
textRanges: ee
|
|
1481
1481
|
});
|
|
@@ -1582,7 +1582,7 @@ const Do = {
|
|
|
1582
1582
|
});
|
|
1583
1583
|
} else {
|
|
1584
1584
|
const P = ya(p, [p]);
|
|
1585
|
-
r = await o.executeCommand(
|
|
1585
|
+
r = await o.executeCommand($t.id, {
|
|
1586
1586
|
segmentId: h,
|
|
1587
1587
|
textRanges: P,
|
|
1588
1588
|
selections: [p]
|
|
@@ -1607,7 +1607,7 @@ const Do = {
|
|
|
1607
1607
|
endOffset: R
|
|
1608
1608
|
}
|
|
1609
1609
|
];
|
|
1610
|
-
return s.executeCommand(
|
|
1610
|
+
return s.executeCommand($t.id, {
|
|
1611
1611
|
segmentId: E,
|
|
1612
1612
|
textRanges: b
|
|
1613
1613
|
});
|
|
@@ -1684,7 +1684,7 @@ const Do = {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
} else {
|
|
1686
1686
|
const R = ya(g, [g]);
|
|
1687
|
-
I = await s.executeCommand(
|
|
1687
|
+
I = await s.executeCommand($t.id, {
|
|
1688
1688
|
segmentId: l,
|
|
1689
1689
|
textRanges: R,
|
|
1690
1690
|
selections: [g]
|
|
@@ -1740,17 +1740,17 @@ const es = {
|
|
|
1740
1740
|
};
|
|
1741
1741
|
return t.syncExecuteCommand(X.id, c);
|
|
1742
1742
|
}
|
|
1743
|
-
},
|
|
1744
|
-
function
|
|
1745
|
-
return ge(
|
|
1743
|
+
}, _d = 10, Dd = 6;
|
|
1744
|
+
function wd() {
|
|
1745
|
+
return ge(Dd);
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1747
|
+
function Pd(n) {
|
|
1748
1748
|
const e = n.match(/data-copy-id="([^\s]+)"/);
|
|
1749
1749
|
return e && e[1] ? e[1] : null;
|
|
1750
1750
|
}
|
|
1751
|
-
class
|
|
1751
|
+
class Nd {
|
|
1752
1752
|
constructor() {
|
|
1753
|
-
O(this, "_cache", new Nc(
|
|
1753
|
+
O(this, "_cache", new Nc(_d));
|
|
1754
1754
|
}
|
|
1755
1755
|
set(e, t) {
|
|
1756
1756
|
this._cache.set(e, t);
|
|
@@ -1762,7 +1762,7 @@ class Ld {
|
|
|
1762
1762
|
this._cache.clear();
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
|
-
const Yo = new
|
|
1765
|
+
const Yo = new Nd();
|
|
1766
1766
|
function ts(n) {
|
|
1767
1767
|
const e = n.style, t = {}, o = n.tagName.toLowerCase();
|
|
1768
1768
|
switch (o) {
|
|
@@ -1845,7 +1845,7 @@ function ts(n) {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
return t;
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function Ld(n) {
|
|
1849
1849
|
const e = new DOMParser(), t = `<x-univer id="univer-root">${n}</x-univer>`;
|
|
1850
1850
|
return e.parseFromString(t, "text/html").querySelector("#univer-root");
|
|
1851
1851
|
}
|
|
@@ -1867,7 +1867,7 @@ const ti = 660, vo = class vo {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
convert(e, t = {}) {
|
|
1869
1869
|
var a;
|
|
1870
|
-
const o = vo._pluginList.find((c) => c.checkPasteType(e)), r =
|
|
1870
|
+
const o = vo._pluginList.find((c) => c.checkPasteType(e)), r = Ld(e), i = {
|
|
1871
1871
|
body: {
|
|
1872
1872
|
dataStream: "",
|
|
1873
1873
|
paragraphs: [],
|
|
@@ -2013,8 +2013,8 @@ ${V.TABLE_CELL_END}`;
|
|
|
2013
2013
|
}
|
|
2014
2014
|
};
|
|
2015
2015
|
O(vo, "_pluginList", []);
|
|
2016
|
-
let
|
|
2017
|
-
const
|
|
2016
|
+
let en = vo;
|
|
2017
|
+
const Qd = {
|
|
2018
2018
|
name: "univer-doc-paste-plugin-lark",
|
|
2019
2019
|
checkPasteType(n) {
|
|
2020
2020
|
return /lark-record-clipboard/i.test(n);
|
|
@@ -2072,7 +2072,7 @@ function xa(n) {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
return Object.getOwnPropertyNames(t).length ? t : null;
|
|
2074
2074
|
}
|
|
2075
|
-
const
|
|
2075
|
+
const Ud = {
|
|
2076
2076
|
name: "univer-doc-paste-plugin-univer",
|
|
2077
2077
|
checkPasteType(n) {
|
|
2078
2078
|
return /UniverNormal/i.test(n);
|
|
@@ -2093,7 +2093,7 @@ const Fd = {
|
|
|
2093
2093
|
}
|
|
2094
2094
|
}
|
|
2095
2095
|
]
|
|
2096
|
-
},
|
|
2096
|
+
}, Fd = {
|
|
2097
2097
|
name: "univer-doc-paste-plugin-word",
|
|
2098
2098
|
checkPasteType(n) {
|
|
2099
2099
|
return /word|mso/i.test(n);
|
|
@@ -2123,7 +2123,7 @@ const Fd = {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
]
|
|
2125
2125
|
};
|
|
2126
|
-
function
|
|
2126
|
+
function Hd(n) {
|
|
2127
2127
|
var o, r;
|
|
2128
2128
|
const e = (s) => {
|
|
2129
2129
|
let i = "";
|
|
@@ -2166,7 +2166,7 @@ function Ko(n, e, t) {
|
|
|
2166
2166
|
}
|
|
2167
2167
|
return s !== t && i.push(o.slice(s, t)), i.join("");
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2169
|
+
function kd(n, e, t) {
|
|
2170
2170
|
const o = n.body, r = n.drawings || {}, { customRanges: s = [], customBlocks: i = [] } = o || {}, a = [...i], c = s.filter((u) => u.startIndex >= e && u.endIndex <= t);
|
|
2171
2171
|
let d = e, l = "";
|
|
2172
2172
|
const A = (u, g) => {
|
|
@@ -2180,7 +2180,7 @@ function Vd(n, e, t) {
|
|
|
2180
2180
|
if (v)
|
|
2181
2181
|
switch (v.drawingType) {
|
|
2182
2182
|
case Nr.DRAWING_IMAGE: {
|
|
2183
|
-
f +=
|
|
2183
|
+
f += Hd(v), p++;
|
|
2184
2184
|
break;
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
@@ -2208,7 +2208,7 @@ function Vd(n, e, t) {
|
|
|
2208
2208
|
const h = A(d, t);
|
|
2209
2209
|
return l += h.sliceHtml, l;
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function Vd(n) {
|
|
2212
2212
|
const e = n.body || {}, { paragraphs: t = [], sectionBreaks: o = [] } = e;
|
|
2213
2213
|
let { dataStream: r = "" } = e;
|
|
2214
2214
|
r.endsWith(`\r
|
|
@@ -2220,30 +2220,30 @@ function Wd(n) {
|
|
|
2220
2220
|
}), e.dataStream = r, e.paragraphs = t, e.sectionBreaks = o);
|
|
2221
2221
|
const s = { html: "" }, i = al(r).sectionList;
|
|
2222
2222
|
for (const a of i)
|
|
2223
|
-
|
|
2223
|
+
Kt(a, n, s);
|
|
2224
2224
|
return s.html;
|
|
2225
2225
|
}
|
|
2226
|
-
function
|
|
2226
|
+
function Kt(n, e, t) {
|
|
2227
2227
|
var o, r;
|
|
2228
2228
|
switch (n.nodeType) {
|
|
2229
2229
|
case sn.SECTION_BREAK: {
|
|
2230
2230
|
for (const s of n.children)
|
|
2231
|
-
|
|
2231
|
+
Kt(s, e, t);
|
|
2232
2232
|
break;
|
|
2233
2233
|
}
|
|
2234
2234
|
case sn.PARAGRAPH: {
|
|
2235
2235
|
const { children: s, startIndex: i, endIndex: a } = n, c = (r = (o = e.body) == null ? void 0 : o.paragraphs.find((g) => g.startIndex === a)) != null ? r : {}, { paragraphStyle: d = {} } = c, { spaceAbove: l, spaceBelow: A, lineSpacing: h } = d, u = [];
|
|
2236
2236
|
if (l != null && (typeof l == "number" ? u.push(`margin-top: ${l}px`) : u.push(`margin-top: ${l.v}px`)), A != null && (typeof A == "number" ? u.push(`margin-bottom: ${A}px`) : u.push(`margin-bottom: ${A.v}px`)), h != null && u.push(`line-height: ${h}`), t.html += `<p class="UniverNormal" ${u.length ? `style="${u.join("; ")};"` : ""}>`, s.length)
|
|
2237
2237
|
for (const g of s)
|
|
2238
|
-
|
|
2239
|
-
t.html += `${
|
|
2238
|
+
Kt(g, e, t);
|
|
2239
|
+
t.html += `${kd(e, i, a)}</p>`;
|
|
2240
2240
|
break;
|
|
2241
2241
|
}
|
|
2242
2242
|
case sn.TABLE: {
|
|
2243
2243
|
const { children: s } = n;
|
|
2244
2244
|
t.html += '<table class="UniverTable" style="width: 100%; border-collapse: collapse;"><tbody>';
|
|
2245
2245
|
for (const i of s)
|
|
2246
|
-
|
|
2246
|
+
Kt(i, e, t);
|
|
2247
2247
|
t.html += "</tbody></table>";
|
|
2248
2248
|
break;
|
|
2249
2249
|
}
|
|
@@ -2251,7 +2251,7 @@ function Yt(n, e, t) {
|
|
|
2251
2251
|
const { children: s } = n;
|
|
2252
2252
|
t.html += '<tr class="UniverTableRow">';
|
|
2253
2253
|
for (const i of s)
|
|
2254
|
-
|
|
2254
|
+
Kt(i, e, t);
|
|
2255
2255
|
t.html += "</tr>";
|
|
2256
2256
|
break;
|
|
2257
2257
|
}
|
|
@@ -2259,7 +2259,7 @@ function Yt(n, e, t) {
|
|
|
2259
2259
|
const { children: s } = n;
|
|
2260
2260
|
t.html += '<td class="UniverTableCell">';
|
|
2261
2261
|
for (const i of s)
|
|
2262
|
-
|
|
2262
|
+
Kt(i, e, t);
|
|
2263
2263
|
t.html += "</td>";
|
|
2264
2264
|
break;
|
|
2265
2265
|
}
|
|
@@ -2267,24 +2267,24 @@ function Yt(n, e, t) {
|
|
|
2267
2267
|
throw new Error(`Unknown node type: ${n.nodeType}`);
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
|
-
class
|
|
2270
|
+
class Wd {
|
|
2271
2271
|
convert(e) {
|
|
2272
2272
|
if (e.length === 0)
|
|
2273
2273
|
throw new Error("The bodyList length at least to be 1");
|
|
2274
2274
|
let t = "";
|
|
2275
2275
|
for (const o of ue.deepClone(e))
|
|
2276
|
-
t +=
|
|
2276
|
+
t += Vd(o);
|
|
2277
2277
|
return t;
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
|
-
var
|
|
2281
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
2280
|
+
var jd = Object.getOwnPropertyDescriptor, zd = (n, e, t, o) => {
|
|
2281
|
+
for (var r = o > 1 ? void 0 : o ? jd(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
2282
2282
|
(i = n[s]) && (r = i(r) || r);
|
|
2283
2283
|
return r;
|
|
2284
2284
|
}, cn = (n, e) => (t, o) => e(t, o, n);
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2285
|
+
en.use(Fd);
|
|
2286
|
+
en.use(Qd);
|
|
2287
|
+
en.use(Ud);
|
|
2288
2288
|
function oi(n, e, t) {
|
|
2289
2289
|
var s, i, a;
|
|
2290
2290
|
const o = Ki(n, e, t + 2), r = V.TABLE_START + V.TABLE_ROW_START + V.TABLE_CELL_START + o.dataStream + V.TABLE_CELL_END + V.TABLE_ROW_END + V.TABLE_END;
|
|
@@ -2299,13 +2299,13 @@ function oi(n, e, t) {
|
|
|
2299
2299
|
c.startIndex = d + 3;
|
|
2300
2300
|
}), o;
|
|
2301
2301
|
}
|
|
2302
|
-
const
|
|
2302
|
+
const Lt = Yi("doc.clipboard-service");
|
|
2303
2303
|
let ur = class extends me {
|
|
2304
2304
|
constructor(e, t, o, r, s) {
|
|
2305
2305
|
super();
|
|
2306
2306
|
O(this, "_clipboardHooks", []);
|
|
2307
|
-
O(this, "_htmlToUDM", new
|
|
2308
|
-
O(this, "_umdToHtml", new
|
|
2307
|
+
O(this, "_htmlToUDM", new en());
|
|
2308
|
+
O(this, "_umdToHtml", new Wd());
|
|
2309
2309
|
this._univerInstanceService = e, this._logService = t, this._commandService = o, this._clipboardInterfaceService = r, this._docSelectionManagerService = s;
|
|
2310
2310
|
}
|
|
2311
2311
|
async copy(e = ir.copy, t) {
|
|
@@ -2370,7 +2370,7 @@ let ur = class extends me {
|
|
|
2370
2370
|
style: i
|
|
2371
2371
|
}
|
|
2372
2372
|
];
|
|
2373
|
-
return this._commandService.executeCommand(
|
|
2373
|
+
return this._commandService.executeCommand($t.id, {
|
|
2374
2374
|
segmentId: r,
|
|
2375
2375
|
textRanges: u,
|
|
2376
2376
|
rectRanges: o,
|
|
@@ -2424,7 +2424,7 @@ let ur = class extends me {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
async _setClipboardData(e, t = !0) {
|
|
2426
2426
|
var i, a, c, d;
|
|
2427
|
-
const o =
|
|
2427
|
+
const o = wd(), r = (e.length > 1 ? e.map((l) => {
|
|
2428
2428
|
var A;
|
|
2429
2429
|
return ((A = l.body) == null ? void 0 : A.dataStream) || "";
|
|
2430
2430
|
}).join(`
|
|
@@ -2522,7 +2522,7 @@ let ur = class extends me {
|
|
|
2522
2522
|
return { body: ce.transform.fromPlainText(t) };
|
|
2523
2523
|
throw new Error("[DocClipboardService] html and text cannot be both empty!");
|
|
2524
2524
|
}
|
|
2525
|
-
const r =
|
|
2525
|
+
const r = Pd(e);
|
|
2526
2526
|
if (r) {
|
|
2527
2527
|
const i = Yo.get(r);
|
|
2528
2528
|
if (i)
|
|
@@ -2595,7 +2595,7 @@ let ur = class extends me {
|
|
|
2595
2595
|
})), this._umdToHtml.convert([t]);
|
|
2596
2596
|
}
|
|
2597
2597
|
};
|
|
2598
|
-
ur =
|
|
2598
|
+
ur = zd([
|
|
2599
2599
|
cn(0, L),
|
|
2600
2600
|
cn(1, Qr),
|
|
2601
2601
|
cn(2, T),
|
|
@@ -2612,12 +2612,12 @@ const ns = 999, ro = {
|
|
|
2612
2612
|
multi: !0,
|
|
2613
2613
|
priority: ns,
|
|
2614
2614
|
preconditions: wo,
|
|
2615
|
-
handler: async (n) => n.get(
|
|
2615
|
+
handler: async (n) => n.get(Lt).copy()
|
|
2616
2616
|
}, os = {
|
|
2617
2617
|
id: "doc.command.copy-current-paragraph",
|
|
2618
2618
|
type: D.COMMAND,
|
|
2619
2619
|
handler: async (n) => {
|
|
2620
|
-
const e = n.get(
|
|
2620
|
+
const e = n.get(Lt), t = Qn(n);
|
|
2621
2621
|
return t ? e.copy(
|
|
2622
2622
|
ir.copy,
|
|
2623
2623
|
[{
|
|
@@ -2634,12 +2634,12 @@ const ns = 999, ro = {
|
|
|
2634
2634
|
multi: !0,
|
|
2635
2635
|
priority: ns,
|
|
2636
2636
|
preconditions: wo,
|
|
2637
|
-
handler: async (n) => n.get(
|
|
2637
|
+
handler: async (n) => n.get(Lt).cut()
|
|
2638
2638
|
}, ss = {
|
|
2639
2639
|
id: "doc.command.cut-current-paragraph",
|
|
2640
2640
|
type: D.COMMAND,
|
|
2641
2641
|
handler: async (n) => {
|
|
2642
|
-
const e = n.get(
|
|
2642
|
+
const e = n.get(Lt), t = Qn(n);
|
|
2643
2643
|
return t ? e.cut(
|
|
2644
2644
|
[{
|
|
2645
2645
|
startOffset: t.paragraphStart,
|
|
@@ -2657,7 +2657,7 @@ const ns = 999, ro = {
|
|
|
2657
2657
|
priority: ns,
|
|
2658
2658
|
preconditions: wo,
|
|
2659
2659
|
handler: async (n) => {
|
|
2660
|
-
const e = n.get(
|
|
2660
|
+
const e = n.get(Lt), o = await n.get(ra).read();
|
|
2661
2661
|
return o.length === 0 ? !1 : e.paste(o);
|
|
2662
2662
|
}
|
|
2663
2663
|
}, Po = {
|
|
@@ -2862,7 +2862,7 @@ function qe(n, e, t) {
|
|
|
2862
2862
|
...e != null ? e : {}
|
|
2863
2863
|
});
|
|
2864
2864
|
}
|
|
2865
|
-
const ri = "doc.command.set-inline-format-bold",
|
|
2865
|
+
const ri = "doc.command.set-inline-format-bold", Qt = {
|
|
2866
2866
|
id: ri,
|
|
2867
2867
|
type: D.COMMAND,
|
|
2868
2868
|
handler: async (n, e) => {
|
|
@@ -2873,7 +2873,7 @@ const ri = "doc.command.set-inline-format-bold", Lt = {
|
|
|
2873
2873
|
t
|
|
2874
2874
|
);
|
|
2875
2875
|
}
|
|
2876
|
-
}, si = "doc.command.set-inline-format-italic",
|
|
2876
|
+
}, si = "doc.command.set-inline-format-italic", Ut = {
|
|
2877
2877
|
id: si,
|
|
2878
2878
|
type: D.COMMAND,
|
|
2879
2879
|
handler: async (n, e) => {
|
|
@@ -2884,7 +2884,7 @@ const ri = "doc.command.set-inline-format-bold", Lt = {
|
|
|
2884
2884
|
t
|
|
2885
2885
|
);
|
|
2886
2886
|
}
|
|
2887
|
-
}, ii = "doc.command.set-inline-format-underline",
|
|
2887
|
+
}, ii = "doc.command.set-inline-format-underline", Ft = {
|
|
2888
2888
|
id: ii,
|
|
2889
2889
|
type: D.COMMAND,
|
|
2890
2890
|
handler: async (n, e) => {
|
|
@@ -2895,7 +2895,7 @@ const ri = "doc.command.set-inline-format-bold", Lt = {
|
|
|
2895
2895
|
t
|
|
2896
2896
|
);
|
|
2897
2897
|
}
|
|
2898
|
-
}, ai = "doc.command.set-inline-format-strikethrough",
|
|
2898
|
+
}, ai = "doc.command.set-inline-format-strikethrough", Ht = {
|
|
2899
2899
|
id: ai,
|
|
2900
2900
|
type: D.COMMAND,
|
|
2901
2901
|
handler: async (n, e) => {
|
|
@@ -2917,7 +2917,7 @@ const ri = "doc.command.set-inline-format-bold", Lt = {
|
|
|
2917
2917
|
t
|
|
2918
2918
|
);
|
|
2919
2919
|
}
|
|
2920
|
-
}, li = "doc.command.set-inline-format-superscript",
|
|
2920
|
+
}, li = "doc.command.set-inline-format-superscript", kt = {
|
|
2921
2921
|
id: li,
|
|
2922
2922
|
type: D.COMMAND,
|
|
2923
2923
|
handler: async (n, e) => {
|
|
@@ -2939,7 +2939,7 @@ const ri = "doc.command.set-inline-format-bold", Lt = {
|
|
|
2939
2939
|
t
|
|
2940
2940
|
);
|
|
2941
2941
|
}
|
|
2942
|
-
}, Ai = "doc.command.set-inline-format-font-family",
|
|
2942
|
+
}, Ai = "doc.command.set-inline-format-font-family", _t = {
|
|
2943
2943
|
id: Ai,
|
|
2944
2944
|
type: D.COMMAND,
|
|
2945
2945
|
handler: async (n, e) => {
|
|
@@ -2984,17 +2984,17 @@ const ri = "doc.command.set-inline-format-bold", Lt = {
|
|
|
2984
2984
|
);
|
|
2985
2985
|
}
|
|
2986
2986
|
}, hr = {
|
|
2987
|
-
[
|
|
2988
|
-
[
|
|
2989
|
-
[
|
|
2990
|
-
[
|
|
2987
|
+
[Qt.id]: "bl",
|
|
2988
|
+
[Ut.id]: "it",
|
|
2989
|
+
[Ft.id]: "ul",
|
|
2990
|
+
[Ht.id]: "st",
|
|
2991
2991
|
[ct.id]: "fs",
|
|
2992
|
-
[
|
|
2992
|
+
[_t.id]: "ff",
|
|
2993
2993
|
[mt.id]: "cl",
|
|
2994
2994
|
[Et.id]: "bg",
|
|
2995
2995
|
[Un.id]: "bg",
|
|
2996
2996
|
[bt.id]: "va",
|
|
2997
|
-
[
|
|
2997
|
+
[kt.id]: "va"
|
|
2998
2998
|
}, yt = {
|
|
2999
2999
|
id: "doc.command.set-inline-format",
|
|
3000
3000
|
type: D.COMMAND,
|
|
@@ -3013,30 +3013,30 @@ const ri = "doc.command.set-inline-format-bold", Lt = {
|
|
|
3013
3013
|
const u = A.getUnitId();
|
|
3014
3014
|
let g;
|
|
3015
3015
|
switch (o) {
|
|
3016
|
-
case Lt.id:
|
|
3017
|
-
// fallthrough
|
|
3018
3016
|
case Qt.id:
|
|
3019
3017
|
// fallthrough
|
|
3020
3018
|
case Ut.id:
|
|
3021
3019
|
// fallthrough
|
|
3022
3020
|
case Ft.id:
|
|
3023
3021
|
// fallthrough
|
|
3022
|
+
case Ht.id:
|
|
3023
|
+
// fallthrough
|
|
3024
3024
|
case bt.id:
|
|
3025
3025
|
// fallthrough
|
|
3026
|
-
case
|
|
3026
|
+
case kt.id: {
|
|
3027
3027
|
const E = a.getDefaultStyle(), b = Ma(
|
|
3028
3028
|
h,
|
|
3029
3029
|
d,
|
|
3030
3030
|
E
|
|
3031
3031
|
);
|
|
3032
|
-
g =
|
|
3032
|
+
g = Yd(
|
|
3033
3033
|
b,
|
|
3034
3034
|
o
|
|
3035
3035
|
);
|
|
3036
3036
|
break;
|
|
3037
3037
|
}
|
|
3038
3038
|
case ct.id:
|
|
3039
|
-
case
|
|
3039
|
+
case _t.id: {
|
|
3040
3040
|
g = t;
|
|
3041
3041
|
break;
|
|
3042
3042
|
}
|
|
@@ -3063,7 +3063,7 @@ const ri = "doc.command.set-inline-format-bold", Lt = {
|
|
|
3063
3063
|
actions: [],
|
|
3064
3064
|
textRanges: c
|
|
3065
3065
|
}
|
|
3066
|
-
}, p = new Ie(), m = W.getInstance(), I = new
|
|
3066
|
+
}, p = new Ie(), m = W.getInstance(), I = new Nt();
|
|
3067
3067
|
I.reset();
|
|
3068
3068
|
for (const E of c) {
|
|
3069
3069
|
let { startOffset: b, endOffset: y, rangeType: C } = E;
|
|
@@ -3107,14 +3107,14 @@ const ri = "doc.command.set-inline-format-bold", Lt = {
|
|
|
3107
3107
|
return f.params.actions = m.editOp(p.serialize(), S), !!r.syncExecuteCommand(f.id, f.params);
|
|
3108
3108
|
}
|
|
3109
3109
|
};
|
|
3110
|
-
function
|
|
3110
|
+
function Gd(n) {
|
|
3111
3111
|
return n !== null && typeof n == "object";
|
|
3112
3112
|
}
|
|
3113
3113
|
function Ba(n, e, t) {
|
|
3114
3114
|
if (/bl|it/.test(e))
|
|
3115
3115
|
return (n == null ? void 0 : n[e]) === z.TRUE ? z.FALSE : z.TRUE;
|
|
3116
3116
|
if (/ul|st/.test(e))
|
|
3117
|
-
return
|
|
3117
|
+
return Gd(n == null ? void 0 : n[e]) && (n == null ? void 0 : n[e]).s === z.TRUE ? {
|
|
3118
3118
|
s: z.FALSE
|
|
3119
3119
|
} : {
|
|
3120
3120
|
s: z.TRUE
|
|
@@ -3179,7 +3179,7 @@ function Ma(n, e, t) {
|
|
|
3179
3179
|
}
|
|
3180
3180
|
return a;
|
|
3181
3181
|
}
|
|
3182
|
-
function
|
|
3182
|
+
function Yd(n, e) {
|
|
3183
3183
|
const t = hr[e];
|
|
3184
3184
|
return Ba(n, t, e);
|
|
3185
3185
|
}
|
|
@@ -3252,7 +3252,7 @@ const _a = {
|
|
|
3252
3252
|
}
|
|
3253
3253
|
return M.params.actions = w.reduce((N, ee) => W.compose(N, ee), null), !!c.syncExecuteCommand(M.id, M.params);
|
|
3254
3254
|
}
|
|
3255
|
-
},
|
|
3255
|
+
}, Kd = {
|
|
3256
3256
|
id: "doc.command-replace-content",
|
|
3257
3257
|
type: D.COMMAND,
|
|
3258
3258
|
handler: async (n, e) => {
|
|
@@ -3265,7 +3265,7 @@ const _a = {
|
|
|
3265
3265
|
subUnitId: t
|
|
3266
3266
|
}, !1), !0) : !!c.syncExecuteCommand(h.id, h.params);
|
|
3267
3267
|
}
|
|
3268
|
-
},
|
|
3268
|
+
}, qd = {
|
|
3269
3269
|
id: "doc.command-cover-content",
|
|
3270
3270
|
type: D.COMMAND,
|
|
3271
3271
|
handler: (n, e) => {
|
|
@@ -3279,7 +3279,7 @@ const _a = {
|
|
|
3279
3279
|
), c.clearUndoRedo(t), !0;
|
|
3280
3280
|
}
|
|
3281
3281
|
};
|
|
3282
|
-
function
|
|
3282
|
+
function Xd(n, e, t, o) {
|
|
3283
3283
|
const r = new Ie(), s = W.getInstance(), i = (t == null ? void 0 : t.dataStream.length) - 2;
|
|
3284
3284
|
i > 0 && r.push({
|
|
3285
3285
|
t: G.DELETE,
|
|
@@ -3300,7 +3300,7 @@ function Da(n, e, t, o, r) {
|
|
|
3300
3300
|
actions: [],
|
|
3301
3301
|
textRanges: []
|
|
3302
3302
|
}
|
|
3303
|
-
}, i =
|
|
3303
|
+
}, i = Xd(e, t, o, r);
|
|
3304
3304
|
return s.params.actions = i, s;
|
|
3305
3305
|
}
|
|
3306
3306
|
const wa = {
|
|
@@ -3327,7 +3327,7 @@ const wa = {
|
|
|
3327
3327
|
}, h = new Ie(), u = W.getInstance();
|
|
3328
3328
|
return h.push(...ce.selection.delete([l], d, 0, r)), A.params.actions = u.editOp(h.serialize()), t.syncExecuteCommand(A.id, A.params);
|
|
3329
3329
|
}
|
|
3330
|
-
},
|
|
3330
|
+
}, Zd = {
|
|
3331
3331
|
id: "doc.command.replace-text-runs",
|
|
3332
3332
|
type: D.COMMAND,
|
|
3333
3333
|
handler: (n, e) => {
|
|
@@ -3357,7 +3357,7 @@ const wa = {
|
|
|
3357
3357
|
}, g = W.getInstance(), f = Ae(l, s);
|
|
3358
3358
|
return u.params.actions = g.editOp(h.serialize(), f), u.params.textRanges = r, i && (u.params.options = i), !!c.syncExecuteCommand(u.id, u.params);
|
|
3359
3359
|
}
|
|
3360
|
-
},
|
|
3360
|
+
}, Jd = {
|
|
3361
3361
|
id: "doc.command.insert-custom-range",
|
|
3362
3362
|
type: D.COMMAND,
|
|
3363
3363
|
handler: (n, e) => {
|
|
@@ -3399,7 +3399,7 @@ const wa = {
|
|
|
3399
3399
|
isEditing: !1
|
|
3400
3400
|
}
|
|
3401
3401
|
};
|
|
3402
|
-
new
|
|
3402
|
+
new Nt().reset();
|
|
3403
3403
|
const p = ce.paragraph.bullet.switch({
|
|
3404
3404
|
paragraphs: h,
|
|
3405
3405
|
listType: s,
|
|
@@ -3692,7 +3692,7 @@ const ls = {
|
|
|
3692
3692
|
actions: [],
|
|
3693
3693
|
textRanges: a
|
|
3694
3694
|
}
|
|
3695
|
-
}, p = new
|
|
3695
|
+
}, p = new Nt();
|
|
3696
3696
|
p.reset();
|
|
3697
3697
|
const m = new Ie(), I = W.getInstance();
|
|
3698
3698
|
for (const C of h) {
|
|
@@ -3748,7 +3748,7 @@ const ls = {
|
|
|
3748
3748
|
handler: (n) => n.get(T).syncExecuteCommand(lt.id, {
|
|
3749
3749
|
alignType: Ue.JUSTIFIED
|
|
3750
3750
|
})
|
|
3751
|
-
},
|
|
3751
|
+
}, $d = (n, e) => {
|
|
3752
3752
|
const o = n.get(L).getUnit(e.unitId, _.UNIVER_DOC);
|
|
3753
3753
|
return o == null || o.setZoomRatio(e.zoomRatio), { ...e };
|
|
3754
3754
|
}, tt = {
|
|
@@ -3771,7 +3771,7 @@ const ls = {
|
|
|
3771
3771
|
const c = {
|
|
3772
3772
|
zoomRatio: i,
|
|
3773
3773
|
unitId: s
|
|
3774
|
-
}, d =
|
|
3774
|
+
}, d = $d(n, c);
|
|
3775
3775
|
return t.syncExecuteCommand(tt.id, c) ? (o.pushUndoRedo({
|
|
3776
3776
|
unitID: s,
|
|
3777
3777
|
undoMutations: [{ id: tt.id, params: d }],
|
|
@@ -3914,7 +3914,7 @@ const ls = {
|
|
|
3914
3914
|
})
|
|
3915
3915
|
};
|
|
3916
3916
|
var Zn = /* @__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))(Zn || {});
|
|
3917
|
-
const
|
|
3917
|
+
const qt = {
|
|
3918
3918
|
page: 0,
|
|
3919
3919
|
section: 1,
|
|
3920
3920
|
column: 2,
|
|
@@ -3945,7 +3945,7 @@ function fi(n) {
|
|
|
3945
3945
|
collapsed: r
|
|
3946
3946
|
};
|
|
3947
3947
|
}
|
|
3948
|
-
function
|
|
3948
|
+
function eA(n, e, t, o) {
|
|
3949
3949
|
let r = o, s = o;
|
|
3950
3950
|
for (let i = 0; i < n.length; i++) {
|
|
3951
3951
|
const c = n[i].count;
|
|
@@ -4020,7 +4020,7 @@ class It {
|
|
|
4020
4020
|
return;
|
|
4021
4021
|
const { x: E, y: b } = this._liquid;
|
|
4022
4022
|
let y, C;
|
|
4023
|
-
const B = v[d], x = v[l], M = v[d - 1], w = (B == null ? void 0 : B.left) || 0, F = (B == null ? void 0 : B.width) || 0, P = (x == null ? void 0 : x.left) || 0, N = (x == null ? void 0 : x.width) || 0, ee = (B == null ? void 0 : B.glyphType) === $i.LIST, { startOffset: $, endOffset: U } =
|
|
4023
|
+
const B = v[d], x = v[l], M = v[d - 1], w = (B == null ? void 0 : B.left) || 0, F = (B == null ? void 0 : B.width) || 0, P = (x == null ? void 0 : x.left) || 0, N = (x == null ? void 0 : x.width) || 0, ee = (B == null ? void 0 : B.glyphType) === $i.LIST, { startOffset: $, endOffset: U } = eA(v, d, l, R), H = a.glyph === d && A ? a.isBack : !0, k = c.glyph === l && h ? c.isBack : !1, ne = a === c, ie = H && M != null ? M : B;
|
|
4024
4024
|
if (d === 0 && l === v.length - 1)
|
|
4025
4025
|
y = {
|
|
4026
4026
|
startX: E + w + (ee ? F : 0),
|
|
@@ -4141,7 +4141,7 @@ class It {
|
|
|
4141
4141
|
continue;
|
|
4142
4142
|
}
|
|
4143
4143
|
const M = x.sections, { start_next: w, end_next: F } = this._getSelectionRuler(
|
|
4144
|
-
|
|
4144
|
+
qt.page,
|
|
4145
4145
|
e,
|
|
4146
4146
|
t,
|
|
4147
4147
|
M.length - 1,
|
|
@@ -4172,7 +4172,7 @@ class It {
|
|
|
4172
4172
|
}
|
|
4173
4173
|
for (let P = w; P <= F; P++) {
|
|
4174
4174
|
const N = M[P], ee = N.columns, { start_next: $, end_next: U } = this._getSelectionRuler(
|
|
4175
|
-
|
|
4175
|
+
qt.section,
|
|
4176
4176
|
e,
|
|
4177
4177
|
t,
|
|
4178
4178
|
ee.length - 1,
|
|
@@ -4181,7 +4181,7 @@ class It {
|
|
|
4181
4181
|
this._liquid.translateSection(N);
|
|
4182
4182
|
for (let H = $; H <= U; H++) {
|
|
4183
4183
|
const k = ee[H], ne = k.lines, { start_next: ie, end_next: ae } = this._getSelectionRuler(
|
|
4184
|
-
|
|
4184
|
+
qt.column,
|
|
4185
4185
|
e,
|
|
4186
4186
|
t,
|
|
4187
4187
|
ne.length - 1,
|
|
@@ -4190,7 +4190,7 @@ class It {
|
|
|
4190
4190
|
this._liquid.translateColumn(k);
|
|
4191
4191
|
for (let oe = ie; oe <= ae; oe++) {
|
|
4192
4192
|
const he = ne[oe], { divides: we } = he, { start_next: Ze, end_next: At } = this._getSelectionRuler(
|
|
4193
|
-
|
|
4193
|
+
qt.line,
|
|
4194
4194
|
e,
|
|
4195
4195
|
t,
|
|
4196
4196
|
we.length - 1,
|
|
@@ -4201,7 +4201,7 @@ class It {
|
|
|
4201
4201
|
const Wo = we[Je];
|
|
4202
4202
|
this._liquid.translateSave(), this._liquid.translateDivide(Wo);
|
|
4203
4203
|
const { glyphGroup: xc } = Wo, { start_next: Oc, end_next: Tc } = this._getSelectionRuler(
|
|
4204
|
-
|
|
4204
|
+
qt.divide,
|
|
4205
4205
|
e,
|
|
4206
4206
|
t,
|
|
4207
4207
|
xc.length - 1,
|
|
@@ -4218,7 +4218,7 @@ class It {
|
|
|
4218
4218
|
}
|
|
4219
4219
|
}
|
|
4220
4220
|
}
|
|
4221
|
-
function
|
|
4221
|
+
function tA(n, e) {
|
|
4222
4222
|
const { path: t } = n, { path: o } = e;
|
|
4223
4223
|
if (t.length !== o.length || t.indexOf("cells") === -1)
|
|
4224
4224
|
return !1;
|
|
@@ -4254,14 +4254,14 @@ function Xo(n, e) {
|
|
|
4254
4254
|
const i = t[t.length - 3], a = o[o.length - 3], c = t[t.length - 1], d = o[o.length - 1];
|
|
4255
4255
|
return i < a ? !0 : i > a ? !1 : c <= d;
|
|
4256
4256
|
}
|
|
4257
|
-
function
|
|
4257
|
+
function jt(n) {
|
|
4258
4258
|
return n.sections[0].columns[0].lines.length === 0;
|
|
4259
4259
|
}
|
|
4260
|
-
function
|
|
4260
|
+
function nA(n, e, t) {
|
|
4261
4261
|
let o = e, r = t, s = n[o], i = n[r];
|
|
4262
|
-
for (; o < r && (
|
|
4263
|
-
|
|
4264
|
-
if (!
|
|
4262
|
+
for (; o < r && (jt(s) || jt(i)); )
|
|
4263
|
+
jt(s) ? (o++, s = n[o]) : jt(i) && (r--, i = n[r]);
|
|
4264
|
+
if (!jt(s) && !jt(i))
|
|
4265
4265
|
return [s, i];
|
|
4266
4266
|
}
|
|
4267
4267
|
class ka {
|
|
@@ -4305,7 +4305,7 @@ class ka {
|
|
|
4305
4305
|
const { x: y, y: C } = this._liquid, { left: B } = b;
|
|
4306
4306
|
for (const x of b.rows)
|
|
4307
4307
|
if (x.index >= h && x.index <= g) {
|
|
4308
|
-
const M =
|
|
4308
|
+
const M = nA(x.cells, u, f);
|
|
4309
4309
|
if (M == null)
|
|
4310
4310
|
continue;
|
|
4311
4311
|
const [w, F] = M, P = {
|
|
@@ -4376,7 +4376,7 @@ class ka {
|
|
|
4376
4376
|
};
|
|
4377
4377
|
}
|
|
4378
4378
|
}
|
|
4379
|
-
const
|
|
4379
|
+
const oA = "__TestSelectionRange__", rA = "__TestSelectionAnchor__", pi = 6, Zo = 500, sA = 500, mr = 3;
|
|
4380
4380
|
function Jn(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 {
|
|
@@ -4399,7 +4399,7 @@ function Es(n) {
|
|
|
4399
4399
|
};
|
|
4400
4400
|
});
|
|
4401
4401
|
}
|
|
4402
|
-
class
|
|
4402
|
+
class Zt {
|
|
4403
4403
|
constructor(e, t, o, r, s, i = Sn, a = "", c = -1) {
|
|
4404
4404
|
O(this, "rangeType", He.TEXT);
|
|
4405
4405
|
// Identifies whether the range is the current one, most of which is the last range.
|
|
@@ -4419,7 +4419,7 @@ class Xt {
|
|
|
4419
4419
|
this._anchorShape && this._anchorShape.visible && (this.activeStatic(), setTimeout(() => {
|
|
4420
4420
|
this.deactivateStatic();
|
|
4421
4421
|
}, Zo));
|
|
4422
|
-
},
|
|
4422
|
+
}, sA + Zo);
|
|
4423
4423
|
}
|
|
4424
4424
|
// The start position of the range
|
|
4425
4425
|
get startOffset() {
|
|
@@ -4554,7 +4554,7 @@ class Xt {
|
|
|
4554
4554
|
return !0;
|
|
4555
4555
|
if (e == null || t == null)
|
|
4556
4556
|
return !1;
|
|
4557
|
-
const o = Object.keys(
|
|
4557
|
+
const o = Object.keys(qt);
|
|
4558
4558
|
for (const r of o) {
|
|
4559
4559
|
const s = e[r], i = t[r];
|
|
4560
4560
|
if (s !== i)
|
|
@@ -4568,7 +4568,7 @@ class Xt {
|
|
|
4568
4568
|
this._rangeShape.translate(t, o), this._rangeShape.updatePointGroup(e), this._rangeShape.show();
|
|
4569
4569
|
return;
|
|
4570
4570
|
}
|
|
4571
|
-
const r = 0.3, s = new ea(
|
|
4571
|
+
const r = 0.3, s = new ea(oA + ge(pi), {
|
|
4572
4572
|
pointsGroup: e,
|
|
4573
4573
|
fill: ((i = this.style) == null ? void 0 : i.fill) || fn(gn.black, r),
|
|
4574
4574
|
left: t,
|
|
@@ -4591,7 +4591,7 @@ class Xt {
|
|
|
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 Kn(
|
|
4594
|
+
const g = new Kn(rA + ge(pi), {
|
|
4595
4595
|
left: A,
|
|
4596
4596
|
top: h,
|
|
4597
4597
|
height: c,
|
|
@@ -4605,7 +4605,7 @@ class Xt {
|
|
|
4605
4605
|
e.length !== 0 && (this._cursorList = e);
|
|
4606
4606
|
}
|
|
4607
4607
|
}
|
|
4608
|
-
const
|
|
4608
|
+
const iA = "__DocTableRectRange__", aA = 6;
|
|
4609
4609
|
function Jo(n, e, t, o, r, s = Sn, i = "", a = -1) {
|
|
4610
4610
|
const c = e.getOffsetConfig(), l = new ka(c, t).getNodePositionGroup(o, r);
|
|
4611
4611
|
return (l != null ? l : []).map((A) => new Va(
|
|
@@ -4746,7 +4746,7 @@ class Va {
|
|
|
4746
4746
|
this._rangeShape.translate(t, o), this._rangeShape.updatePointGroup(e), this._rangeShape.show();
|
|
4747
4747
|
return;
|
|
4748
4748
|
}
|
|
4749
|
-
const r = 0.3, s = new ea(
|
|
4749
|
+
const r = 0.3, s = new ea(iA + ge(aA), {
|
|
4750
4750
|
pointsGroup: e,
|
|
4751
4751
|
fill: ((i = this.style) == null ? void 0 : i.fill) || fn(gn.black, r),
|
|
4752
4752
|
left: t,
|
|
@@ -4760,14 +4760,14 @@ class Va {
|
|
|
4760
4760
|
function mi(n, e, t, o, r, s, i, a, c = !0, d = !0) {
|
|
4761
4761
|
const l = r.findNodePositionByCharIndex(n, c, i, a), A = r.findNodePositionByCharIndex(e, d, i, a);
|
|
4762
4762
|
if (!(l == null || A == null))
|
|
4763
|
-
return new
|
|
4763
|
+
return new Zt(t, o, r, l, A, s, i, a);
|
|
4764
4764
|
}
|
|
4765
|
-
function
|
|
4765
|
+
function cA(n, e, t, o, r, s, i, a) {
|
|
4766
4766
|
const c = r.findNodePositionByCharIndex(n, !0, i, a), d = r.findNodePositionByCharIndex(e, !0, i, a);
|
|
4767
4767
|
if (!(c == null || d == null))
|
|
4768
4768
|
return new Va(t, o, r, c, d, s, i, a);
|
|
4769
4769
|
}
|
|
4770
|
-
function
|
|
4770
|
+
function lA(n, e, t, o, r, s, i, a) {
|
|
4771
4771
|
const c = r.findNodePositionByCharIndex(n, !0, i, a), d = r.findNodePositionByCharIndex(e, !0, i, a);
|
|
4772
4772
|
if (!(c == null || d == null))
|
|
4773
4773
|
return Er(
|
|
@@ -4785,7 +4785,7 @@ function Er(n, e, t, o, r, s, i, a) {
|
|
|
4785
4785
|
const c = [], d = [], l = [t, o, r, n, e, s, i, a];
|
|
4786
4786
|
if (Ha(r, n, e)) {
|
|
4787
4787
|
if (Fa(n, e))
|
|
4788
|
-
return c.push(new
|
|
4788
|
+
return c.push(new Zt(...l)), {
|
|
4789
4789
|
textRanges: c,
|
|
4790
4790
|
rectRanges: d
|
|
4791
4791
|
};
|
|
@@ -4799,7 +4799,7 @@ function Er(n, e, t, o, r, s, i, a) {
|
|
|
4799
4799
|
};
|
|
4800
4800
|
}
|
|
4801
4801
|
}
|
|
4802
|
-
if (
|
|
4802
|
+
if (tA(n, e)) {
|
|
4803
4803
|
const S = Jo(
|
|
4804
4804
|
...l
|
|
4805
4805
|
);
|
|
@@ -4828,7 +4828,7 @@ function Er(n, e, t, o, r, s, i, a) {
|
|
|
4828
4828
|
else if (M > f && w < p) {
|
|
4829
4829
|
if (P = r.findNodePositionByCharIndex(M + 3, !0, i, a), N = r.findNodePositionByCharIndex(w - 4, !0, i, a), m <= M - 1) {
|
|
4830
4830
|
const U = r.findNodePositionByCharIndex(m, !0, i, a), H = r.findNodePositionByCharIndex(M - 1, !1, i, a), k = g === De.FORWARD ? U : H, ne = g === De.FORWARD ? H : U;
|
|
4831
|
-
c.push(new
|
|
4831
|
+
c.push(new Zt(t, o, r, k, ne, s, i, a));
|
|
4832
4832
|
}
|
|
4833
4833
|
m = w + 1;
|
|
4834
4834
|
}
|
|
@@ -4850,7 +4850,7 @@ function Er(n, e, t, o, r, s, i, a) {
|
|
|
4850
4850
|
const M = r.findNodePositionByCharIndex(m, !0, i, a), w = r.findNodePositionByCharIndex(I, !x, i, a), F = g === De.FORWARD ? M : w, P = g === De.FORWARD ? w : M;
|
|
4851
4851
|
if (d.length && ue.diffValue(F, P))
|
|
4852
4852
|
continue;
|
|
4853
|
-
c.push(new
|
|
4853
|
+
c.push(new Zt(t, o, r, F, P, s, i, a));
|
|
4854
4854
|
}
|
|
4855
4855
|
}
|
|
4856
4856
|
return {
|
|
@@ -4858,7 +4858,7 @@ function Er(n, e, t, o, r, s, i, a) {
|
|
|
4858
4858
|
rectRanges: d
|
|
4859
4859
|
};
|
|
4860
4860
|
}
|
|
4861
|
-
function
|
|
4861
|
+
function dA(n) {
|
|
4862
4862
|
const e = n == null ? void 0 : n.getCanvasElement();
|
|
4863
4863
|
if (!e)
|
|
4864
4864
|
return {
|
|
@@ -4904,7 +4904,7 @@ function Ir(n) {
|
|
|
4904
4904
|
isActive: n.isActive()
|
|
4905
4905
|
};
|
|
4906
4906
|
}
|
|
4907
|
-
function
|
|
4907
|
+
function AA(n) {
|
|
4908
4908
|
const e = Ir(n), {
|
|
4909
4909
|
startRow: t,
|
|
4910
4910
|
startColumn: o,
|
|
@@ -4927,8 +4927,8 @@ function uA(n) {
|
|
|
4927
4927
|
spanEntireTable: d
|
|
4928
4928
|
};
|
|
4929
4929
|
}
|
|
4930
|
-
var
|
|
4931
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
4930
|
+
var uA = Object.getOwnPropertyDescriptor, hA = (n, e, t, o) => {
|
|
4931
|
+
for (var r = o > 1 ? void 0 : o ? uA(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
|
}, Vn = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -5033,7 +5033,7 @@ let Re = class extends Ct {
|
|
|
5033
5033
|
_currentSegmentPage: s,
|
|
5034
5034
|
_selectionStyle: i
|
|
5035
5035
|
} = this, { scene: a, mainComponent: c } = this._context, d = c, l = this._docSkeletonManagerService.getSkeleton(), A = (h, u) => {
|
|
5036
|
-
const g =
|
|
5036
|
+
const g = lA(
|
|
5037
5037
|
h,
|
|
5038
5038
|
u,
|
|
5039
5039
|
a,
|
|
@@ -5053,7 +5053,7 @@ let Re = class extends Ct {
|
|
|
5053
5053
|
for (const h of e) {
|
|
5054
5054
|
const { startOffset: u, endOffset: g, rangeType: f, startNodePosition: p, endNodePosition: m } = h;
|
|
5055
5055
|
if (f === He.RECT) {
|
|
5056
|
-
const I =
|
|
5056
|
+
const I = cA(
|
|
5057
5057
|
u,
|
|
5058
5058
|
g,
|
|
5059
5059
|
a,
|
|
@@ -5229,7 +5229,7 @@ let Re = class extends Ct {
|
|
|
5229
5229
|
let u = s, g = i;
|
|
5230
5230
|
this._onPointerEvent = !0, this._scenePointerMoveSubs.push(t.onPointerMove$.subscribeEvent((m) => {
|
|
5231
5231
|
const { offsetX: I, offsetY: S } = m;
|
|
5232
|
-
t.setCursor(
|
|
5232
|
+
t.setCursor(Dt.TEXT), !(Math.sqrt((I - u) ** 2 + (S - g) ** 2) < 3) && (this._moving(I, S), h.scrolling(I, S, () => {
|
|
5233
5233
|
this._moving(I, S);
|
|
5234
5234
|
}), u = I, g = S);
|
|
5235
5235
|
})), this._scenePointerUpSubs.push(t.onPointerUp$.subscribeEvent(() => {
|
|
@@ -5240,7 +5240,7 @@ let Re = class extends Ct {
|
|
|
5240
5240
|
this._disposeScrollTimers();
|
|
5241
5241
|
return;
|
|
5242
5242
|
}
|
|
5243
|
-
const I = new
|
|
5243
|
+
const I = new Zt(t, o, r, this._anchorNodePosition, void 0, this._selectionStyle, this._currentSegmentId, this._currentSegmentPage);
|
|
5244
5244
|
this._addTextRange(I);
|
|
5245
5245
|
} else if (this._anchorNodePosition && this._focusNodePosition) {
|
|
5246
5246
|
for (const I of this._rangeListCache)
|
|
@@ -5283,7 +5283,7 @@ let Re = class extends Ct {
|
|
|
5283
5283
|
return this._rangeList.map(Ir);
|
|
5284
5284
|
}
|
|
5285
5285
|
_getAllRectRanges() {
|
|
5286
|
-
return this._rectRangeList.map(
|
|
5286
|
+
return this._rectRangeList.map(AA);
|
|
5287
5287
|
}
|
|
5288
5288
|
getAllTextRanges() {
|
|
5289
5289
|
return this._getAllTextRanges();
|
|
@@ -5417,7 +5417,7 @@ let Re = class extends Ct {
|
|
|
5417
5417
|
}
|
|
5418
5418
|
_createTextRangeByAnchorPosition(e) {
|
|
5419
5419
|
this._removeAllRanges();
|
|
5420
|
-
const { scene: t, mainComponent: o } = this._context, r = this._docSkeletonManagerService.getSkeleton(), s = new
|
|
5420
|
+
const { scene: t, mainComponent: o } = this._context, r = this._docSkeletonManagerService.getSkeleton(), s = new Zt(t, o, r, e, void 0, this._selectionStyle, this._currentSegmentId, this._currentSegmentPage);
|
|
5421
5421
|
this._addTextRange(s);
|
|
5422
5422
|
}
|
|
5423
5423
|
_updateActiveRangePosition(e) {
|
|
@@ -5453,7 +5453,7 @@ let Re = class extends Ct {
|
|
|
5453
5453
|
_getCanvasOffset() {
|
|
5454
5454
|
var t;
|
|
5455
5455
|
const e = (t = this._context.scene) == null ? void 0 : t.getEngine();
|
|
5456
|
-
return
|
|
5456
|
+
return dA(e);
|
|
5457
5457
|
}
|
|
5458
5458
|
_updateInputPosition(e = !1) {
|
|
5459
5459
|
const t = this._getActiveRangeInstance(), o = t == null ? void 0 : t.getAnchor();
|
|
@@ -5626,7 +5626,7 @@ let Re = class extends Ct {
|
|
|
5626
5626
|
this._onInputBefore$.complete(), this._onKeydown$.complete(), this._onInput$.complete(), this._onCompositionstart$.complete(), this._onCompositionupdate$.complete(), this._onCompositionend$.complete(), this._onSelectionStart$.complete(), this._textSelectionInner$.complete(), this._onPaste$.complete(), this._onFocus$.complete(), this._onBlur$.complete(), this._onPointerDown$.complete();
|
|
5627
5627
|
}
|
|
5628
5628
|
};
|
|
5629
|
-
Re =
|
|
5629
|
+
Re = hA([
|
|
5630
5630
|
Vn(1, Oo),
|
|
5631
5631
|
Vn(2, Qr),
|
|
5632
5632
|
Vn(3, L),
|
|
@@ -5681,8 +5681,8 @@ const ko = {
|
|
|
5681
5681
|
}
|
|
5682
5682
|
return u.params.actions = f.reduce((b, y) => W.compose(b, y), null), !!e.syncExecuteCommand(u.id, u.params);
|
|
5683
5683
|
}
|
|
5684
|
-
},
|
|
5685
|
-
id:
|
|
5684
|
+
}, gA = "doc.command.create-table", Wa = {
|
|
5685
|
+
id: gA,
|
|
5686
5686
|
type: D.COMMAND,
|
|
5687
5687
|
// eslint-disable-next-line max-lines-per-function
|
|
5688
5688
|
handler: async (n, e) => {
|
|
@@ -5727,7 +5727,7 @@ const ko = {
|
|
|
5727
5727
|
p,
|
|
5728
5728
|
B,
|
|
5729
5729
|
x
|
|
5730
|
-
), { dataStream: w, paragraphs: F, sectionBreaks: P } =
|
|
5730
|
+
), { dataStream: w, paragraphs: F, sectionBreaks: P } = fd(t, o), N = (Ze = (we = (he = (oe = S.parent) == null ? void 0 : oe.parent) == null ? void 0 : he.parent) == null ? void 0 : we.parent) == null ? void 0 : Ze.parent;
|
|
5731
5731
|
if (N == null)
|
|
5732
5732
|
return !1;
|
|
5733
5733
|
const { pageWidth: ee, marginLeft: $, marginRight: U } = N, H = ma(t, o, ee - $ - U);
|
|
@@ -5818,7 +5818,7 @@ const ko = {
|
|
|
5818
5818
|
const l = Ke(n, c.getUnitId());
|
|
5819
5819
|
if (l == null)
|
|
5820
5820
|
return !1;
|
|
5821
|
-
const A = l.getViewModel(), h = c == null ? void 0 : c.getUnitId(), u = new Ie(), g = W.getInstance(), f =
|
|
5821
|
+
const A = l.getViewModel(), h = c == null ? void 0 : c.getUnitId(), u = new Ie(), g = W.getInstance(), f = vd(i, A);
|
|
5822
5822
|
if (f == null)
|
|
5823
5823
|
return !1;
|
|
5824
5824
|
const { offsets: p, columnIndexes: m, tableId: I, cursor: S, rowCount: v, selectWholeTable: R } = f;
|
|
@@ -5900,20 +5900,20 @@ const ko = {
|
|
|
5900
5900
|
const y = g.removeOp(["tableSource", I]);
|
|
5901
5901
|
return v.push(y), E.params.actions = v.reduce((B, x) => W.compose(B, x), null), !!o.syncExecuteCommand(E.id, E.params);
|
|
5902
5902
|
}
|
|
5903
|
-
}, vs = "doc.command.table-insert-row", Cs = "doc.command.table-insert-column",
|
|
5904
|
-
id:
|
|
5903
|
+
}, vs = "doc.command.table-insert-row", Cs = "doc.command.table-insert-column", fA = "doc.command.table-insert-row-above", pA = "doc.command.table-insert-row-bellow", mA = "doc.command.table-insert-column-left", EA = "doc.command.table-insert-column-right", Rs = {
|
|
5904
|
+
id: fA,
|
|
5905
5905
|
type: D.COMMAND,
|
|
5906
5906
|
handler: async (n) => n.get(T).executeCommand(vs, { position: _o.ABOVE })
|
|
5907
5907
|
}, bs = {
|
|
5908
|
-
id:
|
|
5908
|
+
id: pA,
|
|
5909
5909
|
type: D.COMMAND,
|
|
5910
5910
|
handler: async (n) => n.get(T).executeCommand(vs, { position: _o.BELLOW })
|
|
5911
5911
|
}, ys = {
|
|
5912
|
-
id:
|
|
5912
|
+
id: mA,
|
|
5913
5913
|
type: D.COMMAND,
|
|
5914
5914
|
handler: async (n) => n.get(T).executeCommand(Cs, { position: Yr.LEFT })
|
|
5915
5915
|
}, xs = {
|
|
5916
|
-
id:
|
|
5916
|
+
id: EA,
|
|
5917
5917
|
type: D.COMMAND,
|
|
5918
5918
|
handler: async (n) => n.get(T).executeCommand(Cs, { position: Yr.RIGHT })
|
|
5919
5919
|
}, ja = {
|
|
@@ -5930,7 +5930,7 @@ const ko = {
|
|
|
5930
5930
|
const h = Ke(n, l.getUnitId());
|
|
5931
5931
|
if (h == null)
|
|
5932
5932
|
return !1;
|
|
5933
|
-
const u = h.getViewModel(), g = l == null ? void 0 : l.getUnitId(), f = new Ie(), p = W.getInstance(), m =
|
|
5933
|
+
const u = h.getViewModel(), g = l == null ? void 0 : l.getUnitId(), f = new Ie(), p = W.getInstance(), m = Ed(c, t, u);
|
|
5934
5934
|
if (m == null)
|
|
5935
5935
|
return !1;
|
|
5936
5936
|
const { offset: I, colCount: S, tableId: v, insertRowIndex: R } = m, E = [], b = I + 2, y = [{
|
|
@@ -5949,7 +5949,7 @@ const ko = {
|
|
|
5949
5949
|
t: G.RETAIN,
|
|
5950
5950
|
len: I
|
|
5951
5951
|
});
|
|
5952
|
-
const B =
|
|
5952
|
+
const B = pd(S);
|
|
5953
5953
|
f.push({
|
|
5954
5954
|
t: G.INSERT,
|
|
5955
5955
|
body: B,
|
|
@@ -5960,7 +5960,7 @@ const ko = {
|
|
|
5960
5960
|
const M = qr(S), w = p.insertOp(["tableSource", v, "tableRows", R], M);
|
|
5961
5961
|
return E.push(w), C.params.actions = E.reduce((P, N) => W.compose(P, N), null), !!s.syncExecuteCommand(C.id, C.params);
|
|
5962
5962
|
}
|
|
5963
|
-
},
|
|
5963
|
+
}, IA = {
|
|
5964
5964
|
id: Cs,
|
|
5965
5965
|
type: D.COMMAND,
|
|
5966
5966
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -5975,7 +5975,7 @@ const ko = {
|
|
|
5975
5975
|
const h = Ke(n, l.getUnitId());
|
|
5976
5976
|
if (h == null)
|
|
5977
5977
|
return !1;
|
|
5978
|
-
const u = h.getViewModel(), g = l == null ? void 0 : l.getUnitId(), f = new Ie(), p = W.getInstance(), m =
|
|
5978
|
+
const u = h.getViewModel(), g = l == null ? void 0 : l.getUnitId(), f = new Ie(), p = W.getInstance(), m = Id(c, t, u);
|
|
5979
5979
|
if (m == null)
|
|
5980
5980
|
return !1;
|
|
5981
5981
|
const { offsets: I, columnIndex: S, tableId: v, rowCount: R } = m, E = [], b = I[0] + 1, y = [{
|
|
@@ -5995,7 +5995,7 @@ const ko = {
|
|
|
5995
5995
|
t: G.RETAIN,
|
|
5996
5996
|
len: oe
|
|
5997
5997
|
});
|
|
5998
|
-
const he =
|
|
5998
|
+
const he = md();
|
|
5999
5999
|
f.push({
|
|
6000
6000
|
t: G.INSERT,
|
|
6001
6001
|
body: he,
|
|
@@ -6008,7 +6008,7 @@ const ko = {
|
|
|
6008
6008
|
const he = Kr(), we = p.insertOp(["tableSource", v, "tableRows", oe, "tableCells", S], he);
|
|
6009
6009
|
E.push(we);
|
|
6010
6010
|
}
|
|
6011
|
-
const x = l.getSnapshot(), M = x.documentStyle, { marginLeft: w = 0, marginRight: F = 0 } = M, P = ((ie = (ne = M.pageSize) == null ? void 0 : ne.width) != null ? ie : 800) - w - F, N = (ae = x == null ? void 0 : x.tableSource) == null ? void 0 : ae[v].tableColumns, { newColWidth: ee, widths: $ } =
|
|
6011
|
+
const x = l.getSnapshot(), M = x.documentStyle, { marginLeft: w = 0, marginRight: F = 0 } = M, P = ((ie = (ne = M.pageSize) == null ? void 0 : ne.width) != null ? ie : 800) - w - F, N = (ae = x == null ? void 0 : x.tableSource) == null ? void 0 : ae[v].tableColumns, { newColWidth: ee, widths: $ } = Sd(P, N, S);
|
|
6012
6012
|
for (let oe = 0; oe < $.length; oe++) {
|
|
6013
6013
|
const he = p.replaceOp(["tableSource", v, "tableColumns", oe, "size", "width", "v"], N[oe].size.width.v, $[oe]);
|
|
6014
6014
|
E.push(he);
|
|
@@ -6080,7 +6080,7 @@ const ko = {
|
|
|
6080
6080
|
handler: (n, e) => !!e
|
|
6081
6081
|
};
|
|
6082
6082
|
function Me({ ref: n, ...e }) {
|
|
6083
|
-
const { icon: t, id: o, className: r, extend: s, ...i } = e, a = `univerjs-icon univerjs-icon-${o} ${r || ""}`.trim(), c = ke(`_${
|
|
6083
|
+
const { icon: t, id: o, className: r, extend: s, ...i } = e, a = `univerjs-icon univerjs-icon-${o} ${r || ""}`.trim(), c = ke(`_${CA()}`);
|
|
6084
6084
|
return Ya(t, `${o}`, {
|
|
6085
6085
|
defIds: t.defIds,
|
|
6086
6086
|
idSuffix: c.current
|
|
@@ -6093,11 +6093,11 @@ function Me({ ref: n, ...e }) {
|
|
|
6093
6093
|
function Ya(n, e, t, o, r) {
|
|
6094
6094
|
return Te(n.tag, {
|
|
6095
6095
|
key: e,
|
|
6096
|
-
...
|
|
6096
|
+
...SA(n, t, r),
|
|
6097
6097
|
...o
|
|
6098
|
-
}, (
|
|
6098
|
+
}, (vA(n, t).children || []).map((s, i) => Ya(s, `${e}-${n.tag}-${i}`, t, void 0, r)));
|
|
6099
6099
|
}
|
|
6100
|
-
function
|
|
6100
|
+
function SA(n, e, t) {
|
|
6101
6101
|
const o = { ...n.attrs };
|
|
6102
6102
|
t != null && t.colorChannel1 && o.fill === "colorChannel1" && (o.fill = t.colorChannel1), n.tag === "mask" && o.id && (o.id = o.id + e.idSuffix), Object.entries(o).forEach(([s, i]) => {
|
|
6103
6103
|
s === "mask" && typeof i == "string" && (o[s] = i.replace(/url\(#(.*)\)/, `url(#$1${e.idSuffix})`));
|
|
@@ -6107,7 +6107,7 @@ function vA(n, e, t) {
|
|
|
6107
6107
|
typeof i == "string" && (o[s] = i.replace(/url\(#(.*)\)/, `url(#$1${e.idSuffix})`));
|
|
6108
6108
|
})), o;
|
|
6109
6109
|
}
|
|
6110
|
-
function
|
|
6110
|
+
function vA(n, e) {
|
|
6111
6111
|
var o;
|
|
6112
6112
|
const { defIds: t } = e;
|
|
6113
6113
|
return !t || t.length === 0 ? n : n.tag === "defs" && ((o = n.children) != null && o.length) ? {
|
|
@@ -6121,11 +6121,11 @@ function CA(n, e) {
|
|
|
6121
6121
|
} : r)
|
|
6122
6122
|
} : n;
|
|
6123
6123
|
}
|
|
6124
|
-
function
|
|
6124
|
+
function CA() {
|
|
6125
6125
|
return Math.random().toString(36).substring(2, 8);
|
|
6126
6126
|
}
|
|
6127
6127
|
Me.displayName = "UniverIcon";
|
|
6128
|
-
const
|
|
6128
|
+
const RA = {
|
|
6129
6129
|
tag: "svg",
|
|
6130
6130
|
attrs: {
|
|
6131
6131
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6168,11 +6168,11 @@ const bA = {
|
|
|
6168
6168
|
return Te(Me, Object.assign({}, e, {
|
|
6169
6169
|
id: "align-text-both-icon",
|
|
6170
6170
|
ref: t,
|
|
6171
|
-
icon:
|
|
6171
|
+
icon: RA
|
|
6172
6172
|
}));
|
|
6173
6173
|
});
|
|
6174
6174
|
Ka.displayName = "AlignTextBothIcon";
|
|
6175
|
-
const
|
|
6175
|
+
const bA = {
|
|
6176
6176
|
tag: "svg",
|
|
6177
6177
|
attrs: {
|
|
6178
6178
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6208,11 +6208,11 @@ const yA = {
|
|
|
6208
6208
|
return Te(Me, Object.assign({}, e, {
|
|
6209
6209
|
id: "catalogue-icon",
|
|
6210
6210
|
ref: t,
|
|
6211
|
-
icon:
|
|
6211
|
+
icon: bA
|
|
6212
6212
|
}));
|
|
6213
6213
|
});
|
|
6214
6214
|
qa.displayName = "CatalogueIcon";
|
|
6215
|
-
const
|
|
6215
|
+
const yA = {
|
|
6216
6216
|
tag: "svg",
|
|
6217
6217
|
attrs: {
|
|
6218
6218
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6234,11 +6234,11 @@ const xA = {
|
|
|
6234
6234
|
return Te(Me, Object.assign({}, e, {
|
|
6235
6235
|
id: "cut-icon",
|
|
6236
6236
|
ref: t,
|
|
6237
|
-
icon:
|
|
6237
|
+
icon: yA
|
|
6238
6238
|
}));
|
|
6239
6239
|
});
|
|
6240
6240
|
Xa.displayName = "CutIcon";
|
|
6241
|
-
const
|
|
6241
|
+
const xA = {
|
|
6242
6242
|
tag: "svg",
|
|
6243
6243
|
attrs: {
|
|
6244
6244
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6283,11 +6283,11 @@ const OA = {
|
|
|
6283
6283
|
return Te(Me, Object.assign({}, e, {
|
|
6284
6284
|
id: "delete-icon",
|
|
6285
6285
|
ref: t,
|
|
6286
|
-
icon:
|
|
6286
|
+
icon: xA
|
|
6287
6287
|
}));
|
|
6288
6288
|
});
|
|
6289
6289
|
Za.displayName = "DeleteIcon";
|
|
6290
|
-
const
|
|
6290
|
+
const OA = {
|
|
6291
6291
|
tag: "svg",
|
|
6292
6292
|
attrs: {
|
|
6293
6293
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6339,11 +6339,11 @@ const TA = {
|
|
|
6339
6339
|
return Te(Me, Object.assign({}, e, {
|
|
6340
6340
|
id: "doc-setting-icon",
|
|
6341
6341
|
ref: t,
|
|
6342
|
-
icon:
|
|
6342
|
+
icon: OA
|
|
6343
6343
|
}));
|
|
6344
6344
|
});
|
|
6345
6345
|
Ja.displayName = "DocSettingIcon";
|
|
6346
|
-
const
|
|
6346
|
+
const TA = {
|
|
6347
6347
|
tag: "svg",
|
|
6348
6348
|
attrs: {
|
|
6349
6349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6363,11 +6363,11 @@ const BA = {
|
|
|
6363
6363
|
return Te(Me, Object.assign({}, e, {
|
|
6364
6364
|
id: "down-icon",
|
|
6365
6365
|
ref: t,
|
|
6366
|
-
icon:
|
|
6366
|
+
icon: TA
|
|
6367
6367
|
}));
|
|
6368
6368
|
});
|
|
6369
6369
|
$a.displayName = "DownIcon";
|
|
6370
|
-
const
|
|
6370
|
+
const BA = {
|
|
6371
6371
|
tag: "svg",
|
|
6372
6372
|
attrs: {
|
|
6373
6373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6393,11 +6393,11 @@ const MA = {
|
|
|
6393
6393
|
return Te(Me, Object.assign({}, e, {
|
|
6394
6394
|
id: "h1-icon",
|
|
6395
6395
|
ref: t,
|
|
6396
|
-
icon:
|
|
6396
|
+
icon: BA
|
|
6397
6397
|
}));
|
|
6398
6398
|
});
|
|
6399
6399
|
ec.displayName = "H1Icon";
|
|
6400
|
-
const
|
|
6400
|
+
const MA = {
|
|
6401
6401
|
tag: "svg",
|
|
6402
6402
|
attrs: {
|
|
6403
6403
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6423,11 +6423,11 @@ const _A = {
|
|
|
6423
6423
|
return Te(Me, Object.assign({}, e, {
|
|
6424
6424
|
id: "h2-icon",
|
|
6425
6425
|
ref: t,
|
|
6426
|
-
icon:
|
|
6426
|
+
icon: MA
|
|
6427
6427
|
}));
|
|
6428
6428
|
});
|
|
6429
6429
|
tc.displayName = "H2Icon";
|
|
6430
|
-
const
|
|
6430
|
+
const _A = {
|
|
6431
6431
|
tag: "svg",
|
|
6432
6432
|
attrs: {
|
|
6433
6433
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6453,11 +6453,11 @@ const DA = {
|
|
|
6453
6453
|
return Te(Me, Object.assign({}, e, {
|
|
6454
6454
|
id: "h3-icon",
|
|
6455
6455
|
ref: t,
|
|
6456
|
-
icon:
|
|
6456
|
+
icon: _A
|
|
6457
6457
|
}));
|
|
6458
6458
|
});
|
|
6459
6459
|
nc.displayName = "H3Icon";
|
|
6460
|
-
const
|
|
6460
|
+
const DA = {
|
|
6461
6461
|
tag: "svg",
|
|
6462
6462
|
attrs: {
|
|
6463
6463
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6485,11 +6485,11 @@ const wA = {
|
|
|
6485
6485
|
return Te(Me, Object.assign({}, e, {
|
|
6486
6486
|
id: "h4-icon",
|
|
6487
6487
|
ref: t,
|
|
6488
|
-
icon:
|
|
6488
|
+
icon: DA
|
|
6489
6489
|
}));
|
|
6490
6490
|
});
|
|
6491
6491
|
oc.displayName = "H4Icon";
|
|
6492
|
-
const
|
|
6492
|
+
const wA = {
|
|
6493
6493
|
tag: "svg",
|
|
6494
6494
|
attrs: {
|
|
6495
6495
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6515,11 +6515,11 @@ const PA = {
|
|
|
6515
6515
|
return Te(Me, Object.assign({}, e, {
|
|
6516
6516
|
id: "h5-icon",
|
|
6517
6517
|
ref: t,
|
|
6518
|
-
icon:
|
|
6518
|
+
icon: wA
|
|
6519
6519
|
}));
|
|
6520
6520
|
});
|
|
6521
6521
|
rc.displayName = "H5Icon";
|
|
6522
|
-
const
|
|
6522
|
+
const PA = {
|
|
6523
6523
|
tag: "svg",
|
|
6524
6524
|
attrs: {
|
|
6525
6525
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6562,11 +6562,11 @@ const NA = {
|
|
|
6562
6562
|
return Te(Me, Object.assign({}, e, {
|
|
6563
6563
|
id: "horizontally-icon",
|
|
6564
6564
|
ref: t,
|
|
6565
|
-
icon:
|
|
6565
|
+
icon: PA
|
|
6566
6566
|
}));
|
|
6567
6567
|
});
|
|
6568
6568
|
sc.displayName = "HorizontallyIcon";
|
|
6569
|
-
const
|
|
6569
|
+
const NA = {
|
|
6570
6570
|
tag: "svg",
|
|
6571
6571
|
attrs: {
|
|
6572
6572
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6588,11 +6588,11 @@ const LA = {
|
|
|
6588
6588
|
return Te(Me, Object.assign({}, e, {
|
|
6589
6589
|
id: "left-icon",
|
|
6590
6590
|
ref: t,
|
|
6591
|
-
icon:
|
|
6591
|
+
icon: NA
|
|
6592
6592
|
}));
|
|
6593
6593
|
});
|
|
6594
6594
|
ic.displayName = "LeftIcon";
|
|
6595
|
-
const
|
|
6595
|
+
const LA = {
|
|
6596
6596
|
tag: "svg",
|
|
6597
6597
|
attrs: {
|
|
6598
6598
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6635,11 +6635,11 @@ const QA = {
|
|
|
6635
6635
|
return Te(Me, Object.assign({}, e, {
|
|
6636
6636
|
id: "left-justifying-icon",
|
|
6637
6637
|
ref: t,
|
|
6638
|
-
icon:
|
|
6638
|
+
icon: LA
|
|
6639
6639
|
}));
|
|
6640
6640
|
});
|
|
6641
6641
|
ac.displayName = "LeftJustifyingIcon";
|
|
6642
|
-
const
|
|
6642
|
+
const QA = {
|
|
6643
6643
|
tag: "svg",
|
|
6644
6644
|
attrs: {
|
|
6645
6645
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6682,11 +6682,11 @@ const UA = {
|
|
|
6682
6682
|
return Te(Me, Object.assign({}, e, {
|
|
6683
6683
|
id: "right-justifying-icon",
|
|
6684
6684
|
ref: t,
|
|
6685
|
-
icon:
|
|
6685
|
+
icon: QA
|
|
6686
6686
|
}));
|
|
6687
6687
|
});
|
|
6688
6688
|
cc.displayName = "RightJustifyingIcon";
|
|
6689
|
-
const
|
|
6689
|
+
const UA = {
|
|
6690
6690
|
tag: "svg",
|
|
6691
6691
|
attrs: {
|
|
6692
6692
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6706,11 +6706,11 @@ const FA = {
|
|
|
6706
6706
|
return Te(Me, Object.assign({}, e, {
|
|
6707
6707
|
id: "text-type-icon",
|
|
6708
6708
|
ref: t,
|
|
6709
|
-
icon:
|
|
6709
|
+
icon: UA
|
|
6710
6710
|
}));
|
|
6711
6711
|
});
|
|
6712
6712
|
pn.displayName = "TextTypeIcon";
|
|
6713
|
-
const
|
|
6713
|
+
const FA = {
|
|
6714
6714
|
tag: "svg",
|
|
6715
6715
|
attrs: {
|
|
6716
6716
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6771,7 +6771,7 @@ const HA = {
|
|
|
6771
6771
|
return Te(Me, Object.assign({}, e, {
|
|
6772
6772
|
id: "todo-list-double-icon",
|
|
6773
6773
|
ref: t,
|
|
6774
|
-
icon:
|
|
6774
|
+
icon: FA
|
|
6775
6775
|
}));
|
|
6776
6776
|
});
|
|
6777
6777
|
lc.displayName = "TodoListDoubleIcon";
|
|
@@ -6798,7 +6798,7 @@ function dc(n) {
|
|
|
6798
6798
|
}
|
|
6799
6799
|
return 0;
|
|
6800
6800
|
}
|
|
6801
|
-
class
|
|
6801
|
+
class HA extends me {
|
|
6802
6802
|
constructor(t, o, r, s, i, a) {
|
|
6803
6803
|
super();
|
|
6804
6804
|
// Emit change event when editor lose focus.
|
|
@@ -7049,12 +7049,12 @@ class kA extends me {
|
|
|
7049
7049
|
return ((t = this._param.initialSnapshot) == null ? void 0 : t.id) || this._param.editorUnitId || "";
|
|
7050
7050
|
}
|
|
7051
7051
|
}
|
|
7052
|
-
var
|
|
7053
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
7052
|
+
var kA = Object.getOwnPropertyDescriptor, VA = (n, e, t, o) => {
|
|
7053
|
+
for (var r = o > 1 ? void 0 : o ? kA(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
7054
7054
|
(i = n[s]) && (r = i(r) || r);
|
|
7055
7055
|
return r;
|
|
7056
7056
|
}, Ot = (n, e) => (t, o) => e(t, o, n);
|
|
7057
|
-
const
|
|
7057
|
+
const WA = [
|
|
7058
7058
|
"editor",
|
|
7059
7059
|
"render-canvas"
|
|
7060
7060
|
// 'univer-range-selector',
|
|
@@ -7083,7 +7083,7 @@ let Sr = class extends me {
|
|
|
7083
7083
|
);
|
|
7084
7084
|
}
|
|
7085
7085
|
_blurSheetEditor(e) {
|
|
7086
|
-
if (
|
|
7086
|
+
if (WA.some((o) => e.dataset.uComp === o))
|
|
7087
7087
|
return;
|
|
7088
7088
|
const t = this.getFocusEditor();
|
|
7089
7089
|
t && t.isSheetEditor() !== !0 && this.blur();
|
|
@@ -7142,7 +7142,7 @@ let Sr = class extends me {
|
|
|
7142
7142
|
let a = this._renderManagerService.getRenderById(s);
|
|
7143
7143
|
if (a == null && (this._renderManagerService.create(s), a = this._renderManagerService.getRenderById(s)), a) {
|
|
7144
7144
|
a.engine.setContainer(t);
|
|
7145
|
-
const h = new
|
|
7145
|
+
const h = new HA(
|
|
7146
7146
|
{ ...e, render: a, editorDom: t, canvasStyle: r },
|
|
7147
7147
|
this._univerInstanceService,
|
|
7148
7148
|
this._docSelectionManagerService,
|
|
@@ -7187,7 +7187,7 @@ let Sr = class extends me {
|
|
|
7187
7187
|
};
|
|
7188
7188
|
}
|
|
7189
7189
|
};
|
|
7190
|
-
Sr =
|
|
7190
|
+
Sr = VA([
|
|
7191
7191
|
Ot(0, L),
|
|
7192
7192
|
Ot(1, pe),
|
|
7193
7193
|
Ot(2, j(Y)),
|
|
@@ -7197,7 +7197,7 @@ Sr = WA([
|
|
|
7197
7197
|
Ot(6, j(Dn))
|
|
7198
7198
|
], Sr);
|
|
7199
7199
|
const Ge = Yi("univer.editor.service"), vr = "COMPONENT_DOC_HEADER_FOOTER_PANEL";
|
|
7200
|
-
function
|
|
7200
|
+
function jA(n, e, t) {
|
|
7201
7201
|
const {
|
|
7202
7202
|
useFirstPageHeaderFooter: o,
|
|
7203
7203
|
evenAndOddHeaders: r,
|
|
@@ -7210,7 +7210,7 @@ function zA(n, e, t) {
|
|
|
7210
7210
|
} = n;
|
|
7211
7211
|
return e === ve.HEADER ? o === z.TRUE ? t === 0 ? a : r === z.TRUE && t % 2 === 1 ? d : s : r === z.TRUE && t % 2 === 1 ? d : s : o === z.TRUE ? t === 0 ? c : r === z.TRUE && t % 2 === 1 ? l : i : r === z.TRUE && t % 2 === 1 ? l : i;
|
|
7212
7212
|
}
|
|
7213
|
-
const
|
|
7213
|
+
const zA = (n) => {
|
|
7214
7214
|
const e = J(Ye), t = J(L), o = J(pe), r = J(T), s = J(Oo), { unitId: i } = n, a = o.getRenderById(i).with(Re), [c, d] = Ee({}), l = (u, g) => {
|
|
7215
7215
|
var b;
|
|
7216
7216
|
d((y) => ({
|
|
@@ -7234,7 +7234,7 @@ const GA = (n) => {
|
|
|
7234
7234
|
}
|
|
7235
7235
|
});
|
|
7236
7236
|
} else {
|
|
7237
|
-
const y = a.getSegmentPage(), C = a.getSegment(), B =
|
|
7237
|
+
const y = a.getSegmentPage(), C = a.getSegment(), B = jA(
|
|
7238
7238
|
{
|
|
7239
7239
|
...p,
|
|
7240
7240
|
[g]: u ? z.TRUE : z.FALSE
|
|
@@ -7338,9 +7338,9 @@ const GA = (n) => {
|
|
|
7338
7338
|
)
|
|
7339
7339
|
] })
|
|
7340
7340
|
] }),
|
|
7341
|
-
/* @__PURE__ */ Q("div", { className: "univer-flex univer-justify-end", children: /* @__PURE__ */ Q(
|
|
7341
|
+
/* @__PURE__ */ Q("div", { className: "univer-flex univer-justify-end", children: /* @__PURE__ */ Q(Zl, { onClick: h, children: e.t("headerFooter.closeHeaderFooter") }) })
|
|
7342
7342
|
] });
|
|
7343
|
-
},
|
|
7343
|
+
}, GA = () => {
|
|
7344
7344
|
var d;
|
|
7345
7345
|
const n = J(Ye), e = J(pe), r = J(L).getCurrentUniverDocInstance().getUnitId(), i = ((d = e.getRenderById(r)) == null ? void 0 : d.with(de)).getViewModel(), [a, c] = Ee(!0);
|
|
7346
7346
|
return Ce(() => {
|
|
@@ -7352,9 +7352,9 @@ const GA = (n) => {
|
|
|
7352
7352
|
return () => {
|
|
7353
7353
|
A.unsubscribe();
|
|
7354
7354
|
};
|
|
7355
|
-
}, []), /* @__PURE__ */ Q("div", { className: "univer-text-sm", children: a ? /* @__PURE__ */ Q(
|
|
7356
|
-
}, Ii = 18, Si = 200, er = 6,
|
|
7357
|
-
function
|
|
7355
|
+
}, []), /* @__PURE__ */ Q("div", { className: "univer-text-sm", children: a ? /* @__PURE__ */ Q(zA, { unitId: r }) : /* @__PURE__ */ Q("div", { className: "univer-text-gray-400", children: n.t("headerFooter.disableText") }) });
|
|
7356
|
+
}, Ii = 18, Si = 200, er = 6, YA = 4;
|
|
7357
|
+
function KA(n, e) {
|
|
7358
7358
|
let { radius: t, width: o, height: r } = e;
|
|
7359
7359
|
t = t != null ? t : 0, o = o != null ? o : 30, r = r != null ? r : 30;
|
|
7360
7360
|
let s = 0;
|
|
@@ -7374,13 +7374,13 @@ class ao extends Al {
|
|
|
7374
7374
|
i + 2 * er,
|
|
7375
7375
|
Si
|
|
7376
7376
|
);
|
|
7377
|
-
|
|
7377
|
+
KA(t, {
|
|
7378
7378
|
height: Ii,
|
|
7379
7379
|
width: a,
|
|
7380
7380
|
radius: 4,
|
|
7381
7381
|
fill: s
|
|
7382
7382
|
}), t.fillStyle = "rgba(58, 96, 247, 1)";
|
|
7383
|
-
const c = er, d = Ii -
|
|
7383
|
+
const c = er, d = Ii - YA, l = Si - 2 * er;
|
|
7384
7384
|
if (i > l) {
|
|
7385
7385
|
let A = "", h = 0;
|
|
7386
7386
|
for (const u of r) {
|
|
@@ -7401,14 +7401,14 @@ class ao extends Al {
|
|
|
7401
7401
|
ao.drawWith(t, this);
|
|
7402
7402
|
}
|
|
7403
7403
|
}
|
|
7404
|
-
var
|
|
7405
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
7404
|
+
var qA = Object.getOwnPropertyDescriptor, XA = (n, e, t, o) => {
|
|
7405
|
+
for (var r = o > 1 ? void 0 : o ? qA(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
7406
7406
|
(i = n[s]) && (r = i(r) || r);
|
|
7407
7407
|
return r;
|
|
7408
7408
|
}, ut = (n, e) => (t, o) => e(t, o, n);
|
|
7409
7409
|
const vi = "rgba(58, 96, 247, 1)", Ci = "rgba(58, 96, 247, 0.08)";
|
|
7410
7410
|
var Qe = /* @__PURE__ */ ((n) => (n[n.FIRST_PAGE_HEADER = 0] = "FIRST_PAGE_HEADER", n[n.FIRST_PAGE_FOOTER = 1] = "FIRST_PAGE_FOOTER", n[n.DEFAULT_HEADER = 2] = "DEFAULT_HEADER", n[n.DEFAULT_FOOTER = 3] = "DEFAULT_FOOTER", n[n.EVEN_PAGE_HEADER = 4] = "EVEN_PAGE_HEADER", n[n.EVEN_PAGE_FOOTER = 5] = "EVEN_PAGE_FOOTER", n))(Qe || {});
|
|
7411
|
-
function
|
|
7411
|
+
function ZA(n, e, t) {
|
|
7412
7412
|
const { documentStyle: o } = n.getDataModel().getSnapshot(), {
|
|
7413
7413
|
defaultHeaderId: r,
|
|
7414
7414
|
defaultFooterId: s,
|
|
@@ -7483,7 +7483,7 @@ let Cr = class extends me {
|
|
|
7483
7483
|
);
|
|
7484
7484
|
}
|
|
7485
7485
|
_initCustomComponents() {
|
|
7486
|
-
this._componentManager.get(vr) || this.disposeWithMe(this._componentManager.register(vr,
|
|
7486
|
+
this._componentManager.get(vr) || this.disposeWithMe(this._componentManager.register(vr, GA));
|
|
7487
7487
|
}
|
|
7488
7488
|
_init() {
|
|
7489
7489
|
const { unitId: e } = this._context, t = pt(this._context);
|
|
@@ -7510,7 +7510,7 @@ let Cr = class extends me {
|
|
|
7510
7510
|
if (u === g)
|
|
7511
7511
|
return;
|
|
7512
7512
|
A.setEditArea(g);
|
|
7513
|
-
const { createType: p, headerFooterId: m } =
|
|
7513
|
+
const { createType: p, headerFooterId: m } = ZA(A, g, f);
|
|
7514
7514
|
if (g === ve.BODY)
|
|
7515
7515
|
this._docSelectionRenderService.setSegment(""), this._docSelectionRenderService.setSegmentPage(-1), this._docSelectionRenderService.setCursorManually(s, i);
|
|
7516
7516
|
else if (p != null) {
|
|
@@ -7611,7 +7611,7 @@ let Cr = class extends me {
|
|
|
7611
7611
|
return this._context.unit.getSnapshot().documentStyle.documentFlavor === Pe.TRADITIONAL;
|
|
7612
7612
|
}
|
|
7613
7613
|
};
|
|
7614
|
-
Cr =
|
|
7614
|
+
Cr = XA([
|
|
7615
7615
|
ut(1, T),
|
|
7616
7616
|
ut(2, Ge),
|
|
7617
7617
|
ut(3, L),
|
|
@@ -7804,7 +7804,7 @@ const $n = "doc.command.core-header-footer", Ac = {
|
|
|
7804
7804
|
},
|
|
7805
7805
|
r.value
|
|
7806
7806
|
)) });
|
|
7807
|
-
},
|
|
7807
|
+
}, JA = [
|
|
7808
7808
|
{
|
|
7809
7809
|
value: ye.ORDER_LIST,
|
|
7810
7810
|
img: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEA2ADYAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/CABEIAPQA2AMBEQACEQEDEQH/xAAzAAEAAgMBAQEAAAAAAAAAAAAABwkGCAoFBAMBAQADAQEAAAAAAAAAAAAAAAACAwQBBf/aAAwDAQACEAMQAAAA7+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACrPRXpvZDoUx3gAAAAAAAAAAAfgc027P0wYdAxI12AAAAAAAAMuNiAADmf3Z7hc1u7dU/iMYAAAAAAA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GEMJB0sAAIGAGAH+CXFRmuglEAxYZk8BjI/OeFnD0gHDswkAq5nA89O7tsDIBGonecatR1LFVSMFMFuZPD/muNqyIi4E3icASThqbBgqKWIAhc+m8tSVjexVuKmCeufrbYpBBk3oliZbAznp2CzU1ZQpGAiMcRGFgIEDIYD4wZrqloJgTA++/lZGvqGiJ0O9OSEYjMKSOoFqbFkVjmRj371U92/wAjfQ2o+6Tp5m2e8sLyleII7xFggCbOTEETkcbU0FNboJOJOPP4cJCgkmAMzbb67N7v9UYRx4R22BDAEGQcjZqoU3QrOwzCiY62WqGN0hkbQMInp+N3rYtSTRmlhyER525acLUcDUTRWw6GfS1JCgYtBZmJJH4Gs99q+LUgP5XpHEDDHph4Hhu9XCpRbS9BOgxEefd7KOL1m0LwOyfUWeob2zpiX1Oi9ef4xOFkphSWJvOc2P0HAfeAw3d0DqVPYdQeP3pa5W/jtFjK9BvR685nnNkQIoUaeJ4my0qqyVdQWMkxMntBsFrzjUWPlH+tqiM9265WDJ55Y56efxL/AP/Z"
|
|
7831
7831
|
}
|
|
7832
|
-
],
|
|
7832
|
+
], $A = (n) => /* @__PURE__ */ Q(
|
|
7833
7833
|
hc,
|
|
7834
7834
|
{
|
|
7835
7835
|
...n,
|
|
7836
|
-
options:
|
|
7836
|
+
options: JA
|
|
7837
7837
|
}
|
|
7838
|
-
),
|
|
7838
|
+
), eu = [
|
|
7839
7839
|
{
|
|
7840
7840
|
value: ye.BULLET_LIST,
|
|
7841
7841
|
img: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEA2ADYAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/CABEIAPQA2AMBEQACEQEDEQH/xAA1AAEAAQUBAQEAA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x1A5kcT+z4cUhlPdjyHi5H0GfUi0kscS4pGCjlXU+AGpPS09/d6rF2F9Y989OS+VT4jif3tYIligAYgdqQjslj3io1OehNBSmRFnd5GxOxZtyfgNh4DL2o//EADQRAAIAAgYGCAcBAQAAAAAAAAECAxEAITFBUWESIkBxgZEEEGChscHR8BMjMkJScuFDgv/aAAgBAwEBPwDsoA6OyoRKWkqNYReAZ1EGzG00WICdEzRvxao8DYRhLltUapQ4qZCCM51FeNGj6Yk0NTxMxuNopCjPMLIuObAb6p8eY2npDzYILqzmxsHAeOVIfR2at9UYfcfTxyoqqgkokPHeb9pSGqTNrGssbSTbu4dsDEZiRCAIFRdvpByx93W/PWvUcYVg8DKXOdEcOJioiplNoOB998xtEUlYbEWylzIHnRFCqqi4d954mvqI0Yykf6KwP/InPwG0OumrLiO+48DSG8xoNU61EG+VhGMxh4SoSAJkgDE0T5kT4ktRQVQ2TN53Wj+g7SyI/wBSg538xXQQIYrkT+xJHL17Yu6w1meAvJ92m6kKPpGTyEzqm4ZHyPPaXcQ10jwGJwo7s7aTcBcBgOqDGsRzkp8j5HaGUMCrCYPvnSJDMM4g2HyOfVBg6Os31XD8f74bSyhgVYTB986Q4AQlidIz1ch69oVjSJWIJFTIsAdHInCYsuOVLaxWDtUTUYRPtOpE/U2E1XG3KQoSi1woirihM0Pmp3bqqJGR6jqtZImYO42HuOG09IeShBa1u4ep8DRVZzJQSfdpsHGidHUVvrHD7f73DI7T8ExGLxJgGxRbK6ZrAzAvnZRVCiSgAZe69/aj/9k="
|
|
7862
7862
|
}
|
|
7863
|
-
],
|
|
7863
|
+
], tu = (n) => /* @__PURE__ */ Q(
|
|
7864
7864
|
hc,
|
|
7865
7865
|
{
|
|
7866
7866
|
...n,
|
|
7867
|
-
options:
|
|
7867
|
+
options: eu
|
|
7868
7868
|
}
|
|
7869
|
-
), gc = `${uc}_ORDER_LIST_TYPE_COMPONENT`, fc = `${uc}_BULLET_LIST_TYPE_COMPONENT`,
|
|
7869
|
+
), gc = `${uc}_ORDER_LIST_TYPE_COMPONENT`, fc = `${uc}_BULLET_LIST_TYPE_COMPONENT`, nu = (n) => {
|
|
7870
7870
|
const t = Object.keys(ar).find((o) => {
|
|
7871
7871
|
const { width: r, height: s } = ar[o];
|
|
7872
7872
|
return n.width === r && n.height === s;
|
|
7873
7873
|
});
|
|
7874
7874
|
return t != null ? t : "A4";
|
|
7875
7875
|
};
|
|
7876
|
-
function
|
|
7876
|
+
function ou(n) {
|
|
7877
7877
|
const { hooks: e } = n, r = J(L).getCurrentUnitOfType(_.UNIVER_DOC).getDocumentStyle(), s = J(Ye), [i, a] = Ee(() => {
|
|
7878
7878
|
var l, A, h, u, g;
|
|
7879
7879
|
return {
|
|
7880
|
-
paperSize:
|
|
7880
|
+
paperSize: nu(r.pageSize),
|
|
7881
7881
|
orientation: (l = r.pageOrient) != null ? l : Vc.PORTRAIT,
|
|
7882
7882
|
margins: {
|
|
7883
7883
|
top: (A = r.marginTop) != null ? A : 0,
|
|
@@ -8081,7 +8081,7 @@ const Rr = "docs.component.page-setting", pc = {
|
|
|
8081
8081
|
return !0;
|
|
8082
8082
|
}
|
|
8083
8083
|
};
|
|
8084
|
-
function
|
|
8084
|
+
function ru(n) {
|
|
8085
8085
|
const e = n.get(L), t = n.get(pe);
|
|
8086
8086
|
return new fe((o) => {
|
|
8087
8087
|
const r = e.focused$.subscribe((s) => {
|
|
@@ -8097,7 +8097,7 @@ function su(n) {
|
|
|
8097
8097
|
return () => r.unsubscribe();
|
|
8098
8098
|
});
|
|
8099
8099
|
}
|
|
8100
|
-
function
|
|
8100
|
+
function su(n) {
|
|
8101
8101
|
const e = n.get(L), t = n.get(T);
|
|
8102
8102
|
return new fe((o) => {
|
|
8103
8103
|
const r = t.onCommandExecuted((c) => {
|
|
@@ -8124,7 +8124,7 @@ function iu(n) {
|
|
|
8124
8124
|
};
|
|
8125
8125
|
});
|
|
8126
8126
|
}
|
|
8127
|
-
function
|
|
8127
|
+
function iu(n) {
|
|
8128
8128
|
const e = n.get(Y), t = n.get(L);
|
|
8129
8129
|
return new fe((o) => {
|
|
8130
8130
|
const r = e.textSelection$.subscribe((s) => {
|
|
@@ -8186,10 +8186,10 @@ function xe(n) {
|
|
|
8186
8186
|
return () => o.unsubscribe();
|
|
8187
8187
|
});
|
|
8188
8188
|
}
|
|
8189
|
-
function
|
|
8189
|
+
function au(n) {
|
|
8190
8190
|
const e = n.get(T);
|
|
8191
8191
|
return {
|
|
8192
|
-
id:
|
|
8192
|
+
id: Qt.id,
|
|
8193
8193
|
type: Z.BUTTON,
|
|
8194
8194
|
icon: "BoldIcon",
|
|
8195
8195
|
title: "Set bold",
|
|
@@ -8214,10 +8214,10 @@ function cu(n) {
|
|
|
8214
8214
|
hidden$: se(n, _.UNIVER_DOC)
|
|
8215
8215
|
};
|
|
8216
8216
|
}
|
|
8217
|
-
function
|
|
8217
|
+
function cu(n) {
|
|
8218
8218
|
const e = n.get(T);
|
|
8219
8219
|
return {
|
|
8220
|
-
id:
|
|
8220
|
+
id: Ut.id,
|
|
8221
8221
|
type: Z.BUTTON,
|
|
8222
8222
|
icon: "ItalicIcon",
|
|
8223
8223
|
title: "Set italic",
|
|
@@ -8242,10 +8242,10 @@ function lu(n) {
|
|
|
8242
8242
|
hidden$: se(n, _.UNIVER_DOC)
|
|
8243
8243
|
};
|
|
8244
8244
|
}
|
|
8245
|
-
function
|
|
8245
|
+
function lu(n) {
|
|
8246
8246
|
const e = n.get(T);
|
|
8247
8247
|
return {
|
|
8248
|
-
id:
|
|
8248
|
+
id: Ft.id,
|
|
8249
8249
|
type: Z.BUTTON,
|
|
8250
8250
|
icon: "UnderlineIcon",
|
|
8251
8251
|
title: "Set underline",
|
|
@@ -8270,10 +8270,10 @@ function du(n) {
|
|
|
8270
8270
|
hidden$: se(n, _.UNIVER_DOC)
|
|
8271
8271
|
};
|
|
8272
8272
|
}
|
|
8273
|
-
function
|
|
8273
|
+
function du(n) {
|
|
8274
8274
|
const e = n.get(T);
|
|
8275
8275
|
return {
|
|
8276
|
-
id:
|
|
8276
|
+
id: Ht.id,
|
|
8277
8277
|
type: Z.BUTTON,
|
|
8278
8278
|
icon: "StrikethroughIcon",
|
|
8279
8279
|
title: "Set strike through",
|
|
@@ -8298,7 +8298,7 @@ function Au(n) {
|
|
|
8298
8298
|
hidden$: se(n, _.UNIVER_DOC)
|
|
8299
8299
|
};
|
|
8300
8300
|
}
|
|
8301
|
-
function
|
|
8301
|
+
function Au(n) {
|
|
8302
8302
|
const e = n.get(T);
|
|
8303
8303
|
return {
|
|
8304
8304
|
id: bt.id,
|
|
@@ -8325,10 +8325,10 @@ function uu(n) {
|
|
|
8325
8325
|
hidden$: se(n, _.UNIVER_DOC)
|
|
8326
8326
|
};
|
|
8327
8327
|
}
|
|
8328
|
-
function
|
|
8328
|
+
function uu(n) {
|
|
8329
8329
|
const e = n.get(T);
|
|
8330
8330
|
return {
|
|
8331
|
-
id:
|
|
8331
|
+
id: kt.id,
|
|
8332
8332
|
type: Z.BUTTON,
|
|
8333
8333
|
icon: "SuperscriptIcon",
|
|
8334
8334
|
tooltip: "toolbar.superscript",
|
|
@@ -8352,19 +8352,23 @@ function hu(n) {
|
|
|
8352
8352
|
hidden$: se(n, _.UNIVER_DOC)
|
|
8353
8353
|
};
|
|
8354
8354
|
}
|
|
8355
|
-
function
|
|
8355
|
+
function hu(n) {
|
|
8356
8356
|
const e = n.get(T);
|
|
8357
8357
|
return {
|
|
8358
|
-
id:
|
|
8358
|
+
id: _t.id,
|
|
8359
8359
|
tooltip: "toolbar.font",
|
|
8360
8360
|
type: Z.SELECTOR,
|
|
8361
8361
|
label: Ol,
|
|
8362
|
-
selections:
|
|
8362
|
+
selections: [{
|
|
8363
8363
|
label: {
|
|
8364
|
-
name:
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8364
|
+
name: xl,
|
|
8365
|
+
hoverable: !1,
|
|
8366
|
+
selectable: !1,
|
|
8367
|
+
props: {
|
|
8368
|
+
id: _t.id
|
|
8369
|
+
}
|
|
8370
|
+
}
|
|
8371
|
+
}],
|
|
8368
8372
|
// disabled$: getCurrentSheetDisabled$(accessor),
|
|
8369
8373
|
value$: new fe((t) => {
|
|
8370
8374
|
const o = xo.ff, r = () => {
|
|
@@ -8378,7 +8382,7 @@ function gu(n) {
|
|
|
8378
8382
|
t.next(a != null ? a : o);
|
|
8379
8383
|
}, s = e.onCommandExecuted((i) => {
|
|
8380
8384
|
const a = i.id;
|
|
8381
|
-
(a === Le.id || a ===
|
|
8385
|
+
(a === Le.id || a === _t.id) && r();
|
|
8382
8386
|
});
|
|
8383
8387
|
return r(), s.dispose;
|
|
8384
8388
|
}),
|
|
@@ -8386,21 +8390,21 @@ function gu(n) {
|
|
|
8386
8390
|
hidden$: se(n, _.UNIVER_DOC)
|
|
8387
8391
|
};
|
|
8388
8392
|
}
|
|
8389
|
-
function
|
|
8393
|
+
function gu(n) {
|
|
8390
8394
|
const e = n.get(T);
|
|
8391
8395
|
return {
|
|
8392
8396
|
id: ct.id,
|
|
8393
8397
|
type: Z.SELECTOR,
|
|
8394
8398
|
tooltip: "toolbar.fontSize",
|
|
8395
8399
|
label: {
|
|
8396
|
-
name:
|
|
8400
|
+
name: Bl,
|
|
8397
8401
|
props: {
|
|
8398
8402
|
min: 1,
|
|
8399
8403
|
max: 400
|
|
8400
8404
|
// disabled$,
|
|
8401
8405
|
}
|
|
8402
8406
|
},
|
|
8403
|
-
selections:
|
|
8407
|
+
selections: Tl,
|
|
8404
8408
|
// disabled$,
|
|
8405
8409
|
value$: new fe((t) => {
|
|
8406
8410
|
const o = xo.fs, r = () => {
|
|
@@ -8422,21 +8426,21 @@ function fu(n) {
|
|
|
8422
8426
|
hidden$: se(n, _.UNIVER_DOC)
|
|
8423
8427
|
};
|
|
8424
8428
|
}
|
|
8425
|
-
function
|
|
8429
|
+
function fu(n) {
|
|
8426
8430
|
const e = n.get(T);
|
|
8427
8431
|
return {
|
|
8428
8432
|
id: Xe.id,
|
|
8429
8433
|
type: Z.SELECTOR,
|
|
8430
8434
|
tooltip: "toolbar.heading.tooltip",
|
|
8431
8435
|
label: {
|
|
8432
|
-
name:
|
|
8436
|
+
name: Ml,
|
|
8433
8437
|
props: {
|
|
8434
8438
|
selections: Gs
|
|
8435
8439
|
}
|
|
8436
8440
|
},
|
|
8437
8441
|
selections: Gs.map((t) => ({
|
|
8438
8442
|
label: {
|
|
8439
|
-
name:
|
|
8443
|
+
name: _l,
|
|
8440
8444
|
props: {
|
|
8441
8445
|
value: t.value,
|
|
8442
8446
|
text: t.label
|
|
@@ -8447,7 +8451,7 @@ function pu(n) {
|
|
|
8447
8451
|
value$: new fe((t) => {
|
|
8448
8452
|
const o = K.NORMAL_TEXT, r = () => {
|
|
8449
8453
|
var c, d;
|
|
8450
|
-
const i =
|
|
8454
|
+
const i = Vt(n);
|
|
8451
8455
|
if (i == null) {
|
|
8452
8456
|
t.next(o);
|
|
8453
8457
|
return;
|
|
@@ -8464,7 +8468,7 @@ function pu(n) {
|
|
|
8464
8468
|
hidden$: se(n, _.UNIVER_DOC)
|
|
8465
8469
|
};
|
|
8466
8470
|
}
|
|
8467
|
-
function
|
|
8471
|
+
function pu(n) {
|
|
8468
8472
|
const e = n.get(T), t = n.get(Ur);
|
|
8469
8473
|
return {
|
|
8470
8474
|
id: mt.id,
|
|
@@ -8509,28 +8513,28 @@ function mu(n) {
|
|
|
8509
8513
|
// disabled$: getCurrentSheetDisabled$(accessor),
|
|
8510
8514
|
};
|
|
8511
8515
|
}
|
|
8512
|
-
function
|
|
8516
|
+
function mu(n) {
|
|
8513
8517
|
return {
|
|
8514
8518
|
id: Bs.id,
|
|
8515
8519
|
type: Z.BUTTON,
|
|
8516
8520
|
icon: "HeaderFooterIcon",
|
|
8517
8521
|
tooltip: "toolbar.headerFooter",
|
|
8518
|
-
hidden$: Pn(se(n, _.UNIVER_DOC, void 0, nt),
|
|
8522
|
+
hidden$: Pn(se(n, _.UNIVER_DOC, void 0, nt), su(n), (e, t) => e || t)
|
|
8519
8523
|
};
|
|
8520
8524
|
}
|
|
8521
|
-
const
|
|
8522
|
-
function
|
|
8525
|
+
const Eu = "GridIcon", mc = "doc.menu.table";
|
|
8526
|
+
function Iu(n) {
|
|
8523
8527
|
return {
|
|
8524
8528
|
id: mc,
|
|
8525
8529
|
type: Z.SUBITEMS,
|
|
8526
|
-
icon:
|
|
8530
|
+
icon: Eu,
|
|
8527
8531
|
tooltip: "toolbar.table.main",
|
|
8528
|
-
disabled$:
|
|
8532
|
+
disabled$: iu(n),
|
|
8529
8533
|
// Do not show header footer menu and insert table at zen mode.
|
|
8530
|
-
hidden$: Pn(se(n, _.UNIVER_DOC, void 0, nt),
|
|
8534
|
+
hidden$: Pn(se(n, _.UNIVER_DOC, void 0, nt), ru(n), (e, t) => e || t)
|
|
8531
8535
|
};
|
|
8532
8536
|
}
|
|
8533
|
-
function
|
|
8537
|
+
function Su(n) {
|
|
8534
8538
|
return {
|
|
8535
8539
|
id: Os.id,
|
|
8536
8540
|
title: "toolbar.table.insert",
|
|
@@ -8538,7 +8542,7 @@ function vu(n) {
|
|
|
8538
8542
|
hidden$: se(n, _.UNIVER_DOC)
|
|
8539
8543
|
};
|
|
8540
8544
|
}
|
|
8541
|
-
function
|
|
8545
|
+
function vu(n) {
|
|
8542
8546
|
const e = n.get(T);
|
|
8543
8547
|
return {
|
|
8544
8548
|
id: Qo.id,
|
|
@@ -8551,7 +8555,7 @@ function Cu(n) {
|
|
|
8551
8555
|
var i;
|
|
8552
8556
|
const s = r.id;
|
|
8553
8557
|
if (s === Le.id || s === lt.id) {
|
|
8554
|
-
const a =
|
|
8558
|
+
const a = Vt(n);
|
|
8555
8559
|
if (a == null)
|
|
8556
8560
|
return;
|
|
8557
8561
|
const c = (i = a.paragraphStyle) == null ? void 0 : i.horizontalAlign;
|
|
@@ -8563,7 +8567,7 @@ function Cu(n) {
|
|
|
8563
8567
|
hidden$: se(n, _.UNIVER_DOC, void 0, nt)
|
|
8564
8568
|
};
|
|
8565
8569
|
}
|
|
8566
|
-
function
|
|
8570
|
+
function Cu(n) {
|
|
8567
8571
|
const e = n.get(T);
|
|
8568
8572
|
return {
|
|
8569
8573
|
id: Uo.id,
|
|
@@ -8575,7 +8579,7 @@ function Ru(n) {
|
|
|
8575
8579
|
var i;
|
|
8576
8580
|
const s = r.id;
|
|
8577
8581
|
if (s === Le.id || s === lt.id) {
|
|
8578
|
-
const a =
|
|
8582
|
+
const a = Vt(n);
|
|
8579
8583
|
if (a == null)
|
|
8580
8584
|
return;
|
|
8581
8585
|
const c = (i = a.paragraphStyle) == null ? void 0 : i.horizontalAlign;
|
|
@@ -8588,7 +8592,7 @@ function Ru(n) {
|
|
|
8588
8592
|
hidden$: se(n, _.UNIVER_DOC, void 0, nt)
|
|
8589
8593
|
};
|
|
8590
8594
|
}
|
|
8591
|
-
function
|
|
8595
|
+
function Ru(n) {
|
|
8592
8596
|
const e = n.get(T);
|
|
8593
8597
|
return {
|
|
8594
8598
|
id: Fo.id,
|
|
@@ -8600,7 +8604,7 @@ function bu(n) {
|
|
|
8600
8604
|
var i;
|
|
8601
8605
|
const s = r.id;
|
|
8602
8606
|
if (s === Le.id || s === lt.id) {
|
|
8603
|
-
const a =
|
|
8607
|
+
const a = Vt(n);
|
|
8604
8608
|
if (a == null)
|
|
8605
8609
|
return;
|
|
8606
8610
|
const c = (i = a.paragraphStyle) == null ? void 0 : i.horizontalAlign;
|
|
@@ -8613,7 +8617,7 @@ function bu(n) {
|
|
|
8613
8617
|
hidden$: se(n, _.UNIVER_DOC, void 0, nt)
|
|
8614
8618
|
};
|
|
8615
8619
|
}
|
|
8616
|
-
function
|
|
8620
|
+
function bu(n) {
|
|
8617
8621
|
const e = n.get(T);
|
|
8618
8622
|
return {
|
|
8619
8623
|
id: Ho.id,
|
|
@@ -8625,7 +8629,7 @@ function yu(n) {
|
|
|
8625
8629
|
var i;
|
|
8626
8630
|
const s = r.id;
|
|
8627
8631
|
if (s === Le.id || s === lt.id) {
|
|
8628
|
-
const a =
|
|
8632
|
+
const a = Vt(n);
|
|
8629
8633
|
if (a == null)
|
|
8630
8634
|
return;
|
|
8631
8635
|
const c = (i = a.paragraphStyle) == null ? void 0 : i.horizontalAlign;
|
|
@@ -8638,7 +8642,7 @@ function yu(n) {
|
|
|
8638
8642
|
hidden$: se(n, _.UNIVER_DOC, void 0, nt)
|
|
8639
8643
|
};
|
|
8640
8644
|
}
|
|
8641
|
-
function
|
|
8645
|
+
function yu(n) {
|
|
8642
8646
|
return {
|
|
8643
8647
|
id: Po.id,
|
|
8644
8648
|
type: Z.BUTTON,
|
|
@@ -8731,7 +8735,7 @@ function xi(n) {
|
|
|
8731
8735
|
activated$: Tn(n).pipe(wn((e) => !!(e && e.indexOf("CHECK_LIST") === 0)))
|
|
8732
8736
|
};
|
|
8733
8737
|
}
|
|
8734
|
-
function
|
|
8738
|
+
function xu(n) {
|
|
8735
8739
|
const e = n.get(T), t = n.get(L);
|
|
8736
8740
|
return {
|
|
8737
8741
|
id: ko.id,
|
|
@@ -8752,7 +8756,7 @@ function Ou(n) {
|
|
|
8752
8756
|
})
|
|
8753
8757
|
};
|
|
8754
8758
|
}
|
|
8755
|
-
function
|
|
8759
|
+
function Ou(n) {
|
|
8756
8760
|
return {
|
|
8757
8761
|
id: Un.id,
|
|
8758
8762
|
type: Z.BUTTON,
|
|
@@ -8760,7 +8764,7 @@ function Tu(n) {
|
|
|
8760
8764
|
icon: "NoColorDoubleIcon"
|
|
8761
8765
|
};
|
|
8762
8766
|
}
|
|
8763
|
-
function
|
|
8767
|
+
function Tu(n) {
|
|
8764
8768
|
const e = n.get(T), t = n.get(Ur);
|
|
8765
8769
|
return {
|
|
8766
8770
|
id: Et.id,
|
|
@@ -8806,7 +8810,7 @@ function Bu(n) {
|
|
|
8806
8810
|
}
|
|
8807
8811
|
function ot(n) {
|
|
8808
8812
|
var g, f, p, m;
|
|
8809
|
-
const e = n.get(L), t = n.get(Y), o = n.get(at), r = e.getCurrentUnitForType(_.UNIVER_DOC), s = t.getDocRanges(), i = (g = s.find((I) => I.isActive)) != null ? g : s[0], a = o.getDefaultStyle(), c = (f = o.getStyleCache()) != null ? f : {}, d =
|
|
8813
|
+
const e = n.get(L), t = n.get(Y), o = n.get(at), r = e.getCurrentUnitForType(_.UNIVER_DOC), s = t.getDocRanges(), i = (g = s.find((I) => I.isActive)) != null ? g : s[0], a = o.getDefaultStyle(), c = (f = o.getStyleCache()) != null ? f : {}, d = Vt(n), l = (p = d == null ? void 0 : d.paragraphStyle) != null && p.namedStyleType ? jc[(m = d == null ? void 0 : d.paragraphStyle) == null ? void 0 : m.namedStyleType] : null;
|
|
8810
8814
|
if (r == null || i == null)
|
|
8811
8815
|
return {
|
|
8812
8816
|
ts: {
|
|
@@ -8834,7 +8838,7 @@ function ot(n) {
|
|
|
8834
8838
|
}
|
|
8835
8839
|
};
|
|
8836
8840
|
}
|
|
8837
|
-
function
|
|
8841
|
+
function Vt(n) {
|
|
8838
8842
|
var l, A;
|
|
8839
8843
|
const e = n.get(L), t = n.get(Y), o = e.getCurrentUniverDocInstance(), r = t.getDocRanges(), s = (l = r.find((h) => h.isActive)) != null ? l : r[0];
|
|
8840
8844
|
if (o == null || s == null)
|
|
@@ -8851,7 +8855,7 @@ function kt(n) {
|
|
|
8851
8855
|
}
|
|
8852
8856
|
return null;
|
|
8853
8857
|
}
|
|
8854
|
-
function
|
|
8858
|
+
function Bu(n) {
|
|
8855
8859
|
return {
|
|
8856
8860
|
id: _s.id,
|
|
8857
8861
|
type: Z.BUTTON,
|
|
@@ -8860,7 +8864,7 @@ function Mu(n) {
|
|
|
8860
8864
|
hidden$: se(n, _.UNIVER_DOC)
|
|
8861
8865
|
};
|
|
8862
8866
|
}
|
|
8863
|
-
const
|
|
8867
|
+
const Mu = {
|
|
8864
8868
|
[K.HEADING_1]: us,
|
|
8865
8869
|
[K.HEADING_2]: hs,
|
|
8866
8870
|
[K.HEADING_3]: gs,
|
|
@@ -8883,7 +8887,7 @@ const _u = {
|
|
|
8883
8887
|
}, xt = (n) => (e) => {
|
|
8884
8888
|
const t = e.get(T), o = e.get(rn), r = Ec[n];
|
|
8885
8889
|
return o.get(r.key) || o.register(r.key, r.component), {
|
|
8886
|
-
id:
|
|
8890
|
+
id: Mu[n].id,
|
|
8887
8891
|
type: Z.BUTTON,
|
|
8888
8892
|
icon: r.key,
|
|
8889
8893
|
tooltip: "toolbar.heading.tooltip",
|
|
@@ -8892,7 +8896,7 @@ const _u = {
|
|
|
8892
8896
|
activated$: new fe((s) => {
|
|
8893
8897
|
const i = K.NORMAL_TEXT, a = () => {
|
|
8894
8898
|
var A, h;
|
|
8895
|
-
const d =
|
|
8899
|
+
const d = Vt(e);
|
|
8896
8900
|
if (d == null) {
|
|
8897
8901
|
s.next(i === n);
|
|
8898
8902
|
return;
|
|
@@ -8906,46 +8910,46 @@ const _u = {
|
|
|
8906
8910
|
return a(), c.dispose;
|
|
8907
8911
|
})
|
|
8908
8912
|
};
|
|
8909
|
-
},
|
|
8913
|
+
}, _u = xt(K.HEADING_1), Du = xt(K.HEADING_2), wu = xt(K.HEADING_3), Pu = xt(K.HEADING_4), Nu = xt(K.HEADING_5), Lu = xt(K.NORMAL_TEXT);
|
|
8910
8914
|
xt(K.TITLE);
|
|
8911
8915
|
xt(K.SUBTITLE);
|
|
8912
|
-
const
|
|
8916
|
+
const Qu = (n) => ({
|
|
8913
8917
|
id: os.id,
|
|
8914
8918
|
type: Z.BUTTON,
|
|
8915
8919
|
icon: "CopyDoubleIcon",
|
|
8916
8920
|
title: "rightClick.copy"
|
|
8917
|
-
}),
|
|
8921
|
+
}), Uu = (n) => ({
|
|
8918
8922
|
id: ss.id,
|
|
8919
8923
|
type: Z.BUTTON,
|
|
8920
8924
|
icon: "CutIcon",
|
|
8921
8925
|
title: "rightClick.cut"
|
|
8922
|
-
}),
|
|
8926
|
+
}), Fu = (n) => ({
|
|
8923
8927
|
id: es.id,
|
|
8924
8928
|
type: Z.BUTTON,
|
|
8925
8929
|
icon: "DeleteIcon",
|
|
8926
8930
|
title: "rightClick.delete"
|
|
8927
|
-
}),
|
|
8931
|
+
}), Hu = (n) => ({
|
|
8928
8932
|
id: ls.id,
|
|
8929
8933
|
type: Z.BUTTON,
|
|
8930
8934
|
icon: "UnorderIcon",
|
|
8931
8935
|
title: "rightClick.bulletList"
|
|
8932
|
-
}),
|
|
8936
|
+
}), ku = (n) => ({
|
|
8933
8937
|
id: ds.id,
|
|
8934
8938
|
type: Z.BUTTON,
|
|
8935
8939
|
icon: "OrderIcon",
|
|
8936
8940
|
title: "rightClick.orderList"
|
|
8937
|
-
}),
|
|
8941
|
+
}), Vu = (n) => ({
|
|
8938
8942
|
id: As.id,
|
|
8939
8943
|
type: Z.BUTTON,
|
|
8940
8944
|
icon: "TodoListDoubleIcon",
|
|
8941
8945
|
title: "rightClick.checkList"
|
|
8942
|
-
}),
|
|
8946
|
+
}), Wu = (n) => ({
|
|
8943
8947
|
id: as.id,
|
|
8944
8948
|
type: Z.BUTTON,
|
|
8945
8949
|
icon: "ReduceIcon",
|
|
8946
8950
|
title: "toolbar.horizontalLine"
|
|
8947
8951
|
}), Ic = "doc.menu.insert-bellow";
|
|
8948
|
-
function
|
|
8952
|
+
function ju(n) {
|
|
8949
8953
|
return {
|
|
8950
8954
|
id: Ic,
|
|
8951
8955
|
type: Z.SUBITEMS,
|
|
@@ -8953,8 +8957,8 @@ function zu(n) {
|
|
|
8953
8957
|
};
|
|
8954
8958
|
}
|
|
8955
8959
|
const Oi = 4;
|
|
8956
|
-
var
|
|
8957
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
8960
|
+
var zu = Object.getOwnPropertyDescriptor, Gu = (n, e, t, o) => {
|
|
8961
|
+
for (var r = o > 1 ? void 0 : o ? zu(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
8958
8962
|
(i = n[s]) && (r = i(r) || r);
|
|
8959
8963
|
return r;
|
|
8960
8964
|
}, Wn = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -9145,18 +9149,18 @@ let Bn = class extends me {
|
|
|
9145
9149
|
}
|
|
9146
9150
|
// #endregion
|
|
9147
9151
|
};
|
|
9148
|
-
Bn =
|
|
9149
|
-
Wn(0, j(
|
|
9152
|
+
Bn = Gu([
|
|
9153
|
+
Wn(0, j(Dl)),
|
|
9150
9154
|
Wn(1, pe),
|
|
9151
9155
|
Wn(2, L),
|
|
9152
9156
|
Wn(3, T)
|
|
9153
9157
|
], Bn);
|
|
9154
|
-
var
|
|
9155
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
9158
|
+
var Yu = Object.getOwnPropertyDescriptor, Ku = (n, e, t, o) => {
|
|
9159
|
+
for (var r = o > 1 ? void 0 : o ? Yu(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
9156
9160
|
(i = n[s]) && (r = i(r) || r);
|
|
9157
9161
|
return r;
|
|
9158
|
-
},
|
|
9159
|
-
const
|
|
9162
|
+
}, qu = (n, e) => (t, o) => e(t, o, n);
|
|
9163
|
+
const Xu = (n, e, t, o) => {
|
|
9160
9164
|
var h, u, g, f, p;
|
|
9161
9165
|
const r = t.findNodePositionByCharIndex(n.startOffset, !0, n.segmentId, o), s = t.getSkeletonData();
|
|
9162
9166
|
let i = n.endOffset - 1;
|
|
@@ -9210,7 +9214,7 @@ const Zu = (n, e, t, o) => {
|
|
|
9210
9214
|
}
|
|
9211
9215
|
}
|
|
9212
9216
|
return r;
|
|
9213
|
-
},
|
|
9217
|
+
}, Zu = (n, e, t, o = -1) => {
|
|
9214
9218
|
const r = t.findPositionByGlyph(n, o);
|
|
9215
9219
|
if (!r)
|
|
9216
9220
|
return;
|
|
@@ -9226,28 +9230,28 @@ function Tt(n, e, t) {
|
|
|
9226
9230
|
const { left: o, right: r, top: s, bottom: i } = t;
|
|
9227
9231
|
return n >= o && n <= r && e >= s && e <= i;
|
|
9228
9232
|
}
|
|
9229
|
-
let
|
|
9233
|
+
let Pt = class extends me {
|
|
9230
9234
|
constructor(e, t) {
|
|
9231
9235
|
super();
|
|
9232
9236
|
O(this, "_hoverCustomRanges$", new Fe([]));
|
|
9233
|
-
O(this, "hoverCustomRanges$", this._hoverCustomRanges$.pipe(
|
|
9237
|
+
O(this, "hoverCustomRanges$", this._hoverCustomRanges$.pipe(Wt((e, t) => e.length === t.length && e.every((o, r) => t[r].range.rangeId === o.range.rangeId && t[r].segmentId === o.segmentId && t[r].segmentPageIndex === o.segmentPageIndex && t[r].range.startIndex === o.range.startIndex))));
|
|
9234
9238
|
O(this, "_clickCustomRanges$", new be());
|
|
9235
9239
|
O(this, "clickCustomRanges$", this._clickCustomRanges$.asObservable());
|
|
9236
9240
|
O(this, "_hoverBullet$", new be());
|
|
9237
|
-
O(this, "hoverBullet$", this._hoverBullet$.pipe(
|
|
9241
|
+
O(this, "hoverBullet$", this._hoverBullet$.pipe(Wt((e, t) => (e == null ? void 0 : e.paragraph.startIndex) === (t == null ? void 0 : t.paragraph.startIndex) && (e == null ? void 0 : e.segmentId) === (t == null ? void 0 : t.segmentId) && (e == null ? void 0 : e.segmentPageIndex) === (t == null ? void 0 : t.segmentPageIndex))));
|
|
9238
9242
|
O(this, "_clickBullet$", new be());
|
|
9239
9243
|
O(this, "clickBullets$", this._clickBullet$.asObservable());
|
|
9240
9244
|
O(this, "_hoverParagraph$", new Fe(null));
|
|
9241
|
-
O(this, "hoverParagraph$", this._hoverParagraph$.pipe(
|
|
9245
|
+
O(this, "hoverParagraph$", this._hoverParagraph$.pipe(Wt((e, t) => (e == null ? void 0 : e.startIndex) === (t == null ? void 0 : t.startIndex) && (e == null ? void 0 : e.segmentId) === (t == null ? void 0 : t.segmentId) && (e == null ? void 0 : e.pageIndex) === (t == null ? void 0 : t.pageIndex))));
|
|
9242
9246
|
O(this, "hoverParagraphRealTime$", this._hoverParagraph$.asObservable());
|
|
9243
9247
|
O(this, "_hoverParagraphLeft$", new Fe(null));
|
|
9244
|
-
O(this, "hoverParagraphLeft$", this._hoverParagraphLeft$.pipe(
|
|
9248
|
+
O(this, "hoverParagraphLeft$", this._hoverParagraphLeft$.pipe(Wt((e, t) => (e == null ? void 0 : e.startIndex) === (t == null ? void 0 : t.startIndex) && (e == null ? void 0 : e.segmentId) === (t == null ? void 0 : t.segmentId) && (e == null ? void 0 : e.pageIndex) === (t == null ? void 0 : t.pageIndex))));
|
|
9245
9249
|
O(this, "hoverParagraphLeftRealTime$", this._hoverParagraphLeft$.asObservable());
|
|
9246
9250
|
O(this, "_hoverTableCell$", new be());
|
|
9247
|
-
O(this, "hoverTableCell$", this._hoverTableCell$.pipe(
|
|
9251
|
+
O(this, "hoverTableCell$", this._hoverTableCell$.pipe(Wt((e, t) => (e == null ? void 0 : e.rowIndex) === (t == null ? void 0 : t.rowIndex) && (e == null ? void 0 : e.colIndex) === (t == null ? void 0 : t.colIndex) && (e == null ? void 0 : e.tableId) === (t == null ? void 0 : t.tableId) && (e == null ? void 0 : e.pageIndex) === (t == null ? void 0 : t.pageIndex))));
|
|
9248
9252
|
O(this, "hoverTableCellRealTime$", this._hoverTableCell$.asObservable());
|
|
9249
9253
|
O(this, "_hoverTable$", new be());
|
|
9250
|
-
O(this, "hoverTable$", this._hoverTable$.pipe(
|
|
9254
|
+
O(this, "hoverTable$", this._hoverTable$.pipe(Wt((e, t) => (e == null ? void 0 : e.tableId) === (t == null ? void 0 : t.tableId) && (e == null ? void 0 : e.pageIndex) === (t == null ? void 0 : t.pageIndex))));
|
|
9251
9255
|
O(this, "hoverTableRealTime$", this._hoverTable$.asObservable());
|
|
9252
9256
|
O(this, "_customRangeDirty", !0);
|
|
9253
9257
|
O(this, "_bulletDirty", !0);
|
|
@@ -9290,9 +9294,9 @@ let wt = class extends me {
|
|
|
9290
9294
|
this._hoverCustomRanges$.complete(), this._clickCustomRanges$.complete(), super.dispose();
|
|
9291
9295
|
}
|
|
9292
9296
|
_initPointer() {
|
|
9293
|
-
let e =
|
|
9297
|
+
let e = Dt.TEXT;
|
|
9294
9298
|
this.disposeWithMe(this.hoverCustomRanges$.subscribe((t) => {
|
|
9295
|
-
t.length ? (e = this._context.scene.getCursor(), this._context.scene.setCursor(
|
|
9299
|
+
t.length ? (e = this._context.scene.getCursor(), this._context.scene.setCursor(Dt.POINTER)) : this._context.scene.setCursor(e);
|
|
9296
9300
|
}));
|
|
9297
9301
|
}
|
|
9298
9302
|
_initResetDirty() {
|
|
@@ -9327,7 +9331,7 @@ let wt = class extends me {
|
|
|
9327
9331
|
}));
|
|
9328
9332
|
const e = Mt(this._context.mainComponent.onPointerDown$), t = Mt(this._context.scene.onPointerUp$);
|
|
9329
9333
|
this.disposeWithMe(e.pipe(
|
|
9330
|
-
|
|
9334
|
+
Vl((o) => t.pipe(Wl(1), wn((r) => ({ down: o, up: r })))),
|
|
9331
9335
|
oo(({ down: o, up: r }) => o.target === r.target && r.timeStamp - o.timeStamp < 300)
|
|
9332
9336
|
).subscribe(({ down: o }) => {
|
|
9333
9337
|
if (o.button === 2)
|
|
@@ -9346,7 +9350,7 @@ let wt = class extends me {
|
|
|
9346
9350
|
startOffset: c.startIndex,
|
|
9347
9351
|
endOffset: c.endIndex + 1,
|
|
9348
9352
|
segmentId: e
|
|
9349
|
-
}, l =
|
|
9353
|
+
}, l = Xu(d, this._documents, this._skeleton, t);
|
|
9350
9354
|
if (!l)
|
|
9351
9355
|
return null;
|
|
9352
9356
|
r.push({
|
|
@@ -9401,7 +9405,7 @@ let wt = class extends me {
|
|
|
9401
9405
|
const b = R, y = (p = (f = (g = b == null ? void 0 : b.divides) == null ? void 0 : g[0]) == null ? void 0 : f.glyphGroup) == null ? void 0 : p[0];
|
|
9402
9406
|
if (!y)
|
|
9403
9407
|
continue;
|
|
9404
|
-
const C =
|
|
9408
|
+
const C = Zu(y, this._documents, this._skeleton, t);
|
|
9405
9409
|
if (!C)
|
|
9406
9410
|
continue;
|
|
9407
9411
|
s.push({
|
|
@@ -9573,25 +9577,25 @@ let wt = class extends me {
|
|
|
9573
9577
|
return t || Array.from(this._tableParagraphBounds.values()).flat().find((r) => r.startIndex === e);
|
|
9574
9578
|
}
|
|
9575
9579
|
};
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
],
|
|
9579
|
-
const
|
|
9580
|
+
Pt = Ku([
|
|
9581
|
+
qu(1, j(de))
|
|
9582
|
+
], Pt);
|
|
9583
|
+
const Ju = [
|
|
9580
9584
|
ct.id,
|
|
9581
|
-
Lt.id,
|
|
9582
9585
|
Qt.id,
|
|
9583
9586
|
Ut.id,
|
|
9584
9587
|
Ft.id,
|
|
9585
|
-
bt.id,
|
|
9586
9588
|
Ht.id,
|
|
9589
|
+
bt.id,
|
|
9590
|
+
kt.id,
|
|
9587
9591
|
mt.id,
|
|
9588
9592
|
Et.id
|
|
9589
9593
|
];
|
|
9590
|
-
function
|
|
9591
|
-
const { avaliableMenus: e =
|
|
9594
|
+
function $u(n) {
|
|
9595
|
+
const { avaliableMenus: e = Ju } = n, t = J(da), [o, r] = Ee([]);
|
|
9592
9596
|
return Ce(() => {
|
|
9593
9597
|
function s() {
|
|
9594
|
-
const a = t.getFlatMenuByPositionKey(
|
|
9598
|
+
const a = t.getFlatMenuByPositionKey(Pl.RIBBON), c = [];
|
|
9595
9599
|
for (const d of e) {
|
|
9596
9600
|
const l = a.find((A) => A.key === d);
|
|
9597
9601
|
l && c.push(l);
|
|
@@ -9607,23 +9611,23 @@ function eh(n) {
|
|
|
9607
9611
|
"div",
|
|
9608
9612
|
{
|
|
9609
9613
|
className: ze("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", Nn),
|
|
9610
|
-
children: o.map((s) => s.item && /* @__PURE__ */ Q("div", { className: "univer-flex univer-flex-nowrap univer-gap-2 univer-px-2", children: /* @__PURE__ */ Q(
|
|
9614
|
+
children: o.map((s) => s.item && /* @__PURE__ */ Q("div", { className: "univer-flex univer-flex-nowrap univer-gap-2 univer-px-2", children: /* @__PURE__ */ Q(wl, { ...s.item }, s.key) }, s.key))
|
|
9611
9615
|
}
|
|
9612
9616
|
);
|
|
9613
9617
|
}
|
|
9614
|
-
var
|
|
9615
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
9618
|
+
var eh = Object.getOwnPropertyDescriptor, th = (n, e, t, o) => {
|
|
9619
|
+
for (var r = o > 1 ? void 0 : o ? eh(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
9616
9620
|
(i = n[s]) && (r = i(r) || r);
|
|
9617
9621
|
return r;
|
|
9618
9622
|
}, ln = (n, e) => (t, o) => e(t, o, n);
|
|
9619
9623
|
const _i = "univer.doc.float-menu";
|
|
9620
|
-
function
|
|
9624
|
+
function nh(n, e) {
|
|
9621
9625
|
if (n == null || e == null)
|
|
9622
9626
|
return !1;
|
|
9623
9627
|
const { glyph: t, ...o } = n, { glyph: r, ...s } = e;
|
|
9624
9628
|
return zc(o, s);
|
|
9625
9629
|
}
|
|
9626
|
-
const
|
|
9630
|
+
const oh = [
|
|
9627
9631
|
V.CUSTOM_BLOCK,
|
|
9628
9632
|
V.PARAGRAPH
|
|
9629
9633
|
];
|
|
@@ -9639,7 +9643,7 @@ let co = class extends me {
|
|
|
9639
9643
|
return this._floatMenu;
|
|
9640
9644
|
}
|
|
9641
9645
|
_registerFloatMenu() {
|
|
9642
|
-
this.disposeWithMe(this._componentManager.register(_i,
|
|
9646
|
+
this.disposeWithMe(this._componentManager.register(_i, $u));
|
|
9643
9647
|
}
|
|
9644
9648
|
_initSelectionChange() {
|
|
9645
9649
|
this.disposeWithMe(this._docSelectionRenderService.onSelectionStart$.subscribe(() => {
|
|
@@ -9669,7 +9673,7 @@ let co = class extends me {
|
|
|
9669
9673
|
if (!o || o.getDisabled())
|
|
9670
9674
|
return;
|
|
9671
9675
|
const r = (i = o.getBody()) == null ? void 0 : i.dataStream[t.startOffset];
|
|
9672
|
-
if (t.endOffset - t.startOffset === 1 && r &&
|
|
9676
|
+
if (t.endOffset - t.startOffset === 1 && r && oh.includes(r))
|
|
9673
9677
|
return;
|
|
9674
9678
|
const s = (c = (a = o.getBody()) == null ? void 0 : a.customRanges) == null ? void 0 : c.filter((d) => d.wholeEntity);
|
|
9675
9679
|
if (!(s != null && s.some((d) => d.startIndex === t.startOffset && d.endIndex === t.endOffset - 1)))
|
|
@@ -9678,7 +9682,7 @@ let co = class extends me {
|
|
|
9678
9682
|
t,
|
|
9679
9683
|
{
|
|
9680
9684
|
componentKey: _i,
|
|
9681
|
-
direction: t.direction === "backward" ||
|
|
9685
|
+
direction: t.direction === "backward" || nh(t.startNodePosition, t.endNodePosition) ? "top-center" : "bottom-center",
|
|
9682
9686
|
offset: [0, 4]
|
|
9683
9687
|
},
|
|
9684
9688
|
e
|
|
@@ -9688,15 +9692,15 @@ let co = class extends me {
|
|
|
9688
9692
|
}, Mn(() => this._hideFloatMenu());
|
|
9689
9693
|
}
|
|
9690
9694
|
};
|
|
9691
|
-
co =
|
|
9695
|
+
co = th([
|
|
9692
9696
|
ln(1, j(Y)),
|
|
9693
9697
|
ln(2, j(Bn)),
|
|
9694
9698
|
ln(3, j(rn)),
|
|
9695
9699
|
ln(4, j(L)),
|
|
9696
9700
|
ln(5, j(Re))
|
|
9697
9701
|
], co);
|
|
9698
|
-
var
|
|
9699
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
9702
|
+
var rh = Object.getOwnPropertyDescriptor, sh = (n, e, t, o) => {
|
|
9703
|
+
for (var r = o > 1 ? void 0 : o ? rh(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
9700
9704
|
(i = n[s]) && (r = i(r) || r);
|
|
9701
9705
|
return r;
|
|
9702
9706
|
}, dn = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -9762,7 +9766,7 @@ let lo = class extends me {
|
|
|
9762
9766
|
componentKey: "doc.paragraph.menu",
|
|
9763
9767
|
direction: "left-center",
|
|
9764
9768
|
onClickOutside: () => {
|
|
9765
|
-
this._docSelectionManagerService.textSelection$.pipe(
|
|
9769
|
+
this._docSelectionManagerService.textSelection$.pipe(jl()).subscribe(() => {
|
|
9766
9770
|
this._isCursorInActiveParagraph() || this.hideParagraphMenu(!0);
|
|
9767
9771
|
});
|
|
9768
9772
|
},
|
|
@@ -9780,16 +9784,16 @@ let lo = class extends me {
|
|
|
9780
9784
|
this._paragrahMenu && (this._paragrahMenu.disposable.canDispose() || e) && (this._paragrahMenu.disposable.dispose(), this._paragrahMenu = null);
|
|
9781
9785
|
}
|
|
9782
9786
|
};
|
|
9783
|
-
lo =
|
|
9787
|
+
lo = sh([
|
|
9784
9788
|
dn(1, j(Y)),
|
|
9785
|
-
dn(2, j(
|
|
9789
|
+
dn(2, j(Pt)),
|
|
9786
9790
|
dn(3, j(Bn)),
|
|
9787
9791
|
dn(4, j(de)),
|
|
9788
9792
|
dn(5, j(co))
|
|
9789
9793
|
], lo);
|
|
9790
|
-
const
|
|
9794
|
+
const ih = ({ popup: n }) => {
|
|
9791
9795
|
var E, b;
|
|
9792
|
-
const [e, t] = Ee(!1), o = ke(null), r = J(T), s = J(Oo), 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(lo), u = l == null ? void 0 : l.with(
|
|
9796
|
+
const [e, t] = Ee(!1), o = ke(null), r = J(T), s = J(Oo), 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(lo), u = l == null ? void 0 : l.with(Pt), g = et(u == null ? void 0 : u.hoverParagraph$), f = et(u == null ? void 0 : u.hoverParagraphLeft$), p = (E = g != null ? g : f) == null ? void 0 : E.startIndex, m = _e(() => {
|
|
9793
9797
|
var y, C;
|
|
9794
9798
|
return (C = (y = A == null ? void 0 : A.getBody()) == null ? void 0 : y.paragraphs) == null ? void 0 : C.find((B) => B.startIndex === p);
|
|
9795
9799
|
}, [A, g]), I = (b = m == null ? void 0 : m.paragraphStyle) == null ? void 0 : b.namedStyleType, S = Ec[I != null ? I : K.NORMAL_TEXT], v = _e(() => new Fe({
|
|
@@ -9800,7 +9804,7 @@ const ah = ({ popup: n }) => {
|
|
|
9800
9804
|
}), []), R = () => {
|
|
9801
9805
|
t(!1), h == null || h.hideParagraphMenu(!0);
|
|
9802
9806
|
};
|
|
9803
|
-
return /* @__PURE__ */ re(
|
|
9807
|
+
return /* @__PURE__ */ re(Xl, { children: [
|
|
9804
9808
|
/* @__PURE__ */ re(
|
|
9805
9809
|
"div",
|
|
9806
9810
|
{
|
|
@@ -9844,7 +9848,7 @@ const ah = ({ popup: n }) => {
|
|
|
9844
9848
|
}
|
|
9845
9849
|
),
|
|
9846
9850
|
e && /* @__PURE__ */ Q(
|
|
9847
|
-
|
|
9851
|
+
Nl,
|
|
9848
9852
|
{
|
|
9849
9853
|
portal: !0,
|
|
9850
9854
|
mask: !0,
|
|
@@ -9864,7 +9868,7 @@ const ah = ({ popup: n }) => {
|
|
|
9864
9868
|
a.current = !1;
|
|
9865
9869
|
},
|
|
9866
9870
|
children: /* @__PURE__ */ Q(
|
|
9867
|
-
|
|
9871
|
+
Ll,
|
|
9868
9872
|
{
|
|
9869
9873
|
style: { width: 212 },
|
|
9870
9874
|
menuType: no.PARAGRAPH,
|
|
@@ -9883,75 +9887,75 @@ const ah = ({ popup: n }) => {
|
|
|
9883
9887
|
function Se(n) {
|
|
9884
9888
|
return n.getContextValue(_n) && n.getContextValue(Hr) && !n.getContextValue(Xi);
|
|
9885
9889
|
}
|
|
9886
|
-
function
|
|
9890
|
+
function ah(n) {
|
|
9887
9891
|
return n.getContextValue(_n) && n.getContextValue(Hr) && !n.getContextValue(Xi);
|
|
9888
9892
|
}
|
|
9889
|
-
const
|
|
9890
|
-
id:
|
|
9893
|
+
const ch = {
|
|
9894
|
+
id: Jt.id,
|
|
9891
9895
|
binding: q.TAB,
|
|
9892
9896
|
preconditions: Se
|
|
9893
|
-
},
|
|
9894
|
-
id:
|
|
9897
|
+
}, lh = {
|
|
9898
|
+
id: Jt.id,
|
|
9895
9899
|
binding: q.TAB | te.SHIFT,
|
|
9896
9900
|
preconditions: Se,
|
|
9897
9901
|
staticParameters: {
|
|
9898
9902
|
shift: !0
|
|
9899
9903
|
}
|
|
9900
|
-
},
|
|
9901
|
-
id:
|
|
9904
|
+
}, dh = {
|
|
9905
|
+
id: Qt.id,
|
|
9902
9906
|
binding: q.B | te.CTRL_COMMAND,
|
|
9903
9907
|
preconditions: Se
|
|
9904
|
-
},
|
|
9905
|
-
id:
|
|
9908
|
+
}, Ah = {
|
|
9909
|
+
id: Ut.id,
|
|
9906
9910
|
binding: q.I | te.CTRL_COMMAND,
|
|
9907
9911
|
preconditions: Se
|
|
9908
|
-
},
|
|
9909
|
-
id:
|
|
9912
|
+
}, uh = {
|
|
9913
|
+
id: Ft.id,
|
|
9910
9914
|
binding: q.U | te.CTRL_COMMAND,
|
|
9911
9915
|
preconditions: Se
|
|
9912
|
-
},
|
|
9913
|
-
id:
|
|
9916
|
+
}, hh = {
|
|
9917
|
+
id: Ht.id,
|
|
9914
9918
|
binding: q.X | te.SHIFT | te.CTRL_COMMAND,
|
|
9915
9919
|
preconditions: Se
|
|
9916
|
-
},
|
|
9920
|
+
}, gh = {
|
|
9917
9921
|
id: bt.id,
|
|
9918
9922
|
binding: q.COMMA | te.CTRL_COMMAND,
|
|
9919
9923
|
preconditions: Se
|
|
9920
|
-
},
|
|
9921
|
-
id:
|
|
9924
|
+
}, fh = {
|
|
9925
|
+
id: kt.id,
|
|
9922
9926
|
binding: q.PERIOD | te.CTRL_COMMAND,
|
|
9923
9927
|
preconditions: Se
|
|
9924
|
-
},
|
|
9928
|
+
}, ph = {
|
|
9925
9929
|
id: Qo.id,
|
|
9926
9930
|
binding: q.L | te.CTRL_COMMAND | te.SHIFT,
|
|
9927
9931
|
preconditions: Se
|
|
9928
|
-
},
|
|
9932
|
+
}, mh = {
|
|
9929
9933
|
id: Fo.id,
|
|
9930
9934
|
binding: q.R | te.CTRL_COMMAND | te.SHIFT,
|
|
9931
9935
|
preconditions: Se
|
|
9932
|
-
},
|
|
9936
|
+
}, Eh = {
|
|
9933
9937
|
id: Uo.id,
|
|
9934
9938
|
binding: q.E | te.CTRL_COMMAND | te.SHIFT,
|
|
9935
9939
|
preconditions: Se
|
|
9936
|
-
},
|
|
9940
|
+
}, Ih = {
|
|
9937
9941
|
id: Ho.id,
|
|
9938
9942
|
binding: q.J | te.CTRL_COMMAND | te.SHIFT,
|
|
9939
9943
|
preconditions: Se
|
|
9940
|
-
},
|
|
9944
|
+
}, Sh = {
|
|
9941
9945
|
id: On.id,
|
|
9942
9946
|
binding: q.Digit7 | te.CTRL_COMMAND | te.SHIFT,
|
|
9943
9947
|
preconditions: Se
|
|
9944
|
-
},
|
|
9948
|
+
}, vh = {
|
|
9945
9949
|
id: xn.id,
|
|
9946
9950
|
binding: q.Digit8 | te.CTRL_COMMAND | te.SHIFT,
|
|
9947
9951
|
preconditions: Se
|
|
9948
9952
|
}, Vo = "docs-ui.config", Di = {
|
|
9949
9953
|
layout: {
|
|
9950
|
-
docContainerConfig:
|
|
9951
|
-
toolbarConfig:
|
|
9954
|
+
docContainerConfig: od,
|
|
9955
|
+
toolbarConfig: nd
|
|
9952
9956
|
}
|
|
9953
|
-
},
|
|
9954
|
-
function
|
|
9957
|
+
}, Ch = [50, 80, 100, 130, 150, 170, 200, 400], Rh = [10, 400];
|
|
9958
|
+
function bh() {
|
|
9955
9959
|
const n = J(T), e = J(L), t = _e(() => e.getCurrentTypeOfUnit$(_.UNIVER_DOC), []), o = et(t), r = ha(() => {
|
|
9956
9960
|
var d, l;
|
|
9957
9961
|
if (!o) return 100;
|
|
@@ -9974,19 +9978,19 @@ function yh() {
|
|
|
9974
9978
|
});
|
|
9975
9979
|
}
|
|
9976
9980
|
return /* @__PURE__ */ Q(
|
|
9977
|
-
|
|
9981
|
+
Ql,
|
|
9978
9982
|
{
|
|
9979
|
-
min:
|
|
9983
|
+
min: Rh[0],
|
|
9980
9984
|
value: s,
|
|
9981
|
-
shortcuts:
|
|
9985
|
+
shortcuts: Ch,
|
|
9982
9986
|
onChange: a
|
|
9983
9987
|
}
|
|
9984
9988
|
);
|
|
9985
9989
|
}
|
|
9986
|
-
function
|
|
9987
|
-
return /* @__PURE__ */ Q("section", { className: "univer-flex univer-flex-shrink-0 univer-justify-end", children: /* @__PURE__ */ Q(
|
|
9990
|
+
function yh(n) {
|
|
9991
|
+
return /* @__PURE__ */ Q("section", { className: "univer-flex univer-flex-shrink-0 univer-justify-end", children: /* @__PURE__ */ Q(bh, {}) });
|
|
9988
9992
|
}
|
|
9989
|
-
function
|
|
9993
|
+
function xh() {
|
|
9990
9994
|
var r, s, i;
|
|
9991
9995
|
const n = J(L), e = Aa(Vo), t = et(() => n.getCurrentTypeOfUnit$(_.UNIVER_SHEET), void 0, void 0, []), o = (i = (s = (r = e == null ? void 0 : e.layout) == null ? void 0 : r.docContainerConfig) == null ? void 0 : s.footer) != null ? i : !0;
|
|
9992
9996
|
return t ? null : o && /* @__PURE__ */ re(
|
|
@@ -9995,12 +9999,12 @@ function Oh() {
|
|
|
9995
9999
|
className: "univer-box-border univer-flex univer-items-center univer-justify-between univer-px-5 univer-py-1.5",
|
|
9996
10000
|
children: [
|
|
9997
10001
|
/* @__PURE__ */ Q("div", {}),
|
|
9998
|
-
/* @__PURE__ */ Q(
|
|
10002
|
+
/* @__PURE__ */ Q(yh, {})
|
|
9999
10003
|
]
|
|
10000
10004
|
}
|
|
10001
10005
|
);
|
|
10002
10006
|
}
|
|
10003
|
-
const
|
|
10007
|
+
const Oh = "univer-font-[500] univer-truncate univer-h-[24px] univer-mb-2 univer-leading-[24px] univer-cursor-pointer univer-pr-1 ", Th = "univer-text-base univer-font-semibold", Bh = "univer-text-sm univer-font-semibold", Mh = "univer-text-sm", _h = Be((n, e) => {
|
|
10004
10008
|
const { menus: t, onClick: o, className: r, style: s, mode: i, maxHeight: a, activeId: c, open: d, onOpenChange: l, maxWidth: A, wrapperClass: h, wrapperStyle: u, iconClass: g, iconStyle: f } = n, p = i === "side-bar", m = ke(null), I = ke(t);
|
|
10005
10009
|
I.current = t;
|
|
10006
10010
|
const S = _e(() => ({
|
|
@@ -10016,7 +10020,7 @@ const Th = "univer-font-[500] univer-truncate univer-h-[24px] univer-mb-2 univer
|
|
|
10016
10020
|
});
|
|
10017
10021
|
}
|
|
10018
10022
|
}), []);
|
|
10019
|
-
return
|
|
10023
|
+
return Yl(e, () => S), Ce(() => {
|
|
10020
10024
|
c && S.scrollTo(c);
|
|
10021
10025
|
}, [c, S]), /* @__PURE__ */ re("div", { className: ze("univer-relative", h), style: u, children: [
|
|
10022
10026
|
/* @__PURE__ */ Q(
|
|
@@ -10053,17 +10057,17 @@ const Th = "univer-font-[500] univer-truncate univer-h-[24px] univer-mb-2 univer
|
|
|
10053
10057
|
"div",
|
|
10054
10058
|
{
|
|
10055
10059
|
ref: m,
|
|
10056
|
-
className: ze("univer-flex-1 univer-overflow-y-auto univer-overflow-x-hidden",
|
|
10060
|
+
className: ze("univer-flex-1 univer-overflow-y-auto univer-overflow-x-hidden", Jl),
|
|
10057
10061
|
children: t == null ? void 0 : t.map((v) => /* @__PURE__ */ Q(
|
|
10058
10062
|
"div",
|
|
10059
10063
|
{
|
|
10060
10064
|
id: `univer-side-menu-${v.id}`,
|
|
10061
10065
|
className: ze(
|
|
10062
|
-
|
|
10066
|
+
Oh,
|
|
10063
10067
|
{
|
|
10064
|
-
[
|
|
10065
|
-
[
|
|
10066
|
-
[
|
|
10068
|
+
[Th]: v.isTitle,
|
|
10069
|
+
[Bh]: v.level === 1,
|
|
10070
|
+
[Mh]: v.level > 1,
|
|
10067
10071
|
"univer-text-gray-500 dark:!univer-text-gray-400": v.id !== c,
|
|
10068
10072
|
"univer-text-gray-800 dark:!univer-text-gray-200": v.id === c
|
|
10069
10073
|
}
|
|
@@ -10083,7 +10087,7 @@ const Th = "univer-font-[500] univer-truncate univer-h-[24px] univer-mb-2 univer
|
|
|
10083
10087
|
}
|
|
10084
10088
|
)
|
|
10085
10089
|
] });
|
|
10086
|
-
}),
|
|
10090
|
+
}), Dh = (n) => {
|
|
10087
10091
|
switch (n) {
|
|
10088
10092
|
case K.HEADING_1:
|
|
10089
10093
|
return 1;
|
|
@@ -10101,7 +10105,7 @@ const Th = "univer-font-[500] univer-truncate univer-h-[24px] univer-mb-2 univer
|
|
|
10101
10105
|
return 1;
|
|
10102
10106
|
}
|
|
10103
10107
|
};
|
|
10104
|
-
function
|
|
10108
|
+
function wh(n, e, t, o) {
|
|
10105
10109
|
var a, c;
|
|
10106
10110
|
if (!n)
|
|
10107
10111
|
return;
|
|
@@ -10120,20 +10124,20 @@ function Ph(n, e, t, o) {
|
|
|
10120
10124
|
}
|
|
10121
10125
|
}
|
|
10122
10126
|
const wi = "__title";
|
|
10123
|
-
function
|
|
10127
|
+
function Ph() {
|
|
10124
10128
|
var e, t, o;
|
|
10125
10129
|
const n = Aa(Vo);
|
|
10126
|
-
return (o = (t = (e = n == null ? void 0 : n.layout) == null ? void 0 : e.docContainerConfig) == null ? void 0 : t.sideMenu) == null || o ? /* @__PURE__ */ Q(
|
|
10130
|
+
return (o = (t = (e = n == null ? void 0 : n.layout) == null ? void 0 : e.docContainerConfig) == null ? void 0 : t.sideMenu) == null || o ? /* @__PURE__ */ Q(Nh, {}) : null;
|
|
10127
10131
|
}
|
|
10128
|
-
function
|
|
10132
|
+
function Nh() {
|
|
10129
10133
|
var B, x, M, w, F, P, N, ee, $;
|
|
10130
|
-
const n = J(T), e = J(L), t = et(_e(() => e.getCurrentTypeOfUnit$(_.UNIVER_DOC), [])), o = J(pe), r = (x = (B = t == null ? void 0 : t.getBody()) == null ? void 0 : B.dataStream) != null ? x : "", [s, i] = Ee(0), [a, c] = Ee(void 0), d = (M = t == null ? void 0 : t.getUnitId()) != null ? M : "", l = o.getRenderById(d), A = t == null ? void 0 : t.getTitle(), h = l == null ? void 0 : l.with(
|
|
10134
|
+
const n = J(T), e = J(L), t = et(_e(() => e.getCurrentTypeOfUnit$(_.UNIVER_DOC), [])), o = J(pe), r = (x = (B = t == null ? void 0 : t.getBody()) == null ? void 0 : B.dataStream) != null ? x : "", [s, i] = Ee(0), [a, c] = Ee(void 0), d = (M = t == null ? void 0 : t.getUnitId()) != null ? M : "", l = o.getRenderById(d), A = t == null ? void 0 : t.getTitle(), h = l == null ? void 0 : l.with(Pt), u = h == null ? void 0 : h.paragraphBounds, g = (F = (w = l == null ? void 0 : l.mainComponent) == null ? void 0 : w.left) != null ? F : 0, f = (P = l == null ? void 0 : l.engine.height) != null ? P : 0, p = (N = l == null ? void 0 : l.scene.scaleY) != null ? N : 1, m = ($ = (ee = t == null ? void 0 : t.getBody()) == null ? void 0 : ee.paragraphs) != null ? $ : [], I = _e(() => {
|
|
10131
10135
|
const U = /* @__PURE__ */ new Map();
|
|
10132
10136
|
return m.forEach((H) => {
|
|
10133
10137
|
U.set(H.startIndex, H);
|
|
10134
10138
|
}), U;
|
|
10135
10139
|
}, [m]);
|
|
10136
|
-
et(_e(() => l != null && l.engine.onTransformChange$ ? Mt(l == null ? void 0 : l.engine.onTransformChange$).pipe(Rn(33)) :
|
|
10140
|
+
et(_e(() => l != null && l.engine.onTransformChange$ ? Mt(l == null ? void 0 : l.engine.onTransformChange$).pipe(Rn(33)) : zl(null), [l == null ? void 0 : l.engine.onTransformChange$]));
|
|
10137
10141
|
const S = g < 180 ? "float" : "side-bar", v = m == null ? void 0 : m.filter(
|
|
10138
10142
|
(U) => {
|
|
10139
10143
|
var H;
|
|
@@ -10141,7 +10145,7 @@ function Lh() {
|
|
|
10141
10145
|
}
|
|
10142
10146
|
).map((U) => {
|
|
10143
10147
|
var ae;
|
|
10144
|
-
const H =
|
|
10148
|
+
const H = Dh(U.paragraphStyle.namedStyleType), k = u == null ? void 0 : u.get(U.startIndex);
|
|
10145
10149
|
if (!k) return null;
|
|
10146
10150
|
const { paragraphStart: ne, paragraphEnd: ie } = k;
|
|
10147
10151
|
return {
|
|
@@ -10151,7 +10155,7 @@ function Lh() {
|
|
|
10151
10155
|
isTitle: ((ae = U.paragraphStyle) == null ? void 0 : ae.namedStyleType) === K.TITLE
|
|
10152
10156
|
};
|
|
10153
10157
|
}).filter((U) => U == null ? void 0 : U.text), R = mn((U) => {
|
|
10154
|
-
const H = U.viewportScrollY, k = H + f / p, ne =
|
|
10158
|
+
const H = U.viewportScrollY, k = H + f / p, ne = wh(u, I, H, k);
|
|
10155
10159
|
ne && c(ne);
|
|
10156
10160
|
}), E = v != null && v.find((U) => U.isTitle) ? v : [
|
|
10157
10161
|
...A ? [{
|
|
@@ -10200,7 +10204,7 @@ function Lh() {
|
|
|
10200
10204
|
{
|
|
10201
10205
|
className: "univer-absolute univer-bottom-0 univer-left-0 univer-top-0 univer-z-[100] univer-w-[0px]",
|
|
10202
10206
|
children: /* @__PURE__ */ Q(
|
|
10203
|
-
|
|
10207
|
+
_h,
|
|
10204
10208
|
{
|
|
10205
10209
|
menus: E,
|
|
10206
10210
|
open: b,
|
|
@@ -10231,7 +10235,7 @@ const rt = {
|
|
|
10231
10235
|
actions: [],
|
|
10232
10236
|
textRanges: i
|
|
10233
10237
|
}
|
|
10234
|
-
}, g = new
|
|
10238
|
+
}, g = new Nt();
|
|
10235
10239
|
g.reset();
|
|
10236
10240
|
const f = new Ie(), p = W.getInstance();
|
|
10237
10241
|
for (const y of h) {
|
|
@@ -10263,19 +10267,19 @@ const rt = {
|
|
|
10263
10267
|
const m = Ae(s, a);
|
|
10264
10268
|
return u.params.actions = p.editOp(f.serialize(), m), !!r.syncExecuteCommand(u.id, u.params);
|
|
10265
10269
|
}
|
|
10266
|
-
},
|
|
10270
|
+
}, Lh = () => {
|
|
10267
10271
|
const n = J(Y), e = J(tn), t = _e(() => n.getDocRanges(), []);
|
|
10268
10272
|
return Ce(() => {
|
|
10269
10273
|
t.length || e.closePanel();
|
|
10270
10274
|
}, [t]), t;
|
|
10271
|
-
},
|
|
10275
|
+
}, Qh = () => {
|
|
10272
10276
|
var c, d, l, A, h;
|
|
10273
|
-
const e = J(L).getCurrentUnitForType(_.UNIVER_DOC), t =
|
|
10277
|
+
const e = J(L).getCurrentUnitForType(_.UNIVER_DOC), t = Lh();
|
|
10274
10278
|
if (!e || t.length === 0)
|
|
10275
10279
|
return [];
|
|
10276
10280
|
const o = t[0].segmentId, r = e.getSelfOrHeaderFooterModel(o), s = (d = (c = r.getBody()) == null ? void 0 : c.paragraphs) != null ? d : [], i = (A = (l = r.getBody()) == null ? void 0 : l.dataStream) != null ? A : "";
|
|
10277
10281
|
return (h = ce.range.getParagraphsInRanges(t, s, i)) != null ? h : [];
|
|
10278
|
-
},
|
|
10282
|
+
}, Uh = (n, e) => {
|
|
10279
10283
|
const t = J(T), [o, r] = Ee(() => {
|
|
10280
10284
|
var a, c;
|
|
10281
10285
|
const i = n[0];
|
|
@@ -10284,7 +10288,7 @@ const rt = {
|
|
|
10284
10288
|
return [o, (i) => (r(i), t.executeCommand(rt.id, {
|
|
10285
10289
|
paragraph: { horizontalAlign: Number(i) }
|
|
10286
10290
|
}))];
|
|
10287
|
-
},
|
|
10291
|
+
}, Fh = (n) => {
|
|
10288
10292
|
const e = J(T), [t, o] = Ee(() => {
|
|
10289
10293
|
var i;
|
|
10290
10294
|
const s = n[0];
|
|
@@ -10293,7 +10297,7 @@ const rt = {
|
|
|
10293
10297
|
return [t, (s) => (o(s), e.executeCommand(rt.id, {
|
|
10294
10298
|
paragraph: { indentStart: { v: s } }
|
|
10295
10299
|
}))];
|
|
10296
|
-
},
|
|
10300
|
+
}, Hh = (n) => {
|
|
10297
10301
|
const e = J(T), [t, o] = Ee(() => {
|
|
10298
10302
|
var i;
|
|
10299
10303
|
const s = n[0];
|
|
@@ -10302,7 +10306,7 @@ const rt = {
|
|
|
10302
10306
|
return [t, (s) => (o(s), e.executeCommand(rt.id, {
|
|
10303
10307
|
paragraph: { indentEnd: { v: s } }
|
|
10304
10308
|
}))];
|
|
10305
|
-
},
|
|
10309
|
+
}, kh = (n) => {
|
|
10306
10310
|
const e = J(T), [t, o] = Ee(() => {
|
|
10307
10311
|
var i;
|
|
10308
10312
|
const s = n[0];
|
|
@@ -10311,7 +10315,7 @@ const rt = {
|
|
|
10311
10315
|
return [t, (s) => (o(s), e.executeCommand(rt.id, {
|
|
10312
10316
|
paragraph: { indentFirstLine: { v: s } }
|
|
10313
10317
|
}))];
|
|
10314
|
-
},
|
|
10318
|
+
}, Vh = (n) => {
|
|
10315
10319
|
const e = J(T), [t, o] = Ee(() => {
|
|
10316
10320
|
var i;
|
|
10317
10321
|
const s = n[0];
|
|
@@ -10320,7 +10324,7 @@ const rt = {
|
|
|
10320
10324
|
return [t, (s) => (o(s), e.executeCommand(rt.id, {
|
|
10321
10325
|
paragraph: { hanging: { v: s } }
|
|
10322
10326
|
}))];
|
|
10323
|
-
},
|
|
10327
|
+
}, Wh = (n) => {
|
|
10324
10328
|
const e = J(T), [t, o] = Ee(() => {
|
|
10325
10329
|
var i;
|
|
10326
10330
|
const s = n[0];
|
|
@@ -10329,7 +10333,7 @@ const rt = {
|
|
|
10329
10333
|
return [t, (s) => (o(s), e.executeCommand(rt.id, {
|
|
10330
10334
|
paragraph: { spaceAbove: { v: s } }
|
|
10331
10335
|
}))];
|
|
10332
|
-
},
|
|
10336
|
+
}, jh = (n) => {
|
|
10333
10337
|
const e = J(T), [t, o] = Ee(() => {
|
|
10334
10338
|
var i;
|
|
10335
10339
|
const s = n[0];
|
|
@@ -10338,7 +10342,7 @@ const rt = {
|
|
|
10338
10342
|
return [t, (s) => (o(s), e.executeCommand(rt.id, {
|
|
10339
10343
|
paragraph: { spaceBelow: { v: s } }
|
|
10340
10344
|
}))];
|
|
10341
|
-
},
|
|
10345
|
+
}, zh = (n) => {
|
|
10342
10346
|
const e = J(T), t = J(pe), o = J(L), r = _e(() => {
|
|
10343
10347
|
var g;
|
|
10344
10348
|
const u = o.getCurrentUnitForType(_.UNIVER_DOC);
|
|
@@ -10351,13 +10355,13 @@ const rt = {
|
|
|
10351
10355
|
}), c = ke(i), [d, l] = Ee(() => {
|
|
10352
10356
|
var g, f;
|
|
10353
10357
|
const u = n[0];
|
|
10354
|
-
return u ? (f = (g = u.paragraphStyle) == null ? void 0 : g.spacingRule) != null ? f :
|
|
10358
|
+
return u ? (f = (g = u.paragraphStyle) == null ? void 0 : g.spacingRule) != null ? f : Xt.AUTO : Xt.AUTO;
|
|
10355
10359
|
}), A = async (u) => {
|
|
10356
10360
|
a(u), s.next({ lineSpacing: u, spacingRule: d });
|
|
10357
10361
|
}, h = async (u) => {
|
|
10358
10362
|
if (u !== d) {
|
|
10359
10363
|
let g = c.current;
|
|
10360
|
-
if (u ===
|
|
10364
|
+
if (u === Xt.AT_LEAST) {
|
|
10361
10365
|
const f = r == null ? void 0 : r.findNodeByCharIndex(n[0].startIndex), p = f == null ? void 0 : f.parent, m = p == null ? void 0 : p.parent;
|
|
10362
10366
|
(m == null ? void 0 : m.contentHeight) !== void 0 && (g = Math.max(m.contentHeight, g));
|
|
10363
10367
|
} else
|
|
@@ -10368,9 +10372,9 @@ const rt = {
|
|
|
10368
10372
|
return Ce(() => {
|
|
10369
10373
|
const u = s.pipe(
|
|
10370
10374
|
dr((g) => !!Object.keys(g).length),
|
|
10371
|
-
|
|
10375
|
+
Kl(16),
|
|
10372
10376
|
dr((g) => !!g.length),
|
|
10373
|
-
|
|
10377
|
+
ql((g) => g.reduce((f, p) => (Object.keys(p).forEach((m) => {
|
|
10374
10378
|
f[m] = p[m];
|
|
10375
10379
|
}), f), {}))
|
|
10376
10380
|
).subscribe((g) => e.executeCommand(rt.id, {
|
|
@@ -10403,20 +10407,20 @@ const rt = {
|
|
|
10403
10407
|
}
|
|
10404
10408
|
);
|
|
10405
10409
|
};
|
|
10406
|
-
function
|
|
10410
|
+
function Gh() {
|
|
10407
10411
|
const n = J(Ye), e = _e(() => [
|
|
10408
10412
|
{ label: n.t("toolbar.alignLeft"), value: String(Ue.LEFT), icon: /* @__PURE__ */ Q(ac, {}) },
|
|
10409
10413
|
{ label: n.t("toolbar.alignCenter"), value: String(Ue.CENTER), icon: /* @__PURE__ */ Q(sc, {}) },
|
|
10410
10414
|
{ label: n.t("toolbar.alignRight"), value: String(Ue.RIGHT), icon: /* @__PURE__ */ Q(cc, {}) },
|
|
10411
10415
|
{ label: n.t("toolbar.alignJustify"), value: String(Ue.JUSTIFIED), icon: /* @__PURE__ */ Q(Ka, {}) }
|
|
10412
|
-
], []), t =
|
|
10416
|
+
], []), t = Qh(), [o, r] = Uh(t, e[0].value), [s, i] = Fh(t), [a, c] = Hh(t), [d, l] = kh(t), [A, h] = Vh(t), [u, g] = Wh(t), [f, p] = jh(t), { lineSpacing: [m, I], spacingRule: [S, v] } = zh(t), R = _e(() => S === Xt.AUTO ? { min: 1, max: 5, step: m < 2 ? 0.5 : 1 } : { min: 1, max: 100 }, [S, m]);
|
|
10413
10417
|
return /* @__PURE__ */ re("div", { children: [
|
|
10414
10418
|
/* @__PURE__ */ Q("div", { className: "univer-t-4 univer-text-sm univer-font-medium", children: n.t("doc.paragraphSetting.alignment") }),
|
|
10415
10419
|
/* @__PURE__ */ Q(
|
|
10416
10420
|
"div",
|
|
10417
10421
|
{
|
|
10418
10422
|
className: ze("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", Nn),
|
|
10419
|
-
children: e.map((E) => /* @__PURE__ */ Q(
|
|
10423
|
+
children: e.map((E) => /* @__PURE__ */ Q($l, { title: E.label, placement: "bottom", children: /* @__PURE__ */ Q(
|
|
10420
10424
|
"span",
|
|
10421
10425
|
{
|
|
10422
10426
|
className: ze("hover:univer-bg-black/60 univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-bg-none univer-px-3 univer-py-1", {
|
|
@@ -10487,8 +10491,8 @@ function Yh() {
|
|
|
10487
10491
|
{
|
|
10488
10492
|
value: `${S}`,
|
|
10489
10493
|
options: [
|
|
10490
|
-
{ label: n.t("doc.paragraphSetting.multiSpace"), value: `${
|
|
10491
|
-
{ label: n.t("doc.paragraphSetting.fixedValue"), value: `${
|
|
10494
|
+
{ label: n.t("doc.paragraphSetting.multiSpace"), value: `${Xt.AUTO}` },
|
|
10495
|
+
{ label: n.t("doc.paragraphSetting.fixedValue"), value: `${Xt.AT_LEAST}` }
|
|
10492
10496
|
],
|
|
10493
10497
|
onChange: (E) => v(Number(E))
|
|
10494
10498
|
}
|
|
@@ -10508,24 +10512,24 @@ function Yh() {
|
|
|
10508
10512
|
] })
|
|
10509
10513
|
] });
|
|
10510
10514
|
}
|
|
10511
|
-
const
|
|
10512
|
-
function
|
|
10515
|
+
const Yh = (n, e) => e.length === n.length && n.some((t) => e.some((o) => o.startOffset === t.startOffset && o.endOffset === t.endOffset));
|
|
10516
|
+
function Kh() {
|
|
10513
10517
|
const n = J(T), e = J(Ye), t = et(e.currentLocale$), [o, r] = Ee(""), s = _e(() => kr(() => r(ge(4)), 300), []), i = ke([]);
|
|
10514
10518
|
return Ce(() => {
|
|
10515
10519
|
const a = n.onCommandExecuted((c) => {
|
|
10516
10520
|
if (Le.id === c.id) {
|
|
10517
10521
|
const d = c.params.ranges;
|
|
10518
|
-
|
|
10522
|
+
Yh(d, i.current) || r(ge(4)), i.current = d;
|
|
10519
10523
|
}
|
|
10520
10524
|
X.id === c.id && c.params.trigger !== rt.id && s();
|
|
10521
10525
|
});
|
|
10522
10526
|
return () => a.dispose();
|
|
10523
10527
|
}, [s]), Ce(() => {
|
|
10524
10528
|
r(ge(4));
|
|
10525
|
-
}, [t]), Ce(() => () => s.cancel(), [s]), /* @__PURE__ */ Q(
|
|
10529
|
+
}, [t]), Ce(() => () => s.cancel(), [s]), /* @__PURE__ */ Q(Gh, {}, o);
|
|
10526
10530
|
}
|
|
10527
|
-
var
|
|
10528
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
10531
|
+
var qh = Object.getOwnPropertyDescriptor, Xh = (n, e, t, o) => {
|
|
10532
|
+
for (var r = o > 1 ? void 0 : o ? qh(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
10529
10533
|
(i = n[s]) && (r = i(r) || r);
|
|
10530
10534
|
return r;
|
|
10531
10535
|
}, or = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -10537,7 +10541,7 @@ let tn = class extends me {
|
|
|
10537
10541
|
this._commandService = e, this._componentManager = t, this._sidebarService = o, this._init();
|
|
10538
10542
|
}
|
|
10539
10543
|
_init() {
|
|
10540
|
-
this.disposeWithMe(this._componentManager.register(Pi,
|
|
10544
|
+
this.disposeWithMe(this._componentManager.register(Pi, Kh));
|
|
10541
10545
|
}
|
|
10542
10546
|
openPanel() {
|
|
10543
10547
|
const e = {
|
|
@@ -10554,7 +10558,7 @@ let tn = class extends me {
|
|
|
10554
10558
|
this._sidebarService.close(this._id);
|
|
10555
10559
|
}
|
|
10556
10560
|
};
|
|
10557
|
-
tn =
|
|
10561
|
+
tn = Xh([
|
|
10558
10562
|
or(0, T),
|
|
10559
10563
|
or(1, j(rn)),
|
|
10560
10564
|
or(2, j(ca))
|
|
@@ -10572,7 +10576,7 @@ const Ds = {
|
|
|
10572
10576
|
return () => o.unsubscribe();
|
|
10573
10577
|
});
|
|
10574
10578
|
};
|
|
10575
|
-
function
|
|
10579
|
+
function Zh(n) {
|
|
10576
10580
|
if (n.length < 2)
|
|
10577
10581
|
return !0;
|
|
10578
10582
|
const e = n.map((t) => t.tableId);
|
|
@@ -10581,7 +10585,7 @@ function Jh(n) {
|
|
|
10581
10585
|
function Ni(n, e, t) {
|
|
10582
10586
|
var s;
|
|
10583
10587
|
const o = e.getRectRanges(), r = e.getActiveTextRange();
|
|
10584
|
-
if (o && o.length &&
|
|
10588
|
+
if (o && o.length && Zh(o) && r == null) {
|
|
10585
10589
|
n.next(!1);
|
|
10586
10590
|
return;
|
|
10587
10591
|
}
|
|
@@ -10605,7 +10609,7 @@ const dt = (n) => {
|
|
|
10605
10609
|
});
|
|
10606
10610
|
return Ni(o, e, t), () => r.unsubscribe();
|
|
10607
10611
|
});
|
|
10608
|
-
},
|
|
10612
|
+
}, Jh = (n) => ({
|
|
10609
10613
|
id: ro.name,
|
|
10610
10614
|
commandId: ro.id,
|
|
10611
10615
|
type: Z.BUTTON,
|
|
@@ -10613,26 +10617,26 @@ const dt = (n) => {
|
|
|
10613
10617
|
title: "rightClick.copy",
|
|
10614
10618
|
disabled$: ws(n),
|
|
10615
10619
|
hidden$: se(n, _.UNIVER_DOC)
|
|
10616
|
-
}),
|
|
10620
|
+
}), $h = (n) => ({
|
|
10617
10621
|
id: Ds.id,
|
|
10618
10622
|
type: Z.BUTTON,
|
|
10619
10623
|
icon: "MenuIcon",
|
|
10620
10624
|
title: "doc.menu.paragraphSetting",
|
|
10621
10625
|
hidden$: se(n, _.UNIVER_DOC)
|
|
10622
|
-
}),
|
|
10626
|
+
}), eg = (n) => ({
|
|
10623
10627
|
id: rs.id,
|
|
10624
10628
|
type: Z.BUTTON,
|
|
10625
10629
|
icon: "CopyDoubleIcon",
|
|
10626
10630
|
title: "rightClick.cut",
|
|
10627
10631
|
disabled$: ws(n),
|
|
10628
10632
|
hidden$: se(n, _.UNIVER_DOC)
|
|
10629
|
-
}),
|
|
10633
|
+
}), tg = (n) => ({
|
|
10630
10634
|
id: is.id,
|
|
10631
10635
|
type: Z.BUTTON,
|
|
10632
10636
|
icon: "PasteSpecialDoubleIcon",
|
|
10633
10637
|
title: "rightClick.paste",
|
|
10634
10638
|
hidden$: se(n, _.UNIVER_DOC)
|
|
10635
|
-
}),
|
|
10639
|
+
}), ng = (n) => ({
|
|
10636
10640
|
id: Do.id,
|
|
10637
10641
|
type: Z.BUTTON,
|
|
10638
10642
|
icon: "PasteSpecialDoubleIcon",
|
|
@@ -10640,7 +10644,7 @@ const dt = (n) => {
|
|
|
10640
10644
|
disabled$: ws(n),
|
|
10641
10645
|
hidden$: se(n, _.UNIVER_DOC)
|
|
10642
10646
|
}), vc = "doc.menu.table-insert";
|
|
10643
|
-
function
|
|
10647
|
+
function og(n) {
|
|
10644
10648
|
return {
|
|
10645
10649
|
id: vc,
|
|
10646
10650
|
type: Z.SUBITEMS,
|
|
@@ -10649,7 +10653,7 @@ function rg(n) {
|
|
|
10649
10653
|
hidden$: Pn(se(n, _.UNIVER_DOC), dt(n), (e, t) => e || t)
|
|
10650
10654
|
};
|
|
10651
10655
|
}
|
|
10652
|
-
function
|
|
10656
|
+
function rg(n) {
|
|
10653
10657
|
return {
|
|
10654
10658
|
id: Rs.id,
|
|
10655
10659
|
type: Z.BUTTON,
|
|
@@ -10659,7 +10663,7 @@ function sg(n) {
|
|
|
10659
10663
|
hidden$: se(n, _.UNIVER_DOC)
|
|
10660
10664
|
};
|
|
10661
10665
|
}
|
|
10662
|
-
function
|
|
10666
|
+
function sg(n) {
|
|
10663
10667
|
return {
|
|
10664
10668
|
id: bs.id,
|
|
10665
10669
|
type: Z.BUTTON,
|
|
@@ -10669,7 +10673,7 @@ function ig(n) {
|
|
|
10669
10673
|
hidden$: se(n, _.UNIVER_DOC)
|
|
10670
10674
|
};
|
|
10671
10675
|
}
|
|
10672
|
-
function
|
|
10676
|
+
function ig(n) {
|
|
10673
10677
|
return {
|
|
10674
10678
|
id: ys.id,
|
|
10675
10679
|
type: Z.BUTTON,
|
|
@@ -10679,7 +10683,7 @@ function ag(n) {
|
|
|
10679
10683
|
hidden$: se(n, _.UNIVER_DOC)
|
|
10680
10684
|
};
|
|
10681
10685
|
}
|
|
10682
|
-
function
|
|
10686
|
+
function ag(n) {
|
|
10683
10687
|
return {
|
|
10684
10688
|
id: xs.id,
|
|
10685
10689
|
type: Z.BUTTON,
|
|
@@ -10690,7 +10694,7 @@ function cg(n) {
|
|
|
10690
10694
|
};
|
|
10691
10695
|
}
|
|
10692
10696
|
const Cc = "doc.menu.table-delete";
|
|
10693
|
-
function
|
|
10697
|
+
function cg(n) {
|
|
10694
10698
|
return {
|
|
10695
10699
|
id: Cc,
|
|
10696
10700
|
type: Z.SUBITEMS,
|
|
@@ -10699,7 +10703,7 @@ function lg(n) {
|
|
|
10699
10703
|
hidden$: Pn(se(n, _.UNIVER_DOC), dt(n), (e, t) => e || t)
|
|
10700
10704
|
};
|
|
10701
10705
|
}
|
|
10702
|
-
function
|
|
10706
|
+
function lg(n) {
|
|
10703
10707
|
return {
|
|
10704
10708
|
id: Is.id,
|
|
10705
10709
|
type: Z.BUTTON,
|
|
@@ -10709,7 +10713,7 @@ function dg(n) {
|
|
|
10709
10713
|
hidden$: se(n, _.UNIVER_DOC)
|
|
10710
10714
|
};
|
|
10711
10715
|
}
|
|
10712
|
-
function
|
|
10716
|
+
function dg(n) {
|
|
10713
10717
|
return {
|
|
10714
10718
|
id: Ss.id,
|
|
10715
10719
|
type: Z.BUTTON,
|
|
@@ -10719,7 +10723,7 @@ function Ag(n) {
|
|
|
10719
10723
|
hidden$: se(n, _.UNIVER_DOC)
|
|
10720
10724
|
};
|
|
10721
10725
|
}
|
|
10722
|
-
function
|
|
10726
|
+
function Ag(n) {
|
|
10723
10727
|
return {
|
|
10724
10728
|
id: Hn.id,
|
|
10725
10729
|
type: Z.BUTTON,
|
|
@@ -10729,77 +10733,77 @@ function ug(n) {
|
|
|
10729
10733
|
hidden$: se(n, _.UNIVER_DOC)
|
|
10730
10734
|
};
|
|
10731
10735
|
}
|
|
10732
|
-
const
|
|
10736
|
+
const ug = {
|
|
10733
10737
|
[Ys.FORMAT]: {
|
|
10734
|
-
[
|
|
10738
|
+
[Qt.id]: {
|
|
10735
10739
|
order: 0,
|
|
10736
|
-
menuItemFactory:
|
|
10740
|
+
menuItemFactory: au
|
|
10737
10741
|
},
|
|
10738
|
-
[
|
|
10742
|
+
[Ut.id]: {
|
|
10739
10743
|
order: 1,
|
|
10740
|
-
menuItemFactory:
|
|
10744
|
+
menuItemFactory: cu
|
|
10741
10745
|
},
|
|
10742
|
-
[
|
|
10746
|
+
[Ft.id]: {
|
|
10743
10747
|
order: 2,
|
|
10744
|
-
menuItemFactory:
|
|
10748
|
+
menuItemFactory: lu
|
|
10745
10749
|
},
|
|
10746
|
-
[
|
|
10750
|
+
[Ht.id]: {
|
|
10747
10751
|
order: 3,
|
|
10748
|
-
menuItemFactory:
|
|
10752
|
+
menuItemFactory: du
|
|
10749
10753
|
},
|
|
10750
10754
|
[bt.id]: {
|
|
10751
10755
|
order: 4,
|
|
10752
|
-
menuItemFactory:
|
|
10756
|
+
menuItemFactory: Au
|
|
10753
10757
|
},
|
|
10754
|
-
[
|
|
10758
|
+
[kt.id]: {
|
|
10755
10759
|
order: 5,
|
|
10756
|
-
menuItemFactory:
|
|
10760
|
+
menuItemFactory: uu
|
|
10757
10761
|
},
|
|
10758
10762
|
[Xe.id]: {
|
|
10759
10763
|
order: 5.5,
|
|
10760
|
-
menuItemFactory:
|
|
10764
|
+
menuItemFactory: fu
|
|
10761
10765
|
},
|
|
10762
10766
|
[ct.id]: {
|
|
10763
10767
|
order: 6,
|
|
10764
|
-
menuItemFactory:
|
|
10768
|
+
menuItemFactory: gu
|
|
10765
10769
|
},
|
|
10766
|
-
[
|
|
10770
|
+
[_t.id]: {
|
|
10767
10771
|
order: 7,
|
|
10768
|
-
menuItemFactory:
|
|
10772
|
+
menuItemFactory: hu
|
|
10769
10773
|
},
|
|
10770
10774
|
[mt.id]: {
|
|
10771
10775
|
order: 8,
|
|
10772
|
-
menuItemFactory:
|
|
10776
|
+
menuItemFactory: pu
|
|
10773
10777
|
},
|
|
10774
10778
|
[Et.id]: {
|
|
10775
10779
|
order: 9,
|
|
10776
|
-
menuItemFactory:
|
|
10780
|
+
menuItemFactory: Tu,
|
|
10777
10781
|
[Un.id]: {
|
|
10778
10782
|
order: 0,
|
|
10779
|
-
menuItemFactory:
|
|
10783
|
+
menuItemFactory: Ou
|
|
10780
10784
|
}
|
|
10781
10785
|
}
|
|
10782
10786
|
},
|
|
10783
10787
|
[Ys.LAYOUT]: {
|
|
10784
10788
|
[Qo.id]: {
|
|
10785
10789
|
order: 2,
|
|
10786
|
-
menuItemFactory:
|
|
10790
|
+
menuItemFactory: vu
|
|
10787
10791
|
},
|
|
10788
10792
|
[Uo.id]: {
|
|
10789
10793
|
order: 3,
|
|
10790
|
-
menuItemFactory:
|
|
10794
|
+
menuItemFactory: Cu
|
|
10791
10795
|
},
|
|
10792
10796
|
[Fo.id]: {
|
|
10793
10797
|
order: 4,
|
|
10794
|
-
menuItemFactory:
|
|
10798
|
+
menuItemFactory: Ru
|
|
10795
10799
|
},
|
|
10796
10800
|
[Ho.id]: {
|
|
10797
10801
|
order: 5,
|
|
10798
|
-
menuItemFactory:
|
|
10802
|
+
menuItemFactory: bu
|
|
10799
10803
|
},
|
|
10800
10804
|
[Po.id]: {
|
|
10801
10805
|
order: 6,
|
|
10802
|
-
menuItemFactory:
|
|
10806
|
+
menuItemFactory: yu
|
|
10803
10807
|
},
|
|
10804
10808
|
[On.id]: {
|
|
10805
10809
|
order: 7,
|
|
@@ -10815,24 +10819,24 @@ const hg = {
|
|
|
10815
10819
|
},
|
|
10816
10820
|
[Bs.id]: {
|
|
10817
10821
|
order: 10,
|
|
10818
|
-
menuItemFactory:
|
|
10822
|
+
menuItemFactory: mu
|
|
10819
10823
|
},
|
|
10820
10824
|
[ko.id]: {
|
|
10821
10825
|
order: 11,
|
|
10822
|
-
menuItemFactory:
|
|
10826
|
+
menuItemFactory: xu
|
|
10823
10827
|
},
|
|
10824
10828
|
[_s.id]: {
|
|
10825
10829
|
order: 12,
|
|
10826
|
-
menuItemFactory:
|
|
10830
|
+
menuItemFactory: Bu
|
|
10827
10831
|
}
|
|
10828
10832
|
},
|
|
10829
|
-
[
|
|
10833
|
+
[Ul.MEDIA]: {
|
|
10830
10834
|
[mc]: {
|
|
10831
10835
|
order: 2,
|
|
10832
|
-
menuItemFactory:
|
|
10836
|
+
menuItemFactory: Iu,
|
|
10833
10837
|
[Os.id]: {
|
|
10834
10838
|
order: 0,
|
|
10835
|
-
menuItemFactory:
|
|
10839
|
+
menuItemFactory: Su
|
|
10836
10840
|
}
|
|
10837
10841
|
}
|
|
10838
10842
|
},
|
|
@@ -10840,60 +10844,60 @@ const hg = {
|
|
|
10840
10844
|
[an.FORMAT]: {
|
|
10841
10845
|
[ro.name]: {
|
|
10842
10846
|
order: 0,
|
|
10843
|
-
menuItemFactory:
|
|
10847
|
+
menuItemFactory: Jh
|
|
10844
10848
|
},
|
|
10845
10849
|
[rs.id]: {
|
|
10846
10850
|
order: 1,
|
|
10847
|
-
menuItemFactory:
|
|
10851
|
+
menuItemFactory: eg
|
|
10848
10852
|
},
|
|
10849
10853
|
[is.id]: {
|
|
10850
10854
|
order: 2,
|
|
10851
|
-
menuItemFactory:
|
|
10855
|
+
menuItemFactory: tg
|
|
10852
10856
|
},
|
|
10853
10857
|
[Do.id]: {
|
|
10854
10858
|
order: 3,
|
|
10855
|
-
menuItemFactory:
|
|
10859
|
+
menuItemFactory: ng
|
|
10856
10860
|
}
|
|
10857
10861
|
},
|
|
10858
10862
|
[an.LAYOUT]: {
|
|
10859
10863
|
[Ds.id]: {
|
|
10860
10864
|
order: 0,
|
|
10861
|
-
menuItemFactory:
|
|
10865
|
+
menuItemFactory: $h
|
|
10862
10866
|
},
|
|
10863
10867
|
[vc]: {
|
|
10864
10868
|
order: 1,
|
|
10865
|
-
menuItemFactory:
|
|
10869
|
+
menuItemFactory: og,
|
|
10866
10870
|
[Rs.id]: {
|
|
10867
10871
|
order: 1,
|
|
10868
|
-
menuItemFactory:
|
|
10872
|
+
menuItemFactory: rg
|
|
10869
10873
|
},
|
|
10870
10874
|
[bs.id]: {
|
|
10871
10875
|
order: 2,
|
|
10872
|
-
menuItemFactory:
|
|
10876
|
+
menuItemFactory: sg
|
|
10873
10877
|
},
|
|
10874
10878
|
[ys.id]: {
|
|
10875
10879
|
order: 3,
|
|
10876
|
-
menuItemFactory:
|
|
10880
|
+
menuItemFactory: ig
|
|
10877
10881
|
},
|
|
10878
10882
|
[xs.id]: {
|
|
10879
10883
|
order: 4,
|
|
10880
|
-
menuItemFactory:
|
|
10884
|
+
menuItemFactory: ag
|
|
10881
10885
|
}
|
|
10882
10886
|
},
|
|
10883
10887
|
[Cc]: {
|
|
10884
10888
|
order: 2,
|
|
10885
|
-
menuItemFactory:
|
|
10889
|
+
menuItemFactory: cg,
|
|
10886
10890
|
[Is.id]: {
|
|
10887
10891
|
order: 1,
|
|
10888
|
-
menuItemFactory:
|
|
10892
|
+
menuItemFactory: lg
|
|
10889
10893
|
},
|
|
10890
10894
|
[Ss.id]: {
|
|
10891
10895
|
order: 2,
|
|
10892
|
-
menuItemFactory:
|
|
10896
|
+
menuItemFactory: dg
|
|
10893
10897
|
},
|
|
10894
10898
|
[Hn.id]: {
|
|
10895
10899
|
order: 3,
|
|
10896
|
-
menuItemFactory:
|
|
10900
|
+
menuItemFactory: Ag
|
|
10897
10901
|
}
|
|
10898
10902
|
}
|
|
10899
10903
|
}
|
|
@@ -10902,27 +10906,27 @@ const hg = {
|
|
|
10902
10906
|
[an.QUICK]: {
|
|
10903
10907
|
[us.id]: {
|
|
10904
10908
|
order: 0,
|
|
10905
|
-
menuItemFactory:
|
|
10909
|
+
menuItemFactory: _u
|
|
10906
10910
|
},
|
|
10907
10911
|
[hs.id]: {
|
|
10908
10912
|
order: 1,
|
|
10909
|
-
menuItemFactory:
|
|
10913
|
+
menuItemFactory: Du
|
|
10910
10914
|
},
|
|
10911
10915
|
[gs.id]: {
|
|
10912
10916
|
order: 2,
|
|
10913
|
-
menuItemFactory:
|
|
10917
|
+
menuItemFactory: wu
|
|
10914
10918
|
},
|
|
10915
10919
|
[fs.id]: {
|
|
10916
10920
|
order: 3,
|
|
10917
|
-
menuItemFactory:
|
|
10921
|
+
menuItemFactory: Pu
|
|
10918
10922
|
},
|
|
10919
10923
|
[ps.id]: {
|
|
10920
10924
|
order: 4,
|
|
10921
|
-
menuItemFactory:
|
|
10925
|
+
menuItemFactory: Nu
|
|
10922
10926
|
},
|
|
10923
10927
|
[io.id]: {
|
|
10924
10928
|
order: 5,
|
|
10925
|
-
menuItemFactory:
|
|
10929
|
+
menuItemFactory: Lu
|
|
10926
10930
|
},
|
|
10927
10931
|
[On.id]: {
|
|
10928
10932
|
order: 6,
|
|
@@ -10940,43 +10944,43 @@ const hg = {
|
|
|
10940
10944
|
[an.FORMAT]: {
|
|
10941
10945
|
[os.id]: {
|
|
10942
10946
|
order: 0,
|
|
10943
|
-
menuItemFactory:
|
|
10947
|
+
menuItemFactory: Qu
|
|
10944
10948
|
},
|
|
10945
10949
|
[ss.id]: {
|
|
10946
10950
|
order: 1,
|
|
10947
|
-
menuItemFactory:
|
|
10951
|
+
menuItemFactory: Uu
|
|
10948
10952
|
},
|
|
10949
10953
|
[es.id]: {
|
|
10950
10954
|
order: 2,
|
|
10951
|
-
menuItemFactory:
|
|
10955
|
+
menuItemFactory: Fu
|
|
10952
10956
|
}
|
|
10953
10957
|
},
|
|
10954
10958
|
[an.LAYOUT]: {
|
|
10955
10959
|
// title: 'rightClick.insertBellow',
|
|
10956
10960
|
[Ic]: {
|
|
10957
|
-
menuItemFactory:
|
|
10961
|
+
menuItemFactory: ju,
|
|
10958
10962
|
[ls.id]: {
|
|
10959
10963
|
order: 0,
|
|
10960
|
-
menuItemFactory:
|
|
10964
|
+
menuItemFactory: Hu
|
|
10961
10965
|
},
|
|
10962
10966
|
[ds.id]: {
|
|
10963
10967
|
order: 1,
|
|
10964
|
-
menuItemFactory:
|
|
10968
|
+
menuItemFactory: ku
|
|
10965
10969
|
},
|
|
10966
10970
|
[As.id]: {
|
|
10967
10971
|
order: 2,
|
|
10968
|
-
menuItemFactory:
|
|
10972
|
+
menuItemFactory: Vu
|
|
10969
10973
|
},
|
|
10970
10974
|
[as.id]: {
|
|
10971
10975
|
order: 3,
|
|
10972
|
-
menuItemFactory:
|
|
10976
|
+
menuItemFactory: Wu
|
|
10973
10977
|
}
|
|
10974
10978
|
}
|
|
10975
10979
|
}
|
|
10976
10980
|
}
|
|
10977
10981
|
};
|
|
10978
|
-
var
|
|
10979
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
10982
|
+
var hg = Object.getOwnPropertyDescriptor, gg = (n, e, t, o) => {
|
|
10983
|
+
for (var r = o > 1 ? void 0 : o ? hg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
10980
10984
|
(i = n[s]) && (r = i(r) || r);
|
|
10981
10985
|
return r;
|
|
10982
10986
|
}, st = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -10986,13 +10990,13 @@ let Ao = class extends me {
|
|
|
10986
10990
|
}
|
|
10987
10991
|
_initCustomComponents() {
|
|
10988
10992
|
[
|
|
10989
|
-
[fc,
|
|
10990
|
-
[gc,
|
|
10993
|
+
[fc, tu],
|
|
10994
|
+
[gc, $A],
|
|
10991
10995
|
["TodoListDoubleIcon", lc],
|
|
10992
|
-
["doc.paragraph.menu",
|
|
10996
|
+
["doc.paragraph.menu", ih],
|
|
10993
10997
|
["CutIcon", Xa],
|
|
10994
10998
|
["DeleteIcon", Za],
|
|
10995
|
-
[Rr,
|
|
10999
|
+
[Rr, ou],
|
|
10996
11000
|
["DocumentSettingIcon", Ja]
|
|
10997
11001
|
].forEach(([n, e]) => {
|
|
10998
11002
|
this.disposeWithMe(
|
|
@@ -11001,26 +11005,26 @@ let Ao = class extends me {
|
|
|
11001
11005
|
});
|
|
11002
11006
|
}
|
|
11003
11007
|
_initUiParts() {
|
|
11004
|
-
this.disposeWithMe(this._uiPartsService.registerComponent(Ks.FOOTER, () => qs(
|
|
11008
|
+
this.disposeWithMe(this._uiPartsService.registerComponent(Ks.FOOTER, () => qs(xh, this._injector))), this.disposeWithMe(this._uiPartsService.registerComponent(Ks.CONTENT, () => qs(Ph, this._injector)));
|
|
11005
11009
|
}
|
|
11006
11010
|
_initMenus() {
|
|
11007
|
-
this._menuManagerService.mergeMenu(
|
|
11011
|
+
this._menuManagerService.mergeMenu(ug);
|
|
11008
11012
|
}
|
|
11009
11013
|
_initShortCut() {
|
|
11010
11014
|
[
|
|
11015
|
+
dh,
|
|
11011
11016
|
Ah,
|
|
11012
11017
|
uh,
|
|
11013
11018
|
hh,
|
|
11014
11019
|
gh,
|
|
11015
11020
|
fh,
|
|
11016
|
-
ph,
|
|
11017
|
-
Ih,
|
|
11018
|
-
Sh,
|
|
11019
11021
|
Eh,
|
|
11022
|
+
Ih,
|
|
11020
11023
|
mh,
|
|
11024
|
+
ph,
|
|
11025
|
+
Sh,
|
|
11021
11026
|
vh,
|
|
11022
|
-
|
|
11023
|
-
lh
|
|
11027
|
+
ch
|
|
11024
11028
|
].forEach((n) => {
|
|
11025
11029
|
this.disposeWithMe(this._shortcutService.registerShortcut(n));
|
|
11026
11030
|
});
|
|
@@ -11043,19 +11047,19 @@ let Ao = class extends me {
|
|
|
11043
11047
|
);
|
|
11044
11048
|
}
|
|
11045
11049
|
};
|
|
11046
|
-
Ao =
|
|
11050
|
+
Ao = gg([
|
|
11047
11051
|
st(0, j(Dn)),
|
|
11048
11052
|
st(1, j(rn)),
|
|
11049
11053
|
st(2, T),
|
|
11050
11054
|
st(3, Oo),
|
|
11051
11055
|
st(4, da),
|
|
11052
|
-
st(5,
|
|
11056
|
+
st(5, Fl),
|
|
11053
11057
|
st(6, L),
|
|
11054
11058
|
st(7, To),
|
|
11055
11059
|
st(8, Vr)
|
|
11056
11060
|
], Ao);
|
|
11057
|
-
var
|
|
11058
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
11061
|
+
var fg = Object.getOwnPropertyDescriptor, pg = (n, e, t, o) => {
|
|
11062
|
+
for (var r = o > 1 ? void 0 : o ? fg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11059
11063
|
(i = n[s]) && (r = i(r) || r);
|
|
11060
11064
|
return r;
|
|
11061
11065
|
}, rr = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -11108,16 +11112,16 @@ let uo = class extends Ct {
|
|
|
11108
11112
|
e && this.scrollToNode(t);
|
|
11109
11113
|
}
|
|
11110
11114
|
};
|
|
11111
|
-
uo =
|
|
11115
|
+
uo = pg([
|
|
11112
11116
|
rr(1, j(Y)),
|
|
11113
11117
|
rr(2, Ge),
|
|
11114
11118
|
rr(3, j(de))
|
|
11115
11119
|
], uo);
|
|
11116
|
-
var
|
|
11117
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
11120
|
+
var mg = Object.getOwnPropertyDescriptor, Eg = (n, e, t, o) => {
|
|
11121
|
+
for (var r = o > 1 ? void 0 : o ? mg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11118
11122
|
(i = n[s]) && (r = i(r) || r);
|
|
11119
11123
|
return r;
|
|
11120
|
-
},
|
|
11124
|
+
}, zt = (n, e) => (t, o) => e(t, o, n);
|
|
11121
11125
|
let br = class extends Ct {
|
|
11122
11126
|
constructor(n, e, t, o, r, s, i) {
|
|
11123
11127
|
super(), this._context = n, this._commandService = e, this._docSelectionRenderService = t, this._docSkeletonManagerService = o, this._editorService = r, this._renderManagerService = s, this._univerInstanceService = i, this._addNewRender(), this._initRenderRefresh(), this._initCommandListener();
|
|
@@ -11156,7 +11160,7 @@ let br = class extends Ct {
|
|
|
11156
11160
|
t.onMouseWheel(a, s);
|
|
11157
11161
|
}), new lr(t), n.addLayer(
|
|
11158
11162
|
new zs(n, [], zo),
|
|
11159
|
-
new zs(n, [],
|
|
11163
|
+
new zs(n, [], id)
|
|
11160
11164
|
), this._addComponent();
|
|
11161
11165
|
const o = () => n.render();
|
|
11162
11166
|
this.disposeWithMe(this._context.activated$.subscribe((r) => {
|
|
@@ -11170,7 +11174,7 @@ let br = class extends Ct {
|
|
|
11170
11174
|
}, i = new hl($e.MAIN, void 0, s);
|
|
11171
11175
|
i.zIndex = Js;
|
|
11172
11176
|
const a = new gl($e.BACKGROUND, void 0, s);
|
|
11173
|
-
a.zIndex = Js, this._context.mainComponent = i, t.set($e.MAIN, i), t.set($e.BACKGROUND, a), n.addObjects([i], zo), n.addObjects([a],
|
|
11177
|
+
a.zIndex = Js, this._context.mainComponent = i, t.set($e.MAIN, i), t.set($e.BACKGROUND, a), n.addObjects([i], zo), n.addObjects([a], sd), this._editorService.getEditor(e.getUnitId()) == null && n.enableLayerCache(zo);
|
|
11174
11178
|
}
|
|
11175
11179
|
_initRenderRefresh() {
|
|
11176
11180
|
this._docSkeletonManagerService.currentSkeletonBefore$.pipe(ft(this.dispose$)).subscribe((n) => {
|
|
@@ -11210,7 +11214,7 @@ let br = class extends Ct {
|
|
|
11210
11214
|
const p = a[g];
|
|
11211
11215
|
let { pageWidth: m, pageHeight: I } = p;
|
|
11212
11216
|
if (A === Pe.MODERN) {
|
|
11213
|
-
const S =
|
|
11217
|
+
const S = Ig(p);
|
|
11214
11218
|
m = S.pageWidth, I = S.pageHeight;
|
|
11215
11219
|
}
|
|
11216
11220
|
s.pageLayoutType === Cn.VERTICAL ? (d += I, d += s.pageMarginTop, g === f - 1 && (d += s.pageMarginTop), c = Math.max(c, m)) : s.pageLayoutType === Cn.HORIZONTAL && (c += m, g !== f - 1 && (c += s.pageMarginLeft), d = Math.max(d, I));
|
|
@@ -11220,15 +11224,15 @@ let br = class extends Ct {
|
|
|
11220
11224
|
(!this._editorService.isEditor(o) || h != null && h.params.scrollBar) && t.resize(c, d);
|
|
11221
11225
|
}
|
|
11222
11226
|
};
|
|
11223
|
-
br =
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
|
|
11227
|
+
br = Eg([
|
|
11228
|
+
zt(1, T),
|
|
11229
|
+
zt(2, j(Re)),
|
|
11230
|
+
zt(3, j(de)),
|
|
11231
|
+
zt(4, Ge),
|
|
11232
|
+
zt(5, pe),
|
|
11233
|
+
zt(6, L)
|
|
11230
11234
|
], br);
|
|
11231
|
-
function
|
|
11235
|
+
function Ig(n) {
|
|
11232
11236
|
let { pageWidth: e, pageHeight: t } = n;
|
|
11233
11237
|
const { marginLeft: o, marginRight: r, marginTop: s, marginBottom: i, skeDrawings: a, skeTables: c } = n;
|
|
11234
11238
|
e === Number.POSITIVE_INFINITY && (e = n.width + o + r), t === Number.POSITIVE_INFINITY && (t = n.height + s + i);
|
|
@@ -11238,8 +11242,8 @@ function Sg(n) {
|
|
|
11238
11242
|
e = Math.max(e, d.left + d.width + o + r), t = Math.max(t, d.top + d.height + s + i);
|
|
11239
11243
|
return { pageWidth: e, pageHeight: t };
|
|
11240
11244
|
}
|
|
11241
|
-
var
|
|
11242
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
11245
|
+
var Sg = Object.getOwnPropertyDescriptor, vg = (n, e, t, o) => {
|
|
11246
|
+
for (var r = o > 1 ? void 0 : o ? Sg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11243
11247
|
(i = n[s]) && (r = i(r) || r);
|
|
11244
11248
|
return r;
|
|
11245
11249
|
}, sr = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -11282,16 +11286,16 @@ let yr = class {
|
|
|
11282
11286
|
return this._docContainer;
|
|
11283
11287
|
}
|
|
11284
11288
|
};
|
|
11285
|
-
yr =
|
|
11289
|
+
yr = vg([
|
|
11286
11290
|
sr(0, j(Ye)),
|
|
11287
11291
|
sr(1, j(Dn)),
|
|
11288
11292
|
sr(2, Vr)
|
|
11289
11293
|
], yr);
|
|
11290
|
-
var
|
|
11291
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
11294
|
+
var Cg = Object.getOwnPropertyDescriptor, Rg = (n, e, t, o) => {
|
|
11295
|
+
for (var r = o > 1 ? void 0 : o ? Cg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11292
11296
|
(i = n[s]) && (r = i(r) || r);
|
|
11293
11297
|
return r;
|
|
11294
|
-
},
|
|
11298
|
+
}, bg = (n, e) => (t, o) => e(t, o, n);
|
|
11295
11299
|
let ho = class extends Ct {
|
|
11296
11300
|
constructor(e) {
|
|
11297
11301
|
super();
|
|
@@ -11299,11 +11303,11 @@ let ho = class extends Ct {
|
|
|
11299
11303
|
this._injector = e, this._docContainerController = this._injector.createInstance(yr);
|
|
11300
11304
|
}
|
|
11301
11305
|
};
|
|
11302
|
-
ho =
|
|
11303
|
-
|
|
11306
|
+
ho = Rg([
|
|
11307
|
+
bg(0, j(Dn))
|
|
11304
11308
|
], ho);
|
|
11305
|
-
var
|
|
11306
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
11309
|
+
var yg = Object.getOwnPropertyDescriptor, xg = (n, e, t, o) => {
|
|
11310
|
+
for (var r = o > 1 ? void 0 : o ? yg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11307
11311
|
(i = n[s]) && (r = i(r) || r);
|
|
11308
11312
|
return r;
|
|
11309
11313
|
}, Qi = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -11314,7 +11318,7 @@ let go = class extends me {
|
|
|
11314
11318
|
_initListTabAutoFormat() {
|
|
11315
11319
|
this.disposeWithMe(
|
|
11316
11320
|
this._docAutoFormatService.registerAutoFormat({
|
|
11317
|
-
id:
|
|
11321
|
+
id: Jt.id,
|
|
11318
11322
|
match: (n) => {
|
|
11319
11323
|
var r;
|
|
11320
11324
|
const { selection: e, paragraphs: t, unit: o } = n;
|
|
@@ -11342,7 +11346,7 @@ let go = class extends me {
|
|
|
11342
11346
|
})
|
|
11343
11347
|
), this.disposeWithMe(
|
|
11344
11348
|
this._docAutoFormatService.registerAutoFormat({
|
|
11345
|
-
id:
|
|
11349
|
+
id: Jt.id,
|
|
11346
11350
|
match: (n) => {
|
|
11347
11351
|
const { selection: e, unit: t } = n, { startNodePosition: o, endNodePosition: r } = e, s = this._renderManagerService.getRenderById(t.getUnitId()), i = s == null ? void 0 : s.with(de).getSkeleton();
|
|
11348
11352
|
return i == null ? !1 : !!(o && r && Ha(i, o, r) || o && !r && o.path.indexOf("cells") > -1);
|
|
@@ -11439,18 +11443,18 @@ let go = class extends me {
|
|
|
11439
11443
|
);
|
|
11440
11444
|
}
|
|
11441
11445
|
};
|
|
11442
|
-
go =
|
|
11443
|
-
Qi(0, j(
|
|
11446
|
+
go = xg([
|
|
11447
|
+
Qi(0, j(wt)),
|
|
11444
11448
|
Qi(1, pe)
|
|
11445
11449
|
], go);
|
|
11446
|
-
function
|
|
11450
|
+
function Og(n) {
|
|
11447
11451
|
return n.rows[0].cells[0].sections[0].columns[0].lines[0];
|
|
11448
11452
|
}
|
|
11449
|
-
function
|
|
11453
|
+
function Tg(n) {
|
|
11450
11454
|
const e = n.rows[n.rows.length - 1], t = e.cells[e.cells.length - 1];
|
|
11451
11455
|
return fl(t);
|
|
11452
11456
|
}
|
|
11453
|
-
function
|
|
11457
|
+
function Bg(n, e) {
|
|
11454
11458
|
const { ed: t } = n, { skeTables: o } = e;
|
|
11455
11459
|
let r = null;
|
|
11456
11460
|
for (const s of o.values())
|
|
@@ -11531,7 +11535,7 @@ function yc(n) {
|
|
|
11531
11535
|
return Rc(a) ? yc(a) : a;
|
|
11532
11536
|
}
|
|
11533
11537
|
}
|
|
11534
|
-
function
|
|
11538
|
+
function Mg(n, e) {
|
|
11535
11539
|
const { st: t } = n, { skeTables: o } = e;
|
|
11536
11540
|
let r = null;
|
|
11537
11541
|
for (const s of o.values())
|
|
@@ -11541,15 +11545,15 @@ function _g(n, e) {
|
|
|
11541
11545
|
}
|
|
11542
11546
|
return r;
|
|
11543
11547
|
}
|
|
11544
|
-
function
|
|
11548
|
+
function _g(n) {
|
|
11545
11549
|
return n.sections[0].columns[0].lines[0];
|
|
11546
11550
|
}
|
|
11547
|
-
function
|
|
11551
|
+
function Dg(n) {
|
|
11548
11552
|
const e = ml(n);
|
|
11549
11553
|
return e.lines[e.lines.length - 1];
|
|
11550
11554
|
}
|
|
11551
|
-
var
|
|
11552
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
11555
|
+
var wg = Object.getOwnPropertyDescriptor, Pg = (n, e, t, o) => {
|
|
11556
|
+
for (var r = o > 1 ? void 0 : o ? wg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11553
11557
|
(i = n[s]) && (r = i(r) || r);
|
|
11554
11558
|
return r;
|
|
11555
11559
|
}, jn = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -11784,16 +11788,16 @@ let fo = class extends me {
|
|
|
11784
11788
|
}
|
|
11785
11789
|
if (t === !0) {
|
|
11786
11790
|
l = i.lines[d + 1];
|
|
11787
|
-
const x =
|
|
11791
|
+
const x = Bg(s, c);
|
|
11788
11792
|
if (x) {
|
|
11789
|
-
const M =
|
|
11793
|
+
const M = Og(x);
|
|
11790
11794
|
M && (l = M);
|
|
11791
11795
|
}
|
|
11792
11796
|
} else {
|
|
11793
11797
|
l = i.lines[d - 1];
|
|
11794
|
-
const x =
|
|
11798
|
+
const x = Mg(s, c);
|
|
11795
11799
|
if (x) {
|
|
11796
|
-
const M =
|
|
11800
|
+
const M = Tg(x);
|
|
11797
11801
|
M && (l = M);
|
|
11798
11802
|
}
|
|
11799
11803
|
}
|
|
@@ -11851,10 +11855,10 @@ let fo = class extends me {
|
|
|
11851
11855
|
});
|
|
11852
11856
|
}
|
|
11853
11857
|
_getDocObject() {
|
|
11854
|
-
return
|
|
11858
|
+
return ad(this._univerInstanceService, this._renderManagerService);
|
|
11855
11859
|
}
|
|
11856
11860
|
};
|
|
11857
|
-
fo =
|
|
11861
|
+
fo = Pg([
|
|
11858
11862
|
jn(0, L),
|
|
11859
11863
|
jn(1, pe),
|
|
11860
11864
|
jn(2, j(Y)),
|
|
@@ -11866,7 +11870,7 @@ function Fi(n, e) {
|
|
|
11866
11870
|
if (e === !0) {
|
|
11867
11871
|
const s = bc(n);
|
|
11868
11872
|
if (s)
|
|
11869
|
-
t =
|
|
11873
|
+
t = _g(s);
|
|
11870
11874
|
else {
|
|
11871
11875
|
const i = (o = n.parent) == null ? void 0 : o.parent, { lineAfterTable: a } = Ui(i);
|
|
11872
11876
|
a && (t = a);
|
|
@@ -11874,7 +11878,7 @@ function Fi(n, e) {
|
|
|
11874
11878
|
} else {
|
|
11875
11879
|
const s = yc(n);
|
|
11876
11880
|
if (s)
|
|
11877
|
-
t =
|
|
11881
|
+
t = Dg(s);
|
|
11878
11882
|
else {
|
|
11879
11883
|
const i = (r = n.parent) == null ? void 0 : r.parent, { lineBeforeTable: a } = Ui(i);
|
|
11880
11884
|
a && (t = a);
|
|
@@ -11882,7 +11886,7 @@ function Fi(n, e) {
|
|
|
11882
11886
|
}
|
|
11883
11887
|
return t;
|
|
11884
11888
|
}
|
|
11885
|
-
const
|
|
11889
|
+
const Ng = ({
|
|
11886
11890
|
handleRowColChange: n,
|
|
11887
11891
|
tableCreateParams: e
|
|
11888
11892
|
}) => {
|
|
@@ -11927,8 +11931,8 @@ const Lg = ({
|
|
|
11927
11931
|
] })
|
|
11928
11932
|
] });
|
|
11929
11933
|
};
|
|
11930
|
-
var
|
|
11931
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
11934
|
+
var Lg = Object.getOwnPropertyDescriptor, Qg = (n, e, t, o) => {
|
|
11935
|
+
for (var r = o > 1 ? void 0 : o ? Lg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11932
11936
|
(i = n[s]) && (r = i(r) || r);
|
|
11933
11937
|
return r;
|
|
11934
11938
|
}, Hi = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -11946,17 +11950,17 @@ let po = class extends me {
|
|
|
11946
11950
|
}
|
|
11947
11951
|
_initCustomComponents() {
|
|
11948
11952
|
const n = this._componentManager;
|
|
11949
|
-
this.disposeWithMe(n.register(Ga,
|
|
11953
|
+
this.disposeWithMe(n.register(Ga, Ng));
|
|
11950
11954
|
}
|
|
11951
11955
|
_init() {
|
|
11952
11956
|
}
|
|
11953
11957
|
};
|
|
11954
|
-
po =
|
|
11958
|
+
po = Qg([
|
|
11955
11959
|
Hi(0, T),
|
|
11956
11960
|
Hi(1, j(rn))
|
|
11957
11961
|
], po);
|
|
11958
|
-
var
|
|
11959
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
11962
|
+
var Ug = Object.getOwnPropertyDescriptor, Fg = (n, e, t, o) => {
|
|
11963
|
+
for (var r = o > 1 ? void 0 : o ? Ug(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11960
11964
|
(i = n[s]) && (r = i(r) || r);
|
|
11961
11965
|
return r;
|
|
11962
11966
|
}, zn = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -11977,7 +11981,7 @@ let xr = class extends me {
|
|
|
11977
11981
|
_initHoverCursor() {
|
|
11978
11982
|
this.disposeWithMe(
|
|
11979
11983
|
this._docEventManagerService.hoverBullet$.subscribe((n) => {
|
|
11980
|
-
n ? this._context.mainComponent.setCursor(
|
|
11984
|
+
n ? this._context.mainComponent.setCursor(Dt.POINTER) : this._context.mainComponent.setCursor(Dt.TEXT);
|
|
11981
11985
|
})
|
|
11982
11986
|
);
|
|
11983
11987
|
}
|
|
@@ -11987,14 +11991,14 @@ let xr = class extends me {
|
|
|
11987
11991
|
return r.clone().invert().applyPoint(s);
|
|
11988
11992
|
}
|
|
11989
11993
|
};
|
|
11990
|
-
xr =
|
|
11994
|
+
xr = Fg([
|
|
11991
11995
|
zn(1, j(de)),
|
|
11992
11996
|
zn(2, T),
|
|
11993
|
-
zn(3, j(
|
|
11997
|
+
zn(3, j(Pt)),
|
|
11994
11998
|
zn(4, j(Y))
|
|
11995
11999
|
], xr);
|
|
11996
|
-
var
|
|
11997
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
12000
|
+
var Hg = Object.getOwnPropertyDescriptor, kg = (n, e, t, o) => {
|
|
12001
|
+
for (var r = o > 1 ? void 0 : o ? Hg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
11998
12002
|
(i = n[s]) && (r = i(r) || r);
|
|
11999
12003
|
return r;
|
|
12000
12004
|
}, An = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -12014,24 +12018,24 @@ let mo = class extends Ct {
|
|
|
12014
12018
|
e.event.preventDefault();
|
|
12015
12019
|
const t = e.event;
|
|
12016
12020
|
let o = (a = t.clipboardData) == null ? void 0 : a.getData(sa);
|
|
12017
|
-
const r = (c = t.clipboardData) == null ? void 0 : c.getData(ia), s = [...((d = t.clipboardData) == null ? void 0 : d.items) || []].filter((l) =>
|
|
12021
|
+
const r = (c = t.clipboardData) == null ? void 0 : c.getData(ia), s = [...((d = t.clipboardData) == null ? void 0 : d.items) || []].filter((l) => Hl.has(l.type)).map((l) => l.getAsFile()).filter((l) => !!l);
|
|
12018
12022
|
this._editorService.getEditor(this._context.unitId) && (o != null ? o : "").indexOf("</table>") > -1 && (o = ""), this._docClipboardService.legacyPaste({ html: o, text: r, files: s });
|
|
12019
12023
|
});
|
|
12020
12024
|
}
|
|
12021
12025
|
};
|
|
12022
|
-
mo =
|
|
12026
|
+
mo = kg([
|
|
12023
12027
|
An(1, T),
|
|
12024
|
-
An(2,
|
|
12028
|
+
An(2, Lt),
|
|
12025
12029
|
An(3, j(Re)),
|
|
12026
12030
|
An(4, Fr),
|
|
12027
12031
|
An(5, Ge)
|
|
12028
12032
|
], mo);
|
|
12029
|
-
var
|
|
12030
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
12033
|
+
var Vg = Object.getOwnPropertyDescriptor, Wg = (n, e, t, o) => {
|
|
12034
|
+
for (var r = o > 1 ? void 0 : o ? Vg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
12031
12035
|
(i = n[s]) && (r = i(r) || r);
|
|
12032
12036
|
return r;
|
|
12033
12037
|
}, ki = (n, e) => (t, o) => e(t, o, n);
|
|
12034
|
-
const
|
|
12038
|
+
const jg = [
|
|
12035
12039
|
qi,
|
|
12036
12040
|
Gc,
|
|
12037
12041
|
bo,
|
|
@@ -12039,7 +12043,7 @@ const zg = [
|
|
|
12039
12043
|
];
|
|
12040
12044
|
let Or = class extends me {
|
|
12041
12045
|
constructor(n, e, t) {
|
|
12042
|
-
super(), this._context = n, this._contextMenuService = e, this._commandService = t,
|
|
12046
|
+
super(), this._context = n, this._contextMenuService = e, this._commandService = t, jg.includes(this._context.unitId) || (this._initPointerDown(), this._initEditChange());
|
|
12043
12047
|
}
|
|
12044
12048
|
_initPointerDown() {
|
|
12045
12049
|
var t, o;
|
|
@@ -12056,15 +12060,15 @@ let Or = class extends me {
|
|
|
12056
12060
|
);
|
|
12057
12061
|
}
|
|
12058
12062
|
};
|
|
12059
|
-
Or =
|
|
12060
|
-
ki(1,
|
|
12063
|
+
Or = Wg([
|
|
12064
|
+
ki(1, kl),
|
|
12061
12065
|
ki(2, T)
|
|
12062
12066
|
], Or);
|
|
12063
|
-
var
|
|
12064
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
12067
|
+
var zg = Object.getOwnPropertyDescriptor, Gg = (n, e, t, o) => {
|
|
12068
|
+
for (var r = o > 1 ? void 0 : o ? zg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
12065
12069
|
(i = n[s]) && (r = i(r) || r);
|
|
12066
12070
|
return r;
|
|
12067
|
-
},
|
|
12071
|
+
}, Gt = (n, e) => (t, o) => e(t, o, n);
|
|
12068
12072
|
let Eo = class extends me {
|
|
12069
12073
|
constructor(e, t, o, r, s, i, a) {
|
|
12070
12074
|
super();
|
|
@@ -12157,16 +12161,16 @@ let Eo = class extends me {
|
|
|
12157
12161
|
);
|
|
12158
12162
|
}
|
|
12159
12163
|
};
|
|
12160
|
-
Eo =
|
|
12161
|
-
|
|
12162
|
-
|
|
12163
|
-
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12164
|
+
Eo = Gg([
|
|
12165
|
+
Gt(1, L),
|
|
12166
|
+
Gt(2, Ge),
|
|
12167
|
+
Gt(3, T),
|
|
12168
|
+
Gt(4, j(Re)),
|
|
12169
|
+
Gt(5, j(de)),
|
|
12170
|
+
Gt(6, pe)
|
|
12167
12171
|
], Eo);
|
|
12168
|
-
var
|
|
12169
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
12172
|
+
var Yg = Object.getOwnPropertyDescriptor, Kg = (n, e, t, o) => {
|
|
12173
|
+
for (var r = o > 1 ? void 0 : o ? Yg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
12170
12174
|
(i = n[s]) && (r = i(r) || r);
|
|
12171
12175
|
return r;
|
|
12172
12176
|
}, Gn = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -12225,14 +12229,14 @@ let Tr = class extends me {
|
|
|
12225
12229
|
this._previousIMEContent = "", this._isCompositionStart = !0, this._docImeInputManagerService.clearUndoRedoMutationParamsCache(), this._docImeInputManagerService.setActiveRange(null);
|
|
12226
12230
|
}
|
|
12227
12231
|
};
|
|
12228
|
-
Tr =
|
|
12232
|
+
Tr = Kg([
|
|
12229
12233
|
Gn(1, j(Re)),
|
|
12230
12234
|
Gn(2, j(No)),
|
|
12231
12235
|
Gn(3, j(de)),
|
|
12232
12236
|
Gn(4, T)
|
|
12233
12237
|
], Tr);
|
|
12234
|
-
var
|
|
12235
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
12238
|
+
var qg = Object.getOwnPropertyDescriptor, Xg = (n, e, t, o) => {
|
|
12239
|
+
for (var r = o > 1 ? void 0 : o ? qg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
12236
12240
|
(i = n[s]) && (r = i(r) || r);
|
|
12237
12241
|
return r;
|
|
12238
12242
|
}, Yn = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -12286,7 +12290,7 @@ let Br = class extends me {
|
|
|
12286
12290
|
});
|
|
12287
12291
|
}
|
|
12288
12292
|
};
|
|
12289
|
-
Br =
|
|
12293
|
+
Br = Xg([
|
|
12290
12294
|
Yn(1, j(Re)),
|
|
12291
12295
|
Yn(2, j(de)),
|
|
12292
12296
|
Yn(3, T),
|
|
@@ -12310,8 +12314,8 @@ class Ps extends me {
|
|
|
12310
12314
|
}), this;
|
|
12311
12315
|
}
|
|
12312
12316
|
}
|
|
12313
|
-
var
|
|
12314
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
12317
|
+
var Zg = Object.getOwnPropertyDescriptor, Jg = (n, e, t, o) => {
|
|
12318
|
+
for (var r = o > 1 ? void 0 : o ? Zg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
12315
12319
|
(i = n[s]) && (r = i(r) || r);
|
|
12316
12320
|
return r;
|
|
12317
12321
|
}, Vi = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -12326,22 +12330,22 @@ let Mr = class extends me {
|
|
|
12326
12330
|
this.disposeWithMe(
|
|
12327
12331
|
Mt(this._context.engine.onTransformChange$).pipe(
|
|
12328
12332
|
oo((n) => n.type === na.resize),
|
|
12329
|
-
Rn(0,
|
|
12333
|
+
Rn(0, Gl)
|
|
12330
12334
|
).subscribe(() => {
|
|
12331
12335
|
this._docPageLayoutService.calculatePagePosition(), this._textSelectionManagerService.refreshSelection();
|
|
12332
12336
|
})
|
|
12333
12337
|
);
|
|
12334
12338
|
}
|
|
12335
12339
|
};
|
|
12336
|
-
Mr =
|
|
12340
|
+
Mr = Jg([
|
|
12337
12341
|
Vi(1, j(Ps)),
|
|
12338
12342
|
Vi(2, j(Y))
|
|
12339
12343
|
], Mr);
|
|
12340
|
-
var
|
|
12341
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
12344
|
+
var $g = Object.getOwnPropertyDescriptor, ef = (n, e, t, o) => {
|
|
12345
|
+
for (var r = o > 1 ? void 0 : o ? $g(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
12342
12346
|
(i = n[s]) && (r = i(r) || r);
|
|
12343
12347
|
return r;
|
|
12344
|
-
},
|
|
12348
|
+
}, Yt = (n, e) => (t, o) => e(t, o, n);
|
|
12345
12349
|
let _r = class extends me {
|
|
12346
12350
|
constructor(e, t, o, r, s, i, a) {
|
|
12347
12351
|
super();
|
|
@@ -12379,9 +12383,9 @@ let _r = class extends me {
|
|
|
12379
12383
|
_initialMain(e) {
|
|
12380
12384
|
const t = pt(this._context), { document: o, scene: r } = t;
|
|
12381
12385
|
this.disposeWithMe(o.onPointerEnter$.subscribeEvent(() => {
|
|
12382
|
-
this._isEditorReadOnly(e) || (o.cursor =
|
|
12386
|
+
this._isEditorReadOnly(e) || (o.cursor = Dt.TEXT);
|
|
12383
12387
|
})), this.disposeWithMe(o.onPointerLeave$.subscribeEvent(() => {
|
|
12384
|
-
o.cursor =
|
|
12388
|
+
o.cursor = Dt.DEFAULT, r.resetCursor();
|
|
12385
12389
|
})), this.disposeWithMe(o.onPointerDown$.subscribeEvent((s, i) => {
|
|
12386
12390
|
if (this._isEditorReadOnly(e))
|
|
12387
12391
|
return;
|
|
@@ -12463,16 +12467,16 @@ let _r = class extends me {
|
|
|
12463
12467
|
}));
|
|
12464
12468
|
}
|
|
12465
12469
|
};
|
|
12466
|
-
_r =
|
|
12467
|
-
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
|
|
12470
|
+
_r = ef([
|
|
12471
|
+
Yt(1, T),
|
|
12472
|
+
Yt(2, Ge),
|
|
12473
|
+
Yt(3, L),
|
|
12474
|
+
Yt(4, j(Re)),
|
|
12475
|
+
Yt(5, j(de)),
|
|
12476
|
+
Yt(6, j(Y))
|
|
12473
12477
|
], _r);
|
|
12474
|
-
var
|
|
12475
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
12478
|
+
var tf = Object.getOwnPropertyDescriptor, nf = (n, e, t, o) => {
|
|
12479
|
+
for (var r = o > 1 ? void 0 : o ? tf(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
12476
12480
|
(i = n[s]) && (r = i(r) || r);
|
|
12477
12481
|
return r;
|
|
12478
12482
|
}, ht = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -12562,7 +12566,7 @@ let Dr = class extends me {
|
|
|
12562
12566
|
);
|
|
12563
12567
|
}
|
|
12564
12568
|
};
|
|
12565
|
-
Dr =
|
|
12569
|
+
Dr = nf([
|
|
12566
12570
|
ht(1, Fr),
|
|
12567
12571
|
ht(2, j(de)),
|
|
12568
12572
|
ht(3, L),
|
|
@@ -12572,14 +12576,14 @@ Dr = of([
|
|
|
12572
12576
|
ht(7, j(Ps)),
|
|
12573
12577
|
ht(8, pe)
|
|
12574
12578
|
], Dr);
|
|
12575
|
-
const
|
|
12576
|
-
class
|
|
12579
|
+
const of = Zi("PRINTING_COMPONENT_COLLECT"), rf = Zi("PRINTING_DOM_COLLECT");
|
|
12580
|
+
class sf extends me {
|
|
12577
12581
|
constructor() {
|
|
12578
12582
|
super();
|
|
12579
12583
|
O(this, "_printComponentMap", /* @__PURE__ */ new Map());
|
|
12580
12584
|
O(this, "interceptor", new Kc({
|
|
12581
|
-
PRINTING_COMPONENT_COLLECT:
|
|
12582
|
-
PRINTING_DOM_COLLECT:
|
|
12585
|
+
PRINTING_COMPONENT_COLLECT: of,
|
|
12586
|
+
PRINTING_DOM_COLLECT: rf
|
|
12583
12587
|
}));
|
|
12584
12588
|
this.disposeWithMe(this.interceptor.intercept(this.interceptor.getInterceptPoints().PRINTING_COMPONENT_COLLECT, {
|
|
12585
12589
|
priority: -1,
|
|
@@ -12596,8 +12600,8 @@ class af extends me {
|
|
|
12596
12600
|
return this._printComponentMap.get(t);
|
|
12597
12601
|
}
|
|
12598
12602
|
}
|
|
12599
|
-
var
|
|
12600
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
12603
|
+
var af = Object.getOwnPropertyDescriptor, cf = (n, e, t, o) => {
|
|
12604
|
+
for (var r = o > 1 ? void 0 : o ? af(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
12601
12605
|
(i = n[s]) && (r = i(r) || r);
|
|
12602
12606
|
return r;
|
|
12603
12607
|
}, un = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -12721,15 +12725,15 @@ let Io = class extends Ct {
|
|
|
12721
12725
|
t.length = 0, this._docStateChange$.next(u);
|
|
12722
12726
|
}
|
|
12723
12727
|
};
|
|
12724
|
-
Io =
|
|
12728
|
+
Io = cf([
|
|
12725
12729
|
un(0, j(yo)),
|
|
12726
12730
|
un(1, T),
|
|
12727
12731
|
un(2, L),
|
|
12728
12732
|
un(3, j(el)),
|
|
12729
12733
|
un(4, pe)
|
|
12730
12734
|
], Io);
|
|
12731
|
-
var
|
|
12732
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
12735
|
+
var lf = Object.getOwnPropertyDescriptor, df = (n, e, t, o) => {
|
|
12736
|
+
for (var r = o > 1 ? void 0 : o ? lf(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
12733
12737
|
(i = n[s]) && (r = i(r) || r);
|
|
12734
12738
|
return r;
|
|
12735
12739
|
}, ji = (n, e) => (t, o) => e(t, o, n);
|
|
@@ -12756,88 +12760,88 @@ let So = class extends Ct {
|
|
|
12756
12760
|
this._renderManagerService.removeRender(e);
|
|
12757
12761
|
}
|
|
12758
12762
|
};
|
|
12759
|
-
So =
|
|
12763
|
+
So = df([
|
|
12760
12764
|
ji(0, L),
|
|
12761
12765
|
ji(1, pe)
|
|
12762
12766
|
], So);
|
|
12763
|
-
const
|
|
12767
|
+
const Af = {
|
|
12764
12768
|
id: bn.id,
|
|
12765
|
-
preconditions:
|
|
12769
|
+
preconditions: ah,
|
|
12766
12770
|
binding: q.ENTER
|
|
12767
|
-
},
|
|
12771
|
+
}, uf = {
|
|
12768
12772
|
id: Do.id,
|
|
12769
12773
|
preconditions: Se,
|
|
12770
12774
|
binding: q.BACKSPACE
|
|
12771
|
-
},
|
|
12775
|
+
}, hf = {
|
|
12772
12776
|
id: ba.id,
|
|
12773
12777
|
preconditions: Se,
|
|
12774
12778
|
binding: q.DELETE
|
|
12775
|
-
},
|
|
12779
|
+
}, gf = {
|
|
12776
12780
|
id: St.id,
|
|
12777
12781
|
binding: q.ARROW_UP,
|
|
12778
12782
|
preconditions: Se,
|
|
12779
12783
|
staticParameters: {
|
|
12780
12784
|
direction: le.UP
|
|
12781
12785
|
}
|
|
12782
|
-
},
|
|
12786
|
+
}, ff = {
|
|
12783
12787
|
id: St.id,
|
|
12784
12788
|
binding: q.ARROW_DOWN,
|
|
12785
12789
|
preconditions: Se,
|
|
12786
12790
|
staticParameters: {
|
|
12787
12791
|
direction: le.DOWN
|
|
12788
12792
|
}
|
|
12789
|
-
},
|
|
12793
|
+
}, pf = {
|
|
12790
12794
|
id: St.id,
|
|
12791
12795
|
binding: q.ARROW_LEFT,
|
|
12792
12796
|
preconditions: Se,
|
|
12793
12797
|
staticParameters: {
|
|
12794
12798
|
direction: le.LEFT
|
|
12795
12799
|
}
|
|
12796
|
-
},
|
|
12800
|
+
}, mf = {
|
|
12797
12801
|
id: St.id,
|
|
12798
12802
|
binding: q.ARROW_RIGHT,
|
|
12799
12803
|
preconditions: Se,
|
|
12800
12804
|
staticParameters: {
|
|
12801
12805
|
direction: le.RIGHT
|
|
12802
12806
|
}
|
|
12803
|
-
},
|
|
12807
|
+
}, Ef = {
|
|
12804
12808
|
id: vt.id,
|
|
12805
12809
|
binding: q.ARROW_UP | te.SHIFT,
|
|
12806
12810
|
preconditions: Se,
|
|
12807
12811
|
staticParameters: {
|
|
12808
12812
|
direction: le.UP
|
|
12809
12813
|
}
|
|
12810
|
-
},
|
|
12814
|
+
}, If = {
|
|
12811
12815
|
id: vt.id,
|
|
12812
12816
|
binding: q.ARROW_DOWN | te.SHIFT,
|
|
12813
12817
|
preconditions: Se,
|
|
12814
12818
|
staticParameters: {
|
|
12815
12819
|
direction: le.DOWN
|
|
12816
12820
|
}
|
|
12817
|
-
},
|
|
12821
|
+
}, Sf = {
|
|
12818
12822
|
id: vt.id,
|
|
12819
12823
|
binding: q.ARROW_LEFT | te.SHIFT,
|
|
12820
12824
|
preconditions: Se,
|
|
12821
12825
|
staticParameters: {
|
|
12822
12826
|
direction: le.LEFT
|
|
12823
12827
|
}
|
|
12824
|
-
},
|
|
12828
|
+
}, vf = {
|
|
12825
12829
|
id: vt.id,
|
|
12826
12830
|
binding: q.ARROW_RIGHT | te.SHIFT,
|
|
12827
12831
|
preconditions: Se,
|
|
12828
12832
|
staticParameters: {
|
|
12829
12833
|
direction: le.RIGHT
|
|
12830
12834
|
}
|
|
12831
|
-
},
|
|
12835
|
+
}, Cf = {
|
|
12832
12836
|
id: Oa.id,
|
|
12833
12837
|
binding: q.A | te.CTRL_COMMAND,
|
|
12834
12838
|
preconditions: (n) => n.getContextValue(Hr) && (n.getContextValue(_n) || n.getContextValue(eo))
|
|
12835
12839
|
};
|
|
12836
|
-
var
|
|
12837
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
12840
|
+
var Rf = Object.defineProperty, bf = Object.getOwnPropertyDescriptor, yf = (n, e, t) => e in n ? Rf(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, xf = (n, e, t, o) => {
|
|
12841
|
+
for (var r = o > 1 ? void 0 : o ? bf(e, t) : e, s = n.length - 1, i; s >= 0; s--)
|
|
12838
12842
|
(i = n[s]) && (r = i(r) || r);
|
|
12839
12843
|
return r;
|
|
12840
|
-
}, hn = (n, e) => (t, o) => e(t, o, n),
|
|
12844
|
+
}, hn = (n, e) => (t, o) => e(t, o, n), Of = (n, e, t) => yf(n, e + "", t);
|
|
12841
12845
|
let wr = class extends Xc {
|
|
12842
12846
|
// static override type = UniverInstanceType.UNIVER_DOC;
|
|
12843
12847
|
constructor(n = Di, e, t, o, r, s) {
|
|
@@ -12871,14 +12875,14 @@ let wr = class extends Xc {
|
|
|
12871
12875
|
[
|
|
12872
12876
|
Do,
|
|
12873
12877
|
ba,
|
|
12874
|
-
Lt,
|
|
12875
12878
|
Qt,
|
|
12876
12879
|
Ut,
|
|
12877
12880
|
Ft,
|
|
12878
|
-
bt,
|
|
12879
12881
|
Ht,
|
|
12882
|
+
bt,
|
|
12883
|
+
kt,
|
|
12880
12884
|
ct,
|
|
12881
|
-
|
|
12885
|
+
_t,
|
|
12882
12886
|
mt,
|
|
12883
12887
|
Un,
|
|
12884
12888
|
Et,
|
|
@@ -12904,7 +12908,7 @@ let wr = class extends Xc {
|
|
|
12904
12908
|
ja,
|
|
12905
12909
|
Rs,
|
|
12906
12910
|
bs,
|
|
12907
|
-
|
|
12911
|
+
IA,
|
|
12908
12912
|
ys,
|
|
12909
12913
|
xs,
|
|
12910
12914
|
Is,
|
|
@@ -12912,7 +12916,7 @@ let wr = class extends Xc {
|
|
|
12912
12916
|
Hn,
|
|
12913
12917
|
Ms,
|
|
12914
12918
|
za,
|
|
12915
|
-
|
|
12919
|
+
Jt,
|
|
12916
12920
|
Mo,
|
|
12917
12921
|
bn,
|
|
12918
12922
|
gr,
|
|
@@ -12924,18 +12928,18 @@ let wr = class extends Xc {
|
|
|
12924
12928
|
ko,
|
|
12925
12929
|
rt,
|
|
12926
12930
|
Sa,
|
|
12927
|
-
|
|
12928
|
-
|
|
12931
|
+
$t,
|
|
12932
|
+
Kd,
|
|
12929
12933
|
_a,
|
|
12930
|
-
|
|
12934
|
+
qd,
|
|
12931
12935
|
Xn,
|
|
12932
12936
|
Oa,
|
|
12933
12937
|
Ds,
|
|
12934
12938
|
St,
|
|
12935
12939
|
vt,
|
|
12936
|
-
|
|
12940
|
+
Zd,
|
|
12937
12941
|
wa,
|
|
12938
|
-
|
|
12942
|
+
Jd,
|
|
12939
12943
|
Xe,
|
|
12940
12944
|
La,
|
|
12941
12945
|
es,
|
|
@@ -12961,26 +12965,26 @@ let wr = class extends Xc {
|
|
|
12961
12965
|
}
|
|
12962
12966
|
_initializeShortcut() {
|
|
12963
12967
|
[
|
|
12968
|
+
gf,
|
|
12964
12969
|
ff,
|
|
12970
|
+
mf,
|
|
12965
12971
|
pf,
|
|
12966
12972
|
Ef,
|
|
12967
|
-
mf,
|
|
12968
12973
|
If,
|
|
12969
12974
|
Sf,
|
|
12970
12975
|
vf,
|
|
12971
12976
|
Cf,
|
|
12972
|
-
Rf,
|
|
12973
|
-
hf,
|
|
12974
|
-
gf,
|
|
12975
12977
|
uf,
|
|
12976
|
-
|
|
12978
|
+
hf,
|
|
12979
|
+
Af,
|
|
12980
|
+
lh
|
|
12977
12981
|
].forEach((n) => {
|
|
12978
12982
|
this._injector.get(To).registerShortcut(n);
|
|
12979
12983
|
});
|
|
12980
12984
|
}
|
|
12981
12985
|
_initDependencies(n) {
|
|
12982
12986
|
Jc([
|
|
12983
|
-
[
|
|
12987
|
+
[sf],
|
|
12984
12988
|
[mo],
|
|
12985
12989
|
[Eo],
|
|
12986
12990
|
[Ao],
|
|
@@ -12990,11 +12994,11 @@ let wr = class extends Xc {
|
|
|
12990
12994
|
[ho],
|
|
12991
12995
|
[tn],
|
|
12992
12996
|
[Ge, { useClass: Sr }],
|
|
12993
|
-
[
|
|
12997
|
+
[Lt, { useClass: ur }],
|
|
12994
12998
|
[Bn],
|
|
12995
12999
|
[So],
|
|
12996
13000
|
[Io],
|
|
12997
|
-
[
|
|
13001
|
+
[wt],
|
|
12998
13002
|
[at]
|
|
12999
13003
|
], this._config.override).forEach((t) => n.add(t));
|
|
13000
13004
|
}
|
|
@@ -13027,7 +13031,7 @@ let wr = class extends Xc {
|
|
|
13027
13031
|
}
|
|
13028
13032
|
_initRenderModules() {
|
|
13029
13033
|
[
|
|
13030
|
-
[
|
|
13034
|
+
[Pt],
|
|
13031
13035
|
[co],
|
|
13032
13036
|
[lo],
|
|
13033
13037
|
[uo],
|
|
@@ -13045,8 +13049,8 @@ let wr = class extends Xc {
|
|
|
13045
13049
|
});
|
|
13046
13050
|
}
|
|
13047
13051
|
};
|
|
13048
|
-
|
|
13049
|
-
wr =
|
|
13052
|
+
Of(wr, "pluginName", rd);
|
|
13053
|
+
wr = xf([
|
|
13050
13054
|
qc(El),
|
|
13051
13055
|
hn(1, j(Dn)),
|
|
13052
13056
|
hn(2, pe),
|
|
@@ -13054,7 +13058,7 @@ wr = Of([
|
|
|
13054
13058
|
hn(4, Qr),
|
|
13055
13059
|
hn(5, Vr)
|
|
13056
13060
|
], wr);
|
|
13057
|
-
function
|
|
13061
|
+
function Tf(n, e, t) {
|
|
13058
13062
|
const o = J(T), r = J(To), s = _e(() => ge(4), []);
|
|
13059
13063
|
Ce(() => {
|
|
13060
13064
|
if (!t || !n || !e)
|
|
@@ -13084,7 +13088,7 @@ function Bf(n, e, t) {
|
|
|
13084
13088
|
};
|
|
13085
13089
|
}, [o, e, t, n, s, r]);
|
|
13086
13090
|
}
|
|
13087
|
-
const
|
|
13091
|
+
const Bf = (n, e = !0, t, o) => {
|
|
13088
13092
|
const r = ha(() => {
|
|
13089
13093
|
if (n) {
|
|
13090
13094
|
const { scene: i, mainComponent: a } = n.render, c = n.render.with(de), { width: d, height: l } = n.getBoundingClientRect();
|
|
@@ -13135,7 +13139,7 @@ const Mf = (n, e = !0, t, o) => {
|
|
|
13135
13139
|
}
|
|
13136
13140
|
}, [n, t, s]), { resize: r, checkScrollBar: s };
|
|
13137
13141
|
};
|
|
13138
|
-
function
|
|
13142
|
+
function Mf(n) {
|
|
13139
13143
|
const { editorId: e, initialValue: t, container: o, autoFocus: r, isSingle: s } = n, i = _e(() => r != null ? r : !1, []), [a, c] = Ee(), d = J(Ge);
|
|
13140
13144
|
return ga(() => {
|
|
13141
13145
|
var l, A;
|
|
@@ -13181,7 +13185,7 @@ function _f(n) {
|
|
|
13181
13185
|
}
|
|
13182
13186
|
}, []), a;
|
|
13183
13187
|
}
|
|
13184
|
-
const
|
|
13188
|
+
const _f = (n, e, t, o) => {
|
|
13185
13189
|
const r = J(T), s = J(To), i = ke(e);
|
|
13186
13190
|
i.current = e;
|
|
13187
13191
|
const a = ke(o);
|
|
@@ -13240,7 +13244,7 @@ const Df = (n, e, t, o) => {
|
|
|
13240
13244
|
};
|
|
13241
13245
|
}, [r, t, n, s]);
|
|
13242
13246
|
};
|
|
13243
|
-
function
|
|
13247
|
+
function Df(n, e) {
|
|
13244
13248
|
const t = J(T);
|
|
13245
13249
|
Ce(() => {
|
|
13246
13250
|
if (!n) return;
|
|
@@ -13257,7 +13261,7 @@ function wf(n, e) {
|
|
|
13257
13261
|
};
|
|
13258
13262
|
}, [n, e, t]);
|
|
13259
13263
|
}
|
|
13260
|
-
const
|
|
13264
|
+
const Zf = (n) => {
|
|
13261
13265
|
var H;
|
|
13262
13266
|
const {
|
|
13263
13267
|
className: e,
|
|
@@ -13277,7 +13281,7 @@ const Jf = (n) => {
|
|
|
13277
13281
|
icon: f,
|
|
13278
13282
|
editorRef: p,
|
|
13279
13283
|
placeholder: m
|
|
13280
|
-
} = n, I = J(Ge), S = mn(o), v = mn(s), [R, E] = Ee(u), b = ke(null), y = _e(() => l != null ? l : $c(`RICH_TEXT_EDITOR-${ge(4)}`), [l]), C =
|
|
13284
|
+
} = n, I = J(Ge), S = mn(o), v = mn(s), [R, E] = Ee(u), b = ke(null), y = _e(() => l != null ? l : $c(`RICH_TEXT_EDITOR-${ge(4)}`), [l]), C = Mf({
|
|
13281
13285
|
editorId: y,
|
|
13282
13286
|
initialValue: r,
|
|
13283
13287
|
container: b,
|
|
@@ -13286,7 +13290,7 @@ const Jf = (n) => {
|
|
|
13286
13290
|
}), x = J(pe).getRenderById(y), M = x == null ? void 0 : x.with(Re), w = et(M == null ? void 0 : M.textSelectionInner$), F = !!((H = M == null ? void 0 : M.isFocusing) != null && H && (w != null && w.textRanges.some((k) => k.collapsed))), P = ke(null), [N, ee] = Ee(() => {
|
|
13287
13291
|
var k, ne;
|
|
13288
13292
|
return !ce.transform.getPlainText((ne = (k = C == null ? void 0 : C.getDocumentData().body) == null ? void 0 : k.dataStream) != null ? ne : "");
|
|
13289
|
-
}), { checkScrollBar: $ } =
|
|
13293
|
+
}), { checkScrollBar: $ } = Bf(C, d, !0, !0);
|
|
13290
13294
|
ga(() => {
|
|
13291
13295
|
if (!(!p || !C)) {
|
|
13292
13296
|
if (typeof p == "function") {
|
|
@@ -13323,7 +13327,7 @@ const Jf = (n) => {
|
|
|
13323
13327
|
return () => {
|
|
13324
13328
|
document.removeEventListener("click", k), clearTimeout(ne);
|
|
13325
13329
|
};
|
|
13326
|
-
}, [C, y, I, v]),
|
|
13330
|
+
}, [C, y, I, v]), _f(F && a, !1, C), Tf(F, i, C), Df(C, U), /* @__PURE__ */ Q("div", { className: e, style: c, children: /* @__PURE__ */ re(
|
|
13327
13331
|
"div",
|
|
13328
13332
|
{
|
|
13329
13333
|
className: ze("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", Nn, {
|
|
@@ -13365,32 +13369,32 @@ export {
|
|
|
13365
13369
|
qn as ChangeListNestingLevelType,
|
|
13366
13370
|
Lo as ChangeListTypeCommand,
|
|
13367
13371
|
so as CheckListCommand,
|
|
13368
|
-
|
|
13372
|
+
qd as CoverContentCommand,
|
|
13369
13373
|
Wa as CreateDocTableCommand,
|
|
13370
|
-
|
|
13371
|
-
|
|
13374
|
+
$t as CutContentCommand,
|
|
13375
|
+
sd as DOCS_COMPONENT_BACKGROUND_LAYER_INDEX,
|
|
13372
13376
|
Js as DOCS_COMPONENT_DEFAULT_Z_INDEX,
|
|
13373
|
-
|
|
13377
|
+
id as DOCS_COMPONENT_HEADER_LAYER_INDEX,
|
|
13374
13378
|
zo as DOCS_COMPONENT_MAIN_LAYER_INDEX,
|
|
13375
13379
|
$e as DOCS_VIEW_KEY,
|
|
13376
|
-
|
|
13380
|
+
rd as DOC_UI_PLUGIN_NAME,
|
|
13377
13381
|
Oi as DOC_VERTICAL_PADDING,
|
|
13378
|
-
|
|
13379
|
-
|
|
13382
|
+
od as DefaultDocContainerConfig,
|
|
13383
|
+
nd as DefaultToolbarConfig,
|
|
13380
13384
|
yn as DeleteCommand,
|
|
13381
13385
|
Zr as DeleteCustomBlockCommand,
|
|
13382
13386
|
Do as DeleteLeftCommand,
|
|
13383
13387
|
ba as DeleteRightCommand,
|
|
13384
|
-
|
|
13388
|
+
wt as DocAutoFormatService,
|
|
13385
13389
|
uo as DocBackScrollRenderController,
|
|
13386
13390
|
Bn as DocCanvasPopManagerService,
|
|
13387
13391
|
ro as DocCopyCommand,
|
|
13388
13392
|
Os as DocCreateTableOperation,
|
|
13389
13393
|
rs as DocCutCommand,
|
|
13390
|
-
|
|
13394
|
+
Pt as DocEventManagerService,
|
|
13391
13395
|
No as DocIMEInputManagerService,
|
|
13392
13396
|
is as DocPasteCommand,
|
|
13393
|
-
|
|
13397
|
+
sf as DocPrintInterceptorService,
|
|
13394
13398
|
br as DocRenderController,
|
|
13395
13399
|
Oa as DocSelectAllCommand,
|
|
13396
13400
|
Re as DocSelectionRenderService,
|
|
@@ -13398,7 +13402,7 @@ export {
|
|
|
13398
13402
|
Ss as DocTableDeleteColumnsCommand,
|
|
13399
13403
|
Is as DocTableDeleteRowsCommand,
|
|
13400
13404
|
Hn as DocTableDeleteTableCommand,
|
|
13401
|
-
|
|
13405
|
+
IA as DocTableInsertColumnCommand,
|
|
13402
13406
|
ys as DocTableInsertColumnLeftCommand,
|
|
13403
13407
|
xs as DocTableInsertColumnRightCommand,
|
|
13404
13408
|
Rs as DocTableInsertRowAboveCommand,
|
|
@@ -13407,88 +13411,88 @@ export {
|
|
|
13407
13411
|
za as DocTableTabCommand,
|
|
13408
13412
|
Ao as DocUIController,
|
|
13409
13413
|
So as DocsRenderService,
|
|
13410
|
-
|
|
13411
|
-
|
|
13412
|
-
|
|
13414
|
+
ug as DocsUIMenuSchema,
|
|
13415
|
+
HA as Editor,
|
|
13416
|
+
Md as EditorInsertTextCommandId,
|
|
13413
13417
|
Sr as EditorService,
|
|
13414
13418
|
bn as EnterCommand,
|
|
13415
13419
|
Po as HorizontalLineCommand,
|
|
13416
|
-
|
|
13420
|
+
Lt as IDocClipboardService,
|
|
13417
13421
|
Ge as IEditorService,
|
|
13418
13422
|
Ta as IMEInputCommand,
|
|
13419
13423
|
Sa as InnerPasteCommand,
|
|
13420
13424
|
va as InsertCommand,
|
|
13421
|
-
|
|
13425
|
+
Jd as InsertCustomRangeCommand,
|
|
13422
13426
|
Fn as ListOperationCommand,
|
|
13423
13427
|
Jr as MergeTwoParagraphCommand,
|
|
13424
13428
|
St as MoveCursorOperation,
|
|
13425
13429
|
vt as MoveSelectionOperation,
|
|
13426
|
-
|
|
13430
|
+
jf as NORMAL_TEXT_SELECTION_PLUGIN_NAME,
|
|
13427
13431
|
It as NodePositionConvertToCursor,
|
|
13428
13432
|
ka as NodePositionConvertToRectRange,
|
|
13429
13433
|
On as OrderListCommand,
|
|
13430
|
-
|
|
13431
|
-
|
|
13432
|
-
|
|
13434
|
+
Qd as PastePluginLark,
|
|
13435
|
+
Ud as PastePluginUniver,
|
|
13436
|
+
Fd as PastePluginWord,
|
|
13433
13437
|
Na as QuickListCommand,
|
|
13434
13438
|
Va as RectRange,
|
|
13435
|
-
|
|
13439
|
+
Kd as ReplaceContentCommand,
|
|
13436
13440
|
wa as ReplaceSelectionCommand,
|
|
13437
13441
|
_a as ReplaceSnapshotCommand,
|
|
13438
|
-
|
|
13442
|
+
Zd as ReplaceTextRunsCommand,
|
|
13439
13443
|
Un as ResetInlineFormatTextBackgroundColorCommand,
|
|
13440
|
-
|
|
13444
|
+
Zf as RichTextEditor,
|
|
13441
13445
|
Xn as SetDocZoomRatioCommand,
|
|
13442
13446
|
tt as SetDocZoomRatioOperation,
|
|
13443
|
-
|
|
13447
|
+
Qt as SetInlineFormatBoldCommand,
|
|
13444
13448
|
yt as SetInlineFormatCommand,
|
|
13445
|
-
|
|
13449
|
+
_t as SetInlineFormatFontFamilyCommand,
|
|
13446
13450
|
ct as SetInlineFormatFontSizeCommand,
|
|
13447
|
-
|
|
13448
|
-
|
|
13451
|
+
Ut as SetInlineFormatItalicCommand,
|
|
13452
|
+
Ht as SetInlineFormatStrikethroughCommand,
|
|
13449
13453
|
bt as SetInlineFormatSubscriptCommand,
|
|
13450
|
-
|
|
13454
|
+
kt as SetInlineFormatSuperscriptCommand,
|
|
13451
13455
|
Et as SetInlineFormatTextBackgroundColorCommand,
|
|
13452
13456
|
mt as SetInlineFormatTextColorCommand,
|
|
13453
|
-
|
|
13457
|
+
Ft as SetInlineFormatUnderlineCommand,
|
|
13454
13458
|
Xe as SetParagraphNamedStyleCommand,
|
|
13455
13459
|
ko as SwitchDocModeCommand,
|
|
13456
13460
|
mr as TEXT_RANGE_LAYER_INDEX,
|
|
13457
|
-
|
|
13458
|
-
|
|
13461
|
+
Jt as TabCommand,
|
|
13462
|
+
Zt as TextRange,
|
|
13459
13463
|
Pa as ToggleCheckListCommand,
|
|
13460
13464
|
wr as UniverDocsUIPlugin,
|
|
13461
13465
|
Ca as UpdateCommand,
|
|
13462
13466
|
We as VIEWPORT_KEY,
|
|
13463
|
-
|
|
13464
|
-
|
|
13467
|
+
Gf as addCustomDecorationBySelectionFactory,
|
|
13468
|
+
cd as addCustomDecorationFactory,
|
|
13465
13469
|
nr as calcDocRangePositions,
|
|
13466
|
-
|
|
13470
|
+
Vd as convertBodyToHtml,
|
|
13467
13471
|
Jo as convertPositionsToRectRanges,
|
|
13468
|
-
|
|
13469
|
-
|
|
13472
|
+
Yf as deleteCustomDecorationFactory,
|
|
13473
|
+
qf as docDrawingPositionToTransform,
|
|
13470
13474
|
ma as genTableSource,
|
|
13471
13475
|
pa as generateParagraphs,
|
|
13472
13476
|
Jn as getAnchorBounding,
|
|
13473
|
-
|
|
13477
|
+
dA as getCanvasOffsetByEngine,
|
|
13474
13478
|
Ke as getCommandSkeleton,
|
|
13475
13479
|
$r as getCursorWhenDelete,
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
+
Rd as getCustomBlockIdsInSelections,
|
|
13481
|
+
Bd as getCutActionsFromDocRanges,
|
|
13482
|
+
ad as getDocObject,
|
|
13483
|
+
zf as getDocObjectById,
|
|
13480
13484
|
Kr as getEmptyTableCell,
|
|
13481
13485
|
qr as getEmptyTableRow,
|
|
13482
13486
|
Es as getLineBounding,
|
|
13483
13487
|
fi as getOneTextSelectionRange,
|
|
13484
13488
|
Ae as getRichTextEditPath,
|
|
13485
13489
|
Xr as getTableColumn,
|
|
13486
|
-
|
|
13490
|
+
Kf as hasParagraphInTable,
|
|
13487
13491
|
Fa as isInSameTableCell,
|
|
13488
|
-
|
|
13492
|
+
tA as isValidRectRange,
|
|
13489
13493
|
pt as neoGetDocObject,
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13494
|
+
Xf as transformToDocDrawingPosition,
|
|
13495
|
+
Tf as useKeyboardEvent,
|
|
13496
|
+
Bf as useResize,
|
|
13493
13497
|
Se as whenDocAndEditorFocused
|
|
13494
13498
|
};
|