@univerjs/sheets-formula 0.1.0-alpha.3 → 0.1.0-beta.0
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 +5 -5
- package/lib/es/index.js +413 -412
- package/lib/umd/index.js +5 -5
- package/package.json +18 -18
package/lib/es/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var Gn = Object.defineProperty;
|
|
2
2
|
var Xn = (i, e, t) => e in i ? Gn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var k = (i, e, t) => (Xn(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { Disposable as H, ObjectMatrix as x, Dimension as X, OnLifecycle as K, LifecycleStages as Y, IUniverInstanceService as ge, ICommandService as Q, isFormulaString as Ee, isFormulaId as
|
|
4
|
+
import { Disposable as H, ObjectMatrix as x, Dimension as X, OnLifecycle as K, LifecycleStages as Y, IUniverInstanceService as ge, ICommandService as Q, isFormulaString as Ee, isFormulaId as Lt, Tools as G, Direction as M, CommandType as oe, toDisposable as w, ColorKit as an, ThemeService as sn, deserializeRangeWithSheet as Re, AbsoluteRefType as F, serializeRange as Et, Rectangle as Ue, getCellValueType as Kn, CellValueType as Yn, LocaleService as _e, IContextService as kt, FOCUSING_FORMULA_EDITOR as on, UniverInstanceType as Qn, FOCUSING_EDITOR_INPUT_FORMULA as Oe, DisposableCollection as Jn, serializeRangeToRefString as Ve, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as st, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as ot, RANGE_TYPE as he, Plugin as Zn, PluginType as er } from "@univerjs/core";
|
|
5
5
|
import { createIdentifier as Ze, Inject as y, Injector as et } from "@wendellhu/redi";
|
|
6
|
-
import { FormulaDataModel as tt, SetArrayFormulaDataMutation as
|
|
7
|
-
import { SetRangeValuesMutation as ie, SetStyleCommand as
|
|
8
|
-
import { DATA_TYPE as Xt, APPLY_TYPE as
|
|
9
|
-
import { IRenderManagerService as
|
|
10
|
-
import { TextSelectionManagerService as _n, ReplaceContentCommand as
|
|
11
|
-
import { KeyCode as O, ISidebarService as Dn, MenuGroup as
|
|
6
|
+
import { FormulaDataModel as tt, SetArrayFormulaDataMutation as Rt, LexerTreeBuilder as Ie, SetFormulaCalculationResultMutation as tr, sequenceNodeType as W, matchToken as j, FUNCTION_NAMES_MATH as zt, FunctionType as ne, FUNCTION_NAMES_STATISTICAL as Pe, IFunctionService as nr, isFormulaLexerToken as rr, normalizeSheetName as ir, includeFormulaLexerToken as ar, generateStringWithSequence as cn, SetFormulaCalculationStartMutation as Ut, SetFormulaCalculationNotificationMutation as sr, FormulaExecutedStateType as xe, SetFormulaDataMutation as we, initSheetFormulaData as or } from "@univerjs/engine-formula";
|
|
7
|
+
import { SetRangeValuesMutation as ie, SetStyleCommand as Ct, MoveRangeMutation as Vt, MoveRowsMutation as qt, MoveColsMutation as Ht, DeleteRangeMutation as $t, InsertRangeMutation as jt, RemoveRowMutation as Wt, RemoveColMutation as Gt, RemoveSheetMutation as gt, InsertSheetMutation as It, INTERCEPTOR_POINT as un, SheetInterceptorService as _t, SetRangeValuesUndoMutationFactory as mn, SetRangeValuesCommand as cr, SelectionManagerService as Dt, getCellAtRowCol as ur, SetSelectionsOperation as mr, NORMAL_SELECTION_PLUGIN_NAME as Be, convertSelectionDataToRange as ct, getNormalSelectionStyle as fr, SetBorderCommand as fn, DeleteRangeMoveLeftCommand as ln, DeleteRangeMoveUpCommand as dn, RemoveColCommand as bn, RemoveRowCommand as pn, InsertRangeMoveDownCommand as hn, InsertRangeMoveRightCommand as En, InsertColCommand as Rn, InsertRowCommand as gn, MoveColsCommand as In, MoveRowsCommand as vn, MoveRangeCommand as Pn, handleInsertRangeMutation as nt, handleDeleteRangeMutation as rt, SetWorksheetNameCommand as lr, handleMoveRange as dr, EffectRefRangId as J, runRefRangeMutations as Z, handleInsertRow as br, handleInsertCol as pr, handleIRemoveRow as hr, handleIRemoveCol as Er, handleDeleteRangeMoveLeft as Rr, handleDeleteRangeMoveUp as gr, handleInsertRangeMoveDown as Ir, handleInsertRangeMoveRight as vr } from "@univerjs/sheets";
|
|
8
|
+
import { DATA_TYPE as Xt, APPLY_TYPE as Pr, IAutoFillService as Sr, SheetPasteCommand as Br, ISheetClipboardService as kr, COPY_TYPE as Cr, SelectionShape as _r, IEditorBridgeService as yt, SheetSkeletonManagerService as Sn, ISelectionRenderService as Bn, getEditorObject as vt, ICellEditorManagerService as Tt, IFormulaEditorManagerService as kn, RangeSelector as Dr, PASTE_SPECIAL_MENU_ID as yr, whenEditorInputFormulaActivated as De, SetEditorResizeOperation as Tr, MoveSelectionCommand as Fe, JumpOver as Kt, ExpandSelectionCommand as Yt } from "@univerjs/sheets-ui";
|
|
9
|
+
import { IRenderManagerService as At, DeviceInputEventType as ae, ITextSelectionRenderManager as Cn, getCellInfoInMergeData as Ar } from "@univerjs/engine-render";
|
|
10
|
+
import { TextSelectionManagerService as _n, ReplaceContentCommand as Nr, MoveCursorOperation as Mr, DocViewModelManagerService as Or } from "@univerjs/docs";
|
|
11
|
+
import { KeyCode as O, ISidebarService as Dn, MenuGroup as xr, MenuItemType as Nt, MenuPosition as wr, getMenuHiddenObservable as Fr, MetaKeys as se, ComponentManager as Lr, IMenuService as zr, IShortcutService as Ur, IUIController as Vr } from "@univerjs/ui";
|
|
12
12
|
import { Subject as re } from "rxjs";
|
|
13
|
-
import { useDependency as z, connectInjector as
|
|
14
|
-
import
|
|
15
|
-
import { Popup as yn, Select as
|
|
13
|
+
import { useDependency as z, connectInjector as qr } from "@wendellhu/redi/react-bindings";
|
|
14
|
+
import Hr, { useState as A, useEffect as Ce, forwardRef as ye, useRef as $r, createElement as Te } from "react";
|
|
15
|
+
import { Popup as yn, Select as jr, Input as Wr, Button as ut } from "@univerjs/design";
|
|
16
16
|
const Tn = "formula-ui";
|
|
17
|
-
class
|
|
17
|
+
class Gr extends H {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
k(this, "_dirtyConversionMap", /* @__PURE__ */ new Map());
|
|
@@ -38,14 +38,14 @@ class jr extends H {
|
|
|
38
38
|
return this._dirtyConversionMap;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Mt = Ze(
|
|
42
42
|
"univer.formula.active-dirty-manager.service"
|
|
43
43
|
);
|
|
44
|
-
var
|
|
45
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
44
|
+
var Xr = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, Yr = (i, e, t, n) => {
|
|
45
|
+
for (var r = n > 1 ? void 0 : n ? Kr(e, t) : e, a = i.length - 1, s; a >= 0; a--)
|
|
46
46
|
(s = i[a]) && (r = (n ? s(e, t, r) : s(r)) || r);
|
|
47
|
-
return n && r &&
|
|
48
|
-
},
|
|
47
|
+
return n && r && Xr(e, t, r), r;
|
|
48
|
+
}, mt = (i, e) => (t, n) => e(t, n, i);
|
|
49
49
|
let qe = class extends H {
|
|
50
50
|
constructor(i, e, t) {
|
|
51
51
|
super(), this._activeDirtyManagerService = i, this._currentUniverService = e, this._formulaDataModel = t, this._initialize();
|
|
@@ -58,7 +58,7 @@ let qe = class extends H {
|
|
|
58
58
|
commandId: ie.id,
|
|
59
59
|
getDirtyData: (i) => {
|
|
60
60
|
const e = i.params;
|
|
61
|
-
return e.trigger ===
|
|
61
|
+
return e.trigger === Ct.id ? {} : {
|
|
62
62
|
dirtyRanges: this._getSetRangeValuesMutationDirtyRange(e)
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -118,14 +118,14 @@ let qe = class extends H {
|
|
|
118
118
|
dirtyRanges: this._getRemoveRowOrColumnMutation(e, !1)
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
}), this._activeDirtyManagerService.register(
|
|
122
|
-
commandId:
|
|
121
|
+
}), this._activeDirtyManagerService.register(gt.id, {
|
|
122
|
+
commandId: gt.id,
|
|
123
123
|
getDirtyData: (i) => {
|
|
124
124
|
const e = i.params;
|
|
125
125
|
return { dirtyNameMap: this._getRemoveSheetMutation(e) };
|
|
126
126
|
}
|
|
127
|
-
}), this._activeDirtyManagerService.register(
|
|
128
|
-
commandId:
|
|
127
|
+
}), this._activeDirtyManagerService.register(It.id, {
|
|
128
|
+
commandId: It.id,
|
|
129
129
|
getDirtyData: (i) => {
|
|
130
130
|
const e = i.params;
|
|
131
131
|
return { dirtyNameMap: this._getInsertSheetMutation(e) };
|
|
@@ -234,17 +234,17 @@ let qe = class extends H {
|
|
|
234
234
|
return n;
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
|
-
qe =
|
|
237
|
+
qe = Yr([
|
|
238
238
|
K(Y.Ready, qe),
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
239
|
+
mt(0, Mt),
|
|
240
|
+
mt(1, ge),
|
|
241
|
+
mt(2, y(tt))
|
|
242
242
|
], qe);
|
|
243
|
-
var
|
|
244
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
243
|
+
var Qr = Object.defineProperty, Jr = Object.getOwnPropertyDescriptor, Zr = (i, e, t, n) => {
|
|
244
|
+
for (var r = n > 1 ? void 0 : n ? Jr(e, t) : e, a = i.length - 1, s; a >= 0; a--)
|
|
245
245
|
(s = i[a]) && (r = (n ? s(e, t, r) : s(r)) || r);
|
|
246
|
-
return n && r &&
|
|
247
|
-
},
|
|
246
|
+
return n && r && Qr(e, t, r), r;
|
|
247
|
+
}, ft = (i, e) => (t, n) => e(t, n, i);
|
|
248
248
|
let He = class extends H {
|
|
249
249
|
constructor(i, e, t) {
|
|
250
250
|
super(), this._commandService = i, this._sheetInterceptorService = e, this._formulaDataModel = t, this._initialize();
|
|
@@ -255,7 +255,7 @@ let He = class extends H {
|
|
|
255
255
|
_commandExecutedListener() {
|
|
256
256
|
this.disposeWithMe(
|
|
257
257
|
this._commandService.onCommandExecuted((i) => {
|
|
258
|
-
if (i.id !==
|
|
258
|
+
if (i.id !== Rt.id)
|
|
259
259
|
return;
|
|
260
260
|
const e = i.params;
|
|
261
261
|
if (e == null)
|
|
@@ -278,16 +278,16 @@ let He = class extends H {
|
|
|
278
278
|
);
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
He =
|
|
281
|
+
He = Zr([
|
|
282
282
|
K(Y.Ready, He),
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
ft(0, Q),
|
|
284
|
+
ft(1, y(_t)),
|
|
285
|
+
ft(2, y(tt))
|
|
286
286
|
], He);
|
|
287
|
-
var
|
|
288
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
287
|
+
var ei = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, ni = (i, e, t, n) => {
|
|
288
|
+
for (var r = n > 1 ? void 0 : n ? ti(e, t) : e, a = i.length - 1, s; a >= 0; a--)
|
|
289
289
|
(s = i[a]) && (r = (n ? s(e, t, r) : s(r)) || r);
|
|
290
|
-
return n && r &&
|
|
290
|
+
return n && r && ei(e, t, r), r;
|
|
291
291
|
}, Qt = (i, e) => (t, n) => e(t, n, i);
|
|
292
292
|
let $e = class extends H {
|
|
293
293
|
constructor(i, e) {
|
|
@@ -300,10 +300,10 @@ let $e = class extends H {
|
|
|
300
300
|
const i = {
|
|
301
301
|
type: Xt.FORMULA,
|
|
302
302
|
priority: 1001,
|
|
303
|
-
match: (e) => Ee(e == null ? void 0 : e.f) ||
|
|
303
|
+
match: (e) => Ee(e == null ? void 0 : e.f) || Lt(e == null ? void 0 : e.si),
|
|
304
304
|
isContinue: (e, t) => e.type === Xt.FORMULA,
|
|
305
305
|
applyFunctions: {
|
|
306
|
-
[
|
|
306
|
+
[Pr.COPY]: (e, t, n, r) => {
|
|
307
307
|
const { data: a, index: s } = e;
|
|
308
308
|
return this._fillCopyFormula(a, t, n, s, r);
|
|
309
309
|
}
|
|
@@ -313,12 +313,12 @@ let $e = class extends H {
|
|
|
313
313
|
}
|
|
314
314
|
_fillCopyFormula(i, e, t, n, r) {
|
|
315
315
|
var c, u;
|
|
316
|
-
const a =
|
|
316
|
+
const a = ii(r), s = [], o = /* @__PURE__ */ new Map();
|
|
317
317
|
for (let l = 1; l <= e; l++) {
|
|
318
318
|
const d = (l - 1) % i.length, m = G.deepClone(i[d]);
|
|
319
319
|
if (m) {
|
|
320
320
|
const b = ((c = i[d]) == null ? void 0 : c.f) || "", h = ((u = i[d]) == null ? void 0 : u.si) || "", I = Ee(b);
|
|
321
|
-
if (
|
|
321
|
+
if (Lt(h))
|
|
322
322
|
m.si = h, m.f = null, m.v = null, m.p = null, t === M.DOWN || t === M.RIGHT ? s.push(m) : s.unshift(m);
|
|
323
323
|
else if (I) {
|
|
324
324
|
let R = o.get(d);
|
|
@@ -326,7 +326,7 @@ let $e = class extends H {
|
|
|
326
326
|
m.si = R, m.f = null, m.v = null, m.p = null;
|
|
327
327
|
else {
|
|
328
328
|
R = G.generateRandomId(6), o.set(d, R);
|
|
329
|
-
const { offsetX: p, offsetY: g } =
|
|
329
|
+
const { offsetX: p, offsetY: g } = ri(a, t), C = this._lexerTreeBuilder.moveFormulaRefOffset(
|
|
330
330
|
b,
|
|
331
331
|
p,
|
|
332
332
|
g
|
|
@@ -340,12 +340,12 @@ let $e = class extends H {
|
|
|
340
340
|
return s;
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
|
-
$e =
|
|
343
|
+
$e = ni([
|
|
344
344
|
K(Y.Ready, $e),
|
|
345
|
-
Qt(0,
|
|
345
|
+
Qt(0, Sr),
|
|
346
346
|
Qt(1, y(Ie))
|
|
347
347
|
], $e);
|
|
348
|
-
function
|
|
348
|
+
function ri(i, e) {
|
|
349
349
|
let t = 0, n = 0;
|
|
350
350
|
switch (e) {
|
|
351
351
|
case M.UP:
|
|
@@ -363,7 +363,7 @@ function ti(i, e) {
|
|
|
363
363
|
}
|
|
364
364
|
return { offsetX: t, offsetY: n };
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function ii(i) {
|
|
367
367
|
let e = 0;
|
|
368
368
|
for (const t in i)
|
|
369
369
|
i[t].forEach((n) => {
|
|
@@ -374,16 +374,16 @@ function ni(i) {
|
|
|
374
374
|
const An = "special-paste-formula", Nn = {
|
|
375
375
|
id: "sheet.command.paste-formula",
|
|
376
376
|
type: oe.COMMAND,
|
|
377
|
-
handler: async (i) => i.get(Q).executeCommand(
|
|
377
|
+
handler: async (i) => i.get(Q).executeCommand(Br.id, {
|
|
378
378
|
value: An
|
|
379
379
|
})
|
|
380
380
|
};
|
|
381
|
-
var
|
|
382
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
381
|
+
var ai = Object.defineProperty, si = Object.getOwnPropertyDescriptor, oi = (i, e, t, n) => {
|
|
382
|
+
for (var r = n > 1 ? void 0 : n ? si(e, t) : e, a = i.length - 1, s; a >= 0; a--)
|
|
383
383
|
(s = i[a]) && (r = (n ? s(e, t, r) : s(r)) || r);
|
|
384
|
-
return n && r &&
|
|
384
|
+
return n && r && ai(e, t, r), r;
|
|
385
385
|
}, Le = (i, e) => (t, n) => e(t, n, i);
|
|
386
|
-
const
|
|
386
|
+
const ci = "default-paste-formula";
|
|
387
387
|
let je = class extends H {
|
|
388
388
|
constructor(i, e, t, n) {
|
|
389
389
|
super(), this._currentUniverSheet = i, this._lexerTreeBuilder = e, this._sheetClipboardService = t, this._injector = n, this._initialize();
|
|
@@ -419,7 +419,7 @@ let je = class extends H {
|
|
|
419
419
|
}
|
|
420
420
|
_pasteWithFormulaHook() {
|
|
421
421
|
return {
|
|
422
|
-
hookName:
|
|
422
|
+
hookName: ci,
|
|
423
423
|
onPasteCells: (e, t, n, r) => {
|
|
424
424
|
const a = this._currentUniverSheet.getCurrentUniverSheetInstance(), s = a.getUnitId(), o = a.getActiveSheet().getSheetId();
|
|
425
425
|
return this._injector.invoke(
|
|
@@ -437,11 +437,11 @@ let je = class extends H {
|
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
|
-
je =
|
|
440
|
+
je = oi([
|
|
441
441
|
K(Y.Ready, je),
|
|
442
442
|
Le(0, ge),
|
|
443
443
|
Le(1, y(Ie)),
|
|
444
|
-
Le(2,
|
|
444
|
+
Le(2, kr),
|
|
445
445
|
Le(3, y(et))
|
|
446
446
|
], je);
|
|
447
447
|
function Jt(i, e, t, n, r, a, s, o = !1) {
|
|
@@ -449,7 +449,7 @@ function Jt(i, e, t, n, r, a, s, o = !1) {
|
|
|
449
449
|
let h = 0, I = 0, f = 0, R = 0;
|
|
450
450
|
if (a) {
|
|
451
451
|
const { copyType: C, copyRange: S } = a;
|
|
452
|
-
C ===
|
|
452
|
+
C === Cr.COPY && S && (f = S.startRow, R = S.startColumn, h = S.endRow - f + 1, I = S.endColumn - R + 1);
|
|
453
453
|
}
|
|
454
454
|
n.forValue((C, S, v) => {
|
|
455
455
|
const P = v.f || "", _ = {};
|
|
@@ -487,10 +487,10 @@ function Jt(i, e, t, n, r, a, s, o = !1) {
|
|
|
487
487
|
redos: c
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
var
|
|
491
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
490
|
+
var ui = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, fi = (i, e, t, n) => {
|
|
491
|
+
for (var r = n > 1 ? void 0 : n ? mi(e, t) : e, a = i.length - 1, s; a >= 0; a--)
|
|
492
492
|
(s = i[a]) && (r = (n ? s(e, t, r) : s(r)) || r);
|
|
493
|
-
return n && r &&
|
|
493
|
+
return n && r && ui(e, t, r), r;
|
|
494
494
|
}, ee = (i, e) => (t, n) => e(t, n, i);
|
|
495
495
|
let We = class extends H {
|
|
496
496
|
constructor(e, t, n, r, a, s, o, c, u) {
|
|
@@ -581,7 +581,7 @@ let We = class extends H {
|
|
|
581
581
|
_commandExecutedListener() {
|
|
582
582
|
this.disposeWithMe(
|
|
583
583
|
this._commandService.onCommandExecuted((e) => {
|
|
584
|
-
e.id ===
|
|
584
|
+
e.id === tr.id && this._removeArrayFormulaRangeShape();
|
|
585
585
|
})
|
|
586
586
|
);
|
|
587
587
|
}
|
|
@@ -602,31 +602,31 @@ let We = class extends H {
|
|
|
602
602
|
}), u = (b = this._sheetSkeletonManagerService.getCurrent()) == null ? void 0 : b.skeleton;
|
|
603
603
|
if (!s || !u)
|
|
604
604
|
return;
|
|
605
|
-
const { rowHeaderWidth: l, columnHeaderHeight: d } = u, m = new
|
|
605
|
+
const { rowHeaderWidth: l, columnHeaderHeight: d } = u, m = new _r(s, 100, !1, this._themeService);
|
|
606
606
|
m.update(o, l, d, a, c), this._previousShape = m;
|
|
607
607
|
}
|
|
608
608
|
_removeArrayFormulaRangeShape() {
|
|
609
609
|
this._previousShape != null && (this._previousShape.dispose(), this._previousShape = null);
|
|
610
610
|
}
|
|
611
611
|
};
|
|
612
|
-
We =
|
|
612
|
+
We = fi([
|
|
613
613
|
K(Y.Rendered, We),
|
|
614
|
-
ee(0, y(
|
|
614
|
+
ee(0, y(yt)),
|
|
615
615
|
ee(1, y(tt)),
|
|
616
616
|
ee(2, y(Ie)),
|
|
617
617
|
ee(3, y(sn)),
|
|
618
|
-
ee(4,
|
|
618
|
+
ee(4, At),
|
|
619
619
|
ee(5, Bn),
|
|
620
620
|
ee(6, y(Sn)),
|
|
621
621
|
ee(7, Q),
|
|
622
|
-
ee(8, y(
|
|
622
|
+
ee(8, y(_t))
|
|
623
623
|
], We);
|
|
624
|
-
const
|
|
624
|
+
const Ot = {
|
|
625
625
|
id: "formula-ui.operation.change-ref-to-absolute",
|
|
626
626
|
type: oe.OPERATION,
|
|
627
627
|
handler: async (i) => !0
|
|
628
628
|
};
|
|
629
|
-
class
|
|
629
|
+
class li {
|
|
630
630
|
constructor() {
|
|
631
631
|
k(this, "_sequenceNodes", []);
|
|
632
632
|
k(this, "_isSelectionMoving", !1);
|
|
@@ -776,10 +776,10 @@ class mi {
|
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
const Ae = Ze("formula-ui.input-service");
|
|
779
|
-
var
|
|
780
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
779
|
+
var di = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, pi = (i, e, t, n) => {
|
|
780
|
+
for (var r = n > 1 ? void 0 : n ? bi(e, t) : e, a = i.length - 1, s; a >= 0; a--)
|
|
781
781
|
(s = i[a]) && (r = (n ? s(e, t, r) : s(r)) || r);
|
|
782
|
-
return n && r &&
|
|
782
|
+
return n && r && di(e, t, r), r;
|
|
783
783
|
}, me = (i, e) => (t, n) => e(t, n, i);
|
|
784
784
|
let Ge = class extends H {
|
|
785
785
|
constructor(e, t, n, r, a, s, o) {
|
|
@@ -857,15 +857,15 @@ let Ge = class extends H {
|
|
|
857
857
|
_changeRangeRef(e) {
|
|
858
858
|
const t = Re(e).range;
|
|
859
859
|
let n = "";
|
|
860
|
-
return t.startAbsoluteRefType === F.NONE || t.startAbsoluteRefType == null ? (t.startAbsoluteRefType = F.ALL, t.endAbsoluteRefType = F.ALL) : (t.startAbsoluteRefType = F.NONE, t.endAbsoluteRefType = F.NONE), n =
|
|
860
|
+
return t.startAbsoluteRefType === F.NONE || t.startAbsoluteRefType == null ? (t.startAbsoluteRefType = F.ALL, t.endAbsoluteRefType = F.ALL) : (t.startAbsoluteRefType = F.NONE, t.endAbsoluteRefType = F.NONE), n = Et(t), n;
|
|
861
861
|
}
|
|
862
862
|
_changeSingleRef(e) {
|
|
863
863
|
const t = Re(e).range, n = t.startAbsoluteRefType;
|
|
864
864
|
let r = "";
|
|
865
|
-
return n === F.NONE || n == null ? (t.startAbsoluteRefType = F.ALL, t.endAbsoluteRefType = F.ALL) : n === F.ALL ? (t.startAbsoluteRefType = F.ROW, t.endAbsoluteRefType = F.ROW) : n === F.ROW ? (t.startAbsoluteRefType = F.COLUMN, t.endAbsoluteRefType = F.COLUMN) : (t.startAbsoluteRefType = F.NONE, t.endAbsoluteRefType = F.NONE), r =
|
|
865
|
+
return n === F.NONE || n == null ? (t.startAbsoluteRefType = F.ALL, t.endAbsoluteRefType = F.ALL) : n === F.ALL ? (t.startAbsoluteRefType = F.ROW, t.endAbsoluteRefType = F.ROW) : n === F.ROW ? (t.startAbsoluteRefType = F.COLUMN, t.endAbsoluteRefType = F.COLUMN) : (t.startAbsoluteRefType = F.NONE, t.endAbsoluteRefType = F.NONE), r = Et(t), r;
|
|
866
866
|
}
|
|
867
867
|
_commandExecutedListener() {
|
|
868
|
-
const e = [
|
|
868
|
+
const e = [Ot.id];
|
|
869
869
|
this.disposeWithMe(
|
|
870
870
|
this._commandService.onCommandExecuted((t) => {
|
|
871
871
|
e.includes(t.id) && this._changeRefString();
|
|
@@ -873,16 +873,16 @@ let Ge = class extends H {
|
|
|
873
873
|
);
|
|
874
874
|
}
|
|
875
875
|
_getEditorObject() {
|
|
876
|
-
return
|
|
876
|
+
return vt(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
|
-
Ge =
|
|
879
|
+
Ge = pi([
|
|
880
880
|
K(Y.Steady, Ge),
|
|
881
881
|
me(0, Q),
|
|
882
882
|
me(1, Cn),
|
|
883
|
-
me(2, y(
|
|
883
|
+
me(2, y(yt)),
|
|
884
884
|
me(3, y(Ie)),
|
|
885
|
-
me(4,
|
|
885
|
+
me(4, At),
|
|
886
886
|
me(5, Ae),
|
|
887
887
|
me(6, y(_n))
|
|
888
888
|
], Ge);
|
|
@@ -907,7 +907,7 @@ const Mn = {
|
|
|
907
907
|
const a = {
|
|
908
908
|
value: r.getData()
|
|
909
909
|
};
|
|
910
|
-
return n.executeCommand(
|
|
910
|
+
return n.executeCommand(cr.id, a);
|
|
911
911
|
}
|
|
912
912
|
}, ve = {
|
|
913
913
|
id: "formula-ui.operation.select-editor-formula",
|
|
@@ -942,7 +942,7 @@ const Mn = {
|
|
|
942
942
|
!0
|
|
943
943
|
)
|
|
944
944
|
}, de = Ze("formula-ui.prompt-service");
|
|
945
|
-
class
|
|
945
|
+
class hi {
|
|
946
946
|
constructor() {
|
|
947
947
|
k(this, "_search$", new re());
|
|
948
948
|
k(this, "_help$", new re());
|
|
@@ -983,24 +983,24 @@ class bi {
|
|
|
983
983
|
this._acceptFormulaName$.next(e);
|
|
984
984
|
}
|
|
985
985
|
}
|
|
986
|
-
const
|
|
986
|
+
const Pt = {
|
|
987
987
|
id: "formula-ui.operation.help-function",
|
|
988
988
|
type: oe.OPERATION,
|
|
989
989
|
handler: async (i, e) => (i.get(de).help(e), !0)
|
|
990
|
-
},
|
|
990
|
+
}, xt = {
|
|
991
991
|
id: "formula-ui.operation.insert-function",
|
|
992
992
|
type: oe.OPERATION,
|
|
993
993
|
handler: async (i, e) => {
|
|
994
|
-
const t = i.get(
|
|
994
|
+
const t = i.get(Dt), n = i.get(Ae), r = t.getSelections();
|
|
995
995
|
if (!r || !r.length)
|
|
996
996
|
return !1;
|
|
997
997
|
const a = i.get(ge).getCurrentUniverSheetInstance(), s = a.getActiveSheet(), o = a.getUnitId(), c = s.getSheetId(), u = s.getCellMatrix(), { value: l } = e, d = i.get(Q), m = [];
|
|
998
998
|
let b = null, h = 0, I = 0;
|
|
999
999
|
if (r.some((f) => {
|
|
1000
|
-
const { range: R, primary: p } = f, g = (p == null ? void 0 : p.actualRow) ?? R.startRow, C = (p == null ? void 0 : p.actualColumn) ?? R.startColumn, S =
|
|
1000
|
+
const { range: R, primary: p } = f, g = (p == null ? void 0 : p.actualRow) ?? R.startRow, C = (p == null ? void 0 : p.actualColumn) ?? R.startColumn, S = Ei(u, g, C);
|
|
1001
1001
|
if (!S)
|
|
1002
1002
|
return b = R, h = g, I = C, !0;
|
|
1003
|
-
const v =
|
|
1003
|
+
const v = Et(S), P = `=${l}(${v})`;
|
|
1004
1004
|
return m.push({
|
|
1005
1005
|
range: R,
|
|
1006
1006
|
primary: {
|
|
@@ -1010,7 +1010,7 @@ const It = {
|
|
|
1010
1010
|
formula: P
|
|
1011
1011
|
}), !1;
|
|
1012
1012
|
}), b) {
|
|
1013
|
-
const f =
|
|
1013
|
+
const f = ur(h, I, s), R = {
|
|
1014
1014
|
range: Ue.clone(b),
|
|
1015
1015
|
primary: {
|
|
1016
1016
|
startRow: f.startRow,
|
|
@@ -1028,7 +1028,7 @@ const It = {
|
|
|
1028
1028
|
pluginName: Be,
|
|
1029
1029
|
selections: [R]
|
|
1030
1030
|
};
|
|
1031
|
-
await d.executeCommand(
|
|
1031
|
+
await d.executeCommand(mr.id, p), setTimeout(() => {
|
|
1032
1032
|
n.inputFormula(`=${l}(`);
|
|
1033
1033
|
}, 0);
|
|
1034
1034
|
}
|
|
@@ -1037,8 +1037,8 @@ const It = {
|
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
1039
|
};
|
|
1040
|
-
function
|
|
1041
|
-
const n =
|
|
1040
|
+
function Ei(i, e, t) {
|
|
1041
|
+
const n = Ri(i, e, t);
|
|
1042
1042
|
if (n !== e)
|
|
1043
1043
|
return {
|
|
1044
1044
|
startRow: n,
|
|
@@ -1046,7 +1046,7 @@ function pi(i, e, t) {
|
|
|
1046
1046
|
startColumn: t,
|
|
1047
1047
|
endColumn: t
|
|
1048
1048
|
};
|
|
1049
|
-
const r =
|
|
1049
|
+
const r = gi(i, e, t);
|
|
1050
1050
|
return r !== t ? {
|
|
1051
1051
|
startRow: e,
|
|
1052
1052
|
endRow: e,
|
|
@@ -1054,7 +1054,7 @@ function pi(i, e, t) {
|
|
|
1054
1054
|
endColumn: t - 1
|
|
1055
1055
|
} : null;
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function Ri(i, e, t) {
|
|
1058
1058
|
let n = !1;
|
|
1059
1059
|
if (e === 0)
|
|
1060
1060
|
return e;
|
|
@@ -1073,7 +1073,7 @@ function hi(i, e, t) {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
return e;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function gi(i, e, t) {
|
|
1077
1077
|
let n = !1;
|
|
1078
1078
|
if (t === 0)
|
|
1079
1079
|
return t;
|
|
@@ -1102,7 +1102,7 @@ const On = `${Tn}_MORE_FUNCTIONS_COMPONENT`, xn = {
|
|
|
1102
1102
|
header: { title: "formula.insert.tooltip" },
|
|
1103
1103
|
children: { label: On }
|
|
1104
1104
|
}), !0)
|
|
1105
|
-
},
|
|
1105
|
+
}, St = {
|
|
1106
1106
|
id: "formula-ui.operation.search-function",
|
|
1107
1107
|
type: oe.OPERATION,
|
|
1108
1108
|
handler: async (i, e) => (i.get(de).search(e), !0)
|
|
@@ -1117,27 +1117,27 @@ var wn = { exports: {} }, it = {};
|
|
|
1117
1117
|
* This source code is licensed under the MIT license found in the
|
|
1118
1118
|
* LICENSE file in the root directory of this source tree.
|
|
1119
1119
|
*/
|
|
1120
|
-
var
|
|
1120
|
+
var Ii = Hr, vi = Symbol.for("react.element"), Pi = Symbol.for("react.fragment"), Si = Object.prototype.hasOwnProperty, Bi = Ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, ki = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1121
1121
|
function Fn(i, e, t) {
|
|
1122
1122
|
var n, r = {}, a = null, s = null;
|
|
1123
1123
|
t !== void 0 && (a = "" + t), e.key !== void 0 && (a = "" + e.key), e.ref !== void 0 && (s = e.ref);
|
|
1124
1124
|
for (n in e)
|
|
1125
|
-
|
|
1125
|
+
Si.call(e, n) && !ki.hasOwnProperty(n) && (r[n] = e[n]);
|
|
1126
1126
|
if (i && i.defaultProps)
|
|
1127
1127
|
for (n in e = i.defaultProps, e)
|
|
1128
1128
|
r[n] === void 0 && (r[n] = e[n]);
|
|
1129
|
-
return { $$typeof:
|
|
1129
|
+
return { $$typeof: vi, type: i, key: a, ref: s, props: r, _owner: Bi.current };
|
|
1130
1130
|
}
|
|
1131
|
-
it.Fragment =
|
|
1131
|
+
it.Fragment = Pi;
|
|
1132
1132
|
it.jsx = Fn;
|
|
1133
1133
|
it.jsxs = Fn;
|
|
1134
1134
|
wn.exports = it;
|
|
1135
1135
|
var E = wn.exports;
|
|
1136
|
-
const
|
|
1137
|
-
formulaErrorFunction:
|
|
1136
|
+
const Ci = "univer-formula-error-function", _i = {
|
|
1137
|
+
formulaErrorFunction: Ci
|
|
1138
1138
|
};
|
|
1139
|
-
function
|
|
1140
|
-
const [i, e] = A(!1), [t, n] = A({ left: 0, top: 0 }), r = z(de), a = z(
|
|
1139
|
+
function Di() {
|
|
1140
|
+
const [i, e] = A(!1), [t, n] = A({ left: 0, top: 0 }), r = z(de), a = z(Tt);
|
|
1141
1141
|
return Ce(() => {
|
|
1142
1142
|
const s = r.help$.subscribe((o) => {
|
|
1143
1143
|
const c = a.getState();
|
|
@@ -1154,7 +1154,7 @@ function Ci() {
|
|
|
1154
1154
|
return () => {
|
|
1155
1155
|
s == null || s.unsubscribe();
|
|
1156
1156
|
};
|
|
1157
|
-
}, []), i ? /* @__PURE__ */ E.jsx("div", { className:
|
|
1157
|
+
}, []), i ? /* @__PURE__ */ E.jsx("div", { className: _i.formulaErrorFunction, style: { left: t.left, top: t.top } }) : null;
|
|
1158
1158
|
}
|
|
1159
1159
|
var q = function() {
|
|
1160
1160
|
return q = Object.assign || function(i) {
|
|
@@ -1165,7 +1165,7 @@ var q = function() {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
return i;
|
|
1167
1167
|
}, q.apply(this, arguments);
|
|
1168
|
-
},
|
|
1168
|
+
}, yi = function(i, e) {
|
|
1169
1169
|
var t = {};
|
|
1170
1170
|
for (var n in i)
|
|
1171
1171
|
Object.prototype.hasOwnProperty.call(i, n) && e.indexOf(n) < 0 && (t[n] = i[n]);
|
|
@@ -1174,15 +1174,15 @@ var q = function() {
|
|
|
1174
1174
|
e.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(i, n[r]) && (t[n[r]] = i[n[r]]);
|
|
1175
1175
|
return t;
|
|
1176
1176
|
}, Ne = ye(function(i, e) {
|
|
1177
|
-
var t = i.icon, n = i.id, r = i.className, a = i.extend, s =
|
|
1177
|
+
var t = i.icon, n = i.id, r = i.className, a = i.extend, s = yi(i, ["icon", "id", "className", "extend"]), o = "univerjs-icon univerjs-icon-".concat(n, " ").concat(r || "").trim(), c = $r("_".concat(Ni()));
|
|
1178
1178
|
return Ln(t, "".concat(n), { defIds: t.defIds, idSuffix: c.current }, q({ ref: e, className: o }, s), a);
|
|
1179
1179
|
});
|
|
1180
1180
|
function Ln(i, e, t, n, r) {
|
|
1181
|
-
return Te(i.tag, q(q({ key: e },
|
|
1181
|
+
return Te(i.tag, q(q({ key: e }, Ti(i, t, r)), n), (Ai(i, t).children || []).map(function(a, s) {
|
|
1182
1182
|
return Ln(a, "".concat(e, "-").concat(i.tag, "-").concat(s), t, void 0, r);
|
|
1183
1183
|
}));
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function Ti(i, e, t) {
|
|
1186
1186
|
var n = q({}, i.attrs);
|
|
1187
1187
|
t != null && t.colorChannel1 && n.fill === "colorChannel1" && (n.fill = t.colorChannel1);
|
|
1188
1188
|
var r = e.defIds;
|
|
@@ -1191,17 +1191,17 @@ function Di(i, e, t) {
|
|
|
1191
1191
|
typeof o == "string" && (n[s] = o.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
|
|
1192
1192
|
})), n;
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function Ai(i, e) {
|
|
1195
1195
|
var t, n = e.defIds;
|
|
1196
1196
|
return !n || n.length === 0 ? i : i.tag === "defs" && (!((t = i.children) === null || t === void 0) && t.length) ? q(q({}, i), { children: i.children.map(function(r) {
|
|
1197
1197
|
return typeof r.attrs.id == "string" && n && n.indexOf(r.attrs.id) > -1 ? q(q({}, r), { attrs: q(q({}, r.attrs), { id: r.attrs.id + e.idSuffix }) }) : r;
|
|
1198
1198
|
}) }) : i;
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function Ni() {
|
|
1201
1201
|
return Math.random().toString(36).substring(2, 8);
|
|
1202
1202
|
}
|
|
1203
1203
|
Ne.displayName = "UniverIcon";
|
|
1204
|
-
var
|
|
1204
|
+
var Mi = {
|
|
1205
1205
|
tag: "svg",
|
|
1206
1206
|
attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" },
|
|
1207
1207
|
children: [
|
|
@@ -1219,12 +1219,12 @@ var Ai = {
|
|
|
1219
1219
|
return Te(Ne, Object.assign({}, i, {
|
|
1220
1220
|
id: "check-mark-single",
|
|
1221
1221
|
ref: e,
|
|
1222
|
-
icon:
|
|
1222
|
+
icon: Mi
|
|
1223
1223
|
}));
|
|
1224
1224
|
});
|
|
1225
1225
|
zn.displayName = "CheckMarkSingle";
|
|
1226
|
-
const
|
|
1227
|
-
var
|
|
1226
|
+
const Oi = zn;
|
|
1227
|
+
var xi = {
|
|
1228
1228
|
tag: "svg",
|
|
1229
1229
|
attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" },
|
|
1230
1230
|
children: [
|
|
@@ -1240,12 +1240,12 @@ var Mi = {
|
|
|
1240
1240
|
return Te(Ne, Object.assign({}, i, {
|
|
1241
1241
|
id: "close-single",
|
|
1242
1242
|
ref: e,
|
|
1243
|
-
icon:
|
|
1243
|
+
icon: xi
|
|
1244
1244
|
}));
|
|
1245
1245
|
});
|
|
1246
1246
|
Un.displayName = "CloseSingle";
|
|
1247
|
-
const
|
|
1248
|
-
var
|
|
1247
|
+
const wi = Un;
|
|
1248
|
+
var Fi = {
|
|
1249
1249
|
tag: "svg",
|
|
1250
1250
|
attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" },
|
|
1251
1251
|
children: [
|
|
@@ -1292,12 +1292,12 @@ var xi = {
|
|
|
1292
1292
|
return Te(Ne, Object.assign({}, i, {
|
|
1293
1293
|
id: "details-single",
|
|
1294
1294
|
ref: e,
|
|
1295
|
-
icon:
|
|
1295
|
+
icon: Fi
|
|
1296
1296
|
}));
|
|
1297
1297
|
});
|
|
1298
1298
|
Vn.displayName = "DetailsSingle";
|
|
1299
|
-
const
|
|
1300
|
-
var
|
|
1299
|
+
const Li = Vn;
|
|
1300
|
+
var zi = {
|
|
1301
1301
|
tag: "svg",
|
|
1302
1302
|
attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" },
|
|
1303
1303
|
children: [
|
|
@@ -1315,25 +1315,25 @@ var Fi = {
|
|
|
1315
1315
|
return Te(Ne, Object.assign({}, i, {
|
|
1316
1316
|
id: "more-single",
|
|
1317
1317
|
ref: e,
|
|
1318
|
-
icon:
|
|
1318
|
+
icon: zi
|
|
1319
1319
|
}));
|
|
1320
1320
|
});
|
|
1321
1321
|
qn.displayName = "MoreSingle";
|
|
1322
|
-
const
|
|
1323
|
-
formulaHelpFunction:
|
|
1324
|
-
formulaHelpFunctionTitle:
|
|
1325
|
-
formulaHelpFunctionTitleIcons:
|
|
1326
|
-
formulaHelpFunctionTitleIcon:
|
|
1327
|
-
formulaHelpFunctionContent:
|
|
1328
|
-
formulaHelpFunctionContentInner:
|
|
1329
|
-
formulaHelpFunctionContentParams:
|
|
1330
|
-
formulaHelpFunctionContentParamsTitle:
|
|
1331
|
-
formulaHelpFunctionContentParamsDetail:
|
|
1332
|
-
formulaHelpFunctionActive:
|
|
1333
|
-
formulaHelpDecorator:
|
|
1322
|
+
const Ui = qn, Vi = "univer-formula-help-function", qi = "univer-formula-help-function-title", Hi = "univer-formula-help-function-title-icons", $i = "univer-formula-help-function-title-icon", ji = "univer-formula-help-function-content", Wi = "univer-formula-help-function-content-inner", Gi = "univer-formula-help-function-content-params", Xi = "univer-formula-help-function-content-params-title", Ki = "univer-formula-help-function-content-params-detail", Yi = "univer-formula-help-function-active", Qi = "univer-formula-help-decorator", V = {
|
|
1323
|
+
formulaHelpFunction: Vi,
|
|
1324
|
+
formulaHelpFunctionTitle: qi,
|
|
1325
|
+
formulaHelpFunctionTitleIcons: Hi,
|
|
1326
|
+
formulaHelpFunctionTitleIcon: $i,
|
|
1327
|
+
formulaHelpFunctionContent: ji,
|
|
1328
|
+
formulaHelpFunctionContentInner: Wi,
|
|
1329
|
+
formulaHelpFunctionContentParams: Gi,
|
|
1330
|
+
formulaHelpFunctionContentParamsTitle: Xi,
|
|
1331
|
+
formulaHelpFunctionContentParamsDetail: Ki,
|
|
1332
|
+
formulaHelpFunctionActive: Yi,
|
|
1333
|
+
formulaHelpDecorator: Qi
|
|
1334
1334
|
};
|
|
1335
|
-
function
|
|
1336
|
-
const [i, e] = A(!1), [t, n] = A(!0), [r, a] = A(!0), [s, o] = A(0), [c, u] = A([0, 0]), [l, d] = A({ left: 0, top: 0 }), [m, b] = A(null), h = z(de), I = z(
|
|
1335
|
+
function Ji() {
|
|
1336
|
+
const [i, e] = A(!1), [t, n] = A(!0), [r, a] = A(!0), [s, o] = A(0), [c, u] = A([0, 0]), [l, d] = A({ left: 0, top: 0 }), [m, b] = A(null), h = z(de), I = z(Tt), f = z(_e), R = z(kn), p = z(kt), g = f.t("formula.prompt.required"), C = f.t("formula.prompt.optional");
|
|
1337
1337
|
Ce(() => {
|
|
1338
1338
|
const v = h.help$.subscribe((P) => {
|
|
1339
1339
|
const { visible: _, paramIndex: N, functionInfo: B } = P;
|
|
@@ -1369,7 +1369,7 @@ function Yi() {
|
|
|
1369
1369
|
return /* @__PURE__ */ E.jsx(E.Fragment, { children: r ? /* @__PURE__ */ E.jsx(yn, { visible: i, offset: c, children: m ? /* @__PURE__ */ E.jsxs("div", { className: V.formulaHelpFunction, children: [
|
|
1370
1370
|
/* @__PURE__ */ E.jsxs("div", { className: V.formulaHelpFunctionTitle, children: [
|
|
1371
1371
|
/* @__PURE__ */ E.jsx(
|
|
1372
|
-
|
|
1372
|
+
Zi,
|
|
1373
1373
|
{
|
|
1374
1374
|
prefix: m.functionName,
|
|
1375
1375
|
value: m.functionParameter,
|
|
@@ -1384,7 +1384,7 @@ function Yi() {
|
|
|
1384
1384
|
className: V.formulaHelpFunctionTitleIcon,
|
|
1385
1385
|
style: { transform: t ? "rotateZ(-90deg)" : "rotateZ(90deg)" },
|
|
1386
1386
|
onClick: () => n(!t),
|
|
1387
|
-
children: /* @__PURE__ */ E.jsx(
|
|
1387
|
+
children: /* @__PURE__ */ E.jsx(Ui, {})
|
|
1388
1388
|
}
|
|
1389
1389
|
),
|
|
1390
1390
|
/* @__PURE__ */ E.jsx(
|
|
@@ -1392,7 +1392,7 @@ function Yi() {
|
|
|
1392
1392
|
{
|
|
1393
1393
|
className: V.formulaHelpFunctionTitleIcon,
|
|
1394
1394
|
onClick: () => a(!r),
|
|
1395
|
-
children: /* @__PURE__ */ E.jsx(
|
|
1395
|
+
children: /* @__PURE__ */ E.jsx(wi, {})
|
|
1396
1396
|
}
|
|
1397
1397
|
)
|
|
1398
1398
|
] })
|
|
@@ -1407,21 +1407,21 @@ function Yi() {
|
|
|
1407
1407
|
},
|
|
1408
1408
|
children: /* @__PURE__ */ E.jsxs("div", { className: V.formulaHelpFunctionContentInner, children: [
|
|
1409
1409
|
/* @__PURE__ */ E.jsx(
|
|
1410
|
-
|
|
1410
|
+
lt,
|
|
1411
1411
|
{
|
|
1412
1412
|
title: f.t("formula.prompt.helpExample"),
|
|
1413
1413
|
value: `${m.functionName}(${m.functionParameter.map((v) => v.example).join(",")})`
|
|
1414
1414
|
}
|
|
1415
1415
|
),
|
|
1416
1416
|
/* @__PURE__ */ E.jsx(
|
|
1417
|
-
|
|
1417
|
+
lt,
|
|
1418
1418
|
{
|
|
1419
1419
|
title: f.t("formula.prompt.helpAbstract"),
|
|
1420
1420
|
value: m.description
|
|
1421
1421
|
}
|
|
1422
1422
|
),
|
|
1423
1423
|
m && m.functionParameter && m.functionParameter.map((v, P) => /* @__PURE__ */ E.jsx(
|
|
1424
|
-
|
|
1424
|
+
lt,
|
|
1425
1425
|
{
|
|
1426
1426
|
className: s === P ? V.formulaHelpFunctionActive : "",
|
|
1427
1427
|
title: v.name,
|
|
@@ -1438,14 +1438,14 @@ function Yi() {
|
|
|
1438
1438
|
className: V.formulaHelpDecorator,
|
|
1439
1439
|
onClick: () => a(!r),
|
|
1440
1440
|
style: { left: l.left - 24, top: l.top },
|
|
1441
|
-
children: /* @__PURE__ */ E.jsx(
|
|
1441
|
+
children: /* @__PURE__ */ E.jsx(Li, {})
|
|
1442
1442
|
}
|
|
1443
1443
|
) : /* @__PURE__ */ E.jsx(E.Fragment, {}) });
|
|
1444
1444
|
}
|
|
1445
|
-
const
|
|
1445
|
+
const lt = (i) => /* @__PURE__ */ E.jsxs("div", { className: V.formulaHelpFunctionContentParams, children: [
|
|
1446
1446
|
/* @__PURE__ */ E.jsx("div", { className: `${V.formulaHelpFunctionContentParamsTitle} ${i.className}`, children: i.title }),
|
|
1447
1447
|
/* @__PURE__ */ E.jsx("div", { className: V.formulaHelpFunctionContentParamsDetail, children: i.value })
|
|
1448
|
-
] }),
|
|
1448
|
+
] }), Zi = (i) => {
|
|
1449
1449
|
const { prefix: e, value: t, active: n, onClick: r } = i;
|
|
1450
1450
|
return /* @__PURE__ */ E.jsxs("div", { children: [
|
|
1451
1451
|
/* @__PURE__ */ E.jsxs("span", { children: [
|
|
@@ -1468,16 +1468,16 @@ const mt = (i) => /* @__PURE__ */ E.jsxs("div", { className: V.formulaHelpFuncti
|
|
|
1468
1468
|
)),
|
|
1469
1469
|
")"
|
|
1470
1470
|
] });
|
|
1471
|
-
},
|
|
1472
|
-
formulaSearchFunction:
|
|
1473
|
-
formulaSearchFunctionItem:
|
|
1474
|
-
formulaSearchFunctionItemName:
|
|
1475
|
-
formulaSearchFunctionItemNameLight:
|
|
1476
|
-
formulaSearchFunctionItemDesc:
|
|
1477
|
-
formulaSearchFunctionItemActive:
|
|
1471
|
+
}, ea = "univer-formula-search-function", ta = "univer-formula-search-function-item", na = "univer-formula-search-function-item-name", ra = "univer-formula-search-function-item-name-light", ia = "univer-formula-search-function-item-desc", aa = "univer-formula-search-function-item-active", fe = {
|
|
1472
|
+
formulaSearchFunction: ea,
|
|
1473
|
+
formulaSearchFunctionItem: ta,
|
|
1474
|
+
formulaSearchFunctionItemName: na,
|
|
1475
|
+
formulaSearchFunctionItemNameLight: ra,
|
|
1476
|
+
formulaSearchFunctionItemDesc: ia,
|
|
1477
|
+
formulaSearchFunctionItemActive: aa
|
|
1478
1478
|
};
|
|
1479
|
-
function
|
|
1480
|
-
const [i, e] = A(!1), [t, n] = A(0), [r, a] = A([0, 0]), [s, o] = A([]), [c, u] = A(""), l = z(de), d = z(
|
|
1479
|
+
function sa() {
|
|
1480
|
+
const [i, e] = A(!1), [t, n] = A(0), [r, a] = A([0, 0]), [s, o] = A([]), [c, u] = A(""), l = z(de), d = z(Tt), m = z(kn), b = z(kt);
|
|
1481
1481
|
Ce(() => {
|
|
1482
1482
|
let f = [], R = 0;
|
|
1483
1483
|
const p = l.search$.subscribe((S) => {
|
|
@@ -1532,16 +1532,16 @@ function ia() {
|
|
|
1532
1532
|
R
|
|
1533
1533
|
)) }) });
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function oa() {
|
|
1536
1536
|
return /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
1537
|
-
/* @__PURE__ */ E.jsx(
|
|
1538
|
-
/* @__PURE__ */ E.jsx(
|
|
1539
|
-
/* @__PURE__ */ E.jsx(
|
|
1537
|
+
/* @__PURE__ */ E.jsx(sa, {}),
|
|
1538
|
+
/* @__PURE__ */ E.jsx(Ji, {}),
|
|
1539
|
+
/* @__PURE__ */ E.jsx(Di, {})
|
|
1540
1540
|
] });
|
|
1541
1541
|
}
|
|
1542
|
-
const
|
|
1543
|
-
formulaMoreFunctions:
|
|
1544
|
-
formulaMoreFunctionsOperation:
|
|
1542
|
+
const ca = "univer-formula-more-functions", ua = "univer-formula-more-functions-operation", Zt = {
|
|
1543
|
+
formulaMoreFunctions: ca,
|
|
1544
|
+
formulaMoreFunctionsOperation: ua
|
|
1545
1545
|
};
|
|
1546
1546
|
function Hn(i) {
|
|
1547
1547
|
const { prefix: e, value: t } = i;
|
|
@@ -1557,24 +1557,24 @@ function Hn(i) {
|
|
|
1557
1557
|
")"
|
|
1558
1558
|
] });
|
|
1559
1559
|
}
|
|
1560
|
-
const
|
|
1561
|
-
formulaFunctionParams:
|
|
1562
|
-
formulaFunctionParamsTitle:
|
|
1563
|
-
formulaFunctionParamsDetail:
|
|
1560
|
+
const ma = "univer-formula-function-params", fa = "univer-formula-function-params-title", la = "univer-formula-function-params-detail", dt = {
|
|
1561
|
+
formulaFunctionParams: ma,
|
|
1562
|
+
formulaFunctionParamsTitle: fa,
|
|
1563
|
+
formulaFunctionParamsDetail: la
|
|
1564
1564
|
};
|
|
1565
1565
|
function ke(i) {
|
|
1566
1566
|
const { className: e, value: t, title: n } = i;
|
|
1567
|
-
return /* @__PURE__ */ E.jsxs("div", { className:
|
|
1568
|
-
/* @__PURE__ */ E.jsx("div", { className: `${
|
|
1569
|
-
/* @__PURE__ */ E.jsx("div", { className:
|
|
1567
|
+
return /* @__PURE__ */ E.jsxs("div", { className: dt.formulaFunctionParams, children: [
|
|
1568
|
+
/* @__PURE__ */ E.jsx("div", { className: `${dt.formulaFunctionParamsTitle} ${e}`, children: n }),
|
|
1569
|
+
/* @__PURE__ */ E.jsx("div", { className: dt.formulaFunctionParamsDetail, children: t })
|
|
1570
1570
|
] });
|
|
1571
1571
|
}
|
|
1572
|
-
const
|
|
1573
|
-
formulaInputParamsList:
|
|
1574
|
-
formulaInputParamsListItemName:
|
|
1575
|
-
formulaInputParamsListItemSelector:
|
|
1572
|
+
const da = "univer-formula-input-params-list", ba = "univer-formula-input-params-list-item-name", pa = "univer-formula-input-params-list-item-selector", Se = {
|
|
1573
|
+
formulaInputParamsList: da,
|
|
1574
|
+
formulaInputParamsListItemName: ba,
|
|
1575
|
+
formulaInputParamsListItemSelector: pa
|
|
1576
1576
|
};
|
|
1577
|
-
function
|
|
1577
|
+
function ha(i) {
|
|
1578
1578
|
const { functionInfo: e, onChange: t } = i;
|
|
1579
1579
|
if (!e)
|
|
1580
1580
|
return null;
|
|
@@ -1594,7 +1594,7 @@ function ba(i) {
|
|
|
1594
1594
|
/* @__PURE__ */ E.jsx("div", { className: Se.formulaInputParamsList, children: a.map((d, m) => /* @__PURE__ */ E.jsxs("div", { children: [
|
|
1595
1595
|
/* @__PURE__ */ E.jsx("div", { className: Se.formulaInputParamsListItemName, children: d.name }),
|
|
1596
1596
|
/* @__PURE__ */ E.jsx("div", { className: Se.formulaInputParamsListItemSelector, children: /* @__PURE__ */ E.jsx(
|
|
1597
|
-
|
|
1597
|
+
Dr,
|
|
1598
1598
|
{
|
|
1599
1599
|
onChange: (b) => u(b, m),
|
|
1600
1600
|
onActive: () => l(m)
|
|
@@ -1610,7 +1610,7 @@ function ba(i) {
|
|
|
1610
1610
|
) })
|
|
1611
1611
|
] });
|
|
1612
1612
|
}
|
|
1613
|
-
const
|
|
1613
|
+
const Ea = [], Ra = [], ga = [], Ia = [], va = [], Pa = [], Sa = [], Ba = [], ka = [], Ca = [], _a = [
|
|
1614
1614
|
{
|
|
1615
1615
|
functionName: zt.SUM,
|
|
1616
1616
|
aliasFunctionName: "formula.functionList.SUM.aliasFunctionName",
|
|
@@ -1664,7 +1664,7 @@ const pa = [], ha = [], Ea = [], Ra = [], ga = [], Ia = [], va = [], Pa = [], Sa
|
|
|
1664
1664
|
}
|
|
1665
1665
|
]
|
|
1666
1666
|
}
|
|
1667
|
-
],
|
|
1667
|
+
], Da = [
|
|
1668
1668
|
{
|
|
1669
1669
|
functionName: Pe.AVERAGE,
|
|
1670
1670
|
aliasFunctionName: "formula.functionList.AVERAGE.aliasFunctionName",
|
|
@@ -1780,40 +1780,40 @@ const pa = [], ha = [], Ea = [], Ra = [], ga = [], Ia = [], va = [], Pa = [], Sa
|
|
|
1780
1780
|
}
|
|
1781
1781
|
]
|
|
1782
1782
|
}
|
|
1783
|
-
],
|
|
1783
|
+
], ya = [], Ta = [], Aa = [], Na = [
|
|
1784
|
+
...Sa,
|
|
1784
1785
|
...va,
|
|
1785
|
-
...
|
|
1786
|
-
...
|
|
1786
|
+
..._a,
|
|
1787
|
+
...Da,
|
|
1787
1788
|
...Ca,
|
|
1789
|
+
...Ia,
|
|
1790
|
+
...ya,
|
|
1791
|
+
...ka,
|
|
1788
1792
|
...Ba,
|
|
1789
|
-
...Ra,
|
|
1790
|
-
..._a,
|
|
1791
|
-
...Sa,
|
|
1792
1793
|
...Pa,
|
|
1793
|
-
...
|
|
1794
|
+
...ga,
|
|
1795
|
+
...Ra,
|
|
1796
|
+
...Aa,
|
|
1794
1797
|
...Ea,
|
|
1795
|
-
...
|
|
1796
|
-
...ya,
|
|
1797
|
-
...pa,
|
|
1798
|
-
...Da
|
|
1798
|
+
...Ta
|
|
1799
1799
|
];
|
|
1800
|
-
function
|
|
1800
|
+
function Ma(i, e) {
|
|
1801
1801
|
return Object.keys(i).filter((t) => isNaN(Number(t))).map((t) => ({
|
|
1802
1802
|
label: e.t(`formula.functionType.${t.toLocaleLowerCase()}`),
|
|
1803
1803
|
value: `${i[t]}`
|
|
1804
1804
|
}));
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function Oa(i, e) {
|
|
1807
1807
|
let t = "";
|
|
1808
1808
|
return i.aliasFunctionName ? (t = e.t(i.aliasFunctionName), t === i.aliasFunctionName && (t = i.functionName)) : t = i.functionName, t;
|
|
1809
1809
|
}
|
|
1810
|
-
var
|
|
1811
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
1810
|
+
var xa = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, Fa = (i, e, t, n) => {
|
|
1811
|
+
for (var r = n > 1 ? void 0 : n ? wa(e, t) : e, a = i.length - 1, s; a >= 0; a--)
|
|
1812
1812
|
(s = i[a]) && (r = (n ? s(e, t, r) : s(r)) || r);
|
|
1813
|
-
return n && r &&
|
|
1813
|
+
return n && r && xa(e, t, r), r;
|
|
1814
1814
|
}, en = (i, e) => (t, n) => e(t, n, i);
|
|
1815
|
-
const
|
|
1816
|
-
let
|
|
1815
|
+
const wt = Ze("formula-ui.description-service");
|
|
1816
|
+
let Bt = class {
|
|
1817
1817
|
constructor(i, e, t) {
|
|
1818
1818
|
this._description = i, this._functionService = e, this._localeService = t, this._initialize(), this._registerDescription();
|
|
1819
1819
|
}
|
|
@@ -1849,8 +1849,8 @@ let Pt = class {
|
|
|
1849
1849
|
});
|
|
1850
1850
|
}
|
|
1851
1851
|
_registerDescription() {
|
|
1852
|
-
const i = this._localeService, t =
|
|
1853
|
-
functionName:
|
|
1852
|
+
const i = this._localeService, t = Na.concat(this._description || []).map((n) => ({
|
|
1853
|
+
functionName: Oa(n, i),
|
|
1854
1854
|
functionType: n.functionType,
|
|
1855
1855
|
description: i.t(n.description),
|
|
1856
1856
|
abstract: i.t(n.abstract),
|
|
@@ -1865,21 +1865,21 @@ let Pt = class {
|
|
|
1865
1865
|
this._functionService.registerDescriptions(...t);
|
|
1866
1866
|
}
|
|
1867
1867
|
};
|
|
1868
|
-
|
|
1869
|
-
en(1,
|
|
1868
|
+
Bt = Fa([
|
|
1869
|
+
en(1, nr),
|
|
1870
1870
|
en(2, y(_e))
|
|
1871
|
-
],
|
|
1872
|
-
const
|
|
1873
|
-
formulaSelectFunctionSelect:
|
|
1874
|
-
formulaSelectFunctionResult:
|
|
1875
|
-
formulaSelectFunctionResultItem:
|
|
1876
|
-
formulaSelectFunctionResultItemNameLight:
|
|
1877
|
-
formulaSelectFunctionResultItemSelected:
|
|
1878
|
-
formulaSelectFunctionResultItemActive:
|
|
1879
|
-
formulaSelectFunctionContent:
|
|
1871
|
+
], Bt);
|
|
1872
|
+
const La = "univer-formula-select-function-select", za = "univer-formula-select-function-result", Ua = "univer-formula-select-function-result-item", Va = "univer-formula-select-function-result-item-name-light", qa = "univer-formula-select-function-result-item-selected", Ha = "univer-formula-select-function-result-item-active", $a = "univer-formula-select-function-content", te = {
|
|
1873
|
+
formulaSelectFunctionSelect: La,
|
|
1874
|
+
formulaSelectFunctionResult: za,
|
|
1875
|
+
formulaSelectFunctionResultItem: Ua,
|
|
1876
|
+
formulaSelectFunctionResultItemNameLight: Va,
|
|
1877
|
+
formulaSelectFunctionResultItemSelected: qa,
|
|
1878
|
+
formulaSelectFunctionResultItemActive: Ha,
|
|
1879
|
+
formulaSelectFunctionContent: $a
|
|
1880
1880
|
};
|
|
1881
|
-
function
|
|
1882
|
-
const { onChange: e } = i, t = "-1", [n, r] = A(""), [a, s] = A([]), [o, c] = A(0), [u, l] = A(t), [d, m] = A(0), [b, h] = A(null), I = z(
|
|
1881
|
+
function ja(i) {
|
|
1882
|
+
const { onChange: e } = i, t = "-1", [n, r] = A(""), [a, s] = A([]), [o, c] = A(0), [u, l] = A(t), [d, m] = A(0), [b, h] = A(null), I = z(wt), f = z(_e), R = Ma(ne, f);
|
|
1883
1883
|
R.unshift({
|
|
1884
1884
|
label: f.t("formula.moreFunctions.allFunctions"),
|
|
1885
1885
|
value: t
|
|
@@ -1935,9 +1935,9 @@ function Ha(i) {
|
|
|
1935
1935
|
};
|
|
1936
1936
|
return /* @__PURE__ */ E.jsxs("div", { children: [
|
|
1937
1937
|
/* @__PURE__ */ E.jsxs("div", { className: te.formulaSelectFunctionSelect, children: [
|
|
1938
|
-
/* @__PURE__ */ E.jsx(
|
|
1938
|
+
/* @__PURE__ */ E.jsx(jr, { value: u, options: R, onChange: v }),
|
|
1939
1939
|
/* @__PURE__ */ E.jsx(
|
|
1940
|
-
|
|
1940
|
+
Wr,
|
|
1941
1941
|
{
|
|
1942
1942
|
placeholder: f.t("formula.moreFunctions.searchFunctionPlaceholder"),
|
|
1943
1943
|
onKeyDown: _,
|
|
@@ -1956,7 +1956,7 @@ function Ha(i) {
|
|
|
1956
1956
|
onMouseLeave: B,
|
|
1957
1957
|
onClick: () => S(D),
|
|
1958
1958
|
children: [
|
|
1959
|
-
d === D && /* @__PURE__ */ E.jsx(
|
|
1959
|
+
d === D && /* @__PURE__ */ E.jsx(Oi, { className: te.formulaSelectFunctionResultItemSelected }),
|
|
1960
1960
|
/* @__PURE__ */ E.jsx("span", { className: te.formulaSelectFunctionResultItemName, children: C(T) })
|
|
1961
1961
|
]
|
|
1962
1962
|
},
|
|
@@ -1989,7 +1989,7 @@ function Ha(i) {
|
|
|
1989
1989
|
] })
|
|
1990
1990
|
] });
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1992
|
+
function Wa() {
|
|
1993
1993
|
const [i, e] = A(!0), [t, n] = A(!1), [r, a] = A([]), [s, o] = A(null), c = z(_e);
|
|
1994
1994
|
z(Dn);
|
|
1995
1995
|
const u = z(Ae);
|
|
@@ -2000,23 +2000,23 @@ function $a() {
|
|
|
2000
2000
|
u.inputFormula(`=${s == null ? void 0 : s.functionName}(`);
|
|
2001
2001
|
}
|
|
2002
2002
|
return /* @__PURE__ */ E.jsxs("div", { className: Zt.formulaMoreFunctions, children: [
|
|
2003
|
-
i && /* @__PURE__ */ E.jsx(
|
|
2004
|
-
t && /* @__PURE__ */ E.jsx(
|
|
2003
|
+
i && /* @__PURE__ */ E.jsx(ja, { onChange: o }),
|
|
2004
|
+
t && /* @__PURE__ */ E.jsx(ha, { functionInfo: s, onChange: a }),
|
|
2005
2005
|
/* @__PURE__ */ E.jsxs("div", { className: Zt.formulaMoreFunctionsOperation, children: [
|
|
2006
|
-
t && /* @__PURE__ */ E.jsx(
|
|
2007
|
-
t && /* @__PURE__ */ E.jsx(
|
|
2008
|
-
i && /* @__PURE__ */ E.jsx(
|
|
2006
|
+
t && /* @__PURE__ */ E.jsx(ut, { type: "primary", size: "small", onClick: l, children: c.t("formula.moreFunctions.next") }),
|
|
2007
|
+
t && /* @__PURE__ */ E.jsx(ut, { size: "small", onClick: l, children: c.t("formula.moreFunctions.prev") }),
|
|
2008
|
+
i && /* @__PURE__ */ E.jsx(ut, { type: "primary", size: "small", onClick: d, children: c.t("formula.moreFunctions.confirm") })
|
|
2009
2009
|
] })
|
|
2010
2010
|
] });
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2012
|
+
function Ga(i) {
|
|
2013
2013
|
return {
|
|
2014
|
-
id:
|
|
2014
|
+
id: xt.id,
|
|
2015
2015
|
icon: "FunctionSingle",
|
|
2016
2016
|
tooltip: "formula.insert.tooltip",
|
|
2017
|
-
group:
|
|
2018
|
-
type:
|
|
2019
|
-
positions: [
|
|
2017
|
+
group: xr.TOOLBAR_FORMULAS_INSERT,
|
|
2018
|
+
type: Nt.SELECTOR,
|
|
2019
|
+
positions: [wr.TOOLBAR_START],
|
|
2020
2020
|
selections: [
|
|
2021
2021
|
{
|
|
2022
2022
|
label: "SUM",
|
|
@@ -2043,23 +2043,24 @@ function ja(i) {
|
|
|
2043
2043
|
value: "MIN",
|
|
2044
2044
|
icon: "MinSingle"
|
|
2045
2045
|
}
|
|
2046
|
-
]
|
|
2046
|
+
],
|
|
2047
|
+
hidden$: Fr(i, Qn.SHEET)
|
|
2047
2048
|
};
|
|
2048
2049
|
}
|
|
2049
|
-
function
|
|
2050
|
+
function Xa(i) {
|
|
2050
2051
|
return {
|
|
2051
2052
|
id: xn.id,
|
|
2052
2053
|
title: "formula.insert.more",
|
|
2053
|
-
positions:
|
|
2054
|
-
type:
|
|
2054
|
+
positions: xt.id,
|
|
2055
|
+
type: Nt.BUTTON
|
|
2055
2056
|
};
|
|
2056
2057
|
}
|
|
2057
|
-
function
|
|
2058
|
+
function Ka(i) {
|
|
2058
2059
|
return {
|
|
2059
2060
|
id: Nn.id,
|
|
2060
|
-
type:
|
|
2061
|
+
type: Nt.BUTTON,
|
|
2061
2062
|
title: "formula.operation.pasteFormula",
|
|
2062
|
-
positions: [
|
|
2063
|
+
positions: [yr]
|
|
2063
2064
|
};
|
|
2064
2065
|
}
|
|
2065
2066
|
const $n = "meta_key_ctrl_And_Shift", at = [
|
|
@@ -2067,10 +2068,10 @@ const $n = "meta_key_ctrl_And_Shift", at = [
|
|
|
2067
2068
|
O.ARROW_UP,
|
|
2068
2069
|
O.ARROW_LEFT,
|
|
2069
2070
|
O.ARROW_RIGHT
|
|
2070
|
-
],
|
|
2071
|
-
function
|
|
2071
|
+
], Ya = [...at, O.ENTER, O.TAB];
|
|
2072
|
+
function Qa() {
|
|
2072
2073
|
const i = [];
|
|
2073
|
-
for (const e of
|
|
2074
|
+
for (const e of Ya)
|
|
2074
2075
|
i.push({
|
|
2075
2076
|
id: ve.id,
|
|
2076
2077
|
binding: e,
|
|
@@ -2082,7 +2083,7 @@ function Ka() {
|
|
|
2082
2083
|
});
|
|
2083
2084
|
return i;
|
|
2084
2085
|
}
|
|
2085
|
-
function
|
|
2086
|
+
function Ja() {
|
|
2086
2087
|
const i = [];
|
|
2087
2088
|
for (const e of at)
|
|
2088
2089
|
i.push({
|
|
@@ -2097,7 +2098,7 @@ function Ya() {
|
|
|
2097
2098
|
});
|
|
2098
2099
|
return i;
|
|
2099
2100
|
}
|
|
2100
|
-
function
|
|
2101
|
+
function Za() {
|
|
2101
2102
|
const i = [];
|
|
2102
2103
|
for (const e of at)
|
|
2103
2104
|
i.push({
|
|
@@ -2112,7 +2113,7 @@ function Qa() {
|
|
|
2112
2113
|
});
|
|
2113
2114
|
return i;
|
|
2114
2115
|
}
|
|
2115
|
-
function
|
|
2116
|
+
function es() {
|
|
2116
2117
|
const i = [];
|
|
2117
2118
|
for (const e of at)
|
|
2118
2119
|
i.push({
|
|
@@ -2127,15 +2128,15 @@ function Ja() {
|
|
|
2127
2128
|
});
|
|
2128
2129
|
return i;
|
|
2129
2130
|
}
|
|
2130
|
-
const
|
|
2131
|
-
id:
|
|
2131
|
+
const ts = {
|
|
2132
|
+
id: Ot.id,
|
|
2132
2133
|
binding: O.F4,
|
|
2133
2134
|
preconditions: (i) => De(i)
|
|
2134
2135
|
};
|
|
2135
|
-
var
|
|
2136
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
2136
|
+
var ns = Object.defineProperty, rs = Object.getOwnPropertyDescriptor, is = (i, e, t, n) => {
|
|
2137
|
+
for (var r = n > 1 ? void 0 : n ? rs(e, t) : e, a = i.length - 1, s; a >= 0; a--)
|
|
2137
2138
|
(s = i[a]) && (r = (n ? s(e, t, r) : s(r)) || r);
|
|
2138
|
-
return n && r &&
|
|
2139
|
+
return n && r && ns(e, t, r), r;
|
|
2139
2140
|
}, pe = (i, e) => (t, n) => e(t, n, i);
|
|
2140
2141
|
let Xe = class extends H {
|
|
2141
2142
|
constructor(i, e, t, n, r, a) {
|
|
@@ -2145,7 +2146,7 @@ let Xe = class extends H {
|
|
|
2145
2146
|
this._registerCommands(), this._registerMenus(), this._registerShortcuts(), this._registerComponents();
|
|
2146
2147
|
}
|
|
2147
2148
|
_registerMenus() {
|
|
2148
|
-
[
|
|
2149
|
+
[Ga, Xa, Ka].forEach(
|
|
2149
2150
|
(i) => {
|
|
2150
2151
|
this.disposeWithMe(this._menuService.addMenuItem(this._injector.invoke(i)));
|
|
2151
2152
|
}
|
|
@@ -2155,21 +2156,21 @@ let Xe = class extends H {
|
|
|
2155
2156
|
[
|
|
2156
2157
|
Mn,
|
|
2157
2158
|
Nn,
|
|
2158
|
-
|
|
2159
|
+
xt,
|
|
2159
2160
|
xn,
|
|
2160
|
-
|
|
2161
|
-
|
|
2161
|
+
St,
|
|
2162
|
+
Pt,
|
|
2162
2163
|
ve,
|
|
2163
|
-
|
|
2164
|
+
Ot
|
|
2164
2165
|
].forEach((i) => this.disposeWithMe(this._commandService.registerCommand(i)));
|
|
2165
2166
|
}
|
|
2166
2167
|
_registerShortcuts() {
|
|
2167
2168
|
[
|
|
2168
|
-
...Ka(),
|
|
2169
|
-
...Ya(),
|
|
2170
2169
|
...Qa(),
|
|
2171
2170
|
...Ja(),
|
|
2172
|
-
Za
|
|
2171
|
+
...Za(),
|
|
2172
|
+
...es(),
|
|
2173
|
+
ts
|
|
2173
2174
|
].forEach((i) => {
|
|
2174
2175
|
this.disposeWithMe(this._shortcutService.registerShortcut(i));
|
|
2175
2176
|
});
|
|
@@ -2177,26 +2178,26 @@ let Xe = class extends H {
|
|
|
2177
2178
|
_registerComponents() {
|
|
2178
2179
|
this.disposeWithMe(
|
|
2179
2180
|
this._uiController.registerContentComponent(
|
|
2180
|
-
() =>
|
|
2181
|
+
() => qr(oa, this._injector)
|
|
2181
2182
|
)
|
|
2182
|
-
), this._componentManager.register(On,
|
|
2183
|
+
), this._componentManager.register(On, Wa);
|
|
2183
2184
|
}
|
|
2184
2185
|
};
|
|
2185
|
-
Xe =
|
|
2186
|
+
Xe = is([
|
|
2186
2187
|
K(Y.Ready, Xe),
|
|
2187
2188
|
pe(0, y(et)),
|
|
2188
|
-
pe(1,
|
|
2189
|
+
pe(1, zr),
|
|
2189
2190
|
pe(2, Q),
|
|
2190
|
-
pe(3,
|
|
2191
|
-
pe(4,
|
|
2192
|
-
pe(5, y(
|
|
2191
|
+
pe(3, Ur),
|
|
2192
|
+
pe(4, Vr),
|
|
2193
|
+
pe(5, y(Lr))
|
|
2193
2194
|
], Xe);
|
|
2194
2195
|
const tn = "formula_reference_selection_plugin_name";
|
|
2195
|
-
function
|
|
2196
|
+
function bt(i, e, t) {
|
|
2196
2197
|
const n = i.getCurrentTheme(), r = new an(e).setAlpha(0.05).toRgbString();
|
|
2197
2198
|
return {
|
|
2198
2199
|
id: t,
|
|
2199
|
-
strokeWidth: 1,
|
|
2200
|
+
strokeWidth: 1.5,
|
|
2200
2201
|
stroke: e,
|
|
2201
2202
|
// strokeDash: 10,
|
|
2202
2203
|
fill: r,
|
|
@@ -2209,10 +2210,10 @@ function lt(i, e, t) {
|
|
|
2209
2210
|
hasColumnHeader: !1
|
|
2210
2211
|
};
|
|
2211
2212
|
}
|
|
2212
|
-
var
|
|
2213
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
2213
|
+
var as = Object.defineProperty, ss = Object.getOwnPropertyDescriptor, os = (i, e, t, n) => {
|
|
2214
|
+
for (var r = n > 1 ? void 0 : n ? ss(e, t) : e, a = i.length - 1, s; a >= 0; a--)
|
|
2214
2215
|
(s = i[a]) && (r = (n ? s(e, t, r) : s(r)) || r);
|
|
2215
|
-
return n && r &&
|
|
2216
|
+
return n && r && as(e, t, r), r;
|
|
2216
2217
|
}, L = (i, e) => (t, n) => e(t, n, i);
|
|
2217
2218
|
let Ke = class extends H {
|
|
2218
2219
|
constructor(e, t, n, r, a, s, o, c, u, l, d, m, b, h, I, f) {
|
|
@@ -2261,11 +2262,11 @@ let Ke = class extends H {
|
|
|
2261
2262
|
_initialCursorSync() {
|
|
2262
2263
|
this.disposeWithMe(
|
|
2263
2264
|
w(
|
|
2264
|
-
this._textSelectionManagerService.textSelection$.subscribe(() => {
|
|
2265
|
-
if (this._editorBridgeService.isVisible().visible === !1 || this._formulaInputService.isSelectionMoving())
|
|
2265
|
+
this._textSelectionManagerService.textSelection$.subscribe((e) => {
|
|
2266
|
+
if (this._editorBridgeService.isVisible().visible === !1 || this._formulaInputService.isSelectionMoving() || (e == null ? void 0 : e.unitId) == null || ![st, ot].includes(e.unitId))
|
|
2266
2267
|
return;
|
|
2267
|
-
const
|
|
2268
|
-
this._contextSwitch(
|
|
2268
|
+
const n = this._getCurrentBody(), r = (n == null ? void 0 : n.dataStream) || "";
|
|
2269
|
+
this._contextSwitch(r), this._changeKeepVisibleHideState(), this._switchSelectionPlugin(), !this._formulaInputService.isLockedSelectionChange() && (this._highlightFormula(), this._changeFunctionPanelState());
|
|
2269
2270
|
})
|
|
2270
2271
|
)
|
|
2271
2272
|
);
|
|
@@ -2304,7 +2305,7 @@ let Ke = class extends H {
|
|
|
2304
2305
|
);
|
|
2305
2306
|
}
|
|
2306
2307
|
_initialRefSelectionUpdateEvent() {
|
|
2307
|
-
const e = new
|
|
2308
|
+
const e = new Jn();
|
|
2308
2309
|
this.disposeWithMe(
|
|
2309
2310
|
w(
|
|
2310
2311
|
this._selectionManagerService.selectionMoveEnd$.subscribe(() => {
|
|
@@ -2365,7 +2366,7 @@ let Ke = class extends H {
|
|
|
2365
2366
|
this._selectionRenderService.selectionMoving$.subscribe((e) => {
|
|
2366
2367
|
this._selectionChanging(
|
|
2367
2368
|
e.map(
|
|
2368
|
-
(t) =>
|
|
2369
|
+
(t) => ct(t)
|
|
2369
2370
|
)
|
|
2370
2371
|
);
|
|
2371
2372
|
})
|
|
@@ -2375,7 +2376,7 @@ let Ke = class extends H {
|
|
|
2375
2376
|
this._selectionRenderService.selectionMoveStart$.subscribe((e) => {
|
|
2376
2377
|
this._selectionChanging(
|
|
2377
2378
|
e.map(
|
|
2378
|
-
(t) =>
|
|
2379
|
+
(t) => ct(t)
|
|
2379
2380
|
),
|
|
2380
2381
|
!0
|
|
2381
2382
|
);
|
|
@@ -2429,7 +2430,7 @@ let Ke = class extends H {
|
|
|
2429
2430
|
const l = this._descriptionService.getSearchListByName(u);
|
|
2430
2431
|
if (this._hideFunctionPanel(), l == null || l.length === 0)
|
|
2431
2432
|
return;
|
|
2432
|
-
this._commandService.executeCommand(
|
|
2433
|
+
this._commandService.executeCommand(St.id, {
|
|
2433
2434
|
visible: !0,
|
|
2434
2435
|
searchText: u,
|
|
2435
2436
|
searchList: l
|
|
@@ -2448,17 +2449,17 @@ let Ke = class extends H {
|
|
|
2448
2449
|
}
|
|
2449
2450
|
_changeHelpFunctionPanelState(e, t) {
|
|
2450
2451
|
const n = this._descriptionService.getFunctionInfo(e);
|
|
2451
|
-
this._hideFunctionPanel(), n != null && this._commandService.executeCommand(
|
|
2452
|
+
this._hideFunctionPanel(), n != null && this._commandService.executeCommand(Pt.id, {
|
|
2452
2453
|
visible: !0,
|
|
2453
2454
|
paramIndex: t,
|
|
2454
2455
|
functionInfo: n
|
|
2455
2456
|
});
|
|
2456
2457
|
}
|
|
2457
2458
|
_hideFunctionPanel() {
|
|
2458
|
-
this._commandService.executeCommand(
|
|
2459
|
+
this._commandService.executeCommand(St.id, {
|
|
2459
2460
|
visible: !1,
|
|
2460
2461
|
searchText: ""
|
|
2461
|
-
}), this._commandService.executeCommand(
|
|
2462
|
+
}), this._commandService.executeCommand(Pt.id, {
|
|
2462
2463
|
visible: !1,
|
|
2463
2464
|
paramIndex: -1
|
|
2464
2465
|
});
|
|
@@ -2486,7 +2487,7 @@ let Ke = class extends H {
|
|
|
2486
2487
|
* @returns
|
|
2487
2488
|
*/
|
|
2488
2489
|
_matchRefDrawToken(e) {
|
|
2489
|
-
return
|
|
2490
|
+
return rr(e) && e !== j.CLOSE_BRACES && e !== j.CLOSE_BRACKET && e !== j.SINGLE_QUOTATION && e !== j.DOUBLE_QUOTATION || e === " ";
|
|
2490
2491
|
}
|
|
2491
2492
|
/**
|
|
2492
2493
|
*
|
|
@@ -2515,7 +2516,7 @@ let Ke = class extends H {
|
|
|
2515
2516
|
return (n = t == null ? void 0 : t.snapshot) == null ? void 0 : n.body;
|
|
2516
2517
|
}
|
|
2517
2518
|
_getFormulaAndCellEditorBody() {
|
|
2518
|
-
return [
|
|
2519
|
+
return [st, ot].map((t) => {
|
|
2519
2520
|
const n = this._currentUniverService.getUniverDocInstance(t);
|
|
2520
2521
|
return n == null ? void 0 : n.getBody();
|
|
2521
2522
|
});
|
|
@@ -2549,7 +2550,7 @@ let Ke = class extends H {
|
|
|
2549
2550
|
_switchSelectionPlugin() {
|
|
2550
2551
|
if (this._getContextState() === !0) {
|
|
2551
2552
|
this._selectionManagerService.changePluginNoRefresh(tn);
|
|
2552
|
-
const e =
|
|
2553
|
+
const e = fr(this._themeService);
|
|
2553
2554
|
e.strokeDash = 8, e.hasAutoFill = !1, e.hasRowHeader = !1, e.hasColumnHeader = !1, this._selectionRenderService.setStyle(e);
|
|
2554
2555
|
} else
|
|
2555
2556
|
this._selectionManagerService.changePluginNoRefresh(Be), this._selectionRenderService.resetStyle();
|
|
@@ -2639,14 +2640,14 @@ let Ke = class extends H {
|
|
|
2639
2640
|
(S || v) && P === p.startRow && N === p.startColumn && p.startRow === p.endRow && p.startColumn === p.endColumn && (p.endRow = _, p.endColumn = B), o = {
|
|
2640
2641
|
range: p,
|
|
2641
2642
|
primary: C,
|
|
2642
|
-
style:
|
|
2643
|
+
style: bt(this._themeService, m, h.toString())
|
|
2643
2644
|
};
|
|
2644
2645
|
continue;
|
|
2645
2646
|
}
|
|
2646
2647
|
r.push({
|
|
2647
2648
|
range: p,
|
|
2648
2649
|
primary: C,
|
|
2649
|
-
style:
|
|
2650
|
+
style: bt(this._themeService, m, h.toString())
|
|
2650
2651
|
});
|
|
2651
2652
|
}
|
|
2652
2653
|
o && r.push(o), r.length !== 0 && this._selectionManagerService.add(r);
|
|
@@ -2654,13 +2655,13 @@ let Ke = class extends H {
|
|
|
2654
2655
|
_getSheetIdByName(e, t) {
|
|
2655
2656
|
var r;
|
|
2656
2657
|
const n = this._currentUniverService.getUniverSheetInstance(e);
|
|
2657
|
-
return (r = n == null ? void 0 : n.getSheetBySheetName(
|
|
2658
|
+
return (r = n == null ? void 0 : n.getSheetBySheetName(ir(t))) == null ? void 0 : r.getSheetId();
|
|
2658
2659
|
}
|
|
2659
2660
|
_getSheetNameById(e, t) {
|
|
2660
2661
|
var a;
|
|
2661
2662
|
const n = this._currentUniverService.getUniverSheetInstance(e);
|
|
2662
2663
|
let r = ((a = n == null ? void 0 : n.getSheetBySheetId(t)) == null ? void 0 : a.getName()) || "";
|
|
2663
|
-
return r.length > 0 &&
|
|
2664
|
+
return r.length > 0 && ar(r) && (r = `'${r}'`), r;
|
|
2664
2665
|
}
|
|
2665
2666
|
_getCurrentUnitIdAndSheetId() {
|
|
2666
2667
|
const e = this._sheetSkeletonManagerService.getCurrent();
|
|
@@ -2724,7 +2725,7 @@ let Ke = class extends H {
|
|
|
2724
2725
|
if (o == null)
|
|
2725
2726
|
return;
|
|
2726
2727
|
const { collapsed: c, style: u } = o;
|
|
2727
|
-
this._currentInsertRefStringIndex = t, await this._fitEditorSize(), n ? this._commandService.executeCommand(
|
|
2728
|
+
this._currentInsertRefStringIndex = t, await this._fitEditorSize(), n ? this._commandService.executeCommand(Nr.id, {
|
|
2728
2729
|
unitId: this._editorBridgeService.getCurrentEditorId(),
|
|
2729
2730
|
body: {
|
|
2730
2731
|
dataStream: `=${r}`,
|
|
@@ -2750,7 +2751,7 @@ let Ke = class extends H {
|
|
|
2750
2751
|
}
|
|
2751
2752
|
async _fitEditorSize() {
|
|
2752
2753
|
const e = this._editorBridgeService.getCurrentEditorId();
|
|
2753
|
-
e != null && await this._commandService.syncExecuteCommand(
|
|
2754
|
+
e != null && await this._commandService.syncExecuteCommand(Tr.id, {
|
|
2754
2755
|
unitId: e
|
|
2755
2756
|
});
|
|
2756
2757
|
}
|
|
@@ -2785,7 +2786,7 @@ let Ke = class extends H {
|
|
|
2785
2786
|
this._formulaInputService.setSequenceNodes(t), this._formulaInputService.insertSequenceRef(this._previousInsertRefStringIndex, n), this._syncToEditor(t, this._previousInsertRefStringIndex + n.length);
|
|
2786
2787
|
const r = this._selectionRenderService.getSelectionDataWithStyle();
|
|
2787
2788
|
this._insertSelections = [], r.forEach((a) => {
|
|
2788
|
-
const s =
|
|
2789
|
+
const s = ct(a);
|
|
2789
2790
|
this._insertSelections.push(s);
|
|
2790
2791
|
});
|
|
2791
2792
|
}
|
|
@@ -2821,7 +2822,7 @@ let Ke = class extends H {
|
|
|
2821
2822
|
});
|
|
2822
2823
|
if (f == null)
|
|
2823
2824
|
continue;
|
|
2824
|
-
const R =
|
|
2825
|
+
const R = bt(this._themeService, u, c.toString());
|
|
2825
2826
|
f.updateStyle(R);
|
|
2826
2827
|
}
|
|
2827
2828
|
}
|
|
@@ -2835,7 +2836,7 @@ let Ke = class extends H {
|
|
|
2835
2836
|
if (s == null || !G.isStringNumber(s))
|
|
2836
2837
|
return;
|
|
2837
2838
|
let { startRow: o, endRow: c, startColumn: u, endColumn: l } = e;
|
|
2838
|
-
const d =
|
|
2839
|
+
const d = Ar(o, u, a == null ? void 0 : a.mergeData);
|
|
2839
2840
|
if (d) {
|
|
2840
2841
|
const {
|
|
2841
2842
|
isMerged: R,
|
|
@@ -2863,9 +2864,9 @@ let Ke = class extends H {
|
|
|
2863
2864
|
}
|
|
2864
2865
|
_refreshFormulaAndCellEditor() {
|
|
2865
2866
|
var t;
|
|
2866
|
-
const e = [
|
|
2867
|
+
const e = [st, ot];
|
|
2867
2868
|
for (const n of e) {
|
|
2868
|
-
const r =
|
|
2869
|
+
const r = vt(n, this._renderManagerService), a = r == null ? void 0 : r.document;
|
|
2869
2870
|
a != null && ((t = a.getSkeleton()) == null || t.calculate(), a.makeDirty());
|
|
2870
2871
|
}
|
|
2871
2872
|
}
|
|
@@ -2967,37 +2968,37 @@ let Ke = class extends H {
|
|
|
2967
2968
|
if (e == null)
|
|
2968
2969
|
return;
|
|
2969
2970
|
let t = M.LEFT;
|
|
2970
|
-
e === O.ARROW_DOWN ? t = M.DOWN : e === O.ARROW_UP ? t = M.UP : e === O.ARROW_RIGHT && (t = M.RIGHT), this._commandService.executeCommand(
|
|
2971
|
+
e === O.ARROW_DOWN ? t = M.DOWN : e === O.ARROW_UP ? t = M.UP : e === O.ARROW_RIGHT && (t = M.RIGHT), this._commandService.executeCommand(Mr.id, {
|
|
2971
2972
|
direction: t
|
|
2972
2973
|
});
|
|
2973
2974
|
}
|
|
2974
2975
|
_getEditorObject() {
|
|
2975
|
-
return
|
|
2976
|
+
return vt(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
|
|
2976
2977
|
}
|
|
2977
2978
|
};
|
|
2978
|
-
Ke =
|
|
2979
|
+
Ke = os([
|
|
2979
2980
|
K(Y.Steady, Ke),
|
|
2980
2981
|
L(0, Q),
|
|
2981
|
-
L(1,
|
|
2982
|
+
L(1, kt),
|
|
2982
2983
|
L(2, Cn),
|
|
2983
|
-
L(3, y(
|
|
2984
|
+
L(3, y(yt)),
|
|
2984
2985
|
L(4, y(de)),
|
|
2985
2986
|
L(5, y(Ie)),
|
|
2986
|
-
L(6,
|
|
2987
|
+
L(6, At),
|
|
2987
2988
|
L(7, y(sn)),
|
|
2988
|
-
L(8, y(
|
|
2989
|
+
L(8, y(Dt)),
|
|
2989
2990
|
L(9, y(Sn)),
|
|
2990
2991
|
L(10, ge),
|
|
2991
2992
|
L(11, y(Bn)),
|
|
2992
|
-
L(12, y(
|
|
2993
|
+
L(12, y(wt)),
|
|
2993
2994
|
L(13, y(_n)),
|
|
2994
2995
|
L(14, Ae),
|
|
2995
|
-
L(15, y(
|
|
2996
|
+
L(15, y(Or))
|
|
2996
2997
|
], Ke);
|
|
2997
|
-
var
|
|
2998
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
2998
|
+
var cs = Object.defineProperty, us = Object.getOwnPropertyDescriptor, ms = (i, e, t, n) => {
|
|
2999
|
+
for (var r = n > 1 ? void 0 : n ? us(e, t) : e, a = i.length - 1, s; a >= 0; a--)
|
|
2999
3000
|
(s = i[a]) && (r = (n ? s(e, t, r) : s(r)) || r);
|
|
3000
|
-
return n && r &&
|
|
3001
|
+
return n && r && cs(e, t, r), r;
|
|
3001
3002
|
}, nn = (i, e) => (t, n) => e(t, n, i);
|
|
3002
3003
|
let Ye = class extends H {
|
|
3003
3004
|
constructor(e, t) {
|
|
@@ -3017,7 +3018,7 @@ let Ye = class extends H {
|
|
|
3017
3018
|
if (this._activeDirtyManagerService.get(e.id)) {
|
|
3018
3019
|
if (e.id === ie.id) {
|
|
3019
3020
|
const n = e.params;
|
|
3020
|
-
if (t && t.onlyLocal === !0 || n.trigger ===
|
|
3021
|
+
if (t && t.onlyLocal === !0 || n.trigger === Ct.id || n.trigger === fn.id)
|
|
3021
3022
|
return;
|
|
3022
3023
|
}
|
|
3023
3024
|
this._waitingCommandQueue.push(e), clearTimeout(this._setTimeoutKey), this._setTimeoutKey = setTimeout(() => {
|
|
@@ -3069,7 +3070,7 @@ let Ye = class extends H {
|
|
|
3069
3070
|
_initialExecuteFormulaProcessListener() {
|
|
3070
3071
|
this.disposeWithMe(
|
|
3071
3072
|
this._commandService.onCommandExecuted((e) => {
|
|
3072
|
-
if (e.id !==
|
|
3073
|
+
if (e.id !== sr.id)
|
|
3073
3074
|
return;
|
|
3074
3075
|
const t = e.params;
|
|
3075
3076
|
if (t.stageInfo != null) {
|
|
@@ -3120,10 +3121,10 @@ let Ye = class extends H {
|
|
|
3120
3121
|
);
|
|
3121
3122
|
}
|
|
3122
3123
|
};
|
|
3123
|
-
Ye =
|
|
3124
|
+
Ye = ms([
|
|
3124
3125
|
K(Y.Ready, Ye),
|
|
3125
3126
|
nn(0, Q),
|
|
3126
|
-
nn(1,
|
|
3127
|
+
nn(1, Mt)
|
|
3127
3128
|
], Ye);
|
|
3128
3129
|
function ze(i, e, t, n, r) {
|
|
3129
3130
|
const { id: a } = e;
|
|
@@ -3132,42 +3133,42 @@ function ze(i, e, t, n, r) {
|
|
|
3132
3133
|
const s = new x(i[t][n]);
|
|
3133
3134
|
switch (a) {
|
|
3134
3135
|
case Pn.id:
|
|
3135
|
-
|
|
3136
|
+
fs(s, e);
|
|
3136
3137
|
break;
|
|
3137
3138
|
case vn.id:
|
|
3138
|
-
|
|
3139
|
+
ls(s, e, r);
|
|
3139
3140
|
break;
|
|
3140
3141
|
case In.id:
|
|
3141
|
-
|
|
3142
|
+
ds(s, e, r);
|
|
3142
3143
|
break;
|
|
3143
3144
|
case gn.id:
|
|
3144
|
-
|
|
3145
|
+
bs(s, e);
|
|
3145
3146
|
break;
|
|
3146
3147
|
case Rn.id:
|
|
3147
|
-
|
|
3148
|
+
ps(s, e);
|
|
3148
3149
|
break;
|
|
3149
3150
|
case En.id:
|
|
3150
|
-
|
|
3151
|
+
hs(s, e);
|
|
3151
3152
|
break;
|
|
3152
3153
|
case hn.id:
|
|
3153
|
-
|
|
3154
|
+
Es(s, e);
|
|
3154
3155
|
break;
|
|
3155
3156
|
case pn.id:
|
|
3156
|
-
|
|
3157
|
+
Rs(s, e);
|
|
3157
3158
|
break;
|
|
3158
3159
|
case bn.id:
|
|
3159
|
-
|
|
3160
|
+
gs(s, e);
|
|
3160
3161
|
break;
|
|
3161
3162
|
case dn.id:
|
|
3162
|
-
|
|
3163
|
+
Is(s, e);
|
|
3163
3164
|
break;
|
|
3164
3165
|
case ln.id:
|
|
3165
|
-
|
|
3166
|
+
vs(s, e);
|
|
3166
3167
|
break;
|
|
3167
3168
|
}
|
|
3168
3169
|
return i;
|
|
3169
3170
|
}
|
|
3170
|
-
function
|
|
3171
|
+
function fs(i, e) {
|
|
3171
3172
|
const { params: t } = e;
|
|
3172
3173
|
if (!t)
|
|
3173
3174
|
return;
|
|
@@ -3188,7 +3189,7 @@ function us(i, e) {
|
|
|
3188
3189
|
i.setValue(h, I, f);
|
|
3189
3190
|
}
|
|
3190
3191
|
}
|
|
3191
|
-
function
|
|
3192
|
+
function ls(i, e, t) {
|
|
3192
3193
|
const { params: n } = e;
|
|
3193
3194
|
if (!n)
|
|
3194
3195
|
return;
|
|
@@ -3200,7 +3201,7 @@ function ms(i, e, t) {
|
|
|
3200
3201
|
const o = s[0].range, c = o.startRow, u = o.endRow - o.startRow + 1;
|
|
3201
3202
|
i.moveRows(c, u, a);
|
|
3202
3203
|
}
|
|
3203
|
-
function
|
|
3204
|
+
function ds(i, e, t) {
|
|
3204
3205
|
const { params: n } = e;
|
|
3205
3206
|
if (!n)
|
|
3206
3207
|
return;
|
|
@@ -3212,63 +3213,63 @@ function fs(i, e, t) {
|
|
|
3212
3213
|
const o = s[0].range, c = o.startColumn, u = o.endColumn - o.startColumn + 1;
|
|
3213
3214
|
i.moveColumns(c, u, a);
|
|
3214
3215
|
}
|
|
3215
|
-
function
|
|
3216
|
+
function bs(i, e) {
|
|
3216
3217
|
const { params: t } = e;
|
|
3217
3218
|
if (!t)
|
|
3218
3219
|
return;
|
|
3219
3220
|
const { range: n } = t, r = i.getLength() - 1, a = i.getRange().endColumn;
|
|
3220
3221
|
nt(i, n, r, a, X.ROWS);
|
|
3221
3222
|
}
|
|
3222
|
-
function
|
|
3223
|
+
function ps(i, e) {
|
|
3223
3224
|
const { params: t } = e;
|
|
3224
3225
|
if (!t)
|
|
3225
3226
|
return;
|
|
3226
3227
|
const { range: n } = t, r = i.getLength() - 1, a = i.getRange().endColumn;
|
|
3227
3228
|
nt(i, n, r, a, X.COLUMNS);
|
|
3228
3229
|
}
|
|
3229
|
-
function
|
|
3230
|
+
function hs(i, e) {
|
|
3230
3231
|
const { params: t } = e;
|
|
3231
3232
|
if (!t)
|
|
3232
3233
|
return;
|
|
3233
3234
|
const { range: n } = t, r = i.getLength() - 1, a = i.getRange().endColumn;
|
|
3234
3235
|
nt(i, n, r, a, X.COLUMNS);
|
|
3235
3236
|
}
|
|
3236
|
-
function
|
|
3237
|
+
function Es(i, e) {
|
|
3237
3238
|
const { params: t } = e;
|
|
3238
3239
|
if (!t)
|
|
3239
3240
|
return;
|
|
3240
3241
|
const { range: n } = t, r = i.getLength() - 1, a = i.getRange().endColumn;
|
|
3241
3242
|
nt(i, n, r, a, X.ROWS);
|
|
3242
3243
|
}
|
|
3243
|
-
function
|
|
3244
|
+
function Rs(i, e) {
|
|
3244
3245
|
const { params: t } = e;
|
|
3245
3246
|
if (!t)
|
|
3246
3247
|
return;
|
|
3247
3248
|
const { range: n } = t, r = i.getLength() - 1, a = i.getRange().endColumn;
|
|
3248
3249
|
rt(i, n, r, a, X.ROWS);
|
|
3249
3250
|
}
|
|
3250
|
-
function
|
|
3251
|
+
function gs(i, e) {
|
|
3251
3252
|
const { params: t } = e;
|
|
3252
3253
|
if (!t)
|
|
3253
3254
|
return;
|
|
3254
3255
|
const { range: n } = t, r = i.getLength() - 1, a = i.getRange().endColumn;
|
|
3255
3256
|
rt(i, n, r, a, X.COLUMNS);
|
|
3256
3257
|
}
|
|
3257
|
-
function
|
|
3258
|
+
function Is(i, e) {
|
|
3258
3259
|
const { params: t } = e;
|
|
3259
3260
|
if (!t)
|
|
3260
3261
|
return;
|
|
3261
3262
|
const { range: n } = t, r = i.getLength() - 1, a = i.getRange().endColumn;
|
|
3262
3263
|
rt(i, n, r, a, X.ROWS);
|
|
3263
3264
|
}
|
|
3264
|
-
function
|
|
3265
|
+
function vs(i, e) {
|
|
3265
3266
|
const { params: t } = e;
|
|
3266
3267
|
if (!t)
|
|
3267
3268
|
return;
|
|
3268
3269
|
const { range: n } = t, r = i.getLength() - 1, a = i.getRange().endColumn;
|
|
3269
3270
|
rt(i, n, r, a, X.COLUMNS);
|
|
3270
3271
|
}
|
|
3271
|
-
function
|
|
3272
|
+
function Ps(i, e, t) {
|
|
3272
3273
|
if (jn(i, e, t))
|
|
3273
3274
|
return i;
|
|
3274
3275
|
const n = new x(i[e][t]);
|
|
@@ -3288,10 +3289,10 @@ function Is(i, e, t) {
|
|
|
3288
3289
|
function jn(i, e, t) {
|
|
3289
3290
|
return i == null || i[e] == null || i[e][t] == null;
|
|
3290
3291
|
}
|
|
3291
|
-
var
|
|
3292
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
3292
|
+
var Ss = Object.defineProperty, Bs = Object.getOwnPropertyDescriptor, ks = (i, e, t, n) => {
|
|
3293
|
+
for (var r = n > 1 ? void 0 : n ? Bs(e, t) : e, a = i.length - 1, s; a >= 0; a--)
|
|
3293
3294
|
(s = i[a]) && (r = (n ? s(e, t, r) : s(r)) || r);
|
|
3294
|
-
return n && r &&
|
|
3295
|
+
return n && r && Ss(e, t, r), r;
|
|
3295
3296
|
}, le = (i, e) => (t, n) => e(t, n, i);
|
|
3296
3297
|
let Qe = class extends H {
|
|
3297
3298
|
constructor(i, e, t, n, r, a, s) {
|
|
@@ -3310,11 +3311,11 @@ let Qe = class extends H {
|
|
|
3310
3311
|
if (i.params)
|
|
3311
3312
|
if (i.id === ie.id) {
|
|
3312
3313
|
const t = i.params;
|
|
3313
|
-
if (e && e.onlyLocal === !0 || t.trigger ===
|
|
3314
|
+
if (e && e.onlyLocal === !0 || t.trigger === Ct.id || t.trigger === fn.id)
|
|
3314
3315
|
return;
|
|
3315
3316
|
this._handleSetRangeValuesMutation(t, e);
|
|
3316
3317
|
} else
|
|
3317
|
-
i.id ===
|
|
3318
|
+
i.id === gt.id ? this._handleRemoveSheetMutation(i.params) : i.id === It.id && this._handleInsertSheetMutation(i.params);
|
|
3318
3319
|
})
|
|
3319
3320
|
);
|
|
3320
3321
|
}
|
|
@@ -3338,14 +3339,14 @@ let Qe = class extends H {
|
|
|
3338
3339
|
const a = this._formulaDataModel.getArrayFormulaCellData();
|
|
3339
3340
|
delete a[t][e], this._commandService.executeCommand(we.id, {
|
|
3340
3341
|
formulaData: n
|
|
3341
|
-
}), this._commandService.executeCommand(
|
|
3342
|
+
}), this._commandService.executeCommand(Rt.id, {
|
|
3342
3343
|
arrayFormulaRange: r,
|
|
3343
3344
|
arrayFormulaCellData: a
|
|
3344
3345
|
});
|
|
3345
3346
|
}
|
|
3346
3347
|
_handleInsertSheetMutation(i) {
|
|
3347
3348
|
const { sheet: e, unitId: t } = i, n = this._formulaDataModel.getFormulaData(), { id: r, cellData: a } = e, s = new x(a);
|
|
3348
|
-
|
|
3349
|
+
or(n, t, r, s), this._commandService.executeCommand(we.id, {
|
|
3349
3350
|
formulaData: n
|
|
3350
3351
|
});
|
|
3351
3352
|
}
|
|
@@ -3386,7 +3387,7 @@ let Qe = class extends H {
|
|
|
3386
3387
|
case ln.id:
|
|
3387
3388
|
t = this._handleDeleteRangeMoveLeft(i);
|
|
3388
3389
|
break;
|
|
3389
|
-
case
|
|
3390
|
+
case lr.id:
|
|
3390
3391
|
t = this._handleSetWorksheetName(i);
|
|
3391
3392
|
break;
|
|
3392
3393
|
}
|
|
@@ -3395,7 +3396,7 @@ let Qe = class extends H {
|
|
|
3395
3396
|
let r = this._formulaDataModel.getFormulaData();
|
|
3396
3397
|
const a = this._getFormulaReferenceMoveInfo(r, n, t), s = this._currentUniverService.getCurrentUniverSheetInstance(), o = s.getUnitId(), c = s.getActiveSheet().getSheetId(), u = this._selectionManagerService.getSelections(), l = this._formulaDataModel.getArrayFormulaRange(), d = this._formulaDataModel.getArrayFormulaCellData();
|
|
3397
3398
|
let m = ze(l, i, o, c, u);
|
|
3398
|
-
m =
|
|
3399
|
+
m = Ps(m, o, c);
|
|
3399
3400
|
const b = ze(
|
|
3400
3401
|
d,
|
|
3401
3402
|
i,
|
|
@@ -3404,7 +3405,7 @@ let Qe = class extends H {
|
|
|
3404
3405
|
u
|
|
3405
3406
|
);
|
|
3406
3407
|
this._commandService.executeCommand(
|
|
3407
|
-
|
|
3408
|
+
Rt.id,
|
|
3408
3409
|
{
|
|
3409
3410
|
arrayFormulaRange: m,
|
|
3410
3411
|
arrayFormulaCellData: b
|
|
@@ -3665,15 +3666,15 @@ let Qe = class extends H {
|
|
|
3665
3666
|
let Me = null;
|
|
3666
3667
|
if (t.type === 9) {
|
|
3667
3668
|
const {
|
|
3668
|
-
unitId:
|
|
3669
|
+
unitId: so,
|
|
3669
3670
|
sheetId: Wn,
|
|
3670
|
-
sheetName:
|
|
3671
|
+
sheetName: Ft
|
|
3671
3672
|
} = t;
|
|
3672
|
-
if (
|
|
3673
|
+
if (Ft == null || be == null || be.length === 0 || Wn !== be)
|
|
3673
3674
|
continue;
|
|
3674
3675
|
Me = Ve({
|
|
3675
3676
|
range: D,
|
|
3676
|
-
sheetName:
|
|
3677
|
+
sheetName: Ft,
|
|
3677
3678
|
unitId: U
|
|
3678
3679
|
});
|
|
3679
3680
|
} else
|
|
@@ -3728,7 +3729,7 @@ let Qe = class extends H {
|
|
|
3728
3729
|
const p = this._checkMoveEdge(f, c), g = Ue.getIntersects(f, c);
|
|
3729
3730
|
if (g == null)
|
|
3730
3731
|
return;
|
|
3731
|
-
const C =
|
|
3732
|
+
const C = dr(
|
|
3732
3733
|
{ id: J.MoveRangeCommandId, params: { toRange: u, fromRange: c } },
|
|
3733
3734
|
g
|
|
3734
3735
|
), S = Z(C, g);
|
|
@@ -3738,7 +3739,7 @@ let Qe = class extends H {
|
|
|
3738
3739
|
}
|
|
3739
3740
|
if (o != null) {
|
|
3740
3741
|
if (r === 1) {
|
|
3741
|
-
const p =
|
|
3742
|
+
const p = br(
|
|
3742
3743
|
{
|
|
3743
3744
|
id: J.InsertRowCommandId,
|
|
3744
3745
|
params: { range: o, unitId: "", subUnitId: "", direction: M.DOWN }
|
|
@@ -3752,7 +3753,7 @@ let Qe = class extends H {
|
|
|
3752
3753
|
...g
|
|
3753
3754
|
};
|
|
3754
3755
|
} else if (r === 2) {
|
|
3755
|
-
const p =
|
|
3756
|
+
const p = pr(
|
|
3756
3757
|
{
|
|
3757
3758
|
id: J.InsertColCommandId,
|
|
3758
3759
|
params: { range: o, unitId: "", subUnitId: "", direction: M.RIGHT }
|
|
@@ -3766,7 +3767,7 @@ let Qe = class extends H {
|
|
|
3766
3767
|
...g
|
|
3767
3768
|
};
|
|
3768
3769
|
} else if (r === 3) {
|
|
3769
|
-
const p =
|
|
3770
|
+
const p = hr(
|
|
3770
3771
|
{
|
|
3771
3772
|
id: J.RemoveRowCommandId,
|
|
3772
3773
|
params: { range: o }
|
|
@@ -3780,7 +3781,7 @@ let Qe = class extends H {
|
|
|
3780
3781
|
...g
|
|
3781
3782
|
};
|
|
3782
3783
|
} else if (r === 4) {
|
|
3783
|
-
const p =
|
|
3784
|
+
const p = Er(
|
|
3784
3785
|
{
|
|
3785
3786
|
id: J.RemoveColCommandId,
|
|
3786
3787
|
params: { range: o }
|
|
@@ -3794,7 +3795,7 @@ let Qe = class extends H {
|
|
|
3794
3795
|
...g
|
|
3795
3796
|
};
|
|
3796
3797
|
} else if (r === 5) {
|
|
3797
|
-
const p =
|
|
3798
|
+
const p = Rr(
|
|
3798
3799
|
{
|
|
3799
3800
|
id: J.DeleteRangeMoveLeftCommandId,
|
|
3800
3801
|
params: { range: o }
|
|
@@ -3808,7 +3809,7 @@ let Qe = class extends H {
|
|
|
3808
3809
|
...g
|
|
3809
3810
|
};
|
|
3810
3811
|
} else if (r === 6) {
|
|
3811
|
-
const p =
|
|
3812
|
+
const p = gr(
|
|
3812
3813
|
{
|
|
3813
3814
|
id: J.DeleteRangeMoveUpCommandId,
|
|
3814
3815
|
params: { range: o }
|
|
@@ -3822,7 +3823,7 @@ let Qe = class extends H {
|
|
|
3822
3823
|
...g
|
|
3823
3824
|
};
|
|
3824
3825
|
} else if (r === 7) {
|
|
3825
|
-
const p =
|
|
3826
|
+
const p = Ir(
|
|
3826
3827
|
{
|
|
3827
3828
|
id: J.InsertRangeMoveDownCommandId,
|
|
3828
3829
|
params: { range: o }
|
|
@@ -3836,7 +3837,7 @@ let Qe = class extends H {
|
|
|
3836
3837
|
...g
|
|
3837
3838
|
};
|
|
3838
3839
|
} else if (r === 8) {
|
|
3839
|
-
const p =
|
|
3840
|
+
const p = vr(
|
|
3840
3841
|
{
|
|
3841
3842
|
id: J.InsertRangeMoveRightCommandId,
|
|
3842
3843
|
params: { range: o }
|
|
@@ -4002,17 +4003,17 @@ let Qe = class extends H {
|
|
|
4002
4003
|
};
|
|
4003
4004
|
}
|
|
4004
4005
|
};
|
|
4005
|
-
Qe =
|
|
4006
|
+
Qe = ks([
|
|
4006
4007
|
K(Y.Ready, Qe),
|
|
4007
4008
|
le(0, ge),
|
|
4008
4009
|
le(1, Q),
|
|
4009
4010
|
le(2, y(Ie)),
|
|
4010
4011
|
le(3, y(tt)),
|
|
4011
|
-
le(4, y(
|
|
4012
|
-
le(5, y(
|
|
4012
|
+
le(4, y(_t)),
|
|
4013
|
+
le(5, y(Dt)),
|
|
4013
4014
|
le(6, y(et))
|
|
4014
4015
|
], Qe);
|
|
4015
|
-
const
|
|
4016
|
+
const Cs = {}, _s = {
|
|
4016
4017
|
BETADIST: {
|
|
4017
4018
|
description: "Returns the beta cumulative distribution function",
|
|
4018
4019
|
abstract: "Returns the beta cumulative distribution function",
|
|
@@ -4587,7 +4588,7 @@ const Bs = {}, ks = {
|
|
|
4587
4588
|
number2: { name: "number2", detail: "second" }
|
|
4588
4589
|
}
|
|
4589
4590
|
}
|
|
4590
|
-
},
|
|
4591
|
+
}, Ds = {
|
|
4591
4592
|
CUBEKPIMEMBER: {
|
|
4592
4593
|
description: "Returns a key performance indicator (KPI) property and displays the KPI name in the cell. A KPI is a quantifiable measurement, such as monthly gross profit or quarterly employee turnover, that is used to monitor an organization's performance.",
|
|
4593
4594
|
abstract: "Returns a key performance indicator (KPI) property and displays the KPI name in the cell. A KPI is a quantifiable measurement, such as monthly gross profit or quarterly employee turnover, that is used to monitor an organization's performance.",
|
|
@@ -4686,7 +4687,7 @@ const Bs = {}, ks = {
|
|
|
4686
4687
|
number2: { name: "number2", detail: "second" }
|
|
4687
4688
|
}
|
|
4688
4689
|
}
|
|
4689
|
-
},
|
|
4690
|
+
}, ys = {
|
|
4690
4691
|
DAVERAGE: {
|
|
4691
4692
|
description: "Returns the average of selected database entries",
|
|
4692
4693
|
abstract: "Returns the average of selected database entries",
|
|
@@ -4855,7 +4856,7 @@ const Bs = {}, ks = {
|
|
|
4855
4856
|
number2: { name: "number2", detail: "second" }
|
|
4856
4857
|
}
|
|
4857
4858
|
}
|
|
4858
|
-
},
|
|
4859
|
+
}, Ts = {
|
|
4859
4860
|
DATE: {
|
|
4860
4861
|
description: "Returns the serial number of a particular date",
|
|
4861
4862
|
abstract: "Returns the serial number of a particular date",
|
|
@@ -5206,7 +5207,7 @@ const Bs = {}, ks = {
|
|
|
5206
5207
|
number2: { name: "number2", detail: "second" }
|
|
5207
5208
|
}
|
|
5208
5209
|
}
|
|
5209
|
-
},
|
|
5210
|
+
}, As = {
|
|
5210
5211
|
BESSELI: {
|
|
5211
5212
|
description: "Returns the modified Bessel function In(x)",
|
|
5212
5213
|
abstract: "Returns the modified Bessel function In(x)",
|
|
@@ -5963,7 +5964,7 @@ const Bs = {}, ks = {
|
|
|
5963
5964
|
number2: { name: "number2", detail: "second" }
|
|
5964
5965
|
}
|
|
5965
5966
|
}
|
|
5966
|
-
},
|
|
5967
|
+
}, Ns = {
|
|
5967
5968
|
ACCRINT: {
|
|
5968
5969
|
description: "Returns the accrued interest for a security that pays periodic interest",
|
|
5969
5970
|
abstract: "Returns the accrued interest for a security that pays periodic interest",
|
|
@@ -6734,7 +6735,7 @@ const Bs = {}, ks = {
|
|
|
6734
6735
|
number2: { name: "number2", detail: "second" }
|
|
6735
6736
|
}
|
|
6736
6737
|
}
|
|
6737
|
-
},
|
|
6738
|
+
}, Ms = {
|
|
6738
6739
|
CELL: {
|
|
6739
6740
|
description: "Returns information about the formatting, location, or contents of a cell",
|
|
6740
6741
|
abstract: "Returns information about the formatting, location, or contents of a cell",
|
|
@@ -7029,7 +7030,7 @@ const Bs = {}, ks = {
|
|
|
7029
7030
|
number2: { name: "number2", detail: "second" }
|
|
7030
7031
|
}
|
|
7031
7032
|
}
|
|
7032
|
-
},
|
|
7033
|
+
}, Os = {
|
|
7033
7034
|
AND: {
|
|
7034
7035
|
description: "Returns TRUE if all of its arguments are TRUE",
|
|
7035
7036
|
abstract: "Returns TRUE if all of its arguments are TRUE",
|
|
@@ -7296,7 +7297,7 @@ const Bs = {}, ks = {
|
|
|
7296
7297
|
number2: { name: "number2", detail: "second" }
|
|
7297
7298
|
}
|
|
7298
7299
|
}
|
|
7299
|
-
},
|
|
7300
|
+
}, xs = {
|
|
7300
7301
|
ADDRESS: {
|
|
7301
7302
|
description: "Returns a reference as text to a single cell in a worksheet",
|
|
7302
7303
|
abstract: "Returns a reference as text to a single cell in a worksheet",
|
|
@@ -7815,7 +7816,7 @@ const Bs = {}, ks = {
|
|
|
7815
7816
|
number2: { name: "number2", detail: "second" }
|
|
7816
7817
|
}
|
|
7817
7818
|
}
|
|
7818
|
-
},
|
|
7819
|
+
}, ws = {
|
|
7819
7820
|
ABS: {
|
|
7820
7821
|
description: "Returns the absolute value of a number",
|
|
7821
7822
|
abstract: "Returns the absolute value of a number",
|
|
@@ -8980,7 +8981,7 @@ const Bs = {}, ks = {
|
|
|
8980
8981
|
number2: { name: "number2", detail: "second" }
|
|
8981
8982
|
}
|
|
8982
8983
|
}
|
|
8983
|
-
},
|
|
8984
|
+
}, Fs = {
|
|
8984
8985
|
AVEDEV: {
|
|
8985
8986
|
description: "Returns the average of the absolute deviations of data points from their mean",
|
|
8986
8987
|
abstract: "Returns the average of the absolute deviations of data points from their mean",
|
|
@@ -10566,7 +10567,7 @@ const Bs = {}, ks = {
|
|
|
10566
10567
|
number2: { name: "number2", detail: "second" }
|
|
10567
10568
|
}
|
|
10568
10569
|
}
|
|
10569
|
-
},
|
|
10570
|
+
}, Ls = {
|
|
10570
10571
|
ASC: {
|
|
10571
10572
|
description: "Changes full-width (double-byte) English letters or katakana within a character string to half-width (single-byte) characters",
|
|
10572
10573
|
abstract: "Changes full-width (double-byte) English letters or katakana within a character string to half-width (single-byte) characters",
|
|
@@ -11225,7 +11226,7 @@ const Bs = {}, ks = {
|
|
|
11225
11226
|
number2: { name: "number2", detail: "second" }
|
|
11226
11227
|
}
|
|
11227
11228
|
}
|
|
11228
|
-
},
|
|
11229
|
+
}, zs = {}, Us = {
|
|
11229
11230
|
ENCODEURL: {
|
|
11230
11231
|
description: "Returns a URL-encoded string",
|
|
11231
11232
|
abstract: "Returns a URL-encoded string",
|
|
@@ -11268,7 +11269,7 @@ const Bs = {}, ks = {
|
|
|
11268
11269
|
number2: { name: "number2", detail: "second" }
|
|
11269
11270
|
}
|
|
11270
11271
|
}
|
|
11271
|
-
},
|
|
11272
|
+
}, vo = {
|
|
11272
11273
|
formula: {
|
|
11273
11274
|
insert: {
|
|
11274
11275
|
tooltip: "Functions",
|
|
@@ -11280,21 +11281,21 @@ const Bs = {}, ks = {
|
|
|
11280
11281
|
more: "More Functions..."
|
|
11281
11282
|
},
|
|
11282
11283
|
functionList: {
|
|
11284
|
+
...Ns,
|
|
11283
11285
|
...Ts,
|
|
11284
|
-
...
|
|
11285
|
-
...
|
|
11286
|
+
...ws,
|
|
11287
|
+
...Fs,
|
|
11286
11288
|
...xs,
|
|
11289
|
+
...ys,
|
|
11290
|
+
...Ls,
|
|
11291
|
+
...Os,
|
|
11287
11292
|
...Ms,
|
|
11288
|
-
..._s,
|
|
11289
|
-
...ws,
|
|
11290
|
-
...Ns,
|
|
11291
11293
|
...As,
|
|
11292
|
-
...
|
|
11294
|
+
...Ds,
|
|
11295
|
+
..._s,
|
|
11296
|
+
...Us,
|
|
11293
11297
|
...Cs,
|
|
11294
|
-
...
|
|
11295
|
-
...Ls,
|
|
11296
|
-
...Bs,
|
|
11297
|
-
...Fs
|
|
11298
|
+
...zs
|
|
11298
11299
|
},
|
|
11299
11300
|
prompt: {
|
|
11300
11301
|
helpExample: "EXAMPLE",
|
|
@@ -11331,7 +11332,7 @@ const Bs = {}, ks = {
|
|
|
11331
11332
|
pasteFormula: "Paste Formula"
|
|
11332
11333
|
}
|
|
11333
11334
|
}
|
|
11334
|
-
},
|
|
11335
|
+
}, Vs = {}, qs = {
|
|
11335
11336
|
BETADIST: {
|
|
11336
11337
|
description: "返回 beta 累积分布函数",
|
|
11337
11338
|
abstract: "返回 beta 累积分布函数",
|
|
@@ -11906,7 +11907,7 @@ const Bs = {}, ks = {
|
|
|
11906
11907
|
number2: { name: "number2", detail: "second" }
|
|
11907
11908
|
}
|
|
11908
11909
|
}
|
|
11909
|
-
},
|
|
11910
|
+
}, Hs = {
|
|
11910
11911
|
CUBEKPIMEMBER: {
|
|
11911
11912
|
description: "返回重要性能指示器 (KPI) 属性,并在单元格中显示 KPI 名称。 KPI 是一种用于监控单位绩效的可计量度量值,如每月总利润或季度员工调整。",
|
|
11912
11913
|
abstract: "返回重要性能指示器 (KPI) 属性,并在单元格中显示 KPI 名称。 KPI 是一种用于监控单位绩效的可计量度量值,如每月总利润或季度员工调整。",
|
|
@@ -12005,7 +12006,7 @@ const Bs = {}, ks = {
|
|
|
12005
12006
|
number2: { name: "number2", detail: "second" }
|
|
12006
12007
|
}
|
|
12007
12008
|
}
|
|
12008
|
-
},
|
|
12009
|
+
}, $s = {
|
|
12009
12010
|
DAVERAGE: {
|
|
12010
12011
|
description: "返回所选数据库条目的平均值",
|
|
12011
12012
|
abstract: "返回所选数据库条目的平均值",
|
|
@@ -12174,7 +12175,7 @@ const Bs = {}, ks = {
|
|
|
12174
12175
|
number2: { name: "number2", detail: "second" }
|
|
12175
12176
|
}
|
|
12176
12177
|
}
|
|
12177
|
-
},
|
|
12178
|
+
}, js = {
|
|
12178
12179
|
DATE: {
|
|
12179
12180
|
description: "返回特定日期的序列号",
|
|
12180
12181
|
abstract: "返回特定日期的序列号",
|
|
@@ -12525,7 +12526,7 @@ const Bs = {}, ks = {
|
|
|
12525
12526
|
number2: { name: "number2", detail: "second" }
|
|
12526
12527
|
}
|
|
12527
12528
|
}
|
|
12528
|
-
},
|
|
12529
|
+
}, Ws = {
|
|
12529
12530
|
BESSELI: {
|
|
12530
12531
|
description: "返回修正的贝赛耳函数 In(x)",
|
|
12531
12532
|
abstract: "返回修正的贝赛耳函数 In(x)",
|
|
@@ -13282,7 +13283,7 @@ const Bs = {}, ks = {
|
|
|
13282
13283
|
number2: { name: "number2", detail: "second" }
|
|
13283
13284
|
}
|
|
13284
13285
|
}
|
|
13285
|
-
},
|
|
13286
|
+
}, Gs = {
|
|
13286
13287
|
ACCRINT: {
|
|
13287
13288
|
description: "返回定期支付利息的债券的应计利息",
|
|
13288
13289
|
abstract: "返回定期支付利息的债券的应计利息",
|
|
@@ -14053,7 +14054,7 @@ const Bs = {}, ks = {
|
|
|
14053
14054
|
number2: { name: "number2", detail: "second" }
|
|
14054
14055
|
}
|
|
14055
14056
|
}
|
|
14056
|
-
},
|
|
14057
|
+
}, Xs = {
|
|
14057
14058
|
CELL: {
|
|
14058
14059
|
description: "返回有关单元格格式、位置或内容的信息",
|
|
14059
14060
|
abstract: "返回有关单元格格式、位置或内容的信息",
|
|
@@ -14348,7 +14349,7 @@ const Bs = {}, ks = {
|
|
|
14348
14349
|
number2: { name: "number2", detail: "second" }
|
|
14349
14350
|
}
|
|
14350
14351
|
}
|
|
14351
|
-
},
|
|
14352
|
+
}, Ks = {
|
|
14352
14353
|
AND: {
|
|
14353
14354
|
description: "如果其所有参数均为 TRUE,则返回 TRUE",
|
|
14354
14355
|
abstract: "如果其所有参数均为 TRUE,则返回 TRUE",
|
|
@@ -14615,7 +14616,7 @@ const Bs = {}, ks = {
|
|
|
14615
14616
|
number2: { name: "number2", detail: "second" }
|
|
14616
14617
|
}
|
|
14617
14618
|
}
|
|
14618
|
-
},
|
|
14619
|
+
}, Ys = {
|
|
14619
14620
|
ADDRESS: {
|
|
14620
14621
|
description: "以文本形式将引用值返回到工作表的单个单元格",
|
|
14621
14622
|
abstract: "以文本形式将引用值返回到工作表的单个单元格",
|
|
@@ -15134,7 +15135,7 @@ const Bs = {}, ks = {
|
|
|
15134
15135
|
number2: { name: "number2", detail: "second" }
|
|
15135
15136
|
}
|
|
15136
15137
|
}
|
|
15137
|
-
},
|
|
15138
|
+
}, Qs = {
|
|
15138
15139
|
ABS: {
|
|
15139
15140
|
description: "返回数字的绝对值",
|
|
15140
15141
|
abstract: "返回数字的绝对值",
|
|
@@ -16299,7 +16300,7 @@ const Bs = {}, ks = {
|
|
|
16299
16300
|
number2: { name: "number2", detail: "second" }
|
|
16300
16301
|
}
|
|
16301
16302
|
}
|
|
16302
|
-
},
|
|
16303
|
+
}, Js = {
|
|
16303
16304
|
AVEDEV: {
|
|
16304
16305
|
description: "返回数据点与它们的平均值的绝对偏差平均值",
|
|
16305
16306
|
abstract: "返回数据点与它们的平均值的绝对偏差平均值",
|
|
@@ -17885,7 +17886,7 @@ const Bs = {}, ks = {
|
|
|
17885
17886
|
number2: { name: "number2", detail: "second" }
|
|
17886
17887
|
}
|
|
17887
17888
|
}
|
|
17888
|
-
},
|
|
17889
|
+
}, Zs = {
|
|
17889
17890
|
ASC: {
|
|
17890
17891
|
description: "将字符串中的全角(双字节)英文字母或片假名更改为半角(单字节)字符",
|
|
17891
17892
|
abstract: "将字符串中的全角(双字节)英文字母或片假名更改为半角(单字节)字符",
|
|
@@ -18544,7 +18545,7 @@ const Bs = {}, ks = {
|
|
|
18544
18545
|
number2: { name: "number2", detail: "second" }
|
|
18545
18546
|
}
|
|
18546
18547
|
}
|
|
18547
|
-
},
|
|
18548
|
+
}, eo = {}, to = {
|
|
18548
18549
|
ENCODEURL: {
|
|
18549
18550
|
description: "返回 URL 编码的字符串",
|
|
18550
18551
|
abstract: "返回 URL 编码的字符串",
|
|
@@ -18587,7 +18588,7 @@ const Bs = {}, ks = {
|
|
|
18587
18588
|
number2: { name: "number2", detail: "second" }
|
|
18588
18589
|
}
|
|
18589
18590
|
}
|
|
18590
|
-
},
|
|
18591
|
+
}, no = {
|
|
18591
18592
|
formula: {
|
|
18592
18593
|
insert: {
|
|
18593
18594
|
tooltip: "函数",
|
|
@@ -18599,21 +18600,21 @@ const Bs = {}, ks = {
|
|
|
18599
18600
|
more: "更多函数..."
|
|
18600
18601
|
},
|
|
18601
18602
|
functionList: {
|
|
18603
|
+
...Gs,
|
|
18602
18604
|
...js,
|
|
18603
|
-
...
|
|
18604
|
-
...
|
|
18605
|
+
...Qs,
|
|
18606
|
+
...Js,
|
|
18605
18607
|
...Ys,
|
|
18608
|
+
...$s,
|
|
18609
|
+
...Zs,
|
|
18610
|
+
...Ks,
|
|
18606
18611
|
...Xs,
|
|
18607
|
-
...qs,
|
|
18608
|
-
...Qs,
|
|
18609
|
-
...Gs,
|
|
18610
18612
|
...Ws,
|
|
18611
|
-
|
|
18613
|
+
...Hs,
|
|
18614
|
+
...qs,
|
|
18615
|
+
...to,
|
|
18612
18616
|
...Vs,
|
|
18613
|
-
...
|
|
18614
|
-
...Zs,
|
|
18615
|
-
...zs,
|
|
18616
|
-
...Js
|
|
18617
|
+
...eo
|
|
18617
18618
|
},
|
|
18618
18619
|
prompt: {
|
|
18619
18620
|
helpExample: "示例",
|
|
@@ -18651,33 +18652,33 @@ const Bs = {}, ks = {
|
|
|
18651
18652
|
}
|
|
18652
18653
|
}
|
|
18653
18654
|
};
|
|
18654
|
-
var
|
|
18655
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
18655
|
+
var ro = Object.defineProperty, io = Object.getOwnPropertyDescriptor, ao = (i, e, t, n) => {
|
|
18656
|
+
for (var r = n > 1 ? void 0 : n ? io(e, t) : e, a = i.length - 1, s; a >= 0; a--)
|
|
18656
18657
|
(s = i[a]) && (r = (n ? s(e, t, r) : s(r)) || r);
|
|
18657
|
-
return n && r &&
|
|
18658
|
-
},
|
|
18659
|
-
let rn = (
|
|
18658
|
+
return n && r && ro(e, t, r), r;
|
|
18659
|
+
}, pt = (i, e) => (t, n) => e(t, n, i), ht;
|
|
18660
|
+
let rn = (ht = class extends Zn {
|
|
18660
18661
|
constructor(i, e, t, n) {
|
|
18661
18662
|
super(Tn), this._config = i, this._injector = e, this._localeService = t, this._currentUniverService = n;
|
|
18662
18663
|
}
|
|
18663
18664
|
initialize() {
|
|
18664
18665
|
this._localeService.load({
|
|
18665
|
-
zhCN:
|
|
18666
|
+
zhCN: no
|
|
18666
18667
|
}), [
|
|
18667
18668
|
// services
|
|
18668
|
-
[de, { useClass:
|
|
18669
|
-
[Ae, { useClass:
|
|
18669
|
+
[de, { useClass: hi }],
|
|
18670
|
+
[Ae, { useClass: li }],
|
|
18670
18671
|
[
|
|
18671
|
-
|
|
18672
|
+
wt,
|
|
18672
18673
|
{
|
|
18673
18674
|
useFactory: () => {
|
|
18674
18675
|
var e;
|
|
18675
|
-
return this._injector.createInstance(
|
|
18676
|
+
return this._injector.createInstance(Bt, ((e = this._config) == null ? void 0 : e.description) || []);
|
|
18676
18677
|
}
|
|
18677
18678
|
// TODO@Dusuhir: initialize config with asynchronous method?
|
|
18678
18679
|
}
|
|
18679
18680
|
],
|
|
18680
|
-
[
|
|
18681
|
+
[Mt, { useClass: Gr }],
|
|
18681
18682
|
// controllers
|
|
18682
18683
|
[Xe],
|
|
18683
18684
|
[Ke],
|
|
@@ -18694,14 +18695,14 @@ let rn = (bt = class extends Jn {
|
|
|
18694
18695
|
onReady() {
|
|
18695
18696
|
this.initialize();
|
|
18696
18697
|
}
|
|
18697
|
-
}, k(
|
|
18698
|
-
rn =
|
|
18699
|
-
|
|
18700
|
-
|
|
18701
|
-
|
|
18698
|
+
}, k(ht, "type", er.Sheet), ht);
|
|
18699
|
+
rn = ao([
|
|
18700
|
+
pt(1, y(et)),
|
|
18701
|
+
pt(2, y(_e)),
|
|
18702
|
+
pt(3, ge)
|
|
18702
18703
|
], rn);
|
|
18703
18704
|
export {
|
|
18704
18705
|
rn as UniverSheetsFormulaPlugin,
|
|
18705
|
-
|
|
18706
|
-
|
|
18706
|
+
vo as enUS,
|
|
18707
|
+
no as zhCN
|
|
18707
18708
|
};
|