@univerjs/engine-formula 0.9.2-nightly.202507131606 → 0.9.2-nightly.202507151607
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 +2 -2
- package/lib/es/index.js +33 -34
- package/lib/index.js +33 -34
- package/lib/umd/index.js +2 -2
- package/package.json +3 -4
package/lib/es/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
var Wu = Object.defineProperty;
|
|
2
2
|
var qu = (i, a, e) => a in i ? Wu(i, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[a] = e;
|
|
3
3
|
var A = (i, a, e) => qu(i, typeof a != "symbol" ? a + "" : a, e);
|
|
4
|
-
import { ObjectMatrix as Ce, CommandType as Ie, RANGE_TYPE as et, AbsoluteRefType as we, Tools as Ye, createIdentifier as Ze, Disposable as Ne, IUniverInstanceService as $n, LRUMap as Ku, hashAlgorithm as Xu, moveRangeByOffset as aa, isValidRange as Zu, isFormulaString as yt, isFormulaId as Pt, Rectangle as Xa, cellToRange as zu, Inject as ye, UniverInstanceType as ur, BooleanNumber as Qi, LocaleService as Ju, LocaleType as wr, numfmt as dt, BuildTextUtils as ec, isRealNum as Q, CellValueType as Rt,
|
|
5
|
-
import { Subject as cr, BehaviorSubject as qi, distinctUntilChanged as Ki, combineLatest as
|
|
6
|
-
import { isTextFormat as gc } from "@univerjs/engine-numfmt";
|
|
4
|
+
import { ObjectMatrix as Ce, CommandType as Ie, RANGE_TYPE as et, AbsoluteRefType as we, Tools as Ye, createIdentifier as Ze, Disposable as Ne, IUniverInstanceService as $n, LRUMap as Ku, hashAlgorithm as Xu, moveRangeByOffset as aa, isValidRange as Zu, isFormulaString as yt, isFormulaId as Pt, Rectangle as Xa, cellToRange as zu, Inject as ye, UniverInstanceType as ur, BooleanNumber as Qi, LocaleService as Ju, LocaleType as wr, numfmt as dt, BuildTextUtils as ec, isRealNum as Q, CellValueType as Rt, isTextFormat as tc, RichTextBuilder as rc, toDisposable as nc, Injector as Wi, sortRules as sc, RTree as Os, IConfigService as ia, AsyncLock as ac, requestImmediateMacroTask as ic, ICommandService as sr, DataStreamTreeTokenType as ve, DisposableCollection as oc, Optional as uc, Plugin as cc, merge as lc, touchDependencies as cs } from "@univerjs/core";
|
|
5
|
+
import { Subject as cr, BehaviorSubject as qi, distinctUntilChanged as Ki, combineLatest as fc, map as hc, Observable as mc, shareReplay as gc } from "rxjs";
|
|
7
6
|
import { DataSyncPrimaryController as dc } from "@univerjs/rpc";
|
|
8
7
|
var er = /* @__PURE__ */ ((i) => (i.FALSE = "FALSE", i.TRUE = "TRUE", i))(er || {}), xt = /* @__PURE__ */ ((i) => (i[i.SUCCESS = 0] = "SUCCESS", i[i.ERROR = 1] = "ERROR", i))(xt || {}), ct = /* @__PURE__ */ ((i) => (i[i.FRONT = 0] = "FRONT", i[i.BACK = 1] = "BACK", i))(ct || {});
|
|
9
8
|
function Cc(i, a, e, t, r) {
|
|
@@ -66,10 +65,10 @@ function bc(i) {
|
|
|
66
65
|
return !0;
|
|
67
66
|
return !1;
|
|
68
67
|
}
|
|
69
|
-
function
|
|
68
|
+
function Gb(i) {
|
|
70
69
|
return i[0] === "'" && i[i.length - 1] === "'" ? i.substring(1, i.length - 1) : i;
|
|
71
70
|
}
|
|
72
|
-
function
|
|
71
|
+
function Qb(i) {
|
|
73
72
|
return sn(i) && i !== K.CLOSE_BRACES && i !== K.CLOSE_BRACKET && i !== K.SINGLE_QUOTATION && i !== K.DOUBLE_QUOTATION || i === " ";
|
|
74
73
|
}
|
|
75
74
|
const yc = /* @__PURE__ */ new Set([
|
|
@@ -186,7 +185,7 @@ function an(i) {
|
|
|
186
185
|
let t = e.indexOf("$") > -1;
|
|
187
186
|
return Ye.isStringNumber(e) && a && !t && (a = !1, t = !0), a && t ? we.ALL : a ? we.COLUMN : t ? we.ROW : we.NONE;
|
|
188
187
|
}
|
|
189
|
-
function
|
|
188
|
+
function Wb(i) {
|
|
190
189
|
const a = i.split("!");
|
|
191
190
|
a.length > 1 && (i = a[a.length - 1]);
|
|
192
191
|
const e = i.split(":");
|
|
@@ -309,7 +308,7 @@ function no(i) {
|
|
|
309
308
|
}
|
|
310
309
|
return a.join("");
|
|
311
310
|
}
|
|
312
|
-
function
|
|
311
|
+
function qb(i, a) {
|
|
313
312
|
const e = (i == null ? void 0 : i.split(",")) || [];
|
|
314
313
|
return i === "" || e.length === 0 ? [] : Yc(i) ? e.map((n) => {
|
|
315
314
|
const s = Lr(n);
|
|
@@ -452,7 +451,7 @@ let Ps = class extends Ne {
|
|
|
452
451
|
Ps = qc([
|
|
453
452
|
Kc(0, $n)
|
|
454
453
|
], Ps);
|
|
455
|
-
const pr = Ze("univer.formula.defined-names.service"),
|
|
454
|
+
const pr = Ze("univer.formula.defined-names.service"), Kb = (i, a) => {
|
|
456
455
|
const { unitId: e, id: t } = a;
|
|
457
456
|
return {
|
|
458
457
|
...i.get(pr).getValueById(e, t),
|
|
@@ -2401,7 +2400,7 @@ class ol {
|
|
|
2401
2400
|
a.insert([n, s]);
|
|
2402
2401
|
}
|
|
2403
2402
|
}
|
|
2404
|
-
const qe = new ol(), Ca = "engine-formula.config", mo = 1,
|
|
2403
|
+
const qe = new ol(), Ca = "engine-formula.config", mo = 1, Xb = "CYCLE_REFERENCE_COUNT", fi = {};
|
|
2405
2404
|
class ul extends Ne {
|
|
2406
2405
|
constructor() {
|
|
2407
2406
|
super(...arguments);
|
|
@@ -2790,7 +2789,7 @@ const ml = [
|
|
|
2790
2789
|
unknown: 11
|
|
2791
2790
|
/* Custom */
|
|
2792
2791
|
};
|
|
2793
|
-
function
|
|
2792
|
+
function Zb(i, a, e) {
|
|
2794
2793
|
var u, c;
|
|
2795
2794
|
if (i == null || a == null)
|
|
2796
2795
|
return a;
|
|
@@ -6545,7 +6544,7 @@ class Xn extends Yn {
|
|
|
6545
6544
|
return g.create(t);
|
|
6546
6545
|
if (e.t === Rt.NUMBER) {
|
|
6547
6546
|
const r = this._getPatternByCell(e);
|
|
6548
|
-
return
|
|
6547
|
+
return tc(r) ? j.create(t.toString()) : Kn(t, r);
|
|
6549
6548
|
}
|
|
6550
6549
|
return e.t === Rt.STRING || e.t === Rt.FORCE_STRING ? j.create(t.toString()) : e.t === Rt.BOOLEAN ? qn(t) : Vt.create(t);
|
|
6551
6550
|
}
|
|
@@ -7061,7 +7060,7 @@ let Qs = class extends Ne {
|
|
|
7061
7060
|
}
|
|
7062
7061
|
} else Ye.isLegalUrl(i) && (e = Ye.normalizeUrl(i));
|
|
7063
7062
|
return {
|
|
7064
|
-
p:
|
|
7063
|
+
p: rc.create().insertLink(a, e).getData()
|
|
7065
7064
|
};
|
|
7066
7065
|
}
|
|
7067
7066
|
};
|
|
@@ -7669,7 +7668,7 @@ class eh extends Ne {
|
|
|
7669
7668
|
const r = e[t];
|
|
7670
7669
|
this._functionDescriptions.set(r.functionName, r);
|
|
7671
7670
|
}
|
|
7672
|
-
return
|
|
7671
|
+
return nc(() => {
|
|
7673
7672
|
for (let t = 0; t < e.length; t++) {
|
|
7674
7673
|
const r = e[t];
|
|
7675
7674
|
this._functionDescriptions.delete(r.functionName);
|
|
@@ -8745,7 +8744,7 @@ let Ur = class extends Ne {
|
|
|
8745
8744
|
this._suffixNodeFactory,
|
|
8746
8745
|
this._unionNodeFactory,
|
|
8747
8746
|
this._valueNodeFactory
|
|
8748
|
-
].sort(
|
|
8747
|
+
].sort(sc);
|
|
8749
8748
|
}
|
|
8750
8749
|
};
|
|
8751
8750
|
Ur = Lh([
|
|
@@ -10130,7 +10129,7 @@ let Js = class extends Ne {
|
|
|
10130
10129
|
A(this, "executionInProgressListener$", this._executionInProgressListener$.asObservable());
|
|
10131
10130
|
A(this, "_executionCompleteListener$", new cr());
|
|
10132
10131
|
A(this, "executionCompleteListener$", this._executionCompleteListener$.asObservable());
|
|
10133
|
-
A(this, "_executeLock", new
|
|
10132
|
+
A(this, "_executeLock", new ac());
|
|
10134
10133
|
this._configService = a, this._lexer = e, this._currentConfigService = t, this._runtimeService = r, this._formulaDependencyGenerator = n, this._interpreter = s, this._astTreeBuilder = o;
|
|
10135
10134
|
}
|
|
10136
10135
|
dispose() {
|
|
@@ -10215,7 +10214,7 @@ let Js = class extends Ne {
|
|
|
10215
10214
|
for (let u = 0; u < o; u++) {
|
|
10216
10215
|
const c = e[u], l = c.nodeData, f = c.getDirtyData;
|
|
10217
10216
|
if (u % s === 0 && (await new Promise((d) => {
|
|
10218
|
-
const _ =
|
|
10217
|
+
const _ = ic(d);
|
|
10219
10218
|
r.push(_);
|
|
10220
10219
|
}), a ? (this._runtimeService.setFormulaExecuteStage(
|
|
10221
10220
|
Je.CURRENTLY_CALCULATING_ARRAY_FORMULA
|
|
@@ -13441,7 +13440,7 @@ class Dm extends V {
|
|
|
13441
13440
|
return !0;
|
|
13442
13441
|
}
|
|
13443
13442
|
}
|
|
13444
|
-
class
|
|
13443
|
+
class zb extends Dm {
|
|
13445
13444
|
isAsync() {
|
|
13446
13445
|
return !0;
|
|
13447
13446
|
}
|
|
@@ -30826,7 +30825,7 @@ const Ab = [
|
|
|
30826
30825
|
[_b, se.VALUETOTEXT]
|
|
30827
30826
|
], Eb = [];
|
|
30828
30827
|
var bb = /* @__PURE__ */ ((i) => i)(bb || {});
|
|
30829
|
-
function
|
|
30828
|
+
function ey(i) {
|
|
30830
30829
|
return i.isError() ? i.getValue() : i.isReferenceObject() ? i.toArrayValueObject().toValue() : i.isArray() ? i.toValue() : i.getValue();
|
|
30831
30830
|
}
|
|
30832
30831
|
class yb extends V {
|
|
@@ -30884,7 +30883,7 @@ class Gu extends Ne {
|
|
|
30884
30883
|
this._computingStatus$.next(!0);
|
|
30885
30884
|
return;
|
|
30886
30885
|
}
|
|
30887
|
-
this._computingSubscription =
|
|
30886
|
+
this._computingSubscription = fc(this._allSubjects).pipe(hc((t) => t.every((r) => r))).subscribe((t) => this._computingStatus$.next(t));
|
|
30888
30887
|
}
|
|
30889
30888
|
}
|
|
30890
30889
|
var pb = Object.getOwnPropertyDescriptor, Vb = (i, a, e, t) => {
|
|
@@ -30895,7 +30894,7 @@ var pb = Object.getOwnPropertyDescriptor, Vb = (i, a, e, t) => {
|
|
|
30895
30894
|
let sa = class extends Ne {
|
|
30896
30895
|
constructor(a, e) {
|
|
30897
30896
|
super();
|
|
30898
|
-
A(this, "_computingCompleted$", new
|
|
30897
|
+
A(this, "_computingCompleted$", new mc((a) => {
|
|
30899
30898
|
this._commandService.onCommandExecuted((e) => {
|
|
30900
30899
|
if (e.id !== Cn.id) return;
|
|
30901
30900
|
const t = e.params;
|
|
@@ -30906,10 +30905,10 @@ let sa = class extends Ne {
|
|
|
30906
30905
|
});
|
|
30907
30906
|
}).pipe(
|
|
30908
30907
|
Ki(),
|
|
30909
|
-
|
|
30908
|
+
gc()
|
|
30910
30909
|
));
|
|
30911
30910
|
this._commandService = a, this._globalComputingSrv = e;
|
|
30912
|
-
const t = new
|
|
30911
|
+
const t = new oc(), r = new qi(!0);
|
|
30913
30912
|
t.add(this._globalComputingSrv.pushComputingStatusSubject(r)), t.add(this._computingCompleted$.subscribe((n) => r.next(n))), t.add(() => r.complete()), this.disposeWithMe(t);
|
|
30914
30913
|
}
|
|
30915
30914
|
};
|
|
@@ -30982,7 +30981,7 @@ vn = Ob([
|
|
|
30982
30981
|
tn(0, sr),
|
|
30983
30982
|
tn(1, Ht),
|
|
30984
30983
|
tn(2, ia),
|
|
30985
|
-
tn(3,
|
|
30984
|
+
tn(3, uc(dc))
|
|
30986
30985
|
], vn);
|
|
30987
30986
|
var Mb = Object.getOwnPropertyDescriptor, wb = (i, a, e, t) => {
|
|
30988
30987
|
for (var r = t > 1 ? void 0 : t ? Mb(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
@@ -31252,10 +31251,10 @@ var Bb = Object.getOwnPropertyDescriptor, Ib = (i, a, e, t) => {
|
|
|
31252
31251
|
}, Hi = (i, a) => (e, t) => a(e, t, i);
|
|
31253
31252
|
const Fb = "UNIVER_ENGINE_FORMULA_PLUGIN";
|
|
31254
31253
|
var Ns;
|
|
31255
|
-
let Gi = (Ns = class extends
|
|
31254
|
+
let Gi = (Ns = class extends cc {
|
|
31256
31255
|
constructor(i = fi, a, e) {
|
|
31257
31256
|
super(), this._config = i, this._injector = a, this._configService = e;
|
|
31258
|
-
const { ...t } =
|
|
31257
|
+
const { ...t } = lc(
|
|
31259
31258
|
{},
|
|
31260
31259
|
fi,
|
|
31261
31260
|
this._config
|
|
@@ -31350,7 +31349,7 @@ export {
|
|
|
31350
31349
|
Do as AstRootNodeFactory,
|
|
31351
31350
|
Ur as AstTreeBuilder,
|
|
31352
31351
|
Ff as AsyncArrayObject,
|
|
31353
|
-
|
|
31352
|
+
zb as AsyncCustomFunction,
|
|
31354
31353
|
If as AsyncObject,
|
|
31355
31354
|
V as BaseFunction,
|
|
31356
31355
|
Xn as BaseReferenceObject,
|
|
@@ -31364,7 +31363,7 @@ export {
|
|
|
31364
31363
|
Ps as DefinedNamesService,
|
|
31365
31364
|
Ph as DependencyManagerBaseService,
|
|
31366
31365
|
xh as DependencyManagerService,
|
|
31367
|
-
|
|
31366
|
+
Xb as ENGINE_FORMULA_CYCLE_REFERENCE_COUNT,
|
|
31368
31367
|
Ca as ENGINE_FORMULA_PLUGIN_CONFIG_KEY,
|
|
31369
31368
|
yr as ERROR_TYPE_SET,
|
|
31370
31369
|
m as ErrorType,
|
|
@@ -31433,7 +31432,7 @@ export {
|
|
|
31433
31432
|
Zc as RemoveSuperTableMutation,
|
|
31434
31433
|
ws as SetArrayFormulaDataMutation,
|
|
31435
31434
|
ca as SetDefinedNameMutation,
|
|
31436
|
-
|
|
31435
|
+
Kb as SetDefinedNameMutationFactory,
|
|
31437
31436
|
la as SetFeatureCalculationMutation,
|
|
31438
31437
|
Cn as SetFormulaCalculationNotificationMutation,
|
|
31439
31438
|
uo as SetFormulaCalculationResultMutation,
|
|
@@ -31476,11 +31475,11 @@ export {
|
|
|
31476
31475
|
Ni as generateExecuteAstNodeData,
|
|
31477
31476
|
or as generateRandomDependencyTreeId,
|
|
31478
31477
|
ui as generateStringWithSequence,
|
|
31479
|
-
|
|
31478
|
+
Wb as getAbsoluteRefTypeWitString,
|
|
31480
31479
|
an as getAbsoluteRefTypeWithSingleString,
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31480
|
+
ey as getObjectValue,
|
|
31481
|
+
qb as getRangeWithRefsString,
|
|
31482
|
+
Zb as handleNumfmtInCell,
|
|
31484
31483
|
ua as handleRefStringInfo,
|
|
31485
31484
|
bc as includeFormulaLexerToken,
|
|
31486
31485
|
li as initSheetFormulaData,
|
|
@@ -31489,9 +31488,9 @@ export {
|
|
|
31489
31488
|
ro as isReferenceString,
|
|
31490
31489
|
on as isReferenceStringWithEffectiveColumn,
|
|
31491
31490
|
Yc as isReferenceStrings,
|
|
31492
|
-
|
|
31491
|
+
Qb as matchRefDrawToken,
|
|
31493
31492
|
K as matchToken,
|
|
31494
|
-
|
|
31493
|
+
Gb as normalizeSheetName,
|
|
31495
31494
|
X as operatorToken,
|
|
31496
31495
|
$e as sequenceNodeType,
|
|
31497
31496
|
Bt as serializeRange,
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
var Wu = Object.defineProperty;
|
|
2
2
|
var qu = (i, a, e) => a in i ? Wu(i, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[a] = e;
|
|
3
3
|
var A = (i, a, e) => qu(i, typeof a != "symbol" ? a + "" : a, e);
|
|
4
|
-
import { ObjectMatrix as Ce, CommandType as Ie, RANGE_TYPE as et, AbsoluteRefType as we, Tools as Ye, createIdentifier as Ze, Disposable as Ne, IUniverInstanceService as $n, LRUMap as Ku, hashAlgorithm as Xu, moveRangeByOffset as aa, isValidRange as Zu, isFormulaString as yt, isFormulaId as Pt, Rectangle as Xa, cellToRange as zu, Inject as ye, UniverInstanceType as ur, BooleanNumber as Qi, LocaleService as Ju, LocaleType as wr, numfmt as dt, BuildTextUtils as ec, isRealNum as Q, CellValueType as Rt,
|
|
5
|
-
import { Subject as cr, BehaviorSubject as qi, distinctUntilChanged as Ki, combineLatest as
|
|
6
|
-
import { isTextFormat as gc } from "@univerjs/engine-numfmt";
|
|
4
|
+
import { ObjectMatrix as Ce, CommandType as Ie, RANGE_TYPE as et, AbsoluteRefType as we, Tools as Ye, createIdentifier as Ze, Disposable as Ne, IUniverInstanceService as $n, LRUMap as Ku, hashAlgorithm as Xu, moveRangeByOffset as aa, isValidRange as Zu, isFormulaString as yt, isFormulaId as Pt, Rectangle as Xa, cellToRange as zu, Inject as ye, UniverInstanceType as ur, BooleanNumber as Qi, LocaleService as Ju, LocaleType as wr, numfmt as dt, BuildTextUtils as ec, isRealNum as Q, CellValueType as Rt, isTextFormat as tc, RichTextBuilder as rc, toDisposable as nc, Injector as Wi, sortRules as sc, RTree as Os, IConfigService as ia, AsyncLock as ac, requestImmediateMacroTask as ic, ICommandService as sr, DataStreamTreeTokenType as ve, DisposableCollection as oc, Optional as uc, Plugin as cc, merge as lc, touchDependencies as cs } from "@univerjs/core";
|
|
5
|
+
import { Subject as cr, BehaviorSubject as qi, distinctUntilChanged as Ki, combineLatest as fc, map as hc, Observable as mc, shareReplay as gc } from "rxjs";
|
|
7
6
|
import { DataSyncPrimaryController as dc } from "@univerjs/rpc";
|
|
8
7
|
var er = /* @__PURE__ */ ((i) => (i.FALSE = "FALSE", i.TRUE = "TRUE", i))(er || {}), xt = /* @__PURE__ */ ((i) => (i[i.SUCCESS = 0] = "SUCCESS", i[i.ERROR = 1] = "ERROR", i))(xt || {}), ct = /* @__PURE__ */ ((i) => (i[i.FRONT = 0] = "FRONT", i[i.BACK = 1] = "BACK", i))(ct || {});
|
|
9
8
|
function Cc(i, a, e, t, r) {
|
|
@@ -66,10 +65,10 @@ function bc(i) {
|
|
|
66
65
|
return !0;
|
|
67
66
|
return !1;
|
|
68
67
|
}
|
|
69
|
-
function
|
|
68
|
+
function Gb(i) {
|
|
70
69
|
return i[0] === "'" && i[i.length - 1] === "'" ? i.substring(1, i.length - 1) : i;
|
|
71
70
|
}
|
|
72
|
-
function
|
|
71
|
+
function Qb(i) {
|
|
73
72
|
return sn(i) && i !== K.CLOSE_BRACES && i !== K.CLOSE_BRACKET && i !== K.SINGLE_QUOTATION && i !== K.DOUBLE_QUOTATION || i === " ";
|
|
74
73
|
}
|
|
75
74
|
const yc = /* @__PURE__ */ new Set([
|
|
@@ -186,7 +185,7 @@ function an(i) {
|
|
|
186
185
|
let t = e.indexOf("$") > -1;
|
|
187
186
|
return Ye.isStringNumber(e) && a && !t && (a = !1, t = !0), a && t ? we.ALL : a ? we.COLUMN : t ? we.ROW : we.NONE;
|
|
188
187
|
}
|
|
189
|
-
function
|
|
188
|
+
function Wb(i) {
|
|
190
189
|
const a = i.split("!");
|
|
191
190
|
a.length > 1 && (i = a[a.length - 1]);
|
|
192
191
|
const e = i.split(":");
|
|
@@ -309,7 +308,7 @@ function no(i) {
|
|
|
309
308
|
}
|
|
310
309
|
return a.join("");
|
|
311
310
|
}
|
|
312
|
-
function
|
|
311
|
+
function qb(i, a) {
|
|
313
312
|
const e = (i == null ? void 0 : i.split(",")) || [];
|
|
314
313
|
return i === "" || e.length === 0 ? [] : Yc(i) ? e.map((n) => {
|
|
315
314
|
const s = Lr(n);
|
|
@@ -452,7 +451,7 @@ let Ps = class extends Ne {
|
|
|
452
451
|
Ps = qc([
|
|
453
452
|
Kc(0, $n)
|
|
454
453
|
], Ps);
|
|
455
|
-
const pr = Ze("univer.formula.defined-names.service"),
|
|
454
|
+
const pr = Ze("univer.formula.defined-names.service"), Kb = (i, a) => {
|
|
456
455
|
const { unitId: e, id: t } = a;
|
|
457
456
|
return {
|
|
458
457
|
...i.get(pr).getValueById(e, t),
|
|
@@ -2401,7 +2400,7 @@ class ol {
|
|
|
2401
2400
|
a.insert([n, s]);
|
|
2402
2401
|
}
|
|
2403
2402
|
}
|
|
2404
|
-
const qe = new ol(), Ca = "engine-formula.config", mo = 1,
|
|
2403
|
+
const qe = new ol(), Ca = "engine-formula.config", mo = 1, Xb = "CYCLE_REFERENCE_COUNT", fi = {};
|
|
2405
2404
|
class ul extends Ne {
|
|
2406
2405
|
constructor() {
|
|
2407
2406
|
super(...arguments);
|
|
@@ -2790,7 +2789,7 @@ const ml = [
|
|
|
2790
2789
|
unknown: 11
|
|
2791
2790
|
/* Custom */
|
|
2792
2791
|
};
|
|
2793
|
-
function
|
|
2792
|
+
function Zb(i, a, e) {
|
|
2794
2793
|
var u, c;
|
|
2795
2794
|
if (i == null || a == null)
|
|
2796
2795
|
return a;
|
|
@@ -6545,7 +6544,7 @@ class Xn extends Yn {
|
|
|
6545
6544
|
return g.create(t);
|
|
6546
6545
|
if (e.t === Rt.NUMBER) {
|
|
6547
6546
|
const r = this._getPatternByCell(e);
|
|
6548
|
-
return
|
|
6547
|
+
return tc(r) ? j.create(t.toString()) : Kn(t, r);
|
|
6549
6548
|
}
|
|
6550
6549
|
return e.t === Rt.STRING || e.t === Rt.FORCE_STRING ? j.create(t.toString()) : e.t === Rt.BOOLEAN ? qn(t) : Vt.create(t);
|
|
6551
6550
|
}
|
|
@@ -7061,7 +7060,7 @@ let Qs = class extends Ne {
|
|
|
7061
7060
|
}
|
|
7062
7061
|
} else Ye.isLegalUrl(i) && (e = Ye.normalizeUrl(i));
|
|
7063
7062
|
return {
|
|
7064
|
-
p:
|
|
7063
|
+
p: rc.create().insertLink(a, e).getData()
|
|
7065
7064
|
};
|
|
7066
7065
|
}
|
|
7067
7066
|
};
|
|
@@ -7669,7 +7668,7 @@ class eh extends Ne {
|
|
|
7669
7668
|
const r = e[t];
|
|
7670
7669
|
this._functionDescriptions.set(r.functionName, r);
|
|
7671
7670
|
}
|
|
7672
|
-
return
|
|
7671
|
+
return nc(() => {
|
|
7673
7672
|
for (let t = 0; t < e.length; t++) {
|
|
7674
7673
|
const r = e[t];
|
|
7675
7674
|
this._functionDescriptions.delete(r.functionName);
|
|
@@ -8745,7 +8744,7 @@ let Ur = class extends Ne {
|
|
|
8745
8744
|
this._suffixNodeFactory,
|
|
8746
8745
|
this._unionNodeFactory,
|
|
8747
8746
|
this._valueNodeFactory
|
|
8748
|
-
].sort(
|
|
8747
|
+
].sort(sc);
|
|
8749
8748
|
}
|
|
8750
8749
|
};
|
|
8751
8750
|
Ur = Lh([
|
|
@@ -10130,7 +10129,7 @@ let Js = class extends Ne {
|
|
|
10130
10129
|
A(this, "executionInProgressListener$", this._executionInProgressListener$.asObservable());
|
|
10131
10130
|
A(this, "_executionCompleteListener$", new cr());
|
|
10132
10131
|
A(this, "executionCompleteListener$", this._executionCompleteListener$.asObservable());
|
|
10133
|
-
A(this, "_executeLock", new
|
|
10132
|
+
A(this, "_executeLock", new ac());
|
|
10134
10133
|
this._configService = a, this._lexer = e, this._currentConfigService = t, this._runtimeService = r, this._formulaDependencyGenerator = n, this._interpreter = s, this._astTreeBuilder = o;
|
|
10135
10134
|
}
|
|
10136
10135
|
dispose() {
|
|
@@ -10215,7 +10214,7 @@ let Js = class extends Ne {
|
|
|
10215
10214
|
for (let u = 0; u < o; u++) {
|
|
10216
10215
|
const c = e[u], l = c.nodeData, f = c.getDirtyData;
|
|
10217
10216
|
if (u % s === 0 && (await new Promise((d) => {
|
|
10218
|
-
const _ =
|
|
10217
|
+
const _ = ic(d);
|
|
10219
10218
|
r.push(_);
|
|
10220
10219
|
}), a ? (this._runtimeService.setFormulaExecuteStage(
|
|
10221
10220
|
Je.CURRENTLY_CALCULATING_ARRAY_FORMULA
|
|
@@ -13441,7 +13440,7 @@ class Dm extends V {
|
|
|
13441
13440
|
return !0;
|
|
13442
13441
|
}
|
|
13443
13442
|
}
|
|
13444
|
-
class
|
|
13443
|
+
class zb extends Dm {
|
|
13445
13444
|
isAsync() {
|
|
13446
13445
|
return !0;
|
|
13447
13446
|
}
|
|
@@ -30826,7 +30825,7 @@ const Ab = [
|
|
|
30826
30825
|
[_b, se.VALUETOTEXT]
|
|
30827
30826
|
], Eb = [];
|
|
30828
30827
|
var bb = /* @__PURE__ */ ((i) => i)(bb || {});
|
|
30829
|
-
function
|
|
30828
|
+
function ey(i) {
|
|
30830
30829
|
return i.isError() ? i.getValue() : i.isReferenceObject() ? i.toArrayValueObject().toValue() : i.isArray() ? i.toValue() : i.getValue();
|
|
30831
30830
|
}
|
|
30832
30831
|
class yb extends V {
|
|
@@ -30884,7 +30883,7 @@ class Gu extends Ne {
|
|
|
30884
30883
|
this._computingStatus$.next(!0);
|
|
30885
30884
|
return;
|
|
30886
30885
|
}
|
|
30887
|
-
this._computingSubscription =
|
|
30886
|
+
this._computingSubscription = fc(this._allSubjects).pipe(hc((t) => t.every((r) => r))).subscribe((t) => this._computingStatus$.next(t));
|
|
30888
30887
|
}
|
|
30889
30888
|
}
|
|
30890
30889
|
var pb = Object.getOwnPropertyDescriptor, Vb = (i, a, e, t) => {
|
|
@@ -30895,7 +30894,7 @@ var pb = Object.getOwnPropertyDescriptor, Vb = (i, a, e, t) => {
|
|
|
30895
30894
|
let sa = class extends Ne {
|
|
30896
30895
|
constructor(a, e) {
|
|
30897
30896
|
super();
|
|
30898
|
-
A(this, "_computingCompleted$", new
|
|
30897
|
+
A(this, "_computingCompleted$", new mc((a) => {
|
|
30899
30898
|
this._commandService.onCommandExecuted((e) => {
|
|
30900
30899
|
if (e.id !== Cn.id) return;
|
|
30901
30900
|
const t = e.params;
|
|
@@ -30906,10 +30905,10 @@ let sa = class extends Ne {
|
|
|
30906
30905
|
});
|
|
30907
30906
|
}).pipe(
|
|
30908
30907
|
Ki(),
|
|
30909
|
-
|
|
30908
|
+
gc()
|
|
30910
30909
|
));
|
|
30911
30910
|
this._commandService = a, this._globalComputingSrv = e;
|
|
30912
|
-
const t = new
|
|
30911
|
+
const t = new oc(), r = new qi(!0);
|
|
30913
30912
|
t.add(this._globalComputingSrv.pushComputingStatusSubject(r)), t.add(this._computingCompleted$.subscribe((n) => r.next(n))), t.add(() => r.complete()), this.disposeWithMe(t);
|
|
30914
30913
|
}
|
|
30915
30914
|
};
|
|
@@ -30982,7 +30981,7 @@ vn = Ob([
|
|
|
30982
30981
|
tn(0, sr),
|
|
30983
30982
|
tn(1, Ht),
|
|
30984
30983
|
tn(2, ia),
|
|
30985
|
-
tn(3,
|
|
30984
|
+
tn(3, uc(dc))
|
|
30986
30985
|
], vn);
|
|
30987
30986
|
var Mb = Object.getOwnPropertyDescriptor, wb = (i, a, e, t) => {
|
|
30988
30987
|
for (var r = t > 1 ? void 0 : t ? Mb(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
@@ -31252,10 +31251,10 @@ var Bb = Object.getOwnPropertyDescriptor, Ib = (i, a, e, t) => {
|
|
|
31252
31251
|
}, Hi = (i, a) => (e, t) => a(e, t, i);
|
|
31253
31252
|
const Fb = "UNIVER_ENGINE_FORMULA_PLUGIN";
|
|
31254
31253
|
var Ns;
|
|
31255
|
-
let Gi = (Ns = class extends
|
|
31254
|
+
let Gi = (Ns = class extends cc {
|
|
31256
31255
|
constructor(i = fi, a, e) {
|
|
31257
31256
|
super(), this._config = i, this._injector = a, this._configService = e;
|
|
31258
|
-
const { ...t } =
|
|
31257
|
+
const { ...t } = lc(
|
|
31259
31258
|
{},
|
|
31260
31259
|
fi,
|
|
31261
31260
|
this._config
|
|
@@ -31350,7 +31349,7 @@ export {
|
|
|
31350
31349
|
Do as AstRootNodeFactory,
|
|
31351
31350
|
Ur as AstTreeBuilder,
|
|
31352
31351
|
Ff as AsyncArrayObject,
|
|
31353
|
-
|
|
31352
|
+
zb as AsyncCustomFunction,
|
|
31354
31353
|
If as AsyncObject,
|
|
31355
31354
|
V as BaseFunction,
|
|
31356
31355
|
Xn as BaseReferenceObject,
|
|
@@ -31364,7 +31363,7 @@ export {
|
|
|
31364
31363
|
Ps as DefinedNamesService,
|
|
31365
31364
|
Ph as DependencyManagerBaseService,
|
|
31366
31365
|
xh as DependencyManagerService,
|
|
31367
|
-
|
|
31366
|
+
Xb as ENGINE_FORMULA_CYCLE_REFERENCE_COUNT,
|
|
31368
31367
|
Ca as ENGINE_FORMULA_PLUGIN_CONFIG_KEY,
|
|
31369
31368
|
yr as ERROR_TYPE_SET,
|
|
31370
31369
|
m as ErrorType,
|
|
@@ -31433,7 +31432,7 @@ export {
|
|
|
31433
31432
|
Zc as RemoveSuperTableMutation,
|
|
31434
31433
|
ws as SetArrayFormulaDataMutation,
|
|
31435
31434
|
ca as SetDefinedNameMutation,
|
|
31436
|
-
|
|
31435
|
+
Kb as SetDefinedNameMutationFactory,
|
|
31437
31436
|
la as SetFeatureCalculationMutation,
|
|
31438
31437
|
Cn as SetFormulaCalculationNotificationMutation,
|
|
31439
31438
|
uo as SetFormulaCalculationResultMutation,
|
|
@@ -31476,11 +31475,11 @@ export {
|
|
|
31476
31475
|
Ni as generateExecuteAstNodeData,
|
|
31477
31476
|
or as generateRandomDependencyTreeId,
|
|
31478
31477
|
ui as generateStringWithSequence,
|
|
31479
|
-
|
|
31478
|
+
Wb as getAbsoluteRefTypeWitString,
|
|
31480
31479
|
an as getAbsoluteRefTypeWithSingleString,
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31480
|
+
ey as getObjectValue,
|
|
31481
|
+
qb as getRangeWithRefsString,
|
|
31482
|
+
Zb as handleNumfmtInCell,
|
|
31484
31483
|
ua as handleRefStringInfo,
|
|
31485
31484
|
bc as includeFormulaLexerToken,
|
|
31486
31485
|
li as initSheetFormulaData,
|
|
@@ -31489,9 +31488,9 @@ export {
|
|
|
31489
31488
|
ro as isReferenceString,
|
|
31490
31489
|
on as isReferenceStringWithEffectiveColumn,
|
|
31491
31490
|
Yc as isReferenceStrings,
|
|
31492
|
-
|
|
31491
|
+
Qb as matchRefDrawToken,
|
|
31493
31492
|
K as matchToken,
|
|
31494
|
-
|
|
31493
|
+
Gb as normalizeSheetName,
|
|
31495
31494
|
X as operatorToken,
|
|
31496
31495
|
$e as sequenceNodeType,
|
|
31497
31496
|
Bt as serializeRange,
|