@univerjs/sheets-formula 0.16.1 → 0.17.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 +1 -1
- package/lib/es/index.js +1091 -997
- package/lib/index.js +1091 -997
- package/lib/types/controllers/formula-auto-fill.controller.d.ts +10 -0
- package/lib/types/index.d.ts +3 -2
- package/lib/types/plugin.d.ts +5 -1
- package/lib/types/services/__test__/description.service.spec.d.ts +16 -0
- package/lib/types/services/__test__/register-function.service.spec.d.ts +16 -0
- package/lib/types/services/__test__/utils.spec.d.ts +16 -0
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
- /package/lib/types/{controllers/config.schema.d.ts → config/config.d.ts} +0 -0
package/lib/es/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var K = (a, e, n) =>
|
|
4
|
-
import { CommandType as
|
|
5
|
-
import { SetRangeValuesCommand as
|
|
6
|
-
import { serializeRange as
|
|
7
|
-
import { BehaviorSubject as
|
|
8
|
-
import { IRPCChannelService as
|
|
9
|
-
const
|
|
1
|
+
var ja = Object.defineProperty;
|
|
2
|
+
var $a = (a, e, n) => e in a ? ja(a, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[e] = n;
|
|
3
|
+
var K = (a, e, n) => $a(a, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { CommandType as Pa, ICommandService as ue, ObjectMatrix as V, generateRandomId as Yt, IUniverInstanceService as Re, Rectangle as ce, sequenceExecuteAsync as za, Inject as H, Disposable as z, isFormulaString as Ee, isFormulaId as ze, Tools as qe, Direction as fe, CellValueType as gt, createDocumentModelWithStyle as Za, WrapTextType as Ja, PositionedObjectLayoutType as en, BooleanNumber as tn, ObjectRelativeFromV as an, ObjectRelativeFromH as nn, ImageSourceType as rn, DrawingTypeEnum as on, BuildTextUtils as un, InterceptorEffectEnum as qt, ILogService as mn, IConfigService as xe, LocaleService as Xt, cellToRange as Ta, getIntersectRange as $e, RANGE_TYPE as X, UniverInstanceType as k, Injector as pt, isRealNum as fn, createIdentifier as Wt, toDisposable as ee, moveRangeByOffset as ht, DisposableCollection as Ze, AbsoluteRefType as Je, Optional as cn, DependentOn as Ea, Plugin as Ia, merge as Na, touchDependencies as He, isNodeEnv as Qt } from "@univerjs/core";
|
|
5
|
+
import { SetRangeValuesCommand as Ra, SheetsSelectionsService as ln, getSheetCommandTarget as sn, findFirstNonEmptyCell as dn, alignToMergedCellsBorders as St, expandToContinuousRange as pn, SetSelectionsOperation as Ln, IAutoFillService as Pn, AUTO_FILL_APPLY_TYPE as Tn, AUTO_FILL_DATA_TYPE as jt, SheetInterceptorService as Lt, INTERCEPTOR_POINT as Sa, InterceptCellContentPriority as En, SetRangeValuesMutation as j, SetStyleCommand as Kt, SetBorderCommand as Aa, ClearSelectionFormatCommand as Ca, handleMoveCols as Da, EffectRefRangId as w, runRefRangeMutations as Y, handleMoveRows as ba, handleMoveRange as Oa, handleInsertRangeMoveRight as Ma, handleInsertRangeMoveDown as xa, handleDeleteRangeMoveUp as _a, handleDeleteRangeMoveLeft as ya, handleIRemoveCol as ga, handleIRemoveRow as qa, handleInsertCol as ha, handleInsertRow as Ua, RemoveDefinedNameCommand as Fa, SetDefinedNameCommand as Ba, RemoveSheetCommand as In, SetWorksheetNameCommand as Nn, DeleteRangeMoveLeftCommand as Rn, DeleteRangeMoveUpCommand as Sn, RemoveColCommand as An, RemoveRowCommand as Cn, InsertRangeMoveDownCommand as Dn, InsertRangeMoveRightCommand as bn, InsertColCommand as On, InsertRowCommand as Mn, MoveColsCommand as xn, MoveRowsCommand as _n, MoveRangeCommand as yn, RemoveSheetMutation as Ut, InsertSheetMutation as Ft, SetRangeCustomMetadataCommand as gn, MoveRangeMutation as $t, MoveRowsMutation as zt, MoveColsMutation as Zt, ReorderRangeMutation as Jt, RemoveRowMutation as ea, RemoveColMutation as ta, InsertColMutation as aa, InsertRowMutation as na, SetRowHiddenMutation as ia, SetRowVisibleMutation as ra, SetWorksheetActiveOperation as va, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as At, RefRangeService as qn, handleDefaultRangeChangeWithEffectRefCommands as oa, getSeparateEffectedRangesOnCommand as hn, handleCommonDefaultRangeChangeWithEffectRefCommands as Un, UniverSheetsPlugin as Fn } from "@univerjs/sheets";
|
|
6
|
+
import { serializeRange as De, LexerTreeBuilder as Fe, FormulaDataModel as Be, ErrorType as Q, SetImageFormulaDataMutation as Bn, IActiveDirtyManagerService as Va, RegisterOtherFormulaService as vn, SetFormulaCalculationStartMutation as we, SetFormulaStringBatchCalculationMutation as Vn, ENGINE_FORMULA_RETURN_DEPENDENCY_TREE as Gn, ENGINE_FORMULA_CYCLE_REFERENCE_COUNT as Hn, SetFormulaCalculationStopMutation as ua, SetFormulaCalculationNotificationMutation as wn, FormulaExecuteStageType as Ye, FormulaExecutedStateType as ye, SetTriggerFormulaCalculationStartMutation as et, sequenceNodeType as ie, deserializeRangeWithSheetWithCache as Ie, serializeRangeToRefString as Pt, IDefinedNamesService as Tt, generateStringWithSequence as tt, SetDefinedNameMutation as be, SetFormulaDataMutation as Xe, SetArrayFormulaDataMutation as Bt, initSheetFormulaData as ma, RemoveDefinedNameMutation as vt, IFunctionService as Et, SetFormulaCalculationResultMutation as Yn, stripErrorMargin as Xn, FunctionType as t, FUNCTION_NAMES_ARRAY as fa, FUNCTION_NAMES_COMPATIBILITY as y, FUNCTION_NAMES_CUBE as Le, FUNCTION_NAMES_DATABASE as $, FUNCTION_NAMES_DATE as v, FUNCTION_NAMES_ENGINEERING as C, FUNCTION_NAMES_FINANCIAL as D, FUNCTION_NAMES_INFORMATION as G, FUNCTION_NAMES_LOGICAL as W, FUNCTION_NAMES_LOOKUP as q, FUNCTION_NAMES_MATH as E, FUNCTION_NAMES_STATISTICAL as s, FUNCTION_NAMES_TEXT as b, FUNCTION_NAMES_WEB as Ct, isReferenceStrings as Wn, functionArray as Kn, functionCompatibility as kn, functionCube as Qn, functionDatabase as jn, functionDate as $n, functionEngineering as zn, functionFinancial as Zn, functionInformation as Jn, functionLogical as ei, functionLookup as ti, functionMath as ai, functionMeta as ni, functionStatistical as ii, functionText as ri, functionUniver as oi, functionWeb as ui, OtherFormulaMarkDirty as mi, SetSuperTableMutation as fi, RemoveSuperTableMutation as ci, serializeRangeWithSheet as at, ISuperTableService as li, serializeRangeWithSpreadsheet as ca, CustomFunction as Vt, AsyncCustomFunction as Ga, UniverFormulaEnginePlugin as si, IFormulaCurrentConfigService as di, Lexer as pi, AstTreeBuilder as Li, Interpreter as Pi, generateExecuteAstNodeData as Ti, getObjectValue as Ei } from "@univerjs/engine-formula";
|
|
7
|
+
import { BehaviorSubject as Ii, map as Ni } from "rxjs";
|
|
8
|
+
import { IRPCChannelService as Ha, fromModule as Ri, toModule as Si } from "@univerjs/rpc";
|
|
9
|
+
const Ai = {
|
|
10
10
|
id: "formula.command.insert-function",
|
|
11
|
-
type:
|
|
11
|
+
type: Pa.COMMAND,
|
|
12
12
|
handler: async (a, e) => {
|
|
13
13
|
const { list: n, listOfRangeHasNumber: i } = e, r = a.get(ue), o = new V();
|
|
14
14
|
n.forEach((m) => {
|
|
15
|
-
const { range: f, primary: c, formula: l } = m, { row: p, column:
|
|
16
|
-
o.setValue(p,
|
|
15
|
+
const { range: f, primary: c, formula: l } = m, { row: p, column: T } = c, L = Yt(6);
|
|
16
|
+
o.setValue(p, T, {
|
|
17
17
|
f: l,
|
|
18
18
|
si: L
|
|
19
19
|
});
|
|
20
|
-
const { startRow:
|
|
21
|
-
for (let
|
|
20
|
+
const { startRow: I, startColumn: A, endRow: R, endColumn: d } = f;
|
|
21
|
+
for (let S = I; S <= R; S++)
|
|
22
22
|
for (let N = A; N <= d; N++)
|
|
23
|
-
(
|
|
23
|
+
(S !== p || N !== T) && o.setValue(S, N, {
|
|
24
24
|
si: L
|
|
25
25
|
});
|
|
26
26
|
}), i && i.length > 0 && i.forEach((m) => {
|
|
@@ -32,94 +32,178 @@ const Ti = {
|
|
|
32
32
|
const u = {
|
|
33
33
|
value: o.getData()
|
|
34
34
|
};
|
|
35
|
-
return r.executeCommand(
|
|
35
|
+
return r.executeCommand(Ra.id, u);
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, Ci = {
|
|
38
38
|
id: "sheets-formula.command.quick-sum",
|
|
39
|
-
type:
|
|
39
|
+
type: Pa.COMMAND,
|
|
40
40
|
handler: async (a) => {
|
|
41
|
-
const n = a.get(
|
|
41
|
+
const n = a.get(ln).getCurrentLastSelection();
|
|
42
42
|
if (!n) return !1;
|
|
43
|
-
const i = a.get(
|
|
43
|
+
const i = a.get(Re), r = sn(i);
|
|
44
44
|
if (!r) return !1;
|
|
45
45
|
const o = n.range, { worksheet: u } = r;
|
|
46
|
-
let m =
|
|
46
|
+
let m = dn(o, u);
|
|
47
47
|
if (!m) return !1;
|
|
48
|
-
m =
|
|
49
|
-
const f =
|
|
48
|
+
m = St(m, u);
|
|
49
|
+
const f = pn({
|
|
50
50
|
startRow: m.startRow,
|
|
51
51
|
startColumn: m.startColumn,
|
|
52
52
|
endRow: o.endRow,
|
|
53
53
|
endColumn: o.endColumn
|
|
54
|
-
}, { left: !0, right: !0, up: !0, down: !0 }, u), c = new V(), l =
|
|
54
|
+
}, { left: !0, right: !0, up: !0, down: !0 }, u), c = new V(), l = St({
|
|
55
55
|
startRow: f.endRow,
|
|
56
56
|
endRow: f.endRow,
|
|
57
57
|
startColumn: f.startColumn,
|
|
58
58
|
endColumn: f.endColumn
|
|
59
59
|
}, u);
|
|
60
|
-
if (!
|
|
60
|
+
if (!ce.equals(l, f))
|
|
61
61
|
for (const L of u.iterateByColumn(l))
|
|
62
62
|
(!L.value || !u.cellHasValue(L.value)) && c.setValue(L.row, L.col, {
|
|
63
|
-
f: `=SUM(${
|
|
63
|
+
f: `=SUM(${De({
|
|
64
64
|
startColumn: L.col,
|
|
65
65
|
endColumn: L.col,
|
|
66
66
|
startRow: f.startRow,
|
|
67
67
|
endRow: L.row - 1
|
|
68
68
|
})})`
|
|
69
69
|
});
|
|
70
|
-
const p =
|
|
70
|
+
const p = St({
|
|
71
71
|
startRow: f.startRow,
|
|
72
72
|
startColumn: f.endColumn,
|
|
73
73
|
endRow: f.endRow,
|
|
74
74
|
endColumn: f.endColumn
|
|
75
75
|
}, u);
|
|
76
|
-
if (!
|
|
76
|
+
if (!ce.equals(p, f))
|
|
77
77
|
for (const L of u.iterateByRow(p))
|
|
78
78
|
(!L.value || !u.cellHasValue(L.value)) && c.setValue(L.row, L.col, {
|
|
79
|
-
f: `=SUM(${
|
|
79
|
+
f: `=SUM(${De({
|
|
80
80
|
startColumn: f.startColumn,
|
|
81
81
|
endColumn: L.col - 1,
|
|
82
82
|
startRow: L.row,
|
|
83
83
|
endRow: L.row
|
|
84
84
|
})})`
|
|
85
85
|
});
|
|
86
|
-
const
|
|
87
|
-
return (await
|
|
86
|
+
const T = a.get(ue);
|
|
87
|
+
return (await za([
|
|
88
88
|
{
|
|
89
|
-
id:
|
|
89
|
+
id: Ra.id,
|
|
90
90
|
params: {
|
|
91
91
|
range: f,
|
|
92
92
|
value: c.getMatrix()
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
id:
|
|
96
|
+
id: Ln.id,
|
|
97
97
|
params: {
|
|
98
98
|
unitId: r.unitId,
|
|
99
99
|
subUnitId: r.subUnitId,
|
|
100
100
|
selections: [{
|
|
101
101
|
range: f,
|
|
102
|
-
primary:
|
|
102
|
+
primary: ce.contains(f, n.primary) ? n.primary : { ...m, actualRow: m.startRow, actualColumn: m.startColumn },
|
|
103
103
|
style: null
|
|
104
104
|
}]
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
],
|
|
107
|
+
], T)).result;
|
|
108
108
|
}
|
|
109
|
-
},
|
|
110
|
-
var
|
|
111
|
-
const
|
|
112
|
-
var
|
|
113
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
109
|
+
}, ve = "sheets-formula.base.config";
|
|
110
|
+
var Ne = /* @__PURE__ */ ((a) => (a[a.FORCED = 0] = "FORCED", a[a.WHEN_EMPTY = 1] = "WHEN_EMPTY", a[a.NO_CALCULATION = 2] = "NO_CALCULATION", a))(Ne || {});
|
|
111
|
+
const la = {}, Di = "sheets-formula.remote.config", sa = {};
|
|
112
|
+
var bi = Object.getOwnPropertyDescriptor, Oi = (a, e, n, i) => {
|
|
113
|
+
for (var r = i > 1 ? void 0 : i ? bi(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
114
114
|
(u = a[o]) && (r = u(r) || r);
|
|
115
115
|
return r;
|
|
116
|
-
},
|
|
117
|
-
let
|
|
116
|
+
}, da = (a, e) => (n, i) => e(n, i, a);
|
|
117
|
+
let nt = class extends z {
|
|
118
|
+
constructor(a, e) {
|
|
119
|
+
super(), this._autoFillService = a, this._lexerTreeBuilder = e, this._registerAutoFill();
|
|
120
|
+
}
|
|
121
|
+
_registerAutoFill() {
|
|
122
|
+
const a = {
|
|
123
|
+
type: jt.FORMULA,
|
|
124
|
+
priority: 1001,
|
|
125
|
+
match: (e) => Ee(e == null ? void 0 : e.f) || ze(e == null ? void 0 : e.si),
|
|
126
|
+
isContinue: (e, n) => e.type === jt.FORMULA,
|
|
127
|
+
applyFunctions: {
|
|
128
|
+
[Tn.COPY]: (e, n, i, r, o) => {
|
|
129
|
+
const { data: u, index: m } = e;
|
|
130
|
+
return this._fillCopyFormula(u, n, i, m, r, o);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
this._autoFillService.registerRule(a);
|
|
135
|
+
}
|
|
136
|
+
_fillCopyFormula(a, e, n, i, r, o) {
|
|
137
|
+
var c, l;
|
|
138
|
+
const u = xi(r), m = [], f = /* @__PURE__ */ new Map();
|
|
139
|
+
for (let p = 1; p <= e; p++) {
|
|
140
|
+
const T = (p - 1) % a.length, L = i[T], I = qe.deepClone(a[T]);
|
|
141
|
+
if (I) {
|
|
142
|
+
const A = ((c = a[T]) == null ? void 0 : c.f) || "", R = ((l = a[T]) == null ? void 0 : l.si) || "", d = Ee(A);
|
|
143
|
+
if (ze(R))
|
|
144
|
+
I.si = R, I.f = null, I.v = null, I.p = null, I.t = null, m.push(I);
|
|
145
|
+
else if (d) {
|
|
146
|
+
let N = f.get(T);
|
|
147
|
+
if (N)
|
|
148
|
+
I.si = N, I.f = null, I.v = null, I.p = null, I.t = null;
|
|
149
|
+
else {
|
|
150
|
+
N = Yt(6), f.set(T, N);
|
|
151
|
+
const { offsetX: P, offsetY: x } = Mi(u, e, n, o, L), M = this._lexerTreeBuilder.moveFormulaRefOffset(
|
|
152
|
+
A,
|
|
153
|
+
P,
|
|
154
|
+
x
|
|
155
|
+
);
|
|
156
|
+
I.si = N, I.f = M, I.v = null, I.p = null, I.t = null;
|
|
157
|
+
}
|
|
158
|
+
m.push(I);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return m;
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
nt = Oi([
|
|
166
|
+
da(0, Pn),
|
|
167
|
+
da(1, H(Fe))
|
|
168
|
+
], nt);
|
|
169
|
+
function Mi(a, e, n, i, r) {
|
|
170
|
+
const { source: o, target: u } = i, { rows: m } = u, { rows: f } = o;
|
|
171
|
+
let c = 0, l = 0;
|
|
172
|
+
switch (n) {
|
|
173
|
+
case fe.UP:
|
|
174
|
+
l = m[r] - f[r];
|
|
175
|
+
break;
|
|
176
|
+
case fe.RIGHT:
|
|
177
|
+
c = a;
|
|
178
|
+
break;
|
|
179
|
+
case fe.DOWN:
|
|
180
|
+
l = m[r] - f[r];
|
|
181
|
+
break;
|
|
182
|
+
case fe.LEFT:
|
|
183
|
+
c = -a * e;
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
return { offsetX: c, offsetY: l };
|
|
187
|
+
}
|
|
188
|
+
function xi(a) {
|
|
189
|
+
let e = 0;
|
|
190
|
+
for (const n in a)
|
|
191
|
+
a[n].forEach((i) => {
|
|
192
|
+
e += i.data.length;
|
|
193
|
+
});
|
|
194
|
+
return e;
|
|
195
|
+
}
|
|
196
|
+
var _i = Object.getOwnPropertyDescriptor, yi = (a, e, n, i) => {
|
|
197
|
+
for (var r = i > 1 ? void 0 : i ? _i(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
198
|
+
(u = a[o]) && (r = u(r) || r);
|
|
199
|
+
return r;
|
|
200
|
+
}, Dt = (a, e) => (n, i) => e(n, i, a);
|
|
201
|
+
let it = class extends z {
|
|
118
202
|
constructor(e, n, i) {
|
|
119
203
|
super();
|
|
120
204
|
K(this, "_errorValueCell", {
|
|
121
205
|
v: Q.VALUE,
|
|
122
|
-
t:
|
|
206
|
+
t: gt.STRING
|
|
123
207
|
});
|
|
124
208
|
K(this, "_refreshRender");
|
|
125
209
|
this._commandService = e, this._sheetInterceptorService = n, this._formulaDataModel = i, this._initialize();
|
|
@@ -130,7 +214,7 @@ let Ze = class extends ee {
|
|
|
130
214
|
_commandExecutedListener() {
|
|
131
215
|
this.disposeWithMe(
|
|
132
216
|
this._commandService.onCommandExecuted(async (e) => {
|
|
133
|
-
if (e.id ===
|
|
217
|
+
if (e.id === Bn.id) {
|
|
134
218
|
const n = e.params;
|
|
135
219
|
if (!n) return;
|
|
136
220
|
const { imageFormulaData: i } = n;
|
|
@@ -149,13 +233,13 @@ let Ze = class extends ee {
|
|
|
149
233
|
// eslint-disable-next-line max-lines-per-function
|
|
150
234
|
_initInterceptorCellContent() {
|
|
151
235
|
this.disposeWithMe(
|
|
152
|
-
this._sheetInterceptorService.intercept(
|
|
153
|
-
priority:
|
|
154
|
-
effect:
|
|
236
|
+
this._sheetInterceptorService.intercept(Sa.CELL_CONTENT, {
|
|
237
|
+
priority: En.CELL_IMAGE,
|
|
238
|
+
effect: qt.Value | qt.Style,
|
|
155
239
|
// eslint-disable-next-line max-lines-per-function
|
|
156
240
|
handler: (e, n, i) => {
|
|
157
|
-
var
|
|
158
|
-
const { unitId: r, subUnitId: o, row: u, col: m } = n, f = this._formulaDataModel.getUnitImageFormulaData(), c = (M = (
|
|
241
|
+
var x, M;
|
|
242
|
+
const { unitId: r, subUnitId: o, row: u, col: m } = n, f = this._formulaDataModel.getUnitImageFormulaData(), c = (M = (x = f == null ? void 0 : f[r]) == null ? void 0 : x[o]) == null ? void 0 : M.getValue(u, m);
|
|
159
243
|
if (!c)
|
|
160
244
|
return i(e);
|
|
161
245
|
const {
|
|
@@ -163,53 +247,53 @@ let Ze = class extends ee {
|
|
|
163
247
|
// altText,
|
|
164
248
|
// sizing,
|
|
165
249
|
height: p,
|
|
166
|
-
width:
|
|
250
|
+
width: T,
|
|
167
251
|
isErrorImage: L,
|
|
168
|
-
imageNaturalWidth:
|
|
252
|
+
imageNaturalWidth: I,
|
|
169
253
|
imageNaturalHeight: A
|
|
170
254
|
} = c;
|
|
171
255
|
if (L)
|
|
172
256
|
return i(this._errorValueCell);
|
|
173
|
-
const
|
|
257
|
+
const R = T || I, d = p || A, S = Za("", {}), N = {
|
|
174
258
|
unitId: r,
|
|
175
259
|
subUnitId: o,
|
|
176
|
-
drawingId:
|
|
177
|
-
drawingType:
|
|
178
|
-
imageSourceType:
|
|
260
|
+
drawingId: Yt(),
|
|
261
|
+
drawingType: on.DRAWING_IMAGE,
|
|
262
|
+
imageSourceType: rn.URL,
|
|
179
263
|
source: l,
|
|
180
264
|
transform: {
|
|
181
265
|
left: 0,
|
|
182
266
|
top: 0,
|
|
183
|
-
width:
|
|
267
|
+
width: R,
|
|
184
268
|
height: d
|
|
185
269
|
},
|
|
186
270
|
docTransform: {
|
|
187
271
|
size: {
|
|
188
|
-
width:
|
|
272
|
+
width: R,
|
|
189
273
|
height: d
|
|
190
274
|
},
|
|
191
275
|
positionH: {
|
|
192
|
-
relativeFrom:
|
|
276
|
+
relativeFrom: nn.PAGE,
|
|
193
277
|
posOffset: 0
|
|
194
278
|
},
|
|
195
279
|
positionV: {
|
|
196
|
-
relativeFrom:
|
|
280
|
+
relativeFrom: an.PARAGRAPH,
|
|
197
281
|
posOffset: 0
|
|
198
282
|
},
|
|
199
283
|
angle: 0
|
|
200
284
|
},
|
|
201
|
-
behindDoc:
|
|
285
|
+
behindDoc: tn.FALSE,
|
|
202
286
|
title: "",
|
|
203
287
|
description: "",
|
|
204
|
-
layoutType:
|
|
288
|
+
layoutType: en.INLINE,
|
|
205
289
|
// Insert inline drawing by default.
|
|
206
|
-
wrapText:
|
|
290
|
+
wrapText: Ja.BOTH_SIDES,
|
|
207
291
|
distB: 0,
|
|
208
292
|
distL: 0,
|
|
209
293
|
distR: 0,
|
|
210
294
|
distT: 0
|
|
211
|
-
}, P =
|
|
212
|
-
documentDataModel:
|
|
295
|
+
}, P = un.drawing.add({
|
|
296
|
+
documentDataModel: S,
|
|
213
297
|
drawings: [N],
|
|
214
298
|
selection: {
|
|
215
299
|
collapsed: !0,
|
|
@@ -217,9 +301,9 @@ let Ze = class extends ee {
|
|
|
217
301
|
endOffset: 0
|
|
218
302
|
}
|
|
219
303
|
});
|
|
220
|
-
return P ? (
|
|
304
|
+
return P ? (S.apply(P), i({
|
|
221
305
|
...e,
|
|
222
|
-
p:
|
|
306
|
+
p: S.getSnapshot()
|
|
223
307
|
})) : i(this._errorValueCell);
|
|
224
308
|
}
|
|
225
309
|
})
|
|
@@ -256,18 +340,18 @@ let Ze = class extends ee {
|
|
|
256
340
|
this._refreshRender = e;
|
|
257
341
|
}
|
|
258
342
|
};
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
],
|
|
264
|
-
var
|
|
265
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
343
|
+
it = yi([
|
|
344
|
+
Dt(0, ue),
|
|
345
|
+
Dt(1, H(Lt)),
|
|
346
|
+
Dt(2, H(Be))
|
|
347
|
+
], it);
|
|
348
|
+
var gi = Object.getOwnPropertyDescriptor, qi = (a, e, n, i) => {
|
|
349
|
+
for (var r = i > 1 ? void 0 : i ? gi(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
266
350
|
(u = a[o]) && (r = u(r) || r);
|
|
267
351
|
return r;
|
|
268
|
-
},
|
|
269
|
-
const
|
|
270
|
-
let
|
|
352
|
+
}, Pe = (a, e) => (n, i) => e(n, i, a);
|
|
353
|
+
const pa = { done: 0, count: 0 }, bt = { onlyLocal: !0 };
|
|
354
|
+
let he = class extends z {
|
|
271
355
|
constructor(e, n, i, r, o, u, m) {
|
|
272
356
|
super();
|
|
273
357
|
K(this, "_waitingCommandQueue", []);
|
|
@@ -286,7 +370,7 @@ let xe = class extends ee {
|
|
|
286
370
|
K(this, "_doneCalculationTaskCount", 0);
|
|
287
371
|
K(this, "_executionInProgressParams", null);
|
|
288
372
|
K(this, "_restartCalculation", !1);
|
|
289
|
-
K(this, "_progress$", new
|
|
373
|
+
K(this, "_progress$", new Ii(pa));
|
|
290
374
|
K(this, "progress$", this._progress$.asObservable());
|
|
291
375
|
this._commandService = e, this._activeDirtyManagerService = n, this._logService = i, this._configService = r, this._formulaDataModel = o, this._localeService = u, this._registerOtherFormulaService = m, this._commandExecutedListener(), this._initialExecuteFormulaProcessListener(), this._initialExecuteFormula();
|
|
292
376
|
}
|
|
@@ -315,23 +399,23 @@ let xe = class extends ee {
|
|
|
315
399
|
this._doneCalculationTaskCount = 0, this._totalCalculationTaskCount = 0, this._emitProgress();
|
|
316
400
|
}
|
|
317
401
|
dispose() {
|
|
318
|
-
super.dispose(), this._progress$.next(
|
|
402
|
+
super.dispose(), this._progress$.next(pa), this._progress$.complete(), clearTimeout(this._setTimeoutKey);
|
|
319
403
|
}
|
|
320
404
|
_getCalculationMode() {
|
|
321
405
|
var n;
|
|
322
|
-
const e = this._configService.getConfig(
|
|
323
|
-
return (n = e == null ? void 0 : e.initialFormulaComputing) != null ? n :
|
|
406
|
+
const e = this._configService.getConfig(ve);
|
|
407
|
+
return (n = e == null ? void 0 : e.initialFormulaComputing) != null ? n : Ne.WHEN_EMPTY;
|
|
324
408
|
}
|
|
325
409
|
_commandExecutedListener() {
|
|
326
410
|
this.disposeWithMe(
|
|
327
411
|
this._commandService.beforeCommandExecuted((e) => {
|
|
328
|
-
if (e.id ===
|
|
412
|
+
if (e.id === we.id || e.id === Vn.id) {
|
|
329
413
|
const n = e.params;
|
|
330
|
-
if (e.id ===
|
|
331
|
-
const i = this._configService.getConfig(
|
|
414
|
+
if (e.id === we.id) {
|
|
415
|
+
const i = this._configService.getConfig(Gn) || !1;
|
|
332
416
|
n.isCalculateTreeModel = i;
|
|
333
417
|
}
|
|
334
|
-
n.maxIteration = this._configService.getConfig(
|
|
418
|
+
n.maxIteration = this._configService.getConfig(Hn), n.rowData = this._formulaDataModel.getHiddenRowsFiltered();
|
|
335
419
|
}
|
|
336
420
|
})
|
|
337
421
|
), this.disposeWithMe(
|
|
@@ -339,12 +423,12 @@ let xe = class extends ee {
|
|
|
339
423
|
if (this._activeDirtyManagerService.get(e.id)) {
|
|
340
424
|
if (e.id === j.id) {
|
|
341
425
|
const i = e.params;
|
|
342
|
-
if (n && n.onlyLocal === !0 || i.trigger ===
|
|
426
|
+
if (n && n.onlyLocal === !0 || i.trigger === Kt.id || i.trigger === Aa.id || i.trigger === Ca.id)
|
|
343
427
|
return;
|
|
344
428
|
}
|
|
345
429
|
this._waitingCommandQueue.push(e), clearTimeout(this._setTimeoutKey), this._setTimeoutKey = setTimeout(() => {
|
|
346
430
|
const i = this._generateDirty(this._waitingCommandQueue);
|
|
347
|
-
this._executingDirtyData = this._mergeDirty(this._executingDirtyData, i), this._executionInProgressParams == null ? this._commandService.executeCommand(
|
|
431
|
+
this._executingDirtyData = this._mergeDirty(this._executingDirtyData, i), this._executionInProgressParams == null ? this._commandService.executeCommand(we.id, { ...this._executingDirtyData }, bt) : (this._restartCalculation = !0, this._commandService.executeCommand(ua.id, {})), this._waitingCommandQueue = [];
|
|
348
432
|
}, 100);
|
|
349
433
|
}
|
|
350
434
|
})
|
|
@@ -357,8 +441,8 @@ let xe = class extends ee {
|
|
|
357
441
|
const l = this._activeDirtyManagerService.get(c.id);
|
|
358
442
|
if (l == null)
|
|
359
443
|
continue;
|
|
360
|
-
const p = l.getDirtyData(c), { dirtyRanges:
|
|
361
|
-
|
|
444
|
+
const p = l.getDirtyData(c), { dirtyRanges: T, dirtyNameMap: L, dirtyDefinedNameMap: I, dirtyUnitFeatureMap: A, dirtyUnitOtherFormulaMap: R, clearDependencyTreeCache: d, forceCalculation: S = !1 } = p;
|
|
445
|
+
T != null && this._mergeDirtyRanges(n, T), L != null && this._mergeDirtyNameMap(i, L), I != null && this._mergeDirtyNameMap(r, I), A != null && this._mergeDirtyUnitFeatureOrOtherFormulaMap(o, A), R != null && this._mergeDirtyUnitFeatureOrOtherFormulaMap(u, R), d != null && this._mergeDirtyNameMap(m, d), f = f || S;
|
|
362
446
|
}
|
|
363
447
|
return {
|
|
364
448
|
dirtyRanges: n,
|
|
@@ -395,8 +479,8 @@ let xe = class extends ee {
|
|
|
395
479
|
let r = !1;
|
|
396
480
|
for (const o of e)
|
|
397
481
|
if (i.unitId === o.unitId && i.sheetId === o.sheetId) {
|
|
398
|
-
const { startRow: u, startColumn: m, endRow: f, endColumn: c } = i.range, { startRow: l, startColumn: p, endRow:
|
|
399
|
-
if (u === l && m === p && f ===
|
|
482
|
+
const { startRow: u, startColumn: m, endRow: f, endColumn: c } = i.range, { startRow: l, startColumn: p, endRow: T, endColumn: L } = o.range;
|
|
483
|
+
if (u === l && m === p && f === T && c === L) {
|
|
400
484
|
r = !0;
|
|
401
485
|
break;
|
|
402
486
|
}
|
|
@@ -427,28 +511,28 @@ let xe = class extends ee {
|
|
|
427
511
|
this.disposeWithMe(
|
|
428
512
|
// eslint-disable-next-line max-lines-per-function, complexity
|
|
429
513
|
this._commandService.onCommandExecuted((i) => {
|
|
430
|
-
if (i.id ===
|
|
514
|
+
if (i.id === ua.id && this.clearProgress(), i.id !== wn.id)
|
|
431
515
|
return;
|
|
432
516
|
const r = i.params;
|
|
433
517
|
if (r.stageInfo != null) {
|
|
434
518
|
const {
|
|
435
519
|
stage: o
|
|
436
520
|
} = r.stageInfo;
|
|
437
|
-
if (o ===
|
|
521
|
+
if (o === Ye.START)
|
|
438
522
|
n === 0 && (this._startExecutionTime = performance.now()), n++, e !== null && (clearTimeout(e), e = null), e = setTimeout(() => {
|
|
439
523
|
e = null, this._startProgress();
|
|
440
524
|
}, 1e3);
|
|
441
|
-
else if (o ===
|
|
525
|
+
else if (o === Ye.CURRENTLY_CALCULATING) {
|
|
442
526
|
if (this._executionInProgressParams = r.stageInfo, e === null) {
|
|
443
527
|
const u = this._localeService.t("formula.progress.calculating");
|
|
444
528
|
this._calculateProgress(u);
|
|
445
529
|
}
|
|
446
|
-
} else if (o ===
|
|
530
|
+
} else if (o === Ye.START_DEPENDENCY_ARRAY_FORMULA) {
|
|
447
531
|
if (this._executionInProgressParams = r.stageInfo, e === null) {
|
|
448
532
|
const u = this._localeService.t("formula.progress.array-analysis");
|
|
449
533
|
this._calculateProgress(u);
|
|
450
534
|
}
|
|
451
|
-
} else if (o ===
|
|
535
|
+
} else if (o === Ye.CURRENTLY_CALCULATING_ARRAY_FORMULA && (this._executionInProgressParams = r.stageInfo, e === null)) {
|
|
452
536
|
const u = this._localeService.t("formula.progress.array-calculation");
|
|
453
537
|
this._calculateProgress(u);
|
|
454
538
|
}
|
|
@@ -456,25 +540,25 @@ let xe = class extends ee {
|
|
|
456
540
|
const o = r.functionsExecutedState;
|
|
457
541
|
let u = "";
|
|
458
542
|
switch (n--, o) {
|
|
459
|
-
case
|
|
543
|
+
case ye.NOT_EXECUTED:
|
|
460
544
|
u = "No tasks are being executed anymore", this._resetExecutingDirtyData();
|
|
461
545
|
break;
|
|
462
|
-
case
|
|
546
|
+
case ye.STOP_EXECUTION:
|
|
463
547
|
u = "The execution of the formula has been stopped", n = 0;
|
|
464
548
|
break;
|
|
465
|
-
case
|
|
549
|
+
case ye.SUCCESS:
|
|
466
550
|
u = "Formula calculation succeeded", (n === 0 || n === -1) && (u += `. Total time consumed: ${performance.now() - this._startExecutionTime} ms`), this._resetExecutingDirtyData();
|
|
467
551
|
break;
|
|
468
|
-
case
|
|
552
|
+
case ye.INITIAL:
|
|
469
553
|
u = "Waiting for calculation", this._resetExecutingDirtyData();
|
|
470
554
|
break;
|
|
471
555
|
}
|
|
472
|
-
(n === 0 || n === -1) && (e ? (clearTimeout(e), e = null, this.clearProgress()) : this._completeProgress(), n = 0, this._doneCalculationTaskCount = 0, this._totalCalculationTaskCount = 0), o ===
|
|
473
|
-
|
|
556
|
+
(n === 0 || n === -1) && (e ? (clearTimeout(e), e = null, this.clearProgress()) : this._completeProgress(), n = 0, this._doneCalculationTaskCount = 0, this._totalCalculationTaskCount = 0), o === ye.STOP_EXECUTION && this._restartCalculation ? (this._restartCalculation = !1, this._commandService.executeCommand(
|
|
557
|
+
we.id,
|
|
474
558
|
{
|
|
475
559
|
...this._executingDirtyData
|
|
476
560
|
},
|
|
477
|
-
|
|
561
|
+
bt
|
|
478
562
|
)) : this._executionInProgressParams = null, this._logService.debug("[TriggerCalculationController]", u);
|
|
479
563
|
}
|
|
480
564
|
})
|
|
@@ -493,10 +577,10 @@ let xe = class extends ee {
|
|
|
493
577
|
}
|
|
494
578
|
_initialExecuteFormula() {
|
|
495
579
|
const e = this._getCalculationMode(), n = this._getDirtyDataByCalculationMode(e);
|
|
496
|
-
this._commandService.executeCommand(
|
|
580
|
+
this._commandService.executeCommand(et.id, n, bt), this._registerOtherFormulaService.calculateStarted$.next(!0);
|
|
497
581
|
}
|
|
498
582
|
_getDirtyDataByCalculationMode(e) {
|
|
499
|
-
const n = e ===
|
|
583
|
+
const n = e === Ne.FORCED, i = e === Ne.WHEN_EMPTY ? this._formulaDataModel.getFormulaDirtyRanges() : [];
|
|
500
584
|
return {
|
|
501
585
|
forceCalculation: n,
|
|
502
586
|
dirtyRanges: i,
|
|
@@ -508,20 +592,20 @@ let xe = class extends ee {
|
|
|
508
592
|
};
|
|
509
593
|
}
|
|
510
594
|
};
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
],
|
|
520
|
-
function
|
|
595
|
+
he = qi([
|
|
596
|
+
Pe(0, ue),
|
|
597
|
+
Pe(1, Va),
|
|
598
|
+
Pe(2, mn),
|
|
599
|
+
Pe(3, xe),
|
|
600
|
+
Pe(4, H(Be)),
|
|
601
|
+
Pe(5, H(Xt)),
|
|
602
|
+
Pe(6, H(vn))
|
|
603
|
+
], he);
|
|
604
|
+
function hi(a, e, n) {
|
|
521
605
|
var i;
|
|
522
606
|
return a == null || a[e] == null || ((i = a[e]) == null ? void 0 : i[n]) == null;
|
|
523
607
|
}
|
|
524
|
-
function
|
|
608
|
+
function Ot(a, e, n) {
|
|
525
609
|
var i;
|
|
526
610
|
if (n) {
|
|
527
611
|
if (a && a[e] && ((i = a[e]) != null && i[n]))
|
|
@@ -535,19 +619,19 @@ function Ct(a, e, n) {
|
|
|
535
619
|
[e]: null
|
|
536
620
|
};
|
|
537
621
|
}
|
|
538
|
-
var
|
|
539
|
-
const
|
|
622
|
+
var g = /* @__PURE__ */ ((a) => (a[a.MoveRange = 0] = "MoveRange", a[a.MoveRows = 1] = "MoveRows", a[a.MoveCols = 2] = "MoveCols", a[a.InsertRow = 3] = "InsertRow", a[a.InsertColumn = 4] = "InsertColumn", a[a.RemoveRow = 5] = "RemoveRow", a[a.RemoveColumn = 6] = "RemoveColumn", a[a.DeleteMoveLeft = 7] = "DeleteMoveLeft", a[a.DeleteMoveUp = 8] = "DeleteMoveUp", a[a.InsertMoveDown = 9] = "InsertMoveDown", a[a.InsertMoveRight = 10] = "InsertMoveRight", a[a.SetName = 11] = "SetName", a[a.RemoveSheet = 12] = "RemoveSheet", a[a.SetDefinedName = 13] = "SetDefinedName", a[a.RemoveDefinedName = 14] = "RemoveDefinedName", a))(g || {});
|
|
623
|
+
const Ui = [
|
|
540
624
|
11,
|
|
541
625
|
12,
|
|
542
626
|
13,
|
|
543
627
|
14
|
|
544
628
|
/* RemoveDefinedName */
|
|
545
629
|
];
|
|
546
|
-
function
|
|
630
|
+
function Fi(a, e, n) {
|
|
547
631
|
const { type: i } = n;
|
|
548
|
-
return
|
|
632
|
+
return Ui.includes(i) ? Bi(a, e) : vi(a, e, n);
|
|
549
633
|
}
|
|
550
|
-
function
|
|
634
|
+
function Bi(a, e) {
|
|
551
635
|
const n = [], i = [];
|
|
552
636
|
return Object.keys(e).forEach((r) => {
|
|
553
637
|
const o = e[r], u = a[r];
|
|
@@ -555,29 +639,29 @@ function Oi(a, e) {
|
|
|
555
639
|
return !0;
|
|
556
640
|
Object.keys(o).forEach((m) => {
|
|
557
641
|
const f = new V(o[m] || {}), c = new V(u[m] || {}), l = new V(), p = new V();
|
|
558
|
-
if (f.forValue((
|
|
559
|
-
if (
|
|
642
|
+
if (f.forValue((R, d, S) => {
|
|
643
|
+
if (S == null)
|
|
560
644
|
return !0;
|
|
561
|
-
const N =
|
|
562
|
-
N !== null && (l.setValue(
|
|
645
|
+
const N = Ue(S);
|
|
646
|
+
N !== null && (l.setValue(R, d, N), p.setValue(R, d, c.getValue(R, d)));
|
|
563
647
|
}), l.getSizeOf() === 0)
|
|
564
648
|
return;
|
|
565
|
-
const
|
|
649
|
+
const T = {
|
|
566
650
|
subUnitId: m,
|
|
567
651
|
unitId: r,
|
|
568
652
|
cellValue: l.getMatrix()
|
|
569
653
|
}, L = {
|
|
570
654
|
id: j.id,
|
|
571
|
-
params:
|
|
655
|
+
params: T
|
|
572
656
|
};
|
|
573
657
|
i.push(L);
|
|
574
|
-
const
|
|
658
|
+
const I = {
|
|
575
659
|
subUnitId: m,
|
|
576
660
|
unitId: r,
|
|
577
661
|
cellValue: p.getMatrix()
|
|
578
662
|
}, A = {
|
|
579
663
|
id: j.id,
|
|
580
|
-
params:
|
|
664
|
+
params: I
|
|
581
665
|
};
|
|
582
666
|
n.push(A);
|
|
583
667
|
});
|
|
@@ -586,8 +670,8 @@ function Oi(a, e) {
|
|
|
586
670
|
redos: i
|
|
587
671
|
};
|
|
588
672
|
}
|
|
589
|
-
function
|
|
590
|
-
const { redoFormulaData: i, undoFormulaData: r } =
|
|
673
|
+
function vi(a, e, n) {
|
|
674
|
+
const { redoFormulaData: i, undoFormulaData: r } = Vi(a, e, n), o = [], u = [];
|
|
591
675
|
return Object.keys(i).forEach((m) => {
|
|
592
676
|
Object.keys(i[m]).forEach((f) => {
|
|
593
677
|
if (Object.keys(i[m][f]).length !== 0) {
|
|
@@ -621,23 +705,23 @@ function Mi(a, e, n) {
|
|
|
621
705
|
redos: o
|
|
622
706
|
};
|
|
623
707
|
}
|
|
624
|
-
function
|
|
708
|
+
function Vi(a, e, n) {
|
|
625
709
|
const i = {}, r = {}, { unitId: o, sheetId: u } = n;
|
|
626
710
|
return (/* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(e)])).forEach((f) => {
|
|
627
|
-
if (
|
|
711
|
+
if (hi(a, f, u))
|
|
628
712
|
return;
|
|
629
713
|
(/* @__PURE__ */ new Set([
|
|
630
714
|
...Object.keys(a[f] || {}),
|
|
631
715
|
...Object.keys(e[f] || {})
|
|
632
716
|
])).forEach((l) => {
|
|
633
|
-
var
|
|
634
|
-
const p = (
|
|
717
|
+
var S, N;
|
|
718
|
+
const p = (S = a[f]) == null ? void 0 : S[l], T = (N = e[f]) == null ? void 0 : N[l], L = new V(p || {}), I = new V(T || {});
|
|
635
719
|
let A = [];
|
|
636
|
-
f !== o || l !== u ? A =
|
|
637
|
-
const
|
|
720
|
+
f !== o || l !== u ? A = Hi(I) : A = Gi(L, I, n);
|
|
721
|
+
const R = tr(A, L, I), d = ar(A, L);
|
|
638
722
|
i[f] || (i[f] = {}), r[f] || (r[f] = {}), i[f][l] = {
|
|
639
723
|
...i[f][l],
|
|
640
|
-
...
|
|
724
|
+
...R
|
|
641
725
|
}, r[f][l] = {
|
|
642
726
|
...r[f][l],
|
|
643
727
|
...d
|
|
@@ -648,83 +732,83 @@ function xi(a, e, n) {
|
|
|
648
732
|
undoFormulaData: r
|
|
649
733
|
};
|
|
650
734
|
}
|
|
651
|
-
function
|
|
735
|
+
function Gi(a, e, n) {
|
|
652
736
|
const { type: i, from: r, to: o, range: u } = n, m = [];
|
|
653
737
|
return a.forValue((f, c, l) => {
|
|
654
|
-
if (l == null || !
|
|
655
|
-
const p =
|
|
656
|
-
let
|
|
738
|
+
if (l == null || !wa(l)) return !0;
|
|
739
|
+
const p = Ta(f, c);
|
|
740
|
+
let T = null, L = !1;
|
|
657
741
|
if ([
|
|
658
742
|
0,
|
|
659
743
|
1,
|
|
660
744
|
2
|
|
661
745
|
/* MoveCols */
|
|
662
746
|
].includes(i))
|
|
663
|
-
|
|
747
|
+
T = wi(i, r, o, p);
|
|
664
748
|
else if (u != null) {
|
|
665
|
-
const
|
|
666
|
-
|
|
749
|
+
const I = Yi(p, n);
|
|
750
|
+
T = I.newCell, L = I.isReverse;
|
|
667
751
|
}
|
|
668
|
-
if (
|
|
752
|
+
if (qe.diffValue(p, T) && !e.getValue(f, c))
|
|
669
753
|
return !0;
|
|
670
|
-
L ? m.unshift({ oldCell: p, newCell:
|
|
754
|
+
L ? m.unshift({ oldCell: p, newCell: T }) : m.push({ oldCell: p, newCell: T });
|
|
671
755
|
}), m;
|
|
672
756
|
}
|
|
673
|
-
function
|
|
757
|
+
function Hi(a) {
|
|
674
758
|
const e = [];
|
|
675
759
|
return a.forValue((n, i, r) => {
|
|
676
|
-
if (r == null || !
|
|
677
|
-
const o =
|
|
760
|
+
if (r == null || !wa(r)) return !0;
|
|
761
|
+
const o = Ta(n, i);
|
|
678
762
|
e.push({ oldCell: o, newCell: o });
|
|
679
763
|
}), e;
|
|
680
764
|
}
|
|
681
|
-
function
|
|
765
|
+
function wi(a, e, n, i) {
|
|
682
766
|
if (e == null || n == null)
|
|
683
767
|
return null;
|
|
684
768
|
switch (a) {
|
|
685
769
|
case 0:
|
|
686
|
-
return
|
|
770
|
+
return Xi(e, n, i);
|
|
687
771
|
case 1:
|
|
688
|
-
return
|
|
772
|
+
return Wi(e, n, i);
|
|
689
773
|
case 2:
|
|
690
|
-
return
|
|
774
|
+
return Ki(e, n, i);
|
|
691
775
|
default:
|
|
692
776
|
return null;
|
|
693
777
|
}
|
|
694
778
|
}
|
|
695
|
-
function
|
|
779
|
+
function Yi(a, e) {
|
|
696
780
|
const { type: n, rangeFilteredRows: i } = e, r = e.range;
|
|
697
781
|
let o = null, u = !1;
|
|
698
782
|
switch (n) {
|
|
699
783
|
case 3:
|
|
700
|
-
o =
|
|
784
|
+
o = ki(r, a), u = !0;
|
|
701
785
|
break;
|
|
702
786
|
case 4:
|
|
703
|
-
o =
|
|
787
|
+
o = Qi(r, a), u = !0;
|
|
704
788
|
break;
|
|
705
789
|
case 5:
|
|
706
|
-
o =
|
|
790
|
+
o = ji(r, a, i);
|
|
707
791
|
break;
|
|
708
792
|
case 6:
|
|
709
|
-
o =
|
|
793
|
+
o = $i(r, a);
|
|
710
794
|
break;
|
|
711
795
|
case 7:
|
|
712
|
-
o =
|
|
796
|
+
o = zi(r, a);
|
|
713
797
|
break;
|
|
714
798
|
case 8:
|
|
715
|
-
o =
|
|
799
|
+
o = Zi(r, a);
|
|
716
800
|
break;
|
|
717
801
|
case 9:
|
|
718
|
-
o =
|
|
802
|
+
o = Ji(r, a), u = !0;
|
|
719
803
|
break;
|
|
720
804
|
case 10:
|
|
721
|
-
o =
|
|
805
|
+
o = er(r, a), u = !0;
|
|
722
806
|
break;
|
|
723
807
|
}
|
|
724
808
|
return { newCell: o, isReverse: u };
|
|
725
809
|
}
|
|
726
|
-
function
|
|
727
|
-
const i =
|
|
810
|
+
function Xi(a, e, n) {
|
|
811
|
+
const i = Oa(
|
|
728
812
|
{
|
|
729
813
|
id: w.MoveRangeCommandId,
|
|
730
814
|
params: { toRange: e, fromRange: a }
|
|
@@ -733,8 +817,8 @@ function hi(a, e, n) {
|
|
|
733
817
|
);
|
|
734
818
|
return Y(i, n);
|
|
735
819
|
}
|
|
736
|
-
function
|
|
737
|
-
const i =
|
|
820
|
+
function Wi(a, e, n) {
|
|
821
|
+
const i = ba(
|
|
738
822
|
{
|
|
739
823
|
id: w.MoveRowsCommandId,
|
|
740
824
|
params: { toRange: e, fromRange: a }
|
|
@@ -743,8 +827,8 @@ function Ui(a, e, n) {
|
|
|
743
827
|
);
|
|
744
828
|
return Y(i, n);
|
|
745
829
|
}
|
|
746
|
-
function
|
|
747
|
-
const i =
|
|
830
|
+
function Ki(a, e, n) {
|
|
831
|
+
const i = Da(
|
|
748
832
|
{
|
|
749
833
|
id: w.MoveColsCommandId,
|
|
750
834
|
params: { toRange: e, fromRange: a }
|
|
@@ -753,28 +837,28 @@ function Fi(a, e, n) {
|
|
|
753
837
|
);
|
|
754
838
|
return Y(i, n);
|
|
755
839
|
}
|
|
756
|
-
function
|
|
757
|
-
const n =
|
|
840
|
+
function ki(a, e) {
|
|
841
|
+
const n = Ua(
|
|
758
842
|
{
|
|
759
843
|
id: w.InsertRowCommandId,
|
|
760
|
-
params: { range: a, unitId: "", subUnitId: "", direction:
|
|
844
|
+
params: { range: a, unitId: "", subUnitId: "", direction: fe.DOWN }
|
|
761
845
|
},
|
|
762
846
|
e
|
|
763
847
|
);
|
|
764
848
|
return Y(n, e);
|
|
765
849
|
}
|
|
766
|
-
function
|
|
767
|
-
const n =
|
|
850
|
+
function Qi(a, e) {
|
|
851
|
+
const n = ha(
|
|
768
852
|
{
|
|
769
853
|
id: w.InsertColCommandId,
|
|
770
|
-
params: { range: a, unitId: "", subUnitId: "", direction:
|
|
854
|
+
params: { range: a, unitId: "", subUnitId: "", direction: fe.RIGHT }
|
|
771
855
|
},
|
|
772
856
|
e
|
|
773
857
|
);
|
|
774
858
|
return Y(n, e);
|
|
775
859
|
}
|
|
776
|
-
function
|
|
777
|
-
const i =
|
|
860
|
+
function ji(a, e, n) {
|
|
861
|
+
const i = qa(
|
|
778
862
|
{
|
|
779
863
|
id: w.RemoveRowCommandId,
|
|
780
864
|
params: { range: a }
|
|
@@ -784,8 +868,8 @@ function Vi(a, e, n) {
|
|
|
784
868
|
);
|
|
785
869
|
return Y(i, e);
|
|
786
870
|
}
|
|
787
|
-
function
|
|
788
|
-
const n =
|
|
871
|
+
function $i(a, e) {
|
|
872
|
+
const n = ga(
|
|
789
873
|
{
|
|
790
874
|
id: w.RemoveColCommandId,
|
|
791
875
|
params: { range: a }
|
|
@@ -794,8 +878,8 @@ function Gi(a, e) {
|
|
|
794
878
|
);
|
|
795
879
|
return Y(n, e);
|
|
796
880
|
}
|
|
797
|
-
function
|
|
798
|
-
const n =
|
|
881
|
+
function zi(a, e) {
|
|
882
|
+
const n = ya(
|
|
799
883
|
{
|
|
800
884
|
id: w.DeleteRangeMoveLeftCommandId,
|
|
801
885
|
params: { range: a }
|
|
@@ -804,8 +888,8 @@ function Hi(a, e) {
|
|
|
804
888
|
);
|
|
805
889
|
return Y(n, e);
|
|
806
890
|
}
|
|
807
|
-
function
|
|
808
|
-
const n =
|
|
891
|
+
function Zi(a, e) {
|
|
892
|
+
const n = _a(
|
|
809
893
|
{
|
|
810
894
|
id: w.DeleteRangeMoveUpCommandId,
|
|
811
895
|
params: { range: a }
|
|
@@ -814,8 +898,8 @@ function wi(a, e) {
|
|
|
814
898
|
);
|
|
815
899
|
return Y(n, e);
|
|
816
900
|
}
|
|
817
|
-
function
|
|
818
|
-
const n =
|
|
901
|
+
function Ji(a, e) {
|
|
902
|
+
const n = xa(
|
|
819
903
|
{
|
|
820
904
|
id: w.InsertRangeMoveDownCommandId,
|
|
821
905
|
params: { range: a }
|
|
@@ -824,8 +908,8 @@ function Yi(a, e) {
|
|
|
824
908
|
);
|
|
825
909
|
return Y(n, e);
|
|
826
910
|
}
|
|
827
|
-
function
|
|
828
|
-
const n =
|
|
911
|
+
function er(a, e) {
|
|
912
|
+
const n = Ma(
|
|
829
913
|
{
|
|
830
914
|
id: w.InsertRangeMoveRightCommandId,
|
|
831
915
|
params: { range: a }
|
|
@@ -834,30 +918,30 @@ function Xi(a, e) {
|
|
|
834
918
|
);
|
|
835
919
|
return Y(n, e);
|
|
836
920
|
}
|
|
837
|
-
function
|
|
921
|
+
function tr(a, e, n) {
|
|
838
922
|
var r, o, u;
|
|
839
923
|
const i = new V({});
|
|
840
924
|
for (let m = 0; m < a.length; m++) {
|
|
841
925
|
const { oldCell: f, newCell: c } = a[m];
|
|
842
926
|
if ((r = i.getValue(f.startRow, f.startColumn)) != null && r.f || (o = i.getValue(f.startRow, f.startColumn)) != null && o.si || i.setValue(f.startRow, f.startColumn, { f: null, si: null }), c) {
|
|
843
|
-
const l = (u = n.getValue(f.startRow, f.startColumn)) != null ? u : e.getValue(f.startRow, f.startColumn), p =
|
|
927
|
+
const l = (u = n.getValue(f.startRow, f.startColumn)) != null ? u : e.getValue(f.startRow, f.startColumn), p = Ue(l);
|
|
844
928
|
i.setValue(c.startRow, c.startColumn, p);
|
|
845
929
|
}
|
|
846
930
|
}
|
|
847
931
|
return i.getMatrix();
|
|
848
932
|
}
|
|
849
|
-
function
|
|
933
|
+
function ar(a, e) {
|
|
850
934
|
const n = new V({});
|
|
851
935
|
for (let i = a.length - 1; i >= 0; i--) {
|
|
852
|
-
const { oldCell: r, newCell: o } = a[i], u = e.getValue(r.startRow, r.startColumn), m =
|
|
936
|
+
const { oldCell: r, newCell: o } = a[i], u = e.getValue(r.startRow, r.startColumn), m = Ue(u);
|
|
853
937
|
if (n.setValue(r.startRow, r.startColumn, m), o) {
|
|
854
|
-
const f = e.getValue(o.startRow, o.startColumn), c =
|
|
938
|
+
const f = e.getValue(o.startRow, o.startColumn), c = Ue(f);
|
|
855
939
|
n.setValue(o.startRow, o.startColumn, c != null ? c : { f: null, si: null });
|
|
856
940
|
}
|
|
857
941
|
}
|
|
858
942
|
return n.getMatrix();
|
|
859
943
|
}
|
|
860
|
-
function
|
|
944
|
+
function Ue(a) {
|
|
861
945
|
if (a === void 0)
|
|
862
946
|
return;
|
|
863
947
|
if (a === null)
|
|
@@ -865,7 +949,7 @@ function _e(a) {
|
|
|
865
949
|
f: null,
|
|
866
950
|
si: null
|
|
867
951
|
};
|
|
868
|
-
const { f: e, si: n, x: i = 0, y: r = 0 } = a, o =
|
|
952
|
+
const { f: e, si: n, x: i = 0, y: r = 0 } = a, o = Ee(e), u = ze(n);
|
|
869
953
|
if (!o && !u)
|
|
870
954
|
return {
|
|
871
955
|
f: null,
|
|
@@ -874,19 +958,19 @@ function _e(a) {
|
|
|
874
958
|
const m = {};
|
|
875
959
|
return u && (m.si = n), o && i === 0 && r === 0 && (m.f = e), m.f === void 0 && (m.f = null), m.si === void 0 && (m.si = null), m;
|
|
876
960
|
}
|
|
877
|
-
function
|
|
961
|
+
function nr(a, e) {
|
|
878
962
|
const n = new V({});
|
|
879
963
|
return new V(a).forValue((r, o, u) => {
|
|
880
964
|
var f;
|
|
881
|
-
const m =
|
|
965
|
+
const m = Ue(u);
|
|
882
966
|
m !== void 0 && (e && ((f = e[r]) != null && f[o]) && (m != null && m.f || m != null && m.si) && (m.v = null, m.t = null), n.setValue(r, o, m));
|
|
883
967
|
}), n.getMatrix();
|
|
884
968
|
}
|
|
885
|
-
function
|
|
886
|
-
const e = (a == null ? void 0 : a.f) || "", n = (a == null ? void 0 : a.si) || "", i =
|
|
969
|
+
function wa(a) {
|
|
970
|
+
const e = (a == null ? void 0 : a.f) || "", n = (a == null ? void 0 : a.si) || "", i = Ee(e), r = ze(n);
|
|
887
971
|
return !!(i || r);
|
|
888
972
|
}
|
|
889
|
-
function
|
|
973
|
+
function Ya(a, e, n, i, r, o) {
|
|
890
974
|
if ((r == null || r.length === 0) && (o == null || o.length === 0)) {
|
|
891
975
|
if (a === n && e === i)
|
|
892
976
|
return !0;
|
|
@@ -894,7 +978,7 @@ function Va(a, e, n, i, r, o) {
|
|
|
894
978
|
return !0;
|
|
895
979
|
return !1;
|
|
896
980
|
}
|
|
897
|
-
function
|
|
981
|
+
function Xa(a, e, n = 0, i = 0) {
|
|
898
982
|
const r = [];
|
|
899
983
|
for (let o = 0, u = a.length; o < u; o++) {
|
|
900
984
|
const m = a[o];
|
|
@@ -902,56 +986,56 @@ function Ga(a, e, n = 0, i = 0) {
|
|
|
902
986
|
r.push(m);
|
|
903
987
|
continue;
|
|
904
988
|
}
|
|
905
|
-
const { token: f } = m, c =
|
|
989
|
+
const { token: f } = m, c = Ie(f), { range: l, sheetName: p, unitId: T } = c, L = ce.moveOffset(l, n, i);
|
|
906
990
|
r.push({
|
|
907
991
|
...m,
|
|
908
|
-
token:
|
|
992
|
+
token: Pt({
|
|
909
993
|
range: L,
|
|
910
|
-
unitId:
|
|
994
|
+
unitId: T,
|
|
911
995
|
sheetName: p
|
|
912
996
|
})
|
|
913
997
|
});
|
|
914
998
|
}
|
|
915
999
|
return r;
|
|
916
1000
|
}
|
|
917
|
-
function
|
|
1001
|
+
function Wa(a, e, n, i) {
|
|
918
1002
|
const { type: r, unitId: o, sheetId: u, range: m, from: f, to: c, rangeFilteredRows: l } = e, {
|
|
919
1003
|
range: p,
|
|
920
|
-
sheetId:
|
|
1004
|
+
sheetId: T,
|
|
921
1005
|
unitId: L,
|
|
922
|
-
sheetName:
|
|
1006
|
+
sheetName: I,
|
|
923
1007
|
refOffsetX: A,
|
|
924
|
-
refOffsetY:
|
|
1008
|
+
refOffsetY: R
|
|
925
1009
|
} = a;
|
|
926
|
-
if (!
|
|
1010
|
+
if (!Ya(
|
|
927
1011
|
o,
|
|
928
1012
|
u,
|
|
929
1013
|
n,
|
|
930
1014
|
i,
|
|
931
1015
|
L,
|
|
932
|
-
|
|
1016
|
+
T
|
|
933
1017
|
))
|
|
934
1018
|
return;
|
|
935
|
-
const d =
|
|
936
|
-
let
|
|
937
|
-
if (r ===
|
|
1019
|
+
const d = ce.moveOffset(p, A, R);
|
|
1020
|
+
let S = null;
|
|
1021
|
+
if (r === g.MoveRange) {
|
|
938
1022
|
if (f == null || c == null)
|
|
939
1023
|
return;
|
|
940
|
-
const N =
|
|
1024
|
+
const N = xt(d, f), P = $e(d, f);
|
|
941
1025
|
if (P == null || N !== 4)
|
|
942
1026
|
return;
|
|
943
|
-
const
|
|
1027
|
+
const x = Oa(
|
|
944
1028
|
{ id: w.MoveRangeCommandId, params: { toRange: c, fromRange: f } },
|
|
945
1029
|
P
|
|
946
|
-
), M = Y(
|
|
1030
|
+
), M = Y(x, P);
|
|
947
1031
|
if (M == null)
|
|
948
1032
|
return Q.REF;
|
|
949
|
-
|
|
950
|
-
} else if (r ===
|
|
1033
|
+
S = Mt(N, M, f, c, d, P);
|
|
1034
|
+
} else if (r === g.MoveRows) {
|
|
951
1035
|
if (f == null || c == null)
|
|
952
1036
|
return;
|
|
953
|
-
const N =
|
|
954
|
-
let P =
|
|
1037
|
+
const N = xt(d, f);
|
|
1038
|
+
let P = $e(d, f);
|
|
955
1039
|
if (P == null && (f.endRow < d.startRow && c.endRow <= d.startRow || f.startRow > d.endRow && c.startRow > d.endRow))
|
|
956
1040
|
return;
|
|
957
1041
|
P == null && (P = {
|
|
@@ -961,18 +1045,18 @@ function Ha(a, e, n, i) {
|
|
|
961
1045
|
endColumn: d.endColumn,
|
|
962
1046
|
rangeType: X.NORMAL
|
|
963
1047
|
});
|
|
964
|
-
const
|
|
1048
|
+
const x = ba(
|
|
965
1049
|
{ id: w.MoveRowsCommandId, params: { toRange: c, fromRange: f } },
|
|
966
1050
|
P
|
|
967
|
-
), M = Y(
|
|
1051
|
+
), M = Y(x, P);
|
|
968
1052
|
if (M == null)
|
|
969
1053
|
return Q.REF;
|
|
970
|
-
|
|
971
|
-
} else if (r ===
|
|
1054
|
+
S = Mt(N, M, f, c, d, P);
|
|
1055
|
+
} else if (r === g.MoveCols) {
|
|
972
1056
|
if (f == null || c == null)
|
|
973
1057
|
return;
|
|
974
|
-
const N =
|
|
975
|
-
let P =
|
|
1058
|
+
const N = xt(d, f);
|
|
1059
|
+
let P = $e(d, f);
|
|
976
1060
|
if (P == null && (f.endColumn < d.startColumn && c.endColumn <= d.startColumn || f.startColumn > d.endColumn && c.startColumn > d.endColumn))
|
|
977
1061
|
return;
|
|
978
1062
|
P == null && (P = {
|
|
@@ -982,45 +1066,45 @@ function Ha(a, e, n, i) {
|
|
|
982
1066
|
endColumn: d.endColumn,
|
|
983
1067
|
rangeType: X.NORMAL
|
|
984
1068
|
});
|
|
985
|
-
const
|
|
1069
|
+
const x = Da(
|
|
986
1070
|
{ id: w.MoveColsCommandId, params: { toRange: c, fromRange: f } },
|
|
987
1071
|
P
|
|
988
|
-
), M = Y(
|
|
1072
|
+
), M = Y(x, P);
|
|
989
1073
|
if (M == null)
|
|
990
1074
|
return Q.REF;
|
|
991
|
-
|
|
1075
|
+
S = Mt(N, M, f, c, d, P);
|
|
992
1076
|
}
|
|
993
1077
|
if (m != null) {
|
|
994
|
-
if (r ===
|
|
995
|
-
const N =
|
|
1078
|
+
if (r === g.InsertRow) {
|
|
1079
|
+
const N = Ua(
|
|
996
1080
|
{
|
|
997
1081
|
id: w.InsertRowCommandId,
|
|
998
|
-
params: { range: m, unitId: "", subUnitId: "", direction:
|
|
1082
|
+
params: { range: m, unitId: "", subUnitId: "", direction: fe.DOWN }
|
|
999
1083
|
},
|
|
1000
1084
|
d
|
|
1001
1085
|
), P = Y(N, d);
|
|
1002
1086
|
if (P == null)
|
|
1003
1087
|
return;
|
|
1004
|
-
|
|
1088
|
+
S = {
|
|
1005
1089
|
...d,
|
|
1006
1090
|
...P
|
|
1007
1091
|
};
|
|
1008
|
-
} else if (r ===
|
|
1009
|
-
const N =
|
|
1092
|
+
} else if (r === g.InsertColumn) {
|
|
1093
|
+
const N = ha(
|
|
1010
1094
|
{
|
|
1011
1095
|
id: w.InsertColCommandId,
|
|
1012
|
-
params: { range: m, unitId: "", subUnitId: "", direction:
|
|
1096
|
+
params: { range: m, unitId: "", subUnitId: "", direction: fe.RIGHT }
|
|
1013
1097
|
},
|
|
1014
1098
|
d
|
|
1015
1099
|
), P = Y(N, d);
|
|
1016
1100
|
if (P == null)
|
|
1017
1101
|
return;
|
|
1018
|
-
|
|
1102
|
+
S = {
|
|
1019
1103
|
...d,
|
|
1020
1104
|
...P
|
|
1021
1105
|
};
|
|
1022
|
-
} else if (r ===
|
|
1023
|
-
const N =
|
|
1106
|
+
} else if (r === g.RemoveRow) {
|
|
1107
|
+
const N = qa(
|
|
1024
1108
|
{
|
|
1025
1109
|
id: w.RemoveRowCommandId,
|
|
1026
1110
|
params: { range: m }
|
|
@@ -1030,12 +1114,12 @@ function Ha(a, e, n, i) {
|
|
|
1030
1114
|
), P = Y(N, d);
|
|
1031
1115
|
if (P == null)
|
|
1032
1116
|
return Q.REF;
|
|
1033
|
-
|
|
1117
|
+
S = {
|
|
1034
1118
|
...d,
|
|
1035
1119
|
...P
|
|
1036
1120
|
};
|
|
1037
|
-
} else if (r ===
|
|
1038
|
-
const N =
|
|
1121
|
+
} else if (r === g.RemoveColumn) {
|
|
1122
|
+
const N = ga(
|
|
1039
1123
|
{
|
|
1040
1124
|
id: w.RemoveColCommandId,
|
|
1041
1125
|
params: { range: m }
|
|
@@ -1044,12 +1128,12 @@ function Ha(a, e, n, i) {
|
|
|
1044
1128
|
), P = Y(N, d);
|
|
1045
1129
|
if (P == null)
|
|
1046
1130
|
return Q.REF;
|
|
1047
|
-
|
|
1131
|
+
S = {
|
|
1048
1132
|
...d,
|
|
1049
1133
|
...P
|
|
1050
1134
|
};
|
|
1051
|
-
} else if (r ===
|
|
1052
|
-
const N =
|
|
1135
|
+
} else if (r === g.DeleteMoveLeft) {
|
|
1136
|
+
const N = ya(
|
|
1053
1137
|
{
|
|
1054
1138
|
id: w.DeleteRangeMoveLeftCommandId,
|
|
1055
1139
|
params: { range: m }
|
|
@@ -1058,12 +1142,12 @@ function Ha(a, e, n, i) {
|
|
|
1058
1142
|
), P = Y(N, d);
|
|
1059
1143
|
if (P == null)
|
|
1060
1144
|
return Q.REF;
|
|
1061
|
-
|
|
1145
|
+
S = {
|
|
1062
1146
|
...d,
|
|
1063
1147
|
...P
|
|
1064
1148
|
};
|
|
1065
|
-
} else if (r ===
|
|
1066
|
-
const N =
|
|
1149
|
+
} else if (r === g.DeleteMoveUp) {
|
|
1150
|
+
const N = _a(
|
|
1067
1151
|
{
|
|
1068
1152
|
id: w.DeleteRangeMoveUpCommandId,
|
|
1069
1153
|
params: { range: m }
|
|
@@ -1072,12 +1156,12 @@ function Ha(a, e, n, i) {
|
|
|
1072
1156
|
), P = Y(N, d);
|
|
1073
1157
|
if (P == null)
|
|
1074
1158
|
return Q.REF;
|
|
1075
|
-
|
|
1159
|
+
S = {
|
|
1076
1160
|
...d,
|
|
1077
1161
|
...P
|
|
1078
1162
|
};
|
|
1079
|
-
} else if (r ===
|
|
1080
|
-
const N =
|
|
1163
|
+
} else if (r === g.InsertMoveDown) {
|
|
1164
|
+
const N = xa(
|
|
1081
1165
|
{
|
|
1082
1166
|
id: w.InsertRangeMoveDownCommandId,
|
|
1083
1167
|
params: { range: m }
|
|
@@ -1086,12 +1170,12 @@ function Ha(a, e, n, i) {
|
|
|
1086
1170
|
), P = Y(N, d);
|
|
1087
1171
|
if (P == null)
|
|
1088
1172
|
return;
|
|
1089
|
-
|
|
1173
|
+
S = {
|
|
1090
1174
|
...d,
|
|
1091
1175
|
...P
|
|
1092
1176
|
};
|
|
1093
|
-
} else if (r ===
|
|
1094
|
-
const N =
|
|
1177
|
+
} else if (r === g.InsertMoveRight) {
|
|
1178
|
+
const N = Ma(
|
|
1095
1179
|
{
|
|
1096
1180
|
id: w.InsertRangeMoveRightCommandId,
|
|
1097
1181
|
params: { range: m }
|
|
@@ -1100,60 +1184,60 @@ function Ha(a, e, n, i) {
|
|
|
1100
1184
|
), P = Y(N, d);
|
|
1101
1185
|
if (P == null)
|
|
1102
1186
|
return;
|
|
1103
|
-
|
|
1187
|
+
S = {
|
|
1104
1188
|
...d,
|
|
1105
1189
|
...P
|
|
1106
1190
|
};
|
|
1107
1191
|
}
|
|
1108
1192
|
}
|
|
1109
|
-
if (
|
|
1110
|
-
return
|
|
1111
|
-
range:
|
|
1112
|
-
sheetName:
|
|
1193
|
+
if (S != null)
|
|
1194
|
+
return Pt({
|
|
1195
|
+
range: S,
|
|
1196
|
+
sheetName: I,
|
|
1113
1197
|
unitId: L
|
|
1114
1198
|
});
|
|
1115
1199
|
}
|
|
1116
|
-
function
|
|
1117
|
-
const { startRow: u, endRow: m, startColumn: f, endColumn: c, rangeType: l } =
|
|
1200
|
+
function Mt(a, e, n, i, r, o) {
|
|
1201
|
+
const { startRow: u, endRow: m, startColumn: f, endColumn: c, rangeType: l } = ge(e), {
|
|
1118
1202
|
startRow: p,
|
|
1119
|
-
startColumn:
|
|
1203
|
+
startColumn: T,
|
|
1120
1204
|
endRow: L,
|
|
1121
|
-
endColumn:
|
|
1205
|
+
endColumn: I,
|
|
1122
1206
|
rangeType: A = X.NORMAL
|
|
1123
|
-
} =
|
|
1207
|
+
} = ge(n), { startRow: R, startColumn: d, endRow: S, endColumn: N } = ge(i), {
|
|
1124
1208
|
startRow: P,
|
|
1125
|
-
endRow:
|
|
1209
|
+
endRow: x,
|
|
1126
1210
|
startColumn: M,
|
|
1127
1211
|
endColumn: U
|
|
1128
|
-
} =
|
|
1212
|
+
} = ge(o), {
|
|
1129
1213
|
startRow: h,
|
|
1130
|
-
endRow:
|
|
1214
|
+
endRow: _,
|
|
1131
1215
|
startColumn: F,
|
|
1132
1216
|
endColumn: B,
|
|
1133
1217
|
rangeType: ae = X.NORMAL
|
|
1134
|
-
} =
|
|
1135
|
-
function
|
|
1218
|
+
} = ge(r), O = { ...r };
|
|
1219
|
+
function se() {
|
|
1136
1220
|
return l === X.COLUMN && ae === X.COLUMN ? !0 : f >= F && c <= B;
|
|
1137
1221
|
}
|
|
1138
1222
|
function ne() {
|
|
1139
|
-
return l === X.ROW && ae === X.ROW ? !0 : u >= h && m <=
|
|
1223
|
+
return l === X.ROW && ae === X.ROW ? !0 : u >= h && m <= _;
|
|
1140
1224
|
}
|
|
1141
1225
|
if (a === 0)
|
|
1142
|
-
if (
|
|
1226
|
+
if (se())
|
|
1143
1227
|
if (u < h)
|
|
1144
1228
|
O.startRow = u;
|
|
1145
|
-
else if (u >=
|
|
1229
|
+
else if (u >= _)
|
|
1146
1230
|
O.endRow -= L + 1 - h;
|
|
1147
1231
|
else
|
|
1148
1232
|
return;
|
|
1149
1233
|
else
|
|
1150
1234
|
return;
|
|
1151
1235
|
else if (a === 1)
|
|
1152
|
-
if (
|
|
1153
|
-
if (m >
|
|
1236
|
+
if (se())
|
|
1237
|
+
if (m > _)
|
|
1154
1238
|
O.endRow = m;
|
|
1155
1239
|
else if (m <= h)
|
|
1156
|
-
O.startRow +=
|
|
1240
|
+
O.startRow += _ - p + 1;
|
|
1157
1241
|
else
|
|
1158
1242
|
return;
|
|
1159
1243
|
else
|
|
@@ -1163,7 +1247,7 @@ function Dt(a, e, n, i, r, o) {
|
|
|
1163
1247
|
if (f < F)
|
|
1164
1248
|
O.startColumn = f;
|
|
1165
1249
|
else if (f >= B)
|
|
1166
|
-
O.endColumn -=
|
|
1250
|
+
O.endColumn -= I + 1 - F;
|
|
1167
1251
|
else
|
|
1168
1252
|
return;
|
|
1169
1253
|
else
|
|
@@ -1173,91 +1257,91 @@ function Dt(a, e, n, i, r, o) {
|
|
|
1173
1257
|
if (c > B)
|
|
1174
1258
|
O.endColumn = c;
|
|
1175
1259
|
else if (c <= F)
|
|
1176
|
-
O.startColumn += B -
|
|
1260
|
+
O.startColumn += B - T + 1;
|
|
1177
1261
|
else
|
|
1178
1262
|
return;
|
|
1179
1263
|
else
|
|
1180
1264
|
return;
|
|
1181
|
-
else a === 4 ? (O.startRow = u, O.startColumn = f, O.endRow = m, O.endColumn = c) :
|
|
1265
|
+
else a === 4 ? (O.startRow = u, O.startColumn = f, O.endRow = m, O.endColumn = c) : T <= F && I >= B || A === X.ROW && ae === X.ROW ? n.endRow < h ? (R >= h && (O.startRow -= L - p + 1), R >= _ && (O.endRow -= L - p + 1)) : n.startRow > _ ? (S <= _ && (O.endRow += L - p + 1), S <= h && (O.startRow += L - p + 1)) : n.startRow >= h && n.endRow <= _ && (R <= h ? O.startRow += L - p + 1 : R >= _ && (O.endRow -= L - p + 1)) : p <= h && L >= _ || A === X.COLUMN && ae === X.COLUMN ? n.endColumn < F ? (d >= F && (O.startColumn -= I - T + 1), d >= B && (O.endColumn -= I - T + 1)) : n.startColumn > B ? (N <= B && (O.endColumn += I - T + 1), N <= F && (O.startColumn += I - T + 1)) : n.startColumn >= F && n.endColumn <= B && (d <= F ? O.startColumn += I - T + 1 : d >= B && (O.endColumn -= I - T + 1)) : ((d <= U + 1 && N >= B || d <= F && N >= M - 1) && R <= h && S >= _ || (R <= x + 1 && S >= _ || R <= h && S >= P - 1) && d <= F && N >= B, O.startRow = u, O.startColumn = f, O.endRow = m, O.endColumn = c);
|
|
1182
1266
|
return O;
|
|
1183
1267
|
}
|
|
1184
|
-
function
|
|
1185
|
-
const n =
|
|
1268
|
+
function xt(a, e) {
|
|
1269
|
+
const n = Ae(a.startRow), i = Ce(a.endRow), r = Ae(a.startColumn), o = Ce(a.endColumn), u = Ae(e.startRow), m = Ce(e.endRow), f = Ae(e.startColumn), c = Ce(e.endColumn);
|
|
1186
1270
|
function l() {
|
|
1187
1271
|
return a.rangeType === X.COLUMN && e.rangeType === X.COLUMN ? !0 : n >= u && i <= m;
|
|
1188
1272
|
}
|
|
1189
1273
|
function p() {
|
|
1190
1274
|
return a.rangeType === X.ROW && e.rangeType === X.ROW ? !0 : r >= f && o <= c;
|
|
1191
1275
|
}
|
|
1192
|
-
function
|
|
1276
|
+
function T() {
|
|
1193
1277
|
return a.rangeType === X.ALL && e.rangeType === X.ALL;
|
|
1194
1278
|
}
|
|
1195
|
-
return l() && p() ||
|
|
1279
|
+
return l() && p() || T() ? 4 : p() && n >= u && n <= m && i > m ? 0 : p() && i >= u && i <= m && n < u ? 1 : l() && r >= f && r <= c && o > c ? 2 : l() && o >= f && o <= c && r < f ? 3 : null;
|
|
1196
1280
|
}
|
|
1197
|
-
function
|
|
1281
|
+
function Ae(a) {
|
|
1198
1282
|
return isNaN(a) ? -1 / 0 : a;
|
|
1199
1283
|
}
|
|
1200
|
-
function
|
|
1284
|
+
function Ce(a) {
|
|
1201
1285
|
return isNaN(a) ? 1 / 0 : a;
|
|
1202
1286
|
}
|
|
1203
|
-
function
|
|
1287
|
+
function ge(a) {
|
|
1204
1288
|
const { startRow: e, endRow: n, startColumn: i, endColumn: r } = a;
|
|
1205
1289
|
return {
|
|
1206
1290
|
...a,
|
|
1207
|
-
startRow:
|
|
1208
|
-
endRow:
|
|
1209
|
-
startColumn:
|
|
1210
|
-
endColumn:
|
|
1291
|
+
startRow: Ae(e),
|
|
1292
|
+
endRow: Ce(n),
|
|
1293
|
+
startColumn: Ae(i),
|
|
1294
|
+
endColumn: Ce(r)
|
|
1211
1295
|
};
|
|
1212
1296
|
}
|
|
1213
|
-
function
|
|
1297
|
+
function Ka(a, e) {
|
|
1214
1298
|
const { id: n } = e;
|
|
1215
1299
|
let i = null;
|
|
1216
1300
|
switch (n) {
|
|
1301
|
+
case yn.id:
|
|
1302
|
+
i = ir(e, a);
|
|
1303
|
+
break;
|
|
1304
|
+
case _n.id:
|
|
1305
|
+
i = rr(e, a);
|
|
1306
|
+
break;
|
|
1307
|
+
case xn.id:
|
|
1308
|
+
i = or(e, a);
|
|
1309
|
+
break;
|
|
1310
|
+
case Mn.id:
|
|
1311
|
+
i = ur(e);
|
|
1312
|
+
break;
|
|
1313
|
+
case On.id:
|
|
1314
|
+
i = mr(e);
|
|
1315
|
+
break;
|
|
1316
|
+
case bn.id:
|
|
1317
|
+
i = fr(e, a);
|
|
1318
|
+
break;
|
|
1217
1319
|
case Dn.id:
|
|
1218
|
-
i =
|
|
1320
|
+
i = cr(e, a);
|
|
1219
1321
|
break;
|
|
1220
1322
|
case Cn.id:
|
|
1221
|
-
i =
|
|
1323
|
+
i = lr(e, a);
|
|
1222
1324
|
break;
|
|
1223
1325
|
case An.id:
|
|
1224
|
-
i =
|
|
1326
|
+
i = sr(e, a);
|
|
1225
1327
|
break;
|
|
1226
1328
|
case Sn.id:
|
|
1227
|
-
i =
|
|
1329
|
+
i = dr(e, a);
|
|
1228
1330
|
break;
|
|
1229
1331
|
case Rn.id:
|
|
1230
|
-
i =
|
|
1332
|
+
i = pr(e, a);
|
|
1231
1333
|
break;
|
|
1232
1334
|
case Nn.id:
|
|
1233
|
-
i =
|
|
1335
|
+
i = Lr(e, a);
|
|
1234
1336
|
break;
|
|
1235
1337
|
case In.id:
|
|
1236
|
-
i =
|
|
1338
|
+
i = Pr(e, a);
|
|
1237
1339
|
break;
|
|
1238
|
-
case
|
|
1239
|
-
i =
|
|
1340
|
+
case Ba.id:
|
|
1341
|
+
i = Tr(e, a);
|
|
1240
1342
|
break;
|
|
1241
|
-
case
|
|
1242
|
-
i =
|
|
1243
|
-
break;
|
|
1244
|
-
case Pn.id:
|
|
1245
|
-
i = nr(e, a);
|
|
1246
|
-
break;
|
|
1247
|
-
case Ln.id:
|
|
1248
|
-
i = ir(e, a);
|
|
1249
|
-
break;
|
|
1250
|
-
case pn.id:
|
|
1251
|
-
i = rr(e, a);
|
|
1252
|
-
break;
|
|
1253
|
-
case dn.id:
|
|
1254
|
-
i = or(e, a);
|
|
1255
|
-
break;
|
|
1256
|
-
case qa.id:
|
|
1257
|
-
i = ur(e, a);
|
|
1258
|
-
break;
|
|
1259
|
-
case ga.id:
|
|
1260
|
-
i = mr(e, a);
|
|
1343
|
+
case Fa.id:
|
|
1344
|
+
i = Er(e, a);
|
|
1261
1345
|
break;
|
|
1262
1346
|
}
|
|
1263
1347
|
return i;
|
|
@@ -1270,21 +1354,21 @@ function te(a) {
|
|
|
1270
1354
|
sheetId: n
|
|
1271
1355
|
};
|
|
1272
1356
|
}
|
|
1273
|
-
function
|
|
1357
|
+
function ir(a, e) {
|
|
1274
1358
|
const { params: n } = a;
|
|
1275
1359
|
if (!n) return null;
|
|
1276
1360
|
const { fromRange: i, toRange: r } = n;
|
|
1277
1361
|
if (!i || !r) return null;
|
|
1278
1362
|
const { unitId: o, sheetId: u } = te(e);
|
|
1279
1363
|
return {
|
|
1280
|
-
type:
|
|
1364
|
+
type: g.MoveRange,
|
|
1281
1365
|
from: i,
|
|
1282
1366
|
to: r,
|
|
1283
1367
|
unitId: o,
|
|
1284
1368
|
sheetId: u
|
|
1285
1369
|
};
|
|
1286
1370
|
}
|
|
1287
|
-
function
|
|
1371
|
+
function rr(a, e) {
|
|
1288
1372
|
const { params: n } = a;
|
|
1289
1373
|
if (!n) return null;
|
|
1290
1374
|
const {
|
|
@@ -1306,14 +1390,14 @@ function ji(a, e) {
|
|
|
1306
1390
|
rangeType: X.ROW
|
|
1307
1391
|
};
|
|
1308
1392
|
return {
|
|
1309
|
-
type:
|
|
1393
|
+
type: g.MoveRows,
|
|
1310
1394
|
from: l,
|
|
1311
1395
|
to: p,
|
|
1312
1396
|
unitId: m,
|
|
1313
1397
|
sheetId: c
|
|
1314
1398
|
};
|
|
1315
1399
|
}
|
|
1316
|
-
function
|
|
1400
|
+
function or(a, e) {
|
|
1317
1401
|
const { params: n } = a;
|
|
1318
1402
|
if (!n) return null;
|
|
1319
1403
|
const {
|
|
@@ -1335,154 +1419,154 @@ function $i(a, e) {
|
|
|
1335
1419
|
rangeType: X.COLUMN
|
|
1336
1420
|
};
|
|
1337
1421
|
return {
|
|
1338
|
-
type:
|
|
1422
|
+
type: g.MoveCols,
|
|
1339
1423
|
from: l,
|
|
1340
1424
|
to: p,
|
|
1341
1425
|
unitId: m,
|
|
1342
1426
|
sheetId: c
|
|
1343
1427
|
};
|
|
1344
1428
|
}
|
|
1345
|
-
function
|
|
1429
|
+
function ur(a) {
|
|
1346
1430
|
const { params: e } = a;
|
|
1347
1431
|
if (!e) return null;
|
|
1348
1432
|
const { range: n, unitId: i, subUnitId: r } = e;
|
|
1349
1433
|
return {
|
|
1350
|
-
type:
|
|
1434
|
+
type: g.InsertRow,
|
|
1351
1435
|
range: n,
|
|
1352
1436
|
unitId: i,
|
|
1353
1437
|
sheetId: r
|
|
1354
1438
|
};
|
|
1355
1439
|
}
|
|
1356
|
-
function
|
|
1440
|
+
function mr(a) {
|
|
1357
1441
|
const { params: e } = a;
|
|
1358
1442
|
if (!e) return null;
|
|
1359
1443
|
const { range: n, unitId: i, subUnitId: r } = e;
|
|
1360
1444
|
return {
|
|
1361
|
-
type:
|
|
1445
|
+
type: g.InsertColumn,
|
|
1362
1446
|
range: n,
|
|
1363
1447
|
unitId: i,
|
|
1364
1448
|
sheetId: r
|
|
1365
1449
|
};
|
|
1366
1450
|
}
|
|
1367
|
-
function
|
|
1451
|
+
function fr(a, e) {
|
|
1368
1452
|
const { params: n } = a;
|
|
1369
1453
|
if (!n) return null;
|
|
1370
1454
|
const { range: i } = n, { unitId: r, sheetId: o } = te(e);
|
|
1371
1455
|
return {
|
|
1372
|
-
type:
|
|
1456
|
+
type: g.InsertMoveRight,
|
|
1373
1457
|
range: i,
|
|
1374
1458
|
unitId: r,
|
|
1375
1459
|
sheetId: o
|
|
1376
1460
|
};
|
|
1377
1461
|
}
|
|
1378
|
-
function
|
|
1462
|
+
function cr(a, e) {
|
|
1379
1463
|
const { params: n } = a;
|
|
1380
1464
|
if (!n) return null;
|
|
1381
1465
|
const { range: i } = n, { unitId: r, sheetId: o } = te(e);
|
|
1382
1466
|
return {
|
|
1383
|
-
type:
|
|
1467
|
+
type: g.InsertMoveDown,
|
|
1384
1468
|
range: i,
|
|
1385
1469
|
unitId: r,
|
|
1386
1470
|
sheetId: o
|
|
1387
1471
|
};
|
|
1388
1472
|
}
|
|
1389
|
-
function
|
|
1473
|
+
function lr(a, e) {
|
|
1390
1474
|
var u, m;
|
|
1391
1475
|
const { params: n } = a;
|
|
1392
1476
|
if (!n) return null;
|
|
1393
1477
|
const { range: i } = n, { unitId: r, sheetId: o } = te(e);
|
|
1394
1478
|
return {
|
|
1395
|
-
type:
|
|
1479
|
+
type: g.RemoveRow,
|
|
1396
1480
|
range: i,
|
|
1397
1481
|
unitId: r,
|
|
1398
1482
|
sheetId: o,
|
|
1399
1483
|
rangeFilteredRows: (m = (u = e.getSheetBySheetId(o)) == null ? void 0 : u.getRangeFilterRows(i)) != null ? m : []
|
|
1400
1484
|
};
|
|
1401
1485
|
}
|
|
1402
|
-
function
|
|
1486
|
+
function sr(a, e) {
|
|
1403
1487
|
const { params: n } = a;
|
|
1404
1488
|
if (!n) return null;
|
|
1405
1489
|
const { range: i } = n, { unitId: r, sheetId: o } = te(e);
|
|
1406
1490
|
return {
|
|
1407
|
-
type:
|
|
1491
|
+
type: g.RemoveColumn,
|
|
1408
1492
|
range: i,
|
|
1409
1493
|
unitId: r,
|
|
1410
1494
|
sheetId: o
|
|
1411
1495
|
};
|
|
1412
1496
|
}
|
|
1413
|
-
function
|
|
1497
|
+
function dr(a, e) {
|
|
1414
1498
|
const { params: n } = a;
|
|
1415
1499
|
if (!n) return null;
|
|
1416
1500
|
const { range: i } = n, { unitId: r, sheetId: o } = te(e);
|
|
1417
1501
|
return {
|
|
1418
|
-
type:
|
|
1502
|
+
type: g.DeleteMoveUp,
|
|
1419
1503
|
range: i,
|
|
1420
1504
|
unitId: r,
|
|
1421
1505
|
sheetId: o
|
|
1422
1506
|
};
|
|
1423
1507
|
}
|
|
1424
|
-
function
|
|
1508
|
+
function pr(a, e) {
|
|
1425
1509
|
const { params: n } = a;
|
|
1426
1510
|
if (!n) return null;
|
|
1427
1511
|
const { range: i } = n, { unitId: r, sheetId: o } = te(e);
|
|
1428
1512
|
return {
|
|
1429
|
-
type:
|
|
1513
|
+
type: g.DeleteMoveLeft,
|
|
1430
1514
|
range: i,
|
|
1431
1515
|
unitId: r,
|
|
1432
1516
|
sheetId: o
|
|
1433
1517
|
};
|
|
1434
1518
|
}
|
|
1435
|
-
function
|
|
1519
|
+
function Lr(a, e) {
|
|
1436
1520
|
const { params: n } = a;
|
|
1437
1521
|
if (!n) return null;
|
|
1438
1522
|
const { unitId: i, subUnitId: r, name: o } = n, { unitId: u, sheetId: m } = te(e);
|
|
1439
1523
|
return {
|
|
1440
|
-
type:
|
|
1524
|
+
type: g.SetName,
|
|
1441
1525
|
unitId: i || u,
|
|
1442
1526
|
sheetId: r || m,
|
|
1443
1527
|
sheetName: o
|
|
1444
1528
|
};
|
|
1445
1529
|
}
|
|
1446
|
-
function
|
|
1530
|
+
function Pr(a, e) {
|
|
1447
1531
|
const { params: n } = a;
|
|
1448
1532
|
if (!n) return null;
|
|
1449
1533
|
const { unitId: i, subUnitId: r } = n, { unitId: o, sheetId: u } = te(e);
|
|
1450
1534
|
return {
|
|
1451
|
-
type:
|
|
1535
|
+
type: g.RemoveSheet,
|
|
1452
1536
|
unitId: i || o,
|
|
1453
1537
|
sheetId: r || u
|
|
1454
1538
|
};
|
|
1455
1539
|
}
|
|
1456
|
-
function
|
|
1540
|
+
function Tr(a, e) {
|
|
1457
1541
|
const { params: n } = a;
|
|
1458
1542
|
if (!n) return null;
|
|
1459
1543
|
const { unitId: i, name: r, id: o } = n, { sheetId: u } = te(e);
|
|
1460
1544
|
return {
|
|
1461
|
-
type:
|
|
1545
|
+
type: g.SetDefinedName,
|
|
1462
1546
|
unitId: i,
|
|
1463
1547
|
sheetId: u,
|
|
1464
1548
|
definedName: r,
|
|
1465
1549
|
definedNameId: o
|
|
1466
1550
|
};
|
|
1467
1551
|
}
|
|
1468
|
-
function
|
|
1552
|
+
function Er(a, e) {
|
|
1469
1553
|
const { params: n } = a;
|
|
1470
1554
|
if (!n) return null;
|
|
1471
1555
|
const { unitId: i, name: r, id: o } = n, { sheetId: u } = te(e);
|
|
1472
1556
|
return {
|
|
1473
|
-
type:
|
|
1557
|
+
type: g.RemoveDefinedName,
|
|
1474
1558
|
unitId: i,
|
|
1475
1559
|
sheetId: u,
|
|
1476
1560
|
definedName: r,
|
|
1477
1561
|
definedNameId: o
|
|
1478
1562
|
};
|
|
1479
1563
|
}
|
|
1480
|
-
var
|
|
1481
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
1564
|
+
var Ir = Object.getOwnPropertyDescriptor, Nr = (a, e, n, i) => {
|
|
1565
|
+
for (var r = i > 1 ? void 0 : i ? Ir(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
1482
1566
|
(u = a[o]) && (r = u(r) || r);
|
|
1483
1567
|
return r;
|
|
1484
|
-
},
|
|
1485
|
-
let
|
|
1568
|
+
}, We = (a, e) => (n, i) => e(n, i, a);
|
|
1569
|
+
let rt = class extends z {
|
|
1486
1570
|
constructor(a, e, n, i) {
|
|
1487
1571
|
super(), this._definedNamesService = a, this._univerInstanceService = e, this._sheetInterceptorService = n, this._lexerTreeBuilder = i, this._initialize();
|
|
1488
1572
|
}
|
|
@@ -1493,7 +1577,7 @@ let Je = class extends ee {
|
|
|
1493
1577
|
this.disposeWithMe(
|
|
1494
1578
|
this._sheetInterceptorService.interceptCommand({
|
|
1495
1579
|
getMutations: (a) => {
|
|
1496
|
-
if (a.id ===
|
|
1580
|
+
if (a.id === Ba.id || a.id === Fa.id)
|
|
1497
1581
|
return {
|
|
1498
1582
|
redos: [],
|
|
1499
1583
|
undos: []
|
|
@@ -1504,7 +1588,7 @@ let Je = class extends ee {
|
|
|
1504
1588
|
redos: [],
|
|
1505
1589
|
undos: []
|
|
1506
1590
|
};
|
|
1507
|
-
const n =
|
|
1591
|
+
const n = Ka(e, a);
|
|
1508
1592
|
return n ? this._getUpdateDefinedNameMutations(e, n) : {
|
|
1509
1593
|
redos: [],
|
|
1510
1594
|
undos: []
|
|
@@ -1523,41 +1607,41 @@ let Je = class extends ee {
|
|
|
1523
1607
|
};
|
|
1524
1608
|
const u = [], m = [];
|
|
1525
1609
|
return Object.values(o).forEach((f) => {
|
|
1526
|
-
var
|
|
1610
|
+
var R;
|
|
1527
1611
|
const { formulaOrRefString: c } = f, l = this._lexerTreeBuilder.sequenceNodesBuilder(c);
|
|
1528
1612
|
if (l == null)
|
|
1529
1613
|
return !0;
|
|
1530
1614
|
let p = !1;
|
|
1531
|
-
const
|
|
1532
|
-
for (let d = 0,
|
|
1615
|
+
const T = [];
|
|
1616
|
+
for (let d = 0, S = l.length; d < S; d++) {
|
|
1533
1617
|
const N = l[d];
|
|
1534
1618
|
if (typeof N == "string" || N.nodeType !== ie.REFERENCE)
|
|
1535
1619
|
continue;
|
|
1536
|
-
const { token: P } = N,
|
|
1620
|
+
const { token: P } = N, x = Ie(P), { range: M, sheetName: U, unitId: h } = x, _ = ((R = a.getSheetBySheetName(U)) == null ? void 0 : R.getSheetId()) || "", F = {
|
|
1537
1621
|
range: M,
|
|
1538
|
-
sheetId:
|
|
1622
|
+
sheetId: _,
|
|
1539
1623
|
unitId: h,
|
|
1540
1624
|
sheetName: U,
|
|
1541
1625
|
refOffsetX: 0,
|
|
1542
1626
|
refOffsetY: 0
|
|
1543
1627
|
};
|
|
1544
1628
|
let B = null;
|
|
1545
|
-
if (n ===
|
|
1629
|
+
if (n === g.RemoveSheet)
|
|
1546
1630
|
B = this._removeSheet(f, i, r);
|
|
1547
|
-
else if (n ===
|
|
1631
|
+
else if (n === g.SetName) {
|
|
1548
1632
|
const {
|
|
1549
1633
|
sheetId: ae,
|
|
1550
1634
|
sheetName: O
|
|
1551
1635
|
} = e;
|
|
1552
|
-
if (O == null ||
|
|
1636
|
+
if (O == null || _ == null || _.length === 0 || ae !== _)
|
|
1553
1637
|
continue;
|
|
1554
|
-
B =
|
|
1638
|
+
B = Pt({
|
|
1555
1639
|
range: M,
|
|
1556
1640
|
sheetName: O,
|
|
1557
1641
|
unitId: h
|
|
1558
1642
|
});
|
|
1559
1643
|
} else
|
|
1560
|
-
B =
|
|
1644
|
+
B = Wa(
|
|
1561
1645
|
F,
|
|
1562
1646
|
e,
|
|
1563
1647
|
i,
|
|
@@ -1566,21 +1650,21 @@ let Je = class extends ee {
|
|
|
1566
1650
|
B != null && (l[d] = {
|
|
1567
1651
|
...N,
|
|
1568
1652
|
token: B
|
|
1569
|
-
}, p = !0,
|
|
1653
|
+
}, p = !0, T.push(d));
|
|
1570
1654
|
}
|
|
1571
1655
|
if (!p)
|
|
1572
1656
|
return !0;
|
|
1573
|
-
const L =
|
|
1574
|
-
id:
|
|
1657
|
+
const L = tt(Xa(l, T)), I = {
|
|
1658
|
+
id: be.id,
|
|
1575
1659
|
params: {
|
|
1576
1660
|
unitId: i,
|
|
1577
1661
|
...f,
|
|
1578
1662
|
formulaOrRefString: L
|
|
1579
1663
|
}
|
|
1580
1664
|
};
|
|
1581
|
-
u.push(
|
|
1665
|
+
u.push(I);
|
|
1582
1666
|
const A = {
|
|
1583
|
-
id:
|
|
1667
|
+
id: be.id,
|
|
1584
1668
|
params: {
|
|
1585
1669
|
unitId: i,
|
|
1586
1670
|
...f
|
|
@@ -1598,18 +1682,18 @@ let Je = class extends ee {
|
|
|
1598
1682
|
return ((o = this._definedNamesService.getWorksheetByRef(e, i)) == null ? void 0 : o.getSheetId()) === n ? Q.REF : null;
|
|
1599
1683
|
}
|
|
1600
1684
|
};
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
],
|
|
1607
|
-
var
|
|
1608
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
1685
|
+
rt = Nr([
|
|
1686
|
+
We(0, Tt),
|
|
1687
|
+
We(1, Re),
|
|
1688
|
+
We(2, H(Lt)),
|
|
1689
|
+
We(3, H(Fe))
|
|
1690
|
+
], rt);
|
|
1691
|
+
var Rr = Object.getOwnPropertyDescriptor, Sr = (a, e, n, i) => {
|
|
1692
|
+
for (var r = i > 1 ? void 0 : i ? Rr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
1609
1693
|
(u = a[o]) && (r = u(r) || r);
|
|
1610
1694
|
return r;
|
|
1611
1695
|
}, me = (a, e) => (n, i) => e(n, i, a);
|
|
1612
|
-
let
|
|
1696
|
+
let ot = class extends z {
|
|
1613
1697
|
constructor(a, e, n, i, r, o, u, m) {
|
|
1614
1698
|
super(), this._univerInstanceService = a, this._commandService = e, this._lexerTreeBuilder = n, this._formulaDataModel = i, this._sheetInterceptorService = r, this._definedNamesService = o, this._configService = u, this._injector = m, this._commandExecutedListener();
|
|
1615
1699
|
}
|
|
@@ -1619,21 +1703,21 @@ let et = class extends ee {
|
|
|
1619
1703
|
})), this.disposeWithMe(
|
|
1620
1704
|
this._commandService.onCommandExecuted((a) => {
|
|
1621
1705
|
if (a.params)
|
|
1622
|
-
if (a.id ===
|
|
1706
|
+
if (a.id === Ut.id) {
|
|
1623
1707
|
const { subUnitId: e, unitId: n } = a.params;
|
|
1624
1708
|
this._handleWorkbookDisposed(n, e);
|
|
1625
|
-
} else a.id ===
|
|
1709
|
+
} else a.id === Ft.id && this._handleInsertSheetMutation(a.params);
|
|
1626
1710
|
})
|
|
1627
1711
|
), this.disposeWithMe(
|
|
1628
1712
|
this._commandService.beforeCommandExecuted((a, e) => {
|
|
1629
1713
|
if (a.id === j.id) {
|
|
1630
1714
|
const n = a.params;
|
|
1631
|
-
if (e && e.onlyLocal === !0 || e && e.syncOnly === !0 || e && e.fromChangeset === !0 || n.trigger ===
|
|
1715
|
+
if (e && e.onlyLocal === !0 || e && e.syncOnly === !0 || e && e.fromChangeset === !0 || n.trigger === Kt.id || n.trigger === Aa.id || n.trigger === Ca.id || n.trigger === gn.id)
|
|
1632
1716
|
return;
|
|
1633
1717
|
this._handleSetRangeValuesMutation(n);
|
|
1634
1718
|
}
|
|
1635
1719
|
})
|
|
1636
|
-
), this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(k.UNIVER_SHEET).subscribe((a) => this._handleWorkbookAdded(a))), this.disposeWithMe(this._univerInstanceService.getTypeOfUnitDisposed$(k.UNIVER_SHEET).pipe(
|
|
1720
|
+
), this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(k.UNIVER_SHEET).subscribe((a) => this._handleWorkbookAdded(a))), this.disposeWithMe(this._univerInstanceService.getTypeOfUnitDisposed$(k.UNIVER_SHEET).pipe(Ni((a) => a.getUnitId())).subscribe((a) => this._handleWorkbookDisposed(a)));
|
|
1637
1721
|
}
|
|
1638
1722
|
_handleSetRangeValuesMutation(a) {
|
|
1639
1723
|
const { subUnitId: e, unitId: n, cellValue: i } = a;
|
|
@@ -1652,14 +1736,14 @@ let et = class extends ee {
|
|
|
1652
1736
|
{
|
|
1653
1737
|
unitId: n,
|
|
1654
1738
|
subUnitId: e,
|
|
1655
|
-
cellValue:
|
|
1739
|
+
cellValue: nr(r, i)
|
|
1656
1740
|
},
|
|
1657
1741
|
{
|
|
1658
1742
|
onlyLocal: !0,
|
|
1659
1743
|
fromFormula: !0
|
|
1660
1744
|
}
|
|
1661
1745
|
), this._formulaDataModel.updateArrayFormulaCellData(n, e, i), this._formulaDataModel.updateArrayFormulaRange(n, e, i), this._formulaDataModel.updateImageFormulaData(n, e, i), this._commandService.executeCommand(
|
|
1662
|
-
|
|
1746
|
+
Xe.id,
|
|
1663
1747
|
{
|
|
1664
1748
|
formulaData: o
|
|
1665
1749
|
},
|
|
@@ -1667,7 +1751,7 @@ let et = class extends ee {
|
|
|
1667
1751
|
onlyLocal: !0
|
|
1668
1752
|
}
|
|
1669
1753
|
), this._commandService.executeCommand(
|
|
1670
|
-
|
|
1754
|
+
Bt.id,
|
|
1671
1755
|
{
|
|
1672
1756
|
arrayFormulaRange: this._formulaDataModel.getArrayFormulaRange(),
|
|
1673
1757
|
arrayFormulaCellData: this._formulaDataModel.getArrayFormulaCellData()
|
|
@@ -1680,9 +1764,9 @@ let et = class extends ee {
|
|
|
1680
1764
|
);
|
|
1681
1765
|
}
|
|
1682
1766
|
_handleWorkbookDisposed(a, e) {
|
|
1683
|
-
const n = this._formulaDataModel.getFormulaData(), i =
|
|
1767
|
+
const n = this._formulaDataModel.getFormulaData(), i = Ot(n, a, e), r = this._formulaDataModel.getArrayFormulaRange(), o = Ot(r, a, e), u = this._formulaDataModel.getArrayFormulaCellData(), m = Ot(u, a, e);
|
|
1684
1768
|
i && this._commandService.executeCommand(
|
|
1685
|
-
|
|
1769
|
+
Xe.id,
|
|
1686
1770
|
{
|
|
1687
1771
|
formulaData: i
|
|
1688
1772
|
},
|
|
@@ -1690,7 +1774,7 @@ let et = class extends ee {
|
|
|
1690
1774
|
onlyLocal: !0
|
|
1691
1775
|
}
|
|
1692
1776
|
), o && m && this._commandService.executeCommand(
|
|
1693
|
-
|
|
1777
|
+
Bt.id,
|
|
1694
1778
|
{
|
|
1695
1779
|
arrayFormulaRange: r,
|
|
1696
1780
|
arrayFormulaCellData: u
|
|
@@ -1701,9 +1785,9 @@ let et = class extends ee {
|
|
|
1701
1785
|
);
|
|
1702
1786
|
}
|
|
1703
1787
|
_handleInsertSheetMutation(a) {
|
|
1704
|
-
const { sheet: e, unitId: n } = a, i = this._formulaDataModel.getFormulaData(), { id: r, cellData: o } = e, u = new V(o), m =
|
|
1788
|
+
const { sheet: e, unitId: n } = a, i = this._formulaDataModel.getFormulaData(), { id: r, cellData: o } = e, u = new V(o), m = ma(i, n, r, u);
|
|
1705
1789
|
this._commandService.executeCommand(
|
|
1706
|
-
|
|
1790
|
+
Xe.id,
|
|
1707
1791
|
{
|
|
1708
1792
|
formulaData: m
|
|
1709
1793
|
},
|
|
@@ -1717,14 +1801,14 @@ let et = class extends ee {
|
|
|
1717
1801
|
const e = {}, n = a.getUnitId(), i = { [n]: {} };
|
|
1718
1802
|
a.getSheets().forEach((c) => {
|
|
1719
1803
|
var L;
|
|
1720
|
-
const l = c.getCellMatrix(), p = c.getSheetId(),
|
|
1721
|
-
i[n][p] = (L =
|
|
1722
|
-
}), this._commandService.executeCommand(
|
|
1723
|
-
const o = this._configService.getConfig(
|
|
1724
|
-
this._commandService.executeCommand(
|
|
1804
|
+
const l = c.getCellMatrix(), p = c.getSheetId(), T = ma(e, n, p, l);
|
|
1805
|
+
i[n][p] = (L = T[n]) == null ? void 0 : L[p];
|
|
1806
|
+
}), this._commandService.executeCommand(Xe.id, { formulaData: i }, { onlyLocal: !0 });
|
|
1807
|
+
const o = this._configService.getConfig(ve), u = (f = o == null ? void 0 : o.initialFormulaComputing) != null ? f : Ne.WHEN_EMPTY, m = this._getDirtyDataByCalculationMode(u);
|
|
1808
|
+
this._commandService.executeCommand(et.id, m, { onlyLocal: !0 });
|
|
1725
1809
|
}
|
|
1726
1810
|
_getDirtyDataByCalculationMode(a) {
|
|
1727
|
-
const e = a ===
|
|
1811
|
+
const e = a === Ne.FORCED, n = a === Ne.WHEN_EMPTY ? this._formulaDataModel.getFormulaDirtyRanges() : [];
|
|
1728
1812
|
return {
|
|
1729
1813
|
forceCalculation: e,
|
|
1730
1814
|
dirtyRanges: n,
|
|
@@ -1742,13 +1826,13 @@ let et = class extends ee {
|
|
|
1742
1826
|
undos: [],
|
|
1743
1827
|
redos: []
|
|
1744
1828
|
};
|
|
1745
|
-
const n =
|
|
1829
|
+
const n = Ka(e, a);
|
|
1746
1830
|
if (n) {
|
|
1747
1831
|
const { unitSheetNameMap: i } = this._formulaDataModel.getCalculateData(), r = this._formulaDataModel.getFormulaData(), { newFormulaData: o } = this._getFormulaReferenceMoveInfo(
|
|
1748
1832
|
r,
|
|
1749
1833
|
i,
|
|
1750
1834
|
n
|
|
1751
|
-
), { undos: u, redos: m } =
|
|
1835
|
+
), { undos: u, redos: m } = Fi(r, o, n);
|
|
1752
1836
|
return {
|
|
1753
1837
|
undos: u,
|
|
1754
1838
|
redos: m
|
|
@@ -1761,7 +1845,7 @@ let et = class extends ee {
|
|
|
1761
1845
|
}
|
|
1762
1846
|
// eslint-disable-next-line max-lines-per-function
|
|
1763
1847
|
_getFormulaReferenceMoveInfo(a, e, n) {
|
|
1764
|
-
if (!
|
|
1848
|
+
if (!qe.isDefine(a)) return { newFormulaData: {}, oldFormulaData: {} };
|
|
1765
1849
|
const i = Object.keys(a);
|
|
1766
1850
|
if (i.length === 0) return { newFormulaData: {}, oldFormulaData: {} };
|
|
1767
1851
|
const r = {}, o = {};
|
|
@@ -1770,99 +1854,99 @@ let et = class extends ee {
|
|
|
1770
1854
|
if (m == null)
|
|
1771
1855
|
continue;
|
|
1772
1856
|
const f = Object.keys(m);
|
|
1773
|
-
|
|
1857
|
+
qe.isDefine(r[u]) || (r[u] = {}), qe.isDefine(o[u]) || (o[u] = {});
|
|
1774
1858
|
for (const c of f) {
|
|
1775
|
-
const l = new V(m[c] || {}), p = new V(),
|
|
1776
|
-
l.forValue((L,
|
|
1859
|
+
const l = new V(m[c] || {}), p = new V(), T = [];
|
|
1860
|
+
l.forValue((L, I, A) => {
|
|
1777
1861
|
var F;
|
|
1778
1862
|
if (!A) return !0;
|
|
1779
|
-
const { f:
|
|
1863
|
+
const { f: R, x: d, y: S, si: N } = A, P = this._lexerTreeBuilder.sequenceNodesBuilder(R);
|
|
1780
1864
|
if (P == null)
|
|
1781
1865
|
return !0;
|
|
1782
|
-
let
|
|
1866
|
+
let x = !1;
|
|
1783
1867
|
const M = [], { type: U, from: h } = n;
|
|
1784
1868
|
for (let B = 0, ae = P.length; B < ae; B++) {
|
|
1785
1869
|
const O = P[B];
|
|
1786
1870
|
if (typeof O == "string")
|
|
1787
1871
|
continue;
|
|
1788
|
-
const { token:
|
|
1789
|
-
if ((U ===
|
|
1790
|
-
const { definedNameId:
|
|
1791
|
-
if (
|
|
1872
|
+
const { token: se, nodeType: ne } = O;
|
|
1873
|
+
if ((U === g.SetDefinedName || U === g.RemoveDefinedName) && (ne === ie.DEFINED_NAME || ne === ie.FUNCTION)) {
|
|
1874
|
+
const { definedNameId: Ge, definedName: Se } = n;
|
|
1875
|
+
if (Ge === void 0 || Se === void 0)
|
|
1792
1876
|
continue;
|
|
1793
|
-
const
|
|
1794
|
-
if (
|
|
1877
|
+
const pe = this._definedNamesService.getValueById(u, Ge);
|
|
1878
|
+
if (pe == null || pe.name !== se)
|
|
1795
1879
|
continue;
|
|
1796
1880
|
P[B] = {
|
|
1797
1881
|
...O,
|
|
1798
|
-
token: U ===
|
|
1799
|
-
},
|
|
1882
|
+
token: U === g.SetDefinedName ? Se : Q.REF
|
|
1883
|
+
}, x = !0, M.push(B);
|
|
1800
1884
|
continue;
|
|
1801
1885
|
} else if (ne !== ie.REFERENCE)
|
|
1802
1886
|
continue;
|
|
1803
|
-
const
|
|
1804
|
-
if (!
|
|
1887
|
+
const de = Ie(se), { range: Z, sheetName: re, unitId: oe } = de, Ve = oe == null || oe.length === 0 ? u : oe, J = ((F = e == null ? void 0 : e[Ve]) == null ? void 0 : F[re]) || "";
|
|
1888
|
+
if (!Ya(
|
|
1805
1889
|
n.unitId,
|
|
1806
1890
|
n.sheetId,
|
|
1807
1891
|
u,
|
|
1808
1892
|
c,
|
|
1809
1893
|
oe,
|
|
1810
|
-
|
|
1894
|
+
J
|
|
1811
1895
|
))
|
|
1812
1896
|
continue;
|
|
1813
|
-
const
|
|
1814
|
-
range:
|
|
1815
|
-
sheetId:
|
|
1897
|
+
const Rt = {
|
|
1898
|
+
range: Z,
|
|
1899
|
+
sheetId: J,
|
|
1816
1900
|
unitId: oe,
|
|
1817
1901
|
sheetName: re,
|
|
1818
1902
|
refOffsetX: d || 0,
|
|
1819
|
-
refOffsetY:
|
|
1903
|
+
refOffsetY: S || 0
|
|
1820
1904
|
};
|
|
1821
|
-
let
|
|
1822
|
-
if (U ===
|
|
1905
|
+
let _e = null;
|
|
1906
|
+
if (U === g.SetName) {
|
|
1823
1907
|
const {
|
|
1824
|
-
unitId:
|
|
1825
|
-
sheetId:
|
|
1826
|
-
sheetName:
|
|
1908
|
+
unitId: Ge,
|
|
1909
|
+
sheetId: Se,
|
|
1910
|
+
sheetName: pe
|
|
1827
1911
|
} = n;
|
|
1828
|
-
if (
|
|
1912
|
+
if (pe == null || J == null || J.length === 0 || Se !== J)
|
|
1829
1913
|
continue;
|
|
1830
|
-
|
|
1831
|
-
range:
|
|
1832
|
-
sheetName:
|
|
1914
|
+
_e = Pt({
|
|
1915
|
+
range: Z,
|
|
1916
|
+
sheetName: pe,
|
|
1833
1917
|
unitId: oe
|
|
1834
1918
|
});
|
|
1835
|
-
} else if (U ===
|
|
1919
|
+
} else if (U === g.RemoveSheet) {
|
|
1836
1920
|
const {
|
|
1837
|
-
unitId:
|
|
1838
|
-
sheetId:
|
|
1839
|
-
sheetName:
|
|
1921
|
+
unitId: Ge,
|
|
1922
|
+
sheetId: Se,
|
|
1923
|
+
sheetName: pe
|
|
1840
1924
|
} = n;
|
|
1841
|
-
if (
|
|
1925
|
+
if (J == null || J.length === 0 || Se !== J)
|
|
1842
1926
|
continue;
|
|
1843
|
-
|
|
1844
|
-
} else U !==
|
|
1845
|
-
|
|
1927
|
+
_e = Q.REF;
|
|
1928
|
+
} else U !== g.SetDefinedName && (_e = Wa(
|
|
1929
|
+
Rt,
|
|
1846
1930
|
n,
|
|
1847
1931
|
u,
|
|
1848
1932
|
c
|
|
1849
1933
|
));
|
|
1850
|
-
|
|
1934
|
+
_e != null && (P[B] = {
|
|
1851
1935
|
...O,
|
|
1852
|
-
token:
|
|
1853
|
-
},
|
|
1936
|
+
token: _e
|
|
1937
|
+
}, x = !0, M.push(B), N && (d != null ? d : 0) === 0 && (S != null ? S : 0) === 0 && T.push(N));
|
|
1854
1938
|
}
|
|
1855
|
-
if (!
|
|
1856
|
-
if (N && [
|
|
1857
|
-
if (h && h.startRow <= L && L <= h.endRow && h.startColumn <=
|
|
1858
|
-
(d != null ? d : 0) === 0 && (
|
|
1859
|
-
else if (!
|
|
1939
|
+
if (!x)
|
|
1940
|
+
if (N && [g.MoveRows, g.MoveCols, g.MoveRange].includes(U)) {
|
|
1941
|
+
if (h && h.startRow <= L && L <= h.endRow && h.startColumn <= I && I <= h.endColumn)
|
|
1942
|
+
(d != null ? d : 0) === 0 && (S != null ? S : 0) === 0 && T.push(N);
|
|
1943
|
+
else if (!T.includes(N))
|
|
1860
1944
|
return !0;
|
|
1861
1945
|
} else
|
|
1862
1946
|
return !0;
|
|
1863
|
-
const
|
|
1864
|
-
p.setValue(L,
|
|
1865
|
-
f: `=${
|
|
1947
|
+
const _ = Xa(P, M, d, S);
|
|
1948
|
+
p.setValue(L, I, {
|
|
1949
|
+
f: `=${tt(_)}`
|
|
1866
1950
|
});
|
|
1867
1951
|
}), o[u] && (o[u][c] = p.getData());
|
|
1868
1952
|
}
|
|
@@ -1870,23 +1954,26 @@ let et = class extends ee {
|
|
|
1870
1954
|
return { newFormulaData: o };
|
|
1871
1955
|
}
|
|
1872
1956
|
};
|
|
1873
|
-
|
|
1874
|
-
me(0,
|
|
1957
|
+
ot = Sr([
|
|
1958
|
+
me(0, Re),
|
|
1875
1959
|
me(1, ue),
|
|
1876
|
-
me(2, H(
|
|
1877
|
-
me(3, H(
|
|
1878
|
-
me(4, H(
|
|
1879
|
-
me(5,
|
|
1880
|
-
me(6,
|
|
1881
|
-
me(7, H(
|
|
1882
|
-
],
|
|
1883
|
-
const
|
|
1884
|
-
|
|
1885
|
-
|
|
1960
|
+
me(2, H(Fe)),
|
|
1961
|
+
me(3, H(Be)),
|
|
1962
|
+
me(4, H(Lt)),
|
|
1963
|
+
me(5, Tt),
|
|
1964
|
+
me(6, xe),
|
|
1965
|
+
me(7, H(pt))
|
|
1966
|
+
], ot);
|
|
1967
|
+
const Ar = "@univerjs/sheets-formula", Cr = "0.17.0", It = {
|
|
1968
|
+
name: Ar,
|
|
1969
|
+
version: Cr
|
|
1970
|
+
}, Dr = "SHEETS_FORMULA_PLUGIN";
|
|
1971
|
+
var br = Object.getOwnPropertyDescriptor, Or = (a, e, n, i) => {
|
|
1972
|
+
for (var r = i > 1 ? void 0 : i ? br(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
1886
1973
|
(u = a[o]) && (r = u(r) || r);
|
|
1887
1974
|
return r;
|
|
1888
|
-
},
|
|
1889
|
-
let
|
|
1975
|
+
}, _t = (a, e) => (n, i) => e(n, i, a);
|
|
1976
|
+
let ut = class extends z {
|
|
1890
1977
|
constructor(a, e, n) {
|
|
1891
1978
|
super(), this._activeDirtyManagerService = a, this._univerInstanceService = e, this._formulaDataModel = n, this._initialize();
|
|
1892
1979
|
}
|
|
@@ -1898,15 +1985,15 @@ let tt = class extends ee {
|
|
|
1898
1985
|
commandId: j.id,
|
|
1899
1986
|
getDirtyData: (a) => {
|
|
1900
1987
|
const e = a.params;
|
|
1901
|
-
return e.trigger ===
|
|
1988
|
+
return e.trigger === Kt.id ? {} : {
|
|
1902
1989
|
dirtyRanges: this._getSetRangeValuesMutationDirtyRange(e)
|
|
1903
1990
|
};
|
|
1904
1991
|
}
|
|
1905
1992
|
}), this._initialMove(), this._initialRowAndColumn(), this._initialHideRow(), this._initialSheet(), this._initialDefinedName();
|
|
1906
1993
|
}
|
|
1907
1994
|
_initialMove() {
|
|
1908
|
-
this._activeDirtyManagerService.register(
|
|
1909
|
-
commandId:
|
|
1995
|
+
this._activeDirtyManagerService.register($t.id, {
|
|
1996
|
+
commandId: $t.id,
|
|
1910
1997
|
getDirtyData: (a) => {
|
|
1911
1998
|
const e = a.params;
|
|
1912
1999
|
return {
|
|
@@ -1919,8 +2006,8 @@ let tt = class extends ee {
|
|
|
1919
2006
|
}
|
|
1920
2007
|
};
|
|
1921
2008
|
}
|
|
1922
|
-
}), this._activeDirtyManagerService.register(
|
|
1923
|
-
commandId:
|
|
2009
|
+
}), this._activeDirtyManagerService.register(zt.id, {
|
|
2010
|
+
commandId: zt.id,
|
|
1924
2011
|
getDirtyData: (a) => {
|
|
1925
2012
|
const e = a.params;
|
|
1926
2013
|
return {
|
|
@@ -1932,8 +2019,8 @@ let tt = class extends ee {
|
|
|
1932
2019
|
}
|
|
1933
2020
|
};
|
|
1934
2021
|
}
|
|
1935
|
-
}), this._activeDirtyManagerService.register(
|
|
1936
|
-
commandId:
|
|
2022
|
+
}), this._activeDirtyManagerService.register(Zt.id, {
|
|
2023
|
+
commandId: Zt.id,
|
|
1937
2024
|
getDirtyData: (a) => {
|
|
1938
2025
|
const e = a.params;
|
|
1939
2026
|
return {
|
|
@@ -1945,8 +2032,8 @@ let tt = class extends ee {
|
|
|
1945
2032
|
}
|
|
1946
2033
|
};
|
|
1947
2034
|
}
|
|
1948
|
-
}), this._activeDirtyManagerService.register(
|
|
1949
|
-
commandId:
|
|
2035
|
+
}), this._activeDirtyManagerService.register(Jt.id, {
|
|
2036
|
+
commandId: Jt.id,
|
|
1950
2037
|
getDirtyData: (a) => {
|
|
1951
2038
|
const e = a.params;
|
|
1952
2039
|
return {
|
|
@@ -1961,8 +2048,8 @@ let tt = class extends ee {
|
|
|
1961
2048
|
});
|
|
1962
2049
|
}
|
|
1963
2050
|
_initialRowAndColumn() {
|
|
1964
|
-
this._activeDirtyManagerService.register(
|
|
1965
|
-
commandId:
|
|
2051
|
+
this._activeDirtyManagerService.register(ea.id, {
|
|
2052
|
+
commandId: ea.id,
|
|
1966
2053
|
getDirtyData: (a) => {
|
|
1967
2054
|
const e = a.params;
|
|
1968
2055
|
return {
|
|
@@ -1974,8 +2061,8 @@ let tt = class extends ee {
|
|
|
1974
2061
|
}
|
|
1975
2062
|
};
|
|
1976
2063
|
}
|
|
1977
|
-
}), this._activeDirtyManagerService.register(
|
|
1978
|
-
commandId:
|
|
2064
|
+
}), this._activeDirtyManagerService.register(ta.id, {
|
|
2065
|
+
commandId: ta.id,
|
|
1979
2066
|
getDirtyData: (a) => {
|
|
1980
2067
|
const e = a.params;
|
|
1981
2068
|
return {
|
|
@@ -1987,8 +2074,8 @@ let tt = class extends ee {
|
|
|
1987
2074
|
}
|
|
1988
2075
|
};
|
|
1989
2076
|
}
|
|
1990
|
-
}), this._activeDirtyManagerService.register(
|
|
1991
|
-
commandId:
|
|
2077
|
+
}), this._activeDirtyManagerService.register(aa.id, {
|
|
2078
|
+
commandId: aa.id,
|
|
1992
2079
|
getDirtyData: (a) => {
|
|
1993
2080
|
const e = a.params;
|
|
1994
2081
|
return {
|
|
@@ -1999,8 +2086,8 @@ let tt = class extends ee {
|
|
|
1999
2086
|
}
|
|
2000
2087
|
};
|
|
2001
2088
|
}
|
|
2002
|
-
}), this._activeDirtyManagerService.register(
|
|
2003
|
-
commandId:
|
|
2089
|
+
}), this._activeDirtyManagerService.register(na.id, {
|
|
2090
|
+
commandId: na.id,
|
|
2004
2091
|
getDirtyData: (a) => {
|
|
2005
2092
|
const e = a.params;
|
|
2006
2093
|
return {
|
|
@@ -2014,8 +2101,8 @@ let tt = class extends ee {
|
|
|
2014
2101
|
});
|
|
2015
2102
|
}
|
|
2016
2103
|
_initialHideRow() {
|
|
2017
|
-
this._activeDirtyManagerService.register(
|
|
2018
|
-
commandId:
|
|
2104
|
+
this._activeDirtyManagerService.register(ia.id, {
|
|
2105
|
+
commandId: ia.id,
|
|
2019
2106
|
getDirtyData: (a) => {
|
|
2020
2107
|
const e = a.params;
|
|
2021
2108
|
return {
|
|
@@ -2027,8 +2114,8 @@ let tt = class extends ee {
|
|
|
2027
2114
|
}
|
|
2028
2115
|
};
|
|
2029
2116
|
}
|
|
2030
|
-
}), this._activeDirtyManagerService.register(
|
|
2031
|
-
commandId:
|
|
2117
|
+
}), this._activeDirtyManagerService.register(ra.id, {
|
|
2118
|
+
commandId: ra.id,
|
|
2032
2119
|
getDirtyData: (a) => {
|
|
2033
2120
|
const e = a.params;
|
|
2034
2121
|
return {
|
|
@@ -2043,13 +2130,13 @@ let tt = class extends ee {
|
|
|
2043
2130
|
});
|
|
2044
2131
|
}
|
|
2045
2132
|
_initialSheet() {
|
|
2046
|
-
this._activeDirtyManagerService.register(
|
|
2047
|
-
commandId:
|
|
2133
|
+
this._activeDirtyManagerService.register(et.id, {
|
|
2134
|
+
commandId: et.id,
|
|
2048
2135
|
getDirtyData: (a) => ({
|
|
2049
2136
|
...a.params
|
|
2050
2137
|
})
|
|
2051
|
-
}), this._activeDirtyManagerService.register(
|
|
2052
|
-
commandId:
|
|
2138
|
+
}), this._activeDirtyManagerService.register(Ut.id, {
|
|
2139
|
+
commandId: Ut.id,
|
|
2053
2140
|
getDirtyData: (a) => {
|
|
2054
2141
|
const e = a.params;
|
|
2055
2142
|
return {
|
|
@@ -2061,8 +2148,8 @@ let tt = class extends ee {
|
|
|
2061
2148
|
}
|
|
2062
2149
|
};
|
|
2063
2150
|
}
|
|
2064
|
-
}), this._activeDirtyManagerService.register(
|
|
2065
|
-
commandId:
|
|
2151
|
+
}), this._activeDirtyManagerService.register(Ft.id, {
|
|
2152
|
+
commandId: Ft.id,
|
|
2066
2153
|
getDirtyData: (a) => {
|
|
2067
2154
|
const e = a.params;
|
|
2068
2155
|
return {
|
|
@@ -2072,14 +2159,14 @@ let tt = class extends ee {
|
|
|
2072
2159
|
});
|
|
2073
2160
|
}
|
|
2074
2161
|
_initialDefinedName() {
|
|
2075
|
-
this._activeDirtyManagerService.register(
|
|
2076
|
-
commandId:
|
|
2162
|
+
this._activeDirtyManagerService.register(be.id, {
|
|
2163
|
+
commandId: be.id,
|
|
2077
2164
|
getDirtyData: (a) => {
|
|
2078
2165
|
const e = a.params;
|
|
2079
2166
|
return { dirtyDefinedNameMap: this._getDefinedNameMutation(e) };
|
|
2080
2167
|
}
|
|
2081
|
-
}), this._activeDirtyManagerService.register(
|
|
2082
|
-
commandId:
|
|
2168
|
+
}), this._activeDirtyManagerService.register(vt.id, {
|
|
2169
|
+
commandId: vt.id,
|
|
2083
2170
|
getDirtyData: (a) => {
|
|
2084
2171
|
const e = a.params;
|
|
2085
2172
|
return { dirtyDefinedNameMap: this._getDefinedNameMutation(e) };
|
|
@@ -2109,17 +2196,17 @@ let tt = class extends ee {
|
|
|
2109
2196
|
_getRemoveRowOrColumnMutation(a, e = !0) {
|
|
2110
2197
|
const { subUnitId: n, unitId: i, range: r } = a, o = [], u = this._univerInstanceService.getUniverSheetInstance(i), m = u == null ? void 0 : u.getSheetBySheetId(n), f = (m == null ? void 0 : m.getRowCount()) || 0, c = (m == null ? void 0 : m.getColumnCount()) || 0;
|
|
2111
2198
|
let l = null;
|
|
2112
|
-
const { startRow: p, endRow:
|
|
2199
|
+
const { startRow: p, endRow: T, startColumn: L, endColumn: I } = r;
|
|
2113
2200
|
e === !0 ? l = this._rangeToMatrix({
|
|
2114
2201
|
startRow: p,
|
|
2115
2202
|
startColumn: 0,
|
|
2116
|
-
endRow:
|
|
2203
|
+
endRow: T,
|
|
2117
2204
|
endColumn: c - 1
|
|
2118
2205
|
}) : l = this._rangeToMatrix({
|
|
2119
2206
|
startRow: 0,
|
|
2120
2207
|
startColumn: L,
|
|
2121
2208
|
endRow: f,
|
|
2122
|
-
endColumn:
|
|
2209
|
+
endColumn: I
|
|
2123
2210
|
});
|
|
2124
2211
|
const A = l.getData();
|
|
2125
2212
|
return o.push(...this._getDirtyRangesByCellValue(i, n, A)), o.push(...this._getDirtyRangesForArrayFormula(i, n, A)), o;
|
|
@@ -2165,17 +2252,17 @@ let tt = class extends ee {
|
|
|
2165
2252
|
if ((u = o == null ? void 0 : o[a]) != null && u[e]) {
|
|
2166
2253
|
const f = new V((m = o == null ? void 0 : o[a]) == null ? void 0 : m[e]);
|
|
2167
2254
|
r.forValue((c, l) => {
|
|
2168
|
-
f.forValue((p,
|
|
2255
|
+
f.forValue((p, T, L) => {
|
|
2169
2256
|
if (L == null)
|
|
2170
2257
|
return !0;
|
|
2171
|
-
const { startRow:
|
|
2172
|
-
c >=
|
|
2258
|
+
const { startRow: I, startColumn: A, endRow: R, endColumn: d } = L;
|
|
2259
|
+
c >= I && c <= R && l >= A && l <= d && i.push({
|
|
2173
2260
|
unitId: a,
|
|
2174
2261
|
sheetId: e,
|
|
2175
2262
|
range: {
|
|
2176
|
-
startRow:
|
|
2263
|
+
startRow: I,
|
|
2177
2264
|
startColumn: A,
|
|
2178
|
-
endRow:
|
|
2265
|
+
endRow: I,
|
|
2179
2266
|
endColumn: A
|
|
2180
2267
|
}
|
|
2181
2268
|
});
|
|
@@ -2185,17 +2272,17 @@ let tt = class extends ee {
|
|
|
2185
2272
|
return i;
|
|
2186
2273
|
}
|
|
2187
2274
|
};
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
],
|
|
2193
|
-
var
|
|
2194
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
2275
|
+
ut = Or([
|
|
2276
|
+
_t(0, Va),
|
|
2277
|
+
_t(1, Re),
|
|
2278
|
+
_t(2, H(Be))
|
|
2279
|
+
], ut);
|
|
2280
|
+
var Mr = Object.getOwnPropertyDescriptor, xr = (a, e, n, i) => {
|
|
2281
|
+
for (var r = i > 1 ? void 0 : i ? Mr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
2195
2282
|
(u = a[o]) && (r = u(r) || r);
|
|
2196
2283
|
return r;
|
|
2197
|
-
},
|
|
2198
|
-
let
|
|
2284
|
+
}, Te = (a, e) => (n, i) => e(n, i, a);
|
|
2285
|
+
let mt = class extends z {
|
|
2199
2286
|
constructor(a, e, n, i, r, o, u) {
|
|
2200
2287
|
super(), this._commandService = a, this._configService = e, this._sheetInterceptorService = n, this._formulaDataModel = i, this._lexerTreeBuilder = r, this._functionService = o, this._definedNamesService = u, this._initialize();
|
|
2201
2288
|
}
|
|
@@ -2206,14 +2293,14 @@ let at = class extends ee {
|
|
|
2206
2293
|
this.disposeWithMe(
|
|
2207
2294
|
this._commandService.onCommandExecuted((a) => {
|
|
2208
2295
|
var n;
|
|
2209
|
-
const e = (n = this._configService.getConfig(
|
|
2210
|
-
if (a.id ===
|
|
2296
|
+
const e = (n = this._configService.getConfig(ve)) == null ? void 0 : n.writeArrayFormulaToSnapshot;
|
|
2297
|
+
if (a.id === Bt.id) {
|
|
2211
2298
|
const i = a.params;
|
|
2212
2299
|
if (i == null)
|
|
2213
2300
|
return;
|
|
2214
2301
|
const { arrayFormulaRange: r, arrayFormulaCellData: o, arrayFormulaEmbedded: u } = i;
|
|
2215
2302
|
this._formulaDataModel.setArrayFormulaRange(r), this._formulaDataModel.setArrayFormulaCellData(o), e && this._writeArrayFormulaToSnapshot(r, o, u);
|
|
2216
|
-
} else a.id ===
|
|
2303
|
+
} else a.id === Yn.id && e && (this._addPrefixToFunctionSnapshot(), this._addPrefixToDefinedNamesFunctionSnapshot());
|
|
2217
2304
|
})
|
|
2218
2305
|
);
|
|
2219
2306
|
}
|
|
@@ -2224,7 +2311,7 @@ let at = class extends ee {
|
|
|
2224
2311
|
const { formulaOrRefString: o } = r;
|
|
2225
2312
|
if (o.substring(0, 1) === "=") {
|
|
2226
2313
|
const u = this._lexerTreeBuilder.getNewFormulaWithPrefix(o, this._functionService.hasExecutor.bind(this._functionService));
|
|
2227
|
-
u && this._commandService.executeCommand(
|
|
2314
|
+
u && this._commandService.executeCommand(be.id, {
|
|
2228
2315
|
...r,
|
|
2229
2316
|
unitId: e,
|
|
2230
2317
|
formulaOrRefStringWithPrefix: u
|
|
@@ -2252,8 +2339,8 @@ let at = class extends ee {
|
|
|
2252
2339
|
u.setValue(f, c, { xf: L });
|
|
2253
2340
|
return;
|
|
2254
2341
|
}
|
|
2255
|
-
const
|
|
2256
|
-
|
|
2342
|
+
const T = this._lexerTreeBuilder.getNewFormulaWithPrefix(p, this._functionService.hasExecutor.bind(this._functionService));
|
|
2343
|
+
T && (u.setValue(f, c, { xf: T }), e.set(p, T));
|
|
2257
2344
|
}), this._commandService.executeCommand(j.id, {
|
|
2258
2345
|
unitId: n,
|
|
2259
2346
|
subUnitId: r,
|
|
@@ -2270,7 +2357,7 @@ let at = class extends ee {
|
|
|
2270
2357
|
r && Array.from(Object.entries(r)).forEach(([o, u]) => {
|
|
2271
2358
|
const m = new V();
|
|
2272
2359
|
new V(u).forValue((c, l, p) => {
|
|
2273
|
-
m.setValue(c, l, { ref:
|
|
2360
|
+
m.setValue(c, l, { ref: De(p) });
|
|
2274
2361
|
}), this._commandService.executeCommand(j.id, {
|
|
2275
2362
|
unitId: i,
|
|
2276
2363
|
subUnitId: o,
|
|
@@ -2284,9 +2371,9 @@ let at = class extends ee {
|
|
|
2284
2371
|
r && Array.from(Object.entries(r)).forEach(([o, u]) => {
|
|
2285
2372
|
const m = new V();
|
|
2286
2373
|
new V(u).forValue((c, l) => {
|
|
2287
|
-
var
|
|
2288
|
-
(
|
|
2289
|
-
ref:
|
|
2374
|
+
var T, L, I;
|
|
2375
|
+
(I = (L = (T = a == null ? void 0 : a[i]) == null ? void 0 : T[o]) == null ? void 0 : L[c]) != null && I[l] || m.setValue(c, l, {
|
|
2376
|
+
ref: De({
|
|
2290
2377
|
startRow: c,
|
|
2291
2378
|
endRow: c,
|
|
2292
2379
|
startColumn: l,
|
|
@@ -2317,31 +2404,31 @@ let at = class extends ee {
|
|
|
2317
2404
|
}
|
|
2318
2405
|
_initInterceptorCellContent() {
|
|
2319
2406
|
this.disposeWithMe(
|
|
2320
|
-
this._sheetInterceptorService.intercept(
|
|
2407
|
+
this._sheetInterceptorService.intercept(Sa.CELL_CONTENT, {
|
|
2321
2408
|
priority: 100,
|
|
2322
|
-
effect:
|
|
2409
|
+
effect: qt.Value,
|
|
2323
2410
|
handler: (a, e, n) => {
|
|
2324
|
-
var l, p,
|
|
2411
|
+
var l, p, T;
|
|
2325
2412
|
let i = a;
|
|
2326
|
-
const { unitId: r, subUnitId: o, row: u, col: m } = e, f = this._formulaDataModel.getArrayFormulaCellData(), c = (
|
|
2327
|
-
return c == null ? n(i) : ((!i || i === e.rawData) && (i = { ...e.rawData }), c.v == null && c.t == null ? (i.v = 0, i.t =
|
|
2413
|
+
const { unitId: r, subUnitId: o, row: u, col: m } = e, f = this._formulaDataModel.getArrayFormulaCellData(), c = (T = (p = (l = f == null ? void 0 : f[r]) == null ? void 0 : l[o]) == null ? void 0 : p[u]) == null ? void 0 : T[m];
|
|
2414
|
+
return c == null ? n(i) : ((!i || i === e.rawData) && (i = { ...e.rawData }), c.v == null && c.t == null ? (i.v = 0, i.t = gt.NUMBER, n(i)) : (i == null ? void 0 : i.t) === gt.NUMBER && i.v !== void 0 && i.v !== null && fn(i.v) ? (i.v = Xn(Number(i.v)), n(i)) : (i.v = c.v, i.t = c.t, n(i)));
|
|
2328
2415
|
}
|
|
2329
2416
|
})
|
|
2330
2417
|
);
|
|
2331
2418
|
}
|
|
2332
2419
|
};
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
],
|
|
2342
|
-
const
|
|
2343
|
-
{
|
|
2344
|
-
functionName:
|
|
2420
|
+
mt = xr([
|
|
2421
|
+
Te(0, ue),
|
|
2422
|
+
Te(1, xe),
|
|
2423
|
+
Te(2, H(Lt)),
|
|
2424
|
+
Te(3, H(Be)),
|
|
2425
|
+
Te(4, H(Fe)),
|
|
2426
|
+
Te(5, Et),
|
|
2427
|
+
Te(6, Tt)
|
|
2428
|
+
], mt);
|
|
2429
|
+
const _r = [
|
|
2430
|
+
{
|
|
2431
|
+
functionName: fa.ARRAY_CONSTRAIN,
|
|
2345
2432
|
functionType: t.Array,
|
|
2346
2433
|
description: "formula.functionList.ARRAY_CONSTRAIN.description",
|
|
2347
2434
|
abstract: "formula.functionList.ARRAY_CONSTRAIN.abstract",
|
|
@@ -2370,7 +2457,7 @@ const Er = [
|
|
|
2370
2457
|
]
|
|
2371
2458
|
},
|
|
2372
2459
|
{
|
|
2373
|
-
functionName:
|
|
2460
|
+
functionName: fa.FLATTEN,
|
|
2374
2461
|
functionType: t.Array,
|
|
2375
2462
|
description: "formula.functionList.FLATTEN.description",
|
|
2376
2463
|
abstract: "formula.functionList.FLATTEN.abstract",
|
|
@@ -2391,9 +2478,9 @@ const Er = [
|
|
|
2391
2478
|
}
|
|
2392
2479
|
]
|
|
2393
2480
|
}
|
|
2394
|
-
],
|
|
2481
|
+
], yr = [
|
|
2395
2482
|
{
|
|
2396
|
-
functionName:
|
|
2483
|
+
functionName: y.BETADIST,
|
|
2397
2484
|
functionType: t.Compatibility,
|
|
2398
2485
|
description: "formula.functionList.BETADIST.description",
|
|
2399
2486
|
abstract: "formula.functionList.BETADIST.abstract",
|
|
@@ -2436,7 +2523,7 @@ const Er = [
|
|
|
2436
2523
|
]
|
|
2437
2524
|
},
|
|
2438
2525
|
{
|
|
2439
|
-
functionName:
|
|
2526
|
+
functionName: y.BETAINV,
|
|
2440
2527
|
functionType: t.Compatibility,
|
|
2441
2528
|
description: "formula.functionList.BETAINV.description",
|
|
2442
2529
|
abstract: "formula.functionList.BETAINV.abstract",
|
|
@@ -2479,7 +2566,7 @@ const Er = [
|
|
|
2479
2566
|
]
|
|
2480
2567
|
},
|
|
2481
2568
|
{
|
|
2482
|
-
functionName:
|
|
2569
|
+
functionName: y.BINOMDIST,
|
|
2483
2570
|
functionType: t.Compatibility,
|
|
2484
2571
|
description: "formula.functionList.BINOMDIST.description",
|
|
2485
2572
|
abstract: "formula.functionList.BINOMDIST.abstract",
|
|
@@ -2515,7 +2602,7 @@ const Er = [
|
|
|
2515
2602
|
]
|
|
2516
2603
|
},
|
|
2517
2604
|
{
|
|
2518
|
-
functionName:
|
|
2605
|
+
functionName: y.CHIDIST,
|
|
2519
2606
|
functionType: t.Compatibility,
|
|
2520
2607
|
description: "formula.functionList.CHIDIST.description",
|
|
2521
2608
|
abstract: "formula.functionList.CHIDIST.abstract",
|
|
@@ -2537,7 +2624,7 @@ const Er = [
|
|
|
2537
2624
|
]
|
|
2538
2625
|
},
|
|
2539
2626
|
{
|
|
2540
|
-
functionName:
|
|
2627
|
+
functionName: y.CHIINV,
|
|
2541
2628
|
functionType: t.Compatibility,
|
|
2542
2629
|
description: "formula.functionList.CHIINV.description",
|
|
2543
2630
|
abstract: "formula.functionList.CHIINV.abstract",
|
|
@@ -2559,7 +2646,7 @@ const Er = [
|
|
|
2559
2646
|
]
|
|
2560
2647
|
},
|
|
2561
2648
|
{
|
|
2562
|
-
functionName:
|
|
2649
|
+
functionName: y.CHITEST,
|
|
2563
2650
|
functionType: t.Compatibility,
|
|
2564
2651
|
description: "formula.functionList.CHITEST.description",
|
|
2565
2652
|
abstract: "formula.functionList.CHITEST.abstract",
|
|
@@ -2581,7 +2668,7 @@ const Er = [
|
|
|
2581
2668
|
]
|
|
2582
2669
|
},
|
|
2583
2670
|
{
|
|
2584
|
-
functionName:
|
|
2671
|
+
functionName: y.CONFIDENCE,
|
|
2585
2672
|
functionType: t.Compatibility,
|
|
2586
2673
|
description: "formula.functionList.CONFIDENCE.description",
|
|
2587
2674
|
abstract: "formula.functionList.CONFIDENCE.abstract",
|
|
@@ -2610,7 +2697,7 @@ const Er = [
|
|
|
2610
2697
|
]
|
|
2611
2698
|
},
|
|
2612
2699
|
{
|
|
2613
|
-
functionName:
|
|
2700
|
+
functionName: y.COVAR,
|
|
2614
2701
|
functionType: t.Compatibility,
|
|
2615
2702
|
description: "formula.functionList.COVAR.description",
|
|
2616
2703
|
abstract: "formula.functionList.COVAR.abstract",
|
|
@@ -2632,7 +2719,7 @@ const Er = [
|
|
|
2632
2719
|
]
|
|
2633
2720
|
},
|
|
2634
2721
|
{
|
|
2635
|
-
functionName:
|
|
2722
|
+
functionName: y.CRITBINOM,
|
|
2636
2723
|
functionType: t.Compatibility,
|
|
2637
2724
|
description: "formula.functionList.CRITBINOM.description",
|
|
2638
2725
|
abstract: "formula.functionList.CRITBINOM.abstract",
|
|
@@ -2661,7 +2748,7 @@ const Er = [
|
|
|
2661
2748
|
]
|
|
2662
2749
|
},
|
|
2663
2750
|
{
|
|
2664
|
-
functionName:
|
|
2751
|
+
functionName: y.EXPONDIST,
|
|
2665
2752
|
functionType: t.Compatibility,
|
|
2666
2753
|
description: "formula.functionList.EXPONDIST.description",
|
|
2667
2754
|
abstract: "formula.functionList.EXPONDIST.abstract",
|
|
@@ -2690,7 +2777,7 @@ const Er = [
|
|
|
2690
2777
|
]
|
|
2691
2778
|
},
|
|
2692
2779
|
{
|
|
2693
|
-
functionName:
|
|
2780
|
+
functionName: y.FDIST,
|
|
2694
2781
|
functionType: t.Compatibility,
|
|
2695
2782
|
description: "formula.functionList.FDIST.description",
|
|
2696
2783
|
abstract: "formula.functionList.FDIST.abstract",
|
|
@@ -2719,7 +2806,7 @@ const Er = [
|
|
|
2719
2806
|
]
|
|
2720
2807
|
},
|
|
2721
2808
|
{
|
|
2722
|
-
functionName:
|
|
2809
|
+
functionName: y.FINV,
|
|
2723
2810
|
functionType: t.Compatibility,
|
|
2724
2811
|
description: "formula.functionList.FINV.description",
|
|
2725
2812
|
abstract: "formula.functionList.FINV.abstract",
|
|
@@ -2748,7 +2835,7 @@ const Er = [
|
|
|
2748
2835
|
]
|
|
2749
2836
|
},
|
|
2750
2837
|
{
|
|
2751
|
-
functionName:
|
|
2838
|
+
functionName: y.FTEST,
|
|
2752
2839
|
functionType: t.Compatibility,
|
|
2753
2840
|
description: "formula.functionList.FTEST.description",
|
|
2754
2841
|
abstract: "formula.functionList.FTEST.abstract",
|
|
@@ -2770,7 +2857,7 @@ const Er = [
|
|
|
2770
2857
|
]
|
|
2771
2858
|
},
|
|
2772
2859
|
{
|
|
2773
|
-
functionName:
|
|
2860
|
+
functionName: y.GAMMADIST,
|
|
2774
2861
|
functionType: t.Compatibility,
|
|
2775
2862
|
description: "formula.functionList.GAMMADIST.description",
|
|
2776
2863
|
abstract: "formula.functionList.GAMMADIST.abstract",
|
|
@@ -2806,7 +2893,7 @@ const Er = [
|
|
|
2806
2893
|
]
|
|
2807
2894
|
},
|
|
2808
2895
|
{
|
|
2809
|
-
functionName:
|
|
2896
|
+
functionName: y.GAMMAINV,
|
|
2810
2897
|
functionType: t.Compatibility,
|
|
2811
2898
|
description: "formula.functionList.GAMMAINV.description",
|
|
2812
2899
|
abstract: "formula.functionList.GAMMAINV.abstract",
|
|
@@ -2835,7 +2922,7 @@ const Er = [
|
|
|
2835
2922
|
]
|
|
2836
2923
|
},
|
|
2837
2924
|
{
|
|
2838
|
-
functionName:
|
|
2925
|
+
functionName: y.HYPGEOMDIST,
|
|
2839
2926
|
functionType: t.Compatibility,
|
|
2840
2927
|
description: "formula.functionList.HYPGEOMDIST.description",
|
|
2841
2928
|
abstract: "formula.functionList.HYPGEOMDIST.abstract",
|
|
@@ -2871,7 +2958,7 @@ const Er = [
|
|
|
2871
2958
|
]
|
|
2872
2959
|
},
|
|
2873
2960
|
{
|
|
2874
|
-
functionName:
|
|
2961
|
+
functionName: y.LOGINV,
|
|
2875
2962
|
functionType: t.Compatibility,
|
|
2876
2963
|
description: "formula.functionList.LOGINV.description",
|
|
2877
2964
|
abstract: "formula.functionList.LOGINV.abstract",
|
|
@@ -2900,7 +2987,7 @@ const Er = [
|
|
|
2900
2987
|
]
|
|
2901
2988
|
},
|
|
2902
2989
|
{
|
|
2903
|
-
functionName:
|
|
2990
|
+
functionName: y.LOGNORMDIST,
|
|
2904
2991
|
functionType: t.Compatibility,
|
|
2905
2992
|
description: "formula.functionList.LOGNORMDIST.description",
|
|
2906
2993
|
abstract: "formula.functionList.LOGNORMDIST.abstract",
|
|
@@ -2929,7 +3016,7 @@ const Er = [
|
|
|
2929
3016
|
]
|
|
2930
3017
|
},
|
|
2931
3018
|
{
|
|
2932
|
-
functionName:
|
|
3019
|
+
functionName: y.MODE,
|
|
2933
3020
|
functionType: t.Compatibility,
|
|
2934
3021
|
description: "formula.functionList.MODE.description",
|
|
2935
3022
|
abstract: "formula.functionList.MODE.abstract",
|
|
@@ -2951,7 +3038,7 @@ const Er = [
|
|
|
2951
3038
|
]
|
|
2952
3039
|
},
|
|
2953
3040
|
{
|
|
2954
|
-
functionName:
|
|
3041
|
+
functionName: y.NEGBINOMDIST,
|
|
2955
3042
|
functionType: t.Compatibility,
|
|
2956
3043
|
description: "formula.functionList.NEGBINOMDIST.description",
|
|
2957
3044
|
abstract: "formula.functionList.NEGBINOMDIST.abstract",
|
|
@@ -2980,7 +3067,7 @@ const Er = [
|
|
|
2980
3067
|
]
|
|
2981
3068
|
},
|
|
2982
3069
|
{
|
|
2983
|
-
functionName:
|
|
3070
|
+
functionName: y.NORMDIST,
|
|
2984
3071
|
functionType: t.Compatibility,
|
|
2985
3072
|
description: "formula.functionList.NORMDIST.description",
|
|
2986
3073
|
abstract: "formula.functionList.NORMDIST.abstract",
|
|
@@ -3016,7 +3103,7 @@ const Er = [
|
|
|
3016
3103
|
]
|
|
3017
3104
|
},
|
|
3018
3105
|
{
|
|
3019
|
-
functionName:
|
|
3106
|
+
functionName: y.NORMINV,
|
|
3020
3107
|
functionType: t.Compatibility,
|
|
3021
3108
|
description: "formula.functionList.NORMINV.description",
|
|
3022
3109
|
abstract: "formula.functionList.NORMINV.abstract",
|
|
@@ -3045,7 +3132,7 @@ const Er = [
|
|
|
3045
3132
|
]
|
|
3046
3133
|
},
|
|
3047
3134
|
{
|
|
3048
|
-
functionName:
|
|
3135
|
+
functionName: y.NORMSDIST,
|
|
3049
3136
|
functionType: t.Compatibility,
|
|
3050
3137
|
description: "formula.functionList.NORMSDIST.description",
|
|
3051
3138
|
abstract: "formula.functionList.NORMSDIST.abstract",
|
|
@@ -3060,7 +3147,7 @@ const Er = [
|
|
|
3060
3147
|
]
|
|
3061
3148
|
},
|
|
3062
3149
|
{
|
|
3063
|
-
functionName:
|
|
3150
|
+
functionName: y.NORMSINV,
|
|
3064
3151
|
functionType: t.Compatibility,
|
|
3065
3152
|
description: "formula.functionList.NORMSINV.description",
|
|
3066
3153
|
abstract: "formula.functionList.NORMSINV.abstract",
|
|
@@ -3075,7 +3162,7 @@ const Er = [
|
|
|
3075
3162
|
]
|
|
3076
3163
|
},
|
|
3077
3164
|
{
|
|
3078
|
-
functionName:
|
|
3165
|
+
functionName: y.PERCENTILE,
|
|
3079
3166
|
functionType: t.Compatibility,
|
|
3080
3167
|
description: "formula.functionList.PERCENTILE.description",
|
|
3081
3168
|
abstract: "formula.functionList.PERCENTILE.abstract",
|
|
@@ -3097,7 +3184,7 @@ const Er = [
|
|
|
3097
3184
|
]
|
|
3098
3185
|
},
|
|
3099
3186
|
{
|
|
3100
|
-
functionName:
|
|
3187
|
+
functionName: y.PERCENTRANK,
|
|
3101
3188
|
functionType: t.Compatibility,
|
|
3102
3189
|
description: "formula.functionList.PERCENTRANK.description",
|
|
3103
3190
|
abstract: "formula.functionList.PERCENTRANK.abstract",
|
|
@@ -3126,7 +3213,7 @@ const Er = [
|
|
|
3126
3213
|
]
|
|
3127
3214
|
},
|
|
3128
3215
|
{
|
|
3129
|
-
functionName:
|
|
3216
|
+
functionName: y.POISSON,
|
|
3130
3217
|
functionType: t.Compatibility,
|
|
3131
3218
|
description: "formula.functionList.POISSON.description",
|
|
3132
3219
|
abstract: "formula.functionList.POISSON.abstract",
|
|
@@ -3155,7 +3242,7 @@ const Er = [
|
|
|
3155
3242
|
]
|
|
3156
3243
|
},
|
|
3157
3244
|
{
|
|
3158
|
-
functionName:
|
|
3245
|
+
functionName: y.QUARTILE,
|
|
3159
3246
|
functionType: t.Compatibility,
|
|
3160
3247
|
description: "formula.functionList.QUARTILE.description",
|
|
3161
3248
|
abstract: "formula.functionList.QUARTILE.abstract",
|
|
@@ -3177,7 +3264,7 @@ const Er = [
|
|
|
3177
3264
|
]
|
|
3178
3265
|
},
|
|
3179
3266
|
{
|
|
3180
|
-
functionName:
|
|
3267
|
+
functionName: y.RANK,
|
|
3181
3268
|
functionType: t.Compatibility,
|
|
3182
3269
|
description: "formula.functionList.RANK.description",
|
|
3183
3270
|
abstract: "formula.functionList.RANK.abstract",
|
|
@@ -3206,7 +3293,7 @@ const Er = [
|
|
|
3206
3293
|
]
|
|
3207
3294
|
},
|
|
3208
3295
|
{
|
|
3209
|
-
functionName:
|
|
3296
|
+
functionName: y.STDEV,
|
|
3210
3297
|
functionType: t.Compatibility,
|
|
3211
3298
|
description: "formula.functionList.STDEV.description",
|
|
3212
3299
|
abstract: "formula.functionList.STDEV.abstract",
|
|
@@ -3228,7 +3315,7 @@ const Er = [
|
|
|
3228
3315
|
]
|
|
3229
3316
|
},
|
|
3230
3317
|
{
|
|
3231
|
-
functionName:
|
|
3318
|
+
functionName: y.STDEVP,
|
|
3232
3319
|
functionType: t.Compatibility,
|
|
3233
3320
|
description: "formula.functionList.STDEVP.description",
|
|
3234
3321
|
abstract: "formula.functionList.STDEVP.abstract",
|
|
@@ -3250,7 +3337,7 @@ const Er = [
|
|
|
3250
3337
|
]
|
|
3251
3338
|
},
|
|
3252
3339
|
{
|
|
3253
|
-
functionName:
|
|
3340
|
+
functionName: y.TDIST,
|
|
3254
3341
|
functionType: t.Compatibility,
|
|
3255
3342
|
description: "formula.functionList.TDIST.description",
|
|
3256
3343
|
abstract: "formula.functionList.TDIST.abstract",
|
|
@@ -3279,7 +3366,7 @@ const Er = [
|
|
|
3279
3366
|
]
|
|
3280
3367
|
},
|
|
3281
3368
|
{
|
|
3282
|
-
functionName:
|
|
3369
|
+
functionName: y.TINV,
|
|
3283
3370
|
functionType: t.Compatibility,
|
|
3284
3371
|
description: "formula.functionList.TINV.description",
|
|
3285
3372
|
abstract: "formula.functionList.TINV.abstract",
|
|
@@ -3301,7 +3388,7 @@ const Er = [
|
|
|
3301
3388
|
]
|
|
3302
3389
|
},
|
|
3303
3390
|
{
|
|
3304
|
-
functionName:
|
|
3391
|
+
functionName: y.TTEST,
|
|
3305
3392
|
functionType: t.Compatibility,
|
|
3306
3393
|
description: "formula.functionList.TTEST.description",
|
|
3307
3394
|
abstract: "formula.functionList.TTEST.abstract",
|
|
@@ -3337,7 +3424,7 @@ const Er = [
|
|
|
3337
3424
|
]
|
|
3338
3425
|
},
|
|
3339
3426
|
{
|
|
3340
|
-
functionName:
|
|
3427
|
+
functionName: y.VAR,
|
|
3341
3428
|
functionType: t.Compatibility,
|
|
3342
3429
|
description: "formula.functionList.VAR.description",
|
|
3343
3430
|
abstract: "formula.functionList.VAR.abstract",
|
|
@@ -3359,7 +3446,7 @@ const Er = [
|
|
|
3359
3446
|
]
|
|
3360
3447
|
},
|
|
3361
3448
|
{
|
|
3362
|
-
functionName:
|
|
3449
|
+
functionName: y.VARP,
|
|
3363
3450
|
functionType: t.Compatibility,
|
|
3364
3451
|
description: "formula.functionList.VARP.description",
|
|
3365
3452
|
abstract: "formula.functionList.VARP.abstract",
|
|
@@ -3381,7 +3468,7 @@ const Er = [
|
|
|
3381
3468
|
]
|
|
3382
3469
|
},
|
|
3383
3470
|
{
|
|
3384
|
-
functionName:
|
|
3471
|
+
functionName: y.WEIBULL,
|
|
3385
3472
|
functionType: t.Compatibility,
|
|
3386
3473
|
description: "formula.functionList.WEIBULL.description",
|
|
3387
3474
|
abstract: "formula.functionList.WEIBULL.abstract",
|
|
@@ -3417,7 +3504,7 @@ const Er = [
|
|
|
3417
3504
|
]
|
|
3418
3505
|
},
|
|
3419
3506
|
{
|
|
3420
|
-
functionName:
|
|
3507
|
+
functionName: y.ZTEST,
|
|
3421
3508
|
functionType: t.Compatibility,
|
|
3422
3509
|
description: "formula.functionList.ZTEST.description",
|
|
3423
3510
|
abstract: "formula.functionList.ZTEST.abstract",
|
|
@@ -3445,9 +3532,9 @@ const Er = [
|
|
|
3445
3532
|
}
|
|
3446
3533
|
]
|
|
3447
3534
|
}
|
|
3448
|
-
],
|
|
3535
|
+
], gr = [
|
|
3449
3536
|
{
|
|
3450
|
-
functionName:
|
|
3537
|
+
functionName: Le.CUBEKPIMEMBER,
|
|
3451
3538
|
functionType: t.Cube,
|
|
3452
3539
|
description: "formula.functionList.CUBEKPIMEMBER.description",
|
|
3453
3540
|
abstract: "formula.functionList.CUBEKPIMEMBER.abstract",
|
|
@@ -3469,7 +3556,7 @@ const Er = [
|
|
|
3469
3556
|
]
|
|
3470
3557
|
},
|
|
3471
3558
|
{
|
|
3472
|
-
functionName:
|
|
3559
|
+
functionName: Le.CUBEMEMBER,
|
|
3473
3560
|
functionType: t.Cube,
|
|
3474
3561
|
description: "formula.functionList.CUBEMEMBER.description",
|
|
3475
3562
|
abstract: "formula.functionList.CUBEMEMBER.abstract",
|
|
@@ -3491,7 +3578,7 @@ const Er = [
|
|
|
3491
3578
|
]
|
|
3492
3579
|
},
|
|
3493
3580
|
{
|
|
3494
|
-
functionName:
|
|
3581
|
+
functionName: Le.CUBEMEMBERPROPERTY,
|
|
3495
3582
|
functionType: t.Cube,
|
|
3496
3583
|
description: "formula.functionList.CUBEMEMBERPROPERTY.description",
|
|
3497
3584
|
abstract: "formula.functionList.CUBEMEMBERPROPERTY.abstract",
|
|
@@ -3513,7 +3600,7 @@ const Er = [
|
|
|
3513
3600
|
]
|
|
3514
3601
|
},
|
|
3515
3602
|
{
|
|
3516
|
-
functionName:
|
|
3603
|
+
functionName: Le.CUBERANKEDMEMBER,
|
|
3517
3604
|
functionType: t.Cube,
|
|
3518
3605
|
description: "formula.functionList.CUBERANKEDMEMBER.description",
|
|
3519
3606
|
abstract: "formula.functionList.CUBERANKEDMEMBER.abstract",
|
|
@@ -3535,7 +3622,7 @@ const Er = [
|
|
|
3535
3622
|
]
|
|
3536
3623
|
},
|
|
3537
3624
|
{
|
|
3538
|
-
functionName:
|
|
3625
|
+
functionName: Le.CUBESET,
|
|
3539
3626
|
functionType: t.Cube,
|
|
3540
3627
|
description: "formula.functionList.CUBESET.description",
|
|
3541
3628
|
abstract: "formula.functionList.CUBESET.abstract",
|
|
@@ -3557,7 +3644,7 @@ const Er = [
|
|
|
3557
3644
|
]
|
|
3558
3645
|
},
|
|
3559
3646
|
{
|
|
3560
|
-
functionName:
|
|
3647
|
+
functionName: Le.CUBESETCOUNT,
|
|
3561
3648
|
functionType: t.Cube,
|
|
3562
3649
|
description: "formula.functionList.CUBESETCOUNT.description",
|
|
3563
3650
|
abstract: "formula.functionList.CUBESETCOUNT.abstract",
|
|
@@ -3579,7 +3666,7 @@ const Er = [
|
|
|
3579
3666
|
]
|
|
3580
3667
|
},
|
|
3581
3668
|
{
|
|
3582
|
-
functionName:
|
|
3669
|
+
functionName: Le.CUBEVALUE,
|
|
3583
3670
|
functionType: t.Cube,
|
|
3584
3671
|
description: "formula.functionList.CUBEVALUE.description",
|
|
3585
3672
|
abstract: "formula.functionList.CUBEVALUE.abstract",
|
|
@@ -3600,7 +3687,7 @@ const Er = [
|
|
|
3600
3687
|
}
|
|
3601
3688
|
]
|
|
3602
3689
|
}
|
|
3603
|
-
],
|
|
3690
|
+
], qr = [
|
|
3604
3691
|
{
|
|
3605
3692
|
functionName: $.DAVERAGE,
|
|
3606
3693
|
functionType: t.Database,
|
|
@@ -3949,7 +4036,7 @@ const Er = [
|
|
|
3949
4036
|
}
|
|
3950
4037
|
]
|
|
3951
4038
|
}
|
|
3952
|
-
],
|
|
4039
|
+
], hr = [
|
|
3953
4040
|
{
|
|
3954
4041
|
functionName: v.DATE,
|
|
3955
4042
|
functionType: t.Date,
|
|
@@ -4521,7 +4608,7 @@ const Er = [
|
|
|
4521
4608
|
}
|
|
4522
4609
|
]
|
|
4523
4610
|
}
|
|
4524
|
-
],
|
|
4611
|
+
], Ur = [
|
|
4525
4612
|
{
|
|
4526
4613
|
functionName: C.BESSELI,
|
|
4527
4614
|
functionType: t.Engineering,
|
|
@@ -5594,7 +5681,7 @@ const Er = [
|
|
|
5594
5681
|
}
|
|
5595
5682
|
]
|
|
5596
5683
|
}
|
|
5597
|
-
],
|
|
5684
|
+
], Fr = [
|
|
5598
5685
|
{
|
|
5599
5686
|
functionName: D.ACCRINT,
|
|
5600
5687
|
functionType: t.Financial,
|
|
@@ -7855,7 +7942,7 @@ const Er = [
|
|
|
7855
7942
|
}
|
|
7856
7943
|
]
|
|
7857
7944
|
}
|
|
7858
|
-
],
|
|
7945
|
+
], Br = [
|
|
7859
7946
|
{
|
|
7860
7947
|
functionName: G.CELL,
|
|
7861
7948
|
functionType: t.Information,
|
|
@@ -8264,7 +8351,7 @@ const Er = [
|
|
|
8264
8351
|
}
|
|
8265
8352
|
]
|
|
8266
8353
|
}
|
|
8267
|
-
],
|
|
8354
|
+
], vr = [
|
|
8268
8355
|
{
|
|
8269
8356
|
functionName: W.AND,
|
|
8270
8357
|
functionType: t.Logical,
|
|
@@ -8738,9 +8825,9 @@ const Er = [
|
|
|
8738
8825
|
}
|
|
8739
8826
|
]
|
|
8740
8827
|
}
|
|
8741
|
-
],
|
|
8828
|
+
], Vr = [
|
|
8742
8829
|
{
|
|
8743
|
-
functionName:
|
|
8830
|
+
functionName: q.ADDRESS,
|
|
8744
8831
|
functionType: t.Lookup,
|
|
8745
8832
|
description: "formula.functionList.ADDRESS.description",
|
|
8746
8833
|
abstract: "formula.functionList.ADDRESS.abstract",
|
|
@@ -8783,7 +8870,7 @@ const Er = [
|
|
|
8783
8870
|
]
|
|
8784
8871
|
},
|
|
8785
8872
|
{
|
|
8786
|
-
functionName:
|
|
8873
|
+
functionName: q.AREAS,
|
|
8787
8874
|
functionType: t.Lookup,
|
|
8788
8875
|
description: "formula.functionList.AREAS.description",
|
|
8789
8876
|
abstract: "formula.functionList.AREAS.abstract",
|
|
@@ -8798,7 +8885,7 @@ const Er = [
|
|
|
8798
8885
|
]
|
|
8799
8886
|
},
|
|
8800
8887
|
{
|
|
8801
|
-
functionName:
|
|
8888
|
+
functionName: q.CHOOSE,
|
|
8802
8889
|
functionType: t.Lookup,
|
|
8803
8890
|
description: "formula.functionList.CHOOSE.description",
|
|
8804
8891
|
abstract: "formula.functionList.CHOOSE.abstract",
|
|
@@ -8827,7 +8914,7 @@ const Er = [
|
|
|
8827
8914
|
]
|
|
8828
8915
|
},
|
|
8829
8916
|
{
|
|
8830
|
-
functionName:
|
|
8917
|
+
functionName: q.CHOOSECOLS,
|
|
8831
8918
|
functionType: t.Lookup,
|
|
8832
8919
|
description: "formula.functionList.CHOOSECOLS.description",
|
|
8833
8920
|
abstract: "formula.functionList.CHOOSECOLS.abstract",
|
|
@@ -8856,7 +8943,7 @@ const Er = [
|
|
|
8856
8943
|
]
|
|
8857
8944
|
},
|
|
8858
8945
|
{
|
|
8859
|
-
functionName:
|
|
8946
|
+
functionName: q.CHOOSEROWS,
|
|
8860
8947
|
functionType: t.Lookup,
|
|
8861
8948
|
description: "formula.functionList.CHOOSEROWS.description",
|
|
8862
8949
|
abstract: "formula.functionList.CHOOSEROWS.abstract",
|
|
@@ -8885,7 +8972,7 @@ const Er = [
|
|
|
8885
8972
|
]
|
|
8886
8973
|
},
|
|
8887
8974
|
{
|
|
8888
|
-
functionName:
|
|
8975
|
+
functionName: q.COLUMN,
|
|
8889
8976
|
functionType: t.Lookup,
|
|
8890
8977
|
description: "formula.functionList.COLUMN.description",
|
|
8891
8978
|
abstract: "formula.functionList.COLUMN.abstract",
|
|
@@ -8900,7 +8987,7 @@ const Er = [
|
|
|
8900
8987
|
]
|
|
8901
8988
|
},
|
|
8902
8989
|
{
|
|
8903
|
-
functionName:
|
|
8990
|
+
functionName: q.COLUMNS,
|
|
8904
8991
|
functionType: t.Lookup,
|
|
8905
8992
|
description: "formula.functionList.COLUMNS.description",
|
|
8906
8993
|
abstract: "formula.functionList.COLUMNS.abstract",
|
|
@@ -8915,7 +9002,7 @@ const Er = [
|
|
|
8915
9002
|
]
|
|
8916
9003
|
},
|
|
8917
9004
|
{
|
|
8918
|
-
functionName:
|
|
9005
|
+
functionName: q.DROP,
|
|
8919
9006
|
functionType: t.Lookup,
|
|
8920
9007
|
description: "formula.functionList.DROP.description",
|
|
8921
9008
|
abstract: "formula.functionList.DROP.abstract",
|
|
@@ -8944,7 +9031,7 @@ const Er = [
|
|
|
8944
9031
|
]
|
|
8945
9032
|
},
|
|
8946
9033
|
{
|
|
8947
|
-
functionName:
|
|
9034
|
+
functionName: q.EXPAND,
|
|
8948
9035
|
functionType: t.Lookup,
|
|
8949
9036
|
description: "formula.functionList.EXPAND.description",
|
|
8950
9037
|
abstract: "formula.functionList.EXPAND.abstract",
|
|
@@ -8980,7 +9067,7 @@ const Er = [
|
|
|
8980
9067
|
]
|
|
8981
9068
|
},
|
|
8982
9069
|
{
|
|
8983
|
-
functionName:
|
|
9070
|
+
functionName: q.FILTER,
|
|
8984
9071
|
functionType: t.Lookup,
|
|
8985
9072
|
description: "formula.functionList.FILTER.description",
|
|
8986
9073
|
abstract: "formula.functionList.FILTER.abstract",
|
|
@@ -9009,7 +9096,7 @@ const Er = [
|
|
|
9009
9096
|
]
|
|
9010
9097
|
},
|
|
9011
9098
|
{
|
|
9012
|
-
functionName:
|
|
9099
|
+
functionName: q.FORMULATEXT,
|
|
9013
9100
|
functionType: t.Lookup,
|
|
9014
9101
|
description: "formula.functionList.FORMULATEXT.description",
|
|
9015
9102
|
abstract: "formula.functionList.FORMULATEXT.abstract",
|
|
@@ -9024,7 +9111,7 @@ const Er = [
|
|
|
9024
9111
|
]
|
|
9025
9112
|
},
|
|
9026
9113
|
{
|
|
9027
|
-
functionName:
|
|
9114
|
+
functionName: q.GETPIVOTDATA,
|
|
9028
9115
|
functionType: t.Lookup,
|
|
9029
9116
|
description: "formula.functionList.GETPIVOTDATA.description",
|
|
9030
9117
|
abstract: "formula.functionList.GETPIVOTDATA.abstract",
|
|
@@ -9046,7 +9133,7 @@ const Er = [
|
|
|
9046
9133
|
]
|
|
9047
9134
|
},
|
|
9048
9135
|
{
|
|
9049
|
-
functionName:
|
|
9136
|
+
functionName: q.HLOOKUP,
|
|
9050
9137
|
functionType: t.Lookup,
|
|
9051
9138
|
description: "formula.functionList.HLOOKUP.description",
|
|
9052
9139
|
abstract: "formula.functionList.HLOOKUP.abstract",
|
|
@@ -9082,7 +9169,7 @@ const Er = [
|
|
|
9082
9169
|
]
|
|
9083
9170
|
},
|
|
9084
9171
|
{
|
|
9085
|
-
functionName:
|
|
9172
|
+
functionName: q.HSTACK,
|
|
9086
9173
|
functionType: t.Lookup,
|
|
9087
9174
|
description: "formula.functionList.HSTACK.description",
|
|
9088
9175
|
abstract: "formula.functionList.HSTACK.abstract",
|
|
@@ -9104,7 +9191,7 @@ const Er = [
|
|
|
9104
9191
|
]
|
|
9105
9192
|
},
|
|
9106
9193
|
{
|
|
9107
|
-
functionName:
|
|
9194
|
+
functionName: q.HYPERLINK,
|
|
9108
9195
|
functionType: t.Lookup,
|
|
9109
9196
|
description: "formula.functionList.HYPERLINK.description",
|
|
9110
9197
|
abstract: "formula.functionList.HYPERLINK.abstract",
|
|
@@ -9126,7 +9213,7 @@ const Er = [
|
|
|
9126
9213
|
]
|
|
9127
9214
|
},
|
|
9128
9215
|
{
|
|
9129
|
-
functionName:
|
|
9216
|
+
functionName: q.IMAGE,
|
|
9130
9217
|
functionType: t.Lookup,
|
|
9131
9218
|
description: "formula.functionList.IMAGE.description",
|
|
9132
9219
|
abstract: "formula.functionList.IMAGE.abstract",
|
|
@@ -9169,7 +9256,7 @@ const Er = [
|
|
|
9169
9256
|
]
|
|
9170
9257
|
},
|
|
9171
9258
|
{
|
|
9172
|
-
functionName:
|
|
9259
|
+
functionName: q.INDEX,
|
|
9173
9260
|
functionType: t.Lookup,
|
|
9174
9261
|
description: "formula.functionList.INDEX.description",
|
|
9175
9262
|
abstract: "formula.functionList.INDEX.abstract",
|
|
@@ -9205,7 +9292,7 @@ const Er = [
|
|
|
9205
9292
|
]
|
|
9206
9293
|
},
|
|
9207
9294
|
{
|
|
9208
|
-
functionName:
|
|
9295
|
+
functionName: q.INDIRECT,
|
|
9209
9296
|
functionType: t.Lookup,
|
|
9210
9297
|
description: "formula.functionList.INDIRECT.description",
|
|
9211
9298
|
abstract: "formula.functionList.INDIRECT.abstract",
|
|
@@ -9227,7 +9314,7 @@ const Er = [
|
|
|
9227
9314
|
]
|
|
9228
9315
|
},
|
|
9229
9316
|
{
|
|
9230
|
-
functionName:
|
|
9317
|
+
functionName: q.LOOKUP,
|
|
9231
9318
|
functionType: t.Lookup,
|
|
9232
9319
|
description: "formula.functionList.LOOKUP.description",
|
|
9233
9320
|
abstract: "formula.functionList.LOOKUP.abstract",
|
|
@@ -9256,7 +9343,7 @@ const Er = [
|
|
|
9256
9343
|
]
|
|
9257
9344
|
},
|
|
9258
9345
|
{
|
|
9259
|
-
functionName:
|
|
9346
|
+
functionName: q.MATCH,
|
|
9260
9347
|
functionType: t.Lookup,
|
|
9261
9348
|
description: "formula.functionList.MATCH.description",
|
|
9262
9349
|
abstract: "formula.functionList.MATCH.abstract",
|
|
@@ -9285,7 +9372,7 @@ const Er = [
|
|
|
9285
9372
|
]
|
|
9286
9373
|
},
|
|
9287
9374
|
{
|
|
9288
|
-
functionName:
|
|
9375
|
+
functionName: q.OFFSET,
|
|
9289
9376
|
functionType: t.Lookup,
|
|
9290
9377
|
description: "formula.functionList.OFFSET.description",
|
|
9291
9378
|
abstract: "formula.functionList.OFFSET.abstract",
|
|
@@ -9328,7 +9415,7 @@ const Er = [
|
|
|
9328
9415
|
]
|
|
9329
9416
|
},
|
|
9330
9417
|
{
|
|
9331
|
-
functionName:
|
|
9418
|
+
functionName: q.ROW,
|
|
9332
9419
|
functionType: t.Lookup,
|
|
9333
9420
|
description: "formula.functionList.ROW.description",
|
|
9334
9421
|
abstract: "formula.functionList.ROW.abstract",
|
|
@@ -9343,7 +9430,7 @@ const Er = [
|
|
|
9343
9430
|
]
|
|
9344
9431
|
},
|
|
9345
9432
|
{
|
|
9346
|
-
functionName:
|
|
9433
|
+
functionName: q.ROWS,
|
|
9347
9434
|
functionType: t.Lookup,
|
|
9348
9435
|
description: "formula.functionList.ROWS.description",
|
|
9349
9436
|
abstract: "formula.functionList.ROWS.abstract",
|
|
@@ -9358,7 +9445,7 @@ const Er = [
|
|
|
9358
9445
|
]
|
|
9359
9446
|
},
|
|
9360
9447
|
{
|
|
9361
|
-
functionName:
|
|
9448
|
+
functionName: q.RTD,
|
|
9362
9449
|
functionType: t.Lookup,
|
|
9363
9450
|
description: "formula.functionList.RTD.description",
|
|
9364
9451
|
abstract: "formula.functionList.RTD.abstract",
|
|
@@ -9380,7 +9467,7 @@ const Er = [
|
|
|
9380
9467
|
]
|
|
9381
9468
|
},
|
|
9382
9469
|
{
|
|
9383
|
-
functionName:
|
|
9470
|
+
functionName: q.SORT,
|
|
9384
9471
|
functionType: t.Lookup,
|
|
9385
9472
|
description: "formula.functionList.SORT.description",
|
|
9386
9473
|
abstract: "formula.functionList.SORT.abstract",
|
|
@@ -9416,7 +9503,7 @@ const Er = [
|
|
|
9416
9503
|
]
|
|
9417
9504
|
},
|
|
9418
9505
|
{
|
|
9419
|
-
functionName:
|
|
9506
|
+
functionName: q.SORTBY,
|
|
9420
9507
|
functionType: t.Lookup,
|
|
9421
9508
|
description: "formula.functionList.SORTBY.description",
|
|
9422
9509
|
abstract: "formula.functionList.SORTBY.abstract",
|
|
@@ -9459,7 +9546,7 @@ const Er = [
|
|
|
9459
9546
|
]
|
|
9460
9547
|
},
|
|
9461
9548
|
{
|
|
9462
|
-
functionName:
|
|
9549
|
+
functionName: q.TAKE,
|
|
9463
9550
|
functionType: t.Lookup,
|
|
9464
9551
|
description: "formula.functionList.TAKE.description",
|
|
9465
9552
|
abstract: "formula.functionList.TAKE.abstract",
|
|
@@ -9488,7 +9575,7 @@ const Er = [
|
|
|
9488
9575
|
]
|
|
9489
9576
|
},
|
|
9490
9577
|
{
|
|
9491
|
-
functionName:
|
|
9578
|
+
functionName: q.TOCOL,
|
|
9492
9579
|
functionType: t.Lookup,
|
|
9493
9580
|
description: "formula.functionList.TOCOL.description",
|
|
9494
9581
|
abstract: "formula.functionList.TOCOL.abstract",
|
|
@@ -9517,7 +9604,7 @@ const Er = [
|
|
|
9517
9604
|
]
|
|
9518
9605
|
},
|
|
9519
9606
|
{
|
|
9520
|
-
functionName:
|
|
9607
|
+
functionName: q.TOROW,
|
|
9521
9608
|
functionType: t.Lookup,
|
|
9522
9609
|
description: "formula.functionList.TOROW.description",
|
|
9523
9610
|
abstract: "formula.functionList.TOROW.abstract",
|
|
@@ -9546,7 +9633,7 @@ const Er = [
|
|
|
9546
9633
|
]
|
|
9547
9634
|
},
|
|
9548
9635
|
{
|
|
9549
|
-
functionName:
|
|
9636
|
+
functionName: q.TRANSPOSE,
|
|
9550
9637
|
functionType: t.Lookup,
|
|
9551
9638
|
description: "formula.functionList.TRANSPOSE.description",
|
|
9552
9639
|
abstract: "formula.functionList.TRANSPOSE.abstract",
|
|
@@ -9561,7 +9648,7 @@ const Er = [
|
|
|
9561
9648
|
]
|
|
9562
9649
|
},
|
|
9563
9650
|
{
|
|
9564
|
-
functionName:
|
|
9651
|
+
functionName: q.UNIQUE,
|
|
9565
9652
|
functionType: t.Lookup,
|
|
9566
9653
|
description: "formula.functionList.UNIQUE.description",
|
|
9567
9654
|
abstract: "formula.functionList.UNIQUE.abstract",
|
|
@@ -9590,7 +9677,7 @@ const Er = [
|
|
|
9590
9677
|
]
|
|
9591
9678
|
},
|
|
9592
9679
|
{
|
|
9593
|
-
functionName:
|
|
9680
|
+
functionName: q.VLOOKUP,
|
|
9594
9681
|
functionType: t.Lookup,
|
|
9595
9682
|
description: "formula.functionList.VLOOKUP.description",
|
|
9596
9683
|
abstract: "formula.functionList.VLOOKUP.abstract",
|
|
@@ -9626,7 +9713,7 @@ const Er = [
|
|
|
9626
9713
|
]
|
|
9627
9714
|
},
|
|
9628
9715
|
{
|
|
9629
|
-
functionName:
|
|
9716
|
+
functionName: q.VSTACK,
|
|
9630
9717
|
functionType: t.Lookup,
|
|
9631
9718
|
description: "formula.functionList.VSTACK.description",
|
|
9632
9719
|
abstract: "formula.functionList.VSTACK.abstract",
|
|
@@ -9648,7 +9735,7 @@ const Er = [
|
|
|
9648
9735
|
]
|
|
9649
9736
|
},
|
|
9650
9737
|
{
|
|
9651
|
-
functionName:
|
|
9738
|
+
functionName: q.WRAPCOLS,
|
|
9652
9739
|
functionType: t.Lookup,
|
|
9653
9740
|
description: "formula.functionList.WRAPCOLS.description",
|
|
9654
9741
|
abstract: "formula.functionList.WRAPCOLS.abstract",
|
|
@@ -9677,7 +9764,7 @@ const Er = [
|
|
|
9677
9764
|
]
|
|
9678
9765
|
},
|
|
9679
9766
|
{
|
|
9680
|
-
functionName:
|
|
9767
|
+
functionName: q.WRAPROWS,
|
|
9681
9768
|
functionType: t.Lookup,
|
|
9682
9769
|
description: "formula.functionList.WRAPROWS.description",
|
|
9683
9770
|
abstract: "formula.functionList.WRAPROWS.abstract",
|
|
@@ -9706,7 +9793,7 @@ const Er = [
|
|
|
9706
9793
|
]
|
|
9707
9794
|
},
|
|
9708
9795
|
{
|
|
9709
|
-
functionName:
|
|
9796
|
+
functionName: q.XLOOKUP,
|
|
9710
9797
|
functionType: t.Lookup,
|
|
9711
9798
|
description: "formula.functionList.XLOOKUP.description",
|
|
9712
9799
|
abstract: "formula.functionList.XLOOKUP.abstract",
|
|
@@ -9756,7 +9843,7 @@ const Er = [
|
|
|
9756
9843
|
]
|
|
9757
9844
|
},
|
|
9758
9845
|
{
|
|
9759
|
-
functionName:
|
|
9846
|
+
functionName: q.XMATCH,
|
|
9760
9847
|
functionType: t.Lookup,
|
|
9761
9848
|
description: "formula.functionList.XMATCH.description",
|
|
9762
9849
|
abstract: "formula.functionList.XMATCH.abstract",
|
|
@@ -9791,9 +9878,9 @@ const Er = [
|
|
|
9791
9878
|
}
|
|
9792
9879
|
]
|
|
9793
9880
|
}
|
|
9794
|
-
],
|
|
9881
|
+
], Gr = [
|
|
9795
9882
|
{
|
|
9796
|
-
functionName:
|
|
9883
|
+
functionName: E.ABS,
|
|
9797
9884
|
functionType: t.Math,
|
|
9798
9885
|
description: "formula.functionList.ABS.description",
|
|
9799
9886
|
abstract: "formula.functionList.ABS.abstract",
|
|
@@ -9808,7 +9895,7 @@ const Er = [
|
|
|
9808
9895
|
]
|
|
9809
9896
|
},
|
|
9810
9897
|
{
|
|
9811
|
-
functionName:
|
|
9898
|
+
functionName: E.ACOS,
|
|
9812
9899
|
functionType: t.Math,
|
|
9813
9900
|
description: "formula.functionList.ACOS.description",
|
|
9814
9901
|
abstract: "formula.functionList.ACOS.abstract",
|
|
@@ -9823,7 +9910,7 @@ const Er = [
|
|
|
9823
9910
|
]
|
|
9824
9911
|
},
|
|
9825
9912
|
{
|
|
9826
|
-
functionName:
|
|
9913
|
+
functionName: E.ACOSH,
|
|
9827
9914
|
functionType: t.Math,
|
|
9828
9915
|
description: "formula.functionList.ACOSH.description",
|
|
9829
9916
|
abstract: "formula.functionList.ACOSH.abstract",
|
|
@@ -9838,7 +9925,7 @@ const Er = [
|
|
|
9838
9925
|
]
|
|
9839
9926
|
},
|
|
9840
9927
|
{
|
|
9841
|
-
functionName:
|
|
9928
|
+
functionName: E.ACOT,
|
|
9842
9929
|
functionType: t.Math,
|
|
9843
9930
|
description: "formula.functionList.ACOT.description",
|
|
9844
9931
|
abstract: "formula.functionList.ACOT.abstract",
|
|
@@ -9853,7 +9940,7 @@ const Er = [
|
|
|
9853
9940
|
]
|
|
9854
9941
|
},
|
|
9855
9942
|
{
|
|
9856
|
-
functionName:
|
|
9943
|
+
functionName: E.ACOTH,
|
|
9857
9944
|
functionType: t.Math,
|
|
9858
9945
|
description: "formula.functionList.ACOTH.description",
|
|
9859
9946
|
abstract: "formula.functionList.ACOTH.abstract",
|
|
@@ -9868,7 +9955,7 @@ const Er = [
|
|
|
9868
9955
|
]
|
|
9869
9956
|
},
|
|
9870
9957
|
{
|
|
9871
|
-
functionName:
|
|
9958
|
+
functionName: E.AGGREGATE,
|
|
9872
9959
|
functionType: t.Math,
|
|
9873
9960
|
description: "formula.functionList.AGGREGATE.description",
|
|
9874
9961
|
abstract: "formula.functionList.AGGREGATE.abstract",
|
|
@@ -9904,7 +9991,7 @@ const Er = [
|
|
|
9904
9991
|
]
|
|
9905
9992
|
},
|
|
9906
9993
|
{
|
|
9907
|
-
functionName:
|
|
9994
|
+
functionName: E.ARABIC,
|
|
9908
9995
|
functionType: t.Math,
|
|
9909
9996
|
description: "formula.functionList.ARABIC.description",
|
|
9910
9997
|
abstract: "formula.functionList.ARABIC.abstract",
|
|
@@ -9919,7 +10006,7 @@ const Er = [
|
|
|
9919
10006
|
]
|
|
9920
10007
|
},
|
|
9921
10008
|
{
|
|
9922
|
-
functionName:
|
|
10009
|
+
functionName: E.ASIN,
|
|
9923
10010
|
functionType: t.Math,
|
|
9924
10011
|
description: "formula.functionList.ASIN.description",
|
|
9925
10012
|
abstract: "formula.functionList.ASIN.abstract",
|
|
@@ -9934,7 +10021,7 @@ const Er = [
|
|
|
9934
10021
|
]
|
|
9935
10022
|
},
|
|
9936
10023
|
{
|
|
9937
|
-
functionName:
|
|
10024
|
+
functionName: E.ASINH,
|
|
9938
10025
|
functionType: t.Math,
|
|
9939
10026
|
description: "formula.functionList.ASINH.description",
|
|
9940
10027
|
abstract: "formula.functionList.ASINH.abstract",
|
|
@@ -9949,7 +10036,7 @@ const Er = [
|
|
|
9949
10036
|
]
|
|
9950
10037
|
},
|
|
9951
10038
|
{
|
|
9952
|
-
functionName:
|
|
10039
|
+
functionName: E.ATAN,
|
|
9953
10040
|
functionType: t.Math,
|
|
9954
10041
|
description: "formula.functionList.ATAN.description",
|
|
9955
10042
|
abstract: "formula.functionList.ATAN.abstract",
|
|
@@ -9964,7 +10051,7 @@ const Er = [
|
|
|
9964
10051
|
]
|
|
9965
10052
|
},
|
|
9966
10053
|
{
|
|
9967
|
-
functionName:
|
|
10054
|
+
functionName: E.ATAN2,
|
|
9968
10055
|
functionType: t.Math,
|
|
9969
10056
|
description: "formula.functionList.ATAN2.description",
|
|
9970
10057
|
abstract: "formula.functionList.ATAN2.abstract",
|
|
@@ -9986,7 +10073,7 @@ const Er = [
|
|
|
9986
10073
|
]
|
|
9987
10074
|
},
|
|
9988
10075
|
{
|
|
9989
|
-
functionName:
|
|
10076
|
+
functionName: E.ATANH,
|
|
9990
10077
|
functionType: t.Math,
|
|
9991
10078
|
description: "formula.functionList.ATANH.description",
|
|
9992
10079
|
abstract: "formula.functionList.ATANH.abstract",
|
|
@@ -10001,7 +10088,7 @@ const Er = [
|
|
|
10001
10088
|
]
|
|
10002
10089
|
},
|
|
10003
10090
|
{
|
|
10004
|
-
functionName:
|
|
10091
|
+
functionName: E.BASE,
|
|
10005
10092
|
functionType: t.Math,
|
|
10006
10093
|
description: "formula.functionList.BASE.description",
|
|
10007
10094
|
abstract: "formula.functionList.BASE.abstract",
|
|
@@ -10030,7 +10117,7 @@ const Er = [
|
|
|
10030
10117
|
]
|
|
10031
10118
|
},
|
|
10032
10119
|
{
|
|
10033
|
-
functionName:
|
|
10120
|
+
functionName: E.CEILING,
|
|
10034
10121
|
functionType: t.Math,
|
|
10035
10122
|
description: "formula.functionList.CEILING.description",
|
|
10036
10123
|
abstract: "formula.functionList.CEILING.abstract",
|
|
@@ -10052,7 +10139,7 @@ const Er = [
|
|
|
10052
10139
|
]
|
|
10053
10140
|
},
|
|
10054
10141
|
{
|
|
10055
|
-
functionName:
|
|
10142
|
+
functionName: E.CEILING_MATH,
|
|
10056
10143
|
functionType: t.Math,
|
|
10057
10144
|
description: "formula.functionList.CEILING_MATH.description",
|
|
10058
10145
|
abstract: "formula.functionList.CEILING_MATH.abstract",
|
|
@@ -10081,7 +10168,7 @@ const Er = [
|
|
|
10081
10168
|
]
|
|
10082
10169
|
},
|
|
10083
10170
|
{
|
|
10084
|
-
functionName:
|
|
10171
|
+
functionName: E.CEILING_PRECISE,
|
|
10085
10172
|
functionType: t.Math,
|
|
10086
10173
|
description: "formula.functionList.CEILING_PRECISE.description",
|
|
10087
10174
|
abstract: "formula.functionList.CEILING_PRECISE.abstract",
|
|
@@ -10103,7 +10190,7 @@ const Er = [
|
|
|
10103
10190
|
]
|
|
10104
10191
|
},
|
|
10105
10192
|
{
|
|
10106
|
-
functionName:
|
|
10193
|
+
functionName: E.COMBIN,
|
|
10107
10194
|
functionType: t.Math,
|
|
10108
10195
|
description: "formula.functionList.COMBIN.description",
|
|
10109
10196
|
abstract: "formula.functionList.COMBIN.abstract",
|
|
@@ -10125,7 +10212,7 @@ const Er = [
|
|
|
10125
10212
|
]
|
|
10126
10213
|
},
|
|
10127
10214
|
{
|
|
10128
|
-
functionName:
|
|
10215
|
+
functionName: E.COMBINA,
|
|
10129
10216
|
functionType: t.Math,
|
|
10130
10217
|
description: "formula.functionList.COMBINA.description",
|
|
10131
10218
|
abstract: "formula.functionList.COMBINA.abstract",
|
|
@@ -10147,7 +10234,7 @@ const Er = [
|
|
|
10147
10234
|
]
|
|
10148
10235
|
},
|
|
10149
10236
|
{
|
|
10150
|
-
functionName:
|
|
10237
|
+
functionName: E.COS,
|
|
10151
10238
|
functionType: t.Math,
|
|
10152
10239
|
description: "formula.functionList.COS.description",
|
|
10153
10240
|
abstract: "formula.functionList.COS.abstract",
|
|
@@ -10162,7 +10249,7 @@ const Er = [
|
|
|
10162
10249
|
]
|
|
10163
10250
|
},
|
|
10164
10251
|
{
|
|
10165
|
-
functionName:
|
|
10252
|
+
functionName: E.COSH,
|
|
10166
10253
|
functionType: t.Math,
|
|
10167
10254
|
description: "formula.functionList.COSH.description",
|
|
10168
10255
|
abstract: "formula.functionList.COSH.abstract",
|
|
@@ -10177,7 +10264,7 @@ const Er = [
|
|
|
10177
10264
|
]
|
|
10178
10265
|
},
|
|
10179
10266
|
{
|
|
10180
|
-
functionName:
|
|
10267
|
+
functionName: E.COT,
|
|
10181
10268
|
functionType: t.Math,
|
|
10182
10269
|
description: "formula.functionList.COT.description",
|
|
10183
10270
|
abstract: "formula.functionList.COT.abstract",
|
|
@@ -10192,7 +10279,7 @@ const Er = [
|
|
|
10192
10279
|
]
|
|
10193
10280
|
},
|
|
10194
10281
|
{
|
|
10195
|
-
functionName:
|
|
10282
|
+
functionName: E.COTH,
|
|
10196
10283
|
functionType: t.Math,
|
|
10197
10284
|
description: "formula.functionList.COTH.description",
|
|
10198
10285
|
abstract: "formula.functionList.COTH.abstract",
|
|
@@ -10207,7 +10294,7 @@ const Er = [
|
|
|
10207
10294
|
]
|
|
10208
10295
|
},
|
|
10209
10296
|
{
|
|
10210
|
-
functionName:
|
|
10297
|
+
functionName: E.CSC,
|
|
10211
10298
|
functionType: t.Math,
|
|
10212
10299
|
description: "formula.functionList.CSC.description",
|
|
10213
10300
|
abstract: "formula.functionList.CSC.abstract",
|
|
@@ -10222,7 +10309,7 @@ const Er = [
|
|
|
10222
10309
|
]
|
|
10223
10310
|
},
|
|
10224
10311
|
{
|
|
10225
|
-
functionName:
|
|
10312
|
+
functionName: E.CSCH,
|
|
10226
10313
|
functionType: t.Math,
|
|
10227
10314
|
description: "formula.functionList.CSCH.description",
|
|
10228
10315
|
abstract: "formula.functionList.CSCH.abstract",
|
|
@@ -10237,7 +10324,7 @@ const Er = [
|
|
|
10237
10324
|
]
|
|
10238
10325
|
},
|
|
10239
10326
|
{
|
|
10240
|
-
functionName:
|
|
10327
|
+
functionName: E.DECIMAL,
|
|
10241
10328
|
functionType: t.Math,
|
|
10242
10329
|
description: "formula.functionList.DECIMAL.description",
|
|
10243
10330
|
abstract: "formula.functionList.DECIMAL.abstract",
|
|
@@ -10259,7 +10346,7 @@ const Er = [
|
|
|
10259
10346
|
]
|
|
10260
10347
|
},
|
|
10261
10348
|
{
|
|
10262
|
-
functionName:
|
|
10349
|
+
functionName: E.DEGREES,
|
|
10263
10350
|
functionType: t.Math,
|
|
10264
10351
|
description: "formula.functionList.DEGREES.description",
|
|
10265
10352
|
abstract: "formula.functionList.DEGREES.abstract",
|
|
@@ -10274,7 +10361,7 @@ const Er = [
|
|
|
10274
10361
|
]
|
|
10275
10362
|
},
|
|
10276
10363
|
{
|
|
10277
|
-
functionName:
|
|
10364
|
+
functionName: E.EVEN,
|
|
10278
10365
|
functionType: t.Math,
|
|
10279
10366
|
description: "formula.functionList.EVEN.description",
|
|
10280
10367
|
abstract: "formula.functionList.EVEN.abstract",
|
|
@@ -10289,7 +10376,7 @@ const Er = [
|
|
|
10289
10376
|
]
|
|
10290
10377
|
},
|
|
10291
10378
|
{
|
|
10292
|
-
functionName:
|
|
10379
|
+
functionName: E.EXP,
|
|
10293
10380
|
functionType: t.Math,
|
|
10294
10381
|
description: "formula.functionList.EXP.description",
|
|
10295
10382
|
abstract: "formula.functionList.EXP.abstract",
|
|
@@ -10304,7 +10391,7 @@ const Er = [
|
|
|
10304
10391
|
]
|
|
10305
10392
|
},
|
|
10306
10393
|
{
|
|
10307
|
-
functionName:
|
|
10394
|
+
functionName: E.FACT,
|
|
10308
10395
|
functionType: t.Math,
|
|
10309
10396
|
description: "formula.functionList.FACT.description",
|
|
10310
10397
|
abstract: "formula.functionList.FACT.abstract",
|
|
@@ -10319,7 +10406,7 @@ const Er = [
|
|
|
10319
10406
|
]
|
|
10320
10407
|
},
|
|
10321
10408
|
{
|
|
10322
|
-
functionName:
|
|
10409
|
+
functionName: E.FACTDOUBLE,
|
|
10323
10410
|
functionType: t.Math,
|
|
10324
10411
|
description: "formula.functionList.FACTDOUBLE.description",
|
|
10325
10412
|
abstract: "formula.functionList.FACTDOUBLE.abstract",
|
|
@@ -10334,7 +10421,7 @@ const Er = [
|
|
|
10334
10421
|
]
|
|
10335
10422
|
},
|
|
10336
10423
|
{
|
|
10337
|
-
functionName:
|
|
10424
|
+
functionName: E.FLOOR,
|
|
10338
10425
|
functionType: t.Math,
|
|
10339
10426
|
description: "formula.functionList.FLOOR.description",
|
|
10340
10427
|
abstract: "formula.functionList.FLOOR.abstract",
|
|
@@ -10356,7 +10443,7 @@ const Er = [
|
|
|
10356
10443
|
]
|
|
10357
10444
|
},
|
|
10358
10445
|
{
|
|
10359
|
-
functionName:
|
|
10446
|
+
functionName: E.FLOOR_MATH,
|
|
10360
10447
|
functionType: t.Math,
|
|
10361
10448
|
description: "formula.functionList.FLOOR_MATH.description",
|
|
10362
10449
|
abstract: "formula.functionList.FLOOR_MATH.abstract",
|
|
@@ -10385,7 +10472,7 @@ const Er = [
|
|
|
10385
10472
|
]
|
|
10386
10473
|
},
|
|
10387
10474
|
{
|
|
10388
|
-
functionName:
|
|
10475
|
+
functionName: E.FLOOR_PRECISE,
|
|
10389
10476
|
functionType: t.Math,
|
|
10390
10477
|
description: "formula.functionList.FLOOR_PRECISE.description",
|
|
10391
10478
|
abstract: "formula.functionList.FLOOR_PRECISE.abstract",
|
|
@@ -10407,7 +10494,7 @@ const Er = [
|
|
|
10407
10494
|
]
|
|
10408
10495
|
},
|
|
10409
10496
|
{
|
|
10410
|
-
functionName:
|
|
10497
|
+
functionName: E.GCD,
|
|
10411
10498
|
functionType: t.Math,
|
|
10412
10499
|
description: "formula.functionList.GCD.description",
|
|
10413
10500
|
abstract: "formula.functionList.GCD.abstract",
|
|
@@ -10429,7 +10516,7 @@ const Er = [
|
|
|
10429
10516
|
]
|
|
10430
10517
|
},
|
|
10431
10518
|
{
|
|
10432
|
-
functionName:
|
|
10519
|
+
functionName: E.INT,
|
|
10433
10520
|
functionType: t.Math,
|
|
10434
10521
|
description: "formula.functionList.INT.description",
|
|
10435
10522
|
abstract: "formula.functionList.INT.abstract",
|
|
@@ -10444,7 +10531,7 @@ const Er = [
|
|
|
10444
10531
|
]
|
|
10445
10532
|
},
|
|
10446
10533
|
{
|
|
10447
|
-
functionName:
|
|
10534
|
+
functionName: E.ISO_CEILING,
|
|
10448
10535
|
functionType: t.Math,
|
|
10449
10536
|
description: "formula.functionList.ISO_CEILING.description",
|
|
10450
10537
|
abstract: "formula.functionList.ISO_CEILING.abstract",
|
|
@@ -10466,7 +10553,7 @@ const Er = [
|
|
|
10466
10553
|
]
|
|
10467
10554
|
},
|
|
10468
10555
|
{
|
|
10469
|
-
functionName:
|
|
10556
|
+
functionName: E.LCM,
|
|
10470
10557
|
functionType: t.Math,
|
|
10471
10558
|
description: "formula.functionList.LCM.description",
|
|
10472
10559
|
abstract: "formula.functionList.LCM.abstract",
|
|
@@ -10488,7 +10575,7 @@ const Er = [
|
|
|
10488
10575
|
]
|
|
10489
10576
|
},
|
|
10490
10577
|
{
|
|
10491
|
-
functionName:
|
|
10578
|
+
functionName: E.LET,
|
|
10492
10579
|
functionType: t.Math,
|
|
10493
10580
|
description: "formula.functionList.LET.description",
|
|
10494
10581
|
abstract: "formula.functionList.LET.abstract",
|
|
@@ -10510,7 +10597,7 @@ const Er = [
|
|
|
10510
10597
|
]
|
|
10511
10598
|
},
|
|
10512
10599
|
{
|
|
10513
|
-
functionName:
|
|
10600
|
+
functionName: E.LN,
|
|
10514
10601
|
functionType: t.Math,
|
|
10515
10602
|
description: "formula.functionList.LN.description",
|
|
10516
10603
|
abstract: "formula.functionList.LN.abstract",
|
|
@@ -10525,7 +10612,7 @@ const Er = [
|
|
|
10525
10612
|
]
|
|
10526
10613
|
},
|
|
10527
10614
|
{
|
|
10528
|
-
functionName:
|
|
10615
|
+
functionName: E.LOG,
|
|
10529
10616
|
functionType: t.Math,
|
|
10530
10617
|
description: "formula.functionList.LOG.description",
|
|
10531
10618
|
abstract: "formula.functionList.LOG.abstract",
|
|
@@ -10547,7 +10634,7 @@ const Er = [
|
|
|
10547
10634
|
]
|
|
10548
10635
|
},
|
|
10549
10636
|
{
|
|
10550
|
-
functionName:
|
|
10637
|
+
functionName: E.LOG10,
|
|
10551
10638
|
functionType: t.Math,
|
|
10552
10639
|
description: "formula.functionList.LOG10.description",
|
|
10553
10640
|
abstract: "formula.functionList.LOG10.abstract",
|
|
@@ -10562,7 +10649,7 @@ const Er = [
|
|
|
10562
10649
|
]
|
|
10563
10650
|
},
|
|
10564
10651
|
{
|
|
10565
|
-
functionName:
|
|
10652
|
+
functionName: E.MDETERM,
|
|
10566
10653
|
functionType: t.Math,
|
|
10567
10654
|
description: "formula.functionList.MDETERM.description",
|
|
10568
10655
|
abstract: "formula.functionList.MDETERM.abstract",
|
|
@@ -10577,7 +10664,7 @@ const Er = [
|
|
|
10577
10664
|
]
|
|
10578
10665
|
},
|
|
10579
10666
|
{
|
|
10580
|
-
functionName:
|
|
10667
|
+
functionName: E.MINVERSE,
|
|
10581
10668
|
functionType: t.Math,
|
|
10582
10669
|
description: "formula.functionList.MINVERSE.description",
|
|
10583
10670
|
abstract: "formula.functionList.MINVERSE.abstract",
|
|
@@ -10592,7 +10679,7 @@ const Er = [
|
|
|
10592
10679
|
]
|
|
10593
10680
|
},
|
|
10594
10681
|
{
|
|
10595
|
-
functionName:
|
|
10682
|
+
functionName: E.MMULT,
|
|
10596
10683
|
functionType: t.Math,
|
|
10597
10684
|
description: "formula.functionList.MMULT.description",
|
|
10598
10685
|
abstract: "formula.functionList.MMULT.abstract",
|
|
@@ -10614,7 +10701,7 @@ const Er = [
|
|
|
10614
10701
|
]
|
|
10615
10702
|
},
|
|
10616
10703
|
{
|
|
10617
|
-
functionName:
|
|
10704
|
+
functionName: E.MOD,
|
|
10618
10705
|
functionType: t.Math,
|
|
10619
10706
|
description: "formula.functionList.MOD.description",
|
|
10620
10707
|
abstract: "formula.functionList.MOD.abstract",
|
|
@@ -10636,7 +10723,7 @@ const Er = [
|
|
|
10636
10723
|
]
|
|
10637
10724
|
},
|
|
10638
10725
|
{
|
|
10639
|
-
functionName:
|
|
10726
|
+
functionName: E.MROUND,
|
|
10640
10727
|
functionType: t.Math,
|
|
10641
10728
|
description: "formula.functionList.MROUND.description",
|
|
10642
10729
|
abstract: "formula.functionList.MROUND.abstract",
|
|
@@ -10658,7 +10745,7 @@ const Er = [
|
|
|
10658
10745
|
]
|
|
10659
10746
|
},
|
|
10660
10747
|
{
|
|
10661
|
-
functionName:
|
|
10748
|
+
functionName: E.MULTINOMIAL,
|
|
10662
10749
|
functionType: t.Math,
|
|
10663
10750
|
description: "formula.functionList.MULTINOMIAL.description",
|
|
10664
10751
|
abstract: "formula.functionList.MULTINOMIAL.abstract",
|
|
@@ -10680,7 +10767,7 @@ const Er = [
|
|
|
10680
10767
|
]
|
|
10681
10768
|
},
|
|
10682
10769
|
{
|
|
10683
|
-
functionName:
|
|
10770
|
+
functionName: E.MUNIT,
|
|
10684
10771
|
functionType: t.Math,
|
|
10685
10772
|
description: "formula.functionList.MUNIT.description",
|
|
10686
10773
|
abstract: "formula.functionList.MUNIT.abstract",
|
|
@@ -10695,7 +10782,7 @@ const Er = [
|
|
|
10695
10782
|
]
|
|
10696
10783
|
},
|
|
10697
10784
|
{
|
|
10698
|
-
functionName:
|
|
10785
|
+
functionName: E.ODD,
|
|
10699
10786
|
functionType: t.Math,
|
|
10700
10787
|
description: "formula.functionList.ODD.description",
|
|
10701
10788
|
abstract: "formula.functionList.ODD.abstract",
|
|
@@ -10710,14 +10797,14 @@ const Er = [
|
|
|
10710
10797
|
]
|
|
10711
10798
|
},
|
|
10712
10799
|
{
|
|
10713
|
-
functionName:
|
|
10800
|
+
functionName: E.PI,
|
|
10714
10801
|
functionType: t.Math,
|
|
10715
10802
|
description: "formula.functionList.PI.description",
|
|
10716
10803
|
abstract: "formula.functionList.PI.abstract",
|
|
10717
10804
|
functionParameter: []
|
|
10718
10805
|
},
|
|
10719
10806
|
{
|
|
10720
|
-
functionName:
|
|
10807
|
+
functionName: E.POWER,
|
|
10721
10808
|
functionType: t.Math,
|
|
10722
10809
|
description: "formula.functionList.POWER.description",
|
|
10723
10810
|
abstract: "formula.functionList.POWER.abstract",
|
|
@@ -10739,7 +10826,7 @@ const Er = [
|
|
|
10739
10826
|
]
|
|
10740
10827
|
},
|
|
10741
10828
|
{
|
|
10742
|
-
functionName:
|
|
10829
|
+
functionName: E.PRODUCT,
|
|
10743
10830
|
functionType: t.Math,
|
|
10744
10831
|
description: "formula.functionList.PRODUCT.description",
|
|
10745
10832
|
abstract: "formula.functionList.PRODUCT.abstract",
|
|
@@ -10761,7 +10848,7 @@ const Er = [
|
|
|
10761
10848
|
]
|
|
10762
10849
|
},
|
|
10763
10850
|
{
|
|
10764
|
-
functionName:
|
|
10851
|
+
functionName: E.QUOTIENT,
|
|
10765
10852
|
functionType: t.Math,
|
|
10766
10853
|
description: "formula.functionList.QUOTIENT.description",
|
|
10767
10854
|
abstract: "formula.functionList.QUOTIENT.abstract",
|
|
@@ -10783,7 +10870,7 @@ const Er = [
|
|
|
10783
10870
|
]
|
|
10784
10871
|
},
|
|
10785
10872
|
{
|
|
10786
|
-
functionName:
|
|
10873
|
+
functionName: E.RADIANS,
|
|
10787
10874
|
functionType: t.Math,
|
|
10788
10875
|
description: "formula.functionList.RADIANS.description",
|
|
10789
10876
|
abstract: "formula.functionList.RADIANS.abstract",
|
|
@@ -10798,14 +10885,14 @@ const Er = [
|
|
|
10798
10885
|
]
|
|
10799
10886
|
},
|
|
10800
10887
|
{
|
|
10801
|
-
functionName:
|
|
10888
|
+
functionName: E.RAND,
|
|
10802
10889
|
functionType: t.Math,
|
|
10803
10890
|
description: "formula.functionList.RAND.description",
|
|
10804
10891
|
abstract: "formula.functionList.RAND.abstract",
|
|
10805
10892
|
functionParameter: []
|
|
10806
10893
|
},
|
|
10807
10894
|
{
|
|
10808
|
-
functionName:
|
|
10895
|
+
functionName: E.RANDARRAY,
|
|
10809
10896
|
functionType: t.Math,
|
|
10810
10897
|
description: "formula.functionList.RANDARRAY.description",
|
|
10811
10898
|
abstract: "formula.functionList.RANDARRAY.abstract",
|
|
@@ -10848,7 +10935,7 @@ const Er = [
|
|
|
10848
10935
|
]
|
|
10849
10936
|
},
|
|
10850
10937
|
{
|
|
10851
|
-
functionName:
|
|
10938
|
+
functionName: E.RANDBETWEEN,
|
|
10852
10939
|
functionType: t.Math,
|
|
10853
10940
|
description: "formula.functionList.RANDBETWEEN.description",
|
|
10854
10941
|
abstract: "formula.functionList.RANDBETWEEN.abstract",
|
|
@@ -10870,7 +10957,7 @@ const Er = [
|
|
|
10870
10957
|
]
|
|
10871
10958
|
},
|
|
10872
10959
|
{
|
|
10873
|
-
functionName:
|
|
10960
|
+
functionName: E.ROMAN,
|
|
10874
10961
|
functionType: t.Math,
|
|
10875
10962
|
description: "formula.functionList.ROMAN.description",
|
|
10876
10963
|
abstract: "formula.functionList.ROMAN.abstract",
|
|
@@ -10892,7 +10979,7 @@ const Er = [
|
|
|
10892
10979
|
]
|
|
10893
10980
|
},
|
|
10894
10981
|
{
|
|
10895
|
-
functionName:
|
|
10982
|
+
functionName: E.ROUND,
|
|
10896
10983
|
functionType: t.Math,
|
|
10897
10984
|
description: "formula.functionList.ROUND.description",
|
|
10898
10985
|
abstract: "formula.functionList.ROUND.abstract",
|
|
@@ -10914,7 +11001,7 @@ const Er = [
|
|
|
10914
11001
|
]
|
|
10915
11002
|
},
|
|
10916
11003
|
{
|
|
10917
|
-
functionName:
|
|
11004
|
+
functionName: E.ROUNDBANK,
|
|
10918
11005
|
functionType: t.Math,
|
|
10919
11006
|
description: "formula.functionList.ROUNDBANK.description",
|
|
10920
11007
|
abstract: "formula.functionList.ROUNDBANK.abstract",
|
|
@@ -10936,7 +11023,7 @@ const Er = [
|
|
|
10936
11023
|
]
|
|
10937
11024
|
},
|
|
10938
11025
|
{
|
|
10939
|
-
functionName:
|
|
11026
|
+
functionName: E.ROUNDDOWN,
|
|
10940
11027
|
functionType: t.Math,
|
|
10941
11028
|
description: "formula.functionList.ROUNDDOWN.description",
|
|
10942
11029
|
abstract: "formula.functionList.ROUNDDOWN.abstract",
|
|
@@ -10958,7 +11045,7 @@ const Er = [
|
|
|
10958
11045
|
]
|
|
10959
11046
|
},
|
|
10960
11047
|
{
|
|
10961
|
-
functionName:
|
|
11048
|
+
functionName: E.ROUNDUP,
|
|
10962
11049
|
functionType: t.Math,
|
|
10963
11050
|
description: "formula.functionList.ROUNDUP.description",
|
|
10964
11051
|
abstract: "formula.functionList.ROUNDUP.abstract",
|
|
@@ -10980,7 +11067,7 @@ const Er = [
|
|
|
10980
11067
|
]
|
|
10981
11068
|
},
|
|
10982
11069
|
{
|
|
10983
|
-
functionName:
|
|
11070
|
+
functionName: E.SEC,
|
|
10984
11071
|
functionType: t.Math,
|
|
10985
11072
|
description: "formula.functionList.SEC.description",
|
|
10986
11073
|
abstract: "formula.functionList.SEC.abstract",
|
|
@@ -10995,7 +11082,7 @@ const Er = [
|
|
|
10995
11082
|
]
|
|
10996
11083
|
},
|
|
10997
11084
|
{
|
|
10998
|
-
functionName:
|
|
11085
|
+
functionName: E.SECH,
|
|
10999
11086
|
functionType: t.Math,
|
|
11000
11087
|
description: "formula.functionList.SECH.description",
|
|
11001
11088
|
abstract: "formula.functionList.SECH.abstract",
|
|
@@ -11010,7 +11097,7 @@ const Er = [
|
|
|
11010
11097
|
]
|
|
11011
11098
|
},
|
|
11012
11099
|
{
|
|
11013
|
-
functionName:
|
|
11100
|
+
functionName: E.SERIESSUM,
|
|
11014
11101
|
functionType: t.Math,
|
|
11015
11102
|
description: "formula.functionList.SERIESSUM.description",
|
|
11016
11103
|
abstract: "formula.functionList.SERIESSUM.abstract",
|
|
@@ -11046,7 +11133,7 @@ const Er = [
|
|
|
11046
11133
|
]
|
|
11047
11134
|
},
|
|
11048
11135
|
{
|
|
11049
|
-
functionName:
|
|
11136
|
+
functionName: E.SEQUENCE,
|
|
11050
11137
|
functionType: t.Math,
|
|
11051
11138
|
description: "formula.functionList.SEQUENCE.description",
|
|
11052
11139
|
abstract: "formula.functionList.SEQUENCE.abstract",
|
|
@@ -11082,7 +11169,7 @@ const Er = [
|
|
|
11082
11169
|
]
|
|
11083
11170
|
},
|
|
11084
11171
|
{
|
|
11085
|
-
functionName:
|
|
11172
|
+
functionName: E.SIGN,
|
|
11086
11173
|
functionType: t.Math,
|
|
11087
11174
|
description: "formula.functionList.SIGN.description",
|
|
11088
11175
|
abstract: "formula.functionList.SIGN.abstract",
|
|
@@ -11097,7 +11184,7 @@ const Er = [
|
|
|
11097
11184
|
]
|
|
11098
11185
|
},
|
|
11099
11186
|
{
|
|
11100
|
-
functionName:
|
|
11187
|
+
functionName: E.SIN,
|
|
11101
11188
|
functionType: t.Math,
|
|
11102
11189
|
description: "formula.functionList.SIN.description",
|
|
11103
11190
|
abstract: "formula.functionList.SIN.abstract",
|
|
@@ -11112,7 +11199,7 @@ const Er = [
|
|
|
11112
11199
|
]
|
|
11113
11200
|
},
|
|
11114
11201
|
{
|
|
11115
|
-
functionName:
|
|
11202
|
+
functionName: E.SINH,
|
|
11116
11203
|
functionType: t.Math,
|
|
11117
11204
|
description: "formula.functionList.SINH.description",
|
|
11118
11205
|
abstract: "formula.functionList.SINH.abstract",
|
|
@@ -11127,7 +11214,7 @@ const Er = [
|
|
|
11127
11214
|
]
|
|
11128
11215
|
},
|
|
11129
11216
|
{
|
|
11130
|
-
functionName:
|
|
11217
|
+
functionName: E.SQRT,
|
|
11131
11218
|
functionType: t.Math,
|
|
11132
11219
|
description: "formula.functionList.SQRT.description",
|
|
11133
11220
|
abstract: "formula.functionList.SQRT.abstract",
|
|
@@ -11142,7 +11229,7 @@ const Er = [
|
|
|
11142
11229
|
]
|
|
11143
11230
|
},
|
|
11144
11231
|
{
|
|
11145
|
-
functionName:
|
|
11232
|
+
functionName: E.SQRTPI,
|
|
11146
11233
|
functionType: t.Math,
|
|
11147
11234
|
description: "formula.functionList.SQRTPI.description",
|
|
11148
11235
|
abstract: "formula.functionList.SQRTPI.abstract",
|
|
@@ -11157,7 +11244,7 @@ const Er = [
|
|
|
11157
11244
|
]
|
|
11158
11245
|
},
|
|
11159
11246
|
{
|
|
11160
|
-
functionName:
|
|
11247
|
+
functionName: E.SUBTOTAL,
|
|
11161
11248
|
functionType: t.Math,
|
|
11162
11249
|
description: "formula.functionList.SUBTOTAL.description",
|
|
11163
11250
|
abstract: "formula.functionList.SUBTOTAL.abstract",
|
|
@@ -11186,7 +11273,7 @@ const Er = [
|
|
|
11186
11273
|
]
|
|
11187
11274
|
},
|
|
11188
11275
|
{
|
|
11189
|
-
functionName:
|
|
11276
|
+
functionName: E.SUM,
|
|
11190
11277
|
aliasFunctionName: "formula.functionList.SUM.aliasFunctionName",
|
|
11191
11278
|
functionType: t.Math,
|
|
11192
11279
|
description: "formula.functionList.SUM.description",
|
|
@@ -11209,7 +11296,7 @@ const Er = [
|
|
|
11209
11296
|
]
|
|
11210
11297
|
},
|
|
11211
11298
|
{
|
|
11212
|
-
functionName:
|
|
11299
|
+
functionName: E.SUMIF,
|
|
11213
11300
|
aliasFunctionName: "formula.functionList.SUMIF.aliasFunctionName",
|
|
11214
11301
|
functionType: t.Math,
|
|
11215
11302
|
description: "formula.functionList.SUMIF.description",
|
|
@@ -11239,7 +11326,7 @@ const Er = [
|
|
|
11239
11326
|
]
|
|
11240
11327
|
},
|
|
11241
11328
|
{
|
|
11242
|
-
functionName:
|
|
11329
|
+
functionName: E.SUMIFS,
|
|
11243
11330
|
functionType: t.Math,
|
|
11244
11331
|
description: "formula.functionList.SUMIFS.description",
|
|
11245
11332
|
abstract: "formula.functionList.SUMIFS.abstract",
|
|
@@ -11282,7 +11369,7 @@ const Er = [
|
|
|
11282
11369
|
]
|
|
11283
11370
|
},
|
|
11284
11371
|
{
|
|
11285
|
-
functionName:
|
|
11372
|
+
functionName: E.SUMPRODUCT,
|
|
11286
11373
|
functionType: t.Math,
|
|
11287
11374
|
description: "formula.functionList.SUMPRODUCT.description",
|
|
11288
11375
|
abstract: "formula.functionList.SUMPRODUCT.abstract",
|
|
@@ -11304,7 +11391,7 @@ const Er = [
|
|
|
11304
11391
|
]
|
|
11305
11392
|
},
|
|
11306
11393
|
{
|
|
11307
|
-
functionName:
|
|
11394
|
+
functionName: E.SUMSQ,
|
|
11308
11395
|
functionType: t.Math,
|
|
11309
11396
|
description: "formula.functionList.SUMSQ.description",
|
|
11310
11397
|
abstract: "formula.functionList.SUMSQ.abstract",
|
|
@@ -11326,7 +11413,7 @@ const Er = [
|
|
|
11326
11413
|
]
|
|
11327
11414
|
},
|
|
11328
11415
|
{
|
|
11329
|
-
functionName:
|
|
11416
|
+
functionName: E.SUMX2MY2,
|
|
11330
11417
|
functionType: t.Math,
|
|
11331
11418
|
description: "formula.functionList.SUMX2MY2.description",
|
|
11332
11419
|
abstract: "formula.functionList.SUMX2MY2.abstract",
|
|
@@ -11348,7 +11435,7 @@ const Er = [
|
|
|
11348
11435
|
]
|
|
11349
11436
|
},
|
|
11350
11437
|
{
|
|
11351
|
-
functionName:
|
|
11438
|
+
functionName: E.SUMX2PY2,
|
|
11352
11439
|
functionType: t.Math,
|
|
11353
11440
|
description: "formula.functionList.SUMX2PY2.description",
|
|
11354
11441
|
abstract: "formula.functionList.SUMX2PY2.abstract",
|
|
@@ -11370,7 +11457,7 @@ const Er = [
|
|
|
11370
11457
|
]
|
|
11371
11458
|
},
|
|
11372
11459
|
{
|
|
11373
|
-
functionName:
|
|
11460
|
+
functionName: E.SUMXMY2,
|
|
11374
11461
|
functionType: t.Math,
|
|
11375
11462
|
description: "formula.functionList.SUMXMY2.description",
|
|
11376
11463
|
abstract: "formula.functionList.SUMXMY2.abstract",
|
|
@@ -11392,7 +11479,7 @@ const Er = [
|
|
|
11392
11479
|
]
|
|
11393
11480
|
},
|
|
11394
11481
|
{
|
|
11395
|
-
functionName:
|
|
11482
|
+
functionName: E.TAN,
|
|
11396
11483
|
functionType: t.Math,
|
|
11397
11484
|
description: "formula.functionList.TAN.description",
|
|
11398
11485
|
abstract: "formula.functionList.TAN.abstract",
|
|
@@ -11407,7 +11494,7 @@ const Er = [
|
|
|
11407
11494
|
]
|
|
11408
11495
|
},
|
|
11409
11496
|
{
|
|
11410
|
-
functionName:
|
|
11497
|
+
functionName: E.TANH,
|
|
11411
11498
|
functionType: t.Math,
|
|
11412
11499
|
description: "formula.functionList.TANH.description",
|
|
11413
11500
|
abstract: "formula.functionList.TANH.abstract",
|
|
@@ -11422,7 +11509,7 @@ const Er = [
|
|
|
11422
11509
|
]
|
|
11423
11510
|
},
|
|
11424
11511
|
{
|
|
11425
|
-
functionName:
|
|
11512
|
+
functionName: E.TRUNC,
|
|
11426
11513
|
functionType: t.Math,
|
|
11427
11514
|
description: "formula.functionList.TRUNC.description",
|
|
11428
11515
|
abstract: "formula.functionList.TRUNC.abstract",
|
|
@@ -11443,7 +11530,7 @@ const Er = [
|
|
|
11443
11530
|
}
|
|
11444
11531
|
]
|
|
11445
11532
|
}
|
|
11446
|
-
],
|
|
11533
|
+
], Hr = [
|
|
11447
11534
|
{
|
|
11448
11535
|
functionName: s.AVEDEV,
|
|
11449
11536
|
functionType: t.Statistical,
|
|
@@ -14385,7 +14472,7 @@ const Er = [
|
|
|
14385
14472
|
}
|
|
14386
14473
|
]
|
|
14387
14474
|
}
|
|
14388
|
-
],
|
|
14475
|
+
], wr = [
|
|
14389
14476
|
{
|
|
14390
14477
|
functionName: b.ASC,
|
|
14391
14478
|
functionType: t.Text,
|
|
@@ -15599,9 +15686,9 @@ const Er = [
|
|
|
15599
15686
|
}
|
|
15600
15687
|
]
|
|
15601
15688
|
}
|
|
15602
|
-
],
|
|
15689
|
+
], Yr = [], Xr = [
|
|
15603
15690
|
{
|
|
15604
|
-
functionName:
|
|
15691
|
+
functionName: Ct.ENCODEURL,
|
|
15605
15692
|
functionType: t.Web,
|
|
15606
15693
|
description: "formula.functionList.ENCODEURL.description",
|
|
15607
15694
|
abstract: "formula.functionList.ENCODEURL.abstract",
|
|
@@ -15616,7 +15703,7 @@ const Er = [
|
|
|
15616
15703
|
]
|
|
15617
15704
|
},
|
|
15618
15705
|
{
|
|
15619
|
-
functionName:
|
|
15706
|
+
functionName: Ct.FILTERXML,
|
|
15620
15707
|
functionType: t.Web,
|
|
15621
15708
|
description: "formula.functionList.FILTERXML.description",
|
|
15622
15709
|
abstract: "formula.functionList.FILTERXML.abstract",
|
|
@@ -15638,7 +15725,7 @@ const Er = [
|
|
|
15638
15725
|
]
|
|
15639
15726
|
},
|
|
15640
15727
|
{
|
|
15641
|
-
functionName:
|
|
15728
|
+
functionName: Ct.WEBSERVICE,
|
|
15642
15729
|
functionType: t.Web,
|
|
15643
15730
|
description: "formula.functionList.WEBSERVICE.description",
|
|
15644
15731
|
abstract: "formula.functionList.WEBSERVICE.abstract",
|
|
@@ -15659,34 +15746,34 @@ const Er = [
|
|
|
15659
15746
|
}
|
|
15660
15747
|
]
|
|
15661
15748
|
}
|
|
15662
|
-
],
|
|
15663
|
-
...
|
|
15664
|
-
...
|
|
15665
|
-
...
|
|
15666
|
-
...
|
|
15667
|
-
...
|
|
15668
|
-
...
|
|
15669
|
-
...
|
|
15670
|
-
...
|
|
15671
|
-
...
|
|
15672
|
-
...
|
|
15673
|
-
...Nr,
|
|
15674
|
-
...Ir,
|
|
15749
|
+
], Wr = [
|
|
15750
|
+
...Fr,
|
|
15751
|
+
...hr,
|
|
15752
|
+
...Gr,
|
|
15753
|
+
...Hr,
|
|
15754
|
+
...Vr,
|
|
15755
|
+
...qr,
|
|
15756
|
+
...wr,
|
|
15757
|
+
...vr,
|
|
15758
|
+
...Br,
|
|
15759
|
+
...Ur,
|
|
15675
15760
|
...gr,
|
|
15676
|
-
...
|
|
15677
|
-
...
|
|
15761
|
+
...yr,
|
|
15762
|
+
...Xr,
|
|
15763
|
+
..._r,
|
|
15764
|
+
...Yr
|
|
15678
15765
|
];
|
|
15679
|
-
function
|
|
15766
|
+
function Kr(a, e) {
|
|
15680
15767
|
let n = "";
|
|
15681
15768
|
return a.aliasFunctionName ? (n = e.t(a.aliasFunctionName), n === a.aliasFunctionName && (n = a.functionName)) : n = a.functionName, n;
|
|
15682
15769
|
}
|
|
15683
|
-
var
|
|
15684
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
15770
|
+
var kr = Object.getOwnPropertyDescriptor, Qr = (a, e, n, i) => {
|
|
15771
|
+
for (var r = i > 1 ? void 0 : i ? kr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
15685
15772
|
(u = a[o]) && (r = u(r) || r);
|
|
15686
15773
|
return r;
|
|
15687
|
-
},
|
|
15688
|
-
const
|
|
15689
|
-
let
|
|
15774
|
+
}, yt = (a, e) => (n, i) => e(n, i, a);
|
|
15775
|
+
const Nt = Wt("formula.description-service");
|
|
15776
|
+
let Gt = class {
|
|
15690
15777
|
constructor(a, e, n) {
|
|
15691
15778
|
K(this, "_descriptions", []);
|
|
15692
15779
|
this._functionService = a, this._localeService = e, this._configService = n, this._initialize();
|
|
@@ -15725,7 +15812,7 @@ let Bt = class {
|
|
|
15725
15812
|
}), e;
|
|
15726
15813
|
}
|
|
15727
15814
|
registerDescriptions(a) {
|
|
15728
|
-
return this._descriptions = this._descriptions.concat(a), this._registerDescriptions(),
|
|
15815
|
+
return this._descriptions = this._descriptions.concat(a), this._registerDescriptions(), ee(() => {
|
|
15729
15816
|
const e = a.map((n) => n.functionName);
|
|
15730
15817
|
this.unregisterDescriptions(e);
|
|
15731
15818
|
});
|
|
@@ -15744,7 +15831,7 @@ let Bt = class {
|
|
|
15744
15831
|
if (e.length === 0)
|
|
15745
15832
|
return !1;
|
|
15746
15833
|
const n = e[0].description;
|
|
15747
|
-
return !
|
|
15834
|
+
return !Wn(n);
|
|
15748
15835
|
}
|
|
15749
15836
|
_initialize() {
|
|
15750
15837
|
this._localeService.localeChanged$.subscribe(() => {
|
|
@@ -15754,12 +15841,6 @@ let Bt = class {
|
|
|
15754
15841
|
_initDescription() {
|
|
15755
15842
|
var i;
|
|
15756
15843
|
const a = [
|
|
15757
|
-
...Gn,
|
|
15758
|
-
...Hn,
|
|
15759
|
-
...wn,
|
|
15760
|
-
...Yn,
|
|
15761
|
-
...Xn,
|
|
15762
|
-
...Wn,
|
|
15763
15844
|
...Kn,
|
|
15764
15845
|
...kn,
|
|
15765
15846
|
...Qn,
|
|
@@ -15769,13 +15850,19 @@ let Bt = class {
|
|
|
15769
15850
|
...Zn,
|
|
15770
15851
|
...Jn,
|
|
15771
15852
|
...ei,
|
|
15772
|
-
...ti
|
|
15773
|
-
|
|
15853
|
+
...ti,
|
|
15854
|
+
...ai,
|
|
15855
|
+
...ni,
|
|
15856
|
+
...ii,
|
|
15857
|
+
...ri,
|
|
15858
|
+
...oi,
|
|
15859
|
+
...ui
|
|
15860
|
+
].map((r) => r[1]), e = Wr.filter((r) => a.includes(r.functionName)), n = this._configService.getConfig(ve);
|
|
15774
15861
|
this._descriptions = e.concat((i = n == null ? void 0 : n.description) != null ? i : []);
|
|
15775
15862
|
}
|
|
15776
15863
|
_registerDescriptions() {
|
|
15777
15864
|
const a = this._localeService, e = this._descriptions.map((n) => ({
|
|
15778
|
-
functionName:
|
|
15865
|
+
functionName: Kr(n, a),
|
|
15779
15866
|
functionType: n.functionType,
|
|
15780
15867
|
description: a.t(n.description),
|
|
15781
15868
|
abstract: a.t(n.abstract),
|
|
@@ -15790,17 +15877,17 @@ let Bt = class {
|
|
|
15790
15877
|
this._functionService.registerDescriptions(...e);
|
|
15791
15878
|
}
|
|
15792
15879
|
};
|
|
15793
|
-
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
],
|
|
15798
|
-
var
|
|
15799
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
15880
|
+
Gt = Qr([
|
|
15881
|
+
yt(0, Et),
|
|
15882
|
+
yt(1, H(Xt)),
|
|
15883
|
+
yt(2, xe)
|
|
15884
|
+
], Gt);
|
|
15885
|
+
var jr = Object.getOwnPropertyDescriptor, $r = (a, e, n, i) => {
|
|
15886
|
+
for (var r = i > 1 ? void 0 : i ? jr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
15800
15887
|
(u = a[o]) && (r = u(r) || r);
|
|
15801
15888
|
return r;
|
|
15802
|
-
},
|
|
15803
|
-
let
|
|
15889
|
+
}, Ke = (a, e) => (n, i) => e(n, i, a);
|
|
15890
|
+
let ft = class extends z {
|
|
15804
15891
|
constructor(e, n, i, r) {
|
|
15805
15892
|
super();
|
|
15806
15893
|
K(this, "_preUnitId", null);
|
|
@@ -15810,14 +15897,14 @@ let nt = class extends ee {
|
|
|
15810
15897
|
this._descriptionListener(), this._changeUnitListener(), this._changeSheetListener();
|
|
15811
15898
|
}
|
|
15812
15899
|
_descriptionListener() {
|
|
15813
|
-
|
|
15900
|
+
ee(
|
|
15814
15901
|
this._definedNamesService.update$.subscribe(() => {
|
|
15815
15902
|
this._registerDescriptions();
|
|
15816
15903
|
})
|
|
15817
15904
|
);
|
|
15818
15905
|
}
|
|
15819
15906
|
_changeUnitListener() {
|
|
15820
|
-
|
|
15907
|
+
ee(
|
|
15821
15908
|
this._univerInstanceService.getCurrentTypeOfUnit$(k.UNIVER_SHEET).subscribe((e) => {
|
|
15822
15909
|
this._unRegisterDescriptions(), e && this._registerDescriptions();
|
|
15823
15910
|
})
|
|
@@ -15827,12 +15914,12 @@ let nt = class extends ee {
|
|
|
15827
15914
|
this.disposeWithMe(
|
|
15828
15915
|
this._commandService.onCommandExecuted((e, n) => {
|
|
15829
15916
|
if (!(n != null && n.fromCollab)) {
|
|
15830
|
-
if (e.id ===
|
|
15917
|
+
if (e.id === va.id)
|
|
15831
15918
|
this._unregisterDescriptionsForNotInSheetId(), this._registerDescriptions();
|
|
15832
|
-
else if (e.id ===
|
|
15919
|
+
else if (e.id === be.id) {
|
|
15833
15920
|
const i = e.params;
|
|
15834
15921
|
this._registerDescription(i);
|
|
15835
|
-
} else if (e.id ===
|
|
15922
|
+
} else if (e.id === vt.id) {
|
|
15836
15923
|
const i = e.params;
|
|
15837
15924
|
this._unregisterDescription(i);
|
|
15838
15925
|
}
|
|
@@ -15844,7 +15931,7 @@ let nt = class extends ee {
|
|
|
15844
15931
|
const n = this._getUnitIdAndSheetId(e);
|
|
15845
15932
|
if (!n) return;
|
|
15846
15933
|
const { sheetId: i } = n, { name: r, comment: o, formulaOrRefString: u, localSheetId: m } = e;
|
|
15847
|
-
!this._descriptionService.hasDescription(r) && (m == null || m ===
|
|
15934
|
+
!this._descriptionService.hasDescription(r) && (m == null || m === At || m === i) && this._descriptionService.registerDescriptions([{
|
|
15848
15935
|
functionName: r,
|
|
15849
15936
|
description: u + (o || ""),
|
|
15850
15937
|
abstract: u,
|
|
@@ -15886,7 +15973,7 @@ let nt = class extends ee {
|
|
|
15886
15973
|
const o = [];
|
|
15887
15974
|
this._preUnitId = n, Array.from(Object.values(r)).forEach((u) => {
|
|
15888
15975
|
const { name: m, comment: f, formulaOrRefString: c, localSheetId: l } = u;
|
|
15889
|
-
!this._descriptionService.hasDescription(m) && (l == null || l ===
|
|
15976
|
+
!this._descriptionService.hasDescription(m) && (l == null || l === At || l === i) && o.push({
|
|
15890
15977
|
functionName: m,
|
|
15891
15978
|
description: c + (f || ""),
|
|
15892
15979
|
abstract: c,
|
|
@@ -15904,39 +15991,39 @@ let nt = class extends ee {
|
|
|
15904
15991
|
const o = [];
|
|
15905
15992
|
Array.from(Object.values(r)).forEach((u) => {
|
|
15906
15993
|
const { name: m, localSheetId: f } = u;
|
|
15907
|
-
f !==
|
|
15994
|
+
f !== At && f !== i && o.push(m);
|
|
15908
15995
|
}), this._descriptionService.unregisterDescriptions(o);
|
|
15909
15996
|
}
|
|
15910
15997
|
};
|
|
15911
|
-
|
|
15912
|
-
|
|
15913
|
-
|
|
15914
|
-
|
|
15915
|
-
|
|
15916
|
-
],
|
|
15917
|
-
var
|
|
15918
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
15998
|
+
ft = $r([
|
|
15999
|
+
Ke(0, Nt),
|
|
16000
|
+
Ke(1, Tt),
|
|
16001
|
+
Ke(2, Re),
|
|
16002
|
+
Ke(3, ue)
|
|
16003
|
+
], ft);
|
|
16004
|
+
var zr = Object.getOwnPropertyDescriptor, Zr = (a, e, n, i) => {
|
|
16005
|
+
for (var r = i > 1 ? void 0 : i ? zr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
15919
16006
|
(u = a[o]) && (r = u(r) || r);
|
|
15920
16007
|
return r;
|
|
15921
|
-
},
|
|
15922
|
-
let
|
|
16008
|
+
}, Jr = (a, e) => (n, i) => e(n, i, a);
|
|
16009
|
+
let ct = class extends z {
|
|
15923
16010
|
constructor(a) {
|
|
15924
16011
|
super(), this._commandService = a, [
|
|
15925
|
-
|
|
15926
|
-
|
|
15927
|
-
|
|
16012
|
+
Ai,
|
|
16013
|
+
Ci,
|
|
16014
|
+
mi
|
|
15928
16015
|
].forEach((e) => this._commandService.registerCommand(e));
|
|
15929
16016
|
}
|
|
15930
16017
|
};
|
|
15931
|
-
|
|
15932
|
-
|
|
15933
|
-
],
|
|
15934
|
-
var
|
|
15935
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
16018
|
+
ct = Zr([
|
|
16019
|
+
Jr(0, ue)
|
|
16020
|
+
], ct);
|
|
16021
|
+
var eo = Object.getOwnPropertyDescriptor, to = (a, e, n, i) => {
|
|
16022
|
+
for (var r = i > 1 ? void 0 : i ? eo(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
15936
16023
|
(u = a[o]) && (r = u(r) || r);
|
|
15937
16024
|
return r;
|
|
15938
|
-
},
|
|
15939
|
-
let
|
|
16025
|
+
}, ke = (a, e) => (n, i) => e(n, i, a);
|
|
16026
|
+
let lt = class extends z {
|
|
15940
16027
|
constructor(e, n, i, r) {
|
|
15941
16028
|
super();
|
|
15942
16029
|
K(this, "_preUnitId", null);
|
|
@@ -15946,14 +16033,14 @@ let rt = class extends ee {
|
|
|
15946
16033
|
this._descriptionListener(), this._changeUnitListener(), this._changeSheetListener();
|
|
15947
16034
|
}
|
|
15948
16035
|
_descriptionListener() {
|
|
15949
|
-
|
|
16036
|
+
ee(
|
|
15950
16037
|
this._superTableService.update$.subscribe(() => {
|
|
15951
16038
|
this._registerDescriptions();
|
|
15952
16039
|
})
|
|
15953
16040
|
);
|
|
15954
16041
|
}
|
|
15955
16042
|
_changeUnitListener() {
|
|
15956
|
-
|
|
16043
|
+
ee(
|
|
15957
16044
|
this._univerInstanceService.getCurrentTypeOfUnit$(k.UNIVER_SHEET).subscribe((e) => {
|
|
15958
16045
|
this._unRegisterDescriptions(), e && this._registerDescriptions();
|
|
15959
16046
|
})
|
|
@@ -15963,12 +16050,12 @@ let rt = class extends ee {
|
|
|
15963
16050
|
this.disposeWithMe(
|
|
15964
16051
|
this._commandService.onCommandExecuted((e, n) => {
|
|
15965
16052
|
if (!(n != null && n.fromCollab)) {
|
|
15966
|
-
if (e.id ===
|
|
16053
|
+
if (e.id === va.id)
|
|
15967
16054
|
this._unregisterDescriptionsForNotInSheetId(), this._registerDescriptions();
|
|
15968
|
-
else if (e.id ===
|
|
16055
|
+
else if (e.id === fi.id) {
|
|
15969
16056
|
const i = e.params;
|
|
15970
16057
|
this._registerDescription(i);
|
|
15971
|
-
} else if (e.id ===
|
|
16058
|
+
} else if (e.id === ci.id) {
|
|
15972
16059
|
const i = e.params;
|
|
15973
16060
|
this._unregisterDescription(i);
|
|
15974
16061
|
}
|
|
@@ -15982,7 +16069,7 @@ let rt = class extends ee {
|
|
|
15982
16069
|
if (!n) return;
|
|
15983
16070
|
const { unitId: i } = n, { tableName: r, reference: o } = e;
|
|
15984
16071
|
if (!this._descriptionService.hasDescription(r)) {
|
|
15985
|
-
const f = ((m = (u = this._univerInstanceService.getUnit(i)) == null ? void 0 : u.getSheetBySheetId(o.sheetId)) == null ? void 0 : m.getName()) || "", c =
|
|
16072
|
+
const f = ((m = (u = this._univerInstanceService.getUnit(i)) == null ? void 0 : u.getSheetBySheetId(o.sheetId)) == null ? void 0 : m.getName()) || "", c = at(f, o.range);
|
|
15986
16073
|
this._descriptionService.registerDescriptions([{
|
|
15987
16074
|
functionName: r,
|
|
15988
16075
|
description: c,
|
|
@@ -16025,7 +16112,7 @@ let rt = class extends ee {
|
|
|
16025
16112
|
const r = [];
|
|
16026
16113
|
this._preUnitId = n, i.forEach((o, u) => {
|
|
16027
16114
|
var c, l;
|
|
16028
|
-
const m = ((l = (c = this._univerInstanceService.getUnit(n)) == null ? void 0 : c.getSheetBySheetId(o.sheetId)) == null ? void 0 : l.getName()) || "", f =
|
|
16115
|
+
const m = ((l = (c = this._univerInstanceService.getUnit(n)) == null ? void 0 : c.getSheetBySheetId(o.sheetId)) == null ? void 0 : l.getName()) || "", f = at(m, o.range);
|
|
16029
16116
|
this._descriptionService.hasDescription(u) || r.push({
|
|
16030
16117
|
functionName: u,
|
|
16031
16118
|
description: f,
|
|
@@ -16047,18 +16134,18 @@ let rt = class extends ee {
|
|
|
16047
16134
|
}), this._descriptionService.unregisterDescriptions(r);
|
|
16048
16135
|
}
|
|
16049
16136
|
};
|
|
16050
|
-
|
|
16051
|
-
|
|
16052
|
-
|
|
16053
|
-
|
|
16054
|
-
|
|
16055
|
-
],
|
|
16056
|
-
var
|
|
16057
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
16137
|
+
lt = to([
|
|
16138
|
+
ke(0, Nt),
|
|
16139
|
+
ke(1, Re),
|
|
16140
|
+
ke(2, ue),
|
|
16141
|
+
ke(3, li)
|
|
16142
|
+
], lt);
|
|
16143
|
+
var ao = Object.getOwnPropertyDescriptor, no = (a, e, n, i) => {
|
|
16144
|
+
for (var r = i > 1 ? void 0 : i ? ao(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
16058
16145
|
(u = a[o]) && (r = u(r) || r);
|
|
16059
16146
|
return r;
|
|
16060
|
-
},
|
|
16061
|
-
function
|
|
16147
|
+
}, Qe = (a, e) => (n, i) => e(n, i, a);
|
|
16148
|
+
function La(a, e, n, i) {
|
|
16062
16149
|
const r = a.sequenceNodesBuilder(e);
|
|
16063
16150
|
if (r == null)
|
|
16064
16151
|
return e;
|
|
@@ -16067,34 +16154,34 @@ function fa(a, e, n, i) {
|
|
|
16067
16154
|
const f = r[u];
|
|
16068
16155
|
if (typeof f == "string" || f.nodeType !== ie.REFERENCE)
|
|
16069
16156
|
continue;
|
|
16070
|
-
const { token: c } = f, l =
|
|
16157
|
+
const { token: c } = f, l = Ie(c), { sheetName: p, unitId: T } = l;
|
|
16071
16158
|
let L = l.range;
|
|
16072
|
-
L.startAbsoluteRefType ===
|
|
16073
|
-
unitId:
|
|
16159
|
+
L.startAbsoluteRefType === Je.ALL && L.endAbsoluteRefType === Je.ALL || (L = ht(L, n, i), o.push({
|
|
16160
|
+
unitId: T,
|
|
16074
16161
|
sheetName: p,
|
|
16075
16162
|
range: L
|
|
16076
16163
|
}));
|
|
16077
16164
|
}
|
|
16078
16165
|
return o.map((u) => `${u.unitId}!${u.sheetName}!${u.range.startRow}!${u.range.endRow}!${u.range.startColumn}!${u.range.endColumn}`).join("|");
|
|
16079
16166
|
}
|
|
16080
|
-
let
|
|
16167
|
+
let Ht = class extends z {
|
|
16081
16168
|
constructor(a, e, n, i) {
|
|
16082
16169
|
super(), this._refRangeService = a, this._lexerTreeBuilder = e, this._univerInstanceService = n, this._injector = i;
|
|
16083
16170
|
}
|
|
16084
16171
|
transformFormulaByEffectCommand(a, e, n, i) {
|
|
16085
16172
|
const r = this._lexerTreeBuilder.sequenceNodesBuilder(n), o = this._univerInstanceService.getCurrentUnitForType(k.UNIVER_SHEET), u = o.getActiveSheet(), m = o.getUnitId(), f = u.getSheetId(), c = r == null ? void 0 : r.map((l) => {
|
|
16086
16173
|
if (typeof l == "object" && l.nodeType === ie.REFERENCE) {
|
|
16087
|
-
const p =
|
|
16088
|
-
if (!
|
|
16174
|
+
const p = Ie(l.token), { range: T, unitId: L, sheetName: I } = p, A = this._univerInstanceService.getUnit(L || a), R = I ? A == null ? void 0 : A.getSheetBySheetName(I) : A == null ? void 0 : A.getSheetBySheetId(e);
|
|
16175
|
+
if (!R)
|
|
16089
16176
|
throw new Error("Sheet not found");
|
|
16090
|
-
const d = A.getUnitId(),
|
|
16091
|
-
if (d !== m ||
|
|
16177
|
+
const d = A.getUnitId(), S = R.getSheetId();
|
|
16178
|
+
if (d !== m || S !== f)
|
|
16092
16179
|
return l;
|
|
16093
|
-
const N =
|
|
16180
|
+
const N = oa(T, i);
|
|
16094
16181
|
let P = "";
|
|
16095
16182
|
if (N) {
|
|
16096
|
-
const
|
|
16097
|
-
L &&
|
|
16183
|
+
const x = N.startColumn - T.startColumn, M = N.startRow - T.startRow, U = ht(T, x, M);
|
|
16184
|
+
L && I ? P = ca(L, I, U) : I ? P = at(I, U) : P = De(U);
|
|
16098
16185
|
} else
|
|
16099
16186
|
P = Q.REF;
|
|
16100
16187
|
return {
|
|
@@ -16104,65 +16191,65 @@ let vt = class extends ee {
|
|
|
16104
16191
|
} else
|
|
16105
16192
|
return l;
|
|
16106
16193
|
});
|
|
16107
|
-
return c ? `=${
|
|
16194
|
+
return c ? `=${tt(c)}` : "";
|
|
16108
16195
|
}
|
|
16109
16196
|
registerFormula(a, e, n, i) {
|
|
16110
|
-
const r = /* @__PURE__ */ new Map(), o = this._lexerTreeBuilder.sequenceNodesBuilder(n), u = new
|
|
16111
|
-
const c = this._univerInstanceService.getCurrentUnitForType(k.UNIVER_SHEET), l = c.getActiveSheet(), p = c.getUnitId(),
|
|
16197
|
+
const r = /* @__PURE__ */ new Map(), o = this._lexerTreeBuilder.sequenceNodesBuilder(n), u = new Ze(), m = (f) => {
|
|
16198
|
+
const c = this._univerInstanceService.getCurrentUnitForType(k.UNIVER_SHEET), l = c.getActiveSheet(), p = c.getUnitId(), T = l.getSheetId(), L = o == null ? void 0 : o.map((A) => {
|
|
16112
16199
|
if (typeof A == "object" && A.nodeType === ie.REFERENCE) {
|
|
16113
|
-
const
|
|
16114
|
-
if (
|
|
16200
|
+
const R = r.get(A.token);
|
|
16201
|
+
if (R.unitId !== p || R.subUnitId !== T)
|
|
16115
16202
|
return A;
|
|
16116
|
-
const d =
|
|
16117
|
-
let
|
|
16203
|
+
const d = oa(R.range, f);
|
|
16204
|
+
let S = "";
|
|
16118
16205
|
if (d) {
|
|
16119
|
-
const N = d.startColumn -
|
|
16120
|
-
|
|
16206
|
+
const N = d.startColumn - R.range.startColumn, P = d.startRow - R.range.startRow, x = ht(R.range, N, P);
|
|
16207
|
+
R.unitId && R.sheetName ? S = ca(R.unitId, R.sheetName, x) : R.sheetName ? S = at(R.sheetName, x) : S = De(x);
|
|
16121
16208
|
} else
|
|
16122
|
-
|
|
16209
|
+
S = Q.REF;
|
|
16123
16210
|
return {
|
|
16124
16211
|
...A,
|
|
16125
|
-
token:
|
|
16212
|
+
token: S
|
|
16126
16213
|
};
|
|
16127
16214
|
} else
|
|
16128
16215
|
return A;
|
|
16129
|
-
}),
|
|
16130
|
-
return i(`=${
|
|
16216
|
+
}), I = L && tt(L);
|
|
16217
|
+
return i(`=${I}`);
|
|
16131
16218
|
};
|
|
16132
16219
|
return o == null || o.forEach((f) => {
|
|
16133
16220
|
if (typeof f == "object" && f.nodeType === ie.REFERENCE) {
|
|
16134
|
-
const c =
|
|
16135
|
-
if (!
|
|
16221
|
+
const c = Ie(f.token), { range: l, unitId: p, sheetName: T } = c, L = this._univerInstanceService.getUnit(p || a), I = T ? L == null ? void 0 : L.getSheetBySheetName(T) : L == null ? void 0 : L.getSheetBySheetId(e);
|
|
16222
|
+
if (!I)
|
|
16136
16223
|
return;
|
|
16137
|
-
const A = L.getUnitId(),
|
|
16224
|
+
const A = L.getUnitId(), R = I.getSheetId(), d = {
|
|
16138
16225
|
unitId: A,
|
|
16139
|
-
subUnitId:
|
|
16226
|
+
subUnitId: R,
|
|
16140
16227
|
range: l,
|
|
16141
|
-
sheetName:
|
|
16228
|
+
sheetName: T
|
|
16142
16229
|
};
|
|
16143
|
-
r.set(f.token, d), u.add(this._refRangeService.registerRefRange(l, m, A,
|
|
16230
|
+
r.set(f.token, d), u.add(this._refRangeService.registerRefRange(l, m, A, R));
|
|
16144
16231
|
}
|
|
16145
16232
|
}), u;
|
|
16146
16233
|
}
|
|
16147
16234
|
_getFormulaDependcy(a, e, n, i) {
|
|
16148
|
-
const r =
|
|
16235
|
+
const r = Ee(n) ? this._lexerTreeBuilder.sequenceNodesBuilder(n) : null, o = [];
|
|
16149
16236
|
return r == null || r.forEach((u) => {
|
|
16150
16237
|
if (typeof u == "object" && u.nodeType === ie.REFERENCE) {
|
|
16151
|
-
const m =
|
|
16152
|
-
if (f.startAbsoluteRefType ===
|
|
16238
|
+
const m = Ie(u.token), { range: f, unitId: c, sheetName: l } = m;
|
|
16239
|
+
if (f.startAbsoluteRefType === Je.ALL && f.endAbsoluteRefType === Je.ALL)
|
|
16153
16240
|
return;
|
|
16154
|
-
const p = this._univerInstanceService.getUnit(c || a),
|
|
16155
|
-
if (!
|
|
16241
|
+
const p = this._univerInstanceService.getUnit(c || a), T = l ? p == null ? void 0 : p.getSheetBySheetName(l) : p == null ? void 0 : p.getSheetBySheetId(e);
|
|
16242
|
+
if (!T)
|
|
16156
16243
|
return;
|
|
16157
|
-
const L = p.getUnitId(),
|
|
16244
|
+
const L = p.getUnitId(), I = T.getSheetId(), A = i[0].startRow, R = i[0].startColumn, d = f.startRow, S = f.startColumn, N = i.map((P) => ({
|
|
16158
16245
|
startRow: P.startRow - A + d,
|
|
16159
16246
|
endRow: P.endRow - A + d,
|
|
16160
|
-
startColumn: P.startColumn -
|
|
16161
|
-
endColumn: P.endColumn -
|
|
16247
|
+
startColumn: P.startColumn - R + S,
|
|
16248
|
+
endColumn: P.endColumn - R + S
|
|
16162
16249
|
}));
|
|
16163
16250
|
o.push({
|
|
16164
16251
|
unitId: L,
|
|
16165
|
-
subUnitId:
|
|
16252
|
+
subUnitId: I,
|
|
16166
16253
|
ranges: N
|
|
16167
16254
|
});
|
|
16168
16255
|
}
|
|
@@ -16170,61 +16257,61 @@ let vt = class extends ee {
|
|
|
16170
16257
|
}
|
|
16171
16258
|
// eslint-disable-next-line max-lines-per-function
|
|
16172
16259
|
registerRangeFormula(a, e, n, i, r) {
|
|
16173
|
-
const o = new
|
|
16174
|
-
const c =
|
|
16260
|
+
const o = new Ze(), u = i.map((f) => this._getFormulaDependcy(a, e, f, n)), m = (f) => {
|
|
16261
|
+
const c = hn(this._injector, f);
|
|
16175
16262
|
if (!c)
|
|
16176
16263
|
return {
|
|
16177
16264
|
undos: [],
|
|
16178
16265
|
redos: []
|
|
16179
16266
|
};
|
|
16180
|
-
const l = n[0].startRow, p = n[0].startColumn,
|
|
16181
|
-
for (const { unitId:
|
|
16182
|
-
if (
|
|
16183
|
-
const d = [],
|
|
16267
|
+
const l = n[0].startRow, p = n[0].startColumn, T = [{ unitId: a, subUnitId: e, ranges: n }, ...u.flat()], L = [];
|
|
16268
|
+
for (const { unitId: I, subUnitId: A, ranges: R } of T)
|
|
16269
|
+
if (I === c.unitId && A === c.subUnitId) {
|
|
16270
|
+
const d = [], S = R[0].startRow, N = R[0].startColumn, P = S - l, x = N - p;
|
|
16184
16271
|
for (const M of c.ranges) {
|
|
16185
|
-
const U =
|
|
16272
|
+
const U = R.map((h) => $e(M, h)).filter(Boolean);
|
|
16186
16273
|
U.length > 0 && d.push(...U);
|
|
16187
16274
|
}
|
|
16188
16275
|
d.length > 0 && L.push(
|
|
16189
16276
|
d.map((M) => ({
|
|
16190
16277
|
startRow: M.startRow - P,
|
|
16191
16278
|
endRow: M.endRow - P,
|
|
16192
|
-
startColumn: M.startColumn -
|
|
16193
|
-
endColumn: M.endColumn -
|
|
16279
|
+
startColumn: M.startColumn - x,
|
|
16280
|
+
endColumn: M.endColumn - x
|
|
16194
16281
|
}))
|
|
16195
16282
|
);
|
|
16196
16283
|
}
|
|
16197
16284
|
if (L.length > 0) {
|
|
16198
|
-
const
|
|
16199
|
-
A.sort((P,
|
|
16200
|
-
const
|
|
16201
|
-
for (let P = 0; P <
|
|
16202
|
-
const
|
|
16285
|
+
const I = ce.splitIntoGrid([...L.flat()]), A = ce.subtractMulti(n, I);
|
|
16286
|
+
A.sort((P, x) => P.startRow - x.startRow || P.startColumn - x.startColumn);
|
|
16287
|
+
const R = /* @__PURE__ */ new Map();
|
|
16288
|
+
for (let P = 0; P < I.length; P++) {
|
|
16289
|
+
const x = I[P], M = x.startRow, U = x.startColumn, h = M - l, _ = U - p, F = Un(x, f).sort((Z, re) => Z.startRow - re.startRow || Z.startColumn - re.startColumn);
|
|
16203
16290
|
if (!F.length)
|
|
16204
16291
|
continue;
|
|
16205
|
-
const B = F[0].startRow, ae = F[0].startColumn, O = B - l,
|
|
16206
|
-
for (let
|
|
16207
|
-
const re = i[
|
|
16292
|
+
const B = F[0].startRow, ae = F[0].startColumn, O = B - l, se = ae - p, ne = [];
|
|
16293
|
+
for (let Z = 0; Z < i.length; Z++) {
|
|
16294
|
+
const re = i[Z], oe = Ee(re), Ve = oe ? this._lexerTreeBuilder.moveFormulaRefOffset(re, _, h) : re, J = oe ? this.transformFormulaByEffectCommand(a, e, Ve, f) : Ve, Rt = La(this._lexerTreeBuilder, J, -se, -O);
|
|
16208
16295
|
ne.push({
|
|
16209
|
-
newFormula:
|
|
16210
|
-
orginFormula:
|
|
16296
|
+
newFormula: J,
|
|
16297
|
+
orginFormula: Rt
|
|
16211
16298
|
});
|
|
16212
16299
|
}
|
|
16213
|
-
const
|
|
16300
|
+
const de = {
|
|
16214
16301
|
formulas: ne,
|
|
16215
16302
|
ranges: F,
|
|
16216
|
-
key: ne.map((
|
|
16303
|
+
key: ne.map((Z) => Z.orginFormula).join("_")
|
|
16217
16304
|
};
|
|
16218
|
-
|
|
16305
|
+
R.has(de.key) ? R.get(de.key).push(de) : R.set(de.key, [de]);
|
|
16219
16306
|
}
|
|
16220
|
-
const d = i.map((P) =>
|
|
16307
|
+
const d = i.map((P) => La(this._lexerTreeBuilder, P, 0, 0)).join("_");
|
|
16221
16308
|
if (A.length > 0) {
|
|
16222
|
-
const P = A[0].startRow,
|
|
16309
|
+
const P = A[0].startRow, x = A[0].startColumn, M = [];
|
|
16223
16310
|
for (let h = 0; h < i.length; h++) {
|
|
16224
|
-
const
|
|
16311
|
+
const _ = i[h];
|
|
16225
16312
|
M.push({
|
|
16226
|
-
newFormula:
|
|
16227
|
-
orginFormula:
|
|
16313
|
+
newFormula: Ee(_) ? this._lexerTreeBuilder.moveFormulaRefOffset(_, x - p, P - l) : _,
|
|
16314
|
+
orginFormula: _
|
|
16228
16315
|
});
|
|
16229
16316
|
}
|
|
16230
16317
|
const U = {
|
|
@@ -16232,20 +16319,20 @@ let vt = class extends ee {
|
|
|
16232
16319
|
ranges: A,
|
|
16233
16320
|
key: d
|
|
16234
16321
|
};
|
|
16235
|
-
|
|
16322
|
+
R.has(U.key) ? R.get(U.key).push(U) : R.set(U.key, [U]);
|
|
16236
16323
|
}
|
|
16237
|
-
const
|
|
16324
|
+
const S = [], N = Array.from(R.keys());
|
|
16238
16325
|
for (let P = N.length - 1; P >= 0; P--) {
|
|
16239
|
-
const
|
|
16240
|
-
for (let
|
|
16241
|
-
U.push(M[0].formulas[
|
|
16242
|
-
const h =
|
|
16243
|
-
h.sort((
|
|
16326
|
+
const x = N[P], M = R.get(x).sort((_, F) => _.ranges[0].startRow - F.ranges[0].startRow || _.ranges[0].startColumn - F.ranges[0].startColumn), U = [];
|
|
16327
|
+
for (let _ = 0; _ < M[0].formulas.length; _++)
|
|
16328
|
+
U.push(M[0].formulas[_].newFormula);
|
|
16329
|
+
const h = ce.mergeRanges(M.map((_) => _.ranges).flat());
|
|
16330
|
+
h.sort((_, F) => _.startRow - F.startRow || _.startColumn - F.startColumn), S.push({
|
|
16244
16331
|
formulas: U,
|
|
16245
16332
|
ranges: h
|
|
16246
16333
|
});
|
|
16247
16334
|
}
|
|
16248
|
-
return r(
|
|
16335
|
+
return r(S);
|
|
16249
16336
|
}
|
|
16250
16337
|
return {
|
|
16251
16338
|
undos: [],
|
|
@@ -16257,60 +16344,60 @@ let vt = class extends ee {
|
|
|
16257
16344
|
o.add(c);
|
|
16258
16345
|
}), [...u.flat()].forEach(({ unitId: f, subUnitId: c, ranges: l }) => {
|
|
16259
16346
|
l.forEach((p) => {
|
|
16260
|
-
const
|
|
16261
|
-
o.add(
|
|
16347
|
+
const T = this._refRangeService.registerRefRange(p, m, f, c);
|
|
16348
|
+
o.add(T);
|
|
16262
16349
|
});
|
|
16263
16350
|
}), o;
|
|
16264
16351
|
}
|
|
16265
16352
|
};
|
|
16266
|
-
|
|
16267
|
-
|
|
16268
|
-
|
|
16269
|
-
|
|
16270
|
-
|
|
16271
|
-
],
|
|
16272
|
-
var
|
|
16273
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
16353
|
+
Ht = no([
|
|
16354
|
+
Qe(0, H(qn)),
|
|
16355
|
+
Qe(1, H(Fe)),
|
|
16356
|
+
Qe(2, Re),
|
|
16357
|
+
Qe(3, H(pt))
|
|
16358
|
+
], Ht);
|
|
16359
|
+
var io = Object.getOwnPropertyDescriptor, ro = (a, e, n, i) => {
|
|
16360
|
+
for (var r = i > 1 ? void 0 : i ? io(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
16274
16361
|
(u = a[o]) && (r = u(r) || r);
|
|
16275
16362
|
return r;
|
|
16276
|
-
},
|
|
16277
|
-
const
|
|
16278
|
-
let
|
|
16363
|
+
}, oo = (a, e) => (n, i) => e(n, i, a);
|
|
16364
|
+
const kt = "sheets-formula.remote-register-function.service", ka = Wt(kt);
|
|
16365
|
+
let st = class {
|
|
16279
16366
|
constructor(a) {
|
|
16280
16367
|
this._functionService = a;
|
|
16281
16368
|
}
|
|
16282
16369
|
async registerFunctions(a) {
|
|
16283
|
-
const e = a.map(([n, i]) =>
|
|
16370
|
+
const e = a.map(([n, i]) => uo(n, i));
|
|
16284
16371
|
this._functionService.registerExecutors(...e);
|
|
16285
16372
|
}
|
|
16286
16373
|
async registerAsyncFunctions(a) {
|
|
16287
|
-
const e = a.map(([n, i]) =>
|
|
16374
|
+
const e = a.map(([n, i]) => mo(n, i));
|
|
16288
16375
|
this._functionService.registerExecutors(...e);
|
|
16289
16376
|
}
|
|
16290
16377
|
async unregisterFunctions(a) {
|
|
16291
16378
|
this._functionService.unregisterExecutors(...a), this._functionService.unregisterDescriptions(...a), this._functionService.deleteFormulaAstCacheKey(...a);
|
|
16292
16379
|
}
|
|
16293
16380
|
};
|
|
16294
|
-
|
|
16295
|
-
|
|
16296
|
-
],
|
|
16297
|
-
function
|
|
16298
|
-
const n = new
|
|
16381
|
+
st = ro([
|
|
16382
|
+
oo(0, Et)
|
|
16383
|
+
], st);
|
|
16384
|
+
function uo(a, e) {
|
|
16385
|
+
const n = new Vt(e), i = new Function(`return ${a}`)();
|
|
16299
16386
|
return n.calculateCustom = i, n;
|
|
16300
16387
|
}
|
|
16301
|
-
function
|
|
16302
|
-
const n = new
|
|
16388
|
+
function mo(a, e) {
|
|
16389
|
+
const n = new Ga(e), i = new Function(`return ${a}`)();
|
|
16303
16390
|
return n.calculateCustom = i, n;
|
|
16304
16391
|
}
|
|
16305
|
-
var
|
|
16306
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
16392
|
+
var fo = Object.getOwnPropertyDescriptor, co = (a, e, n, i) => {
|
|
16393
|
+
for (var r = i > 1 ? void 0 : i ? fo(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
16307
16394
|
(u = a[o]) && (r = u(r) || r);
|
|
16308
16395
|
return r;
|
|
16309
|
-
},
|
|
16310
|
-
const
|
|
16396
|
+
}, je = (a, e) => (n, i) => e(n, i, a);
|
|
16397
|
+
const lo = Wt(
|
|
16311
16398
|
"sheets-formula.register-function-service"
|
|
16312
16399
|
);
|
|
16313
|
-
let
|
|
16400
|
+
let wt = class extends z {
|
|
16314
16401
|
constructor(a, e, n, i) {
|
|
16315
16402
|
super(), this._localeService = a, this._descriptionService = e, this._functionService = n, this._remoteRegisterFunctionService = i;
|
|
16316
16403
|
}
|
|
@@ -16323,7 +16410,7 @@ let Vt = class extends ee {
|
|
|
16323
16410
|
registerFunctions(a) {
|
|
16324
16411
|
const { locales: e, description: n, calculate: i } = a;
|
|
16325
16412
|
e && this._localeService.load(e);
|
|
16326
|
-
const r = new
|
|
16413
|
+
const r = new Ze();
|
|
16327
16414
|
if (n)
|
|
16328
16415
|
r.add(this._descriptionService.registerDescriptions(n));
|
|
16329
16416
|
else {
|
|
@@ -16339,7 +16426,7 @@ let Vt = class extends ee {
|
|
|
16339
16426
|
return r.add(this._registerLocalExecutors(i)), this._remoteRegisterFunctionService && r.add(this._registerRemoteExecutors(i)), r;
|
|
16340
16427
|
}
|
|
16341
16428
|
_registerSingleFunction(a) {
|
|
16342
|
-
const { name: e, func: n, description: i, locales: r, async: o = !1 } = a, u = new
|
|
16429
|
+
const { name: e, func: n, description: i, locales: r, async: o = !1 } = a, u = new Ze();
|
|
16343
16430
|
if (r && this._localeService.load(r), typeof i == "string") {
|
|
16344
16431
|
const f = {
|
|
16345
16432
|
functionName: e,
|
|
@@ -16351,121 +16438,127 @@ let Vt = class extends ee {
|
|
|
16351
16438
|
u.add(this._descriptionService.registerDescriptions([f]));
|
|
16352
16439
|
} else
|
|
16353
16440
|
u.add(this._descriptionService.registerDescriptions([i]));
|
|
16354
|
-
const m = o ? new
|
|
16355
|
-
return m.calculateCustom = n, this._functionService.registerExecutors(m), u.add(
|
|
16356
|
-
|
|
16441
|
+
const m = o ? new Ga(e) : new Vt(e);
|
|
16442
|
+
return m.calculateCustom = n, this._functionService.registerExecutors(m), u.add(ee(() => this._functionService.unregisterExecutors(e))), u.add(ee(() => this._functionService.unregisterDescriptions(e))), u.add(ee(() => this._functionService.deleteFormulaAstCacheKey(e))), this._remoteRegisterFunctionService && (this._remoteRegisterFunctionService.registerAsyncFunctions([[n.toString(), e]]), u.add(
|
|
16443
|
+
ee(() => this._remoteRegisterFunctionService.unregisterFunctions([e]))
|
|
16357
16444
|
)), u;
|
|
16358
16445
|
}
|
|
16359
16446
|
_registerLocalExecutors(a) {
|
|
16360
16447
|
const e = a.map(([i, r]) => r), n = a.map(([i, r]) => {
|
|
16361
|
-
const o = new
|
|
16448
|
+
const o = new Vt(r);
|
|
16362
16449
|
return o.calculateCustom = i, o;
|
|
16363
16450
|
});
|
|
16364
|
-
return this._functionService.registerExecutors(...n),
|
|
16451
|
+
return this._functionService.registerExecutors(...n), ee(() => this._functionService.unregisterExecutors(...e));
|
|
16365
16452
|
}
|
|
16366
16453
|
_registerRemoteExecutors(a) {
|
|
16367
16454
|
const e = [], n = a.map(([i, r]) => (e.push(r), [i.toString(), r]));
|
|
16368
|
-
return this._remoteRegisterFunctionService.registerFunctions(n),
|
|
16455
|
+
return this._remoteRegisterFunctionService.registerFunctions(n), ee(() => this._remoteRegisterFunctionService.unregisterFunctions(e));
|
|
16369
16456
|
}
|
|
16370
16457
|
};
|
|
16371
|
-
|
|
16372
|
-
|
|
16373
|
-
|
|
16374
|
-
|
|
16375
|
-
|
|
16376
|
-
],
|
|
16377
|
-
var
|
|
16378
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
16458
|
+
wt = co([
|
|
16459
|
+
je(0, H(Xt)),
|
|
16460
|
+
je(1, H(Nt)),
|
|
16461
|
+
je(2, Et),
|
|
16462
|
+
je(3, cn(ka))
|
|
16463
|
+
], wt);
|
|
16464
|
+
var so = Object.defineProperty, po = Object.getOwnPropertyDescriptor, Lo = (a, e, n) => e in a ? so(a, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[e] = n, Qa = (a, e, n, i) => {
|
|
16465
|
+
for (var r = i > 1 ? void 0 : i ? po(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
16379
16466
|
(u = a[o]) && (r = u(r) || r);
|
|
16380
16467
|
return r;
|
|
16381
|
-
},
|
|
16382
|
-
let
|
|
16383
|
-
constructor(a =
|
|
16468
|
+
}, dt = (a, e) => (n, i) => e(n, i, a), le = (a, e, n) => Lo(a, typeof e != "symbol" ? e + "" : e, n);
|
|
16469
|
+
let Oe = class extends Ia {
|
|
16470
|
+
constructor(a = sa, e, n) {
|
|
16384
16471
|
super(), this._config = a, this._injector = e, this._configService = n;
|
|
16385
|
-
const { ...i } =
|
|
16472
|
+
const { ...i } = Na(
|
|
16386
16473
|
{},
|
|
16387
|
-
|
|
16474
|
+
sa,
|
|
16388
16475
|
this._config
|
|
16389
16476
|
);
|
|
16390
|
-
this._configService.setConfig(
|
|
16477
|
+
this._configService.setConfig(Di, i);
|
|
16391
16478
|
}
|
|
16392
16479
|
onStarting() {
|
|
16393
|
-
this._injector.add([
|
|
16394
|
-
|
|
16395
|
-
|
|
16480
|
+
this._injector.add([st]), this._injector.get(Ha).registerChannel(
|
|
16481
|
+
kt,
|
|
16482
|
+
Ri(this._injector.get(st))
|
|
16396
16483
|
);
|
|
16397
16484
|
}
|
|
16398
16485
|
};
|
|
16399
|
-
|
|
16400
|
-
|
|
16401
|
-
|
|
16402
|
-
|
|
16403
|
-
|
|
16404
|
-
|
|
16405
|
-
|
|
16406
|
-
|
|
16407
|
-
|
|
16486
|
+
le(Oe, "pluginName", "SHEET_FORMULA_REMOTE_PLUGIN");
|
|
16487
|
+
le(Oe, "packageName", It.name);
|
|
16488
|
+
le(Oe, "version", It.version);
|
|
16489
|
+
le(Oe, "type", k.UNIVER_SHEET);
|
|
16490
|
+
Oe = Qa([
|
|
16491
|
+
Ea(si),
|
|
16492
|
+
dt(1, H(pt)),
|
|
16493
|
+
dt(2, xe)
|
|
16494
|
+
], Oe);
|
|
16495
|
+
let Me = class extends Ia {
|
|
16496
|
+
constructor(a = la, e, n) {
|
|
16408
16497
|
super(), this._config = a, this._injector = e, this._configService = n;
|
|
16409
|
-
const { ...i } =
|
|
16498
|
+
const { ...i } = Na(
|
|
16410
16499
|
{},
|
|
16411
|
-
|
|
16500
|
+
la,
|
|
16412
16501
|
this._config
|
|
16413
16502
|
);
|
|
16414
|
-
this._configService.setConfig(
|
|
16503
|
+
this._configService.setConfig(ve, i, { merge: !0 });
|
|
16415
16504
|
}
|
|
16416
16505
|
onStarting() {
|
|
16417
16506
|
const a = this._injector, e = [
|
|
16418
|
-
[
|
|
16419
|
-
[
|
|
16507
|
+
[lo, { useClass: wt }],
|
|
16508
|
+
[Nt, { useClass: Gt }],
|
|
16509
|
+
[ct],
|
|
16510
|
+
[Ht],
|
|
16511
|
+
[mt],
|
|
16420
16512
|
[it],
|
|
16421
|
-
[
|
|
16422
|
-
[
|
|
16423
|
-
[
|
|
16424
|
-
[
|
|
16425
|
-
[
|
|
16426
|
-
[
|
|
16427
|
-
[nt]
|
|
16428
|
-
[Je],
|
|
16429
|
-
[rt]
|
|
16513
|
+
[he],
|
|
16514
|
+
[ot],
|
|
16515
|
+
[ut],
|
|
16516
|
+
[ft],
|
|
16517
|
+
[rt],
|
|
16518
|
+
[lt],
|
|
16519
|
+
[nt]
|
|
16430
16520
|
];
|
|
16431
16521
|
if (this._config.notExecuteFormula) {
|
|
16432
|
-
const n = a.get(
|
|
16433
|
-
e.push([
|
|
16434
|
-
useFactory: () =>
|
|
16522
|
+
const n = a.get(Ha);
|
|
16523
|
+
e.push([ka, {
|
|
16524
|
+
useFactory: () => Si(n.requestChannel(kt))
|
|
16435
16525
|
}]);
|
|
16436
16526
|
}
|
|
16437
16527
|
e.forEach((n) => a.add(n));
|
|
16438
16528
|
}
|
|
16439
16529
|
onReady() {
|
|
16440
|
-
|
|
16530
|
+
He(this._injector, [
|
|
16531
|
+
[ct],
|
|
16532
|
+
[ut],
|
|
16533
|
+
[mt],
|
|
16441
16534
|
[it],
|
|
16442
|
-
[
|
|
16443
|
-
[
|
|
16444
|
-
[
|
|
16445
|
-
|
|
16446
|
-
[
|
|
16447
|
-
]), Xt() && Ue(this._injector, [
|
|
16448
|
-
[xe]
|
|
16535
|
+
[ot],
|
|
16536
|
+
[rt],
|
|
16537
|
+
[nt]
|
|
16538
|
+
]), Qt() && He(this._injector, [
|
|
16539
|
+
[he]
|
|
16449
16540
|
]);
|
|
16450
16541
|
}
|
|
16451
16542
|
onRendered() {
|
|
16452
|
-
|
|
16453
|
-
[
|
|
16454
|
-
[
|
|
16455
|
-
]),
|
|
16456
|
-
[
|
|
16543
|
+
He(this._injector, [
|
|
16544
|
+
[ft],
|
|
16545
|
+
[lt]
|
|
16546
|
+
]), Qt() || He(this._injector, [
|
|
16547
|
+
[he]
|
|
16457
16548
|
]);
|
|
16458
16549
|
}
|
|
16459
16550
|
};
|
|
16460
|
-
|
|
16461
|
-
|
|
16462
|
-
|
|
16463
|
-
|
|
16464
|
-
|
|
16465
|
-
|
|
16466
|
-
|
|
16467
|
-
|
|
16468
|
-
|
|
16551
|
+
le(Me, "pluginName", Dr);
|
|
16552
|
+
le(Me, "packageName", It.name);
|
|
16553
|
+
le(Me, "version", It.version);
|
|
16554
|
+
le(Me, "type", k.UNIVER_SHEET);
|
|
16555
|
+
Me = Qa([
|
|
16556
|
+
Ea(Fn),
|
|
16557
|
+
dt(1, H(pt)),
|
|
16558
|
+
dt(2, xe)
|
|
16559
|
+
], Me);
|
|
16560
|
+
function So(a, e, n, i) {
|
|
16561
|
+
const r = a.get(di), o = a.get(pi), u = a.get(Li), m = a.get(Pi);
|
|
16469
16562
|
r.load({
|
|
16470
16563
|
formulaData: {},
|
|
16471
16564
|
arrayFormulaCellData: {},
|
|
@@ -16481,26 +16574,27 @@ function fo(a, e, n, i) {
|
|
|
16481
16574
|
},
|
|
16482
16575
|
dirtyUnitOtherFormulaMap: {}
|
|
16483
16576
|
});
|
|
16484
|
-
const f = o.treeBuilder(e), c = u.parse(f), l = m.execute(
|
|
16485
|
-
return
|
|
16577
|
+
const f = o.treeBuilder(e), c = u.parse(f), l = m.execute(Ti(c));
|
|
16578
|
+
return Ei(l);
|
|
16486
16579
|
}
|
|
16487
16580
|
export {
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
16494
|
-
|
|
16495
|
-
|
|
16496
|
-
|
|
16497
|
-
|
|
16498
|
-
|
|
16499
|
-
|
|
16500
|
-
|
|
16501
|
-
|
|
16502
|
-
|
|
16503
|
-
|
|
16504
|
-
|
|
16505
|
-
|
|
16581
|
+
Ne as CalculationMode,
|
|
16582
|
+
Gt as DescriptionService,
|
|
16583
|
+
nt as FormulaAutoFillController,
|
|
16584
|
+
Ht as FormulaRefRangeService,
|
|
16585
|
+
Nt as IDescriptionService,
|
|
16586
|
+
lo as IRegisterFunctionService,
|
|
16587
|
+
ka as IRemoteRegisterFunctionService,
|
|
16588
|
+
it as ImageFormulaCellInterceptorController,
|
|
16589
|
+
Ai as InsertFunctionCommand,
|
|
16590
|
+
ve as PLUGIN_CONFIG_KEY_BASE,
|
|
16591
|
+
Ci as QuickSumCommand,
|
|
16592
|
+
wt as RegisterFunctionService,
|
|
16593
|
+
st as RemoteRegisterFunctionService,
|
|
16594
|
+
he as TriggerCalculationController,
|
|
16595
|
+
Oe as UniverRemoteSheetsFormulaPlugin,
|
|
16596
|
+
Me as UniverSheetsFormulaPlugin,
|
|
16597
|
+
rt as UpdateDefinedNameController,
|
|
16598
|
+
ot as UpdateFormulaController,
|
|
16599
|
+
So as calculateFormula
|
|
16506
16600
|
};
|