@univerjs/engine-formula 1.0.3 → 1.1.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/{en-US-DrAfIiBE.js → en-US-BYMYuEpp.js} +15 -15
- package/lib/cjs/facade.js +3 -18
- package/lib/cjs/index.js +479 -165
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/cjs/{zh-TW-CvMudVQy.js → zh-TW-B5pYt-NJ.js} +15 -15
- package/lib/es/facade.js +3 -18
- package/lib/es/index.js +453 -139
- package/lib/facade.js +3 -18
- package/lib/index.js +453 -139
- package/lib/types/basics/common.d.ts +8 -2
- package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +4 -2
- package/lib/types/config/config.d.ts +0 -2
- package/lib/types/engine/dependency/dependency-groups.d.ts +21 -0
- package/lib/types/engine/dependency/dependency-tree.d.ts +1 -0
- package/lib/types/engine/dependency/formula-dependency.d.ts +1 -1
- package/lib/types/facade/f-formula.d.ts +0 -13
- package/lib/types/functions/lookup/xlookup/index.d.ts +2 -4
- package/lib/types/index.d.ts +4 -2
- package/lib/types/models/formula-data.model.d.ts +5 -0
- package/lib/types/services/active-dirty-manager.service.d.ts +1 -0
- package/lib/types/services/calculate-formula.service.d.ts +34 -2
- package/lib/types/services/current-data.service.d.ts +4 -2
- package/lib/types/services/formula-calculation-trigger.service.d.ts +5 -0
- package/lib/types/services/formula-changeset-calculation.service.d.ts +34 -0
- package/lib/types/services/runtime.service.d.ts +40 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +4 -4
- package/package.json +5 -5
|
@@ -10610,91 +10610,91 @@ const locale = {
|
|
|
10610
10610
|
};
|
|
10611
10611
|
|
|
10612
10612
|
//#endregion
|
|
10613
|
-
Object.defineProperty(exports,
|
|
10613
|
+
Object.defineProperty(exports, "locale", {
|
|
10614
10614
|
enumerable: true,
|
|
10615
10615
|
get: function () {
|
|
10616
10616
|
return locale;
|
|
10617
10617
|
}
|
|
10618
10618
|
});
|
|
10619
|
-
Object.defineProperty(exports,
|
|
10619
|
+
Object.defineProperty(exports, "locale$1", {
|
|
10620
10620
|
enumerable: true,
|
|
10621
10621
|
get: function () {
|
|
10622
10622
|
return locale$1;
|
|
10623
10623
|
}
|
|
10624
10624
|
});
|
|
10625
|
-
Object.defineProperty(exports,
|
|
10625
|
+
Object.defineProperty(exports, "locale$10", {
|
|
10626
10626
|
enumerable: true,
|
|
10627
10627
|
get: function () {
|
|
10628
10628
|
return locale$10;
|
|
10629
10629
|
}
|
|
10630
10630
|
});
|
|
10631
|
-
Object.defineProperty(exports,
|
|
10631
|
+
Object.defineProperty(exports, "locale$11", {
|
|
10632
10632
|
enumerable: true,
|
|
10633
10633
|
get: function () {
|
|
10634
10634
|
return locale$11;
|
|
10635
10635
|
}
|
|
10636
10636
|
});
|
|
10637
|
-
Object.defineProperty(exports,
|
|
10637
|
+
Object.defineProperty(exports, "locale$12", {
|
|
10638
10638
|
enumerable: true,
|
|
10639
10639
|
get: function () {
|
|
10640
10640
|
return locale$12;
|
|
10641
10641
|
}
|
|
10642
10642
|
});
|
|
10643
|
-
Object.defineProperty(exports,
|
|
10643
|
+
Object.defineProperty(exports, "locale$13", {
|
|
10644
10644
|
enumerable: true,
|
|
10645
10645
|
get: function () {
|
|
10646
10646
|
return locale$13;
|
|
10647
10647
|
}
|
|
10648
10648
|
});
|
|
10649
|
-
Object.defineProperty(exports,
|
|
10649
|
+
Object.defineProperty(exports, "locale$14", {
|
|
10650
10650
|
enumerable: true,
|
|
10651
10651
|
get: function () {
|
|
10652
10652
|
return locale$14;
|
|
10653
10653
|
}
|
|
10654
10654
|
});
|
|
10655
|
-
Object.defineProperty(exports,
|
|
10655
|
+
Object.defineProperty(exports, "locale$2", {
|
|
10656
10656
|
enumerable: true,
|
|
10657
10657
|
get: function () {
|
|
10658
10658
|
return locale$2;
|
|
10659
10659
|
}
|
|
10660
10660
|
});
|
|
10661
|
-
Object.defineProperty(exports,
|
|
10661
|
+
Object.defineProperty(exports, "locale$3", {
|
|
10662
10662
|
enumerable: true,
|
|
10663
10663
|
get: function () {
|
|
10664
10664
|
return locale$3;
|
|
10665
10665
|
}
|
|
10666
10666
|
});
|
|
10667
|
-
Object.defineProperty(exports,
|
|
10667
|
+
Object.defineProperty(exports, "locale$4", {
|
|
10668
10668
|
enumerable: true,
|
|
10669
10669
|
get: function () {
|
|
10670
10670
|
return locale$4;
|
|
10671
10671
|
}
|
|
10672
10672
|
});
|
|
10673
|
-
Object.defineProperty(exports,
|
|
10673
|
+
Object.defineProperty(exports, "locale$5", {
|
|
10674
10674
|
enumerable: true,
|
|
10675
10675
|
get: function () {
|
|
10676
10676
|
return locale$5;
|
|
10677
10677
|
}
|
|
10678
10678
|
});
|
|
10679
|
-
Object.defineProperty(exports,
|
|
10679
|
+
Object.defineProperty(exports, "locale$6", {
|
|
10680
10680
|
enumerable: true,
|
|
10681
10681
|
get: function () {
|
|
10682
10682
|
return locale$6;
|
|
10683
10683
|
}
|
|
10684
10684
|
});
|
|
10685
|
-
Object.defineProperty(exports,
|
|
10685
|
+
Object.defineProperty(exports, "locale$7", {
|
|
10686
10686
|
enumerable: true,
|
|
10687
10687
|
get: function () {
|
|
10688
10688
|
return locale$7;
|
|
10689
10689
|
}
|
|
10690
10690
|
});
|
|
10691
|
-
Object.defineProperty(exports,
|
|
10691
|
+
Object.defineProperty(exports, "locale$8", {
|
|
10692
10692
|
enumerable: true,
|
|
10693
10693
|
get: function () {
|
|
10694
10694
|
return locale$8;
|
|
10695
10695
|
}
|
|
10696
10696
|
});
|
|
10697
|
-
Object.defineProperty(exports,
|
|
10697
|
+
Object.defineProperty(exports, "locale$9", {
|
|
10698
10698
|
enumerable: true,
|
|
10699
10699
|
get: function () {
|
|
10700
10700
|
return locale$9;
|
package/lib/cjs/facade.js
CHANGED
|
@@ -3,7 +3,7 @@ let _univerjs_core_facade = require("@univerjs/core/facade");
|
|
|
3
3
|
let _univerjs_core = require("@univerjs/core");
|
|
4
4
|
let _univerjs_engine_formula = require("@univerjs/engine-formula");
|
|
5
5
|
|
|
6
|
-
//#region \0@oxc-project+runtime@0.
|
|
6
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
7
7
|
function __decorateParam(paramIndex, decorator) {
|
|
8
8
|
return function(target, key) {
|
|
9
9
|
decorator(target, key, paramIndex);
|
|
@@ -11,7 +11,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
|
-
//#region \0@oxc-project+runtime@0.
|
|
14
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
15
15
|
function __decorate(decorators, target, key, desc) {
|
|
16
16
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17
17
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -194,21 +194,6 @@ let FFormula = class FFormula extends _univerjs_core_facade.FBase {
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
/**
|
|
197
|
-
* When a formula contains a circular reference, set the maximum number of iterations for the formula calculation.
|
|
198
|
-
* @param {number} maxIteration The maximum number of iterations. The default value is 1.
|
|
199
|
-
*
|
|
200
|
-
* @example
|
|
201
|
-
* ```ts
|
|
202
|
-
* // Set the maximum number of iterations for the formula calculation to 5.
|
|
203
|
-
* // The default value is 1.
|
|
204
|
-
* const formulaEngine = univerAPI.getFormula();
|
|
205
|
-
* formulaEngine.setMaxIteration(5);
|
|
206
|
-
* ```
|
|
207
|
-
*/
|
|
208
|
-
setMaxIteration(maxIteration) {
|
|
209
|
-
this._configService.setConfig(_univerjs_engine_formula.ENGINE_FORMULA_CYCLE_REFERENCE_COUNT, maxIteration);
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
197
|
* Execute a batch of formulas asynchronously and receive computed results.
|
|
213
198
|
*
|
|
214
199
|
* Each formula cell is represented as a string array:
|
|
@@ -704,7 +689,7 @@ var FUniverEngineFormulaMixin = class extends _univerjs_core_facade.FUniver {
|
|
|
704
689
|
_univerjs_core_facade.FUniver.extend(FUniverEngineFormulaMixin);
|
|
705
690
|
|
|
706
691
|
//#endregion
|
|
707
|
-
Object.defineProperty(exports,
|
|
692
|
+
Object.defineProperty(exports, "FFormula", {
|
|
708
693
|
enumerable: true,
|
|
709
694
|
get: function () {
|
|
710
695
|
return FFormula;
|