@univerjs/sheets-formula 0.5.5 → 0.6.0-alpha.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/facade.js +2 -2
- package/lib/es/index.js +358 -353
- package/lib/types/commands/commands/insert-function.command.d.ts +1 -0
- package/lib/types/facade/f-formula.d.ts +4 -1
- package/lib/types/facade/f-univer.d.ts +7 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
- package/lib/types/controllers/utils/__tests__/offset-formula-data.spec.d.ts +0 -16
- package/lib/types/controllers/utils/__tests__/ref-range-formula.spec.d.ts +0 -16
- package/lib/types/controllers/utils/__tests__/ref-range-move.spec.d.ts +0 -16
package/lib/es/index.js
CHANGED
|
@@ -3,31 +3,36 @@ var Ya = (n, e, a) => e in n ? Ha(n, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var X = (n, e, a) => Ya(n, typeof e != "symbol" ? e + "" : e, a);
|
|
4
4
|
import { CommandType as ma, ICommandService as de, ObjectMatrix as w, Tools as Ne, Rectangle as De, cellToRange as fa, Direction as He, isFormulaString as be, isFormulaId as ca, getIntersectRange as Ve, RANGE_TYPE as Y, Inject as W, Disposable as te, UniverInstanceType as ee, IUniverInstanceService as xe, LifecycleService as wa, LocaleService as Ot, ILogService as Xa, IConfigService as _e, Injector as at, createIdentifier as Mt, toDisposable as se, moveRangeByOffset as Et, DisposableCollection as Ye, AbsoluteRefType as we, Optional as Wa, Dimension as Bt, InterceptorEffectEnum as Ka, CellValueType as vt, isRealNum as Qa, DependentOn as la, Plugin as sa, merge as pa, touchDependencies as qe, isNodeEnv as Vt } from "@univerjs/core";
|
|
5
5
|
import { SetRangeValuesCommand as ka, SetRangeValuesMutation as ie, handleMoveRange as da, EffectRefRangId as G, runRefRangeMutations as H, handleMoveRows as La, handleMoveCols as Pa, handleInsertRow as Ta, handleInsertCol as Ea, handleIRemoveRow as Ia, handleIRemoveCol as Na, handleDeleteRangeMoveLeft as Ra, handleDeleteRangeMoveUp as Aa, handleInsertRangeMoveDown as Sa, handleInsertRangeMoveRight as Ca, RemoveDefinedNameCommand as Da, SetDefinedNameCommand as ba, RemoveSheetCommand as $a, SetWorksheetNameCommand as ja, DeleteRangeMoveLeftCommand as za, DeleteRangeMoveUpCommand as Za, RemoveColCommand as Ja, RemoveRowCommand as en, InsertRangeMoveDownCommand as tn, InsertRangeMoveRightCommand as an, InsertColCommand as nn, InsertRowCommand as rn, MoveColsCommand as on, MoveRowsCommand as un, MoveRangeCommand as mn, SheetInterceptorService as xt, SetStyleCommand as _t, SetBorderCommand as Oa, ClearSelectionFormatCommand as Ma, RemoveSheetMutation as It, InsertSheetMutation as Nt, RefRangeService as fn, handleDefaultRangeChangeWithEffectRefCommands as Gt, getSeparateEffectedRangesOnCommand as cn, handleCommonDefaultRangeChangeWithEffectRefCommands as ln, MoveRangeMutation as Ht, MoveRowsMutation as Yt, MoveColsMutation as wt, ReorderRangeMutation as Xt, RemoveRowMutation as Wt, RemoveColMutation as Kt, InsertColMutation as Qt, InsertRowMutation as kt, INTERCEPTOR_POINT as sn, SetWorksheetActiveOperation as pn, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as mt, UniverSheetsPlugin as dn } from "@univerjs/sheets";
|
|
6
|
-
import { sequenceNodeType as J, deserializeRangeWithSheetWithCache as pe, serializeRangeToRefString as nt, ErrorType as j, LexerTreeBuilder as yt, generateStringWithSequence as Xe, SetDefinedNameMutation as Me, IDefinedNamesService as qt, SetFormulaCalculationResultMutation as Ln, RemoveOtherFormulaMutation as Pn, IActiveDirtyManagerService as gt, SetOtherFormulaMutation as Tn, FormulaDataModel as it, SetFormulaCalculationStartMutation as Se, SetFormulaCalculationStopMutation as $t, ENGINE_FORMULA_CYCLE_REFERENCE_COUNT as jt, SetFormulaCalculationNotificationMutation as En, FormulaExecuteStageType as ge, FormulaExecutedStateType as Re, SetFormulaDataMutation as he, SetArrayFormulaDataMutation as Rt, initSheetFormulaData as zt, FUNCTION_NAMES_ARRAY as Zt, FunctionType as t, FUNCTION_NAMES_COMPATIBILITY as _, FUNCTION_NAMES_CUBE as ce, FUNCTION_NAMES_DATABASE as $, FUNCTION_NAMES_DATE as B, FUNCTION_NAMES_ENGINEERING as A, FUNCTION_NAMES_FINANCIAL as C, FUNCTION_NAMES_INFORMATION as v, FUNCTION_NAMES_LOGICAL as K, FUNCTION_NAMES_LOOKUP as y, FUNCTION_NAMES_MATH as T, FUNCTION_NAMES_STATISTICAL as
|
|
6
|
+
import { sequenceNodeType as J, deserializeRangeWithSheetWithCache as pe, serializeRangeToRefString as nt, ErrorType as j, LexerTreeBuilder as yt, generateStringWithSequence as Xe, SetDefinedNameMutation as Me, IDefinedNamesService as qt, SetFormulaCalculationResultMutation as Ln, RemoveOtherFormulaMutation as Pn, IActiveDirtyManagerService as gt, SetOtherFormulaMutation as Tn, FormulaDataModel as it, SetFormulaCalculationStartMutation as Se, SetFormulaCalculationStopMutation as $t, ENGINE_FORMULA_CYCLE_REFERENCE_COUNT as jt, SetFormulaCalculationNotificationMutation as En, FormulaExecuteStageType as ge, FormulaExecutedStateType as Re, SetFormulaDataMutation as he, SetArrayFormulaDataMutation as Rt, initSheetFormulaData as zt, FUNCTION_NAMES_ARRAY as Zt, FunctionType as t, FUNCTION_NAMES_COMPATIBILITY as _, FUNCTION_NAMES_CUBE as ce, FUNCTION_NAMES_DATABASE as $, FUNCTION_NAMES_DATE as B, FUNCTION_NAMES_ENGINEERING as A, FUNCTION_NAMES_FINANCIAL as C, FUNCTION_NAMES_INFORMATION as v, FUNCTION_NAMES_LOGICAL as K, FUNCTION_NAMES_LOOKUP as y, FUNCTION_NAMES_MATH as T, FUNCTION_NAMES_STATISTICAL as s, FUNCTION_NAMES_TEXT as D, FUNCTION_NAMES_WEB as ft, isReferenceStrings as In, functionArray as Nn, functionCompatibility as Rn, functionCube as An, functionDatabase as Sn, functionDate as Cn, functionEngineering as Dn, functionFinancial as bn, functionInformation as On, functionLogical as Mn, functionLookup as xn, functionMath as _n, functionMeta as yn, functionStatistical as qn, functionText as gn, functionUniver as hn, functionWeb as Un, IFunctionService as ht, serializeRangeWithSpreadsheet as Jt, serializeRangeWithSheet as ea, serializeRange as ta, CustomFunction as At, AsyncCustomFunction as xa, RemoveDefinedNameMutation as St, stripErrorMargin as Fn, UniverFormulaEnginePlugin as _a } from "@univerjs/engine-formula";
|
|
7
7
|
import { Subject as aa, BehaviorSubject as ya, bufferWhen as Bn, filter as na, map as vn } from "rxjs";
|
|
8
8
|
import { IRPCChannelService as qa, fromModule as Vn, toModule as Gn } from "@univerjs/rpc";
|
|
9
9
|
const Hn = {
|
|
10
10
|
id: "formula.command.insert-function",
|
|
11
11
|
type: ma.COMMAND,
|
|
12
12
|
handler: async (n, e) => {
|
|
13
|
-
const { list: a } = e,
|
|
14
|
-
a.forEach((
|
|
15
|
-
const { range:
|
|
16
|
-
|
|
17
|
-
f:
|
|
18
|
-
si:
|
|
13
|
+
const { list: a, listOfRangeHasNumber: i } = e, r = n.get(de), o = new w();
|
|
14
|
+
a.forEach((m) => {
|
|
15
|
+
const { range: f, primary: l, formula: p } = m, { row: L, column: P } = l, E = Ne.generateRandomId(6);
|
|
16
|
+
o.setValue(L, P, {
|
|
17
|
+
f: p,
|
|
18
|
+
si: E
|
|
19
19
|
});
|
|
20
|
-
const { startRow:
|
|
21
|
-
for (let
|
|
22
|
-
for (let
|
|
23
|
-
(
|
|
24
|
-
si:
|
|
20
|
+
const { startRow: I, startColumn: S, endRow: c, endColumn: N } = f;
|
|
21
|
+
for (let R = I; R <= c; R++)
|
|
22
|
+
for (let d = S; d <= N; d++)
|
|
23
|
+
(R !== L || d !== P) && o.setValue(R, d, {
|
|
24
|
+
si: E
|
|
25
25
|
});
|
|
26
|
+
}), i && i.length > 0 && i.forEach((m) => {
|
|
27
|
+
const { primary: f, formula: l } = m;
|
|
28
|
+
o.setValue(f.row, f.column, {
|
|
29
|
+
f: l
|
|
30
|
+
});
|
|
26
31
|
});
|
|
27
|
-
const
|
|
28
|
-
value:
|
|
32
|
+
const u = {
|
|
33
|
+
value: o.getData()
|
|
29
34
|
};
|
|
30
|
-
return
|
|
35
|
+
return r.executeCommand(ka.id, u);
|
|
31
36
|
}
|
|
32
37
|
}, Ge = {
|
|
33
38
|
type: ma.MUTATION,
|
|
@@ -73,27 +78,27 @@ function Wn(n, e) {
|
|
|
73
78
|
if (o == null || u == null)
|
|
74
79
|
return !0;
|
|
75
80
|
Object.keys(o).forEach((m) => {
|
|
76
|
-
const f = new w(o[m] || {}),
|
|
81
|
+
const f = new w(o[m] || {}), l = new w(u[m] || {}), p = new w(), L = new w();
|
|
77
82
|
if (f.forValue((c, N, R) => {
|
|
78
83
|
if (R == null)
|
|
79
84
|
return !0;
|
|
80
|
-
const
|
|
81
|
-
|
|
85
|
+
const d = rt(R);
|
|
86
|
+
d !== null && (p.setValue(c, N, d), L.setValue(c, N, l.getValue(c, N)));
|
|
82
87
|
}), p.getSizeOf() === 0)
|
|
83
88
|
return;
|
|
84
|
-
const
|
|
89
|
+
const P = {
|
|
85
90
|
subUnitId: m,
|
|
86
91
|
unitId: r,
|
|
87
92
|
cellValue: p.getMatrix()
|
|
88
93
|
}, E = {
|
|
89
94
|
id: ie.id,
|
|
90
|
-
params:
|
|
95
|
+
params: P
|
|
91
96
|
};
|
|
92
97
|
i.push(E);
|
|
93
98
|
const I = {
|
|
94
99
|
subUnitId: m,
|
|
95
100
|
unitId: r,
|
|
96
|
-
cellValue:
|
|
101
|
+
cellValue: L.getMatrix()
|
|
97
102
|
}, S = {
|
|
98
103
|
id: ie.id,
|
|
99
104
|
params: I
|
|
@@ -116,13 +121,13 @@ function Kn(n, e, a) {
|
|
|
116
121
|
return Object.keys(i).forEach((m) => {
|
|
117
122
|
Object.keys(i[m]).forEach((f) => {
|
|
118
123
|
if (Object.keys(i[m][f]).length !== 0) {
|
|
119
|
-
const
|
|
124
|
+
const l = {
|
|
120
125
|
subUnitId: f,
|
|
121
126
|
unitId: m,
|
|
122
127
|
cellValue: i[m][f]
|
|
123
128
|
}, p = {
|
|
124
129
|
id: ie.id,
|
|
125
|
-
params:
|
|
130
|
+
params: l
|
|
126
131
|
};
|
|
127
132
|
o.push(p);
|
|
128
133
|
}
|
|
@@ -130,13 +135,13 @@ function Kn(n, e, a) {
|
|
|
130
135
|
}), Object.keys(r).forEach((m) => {
|
|
131
136
|
Object.keys(r[m]).forEach((f) => {
|
|
132
137
|
if (Object.keys(r[m][f]).length !== 0) {
|
|
133
|
-
const
|
|
138
|
+
const l = {
|
|
134
139
|
subUnitId: f,
|
|
135
140
|
unitId: m,
|
|
136
141
|
cellValue: r[m][f]
|
|
137
142
|
}, p = {
|
|
138
143
|
id: ie.id,
|
|
139
|
-
params:
|
|
144
|
+
params: l
|
|
140
145
|
};
|
|
141
146
|
u.push(p);
|
|
142
147
|
}
|
|
@@ -147,24 +152,24 @@ function Kn(n, e, a) {
|
|
|
147
152
|
};
|
|
148
153
|
}
|
|
149
154
|
function Qn(n, e, a) {
|
|
150
|
-
const i = {}, r = {}, { type: o, unitId: u, sheetId: m, range: f, from:
|
|
151
|
-
return (/* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(e)])).forEach((
|
|
152
|
-
if (Yn(n,
|
|
155
|
+
const i = {}, r = {}, { type: o, unitId: u, sheetId: m, range: f, from: l, to: p } = a;
|
|
156
|
+
return (/* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(e)])).forEach((P) => {
|
|
157
|
+
if (Yn(n, P, m))
|
|
153
158
|
return;
|
|
154
159
|
(/* @__PURE__ */ new Set([
|
|
155
|
-
...Object.keys(n[
|
|
156
|
-
...Object.keys(e[
|
|
160
|
+
...Object.keys(n[P] || {}),
|
|
161
|
+
...Object.keys(e[P] || {})
|
|
157
162
|
])).forEach((I) => {
|
|
158
163
|
var F, U;
|
|
159
|
-
const S = (F = n[
|
|
160
|
-
let
|
|
161
|
-
|
|
162
|
-
const O = fi(
|
|
163
|
-
i[
|
|
164
|
-
...i[
|
|
164
|
+
const S = (F = n[P]) == null ? void 0 : F[I], c = (U = e[P]) == null ? void 0 : U[I], N = new w(S || {}), R = new w(c || {});
|
|
165
|
+
let d = [];
|
|
166
|
+
P !== u || I !== m ? d = $n(R) : d = kn(N, o, l, p, f);
|
|
167
|
+
const O = fi(d, N, R), M = ci(d, N);
|
|
168
|
+
i[P] || (i[P] = {}), r[P] || (r[P] = {}), i[P][I] = {
|
|
169
|
+
...i[P][I],
|
|
165
170
|
...O
|
|
166
|
-
}, r[
|
|
167
|
-
...r[
|
|
171
|
+
}, r[P][I] = {
|
|
172
|
+
...r[P][I],
|
|
168
173
|
...M
|
|
169
174
|
};
|
|
170
175
|
});
|
|
@@ -177,20 +182,20 @@ function kn(n, e, a, i, r) {
|
|
|
177
182
|
const o = [];
|
|
178
183
|
return n.forValue((u, m, f) => {
|
|
179
184
|
if (f == null || !ga(f)) return !0;
|
|
180
|
-
const
|
|
181
|
-
let p = null,
|
|
185
|
+
const l = fa(u, m);
|
|
186
|
+
let p = null, L = !1;
|
|
182
187
|
if ([
|
|
183
188
|
0,
|
|
184
189
|
1,
|
|
185
190
|
2
|
|
186
191
|
/* MoveCols */
|
|
187
192
|
].includes(e))
|
|
188
|
-
p = jn(e, a, i,
|
|
193
|
+
p = jn(e, a, i, l);
|
|
189
194
|
else if (r != null) {
|
|
190
|
-
const
|
|
191
|
-
p =
|
|
195
|
+
const P = zn(e, r, l);
|
|
196
|
+
p = P.newCell, L = P.isReverse;
|
|
192
197
|
}
|
|
193
|
-
|
|
198
|
+
L ? o.unshift({ oldCell: l, newCell: p }) : o.push({ oldCell: l, newCell: p });
|
|
194
199
|
}), o;
|
|
195
200
|
}
|
|
196
201
|
function $n(n) {
|
|
@@ -358,22 +363,22 @@ function mi(n, e) {
|
|
|
358
363
|
function fi(n, e, a) {
|
|
359
364
|
const i = new w({});
|
|
360
365
|
return n.forEach((r) => {
|
|
361
|
-
const { oldCell: o, newCell: u } = r, { startRow: m, startColumn: f } = o,
|
|
366
|
+
const { oldCell: o, newCell: u } = r, { startRow: m, startColumn: f } = o, l = a.getValue(m, f) || e.getValue(m, f), p = rt(l);
|
|
362
367
|
if (i.setValue(m, f, { f: null, si: null }), u) {
|
|
363
|
-
const { startRow:
|
|
364
|
-
i.setValue(
|
|
368
|
+
const { startRow: L, startColumn: P } = u;
|
|
369
|
+
i.setValue(L, P, p);
|
|
365
370
|
}
|
|
366
371
|
}), i.getMatrix();
|
|
367
372
|
}
|
|
368
373
|
function ci(n, e) {
|
|
369
374
|
const a = new w({});
|
|
370
375
|
return n.reverse().forEach((i) => {
|
|
371
|
-
const { oldCell: r, newCell: o } = i, { startRow: u, startColumn: m } = r, f = e.getValue(u, m),
|
|
376
|
+
const { oldCell: r, newCell: o } = i, { startRow: u, startColumn: m } = r, f = e.getValue(u, m), l = rt(f);
|
|
372
377
|
if (o) {
|
|
373
|
-
const { startRow: p, startColumn:
|
|
374
|
-
a.setValue(p,
|
|
378
|
+
const { startRow: p, startColumn: L } = o;
|
|
379
|
+
a.setValue(p, L, { f: null, si: null });
|
|
375
380
|
}
|
|
376
|
-
a.setValue(u, m,
|
|
381
|
+
a.setValue(u, m, l);
|
|
377
382
|
}), a.getMatrix();
|
|
378
383
|
}
|
|
379
384
|
function rt(n) {
|
|
@@ -415,23 +420,23 @@ function Ua(n, e, a = 0, i = 0) {
|
|
|
415
420
|
r.push(m);
|
|
416
421
|
continue;
|
|
417
422
|
}
|
|
418
|
-
const { token: f } = m,
|
|
423
|
+
const { token: f } = m, l = pe(f), { range: p, sheetName: L, unitId: P } = l, E = De.moveOffset(p, a, i);
|
|
419
424
|
r.push({
|
|
420
425
|
...m,
|
|
421
426
|
token: nt({
|
|
422
427
|
range: E,
|
|
423
|
-
unitId:
|
|
424
|
-
sheetName:
|
|
428
|
+
unitId: P,
|
|
429
|
+
sheetName: L
|
|
425
430
|
})
|
|
426
431
|
});
|
|
427
432
|
}
|
|
428
433
|
return r;
|
|
429
434
|
}
|
|
430
435
|
function Fa(n, e, a, i) {
|
|
431
|
-
const { type: r, unitId: o, sheetId: u, range: m, from: f, to:
|
|
436
|
+
const { type: r, unitId: o, sheetId: u, range: m, from: f, to: l } = e, {
|
|
432
437
|
range: p,
|
|
433
|
-
sheetId:
|
|
434
|
-
unitId:
|
|
438
|
+
sheetId: L,
|
|
439
|
+
unitId: P,
|
|
435
440
|
sheetName: E,
|
|
436
441
|
refOffsetX: I,
|
|
437
442
|
refOffsetY: S
|
|
@@ -441,33 +446,33 @@ function Fa(n, e, a, i) {
|
|
|
441
446
|
u,
|
|
442
447
|
a,
|
|
443
448
|
i,
|
|
444
|
-
|
|
445
|
-
|
|
449
|
+
P,
|
|
450
|
+
L
|
|
446
451
|
))
|
|
447
452
|
return;
|
|
448
453
|
const c = De.moveOffset(p, I, S);
|
|
449
454
|
let N = null;
|
|
450
455
|
if (r === q.MoveRange) {
|
|
451
|
-
if (f == null ||
|
|
456
|
+
if (f == null || l == null)
|
|
452
457
|
return;
|
|
453
|
-
const R = st(c, f),
|
|
454
|
-
if (
|
|
458
|
+
const R = st(c, f), d = Ve(c, f);
|
|
459
|
+
if (d == null || R !== 4)
|
|
455
460
|
return;
|
|
456
461
|
const O = da(
|
|
457
|
-
{ id: G.MoveRangeCommandId, params: { toRange:
|
|
458
|
-
|
|
459
|
-
), M = H(O,
|
|
462
|
+
{ id: G.MoveRangeCommandId, params: { toRange: l, fromRange: f } },
|
|
463
|
+
d
|
|
464
|
+
), M = H(O, d);
|
|
460
465
|
if (M == null)
|
|
461
466
|
return j.REF;
|
|
462
|
-
N = lt(R, M, f,
|
|
467
|
+
N = lt(R, M, f, l, c, d);
|
|
463
468
|
} else if (r === q.MoveRows) {
|
|
464
|
-
if (f == null ||
|
|
469
|
+
if (f == null || l == null)
|
|
465
470
|
return;
|
|
466
471
|
const R = st(c, f);
|
|
467
|
-
let
|
|
468
|
-
if (
|
|
472
|
+
let d = Ve(c, f);
|
|
473
|
+
if (d == null && (f.endRow < c.startRow && l.endRow < c.startRow || f.startRow > c.endRow && l.startRow > c.endRow))
|
|
469
474
|
return;
|
|
470
|
-
|
|
475
|
+
d == null && (d = {
|
|
471
476
|
startRow: c.startRow,
|
|
472
477
|
endRow: c.endRow,
|
|
473
478
|
startColumn: c.startColumn,
|
|
@@ -475,20 +480,20 @@ function Fa(n, e, a, i) {
|
|
|
475
480
|
rangeType: Y.NORMAL
|
|
476
481
|
});
|
|
477
482
|
const O = La(
|
|
478
|
-
{ id: G.MoveRowsCommandId, params: { toRange:
|
|
479
|
-
|
|
480
|
-
), M = H(O,
|
|
483
|
+
{ id: G.MoveRowsCommandId, params: { toRange: l, fromRange: f } },
|
|
484
|
+
d
|
|
485
|
+
), M = H(O, d);
|
|
481
486
|
if (M == null)
|
|
482
487
|
return j.REF;
|
|
483
|
-
N = lt(R, M, f,
|
|
488
|
+
N = lt(R, M, f, l, c, d);
|
|
484
489
|
} else if (r === q.MoveCols) {
|
|
485
|
-
if (f == null ||
|
|
490
|
+
if (f == null || l == null)
|
|
486
491
|
return;
|
|
487
492
|
const R = st(c, f);
|
|
488
|
-
let
|
|
489
|
-
if (
|
|
493
|
+
let d = Ve(c, f);
|
|
494
|
+
if (d == null && (f.endColumn < c.startColumn && l.endColumn < c.startColumn || f.startColumn > c.endColumn && l.startColumn > c.endColumn))
|
|
490
495
|
return;
|
|
491
|
-
|
|
496
|
+
d == null && (d = {
|
|
492
497
|
startRow: c.startRow,
|
|
493
498
|
endRow: c.endRow,
|
|
494
499
|
startColumn: c.startColumn,
|
|
@@ -496,12 +501,12 @@ function Fa(n, e, a, i) {
|
|
|
496
501
|
rangeType: Y.NORMAL
|
|
497
502
|
});
|
|
498
503
|
const O = Pa(
|
|
499
|
-
{ id: G.MoveColsCommandId, params: { toRange:
|
|
500
|
-
|
|
501
|
-
), M = H(O,
|
|
504
|
+
{ id: G.MoveColsCommandId, params: { toRange: l, fromRange: f } },
|
|
505
|
+
d
|
|
506
|
+
), M = H(O, d);
|
|
502
507
|
if (M == null)
|
|
503
508
|
return j.REF;
|
|
504
|
-
N = lt(R, M, f,
|
|
509
|
+
N = lt(R, M, f, l, c, d);
|
|
505
510
|
}
|
|
506
511
|
if (m != null) {
|
|
507
512
|
if (r === q.InsertRow) {
|
|
@@ -511,12 +516,12 @@ function Fa(n, e, a, i) {
|
|
|
511
516
|
params: { range: m, unitId: "", subUnitId: "", direction: He.DOWN }
|
|
512
517
|
},
|
|
513
518
|
c
|
|
514
|
-
),
|
|
515
|
-
if (
|
|
519
|
+
), d = H(R, c);
|
|
520
|
+
if (d == null)
|
|
516
521
|
return;
|
|
517
522
|
N = {
|
|
518
523
|
...c,
|
|
519
|
-
...
|
|
524
|
+
...d
|
|
520
525
|
};
|
|
521
526
|
} else if (r === q.InsertColumn) {
|
|
522
527
|
const R = Ea(
|
|
@@ -525,12 +530,12 @@ function Fa(n, e, a, i) {
|
|
|
525
530
|
params: { range: m, unitId: "", subUnitId: "", direction: He.RIGHT }
|
|
526
531
|
},
|
|
527
532
|
c
|
|
528
|
-
),
|
|
529
|
-
if (
|
|
533
|
+
), d = H(R, c);
|
|
534
|
+
if (d == null)
|
|
530
535
|
return;
|
|
531
536
|
N = {
|
|
532
537
|
...c,
|
|
533
|
-
...
|
|
538
|
+
...d
|
|
534
539
|
};
|
|
535
540
|
} else if (r === q.RemoveRow) {
|
|
536
541
|
const R = Ia(
|
|
@@ -539,12 +544,12 @@ function Fa(n, e, a, i) {
|
|
|
539
544
|
params: { range: m }
|
|
540
545
|
},
|
|
541
546
|
c
|
|
542
|
-
),
|
|
543
|
-
if (
|
|
547
|
+
), d = H(R, c);
|
|
548
|
+
if (d == null)
|
|
544
549
|
return j.REF;
|
|
545
550
|
N = {
|
|
546
551
|
...c,
|
|
547
|
-
...
|
|
552
|
+
...d
|
|
548
553
|
};
|
|
549
554
|
} else if (r === q.RemoveColumn) {
|
|
550
555
|
const R = Na(
|
|
@@ -553,12 +558,12 @@ function Fa(n, e, a, i) {
|
|
|
553
558
|
params: { range: m }
|
|
554
559
|
},
|
|
555
560
|
c
|
|
556
|
-
),
|
|
557
|
-
if (
|
|
561
|
+
), d = H(R, c);
|
|
562
|
+
if (d == null)
|
|
558
563
|
return j.REF;
|
|
559
564
|
N = {
|
|
560
565
|
...c,
|
|
561
|
-
...
|
|
566
|
+
...d
|
|
562
567
|
};
|
|
563
568
|
} else if (r === q.DeleteMoveLeft) {
|
|
564
569
|
const R = Ra(
|
|
@@ -567,12 +572,12 @@ function Fa(n, e, a, i) {
|
|
|
567
572
|
params: { range: m }
|
|
568
573
|
},
|
|
569
574
|
c
|
|
570
|
-
),
|
|
571
|
-
if (
|
|
575
|
+
), d = H(R, c);
|
|
576
|
+
if (d == null)
|
|
572
577
|
return j.REF;
|
|
573
578
|
N = {
|
|
574
579
|
...c,
|
|
575
|
-
...
|
|
580
|
+
...d
|
|
576
581
|
};
|
|
577
582
|
} else if (r === q.DeleteMoveUp) {
|
|
578
583
|
const R = Aa(
|
|
@@ -581,12 +586,12 @@ function Fa(n, e, a, i) {
|
|
|
581
586
|
params: { range: m }
|
|
582
587
|
},
|
|
583
588
|
c
|
|
584
|
-
),
|
|
585
|
-
if (
|
|
589
|
+
), d = H(R, c);
|
|
590
|
+
if (d == null)
|
|
586
591
|
return j.REF;
|
|
587
592
|
N = {
|
|
588
593
|
...c,
|
|
589
|
-
...
|
|
594
|
+
...d
|
|
590
595
|
};
|
|
591
596
|
} else if (r === q.InsertMoveDown) {
|
|
592
597
|
const R = Sa(
|
|
@@ -595,12 +600,12 @@ function Fa(n, e, a, i) {
|
|
|
595
600
|
params: { range: m }
|
|
596
601
|
},
|
|
597
602
|
c
|
|
598
|
-
),
|
|
599
|
-
if (
|
|
603
|
+
), d = H(R, c);
|
|
604
|
+
if (d == null)
|
|
600
605
|
return;
|
|
601
606
|
N = {
|
|
602
607
|
...c,
|
|
603
|
-
...
|
|
608
|
+
...d
|
|
604
609
|
};
|
|
605
610
|
} else if (r === q.InsertMoveRight) {
|
|
606
611
|
const R = Ca(
|
|
@@ -609,12 +614,12 @@ function Fa(n, e, a, i) {
|
|
|
609
614
|
params: { range: m }
|
|
610
615
|
},
|
|
611
616
|
c
|
|
612
|
-
),
|
|
613
|
-
if (
|
|
617
|
+
), d = H(R, c);
|
|
618
|
+
if (d == null)
|
|
614
619
|
return;
|
|
615
620
|
N = {
|
|
616
621
|
...c,
|
|
617
|
-
...
|
|
622
|
+
...d
|
|
618
623
|
};
|
|
619
624
|
}
|
|
620
625
|
}
|
|
@@ -622,17 +627,17 @@ function Fa(n, e, a, i) {
|
|
|
622
627
|
return nt({
|
|
623
628
|
range: N,
|
|
624
629
|
sheetName: E,
|
|
625
|
-
unitId:
|
|
630
|
+
unitId: P
|
|
626
631
|
});
|
|
627
632
|
}
|
|
628
633
|
function lt(n, e, a, i, r, o) {
|
|
629
|
-
const { startRow: u, endRow: m, startColumn: f, endColumn:
|
|
630
|
-
startRow:
|
|
631
|
-
startColumn:
|
|
634
|
+
const { startRow: u, endRow: m, startColumn: f, endColumn: l, rangeType: p } = Ae(e), {
|
|
635
|
+
startRow: L,
|
|
636
|
+
startColumn: P,
|
|
632
637
|
endRow: E,
|
|
633
638
|
endColumn: I,
|
|
634
639
|
rangeType: S = Y.NORMAL
|
|
635
|
-
} = Ae(a), { startRow: c, startColumn: N, endRow: R, endColumn:
|
|
640
|
+
} = Ae(a), { startRow: c, startColumn: N, endRow: R, endColumn: d } = Ae(i), {
|
|
636
641
|
startRow: O,
|
|
637
642
|
endRow: M,
|
|
638
643
|
startColumn: F,
|
|
@@ -645,7 +650,7 @@ function lt(n, e, a, i, r, o) {
|
|
|
645
650
|
rangeType: k = Y.NORMAL
|
|
646
651
|
} = Ae(r), b = { ...r };
|
|
647
652
|
function Le() {
|
|
648
|
-
return p === Y.COLUMN && k === Y.COLUMN ? !0 : f >= h &&
|
|
653
|
+
return p === Y.COLUMN && k === Y.COLUMN ? !0 : f >= h && l <= V;
|
|
649
654
|
}
|
|
650
655
|
function ae() {
|
|
651
656
|
return p === Y.ROW && k === Y.ROW ? !0 : u >= g && m <= x;
|
|
@@ -665,7 +670,7 @@ function lt(n, e, a, i, r, o) {
|
|
|
665
670
|
if (m > x)
|
|
666
671
|
b.endRow = m;
|
|
667
672
|
else if (m <= g)
|
|
668
|
-
b.startRow += x -
|
|
673
|
+
b.startRow += x - L + 1;
|
|
669
674
|
else
|
|
670
675
|
return;
|
|
671
676
|
else
|
|
@@ -682,29 +687,29 @@ function lt(n, e, a, i, r, o) {
|
|
|
682
687
|
return;
|
|
683
688
|
else if (n === 3)
|
|
684
689
|
if (ae())
|
|
685
|
-
if (
|
|
686
|
-
b.endColumn =
|
|
687
|
-
else if (
|
|
688
|
-
b.startColumn += V -
|
|
690
|
+
if (l > V)
|
|
691
|
+
b.endColumn = l;
|
|
692
|
+
else if (l <= h)
|
|
693
|
+
b.startColumn += V - P + 1;
|
|
689
694
|
else
|
|
690
695
|
return;
|
|
691
696
|
else
|
|
692
697
|
return;
|
|
693
|
-
else n === 4 ? (b.startRow = u, b.startColumn = f, b.endRow = m, b.endColumn =
|
|
698
|
+
else n === 4 ? (b.startRow = u, b.startColumn = f, b.endRow = m, b.endColumn = l) : P <= h && I >= V || S === Y.ROW && k === Y.ROW ? a.endRow < g ? (c >= g && (b.startRow -= E - L + 1), c >= x && (b.endRow -= E - L + 1)) : a.startRow > x ? (R <= x && (b.endRow += E - L + 1), R <= g && (b.startRow += E - L + 1)) : a.startRow >= g && a.endRow <= x && (c <= g ? b.startRow += E - L + 1 : c >= x && (b.endRow -= E - L + 1)) : L <= g && E >= x || S === Y.COLUMN && k === Y.COLUMN ? a.endColumn < h ? (N >= h && (b.startColumn -= I - P + 1), N >= V && (b.endColumn -= I - P + 1)) : a.startColumn > V ? (d <= V && (b.endColumn += I - P + 1), d <= h && (b.startColumn += I - P + 1)) : a.startColumn >= h && a.endColumn <= V && (N <= h ? b.startColumn += I - P + 1 : N >= V && (b.endColumn -= I - P + 1)) : ((N <= U + 1 && d >= V || N <= h && d >= F - 1) && c <= g && R >= x || (c <= M + 1 && R >= x || c <= g && R >= O - 1) && N <= h && d >= V, b.startRow = u, b.startColumn = f, b.endRow = m, b.endColumn = l);
|
|
694
699
|
return b;
|
|
695
700
|
}
|
|
696
701
|
function st(n, e) {
|
|
697
|
-
const a = Ee(n.startRow), i = Ie(n.endRow), r = Ee(n.startColumn), o = Ie(n.endColumn), u = Ee(e.startRow), m = Ie(e.endRow), f = Ee(e.startColumn),
|
|
702
|
+
const a = Ee(n.startRow), i = Ie(n.endRow), r = Ee(n.startColumn), o = Ie(n.endColumn), u = Ee(e.startRow), m = Ie(e.endRow), f = Ee(e.startColumn), l = Ie(e.endColumn);
|
|
698
703
|
function p() {
|
|
699
704
|
return n.rangeType === Y.COLUMN && e.rangeType === Y.COLUMN ? !0 : a >= u && i <= m;
|
|
700
705
|
}
|
|
701
|
-
function d() {
|
|
702
|
-
return n.rangeType === Y.ROW && e.rangeType === Y.ROW ? !0 : r >= f && o <= s;
|
|
703
|
-
}
|
|
704
706
|
function L() {
|
|
707
|
+
return n.rangeType === Y.ROW && e.rangeType === Y.ROW ? !0 : r >= f && o <= l;
|
|
708
|
+
}
|
|
709
|
+
function P() {
|
|
705
710
|
return n.rangeType === Y.ALL && e.rangeType === Y.ALL;
|
|
706
711
|
}
|
|
707
|
-
return p() &&
|
|
712
|
+
return p() && L() || P() ? 4 : L() && a >= u && a <= m && i > m ? 0 : L() && i >= u && i <= m && a < u ? 1 : p() && r >= f && r <= l && o > l ? 2 : p() && o >= f && o <= l && r < f ? 3 : null;
|
|
708
713
|
}
|
|
709
714
|
function Ee(n) {
|
|
710
715
|
return isNaN(n) ? -1 / 0 : n;
|
|
@@ -804,13 +809,13 @@ function pi(n, e) {
|
|
|
804
809
|
toRange: { startRow: o, endRow: u }
|
|
805
810
|
} = a, m = e.getUnitId(), f = e.getActiveSheet();
|
|
806
811
|
if (!f) return null;
|
|
807
|
-
const
|
|
812
|
+
const l = f.getSheetId(), p = {
|
|
808
813
|
startRow: i,
|
|
809
814
|
startColumn: 0,
|
|
810
815
|
endRow: r,
|
|
811
816
|
endColumn: f.getColumnCount() - 1,
|
|
812
817
|
rangeType: Y.ROW
|
|
813
|
-
},
|
|
818
|
+
}, L = {
|
|
814
819
|
startRow: o,
|
|
815
820
|
startColumn: 0,
|
|
816
821
|
endRow: u,
|
|
@@ -820,9 +825,9 @@ function pi(n, e) {
|
|
|
820
825
|
return {
|
|
821
826
|
type: q.MoveRows,
|
|
822
827
|
from: p,
|
|
823
|
-
to:
|
|
828
|
+
to: L,
|
|
824
829
|
unitId: m,
|
|
825
|
-
sheetId:
|
|
830
|
+
sheetId: l
|
|
826
831
|
};
|
|
827
832
|
}
|
|
828
833
|
function di(n, e) {
|
|
@@ -833,13 +838,13 @@ function di(n, e) {
|
|
|
833
838
|
toRange: { startColumn: o, endColumn: u }
|
|
834
839
|
} = a, m = e.getUnitId(), f = e.getActiveSheet();
|
|
835
840
|
if (!f) return null;
|
|
836
|
-
const
|
|
841
|
+
const l = f.getSheetId(), p = {
|
|
837
842
|
startRow: 0,
|
|
838
843
|
startColumn: i,
|
|
839
844
|
endRow: f.getRowCount() - 1,
|
|
840
845
|
endColumn: r,
|
|
841
846
|
rangeType: Y.COLUMN
|
|
842
|
-
},
|
|
847
|
+
}, L = {
|
|
843
848
|
startRow: 0,
|
|
844
849
|
startColumn: o,
|
|
845
850
|
endRow: f.getRowCount() - 1,
|
|
@@ -849,9 +854,9 @@ function di(n, e) {
|
|
|
849
854
|
return {
|
|
850
855
|
type: q.MoveCols,
|
|
851
856
|
from: p,
|
|
852
|
-
to:
|
|
857
|
+
to: L,
|
|
853
858
|
unitId: m,
|
|
854
|
-
sheetId:
|
|
859
|
+
sheetId: l
|
|
855
860
|
};
|
|
856
861
|
}
|
|
857
862
|
function Li(n) {
|
|
@@ -1034,16 +1039,16 @@ let We = class extends te {
|
|
|
1034
1039
|
const u = [], m = [];
|
|
1035
1040
|
return Object.values(o).forEach((f) => {
|
|
1036
1041
|
var c;
|
|
1037
|
-
const { formulaOrRefString:
|
|
1042
|
+
const { formulaOrRefString: l } = f, p = this._lexerTreeBuilder.sequenceNodesBuilder(l);
|
|
1038
1043
|
if (p == null)
|
|
1039
1044
|
return !0;
|
|
1040
|
-
let
|
|
1041
|
-
const
|
|
1045
|
+
let L = !1;
|
|
1046
|
+
const P = [];
|
|
1042
1047
|
for (let N = 0, R = p.length; N < R; N++) {
|
|
1043
|
-
const
|
|
1044
|
-
if (typeof
|
|
1048
|
+
const d = p[N];
|
|
1049
|
+
if (typeof d == "string" || d.nodeType !== J.REFERENCE)
|
|
1045
1050
|
continue;
|
|
1046
|
-
const { token: O } =
|
|
1051
|
+
const { token: O } = d, M = pe(O), { range: F, sheetName: U, unitId: g } = M, x = ((c = n.getSheetBySheetName(U)) == null ? void 0 : c.getSheetId()) || "", h = {
|
|
1047
1052
|
range: F,
|
|
1048
1053
|
sheetId: x,
|
|
1049
1054
|
unitId: g,
|
|
@@ -1074,13 +1079,13 @@ let We = class extends te {
|
|
|
1074
1079
|
r
|
|
1075
1080
|
);
|
|
1076
1081
|
V != null && (p[N] = {
|
|
1077
|
-
...
|
|
1082
|
+
...d,
|
|
1078
1083
|
token: V
|
|
1079
|
-
},
|
|
1084
|
+
}, L = !0, P.push(N));
|
|
1080
1085
|
}
|
|
1081
|
-
if (!
|
|
1086
|
+
if (!L)
|
|
1082
1087
|
return !0;
|
|
1083
|
-
const E = Xe(Ua(p,
|
|
1088
|
+
const E = Xe(Ua(p, P)), I = {
|
|
1084
1089
|
id: Me.id,
|
|
1085
1090
|
params: {
|
|
1086
1091
|
unitId: i,
|
|
@@ -1159,7 +1164,7 @@ let Ke = class extends te {
|
|
|
1159
1164
|
const { unitId: i, subUnitId: r, formulaText: o, formulaId: u, ranges: m } = a;
|
|
1160
1165
|
if (!this._ensureCacheMap(i, r).has(u))
|
|
1161
1166
|
return;
|
|
1162
|
-
const
|
|
1167
|
+
const l = {
|
|
1163
1168
|
unitId: i,
|
|
1164
1169
|
subUnitId: r,
|
|
1165
1170
|
formulaMap: {
|
|
@@ -1169,7 +1174,7 @@ let Ke = class extends te {
|
|
|
1169
1174
|
}
|
|
1170
1175
|
}
|
|
1171
1176
|
};
|
|
1172
|
-
this._commandService.executeCommand(Tn.id,
|
|
1177
|
+
this._commandService.executeCommand(Tn.id, l).then(() => {
|
|
1173
1178
|
this._commandService.executeCommand(
|
|
1174
1179
|
Ge.id,
|
|
1175
1180
|
{ [i]: { [r]: { [u]: !0 } } }
|
|
@@ -1190,21 +1195,21 @@ let Ke = class extends te {
|
|
|
1190
1195
|
const u = i[o], m = {};
|
|
1191
1196
|
r[o] = m;
|
|
1192
1197
|
for (const f in u) {
|
|
1193
|
-
const
|
|
1194
|
-
m[f] =
|
|
1195
|
-
for (const
|
|
1196
|
-
const E = p[
|
|
1197
|
-
if (
|
|
1198
|
-
const I =
|
|
1198
|
+
const l = this._ensureCacheMap(o, f), p = u[f], L = [];
|
|
1199
|
+
m[f] = L;
|
|
1200
|
+
for (const P in p) {
|
|
1201
|
+
const E = p[P];
|
|
1202
|
+
if (l.has(P)) {
|
|
1203
|
+
const I = l.get(P);
|
|
1199
1204
|
if (!I)
|
|
1200
1205
|
continue;
|
|
1201
1206
|
I.result || (I.result = {});
|
|
1202
1207
|
const S = new w(E), c = new w(I.result);
|
|
1203
|
-
S.forValue((N, R,
|
|
1204
|
-
c.setValue(N, R,
|
|
1208
|
+
S.forValue((N, R, d) => {
|
|
1209
|
+
c.setValue(N, R, d);
|
|
1205
1210
|
}), I.status = Ce.SUCCESS, I.callbacks.forEach((N) => {
|
|
1206
1211
|
N(E);
|
|
1207
|
-
}), I.callbacks.clear(),
|
|
1212
|
+
}), I.callbacks.clear(), L.push(I);
|
|
1208
1213
|
}
|
|
1209
1214
|
}
|
|
1210
1215
|
}
|
|
@@ -1267,7 +1272,7 @@ var hi = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, Fi = (n, e
|
|
|
1267
1272
|
const oa = { done: 0, count: 0 }, dt = { onlyLocal: !0 };
|
|
1268
1273
|
let Oe = class extends te {
|
|
1269
1274
|
constructor(e, a, i, r, o, u, m) {
|
|
1270
|
-
var
|
|
1275
|
+
var l;
|
|
1271
1276
|
super();
|
|
1272
1277
|
X(this, "_waitingCommandQueue", []);
|
|
1273
1278
|
X(this, "_executingDirtyData", {
|
|
@@ -1294,7 +1299,7 @@ let Oe = class extends te {
|
|
|
1294
1299
|
X(this, "progress$", this._progress$.asObservable());
|
|
1295
1300
|
this._commandService = e, this._activeDirtyManagerService = a, this._logService = i, this._configService = r, this._formulaDataModel = o, this._localeService = u, this._registerOtherFormulaService = m;
|
|
1296
1301
|
const f = this._configService.getConfig(ot);
|
|
1297
|
-
this._calculationMode = (
|
|
1302
|
+
this._calculationMode = (l = f == null ? void 0 : f.initialFormulaComputing) != null ? l : ne.WHEN_EMPTY, this._commandExecutedListener(), this._initialExecuteFormulaProcessListener(), this._initialExecuteFormula();
|
|
1298
1303
|
}
|
|
1299
1304
|
_emitProgress(e) {
|
|
1300
1305
|
this._progress$.next({ done: this._doneCalculationTaskCount, count: this._totalCalculationTaskCount, label: e });
|
|
@@ -1343,11 +1348,11 @@ let Oe = class extends te {
|
|
|
1343
1348
|
_generateDirty(e) {
|
|
1344
1349
|
const a = [], i = {}, r = {}, o = {}, u = {}, m = {};
|
|
1345
1350
|
for (const f of e) {
|
|
1346
|
-
const
|
|
1347
|
-
if (
|
|
1351
|
+
const l = this._activeDirtyManagerService.get(f.id);
|
|
1352
|
+
if (l == null)
|
|
1348
1353
|
continue;
|
|
1349
|
-
const p =
|
|
1350
|
-
|
|
1354
|
+
const p = l.getDirtyData(f), { dirtyRanges: L, dirtyNameMap: P, dirtyDefinedNameMap: E, dirtyUnitFeatureMap: I, dirtyUnitOtherFormulaMap: S, clearDependencyTreeCache: c } = p;
|
|
1355
|
+
L != null && this._mergeDirtyRanges(a, L), P != null && this._mergeDirtyNameMap(i, P), E != null && this._mergeDirtyNameMap(r, E), I != null && this._mergeDirtyUnitFeatureOrOtherFormulaMap(o, I), S != null && this._mergeDirtyUnitFeatureOrOtherFormulaMap(u, S), c != null && this._mergeDirtyNameMap(m, c);
|
|
1351
1356
|
}
|
|
1352
1357
|
return {
|
|
1353
1358
|
dirtyRanges: a,
|
|
@@ -1364,7 +1369,7 @@ let Oe = class extends te {
|
|
|
1364
1369
|
_mergeDirty(e, a) {
|
|
1365
1370
|
const i = [...e.dirtyRanges, ...a.dirtyRanges], r = { ...e.dirtyNameMap }, o = { ...e.dirtyDefinedNameMap }, u = { ...e.dirtyUnitFeatureMap }, m = { ...e.dirtyUnitOtherFormulaMap }, f = { ...e.clearDependencyTreeCache };
|
|
1366
1371
|
this._mergeDirtyNameMap(r, a.dirtyNameMap), this._mergeDirtyNameMap(o, a.dirtyDefinedNameMap), this._mergeDirtyUnitFeatureOrOtherFormulaMap(u, a.dirtyUnitFeatureMap), this._mergeDirtyUnitFeatureOrOtherFormulaMap(m, a.dirtyUnitOtherFormulaMap), this._mergeDirtyNameMap(f, a.clearDependencyTreeCache);
|
|
1367
|
-
const
|
|
1372
|
+
const l = e.maxIteration || a.maxIteration;
|
|
1368
1373
|
return {
|
|
1369
1374
|
dirtyRanges: i,
|
|
1370
1375
|
dirtyNameMap: r,
|
|
@@ -1373,7 +1378,7 @@ let Oe = class extends te {
|
|
|
1373
1378
|
dirtyUnitOtherFormulaMap: m,
|
|
1374
1379
|
forceCalculation: !!this._forceCalculating,
|
|
1375
1380
|
clearDependencyTreeCache: f,
|
|
1376
|
-
maxIteration:
|
|
1381
|
+
maxIteration: l
|
|
1377
1382
|
};
|
|
1378
1383
|
}
|
|
1379
1384
|
/**
|
|
@@ -1386,8 +1391,8 @@ let Oe = class extends te {
|
|
|
1386
1391
|
let r = !1;
|
|
1387
1392
|
for (const o of e)
|
|
1388
1393
|
if (i.unitId === o.unitId && i.sheetId === o.sheetId) {
|
|
1389
|
-
const { startRow: u, startColumn: m, endRow: f, endColumn:
|
|
1390
|
-
if (u === p && m ===
|
|
1394
|
+
const { startRow: u, startColumn: m, endRow: f, endColumn: l } = i.range, { startRow: p, startColumn: L, endRow: P, endColumn: E } = o.range;
|
|
1395
|
+
if (u === p && m === L && f === P && l === E) {
|
|
1391
1396
|
r = !0;
|
|
1392
1397
|
break;
|
|
1393
1398
|
}
|
|
@@ -1623,10 +1628,10 @@ let Qe = class extends te {
|
|
|
1623
1628
|
_handleWorkbookAdded(n) {
|
|
1624
1629
|
var f;
|
|
1625
1630
|
const e = {}, a = n.getUnitId(), i = { [a]: {} };
|
|
1626
|
-
n.getSheets().forEach((
|
|
1631
|
+
n.getSheets().forEach((l) => {
|
|
1627
1632
|
var E;
|
|
1628
|
-
const p =
|
|
1629
|
-
i[a][
|
|
1633
|
+
const p = l.getCellMatrix(), L = l.getSheetId(), P = zt(e, a, L, p);
|
|
1634
|
+
i[a][L] = (E = P[a]) == null ? void 0 : E[L];
|
|
1630
1635
|
}), this._commandService.executeCommand(he.id, { formulaData: i }, { onlyLocal: !0 });
|
|
1631
1636
|
const o = this._configService.getConfig(ot), u = (f = o == null ? void 0 : o.initialFormulaComputing) != null ? f : ne.WHEN_EMPTY, m = this._getDiryDataByCalculationMode(u);
|
|
1632
1637
|
this._commandService.executeCommand(Se.id, m, { onlyLocal: !0 });
|
|
@@ -1679,18 +1684,18 @@ let Qe = class extends te {
|
|
|
1679
1684
|
continue;
|
|
1680
1685
|
const f = Object.keys(m);
|
|
1681
1686
|
Ne.isDefine(r[u]) || (r[u] = {}), Ne.isDefine(o[u]) || (o[u] = {});
|
|
1682
|
-
for (const
|
|
1683
|
-
const p = new w(m[
|
|
1684
|
-
p.forValue((
|
|
1687
|
+
for (const l of f) {
|
|
1688
|
+
const p = new w(m[l] || {}), L = new w();
|
|
1689
|
+
p.forValue((P, E, I) => {
|
|
1685
1690
|
var U;
|
|
1686
1691
|
if (!I) return !0;
|
|
1687
|
-
const { f: S, x: c, y: N, si: R } = I,
|
|
1688
|
-
if (
|
|
1692
|
+
const { f: S, x: c, y: N, si: R } = I, d = this._lexerTreeBuilder.sequenceNodesBuilder(S);
|
|
1693
|
+
if (d == null)
|
|
1689
1694
|
return !0;
|
|
1690
1695
|
let O = !1;
|
|
1691
1696
|
const M = [];
|
|
1692
|
-
for (let g = 0, x =
|
|
1693
|
-
const h =
|
|
1697
|
+
for (let g = 0, x = d.length; g < x; g++) {
|
|
1698
|
+
const h = d[g];
|
|
1694
1699
|
if (typeof h == "string")
|
|
1695
1700
|
continue;
|
|
1696
1701
|
const { token: V, nodeType: k } = h, { type: b } = a;
|
|
@@ -1701,7 +1706,7 @@ let Qe = class extends te {
|
|
|
1701
1706
|
const fe = this._definedNamesService.getValueById(u, Pe);
|
|
1702
1707
|
if (fe == null || fe.name !== V)
|
|
1703
1708
|
continue;
|
|
1704
|
-
|
|
1709
|
+
d[g] = {
|
|
1705
1710
|
...h,
|
|
1706
1711
|
token: b === q.SetDefinedName ? Te : j.REF
|
|
1707
1712
|
}, O = !0, M.push(g);
|
|
@@ -1713,7 +1718,7 @@ let Qe = class extends te {
|
|
|
1713
1718
|
a.unitId,
|
|
1714
1719
|
a.sheetId,
|
|
1715
1720
|
u,
|
|
1716
|
-
|
|
1721
|
+
l,
|
|
1717
1722
|
Q,
|
|
1718
1723
|
z
|
|
1719
1724
|
))
|
|
@@ -1753,20 +1758,20 @@ let Qe = class extends te {
|
|
|
1753
1758
|
ye,
|
|
1754
1759
|
a,
|
|
1755
1760
|
u,
|
|
1756
|
-
|
|
1761
|
+
l
|
|
1757
1762
|
));
|
|
1758
|
-
ue != null && (
|
|
1763
|
+
ue != null && (d[g] = {
|
|
1759
1764
|
...h,
|
|
1760
1765
|
token: ue
|
|
1761
1766
|
}, O = !0, M.push(g));
|
|
1762
1767
|
}
|
|
1763
1768
|
if (!O)
|
|
1764
1769
|
return !0;
|
|
1765
|
-
const F = Ua(
|
|
1766
|
-
|
|
1770
|
+
const F = Ua(d, M, c, N);
|
|
1771
|
+
L.setValue(P, E, {
|
|
1767
1772
|
f: `=${Xe(F)}`
|
|
1768
1773
|
});
|
|
1769
|
-
}), o[u] && (o[u][
|
|
1774
|
+
}), o[u] && (o[u][l] = L.getData());
|
|
1770
1775
|
}
|
|
1771
1776
|
}
|
|
1772
1777
|
return { newFormulaData: o };
|
|
@@ -10853,7 +10858,7 @@ const Gi = [
|
|
|
10853
10858
|
}
|
|
10854
10859
|
], zi = [
|
|
10855
10860
|
{
|
|
10856
|
-
functionName:
|
|
10861
|
+
functionName: s.AVEDEV,
|
|
10857
10862
|
functionType: t.Statistical,
|
|
10858
10863
|
description: "formula.functionList.AVEDEV.description",
|
|
10859
10864
|
abstract: "formula.functionList.AVEDEV.abstract",
|
|
@@ -10875,7 +10880,7 @@ const Gi = [
|
|
|
10875
10880
|
]
|
|
10876
10881
|
},
|
|
10877
10882
|
{
|
|
10878
|
-
functionName:
|
|
10883
|
+
functionName: s.AVERAGE,
|
|
10879
10884
|
aliasFunctionName: "formula.functionList.AVERAGE.aliasFunctionName",
|
|
10880
10885
|
functionType: t.Statistical,
|
|
10881
10886
|
description: "formula.functionList.AVERAGE.description",
|
|
@@ -10898,7 +10903,7 @@ const Gi = [
|
|
|
10898
10903
|
]
|
|
10899
10904
|
},
|
|
10900
10905
|
{
|
|
10901
|
-
functionName:
|
|
10906
|
+
functionName: s.AVERAGE_WEIGHTED,
|
|
10902
10907
|
aliasFunctionName: "formula.functionList.AVERAGE_WEIGHTED.aliasFunctionName",
|
|
10903
10908
|
functionType: t.Statistical,
|
|
10904
10909
|
description: "formula.functionList.AVERAGE_WEIGHTED.description",
|
|
@@ -10935,7 +10940,7 @@ const Gi = [
|
|
|
10935
10940
|
]
|
|
10936
10941
|
},
|
|
10937
10942
|
{
|
|
10938
|
-
functionName:
|
|
10943
|
+
functionName: s.AVERAGEA,
|
|
10939
10944
|
functionType: t.Statistical,
|
|
10940
10945
|
description: "formula.functionList.AVERAGEA.description",
|
|
10941
10946
|
abstract: "formula.functionList.AVERAGEA.abstract",
|
|
@@ -10957,7 +10962,7 @@ const Gi = [
|
|
|
10957
10962
|
]
|
|
10958
10963
|
},
|
|
10959
10964
|
{
|
|
10960
|
-
functionName:
|
|
10965
|
+
functionName: s.AVERAGEIF,
|
|
10961
10966
|
functionType: t.Statistical,
|
|
10962
10967
|
description: "formula.functionList.AVERAGEIF.description",
|
|
10963
10968
|
abstract: "formula.functionList.AVERAGEIF.abstract",
|
|
@@ -10986,7 +10991,7 @@ const Gi = [
|
|
|
10986
10991
|
]
|
|
10987
10992
|
},
|
|
10988
10993
|
{
|
|
10989
|
-
functionName:
|
|
10994
|
+
functionName: s.AVERAGEIFS,
|
|
10990
10995
|
functionType: t.Statistical,
|
|
10991
10996
|
description: "formula.functionList.AVERAGEIFS.description",
|
|
10992
10997
|
abstract: "formula.functionList.AVERAGEIFS.abstract",
|
|
@@ -11029,7 +11034,7 @@ const Gi = [
|
|
|
11029
11034
|
]
|
|
11030
11035
|
},
|
|
11031
11036
|
{
|
|
11032
|
-
functionName:
|
|
11037
|
+
functionName: s.BETA_DIST,
|
|
11033
11038
|
functionType: t.Statistical,
|
|
11034
11039
|
description: "formula.functionList.BETA_DIST.description",
|
|
11035
11040
|
abstract: "formula.functionList.BETA_DIST.abstract",
|
|
@@ -11079,7 +11084,7 @@ const Gi = [
|
|
|
11079
11084
|
]
|
|
11080
11085
|
},
|
|
11081
11086
|
{
|
|
11082
|
-
functionName:
|
|
11087
|
+
functionName: s.BETA_INV,
|
|
11083
11088
|
functionType: t.Statistical,
|
|
11084
11089
|
description: "formula.functionList.BETA_INV.description",
|
|
11085
11090
|
abstract: "formula.functionList.BETA_INV.abstract",
|
|
@@ -11122,7 +11127,7 @@ const Gi = [
|
|
|
11122
11127
|
]
|
|
11123
11128
|
},
|
|
11124
11129
|
{
|
|
11125
|
-
functionName:
|
|
11130
|
+
functionName: s.BINOM_DIST,
|
|
11126
11131
|
functionType: t.Statistical,
|
|
11127
11132
|
description: "formula.functionList.BINOM_DIST.description",
|
|
11128
11133
|
abstract: "formula.functionList.BINOM_DIST.abstract",
|
|
@@ -11158,7 +11163,7 @@ const Gi = [
|
|
|
11158
11163
|
]
|
|
11159
11164
|
},
|
|
11160
11165
|
{
|
|
11161
|
-
functionName:
|
|
11166
|
+
functionName: s.BINOM_DIST_RANGE,
|
|
11162
11167
|
functionType: t.Statistical,
|
|
11163
11168
|
description: "formula.functionList.BINOM_DIST_RANGE.description",
|
|
11164
11169
|
abstract: "formula.functionList.BINOM_DIST_RANGE.abstract",
|
|
@@ -11194,7 +11199,7 @@ const Gi = [
|
|
|
11194
11199
|
]
|
|
11195
11200
|
},
|
|
11196
11201
|
{
|
|
11197
|
-
functionName:
|
|
11202
|
+
functionName: s.BINOM_INV,
|
|
11198
11203
|
functionType: t.Statistical,
|
|
11199
11204
|
description: "formula.functionList.BINOM_INV.description",
|
|
11200
11205
|
abstract: "formula.functionList.BINOM_INV.abstract",
|
|
@@ -11223,7 +11228,7 @@ const Gi = [
|
|
|
11223
11228
|
]
|
|
11224
11229
|
},
|
|
11225
11230
|
{
|
|
11226
|
-
functionName:
|
|
11231
|
+
functionName: s.CHISQ_DIST,
|
|
11227
11232
|
functionType: t.Statistical,
|
|
11228
11233
|
description: "formula.functionList.CHISQ_DIST.description",
|
|
11229
11234
|
abstract: "formula.functionList.CHISQ_DIST.abstract",
|
|
@@ -11252,7 +11257,7 @@ const Gi = [
|
|
|
11252
11257
|
]
|
|
11253
11258
|
},
|
|
11254
11259
|
{
|
|
11255
|
-
functionName:
|
|
11260
|
+
functionName: s.CHISQ_DIST_RT,
|
|
11256
11261
|
functionType: t.Statistical,
|
|
11257
11262
|
description: "formula.functionList.CHISQ_DIST_RT.description",
|
|
11258
11263
|
abstract: "formula.functionList.CHISQ_DIST_RT.abstract",
|
|
@@ -11274,7 +11279,7 @@ const Gi = [
|
|
|
11274
11279
|
]
|
|
11275
11280
|
},
|
|
11276
11281
|
{
|
|
11277
|
-
functionName:
|
|
11282
|
+
functionName: s.CHISQ_INV,
|
|
11278
11283
|
functionType: t.Statistical,
|
|
11279
11284
|
description: "formula.functionList.CHISQ_INV.description",
|
|
11280
11285
|
abstract: "formula.functionList.CHISQ_INV.abstract",
|
|
@@ -11296,7 +11301,7 @@ const Gi = [
|
|
|
11296
11301
|
]
|
|
11297
11302
|
},
|
|
11298
11303
|
{
|
|
11299
|
-
functionName:
|
|
11304
|
+
functionName: s.CHISQ_INV_RT,
|
|
11300
11305
|
functionType: t.Statistical,
|
|
11301
11306
|
description: "formula.functionList.CHISQ_INV_RT.description",
|
|
11302
11307
|
abstract: "formula.functionList.CHISQ_INV_RT.abstract",
|
|
@@ -11318,7 +11323,7 @@ const Gi = [
|
|
|
11318
11323
|
]
|
|
11319
11324
|
},
|
|
11320
11325
|
{
|
|
11321
|
-
functionName:
|
|
11326
|
+
functionName: s.CHISQ_TEST,
|
|
11322
11327
|
functionType: t.Statistical,
|
|
11323
11328
|
description: "formula.functionList.CHISQ_TEST.description",
|
|
11324
11329
|
abstract: "formula.functionList.CHISQ_TEST.abstract",
|
|
@@ -11340,7 +11345,7 @@ const Gi = [
|
|
|
11340
11345
|
]
|
|
11341
11346
|
},
|
|
11342
11347
|
{
|
|
11343
|
-
functionName:
|
|
11348
|
+
functionName: s.CONFIDENCE_NORM,
|
|
11344
11349
|
functionType: t.Statistical,
|
|
11345
11350
|
description: "formula.functionList.CONFIDENCE_NORM.description",
|
|
11346
11351
|
abstract: "formula.functionList.CONFIDENCE_NORM.abstract",
|
|
@@ -11369,7 +11374,7 @@ const Gi = [
|
|
|
11369
11374
|
]
|
|
11370
11375
|
},
|
|
11371
11376
|
{
|
|
11372
|
-
functionName:
|
|
11377
|
+
functionName: s.CONFIDENCE_T,
|
|
11373
11378
|
functionType: t.Statistical,
|
|
11374
11379
|
description: "formula.functionList.CONFIDENCE_T.description",
|
|
11375
11380
|
abstract: "formula.functionList.CONFIDENCE_T.abstract",
|
|
@@ -11398,7 +11403,7 @@ const Gi = [
|
|
|
11398
11403
|
]
|
|
11399
11404
|
},
|
|
11400
11405
|
{
|
|
11401
|
-
functionName:
|
|
11406
|
+
functionName: s.CORREL,
|
|
11402
11407
|
functionType: t.Statistical,
|
|
11403
11408
|
description: "formula.functionList.CORREL.description",
|
|
11404
11409
|
abstract: "formula.functionList.CORREL.abstract",
|
|
@@ -11420,7 +11425,7 @@ const Gi = [
|
|
|
11420
11425
|
]
|
|
11421
11426
|
},
|
|
11422
11427
|
{
|
|
11423
|
-
functionName:
|
|
11428
|
+
functionName: s.COUNT,
|
|
11424
11429
|
aliasFunctionName: "formula.functionList.COUNT.aliasFunctionName",
|
|
11425
11430
|
functionType: t.Statistical,
|
|
11426
11431
|
description: "formula.functionList.COUNT.description",
|
|
@@ -11443,7 +11448,7 @@ const Gi = [
|
|
|
11443
11448
|
]
|
|
11444
11449
|
},
|
|
11445
11450
|
{
|
|
11446
|
-
functionName:
|
|
11451
|
+
functionName: s.COUNTA,
|
|
11447
11452
|
aliasFunctionName: "formula.functionList.COUNTA.aliasFunctionName",
|
|
11448
11453
|
functionType: t.Statistical,
|
|
11449
11454
|
description: "formula.functionList.COUNTA.description",
|
|
@@ -11466,7 +11471,7 @@ const Gi = [
|
|
|
11466
11471
|
]
|
|
11467
11472
|
},
|
|
11468
11473
|
{
|
|
11469
|
-
functionName:
|
|
11474
|
+
functionName: s.COUNTBLANK,
|
|
11470
11475
|
functionType: t.Statistical,
|
|
11471
11476
|
description: "formula.functionList.COUNTBLANK.description",
|
|
11472
11477
|
abstract: "formula.functionList.COUNTBLANK.abstract",
|
|
@@ -11481,7 +11486,7 @@ const Gi = [
|
|
|
11481
11486
|
]
|
|
11482
11487
|
},
|
|
11483
11488
|
{
|
|
11484
|
-
functionName:
|
|
11489
|
+
functionName: s.COUNTIF,
|
|
11485
11490
|
functionType: t.Statistical,
|
|
11486
11491
|
description: "formula.functionList.COUNTIF.description",
|
|
11487
11492
|
abstract: "formula.functionList.COUNTIF.abstract",
|
|
@@ -11503,7 +11508,7 @@ const Gi = [
|
|
|
11503
11508
|
]
|
|
11504
11509
|
},
|
|
11505
11510
|
{
|
|
11506
|
-
functionName:
|
|
11511
|
+
functionName: s.COUNTIFS,
|
|
11507
11512
|
functionType: t.Statistical,
|
|
11508
11513
|
description: "formula.functionList.COUNTIFS.description",
|
|
11509
11514
|
abstract: "formula.functionList.COUNTIFS.abstract",
|
|
@@ -11539,7 +11544,7 @@ const Gi = [
|
|
|
11539
11544
|
]
|
|
11540
11545
|
},
|
|
11541
11546
|
{
|
|
11542
|
-
functionName:
|
|
11547
|
+
functionName: s.COVARIANCE_P,
|
|
11543
11548
|
functionType: t.Statistical,
|
|
11544
11549
|
description: "formula.functionList.COVARIANCE_P.description",
|
|
11545
11550
|
abstract: "formula.functionList.COVARIANCE_P.abstract",
|
|
@@ -11561,7 +11566,7 @@ const Gi = [
|
|
|
11561
11566
|
]
|
|
11562
11567
|
},
|
|
11563
11568
|
{
|
|
11564
|
-
functionName:
|
|
11569
|
+
functionName: s.COVARIANCE_S,
|
|
11565
11570
|
functionType: t.Statistical,
|
|
11566
11571
|
description: "formula.functionList.COVARIANCE_S.description",
|
|
11567
11572
|
abstract: "formula.functionList.COVARIANCE_S.abstract",
|
|
@@ -11583,7 +11588,7 @@ const Gi = [
|
|
|
11583
11588
|
]
|
|
11584
11589
|
},
|
|
11585
11590
|
{
|
|
11586
|
-
functionName:
|
|
11591
|
+
functionName: s.DEVSQ,
|
|
11587
11592
|
functionType: t.Statistical,
|
|
11588
11593
|
description: "formula.functionList.DEVSQ.description",
|
|
11589
11594
|
abstract: "formula.functionList.DEVSQ.abstract",
|
|
@@ -11605,7 +11610,7 @@ const Gi = [
|
|
|
11605
11610
|
]
|
|
11606
11611
|
},
|
|
11607
11612
|
{
|
|
11608
|
-
functionName:
|
|
11613
|
+
functionName: s.EXPON_DIST,
|
|
11609
11614
|
functionType: t.Statistical,
|
|
11610
11615
|
description: "formula.functionList.EXPON_DIST.description",
|
|
11611
11616
|
abstract: "formula.functionList.EXPON_DIST.abstract",
|
|
@@ -11634,7 +11639,7 @@ const Gi = [
|
|
|
11634
11639
|
]
|
|
11635
11640
|
},
|
|
11636
11641
|
{
|
|
11637
|
-
functionName:
|
|
11642
|
+
functionName: s.F_DIST,
|
|
11638
11643
|
functionType: t.Statistical,
|
|
11639
11644
|
description: "formula.functionList.F_DIST.description",
|
|
11640
11645
|
abstract: "formula.functionList.F_DIST.abstract",
|
|
@@ -11670,7 +11675,7 @@ const Gi = [
|
|
|
11670
11675
|
]
|
|
11671
11676
|
},
|
|
11672
11677
|
{
|
|
11673
|
-
functionName:
|
|
11678
|
+
functionName: s.F_DIST_RT,
|
|
11674
11679
|
functionType: t.Statistical,
|
|
11675
11680
|
description: "formula.functionList.F_DIST_RT.description",
|
|
11676
11681
|
abstract: "formula.functionList.F_DIST_RT.abstract",
|
|
@@ -11699,7 +11704,7 @@ const Gi = [
|
|
|
11699
11704
|
]
|
|
11700
11705
|
},
|
|
11701
11706
|
{
|
|
11702
|
-
functionName:
|
|
11707
|
+
functionName: s.F_INV,
|
|
11703
11708
|
functionType: t.Statistical,
|
|
11704
11709
|
description: "formula.functionList.F_INV.description",
|
|
11705
11710
|
abstract: "formula.functionList.F_INV.abstract",
|
|
@@ -11728,7 +11733,7 @@ const Gi = [
|
|
|
11728
11733
|
]
|
|
11729
11734
|
},
|
|
11730
11735
|
{
|
|
11731
|
-
functionName:
|
|
11736
|
+
functionName: s.F_INV_RT,
|
|
11732
11737
|
functionType: t.Statistical,
|
|
11733
11738
|
description: "formula.functionList.F_INV_RT.description",
|
|
11734
11739
|
abstract: "formula.functionList.F_INV_RT.abstract",
|
|
@@ -11757,7 +11762,7 @@ const Gi = [
|
|
|
11757
11762
|
]
|
|
11758
11763
|
},
|
|
11759
11764
|
{
|
|
11760
|
-
functionName:
|
|
11765
|
+
functionName: s.F_TEST,
|
|
11761
11766
|
functionType: t.Statistical,
|
|
11762
11767
|
description: "formula.functionList.F_TEST.description",
|
|
11763
11768
|
abstract: "formula.functionList.F_TEST.abstract",
|
|
@@ -11779,7 +11784,7 @@ const Gi = [
|
|
|
11779
11784
|
]
|
|
11780
11785
|
},
|
|
11781
11786
|
{
|
|
11782
|
-
functionName:
|
|
11787
|
+
functionName: s.FISHER,
|
|
11783
11788
|
functionType: t.Statistical,
|
|
11784
11789
|
description: "formula.functionList.FISHER.description",
|
|
11785
11790
|
abstract: "formula.functionList.FISHER.abstract",
|
|
@@ -11794,7 +11799,7 @@ const Gi = [
|
|
|
11794
11799
|
]
|
|
11795
11800
|
},
|
|
11796
11801
|
{
|
|
11797
|
-
functionName:
|
|
11802
|
+
functionName: s.FISHERINV,
|
|
11798
11803
|
functionType: t.Statistical,
|
|
11799
11804
|
description: "formula.functionList.FISHERINV.description",
|
|
11800
11805
|
abstract: "formula.functionList.FISHERINV.abstract",
|
|
@@ -11809,7 +11814,7 @@ const Gi = [
|
|
|
11809
11814
|
]
|
|
11810
11815
|
},
|
|
11811
11816
|
{
|
|
11812
|
-
functionName:
|
|
11817
|
+
functionName: s.FORECAST,
|
|
11813
11818
|
functionType: t.Statistical,
|
|
11814
11819
|
description: "formula.functionList.FORECAST.description",
|
|
11815
11820
|
abstract: "formula.functionList.FORECAST.abstract",
|
|
@@ -11838,7 +11843,7 @@ const Gi = [
|
|
|
11838
11843
|
]
|
|
11839
11844
|
},
|
|
11840
11845
|
{
|
|
11841
|
-
functionName:
|
|
11846
|
+
functionName: s.FORECAST_ETS,
|
|
11842
11847
|
functionType: t.Statistical,
|
|
11843
11848
|
description: "formula.functionList.FORECAST_ETS.description",
|
|
11844
11849
|
abstract: "formula.functionList.FORECAST_ETS.abstract",
|
|
@@ -11860,7 +11865,7 @@ const Gi = [
|
|
|
11860
11865
|
]
|
|
11861
11866
|
},
|
|
11862
11867
|
{
|
|
11863
|
-
functionName:
|
|
11868
|
+
functionName: s.FORECAST_ETS_CONFINT,
|
|
11864
11869
|
functionType: t.Statistical,
|
|
11865
11870
|
description: "formula.functionList.FORECAST_ETS_CONFINT.description",
|
|
11866
11871
|
abstract: "formula.functionList.FORECAST_ETS_CONFINT.abstract",
|
|
@@ -11882,7 +11887,7 @@ const Gi = [
|
|
|
11882
11887
|
]
|
|
11883
11888
|
},
|
|
11884
11889
|
{
|
|
11885
|
-
functionName:
|
|
11890
|
+
functionName: s.FORECAST_ETS_SEASONALITY,
|
|
11886
11891
|
functionType: t.Statistical,
|
|
11887
11892
|
description: "formula.functionList.FORECAST_ETS_SEASONALITY.description",
|
|
11888
11893
|
abstract: "formula.functionList.FORECAST_ETS_SEASONALITY.abstract",
|
|
@@ -11904,7 +11909,7 @@ const Gi = [
|
|
|
11904
11909
|
]
|
|
11905
11910
|
},
|
|
11906
11911
|
{
|
|
11907
|
-
functionName:
|
|
11912
|
+
functionName: s.FORECAST_ETS_STAT,
|
|
11908
11913
|
functionType: t.Statistical,
|
|
11909
11914
|
description: "formula.functionList.FORECAST_ETS_STAT.description",
|
|
11910
11915
|
abstract: "formula.functionList.FORECAST_ETS_STAT.abstract",
|
|
@@ -11926,7 +11931,7 @@ const Gi = [
|
|
|
11926
11931
|
]
|
|
11927
11932
|
},
|
|
11928
11933
|
{
|
|
11929
|
-
functionName:
|
|
11934
|
+
functionName: s.FORECAST_LINEAR,
|
|
11930
11935
|
functionType: t.Statistical,
|
|
11931
11936
|
description: "formula.functionList.FORECAST_LINEAR.description",
|
|
11932
11937
|
abstract: "formula.functionList.FORECAST_LINEAR.abstract",
|
|
@@ -11955,7 +11960,7 @@ const Gi = [
|
|
|
11955
11960
|
]
|
|
11956
11961
|
},
|
|
11957
11962
|
{
|
|
11958
|
-
functionName:
|
|
11963
|
+
functionName: s.FREQUENCY,
|
|
11959
11964
|
functionType: t.Statistical,
|
|
11960
11965
|
description: "formula.functionList.FREQUENCY.description",
|
|
11961
11966
|
abstract: "formula.functionList.FREQUENCY.abstract",
|
|
@@ -11977,7 +11982,7 @@ const Gi = [
|
|
|
11977
11982
|
]
|
|
11978
11983
|
},
|
|
11979
11984
|
{
|
|
11980
|
-
functionName:
|
|
11985
|
+
functionName: s.GAMMA,
|
|
11981
11986
|
functionType: t.Statistical,
|
|
11982
11987
|
description: "formula.functionList.GAMMA.description",
|
|
11983
11988
|
abstract: "formula.functionList.GAMMA.abstract",
|
|
@@ -11992,7 +11997,7 @@ const Gi = [
|
|
|
11992
11997
|
]
|
|
11993
11998
|
},
|
|
11994
11999
|
{
|
|
11995
|
-
functionName:
|
|
12000
|
+
functionName: s.GAMMA_DIST,
|
|
11996
12001
|
functionType: t.Statistical,
|
|
11997
12002
|
description: "formula.functionList.GAMMA_DIST.description",
|
|
11998
12003
|
abstract: "formula.functionList.GAMMA_DIST.abstract",
|
|
@@ -12028,7 +12033,7 @@ const Gi = [
|
|
|
12028
12033
|
]
|
|
12029
12034
|
},
|
|
12030
12035
|
{
|
|
12031
|
-
functionName:
|
|
12036
|
+
functionName: s.GAMMA_INV,
|
|
12032
12037
|
functionType: t.Statistical,
|
|
12033
12038
|
description: "formula.functionList.GAMMA_INV.description",
|
|
12034
12039
|
abstract: "formula.functionList.GAMMA_INV.abstract",
|
|
@@ -12057,7 +12062,7 @@ const Gi = [
|
|
|
12057
12062
|
]
|
|
12058
12063
|
},
|
|
12059
12064
|
{
|
|
12060
|
-
functionName:
|
|
12065
|
+
functionName: s.GAMMALN,
|
|
12061
12066
|
functionType: t.Statistical,
|
|
12062
12067
|
description: "formula.functionList.GAMMALN.description",
|
|
12063
12068
|
abstract: "formula.functionList.GAMMALN.abstract",
|
|
@@ -12072,7 +12077,7 @@ const Gi = [
|
|
|
12072
12077
|
]
|
|
12073
12078
|
},
|
|
12074
12079
|
{
|
|
12075
|
-
functionName:
|
|
12080
|
+
functionName: s.GAMMALN_PRECISE,
|
|
12076
12081
|
functionType: t.Statistical,
|
|
12077
12082
|
description: "formula.functionList.GAMMALN_PRECISE.description",
|
|
12078
12083
|
abstract: "formula.functionList.GAMMALN_PRECISE.abstract",
|
|
@@ -12087,7 +12092,7 @@ const Gi = [
|
|
|
12087
12092
|
]
|
|
12088
12093
|
},
|
|
12089
12094
|
{
|
|
12090
|
-
functionName:
|
|
12095
|
+
functionName: s.GAUSS,
|
|
12091
12096
|
functionType: t.Statistical,
|
|
12092
12097
|
description: "formula.functionList.GAUSS.description",
|
|
12093
12098
|
abstract: "formula.functionList.GAUSS.abstract",
|
|
@@ -12102,7 +12107,7 @@ const Gi = [
|
|
|
12102
12107
|
]
|
|
12103
12108
|
},
|
|
12104
12109
|
{
|
|
12105
|
-
functionName:
|
|
12110
|
+
functionName: s.GEOMEAN,
|
|
12106
12111
|
functionType: t.Statistical,
|
|
12107
12112
|
description: "formula.functionList.GEOMEAN.description",
|
|
12108
12113
|
abstract: "formula.functionList.GEOMEAN.abstract",
|
|
@@ -12124,7 +12129,7 @@ const Gi = [
|
|
|
12124
12129
|
]
|
|
12125
12130
|
},
|
|
12126
12131
|
{
|
|
12127
|
-
functionName:
|
|
12132
|
+
functionName: s.GROWTH,
|
|
12128
12133
|
functionType: t.Statistical,
|
|
12129
12134
|
description: "formula.functionList.GROWTH.description",
|
|
12130
12135
|
abstract: "formula.functionList.GROWTH.abstract",
|
|
@@ -12160,7 +12165,7 @@ const Gi = [
|
|
|
12160
12165
|
]
|
|
12161
12166
|
},
|
|
12162
12167
|
{
|
|
12163
|
-
functionName:
|
|
12168
|
+
functionName: s.HARMEAN,
|
|
12164
12169
|
functionType: t.Statistical,
|
|
12165
12170
|
description: "formula.functionList.HARMEAN.description",
|
|
12166
12171
|
abstract: "formula.functionList.HARMEAN.abstract",
|
|
@@ -12182,7 +12187,7 @@ const Gi = [
|
|
|
12182
12187
|
]
|
|
12183
12188
|
},
|
|
12184
12189
|
{
|
|
12185
|
-
functionName:
|
|
12190
|
+
functionName: s.HYPGEOM_DIST,
|
|
12186
12191
|
functionType: t.Statistical,
|
|
12187
12192
|
description: "formula.functionList.HYPGEOM_DIST.description",
|
|
12188
12193
|
abstract: "formula.functionList.HYPGEOM_DIST.abstract",
|
|
@@ -12225,7 +12230,7 @@ const Gi = [
|
|
|
12225
12230
|
]
|
|
12226
12231
|
},
|
|
12227
12232
|
{
|
|
12228
|
-
functionName:
|
|
12233
|
+
functionName: s.INTERCEPT,
|
|
12229
12234
|
functionType: t.Statistical,
|
|
12230
12235
|
description: "formula.functionList.INTERCEPT.description",
|
|
12231
12236
|
abstract: "formula.functionList.INTERCEPT.abstract",
|
|
@@ -12247,7 +12252,7 @@ const Gi = [
|
|
|
12247
12252
|
]
|
|
12248
12253
|
},
|
|
12249
12254
|
{
|
|
12250
|
-
functionName:
|
|
12255
|
+
functionName: s.KURT,
|
|
12251
12256
|
functionType: t.Statistical,
|
|
12252
12257
|
description: "formula.functionList.KURT.description",
|
|
12253
12258
|
abstract: "formula.functionList.KURT.abstract",
|
|
@@ -12269,7 +12274,7 @@ const Gi = [
|
|
|
12269
12274
|
]
|
|
12270
12275
|
},
|
|
12271
12276
|
{
|
|
12272
|
-
functionName:
|
|
12277
|
+
functionName: s.LARGE,
|
|
12273
12278
|
functionType: t.Statistical,
|
|
12274
12279
|
description: "formula.functionList.LARGE.description",
|
|
12275
12280
|
abstract: "formula.functionList.LARGE.abstract",
|
|
@@ -12291,7 +12296,7 @@ const Gi = [
|
|
|
12291
12296
|
]
|
|
12292
12297
|
},
|
|
12293
12298
|
{
|
|
12294
|
-
functionName:
|
|
12299
|
+
functionName: s.LINEST,
|
|
12295
12300
|
functionType: t.Statistical,
|
|
12296
12301
|
description: "formula.functionList.LINEST.description",
|
|
12297
12302
|
abstract: "formula.functionList.LINEST.abstract",
|
|
@@ -12327,7 +12332,7 @@ const Gi = [
|
|
|
12327
12332
|
]
|
|
12328
12333
|
},
|
|
12329
12334
|
{
|
|
12330
|
-
functionName:
|
|
12335
|
+
functionName: s.LOGEST,
|
|
12331
12336
|
functionType: t.Statistical,
|
|
12332
12337
|
description: "formula.functionList.LOGEST.description",
|
|
12333
12338
|
abstract: "formula.functionList.LOGEST.abstract",
|
|
@@ -12363,7 +12368,7 @@ const Gi = [
|
|
|
12363
12368
|
]
|
|
12364
12369
|
},
|
|
12365
12370
|
{
|
|
12366
|
-
functionName:
|
|
12371
|
+
functionName: s.LOGNORM_DIST,
|
|
12367
12372
|
functionType: t.Statistical,
|
|
12368
12373
|
description: "formula.functionList.LOGNORM_DIST.description",
|
|
12369
12374
|
abstract: "formula.functionList.LOGNORM_DIST.abstract",
|
|
@@ -12399,7 +12404,7 @@ const Gi = [
|
|
|
12399
12404
|
]
|
|
12400
12405
|
},
|
|
12401
12406
|
{
|
|
12402
|
-
functionName:
|
|
12407
|
+
functionName: s.LOGNORM_INV,
|
|
12403
12408
|
functionType: t.Statistical,
|
|
12404
12409
|
description: "formula.functionList.LOGNORM_INV.description",
|
|
12405
12410
|
abstract: "formula.functionList.LOGNORM_INV.abstract",
|
|
@@ -12428,7 +12433,7 @@ const Gi = [
|
|
|
12428
12433
|
]
|
|
12429
12434
|
},
|
|
12430
12435
|
{
|
|
12431
|
-
functionName:
|
|
12436
|
+
functionName: s.MARGINOFERROR,
|
|
12432
12437
|
aliasFunctionName: "formula.functionList.MARGINOFERROR.aliasFunctionName",
|
|
12433
12438
|
functionType: t.Statistical,
|
|
12434
12439
|
description: "formula.functionList.MARGINOFERROR.description",
|
|
@@ -12451,7 +12456,7 @@ const Gi = [
|
|
|
12451
12456
|
]
|
|
12452
12457
|
},
|
|
12453
12458
|
{
|
|
12454
|
-
functionName:
|
|
12459
|
+
functionName: s.MAX,
|
|
12455
12460
|
aliasFunctionName: "formula.functionList.MAX.aliasFunctionName",
|
|
12456
12461
|
functionType: t.Statistical,
|
|
12457
12462
|
description: "formula.functionList.MAX.description",
|
|
@@ -12474,7 +12479,7 @@ const Gi = [
|
|
|
12474
12479
|
]
|
|
12475
12480
|
},
|
|
12476
12481
|
{
|
|
12477
|
-
functionName:
|
|
12482
|
+
functionName: s.MAXA,
|
|
12478
12483
|
functionType: t.Statistical,
|
|
12479
12484
|
description: "formula.functionList.MAXA.description",
|
|
12480
12485
|
abstract: "formula.functionList.MAXA.abstract",
|
|
@@ -12496,7 +12501,7 @@ const Gi = [
|
|
|
12496
12501
|
]
|
|
12497
12502
|
},
|
|
12498
12503
|
{
|
|
12499
|
-
functionName:
|
|
12504
|
+
functionName: s.MAXIFS,
|
|
12500
12505
|
functionType: t.Statistical,
|
|
12501
12506
|
description: "formula.functionList.MAXIFS.description",
|
|
12502
12507
|
abstract: "formula.functionList.MAXIFS.abstract",
|
|
@@ -12539,7 +12544,7 @@ const Gi = [
|
|
|
12539
12544
|
]
|
|
12540
12545
|
},
|
|
12541
12546
|
{
|
|
12542
|
-
functionName:
|
|
12547
|
+
functionName: s.MEDIAN,
|
|
12543
12548
|
functionType: t.Statistical,
|
|
12544
12549
|
description: "formula.functionList.MEDIAN.description",
|
|
12545
12550
|
abstract: "formula.functionList.MEDIAN.abstract",
|
|
@@ -12561,7 +12566,7 @@ const Gi = [
|
|
|
12561
12566
|
]
|
|
12562
12567
|
},
|
|
12563
12568
|
{
|
|
12564
|
-
functionName:
|
|
12569
|
+
functionName: s.MIN,
|
|
12565
12570
|
aliasFunctionName: "formula.functionList.MIN.aliasFunctionName",
|
|
12566
12571
|
functionType: t.Statistical,
|
|
12567
12572
|
description: "formula.functionList.MIN.description",
|
|
@@ -12584,7 +12589,7 @@ const Gi = [
|
|
|
12584
12589
|
]
|
|
12585
12590
|
},
|
|
12586
12591
|
{
|
|
12587
|
-
functionName:
|
|
12592
|
+
functionName: s.MINA,
|
|
12588
12593
|
functionType: t.Statistical,
|
|
12589
12594
|
description: "formula.functionList.MINA.description",
|
|
12590
12595
|
abstract: "formula.functionList.MINA.abstract",
|
|
@@ -12606,7 +12611,7 @@ const Gi = [
|
|
|
12606
12611
|
]
|
|
12607
12612
|
},
|
|
12608
12613
|
{
|
|
12609
|
-
functionName:
|
|
12614
|
+
functionName: s.MINIFS,
|
|
12610
12615
|
functionType: t.Statistical,
|
|
12611
12616
|
description: "formula.functionList.MINIFS.description",
|
|
12612
12617
|
abstract: "formula.functionList.MINIFS.abstract",
|
|
@@ -12649,7 +12654,7 @@ const Gi = [
|
|
|
12649
12654
|
]
|
|
12650
12655
|
},
|
|
12651
12656
|
{
|
|
12652
|
-
functionName:
|
|
12657
|
+
functionName: s.MODE_MULT,
|
|
12653
12658
|
functionType: t.Statistical,
|
|
12654
12659
|
description: "formula.functionList.MODE_MULT.description",
|
|
12655
12660
|
abstract: "formula.functionList.MODE_MULT.abstract",
|
|
@@ -12671,7 +12676,7 @@ const Gi = [
|
|
|
12671
12676
|
]
|
|
12672
12677
|
},
|
|
12673
12678
|
{
|
|
12674
|
-
functionName:
|
|
12679
|
+
functionName: s.MODE_SNGL,
|
|
12675
12680
|
functionType: t.Statistical,
|
|
12676
12681
|
description: "formula.functionList.MODE_SNGL.description",
|
|
12677
12682
|
abstract: "formula.functionList.MODE_SNGL.abstract",
|
|
@@ -12693,7 +12698,7 @@ const Gi = [
|
|
|
12693
12698
|
]
|
|
12694
12699
|
},
|
|
12695
12700
|
{
|
|
12696
|
-
functionName:
|
|
12701
|
+
functionName: s.NEGBINOM_DIST,
|
|
12697
12702
|
functionType: t.Statistical,
|
|
12698
12703
|
description: "formula.functionList.NEGBINOM_DIST.description",
|
|
12699
12704
|
abstract: "formula.functionList.NEGBINOM_DIST.abstract",
|
|
@@ -12729,7 +12734,7 @@ const Gi = [
|
|
|
12729
12734
|
]
|
|
12730
12735
|
},
|
|
12731
12736
|
{
|
|
12732
|
-
functionName:
|
|
12737
|
+
functionName: s.NORM_DIST,
|
|
12733
12738
|
functionType: t.Statistical,
|
|
12734
12739
|
description: "formula.functionList.NORM_DIST.description",
|
|
12735
12740
|
abstract: "formula.functionList.NORM_DIST.abstract",
|
|
@@ -12765,7 +12770,7 @@ const Gi = [
|
|
|
12765
12770
|
]
|
|
12766
12771
|
},
|
|
12767
12772
|
{
|
|
12768
|
-
functionName:
|
|
12773
|
+
functionName: s.NORM_INV,
|
|
12769
12774
|
functionType: t.Statistical,
|
|
12770
12775
|
description: "formula.functionList.NORM_INV.description",
|
|
12771
12776
|
abstract: "formula.functionList.NORM_INV.abstract",
|
|
@@ -12794,7 +12799,7 @@ const Gi = [
|
|
|
12794
12799
|
]
|
|
12795
12800
|
},
|
|
12796
12801
|
{
|
|
12797
|
-
functionName:
|
|
12802
|
+
functionName: s.NORM_S_DIST,
|
|
12798
12803
|
functionType: t.Statistical,
|
|
12799
12804
|
description: "formula.functionList.NORM_S_DIST.description",
|
|
12800
12805
|
abstract: "formula.functionList.NORM_S_DIST.abstract",
|
|
@@ -12816,7 +12821,7 @@ const Gi = [
|
|
|
12816
12821
|
]
|
|
12817
12822
|
},
|
|
12818
12823
|
{
|
|
12819
|
-
functionName:
|
|
12824
|
+
functionName: s.NORM_S_INV,
|
|
12820
12825
|
functionType: t.Statistical,
|
|
12821
12826
|
description: "formula.functionList.NORM_S_INV.description",
|
|
12822
12827
|
abstract: "formula.functionList.NORM_S_INV.abstract",
|
|
@@ -12831,7 +12836,7 @@ const Gi = [
|
|
|
12831
12836
|
]
|
|
12832
12837
|
},
|
|
12833
12838
|
{
|
|
12834
|
-
functionName:
|
|
12839
|
+
functionName: s.PEARSON,
|
|
12835
12840
|
functionType: t.Statistical,
|
|
12836
12841
|
description: "formula.functionList.PEARSON.description",
|
|
12837
12842
|
abstract: "formula.functionList.PEARSON.abstract",
|
|
@@ -12853,7 +12858,7 @@ const Gi = [
|
|
|
12853
12858
|
]
|
|
12854
12859
|
},
|
|
12855
12860
|
{
|
|
12856
|
-
functionName:
|
|
12861
|
+
functionName: s.PERCENTILE_EXC,
|
|
12857
12862
|
functionType: t.Statistical,
|
|
12858
12863
|
description: "formula.functionList.PERCENTILE_EXC.description",
|
|
12859
12864
|
abstract: "formula.functionList.PERCENTILE_EXC.abstract",
|
|
@@ -12875,7 +12880,7 @@ const Gi = [
|
|
|
12875
12880
|
]
|
|
12876
12881
|
},
|
|
12877
12882
|
{
|
|
12878
|
-
functionName:
|
|
12883
|
+
functionName: s.PERCENTILE_INC,
|
|
12879
12884
|
functionType: t.Statistical,
|
|
12880
12885
|
description: "formula.functionList.PERCENTILE_INC.description",
|
|
12881
12886
|
abstract: "formula.functionList.PERCENTILE_INC.abstract",
|
|
@@ -12897,7 +12902,7 @@ const Gi = [
|
|
|
12897
12902
|
]
|
|
12898
12903
|
},
|
|
12899
12904
|
{
|
|
12900
|
-
functionName:
|
|
12905
|
+
functionName: s.PERCENTRANK_EXC,
|
|
12901
12906
|
functionType: t.Statistical,
|
|
12902
12907
|
description: "formula.functionList.PERCENTRANK_EXC.description",
|
|
12903
12908
|
abstract: "formula.functionList.PERCENTRANK_EXC.abstract",
|
|
@@ -12926,7 +12931,7 @@ const Gi = [
|
|
|
12926
12931
|
]
|
|
12927
12932
|
},
|
|
12928
12933
|
{
|
|
12929
|
-
functionName:
|
|
12934
|
+
functionName: s.PERCENTRANK_INC,
|
|
12930
12935
|
functionType: t.Statistical,
|
|
12931
12936
|
description: "formula.functionList.PERCENTRANK_INC.description",
|
|
12932
12937
|
abstract: "formula.functionList.PERCENTRANK_INC.abstract",
|
|
@@ -12955,7 +12960,7 @@ const Gi = [
|
|
|
12955
12960
|
]
|
|
12956
12961
|
},
|
|
12957
12962
|
{
|
|
12958
|
-
functionName:
|
|
12963
|
+
functionName: s.PERMUT,
|
|
12959
12964
|
functionType: t.Statistical,
|
|
12960
12965
|
description: "formula.functionList.PERMUT.description",
|
|
12961
12966
|
abstract: "formula.functionList.PERMUT.abstract",
|
|
@@ -12977,7 +12982,7 @@ const Gi = [
|
|
|
12977
12982
|
]
|
|
12978
12983
|
},
|
|
12979
12984
|
{
|
|
12980
|
-
functionName:
|
|
12985
|
+
functionName: s.PERMUTATIONA,
|
|
12981
12986
|
functionType: t.Statistical,
|
|
12982
12987
|
description: "formula.functionList.PERMUTATIONA.description",
|
|
12983
12988
|
abstract: "formula.functionList.PERMUTATIONA.abstract",
|
|
@@ -12999,7 +13004,7 @@ const Gi = [
|
|
|
12999
13004
|
]
|
|
13000
13005
|
},
|
|
13001
13006
|
{
|
|
13002
|
-
functionName:
|
|
13007
|
+
functionName: s.PHI,
|
|
13003
13008
|
functionType: t.Statistical,
|
|
13004
13009
|
description: "formula.functionList.PHI.description",
|
|
13005
13010
|
abstract: "formula.functionList.PHI.abstract",
|
|
@@ -13014,7 +13019,7 @@ const Gi = [
|
|
|
13014
13019
|
]
|
|
13015
13020
|
},
|
|
13016
13021
|
{
|
|
13017
|
-
functionName:
|
|
13022
|
+
functionName: s.POISSON_DIST,
|
|
13018
13023
|
functionType: t.Statistical,
|
|
13019
13024
|
description: "formula.functionList.POISSON_DIST.description",
|
|
13020
13025
|
abstract: "formula.functionList.POISSON_DIST.abstract",
|
|
@@ -13043,7 +13048,7 @@ const Gi = [
|
|
|
13043
13048
|
]
|
|
13044
13049
|
},
|
|
13045
13050
|
{
|
|
13046
|
-
functionName:
|
|
13051
|
+
functionName: s.PROB,
|
|
13047
13052
|
functionType: t.Statistical,
|
|
13048
13053
|
description: "formula.functionList.PROB.description",
|
|
13049
13054
|
abstract: "formula.functionList.PROB.abstract",
|
|
@@ -13079,7 +13084,7 @@ const Gi = [
|
|
|
13079
13084
|
]
|
|
13080
13085
|
},
|
|
13081
13086
|
{
|
|
13082
|
-
functionName:
|
|
13087
|
+
functionName: s.QUARTILE_EXC,
|
|
13083
13088
|
functionType: t.Statistical,
|
|
13084
13089
|
description: "formula.functionList.QUARTILE_EXC.description",
|
|
13085
13090
|
abstract: "formula.functionList.QUARTILE_EXC.abstract",
|
|
@@ -13101,7 +13106,7 @@ const Gi = [
|
|
|
13101
13106
|
]
|
|
13102
13107
|
},
|
|
13103
13108
|
{
|
|
13104
|
-
functionName:
|
|
13109
|
+
functionName: s.QUARTILE_INC,
|
|
13105
13110
|
functionType: t.Statistical,
|
|
13106
13111
|
description: "formula.functionList.QUARTILE_INC.description",
|
|
13107
13112
|
abstract: "formula.functionList.QUARTILE_INC.abstract",
|
|
@@ -13123,7 +13128,7 @@ const Gi = [
|
|
|
13123
13128
|
]
|
|
13124
13129
|
},
|
|
13125
13130
|
{
|
|
13126
|
-
functionName:
|
|
13131
|
+
functionName: s.RANK_AVG,
|
|
13127
13132
|
functionType: t.Statistical,
|
|
13128
13133
|
description: "formula.functionList.RANK_AVG.description",
|
|
13129
13134
|
abstract: "formula.functionList.RANK_AVG.abstract",
|
|
@@ -13152,7 +13157,7 @@ const Gi = [
|
|
|
13152
13157
|
]
|
|
13153
13158
|
},
|
|
13154
13159
|
{
|
|
13155
|
-
functionName:
|
|
13160
|
+
functionName: s.RANK_EQ,
|
|
13156
13161
|
functionType: t.Statistical,
|
|
13157
13162
|
description: "formula.functionList.RANK_EQ.description",
|
|
13158
13163
|
abstract: "formula.functionList.RANK_EQ.abstract",
|
|
@@ -13181,7 +13186,7 @@ const Gi = [
|
|
|
13181
13186
|
]
|
|
13182
13187
|
},
|
|
13183
13188
|
{
|
|
13184
|
-
functionName:
|
|
13189
|
+
functionName: s.RSQ,
|
|
13185
13190
|
functionType: t.Statistical,
|
|
13186
13191
|
description: "formula.functionList.RSQ.description",
|
|
13187
13192
|
abstract: "formula.functionList.RSQ.abstract",
|
|
@@ -13203,7 +13208,7 @@ const Gi = [
|
|
|
13203
13208
|
]
|
|
13204
13209
|
},
|
|
13205
13210
|
{
|
|
13206
|
-
functionName:
|
|
13211
|
+
functionName: s.SKEW,
|
|
13207
13212
|
functionType: t.Statistical,
|
|
13208
13213
|
description: "formula.functionList.SKEW.description",
|
|
13209
13214
|
abstract: "formula.functionList.SKEW.abstract",
|
|
@@ -13225,7 +13230,7 @@ const Gi = [
|
|
|
13225
13230
|
]
|
|
13226
13231
|
},
|
|
13227
13232
|
{
|
|
13228
|
-
functionName:
|
|
13233
|
+
functionName: s.SKEW_P,
|
|
13229
13234
|
functionType: t.Statistical,
|
|
13230
13235
|
description: "formula.functionList.SKEW_P.description",
|
|
13231
13236
|
abstract: "formula.functionList.SKEW_P.abstract",
|
|
@@ -13247,7 +13252,7 @@ const Gi = [
|
|
|
13247
13252
|
]
|
|
13248
13253
|
},
|
|
13249
13254
|
{
|
|
13250
|
-
functionName:
|
|
13255
|
+
functionName: s.SLOPE,
|
|
13251
13256
|
functionType: t.Statistical,
|
|
13252
13257
|
description: "formula.functionList.SLOPE.description",
|
|
13253
13258
|
abstract: "formula.functionList.SLOPE.abstract",
|
|
@@ -13269,7 +13274,7 @@ const Gi = [
|
|
|
13269
13274
|
]
|
|
13270
13275
|
},
|
|
13271
13276
|
{
|
|
13272
|
-
functionName:
|
|
13277
|
+
functionName: s.SMALL,
|
|
13273
13278
|
functionType: t.Statistical,
|
|
13274
13279
|
description: "formula.functionList.SMALL.description",
|
|
13275
13280
|
abstract: "formula.functionList.SMALL.abstract",
|
|
@@ -13291,7 +13296,7 @@ const Gi = [
|
|
|
13291
13296
|
]
|
|
13292
13297
|
},
|
|
13293
13298
|
{
|
|
13294
|
-
functionName:
|
|
13299
|
+
functionName: s.STANDARDIZE,
|
|
13295
13300
|
functionType: t.Statistical,
|
|
13296
13301
|
description: "formula.functionList.STANDARDIZE.description",
|
|
13297
13302
|
abstract: "formula.functionList.STANDARDIZE.abstract",
|
|
@@ -13320,7 +13325,7 @@ const Gi = [
|
|
|
13320
13325
|
]
|
|
13321
13326
|
},
|
|
13322
13327
|
{
|
|
13323
|
-
functionName:
|
|
13328
|
+
functionName: s.STDEV_P,
|
|
13324
13329
|
functionType: t.Statistical,
|
|
13325
13330
|
description: "formula.functionList.STDEV_P.description",
|
|
13326
13331
|
abstract: "formula.functionList.STDEV_P.abstract",
|
|
@@ -13342,7 +13347,7 @@ const Gi = [
|
|
|
13342
13347
|
]
|
|
13343
13348
|
},
|
|
13344
13349
|
{
|
|
13345
|
-
functionName:
|
|
13350
|
+
functionName: s.STDEV_S,
|
|
13346
13351
|
functionType: t.Statistical,
|
|
13347
13352
|
description: "formula.functionList.STDEV_S.description",
|
|
13348
13353
|
abstract: "formula.functionList.STDEV_S.abstract",
|
|
@@ -13364,7 +13369,7 @@ const Gi = [
|
|
|
13364
13369
|
]
|
|
13365
13370
|
},
|
|
13366
13371
|
{
|
|
13367
|
-
functionName:
|
|
13372
|
+
functionName: s.STDEVA,
|
|
13368
13373
|
functionType: t.Statistical,
|
|
13369
13374
|
description: "formula.functionList.STDEVA.description",
|
|
13370
13375
|
abstract: "formula.functionList.STDEVA.abstract",
|
|
@@ -13386,7 +13391,7 @@ const Gi = [
|
|
|
13386
13391
|
]
|
|
13387
13392
|
},
|
|
13388
13393
|
{
|
|
13389
|
-
functionName:
|
|
13394
|
+
functionName: s.STDEVPA,
|
|
13390
13395
|
functionType: t.Statistical,
|
|
13391
13396
|
description: "formula.functionList.STDEVPA.description",
|
|
13392
13397
|
abstract: "formula.functionList.STDEVPA.abstract",
|
|
@@ -13408,7 +13413,7 @@ const Gi = [
|
|
|
13408
13413
|
]
|
|
13409
13414
|
},
|
|
13410
13415
|
{
|
|
13411
|
-
functionName:
|
|
13416
|
+
functionName: s.STEYX,
|
|
13412
13417
|
functionType: t.Statistical,
|
|
13413
13418
|
description: "formula.functionList.STEYX.description",
|
|
13414
13419
|
abstract: "formula.functionList.STEYX.abstract",
|
|
@@ -13430,7 +13435,7 @@ const Gi = [
|
|
|
13430
13435
|
]
|
|
13431
13436
|
},
|
|
13432
13437
|
{
|
|
13433
|
-
functionName:
|
|
13438
|
+
functionName: s.T_DIST,
|
|
13434
13439
|
functionType: t.Statistical,
|
|
13435
13440
|
description: "formula.functionList.T_DIST.description",
|
|
13436
13441
|
abstract: "formula.functionList.T_DIST.abstract",
|
|
@@ -13459,7 +13464,7 @@ const Gi = [
|
|
|
13459
13464
|
]
|
|
13460
13465
|
},
|
|
13461
13466
|
{
|
|
13462
|
-
functionName:
|
|
13467
|
+
functionName: s.T_DIST_2T,
|
|
13463
13468
|
functionType: t.Statistical,
|
|
13464
13469
|
description: "formula.functionList.T_DIST_2T.description",
|
|
13465
13470
|
abstract: "formula.functionList.T_DIST_2T.abstract",
|
|
@@ -13481,7 +13486,7 @@ const Gi = [
|
|
|
13481
13486
|
]
|
|
13482
13487
|
},
|
|
13483
13488
|
{
|
|
13484
|
-
functionName:
|
|
13489
|
+
functionName: s.T_DIST_RT,
|
|
13485
13490
|
functionType: t.Statistical,
|
|
13486
13491
|
description: "formula.functionList.T_DIST_RT.description",
|
|
13487
13492
|
abstract: "formula.functionList.T_DIST_RT.abstract",
|
|
@@ -13503,7 +13508,7 @@ const Gi = [
|
|
|
13503
13508
|
]
|
|
13504
13509
|
},
|
|
13505
13510
|
{
|
|
13506
|
-
functionName:
|
|
13511
|
+
functionName: s.T_INV,
|
|
13507
13512
|
functionType: t.Statistical,
|
|
13508
13513
|
description: "formula.functionList.T_INV.description",
|
|
13509
13514
|
abstract: "formula.functionList.T_INV.abstract",
|
|
@@ -13525,7 +13530,7 @@ const Gi = [
|
|
|
13525
13530
|
]
|
|
13526
13531
|
},
|
|
13527
13532
|
{
|
|
13528
|
-
functionName:
|
|
13533
|
+
functionName: s.T_INV_2T,
|
|
13529
13534
|
functionType: t.Statistical,
|
|
13530
13535
|
description: "formula.functionList.T_INV_2T.description",
|
|
13531
13536
|
abstract: "formula.functionList.T_INV_2T.abstract",
|
|
@@ -13547,7 +13552,7 @@ const Gi = [
|
|
|
13547
13552
|
]
|
|
13548
13553
|
},
|
|
13549
13554
|
{
|
|
13550
|
-
functionName:
|
|
13555
|
+
functionName: s.T_TEST,
|
|
13551
13556
|
functionType: t.Statistical,
|
|
13552
13557
|
description: "formula.functionList.T_TEST.description",
|
|
13553
13558
|
abstract: "formula.functionList.T_TEST.abstract",
|
|
@@ -13583,7 +13588,7 @@ const Gi = [
|
|
|
13583
13588
|
]
|
|
13584
13589
|
},
|
|
13585
13590
|
{
|
|
13586
|
-
functionName:
|
|
13591
|
+
functionName: s.TREND,
|
|
13587
13592
|
functionType: t.Statistical,
|
|
13588
13593
|
description: "formula.functionList.TREND.description",
|
|
13589
13594
|
abstract: "formula.functionList.TREND.abstract",
|
|
@@ -13619,7 +13624,7 @@ const Gi = [
|
|
|
13619
13624
|
]
|
|
13620
13625
|
},
|
|
13621
13626
|
{
|
|
13622
|
-
functionName:
|
|
13627
|
+
functionName: s.TRIMMEAN,
|
|
13623
13628
|
functionType: t.Statistical,
|
|
13624
13629
|
description: "formula.functionList.TRIMMEAN.description",
|
|
13625
13630
|
abstract: "formula.functionList.TRIMMEAN.abstract",
|
|
@@ -13641,7 +13646,7 @@ const Gi = [
|
|
|
13641
13646
|
]
|
|
13642
13647
|
},
|
|
13643
13648
|
{
|
|
13644
|
-
functionName:
|
|
13649
|
+
functionName: s.VAR_P,
|
|
13645
13650
|
functionType: t.Statistical,
|
|
13646
13651
|
description: "formula.functionList.VAR_P.description",
|
|
13647
13652
|
abstract: "formula.functionList.VAR_P.abstract",
|
|
@@ -13663,7 +13668,7 @@ const Gi = [
|
|
|
13663
13668
|
]
|
|
13664
13669
|
},
|
|
13665
13670
|
{
|
|
13666
|
-
functionName:
|
|
13671
|
+
functionName: s.VAR_S,
|
|
13667
13672
|
functionType: t.Statistical,
|
|
13668
13673
|
description: "formula.functionList.VAR_S.description",
|
|
13669
13674
|
abstract: "formula.functionList.VAR_S.abstract",
|
|
@@ -13685,7 +13690,7 @@ const Gi = [
|
|
|
13685
13690
|
]
|
|
13686
13691
|
},
|
|
13687
13692
|
{
|
|
13688
|
-
functionName:
|
|
13693
|
+
functionName: s.VARA,
|
|
13689
13694
|
functionType: t.Statistical,
|
|
13690
13695
|
description: "formula.functionList.VARA.description",
|
|
13691
13696
|
abstract: "formula.functionList.VARA.abstract",
|
|
@@ -13707,7 +13712,7 @@ const Gi = [
|
|
|
13707
13712
|
]
|
|
13708
13713
|
},
|
|
13709
13714
|
{
|
|
13710
|
-
functionName:
|
|
13715
|
+
functionName: s.VARPA,
|
|
13711
13716
|
functionType: t.Statistical,
|
|
13712
13717
|
description: "formula.functionList.VARPA.description",
|
|
13713
13718
|
abstract: "formula.functionList.VARPA.abstract",
|
|
@@ -13729,7 +13734,7 @@ const Gi = [
|
|
|
13729
13734
|
]
|
|
13730
13735
|
},
|
|
13731
13736
|
{
|
|
13732
|
-
functionName:
|
|
13737
|
+
functionName: s.WEIBULL_DIST,
|
|
13733
13738
|
functionType: t.Statistical,
|
|
13734
13739
|
description: "formula.functionList.WEIBULL_DIST.description",
|
|
13735
13740
|
abstract: "formula.functionList.WEIBULL_DIST.abstract",
|
|
@@ -13765,7 +13770,7 @@ const Gi = [
|
|
|
13765
13770
|
]
|
|
13766
13771
|
},
|
|
13767
13772
|
{
|
|
13768
|
-
functionName:
|
|
13773
|
+
functionName: s.Z_TEST,
|
|
13769
13774
|
functionType: t.Statistical,
|
|
13770
13775
|
description: "formula.functionList.Z_TEST.description",
|
|
13771
13776
|
abstract: "formula.functionList.Z_TEST.abstract",
|
|
@@ -15195,11 +15200,11 @@ function ua(n, e, a, i) {
|
|
|
15195
15200
|
const f = r[u];
|
|
15196
15201
|
if (typeof f == "string" || f.nodeType !== J.REFERENCE)
|
|
15197
15202
|
continue;
|
|
15198
|
-
const { token:
|
|
15203
|
+
const { token: l } = f, p = pe(l), { sheetName: L, unitId: P } = p;
|
|
15199
15204
|
let E = p.range;
|
|
15200
15205
|
E.startAbsoluteRefType === we.ALL && E.endAbsoluteRefType === we.ALL || (E = Et(E, a, i), o.push({
|
|
15201
|
-
unitId:
|
|
15202
|
-
sheetName:
|
|
15206
|
+
unitId: P,
|
|
15207
|
+
sheetName: L,
|
|
15203
15208
|
range: E
|
|
15204
15209
|
}));
|
|
15205
15210
|
}
|
|
@@ -15210,18 +15215,18 @@ let Dt = class extends te {
|
|
|
15210
15215
|
super(), this._refRangeService = n, this._lexerTreeBuilder = e, this._univerInstanceService = a, this._injector = i;
|
|
15211
15216
|
}
|
|
15212
15217
|
transformFormulaByEffectCommand(n, e, a, i) {
|
|
15213
|
-
const r = this._lexerTreeBuilder.sequenceNodesBuilder(a), o = this._univerInstanceService.getCurrentUnitForType(ee.UNIVER_SHEET), u = o.getActiveSheet(), m = o.getUnitId(), f = u.getSheetId(),
|
|
15218
|
+
const r = this._lexerTreeBuilder.sequenceNodesBuilder(a), o = this._univerInstanceService.getCurrentUnitForType(ee.UNIVER_SHEET), u = o.getActiveSheet(), m = o.getUnitId(), f = u.getSheetId(), l = r == null ? void 0 : r.map((p) => {
|
|
15214
15219
|
if (typeof p == "object" && p.nodeType === J.REFERENCE) {
|
|
15215
|
-
const
|
|
15220
|
+
const L = pe(p.token), { range: P, unitId: E, sheetName: I } = L, S = this._univerInstanceService.getUnit(E || n), c = I ? S == null ? void 0 : S.getSheetBySheetName(I) : S == null ? void 0 : S.getSheetBySheetId(e);
|
|
15216
15221
|
if (!c)
|
|
15217
15222
|
throw new Error("Sheet not found");
|
|
15218
15223
|
const N = S.getUnitId(), R = c.getSheetId();
|
|
15219
15224
|
if (N !== m || R !== f)
|
|
15220
15225
|
return p;
|
|
15221
|
-
const
|
|
15226
|
+
const d = Gt(P, i);
|
|
15222
15227
|
let O = "";
|
|
15223
|
-
if (
|
|
15224
|
-
const M =
|
|
15228
|
+
if (d) {
|
|
15229
|
+
const M = d.startColumn - P.startColumn, F = d.startRow - P.startRow, U = Et(P, M, F);
|
|
15225
15230
|
E && I ? O = Jt(E, I, U) : I ? O = ea(I, U) : O = ta(U);
|
|
15226
15231
|
} else
|
|
15227
15232
|
O = j.REF;
|
|
@@ -15232,19 +15237,19 @@ let Dt = class extends te {
|
|
|
15232
15237
|
} else
|
|
15233
15238
|
return p;
|
|
15234
15239
|
});
|
|
15235
|
-
return
|
|
15240
|
+
return l ? `=${Xe(l)}` : "";
|
|
15236
15241
|
}
|
|
15237
15242
|
registerFormula(n, e, a, i) {
|
|
15238
15243
|
const r = /* @__PURE__ */ new Map(), o = this._lexerTreeBuilder.sequenceNodesBuilder(a), u = new Ye(), m = (f) => {
|
|
15239
|
-
const
|
|
15244
|
+
const l = this._univerInstanceService.getCurrentUnitForType(ee.UNIVER_SHEET), p = l.getActiveSheet(), L = l.getUnitId(), P = p.getSheetId(), E = o == null ? void 0 : o.map((S) => {
|
|
15240
15245
|
if (typeof S == "object" && S.nodeType === J.REFERENCE) {
|
|
15241
15246
|
const c = r.get(S.token);
|
|
15242
|
-
if (c.unitId !==
|
|
15247
|
+
if (c.unitId !== L || c.subUnitId !== P)
|
|
15243
15248
|
return S;
|
|
15244
15249
|
const N = Gt(c.range, f);
|
|
15245
15250
|
let R = "";
|
|
15246
15251
|
if (N) {
|
|
15247
|
-
const
|
|
15252
|
+
const d = N.startColumn - c.range.startColumn, O = N.startRow - c.range.startRow, M = Et(c.range, d, O);
|
|
15248
15253
|
c.unitId && c.sheetName ? R = Jt(c.unitId, c.sheetName, M) : c.sheetName ? R = ea(c.sheetName, M) : R = ta(M);
|
|
15249
15254
|
} else
|
|
15250
15255
|
R = j.REF;
|
|
@@ -15259,14 +15264,14 @@ let Dt = class extends te {
|
|
|
15259
15264
|
};
|
|
15260
15265
|
return o == null || o.forEach((f) => {
|
|
15261
15266
|
if (typeof f == "object" && f.nodeType === J.REFERENCE) {
|
|
15262
|
-
const
|
|
15267
|
+
const l = pe(f.token), { range: p, unitId: L, sheetName: P } = l, E = this._univerInstanceService.getUnit(L || n), I = P ? E == null ? void 0 : E.getSheetBySheetName(P) : E == null ? void 0 : E.getSheetBySheetId(e);
|
|
15263
15268
|
if (!I)
|
|
15264
15269
|
return;
|
|
15265
15270
|
const S = E.getUnitId(), c = I.getSheetId(), N = {
|
|
15266
15271
|
unitId: S,
|
|
15267
15272
|
subUnitId: c,
|
|
15268
15273
|
range: p,
|
|
15269
|
-
sheetName:
|
|
15274
|
+
sheetName: P
|
|
15270
15275
|
};
|
|
15271
15276
|
r.set(f.token, N), u.add(this._refRangeService.registerRefRange(p, m, S, c));
|
|
15272
15277
|
}
|
|
@@ -15276,13 +15281,13 @@ let Dt = class extends te {
|
|
|
15276
15281
|
const r = be(a) ? this._lexerTreeBuilder.sequenceNodesBuilder(a) : null, o = [];
|
|
15277
15282
|
return r == null || r.forEach((u) => {
|
|
15278
15283
|
if (typeof u == "object" && u.nodeType === J.REFERENCE) {
|
|
15279
|
-
const m = pe(u.token), { range: f, unitId:
|
|
15284
|
+
const m = pe(u.token), { range: f, unitId: l, sheetName: p } = m;
|
|
15280
15285
|
if (f.startAbsoluteRefType === we.ALL && f.endAbsoluteRefType === we.ALL)
|
|
15281
15286
|
return;
|
|
15282
|
-
const
|
|
15283
|
-
if (!
|
|
15287
|
+
const L = this._univerInstanceService.getUnit(l || n), P = p ? L == null ? void 0 : L.getSheetBySheetName(p) : L == null ? void 0 : L.getSheetBySheetId(e);
|
|
15288
|
+
if (!P)
|
|
15284
15289
|
return;
|
|
15285
|
-
const E =
|
|
15290
|
+
const E = L.getUnitId(), I = P.getSheetId(), S = i[0].startRow, c = i[0].startColumn, N = f.startRow, R = f.startColumn, d = i.map((O) => ({
|
|
15286
15291
|
startRow: O.startRow - S + N,
|
|
15287
15292
|
endRow: O.endRow - S + N,
|
|
15288
15293
|
startColumn: O.startColumn - c + R,
|
|
@@ -15291,7 +15296,7 @@ let Dt = class extends te {
|
|
|
15291
15296
|
o.push({
|
|
15292
15297
|
unitId: E,
|
|
15293
15298
|
subUnitId: I,
|
|
15294
|
-
ranges:
|
|
15299
|
+
ranges: d
|
|
15295
15300
|
});
|
|
15296
15301
|
}
|
|
15297
15302
|
}), o;
|
|
@@ -15299,15 +15304,15 @@ let Dt = class extends te {
|
|
|
15299
15304
|
// eslint-disable-next-line max-lines-per-function
|
|
15300
15305
|
registerRangeFormula(n, e, a, i, r) {
|
|
15301
15306
|
const o = new Ye(), u = i.map((f) => this._getFormulaDependcy(n, e, f, a)), m = (f) => {
|
|
15302
|
-
const
|
|
15303
|
-
for (const { unitId: I, subUnitId: S, ranges: c } of
|
|
15307
|
+
const l = a[0].startRow, p = a[0].startColumn, L = [{ unitId: n, subUnitId: e, ranges: a }, ...u.flat()], P = [], E = cn(this._injector, f);
|
|
15308
|
+
for (const { unitId: I, subUnitId: S, ranges: c } of L)
|
|
15304
15309
|
if (I === E.unitId && S === E.subUnitId) {
|
|
15305
|
-
const N = [], R = c[0].startRow,
|
|
15310
|
+
const N = [], R = c[0].startRow, d = c[0].startColumn, O = R - l, M = d - p;
|
|
15306
15311
|
for (const F of E.ranges) {
|
|
15307
15312
|
const U = c.map((g) => Ve(F, g)).filter(Boolean);
|
|
15308
15313
|
U.length > 0 && N.push(...U);
|
|
15309
15314
|
}
|
|
15310
|
-
N.length > 0 &&
|
|
15315
|
+
N.length > 0 && P.push(
|
|
15311
15316
|
N.map((F) => ({
|
|
15312
15317
|
startRow: F.startRow - O,
|
|
15313
15318
|
endRow: F.endRow - O,
|
|
@@ -15316,15 +15321,15 @@ let Dt = class extends te {
|
|
|
15316
15321
|
}))
|
|
15317
15322
|
);
|
|
15318
15323
|
}
|
|
15319
|
-
if (
|
|
15320
|
-
const I = De.splitIntoGrid([...
|
|
15324
|
+
if (P.length > 0) {
|
|
15325
|
+
const I = De.splitIntoGrid([...P.flat()]), S = De.subtractMulti(a, I);
|
|
15321
15326
|
S.sort((O, M) => O.startRow - M.startRow || O.startColumn - M.startColumn);
|
|
15322
15327
|
const c = /* @__PURE__ */ new Map();
|
|
15323
15328
|
for (let O = 0; O < I.length; O++) {
|
|
15324
|
-
const M = I[O], F = M.startRow, U = M.startColumn, g = F -
|
|
15329
|
+
const M = I[O], F = M.startRow, U = M.startColumn, g = F - l, x = U - p, h = ln(M, f).sort((Q, oe) => Q.startRow - oe.startRow || Q.startColumn - oe.startColumn);
|
|
15325
15330
|
if (!h.length)
|
|
15326
15331
|
continue;
|
|
15327
|
-
const V = h[0].startRow, k = h[0].startColumn, b = V -
|
|
15332
|
+
const V = h[0].startRow, k = h[0].startColumn, b = V - l, Le = k - p, ae = [];
|
|
15328
15333
|
for (let Q = 0; Q < i.length; Q++) {
|
|
15329
15334
|
const oe = i[Q], z = be(oe), ye = z ? this._lexerTreeBuilder.moveFormulaRefOffset(oe, x, g) : oe, ue = z ? this.transformFormulaByEffectCommand(n, e, ye, f) : ye, Pe = ua(this._lexerTreeBuilder, ue, -Le, -b);
|
|
15330
15335
|
ae.push({
|
|
@@ -15345,7 +15350,7 @@ let Dt = class extends te {
|
|
|
15345
15350
|
for (let g = 0; g < i.length; g++) {
|
|
15346
15351
|
const x = i[g];
|
|
15347
15352
|
F.push({
|
|
15348
|
-
newFormula: be(x) ? this._lexerTreeBuilder.moveFormulaRefOffset(x, M - p, O -
|
|
15353
|
+
newFormula: be(x) ? this._lexerTreeBuilder.moveFormulaRefOffset(x, M - p, O - l) : x,
|
|
15349
15354
|
orginFormula: x
|
|
15350
15355
|
});
|
|
15351
15356
|
}
|
|
@@ -15356,9 +15361,9 @@ let Dt = class extends te {
|
|
|
15356
15361
|
};
|
|
15357
15362
|
c.has(U.key) ? c.get(U.key).push(U) : c.set(U.key, [U]);
|
|
15358
15363
|
}
|
|
15359
|
-
const R = [],
|
|
15360
|
-
for (let O =
|
|
15361
|
-
const M =
|
|
15364
|
+
const R = [], d = Array.from(c.keys());
|
|
15365
|
+
for (let O = d.length - 1; O >= 0; O--) {
|
|
15366
|
+
const M = d[O], F = c.get(M).sort((x, h) => x.ranges[0].startRow - h.ranges[0].startRow || x.ranges[0].startColumn - h.ranges[0].startColumn), U = [];
|
|
15362
15367
|
for (let x = 0; x < F[0].formulas.length; x++)
|
|
15363
15368
|
U.push(F[0].formulas[x].newFormula);
|
|
15364
15369
|
const g = De.mergeRanges(F.map((x) => x.ranges).flat());
|
|
@@ -15375,12 +15380,12 @@ let Dt = class extends te {
|
|
|
15375
15380
|
};
|
|
15376
15381
|
};
|
|
15377
15382
|
return a.forEach((f) => {
|
|
15378
|
-
const
|
|
15379
|
-
o.add(
|
|
15380
|
-
}), [...u.flat()].forEach(({ unitId: f, subUnitId:
|
|
15381
|
-
p.forEach((
|
|
15382
|
-
const
|
|
15383
|
-
o.add(
|
|
15383
|
+
const l = this._refRangeService.registerRefRange(f, m, n, e);
|
|
15384
|
+
o.add(l);
|
|
15385
|
+
}), [...u.flat()].forEach(({ unitId: f, subUnitId: l, ranges: p }) => {
|
|
15386
|
+
p.forEach((L) => {
|
|
15387
|
+
const P = this._refRangeService.registerRefRange(L, m, f, l);
|
|
15388
|
+
o.add(P);
|
|
15384
15389
|
});
|
|
15385
15390
|
}), o;
|
|
15386
15391
|
}
|
|
@@ -15689,38 +15694,38 @@ let $e = class extends te {
|
|
|
15689
15694
|
return o.push(...this._getDirtyRangesByCellValue(e, a, r)), o.push(...this._getDirtyRangesForArrayFormula(e, a, r)), o;
|
|
15690
15695
|
}
|
|
15691
15696
|
_getDeleteRangeMutationDirtyRange(n) {
|
|
15692
|
-
const { subUnitId: e, unitId: a, range: i, shiftDimension: r } = n, o = [], u = this._univerInstanceService.getUniverSheetInstance(a), m = u == null ? void 0 : u.getSheetBySheetId(e), f = (m == null ? void 0 : m.getLastRowWithContent()) || 0,
|
|
15693
|
-
let
|
|
15694
|
-
const { startRow:
|
|
15695
|
-
r === Bt.ROWS ?
|
|
15696
|
-
startRow:
|
|
15697
|
+
const { subUnitId: e, unitId: a, range: i, shiftDimension: r } = n, o = [], u = this._univerInstanceService.getUniverSheetInstance(a), m = u == null ? void 0 : u.getSheetBySheetId(e), f = (m == null ? void 0 : m.getLastRowWithContent()) || 0, l = (m == null ? void 0 : m.getLastColumnWithContent()) || 0, p = new w();
|
|
15698
|
+
let L = null;
|
|
15699
|
+
const { startRow: P, startColumn: E, endRow: I, endColumn: S } = i;
|
|
15700
|
+
r === Bt.ROWS ? L = this._rangeToMatrix({
|
|
15701
|
+
startRow: P,
|
|
15697
15702
|
startColumn: E,
|
|
15698
15703
|
endRow: f,
|
|
15699
15704
|
endColumn: S
|
|
15700
|
-
}) : r === Bt.COLUMNS && (
|
|
15701
|
-
startRow:
|
|
15705
|
+
}) : r === Bt.COLUMNS && (L = this._rangeToMatrix({
|
|
15706
|
+
startRow: P,
|
|
15702
15707
|
startColumn: E,
|
|
15703
15708
|
endRow: I,
|
|
15704
|
-
endColumn:
|
|
15705
|
-
})),
|
|
15709
|
+
endColumn: l
|
|
15710
|
+
})), L != null && p.merge(L);
|
|
15706
15711
|
const c = p.getData();
|
|
15707
15712
|
return o.push(...this._getDirtyRangesByCellValue(a, e, c)), o.push(...this._getDirtyRangesForArrayFormula(a, e, c)), o;
|
|
15708
15713
|
}
|
|
15709
15714
|
_getRemoveRowOrColumnMutation(n, e = !0) {
|
|
15710
|
-
const { subUnitId: a, unitId: i, range: r } = n, o = [], u = this._univerInstanceService.getUniverSheetInstance(i), m = u == null ? void 0 : u.getSheetBySheetId(a), f = (m == null ? void 0 : m.getRowCount()) || 0,
|
|
15711
|
-
let
|
|
15712
|
-
const { startRow:
|
|
15713
|
-
e === !0 ?
|
|
15714
|
-
startRow:
|
|
15715
|
+
const { subUnitId: a, unitId: i, range: r } = n, o = [], u = this._univerInstanceService.getUniverSheetInstance(i), m = u == null ? void 0 : u.getSheetBySheetId(a), f = (m == null ? void 0 : m.getRowCount()) || 0, l = (m == null ? void 0 : m.getColumnCount()) || 0, p = new w();
|
|
15716
|
+
let L = null;
|
|
15717
|
+
const { startRow: P, endRow: E, startColumn: I, endColumn: S } = r;
|
|
15718
|
+
e === !0 ? L = this._rangeToMatrix({
|
|
15719
|
+
startRow: P,
|
|
15715
15720
|
startColumn: 0,
|
|
15716
15721
|
endRow: E,
|
|
15717
|
-
endColumn:
|
|
15718
|
-
}) :
|
|
15722
|
+
endColumn: l - 1
|
|
15723
|
+
}) : L = this._rangeToMatrix({
|
|
15719
15724
|
startRow: 0,
|
|
15720
15725
|
startColumn: I,
|
|
15721
15726
|
endRow: f,
|
|
15722
15727
|
endColumn: S
|
|
15723
|
-
}),
|
|
15728
|
+
}), L != null && p.merge(L);
|
|
15724
15729
|
const c = p.getData();
|
|
15725
15730
|
return o.push(...this._getDirtyRangesByCellValue(i, a, c)), o.push(...this._getDirtyRangesForArrayFormula(i, a, c)), o;
|
|
15726
15731
|
}
|
|
@@ -15757,12 +15762,12 @@ let $e = class extends te {
|
|
|
15757
15762
|
const r = new w(a), o = this._formulaDataModel.getArrayFormulaRange();
|
|
15758
15763
|
if ((u = o == null ? void 0 : o[n]) != null && u[e]) {
|
|
15759
15764
|
const f = new w((m = o == null ? void 0 : o[n]) == null ? void 0 : m[e]);
|
|
15760
|
-
r.forValue((
|
|
15761
|
-
f.forValue((
|
|
15765
|
+
r.forValue((l, p) => {
|
|
15766
|
+
f.forValue((L, P, E) => {
|
|
15762
15767
|
if (E == null)
|
|
15763
15768
|
return !0;
|
|
15764
15769
|
const { startRow: I, startColumn: S, endRow: c, endColumn: N } = E;
|
|
15765
|
-
|
|
15770
|
+
l >= I && l <= c && p >= S && p <= N && i.push({
|
|
15766
15771
|
unitId: n,
|
|
15767
15772
|
sheetId: e,
|
|
15768
15773
|
range: {
|
|
@@ -15814,8 +15819,8 @@ let je = class extends te {
|
|
|
15814
15819
|
priority: 100,
|
|
15815
15820
|
effect: Ka.Value,
|
|
15816
15821
|
handler: (n, e, a) => {
|
|
15817
|
-
var
|
|
15818
|
-
const { unitId: i, subUnitId: r, row: o, col: u } = e, m = this._formulaDataModel.getArrayFormulaCellData(), f = (
|
|
15822
|
+
var l, p, L;
|
|
15823
|
+
const { unitId: i, subUnitId: r, row: o, col: u } = e, m = this._formulaDataModel.getArrayFormulaCellData(), f = (L = (p = (l = m == null ? void 0 : m[i]) == null ? void 0 : l[r]) == null ? void 0 : p[o]) == null ? void 0 : L[u];
|
|
15819
15824
|
return f == null ? a(n) : f.v == null && f.t == null ? a({
|
|
15820
15825
|
...n,
|
|
15821
15826
|
v: 0,
|
|
@@ -15932,8 +15937,8 @@ let ze = class extends te {
|
|
|
15932
15937
|
return;
|
|
15933
15938
|
const r = [];
|
|
15934
15939
|
this._preUnitId = e, Array.from(Object.values(i)).forEach((o) => {
|
|
15935
|
-
const { name: u, comment: m, formulaOrRefString: f, localSheetId:
|
|
15936
|
-
!this._descriptionService.hasDescription(u) && (
|
|
15940
|
+
const { name: u, comment: m, formulaOrRefString: f, localSheetId: l } = o;
|
|
15941
|
+
!this._descriptionService.hasDescription(u) && (l == null || l === mt || l === a) && r.push({
|
|
15937
15942
|
functionName: u,
|
|
15938
15943
|
description: f + (m || ""),
|
|
15939
15944
|
abstract: f,
|