@univerjs/engine-formula 1.0.0-rc.0 → 1.0.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 (45) hide show
  1. package/lib/cjs/{en-US-x6yRGjN6.js → en-US-DrAfIiBE.js} +0 -1
  2. package/lib/cjs/facade.js +6 -2
  3. package/lib/cjs/index.js +1195 -792
  4. package/lib/cjs/locale/ar-SA.js +0 -1
  5. package/lib/cjs/locale/ca-ES.js +0 -1
  6. package/lib/cjs/locale/de-DE.js +0 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +0 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +0 -1
  11. package/lib/cjs/locale/id-ID.js +0 -1
  12. package/lib/cjs/locale/it-IT.js +0 -1
  13. package/lib/cjs/locale/ja-JP.js +0 -1
  14. package/lib/cjs/locale/ko-KR.js +0 -1
  15. package/lib/cjs/locale/pl-PL.js +0 -1
  16. package/lib/cjs/locale/pt-BR.js +0 -1
  17. package/lib/cjs/locale/ru-RU.js +0 -1
  18. package/lib/cjs/locale/sk-SK.js +0 -1
  19. package/lib/cjs/locale/vi-VN.js +0 -1
  20. package/lib/cjs/locale/zh-CN.js +0 -1
  21. package/lib/cjs/locale/zh-HK.js +1 -1
  22. package/lib/cjs/locale/zh-TW.js +1 -1
  23. package/lib/cjs/{zh-TW-vwS1qqtd.js → zh-TW-CvMudVQy.js} +0 -1
  24. package/lib/es/facade.js +6 -2
  25. package/lib/es/index.js +1194 -791
  26. package/lib/facade.js +6 -2
  27. package/lib/index.js +1194 -791
  28. package/lib/types/basics/common.d.ts +3 -1
  29. package/lib/types/basics/inverted-index-cache.d.ts +1 -0
  30. package/lib/types/basics/regex.d.ts +7 -7
  31. package/lib/types/basics/runtime.d.ts +11 -0
  32. package/lib/types/engine/ast-node/prefix-node.d.ts +4 -1
  33. package/lib/types/engine/ast-node/reference-node.d.ts +1 -1
  34. package/lib/types/engine/dependency/formula-dependency.d.ts +1 -1
  35. package/lib/types/engine/reference-object/table-reference-object.d.ts +1 -0
  36. package/lib/types/engine/utils/compare.d.ts +2 -1
  37. package/lib/types/engine/utils/object-compare.d.ts +1 -0
  38. package/lib/types/facade/f-formula.d.ts +4 -0
  39. package/lib/types/facade/f-univer.d.ts +9 -0
  40. package/lib/types/services/current-data.service.d.ts +1 -0
  41. package/lib/types/services/runtime.service.d.ts +3 -0
  42. package/lib/types/services/sheet-row-filtered.service.d.ts +5 -3
  43. package/lib/types/services/unit-reference-resolver.service.d.ts +3 -1
  44. package/lib/umd/index.js +4 -4
  45. package/package.json +6 -6
@@ -1,4 +1,3 @@
1
-
2
1
  //#region src/locale/function-list/array/en-US.ts
3
2
  /**
4
3
  * Copyright 2023-present DreamNum Co., Ltd.
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.140.0/helpers/esm/decorateParam.js
6
+ //#region \0@oxc-project+runtime@0.149.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.140.0/helpers/esm/decorate.js
14
+ //#region \0@oxc-project+runtime@0.149.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);
@@ -152,6 +152,8 @@ let FFormula = class FFormula extends _univerjs_core_facade.FBase {
152
152
  }
153
153
  /**
154
154
  * Listens for formula results after every affected model has applied them.
155
+ * @param {(result: ISetFormulaCalculationResultMutation) => void} callback Receives each applied formula result asynchronously.
156
+ * @returns {IDisposable} A disposable that unsubscribes from future result notifications.
155
157
  */
156
158
  calculationResultApplied(callback) {
157
159
  const subscription = this._injector.get(_univerjs_engine_formula.FormulaCalculationSessionService).resultApplied$.subscribe((result) => {
@@ -165,6 +167,8 @@ let FFormula = class FFormula extends _univerjs_core_facade.FBase {
165
167
  }
166
168
  /**
167
169
  * Waits until the latest formula-calculation results have been applied.
170
+ * @param {number} [timeout] Maximum wait in milliseconds. Omit to wait without an overall timeout.
171
+ * @returns {Promise<void>} Resolves when the latest calculation results have been applied; rejects if the supplied timeout expires.
168
172
  */
169
173
  onCalculationResultApplied(timeout) {
170
174
  return this._injector.get(_univerjs_engine_formula.FormulaCalculationSessionService).waitForLatestApplied(timeout);