@univerjs/sheets-formula 0.17.0 → 0.18.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 (118) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -170
  16. package/lib/es/index.js +1 -16600
  17. package/lib/es/locale/ca-ES.js +1 -14
  18. package/lib/es/locale/en-US.js +1 -14
  19. package/lib/es/locale/es-ES.js +1 -14
  20. package/lib/es/locale/fa-IR.js +1 -14
  21. package/lib/es/locale/fr-FR.js +1 -14
  22. package/lib/es/locale/ja-JP.js +1 -14
  23. package/lib/es/locale/ko-KR.js +1 -14
  24. package/lib/es/locale/ru-RU.js +1 -14
  25. package/lib/es/locale/sk-SK.js +1 -14
  26. package/lib/es/locale/vi-VN.js +1 -14
  27. package/lib/es/locale/zh-CN.js +1 -14
  28. package/lib/es/locale/zh-TW.js +1 -14
  29. package/lib/facade.js +1 -170
  30. package/lib/index.js +1 -16600
  31. package/lib/locale/ca-ES.js +1 -14
  32. package/lib/locale/en-US.js +1 -14
  33. package/lib/locale/es-ES.js +1 -14
  34. package/lib/locale/fa-IR.js +1 -14
  35. package/lib/locale/fr-FR.js +1 -14
  36. package/lib/locale/ja-JP.js +1 -14
  37. package/lib/locale/ko-KR.js +1 -14
  38. package/lib/locale/ru-RU.js +1 -14
  39. package/lib/locale/sk-SK.js +1 -14
  40. package/lib/locale/vi-VN.js +1 -14
  41. package/lib/locale/zh-CN.js +1 -14
  42. package/lib/locale/zh-TW.js +1 -14
  43. package/lib/types/commands/commands/insert-function.command.d.ts +16 -1
  44. package/lib/types/commands/commands/quick-sum.command.d.ts +16 -1
  45. package/lib/types/config/config.d.ts +17 -2
  46. package/lib/types/controllers/active-dirty.controller.d.ts +15 -0
  47. package/lib/types/controllers/array-formula-cell-interceptor.controller.d.ts +15 -0
  48. package/lib/types/controllers/defined-name.controller.d.ts +15 -0
  49. package/lib/types/controllers/formula-auto-fill.controller.d.ts +16 -1
  50. package/lib/types/controllers/formula.controller.d.ts +15 -0
  51. package/lib/types/controllers/image-formula-cell-interceptor.controller.d.ts +15 -0
  52. package/lib/types/controllers/super-table.controller.d.ts +15 -0
  53. package/lib/types/controllers/trigger-calculation.controller.d.ts +16 -1
  54. package/lib/types/controllers/update-defined-name.controller.d.ts +15 -0
  55. package/lib/types/controllers/update-formula.controller.d.ts +15 -0
  56. package/lib/types/controllers/utils/offset-formula-data.d.ts +17 -2
  57. package/lib/types/controllers/utils/ref-range-formula.d.ts +17 -2
  58. package/lib/types/controllers/utils/ref-range-move.d.ts +17 -2
  59. package/lib/types/controllers/utils/ref-range-param.d.ts +17 -2
  60. package/lib/types/facade/f-enum.d.ts +15 -0
  61. package/lib/types/facade/f-formula.d.ts +18 -3
  62. package/lib/types/facade/f-range.d.ts +16 -1
  63. package/lib/types/facade/f-univer.d.ts +17 -2
  64. package/lib/types/facade/f-workbook.d.ts +16 -1
  65. package/lib/types/locale/ca-ES.d.ts +16 -1
  66. package/lib/types/locale/es-ES.d.ts +16 -1
  67. package/lib/types/locale/fa-IR.d.ts +16 -1
  68. package/lib/types/locale/fr-FR.d.ts +16 -1
  69. package/lib/types/locale/ja-JP.d.ts +16 -1
  70. package/lib/types/locale/ko-KR.d.ts +16 -1
  71. package/lib/types/locale/ru-RU.d.ts +16 -1
  72. package/lib/types/locale/sk-SK.d.ts +16 -1
  73. package/lib/types/locale/vi-VN.d.ts +16 -1
  74. package/lib/types/locale/zh-CN.d.ts +16 -1
  75. package/lib/types/locale/zh-TW.d.ts +16 -1
  76. package/lib/types/plugin.d.ts +16 -1
  77. package/lib/types/services/description.service.d.ts +20 -3
  78. package/lib/types/services/formula-ref-range.service.d.ts +19 -2
  79. package/lib/types/services/function-list/array.d.ts +16 -1
  80. package/lib/types/services/function-list/compatibility.d.ts +16 -1
  81. package/lib/types/services/function-list/cube.d.ts +16 -1
  82. package/lib/types/services/function-list/database.d.ts +16 -1
  83. package/lib/types/services/function-list/date.d.ts +16 -1
  84. package/lib/types/services/function-list/engineering.d.ts +16 -1
  85. package/lib/types/services/function-list/financial.d.ts +16 -1
  86. package/lib/types/services/function-list/function-list.d.ts +16 -1
  87. package/lib/types/services/function-list/information.d.ts +16 -1
  88. package/lib/types/services/function-list/logical.d.ts +16 -1
  89. package/lib/types/services/function-list/lookup.d.ts +16 -1
  90. package/lib/types/services/function-list/math.d.ts +16 -1
  91. package/lib/types/services/function-list/statistical.d.ts +16 -1
  92. package/lib/types/services/function-list/text.d.ts +16 -1
  93. package/lib/types/services/function-list/univer.d.ts +16 -1
  94. package/lib/types/services/function-list/web.d.ts +16 -1
  95. package/lib/types/services/register-function.service.d.ts +20 -3
  96. package/lib/types/services/remote/remote-register-function.service.d.ts +16 -1
  97. package/lib/types/services/utils.d.ts +17 -2
  98. package/lib/types/util/calculate.d.ts +17 -2
  99. package/lib/umd/facade.js +1 -1
  100. package/lib/umd/index.js +1 -1
  101. package/lib/umd/locale/ca-ES.js +1 -1
  102. package/lib/umd/locale/en-US.js +1 -1
  103. package/lib/umd/locale/es-ES.js +1 -1
  104. package/lib/umd/locale/fa-IR.js +1 -1
  105. package/lib/umd/locale/fr-FR.js +1 -1
  106. package/lib/umd/locale/ja-JP.js +1 -1
  107. package/lib/umd/locale/ko-KR.js +1 -1
  108. package/lib/umd/locale/ru-RU.js +1 -1
  109. package/lib/umd/locale/sk-SK.js +1 -1
  110. package/lib/umd/locale/vi-VN.js +1 -1
  111. package/lib/umd/locale/zh-CN.js +1 -1
  112. package/lib/umd/locale/zh-TW.js +1 -1
  113. package/package.json +12 -11
  114. package/lib/types/services/__test__/description.service.spec.d.ts +0 -16
  115. package/lib/types/services/__test__/formula-ref.spec.d.ts +0 -16
  116. package/lib/types/services/__test__/register-function.service.spec.d.ts +0 -16
  117. package/lib/types/services/__test__/util.d.ts +0 -7
  118. package/lib/types/services/__test__/utils.spec.d.ts +0 -16
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaCaES=n())})(this,(function(){"use strict";return{formula:{progress:{analyzing:"Analitzant",calculating:"Calculant","array-analysis":"Anàlisi de matriu","array-calculation":"Càlcul de matriu",done:"Fet"}}}}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsFormulaCaES=t())})(this,function(){return{formula:{progress:{analyzing:`Analitzant`,calculating:`Calculant`,"array-analysis":`Anàlisi de matriu`,"array-calculation":`Càlcul de matriu`,done:`Fet`}}}});
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaEnUS=n())})(this,(function(){"use strict";return{formula:{progress:{analyzing:"Analyzing",calculating:"Calculating","array-analysis":"Array Analysis","array-calculation":"Array Calculation",done:"Done"}}}}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsFormulaEnUS=t())})(this,function(){return{formula:{progress:{analyzing:`Analyzing`,calculating:`Calculating`,"array-analysis":`Array Analysis`,"array-calculation":`Array Calculation`,done:`Done`}}}});
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaEsES=n())})(this,(function(){"use strict";return{formula:{progress:{analyzing:"Analizando",calculating:"Calculando","array-analysis":"Análisis de matriz","array-calculation":"Cálculo de matriz",done:"Hecho"}}}}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsFormulaEsES=t())})(this,function(){return{formula:{progress:{analyzing:`Analizando`,calculating:`Calculando`,"array-analysis":`Análisis de matriz`,"array-calculation":`Cálculo de matriz`,done:`Hecho`}}}});
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaFaIR=n())})(this,(function(){"use strict";return{formula:{progress:{analyzing:"در حال تحلیل",calculating:"در حال محاسبه","array-analysis":"تحلیل آرایه","array-calculation":"محاسبه آرایه",done:"تمام"}}}}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsFormulaFaIR=t())})(this,function(){return{formula:{progress:{analyzing:`در حال تحلیل`,calculating:`در حال محاسبه`,"array-analysis":`تحلیل آرایه`,"array-calculation":`محاسبه آرایه`,done:`تمام`}}}});
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaFrFR=n())})(this,(function(){"use strict";return{formula:{progress:{analyzing:"Analyse en cours",calculating:"Calcul en cours","array-analysis":"Analyse de tableau","array-calculation":"Calcul de tableau",done:"Terminé"}}}}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsFormulaFrFR=t())})(this,function(){return{formula:{progress:{analyzing:`Analyse en cours`,calculating:`Calcul en cours`,"array-analysis":`Analyse de tableau`,"array-calculation":`Calcul de tableau`,done:`Terminé`}}}});
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaJaJP=n())})(this,(function(){"use strict";return{formula:{progress:{analyzing:"解析中",calculating:"計算中","array-analysis":"配列の解析","array-calculation":"配列の計算",done:"完了"}}}}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsFormulaJaJP=t())})(this,function(){return{formula:{progress:{analyzing:`解析中`,calculating:`計算中`,"array-analysis":`配列の解析`,"array-calculation":`配列の計算`,done:`完了`}}}});
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaKoKR=n())})(this,(function(){"use strict";return{formula:{progress:{analyzing:"분석 중",calculating:"계산 ","array-analysis":"배열 분석","array-calculation":"배열 계산",done:"완료"}}}}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsFormulaKoKR=t())})(this,function(){return{formula:{progress:{analyzing:`분석 중`,calculating:`계산 중`,"array-analysis":`배열 분석`,"array-calculation":`배열 계산`,done:`완료`}}}});
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaRuRU=n())})(this,(function(){"use strict";return{formula:{progress:{analyzing:"Анализ",calculating:"Вычисление","array-analysis":"Анализ массива","array-calculation":"Вычисление массива",done:"Готово"}}}}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsFormulaRuRU=t())})(this,function(){return{formula:{progress:{analyzing:`Анализ`,calculating:`Вычисление`,"array-analysis":`Анализ массива`,"array-calculation":`Вычисление массива`,done:`Готово`}}}});
@@ -1 +1 @@
1
- (function(e,o){typeof exports=="object"&&typeof module<"u"?module.exports=o():typeof define=="function"&&define.amd?define(o):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaSkSK=o())})(this,(function(){"use strict";return{formula:{progress:{analyzing:"Analyzovanie",calculating:"Výpočet","array-analysis":"Analýza poľa","array-calculation":"Výpočet poľa",done:"Hotovo"}}}}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsFormulaSkSK=t())})(this,function(){return{formula:{progress:{analyzing:`Analyzovanie`,calculating:`Výpočet`,"array-analysis":`Analýza poľa`,"array-calculation":`Výpočet poľa`,done:`Hotovo`}}}});
@@ -1 +1 @@
1
- (function(n,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(n=typeof globalThis<"u"?globalThis:n||self,n.UniverSheetsFormulaViVN=e())})(this,(function(){"use strict";return{formula:{progress:{analyzing:"Đang phân tích",calculating:"Đang tính toán","array-analysis":"Phân tích mảng","array-calculation":"Tính toán mảng",done:"Hoàn tất"}}}}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsFormulaViVN=t())})(this,function(){return{formula:{progress:{analyzing:`Đang phân tích`,calculating:`Đang tính toán`,"array-analysis":`Phân tích mảng`,"array-calculation":`Tính toán mảng`,done:`Hoàn tất`}}}});
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaZhCN=n())})(this,(function(){"use strict";return{formula:{progress:{analyzing:"分析中",calculating:"计算中","array-analysis":"数组分析","array-calculation":"数组计算",done:"完成"}}}}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsFormulaZhCN=t())})(this,function(){return{formula:{progress:{analyzing:`分析中`,calculating:`计算中`,"array-analysis":`数组分析`,"array-calculation":`数组计算`,done:`完成`}}}});
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaZhTW=n())})(this,(function(){"use strict";return{formula:{progress:{analyzing:"分析中",calculating:"計算中","array-analysis":"陣列分析","array-calculation":"陣列計算",done:"完成"}}}}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsFormulaZhTW=t())})(this,function(){return{formula:{progress:{analyzing:`分析中`,calculating:`計算中`,"array-analysis":`陣列分析`,"array-calculation":`陣列計算`,done:`完成`}}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-formula",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "private": false,
5
5
  "author": "DreamNum <developer@univer.ai>",
6
6
  "license": "Apache-2.0",
@@ -62,26 +62,27 @@
62
62
  "rxjs": ">=7.0.0"
63
63
  },
64
64
  "dependencies": {
65
- "@univerjs/engine-formula": "0.17.0",
66
- "@univerjs/sheets": "0.17.0",
67
- "@univerjs/rpc": "0.17.0",
68
- "@univerjs/core": "0.17.0"
65
+ "@univerjs/rpc": "0.18.0",
66
+ "@univerjs/engine-formula": "0.18.0",
67
+ "@univerjs/core": "0.18.0",
68
+ "@univerjs/sheets": "0.18.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "rxjs": "^7.8.2",
72
72
  "typescript": "^5.9.3",
73
- "vite": "^7.3.1",
74
- "vitest": "^4.0.18",
75
- "@univerjs-infra/shared": "0.17.0",
76
- "@univerjs/engine-render": "0.17.0",
77
- "@univerjs/docs": "0.17.0"
73
+ "vitest": "^4.1.0",
74
+ "@univerjs/docs": "0.18.0",
75
+ "@univerjs/engine-render": "0.18.0",
76
+ "@univerjs-infra/shared": "0.18.0"
78
77
  },
79
78
  "scripts": {
80
79
  "test": "vitest run",
81
80
  "test:watch": "vitest",
82
81
  "coverage": "vitest run --coverage",
83
82
  "typecheck": "tsc --noEmit",
84
- "build": "univer-cli build"
83
+ "build:bundle": "univer-cli build",
84
+ "build:types": "tsc -p tsconfig.node.json",
85
+ "build": "pnpm run build:bundle && pnpm run build:types"
85
86
  },
86
87
  "module": "./lib/es/index.js"
87
88
  }
@@ -1,16 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- export {};
@@ -1,16 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- export {};
@@ -1,16 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- export {};
@@ -1,7 +0,0 @@
1
- import { Dependency, IWorkbookData, Workbook, Injector, Univer } from '@univerjs/core';
2
- export interface ITestBed {
3
- univer: Univer;
4
- get: Injector['get'];
5
- sheet: Workbook;
6
- }
7
- export declare function createCommandTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): ITestBed;
@@ -1,16 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- export {};