@univerjs/engine-formula 1.0.4 → 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.
Files changed (31) hide show
  1. package/lib/cjs/{en-US-DrAfIiBE.js → en-US-BYMYuEpp.js} +15 -15
  2. package/lib/cjs/facade.js +3 -18
  3. package/lib/cjs/index.js +450 -161
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/zh-HK.js +1 -1
  7. package/lib/cjs/locale/zh-TW.js +1 -1
  8. package/lib/cjs/{zh-TW-CvMudVQy.js → zh-TW-B5pYt-NJ.js} +15 -15
  9. package/lib/es/facade.js +3 -18
  10. package/lib/es/index.js +424 -135
  11. package/lib/facade.js +3 -18
  12. package/lib/index.js +424 -135
  13. package/lib/types/basics/common.d.ts +8 -2
  14. package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +2 -1
  15. package/lib/types/config/config.d.ts +0 -2
  16. package/lib/types/engine/dependency/dependency-groups.d.ts +21 -0
  17. package/lib/types/engine/dependency/dependency-tree.d.ts +1 -0
  18. package/lib/types/engine/dependency/formula-dependency.d.ts +1 -1
  19. package/lib/types/facade/f-formula.d.ts +0 -13
  20. package/lib/types/functions/lookup/xlookup/index.d.ts +2 -4
  21. package/lib/types/index.d.ts +4 -2
  22. package/lib/types/models/formula-data.model.d.ts +5 -0
  23. package/lib/types/services/active-dirty-manager.service.d.ts +1 -0
  24. package/lib/types/services/calculate-formula.service.d.ts +34 -2
  25. package/lib/types/services/current-data.service.d.ts +4 -2
  26. package/lib/types/services/formula-calculation-trigger.service.d.ts +5 -0
  27. package/lib/types/services/formula-changeset-calculation.service.d.ts +34 -0
  28. package/lib/types/services/runtime.service.d.ts +36 -2
  29. package/lib/umd/facade.js +1 -1
  30. package/lib/umd/index.js +4 -4
  31. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- const require_en_US = require('../en-US-DrAfIiBE.js');
1
+ const require_en_US = require("../en-US-BYMYuEpp.js");
2
2
 
3
3
  //#region src/locale/en-US.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_en_US = require('../en-US-DrAfIiBE.js');
1
+ const require_en_US = require("../en-US-BYMYuEpp.js");
2
2
 
3
3
  //#region src/locale/fa-IR.ts
4
4
  const locale = { "engine-formula": { functionList: {
@@ -1,4 +1,4 @@
1
- const require_zh_TW = require('../zh-TW-CvMudVQy.js');
1
+ const require_zh_TW = require("../zh-TW-B5pYt-NJ.js");
2
2
 
3
3
  //#region src/locale/zh-HK.ts
4
4
  const locale = { "engine-formula": { functionList: {
@@ -1,4 +1,4 @@
1
- const require_zh_TW = require('../zh-TW-CvMudVQy.js');
1
+ const require_zh_TW = require("../zh-TW-B5pYt-NJ.js");
2
2
 
3
3
  //#region src/locale/zh-TW.ts
4
4
  const locale = { "engine-formula": { functionList: {
@@ -10385,91 +10385,91 @@ const locale = {
10385
10385
  };
10386
10386
 
10387
10387
  //#endregion
10388
- Object.defineProperty(exports, 'locale', {
10388
+ Object.defineProperty(exports, "locale", {
10389
10389
  enumerable: true,
10390
10390
  get: function () {
10391
10391
  return locale;
10392
10392
  }
10393
10393
  });
10394
- Object.defineProperty(exports, 'locale$1', {
10394
+ Object.defineProperty(exports, "locale$1", {
10395
10395
  enumerable: true,
10396
10396
  get: function () {
10397
10397
  return locale$1;
10398
10398
  }
10399
10399
  });
10400
- Object.defineProperty(exports, 'locale$10', {
10400
+ Object.defineProperty(exports, "locale$10", {
10401
10401
  enumerable: true,
10402
10402
  get: function () {
10403
10403
  return locale$10;
10404
10404
  }
10405
10405
  });
10406
- Object.defineProperty(exports, 'locale$11', {
10406
+ Object.defineProperty(exports, "locale$11", {
10407
10407
  enumerable: true,
10408
10408
  get: function () {
10409
10409
  return locale$11;
10410
10410
  }
10411
10411
  });
10412
- Object.defineProperty(exports, 'locale$12', {
10412
+ Object.defineProperty(exports, "locale$12", {
10413
10413
  enumerable: true,
10414
10414
  get: function () {
10415
10415
  return locale$12;
10416
10416
  }
10417
10417
  });
10418
- Object.defineProperty(exports, 'locale$13', {
10418
+ Object.defineProperty(exports, "locale$13", {
10419
10419
  enumerable: true,
10420
10420
  get: function () {
10421
10421
  return locale$13;
10422
10422
  }
10423
10423
  });
10424
- Object.defineProperty(exports, 'locale$14', {
10424
+ Object.defineProperty(exports, "locale$14", {
10425
10425
  enumerable: true,
10426
10426
  get: function () {
10427
10427
  return locale$14;
10428
10428
  }
10429
10429
  });
10430
- Object.defineProperty(exports, 'locale$2', {
10430
+ Object.defineProperty(exports, "locale$2", {
10431
10431
  enumerable: true,
10432
10432
  get: function () {
10433
10433
  return locale$2;
10434
10434
  }
10435
10435
  });
10436
- Object.defineProperty(exports, 'locale$3', {
10436
+ Object.defineProperty(exports, "locale$3", {
10437
10437
  enumerable: true,
10438
10438
  get: function () {
10439
10439
  return locale$3;
10440
10440
  }
10441
10441
  });
10442
- Object.defineProperty(exports, 'locale$4', {
10442
+ Object.defineProperty(exports, "locale$4", {
10443
10443
  enumerable: true,
10444
10444
  get: function () {
10445
10445
  return locale$4;
10446
10446
  }
10447
10447
  });
10448
- Object.defineProperty(exports, 'locale$5', {
10448
+ Object.defineProperty(exports, "locale$5", {
10449
10449
  enumerable: true,
10450
10450
  get: function () {
10451
10451
  return locale$5;
10452
10452
  }
10453
10453
  });
10454
- Object.defineProperty(exports, 'locale$6', {
10454
+ Object.defineProperty(exports, "locale$6", {
10455
10455
  enumerable: true,
10456
10456
  get: function () {
10457
10457
  return locale$6;
10458
10458
  }
10459
10459
  });
10460
- Object.defineProperty(exports, 'locale$7', {
10460
+ Object.defineProperty(exports, "locale$7", {
10461
10461
  enumerable: true,
10462
10462
  get: function () {
10463
10463
  return locale$7;
10464
10464
  }
10465
10465
  });
10466
- Object.defineProperty(exports, 'locale$8', {
10466
+ Object.defineProperty(exports, "locale$8", {
10467
10467
  enumerable: true,
10468
10468
  get: function () {
10469
10469
  return locale$8;
10470
10470
  }
10471
10471
  });
10472
- Object.defineProperty(exports, 'locale$9', {
10472
+ Object.defineProperty(exports, "locale$9", {
10473
10473
  enumerable: true,
10474
10474
  get: function () {
10475
10475
  return locale$9;
package/lib/es/facade.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { FBase, FUniver } from "@univerjs/core/facade";
2
2
  import { ICommandService, IConfigService, Inject, Injector } from "@univerjs/core";
3
- import { ENGINE_FORMULA_CYCLE_REFERENCE_COUNT, ENGINE_FORMULA_RETURN_DEPENDENCY_TREE, FormulaCalculationSessionService, IDefinedNamesService, IFunctionService, ISuperTableService, LexerTreeBuilder, SetCellFormulaDependencyCalculationMutation, SetCellFormulaDependencyCalculationResultMutation, SetFormulaCalculationNotificationMutation, SetFormulaCalculationStartMutation, SetFormulaCalculationStopMutation, SetFormulaDependencyCalculationMutation, SetFormulaDependencyCalculationResultMutation, SetFormulaStringBatchCalculationMutation, SetFormulaStringBatchCalculationResultMutation, SetQueryFormulaDependencyAllMutation, SetQueryFormulaDependencyAllResultMutation, SetQueryFormulaDependencyMutation, SetQueryFormulaDependencyResultMutation, SetTriggerFormulaCalculationStartMutation } from "@univerjs/engine-formula";
3
+ import { ENGINE_FORMULA_RETURN_DEPENDENCY_TREE, FormulaCalculationSessionService, IDefinedNamesService, IFunctionService, ISuperTableService, LexerTreeBuilder, SetCellFormulaDependencyCalculationMutation, SetCellFormulaDependencyCalculationResultMutation, SetFormulaCalculationNotificationMutation, SetFormulaCalculationStartMutation, SetFormulaCalculationStopMutation, SetFormulaDependencyCalculationMutation, SetFormulaDependencyCalculationResultMutation, SetFormulaStringBatchCalculationMutation, SetFormulaStringBatchCalculationResultMutation, SetQueryFormulaDependencyAllMutation, SetQueryFormulaDependencyAllResultMutation, SetQueryFormulaDependencyMutation, SetQueryFormulaDependencyResultMutation, SetTriggerFormulaCalculationStartMutation } from "@univerjs/engine-formula";
4
4
 
5
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/decorateParam.js
5
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
6
6
  function __decorateParam(paramIndex, decorator) {
7
7
  return function(target, key) {
8
8
  decorator(target, key, paramIndex);
@@ -10,7 +10,7 @@ function __decorateParam(paramIndex, decorator) {
10
10
  }
11
11
 
12
12
  //#endregion
13
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/decorate.js
13
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
14
14
  function __decorate(decorators, target, key, desc) {
15
15
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
16
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -193,21 +193,6 @@ let FFormula = class FFormula extends FBase {
193
193
  });
194
194
  }
195
195
  /**
196
- * When a formula contains a circular reference, set the maximum number of iterations for the formula calculation.
197
- * @param {number} maxIteration The maximum number of iterations. The default value is 1.
198
- *
199
- * @example
200
- * ```ts
201
- * // Set the maximum number of iterations for the formula calculation to 5.
202
- * // The default value is 1.
203
- * const formulaEngine = univerAPI.getFormula();
204
- * formulaEngine.setMaxIteration(5);
205
- * ```
206
- */
207
- setMaxIteration(maxIteration) {
208
- this._configService.setConfig(ENGINE_FORMULA_CYCLE_REFERENCE_COUNT, maxIteration);
209
- }
210
- /**
211
196
  * Execute a batch of formulas asynchronously and receive computed results.
212
197
  *
213
198
  * Each formula cell is represented as a string array: