@univerjs/docs-ui 0.5.1 → 0.5.2
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 +12 -12
- package/lib/es/index.js +878 -874
- package/lib/index.css +1 -1
- package/lib/umd/index.js +11 -11
- package/package.json +13 -13
package/lib/es/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var b = (n, e, t) =>
|
|
4
|
-
import { Inject as k, Disposable as me, toDisposable as Ao, UniverInstanceType as P, BuildTextUtils as Qe, IUniverInstanceService as Q, JSONX as V, ObjectRelativeFromH as uo, ObjectRelativeFromV as St, CommandType as N, ICommandService as T, Tools as K, IUndoRedoService as ho, TextX as Ce, TextXActionType as j, DOC_RANGE_TYPE as dt, RANGE_DIRECTION as Pe, COLORS as pn, BooleanNumber as L, Rectangle as
|
|
5
|
-
import { DocSelectionManagerService as W, RichTextEditingMutation as X, DocSkeletonManagerService as de, SetTextSelectionsOperation as Ve, DocStateEmitService as
|
|
6
|
-
import { IRenderManagerService as Re, Liquid as
|
|
7
|
-
import * as
|
|
8
|
-
import
|
|
9
|
-
import { LexerTreeBuilder as
|
|
10
|
-
import { Subject as le, BehaviorSubject as qe, takeUntil as Et, fromEvent as Ge, merge as
|
|
11
|
-
import { ILayoutService as Fs, KeyCode as ae, useEvent as
|
|
12
|
-
import { filter as ss, bufferTime as
|
|
13
|
-
import { Tooltip as
|
|
1
|
+
var ec = Object.defineProperty;
|
|
2
|
+
var tc = (n, e, t) => e in n ? ec(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var b = (n, e, t) => tc(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { Inject as k, Disposable as me, toDisposable as Ao, UniverInstanceType as P, BuildTextUtils as Qe, IUniverInstanceService as Q, JSONX as V, ObjectRelativeFromH as uo, ObjectRelativeFromV as St, CommandType as N, ICommandService as T, Tools as K, IUndoRedoService as ho, TextX as Ce, TextXActionType as j, DOC_RANGE_TYPE as dt, RANGE_DIRECTION as Pe, COLORS as pn, BooleanNumber as L, Rectangle as nc, RxDisposable as Ct, DataStreamTreeTokenType as U, ILogService as Ts, DEFAULT_STYLES as Bs, createIdentifier as _s, EDITOR_ACTIVATED as En, FOCUSING_EDITOR_STANDALONE as No, isInternalEditorID as go, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as $o, FOCUSING_EDITOR_INPUT_FORMULA as oc, DEFAULT_EMPTY_DOCUMENT_VALUE as Ms, VerticalAlign as sc, HorizontalAlign as Le, IContextService as Ps, DocumentFlavor as De, useDependency as se, LocaleService as Xe, debounce as es, PresetListType as we, sequenceExecuteAsync as Ds, FOCUSING_DOC as Tn, FOCUSING_UNIVER_EDITOR as ws, FOCUSING_COMMON_DRAWINGS as _i, MemoryCursor as Qt, BaselineOffset as je, getBodySlice as Mi, PRESET_LIST_TYPE as rc, GridType as ic, sortRulesFactory as ac, UpdateDocsAttributeType as fo, useObservable as Pi, TableRowHeightRule as cc, TableSizeType as Di, generateRandomId as In, TableAlignmentType as lc, TableTextWrapType as Ac, SHEET_EDITOR_UNITS as Ns, PositionedObjectLayoutType as po, LRUMap as dc, ColorKit as br, DrawingTypeEnum as Qs, skipParseTagNames as uc, CustomRangeType as wi, DataStreamTreeNodeType as An, SliceBodyType as xr, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Us, normalizeBody as hc, SpacingRule as Yt, ThemeService as Ni, DOCS_ZEN_EDITOR_UNIT_ID_KEY as gt, Injector as mo, connectInjector as gc, IConfigService as Ls, QuickListTypeMap as Qo, Direction as ce, DisposableCollection as Or, fromEventSubject as mn, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as fc, checkForSubstrings as pc, UndoCommandId as yr, RedoCommandId as Tr, DependentOn as mc, Plugin as Sc, merge as Ec, touchDependencies as Br, mergeOverrideWithDependencies as Ic } from "@univerjs/core";
|
|
5
|
+
import { DocSelectionManagerService as W, RichTextEditingMutation as X, DocSkeletonManagerService as de, SetTextSelectionsOperation as Ve, DocStateEmitService as vc, DocInterceptorService as Cc } from "@univerjs/docs";
|
|
6
|
+
import { IRenderManagerService as Re, Liquid as Qi, GlyphType as Ui, DocumentSkeletonPageType as be, getPageFromPath as ts, getTableIdAndSliceIndex as _r, NORMAL_TEXT_SELECTION_PLUGIN_STYLE as vn, getColor as Sn, RegularPolygon as Li, Rect as jn, getOffsetRectForDom as Rc, ScrollTimer as bc, CURSOR_TYPE as Mt, getSystemHighlightColor as xc, Vector2 as Cn, PageLayoutType as Rn, DocumentEditArea as Se, Shape as Oc, Path as Mr, getCharSpaceApply as yc, getNumberUnitValue as nt, hasListGlyph as Tc, isIndentByGlyph as Bc, isFirstGlyph as _c, getParagraphByGlyph as Mc, pixelToPt as Pc, ptToPixel as Pr, parseDataStreamToTree as Dc, Viewport as wc, ScrollBar as ns, Layer as Dr, Documents as Nc, DocBackground as Qc, lineIterator as Uc, getLastColumn as Lc, getLastLine as Fc, pxToNum as Fi, TRANSFORM_CHANGE_OBSERVABLE_TYPE as Hi, UniverRenderEnginePlugin as Hc } from "@univerjs/engine-render";
|
|
7
|
+
import * as Vc from "react";
|
|
8
|
+
import kc, { useState as he, useRef as et, useEffect as Oe, forwardRef as st, createElement as rt, useMemo as Pt, useCallback as jc } from "react";
|
|
9
|
+
import { LexerTreeBuilder as Wc, operatorToken as zc, isReferenceStrings as Yc, serializeRange as Gc, serializeRangeWithSheet as qc, serializeRangeWithSpreadsheet as Kc, isReferenceStringWithEffectiveColumn as wr, getRangeWithRefsString as Xc } from "@univerjs/engine-formula";
|
|
10
|
+
import { Subject as le, BehaviorSubject as qe, takeUntil as Et, fromEvent as Ge, merge as Jc, combineLatest as So, Observable as Ee, map as Bn, distinctUntilChanged as Nr, filter as os, throttleTime as Vi, switchMap as Zc, take as $c, animationFrameScheduler as el } from "rxjs";
|
|
11
|
+
import { ILayoutService as Fs, KeyCode as ae, useEvent as tl, ComponentManager as Eo, ISidebarService as ki, MetaKeys as ge, IClipboardInterfaceService as ji, FILE_PNG_CLIPBOARD_MIME_TYPE as Wi, FILE__WEBP_CLIPBOARD_MIME_TYPE as zi, FILE__JPEG_CLIPBOARD_MIME_TYPE as Yi, FILE__BMP_CLIPBOARD_MIME_TYPE as Gi, HTML_CLIPBOARD_MIME_TYPE as qi, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as Ki, CopyCommand as nl, CutCommand as ol, PasteCommand as sl, IConfirmService as rl, MenuItemType as J, getMenuHiddenObservable as ee, FONT_FAMILY_LIST as il, FONT_SIZE_LIST as al, RibbonStartGroup as Qr, ContextMenuPosition as Xi, ContextMenuGroup as Ur, FontFamily as cl, FontFamilyItem as ll, FontSize as Al, BuiltInUIPart as dl, IMenuManagerService as ul, IUIPartsService as hl, IShortcutService as Ji, ICanvasPopupService as gl, IContextMenuService as fl } from "@univerjs/ui";
|
|
12
|
+
import { filter as ss, bufferTime as pl, map as ml } from "rxjs/operators";
|
|
13
|
+
import { Tooltip as Zi, Dialog as Sl, Button as Wn, Input as El, Checkbox as Lr, InputNumber as bn, Slider as Il, Select as vl, ColorPicker as Cl } from "@univerjs/design";
|
|
14
14
|
import { ImageSourceType as Hs } from "@univerjs/drawing";
|
|
15
|
-
var
|
|
16
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
15
|
+
var Rl = Object.defineProperty, bl = Object.getOwnPropertyDescriptor, xl = (n, e, t, o) => {
|
|
16
|
+
for (var s = o > 1 ? void 0 : o ? bl(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
17
17
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
18
|
-
return o && s &&
|
|
18
|
+
return o && s && Rl(e, t, s), s;
|
|
19
19
|
}, Fr = (n, e) => (t, o) => e(t, o, n);
|
|
20
|
-
function
|
|
20
|
+
function Ol(n, e) {
|
|
21
21
|
var i, a;
|
|
22
22
|
const { startOffset: t, endOffset: o } = n, s = [];
|
|
23
23
|
let r = -1;
|
|
@@ -62,7 +62,7 @@ let Dt = class extends me {
|
|
|
62
62
|
unit: f,
|
|
63
63
|
selection: i,
|
|
64
64
|
isBody: !i.segmentId,
|
|
65
|
-
paragraphs:
|
|
65
|
+
paragraphs: Ol(i, (A = (l = f.getBody()) == null ? void 0 : l.paragraphs) != null ? A : []),
|
|
66
66
|
customRanges: Qe.customRange.getCustomRangesInterestsWithSelection(i, (h = (d = f.getBody()) == null ? void 0 : d.customRanges) != null ? h : []),
|
|
67
67
|
commandId: e,
|
|
68
68
|
commandParams: t
|
|
@@ -72,11 +72,11 @@ let Dt = class extends me {
|
|
|
72
72
|
return [];
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
Dt =
|
|
75
|
+
Dt = xl([
|
|
76
76
|
Fr(0, Q),
|
|
77
77
|
Fr(1, k(W))
|
|
78
78
|
], Dt);
|
|
79
|
-
const
|
|
79
|
+
const yl = {
|
|
80
80
|
undo: !0,
|
|
81
81
|
redo: !0,
|
|
82
82
|
// Undo redo
|
|
@@ -104,7 +104,7 @@ const xl = {
|
|
|
104
104
|
// 'Wrap mode'
|
|
105
105
|
textRotateMode: !0
|
|
106
106
|
// 'Text Rotation Mode'
|
|
107
|
-
},
|
|
107
|
+
}, Tl = {
|
|
108
108
|
outerLeft: !1,
|
|
109
109
|
outerRight: !1,
|
|
110
110
|
header: !0,
|
|
@@ -117,9 +117,9 @@ const xl = {
|
|
|
117
117
|
frozenContent: !1,
|
|
118
118
|
infoBar: !0,
|
|
119
119
|
toolbar: !0
|
|
120
|
-
},
|
|
120
|
+
}, Bl = "DOC_UI_PLUGIN";
|
|
121
121
|
var tt = /* @__PURE__ */ ((n) => (n.MAIN = "__Document_Render_Main__", n.BACKGROUND = "__Document_Render_Background__", n))(tt || {}), ut = /* @__PURE__ */ ((n) => (n.VIEW_MAIN = "viewMain", n.VIEW_TOP = "viewTop", n.VIEW_LEFT = "viewLeft", n.VIEW_LEFT_TOP = "viewLeftTop", n))(ut || {});
|
|
122
|
-
const
|
|
122
|
+
const _l = 0, Uo = 2, Ml = 4, Hr = 10, kf = "normalTextSelectionPluginName";
|
|
123
123
|
function It(n) {
|
|
124
124
|
const { mainComponent: e, scene: t, engine: o, components: s } = n, r = e, i = s.get(tt.BACKGROUND);
|
|
125
125
|
return {
|
|
@@ -129,7 +129,7 @@ function It(n) {
|
|
|
129
129
|
engine: o
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Pl(n, e) {
|
|
133
133
|
const t = n.getCurrentUnitForType(P.UNIVER_DOC);
|
|
134
134
|
if (!t)
|
|
135
135
|
return null;
|
|
@@ -144,7 +144,7 @@ function _l(n, e) {
|
|
|
144
144
|
engine: a
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function jf(n, e) {
|
|
148
148
|
const t = e.getRenderById(n);
|
|
149
149
|
if (t == null)
|
|
150
150
|
return;
|
|
@@ -156,7 +156,7 @@ function kf(n, e) {
|
|
|
156
156
|
engine: r
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Dl(n) {
|
|
160
160
|
const { unitId: e, ranges: t, id: o, type: s, segmentId: r } = n, i = {
|
|
161
161
|
id: X.id,
|
|
162
162
|
params: {
|
|
@@ -169,12 +169,12 @@ function Ml(n) {
|
|
|
169
169
|
}, a = V.getInstance(), c = Qe.customDecoration.add({ ranges: t, id: o, type: s });
|
|
170
170
|
return i.params.actions = a.editOp(c.serialize()), i;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Wf(n, e) {
|
|
173
173
|
const { segmentId: t, id: o, type: s } = e, r = n.get(W), a = n.get(Q).getCurrentUnitForType(P.UNIVER_DOC);
|
|
174
174
|
if (!a)
|
|
175
175
|
return !1;
|
|
176
176
|
const c = a.getUnitId(), l = r.getTextRanges({ unitId: c, subUnitId: c });
|
|
177
|
-
return !l || !a.getBody() ? !1 :
|
|
177
|
+
return !l || !a.getBody() ? !1 : Dl(
|
|
178
178
|
{
|
|
179
179
|
unitId: c,
|
|
180
180
|
ranges: l,
|
|
@@ -184,7 +184,7 @@ function jf(n, e) {
|
|
|
184
184
|
}
|
|
185
185
|
);
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function zf(n, e) {
|
|
188
188
|
const { unitId: t, id: o, segmentId: s } = e, i = n.get(Q).getUnit(t);
|
|
189
189
|
if (!i)
|
|
190
190
|
return !1;
|
|
@@ -203,7 +203,7 @@ function Wf(n, e) {
|
|
|
203
203
|
const l = V.getInstance();
|
|
204
204
|
return a.params.actions = l.editOp(c.serialize()), a;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Yf(n, e) {
|
|
207
207
|
return e.some((t) => n.startIndex > t.startIndex && n.startIndex < t.endIndex);
|
|
208
208
|
}
|
|
209
209
|
function Io(n, e, t, o) {
|
|
@@ -230,7 +230,7 @@ function Vs(n, e, t) {
|
|
|
230
230
|
function ks(n, e) {
|
|
231
231
|
return n.filter((t) => e > t.startIndex && e <= t.endIndex);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Gf(n) {
|
|
234
234
|
return {
|
|
235
235
|
left: n.positionH.posOffset,
|
|
236
236
|
top: n.positionV.posOffset,
|
|
@@ -238,7 +238,7 @@ function Yf(n) {
|
|
|
238
238
|
height: n.size.height
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function qf(n, e = 0, t = 0) {
|
|
242
242
|
return {
|
|
243
243
|
size: {
|
|
244
244
|
width: n.width,
|
|
@@ -282,10 +282,10 @@ var Lo = { exports: {} }, dn = {};
|
|
|
282
282
|
* LICENSE file in the root directory of this source tree.
|
|
283
283
|
*/
|
|
284
284
|
var Vr;
|
|
285
|
-
function
|
|
285
|
+
function wl() {
|
|
286
286
|
if (Vr) return dn;
|
|
287
287
|
Vr = 1;
|
|
288
|
-
var n =
|
|
288
|
+
var n = kc, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, r = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
289
289
|
function i(a, c, l) {
|
|
290
290
|
var A, d = {}, h = null, u = null;
|
|
291
291
|
l !== void 0 && (h = "" + l), c.key !== void 0 && (h = "" + c.key), c.ref !== void 0 && (u = c.ref);
|
|
@@ -296,11 +296,11 @@ function Pl() {
|
|
|
296
296
|
return dn.Fragment = t, dn.jsx = i, dn.jsxs = i, dn;
|
|
297
297
|
}
|
|
298
298
|
var kr;
|
|
299
|
-
function
|
|
300
|
-
return kr || (kr = 1, Lo.exports =
|
|
299
|
+
function Nl() {
|
|
300
|
+
return kr || (kr = 1, Lo.exports = wl()), Lo.exports;
|
|
301
301
|
}
|
|
302
|
-
var B =
|
|
303
|
-
function
|
|
302
|
+
var B = Nl();
|
|
303
|
+
function Ql(n) {
|
|
304
304
|
if (!n) return !1;
|
|
305
305
|
const e = window.getComputedStyle(n);
|
|
306
306
|
if (e.display === "none" || e.visibility === "hidden" || e.opacity === "0")
|
|
@@ -308,7 +308,7 @@ function wl(n) {
|
|
|
308
308
|
const t = n.getBoundingClientRect();
|
|
309
309
|
return !(t.width === 0 || t.height === 0 || t.bottom < 0 || t.top > window.innerHeight || t.right < 0 || t.left > window.innerWidth);
|
|
310
310
|
}
|
|
311
|
-
const
|
|
311
|
+
const $i = {
|
|
312
312
|
id: "doc.command-replace-snapshot",
|
|
313
313
|
type: N.COMMAND,
|
|
314
314
|
// eslint-disable-next-line max-lines-per-function, complexity
|
|
@@ -372,34 +372,34 @@ const Zi = {
|
|
|
372
372
|
}
|
|
373
373
|
return D.params.actions = x.reduce((w, F) => V.compose(w, F), null), !!c.syncExecuteCommand(D.id, D.params);
|
|
374
374
|
}
|
|
375
|
-
},
|
|
375
|
+
}, Ul = {
|
|
376
376
|
id: "doc.command-replace-content",
|
|
377
377
|
type: N.COMMAND,
|
|
378
378
|
handler: async (n, e) => {
|
|
379
379
|
const { unitId: t, body: o, textRanges: s, segmentId: r = "", options: i } = e, a = n.get(Q), c = n.get(T), l = n.get(W), A = a.getUnit(t, P.UNIVER_DOC), d = A == null ? void 0 : A.getSelfOrHeaderFooterModel(r).getSnapshot().body;
|
|
380
380
|
if (A == null || d == null)
|
|
381
381
|
return !1;
|
|
382
|
-
const h =
|
|
382
|
+
const h = ta(t, r, A, d, o);
|
|
383
383
|
return h.params.textRanges = s, i && (h.params.options = i), h.params.actions == null && s ? (l.replaceDocRanges(s, {
|
|
384
384
|
unitId: t,
|
|
385
385
|
subUnitId: t
|
|
386
386
|
}, !1), !0) : !!c.syncExecuteCommand(h.id, h.params);
|
|
387
387
|
}
|
|
388
|
-
},
|
|
388
|
+
}, ea = {
|
|
389
389
|
id: "doc.command-cover-content",
|
|
390
390
|
type: N.COMMAND,
|
|
391
391
|
handler: async (n, e) => {
|
|
392
392
|
const { unitId: t, body: o, segmentId: s = "" } = e, r = n.get(Q), i = n.get(T), a = n.get(ho), c = r.getUniverDocInstance(t), l = c == null ? void 0 : c.getSnapshot().body;
|
|
393
393
|
if (c == null || l == null)
|
|
394
394
|
return !1;
|
|
395
|
-
const A =
|
|
395
|
+
const A = ta(t, s, c, l, o);
|
|
396
396
|
return A.params.noNeedSetTextRange = !0, A.params.noHistory = !0, i.syncExecuteCommand(
|
|
397
397
|
A.id,
|
|
398
398
|
A.params
|
|
399
399
|
), a.clearUndoRedo(t), !0;
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
|
-
function
|
|
402
|
+
function Ll(n, e, t, o) {
|
|
403
403
|
const s = new Ce(), r = V.getInstance(), i = (t == null ? void 0 : t.dataStream.length) - 2;
|
|
404
404
|
i > 0 && s.push({
|
|
405
405
|
t: j.DELETE,
|
|
@@ -412,7 +412,7 @@ function Ql(n, e, t, o) {
|
|
|
412
412
|
const a = fe(e, n);
|
|
413
413
|
return r.editOp(s.serialize(), a);
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function ta(n, e, t, o, s) {
|
|
416
416
|
const r = {
|
|
417
417
|
id: X.id,
|
|
418
418
|
params: {
|
|
@@ -420,7 +420,7 @@ function ea(n, e, t, o, s) {
|
|
|
420
420
|
actions: [],
|
|
421
421
|
textRanges: []
|
|
422
422
|
}
|
|
423
|
-
}, i =
|
|
423
|
+
}, i = Ll(e, t, o, s);
|
|
424
424
|
return r.params.actions = i, r;
|
|
425
425
|
}
|
|
426
426
|
N.COMMAND;
|
|
@@ -456,7 +456,7 @@ function jr(n) {
|
|
|
456
456
|
collapsed: s
|
|
457
457
|
};
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function Fl(n, e, t, o) {
|
|
460
460
|
let s = o, r = o;
|
|
461
461
|
for (let i = 0; i < n.length; i++) {
|
|
462
462
|
const c = n[i].count;
|
|
@@ -488,7 +488,7 @@ function is(n) {
|
|
|
488
488
|
}
|
|
489
489
|
class vt {
|
|
490
490
|
constructor(e, t) {
|
|
491
|
-
b(this, "_liquid", new
|
|
491
|
+
b(this, "_liquid", new Qi());
|
|
492
492
|
b(this, "_currentStartState", {
|
|
493
493
|
page: 0,
|
|
494
494
|
section: 0,
|
|
@@ -531,7 +531,7 @@ class vt {
|
|
|
531
531
|
return;
|
|
532
532
|
const { x: E, y: v } = this._liquid;
|
|
533
533
|
let y, O;
|
|
534
|
-
const D = C[l], x = C[A], _ = C[l - 1], M = (D == null ? void 0 : D.left) || 0, w = (D == null ? void 0 : D.width) || 0, F = (x == null ? void 0 : x.left) || 0, H = (x == null ? void 0 : x.width) || 0, te = (D == null ? void 0 : D.glyphType) ===
|
|
534
|
+
const D = C[l], x = C[A], _ = C[l - 1], M = (D == null ? void 0 : D.left) || 0, w = (D == null ? void 0 : D.width) || 0, F = (x == null ? void 0 : x.left) || 0, H = (x == null ? void 0 : x.width) || 0, te = (D == null ? void 0 : D.glyphType) === Ui.LIST, { startOffset: Z, endOffset: G } = Fl(C, l, A, R), z = a.glyph === l && d ? a.isBack : !0, ne = c.glyph === A && h ? c.isBack : !1, ue = a === c, re = z && _ != null ? _ : D;
|
|
535
535
|
if (l === 0 && A === C.length - 1)
|
|
536
536
|
y = {
|
|
537
537
|
startX: E + M + (te ? w : 0),
|
|
@@ -729,7 +729,7 @@ class vt {
|
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function Hl(n, e) {
|
|
733
733
|
const { path: t } = n, { path: o } = e;
|
|
734
734
|
if (t.length !== o.length || t.indexOf("cells") === -1)
|
|
735
735
|
return !1;
|
|
@@ -739,11 +739,11 @@ function Ll(n, e) {
|
|
|
739
739
|
const d = t[r], h = o[r], u = t[i], f = o[i];
|
|
740
740
|
return !(d === h && u === f && c === A);
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function na(n, e) {
|
|
743
743
|
const { path: t } = n, { path: o } = e;
|
|
744
744
|
return t.indexOf("cells") === -1 || o.indexOf("cells") === -1 || t.length !== o.length ? !1 : K.diffValue(t, o);
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function oa(n, e, t) {
|
|
747
747
|
var u, f, g, p, m, S, I, C;
|
|
748
748
|
const { path: o } = e, { path: s } = t;
|
|
749
749
|
if (o.indexOf("cells") === -1 || s.indexOf("cells") === -1)
|
|
@@ -755,7 +755,7 @@ function na(n, e, t) {
|
|
|
755
755
|
return d === h && l.index === A.index;
|
|
756
756
|
}
|
|
757
757
|
function Fo(n, e) {
|
|
758
|
-
if (
|
|
758
|
+
if (na(n, e))
|
|
759
759
|
return js(n, e);
|
|
760
760
|
const { path: t } = n, { path: o } = e, s = t[t.length - 5], r = o[o.length - 5];
|
|
761
761
|
if (s !== r && typeof s == "string" && typeof r == "string") {
|
|
@@ -768,16 +768,16 @@ function Fo(n, e) {
|
|
|
768
768
|
function Ft(n) {
|
|
769
769
|
return n.sections[0].columns[0].lines.length === 0;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Vl(n, e, t) {
|
|
772
772
|
let o = e, s = t, r = n[o], i = n[s];
|
|
773
773
|
for (; o < s && (Ft(r) || Ft(i)); )
|
|
774
774
|
Ft(r) ? (o++, r = n[o]) : Ft(i) && (s--, i = n[s]);
|
|
775
775
|
if (!Ft(r) && !Ft(i))
|
|
776
776
|
return [r, i];
|
|
777
777
|
}
|
|
778
|
-
class
|
|
778
|
+
class sa {
|
|
779
779
|
constructor(e, t) {
|
|
780
|
-
b(this, "_liquid", new
|
|
780
|
+
b(this, "_liquid", new Qi());
|
|
781
781
|
this._documentOffsetConfig = e, this._docSkeleton = t;
|
|
782
782
|
}
|
|
783
783
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -816,7 +816,7 @@ class oa {
|
|
|
816
816
|
const { x: y, y: O } = this._liquid, { left: D } = v;
|
|
817
817
|
for (const x of v.rows)
|
|
818
818
|
if (x.index >= h && x.index <= f) {
|
|
819
|
-
const _ =
|
|
819
|
+
const _ = Vl(x.cells, u, g);
|
|
820
820
|
if (_ == null)
|
|
821
821
|
continue;
|
|
822
822
|
const [M, w] = _, F = {
|
|
@@ -887,7 +887,7 @@ class oa {
|
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
const
|
|
890
|
+
const kl = "__TestSelectionRange__", jl = "__TestSelectionAnchor__", Wr = 6, Ho = 500, Wl = 500, as = 3;
|
|
891
891
|
function Yn(n) {
|
|
892
892
|
const e = n[0], t = e[0], o = e[2], { x: s, y: r } = t, { x: i, y: a } = o;
|
|
893
893
|
return {
|
|
@@ -930,7 +930,7 @@ class Gt {
|
|
|
930
930
|
this._anchorShape && this._anchorShape.visible && (this.activeStatic(), setTimeout(() => {
|
|
931
931
|
this.deactivateStatic();
|
|
932
932
|
}, Ho));
|
|
933
|
-
},
|
|
933
|
+
}, Wl + Ho);
|
|
934
934
|
}
|
|
935
935
|
// The start position of the range
|
|
936
936
|
get startOffset() {
|
|
@@ -1079,7 +1079,7 @@ class Gt {
|
|
|
1079
1079
|
this._rangeShape.translate(t, o), this._rangeShape.updatePointGroup(e), this._rangeShape.show();
|
|
1080
1080
|
return;
|
|
1081
1081
|
}
|
|
1082
|
-
const s = 0.3, r = new
|
|
1082
|
+
const s = 0.3, r = new Li(kl + K.generateRandomId(Wr), {
|
|
1083
1083
|
pointsGroup: e,
|
|
1084
1084
|
fill: ((i = this.style) == null ? void 0 : i.fill) || Sn(pn.black, s),
|
|
1085
1085
|
left: t,
|
|
@@ -1102,7 +1102,7 @@ class Gt {
|
|
|
1102
1102
|
this._anchorShape.transformByState({ left: d, top: h, height: c }), this._anchorShape.show(), u ? this._anchorShape.skew(-A, 0) : this._anchorShape.skew(0, 0);
|
|
1103
1103
|
return;
|
|
1104
1104
|
}
|
|
1105
|
-
const f = new jn(
|
|
1105
|
+
const f = new jn(jl + K.generateRandomId(Wr), {
|
|
1106
1106
|
left: d,
|
|
1107
1107
|
top: h,
|
|
1108
1108
|
height: c,
|
|
@@ -1116,10 +1116,10 @@ class Gt {
|
|
|
1116
1116
|
e.length !== 0 && (this._cursorList = e);
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
|
-
const
|
|
1119
|
+
const zl = "__DocTableRectRange__", Yl = 6;
|
|
1120
1120
|
function Vo(n, e, t, o, s, r = vn, i = "", a = -1) {
|
|
1121
|
-
const c = e.getOffsetConfig(), A = new
|
|
1122
|
-
return (A != null ? A : []).map((d) => new
|
|
1121
|
+
const c = e.getOffsetConfig(), A = new sa(c, t).getNodePositionGroup(o, s);
|
|
1122
|
+
return (A != null ? A : []).map((d) => new ra(
|
|
1123
1123
|
n,
|
|
1124
1124
|
e,
|
|
1125
1125
|
t,
|
|
@@ -1130,7 +1130,7 @@ function Vo(n, e, t, o, s, r = vn, i = "", a = -1) {
|
|
|
1130
1130
|
a
|
|
1131
1131
|
));
|
|
1132
1132
|
}
|
|
1133
|
-
class
|
|
1133
|
+
class ra {
|
|
1134
1134
|
constructor(e, t, o, s, r, i = vn, a = "", c = -1) {
|
|
1135
1135
|
b(this, "rangeType", dt.RECT);
|
|
1136
1136
|
// The rendered rect range
|
|
@@ -1237,12 +1237,12 @@ class sa {
|
|
|
1237
1237
|
right: l,
|
|
1238
1238
|
bottom: c
|
|
1239
1239
|
};
|
|
1240
|
-
return
|
|
1240
|
+
return nc.hasIntersectionBetweenTwoRect(A, d);
|
|
1241
1241
|
}
|
|
1242
1242
|
refresh() {
|
|
1243
1243
|
var p;
|
|
1244
1244
|
(p = this._rangeShape) == null || p.hide();
|
|
1245
|
-
const { startNodePosition: e, endNodePosition: t, _document: o, _docSkeleton: s } = this, r = o.getOffsetConfig(), { docsLeft: i, docsTop: a } = r, l = new
|
|
1245
|
+
const { startNodePosition: e, endNodePosition: t, _document: o, _docSkeleton: s } = this, r = o.getOffsetConfig(), { docsLeft: i, docsTop: a } = r, l = new sa(r, s).getRangePointData(e, t);
|
|
1246
1246
|
if (l == null)
|
|
1247
1247
|
return;
|
|
1248
1248
|
const { pointGroup: A = [], startRow: d, endRow: h, startColumn: u, endColumn: f, tableId: g } = l;
|
|
@@ -1257,7 +1257,7 @@ class sa {
|
|
|
1257
1257
|
this._rangeShape.translate(t, o), this._rangeShape.updatePointGroup(e), this._rangeShape.show();
|
|
1258
1258
|
return;
|
|
1259
1259
|
}
|
|
1260
|
-
const s = 0.3, r = new
|
|
1260
|
+
const s = 0.3, r = new Li(zl + K.generateRandomId(Yl), {
|
|
1261
1261
|
pointsGroup: e,
|
|
1262
1262
|
fill: ((i = this.style) == null ? void 0 : i.fill) || Sn(pn.black, s),
|
|
1263
1263
|
left: t,
|
|
@@ -1273,12 +1273,12 @@ function zr(n, e, t, o, s, r, i, a, c = !0, l = !0) {
|
|
|
1273
1273
|
if (!(A == null || d == null))
|
|
1274
1274
|
return new Gt(t, o, s, A, d, r, i, a);
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function Gl(n, e, t, o, s, r, i, a) {
|
|
1277
1277
|
const c = s.findNodePositionByCharIndex(n, !0, i, a), l = s.findNodePositionByCharIndex(e, !0, i, a);
|
|
1278
1278
|
if (!(c == null || l == null))
|
|
1279
|
-
return new
|
|
1279
|
+
return new ra(t, o, s, c, l, r, i, a);
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function ql(n, e, t, o, s, r, i, a) {
|
|
1282
1282
|
const c = s.findNodePositionByCharIndex(n, !0, i, a), l = s.findNodePositionByCharIndex(e, !0, i, a);
|
|
1283
1283
|
if (!(c == null || l == null))
|
|
1284
1284
|
return cs(
|
|
@@ -1294,8 +1294,8 @@ function Yl(n, e, t, o, s, r, i, a) {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
function cs(n, e, t, o, s, r, i, a) {
|
|
1296
1296
|
const c = [], l = [], A = [t, o, s, n, e, r, i, a];
|
|
1297
|
-
if (
|
|
1298
|
-
if (
|
|
1297
|
+
if (oa(s, n, e)) {
|
|
1298
|
+
if (na(n, e))
|
|
1299
1299
|
return c.push(new Gt(...A)), {
|
|
1300
1300
|
textRanges: c,
|
|
1301
1301
|
rectRanges: l
|
|
@@ -1310,7 +1310,7 @@ function cs(n, e, t, o, s, r, i, a) {
|
|
|
1310
1310
|
};
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
|
-
if (
|
|
1313
|
+
if (Hl(n, e)) {
|
|
1314
1314
|
const I = Vo(
|
|
1315
1315
|
...A
|
|
1316
1316
|
);
|
|
@@ -1369,14 +1369,14 @@ function cs(n, e, t, o, s, r, i, a) {
|
|
|
1369
1369
|
rectRanges: l
|
|
1370
1370
|
};
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function Kl(n) {
|
|
1373
1373
|
const e = n == null ? void 0 : n.getCanvasElement();
|
|
1374
1374
|
if (!e)
|
|
1375
1375
|
return {
|
|
1376
1376
|
left: 0,
|
|
1377
1377
|
top: 0
|
|
1378
1378
|
};
|
|
1379
|
-
const { top: t, left: o } =
|
|
1379
|
+
const { top: t, left: o } = Rc(e);
|
|
1380
1380
|
return {
|
|
1381
1381
|
left: o,
|
|
1382
1382
|
top: t
|
|
@@ -1415,7 +1415,7 @@ function ls(n) {
|
|
|
1415
1415
|
isActive: n.isActive()
|
|
1416
1416
|
};
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Xl(n) {
|
|
1419
1419
|
const e = ls(n), {
|
|
1420
1420
|
startRow: t,
|
|
1421
1421
|
startColumn: o,
|
|
@@ -1438,10 +1438,10 @@ function ql(n) {
|
|
|
1438
1438
|
spanEntireTable: l
|
|
1439
1439
|
};
|
|
1440
1440
|
}
|
|
1441
|
-
var
|
|
1442
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
1441
|
+
var Jl = Object.defineProperty, Zl = Object.getOwnPropertyDescriptor, $l = (n, e, t, o) => {
|
|
1442
|
+
for (var s = o > 1 ? void 0 : o ? Zl(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
1443
1443
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1444
|
-
return o && s &&
|
|
1444
|
+
return o && s && Jl(e, t, s), s;
|
|
1445
1445
|
}, Qn = (n, e) => (t, o) => e(t, o, n);
|
|
1446
1446
|
let Be = class extends Ct {
|
|
1447
1447
|
constructor(e, t, o, s, r) {
|
|
@@ -1530,7 +1530,7 @@ let Be = class extends Ct {
|
|
|
1530
1530
|
_currentSegmentPage: r,
|
|
1531
1531
|
_selectionStyle: i
|
|
1532
1532
|
} = this, { scene: a, mainComponent: c } = this._context, l = c, A = this._docSkeletonManagerService.getSkeleton(), d = (h, u) => {
|
|
1533
|
-
const f =
|
|
1533
|
+
const f = ql(
|
|
1534
1534
|
h,
|
|
1535
1535
|
u,
|
|
1536
1536
|
a,
|
|
@@ -1550,7 +1550,7 @@ let Be = class extends Ct {
|
|
|
1550
1550
|
for (const h of e) {
|
|
1551
1551
|
const { startOffset: u, endOffset: f, rangeType: g, startNodePosition: p, endNodePosition: m } = h;
|
|
1552
1552
|
if (g === dt.RECT) {
|
|
1553
|
-
const S =
|
|
1553
|
+
const S = Gl(
|
|
1554
1554
|
u,
|
|
1555
1555
|
f,
|
|
1556
1556
|
a,
|
|
@@ -1735,7 +1735,7 @@ let Be = class extends Ct {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
const { segmentId: A, segmentPage: d } = a;
|
|
1737
1737
|
A && this._currentSegmentId && A !== this._currentSegmentId && this.setSegment(A), A && d !== this._currentSegmentPage && this.setSegmentPage(d), this._anchorNodePosition = c, e.shiftKey && this._getActiveRangeInstance() ? this._updateActiveRangePosition(c) : e.ctrlKey ? this._removeAllCollapsedTextRanges() : this._isEmpty() || this._removeAllRanges(), t.disableObjectsEvent();
|
|
1738
|
-
const h =
|
|
1738
|
+
const h = bc.create(t);
|
|
1739
1739
|
this._scrollTimers.push(h), h.startScroll(r, i), this._onSelectionStart$.next((g = this._getActiveRangeInstance()) == null ? void 0 : g.startNodePosition), (p = t.getTransformer()) == null || p.clearSelectedObjects();
|
|
1740
1740
|
let u = r, f = i;
|
|
1741
1741
|
this._scenePointerMoveSubs.push(t.onPointerMove$.subscribeEvent((m) => {
|
|
@@ -1782,7 +1782,7 @@ let Be = class extends Ct {
|
|
|
1782
1782
|
}), this._scrollTimers = [];
|
|
1783
1783
|
}
|
|
1784
1784
|
_setSystemHighlightColorToStyle() {
|
|
1785
|
-
const { r: e, g: t, b: o, a: s } =
|
|
1785
|
+
const { r: e, g: t, b: o, a: s } = xc(), r = {
|
|
1786
1786
|
strokeWidth: 1.5,
|
|
1787
1787
|
stroke: "rgba(0, 0, 0, 0)",
|
|
1788
1788
|
strokeActive: "rgba(0, 0, 0, 1)",
|
|
@@ -1794,7 +1794,7 @@ let Be = class extends Ct {
|
|
|
1794
1794
|
return this._rangeList.map(ls);
|
|
1795
1795
|
}
|
|
1796
1796
|
_getAllRectRanges() {
|
|
1797
|
-
return this._rectRangeList.map(
|
|
1797
|
+
return this._rectRangeList.map(Xl);
|
|
1798
1798
|
}
|
|
1799
1799
|
_getActiveRange() {
|
|
1800
1800
|
const e = this._rangeList.find((s) => s.isActive());
|
|
@@ -1847,7 +1847,7 @@ let Be = class extends Ct {
|
|
|
1847
1847
|
if (i == null)
|
|
1848
1848
|
return;
|
|
1849
1849
|
let c = o < 0.5;
|
|
1850
|
-
return t.glyphType ===
|
|
1850
|
+
return t.glyphType === Ui.LIST && (c = !0), {
|
|
1851
1851
|
...i,
|
|
1852
1852
|
isBack: c
|
|
1853
1853
|
};
|
|
@@ -1964,7 +1964,7 @@ let Be = class extends Ct {
|
|
|
1964
1964
|
_getCanvasOffset() {
|
|
1965
1965
|
var t;
|
|
1966
1966
|
const e = (t = this._context.scene) == null ? void 0 : t.getEngine();
|
|
1967
|
-
return
|
|
1967
|
+
return Kl(e);
|
|
1968
1968
|
}
|
|
1969
1969
|
_updateInputPosition(e = !1) {
|
|
1970
1970
|
const t = this._getActiveRangeInstance(), o = t == null ? void 0 : t.getAnchor();
|
|
@@ -2137,13 +2137,13 @@ let Be = class extends Ct {
|
|
|
2137
2137
|
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();
|
|
2138
2138
|
}
|
|
2139
2139
|
};
|
|
2140
|
-
Be =
|
|
2140
|
+
Be = $l([
|
|
2141
2141
|
Qn(1, Fs),
|
|
2142
2142
|
Qn(2, Ts),
|
|
2143
2143
|
Qn(3, Q),
|
|
2144
2144
|
Qn(4, k(de))
|
|
2145
2145
|
], Be);
|
|
2146
|
-
class
|
|
2146
|
+
class eA extends me {
|
|
2147
2147
|
constructor(t, o, s, r, i) {
|
|
2148
2148
|
super();
|
|
2149
2149
|
// Emit change event when editor lose focus.
|
|
@@ -2190,7 +2190,7 @@ class Zl extends me {
|
|
|
2190
2190
|
this._paste$.next(o);
|
|
2191
2191
|
})
|
|
2192
2192
|
), this.disposeWithMe(
|
|
2193
|
-
|
|
2193
|
+
Jc(
|
|
2194
2194
|
t.onInput$,
|
|
2195
2195
|
t.onKeydown$.pipe(ss((o) => {
|
|
2196
2196
|
const s = o.event;
|
|
@@ -2270,7 +2270,7 @@ class Zl extends me {
|
|
|
2270
2270
|
// Set the new document data.
|
|
2271
2271
|
setDocumentData(t, o) {
|
|
2272
2272
|
const { id: s } = t;
|
|
2273
|
-
this._commandService.executeCommand(
|
|
2273
|
+
this._commandService.executeCommand($i.id, {
|
|
2274
2274
|
unitId: s,
|
|
2275
2275
|
snapshot: t,
|
|
2276
2276
|
textRanges: o
|
|
@@ -2434,12 +2434,12 @@ class Zl extends me {
|
|
|
2434
2434
|
return ((t = this._param.initialSnapshot) == null ? void 0 : t.id) || this._param.editorUnitId || "";
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
|
-
var
|
|
2438
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
2437
|
+
var tA = Object.defineProperty, nA = Object.getOwnPropertyDescriptor, oA = (n, e, t, o) => {
|
|
2438
|
+
for (var s = o > 1 ? void 0 : o ? nA(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
2439
2439
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
2440
|
-
return o && s &&
|
|
2440
|
+
return o && s && tA(e, t, s), s;
|
|
2441
2441
|
}, yt = (n, e) => (t, o) => e(t, o, n);
|
|
2442
|
-
const
|
|
2442
|
+
const sA = [
|
|
2443
2443
|
"univer-editor",
|
|
2444
2444
|
"univer-range-selector",
|
|
2445
2445
|
"univer-range-selector-editor",
|
|
@@ -2488,7 +2488,7 @@ let As = class extends me {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
/** @deprecated */
|
|
2490
2490
|
_blurSheetEditor(e) {
|
|
2491
|
-
if (
|
|
2491
|
+
if (sA.some((o) => e.classList.contains(o)))
|
|
2492
2492
|
return;
|
|
2493
2493
|
const t = this.getFocusEditor();
|
|
2494
2494
|
t && t.isSheetEditor() !== !0 && this.blur();
|
|
@@ -2547,7 +2547,7 @@ let As = class extends me {
|
|
|
2547
2547
|
if (e == null)
|
|
2548
2548
|
return !0;
|
|
2549
2549
|
const t = this.getEditor(e);
|
|
2550
|
-
return !t || t.isSheetEditor() || t.isFormulaEditor() ? !0 : t.onlyInputRange() !== !0 && t.onlyInputFormula() !== !0 ? (this.blur(), !0) : t.onlyInputFormula() === !0 && this._contextService.getContextValue(
|
|
2550
|
+
return !t || t.isSheetEditor() || t.isFormulaEditor() ? !0 : t.onlyInputRange() !== !0 && t.onlyInputFormula() !== !0 ? (this.blur(), !0) : t.onlyInputFormula() === !0 && this._contextService.getContextValue(oc) !== !0 ? (this.blur(), !0) : !this.getSpreadsheetFocusState();
|
|
2551
2551
|
}
|
|
2552
2552
|
/** @deprecated */
|
|
2553
2553
|
blur() {
|
|
@@ -2653,7 +2653,7 @@ let As = class extends me {
|
|
|
2653
2653
|
let a = this._renderManagerService.getRenderById(r);
|
|
2654
2654
|
if (a == null && (this._renderManagerService.create(r), a = this._renderManagerService.getRenderById(r)), a) {
|
|
2655
2655
|
a.engine.setContainer(t);
|
|
2656
|
-
const h = new
|
|
2656
|
+
const h = new eA(
|
|
2657
2657
|
{ ...e, render: a, editorDom: t, canvasStyle: s },
|
|
2658
2658
|
this._univerInstanceService,
|
|
2659
2659
|
this._docSelectionManagerService,
|
|
@@ -2687,7 +2687,7 @@ let As = class extends me {
|
|
|
2687
2687
|
if (t.setValueLegality(), o = o.replace(/\r\n/g, "").replace(/\n/g, "").replace(/\n/g, ""), o.length === 0)
|
|
2688
2688
|
return !0;
|
|
2689
2689
|
if (t.onlyInputFormula()) {
|
|
2690
|
-
if (o.substring(0, 1) !==
|
|
2690
|
+
if (o.substring(0, 1) !== zc.EQUALS)
|
|
2691
2691
|
return t.setValueLegality(!1), !1;
|
|
2692
2692
|
const s = this._lexerTreeBuilder.checkIfAddBracket(o);
|
|
2693
2693
|
t.setValueLegality(s === 0);
|
|
@@ -2695,7 +2695,7 @@ let As = class extends me {
|
|
|
2695
2695
|
const s = o.split(",");
|
|
2696
2696
|
if (t.isSingleChoice() && s.length > 1)
|
|
2697
2697
|
return t.setValueLegality(!1), !1;
|
|
2698
|
-
t.setValueLegality(
|
|
2698
|
+
t.setValueLegality(Yc(o));
|
|
2699
2699
|
}
|
|
2700
2700
|
return t.isValueLegality();
|
|
2701
2701
|
}
|
|
@@ -2720,7 +2720,7 @@ let As = class extends me {
|
|
|
2720
2720
|
},
|
|
2721
2721
|
documentStyle: {
|
|
2722
2722
|
renderConfig: {
|
|
2723
|
-
verticalAlign:
|
|
2723
|
+
verticalAlign: sc.TOP,
|
|
2724
2724
|
horizontalAlign: Le.LEFT
|
|
2725
2725
|
},
|
|
2726
2726
|
marginLeft: 3,
|
|
@@ -2730,24 +2730,24 @@ let As = class extends me {
|
|
|
2730
2730
|
};
|
|
2731
2731
|
}
|
|
2732
2732
|
};
|
|
2733
|
-
As =
|
|
2733
|
+
As = oA([
|
|
2734
2734
|
yt(0, Q),
|
|
2735
2735
|
yt(1, Re),
|
|
2736
|
-
yt(2, k(
|
|
2736
|
+
yt(2, k(Wc)),
|
|
2737
2737
|
yt(3, k(W)),
|
|
2738
2738
|
yt(4, Ps),
|
|
2739
2739
|
yt(5, T),
|
|
2740
2740
|
yt(6, ho)
|
|
2741
2741
|
], As);
|
|
2742
|
-
const Ke = _s("univer.editor.service"),
|
|
2743
|
-
textEditorContainer:
|
|
2744
|
-
textEditorContainerActive:
|
|
2745
|
-
textEditorContainerError:
|
|
2746
|
-
textEditorContainerDisabled:
|
|
2747
|
-
textEditorContainerPlaceholder:
|
|
2748
|
-
textEditorValidationError:
|
|
2742
|
+
const Ke = _s("univer.editor.service"), rA = "univer-text-editor-container", iA = "univer-text-editor-container-active", aA = "univer-text-editor-container-error", cA = "univer-text-editor-container-disabled", lA = "univer-text-editor-container-placeholder", AA = "univer-text-editor-validation-error", Ht = {
|
|
2743
|
+
textEditorContainer: rA,
|
|
2744
|
+
textEditorContainerActive: iA,
|
|
2745
|
+
textEditorContainerError: aA,
|
|
2746
|
+
textEditorContainerDisabled: cA,
|
|
2747
|
+
textEditorContainerPlaceholder: lA,
|
|
2748
|
+
textEditorValidationError: AA
|
|
2749
2749
|
};
|
|
2750
|
-
function
|
|
2750
|
+
function dA(n = "", e = "") {
|
|
2751
2751
|
const t = `${e}${Ms}`, o = [], s = [];
|
|
2752
2752
|
for (let i = 0; i < t.length; i++)
|
|
2753
2753
|
t[i] === "\r" && o.push({
|
|
@@ -2771,7 +2771,7 @@ function lA(n = "", e = "") {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
};
|
|
2773
2773
|
}
|
|
2774
|
-
const
|
|
2774
|
+
const uA = /* @__PURE__ */ new Set([
|
|
2775
2775
|
"snapshot",
|
|
2776
2776
|
"resizeCallBack",
|
|
2777
2777
|
"cancelDefaultResizeListener",
|
|
@@ -2792,7 +2792,7 @@ const AA = /* @__PURE__ */ new Set([
|
|
|
2792
2792
|
"onValid",
|
|
2793
2793
|
"placeholder"
|
|
2794
2794
|
]);
|
|
2795
|
-
function
|
|
2795
|
+
function hA(n) {
|
|
2796
2796
|
const {
|
|
2797
2797
|
id: e,
|
|
2798
2798
|
snapshot: t,
|
|
@@ -2827,7 +2827,7 @@ function dA(n) {
|
|
|
2827
2827
|
s !== !0 && v.resize(e), o && o(Y);
|
|
2828
2828
|
});
|
|
2829
2829
|
q.observe(Y);
|
|
2830
|
-
const $ = t != null ? t :
|
|
2830
|
+
const $ = t != null ? t : dA(e, a);
|
|
2831
2831
|
$.id !== e && ($.id = e);
|
|
2832
2832
|
const Ie = v.register(
|
|
2833
2833
|
{
|
|
@@ -2860,7 +2860,7 @@ function dA(n) {
|
|
|
2860
2860
|
}, 30), ze = v.focusStyle$.subscribe((Me) => {
|
|
2861
2861
|
let ke = !1;
|
|
2862
2862
|
Me === e && (ke = !0), ye(ke), setTimeout(() => {
|
|
2863
|
-
if (!
|
|
2863
|
+
if (!Ql(Y))
|
|
2864
2864
|
w(!0);
|
|
2865
2865
|
else {
|
|
2866
2866
|
const Ye = v.getEditor(e);
|
|
@@ -2898,7 +2898,7 @@ function dA(n) {
|
|
|
2898
2898
|
return !(Y == null || Y === "");
|
|
2899
2899
|
}
|
|
2900
2900
|
const ne = Object.fromEntries(
|
|
2901
|
-
Object.entries(n).filter(([Y]) => !
|
|
2901
|
+
Object.entries(n).filter(([Y]) => !uA.has(Y))
|
|
2902
2902
|
);
|
|
2903
2903
|
let ue = Ht.textEditorContainer;
|
|
2904
2904
|
n.className != null && (ue = n.className);
|
|
@@ -2916,7 +2916,7 @@ var We = function() {
|
|
|
2916
2916
|
}
|
|
2917
2917
|
return n;
|
|
2918
2918
|
}, We.apply(this, arguments);
|
|
2919
|
-
},
|
|
2919
|
+
}, gA = function(n, e) {
|
|
2920
2920
|
var t = {};
|
|
2921
2921
|
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && e.indexOf(o) < 0 && (t[o] = n[o]);
|
|
2922
2922
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -2924,15 +2924,15 @@ var We = function() {
|
|
|
2924
2924
|
e.indexOf(o[s]) < 0 && Object.prototype.propertyIsEnumerable.call(n, o[s]) && (t[o[s]] = n[o[s]]);
|
|
2925
2925
|
return t;
|
|
2926
2926
|
}, it = st(function(n, e) {
|
|
2927
|
-
var t = n.icon, o = n.id, s = n.className, r = n.extend, i =
|
|
2928
|
-
return
|
|
2927
|
+
var t = n.icon, o = n.id, s = n.className, r = n.extend, i = gA(n, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(o, " ").concat(s || "").trim(), c = et("_".concat(mA()));
|
|
2928
|
+
return ia(t, "".concat(o), { defIds: t.defIds, idSuffix: c.current }, We({ ref: e, className: a }, i), r);
|
|
2929
2929
|
});
|
|
2930
|
-
function
|
|
2931
|
-
return rt(n.tag, We(We({ key: e },
|
|
2932
|
-
return
|
|
2930
|
+
function ia(n, e, t, o, s) {
|
|
2931
|
+
return rt(n.tag, We(We({ key: e }, fA(n, t, s)), o), (pA(n, t).children || []).map(function(r, i) {
|
|
2932
|
+
return ia(r, "".concat(e, "-").concat(n.tag, "-").concat(i), t, void 0, s);
|
|
2933
2933
|
}));
|
|
2934
2934
|
}
|
|
2935
|
-
function
|
|
2935
|
+
function fA(n, e, t) {
|
|
2936
2936
|
var o = We({}, n.attrs);
|
|
2937
2937
|
t != null && t.colorChannel1 && o.fill === "colorChannel1" && (o.fill = t.colorChannel1);
|
|
2938
2938
|
var s = e.defIds;
|
|
@@ -2941,102 +2941,102 @@ function hA(n, e, t) {
|
|
|
2941
2941
|
typeof a == "string" && (o[i] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
|
|
2942
2942
|
})), o;
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2944
|
+
function pA(n, e) {
|
|
2945
2945
|
var t, o = e.defIds;
|
|
2946
2946
|
return !o || o.length === 0 ? n : n.tag === "defs" && (!((t = n.children) === null || t === void 0) && t.length) ? We(We({}, n), { children: n.children.map(function(s) {
|
|
2947
2947
|
return typeof s.attrs.id == "string" && o && o.indexOf(s.attrs.id) > -1 ? We(We({}, s), { attrs: We(We({}, s.attrs), { id: s.attrs.id + e.idSuffix }) }) : s;
|
|
2948
2948
|
}) }) : n;
|
|
2949
2949
|
}
|
|
2950
|
-
function
|
|
2950
|
+
function mA() {
|
|
2951
2951
|
return Math.random().toString(36).substring(2, 8);
|
|
2952
2952
|
}
|
|
2953
2953
|
it.displayName = "UniverIcon";
|
|
2954
|
-
var
|
|
2954
|
+
var SA = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H13.9999C14.3313 6.76641 14.5999 6.49778 14.5999 6.16641 14.5999 5.83504 14.3313 5.56641 13.9999 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H13.9999C14.3313 14.1004 14.5999 13.8318 14.5999 13.5004 14.5999 13.169 14.3313 12.9004 13.9999 12.9004H1.9999z" } }] }, aa = st(function(n, e) {
|
|
2955
2955
|
return rt(it, Object.assign({}, n, {
|
|
2956
2956
|
id: "align-text-both-single",
|
|
2957
2957
|
ref: e,
|
|
2958
|
-
icon:
|
|
2958
|
+
icon: SA
|
|
2959
2959
|
}));
|
|
2960
2960
|
});
|
|
2961
|
-
|
|
2962
|
-
var
|
|
2961
|
+
aa.displayName = "AlignTextBothSingle";
|
|
2962
|
+
var EA = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z" } }] }, ca = st(function(n, e) {
|
|
2963
2963
|
return rt(it, Object.assign({}, n, {
|
|
2964
2964
|
id: "close-single",
|
|
2965
2965
|
ref: e,
|
|
2966
|
-
icon:
|
|
2966
|
+
icon: EA
|
|
2967
2967
|
}));
|
|
2968
2968
|
});
|
|
2969
|
-
|
|
2970
|
-
var
|
|
2969
|
+
ca.displayName = "CloseSingle";
|
|
2970
|
+
var IA = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, la = st(function(n, e) {
|
|
2971
2971
|
return rt(it, Object.assign({}, n, {
|
|
2972
2972
|
id: "delete-single",
|
|
2973
2973
|
ref: e,
|
|
2974
|
-
icon:
|
|
2974
|
+
icon: IA
|
|
2975
2975
|
}));
|
|
2976
2976
|
});
|
|
2977
|
-
|
|
2978
|
-
var
|
|
2977
|
+
la.displayName = "DeleteSingle";
|
|
2978
|
+
var vA = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM3.33315 5.56641C3.00178 5.56641 2.73315 5.83504 2.73315 6.16641 2.73315 6.49778 3.00178 6.76641 3.33315 6.76641H12.6665C12.9979 6.76641 13.2665 6.49778 13.2665 6.16641 13.2665 5.83504 12.9979 5.56641 12.6665 5.56641H3.33315zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM3.33315 12.9004C3.00178 12.9004 2.73315 13.169 2.73315 13.5004 2.73315 13.8318 3.00178 14.1004 3.33315 14.1004H12.6665C12.9979 14.1004 13.2665 13.8318 13.2665 13.5004 13.2665 13.169 12.9979 12.9004 12.6665 12.9004H3.33315z" } }] }, Aa = st(function(n, e) {
|
|
2979
2979
|
return rt(it, Object.assign({}, n, {
|
|
2980
2980
|
id: "horizontally-single",
|
|
2981
2981
|
ref: e,
|
|
2982
|
-
icon:
|
|
2982
|
+
icon: vA
|
|
2983
2983
|
}));
|
|
2984
2984
|
});
|
|
2985
|
-
|
|
2986
|
-
var
|
|
2985
|
+
Aa.displayName = "HorizontallySingle";
|
|
2986
|
+
var CA = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] }, da = st(function(n, e) {
|
|
2987
2987
|
return rt(it, Object.assign({}, n, {
|
|
2988
2988
|
id: "increase-single",
|
|
2989
2989
|
ref: e,
|
|
2990
|
-
icon:
|
|
2990
|
+
icon: CA
|
|
2991
2991
|
}));
|
|
2992
2992
|
});
|
|
2993
|
-
|
|
2994
|
-
var
|
|
2993
|
+
da.displayName = "IncreaseSingle";
|
|
2994
|
+
var RA = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H11.3332C11.6646 6.76641 11.9332 6.49778 11.9332 6.16641 11.9332 5.83504 11.6646 5.56641 11.3332 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H11.3332C11.6646 14.1004 11.9332 13.8318 11.9332 13.5004 11.9332 13.169 11.6646 12.9004 11.3332 12.9004H1.9999z" } }] }, ua = st(function(n, e) {
|
|
2995
2995
|
return rt(it, Object.assign({}, n, {
|
|
2996
2996
|
id: "left-justifying-single",
|
|
2997
2997
|
ref: e,
|
|
2998
|
-
icon:
|
|
2998
|
+
icon: RA
|
|
2999
2999
|
}));
|
|
3000
3000
|
});
|
|
3001
|
-
|
|
3002
|
-
var
|
|
3001
|
+
ua.displayName = "LeftJustifyingSingle";
|
|
3002
|
+
var bA = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM4.66665 5.56641C4.33528 5.56641 4.06665 5.83504 4.06665 6.16641 4.06665 6.49778 4.33528 6.76641 4.66665 6.76641H14C14.3314 6.76641 14.6 6.49778 14.6 6.16641 14.6 5.83504 14.3314 5.56641 14 5.56641H4.66665zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM4.66665 12.9004C4.33528 12.9004 4.06665 13.169 4.06665 13.5004 4.06665 13.8318 4.33528 14.1004 4.66665 14.1004H14C14.3314 14.1004 14.6 13.8318 14.6 13.5004 14.6 13.169 14.3314 12.9004 14 12.9004H4.66665z" } }] }, ha = st(function(n, e) {
|
|
3003
3003
|
return rt(it, Object.assign({}, n, {
|
|
3004
3004
|
id: "right-justifying-single",
|
|
3005
3005
|
ref: e,
|
|
3006
|
-
icon:
|
|
3006
|
+
icon: bA
|
|
3007
3007
|
}));
|
|
3008
3008
|
});
|
|
3009
|
-
|
|
3010
|
-
var
|
|
3009
|
+
ha.displayName = "RightJustifyingSingle";
|
|
3010
|
+
var xA = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.6185 12.4423C12.5907 12.2749 12.7773 12.15 12.9343 12.2308L15.4242 13.5126C15.6102 13.6084 15.5544 13.8745 15.3439 13.8955L14.2456 14.184L13.4521 15.1286C13.3495 15.2939 13.085 15.2463 13.0534 15.0568L12.6185 12.4423Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1 3.6C1 2.16406 2.16406 1 3.6 1H12.3C13.7359 1 14.9 2.16406 14.9 3.6V5.81156C14.9003 5.81881 14.9004 5.82609 14.9004 5.8334C14.9004 5.84071 14.9003 5.84799 14.9 5.85524V10.045C14.9003 10.0522 14.9004 10.0595 14.9004 10.0668C14.9004 10.3982 14.6318 10.6668 14.3004 10.6668H11.1668C10.8907 10.6668 10.6668 10.8907 10.6668 11.1668V14.3C10.6668 14.6314 10.3982 14.9 10.0668 14.9L10.05 14.8998L3.6 14.9C2.16406 14.9 1 13.7359 1 12.3V3.6ZM13.2 5.2334C13.4761 5.2334 13.7 5.00954 13.7 4.7334V3.6C13.7 2.8268 13.0732 2.2 12.3 2.2H11.1668C10.8907 2.2 10.6668 2.42386 10.6668 2.7V4.7334C10.6668 5.00954 10.8907 5.2334 11.1668 5.2334H13.2ZM10.6668 6.9334C10.6668 6.65726 10.8907 6.4334 11.1668 6.4334H13.2C13.4761 6.4334 13.7 6.65726 13.7 6.9334V8.9668C13.7 9.24294 13.4761 9.4668 13.2 9.4668H11.1668C10.8907 9.4668 10.6668 9.24294 10.6668 8.9668V6.9334ZM8.9668 5.2334C9.24294 5.2334 9.4668 5.00954 9.4668 4.7334V2.7C9.4668 2.42386 9.24294 2.2 8.9668 2.2H6.9334C6.65726 2.2 6.4334 2.42386 6.4334 2.7V4.7334C6.4334 5.00954 6.65726 5.2334 6.9334 5.2334L8.9668 5.2334ZM6.4334 6.9334C6.4334 6.65726 6.65726 6.4334 6.9334 6.4334L8.9668 6.4334C9.24294 6.4334 9.4668 6.65726 9.4668 6.9334V8.9668C9.4668 9.24294 9.24294 9.4668 8.9668 9.4668L6.9334 9.4668C6.65726 9.4668 6.4334 9.24294 6.4334 8.9668V6.9334ZM4.7334 5.2334C5.00954 5.2334 5.2334 5.00954 5.2334 4.7334V2.7C5.2334 2.42386 5.00954 2.2 4.7334 2.2H3.6C2.8268 2.2 2.2 2.8268 2.2 3.6V4.7334C2.2 5.00954 2.42386 5.2334 2.7 5.2334H4.7334ZM2.2 6.9334C2.2 6.65726 2.42386 6.4334 2.7 6.4334H4.7334C5.00954 6.4334 5.2334 6.65725 5.2334 6.9334V8.9668C5.2334 9.24294 5.00954 9.4668 4.7334 9.4668H2.7C2.42386 9.4668 2.2 9.24294 2.2 8.9668V6.9334ZM5.2334 11.1668C5.2334 10.8907 5.00954 10.6668 4.7334 10.6668H2.7C2.42386 10.6668 2.2 10.8907 2.2 11.1668V12.3C2.2 13.0732 2.8268 13.7 3.6 13.7H4.7334C5.00954 13.7 5.2334 13.4761 5.2334 13.2V11.1668ZM9.4668 11.1668C9.4668 10.8907 9.24294 10.6668 8.9668 10.6668H6.9334C6.65726 10.6668 6.4334 10.8907 6.4334 11.1668V13.2C6.4334 13.4761 6.65726 13.7 6.9334 13.7H8.9668C9.24294 13.7 9.4668 13.4761 9.4668 13.2V11.1668Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, ga = st(function(n, e) {
|
|
3011
3011
|
return rt(it, Object.assign({}, n, {
|
|
3012
3012
|
id: "select-range-single",
|
|
3013
3013
|
ref: e,
|
|
3014
|
-
icon:
|
|
3014
|
+
icon: xA
|
|
3015
3015
|
}));
|
|
3016
3016
|
});
|
|
3017
|
-
|
|
3018
|
-
var
|
|
3017
|
+
ga.displayName = "SelectRangeSingle";
|
|
3018
|
+
var OA = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.96372 2.59116C5.19803 2.35684 5.19803 1.97695 4.96372 1.74263 4.7294 1.50832 4.3495 1.50832 4.11519 1.74263L2.53945 3.31837 1.96372 2.74263C1.7294 2.50832 1.3495 2.50832 1.11519 2.74263.880874 2.97695.880874 3.35684 1.11519 3.59116L2.11519 4.59116C2.3495 4.82547 2.7294 4.82547 2.96372 4.59116L4.96372 2.59116zM14.4605 2.56689H6.8981C6.56672 2.56689 6.2981 2.83552 6.2981 3.16689 6.2981 3.49827 6.56672 3.76689 6.8981 3.76689H14.4605C14.7918 3.76689 15.0605 3.49827 15.0605 3.16689 15.0605 2.83552 14.7918 2.56689 14.4605 2.56689zM6.8981 7.2334C6.56672 7.2334 6.2981 7.50203 6.2981 7.8334 6.2981 8.16477 6.56672 8.4334 6.8981 8.4334H14.4605C14.7918 8.4334 15.0605 8.16477 15.0605 7.8334 15.0605 7.50203 14.7918 7.2334 14.4605 7.2334H6.8981zM6.2981 12.4999C6.2981 12.1685 6.56672 11.8999 6.8981 11.8999H14.4605C14.7918 11.8999 15.0605 12.1685 15.0605 12.4999 15.0605 12.8313 14.7918 13.0999 14.4605 13.0999H6.8981C6.56672 13.0999 6.2981 12.8313 6.2981 12.4999z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.87279 5.8999C1.80504 5.8999.939453 6.76549.939453 7.83324.939453 8.90099 1.80504 9.76657 2.87279 9.76657 3.94054 9.76657 4.80612 8.90099 4.80612 7.83324 4.80612 6.76549 3.94054 5.8999 2.87279 5.8999zM2.13945 7.83324C2.13945 7.42823 2.46778 7.0999 2.87279 7.0999 3.2778 7.0999 3.60612 7.42823 3.60612 7.83324 3.60612 8.23824 3.2778 8.56657 2.87279 8.56657 2.46778 8.56657 2.13945 8.23824 2.13945 7.83324zM.939453 12.5002C.939453 11.4325 1.80504 10.5669 2.87279 10.5669 3.94054 10.5669 4.80612 11.4325 4.80612 12.5002 4.80612 13.568 3.94054 14.4336 2.87279 14.4336 1.80504 14.4336.939453 13.568.939453 12.5002zM2.87279 11.7669C2.46778 11.7669 2.13945 12.0952 2.13945 12.5002 2.13945 12.9052 2.46778 13.2336 2.87279 13.2336 3.2778 13.2336 3.60612 12.9052 3.60612 12.5002 3.60612 12.0952 3.2778 11.7669 2.87279 11.7669z", fillRule: "evenodd", clipRule: "evenodd" } }] }, fa = st(function(n, e) {
|
|
3019
3019
|
return rt(it, Object.assign({}, n, {
|
|
3020
3020
|
id: "todo-list",
|
|
3021
3021
|
ref: e,
|
|
3022
|
-
icon:
|
|
3022
|
+
icon: OA
|
|
3023
3023
|
}));
|
|
3024
3024
|
});
|
|
3025
|
-
|
|
3026
|
-
function
|
|
3025
|
+
fa.displayName = "TodoList";
|
|
3026
|
+
function pa(n) {
|
|
3027
3027
|
var e, t, o = "";
|
|
3028
3028
|
if (typeof n == "string" || typeof n == "number") o += n;
|
|
3029
3029
|
else if (typeof n == "object") if (Array.isArray(n)) {
|
|
3030
3030
|
var s = n.length;
|
|
3031
|
-
for (e = 0; e < s; e++) n[e] && (t =
|
|
3031
|
+
for (e = 0; e < s; e++) n[e] && (t = pa(n[e])) && (o && (o += " "), o += t);
|
|
3032
3032
|
} else for (t in n) n[t] && (o && (o += " "), o += t);
|
|
3033
3033
|
return o;
|
|
3034
3034
|
}
|
|
3035
3035
|
function Kn() {
|
|
3036
|
-
for (var n, e, t = 0, o = "", s = arguments.length; t < s; t++) (n = arguments[t]) && (e =
|
|
3036
|
+
for (var n, e, t = 0, o = "", s = arguments.length; t < s; t++) (n = arguments[t]) && (e = pa(n)) && (o && (o += " "), o += e);
|
|
3037
3037
|
return o;
|
|
3038
3038
|
}
|
|
3039
|
-
class
|
|
3039
|
+
class yA extends me {
|
|
3040
3040
|
constructor() {
|
|
3041
3041
|
super(...arguments);
|
|
3042
3042
|
b(this, "_currentSelectorId");
|
|
@@ -3066,28 +3066,28 @@ class xA extends me {
|
|
|
3066
3066
|
this._selectorModalVisible$.next(t);
|
|
3067
3067
|
}
|
|
3068
3068
|
}
|
|
3069
|
-
const
|
|
3069
|
+
const ma = _s(
|
|
3070
3070
|
"univer.range-selector.service"
|
|
3071
|
-
),
|
|
3072
|
-
rangeSelector:
|
|
3073
|
-
rangeSelectorEditor:
|
|
3074
|
-
rangeSelectorIcon:
|
|
3075
|
-
rangeSelectorActive:
|
|
3076
|
-
rangeSelectorError:
|
|
3077
|
-
rangeSelectorDisabled:
|
|
3078
|
-
rangeSelectorModal:
|
|
3079
|
-
rangeSelectorModalContainer:
|
|
3080
|
-
rangeSelectorModalContainerInput:
|
|
3081
|
-
rangeSelectorModalContainerInputActive:
|
|
3082
|
-
rangeSelectorModalContainerButton:
|
|
3083
|
-
rangeSelectorModalContainerDeleteButton:
|
|
3084
|
-
rangeSelectorModalAdd:
|
|
3085
|
-
rangeSelectorModalAddButton:
|
|
3086
|
-
},
|
|
3071
|
+
), TA = "univer-range-selector", BA = "univer-range-selector-editor", _A = "univer-range-selector-icon", MA = "univer-range-selector-active", PA = "univer-range-selector-error", DA = "univer-range-selector-disabled", wA = "univer-range-selector-modal", NA = "univer-range-selector-modal-container", QA = "univer-range-selector-modal-container-input", UA = "univer-range-selector-modal-container-input-active", LA = "univer-range-selector-modal-container-button", FA = "univer-range-selector-modal-container-delete-button", HA = "univer-range-selector-modal-add", VA = "univer-range-selector-modal-add-button", xe = {
|
|
3072
|
+
rangeSelector: TA,
|
|
3073
|
+
rangeSelectorEditor: BA,
|
|
3074
|
+
rangeSelectorIcon: _A,
|
|
3075
|
+
rangeSelectorActive: MA,
|
|
3076
|
+
rangeSelectorError: PA,
|
|
3077
|
+
rangeSelectorDisabled: DA,
|
|
3078
|
+
rangeSelectorModal: wA,
|
|
3079
|
+
rangeSelectorModalContainer: NA,
|
|
3080
|
+
rangeSelectorModalContainerInput: QA,
|
|
3081
|
+
rangeSelectorModalContainerInputActive: UA,
|
|
3082
|
+
rangeSelectorModalContainerButton: LA,
|
|
3083
|
+
rangeSelectorModalContainerDeleteButton: FA,
|
|
3084
|
+
rangeSelectorModalAdd: HA,
|
|
3085
|
+
rangeSelectorModalAddButton: VA
|
|
3086
|
+
}, kA = {
|
|
3087
3087
|
pointerEvents: "none"
|
|
3088
3088
|
};
|
|
3089
|
-
function
|
|
3090
|
-
const { dialogOnly: e, onChange: t, id: o, value: s = "", width: r = 220, placeholder: i = "", size: a = "middle", onActive: c, onValid: l, isSingleChoice: A = !1, openForSheetUnitId: d, openForSheetSubUnitId: h, isReadonly: u = !1, className: f, textEditorClassName: g, onSelectorVisibleChange: p } = n, m =
|
|
3089
|
+
function Kf(n) {
|
|
3090
|
+
const { dialogOnly: e, onChange: t, id: o, value: s = "", width: r = 220, placeholder: i = "", size: a = "middle", onActive: c, onValid: l, isSingleChoice: A = !1, openForSheetUnitId: d, openForSheetSubUnitId: h, isReadonly: u = !1, className: f, textEditorClassName: g, onSelectorVisibleChange: p } = n, m = tl(p), [S, I] = he([""]), C = (oe) => {
|
|
3091
3091
|
I((Ae) => [...Ae, oe]);
|
|
3092
3092
|
}, R = (oe) => {
|
|
3093
3093
|
I(
|
|
@@ -3104,7 +3104,7 @@ function qf(n) {
|
|
|
3104
3104
|
const ve = [...Ae];
|
|
3105
3105
|
return ve.length > 0 && (ve[ve.length - 1] = oe), ve;
|
|
3106
3106
|
});
|
|
3107
|
-
}, y = se(Ke), O = se(
|
|
3107
|
+
}, y = se(Ke), O = se(ma), D = se(Q), [x, _] = he(!1), M = se(Xe), [w, F] = he(!1), [H, te] = he(!0), [Z, G] = he(s), [z, ne] = he(-1), ue = et(null), re = et(-1), Y = et(d), q = et(h), $ = et(A), Ie = et(u);
|
|
3108
3108
|
Oe(() => {
|
|
3109
3109
|
const oe = ue.current;
|
|
3110
3110
|
if (!oe)
|
|
@@ -3126,7 +3126,7 @@ function qf(n) {
|
|
|
3126
3126
|
return;
|
|
3127
3127
|
const lt = Ot[Ot.length - 1];
|
|
3128
3128
|
let Lt = "";
|
|
3129
|
-
lt.unitId === Y.current && lt.sheetId === q.current ? Lt =
|
|
3129
|
+
lt.unitId === Y.current && lt.sheetId === q.current ? Lt = Gc(lt.range) : lt.unitId === Y.current ? Lt = qc(lt.sheetName, lt.range) : Lt = Kc(lt.unitId, lt.sheetName, lt.range), Rr >= 1 && !$.current ? (C(Lt), ne(-1)) : re.current === -1 ? v(Lt) : E(re.current, Lt);
|
|
3130
3130
|
});
|
|
3131
3131
|
return () => {
|
|
3132
3132
|
ln.unsubscribe(), Ae.unobserve(oe);
|
|
@@ -3178,7 +3178,7 @@ function qf(n) {
|
|
|
3178
3178
|
t && t([]);
|
|
3179
3179
|
return;
|
|
3180
3180
|
}
|
|
3181
|
-
const Ae =
|
|
3181
|
+
const Ae = Xc(oe, ke);
|
|
3182
3182
|
t && t(Ae || []);
|
|
3183
3183
|
}
|
|
3184
3184
|
let $e = xe.rangeSelector;
|
|
@@ -3195,19 +3195,19 @@ function qf(n) {
|
|
|
3195
3195
|
e && (oe.stopPropagation(), oe.preventDefault(), Fe());
|
|
3196
3196
|
},
|
|
3197
3197
|
children: [
|
|
3198
|
-
/* @__PURE__ */ B.jsx(
|
|
3199
|
-
/* @__PURE__ */ B.jsx(
|
|
3198
|
+
/* @__PURE__ */ B.jsx(hA, { style: e ? kA : void 0, placeholder: i, value: s, isReadonly: u, isSingleChoice: A, openForSheetUnitId: d, openForSheetSubUnitId: h, onValid: ze, onActive: Te, onChange: Ye, id: o, onlyInputRange: !0, canvasStyle: { fontSize: 10 }, className: xe.rangeSelectorEditor }),
|
|
3199
|
+
/* @__PURE__ */ B.jsx(Zi, { title: M.t("rangeSelector.buttonTooltip"), placement: "bottom", children: /* @__PURE__ */ B.jsx("button", { type: "button", className: xe.rangeSelectorIcon, onClick: Fe, children: /* @__PURE__ */ B.jsx(ga, {}) }) })
|
|
3200
3200
|
]
|
|
3201
3201
|
}
|
|
3202
3202
|
),
|
|
3203
3203
|
/* @__PURE__ */ B.jsx(
|
|
3204
|
-
|
|
3204
|
+
Sl,
|
|
3205
3205
|
{
|
|
3206
3206
|
width: "328px",
|
|
3207
3207
|
visible: x,
|
|
3208
3208
|
title: M.t("rangeSelector.title"),
|
|
3209
3209
|
draggable: !0,
|
|
3210
|
-
closeIcon: /* @__PURE__ */ B.jsx(
|
|
3210
|
+
closeIcon: /* @__PURE__ */ B.jsx(ca, {}),
|
|
3211
3211
|
footer: /* @__PURE__ */ B.jsxs("footer", { children: [
|
|
3212
3212
|
/* @__PURE__ */ B.jsx(Wn, { onClick: ye, children: M.t("rangeSelector.cancel") }),
|
|
3213
3213
|
/* @__PURE__ */ B.jsx(Wn, { style: { marginLeft: 10 }, onClick: xt, type: "primary", children: M.t("rangeSelector.confirm") })
|
|
@@ -3216,7 +3216,7 @@ function qf(n) {
|
|
|
3216
3216
|
children: /* @__PURE__ */ B.jsxs("div", { className: Kn(xe.rangeSelectorModal, f), children: [
|
|
3217
3217
|
S.map((oe, Ae) => /* @__PURE__ */ B.jsxs("div", { className: xe.rangeSelectorModalContainer, children: [
|
|
3218
3218
|
/* @__PURE__ */ B.jsx("div", { style: { width: S.length === 1 ? "280px" : "252px" }, className: xe.rangeSelectorModalContainerInput, children: /* @__PURE__ */ B.jsx(
|
|
3219
|
-
|
|
3219
|
+
El,
|
|
3220
3220
|
{
|
|
3221
3221
|
className: z === Ae || S.length - 1 === Ae && z === -1 ? xe.rangeSelectorModalContainerInputActive : "",
|
|
3222
3222
|
placeholder: M.t("rangeSelector.placeHolder"),
|
|
@@ -3227,10 +3227,10 @@ function qf(n) {
|
|
|
3227
3227
|
},
|
|
3228
3228
|
`input${Ae}`
|
|
3229
3229
|
) }),
|
|
3230
|
-
/* @__PURE__ */ B.jsx("div", { style: { display: S.length === 1 ? "none" : "inline-block" }, className: xe.rangeSelectorModalContainerButton, children: /* @__PURE__ */ B.jsx(
|
|
3230
|
+
/* @__PURE__ */ B.jsx("div", { style: { display: S.length === 1 ? "none" : "inline-block" }, className: xe.rangeSelectorModalContainerButton, children: /* @__PURE__ */ B.jsx(la, { className: xe.rangeSelectorModalContainerDeleteButton, onClick: () => R(Ae) }) })
|
|
3231
3231
|
] }, Ae)),
|
|
3232
3232
|
/* @__PURE__ */ B.jsx("div", { style: { display: A ? "none" : "unset" }, className: xe.rangeSelectorModalAdd, children: /* @__PURE__ */ B.jsxs(Wn, { type: "link", size: "small", onClick: Me, className: xe.rangeSelectorModalAddButton, children: [
|
|
3233
|
-
/* @__PURE__ */ B.jsx(
|
|
3233
|
+
/* @__PURE__ */ B.jsx(da, {}),
|
|
3234
3234
|
/* @__PURE__ */ B.jsx("span", { children: M.t("rangeSelector.addAnotherRange") })
|
|
3235
3235
|
] }) })
|
|
3236
3236
|
] })
|
|
@@ -3238,7 +3238,7 @@ function qf(n) {
|
|
|
3238
3238
|
)
|
|
3239
3239
|
] });
|
|
3240
3240
|
}
|
|
3241
|
-
function
|
|
3241
|
+
function Sa(n) {
|
|
3242
3242
|
var o;
|
|
3243
3243
|
const { dataStream: e } = (o = n.body) != null ? o : {}, t = [
|
|
3244
3244
|
U.TABLE_START,
|
|
@@ -3261,18 +3261,18 @@ function ma(n) {
|
|
|
3261
3261
|
}
|
|
3262
3262
|
return 0;
|
|
3263
3263
|
}
|
|
3264
|
-
const
|
|
3265
|
-
panel:
|
|
3266
|
-
optionsSection:
|
|
3267
|
-
optionsFormItem:
|
|
3268
|
-
optionsInput:
|
|
3269
|
-
optionsMarginSetting:
|
|
3264
|
+
const Ea = "COMPONENT_DOC_HEADER_FOOTER_PANEL", jA = "univer-panel", WA = "univer-options-section", zA = "univer-options-form-item", YA = "univer-options-input", GA = "univer-options-margin-setting", He = {
|
|
3265
|
+
panel: jA,
|
|
3266
|
+
optionsSection: WA,
|
|
3267
|
+
optionsFormItem: zA,
|
|
3268
|
+
optionsInput: YA,
|
|
3269
|
+
optionsMarginSetting: GA
|
|
3270
3270
|
};
|
|
3271
|
-
function
|
|
3271
|
+
function qA(n, e, t) {
|
|
3272
3272
|
const { useFirstPageHeaderFooter: o, evenAndOddHeaders: s, defaultHeaderId: r, defaultFooterId: i, firstPageHeaderId: a, firstPageFooterId: c, evenPageHeaderId: l, evenPageFooterId: A } = n;
|
|
3273
3273
|
return e === Se.HEADER ? o === L.TRUE ? t === 0 ? a : s === L.TRUE && t % 2 === 1 ? l : r : s === L.TRUE && t % 2 === 1 ? l : r : o === L.TRUE ? t === 0 ? c : s === L.TRUE && t % 2 === 1 ? A : i : s === L.TRUE && t % 2 === 1 ? A : i;
|
|
3274
3274
|
}
|
|
3275
|
-
const
|
|
3275
|
+
const KA = (n) => {
|
|
3276
3276
|
const e = se(Xe), t = se(Q), o = se(Re), s = se(T), r = se(Fs), { unitId: i } = n, a = o.getRenderById(i).with(Be), [c, l] = he({}), A = (u, f) => {
|
|
3277
3277
|
var v;
|
|
3278
3278
|
l((y) => ({
|
|
@@ -3296,7 +3296,7 @@ const GA = (n) => {
|
|
|
3296
3296
|
}
|
|
3297
3297
|
});
|
|
3298
3298
|
} else {
|
|
3299
|
-
const y = a.getSegmentPage(), O = a.getSegment(), D =
|
|
3299
|
+
const y = a.getSegmentPage(), O = a.getSegment(), D = qA(
|
|
3300
3300
|
{
|
|
3301
3301
|
...p,
|
|
3302
3302
|
[f]: u ? L.TRUE : L.FALSE
|
|
@@ -3402,7 +3402,7 @@ const GA = (n) => {
|
|
|
3402
3402
|
] }),
|
|
3403
3403
|
/* @__PURE__ */ B.jsx("div", { className: He.optionsSection, children: /* @__PURE__ */ B.jsx(Wn, { onClick: h, children: e.t("headerFooter.closeHeaderFooter") }) })
|
|
3404
3404
|
] });
|
|
3405
|
-
},
|
|
3405
|
+
}, XA = () => {
|
|
3406
3406
|
var l;
|
|
3407
3407
|
const n = se(Xe), e = se(Re), s = se(Q).getCurrentUniverDocInstance().getUnitId(), i = ((l = e.getRenderById(s)) == null ? void 0 : l.with(de)).getViewModel(), [a, c] = he(!0);
|
|
3408
3408
|
return Oe(() => {
|
|
@@ -3414,15 +3414,15 @@ const GA = (n) => {
|
|
|
3414
3414
|
return () => {
|
|
3415
3415
|
d.unsubscribe();
|
|
3416
3416
|
};
|
|
3417
|
-
}, []), /* @__PURE__ */ B.jsx("div", { className: He.panel, children: a ? /* @__PURE__ */ B.jsx(
|
|
3418
|
-
}, Gr = 18, qr = 200, ko = 6,
|
|
3419
|
-
function
|
|
3417
|
+
}, []), /* @__PURE__ */ B.jsx("div", { className: He.panel, children: a ? /* @__PURE__ */ B.jsx(KA, { unitId: s }) : /* @__PURE__ */ B.jsx("div", { className: He.panelDisableText, children: n.t("headerFooter.disableText") }) });
|
|
3418
|
+
}, Gr = 18, qr = 200, ko = 6, JA = 4;
|
|
3419
|
+
function ZA(n, e) {
|
|
3420
3420
|
let { radius: t, width: o, height: s } = e;
|
|
3421
3421
|
t = t != null ? t : 0, o = o != null ? o : 30, s = s != null ? s : 30;
|
|
3422
3422
|
let r = 0;
|
|
3423
3423
|
r = Math.min(t, o / 2, s / 2), n.beginPath(), n.moveTo(0, 0), n.lineTo(o, 0), n.lineTo(o, s - r), n.arc(o - r, s - r, r, 0, Math.PI / 2, !1), n.lineTo(0, s), n.lineTo(0, 0), n.closePath(), e.fill && (n.save(), n.fillStyle = e.fill, e.fillRule === "evenodd" ? n.fill("evenodd") : n.fill(), n.restore());
|
|
3424
3424
|
}
|
|
3425
|
-
class Xn extends
|
|
3425
|
+
class Xn extends Oc {
|
|
3426
3426
|
constructor(t, o) {
|
|
3427
3427
|
super(t, o);
|
|
3428
3428
|
b(this, "color");
|
|
@@ -3436,14 +3436,14 @@ class Xn extends bc {
|
|
|
3436
3436
|
i + 2 * ko,
|
|
3437
3437
|
qr
|
|
3438
3438
|
);
|
|
3439
|
-
|
|
3439
|
+
ZA(t, {
|
|
3440
3440
|
height: Gr,
|
|
3441
3441
|
width: a,
|
|
3442
3442
|
radius: 4,
|
|
3443
3443
|
fill: r,
|
|
3444
3444
|
evented: !1
|
|
3445
3445
|
}), t.fillStyle = "rgba(58, 96, 247, 1)";
|
|
3446
|
-
const c = ko, l = Gr -
|
|
3446
|
+
const c = ko, l = Gr - JA, A = qr - 2 * ko;
|
|
3447
3447
|
if (i > A) {
|
|
3448
3448
|
let d = "", h = 0;
|
|
3449
3449
|
for (const u of s) {
|
|
@@ -3464,14 +3464,14 @@ class Xn extends bc {
|
|
|
3464
3464
|
Xn.drawWith(t, this);
|
|
3465
3465
|
}
|
|
3466
3466
|
}
|
|
3467
|
-
var
|
|
3468
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
3467
|
+
var $A = Object.defineProperty, ed = Object.getOwnPropertyDescriptor, td = (n, e, t, o) => {
|
|
3468
|
+
for (var s = o > 1 ? void 0 : o ? ed(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
3469
3469
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3470
|
-
return o && s &&
|
|
3470
|
+
return o && s && $A(e, t, s), s;
|
|
3471
3471
|
}, mt = (n, e) => (t, o) => e(t, o, n);
|
|
3472
3472
|
const Kr = "rgba(58, 96, 247, 1)", Xr = "rgba(58, 96, 247, 0.08)";
|
|
3473
3473
|
var Ue = /* @__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))(Ue || {});
|
|
3474
|
-
function
|
|
3474
|
+
function nd(n, e, t) {
|
|
3475
3475
|
const { documentStyle: o } = n.getDataModel().getSnapshot(), {
|
|
3476
3476
|
defaultHeaderId: s,
|
|
3477
3477
|
defaultFooterId: r,
|
|
@@ -3544,7 +3544,7 @@ let ds = class extends me {
|
|
|
3544
3544
|
}
|
|
3545
3545
|
_initCustomComponents() {
|
|
3546
3546
|
const e = this._componentManager;
|
|
3547
|
-
this.disposeWithMe(e.register(
|
|
3547
|
+
this.disposeWithMe(e.register(Ea, XA));
|
|
3548
3548
|
}
|
|
3549
3549
|
_init() {
|
|
3550
3550
|
const { unitId: e } = this._context, t = It(this._context);
|
|
@@ -3571,12 +3571,12 @@ let ds = class extends me {
|
|
|
3571
3571
|
if (u === f)
|
|
3572
3572
|
return;
|
|
3573
3573
|
d.setEditArea(f);
|
|
3574
|
-
const { createType: p, headerFooterId: m } =
|
|
3574
|
+
const { createType: p, headerFooterId: m } = nd(d, f, g);
|
|
3575
3575
|
if (f === Se.BODY)
|
|
3576
3576
|
this._docSelectionRenderService.setSegment(""), this._docSelectionRenderService.setSegmentPage(-1), this._docSelectionRenderService.setCursorManually(r, i);
|
|
3577
3577
|
else if (p != null) {
|
|
3578
3578
|
const I = K.generateRandomId(6);
|
|
3579
|
-
this._docSelectionRenderService.setSegment(I), this._docSelectionRenderService.setSegmentPage(g), await this._commandService.executeCommand(
|
|
3579
|
+
this._docSelectionRenderService.setSegment(I), this._docSelectionRenderService.setSegmentPage(g), await this._commandService.executeCommand(Ia.id, {
|
|
3580
3580
|
unitId: e,
|
|
3581
3581
|
createType: p,
|
|
3582
3582
|
segmentId: I
|
|
@@ -3670,7 +3670,7 @@ let ds = class extends me {
|
|
|
3670
3670
|
return this._context.unit.getSnapshot().documentStyle.documentFlavor === De.TRADITIONAL;
|
|
3671
3671
|
}
|
|
3672
3672
|
};
|
|
3673
|
-
ds =
|
|
3673
|
+
ds = td([
|
|
3674
3674
|
mt(1, T),
|
|
3675
3675
|
mt(2, Ke),
|
|
3676
3676
|
mt(3, Q),
|
|
@@ -3684,12 +3684,12 @@ const zs = {
|
|
|
3684
3684
|
id: "sidebar.operation.doc-header-footer-panel",
|
|
3685
3685
|
type: N.OPERATION,
|
|
3686
3686
|
handler: async (n, e) => {
|
|
3687
|
-
const t = n.get(
|
|
3687
|
+
const t = n.get(ki), o = n.get(Xe);
|
|
3688
3688
|
switch (e.value) {
|
|
3689
3689
|
case "open":
|
|
3690
3690
|
t.open({
|
|
3691
3691
|
header: { title: o.t("headerFooter.panel") },
|
|
3692
|
-
children: { label:
|
|
3692
|
+
children: { label: Ea },
|
|
3693
3693
|
onClose: () => {
|
|
3694
3694
|
},
|
|
3695
3695
|
width: 400
|
|
@@ -3777,7 +3777,7 @@ function jo(n, e, t, o) {
|
|
|
3777
3777
|
}
|
|
3778
3778
|
return o;
|
|
3779
3779
|
}
|
|
3780
|
-
const Gn = "doc.command.core-header-footer",
|
|
3780
|
+
const Gn = "doc.command.core-header-footer", Ia = {
|
|
3781
3781
|
id: Gn,
|
|
3782
3782
|
type: N.COMMAND,
|
|
3783
3783
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -3832,7 +3832,7 @@ const Gn = "doc.command.core-header-footer", Ea = {
|
|
|
3832
3832
|
const g = r.getUnit(i), p = g == null ? void 0 : g.getSnapshot();
|
|
3833
3833
|
if (p == null)
|
|
3834
3834
|
return;
|
|
3835
|
-
const m =
|
|
3835
|
+
const m = Sa(p);
|
|
3836
3836
|
s.replaceDocRanges([
|
|
3837
3837
|
{
|
|
3838
3838
|
startOffset: m,
|
|
@@ -3841,11 +3841,11 @@ const Gn = "doc.command.core-header-footer", Ea = {
|
|
|
3841
3841
|
]);
|
|
3842
3842
|
}), t.executeCommand(zs.id, { value: "close" }), !0);
|
|
3843
3843
|
}
|
|
3844
|
-
}, nn = "UI_PLUGIN_DOCS", qs = `${nn}_COLOR_PICKER_COMPONENT`,
|
|
3845
|
-
docListTypePicker:
|
|
3846
|
-
docListTypePickerItem:
|
|
3847
|
-
docListTypePickerItemActive:
|
|
3848
|
-
},
|
|
3844
|
+
}, nn = "UI_PLUGIN_DOCS", qs = `${nn}_COLOR_PICKER_COMPONENT`, va = `${nn}_FONT_FAMILY_COMPONENT`, Ca = `${nn}_FONT_FAMILY_ITEM_COMPONENT`, Ra = `${nn}_FONT_SIZE_COMPONENT`, od = "univer-doc-list-type-picker", sd = "univer-doc-list-type-picker-item", rd = "univer-doc-list-type-picker-item-active", Wo = {
|
|
3845
|
+
docListTypePicker: od,
|
|
3846
|
+
docListTypePickerItem: sd,
|
|
3847
|
+
docListTypePickerItemActive: rd
|
|
3848
|
+
}, ba = (n) => {
|
|
3849
3849
|
const { value: e, onChange: t, options: o } = n;
|
|
3850
3850
|
return /* @__PURE__ */ B.jsx("div", { className: Wo.docListTypePicker, children: o.map((s) => /* @__PURE__ */ B.jsx(
|
|
3851
3851
|
"img",
|
|
@@ -3860,7 +3860,7 @@ const Gn = "doc.command.core-header-footer", Ea = {
|
|
|
3860
3860
|
},
|
|
3861
3861
|
s.value
|
|
3862
3862
|
)) });
|
|
3863
|
-
},
|
|
3863
|
+
}, id = [
|
|
3864
3864
|
{
|
|
3865
3865
|
value: we.ORDER_LIST,
|
|
3866
3866
|
img: "data:image/jpeg;base64,/9j/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Vg3OYGt5HO6ru534sRIeVabPGJcAzyqlOnXPxa/uD+3H4V4/LxQmIgMFCi+PFvdAV024TmGSF4QqkPeZ1FgA+vQV0PX0eRGdgiAszGgB8adToBx8jN4DPAJNMGLO+mmvlXEkbxMUcUw942IO4PXxPLTJD2rEHGYysZABAY9cxWdZja+MyazJJ9ZJP3knjnv5CsbkWECTc3lr53iP13v4mNGkcIgtjp+ZPQDc8FouUsJUvMaFz3IzuFG5H/AEju8MzOxZiWZjZJ3+PdoPE8rOkBdmQsWAUEEAgb5+eWnTjtOT/t5P8AYf14laFsPZRtHV4sTFr0rUmqz4nljlEeCIR4VokVnpllVgVkTnnt6T//xAA2EQACAQEFAwkGBwEAAAAAAAABAhEDABIhMUFAYYETMlFgcZGhsfAiQlJywdIjNENTcHOS4f/aAAgBAwEBPwDqm9QIQoBZjko+p08bUXdjUDnFWiBEDOQO7ftdHn1vnPm210efW+c+bWvqWKT7Q0/7l67dqCqpJAgsZO82urevQLxwnX+CmJCkqJaMBv8AWNhTciWquGOMKYA3QM+EWpM156bGShwPSN/hvx2mq5RCRngBunX1rYUVIl2ZiRJN7DhutRjlal0ysYHiLBlJIBBIzAOW0EBgQRIOYsKCZS5HwlvZ7hHnYIqsWAgkAbgBAEDhZaaqzMBBbPzw49ceU/EFO6cRN7TKe7SZzwjay7Csqe6Unjjrw2s/mF/r+7ayk1BUnJbsd+PjZqYZ1eTK6aYeWePT1eJCgkmAMzbl9RTqFfijx6I42Vg4DKZB9QdpqIXugRdDAsDOIHRh2+FsAOgDuAFqH6hHNLm72Y/SPQ2lmCgschaHrYtKU9F95uid2vlPOsAFAAEAZDaatNqgUAgAEkzqdO7Hvtdr/uL/AJH22QOJvsGyiBEdOgtTRkvXnLSZGeGeOJzOvZ1n/9k="
|
|
@@ -3885,13 +3885,13 @@ const Gn = "doc.command.core-header-footer", Ea = {
|
|
|
3885
3885
|
value: we.ORDER_LIST_5,
|
|
3886
3886
|
img: "data:image/jpeg;base64,/9j/4AAQSkZ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B.jsx(
|
|
3889
|
+
ba,
|
|
3890
3890
|
{
|
|
3891
3891
|
...n,
|
|
3892
|
-
options:
|
|
3892
|
+
options: id
|
|
3893
3893
|
}
|
|
3894
|
-
),
|
|
3894
|
+
), cd = [
|
|
3895
3895
|
{
|
|
3896
3896
|
value: we.BULLET_LIST,
|
|
3897
3897
|
img: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEA2ADYAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/CABEIAPQA2AMBEQACEQEDEQH/xAA1AAEAAQUBAQEAAAAAAAAAAAAACAYHCQoLBQEEAQEAAwEBAQAAAAAAAAAAAAAAAgMEBQEG/9oADAMBAAIQAxAAAADf4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABqsdDPqc9DNtjc/TtT8/QAAAAAAAAAAAOK79Ryrce+XH897UXy/VAiSAAAAAAAVcSIAAOYl3efgD2U5/cd3Ts4XQAosAAAAAAA/aVOAAeUY+bq8gtVnreAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDeun4ZAaZzkqmAAAAAAAAAABi10VyprlKGuWA/XTnwyXCmCxQAAAABU5fUAAAEVrIwCthloz2YMNdOwbjvHmFCAAAAAHqFdAAAAEMLYQithmby3eiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAClvfNZDfQMkdE8uua0AAAAAAAAAACyM48YT6bljcG5unfj5G0U+WdAAKhLwgAAAAAAsjOPGE+m5Y3Bubp34+RtHilsQAD2i5wAAAAAAPD9YYdNQmDXKfNMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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OfVBg6Os31XD8f74bSyhgVYTB986Q4AQlidIz1ch69oVjSJWIJFTIsAdHInCYsuOVLaxWDtUTUYRPtOpE/U2E1XG3KQoSi1woirihM0Pmp3bqqJGR6jqtZImYO42HuOG09IeShBa1u4ep8DRVZzJQSfdpsHGidHUVvrHD7f73DI7T8ExGLxJgGxRbK6ZrAzAvnZRVCiSgAZe69/aj/9k="
|
|
3918
3918
|
}
|
|
3919
|
-
],
|
|
3920
|
-
|
|
3919
|
+
], ld = (n) => /* @__PURE__ */ B.jsx(
|
|
3920
|
+
ba,
|
|
3921
3921
|
{
|
|
3922
3922
|
...n,
|
|
3923
|
-
options:
|
|
3923
|
+
options: cd
|
|
3924
3924
|
}
|
|
3925
|
-
),
|
|
3926
|
-
id:
|
|
3925
|
+
), xa = `${nn}_ORDER_LIST_TYPE_COMPONENT`, Oa = `${nn}_BULLET_LIST_TYPE_COMPONENT`, Ad = "doc.command.tab", qt = {
|
|
3926
|
+
id: Ad,
|
|
3927
3927
|
type: N.COMMAND,
|
|
3928
3928
|
async handler(n, e) {
|
|
3929
3929
|
const o = n.get(Dt).onAutoFormat(qt.id, e);
|
|
3930
3930
|
return (await Ds(o, n.get(T))).result;
|
|
3931
3931
|
}
|
|
3932
|
-
},
|
|
3933
|
-
id:
|
|
3932
|
+
}, dd = "doc.command.after-space", vo = {
|
|
3933
|
+
id: dd,
|
|
3934
3934
|
type: N.COMMAND,
|
|
3935
3935
|
async handler(n) {
|
|
3936
3936
|
const t = n.get(Dt).onAutoFormat(vo.id);
|
|
@@ -3945,16 +3945,16 @@ const Gn = "doc.command.core-header-footer", Ea = {
|
|
|
3945
3945
|
}
|
|
3946
3946
|
};
|
|
3947
3947
|
function pe(n) {
|
|
3948
|
-
return n.getContextValue(Tn) && n.getContextValue(ws) && !n.getContextValue(
|
|
3948
|
+
return n.getContextValue(Tn) && n.getContextValue(ws) && !n.getContextValue(_i);
|
|
3949
3949
|
}
|
|
3950
|
-
function
|
|
3951
|
-
return n.getContextValue(Tn) && n.getContextValue(ws) && !n.getContextValue($o) && !n.getContextValue(
|
|
3950
|
+
function ud(n) {
|
|
3951
|
+
return n.getContextValue(Tn) && n.getContextValue(ws) && !n.getContextValue($o) && !n.getContextValue(_i);
|
|
3952
3952
|
}
|
|
3953
|
-
const
|
|
3953
|
+
const hd = {
|
|
3954
3954
|
id: qt.id,
|
|
3955
3955
|
binding: ae.TAB,
|
|
3956
3956
|
preconditions: pe
|
|
3957
|
-
},
|
|
3957
|
+
}, gd = {
|
|
3958
3958
|
id: qt.id,
|
|
3959
3959
|
binding: ae.TAB | ge.SHIFT,
|
|
3960
3960
|
preconditions: pe,
|
|
@@ -3962,12 +3962,12 @@ const dd = {
|
|
|
3962
3962
|
shift: !0
|
|
3963
3963
|
}
|
|
3964
3964
|
};
|
|
3965
|
-
var
|
|
3966
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
3965
|
+
var fd = Object.defineProperty, pd = Object.getOwnPropertyDescriptor, md = (n, e, t, o) => {
|
|
3966
|
+
for (var s = o > 1 ? void 0 : o ? pd(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
3967
3967
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3968
|
-
return o && s &&
|
|
3968
|
+
return o && s && fd(e, t, s), s;
|
|
3969
3969
|
}, zo = (n, e) => (t, o) => e(t, o, n);
|
|
3970
|
-
const
|
|
3970
|
+
const Sd = 11, Ed = 9, Un = {
|
|
3971
3971
|
/**
|
|
3972
3972
|
* fontFamily
|
|
3973
3973
|
*/
|
|
@@ -3975,7 +3975,7 @@ const pd = 11, md = 9, Un = {
|
|
|
3975
3975
|
/**
|
|
3976
3976
|
* fontSize
|
|
3977
3977
|
*/
|
|
3978
|
-
fs:
|
|
3978
|
+
fs: Sd
|
|
3979
3979
|
};
|
|
3980
3980
|
let ht = class extends me {
|
|
3981
3981
|
constructor(e, t, o) {
|
|
@@ -4010,7 +4010,7 @@ let ht = class extends me {
|
|
|
4010
4010
|
...Un
|
|
4011
4011
|
} : {
|
|
4012
4012
|
...Un,
|
|
4013
|
-
fs:
|
|
4013
|
+
fs: Ed
|
|
4014
4014
|
};
|
|
4015
4015
|
}
|
|
4016
4016
|
setStyleCache(e) {
|
|
@@ -4023,7 +4023,7 @@ let ht = class extends me {
|
|
|
4023
4023
|
this._cacheStyle = null;
|
|
4024
4024
|
}
|
|
4025
4025
|
};
|
|
4026
|
-
ht =
|
|
4026
|
+
ht = md([
|
|
4027
4027
|
zo(0, k(W)),
|
|
4028
4028
|
zo(1, Q),
|
|
4029
4029
|
zo(2, Re)
|
|
@@ -4196,12 +4196,12 @@ const Zr = "doc.command.set-inline-format-bold", on = {
|
|
|
4196
4196
|
case Ut.id:
|
|
4197
4197
|
// fallthrough
|
|
4198
4198
|
case cn.id: {
|
|
4199
|
-
const E = a.getDefaultStyle(), v =
|
|
4199
|
+
const E = a.getDefaultStyle(), v = Ta(
|
|
4200
4200
|
h,
|
|
4201
4201
|
l,
|
|
4202
4202
|
E
|
|
4203
4203
|
);
|
|
4204
|
-
f =
|
|
4204
|
+
f = vd(
|
|
4205
4205
|
v,
|
|
4206
4206
|
o
|
|
4207
4207
|
);
|
|
@@ -4245,7 +4245,7 @@ const Zr = "doc.command.set-inline-format-bold", on = {
|
|
|
4245
4245
|
const _ = a.getStyleCache(), M = us[o];
|
|
4246
4246
|
a.setStyleCache(
|
|
4247
4247
|
{
|
|
4248
|
-
[M]: (_ == null ? void 0 : _[M]) !== void 0 ?
|
|
4248
|
+
[M]: (_ == null ? void 0 : _[M]) !== void 0 ? ya(
|
|
4249
4249
|
_,
|
|
4250
4250
|
M,
|
|
4251
4251
|
o
|
|
@@ -4279,14 +4279,14 @@ const Zr = "doc.command.set-inline-format-bold", on = {
|
|
|
4279
4279
|
return g.params.actions = m.editOp(p.serialize(), I), !!s.syncExecuteCommand(g.id, g.params);
|
|
4280
4280
|
}
|
|
4281
4281
|
};
|
|
4282
|
-
function
|
|
4282
|
+
function Id(n) {
|
|
4283
4283
|
return n !== null && typeof n == "object";
|
|
4284
4284
|
}
|
|
4285
|
-
function
|
|
4285
|
+
function ya(n, e, t) {
|
|
4286
4286
|
if (/bl|it/.test(e))
|
|
4287
4287
|
return (n == null ? void 0 : n[e]) === L.TRUE ? L.FALSE : L.TRUE;
|
|
4288
4288
|
if (/ul|st/.test(e))
|
|
4289
|
-
return
|
|
4289
|
+
return Id(n == null ? void 0 : n[e]) && (n == null ? void 0 : n[e]).s === L.TRUE ? {
|
|
4290
4290
|
s: L.FALSE
|
|
4291
4291
|
} : {
|
|
4292
4292
|
s: L.TRUE
|
|
@@ -4294,7 +4294,7 @@ function Oa(n, e, t) {
|
|
|
4294
4294
|
if (/va/.test(e))
|
|
4295
4295
|
return t === Ut.id ? (n == null ? void 0 : n[e]) === je.SUBSCRIPT ? je.NORMAL : je.SUBSCRIPT : (n == null ? void 0 : n[e]) === je.SUPERSCRIPT ? je.NORMAL : je.SUPERSCRIPT;
|
|
4296
4296
|
}
|
|
4297
|
-
function
|
|
4297
|
+
function Ta(n, e, t) {
|
|
4298
4298
|
var l, A, d, h, u, f, g, p, m, S, I, C, R, E;
|
|
4299
4299
|
const { startOffset: o, endOffset: s, collapsed: r } = e;
|
|
4300
4300
|
if (r) {
|
|
@@ -4309,7 +4309,7 @@ function ya(n, e, t) {
|
|
|
4309
4309
|
}
|
|
4310
4310
|
return y != null && y.ts ? { ...t, ...y.ts } : t;
|
|
4311
4311
|
}
|
|
4312
|
-
const { textRuns: i = [] } =
|
|
4312
|
+
const { textRuns: i = [] } = Mi(n, o, s), a = K.deepClone(t);
|
|
4313
4313
|
a.fs = Math.max(a.fs, ...i.map((v) => {
|
|
4314
4314
|
var y, O;
|
|
4315
4315
|
return (O = (y = v == null ? void 0 : v.ts) == null ? void 0 : y.fs) != null ? O : a.fs;
|
|
@@ -4351,9 +4351,9 @@ function ya(n, e, t) {
|
|
|
4351
4351
|
}
|
|
4352
4352
|
return a;
|
|
4353
4353
|
}
|
|
4354
|
-
function
|
|
4354
|
+
function vd(n, e) {
|
|
4355
4355
|
const t = us[e];
|
|
4356
|
-
return
|
|
4356
|
+
return ya(n, t, e);
|
|
4357
4357
|
}
|
|
4358
4358
|
const Mn = {
|
|
4359
4359
|
id: "doc.command.list-operation",
|
|
@@ -4507,7 +4507,7 @@ const hs = {
|
|
|
4507
4507
|
listType: we.ORDER_LIST
|
|
4508
4508
|
});
|
|
4509
4509
|
}
|
|
4510
|
-
},
|
|
4510
|
+
}, Ba = {
|
|
4511
4511
|
id: "doc.command.quick-list",
|
|
4512
4512
|
type: N.COMMAND,
|
|
4513
4513
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -4518,7 +4518,7 @@ const hs = {
|
|
|
4518
4518
|
const t = n.get(W), o = n.get(Q), s = n.get(T), r = o.getCurrentUnitForType(P.UNIVER_DOC), i = t.getActiveTextRange();
|
|
4519
4519
|
if (r == null || i == null)
|
|
4520
4520
|
return !1;
|
|
4521
|
-
const { segmentId: a } = i, { listType: c, paragraph: l } = e, { paragraphStart: A, paragraphEnd: d } = l, h = new Ce(), u = V.getInstance(), { defaultTabStop: f = 36 } = r.getSnapshot().documentStyle, g = (ue = (ne = r.getSelfOrHeaderFooterModel(a).getBody()) == null ? void 0 : ne.sectionBreaks) != null ? ue : [], { startIndex: p, paragraphStyle: m = {} } = l, { indentFirstLine: S, snapToGrid: I, indentStart: C } = m, R =
|
|
4521
|
+
const { segmentId: a } = i, { listType: c, paragraph: l } = e, { paragraphStart: A, paragraphEnd: d } = l, h = new Ce(), u = V.getInstance(), { defaultTabStop: f = 36 } = r.getSnapshot().documentStyle, g = (ue = (ne = r.getSelfOrHeaderFooterModel(a).getBody()) == null ? void 0 : ne.sectionBreaks) != null ? ue : [], { startIndex: p, paragraphStyle: m = {} } = l, { indentFirstLine: S, snapToGrid: I, indentStart: C } = m, R = rc[c].nestingLevel[0].paragraphProperties || {}, { hanging: E, indentStart: v } = R, y = R.textStyle, { charSpace: O, gridType: D } = Cd(p, g) || { charSpace: 0, gridType: ic.LINES }, x = yc(O, f, D, I);
|
|
4522
4522
|
let M = K.generateRandomId(6);
|
|
4523
4523
|
const w = (Y = (re = r.getBody()) == null ? void 0 : re.paragraphs) != null ? Y : [], F = w.findIndex(($) => $.startIndex === l.startIndex), H = w[F - 1], te = w[F + 1];
|
|
4524
4524
|
H && H.bullet && H.bullet.listType.indexOf(c) === 0 ? M = H.bullet.listId : te && te.bullet && te.bullet.listType.indexOf(c) === 0 && (M = te.bullet.listId);
|
|
@@ -4594,8 +4594,8 @@ function Pn(n, e) {
|
|
|
4594
4594
|
}
|
|
4595
4595
|
return t;
|
|
4596
4596
|
}
|
|
4597
|
-
function
|
|
4598
|
-
const t = e.sort(
|
|
4597
|
+
function Cd(n, e) {
|
|
4598
|
+
const t = e.sort(ac("startIndex"));
|
|
4599
4599
|
for (let o = 0; o < t.length; o++) {
|
|
4600
4600
|
const s = e[o];
|
|
4601
4601
|
if (s.startIndex >= n)
|
|
@@ -4683,57 +4683,57 @@ const ft = {
|
|
|
4683
4683
|
handler: (n) => n.get(T).syncExecuteCommand(ft.id, {
|
|
4684
4684
|
alignType: Le.JUSTIFIED
|
|
4685
4685
|
})
|
|
4686
|
-
},
|
|
4686
|
+
}, Rd = {
|
|
4687
4687
|
id: on.id,
|
|
4688
4688
|
binding: ae.B | ge.CTRL_COMMAND,
|
|
4689
4689
|
preconditions: pe
|
|
4690
|
-
},
|
|
4690
|
+
}, bd = {
|
|
4691
4691
|
id: sn.id,
|
|
4692
4692
|
binding: ae.I | ge.CTRL_COMMAND,
|
|
4693
4693
|
preconditions: pe
|
|
4694
|
-
},
|
|
4694
|
+
}, xd = {
|
|
4695
4695
|
id: rn.id,
|
|
4696
4696
|
binding: ae.U | ge.CTRL_COMMAND,
|
|
4697
4697
|
preconditions: pe
|
|
4698
|
-
},
|
|
4698
|
+
}, Od = {
|
|
4699
4699
|
id: an.id,
|
|
4700
4700
|
binding: ae.X | ge.SHIFT | ge.CTRL_COMMAND,
|
|
4701
4701
|
preconditions: pe
|
|
4702
|
-
},
|
|
4702
|
+
}, yd = {
|
|
4703
4703
|
id: Ut.id,
|
|
4704
4704
|
binding: ae.COMMA | ge.CTRL_COMMAND,
|
|
4705
4705
|
preconditions: pe
|
|
4706
|
-
},
|
|
4706
|
+
}, Td = {
|
|
4707
4707
|
id: cn.id,
|
|
4708
4708
|
binding: ae.PERIOD | ge.CTRL_COMMAND,
|
|
4709
4709
|
preconditions: pe
|
|
4710
|
-
},
|
|
4710
|
+
}, Bd = {
|
|
4711
4711
|
id: xo.id,
|
|
4712
4712
|
binding: ae.L | ge.CTRL_COMMAND | ge.SHIFT,
|
|
4713
4713
|
preconditions: pe
|
|
4714
|
-
},
|
|
4714
|
+
}, _d = {
|
|
4715
4715
|
id: yo.id,
|
|
4716
4716
|
binding: ae.R | ge.CTRL_COMMAND | ge.SHIFT,
|
|
4717
4717
|
preconditions: pe
|
|
4718
|
-
},
|
|
4718
|
+
}, Md = {
|
|
4719
4719
|
id: Oo.id,
|
|
4720
4720
|
binding: ae.E | ge.CTRL_COMMAND | ge.SHIFT,
|
|
4721
4721
|
preconditions: pe
|
|
4722
|
-
},
|
|
4722
|
+
}, Pd = {
|
|
4723
4723
|
id: To.id,
|
|
4724
4724
|
binding: ae.J | ge.CTRL_COMMAND | ge.SHIFT,
|
|
4725
4725
|
preconditions: pe
|
|
4726
|
-
},
|
|
4726
|
+
}, Dd = {
|
|
4727
4727
|
id: bo.id,
|
|
4728
4728
|
binding: ae.Digit7 | ge.CTRL_COMMAND | ge.SHIFT,
|
|
4729
4729
|
preconditions: pe
|
|
4730
|
-
},
|
|
4730
|
+
}, wd = {
|
|
4731
4731
|
id: Ro.id,
|
|
4732
4732
|
binding: ae.Digit8 | ge.CTRL_COMMAND | ge.SHIFT,
|
|
4733
4733
|
preconditions: pe
|
|
4734
|
-
},
|
|
4735
|
-
docCountBar:
|
|
4736
|
-
},
|
|
4734
|
+
}, Nd = "univer-doc-count-bar", Qd = {
|
|
4735
|
+
docCountBar: Nd
|
|
4736
|
+
}, Ud = (n, e) => {
|
|
4737
4737
|
const t = n.get(Q).getUniverDocInstance(e.unitId), o = (t == null ? void 0 : t.zoomRatio) || 1;
|
|
4738
4738
|
return {
|
|
4739
4739
|
...K.deepClone(e),
|
|
@@ -4751,9 +4751,9 @@ const ft = {
|
|
|
4751
4751
|
zoomRatio: e.zoomRatio
|
|
4752
4752
|
} : o.settings.zoomRatio = e.zoomRatio, !0;
|
|
4753
4753
|
}
|
|
4754
|
-
},
|
|
4755
|
-
function
|
|
4756
|
-
const n = se(T), e = se(Q), t = Pt(() => e.getCurrentTypeOfUnit$(P.UNIVER_DOC), []), o =
|
|
4754
|
+
}, Ld = [50, 80, 100, 130, 150, 170, 200, 400], Fd = [10, 400];
|
|
4755
|
+
function Hd() {
|
|
4756
|
+
const n = se(T), e = se(Q), t = Pt(() => e.getCurrentTypeOfUnit$(P.UNIVER_DOC), []), o = Pi(t), s = jc(() => {
|
|
4757
4757
|
var l, A;
|
|
4758
4758
|
if (!o) return 100;
|
|
4759
4759
|
const c = ((A = (l = o.getSettings()) == null ? void 0 : l.zoomRatio) != null ? A : 1) * 100;
|
|
@@ -4775,31 +4775,31 @@ function Ld() {
|
|
|
4775
4775
|
});
|
|
4776
4776
|
}
|
|
4777
4777
|
return /* @__PURE__ */ B.jsx(
|
|
4778
|
-
|
|
4778
|
+
Il,
|
|
4779
4779
|
{
|
|
4780
|
-
min:
|
|
4780
|
+
min: Fd[0],
|
|
4781
4781
|
value: r,
|
|
4782
|
-
shortcuts:
|
|
4782
|
+
shortcuts: Ld,
|
|
4783
4783
|
onChange: a
|
|
4784
4784
|
}
|
|
4785
4785
|
);
|
|
4786
4786
|
}
|
|
4787
|
-
function
|
|
4788
|
-
return /* @__PURE__ */ B.jsx("section", { className:
|
|
4787
|
+
function Vd(n) {
|
|
4788
|
+
return /* @__PURE__ */ B.jsx("section", { className: Qd.docCountBar, children: /* @__PURE__ */ B.jsx(Hd, {}) });
|
|
4789
4789
|
}
|
|
4790
|
-
const
|
|
4791
|
-
docFooterContainer:
|
|
4792
|
-
},
|
|
4790
|
+
const kd = "univer-doc-footer-container", jd = {
|
|
4791
|
+
docFooterContainer: kd
|
|
4792
|
+
}, Wd = () => /* @__PURE__ */ B.jsxs("div", { className: jd.docFooterContainer, children: [
|
|
4793
4793
|
/* @__PURE__ */ B.jsx("div", {}),
|
|
4794
|
-
/* @__PURE__ */ B.jsx(
|
|
4795
|
-
] }), Zs = "docs-ui.config",
|
|
4794
|
+
/* @__PURE__ */ B.jsx(Vd, {})
|
|
4795
|
+
] }), Zs = "docs-ui.config", li = {
|
|
4796
4796
|
layout: {
|
|
4797
|
-
docContainerConfig:
|
|
4798
|
-
toolbarConfig:
|
|
4797
|
+
docContainerConfig: Tl,
|
|
4798
|
+
toolbarConfig: yl
|
|
4799
4799
|
}
|
|
4800
4800
|
};
|
|
4801
4801
|
var Bo = /* @__PURE__ */ ((n) => (n[n.ABOVE = 0] = "ABOVE", n[n.BELLOW = 1] = "BELLOW", n))(Bo || {}), $s = /* @__PURE__ */ ((n) => (n[n.LEFT = 0] = "LEFT", n[n.RIGHT = 1] = "RIGHT", n))($s || {});
|
|
4802
|
-
function
|
|
4802
|
+
function zd(n, e) {
|
|
4803
4803
|
let t = U.TABLE_START;
|
|
4804
4804
|
const o = [], s = [];
|
|
4805
4805
|
for (let r = 0; r < n; r++) {
|
|
@@ -4848,31 +4848,31 @@ function tr(n) {
|
|
|
4848
4848
|
tableCells: [...new Array(n).fill(null).map(() => K.deepClone(e))],
|
|
4849
4849
|
trHeight: {
|
|
4850
4850
|
val: { v: 30 },
|
|
4851
|
-
hRule:
|
|
4851
|
+
hRule: cc.AUTO
|
|
4852
4852
|
}
|
|
4853
4853
|
};
|
|
4854
4854
|
}
|
|
4855
4855
|
function nr(n) {
|
|
4856
4856
|
return {
|
|
4857
4857
|
size: {
|
|
4858
|
-
type:
|
|
4858
|
+
type: Di.SPECIFIED,
|
|
4859
4859
|
width: {
|
|
4860
4860
|
v: n
|
|
4861
4861
|
}
|
|
4862
4862
|
}
|
|
4863
4863
|
};
|
|
4864
4864
|
}
|
|
4865
|
-
function
|
|
4865
|
+
function _a(n, e, t) {
|
|
4866
4866
|
const o = nr(t / e), s = tr(e), r = [...new Array(n).fill(null).map(() => K.deepClone(s))], i = [...new Array(e).fill(null).map(() => K.deepClone(o))], a = In(6);
|
|
4867
4867
|
return {
|
|
4868
4868
|
tableRows: r,
|
|
4869
4869
|
tableColumns: i,
|
|
4870
4870
|
tableId: a,
|
|
4871
|
-
align:
|
|
4871
|
+
align: lc.START,
|
|
4872
4872
|
indent: {
|
|
4873
4873
|
v: 0
|
|
4874
4874
|
},
|
|
4875
|
-
textWrap:
|
|
4875
|
+
textWrap: Ac.NONE,
|
|
4876
4876
|
position: {
|
|
4877
4877
|
positionH: {
|
|
4878
4878
|
relativeFrom: uo.PAGE,
|
|
@@ -4904,7 +4904,7 @@ function Ba(n, e, t) {
|
|
|
4904
4904
|
}
|
|
4905
4905
|
},
|
|
4906
4906
|
size: {
|
|
4907
|
-
type:
|
|
4907
|
+
type: Di.UNSPECIFIED,
|
|
4908
4908
|
width: {
|
|
4909
4909
|
v: t
|
|
4910
4910
|
}
|
|
@@ -4936,7 +4936,7 @@ function Dn(n, e) {
|
|
|
4936
4936
|
};
|
|
4937
4937
|
}
|
|
4938
4938
|
}
|
|
4939
|
-
function
|
|
4939
|
+
function Yd(n) {
|
|
4940
4940
|
let e = U.TABLE_ROW_START;
|
|
4941
4941
|
const t = [], o = [];
|
|
4942
4942
|
for (let s = 0; s < n; s++)
|
|
@@ -4957,7 +4957,7 @@ ${U.TABLE_CELL_END}`, t.push({
|
|
|
4957
4957
|
sectionBreaks: o
|
|
4958
4958
|
};
|
|
4959
4959
|
}
|
|
4960
|
-
function
|
|
4960
|
+
function Gd() {
|
|
4961
4961
|
const n = `${U.TABLE_CELL_START}\r
|
|
4962
4962
|
${U.TABLE_CELL_END}`, e = [], t = [];
|
|
4963
4963
|
return e.push({
|
|
@@ -4975,7 +4975,7 @@ ${U.TABLE_CELL_END}`, e = [], t = [];
|
|
|
4975
4975
|
sectionBreaks: t
|
|
4976
4976
|
};
|
|
4977
4977
|
}
|
|
4978
|
-
function
|
|
4978
|
+
function qd(n, e, t) {
|
|
4979
4979
|
var d, h, u;
|
|
4980
4980
|
const { startOffset: o, endOffset: s, segmentId: r } = n, i = t.getSelfOrHeaderFooterViewModel(r), a = e === 0 ? o : s;
|
|
4981
4981
|
let c = null;
|
|
@@ -5004,7 +5004,7 @@ function Gd(n, e, t) {
|
|
|
5004
5004
|
insertRowIndex: e === 0 ? A : A + 1
|
|
5005
5005
|
};
|
|
5006
5006
|
}
|
|
5007
|
-
function
|
|
5007
|
+
function Kd(n, e, t) {
|
|
5008
5008
|
var u, f, g;
|
|
5009
5009
|
const { startOffset: o, endOffset: s, segmentId: r } = n, i = t.getSelfOrHeaderFooterViewModel(r), a = e === 0 ? o : s, c = (g = (f = (u = t.getBody()) == null ? void 0 : u.tables) == null ? void 0 : f.find((p) => a >= p.startIndex && a <= p.endIndex)) == null ? void 0 : g.tableId, l = [];
|
|
5010
5010
|
let A = null, d = -1;
|
|
@@ -5047,7 +5047,7 @@ function qd(n, e, t) {
|
|
|
5047
5047
|
rowCount: A.children.length
|
|
5048
5048
|
};
|
|
5049
5049
|
}
|
|
5050
|
-
function
|
|
5050
|
+
function Xd(n, e, t) {
|
|
5051
5051
|
const o = [];
|
|
5052
5052
|
let s = e[t].size.width.v, r = 0;
|
|
5053
5053
|
for (let i = 0; i < e.length; i++)
|
|
@@ -5060,7 +5060,7 @@ function Kd(n, e, t) {
|
|
|
5060
5060
|
newColWidth: s
|
|
5061
5061
|
};
|
|
5062
5062
|
}
|
|
5063
|
-
function
|
|
5063
|
+
function Ma(n, e) {
|
|
5064
5064
|
var h, u, f;
|
|
5065
5065
|
const { startOffset: t, endOffset: o, segmentId: s } = n, r = e.getSelfOrHeaderFooterViewModel(s), i = (f = (u = (h = e.getBody()) == null ? void 0 : h.tables) == null ? void 0 : u.find((g) => t >= g.startIndex && o <= g.endIndex)) == null ? void 0 : f.tableId, a = [];
|
|
5066
5066
|
let c = -1, l = 0, A = -1, d = !1;
|
|
@@ -5091,7 +5091,7 @@ function _a(n, e) {
|
|
|
5091
5091
|
selectWholeTable: d
|
|
5092
5092
|
};
|
|
5093
5093
|
}
|
|
5094
|
-
function
|
|
5094
|
+
function Jd(n, e) {
|
|
5095
5095
|
var f, g, p;
|
|
5096
5096
|
const { startOffset: t, endOffset: o, segmentId: s } = n, r = e.getSelfOrHeaderFooterViewModel(s), i = (p = (g = (f = e.getBody()) == null ? void 0 : f.tables) == null ? void 0 : g.find((m) => t >= m.startIndex && o <= m.endIndex)) == null ? void 0 : p.tableId, a = [];
|
|
5097
5097
|
let c = null;
|
|
@@ -5137,7 +5137,7 @@ function Xd(n, e) {
|
|
|
5137
5137
|
rowCount: c.children.length
|
|
5138
5138
|
};
|
|
5139
5139
|
}
|
|
5140
|
-
function
|
|
5140
|
+
function Pa(n, e) {
|
|
5141
5141
|
var A, d, h;
|
|
5142
5142
|
const { startOffset: t, endOffset: o, segmentId: s } = n, r = e.getSelfOrHeaderFooterViewModel(s), i = (h = (d = (A = e.getBody()) == null ? void 0 : A.tables) == null ? void 0 : d.find((u) => t >= u.startIndex && o <= u.endIndex)) == null ? void 0 : h.tableId;
|
|
5143
5143
|
let a = -1, c = 0, l = -1;
|
|
@@ -5162,7 +5162,7 @@ function Ma(n, e) {
|
|
|
5162
5162
|
cursor: l
|
|
5163
5163
|
};
|
|
5164
5164
|
}
|
|
5165
|
-
function
|
|
5165
|
+
function Zd(n, e) {
|
|
5166
5166
|
var f, g, p;
|
|
5167
5167
|
const { startOffset: t, endOffset: o, segmentId: s } = n, r = e.getSelfOrHeaderFooterViewModel(s), i = (p = (g = (f = e.getBody()) == null ? void 0 : f.tables) == null ? void 0 : g.find((m) => t >= m.startIndex && o <= m.endIndex)) == null ? void 0 : p.tableId, a = [];
|
|
5168
5168
|
let c = null, l = -1, A = -1, d = -1, h = -1;
|
|
@@ -5205,7 +5205,7 @@ function Jd(n, e) {
|
|
|
5205
5205
|
};
|
|
5206
5206
|
}
|
|
5207
5207
|
var gs = /* @__PURE__ */ ((n) => (n[n.NEXT = 0] = "NEXT", n[n.PREV = 1] = "PREV", n))(gs || {});
|
|
5208
|
-
function
|
|
5208
|
+
function Ai(n, e, t) {
|
|
5209
5209
|
const { startOffset: o } = e;
|
|
5210
5210
|
let s = null;
|
|
5211
5211
|
for (const l of n.getChildren()) {
|
|
@@ -5251,7 +5251,7 @@ function li(n, e, t) {
|
|
|
5251
5251
|
};
|
|
5252
5252
|
}
|
|
5253
5253
|
}
|
|
5254
|
-
function
|
|
5254
|
+
function $d(n, e) {
|
|
5255
5255
|
const t = [], { customBlocks: o = [] } = n;
|
|
5256
5256
|
for (const s of e) {
|
|
5257
5257
|
const { startOffset: r, endOffset: i } = s;
|
|
@@ -5263,13 +5263,13 @@ function Zd(n, e) {
|
|
|
5263
5263
|
}
|
|
5264
5264
|
return t;
|
|
5265
5265
|
}
|
|
5266
|
-
function
|
|
5266
|
+
function eu(n) {
|
|
5267
5267
|
return n.some((e) => {
|
|
5268
5268
|
const { startNodePosition: t } = e;
|
|
5269
5269
|
return t ? (t == null ? void 0 : t.path.indexOf("cells")) > -1 : !1;
|
|
5270
5270
|
});
|
|
5271
5271
|
}
|
|
5272
|
-
const
|
|
5272
|
+
const tu = Ns, Da = {
|
|
5273
5273
|
id: "doc.command.inner-paste",
|
|
5274
5274
|
type: N.COMMAND,
|
|
5275
5275
|
// eslint-disable-next-line max-lines-per-function, complexity
|
|
@@ -5292,7 +5292,7 @@ const eu = Ns, Pa = {
|
|
|
5292
5292
|
}, m = new Qt();
|
|
5293
5293
|
m.reset();
|
|
5294
5294
|
const S = new Ce(), I = V.getInstance(), C = [], R = !!((O = A.tables) != null && O.length), E = !!((D = A.customBlocks) != null && D.length);
|
|
5295
|
-
if (R && t || R &&
|
|
5295
|
+
if (R && t || R && eu(c) || c.length && (l != null && l.length))
|
|
5296
5296
|
return !1;
|
|
5297
5297
|
for (let F = 0; F < c.length; F++) {
|
|
5298
5298
|
const H = c[F], { startOffset: te, endOffset: Z, collapsed: G } = H, z = te - m.cursor, ne = K.deepClone(A);
|
|
@@ -5316,7 +5316,7 @@ const eu = Ns, Pa = {
|
|
|
5316
5316
|
C.push(Fe), C.push(Te);
|
|
5317
5317
|
}
|
|
5318
5318
|
}
|
|
5319
|
-
const ue = Vs((M = f.customRanges) != null ? M : [], Z,
|
|
5319
|
+
const ue = Vs((M = f.customRanges) != null ? M : [], Z, tu.includes(g)), re = ks((w = f.customDecorations) != null ? w : [], Z);
|
|
5320
5320
|
if (ue && (ne.customRanges = [{
|
|
5321
5321
|
...ue,
|
|
5322
5322
|
startIndex: 0,
|
|
@@ -5344,7 +5344,7 @@ const eu = Ns, Pa = {
|
|
|
5344
5344
|
return C.push(I.editOp(S.serialize(), v)), p.params.actions = C.reduce((F, H) => V.compose(F, H), null), !!r.syncExecuteCommand(p.id, p.params);
|
|
5345
5345
|
}
|
|
5346
5346
|
};
|
|
5347
|
-
function
|
|
5347
|
+
function nu(n, e) {
|
|
5348
5348
|
const { startOffset: t, endOffset: o } = n, s = e.some((i) => i.startIndex === o), r = Math.max(t, s ? o - 1 : o);
|
|
5349
5349
|
return {
|
|
5350
5350
|
...n,
|
|
@@ -5352,7 +5352,7 @@ function tu(n, e) {
|
|
|
5352
5352
|
collapsed: t === r
|
|
5353
5353
|
};
|
|
5354
5354
|
}
|
|
5355
|
-
function
|
|
5355
|
+
function ou(n, e, t) {
|
|
5356
5356
|
var f, g;
|
|
5357
5357
|
const o = e.getSelfOrHeaderFooterModel(t).getBody(), s = new Ce(), r = V.getInstance(), i = [];
|
|
5358
5358
|
if (o == null)
|
|
@@ -5360,7 +5360,7 @@ function nu(n, e, t) {
|
|
|
5360
5360
|
const { tables: a = [] } = o, c = new Qt();
|
|
5361
5361
|
c.reset();
|
|
5362
5362
|
for (let p = 0; p < n.length; p++) {
|
|
5363
|
-
const m =
|
|
5363
|
+
const m = nu(n[p], a), { startOffset: S, endOffset: I, collapsed: C } = m, R = S - c.cursor;
|
|
5364
5364
|
C ? s.push({
|
|
5365
5365
|
t: j.RETAIN,
|
|
5366
5366
|
len: R
|
|
@@ -5368,7 +5368,7 @@ function nu(n, e, t) {
|
|
|
5368
5368
|
}
|
|
5369
5369
|
const l = fe(e, t);
|
|
5370
5370
|
i.push(r.editOp(s.serialize(), l));
|
|
5371
|
-
const A =
|
|
5371
|
+
const A = $d(o, n), d = (f = e.getDrawings()) != null ? f : {}, h = (g = e.getDrawingsOrder()) != null ? g : [], u = A.sort((p, m) => h.indexOf(p) > h.indexOf(m) ? -1 : h.indexOf(p) < h.indexOf(m) ? 1 : 0);
|
|
5372
5372
|
if (u.length > 0)
|
|
5373
5373
|
for (const p of u) {
|
|
5374
5374
|
const m = d[p], S = h.indexOf(p);
|
|
@@ -5379,7 +5379,7 @@ function nu(n, e, t) {
|
|
|
5379
5379
|
}
|
|
5380
5380
|
return i.reduce((p, m) => V.compose(p, m), null);
|
|
5381
5381
|
}
|
|
5382
|
-
function
|
|
5382
|
+
function su(n, e, t, o) {
|
|
5383
5383
|
const s = [];
|
|
5384
5384
|
if (e.getSelfOrHeaderFooterModel(o).getBody() == null)
|
|
5385
5385
|
return s;
|
|
@@ -5389,7 +5389,7 @@ function ou(n, e, t, o) {
|
|
|
5389
5389
|
const { startOffset: d, endOffset: h, spanEntireRow: u, spanEntireTable: f } = A;
|
|
5390
5390
|
if (!(d == null || h == null))
|
|
5391
5391
|
if (f) {
|
|
5392
|
-
const g =
|
|
5392
|
+
const g = Pa({ startOffset: d, endOffset: h, segmentId: o }, t);
|
|
5393
5393
|
if (g == null)
|
|
5394
5394
|
continue;
|
|
5395
5395
|
const { offset: p, len: m, tableId: S } = g;
|
|
@@ -5403,7 +5403,7 @@ function ou(n, e, t, o) {
|
|
|
5403
5403
|
const I = a.removeOp(["tableSource", S]);
|
|
5404
5404
|
s.push(I), c.moveCursorTo(p + m);
|
|
5405
5405
|
} else if (u) {
|
|
5406
|
-
const g =
|
|
5406
|
+
const g = Ma({ startOffset: d, endOffset: h, segmentId: o }, t);
|
|
5407
5407
|
if (g == null)
|
|
5408
5408
|
continue;
|
|
5409
5409
|
const { offset: p, rowIndexes: m, len: S, tableId: I } = g;
|
|
@@ -5420,7 +5420,7 @@ function ou(n, e, t, o) {
|
|
|
5420
5420
|
}
|
|
5421
5421
|
c.moveCursorTo(p + S);
|
|
5422
5422
|
} else {
|
|
5423
|
-
const g =
|
|
5423
|
+
const g = Zd({ startOffset: d, endOffset: h, segmentId: o }, t);
|
|
5424
5424
|
if (g == null)
|
|
5425
5425
|
continue;
|
|
5426
5426
|
const { offsets: p } = g;
|
|
@@ -5439,10 +5439,10 @@ function ou(n, e, t, o) {
|
|
|
5439
5439
|
const l = fe(e, o);
|
|
5440
5440
|
return s.push(a.editOp(i.serialize(), l)), s.reduce((A, d) => V.compose(A, d), null);
|
|
5441
5441
|
}
|
|
5442
|
-
function
|
|
5442
|
+
function ru(n, e, t, o, s) {
|
|
5443
5443
|
let r = [];
|
|
5444
|
-
if (Array.isArray(n) && (n == null ? void 0 : n.length) !== 0 && (r =
|
|
5445
|
-
const i =
|
|
5444
|
+
if (Array.isArray(n) && (n == null ? void 0 : n.length) !== 0 && (r = ou(n, t, s)), Array.isArray(e) && (e == null ? void 0 : e.length) !== 0) {
|
|
5445
|
+
const i = su(e, t, o, s);
|
|
5446
5446
|
r == null || r.length === 0 ? r = i : r = V.compose(
|
|
5447
5447
|
r,
|
|
5448
5448
|
V.transform(i, r, "right")
|
|
@@ -5475,12 +5475,12 @@ const $t = {
|
|
|
5475
5475
|
textRanges: o
|
|
5476
5476
|
}
|
|
5477
5477
|
};
|
|
5478
|
-
return u.params.actions =
|
|
5478
|
+
return u.params.actions = ru(a, c, A, h, t), !!s.syncExecuteCommand(u.id, u.params);
|
|
5479
5479
|
}
|
|
5480
5480
|
};
|
|
5481
5481
|
var Ne = /* @__PURE__ */ ((n) => (n[n.LEFT = 0] = "LEFT", n[n.RIGHT = 1] = "RIGHT", n))(Ne || {});
|
|
5482
|
-
const
|
|
5483
|
-
id:
|
|
5482
|
+
const iu = "doc.command.insert-text", or = {
|
|
5483
|
+
id: iu,
|
|
5484
5484
|
type: N.COMMAND,
|
|
5485
5485
|
handler: async (n, e) => {
|
|
5486
5486
|
var E;
|
|
@@ -5562,7 +5562,7 @@ const ru = "doc.command.insert-text", or = {
|
|
|
5562
5562
|
const I = fe(l, r);
|
|
5563
5563
|
return g.params.actions = m.editOp(p.serialize(), I), !!t.syncExecuteCommand(g.id, g.params);
|
|
5564
5564
|
}
|
|
5565
|
-
},
|
|
5565
|
+
}, wa = {
|
|
5566
5566
|
id: "doc.command.update-text",
|
|
5567
5567
|
type: N.COMMAND,
|
|
5568
5568
|
handler: async (n, e) => {
|
|
@@ -5742,11 +5742,11 @@ const _o = {
|
|
|
5742
5742
|
const { segmentId: h, style: u, segmentPage: f } = c, g = r.getSelfOrHeaderFooterModel(h).getBody();
|
|
5743
5743
|
if (g == null)
|
|
5744
5744
|
return !1;
|
|
5745
|
-
const p = c, { startOffset: m, collapsed: S } = p, I = d.findNodeByCharIndex(m, h, f), C =
|
|
5745
|
+
const p = c, { startOffset: m, collapsed: S } = p, I = d.findNodeByCharIndex(m, h, f), C = Tc(I), R = Bc(I, g);
|
|
5746
5746
|
let E = m;
|
|
5747
5747
|
const v = d.findNodeByCharIndex(m - 1, h, f);
|
|
5748
|
-
if (
|
|
5749
|
-
const x =
|
|
5748
|
+
if (_c(I) && v !== I && (C === !0 || R === !0) && S) {
|
|
5749
|
+
const x = Mc(I, g);
|
|
5750
5750
|
if (x == null)
|
|
5751
5751
|
return !1;
|
|
5752
5752
|
const _ = x == null ? void 0 : x.startIndex, M = { startIndex: 0 }, w = x.paragraphStyle;
|
|
@@ -5768,7 +5768,7 @@ const _o = {
|
|
|
5768
5768
|
style: u
|
|
5769
5769
|
}
|
|
5770
5770
|
];
|
|
5771
|
-
s = await o.executeCommand(
|
|
5771
|
+
s = await o.executeCommand(wa.id, {
|
|
5772
5772
|
unitId: r.getUnitId(),
|
|
5773
5773
|
updateBody: {
|
|
5774
5774
|
dataStream: "",
|
|
@@ -5836,7 +5836,7 @@ const _o = {
|
|
|
5836
5836
|
len: v.count
|
|
5837
5837
|
});
|
|
5838
5838
|
} else {
|
|
5839
|
-
const x =
|
|
5839
|
+
const x = Qa(p, [p]);
|
|
5840
5840
|
s = await o.executeCommand($t.id, {
|
|
5841
5841
|
segmentId: h,
|
|
5842
5842
|
textRanges: x,
|
|
@@ -5845,7 +5845,7 @@ const _o = {
|
|
|
5845
5845
|
}
|
|
5846
5846
|
return s;
|
|
5847
5847
|
}
|
|
5848
|
-
},
|
|
5848
|
+
}, Na = {
|
|
5849
5849
|
id: "doc.command.delete-right",
|
|
5850
5850
|
type: N.COMMAND,
|
|
5851
5851
|
// eslint-disable-next-line max-lines-per-function, complexity
|
|
@@ -5938,7 +5938,7 @@ const _o = {
|
|
|
5938
5938
|
});
|
|
5939
5939
|
}
|
|
5940
5940
|
} else {
|
|
5941
|
-
const R =
|
|
5941
|
+
const R = Qa(f, [f]);
|
|
5942
5942
|
S = await r.executeCommand($t.id, {
|
|
5943
5943
|
segmentId: A,
|
|
5944
5944
|
textRanges: R,
|
|
@@ -5948,7 +5948,7 @@ const _o = {
|
|
|
5948
5948
|
return S;
|
|
5949
5949
|
}
|
|
5950
5950
|
};
|
|
5951
|
-
function
|
|
5951
|
+
function Qa(n, e) {
|
|
5952
5952
|
let t = n.endOffset;
|
|
5953
5953
|
for (const s of e) {
|
|
5954
5954
|
const { startOffset: r, endOffset: i } = s;
|
|
@@ -5962,17 +5962,17 @@ function Na(n, e) {
|
|
|
5962
5962
|
}
|
|
5963
5963
|
];
|
|
5964
5964
|
}
|
|
5965
|
-
const
|
|
5966
|
-
function
|
|
5967
|
-
return K.generateRandomId(
|
|
5965
|
+
const au = 10, cu = 6;
|
|
5966
|
+
function lu() {
|
|
5967
|
+
return K.generateRandomId(cu);
|
|
5968
5968
|
}
|
|
5969
|
-
function
|
|
5969
|
+
function Au(n) {
|
|
5970
5970
|
const e = n.match(/data-copy-id="([^\s]+)"/);
|
|
5971
5971
|
return e && e[1] ? e[1] : null;
|
|
5972
5972
|
}
|
|
5973
|
-
class
|
|
5973
|
+
class du {
|
|
5974
5974
|
constructor() {
|
|
5975
|
-
b(this, "_cache", new
|
|
5975
|
+
b(this, "_cache", new dc(au));
|
|
5976
5976
|
}
|
|
5977
5977
|
set(e, t) {
|
|
5978
5978
|
this._cache.set(e, t);
|
|
@@ -5984,7 +5984,7 @@ class Au {
|
|
|
5984
5984
|
this._cache.clear();
|
|
5985
5985
|
}
|
|
5986
5986
|
}
|
|
5987
|
-
const Yo = new
|
|
5987
|
+
const Yo = new du();
|
|
5988
5988
|
function ar(n) {
|
|
5989
5989
|
const e = n.style, t = {}, o = n.tagName.toLowerCase();
|
|
5990
5990
|
switch (o) {
|
|
@@ -6025,7 +6025,7 @@ function ar(n) {
|
|
|
6025
6025
|
}
|
|
6026
6026
|
case "font-size": {
|
|
6027
6027
|
const a = Number.parseInt(i);
|
|
6028
|
-
Number.isNaN(a) || (i.endsWith("pt") ? t.fs = a : i.endsWith("px") && (t.fs =
|
|
6028
|
+
Number.isNaN(a) || (i.endsWith("pt") ? t.fs = a : i.endsWith("px") && (t.fs = Pc(a)));
|
|
6029
6029
|
break;
|
|
6030
6030
|
}
|
|
6031
6031
|
case "font-style": {
|
|
@@ -6067,15 +6067,15 @@ function ar(n) {
|
|
|
6067
6067
|
}
|
|
6068
6068
|
return t;
|
|
6069
6069
|
}
|
|
6070
|
-
function
|
|
6070
|
+
function uu(n) {
|
|
6071
6071
|
const e = new DOMParser(), t = `<x-univer id="univer-root">${n}</x-univer>`;
|
|
6072
6072
|
return e.parseFromString(t, "text/html").querySelector("#univer-root");
|
|
6073
6073
|
}
|
|
6074
|
-
function
|
|
6074
|
+
function di(n, e) {
|
|
6075
6075
|
const t = n.tagName.toLowerCase();
|
|
6076
6076
|
return typeof e == "string" ? t === e : Array.isArray(e) ? e.some((o) => o === t) : e(n);
|
|
6077
6077
|
}
|
|
6078
|
-
const
|
|
6078
|
+
const ui = 600, lo = class lo {
|
|
6079
6079
|
constructor() {
|
|
6080
6080
|
b(this, "_tableCache", []);
|
|
6081
6081
|
b(this, "_styleCache", /* @__PURE__ */ new Map());
|
|
@@ -6089,7 +6089,7 @@ const di = 600, lo = class lo {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
convert(e, t = {}) {
|
|
6091
6091
|
var a;
|
|
6092
|
-
const o = lo._pluginList.find((c) => c.checkPasteType(e)), s =
|
|
6092
|
+
const o = lo._pluginList.find((c) => c.checkPasteType(e)), s = uu(e), i = {
|
|
6093
6093
|
body: {
|
|
6094
6094
|
dataStream: "",
|
|
6095
6095
|
paragraphs: [],
|
|
@@ -6148,15 +6148,15 @@ const di = 600, lo = class lo {
|
|
|
6148
6148
|
};
|
|
6149
6149
|
}
|
|
6150
6150
|
} else {
|
|
6151
|
-
if (
|
|
6151
|
+
if (uc.includes(l.nodeName.toLowerCase()))
|
|
6152
6152
|
continue;
|
|
6153
6153
|
if (l.nodeType === Node.ELEMENT_NODE) {
|
|
6154
|
-
const A = l, d = this._processBeforeLink(A, o), h = e ? this._styleCache.get(e) : {}, u = this._styleRules.find(({ filter: m }) =>
|
|
6154
|
+
const A = l, d = this._processBeforeLink(A, o), h = e ? this._styleCache.get(e) : {}, u = this._styleRules.find(({ filter: m }) => di(l, m)), f = u ? u.getStyle(l) : ar(l);
|
|
6155
6155
|
this._styleCache.set(l, { ...h, ...f });
|
|
6156
6156
|
const { childNodes: g } = l;
|
|
6157
6157
|
this._processBeforeTable(l, o), this._process(l, g, o), this._processAfterTable(l, o);
|
|
6158
6158
|
const p = this._afterProcessRules.find(
|
|
6159
|
-
({ filter: m }) =>
|
|
6159
|
+
({ filter: m }) => di(l, m)
|
|
6160
6160
|
);
|
|
6161
6161
|
p && p.handler(o, l), this._processAfterLink(A, o, d);
|
|
6162
6162
|
}
|
|
@@ -6170,7 +6170,7 @@ const di = 600, lo = class lo {
|
|
|
6170
6170
|
s.dataStream[s.dataStream.length - 1] !== "\r" && (s.dataStream += "\r", s.paragraphs == null && (s.paragraphs = []), (r = s.paragraphs) == null || r.push({
|
|
6171
6171
|
startIndex: s.dataStream.length - 1
|
|
6172
6172
|
}));
|
|
6173
|
-
const i =
|
|
6173
|
+
const i = _a(0, 0, ui);
|
|
6174
6174
|
this._tableCache.push({
|
|
6175
6175
|
table: i,
|
|
6176
6176
|
startIndex: s.dataStream.length
|
|
@@ -6196,7 +6196,7 @@ const di = 600, lo = class lo {
|
|
|
6196
6196
|
const { tableSource: r } = t;
|
|
6197
6197
|
switch (o) {
|
|
6198
6198
|
case "TABLE": {
|
|
6199
|
-
const c = this._tableCache.pop(), { startIndex: l, table: A } = c, d = A.tableRows[0].tableCells.length, h = nr(
|
|
6199
|
+
const c = this._tableCache.pop(), { startIndex: l, table: A } = c, d = A.tableRows[0].tableCells.length, h = nr(ui / d), u = [...new Array(d).fill(null).map(() => K.deepClone(h))];
|
|
6200
6200
|
A.tableColumns = u, r[A.tableId] = A, s.dataStream += U.TABLE_END, s.tables.push({
|
|
6201
6201
|
startIndex: l,
|
|
6202
6202
|
endIndex: s.dataStream.length,
|
|
@@ -6229,14 +6229,14 @@ ${U.TABLE_CELL_END}`;
|
|
|
6229
6229
|
startIndex: o,
|
|
6230
6230
|
endIndex: s.dataStream.length - 1,
|
|
6231
6231
|
rangeId: (a = r.dataset.rangeid) != null ? a : In(),
|
|
6232
|
-
rangeType:
|
|
6232
|
+
rangeType: wi.HYPERLINK,
|
|
6233
6233
|
properties: { url: r.href }
|
|
6234
6234
|
}));
|
|
6235
6235
|
}
|
|
6236
6236
|
};
|
|
6237
6237
|
b(lo, "_pluginList", []);
|
|
6238
6238
|
let en = lo;
|
|
6239
|
-
const
|
|
6239
|
+
const hu = {
|
|
6240
6240
|
name: "univer-doc-paste-plugin-lark",
|
|
6241
6241
|
checkPasteType(n) {
|
|
6242
6242
|
return /lark-record-clipboard/i.test(n);
|
|
@@ -6270,7 +6270,7 @@ const uu = {
|
|
|
6270
6270
|
}
|
|
6271
6271
|
]
|
|
6272
6272
|
};
|
|
6273
|
-
function
|
|
6273
|
+
function Ua(n) {
|
|
6274
6274
|
const e = n.style, t = {};
|
|
6275
6275
|
for (let o = 0; o < e.length; o++) {
|
|
6276
6276
|
const s = e[o], r = e.getPropertyValue(s);
|
|
@@ -6294,7 +6294,7 @@ function Qa(n) {
|
|
|
6294
6294
|
}
|
|
6295
6295
|
return Object.getOwnPropertyNames(t).length ? t : null;
|
|
6296
6296
|
}
|
|
6297
|
-
const
|
|
6297
|
+
const gu = {
|
|
6298
6298
|
name: "univer-doc-paste-plugin-univer",
|
|
6299
6299
|
checkPasteType(n) {
|
|
6300
6300
|
return /UniverNormal/i.test(n);
|
|
@@ -6310,12 +6310,12 @@ const hu = {
|
|
|
6310
6310
|
t.paragraphs == null && (t.paragraphs = []);
|
|
6311
6311
|
const o = {
|
|
6312
6312
|
startIndex: t.dataStream.length
|
|
6313
|
-
}, s =
|
|
6313
|
+
}, s = Ua(e);
|
|
6314
6314
|
s && (o.paragraphStyle = s), t.paragraphs.push(o), t.dataStream += "\r";
|
|
6315
6315
|
}
|
|
6316
6316
|
}
|
|
6317
6317
|
]
|
|
6318
|
-
},
|
|
6318
|
+
}, fu = {
|
|
6319
6319
|
name: "univer-doc-paste-plugin-word",
|
|
6320
6320
|
checkPasteType(n) {
|
|
6321
6321
|
return /word|mso/i.test(n);
|
|
@@ -6339,13 +6339,13 @@ const hu = {
|
|
|
6339
6339
|
t.paragraphs == null && (t.paragraphs = []);
|
|
6340
6340
|
const o = {
|
|
6341
6341
|
startIndex: t.dataStream.length
|
|
6342
|
-
}, s =
|
|
6342
|
+
}, s = Ua(e);
|
|
6343
6343
|
s && (o.paragraphStyle = s), t.paragraphs.push(o), t.dataStream += "\r";
|
|
6344
6344
|
}
|
|
6345
6345
|
}
|
|
6346
6346
|
]
|
|
6347
6347
|
};
|
|
6348
|
-
function
|
|
6348
|
+
function pu(n) {
|
|
6349
6349
|
var o, s;
|
|
6350
6350
|
const e = (r) => {
|
|
6351
6351
|
let i = "";
|
|
@@ -6363,7 +6363,7 @@ function fu(n) {
|
|
|
6363
6363
|
};
|
|
6364
6364
|
return `<img ${e(t)}></img>`;
|
|
6365
6365
|
}
|
|
6366
|
-
function
|
|
6366
|
+
function hi(n, e) {
|
|
6367
6367
|
const { st: t, ed: o, ts: s = {} } = e, { ff: r, fs: i, it: a, bl: c, ul: l, st: A, ol: d, bg: h, cl: u, va: f } = s;
|
|
6368
6368
|
let g = n.slice(t, o);
|
|
6369
6369
|
const p = [];
|
|
@@ -6377,10 +6377,10 @@ function Go(n, e, t) {
|
|
|
6377
6377
|
const i = [];
|
|
6378
6378
|
for (const a of s) {
|
|
6379
6379
|
const { st: c, ed: l } = a;
|
|
6380
|
-
K.hasIntersectionBetweenTwoRanges(e, t, c, l) && (c > r ? (i.push(o.slice(r, c)), i.push(
|
|
6380
|
+
K.hasIntersectionBetweenTwoRanges(e, t, c, l) && (c > r ? (i.push(o.slice(r, c)), i.push(hi(o, {
|
|
6381
6381
|
...a,
|
|
6382
6382
|
ed: Math.min(l, t)
|
|
6383
|
-
}))) : i.push(
|
|
6383
|
+
}))) : i.push(hi(o, {
|
|
6384
6384
|
...a,
|
|
6385
6385
|
st: r,
|
|
6386
6386
|
ed: Math.min(l, t)
|
|
@@ -6388,7 +6388,7 @@ function Go(n, e, t) {
|
|
|
6388
6388
|
}
|
|
6389
6389
|
return r !== t && i.push(o.slice(r, t)), i.join("");
|
|
6390
6390
|
}
|
|
6391
|
-
function
|
|
6391
|
+
function mu(n, e, t) {
|
|
6392
6392
|
const o = n.body, s = n.drawings || {}, { customRanges: r = [], customBlocks: i = [] } = o || {}, a = [...i], c = r.filter((u) => u.startIndex >= e && u.endIndex <= t);
|
|
6393
6393
|
let l = e, A = "";
|
|
6394
6394
|
const d = (u, f) => {
|
|
@@ -6402,7 +6402,7 @@ function pu(n, e, t) {
|
|
|
6402
6402
|
if (C)
|
|
6403
6403
|
switch (C.drawingType) {
|
|
6404
6404
|
case Qs.DRAWING_IMAGE: {
|
|
6405
|
-
g +=
|
|
6405
|
+
g += pu(C), p++;
|
|
6406
6406
|
break;
|
|
6407
6407
|
}
|
|
6408
6408
|
}
|
|
@@ -6416,7 +6416,7 @@ function pu(n, e, t) {
|
|
|
6416
6416
|
A += S.sliceHtml;
|
|
6417
6417
|
const I = d(f, g + 1);
|
|
6418
6418
|
switch (p) {
|
|
6419
|
-
case
|
|
6419
|
+
case wi.HYPERLINK: {
|
|
6420
6420
|
A += `<a data-rangeid="${m}" href="${(R = (C = u.properties) == null ? void 0 : C.url) != null ? R : ""}">${I.sliceHtml}</a>`;
|
|
6421
6421
|
break;
|
|
6422
6422
|
}
|
|
@@ -6430,7 +6430,7 @@ function pu(n, e, t) {
|
|
|
6430
6430
|
const h = d(l, t);
|
|
6431
6431
|
return A += h.sliceHtml, A;
|
|
6432
6432
|
}
|
|
6433
|
-
function
|
|
6433
|
+
function Su(n) {
|
|
6434
6434
|
const e = n.body || {}, { paragraphs: t = [], sectionBreaks: o = [] } = e;
|
|
6435
6435
|
let { dataStream: s = "" } = e;
|
|
6436
6436
|
s.endsWith(`\r
|
|
@@ -6440,7 +6440,7 @@ function mu(n) {
|
|
|
6440
6440
|
}), o.push({
|
|
6441
6441
|
startIndex: s.length - 1
|
|
6442
6442
|
}), e.dataStream = s, e.paragraphs = t, e.sectionBreaks = o);
|
|
6443
|
-
const r = { html: "" }, i =
|
|
6443
|
+
const r = { html: "" }, i = Dc(s).sectionList;
|
|
6444
6444
|
for (const a of i)
|
|
6445
6445
|
zt(a, n, r);
|
|
6446
6446
|
return r.html;
|
|
@@ -6458,7 +6458,7 @@ function zt(n, e, t) {
|
|
|
6458
6458
|
if (A != null && (typeof A == "number" ? u.push(`margin-top: ${A}px`) : u.push(`margin-top: ${A.v}px`)), d != null && (typeof d == "number" ? u.push(`margin-bottom: ${d}px`) : u.push(`margin-bottom: ${d.v}px`)), h != null && u.push(`line-height: ${h}`), t.html += `<p class="UniverNormal" ${u.length ? `style="${u.join("; ")};"` : ""}>`, r.length)
|
|
6459
6459
|
for (const f of r)
|
|
6460
6460
|
zt(f, e, t);
|
|
6461
|
-
t.html += `${
|
|
6461
|
+
t.html += `${mu(e, i, a)}</p>`;
|
|
6462
6462
|
break;
|
|
6463
6463
|
}
|
|
6464
6464
|
case An.TABLE: {
|
|
@@ -6489,27 +6489,27 @@ function zt(n, e, t) {
|
|
|
6489
6489
|
throw new Error(`Unknown node type: ${n.nodeType}`);
|
|
6490
6490
|
}
|
|
6491
6491
|
}
|
|
6492
|
-
class
|
|
6492
|
+
class Eu {
|
|
6493
6493
|
convert(e) {
|
|
6494
6494
|
if (e.length === 0)
|
|
6495
6495
|
throw new Error("The bodyList length at least to be 1");
|
|
6496
6496
|
let t = "";
|
|
6497
6497
|
for (const o of K.deepClone(e))
|
|
6498
|
-
t +=
|
|
6498
|
+
t += Su(o);
|
|
6499
6499
|
return t;
|
|
6500
6500
|
}
|
|
6501
6501
|
}
|
|
6502
|
-
var
|
|
6503
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
6502
|
+
var Iu = Object.defineProperty, vu = Object.getOwnPropertyDescriptor, Cu = (n, e, t, o) => {
|
|
6503
|
+
for (var s = o > 1 ? void 0 : o ? vu(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
6504
6504
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
6505
|
-
return o && s &&
|
|
6505
|
+
return o && s && Iu(e, t, s), s;
|
|
6506
6506
|
}, un = (n, e) => (t, o) => e(t, o, n);
|
|
6507
|
-
en.use(
|
|
6508
|
-
en.use(uu);
|
|
6507
|
+
en.use(fu);
|
|
6509
6508
|
en.use(hu);
|
|
6510
|
-
|
|
6509
|
+
en.use(gu);
|
|
6510
|
+
function gi(n, e, t) {
|
|
6511
6511
|
var r, i, a;
|
|
6512
|
-
const o =
|
|
6512
|
+
const o = Mi(n, e, t + 2), s = U.TABLE_START + U.TABLE_ROW_START + U.TABLE_CELL_START + o.dataStream + U.TABLE_CELL_END + U.TABLE_ROW_END + U.TABLE_END;
|
|
6513
6513
|
return o.dataStream = s, (r = o.textRuns) == null || r.forEach((c) => {
|
|
6514
6514
|
const { st: l, ed: A } = c;
|
|
6515
6515
|
c.st = l + 3, c.ed = A + 3;
|
|
@@ -6527,7 +6527,7 @@ let fs = class extends me {
|
|
|
6527
6527
|
super();
|
|
6528
6528
|
b(this, "_clipboardHooks", []);
|
|
6529
6529
|
b(this, "_htmlToUDM", new en());
|
|
6530
|
-
b(this, "_umdToHtml", new
|
|
6530
|
+
b(this, "_umdToHtml", new Eu());
|
|
6531
6531
|
this._univerInstanceService = e, this._logService = t, this._commandService = o, this._clipboardInterfaceService = s, this._docSelectionManagerService = r;
|
|
6532
6532
|
}
|
|
6533
6533
|
async copy(e = xr.copy) {
|
|
@@ -6601,7 +6601,7 @@ let fs = class extends me {
|
|
|
6601
6601
|
const { body: t } = e;
|
|
6602
6602
|
if (t == null)
|
|
6603
6603
|
return !1;
|
|
6604
|
-
let o =
|
|
6604
|
+
let o = hc(t);
|
|
6605
6605
|
if (!((A = this._univerInstanceService.getCurrentUnitForType(P.UNIVER_DOC)) == null ? void 0 : A.getUnitId()))
|
|
6606
6606
|
return !1;
|
|
6607
6607
|
this._clipboardHooks.forEach((h) => {
|
|
@@ -6623,7 +6623,7 @@ let fs = class extends me {
|
|
|
6623
6623
|
style: c
|
|
6624
6624
|
}
|
|
6625
6625
|
];
|
|
6626
|
-
return this._commandService.executeCommand(
|
|
6626
|
+
return this._commandService.executeCommand(Da.id, {
|
|
6627
6627
|
doc: {
|
|
6628
6628
|
...e,
|
|
6629
6629
|
body: o
|
|
@@ -6637,7 +6637,7 @@ let fs = class extends me {
|
|
|
6637
6637
|
}
|
|
6638
6638
|
async _setClipboardData(e, t = !0) {
|
|
6639
6639
|
var i, a, c, l;
|
|
6640
|
-
const o =
|
|
6640
|
+
const o = lu(), s = (e.length > 1 ? e.map((A) => {
|
|
6641
6641
|
var d;
|
|
6642
6642
|
return ((d = A.body) == null ? void 0 : d.dataStream) || "";
|
|
6643
6643
|
}).join(`
|
|
@@ -6686,7 +6686,7 @@ let fs = class extends me {
|
|
|
6686
6686
|
r = !1;
|
|
6687
6687
|
const { spanEntireRow: m } = A;
|
|
6688
6688
|
let S;
|
|
6689
|
-
S =
|
|
6689
|
+
S = gi(a, d, h), s.push(S);
|
|
6690
6690
|
continue;
|
|
6691
6691
|
}
|
|
6692
6692
|
const g = { startOffset: d, endOffset: h, collapsed: u }, p = t.getSelfOrHeaderFooterModel(i).sliceBody(g.startOffset, g.endOffset, e);
|
|
@@ -6706,18 +6706,18 @@ let fs = class extends me {
|
|
|
6706
6706
|
for (const r of e)
|
|
6707
6707
|
for (const i of r.types)
|
|
6708
6708
|
switch (i) {
|
|
6709
|
-
case
|
|
6709
|
+
case Ki: {
|
|
6710
6710
|
o = await r.getType(i).then((a) => a && a.text());
|
|
6711
6711
|
break;
|
|
6712
6712
|
}
|
|
6713
|
-
case
|
|
6713
|
+
case qi: {
|
|
6714
6714
|
t = await r.getType(i).then((a) => a && a.text());
|
|
6715
6715
|
break;
|
|
6716
6716
|
}
|
|
6717
|
+
case Gi:
|
|
6717
6718
|
case Yi:
|
|
6718
6719
|
case zi:
|
|
6719
|
-
case Wi:
|
|
6720
|
-
case ji: {
|
|
6720
|
+
case Wi: {
|
|
6721
6721
|
const a = await r.getType(i), c = new File([a], `pasted_image.${i.split("/")[1]}`, { type: i });
|
|
6722
6722
|
s.push(c);
|
|
6723
6723
|
break;
|
|
@@ -6734,7 +6734,7 @@ let fs = class extends me {
|
|
|
6734
6734
|
return { body: Qe.transform.fromPlainText(t) };
|
|
6735
6735
|
throw new Error("[DocClipboardService] html and text cannot be both empty!");
|
|
6736
6736
|
}
|
|
6737
|
-
const s =
|
|
6737
|
+
const s = Au(e);
|
|
6738
6738
|
if (s) {
|
|
6739
6739
|
const i = Yo.get(s);
|
|
6740
6740
|
if (i)
|
|
@@ -6807,18 +6807,18 @@ let fs = class extends me {
|
|
|
6807
6807
|
})), this._umdToHtml.convert([t]);
|
|
6808
6808
|
}
|
|
6809
6809
|
};
|
|
6810
|
-
fs =
|
|
6810
|
+
fs = Cu([
|
|
6811
6811
|
un(0, Q),
|
|
6812
6812
|
un(1, Ts),
|
|
6813
6813
|
un(2, T),
|
|
6814
|
-
un(3,
|
|
6814
|
+
un(3, ji),
|
|
6815
6815
|
un(4, k(W))
|
|
6816
6816
|
], fs);
|
|
6817
6817
|
function Mo(n) {
|
|
6818
6818
|
return n.getContextValue(Tn) || n.getContextValue(En);
|
|
6819
6819
|
}
|
|
6820
6820
|
const cr = 999, Jn = {
|
|
6821
|
-
id:
|
|
6821
|
+
id: nl.id,
|
|
6822
6822
|
name: "doc.command.copy",
|
|
6823
6823
|
type: N.COMMAND,
|
|
6824
6824
|
multi: !0,
|
|
@@ -6826,7 +6826,7 @@ const cr = 999, Jn = {
|
|
|
6826
6826
|
preconditions: Mo,
|
|
6827
6827
|
handler: async (n) => n.get(wn).copy()
|
|
6828
6828
|
}, lr = {
|
|
6829
|
-
id:
|
|
6829
|
+
id: ol.id,
|
|
6830
6830
|
name: "doc.command.cut",
|
|
6831
6831
|
type: N.COMMAND,
|
|
6832
6832
|
multi: !0,
|
|
@@ -6834,14 +6834,14 @@ const cr = 999, Jn = {
|
|
|
6834
6834
|
preconditions: Mo,
|
|
6835
6835
|
handler: async (n) => n.get(wn).cut()
|
|
6836
6836
|
}, Ar = {
|
|
6837
|
-
id:
|
|
6837
|
+
id: sl.id,
|
|
6838
6838
|
name: "doc.command.paste",
|
|
6839
6839
|
type: N.COMMAND,
|
|
6840
6840
|
multi: !0,
|
|
6841
6841
|
priority: cr,
|
|
6842
6842
|
preconditions: Mo,
|
|
6843
6843
|
handler: async (n) => {
|
|
6844
|
-
const e = n.get(wn), o = await n.get(
|
|
6844
|
+
const e = n.get(wn), o = await n.get(ji).read();
|
|
6845
6845
|
return o.length === 0 ? !1 : e.paste(o);
|
|
6846
6846
|
}
|
|
6847
6847
|
}, Po = {
|
|
@@ -6907,7 +6907,7 @@ const cr = 999, Jn = {
|
|
|
6907
6907
|
const A = Je(n, c.getUnitId());
|
|
6908
6908
|
if (A == null)
|
|
6909
6909
|
return !1;
|
|
6910
|
-
const d = A.getViewModel(), h = c == null ? void 0 : c.getUnitId(), u = new Ce(), f = V.getInstance(), g =
|
|
6910
|
+
const d = A.getViewModel(), h = c == null ? void 0 : c.getUnitId(), u = new Ce(), f = V.getInstance(), g = Ma(i, d);
|
|
6911
6911
|
if (g == null)
|
|
6912
6912
|
return !1;
|
|
6913
6913
|
const { offset: p, rowIndexes: m, len: S, tableId: I, cursor: C, selectWholeTable: R } = g;
|
|
@@ -6954,7 +6954,7 @@ const cr = 999, Jn = {
|
|
|
6954
6954
|
const A = Je(n, c.getUnitId());
|
|
6955
6955
|
if (A == null)
|
|
6956
6956
|
return !1;
|
|
6957
|
-
const d = A.getViewModel(), h = c == null ? void 0 : c.getUnitId(), u = new Ce(), f = V.getInstance(), g =
|
|
6957
|
+
const d = A.getViewModel(), h = c == null ? void 0 : c.getUnitId(), u = new Ce(), f = V.getInstance(), g = Jd(i, d);
|
|
6958
6958
|
if (g == null)
|
|
6959
6959
|
return !1;
|
|
6960
6960
|
const { offsets: p, columnIndexes: m, tableId: S, cursor: I, rowCount: C, selectWholeTable: R } = g;
|
|
@@ -7009,7 +7009,7 @@ const cr = 999, Jn = {
|
|
|
7009
7009
|
const A = Je(n, c.getUnitId());
|
|
7010
7010
|
if (A == null)
|
|
7011
7011
|
return !1;
|
|
7012
|
-
const d = A.getViewModel(), h = c == null ? void 0 : c.getUnitId(), u = new Ce(), f = V.getInstance(), g =
|
|
7012
|
+
const d = A.getViewModel(), h = c == null ? void 0 : c.getUnitId(), u = new Ce(), f = V.getInstance(), g = Pa(i, d);
|
|
7013
7013
|
if (g == null)
|
|
7014
7014
|
return !1;
|
|
7015
7015
|
const { offset: p, len: m, tableId: S, cursor: I } = g, C = [], R = [{
|
|
@@ -7036,23 +7036,23 @@ const cr = 999, Jn = {
|
|
|
7036
7036
|
const y = f.removeOp(["tableSource", S]);
|
|
7037
7037
|
return C.push(y), E.params.actions = C.reduce((D, x) => V.compose(D, x), null), !!o.syncExecuteCommand(E.id, E.params);
|
|
7038
7038
|
}
|
|
7039
|
-
}, hr = "doc.command.table-insert-row", gr = "doc.command.table-insert-column",
|
|
7040
|
-
id:
|
|
7039
|
+
}, hr = "doc.command.table-insert-row", gr = "doc.command.table-insert-column", Ru = "doc.command.table-insert-row-above", bu = "doc.command.table-insert-row-bellow", xu = "doc.command.table-insert-column-left", Ou = "doc.command.table-insert-column-right", fr = {
|
|
7040
|
+
id: Ru,
|
|
7041
7041
|
type: N.COMMAND,
|
|
7042
7042
|
handler: async (n) => n.get(T).executeCommand(hr, { position: Bo.ABOVE })
|
|
7043
7043
|
}, pr = {
|
|
7044
|
-
id:
|
|
7044
|
+
id: bu,
|
|
7045
7045
|
type: N.COMMAND,
|
|
7046
7046
|
handler: async (n) => n.get(T).executeCommand(hr, { position: Bo.BELLOW })
|
|
7047
7047
|
}, mr = {
|
|
7048
|
-
id:
|
|
7048
|
+
id: xu,
|
|
7049
7049
|
type: N.COMMAND,
|
|
7050
7050
|
handler: async (n) => n.get(T).executeCommand(gr, { position: $s.LEFT })
|
|
7051
7051
|
}, Sr = {
|
|
7052
|
-
id:
|
|
7052
|
+
id: Ou,
|
|
7053
7053
|
type: N.COMMAND,
|
|
7054
7054
|
handler: async (n) => n.get(T).executeCommand(gr, { position: $s.RIGHT })
|
|
7055
|
-
},
|
|
7055
|
+
}, La = {
|
|
7056
7056
|
id: hr,
|
|
7057
7057
|
type: N.COMMAND,
|
|
7058
7058
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -7066,7 +7066,7 @@ const cr = 999, Jn = {
|
|
|
7066
7066
|
const h = Je(n, A.getUnitId());
|
|
7067
7067
|
if (h == null)
|
|
7068
7068
|
return !1;
|
|
7069
|
-
const u = h.getViewModel(), f = A == null ? void 0 : A.getUnitId(), g = new Ce(), p = V.getInstance(), m =
|
|
7069
|
+
const u = h.getViewModel(), f = A == null ? void 0 : A.getUnitId(), g = new Ce(), p = V.getInstance(), m = qd(c, t, u);
|
|
7070
7070
|
if (m == null)
|
|
7071
7071
|
return !1;
|
|
7072
7072
|
const { offset: S, colCount: I, tableId: C, insertRowIndex: R } = m, E = [], v = S + 2, y = [{
|
|
@@ -7085,7 +7085,7 @@ const cr = 999, Jn = {
|
|
|
7085
7085
|
t: j.RETAIN,
|
|
7086
7086
|
len: S
|
|
7087
7087
|
});
|
|
7088
|
-
const D =
|
|
7088
|
+
const D = Yd(I);
|
|
7089
7089
|
g.push({
|
|
7090
7090
|
t: j.INSERT,
|
|
7091
7091
|
body: D,
|
|
@@ -7096,7 +7096,7 @@ const cr = 999, Jn = {
|
|
|
7096
7096
|
const _ = tr(I), M = p.insertOp(["tableSource", C, "tableRows", R], _);
|
|
7097
7097
|
return E.push(M), O.params.actions = E.reduce((F, H) => V.compose(F, H), null), !!r.syncExecuteCommand(O.id, O.params);
|
|
7098
7098
|
}
|
|
7099
|
-
},
|
|
7099
|
+
}, yu = {
|
|
7100
7100
|
id: gr,
|
|
7101
7101
|
type: N.COMMAND,
|
|
7102
7102
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -7111,7 +7111,7 @@ const cr = 999, Jn = {
|
|
|
7111
7111
|
const h = Je(n, A.getUnitId());
|
|
7112
7112
|
if (h == null)
|
|
7113
7113
|
return !1;
|
|
7114
|
-
const u = h.getViewModel(), f = A == null ? void 0 : A.getUnitId(), g = new Ce(), p = V.getInstance(), m =
|
|
7114
|
+
const u = h.getViewModel(), f = A == null ? void 0 : A.getUnitId(), g = new Ce(), p = V.getInstance(), m = Kd(c, t, u);
|
|
7115
7115
|
if (m == null)
|
|
7116
7116
|
return !1;
|
|
7117
7117
|
const { offsets: S, columnIndex: I, tableId: C, rowCount: R } = m, E = [], v = S[0] + 1, y = [{
|
|
@@ -7131,7 +7131,7 @@ const cr = 999, Jn = {
|
|
|
7131
7131
|
t: j.RETAIN,
|
|
7132
7132
|
len: q
|
|
7133
7133
|
});
|
|
7134
|
-
const $ =
|
|
7134
|
+
const $ = Gd();
|
|
7135
7135
|
g.push({
|
|
7136
7136
|
t: j.INSERT,
|
|
7137
7137
|
body: $,
|
|
@@ -7144,7 +7144,7 @@ const cr = 999, Jn = {
|
|
|
7144
7144
|
const $ = er(), Ie = p.insertOp(["tableSource", C, "tableRows", q, "tableCells", I], $);
|
|
7145
7145
|
E.push(Ie);
|
|
7146
7146
|
}
|
|
7147
|
-
const x = A.getSnapshot(), _ = x.documentStyle, { marginLeft: M = 0, marginRight: w = 0 } = _, F = ((re = (ue = _.pageSize) == null ? void 0 : ue.width) != null ? re : 800) - M - w, H = (Y = x == null ? void 0 : x.tableSource) == null ? void 0 : Y[C].tableColumns, { newColWidth: te, widths: Z } =
|
|
7147
|
+
const x = A.getSnapshot(), _ = x.documentStyle, { marginLeft: M = 0, marginRight: w = 0 } = _, F = ((re = (ue = _.pageSize) == null ? void 0 : ue.width) != null ? re : 800) - M - w, H = (Y = x == null ? void 0 : x.tableSource) == null ? void 0 : Y[C].tableColumns, { newColWidth: te, widths: Z } = Xd(F, H, I);
|
|
7148
7148
|
for (let q = 0; q < Z.length; q++) {
|
|
7149
7149
|
const $ = p.replaceOp(["tableSource", C, "tableColumns", q, "size", "width", "v"], H[q].size.width.v, Z[q]);
|
|
7150
7150
|
E.push($);
|
|
@@ -7152,8 +7152,8 @@ const cr = 999, Jn = {
|
|
|
7152
7152
|
const G = nr(te), z = p.insertOp(["tableSource", C, "tableColumns", I], G);
|
|
7153
7153
|
return E.push(z), O.params.actions = E.reduce((q, $) => V.compose(q, $), null), !!r.syncExecuteCommand(O.id, O.params);
|
|
7154
7154
|
}
|
|
7155
|
-
},
|
|
7156
|
-
function
|
|
7155
|
+
}, Fa = "COMPONENT_DOC_CREATE_TABLE_CONFIRM";
|
|
7156
|
+
function Ha(n, e) {
|
|
7157
7157
|
const t = [];
|
|
7158
7158
|
for (let o = 0, s = n.length; o < s; o++)
|
|
7159
7159
|
n[o] === U.PARAGRAPH && t.push({
|
|
@@ -7164,7 +7164,7 @@ function Fa(n, e) {
|
|
|
7164
7164
|
e.bullet && (o.bullet = K.deepClone(e.bullet)), e.paragraphStyle && (o.paragraphStyle = K.deepClone(e.paragraphStyle));
|
|
7165
7165
|
return t;
|
|
7166
7166
|
}
|
|
7167
|
-
const
|
|
7167
|
+
const Va = {
|
|
7168
7168
|
id: "doc.command.break-line",
|
|
7169
7169
|
type: N.COMMAND,
|
|
7170
7170
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -7188,7 +7188,7 @@ const Ha = {
|
|
|
7188
7188
|
return !1;
|
|
7189
7189
|
const g = f.startIndex, p = s.getDefaultStyle(), m = s.getStyleCache(), S = Io((v = l.textRuns) != null ? v : [], h, p, m), I = {
|
|
7190
7190
|
dataStream: U.PARAGRAPH,
|
|
7191
|
-
paragraphs:
|
|
7191
|
+
paragraphs: Ha(U.PARAGRAPH, f),
|
|
7192
7192
|
textRuns: [{
|
|
7193
7193
|
st: 0,
|
|
7194
7194
|
ed: 1,
|
|
@@ -7219,8 +7219,8 @@ const Ha = {
|
|
|
7219
7219
|
}
|
|
7220
7220
|
return R;
|
|
7221
7221
|
}
|
|
7222
|
-
},
|
|
7223
|
-
id:
|
|
7222
|
+
}, Tu = "doc.command.create-table", ka = {
|
|
7223
|
+
id: Tu,
|
|
7224
7224
|
type: N.COMMAND,
|
|
7225
7225
|
// eslint-disable-next-line max-lines-per-function
|
|
7226
7226
|
handler: async (n, e) => {
|
|
@@ -7256,7 +7256,7 @@ const Ha = {
|
|
|
7256
7256
|
t: j.INSERT,
|
|
7257
7257
|
body: {
|
|
7258
7258
|
dataStream: U.PARAGRAPH,
|
|
7259
|
-
paragraphs:
|
|
7259
|
+
paragraphs: Ha(U.PARAGRAPH, S)
|
|
7260
7260
|
},
|
|
7261
7261
|
len: 1
|
|
7262
7262
|
});
|
|
@@ -7265,10 +7265,10 @@ const Ha = {
|
|
|
7265
7265
|
p,
|
|
7266
7266
|
D,
|
|
7267
7267
|
x
|
|
7268
|
-
), { dataStream: M, paragraphs: w, sectionBreaks: F } =
|
|
7268
|
+
), { dataStream: M, paragraphs: w, sectionBreaks: F } = zd(t, o), H = (Fe = (ye = (Ie = ($ = I.parent) == null ? void 0 : $.parent) == null ? void 0 : Ie.parent) == null ? void 0 : ye.parent) == null ? void 0 : Fe.parent;
|
|
7269
7269
|
if (H == null)
|
|
7270
7270
|
return !1;
|
|
7271
|
-
const { pageWidth: te, marginLeft: Z, marginRight: G } = H, z =
|
|
7271
|
+
const { pageWidth: te, marginLeft: Z, marginRight: G } = H, z = _a(t, o, te - Z - G);
|
|
7272
7272
|
C.push({
|
|
7273
7273
|
t: j.INSERT,
|
|
7274
7274
|
body: {
|
|
@@ -7299,7 +7299,7 @@ const Ha = {
|
|
|
7299
7299
|
id: "doc.operation.create-table",
|
|
7300
7300
|
type: N.COMMAND,
|
|
7301
7301
|
handler: async (n) => {
|
|
7302
|
-
const e = n.get(Xe), t = n.get(
|
|
7302
|
+
const e = n.get(Xe), t = n.get(rl), o = n.get(T), s = {
|
|
7303
7303
|
rowCount: 3,
|
|
7304
7304
|
colCount: 5
|
|
7305
7305
|
}, r = (i, a) => {
|
|
@@ -7309,7 +7309,7 @@ const Ha = {
|
|
|
7309
7309
|
id: qo,
|
|
7310
7310
|
children: {
|
|
7311
7311
|
label: {
|
|
7312
|
-
name:
|
|
7312
|
+
name: Fa,
|
|
7313
7313
|
props: {
|
|
7314
7314
|
handleRowColChange: r,
|
|
7315
7315
|
tableCreateParams: s
|
|
@@ -7319,7 +7319,7 @@ const Ha = {
|
|
|
7319
7319
|
width: 400,
|
|
7320
7320
|
title: { title: e.t("toolbar.table.insert") },
|
|
7321
7321
|
onConfirm: () => {
|
|
7322
|
-
o.executeCommand(
|
|
7322
|
+
o.executeCommand(ka.id, s), t.close(qo);
|
|
7323
7323
|
},
|
|
7324
7324
|
onClose: () => {
|
|
7325
7325
|
t.close(qo);
|
|
@@ -7373,19 +7373,19 @@ const Ha = {
|
|
|
7373
7373
|
const g = fe(r, a);
|
|
7374
7374
|
return d.params.actions = f.editOp(u.serialize(), g), !!s.syncExecuteCommand(d.id, d.params);
|
|
7375
7375
|
}
|
|
7376
|
-
},
|
|
7376
|
+
}, Bu = () => {
|
|
7377
7377
|
const n = se(W), e = se(tn), t = Pt(() => n.getDocRanges(), []);
|
|
7378
7378
|
return Oe(() => {
|
|
7379
7379
|
t.length || e.closePanel();
|
|
7380
7380
|
}, [t]), t;
|
|
7381
|
-
},
|
|
7381
|
+
}, _u = () => {
|
|
7382
7382
|
var i, a, c;
|
|
7383
|
-
const e = se(Q).getCurrentUnitForType(P.UNIVER_DOC), t =
|
|
7383
|
+
const e = se(Q).getCurrentUnitForType(P.UNIVER_DOC), t = Bu();
|
|
7384
7384
|
if (!e || t.length === 0)
|
|
7385
7385
|
return [];
|
|
7386
7386
|
const o = t[0].segmentId, s = (a = (i = e.getSelfOrHeaderFooterModel(o).getBody()) == null ? void 0 : i.paragraphs) != null ? a : [];
|
|
7387
7387
|
return (c = Pn(t, s)) != null ? c : [];
|
|
7388
|
-
},
|
|
7388
|
+
}, Mu = (n, e) => {
|
|
7389
7389
|
const t = se(T), [o, s] = he(() => {
|
|
7390
7390
|
var a, c;
|
|
7391
7391
|
const i = n[0];
|
|
@@ -7394,7 +7394,7 @@ const Ha = {
|
|
|
7394
7394
|
return [o, (i) => (s(i), t.executeCommand(at.id, {
|
|
7395
7395
|
paragraph: { horizontalAlign: Number(i) }
|
|
7396
7396
|
}))];
|
|
7397
|
-
},
|
|
7397
|
+
}, Pu = (n) => {
|
|
7398
7398
|
const e = se(T), [t, o] = he(() => {
|
|
7399
7399
|
var i;
|
|
7400
7400
|
const r = n[0];
|
|
@@ -7403,7 +7403,7 @@ const Ha = {
|
|
|
7403
7403
|
return [t, (r) => (o(r), e.executeCommand(at.id, {
|
|
7404
7404
|
paragraph: { indentStart: { v: r } }
|
|
7405
7405
|
}))];
|
|
7406
|
-
},
|
|
7406
|
+
}, Du = (n) => {
|
|
7407
7407
|
const e = se(T), [t, o] = he(() => {
|
|
7408
7408
|
var i;
|
|
7409
7409
|
const r = n[0];
|
|
@@ -7412,7 +7412,7 @@ const Ha = {
|
|
|
7412
7412
|
return [t, (r) => (o(r), e.executeCommand(at.id, {
|
|
7413
7413
|
paragraph: { indentEnd: { v: r } }
|
|
7414
7414
|
}))];
|
|
7415
|
-
},
|
|
7415
|
+
}, wu = (n) => {
|
|
7416
7416
|
const e = se(T), [t, o] = he(() => {
|
|
7417
7417
|
var i;
|
|
7418
7418
|
const r = n[0];
|
|
@@ -7421,7 +7421,7 @@ const Ha = {
|
|
|
7421
7421
|
return [t, (r) => (o(r), e.executeCommand(at.id, {
|
|
7422
7422
|
paragraph: { indentFirstLine: { v: r } }
|
|
7423
7423
|
}))];
|
|
7424
|
-
},
|
|
7424
|
+
}, Nu = (n) => {
|
|
7425
7425
|
const e = se(T), [t, o] = he(() => {
|
|
7426
7426
|
var i;
|
|
7427
7427
|
const r = n[0];
|
|
@@ -7430,7 +7430,7 @@ const Ha = {
|
|
|
7430
7430
|
return [t, (r) => (o(r), e.executeCommand(at.id, {
|
|
7431
7431
|
paragraph: { hanging: { v: r } }
|
|
7432
7432
|
}))];
|
|
7433
|
-
},
|
|
7433
|
+
}, Qu = (n) => {
|
|
7434
7434
|
const e = se(T), [t, o] = he(() => {
|
|
7435
7435
|
var i;
|
|
7436
7436
|
const r = n[0];
|
|
@@ -7439,7 +7439,7 @@ const Ha = {
|
|
|
7439
7439
|
return [t, (r) => (o(r), e.executeCommand(at.id, {
|
|
7440
7440
|
paragraph: { spaceAbove: { v: r } }
|
|
7441
7441
|
}))];
|
|
7442
|
-
},
|
|
7442
|
+
}, Uu = (n) => {
|
|
7443
7443
|
const e = se(T), [t, o] = he(() => {
|
|
7444
7444
|
var i;
|
|
7445
7445
|
const r = n[0];
|
|
@@ -7448,7 +7448,7 @@ const Ha = {
|
|
|
7448
7448
|
return [t, (r) => (o(r), e.executeCommand(at.id, {
|
|
7449
7449
|
paragraph: { spaceBelow: { v: r } }
|
|
7450
7450
|
}))];
|
|
7451
|
-
},
|
|
7451
|
+
}, Lu = (n) => {
|
|
7452
7452
|
const e = se(T), t = se(Re), o = se(Q), s = Pt(() => {
|
|
7453
7453
|
var f;
|
|
7454
7454
|
const u = o.getCurrentUnitForType(P.UNIVER_DOC);
|
|
@@ -7478,9 +7478,9 @@ const Ha = {
|
|
|
7478
7478
|
return Oe(() => {
|
|
7479
7479
|
const u = r.pipe(
|
|
7480
7480
|
ss((f) => !!Object.keys(f).length),
|
|
7481
|
-
|
|
7481
|
+
pl(16),
|
|
7482
7482
|
ss((f) => !!f.length),
|
|
7483
|
-
|
|
7483
|
+
ml((f) => f.reduce((g, p) => (Object.keys(p).forEach((m) => {
|
|
7484
7484
|
g[m] = p[m];
|
|
7485
7485
|
}), g), {}))
|
|
7486
7486
|
).subscribe((f) => e.executeCommand(at.id, {
|
|
@@ -7491,17 +7491,17 @@ const Ha = {
|
|
|
7491
7491
|
lineSpacing: [i, d],
|
|
7492
7492
|
spacingRule: [l, h]
|
|
7493
7493
|
};
|
|
7494
|
-
},
|
|
7495
|
-
paragraphSettingIconList:
|
|
7496
|
-
paragraphSettingIconListItem:
|
|
7497
|
-
paragraphSettingIconListActive:
|
|
7498
|
-
paragraphSettingTitle:
|
|
7499
|
-
paragraphSettingLabel:
|
|
7500
|
-
paragraphSettingMtBase:
|
|
7501
|
-
paragraphSettingFlexCol:
|
|
7502
|
-
paragraphSettingSpaceLine:
|
|
7494
|
+
}, Fu = "univer-paragraph-setting-icon-list", Hu = "univer-paragraph-setting-icon-list-item", Vu = "univer-paragraph-setting-icon-list-active", ku = "univer-paragraph-setting-title", ju = "univer-paragraph-setting-label", Wu = "univer-paragraph-setting-mt-base", zu = "univer-paragraph-setting-flex-col", Yu = "univer-paragraph-setting-space-line", ie = {
|
|
7495
|
+
paragraphSettingIconList: Fu,
|
|
7496
|
+
paragraphSettingIconListItem: Hu,
|
|
7497
|
+
paragraphSettingIconListActive: Vu,
|
|
7498
|
+
paragraphSettingTitle: ku,
|
|
7499
|
+
paragraphSettingLabel: ju,
|
|
7500
|
+
paragraphSettingMtBase: Wu,
|
|
7501
|
+
paragraphSettingFlexCol: zu,
|
|
7502
|
+
paragraphSettingSpaceLine: Yu
|
|
7503
7503
|
}, Tt = (n) => {
|
|
7504
|
-
const { value: e, onChange: t, className: o = "", min: s = 0, max: r = 100, step: i = 1 } = n, a =
|
|
7504
|
+
const { value: e, onChange: t, className: o = "", min: s = 0, max: r = 100, step: i = 1 } = n, a = Vc.useRef(null);
|
|
7505
7505
|
return /* @__PURE__ */ B.jsx(
|
|
7506
7506
|
bn,
|
|
7507
7507
|
{
|
|
@@ -7522,16 +7522,16 @@ const Ha = {
|
|
|
7522
7522
|
}
|
|
7523
7523
|
);
|
|
7524
7524
|
};
|
|
7525
|
-
function
|
|
7525
|
+
function Gu() {
|
|
7526
7526
|
const n = se(Xe), e = Pt(
|
|
7527
7527
|
() => [
|
|
7528
|
-
{ label: n.t("toolbar.alignLeft"), value: String(Le.LEFT), icon: /* @__PURE__ */ B.jsx(
|
|
7529
|
-
{ label: n.t("toolbar.alignCenter"), value: String(Le.CENTER), icon: /* @__PURE__ */ B.jsx(
|
|
7530
|
-
{ label: n.t("toolbar.alignRight"), value: String(Le.RIGHT), icon: /* @__PURE__ */ B.jsx(
|
|
7531
|
-
{ label: n.t("toolbar.alignJustify"), value: String(Le.JUSTIFIED), icon: /* @__PURE__ */ B.jsx(
|
|
7528
|
+
{ label: n.t("toolbar.alignLeft"), value: String(Le.LEFT), icon: /* @__PURE__ */ B.jsx(ua, {}) },
|
|
7529
|
+
{ label: n.t("toolbar.alignCenter"), value: String(Le.CENTER), icon: /* @__PURE__ */ B.jsx(Aa, {}) },
|
|
7530
|
+
{ label: n.t("toolbar.alignRight"), value: String(Le.RIGHT), icon: /* @__PURE__ */ B.jsx(ha, {}) },
|
|
7531
|
+
{ label: n.t("toolbar.alignJustify"), value: String(Le.JUSTIFIED), icon: /* @__PURE__ */ B.jsx(aa, {}) }
|
|
7532
7532
|
],
|
|
7533
7533
|
[]
|
|
7534
|
-
), t =
|
|
7534
|
+
), t = _u(), [o, s] = Mu(t, e[0].value), [r, i] = Pu(t), [a, c] = Du(t), [l, A] = wu(t), [d, h] = Nu(t), [u, f] = Qu(t), [g, p] = Uu(t), { lineSpacing: [m, S], spacingRule: [I, C] } = Lu(t), R = Pt(() => I === Yt.AUTO ? { min: 1, max: 5, step: m < 2 ? 0.5 : 1 } : { min: 1, max: 100 }, [I, m]);
|
|
7535
7535
|
return /* @__PURE__ */ B.jsxs("div", { className: ie.paragraphSetting, children: [
|
|
7536
7536
|
/* @__PURE__ */ B.jsx("div", { className: ie.paragraphSettingTitle, children: n.t("doc.paragraphSetting.alignment") }),
|
|
7537
7537
|
/* @__PURE__ */ B.jsx(
|
|
@@ -7541,7 +7541,7 @@ function Yu() {
|
|
|
7541
7541
|
${ie.paragraphSettingIconList}
|
|
7542
7542
|
${ie.paragraphSettingMtBase}
|
|
7543
7543
|
`,
|
|
7544
|
-
children: e.map((E) => /* @__PURE__ */ B.jsx(
|
|
7544
|
+
children: e.map((E) => /* @__PURE__ */ B.jsx(Zi, { title: E.label, placement: "bottom", children: /* @__PURE__ */ B.jsx(
|
|
7545
7545
|
"span",
|
|
7546
7546
|
{
|
|
7547
7547
|
className: Kn(
|
|
@@ -7613,7 +7613,7 @@ function Yu() {
|
|
|
7613
7613
|
style: { width: 162 },
|
|
7614
7614
|
children: [
|
|
7615
7615
|
/* @__PURE__ */ B.jsx(
|
|
7616
|
-
|
|
7616
|
+
vl,
|
|
7617
7617
|
{
|
|
7618
7618
|
value: `${I}`,
|
|
7619
7619
|
options: [
|
|
@@ -7638,28 +7638,28 @@ function Yu() {
|
|
|
7638
7638
|
] })
|
|
7639
7639
|
] });
|
|
7640
7640
|
}
|
|
7641
|
-
const
|
|
7642
|
-
function
|
|
7643
|
-
const n = se(T), e = se(Xe), t =
|
|
7641
|
+
const qu = (n, e) => e.length === n.length && n.some((t) => e.some((o) => o.startOffset === t.startOffset && o.endOffset === t.endOffset));
|
|
7642
|
+
function Ku() {
|
|
7643
|
+
const n = se(T), e = se(Xe), t = Pi(e.currentLocale$), [o, s] = he(""), r = Pt(() => es(() => s(In(4)), 300), []), i = et([]);
|
|
7644
7644
|
return Oe(() => {
|
|
7645
7645
|
const a = n.onCommandExecuted((c) => {
|
|
7646
7646
|
if (Ve.id === c.id) {
|
|
7647
7647
|
const l = c.params.ranges;
|
|
7648
|
-
|
|
7648
|
+
qu(l, i.current) || s(In(4)), i.current = l;
|
|
7649
7649
|
}
|
|
7650
7650
|
X.id === c.id && c.params.trigger !== at.id && r();
|
|
7651
7651
|
});
|
|
7652
7652
|
return () => a.dispose();
|
|
7653
7653
|
}, [r]), Oe(() => {
|
|
7654
7654
|
s(In(4));
|
|
7655
|
-
}, [t]), Oe(() => () => r.cancel(), [r]), /* @__PURE__ */ B.jsx(
|
|
7655
|
+
}, [t]), Oe(() => () => r.cancel(), [r]), /* @__PURE__ */ B.jsx(Gu, {}, o);
|
|
7656
7656
|
}
|
|
7657
|
-
var
|
|
7658
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
7657
|
+
var Xu = Object.defineProperty, Ju = Object.getOwnPropertyDescriptor, Zu = (n, e, t, o) => {
|
|
7658
|
+
for (var s = o > 1 ? void 0 : o ? Ju(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
7659
7659
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
7660
|
-
return o && s &&
|
|
7660
|
+
return o && s && Xu(e, t, s), s;
|
|
7661
7661
|
}, Ko = (n, e) => (t, o) => e(t, o, n);
|
|
7662
|
-
const
|
|
7662
|
+
const fi = "doc_ui_paragraph-setting-panel";
|
|
7663
7663
|
let tn = class extends me {
|
|
7664
7664
|
constructor(e, t, o) {
|
|
7665
7665
|
super();
|
|
@@ -7667,14 +7667,14 @@ let tn = class extends me {
|
|
|
7667
7667
|
this._commandService = e, this._componentManager = t, this._sidebarService = o, this._init();
|
|
7668
7668
|
}
|
|
7669
7669
|
_init() {
|
|
7670
|
-
this.disposeWithMe(this._componentManager.register(
|
|
7670
|
+
this.disposeWithMe(this._componentManager.register(fi, Ku));
|
|
7671
7671
|
}
|
|
7672
7672
|
openPanel() {
|
|
7673
7673
|
const e = {
|
|
7674
7674
|
header: { title: "doc.slider.paragraphSetting" },
|
|
7675
7675
|
id: this._id,
|
|
7676
7676
|
children: {
|
|
7677
|
-
label:
|
|
7677
|
+
label: fi
|
|
7678
7678
|
},
|
|
7679
7679
|
width: 300
|
|
7680
7680
|
};
|
|
@@ -7684,10 +7684,10 @@ let tn = class extends me {
|
|
|
7684
7684
|
this._sidebarService.close(this._id);
|
|
7685
7685
|
}
|
|
7686
7686
|
};
|
|
7687
|
-
tn =
|
|
7687
|
+
tn = Zu([
|
|
7688
7688
|
Ko(0, T),
|
|
7689
7689
|
Ko(1, k(Eo)),
|
|
7690
|
-
Ko(2, k(
|
|
7690
|
+
Ko(2, k(ki))
|
|
7691
7691
|
], tn);
|
|
7692
7692
|
const Ir = {
|
|
7693
7693
|
id: "sidebar.operation.doc-paragraph-setting-panel",
|
|
@@ -7703,16 +7703,16 @@ const Ir = {
|
|
|
7703
7703
|
return () => o.unsubscribe();
|
|
7704
7704
|
});
|
|
7705
7705
|
};
|
|
7706
|
-
function
|
|
7706
|
+
function $u(n) {
|
|
7707
7707
|
if (n.length < 2)
|
|
7708
7708
|
return !0;
|
|
7709
7709
|
const e = n.map((t) => t.tableId);
|
|
7710
7710
|
return e.every((t) => t === e[0]);
|
|
7711
7711
|
}
|
|
7712
|
-
function
|
|
7712
|
+
function pi(n, e, t) {
|
|
7713
7713
|
var r;
|
|
7714
7714
|
const o = e.getRectRanges(), s = e.getActiveTextRange();
|
|
7715
|
-
if (o && o.length &&
|
|
7715
|
+
if (o && o.length && $u(o) && s == null) {
|
|
7716
7716
|
n.next(!1);
|
|
7717
7717
|
return;
|
|
7718
7718
|
}
|
|
@@ -7732,11 +7732,11 @@ const pt = (n) => {
|
|
|
7732
7732
|
const e = n.get(W), t = n.get(Q);
|
|
7733
7733
|
return new Ee((o) => {
|
|
7734
7734
|
const s = e.textSelection$.subscribe(() => {
|
|
7735
|
-
|
|
7735
|
+
pi(o, e, t);
|
|
7736
7736
|
});
|
|
7737
|
-
return
|
|
7737
|
+
return pi(o, e, t), () => s.unsubscribe();
|
|
7738
7738
|
});
|
|
7739
|
-
},
|
|
7739
|
+
}, eh = (n) => ({
|
|
7740
7740
|
id: Jn.name,
|
|
7741
7741
|
commandId: Jn.id,
|
|
7742
7742
|
type: J.BUTTON,
|
|
@@ -7744,43 +7744,43 @@ const pt = (n) => {
|
|
|
7744
7744
|
title: "rightClick.copy",
|
|
7745
7745
|
disabled$: vr(n),
|
|
7746
7746
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7747
|
-
}),
|
|
7747
|
+
}), th = (n) => ({
|
|
7748
7748
|
id: Ir.id,
|
|
7749
7749
|
type: J.BUTTON,
|
|
7750
7750
|
icon: "MenuSingle24",
|
|
7751
7751
|
title: "doc.menu.paragraphSetting",
|
|
7752
7752
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7753
|
-
}),
|
|
7753
|
+
}), nh = (n) => ({
|
|
7754
7754
|
id: lr.id,
|
|
7755
7755
|
type: J.BUTTON,
|
|
7756
7756
|
icon: "Copy",
|
|
7757
7757
|
title: "rightClick.cut",
|
|
7758
7758
|
disabled$: vr(n),
|
|
7759
7759
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7760
|
-
}),
|
|
7760
|
+
}), oh = (n) => ({
|
|
7761
7761
|
id: Ar.id,
|
|
7762
7762
|
type: J.BUTTON,
|
|
7763
7763
|
icon: "PasteSpecial",
|
|
7764
7764
|
title: "rightClick.paste",
|
|
7765
7765
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7766
|
-
}),
|
|
7766
|
+
}), sh = (n) => ({
|
|
7767
7767
|
id: _o.id,
|
|
7768
7768
|
type: J.BUTTON,
|
|
7769
7769
|
icon: "PasteSpecial",
|
|
7770
7770
|
title: "rightClick.delete",
|
|
7771
7771
|
disabled$: vr(n),
|
|
7772
7772
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7773
|
-
}),
|
|
7774
|
-
function
|
|
7773
|
+
}), ja = "doc.menu.table-insert";
|
|
7774
|
+
function rh(n) {
|
|
7775
7775
|
return {
|
|
7776
|
-
id:
|
|
7776
|
+
id: ja,
|
|
7777
7777
|
type: J.SUBITEMS,
|
|
7778
7778
|
title: "table.insert",
|
|
7779
7779
|
icon: "Insert",
|
|
7780
7780
|
hidden$: So(ee(n, P.UNIVER_DOC), pt(n), (e, t) => e || t)
|
|
7781
7781
|
};
|
|
7782
7782
|
}
|
|
7783
|
-
function
|
|
7783
|
+
function ih(n) {
|
|
7784
7784
|
return {
|
|
7785
7785
|
id: fr.id,
|
|
7786
7786
|
type: J.BUTTON,
|
|
@@ -7790,7 +7790,7 @@ function rh(n) {
|
|
|
7790
7790
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7791
7791
|
};
|
|
7792
7792
|
}
|
|
7793
|
-
function
|
|
7793
|
+
function ah(n) {
|
|
7794
7794
|
return {
|
|
7795
7795
|
id: pr.id,
|
|
7796
7796
|
type: J.BUTTON,
|
|
@@ -7800,7 +7800,7 @@ function ih(n) {
|
|
|
7800
7800
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7801
7801
|
};
|
|
7802
7802
|
}
|
|
7803
|
-
function
|
|
7803
|
+
function ch(n) {
|
|
7804
7804
|
return {
|
|
7805
7805
|
id: mr.id,
|
|
7806
7806
|
type: J.BUTTON,
|
|
@@ -7810,7 +7810,7 @@ function ah(n) {
|
|
|
7810
7810
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7811
7811
|
};
|
|
7812
7812
|
}
|
|
7813
|
-
function
|
|
7813
|
+
function lh(n) {
|
|
7814
7814
|
return {
|
|
7815
7815
|
id: Sr.id,
|
|
7816
7816
|
type: J.BUTTON,
|
|
@@ -7820,17 +7820,17 @@ function ch(n) {
|
|
|
7820
7820
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7821
7821
|
};
|
|
7822
7822
|
}
|
|
7823
|
-
const
|
|
7824
|
-
function
|
|
7823
|
+
const Wa = "doc.menu.table-delete";
|
|
7824
|
+
function Ah(n) {
|
|
7825
7825
|
return {
|
|
7826
|
-
id:
|
|
7826
|
+
id: Wa,
|
|
7827
7827
|
type: J.SUBITEMS,
|
|
7828
7828
|
title: "table.delete",
|
|
7829
7829
|
icon: "Reduce",
|
|
7830
7830
|
hidden$: So(ee(n, P.UNIVER_DOC), pt(n), (e, t) => e || t)
|
|
7831
7831
|
};
|
|
7832
7832
|
}
|
|
7833
|
-
function
|
|
7833
|
+
function dh(n) {
|
|
7834
7834
|
return {
|
|
7835
7835
|
id: dr.id,
|
|
7836
7836
|
type: J.BUTTON,
|
|
@@ -7840,7 +7840,7 @@ function Ah(n) {
|
|
|
7840
7840
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7841
7841
|
};
|
|
7842
7842
|
}
|
|
7843
|
-
function
|
|
7843
|
+
function uh(n) {
|
|
7844
7844
|
return {
|
|
7845
7845
|
id: ur.id,
|
|
7846
7846
|
type: J.BUTTON,
|
|
@@ -7850,7 +7850,7 @@ function dh(n) {
|
|
|
7850
7850
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7851
7851
|
};
|
|
7852
7852
|
}
|
|
7853
|
-
function
|
|
7853
|
+
function hh(n) {
|
|
7854
7854
|
return {
|
|
7855
7855
|
id: Nn.id,
|
|
7856
7856
|
type: J.BUTTON,
|
|
@@ -7860,7 +7860,7 @@ function uh(n) {
|
|
|
7860
7860
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7861
7861
|
};
|
|
7862
7862
|
}
|
|
7863
|
-
function
|
|
7863
|
+
function gh(n) {
|
|
7864
7864
|
const e = n.get(Q), t = n.get(Re);
|
|
7865
7865
|
return new Ee((o) => {
|
|
7866
7866
|
const s = e.focused$.subscribe((a) => {
|
|
@@ -7879,7 +7879,7 @@ function hh(n) {
|
|
|
7879
7879
|
return o.next(i.getEditArea() !== Se.BODY), () => s.unsubscribe();
|
|
7880
7880
|
});
|
|
7881
7881
|
}
|
|
7882
|
-
function
|
|
7882
|
+
function fh(n) {
|
|
7883
7883
|
const e = n.get(Q), t = n.get(T);
|
|
7884
7884
|
return new Ee((o) => {
|
|
7885
7885
|
const s = t.onCommandExecuted((c) => {
|
|
@@ -7906,7 +7906,7 @@ function gh(n) {
|
|
|
7906
7906
|
};
|
|
7907
7907
|
});
|
|
7908
7908
|
}
|
|
7909
|
-
function
|
|
7909
|
+
function ph(n) {
|
|
7910
7910
|
const e = n.get(W), t = n.get(Q);
|
|
7911
7911
|
return new Ee((o) => {
|
|
7912
7912
|
const s = e.textSelection$.subscribe((r) => {
|
|
@@ -7968,7 +7968,7 @@ function _e(n) {
|
|
|
7968
7968
|
return () => o.unsubscribe();
|
|
7969
7969
|
});
|
|
7970
7970
|
}
|
|
7971
|
-
function
|
|
7971
|
+
function mh(n) {
|
|
7972
7972
|
const e = n.get(T);
|
|
7973
7973
|
return {
|
|
7974
7974
|
id: on.id,
|
|
@@ -7996,7 +7996,7 @@ function ph(n) {
|
|
|
7996
7996
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
7997
7997
|
};
|
|
7998
7998
|
}
|
|
7999
|
-
function
|
|
7999
|
+
function Sh(n) {
|
|
8000
8000
|
const e = n.get(T);
|
|
8001
8001
|
return {
|
|
8002
8002
|
id: sn.id,
|
|
@@ -8024,7 +8024,7 @@ function mh(n) {
|
|
|
8024
8024
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
8025
8025
|
};
|
|
8026
8026
|
}
|
|
8027
|
-
function
|
|
8027
|
+
function Eh(n) {
|
|
8028
8028
|
const e = n.get(T);
|
|
8029
8029
|
return {
|
|
8030
8030
|
id: rn.id,
|
|
@@ -8052,7 +8052,7 @@ function Sh(n) {
|
|
|
8052
8052
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
8053
8053
|
};
|
|
8054
8054
|
}
|
|
8055
|
-
function
|
|
8055
|
+
function Ih(n) {
|
|
8056
8056
|
const e = n.get(T);
|
|
8057
8057
|
return {
|
|
8058
8058
|
id: an.id,
|
|
@@ -8080,7 +8080,7 @@ function Eh(n) {
|
|
|
8080
8080
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
8081
8081
|
};
|
|
8082
8082
|
}
|
|
8083
|
-
function
|
|
8083
|
+
function vh(n) {
|
|
8084
8084
|
const e = n.get(T);
|
|
8085
8085
|
return {
|
|
8086
8086
|
id: Ut.id,
|
|
@@ -8107,7 +8107,7 @@ function Ih(n) {
|
|
|
8107
8107
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
8108
8108
|
};
|
|
8109
8109
|
}
|
|
8110
|
-
function
|
|
8110
|
+
function Ch(n) {
|
|
8111
8111
|
const e = n.get(T);
|
|
8112
8112
|
return {
|
|
8113
8113
|
id: cn.id,
|
|
@@ -8134,16 +8134,16 @@ function vh(n) {
|
|
|
8134
8134
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
8135
8135
|
};
|
|
8136
8136
|
}
|
|
8137
|
-
function
|
|
8137
|
+
function Rh(n) {
|
|
8138
8138
|
const e = n.get(T);
|
|
8139
8139
|
return {
|
|
8140
8140
|
id: Xt.id,
|
|
8141
8141
|
tooltip: "toolbar.font",
|
|
8142
8142
|
type: J.SELECTOR,
|
|
8143
|
-
label:
|
|
8144
|
-
selections:
|
|
8143
|
+
label: va,
|
|
8144
|
+
selections: il.map((t) => ({
|
|
8145
8145
|
label: {
|
|
8146
|
-
name:
|
|
8146
|
+
name: Ca,
|
|
8147
8147
|
hoverable: !0
|
|
8148
8148
|
},
|
|
8149
8149
|
value: t.value
|
|
@@ -8169,21 +8169,21 @@ function Ch(n) {
|
|
|
8169
8169
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
8170
8170
|
};
|
|
8171
8171
|
}
|
|
8172
|
-
function
|
|
8172
|
+
function bh(n) {
|
|
8173
8173
|
const e = n.get(T);
|
|
8174
8174
|
return {
|
|
8175
8175
|
id: Kt.id,
|
|
8176
8176
|
type: J.SELECTOR,
|
|
8177
8177
|
tooltip: "toolbar.fontSize",
|
|
8178
8178
|
label: {
|
|
8179
|
-
name:
|
|
8179
|
+
name: Ra,
|
|
8180
8180
|
props: {
|
|
8181
8181
|
min: 1,
|
|
8182
8182
|
max: 400
|
|
8183
8183
|
// disabled$,
|
|
8184
8184
|
}
|
|
8185
8185
|
},
|
|
8186
|
-
selections:
|
|
8186
|
+
selections: al,
|
|
8187
8187
|
// disabled$,
|
|
8188
8188
|
value$: new Ee((t) => {
|
|
8189
8189
|
const o = Bs.fs, s = e.onCommandExecuted((r) => {
|
|
@@ -8205,8 +8205,8 @@ function Rh(n) {
|
|
|
8205
8205
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
8206
8206
|
};
|
|
8207
8207
|
}
|
|
8208
|
-
function
|
|
8209
|
-
const e = n.get(T), t = n.get(
|
|
8208
|
+
function xh(n) {
|
|
8209
|
+
const e = n.get(T), t = n.get(Ni);
|
|
8210
8210
|
return {
|
|
8211
8211
|
id: Jt.id,
|
|
8212
8212
|
icon: "FontColor",
|
|
@@ -8234,28 +8234,28 @@ function bh(n) {
|
|
|
8234
8234
|
// disabled$: getCurrentSheetDisabled$(accessor),
|
|
8235
8235
|
};
|
|
8236
8236
|
}
|
|
8237
|
-
function
|
|
8237
|
+
function Oh(n) {
|
|
8238
8238
|
return {
|
|
8239
8239
|
id: Ys.id,
|
|
8240
8240
|
type: J.BUTTON,
|
|
8241
8241
|
icon: "HeaderFooterSingle",
|
|
8242
8242
|
tooltip: "toolbar.headerFooter",
|
|
8243
|
-
hidden$: So(ee(n, P.UNIVER_DOC, void 0, gt),
|
|
8243
|
+
hidden$: So(ee(n, P.UNIVER_DOC, void 0, gt), fh(n), (e, t) => e || t)
|
|
8244
8244
|
};
|
|
8245
8245
|
}
|
|
8246
|
-
const
|
|
8247
|
-
function
|
|
8246
|
+
const yh = "GridSingle", za = "doc.menu.table";
|
|
8247
|
+
function Th(n) {
|
|
8248
8248
|
return {
|
|
8249
|
-
id:
|
|
8249
|
+
id: za,
|
|
8250
8250
|
type: J.SUBITEMS,
|
|
8251
|
-
icon:
|
|
8251
|
+
icon: yh,
|
|
8252
8252
|
tooltip: "toolbar.table.main",
|
|
8253
|
-
disabled$:
|
|
8253
|
+
disabled$: ph(n),
|
|
8254
8254
|
// Do not show header footer menu and insert table at zen mode.
|
|
8255
|
-
hidden$: So(ee(n, P.UNIVER_DOC, void 0, gt),
|
|
8255
|
+
hidden$: So(ee(n, P.UNIVER_DOC, void 0, gt), gh(n), (e, t) => e || t)
|
|
8256
8256
|
};
|
|
8257
8257
|
}
|
|
8258
|
-
function
|
|
8258
|
+
function Bh(n) {
|
|
8259
8259
|
return {
|
|
8260
8260
|
id: Er.id,
|
|
8261
8261
|
title: "toolbar.table.insert",
|
|
@@ -8263,7 +8263,7 @@ function Th(n) {
|
|
|
8263
8263
|
hidden$: ee(n, P.UNIVER_DOC)
|
|
8264
8264
|
};
|
|
8265
8265
|
}
|
|
8266
|
-
function
|
|
8266
|
+
function _h(n) {
|
|
8267
8267
|
const e = n.get(T);
|
|
8268
8268
|
return {
|
|
8269
8269
|
id: xo.id,
|
|
@@ -8288,7 +8288,7 @@ function Bh(n) {
|
|
|
8288
8288
|
hidden$: ee(n, P.UNIVER_DOC, void 0, gt)
|
|
8289
8289
|
};
|
|
8290
8290
|
}
|
|
8291
|
-
function
|
|
8291
|
+
function Mh(n) {
|
|
8292
8292
|
const e = n.get(T);
|
|
8293
8293
|
return {
|
|
8294
8294
|
id: Oo.id,
|
|
@@ -8313,7 +8313,7 @@ function _h(n) {
|
|
|
8313
8313
|
hidden$: ee(n, P.UNIVER_DOC, void 0, gt)
|
|
8314
8314
|
};
|
|
8315
8315
|
}
|
|
8316
|
-
function
|
|
8316
|
+
function Ph(n) {
|
|
8317
8317
|
const e = n.get(T);
|
|
8318
8318
|
return {
|
|
8319
8319
|
id: yo.id,
|
|
@@ -8338,7 +8338,7 @@ function Mh(n) {
|
|
|
8338
8338
|
hidden$: ee(n, P.UNIVER_DOC, void 0, gt)
|
|
8339
8339
|
};
|
|
8340
8340
|
}
|
|
8341
|
-
function
|
|
8341
|
+
function Dh(n) {
|
|
8342
8342
|
const e = n.get(T);
|
|
8343
8343
|
return {
|
|
8344
8344
|
id: To.id,
|
|
@@ -8391,14 +8391,14 @@ const yn = (n) => new Ee((e) => {
|
|
|
8391
8391
|
r.unsubscribe(), s == null || s.unsubscribe();
|
|
8392
8392
|
};
|
|
8393
8393
|
});
|
|
8394
|
-
function
|
|
8394
|
+
function wh(n) {
|
|
8395
8395
|
return {
|
|
8396
8396
|
id: bo.id,
|
|
8397
8397
|
type: J.BUTTON_SELECTOR,
|
|
8398
8398
|
selections: [
|
|
8399
8399
|
{
|
|
8400
8400
|
label: {
|
|
8401
|
-
name:
|
|
8401
|
+
name: xa,
|
|
8402
8402
|
hoverable: !1
|
|
8403
8403
|
},
|
|
8404
8404
|
value$: yn(n)
|
|
@@ -8411,14 +8411,14 @@ function Dh(n) {
|
|
|
8411
8411
|
activated$: yn(n).pipe(Bn((e) => e && e.indexOf("ORDER_LIST") === 0))
|
|
8412
8412
|
};
|
|
8413
8413
|
}
|
|
8414
|
-
function
|
|
8414
|
+
function Nh(n) {
|
|
8415
8415
|
return {
|
|
8416
8416
|
id: Ro.id,
|
|
8417
8417
|
type: J.BUTTON_SELECTOR,
|
|
8418
8418
|
selections: [
|
|
8419
8419
|
{
|
|
8420
8420
|
label: {
|
|
8421
|
-
name:
|
|
8421
|
+
name: Oa,
|
|
8422
8422
|
hoverable: !1
|
|
8423
8423
|
},
|
|
8424
8424
|
value$: yn(n)
|
|
@@ -8431,7 +8431,7 @@ function wh(n) {
|
|
|
8431
8431
|
activated$: yn(n).pipe(Bn((e) => e && e.indexOf("BULLET_LIST") === 0))
|
|
8432
8432
|
};
|
|
8433
8433
|
}
|
|
8434
|
-
function
|
|
8434
|
+
function Qh(n) {
|
|
8435
8435
|
return {
|
|
8436
8436
|
id: Ks.id,
|
|
8437
8437
|
type: J.BUTTON,
|
|
@@ -8442,7 +8442,7 @@ function Nh(n) {
|
|
|
8442
8442
|
activated$: yn(n).pipe(Bn((e) => e && e.indexOf("CHECK_LIST") === 0))
|
|
8443
8443
|
};
|
|
8444
8444
|
}
|
|
8445
|
-
function
|
|
8445
|
+
function Uh(n) {
|
|
8446
8446
|
const e = n.get(T), t = n.get(Q);
|
|
8447
8447
|
return {
|
|
8448
8448
|
id: Po.id,
|
|
@@ -8463,7 +8463,7 @@ function Qh(n) {
|
|
|
8463
8463
|
})
|
|
8464
8464
|
};
|
|
8465
8465
|
}
|
|
8466
|
-
function
|
|
8466
|
+
function Lh(n) {
|
|
8467
8467
|
return {
|
|
8468
8468
|
id: _n.id,
|
|
8469
8469
|
type: J.BUTTON,
|
|
@@ -8471,8 +8471,8 @@ function Uh(n) {
|
|
|
8471
8471
|
icon: "NoColor"
|
|
8472
8472
|
};
|
|
8473
8473
|
}
|
|
8474
|
-
function
|
|
8475
|
-
const e = n.get(T), t = n.get(
|
|
8474
|
+
function Fh(n) {
|
|
8475
|
+
const e = n.get(T), t = n.get(Ni);
|
|
8476
8476
|
return {
|
|
8477
8477
|
id: Zt.id,
|
|
8478
8478
|
tooltip: "toolbar.fillColor.main",
|
|
@@ -8517,7 +8517,7 @@ function bt(n) {
|
|
|
8517
8517
|
}
|
|
8518
8518
|
} : {
|
|
8519
8519
|
ts: {
|
|
8520
|
-
...
|
|
8520
|
+
...Ta(A, i, a),
|
|
8521
8521
|
...c
|
|
8522
8522
|
}
|
|
8523
8523
|
};
|
|
@@ -8539,166 +8539,166 @@ function Do(n) {
|
|
|
8539
8539
|
}
|
|
8540
8540
|
return null;
|
|
8541
8541
|
}
|
|
8542
|
-
const
|
|
8542
|
+
const Hh = {
|
|
8543
8543
|
[Qr.FORMAT]: {
|
|
8544
8544
|
[on.id]: {
|
|
8545
8545
|
order: 0,
|
|
8546
|
-
menuItemFactory:
|
|
8546
|
+
menuItemFactory: mh
|
|
8547
8547
|
},
|
|
8548
8548
|
[sn.id]: {
|
|
8549
8549
|
order: 1,
|
|
8550
|
-
menuItemFactory:
|
|
8550
|
+
menuItemFactory: Sh
|
|
8551
8551
|
},
|
|
8552
8552
|
[rn.id]: {
|
|
8553
8553
|
order: 2,
|
|
8554
|
-
menuItemFactory:
|
|
8554
|
+
menuItemFactory: Eh
|
|
8555
8555
|
},
|
|
8556
8556
|
[an.id]: {
|
|
8557
8557
|
order: 3,
|
|
8558
|
-
menuItemFactory:
|
|
8558
|
+
menuItemFactory: Ih
|
|
8559
8559
|
},
|
|
8560
8560
|
[Ut.id]: {
|
|
8561
8561
|
order: 4,
|
|
8562
|
-
menuItemFactory:
|
|
8562
|
+
menuItemFactory: vh
|
|
8563
8563
|
},
|
|
8564
8564
|
[cn.id]: {
|
|
8565
8565
|
order: 5,
|
|
8566
|
-
menuItemFactory:
|
|
8566
|
+
menuItemFactory: Ch
|
|
8567
8567
|
},
|
|
8568
8568
|
[Kt.id]: {
|
|
8569
8569
|
order: 6,
|
|
8570
|
-
menuItemFactory:
|
|
8570
|
+
menuItemFactory: bh
|
|
8571
8571
|
},
|
|
8572
8572
|
[Xt.id]: {
|
|
8573
8573
|
order: 7,
|
|
8574
|
-
menuItemFactory:
|
|
8574
|
+
menuItemFactory: Rh
|
|
8575
8575
|
},
|
|
8576
8576
|
[Jt.id]: {
|
|
8577
8577
|
order: 8,
|
|
8578
|
-
menuItemFactory:
|
|
8578
|
+
menuItemFactory: xh
|
|
8579
8579
|
},
|
|
8580
8580
|
[Zt.id]: {
|
|
8581
8581
|
order: 9,
|
|
8582
|
-
menuItemFactory:
|
|
8582
|
+
menuItemFactory: Fh,
|
|
8583
8583
|
[_n.id]: {
|
|
8584
8584
|
order: 0,
|
|
8585
|
-
menuItemFactory:
|
|
8585
|
+
menuItemFactory: Lh
|
|
8586
8586
|
}
|
|
8587
8587
|
}
|
|
8588
8588
|
},
|
|
8589
8589
|
[Qr.LAYOUT]: {
|
|
8590
|
-
[
|
|
8590
|
+
[za]: {
|
|
8591
8591
|
order: 1,
|
|
8592
|
-
menuItemFactory:
|
|
8592
|
+
menuItemFactory: Th,
|
|
8593
8593
|
[Er.id]: {
|
|
8594
8594
|
order: 0,
|
|
8595
|
-
menuItemFactory:
|
|
8595
|
+
menuItemFactory: Bh
|
|
8596
8596
|
}
|
|
8597
8597
|
},
|
|
8598
8598
|
[xo.id]: {
|
|
8599
8599
|
order: 2,
|
|
8600
|
-
menuItemFactory:
|
|
8600
|
+
menuItemFactory: _h
|
|
8601
8601
|
},
|
|
8602
8602
|
[Oo.id]: {
|
|
8603
8603
|
order: 3,
|
|
8604
|
-
menuItemFactory:
|
|
8604
|
+
menuItemFactory: Mh
|
|
8605
8605
|
},
|
|
8606
8606
|
[yo.id]: {
|
|
8607
8607
|
order: 4,
|
|
8608
|
-
menuItemFactory:
|
|
8608
|
+
menuItemFactory: Ph
|
|
8609
8609
|
},
|
|
8610
8610
|
[To.id]: {
|
|
8611
8611
|
order: 5,
|
|
8612
|
-
menuItemFactory:
|
|
8612
|
+
menuItemFactory: Dh
|
|
8613
8613
|
},
|
|
8614
8614
|
[bo.id]: {
|
|
8615
8615
|
order: 6,
|
|
8616
|
-
menuItemFactory:
|
|
8616
|
+
menuItemFactory: wh
|
|
8617
8617
|
},
|
|
8618
8618
|
[Ro.id]: {
|
|
8619
8619
|
order: 7,
|
|
8620
|
-
menuItemFactory:
|
|
8620
|
+
menuItemFactory: Nh
|
|
8621
8621
|
},
|
|
8622
8622
|
[Ks.id]: {
|
|
8623
8623
|
order: 8,
|
|
8624
|
-
menuItemFactory:
|
|
8624
|
+
menuItemFactory: Qh
|
|
8625
8625
|
},
|
|
8626
8626
|
[Ys.id]: {
|
|
8627
8627
|
order: 9,
|
|
8628
|
-
menuItemFactory:
|
|
8628
|
+
menuItemFactory: Oh
|
|
8629
8629
|
},
|
|
8630
8630
|
[Po.id]: {
|
|
8631
8631
|
order: 10,
|
|
8632
|
-
menuItemFactory:
|
|
8632
|
+
menuItemFactory: Uh
|
|
8633
8633
|
}
|
|
8634
8634
|
},
|
|
8635
|
-
[
|
|
8635
|
+
[Xi.MAIN_AREA]: {
|
|
8636
8636
|
[Ur.FORMAT]: {
|
|
8637
8637
|
[Jn.name]: {
|
|
8638
8638
|
order: 0,
|
|
8639
|
-
menuItemFactory:
|
|
8639
|
+
menuItemFactory: eh
|
|
8640
8640
|
},
|
|
8641
8641
|
[lr.id]: {
|
|
8642
8642
|
order: 1,
|
|
8643
|
-
menuItemFactory:
|
|
8643
|
+
menuItemFactory: nh
|
|
8644
8644
|
},
|
|
8645
8645
|
[Ar.id]: {
|
|
8646
8646
|
order: 2,
|
|
8647
|
-
menuItemFactory:
|
|
8647
|
+
menuItemFactory: oh
|
|
8648
8648
|
},
|
|
8649
8649
|
[_o.id]: {
|
|
8650
8650
|
order: 3,
|
|
8651
|
-
menuItemFactory:
|
|
8651
|
+
menuItemFactory: sh
|
|
8652
8652
|
}
|
|
8653
8653
|
},
|
|
8654
8654
|
[Ur.LAYOUT]: {
|
|
8655
8655
|
[Ir.id]: {
|
|
8656
8656
|
order: 0,
|
|
8657
|
-
menuItemFactory:
|
|
8657
|
+
menuItemFactory: th
|
|
8658
8658
|
},
|
|
8659
|
-
[
|
|
8659
|
+
[ja]: {
|
|
8660
8660
|
order: 1,
|
|
8661
|
-
menuItemFactory:
|
|
8661
|
+
menuItemFactory: rh,
|
|
8662
8662
|
[fr.id]: {
|
|
8663
8663
|
order: 1,
|
|
8664
|
-
menuItemFactory:
|
|
8664
|
+
menuItemFactory: ih
|
|
8665
8665
|
},
|
|
8666
8666
|
[pr.id]: {
|
|
8667
8667
|
order: 2,
|
|
8668
|
-
menuItemFactory:
|
|
8668
|
+
menuItemFactory: ah
|
|
8669
8669
|
},
|
|
8670
8670
|
[mr.id]: {
|
|
8671
8671
|
order: 3,
|
|
8672
|
-
menuItemFactory:
|
|
8672
|
+
menuItemFactory: ch
|
|
8673
8673
|
},
|
|
8674
8674
|
[Sr.id]: {
|
|
8675
8675
|
order: 4,
|
|
8676
|
-
menuItemFactory:
|
|
8676
|
+
menuItemFactory: lh
|
|
8677
8677
|
}
|
|
8678
8678
|
},
|
|
8679
|
-
[
|
|
8679
|
+
[Wa]: {
|
|
8680
8680
|
order: 2,
|
|
8681
|
-
menuItemFactory:
|
|
8681
|
+
menuItemFactory: Ah,
|
|
8682
8682
|
[dr.id]: {
|
|
8683
8683
|
order: 1,
|
|
8684
|
-
menuItemFactory:
|
|
8684
|
+
menuItemFactory: dh
|
|
8685
8685
|
},
|
|
8686
8686
|
[ur.id]: {
|
|
8687
8687
|
order: 2,
|
|
8688
|
-
menuItemFactory:
|
|
8688
|
+
menuItemFactory: uh
|
|
8689
8689
|
},
|
|
8690
8690
|
[Nn.id]: {
|
|
8691
8691
|
order: 3,
|
|
8692
|
-
menuItemFactory:
|
|
8692
|
+
menuItemFactory: hh
|
|
8693
8693
|
}
|
|
8694
8694
|
}
|
|
8695
8695
|
}
|
|
8696
8696
|
}
|
|
8697
8697
|
};
|
|
8698
|
-
var
|
|
8699
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
8698
|
+
var Vh = Object.defineProperty, kh = Object.getOwnPropertyDescriptor, jh = (n, e, t, o) => {
|
|
8699
|
+
for (var s = o > 1 ? void 0 : o ? kh(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
8700
8700
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
8701
|
-
return o && s &&
|
|
8701
|
+
return o && s && Vh(e, t, s), s;
|
|
8702
8702
|
}, At = (n, e) => (t, o) => e(t, o, n);
|
|
8703
8703
|
let Zn = class extends me {
|
|
8704
8704
|
constructor(n, e, t, o, s, r, i, a, c) {
|
|
@@ -8706,32 +8706,32 @@ let Zn = class extends me {
|
|
|
8706
8706
|
}
|
|
8707
8707
|
_initCustomComponents() {
|
|
8708
8708
|
const n = this._componentManager;
|
|
8709
|
-
this.disposeWithMe(n.register(qs,
|
|
8709
|
+
this.disposeWithMe(n.register(qs, Cl)), this.disposeWithMe(n.register(va, cl)), this.disposeWithMe(n.register(Ca, ll)), this.disposeWithMe(n.register(Ra, Al)), this.disposeWithMe(n.register(Oa, ld)), this.disposeWithMe(n.register(xa, ad)), this.disposeWithMe(n.register("TodoList", fa));
|
|
8710
8710
|
}
|
|
8711
8711
|
// TODO: @zhangwei, why add workbook to docs-ui?
|
|
8712
8712
|
_initUiParts() {
|
|
8713
8713
|
var t, o;
|
|
8714
8714
|
const n = this._univerInstanceService.getCurrentUnitForType(P.UNIVER_SHEET), e = this._configService.getConfig(Zs);
|
|
8715
|
-
(o = (t = e == null ? void 0 : e.layout) == null ? void 0 : t.docContainerConfig) != null && o.footer && !n && this.disposeWithMe(this._uiPartsService.registerComponent(
|
|
8715
|
+
(o = (t = e == null ? void 0 : e.layout) == null ? void 0 : t.docContainerConfig) != null && o.footer && !n && this.disposeWithMe(this._uiPartsService.registerComponent(dl.FOOTER, () => gc(Wd, this._injector)));
|
|
8716
8716
|
}
|
|
8717
8717
|
_initMenus() {
|
|
8718
|
-
this._menuManagerService.mergeMenu(
|
|
8718
|
+
this._menuManagerService.mergeMenu(Hh);
|
|
8719
8719
|
}
|
|
8720
8720
|
_initShortCut() {
|
|
8721
8721
|
[
|
|
8722
|
-
vd,
|
|
8723
|
-
Cd,
|
|
8724
8722
|
Rd,
|
|
8725
8723
|
bd,
|
|
8726
8724
|
xd,
|
|
8727
8725
|
Od,
|
|
8728
|
-
Bd,
|
|
8729
|
-
_d,
|
|
8730
|
-
Td,
|
|
8731
8726
|
yd,
|
|
8727
|
+
Td,
|
|
8732
8728
|
Md,
|
|
8733
8729
|
Pd,
|
|
8734
|
-
|
|
8730
|
+
_d,
|
|
8731
|
+
Bd,
|
|
8732
|
+
Dd,
|
|
8733
|
+
wd,
|
|
8734
|
+
hd
|
|
8735
8735
|
].forEach((n) => {
|
|
8736
8736
|
this.disposeWithMe(this._shortcutService.registerShortcut(n));
|
|
8737
8737
|
});
|
|
@@ -8741,7 +8741,7 @@ let Zn = class extends me {
|
|
|
8741
8741
|
}
|
|
8742
8742
|
_initCommands() {
|
|
8743
8743
|
[
|
|
8744
|
-
|
|
8744
|
+
Ia,
|
|
8745
8745
|
Ys,
|
|
8746
8746
|
zs
|
|
8747
8747
|
].forEach((n) => this.disposeWithMe(this._commandService.registerCommand(n)));
|
|
@@ -8754,23 +8754,23 @@ let Zn = class extends me {
|
|
|
8754
8754
|
);
|
|
8755
8755
|
}
|
|
8756
8756
|
};
|
|
8757
|
-
Zn =
|
|
8757
|
+
Zn = jh([
|
|
8758
8758
|
At(0, k(mo)),
|
|
8759
8759
|
At(1, k(Eo)),
|
|
8760
8760
|
At(2, T),
|
|
8761
8761
|
At(3, Fs),
|
|
8762
|
-
At(4,
|
|
8763
|
-
At(5,
|
|
8762
|
+
At(4, ul),
|
|
8763
|
+
At(5, hl),
|
|
8764
8764
|
At(6, Q),
|
|
8765
|
-
At(7,
|
|
8765
|
+
At(7, Ji),
|
|
8766
8766
|
At(8, Ls)
|
|
8767
8767
|
], Zn);
|
|
8768
|
-
var
|
|
8769
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
8768
|
+
var Wh = Object.defineProperty, zh = Object.getOwnPropertyDescriptor, Yh = (n, e, t, o) => {
|
|
8769
|
+
for (var s = o > 1 ? void 0 : o ? zh(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
8770
8770
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
8771
|
-
return o && s &&
|
|
8771
|
+
return o && s && Wh(e, t, s), s;
|
|
8772
8772
|
}, Xo = (n, e) => (t, o) => e(t, o, n);
|
|
8773
|
-
const
|
|
8773
|
+
const mi = 1.5;
|
|
8774
8774
|
let $n = class extends Ct {
|
|
8775
8775
|
constructor(n, e, t, o) {
|
|
8776
8776
|
super(), this._context = n, this._textSelectionManagerService = e, this._editorService = t, this._docSkeletonManagerService = o, this._init();
|
|
@@ -8806,7 +8806,7 @@ let $n = class extends Ct {
|
|
|
8806
8806
|
} = g.getBounding().viewBound;
|
|
8807
8807
|
let R = 0, E = 0;
|
|
8808
8808
|
const v = p ? (O = p.params.backScrollOffset) != null ? O : 0 : 100;
|
|
8809
|
-
f < S ? R = f - S - v : f > C - h && (R = f - C + h + v), u < m ? E = u - m : u > I -
|
|
8809
|
+
f < S ? R = f - S - v : f > C - h && (R = f - C + h + v), u < m ? E = u - m : u > I - mi && (E = u - I + mi);
|
|
8810
8810
|
const y = g.transViewportScroll2ScrollValue(E, R);
|
|
8811
8811
|
g.scrollByBarDeltaValue(y);
|
|
8812
8812
|
}
|
|
@@ -8819,15 +8819,15 @@ let $n = class extends Ct {
|
|
|
8819
8819
|
e && this.scrollToNode(t);
|
|
8820
8820
|
}
|
|
8821
8821
|
};
|
|
8822
|
-
$n =
|
|
8822
|
+
$n = Yh([
|
|
8823
8823
|
Xo(1, k(W)),
|
|
8824
8824
|
Xo(2, Ke),
|
|
8825
8825
|
Xo(3, k(de))
|
|
8826
8826
|
], $n);
|
|
8827
|
-
var
|
|
8828
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
8827
|
+
var Gh = Object.defineProperty, qh = Object.getOwnPropertyDescriptor, Kh = (n, e, t, o) => {
|
|
8828
|
+
for (var s = o > 1 ? void 0 : o ? qh(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
8829
8829
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
8830
|
-
return o && s &&
|
|
8830
|
+
return o && s && Gh(e, t, s), s;
|
|
8831
8831
|
}, Vt = (n, e) => (t, o) => e(t, o, n);
|
|
8832
8832
|
let ps = class extends Ct {
|
|
8833
8833
|
constructor(n, e, t, o, s, r, i) {
|
|
@@ -8847,7 +8847,7 @@ let ps = class extends Ct {
|
|
|
8847
8847
|
this._recalculateSizeBySkeleton(t);
|
|
8848
8848
|
}
|
|
8849
8849
|
_addNewRender() {
|
|
8850
|
-
const { scene: n, engine: e } = this._context, t = new
|
|
8850
|
+
const { scene: n, engine: e } = this._context, t = new wc(ut.VIEW_MAIN, n, {
|
|
8851
8851
|
left: 0,
|
|
8852
8852
|
top: 0,
|
|
8853
8853
|
bottom: 0,
|
|
@@ -8867,7 +8867,7 @@ let ps = class extends Ct {
|
|
|
8867
8867
|
t.onMouseWheel(i, s);
|
|
8868
8868
|
}), new ns(t), n.addLayer(
|
|
8869
8869
|
new Dr(n, [], Uo),
|
|
8870
|
-
new Dr(n, [],
|
|
8870
|
+
new Dr(n, [], Ml)
|
|
8871
8871
|
), this._addComponent(), e.runRenderLoop(() => {
|
|
8872
8872
|
n.render();
|
|
8873
8873
|
}), this._docSelectionRenderService.__attachScrollEvent();
|
|
@@ -8876,10 +8876,10 @@ let ps = class extends Ct {
|
|
|
8876
8876
|
const { scene: n, unit: e, components: t } = this._context, r = {
|
|
8877
8877
|
pageMarginLeft: 20,
|
|
8878
8878
|
pageMarginTop: 20
|
|
8879
|
-
}, i = new
|
|
8879
|
+
}, i = new Nc(tt.MAIN, void 0, r);
|
|
8880
8880
|
i.zIndex = Hr;
|
|
8881
|
-
const a = new
|
|
8882
|
-
a.zIndex = Hr, this._context.mainComponent = i, t.set(tt.MAIN, i), t.set(tt.BACKGROUND, a), n.addObjects([i], Uo), n.addObjects([a],
|
|
8881
|
+
const a = new Qc(tt.BACKGROUND, void 0, r);
|
|
8882
|
+
a.zIndex = Hr, this._context.mainComponent = i, t.set(tt.MAIN, i), t.set(tt.BACKGROUND, a), n.addObjects([i], Uo), n.addObjects([a], _l), this._editorService.getEditor(e.getUnitId()) == null && n.enableLayerCache(Uo);
|
|
8883
8883
|
}
|
|
8884
8884
|
_initRenderRefresh() {
|
|
8885
8885
|
this._docSkeletonManagerService.currentSkeletonBefore$.pipe(Et(this.dispose$)).subscribe((n) => {
|
|
@@ -8912,7 +8912,7 @@ let ps = class extends Ct {
|
|
|
8912
8912
|
const p = a[f];
|
|
8913
8913
|
let { pageWidth: m, pageHeight: S } = p;
|
|
8914
8914
|
if (d === De.MODERN) {
|
|
8915
|
-
const I =
|
|
8915
|
+
const I = Xh(p);
|
|
8916
8916
|
m = I.pageWidth, S = I.pageHeight;
|
|
8917
8917
|
}
|
|
8918
8918
|
r.pageLayoutType === Rn.VERTICAL ? (l += S, l += r.pageMarginTop, f === g - 1 && (l += r.pageMarginTop), c = Math.max(c, m)) : r.pageLayoutType === Rn.HORIZONTAL && (c += m, f !== g - 1 && (c += r.pageMarginLeft), l = Math.max(l, S));
|
|
@@ -8922,7 +8922,7 @@ let ps = class extends Ct {
|
|
|
8922
8922
|
(!this._editorService.isEditor(o) || h != null && h.params.scrollBar) && t.resize(c, l);
|
|
8923
8923
|
}
|
|
8924
8924
|
};
|
|
8925
|
-
ps =
|
|
8925
|
+
ps = Kh([
|
|
8926
8926
|
Vt(1, T),
|
|
8927
8927
|
Vt(2, k(Be)),
|
|
8928
8928
|
Vt(3, k(de)),
|
|
@@ -8930,7 +8930,7 @@ ps = qh([
|
|
|
8930
8930
|
Vt(5, Re),
|
|
8931
8931
|
Vt(6, Q)
|
|
8932
8932
|
], ps);
|
|
8933
|
-
function
|
|
8933
|
+
function Xh(n) {
|
|
8934
8934
|
let { pageWidth: e, pageHeight: t } = n;
|
|
8935
8935
|
const { marginLeft: o, marginRight: s, marginTop: r, marginBottom: i, skeDrawings: a, skeTables: c } = n;
|
|
8936
8936
|
e === Number.POSITIVE_INFINITY && (e = n.width + o + s), t === Number.POSITIVE_INFINITY && (t = n.height + r + i);
|
|
@@ -8940,7 +8940,7 @@ function Kh(n) {
|
|
|
8940
8940
|
e = Math.max(e, l.left + l.width + o + s), t = Math.max(t, l.top + l.height + r + i);
|
|
8941
8941
|
return { pageWidth: e, pageHeight: t };
|
|
8942
8942
|
}
|
|
8943
|
-
const
|
|
8943
|
+
const Ya = {
|
|
8944
8944
|
id: "doc.command.select-all",
|
|
8945
8945
|
type: N.COMMAND,
|
|
8946
8946
|
handler: async (n) => {
|
|
@@ -9026,7 +9026,7 @@ class wo extends Ct {
|
|
|
9026
9026
|
this._undoMutationParamsCache = [], this._redoMutationParamsCache = [], this._previousActiveRange = null;
|
|
9027
9027
|
}
|
|
9028
9028
|
}
|
|
9029
|
-
const
|
|
9029
|
+
const Jh = Ns, Ga = {
|
|
9030
9030
|
id: "doc.command.ime-input",
|
|
9031
9031
|
type: N.COMMAND,
|
|
9032
9032
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -9056,7 +9056,7 @@ const Xh = Ns, Ya = {
|
|
|
9056
9056
|
actions: [],
|
|
9057
9057
|
textRanges: R
|
|
9058
9058
|
}
|
|
9059
|
-
}, v = A.getDefaultStyle(), y = A.getStyleCache(), O = Vs((te = p.customRanges) != null ? te : [], S + s,
|
|
9059
|
+
}, v = A.getDefaultStyle(), y = A.getStyleCache(), O = Vs((te = p.customRanges) != null ? te : [], S + s, Jh.includes(t)), D = Io(
|
|
9060
9060
|
(Z = p.textRuns) != null ? Z : [],
|
|
9061
9061
|
i ? I : S + s,
|
|
9062
9062
|
v,
|
|
@@ -9117,14 +9117,14 @@ const Xh = Ns, Ya = {
|
|
|
9117
9117
|
const c = {
|
|
9118
9118
|
zoomRatio: i,
|
|
9119
9119
|
unitId: r
|
|
9120
|
-
}, l =
|
|
9120
|
+
}, l = Ud(n, c);
|
|
9121
9121
|
return t.syncExecuteCommand(ot.id, c) ? (o.pushUndoRedo({
|
|
9122
9122
|
unitID: r,
|
|
9123
9123
|
undoMutations: [{ id: ot.id, params: l }],
|
|
9124
9124
|
redoMutations: [{ id: ot.id, params: c }]
|
|
9125
9125
|
}), !0) : !1;
|
|
9126
9126
|
}
|
|
9127
|
-
},
|
|
9127
|
+
}, qa = {
|
|
9128
9128
|
id: "doc.table.tab-in-table",
|
|
9129
9129
|
type: N.COMMAND,
|
|
9130
9130
|
handler: async (n, e) => {
|
|
@@ -9136,14 +9136,14 @@ const Xh = Ns, Ya = {
|
|
|
9136
9136
|
if (h == null || c == null)
|
|
9137
9137
|
return !1;
|
|
9138
9138
|
let u = null;
|
|
9139
|
-
if (t ? u =
|
|
9139
|
+
if (t ? u = Ai(h, c, gs.PREV) : u = Ai(h, c, gs.NEXT), u) {
|
|
9140
9140
|
const { startOffset: g, endOffset: p } = u, m = [{
|
|
9141
9141
|
startOffset: g,
|
|
9142
9142
|
endOffset: p
|
|
9143
9143
|
}];
|
|
9144
9144
|
return o.replaceDocRanges(m), !0;
|
|
9145
9145
|
}
|
|
9146
|
-
return t === !1 ? await r.executeCommand(
|
|
9146
|
+
return t === !1 ? await r.executeCommand(La.id, {
|
|
9147
9147
|
position: Bo.BELLOW
|
|
9148
9148
|
}) : !0;
|
|
9149
9149
|
}
|
|
@@ -9156,10 +9156,10 @@ const Xh = Ns, Ya = {
|
|
|
9156
9156
|
type: N.OPERATION,
|
|
9157
9157
|
handler: (n, e) => !!e
|
|
9158
9158
|
};
|
|
9159
|
-
var
|
|
9160
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
9159
|
+
var Zh = Object.defineProperty, $h = Object.getOwnPropertyDescriptor, eg = (n, e, t, o) => {
|
|
9160
|
+
for (var s = o > 1 ? void 0 : o ? $h(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
9161
9161
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
9162
|
-
return o && s &&
|
|
9162
|
+
return o && s && Zh(e, t, s), s;
|
|
9163
9163
|
}, Jo = (n, e) => (t, o) => e(t, o, n);
|
|
9164
9164
|
let Ss = class {
|
|
9165
9165
|
constructor(n, e, t) {
|
|
@@ -9200,16 +9200,16 @@ let Ss = class {
|
|
|
9200
9200
|
return this._docContainer;
|
|
9201
9201
|
}
|
|
9202
9202
|
};
|
|
9203
|
-
Ss =
|
|
9203
|
+
Ss = eg([
|
|
9204
9204
|
Jo(0, k(Xe)),
|
|
9205
9205
|
Jo(1, k(mo)),
|
|
9206
9206
|
Jo(2, Ls)
|
|
9207
9207
|
], Ss);
|
|
9208
|
-
var
|
|
9209
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
9208
|
+
var tg = Object.defineProperty, ng = Object.getOwnPropertyDescriptor, og = (n, e, t, o) => {
|
|
9209
|
+
for (var s = o > 1 ? void 0 : o ? ng(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
9210
9210
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
9211
|
-
return o && s &&
|
|
9212
|
-
},
|
|
9211
|
+
return o && s && tg(e, t, s), s;
|
|
9212
|
+
}, sg = (n, e) => (t, o) => e(t, o, n);
|
|
9213
9213
|
let eo = class extends Ct {
|
|
9214
9214
|
constructor(e) {
|
|
9215
9215
|
super();
|
|
@@ -9217,14 +9217,14 @@ let eo = class extends Ct {
|
|
|
9217
9217
|
this._injector = e, this._docContainerController = this._injector.createInstance(Ss);
|
|
9218
9218
|
}
|
|
9219
9219
|
};
|
|
9220
|
-
eo =
|
|
9221
|
-
|
|
9220
|
+
eo = og([
|
|
9221
|
+
sg(0, k(mo))
|
|
9222
9222
|
], eo);
|
|
9223
|
-
var
|
|
9224
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
9223
|
+
var rg = Object.defineProperty, ig = Object.getOwnPropertyDescriptor, ag = (n, e, t, o) => {
|
|
9224
|
+
for (var s = o > 1 ? void 0 : o ? ig(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
9225
9225
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
9226
|
-
return o && s &&
|
|
9227
|
-
},
|
|
9226
|
+
return o && s && rg(e, t, s), s;
|
|
9227
|
+
}, Si = (n, e) => (t, o) => e(t, o, n);
|
|
9228
9228
|
let to = class extends me {
|
|
9229
9229
|
constructor(n, e) {
|
|
9230
9230
|
super(), this._docAutoFormatService = n, this._renderManagerService = e, this._initListTabAutoFormat(), this._initListSpaceAutoFormat(), this._initDefaultEnterFormat(), this._initExitListAutoFormat();
|
|
@@ -9263,12 +9263,12 @@ let to = class extends me {
|
|
|
9263
9263
|
id: qt.id,
|
|
9264
9264
|
match: (n) => {
|
|
9265
9265
|
const { selection: e, unit: t } = n, { startNodePosition: o, endNodePosition: s } = e, r = this._renderManagerService.getRenderById(t.getUnitId()), i = r == null ? void 0 : r.with(de).getSkeleton();
|
|
9266
|
-
return i == null ? !1 : !!(o && s &&
|
|
9266
|
+
return i == null ? !1 : !!(o && s && oa(i, o, s) || o && !s && o.path.indexOf("cells") > -1);
|
|
9267
9267
|
},
|
|
9268
9268
|
getMutations(n) {
|
|
9269
9269
|
const e = n.commandParams;
|
|
9270
9270
|
return [{
|
|
9271
|
-
id:
|
|
9271
|
+
id: qa.id,
|
|
9272
9272
|
params: {
|
|
9273
9273
|
shift: !!(e != null && e.shift)
|
|
9274
9274
|
}
|
|
@@ -9296,7 +9296,7 @@ let to = class extends me {
|
|
|
9296
9296
|
if (o && Object.keys(Qo).includes(o)) {
|
|
9297
9297
|
const r = Qo[o];
|
|
9298
9298
|
return [{
|
|
9299
|
-
id:
|
|
9299
|
+
id: Ba.id,
|
|
9300
9300
|
params: {
|
|
9301
9301
|
listType: r,
|
|
9302
9302
|
paragraph: e[0]
|
|
@@ -9340,7 +9340,7 @@ let to = class extends me {
|
|
|
9340
9340
|
match: () => !0,
|
|
9341
9341
|
getMutations() {
|
|
9342
9342
|
return [{
|
|
9343
|
-
id:
|
|
9343
|
+
id: Va.id
|
|
9344
9344
|
}];
|
|
9345
9345
|
},
|
|
9346
9346
|
priority: -9999
|
|
@@ -9348,18 +9348,18 @@ let to = class extends me {
|
|
|
9348
9348
|
);
|
|
9349
9349
|
}
|
|
9350
9350
|
};
|
|
9351
|
-
to =
|
|
9352
|
-
|
|
9353
|
-
|
|
9351
|
+
to = ag([
|
|
9352
|
+
Si(0, k(Dt)),
|
|
9353
|
+
Si(1, Re)
|
|
9354
9354
|
], to);
|
|
9355
|
-
function
|
|
9355
|
+
function cg(n) {
|
|
9356
9356
|
return n.rows[0].cells[0].sections[0].columns[0].lines[0];
|
|
9357
9357
|
}
|
|
9358
|
-
function
|
|
9358
|
+
function lg(n) {
|
|
9359
9359
|
const e = n.rows[n.rows.length - 1], t = e.cells[e.cells.length - 1];
|
|
9360
|
-
return
|
|
9360
|
+
return Fc(t);
|
|
9361
9361
|
}
|
|
9362
|
-
function
|
|
9362
|
+
function Ag(n, e) {
|
|
9363
9363
|
const { ed: t } = n, { skeTables: o } = e;
|
|
9364
9364
|
let s = null;
|
|
9365
9365
|
for (const r of o.values())
|
|
@@ -9369,7 +9369,7 @@ function lg(n, e) {
|
|
|
9369
9369
|
}
|
|
9370
9370
|
return s;
|
|
9371
9371
|
}
|
|
9372
|
-
function
|
|
9372
|
+
function Ei(n) {
|
|
9373
9373
|
const e = n == null ? void 0 : n.parent;
|
|
9374
9374
|
let t = null, o = null;
|
|
9375
9375
|
if (n == null || e == null)
|
|
@@ -9378,17 +9378,17 @@ function Si(n) {
|
|
|
9378
9378
|
lineAfterTable: o
|
|
9379
9379
|
};
|
|
9380
9380
|
const { st: s, ed: r } = n, i = e.type === be.CELL ? [e] : e.parent.pages;
|
|
9381
|
-
return
|
|
9381
|
+
return Uc(i, (a) => {
|
|
9382
9382
|
a.st === r + 1 ? o = a : a.ed === s - 1 && (t = a);
|
|
9383
9383
|
}), {
|
|
9384
9384
|
lineBeforeTable: t,
|
|
9385
9385
|
lineAfterTable: o
|
|
9386
9386
|
};
|
|
9387
9387
|
}
|
|
9388
|
-
function
|
|
9388
|
+
function Ka(n) {
|
|
9389
9389
|
return n.sections[0].columns[0].lines.length === 0;
|
|
9390
9390
|
}
|
|
9391
|
-
function
|
|
9391
|
+
function Xa(n) {
|
|
9392
9392
|
var i, a;
|
|
9393
9393
|
const e = n.parent, t = e == null ? void 0 : e.parent, o = t == null ? void 0 : t.tableId;
|
|
9394
9394
|
if (e == null || t == null)
|
|
@@ -9411,10 +9411,10 @@ function Ka(n) {
|
|
|
9411
9411
|
}
|
|
9412
9412
|
if (r != null) {
|
|
9413
9413
|
const c = r.cells[s];
|
|
9414
|
-
return
|
|
9414
|
+
return Ka(c) ? Xa(c) : c;
|
|
9415
9415
|
}
|
|
9416
9416
|
}
|
|
9417
|
-
function
|
|
9417
|
+
function Ja(n) {
|
|
9418
9418
|
var r, i;
|
|
9419
9419
|
const e = n.parent, t = e == null ? void 0 : e.parent;
|
|
9420
9420
|
if (e == null || t == null)
|
|
@@ -9437,10 +9437,10 @@ function Xa(n) {
|
|
|
9437
9437
|
}
|
|
9438
9438
|
if (o != null) {
|
|
9439
9439
|
const a = o.cells[s];
|
|
9440
|
-
return
|
|
9440
|
+
return Ka(a) ? Ja(a) : a;
|
|
9441
9441
|
}
|
|
9442
9442
|
}
|
|
9443
|
-
function
|
|
9443
|
+
function dg(n, e) {
|
|
9444
9444
|
const { st: t } = n, { skeTables: o } = e;
|
|
9445
9445
|
let s = null;
|
|
9446
9446
|
for (const r of o.values())
|
|
@@ -9450,17 +9450,17 @@ function Ag(n, e) {
|
|
|
9450
9450
|
}
|
|
9451
9451
|
return s;
|
|
9452
9452
|
}
|
|
9453
|
-
function
|
|
9453
|
+
function ug(n) {
|
|
9454
9454
|
return n.sections[0].columns[0].lines[0];
|
|
9455
9455
|
}
|
|
9456
|
-
function
|
|
9457
|
-
const e =
|
|
9456
|
+
function hg(n) {
|
|
9457
|
+
const e = Lc(n);
|
|
9458
9458
|
return e.lines[e.lines.length - 1];
|
|
9459
9459
|
}
|
|
9460
|
-
var
|
|
9461
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
9460
|
+
var gg = Object.defineProperty, fg = Object.getOwnPropertyDescriptor, pg = (n, e, t, o) => {
|
|
9461
|
+
for (var s = o > 1 ? void 0 : o ? fg(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
9462
9462
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
9463
|
-
return o && s &&
|
|
9463
|
+
return o && s && gg(e, t, s), s;
|
|
9464
9464
|
}, Ln = (n, e) => (t, o) => e(t, o, n);
|
|
9465
9465
|
let no = class extends me {
|
|
9466
9466
|
constructor(e, t, o, s) {
|
|
@@ -9687,22 +9687,22 @@ let no = class extends me {
|
|
|
9687
9687
|
return;
|
|
9688
9688
|
let A;
|
|
9689
9689
|
if (c.type === be.CELL && o) {
|
|
9690
|
-
const x =
|
|
9690
|
+
const x = Ii(c, t);
|
|
9691
9691
|
if (x)
|
|
9692
9692
|
return x;
|
|
9693
9693
|
}
|
|
9694
9694
|
if (t === !0) {
|
|
9695
9695
|
A = i.lines[l + 1];
|
|
9696
|
-
const x =
|
|
9696
|
+
const x = Ag(r, c);
|
|
9697
9697
|
if (x) {
|
|
9698
|
-
const _ =
|
|
9698
|
+
const _ = cg(x);
|
|
9699
9699
|
_ && (A = _);
|
|
9700
9700
|
}
|
|
9701
9701
|
} else {
|
|
9702
9702
|
A = i.lines[l - 1];
|
|
9703
|
-
const x =
|
|
9703
|
+
const x = dg(r, c);
|
|
9704
9704
|
if (x) {
|
|
9705
|
-
const _ =
|
|
9705
|
+
const _ = lg(x);
|
|
9706
9706
|
_ && (A = _);
|
|
9707
9707
|
}
|
|
9708
9708
|
}
|
|
@@ -9731,7 +9731,7 @@ let no = class extends me {
|
|
|
9731
9731
|
if (A != null)
|
|
9732
9732
|
return A;
|
|
9733
9733
|
if (c.type === be.CELL)
|
|
9734
|
-
return
|
|
9734
|
+
return Ii(c, t);
|
|
9735
9735
|
const u = c.parent;
|
|
9736
9736
|
if (u == null)
|
|
9737
9737
|
return;
|
|
@@ -9760,43 +9760,43 @@ let no = class extends me {
|
|
|
9760
9760
|
});
|
|
9761
9761
|
}
|
|
9762
9762
|
_getDocObject() {
|
|
9763
|
-
return
|
|
9763
|
+
return Pl(this._univerInstanceService, this._renderManagerService);
|
|
9764
9764
|
}
|
|
9765
9765
|
};
|
|
9766
|
-
no =
|
|
9766
|
+
no = pg([
|
|
9767
9767
|
Ln(0, Q),
|
|
9768
9768
|
Ln(1, Re),
|
|
9769
9769
|
Ln(2, k(W)),
|
|
9770
9770
|
Ln(3, T)
|
|
9771
9771
|
], no);
|
|
9772
|
-
function
|
|
9772
|
+
function Ii(n, e) {
|
|
9773
9773
|
var o, s;
|
|
9774
9774
|
let t = null;
|
|
9775
9775
|
if (e === !0) {
|
|
9776
|
-
const r =
|
|
9776
|
+
const r = Xa(n);
|
|
9777
9777
|
if (r)
|
|
9778
|
-
t =
|
|
9778
|
+
t = ug(r);
|
|
9779
9779
|
else {
|
|
9780
|
-
const i = (o = n.parent) == null ? void 0 : o.parent, { lineAfterTable: a } =
|
|
9780
|
+
const i = (o = n.parent) == null ? void 0 : o.parent, { lineAfterTable: a } = Ei(i);
|
|
9781
9781
|
a && (t = a);
|
|
9782
9782
|
}
|
|
9783
9783
|
} else {
|
|
9784
|
-
const r =
|
|
9784
|
+
const r = Ja(n);
|
|
9785
9785
|
if (r)
|
|
9786
|
-
t =
|
|
9786
|
+
t = hg(r);
|
|
9787
9787
|
else {
|
|
9788
|
-
const i = (s = n.parent) == null ? void 0 : s.parent, { lineBeforeTable: a } =
|
|
9788
|
+
const i = (s = n.parent) == null ? void 0 : s.parent, { lineBeforeTable: a } = Ei(i);
|
|
9789
9789
|
a && (t = a);
|
|
9790
9790
|
}
|
|
9791
9791
|
}
|
|
9792
9792
|
return t;
|
|
9793
9793
|
}
|
|
9794
|
-
const
|
|
9795
|
-
create:
|
|
9796
|
-
createItem:
|
|
9797
|
-
createLabel:
|
|
9798
|
-
createInput:
|
|
9799
|
-
},
|
|
9794
|
+
const mg = "univer-create", Sg = "univer-create-item", Eg = "univer-create-label", Ig = "univer-create-input", Bt = {
|
|
9795
|
+
create: mg,
|
|
9796
|
+
createItem: Sg,
|
|
9797
|
+
createLabel: Eg,
|
|
9798
|
+
createInput: Ig
|
|
9799
|
+
}, vg = ({
|
|
9800
9800
|
handleRowColChange: n,
|
|
9801
9801
|
tableCreateParams: e
|
|
9802
9802
|
}) => {
|
|
@@ -9841,11 +9841,11 @@ const pg = "univer-create", mg = "univer-create-item", Sg = "univer-create-label
|
|
|
9841
9841
|
] })
|
|
9842
9842
|
] });
|
|
9843
9843
|
};
|
|
9844
|
-
var
|
|
9845
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
9844
|
+
var Cg = Object.defineProperty, Rg = Object.getOwnPropertyDescriptor, bg = (n, e, t, o) => {
|
|
9845
|
+
for (var s = o > 1 ? void 0 : o ? Rg(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
9846
9846
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
9847
|
-
return o && s &&
|
|
9848
|
-
},
|
|
9847
|
+
return o && s && Cg(e, t, s), s;
|
|
9848
|
+
}, vi = (n, e) => (t, o) => e(t, o, n);
|
|
9849
9849
|
let oo = class extends me {
|
|
9850
9850
|
constructor(n, e) {
|
|
9851
9851
|
super(), this._commandService = n, this._componentManager = e, this._initialize();
|
|
@@ -9860,23 +9860,23 @@ let oo = class extends me {
|
|
|
9860
9860
|
}
|
|
9861
9861
|
_initCustomComponents() {
|
|
9862
9862
|
const n = this._componentManager;
|
|
9863
|
-
this.disposeWithMe(n.register(
|
|
9863
|
+
this.disposeWithMe(n.register(Fa, vg));
|
|
9864
9864
|
}
|
|
9865
9865
|
_init() {
|
|
9866
9866
|
}
|
|
9867
9867
|
};
|
|
9868
|
-
oo =
|
|
9869
|
-
|
|
9870
|
-
|
|
9868
|
+
oo = bg([
|
|
9869
|
+
vi(0, T),
|
|
9870
|
+
vi(1, k(Eo))
|
|
9871
9871
|
], oo);
|
|
9872
|
-
const
|
|
9873
|
-
var
|
|
9874
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
9872
|
+
const Ci = 4;
|
|
9873
|
+
var xg = Object.defineProperty, Og = Object.getOwnPropertyDescriptor, yg = (n, e, t, o) => {
|
|
9874
|
+
for (var s = o > 1 ? void 0 : o ? Og(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
9875
9875
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
9876
|
-
return o && s &&
|
|
9876
|
+
return o && s && xg(e, t, s), s;
|
|
9877
9877
|
}, Fn = (n, e) => (t, o) => e(t, o, n);
|
|
9878
|
-
function
|
|
9879
|
-
const t =
|
|
9878
|
+
function Za(n, e) {
|
|
9879
|
+
const t = Ri(n.left, n.top, e), o = Ri(n.right, n.bottom, e);
|
|
9880
9880
|
return {
|
|
9881
9881
|
left: t.x,
|
|
9882
9882
|
top: t.y,
|
|
@@ -9884,7 +9884,7 @@ function Ja(n, e) {
|
|
|
9884
9884
|
bottom: o.y
|
|
9885
9885
|
};
|
|
9886
9886
|
}
|
|
9887
|
-
function
|
|
9887
|
+
function Ri(n, e, t) {
|
|
9888
9888
|
const { scaleX: o, scaleY: s } = t.getAncestorScale(), r = t.getViewport(ut.VIEW_MAIN);
|
|
9889
9889
|
if (!r)
|
|
9890
9890
|
return {
|
|
@@ -9897,7 +9897,7 @@ function Ci(n, e, t) {
|
|
|
9897
9897
|
y: l
|
|
9898
9898
|
};
|
|
9899
9899
|
}
|
|
9900
|
-
function
|
|
9900
|
+
function bi(n, e, t) {
|
|
9901
9901
|
const { scaleX: o, scaleY: s } = t.getAncestorScale(), r = t.getViewport(ut.VIEW_MAIN);
|
|
9902
9902
|
if (!r)
|
|
9903
9903
|
return {
|
|
@@ -9914,8 +9914,8 @@ const Zo = (n, e) => {
|
|
|
9914
9914
|
const { scene: t, mainComponent: o, engine: s } = e, r = e.with(de).getSkeleton(), i = r.findNodePositionByCharIndex(n.startOffset, !0, n.segmentId, n.segmentPage), a = r.findNodePositionByCharIndex(n.endOffset, !0, n.segmentId, n.segmentPage), c = o;
|
|
9915
9915
|
if (!a || !i)
|
|
9916
9916
|
return;
|
|
9917
|
-
const l = c.getOffsetConfig(), { docsLeft: A, docsTop: d } = l, h = s.getCanvasElement(), u = h.getBoundingClientRect(), f =
|
|
9918
|
-
return Ws(E).map((O) =>
|
|
9917
|
+
const l = c.getOffsetConfig(), { docsLeft: A, docsTop: d } = l, h = s.getCanvasElement(), u = h.getBoundingClientRect(), f = Fi(h.style.width), { top: g, left: p, width: m } = u, S = m / f, { scaleX: I, scaleY: C } = t.getAncestorScale(), R = new vt(l, r), { borderBoxPointGroup: E } = R.getRangePointData(i, a);
|
|
9918
|
+
return Ws(E).map((O) => Za(O, t)).map((O) => ({
|
|
9919
9919
|
left: (O.left + A * I) * S + p,
|
|
9920
9920
|
right: (O.right + A * I) * S + p,
|
|
9921
9921
|
top: (O.top + d * C) * S + g,
|
|
@@ -9933,7 +9933,7 @@ let Es = class extends me {
|
|
|
9933
9933
|
right: l + d,
|
|
9934
9934
|
top: A,
|
|
9935
9935
|
bottom: A + h
|
|
9936
|
-
}, f = c.getCanvasElement(), g = f.getBoundingClientRect(), p =
|
|
9936
|
+
}, f = c.getCanvasElement(), g = f.getBoundingClientRect(), p = Fi(f.style.width), m = Za(u, a), { top: S, left: I, width: C } = g, R = C / p;
|
|
9937
9937
|
return {
|
|
9938
9938
|
left: m.left * R + I,
|
|
9939
9939
|
right: m.right * R + I,
|
|
@@ -10035,18 +10035,18 @@ let Es = class extends me {
|
|
|
10035
10035
|
}
|
|
10036
10036
|
// #endregion
|
|
10037
10037
|
};
|
|
10038
|
-
Es =
|
|
10039
|
-
Fn(0, k(
|
|
10038
|
+
Es = yg([
|
|
10039
|
+
Fn(0, k(gl)),
|
|
10040
10040
|
Fn(1, Re),
|
|
10041
10041
|
Fn(2, Q),
|
|
10042
10042
|
Fn(3, T)
|
|
10043
10043
|
], Es);
|
|
10044
|
-
var
|
|
10045
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10044
|
+
var Tg = Object.defineProperty, Bg = Object.getOwnPropertyDescriptor, _g = (n, e, t, o) => {
|
|
10045
|
+
for (var s = o > 1 ? void 0 : o ? Bg(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10046
10046
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10047
|
-
return o && s &&
|
|
10048
|
-
},
|
|
10049
|
-
const
|
|
10047
|
+
return o && s && Tg(e, t, s), s;
|
|
10048
|
+
}, Mg = (n, e) => (t, o) => e(t, o, n);
|
|
10049
|
+
const Pg = (n, e, t, o) => {
|
|
10050
10050
|
var h, u, f, g, p;
|
|
10051
10051
|
const s = t.findNodePositionByCharIndex(n.startOffset, !0, n.segmentId, o), r = t.getSkeletonData();
|
|
10052
10052
|
let i = n.endOffset;
|
|
@@ -10059,12 +10059,12 @@ const Mg = (n, e, t, o) => {
|
|
|
10059
10059
|
return;
|
|
10060
10060
|
const c = e.getOffsetConfig(), l = new vt(c, t), { borderBoxPointGroup: A } = l.getRangePointData(s, a);
|
|
10061
10061
|
return Ws(A).map((m) => ({
|
|
10062
|
-
top: m.top + c.docsTop -
|
|
10063
|
-
bottom: m.bottom + c.docsTop +
|
|
10062
|
+
top: m.top + c.docsTop - Ci,
|
|
10063
|
+
bottom: m.bottom + c.docsTop + Ci,
|
|
10064
10064
|
left: m.left + c.docsLeft,
|
|
10065
10065
|
right: m.right + c.docsLeft
|
|
10066
10066
|
}));
|
|
10067
|
-
},
|
|
10067
|
+
}, Dg = (n, e, t, o = -1) => {
|
|
10068
10068
|
const s = t.findPositionByGlyph(n, o);
|
|
10069
10069
|
if (!s)
|
|
10070
10070
|
return;
|
|
@@ -10121,14 +10121,14 @@ let so = class extends me {
|
|
|
10121
10121
|
this._customRangeDirty = !0, this._bulletDirty = !0;
|
|
10122
10122
|
})), this.disposeWithMe(
|
|
10123
10123
|
mn(this._context.engine.onTransformChange$).pipe(
|
|
10124
|
-
os((e) => e.type ===
|
|
10124
|
+
os((e) => e.type === Hi.resize)
|
|
10125
10125
|
).subscribe(() => {
|
|
10126
10126
|
this._customRangeDirty = !0, this._bulletDirty = !0;
|
|
10127
10127
|
})
|
|
10128
10128
|
);
|
|
10129
10129
|
}
|
|
10130
10130
|
_initEvents() {
|
|
10131
|
-
this.disposeWithMe(mn(this._context.scene.onPointerMove$).pipe(
|
|
10131
|
+
this.disposeWithMe(mn(this._context.scene.onPointerMove$).pipe(Vi(30)).subscribe((o) => {
|
|
10132
10132
|
this._hoverCustomRanges$.next(
|
|
10133
10133
|
this._calcActiveRanges(o)
|
|
10134
10134
|
), this._hoverBullet$.next(
|
|
@@ -10139,7 +10139,7 @@ let so = class extends me {
|
|
|
10139
10139
|
}));
|
|
10140
10140
|
const e = mn(this._context.mainComponent.onPointerDown$), t = mn(this._context.scene.onPointerUp$);
|
|
10141
10141
|
this.disposeWithMe(e.pipe(
|
|
10142
|
-
|
|
10142
|
+
Zc((o) => t.pipe($c(1), Bn((s) => ({ down: o, up: s })))),
|
|
10143
10143
|
os(({ down: o, up: s }) => o.target === s.target && s.timeStamp - o.timeStamp < 300)
|
|
10144
10144
|
// filter(({ down, up }) => down.offsetX === up.offsetX && down.offsetY === up.offsetY)
|
|
10145
10145
|
).subscribe(({ down: o }) => {
|
|
@@ -10160,7 +10160,7 @@ let so = class extends me {
|
|
|
10160
10160
|
endOffset: c.endIndex + 1,
|
|
10161
10161
|
collapsed: !1,
|
|
10162
10162
|
segmentId: e
|
|
10163
|
-
}, A =
|
|
10163
|
+
}, A = Pg(l, this._documents, this._skeleton, t);
|
|
10164
10164
|
if (!A)
|
|
10165
10165
|
return null;
|
|
10166
10166
|
s.push({
|
|
@@ -10183,7 +10183,7 @@ let so = class extends me {
|
|
|
10183
10183
|
}
|
|
10184
10184
|
_calcActiveRanges(e) {
|
|
10185
10185
|
this._buildCustomRangeBounds();
|
|
10186
|
-
const { offsetX: t, offsetY: o } = e, { x: s, y: r } =
|
|
10186
|
+
const { offsetX: t, offsetY: o } = e, { x: s, y: r } = bi(t, o, this._context.scene);
|
|
10187
10187
|
return this._customRangeBounds.filter((a) => a.rects.some((c) => {
|
|
10188
10188
|
const { left: l, right: A, top: d, bottom: h } = c;
|
|
10189
10189
|
return s >= l && s <= A && r >= d && r <= h;
|
|
@@ -10218,7 +10218,7 @@ let so = class extends me {
|
|
|
10218
10218
|
const v = R, y = (p = (g = (f = v == null ? void 0 : v.divides) == null ? void 0 : f[0]) == null ? void 0 : g.glyphGroup) == null ? void 0 : p[0];
|
|
10219
10219
|
if (!y)
|
|
10220
10220
|
continue;
|
|
10221
|
-
const O =
|
|
10221
|
+
const O = Dg(y, this._documents, this._skeleton, t);
|
|
10222
10222
|
if (!O)
|
|
10223
10223
|
continue;
|
|
10224
10224
|
r.push({
|
|
@@ -10246,20 +10246,20 @@ let so = class extends me {
|
|
|
10246
10246
|
}
|
|
10247
10247
|
_calcActiveBullet(e) {
|
|
10248
10248
|
this._buildBulletBounds();
|
|
10249
|
-
const { offsetX: t, offsetY: o } = e, { x: s, y: r } =
|
|
10249
|
+
const { offsetX: t, offsetY: o } = e, { x: s, y: r } = bi(t, o, this._context.scene);
|
|
10250
10250
|
return this._bulletBounds.find((a) => {
|
|
10251
10251
|
const { left: c, right: l, top: A, bottom: d } = a.rect;
|
|
10252
10252
|
return s >= c && s <= l && r >= A && r <= d;
|
|
10253
10253
|
});
|
|
10254
10254
|
}
|
|
10255
10255
|
};
|
|
10256
|
-
so =
|
|
10257
|
-
|
|
10256
|
+
so = _g([
|
|
10257
|
+
Mg(1, k(de))
|
|
10258
10258
|
], so);
|
|
10259
|
-
var
|
|
10260
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10259
|
+
var wg = Object.defineProperty, Ng = Object.getOwnPropertyDescriptor, Qg = (n, e, t, o) => {
|
|
10260
|
+
for (var s = o > 1 ? void 0 : o ? Ng(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10261
10261
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10262
|
-
return o && s &&
|
|
10262
|
+
return o && s && wg(e, t, s), s;
|
|
10263
10263
|
}, Hn = (n, e) => (t, o) => e(t, o, n);
|
|
10264
10264
|
let Is = class extends me {
|
|
10265
10265
|
constructor(n, e, t, o, s) {
|
|
@@ -10288,16 +10288,16 @@ let Is = class extends me {
|
|
|
10288
10288
|
return s.clone().invert().applyPoint(r);
|
|
10289
10289
|
}
|
|
10290
10290
|
};
|
|
10291
|
-
Is =
|
|
10291
|
+
Is = Qg([
|
|
10292
10292
|
Hn(1, k(de)),
|
|
10293
10293
|
Hn(2, T),
|
|
10294
10294
|
Hn(3, k(so)),
|
|
10295
10295
|
Hn(4, k(W))
|
|
10296
10296
|
], Is);
|
|
10297
|
-
var
|
|
10298
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10297
|
+
var Ug = Object.defineProperty, Lg = Object.getOwnPropertyDescriptor, Fg = (n, e, t, o) => {
|
|
10298
|
+
for (var s = o > 1 ? void 0 : o ? Lg(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10299
10299
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10300
|
-
return o && s &&
|
|
10300
|
+
return o && s && Ug(e, t, s), s;
|
|
10301
10301
|
}, hn = (n, e) => (t, o) => e(t, o, n);
|
|
10302
10302
|
let ro = class extends Ct {
|
|
10303
10303
|
constructor(n, e, t, o, s, r) {
|
|
@@ -10314,43 +10314,43 @@ let ro = class extends Ct {
|
|
|
10314
10314
|
return;
|
|
10315
10315
|
e.event.preventDefault();
|
|
10316
10316
|
const t = e.event;
|
|
10317
|
-
let o = (c = t.clipboardData) == null ? void 0 : c.getData(
|
|
10318
|
-
const s = (l = t.clipboardData) == null ? void 0 : l.getData(
|
|
10317
|
+
let o = (c = t.clipboardData) == null ? void 0 : c.getData(qi);
|
|
10318
|
+
const s = (l = t.clipboardData) == null ? void 0 : l.getData(Ki), r = [
|
|
10319
|
+
Gi,
|
|
10319
10320
|
Yi,
|
|
10320
10321
|
zi,
|
|
10321
|
-
Wi
|
|
10322
|
-
ji
|
|
10322
|
+
Wi
|
|
10323
10323
|
], i = [...((A = t.clipboardData) == null ? void 0 : A.items) || []].filter((d) => r.includes(d.type)).map((d) => d.getAsFile()).filter((d) => !!d);
|
|
10324
10324
|
this._editorService.getEditor(this._context.unitId) && (o != null ? o : "").indexOf("</table>") > -1 && (o = ""), this._docClipboardService.legacyPaste({ html: o, text: s, files: i });
|
|
10325
10325
|
});
|
|
10326
10326
|
}
|
|
10327
10327
|
};
|
|
10328
|
-
ro =
|
|
10328
|
+
ro = Fg([
|
|
10329
10329
|
hn(1, T),
|
|
10330
10330
|
hn(2, wn),
|
|
10331
10331
|
hn(3, k(Be)),
|
|
10332
10332
|
hn(4, Ps),
|
|
10333
10333
|
hn(5, Ke)
|
|
10334
10334
|
], ro);
|
|
10335
|
-
var
|
|
10336
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10335
|
+
var Hg = Object.defineProperty, Vg = Object.getOwnPropertyDescriptor, kg = (n, e, t, o) => {
|
|
10336
|
+
for (var s = o > 1 ? void 0 : o ? Vg(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10337
10337
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10338
|
-
return o && s &&
|
|
10339
|
-
},
|
|
10340
|
-
const
|
|
10338
|
+
return o && s && Hg(e, t, s), s;
|
|
10339
|
+
}, xi = (n, e) => (t, o) => e(t, o, n);
|
|
10340
|
+
const jg = [
|
|
10341
10341
|
Ms,
|
|
10342
|
-
|
|
10342
|
+
fc,
|
|
10343
10343
|
Us,
|
|
10344
10344
|
gt
|
|
10345
10345
|
];
|
|
10346
10346
|
let vs = class extends me {
|
|
10347
10347
|
constructor(n, e, t) {
|
|
10348
|
-
super(), this._context = n, this._contextMenuService = e, this._commandService = t,
|
|
10348
|
+
super(), this._context = n, this._contextMenuService = e, this._commandService = t, jg.includes(this._context.unitId) || (this._initPointerDown(), this._initEditChange());
|
|
10349
10349
|
}
|
|
10350
10350
|
_initPointerDown() {
|
|
10351
10351
|
var t, o;
|
|
10352
10352
|
const e = ((o = (t = this._context) == null ? void 0 : t.mainComponent) == null ? void 0 : o.onPointerDown$).subscribeEvent((s) => {
|
|
10353
|
-
s.button === 2 && this._contextMenuService.triggerContextMenu(s,
|
|
10353
|
+
s.button === 2 && this._contextMenuService.triggerContextMenu(s, Xi.MAIN_AREA);
|
|
10354
10354
|
});
|
|
10355
10355
|
this.disposeWithMe(e);
|
|
10356
10356
|
}
|
|
@@ -10362,14 +10362,14 @@ let vs = class extends me {
|
|
|
10362
10362
|
);
|
|
10363
10363
|
}
|
|
10364
10364
|
};
|
|
10365
|
-
vs =
|
|
10366
|
-
|
|
10367
|
-
|
|
10365
|
+
vs = kg([
|
|
10366
|
+
xi(1, fl),
|
|
10367
|
+
xi(2, T)
|
|
10368
10368
|
], vs);
|
|
10369
|
-
var
|
|
10370
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10369
|
+
var Wg = Object.defineProperty, zg = Object.getOwnPropertyDescriptor, Yg = (n, e, t, o) => {
|
|
10370
|
+
for (var s = o > 1 ? void 0 : o ? zg(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10371
10371
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10372
|
-
return o && s &&
|
|
10372
|
+
return o && s && Wg(e, t, s), s;
|
|
10373
10373
|
}, kt = (n, e) => (t, o) => e(t, o, n);
|
|
10374
10374
|
let io = class extends me {
|
|
10375
10375
|
constructor(e, t, o, s, r, i, a) {
|
|
@@ -10416,7 +10416,7 @@ let io = class extends me {
|
|
|
10416
10416
|
_initialSetValue() {
|
|
10417
10417
|
this.disposeWithMe(
|
|
10418
10418
|
this._editorService.setValue$.subscribe((e) => {
|
|
10419
|
-
e.editorUnitId === this._context.unitId && this._commandService.executeCommand(
|
|
10419
|
+
e.editorUnitId === this._context.unitId && this._commandService.executeCommand(ea.id, {
|
|
10420
10420
|
unitId: e.editorUnitId,
|
|
10421
10421
|
body: e.body,
|
|
10422
10422
|
segmentId: null
|
|
@@ -10452,7 +10452,7 @@ let io = class extends me {
|
|
|
10452
10452
|
this.disposeWithMe(
|
|
10453
10453
|
Ge(window, "mousedown").subscribe((o) => {
|
|
10454
10454
|
const r = o.target.classList[0] || "";
|
|
10455
|
-
if (
|
|
10455
|
+
if (pc(r, e)) {
|
|
10456
10456
|
this._editorService.changeSpreadsheetFocusState(!0), o.stopPropagation();
|
|
10457
10457
|
return;
|
|
10458
10458
|
}
|
|
@@ -10498,7 +10498,7 @@ let io = class extends me {
|
|
|
10498
10498
|
);
|
|
10499
10499
|
}
|
|
10500
10500
|
};
|
|
10501
|
-
io =
|
|
10501
|
+
io = Yg([
|
|
10502
10502
|
kt(1, Q),
|
|
10503
10503
|
kt(2, Ke),
|
|
10504
10504
|
kt(3, T),
|
|
@@ -10506,10 +10506,10 @@ io = zg([
|
|
|
10506
10506
|
kt(5, k(de)),
|
|
10507
10507
|
kt(6, Re)
|
|
10508
10508
|
], io);
|
|
10509
|
-
var
|
|
10510
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10509
|
+
var Gg = Object.defineProperty, qg = Object.getOwnPropertyDescriptor, Kg = (n, e, t, o) => {
|
|
10510
|
+
for (var s = o > 1 ? void 0 : o ? qg(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10511
10511
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10512
|
-
return o && s &&
|
|
10512
|
+
return o && s && Gg(e, t, s), s;
|
|
10513
10513
|
}, Vn = (n, e) => (t, o) => e(t, o, n);
|
|
10514
10514
|
let Cs = class extends me {
|
|
10515
10515
|
constructor(e, t, o, s, r) {
|
|
@@ -10554,7 +10554,7 @@ let Cs = class extends me {
|
|
|
10554
10554
|
if (s == null || i == null)
|
|
10555
10555
|
return;
|
|
10556
10556
|
const c = r.data;
|
|
10557
|
-
c === this._previousIMEContent && t || (await this._commandService.executeCommand(
|
|
10557
|
+
c === this._previousIMEContent && t || (await this._commandService.executeCommand(Ga.id, {
|
|
10558
10558
|
unitId: o,
|
|
10559
10559
|
newText: c,
|
|
10560
10560
|
oldTextLen: this._previousIMEContent.length,
|
|
@@ -10566,16 +10566,16 @@ let Cs = class extends me {
|
|
|
10566
10566
|
this._previousIMEContent = "", this._isCompositionStart = !0, this._docImeInputManagerService.clearUndoRedoMutationParamsCache(), this._docImeInputManagerService.setActiveRange(null);
|
|
10567
10567
|
}
|
|
10568
10568
|
};
|
|
10569
|
-
Cs =
|
|
10569
|
+
Cs = Kg([
|
|
10570
10570
|
Vn(1, k(Be)),
|
|
10571
10571
|
Vn(2, k(wo)),
|
|
10572
10572
|
Vn(3, k(de)),
|
|
10573
10573
|
Vn(4, T)
|
|
10574
10574
|
], Cs);
|
|
10575
|
-
var
|
|
10576
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10575
|
+
var Xg = Object.defineProperty, Jg = Object.getOwnPropertyDescriptor, Zg = (n, e, t, o) => {
|
|
10576
|
+
for (var s = o > 1 ? void 0 : o ? Jg(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10577
10577
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10578
|
-
return o && s &&
|
|
10578
|
+
return o && s && Xg(e, t, s), s;
|
|
10579
10579
|
}, kn = (n, e) => (t, o) => e(t, o, n);
|
|
10580
10580
|
let Rs = class extends me {
|
|
10581
10581
|
constructor(e, t, o, s, r) {
|
|
@@ -10627,7 +10627,7 @@ let Rs = class extends me {
|
|
|
10627
10627
|
});
|
|
10628
10628
|
}
|
|
10629
10629
|
};
|
|
10630
|
-
Rs =
|
|
10630
|
+
Rs = Zg([
|
|
10631
10631
|
kn(1, k(Be)),
|
|
10632
10632
|
kn(2, k(de)),
|
|
10633
10633
|
kn(3, T),
|
|
@@ -10651,11 +10651,11 @@ class Cr extends me {
|
|
|
10651
10651
|
}), this;
|
|
10652
10652
|
}
|
|
10653
10653
|
}
|
|
10654
|
-
var
|
|
10655
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10654
|
+
var $g = Object.defineProperty, ef = Object.getOwnPropertyDescriptor, tf = (n, e, t, o) => {
|
|
10655
|
+
for (var s = o > 1 ? void 0 : o ? ef(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10656
10656
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10657
|
-
return o && s &&
|
|
10658
|
-
},
|
|
10657
|
+
return o && s && $g(e, t, s), s;
|
|
10658
|
+
}, Oi = (n, e) => (t, o) => e(t, o, n);
|
|
10659
10659
|
let bs = class extends me {
|
|
10660
10660
|
constructor(n, e, t) {
|
|
10661
10661
|
super(), this._context = n, this._docPageLayoutService = e, this._textSelectionManagerService = t;
|
|
@@ -10666,22 +10666,22 @@ let bs = class extends me {
|
|
|
10666
10666
|
_initResize() {
|
|
10667
10667
|
this.disposeWithMe(
|
|
10668
10668
|
mn(this._context.engine.onTransformChange$).pipe(
|
|
10669
|
-
os((n) => n.type ===
|
|
10670
|
-
|
|
10669
|
+
os((n) => n.type === Hi.resize),
|
|
10670
|
+
Vi(0, el)
|
|
10671
10671
|
).subscribe(() => {
|
|
10672
10672
|
this._docPageLayoutService.calculatePagePosition(), this._textSelectionManagerService.refreshSelection();
|
|
10673
10673
|
})
|
|
10674
10674
|
);
|
|
10675
10675
|
}
|
|
10676
10676
|
};
|
|
10677
|
-
bs =
|
|
10678
|
-
|
|
10679
|
-
|
|
10677
|
+
bs = tf([
|
|
10678
|
+
Oi(1, k(Cr)),
|
|
10679
|
+
Oi(2, k(W))
|
|
10680
10680
|
], bs);
|
|
10681
|
-
var
|
|
10682
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10681
|
+
var nf = Object.defineProperty, of = Object.getOwnPropertyDescriptor, sf = (n, e, t, o) => {
|
|
10682
|
+
for (var s = o > 1 ? void 0 : o ? of(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10683
10683
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10684
|
-
return o && s &&
|
|
10684
|
+
return o && s && nf(e, t, s), s;
|
|
10685
10685
|
}, jt = (n, e) => (t, o) => e(t, o, n);
|
|
10686
10686
|
let xs = class extends me {
|
|
10687
10687
|
constructor(e, t, o, s, r, i, a) {
|
|
@@ -10790,7 +10790,7 @@ let xs = class extends me {
|
|
|
10790
10790
|
const { unitId: t } = this._context;
|
|
10791
10791
|
if (!go(t)) {
|
|
10792
10792
|
this._docSelectionRenderService.focus();
|
|
10793
|
-
const r = this._context.unit.getSnapshot(), i =
|
|
10793
|
+
const r = this._context.unit.getSnapshot(), i = Sa(r);
|
|
10794
10794
|
this._docSelectionManagerService.replaceDocRanges([
|
|
10795
10795
|
{
|
|
10796
10796
|
startOffset: i,
|
|
@@ -10804,7 +10804,7 @@ let xs = class extends me {
|
|
|
10804
10804
|
}));
|
|
10805
10805
|
}
|
|
10806
10806
|
};
|
|
10807
|
-
xs =
|
|
10807
|
+
xs = sf([
|
|
10808
10808
|
jt(1, T),
|
|
10809
10809
|
jt(2, Ke),
|
|
10810
10810
|
jt(3, Q),
|
|
@@ -10812,10 +10812,10 @@ xs = of([
|
|
|
10812
10812
|
jt(5, k(de)),
|
|
10813
10813
|
jt(6, k(W))
|
|
10814
10814
|
], xs);
|
|
10815
|
-
var
|
|
10816
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10815
|
+
var rf = Object.defineProperty, af = Object.getOwnPropertyDescriptor, cf = (n, e, t, o) => {
|
|
10816
|
+
for (var s = o > 1 ? void 0 : o ? af(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10817
10817
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10818
|
-
return o && s &&
|
|
10818
|
+
return o && s && rf(e, t, s), s;
|
|
10819
10819
|
}, _t = (n, e) => (t, o) => e(t, o, n);
|
|
10820
10820
|
let Os = class extends me {
|
|
10821
10821
|
constructor(n, e, t, o, s, r, i, a) {
|
|
@@ -10879,7 +10879,7 @@ let Os = class extends me {
|
|
|
10879
10879
|
t.scene.scale(n, n), this._editorService.isEditor(this._context.unitId) || this._docPageLayoutService.calculatePagePosition(), e && !this._editorService.isEditor(this._context.unitId) && this._textSelectionManagerService.refreshSelection(), (o = t.scene.getTransformer()) == null || o.clearSelectedObjects();
|
|
10880
10880
|
}
|
|
10881
10881
|
};
|
|
10882
|
-
Os =
|
|
10882
|
+
Os = cf([
|
|
10883
10883
|
_t(1, Ps),
|
|
10884
10884
|
_t(2, k(de)),
|
|
10885
10885
|
_t(3, Q),
|
|
@@ -10888,12 +10888,12 @@ Os = af([
|
|
|
10888
10888
|
_t(6, Ke),
|
|
10889
10889
|
_t(7, k(Cr))
|
|
10890
10890
|
], Os);
|
|
10891
|
-
var
|
|
10892
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10891
|
+
var lf = Object.defineProperty, Af = Object.getOwnPropertyDescriptor, df = (n, e, t, o) => {
|
|
10892
|
+
for (var s = o > 1 ? void 0 : o ? Af(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10893
10893
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10894
|
-
return o && s &&
|
|
10894
|
+
return o && s && lf(e, t, s), s;
|
|
10895
10895
|
}, gn = (n, e) => (t, o) => e(t, o, n);
|
|
10896
|
-
const
|
|
10896
|
+
const yi = 300;
|
|
10897
10897
|
let ao = class extends Ct {
|
|
10898
10898
|
constructor(e, t, o, s, r) {
|
|
10899
10899
|
super();
|
|
@@ -10963,9 +10963,9 @@ let ao = class extends Ct {
|
|
|
10963
10963
|
a.set(s, [e]);
|
|
10964
10964
|
i ? t === "history" ? (this._historyTimer && clearTimeout(this._historyTimer), this._historyTimer = setTimeout(() => {
|
|
10965
10965
|
c(s);
|
|
10966
|
-
},
|
|
10966
|
+
}, yi)) : (this._changeStateCacheTimer && clearTimeout(this._changeStateCacheTimer), this._changeStateCacheTimer = setTimeout(() => {
|
|
10967
10967
|
c(s);
|
|
10968
|
-
},
|
|
10968
|
+
}, yi)) : c(s);
|
|
10969
10969
|
}
|
|
10970
10970
|
_pushHistory(e) {
|
|
10971
10971
|
const t = this._undoRedoService, o = this._historyStateCache.get(e);
|
|
@@ -11013,19 +11013,19 @@ let ao = class extends Ct {
|
|
|
11013
11013
|
t.length = 0, this._docStateChange$.next(u);
|
|
11014
11014
|
}
|
|
11015
11015
|
};
|
|
11016
|
-
ao =
|
|
11016
|
+
ao = df([
|
|
11017
11017
|
gn(0, k(ho)),
|
|
11018
11018
|
gn(1, T),
|
|
11019
11019
|
gn(2, Q),
|
|
11020
|
-
gn(3, k(
|
|
11020
|
+
gn(3, k(vc)),
|
|
11021
11021
|
gn(4, Re)
|
|
11022
11022
|
], ao);
|
|
11023
|
-
var
|
|
11024
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
11023
|
+
var uf = Object.defineProperty, hf = Object.getOwnPropertyDescriptor, gf = (n, e, t, o) => {
|
|
11024
|
+
for (var s = o > 1 ? void 0 : o ? hf(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
11025
11025
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
11026
|
-
return o && s &&
|
|
11027
|
-
},
|
|
11028
|
-
const
|
|
11026
|
+
return o && s && uf(e, t, s), s;
|
|
11027
|
+
}, Ti = (n, e) => (t, o) => e(t, o, n);
|
|
11028
|
+
const Bi = "univer-doc-main-canvas";
|
|
11029
11029
|
let co = class extends Ct {
|
|
11030
11030
|
constructor(n, e) {
|
|
11031
11031
|
super(), this._instanceSrv = n, this._renderManagerService = e, this._init();
|
|
@@ -11037,7 +11037,7 @@ let co = class extends Ct {
|
|
|
11037
11037
|
var o;
|
|
11038
11038
|
const e = n.getUnitId(), t = (o = this._instanceSrv.getCurrentUnitForType(P.UNIVER_DOC)) == null ? void 0 : o.getUnitId();
|
|
11039
11039
|
this._renderManagerService.created$.subscribe((s) => {
|
|
11040
|
-
s.unitId === t && (s.engine.getCanvas().setId(
|
|
11040
|
+
s.unitId === t && (s.engine.getCanvas().setId(Bi), s.engine.getCanvas().getContext().setId(Bi));
|
|
11041
11041
|
}), this._renderManagerService.has(e) || (this._createRenderWithId(e), this._renderManagerService.setCurrent(e));
|
|
11042
11042
|
}
|
|
11043
11043
|
_createRenderWithId(n) {
|
|
@@ -11048,93 +11048,97 @@ let co = class extends Ct {
|
|
|
11048
11048
|
this._renderManagerService.removeRender(e);
|
|
11049
11049
|
}
|
|
11050
11050
|
};
|
|
11051
|
-
co =
|
|
11052
|
-
|
|
11053
|
-
|
|
11051
|
+
co = gf([
|
|
11052
|
+
Ti(0, Q),
|
|
11053
|
+
Ti(1, Re)
|
|
11054
11054
|
], co);
|
|
11055
|
-
const
|
|
11055
|
+
const ff = {
|
|
11056
11056
|
id: xn.id,
|
|
11057
|
-
preconditions:
|
|
11057
|
+
preconditions: ud,
|
|
11058
11058
|
binding: ae.ENTER
|
|
11059
|
-
},
|
|
11059
|
+
}, pf = {
|
|
11060
11060
|
id: _o.id,
|
|
11061
11061
|
preconditions: pe,
|
|
11062
11062
|
binding: ae.BACKSPACE
|
|
11063
|
-
},
|
|
11064
|
-
id:
|
|
11063
|
+
}, mf = {
|
|
11064
|
+
id: Na.id,
|
|
11065
11065
|
preconditions: pe,
|
|
11066
11066
|
binding: ae.DELETE
|
|
11067
|
-
},
|
|
11067
|
+
}, Sf = {
|
|
11068
11068
|
id: wt.id,
|
|
11069
11069
|
binding: ae.ARROW_UP,
|
|
11070
11070
|
preconditions: pe,
|
|
11071
11071
|
staticParameters: {
|
|
11072
11072
|
direction: ce.UP
|
|
11073
11073
|
}
|
|
11074
|
-
},
|
|
11074
|
+
}, Ef = {
|
|
11075
11075
|
id: wt.id,
|
|
11076
11076
|
binding: ae.ARROW_DOWN,
|
|
11077
11077
|
preconditions: pe,
|
|
11078
11078
|
staticParameters: {
|
|
11079
11079
|
direction: ce.DOWN
|
|
11080
11080
|
}
|
|
11081
|
-
},
|
|
11081
|
+
}, If = {
|
|
11082
11082
|
id: wt.id,
|
|
11083
11083
|
binding: ae.ARROW_LEFT,
|
|
11084
11084
|
preconditions: pe,
|
|
11085
11085
|
staticParameters: {
|
|
11086
11086
|
direction: ce.LEFT
|
|
11087
11087
|
}
|
|
11088
|
-
},
|
|
11088
|
+
}, vf = {
|
|
11089
11089
|
id: wt.id,
|
|
11090
11090
|
binding: ae.ARROW_RIGHT,
|
|
11091
11091
|
preconditions: pe,
|
|
11092
11092
|
staticParameters: {
|
|
11093
11093
|
direction: ce.RIGHT
|
|
11094
11094
|
}
|
|
11095
|
-
},
|
|
11095
|
+
}, Cf = {
|
|
11096
11096
|
id: Nt.id,
|
|
11097
11097
|
binding: ae.ARROW_UP | ge.SHIFT,
|
|
11098
11098
|
preconditions: pe,
|
|
11099
11099
|
staticParameters: {
|
|
11100
11100
|
direction: ce.UP
|
|
11101
11101
|
}
|
|
11102
|
-
},
|
|
11102
|
+
}, Rf = {
|
|
11103
11103
|
id: Nt.id,
|
|
11104
11104
|
binding: ae.ARROW_DOWN | ge.SHIFT,
|
|
11105
11105
|
preconditions: pe,
|
|
11106
11106
|
staticParameters: {
|
|
11107
11107
|
direction: ce.DOWN
|
|
11108
11108
|
}
|
|
11109
|
-
},
|
|
11109
|
+
}, bf = {
|
|
11110
11110
|
id: Nt.id,
|
|
11111
11111
|
binding: ae.ARROW_LEFT | ge.SHIFT,
|
|
11112
11112
|
preconditions: pe,
|
|
11113
11113
|
staticParameters: {
|
|
11114
11114
|
direction: ce.LEFT
|
|
11115
11115
|
}
|
|
11116
|
-
},
|
|
11116
|
+
}, xf = {
|
|
11117
11117
|
id: Nt.id,
|
|
11118
11118
|
binding: ae.ARROW_RIGHT | ge.SHIFT,
|
|
11119
11119
|
preconditions: pe,
|
|
11120
11120
|
staticParameters: {
|
|
11121
11121
|
direction: ce.RIGHT
|
|
11122
11122
|
}
|
|
11123
|
-
},
|
|
11124
|
-
id:
|
|
11123
|
+
}, Of = {
|
|
11124
|
+
id: Ya.id,
|
|
11125
11125
|
binding: ae.A | ge.CTRL_COMMAND,
|
|
11126
11126
|
preconditions: (n) => n.getContextValue(ws) && (n.getContextValue(Tn) || n.getContextValue(En))
|
|
11127
11127
|
};
|
|
11128
|
-
var
|
|
11129
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
11128
|
+
var $a = Object.defineProperty, yf = Object.getOwnPropertyDescriptor, Tf = (n, e, t) => e in n ? $a(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Bf = (n, e, t, o) => {
|
|
11129
|
+
for (var s = o > 1 ? void 0 : o ? yf(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
11130
11130
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
11131
|
-
return o && s &&
|
|
11132
|
-
}, fn = (n, e) => (t, o) => e(t, o, n),
|
|
11133
|
-
let ys = class extends
|
|
11131
|
+
return o && s && $a(e, t, s), s;
|
|
11132
|
+
}, fn = (n, e) => (t, o) => e(t, o, n), _f = (n, e, t) => Tf(n, e + "", t);
|
|
11133
|
+
let ys = class extends Sc {
|
|
11134
11134
|
// static override type = UniverInstanceType.UNIVER_DOC;
|
|
11135
|
-
constructor(n =
|
|
11135
|
+
constructor(n = li, e, t, o, s, r) {
|
|
11136
11136
|
super(), this._config = n, this._injector = e, this._renderManagerSrv = t, this._commandService = o, this._logService = s, this._configService = r;
|
|
11137
|
-
const { menu: i, ...a } =
|
|
11137
|
+
const { menu: i, ...a } = Ec(
|
|
11138
|
+
{},
|
|
11139
|
+
li,
|
|
11140
|
+
this._config
|
|
11141
|
+
);
|
|
11138
11142
|
i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(Zs, a), this._initDependencies(e), this._initializeShortcut(), this._initCommand();
|
|
11139
11143
|
}
|
|
11140
11144
|
onReady() {
|
|
@@ -11157,7 +11161,7 @@ let ys = class extends mc {
|
|
|
11157
11161
|
_initCommand() {
|
|
11158
11162
|
[
|
|
11159
11163
|
_o,
|
|
11160
|
-
|
|
11164
|
+
Na,
|
|
11161
11165
|
on,
|
|
11162
11166
|
sn,
|
|
11163
11167
|
rn,
|
|
@@ -11170,11 +11174,11 @@ let ys = class extends mc {
|
|
|
11170
11174
|
_n,
|
|
11171
11175
|
Zt,
|
|
11172
11176
|
Rt,
|
|
11173
|
-
|
|
11177
|
+
Va,
|
|
11174
11178
|
or,
|
|
11175
11179
|
On,
|
|
11176
11180
|
sr,
|
|
11177
|
-
|
|
11181
|
+
wa,
|
|
11178
11182
|
rr,
|
|
11179
11183
|
ot,
|
|
11180
11184
|
bo,
|
|
@@ -11185,18 +11189,18 @@ let ys = class extends mc {
|
|
|
11185
11189
|
yo,
|
|
11186
11190
|
ft,
|
|
11187
11191
|
To,
|
|
11188
|
-
|
|
11189
|
-
|
|
11192
|
+
ka,
|
|
11193
|
+
La,
|
|
11190
11194
|
fr,
|
|
11191
11195
|
pr,
|
|
11192
|
-
|
|
11196
|
+
yu,
|
|
11193
11197
|
mr,
|
|
11194
11198
|
Sr,
|
|
11195
11199
|
dr,
|
|
11196
11200
|
ur,
|
|
11197
11201
|
Nn,
|
|
11198
11202
|
Gs,
|
|
11199
|
-
|
|
11203
|
+
qa,
|
|
11200
11204
|
qt,
|
|
11201
11205
|
vo,
|
|
11202
11206
|
xn,
|
|
@@ -11204,17 +11208,17 @@ let ys = class extends mc {
|
|
|
11204
11208
|
Co,
|
|
11205
11209
|
Ks,
|
|
11206
11210
|
Xs,
|
|
11207
|
-
|
|
11208
|
-
|
|
11211
|
+
Ba,
|
|
11212
|
+
Ga,
|
|
11209
11213
|
Po,
|
|
11210
11214
|
at,
|
|
11211
|
-
|
|
11215
|
+
Da,
|
|
11212
11216
|
$t,
|
|
11213
|
-
|
|
11214
|
-
Zi,
|
|
11217
|
+
Ul,
|
|
11215
11218
|
$i,
|
|
11219
|
+
ea,
|
|
11216
11220
|
ms,
|
|
11217
|
-
|
|
11221
|
+
Ya,
|
|
11218
11222
|
Ir,
|
|
11219
11223
|
wt,
|
|
11220
11224
|
Nt
|
|
@@ -11224,25 +11228,25 @@ let ys = class extends mc {
|
|
|
11224
11228
|
}
|
|
11225
11229
|
_initializeShortcut() {
|
|
11226
11230
|
[
|
|
11227
|
-
mf,
|
|
11228
11231
|
Sf,
|
|
11229
|
-
If,
|
|
11230
11232
|
Ef,
|
|
11231
11233
|
vf,
|
|
11234
|
+
If,
|
|
11232
11235
|
Cf,
|
|
11233
11236
|
Rf,
|
|
11234
11237
|
bf,
|
|
11235
11238
|
xf,
|
|
11236
|
-
|
|
11239
|
+
Of,
|
|
11237
11240
|
pf,
|
|
11238
|
-
|
|
11239
|
-
|
|
11241
|
+
mf,
|
|
11242
|
+
ff,
|
|
11243
|
+
gd
|
|
11240
11244
|
].forEach((n) => {
|
|
11241
|
-
this._injector.get(
|
|
11245
|
+
this._injector.get(Ji).registerShortcut(n);
|
|
11242
11246
|
});
|
|
11243
11247
|
}
|
|
11244
11248
|
_initDependencies(n) {
|
|
11245
|
-
|
|
11249
|
+
Ic([
|
|
11246
11250
|
[ro],
|
|
11247
11251
|
[io],
|
|
11248
11252
|
[Zn],
|
|
@@ -11252,7 +11256,7 @@ let ys = class extends mc {
|
|
|
11252
11256
|
[eo],
|
|
11253
11257
|
[tn],
|
|
11254
11258
|
[Ke, { useClass: As }],
|
|
11255
|
-
[
|
|
11259
|
+
[ma, { useClass: yA }],
|
|
11256
11260
|
[wn, { useClass: fs }],
|
|
11257
11261
|
[Es],
|
|
11258
11262
|
[co],
|
|
@@ -11279,7 +11283,7 @@ let ys = class extends mc {
|
|
|
11279
11283
|
[
|
|
11280
11284
|
[de],
|
|
11281
11285
|
[Be],
|
|
11282
|
-
[
|
|
11286
|
+
[Cc],
|
|
11283
11287
|
[Cr],
|
|
11284
11288
|
[wo],
|
|
11285
11289
|
[ps],
|
|
@@ -11306,9 +11310,9 @@ let ys = class extends mc {
|
|
|
11306
11310
|
});
|
|
11307
11311
|
}
|
|
11308
11312
|
};
|
|
11309
|
-
|
|
11310
|
-
ys =
|
|
11311
|
-
|
|
11313
|
+
_f(ys, "pluginName", Bl);
|
|
11314
|
+
ys = Bf([
|
|
11315
|
+
mc(Hc),
|
|
11312
11316
|
fn(1, k(mo)),
|
|
11313
11317
|
fn(2, Re),
|
|
11314
11318
|
fn(3, T),
|
|
@@ -11322,28 +11326,28 @@ export {
|
|
|
11322
11326
|
xo as AlignLeftCommand,
|
|
11323
11327
|
ft as AlignOperationCommand,
|
|
11324
11328
|
yo as AlignRightCommand,
|
|
11325
|
-
|
|
11329
|
+
Va as BreakLineCommand,
|
|
11326
11330
|
Ro as BulletListCommand,
|
|
11327
11331
|
hs as ChangeListNestingLevelCommand,
|
|
11328
11332
|
qn as ChangeListNestingLevelType,
|
|
11329
11333
|
Co as ChangeListTypeCommand,
|
|
11330
11334
|
Ks as CheckListCommand,
|
|
11331
|
-
|
|
11332
|
-
|
|
11335
|
+
ea as CoverContentCommand,
|
|
11336
|
+
ka as CreateDocTableCommand,
|
|
11333
11337
|
$t as CutContentCommand,
|
|
11334
|
-
|
|
11338
|
+
_l as DOCS_COMPONENT_BACKGROUND_LAYER_INDEX,
|
|
11335
11339
|
Hr as DOCS_COMPONENT_DEFAULT_Z_INDEX,
|
|
11336
|
-
|
|
11340
|
+
Ml as DOCS_COMPONENT_HEADER_LAYER_INDEX,
|
|
11337
11341
|
Uo as DOCS_COMPONENT_MAIN_LAYER_INDEX,
|
|
11338
11342
|
tt as DOCS_VIEW_KEY,
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
+
Bl as DOC_UI_PLUGIN_NAME,
|
|
11344
|
+
Ci as DOC_VERTICAL_PADDING,
|
|
11345
|
+
Tl as DefaultDocContainerConfig,
|
|
11346
|
+
yl as DefaultToolbarConfig,
|
|
11343
11347
|
On as DeleteCommand,
|
|
11344
11348
|
sr as DeleteCustomBlockCommand,
|
|
11345
11349
|
_o as DeleteLeftCommand,
|
|
11346
|
-
|
|
11350
|
+
Na as DeleteRightCommand,
|
|
11347
11351
|
Dt as DocAutoFormatService,
|
|
11348
11352
|
$n as DocBackScrollRenderController,
|
|
11349
11353
|
Es as DocCanvasPopManagerService,
|
|
@@ -11353,50 +11357,50 @@ export {
|
|
|
11353
11357
|
so as DocEventManagerService,
|
|
11354
11358
|
wo as DocIMEInputManagerService,
|
|
11355
11359
|
Ar as DocPasteCommand,
|
|
11356
|
-
|
|
11360
|
+
Kf as DocRangeSelector,
|
|
11357
11361
|
ps as DocRenderController,
|
|
11358
|
-
|
|
11362
|
+
Ya as DocSelectAllCommand,
|
|
11359
11363
|
Be as DocSelectionRenderService,
|
|
11360
11364
|
ao as DocStateChangeManagerService,
|
|
11361
11365
|
ur as DocTableDeleteColumnsCommand,
|
|
11362
11366
|
dr as DocTableDeleteRowsCommand,
|
|
11363
11367
|
Nn as DocTableDeleteTableCommand,
|
|
11364
|
-
|
|
11368
|
+
yu as DocTableInsertColumnCommand,
|
|
11365
11369
|
mr as DocTableInsertColumnLeftCommand,
|
|
11366
11370
|
Sr as DocTableInsertColumnRightCommand,
|
|
11367
11371
|
fr as DocTableInsertRowAboveCommand,
|
|
11368
11372
|
pr as DocTableInsertRowBellowCommand,
|
|
11369
|
-
|
|
11370
|
-
|
|
11373
|
+
La as DocTableInsertRowCommand,
|
|
11374
|
+
qa as DocTableTabCommand,
|
|
11371
11375
|
Zn as DocUIController,
|
|
11372
11376
|
co as DocsRenderService,
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
|
|
11377
|
+
Hh as DocsUIMenuSchema,
|
|
11378
|
+
eA as Editor,
|
|
11379
|
+
iu as EditorInsertTextCommandId,
|
|
11376
11380
|
As as EditorService,
|
|
11377
11381
|
xn as EnterCommand,
|
|
11378
11382
|
wn as IDocClipboardService,
|
|
11379
11383
|
Ke as IEditorService,
|
|
11380
|
-
|
|
11381
|
-
|
|
11382
|
-
|
|
11384
|
+
Ga as IMEInputCommand,
|
|
11385
|
+
ma as IRangeSelectorService,
|
|
11386
|
+
Da as InnerPasteCommand,
|
|
11383
11387
|
or as InsertCommand,
|
|
11384
11388
|
Mn as ListOperationCommand,
|
|
11385
11389
|
rr as MergeTwoParagraphCommand,
|
|
11386
11390
|
wt as MoveCursorOperation,
|
|
11387
11391
|
Nt as MoveSelectionOperation,
|
|
11388
|
-
|
|
11392
|
+
kf as NORMAL_TEXT_SELECTION_PLUGIN_NAME,
|
|
11389
11393
|
vt as NodePositionConvertToCursor,
|
|
11390
|
-
|
|
11394
|
+
sa as NodePositionConvertToRectRange,
|
|
11391
11395
|
bo as OrderListCommand,
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
|
|
11399
|
-
|
|
11396
|
+
hu as PastePluginLark,
|
|
11397
|
+
gu as PastePluginUniver,
|
|
11398
|
+
fu as PastePluginWord,
|
|
11399
|
+
Ba as QuickListCommand,
|
|
11400
|
+
yA as RangeSelectorService,
|
|
11401
|
+
ra as RectRange,
|
|
11402
|
+
Ul as ReplaceContentCommand,
|
|
11403
|
+
$i as ReplaceSnapshotCommand,
|
|
11400
11404
|
_n as ResetInlineFormatTextBackgroundColorCommand,
|
|
11401
11405
|
ms as SetDocZoomRatioCommand,
|
|
11402
11406
|
ot as SetDocZoomRatioOperation,
|
|
@@ -11413,28 +11417,28 @@ export {
|
|
|
11413
11417
|
rn as SetInlineFormatUnderlineCommand,
|
|
11414
11418
|
as as TEXT_RANGE_LAYER_INDEX,
|
|
11415
11419
|
qt as TabCommand,
|
|
11416
|
-
|
|
11420
|
+
hA as TextEditor,
|
|
11417
11421
|
Gt as TextRange,
|
|
11418
11422
|
Xs as ToggleCheckListCommand,
|
|
11419
11423
|
ys as UniverDocsUIPlugin,
|
|
11420
|
-
|
|
11424
|
+
wa as UpdateCommand,
|
|
11421
11425
|
ut as VIEWPORT_KEY,
|
|
11422
|
-
|
|
11423
|
-
|
|
11426
|
+
Wf as addCustomDecorationBySelectionFactory,
|
|
11427
|
+
Dl as addCustomDecorationFactory,
|
|
11424
11428
|
Zo as calcDocRangePositions,
|
|
11425
11429
|
Vo as convertPositionsToRectRanges,
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
+
zf as deleteCustomDecorationFactory,
|
|
11431
|
+
Gf as docDrawingPositionToTransform,
|
|
11432
|
+
_a as genTableSource,
|
|
11433
|
+
Ha as generateParagraphs,
|
|
11430
11434
|
Yn as getAnchorBounding,
|
|
11431
|
-
|
|
11435
|
+
Kl as getCanvasOffsetByEngine,
|
|
11432
11436
|
Je as getCommandSkeleton,
|
|
11433
11437
|
ir as getCursorWhenDelete,
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
|
|
11438
|
+
$d as getCustomBlockIdsInSelections,
|
|
11439
|
+
ru as getCutActionsFromDocRanges,
|
|
11440
|
+
Pl as getDocObject,
|
|
11441
|
+
jf as getDocObjectById,
|
|
11438
11442
|
er as getEmptyTableCell,
|
|
11439
11443
|
tr as getEmptyTableRow,
|
|
11440
11444
|
Ws as getLineBounding,
|
|
@@ -11443,10 +11447,10 @@ export {
|
|
|
11443
11447
|
Pn as getParagraphsInRanges,
|
|
11444
11448
|
fe as getRichTextEditPath,
|
|
11445
11449
|
nr as getTableColumn,
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11450
|
+
Yf as hasParagraphInTable,
|
|
11451
|
+
na as isInSameTableCell,
|
|
11452
|
+
Hl as isValidRectRange,
|
|
11449
11453
|
It as neoGetDocObject,
|
|
11450
|
-
|
|
11454
|
+
qf as transformToDocDrawingPosition,
|
|
11451
11455
|
pe as whenDocAndEditorFocused
|
|
11452
11456
|
};
|