@univerjs/sheets-formula 0.25.1 → 1.0.0-alpha.1

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 (91) hide show
  1. package/lib/cjs/en-US-B2EwEnJA.js +26 -0
  2. package/lib/cjs/en-US-Daqu9lkO.js +10582 -0
  3. package/lib/cjs/index.js +133 -90
  4. package/lib/cjs/locale/ar-SA.js +28 -10533
  5. package/lib/cjs/locale/ca-ES.js +26 -17
  6. package/lib/cjs/locale/de-DE.js +28 -10533
  7. package/lib/cjs/locale/en-US.js +27 -10532
  8. package/lib/cjs/locale/es-ES.js +26 -17
  9. package/lib/cjs/locale/fa-IR.js +58 -10563
  10. package/lib/cjs/locale/fr-FR.js +57 -10544
  11. package/lib/cjs/locale/id-ID.js +28 -10533
  12. package/lib/cjs/locale/it-IT.js +28 -10533
  13. package/lib/cjs/locale/ja-JP.js +26 -17
  14. package/lib/cjs/locale/ko-KR.js +26 -17
  15. package/lib/cjs/locale/pl-PL.js +28 -10533
  16. package/lib/cjs/locale/pt-BR.js +28 -10533
  17. package/lib/cjs/locale/ru-RU.js +41 -50
  18. package/lib/cjs/locale/sk-SK.js +26 -17
  19. package/lib/cjs/locale/vi-VN.js +26 -17
  20. package/lib/cjs/locale/zh-CN.js +26 -17
  21. package/lib/cjs/locale/zh-HK.js +28 -10533
  22. package/lib/cjs/locale/zh-TW.js +26 -17
  23. package/lib/en-US-CjsBUOZB.js +10498 -0
  24. package/lib/en-US-Kon3m8fM.js +20 -0
  25. package/lib/es/en-US-CjsBUOZB.js +10498 -0
  26. package/lib/es/en-US-Kon3m8fM.js +20 -0
  27. package/lib/es/index.js +133 -90
  28. package/lib/es/locale/ar-SA.js +28 -10532
  29. package/lib/es/locale/ca-ES.js +26 -17
  30. package/lib/es/locale/de-DE.js +28 -10532
  31. package/lib/es/locale/en-US.js +27 -10531
  32. package/lib/es/locale/es-ES.js +26 -17
  33. package/lib/es/locale/fa-IR.js +59 -10563
  34. package/lib/es/locale/fr-FR.js +58 -10544
  35. package/lib/es/locale/id-ID.js +28 -10532
  36. package/lib/es/locale/it-IT.js +28 -10532
  37. package/lib/es/locale/ja-JP.js +26 -17
  38. package/lib/es/locale/ko-KR.js +26 -17
  39. package/lib/es/locale/pl-PL.js +28 -10532
  40. package/lib/es/locale/pt-BR.js +28 -10532
  41. package/lib/es/locale/ru-RU.js +42 -50
  42. package/lib/es/locale/sk-SK.js +26 -17
  43. package/lib/es/locale/vi-VN.js +26 -17
  44. package/lib/es/locale/zh-CN.js +26 -17
  45. package/lib/es/locale/zh-HK.js +28 -10532
  46. package/lib/es/locale/zh-TW.js +26 -17
  47. package/lib/index.js +133 -90
  48. package/lib/locale/ar-SA.js +28 -10532
  49. package/lib/locale/ca-ES.js +26 -17
  50. package/lib/locale/de-DE.js +28 -10532
  51. package/lib/locale/en-US.js +27 -10531
  52. package/lib/locale/es-ES.js +26 -17
  53. package/lib/locale/fa-IR.js +59 -10563
  54. package/lib/locale/fr-FR.js +58 -10544
  55. package/lib/locale/id-ID.js +28 -10532
  56. package/lib/locale/it-IT.js +28 -10532
  57. package/lib/locale/ja-JP.js +26 -17
  58. package/lib/locale/ko-KR.js +26 -17
  59. package/lib/locale/pl-PL.js +28 -10532
  60. package/lib/locale/pt-BR.js +28 -10532
  61. package/lib/locale/ru-RU.js +42 -50
  62. package/lib/locale/sk-SK.js +26 -17
  63. package/lib/locale/vi-VN.js +26 -17
  64. package/lib/locale/zh-CN.js +26 -17
  65. package/lib/locale/zh-HK.js +28 -10532
  66. package/lib/locale/zh-TW.js +26 -17
  67. package/lib/types/controllers/array-formula-cell-interceptor.controller.d.ts +4 -2
  68. package/lib/types/index.d.ts +4 -3
  69. package/lib/types/locale/en-US.d.ts +7 -0
  70. package/lib/types/locale/types.d.ts +18 -0
  71. package/lib/umd/index.js +1 -1
  72. package/lib/umd/locale/ar-SA.js +1 -1
  73. package/lib/umd/locale/ca-ES.js +1 -1
  74. package/lib/umd/locale/de-DE.js +1 -1
  75. package/lib/umd/locale/en-US.js +1 -1
  76. package/lib/umd/locale/es-ES.js +1 -1
  77. package/lib/umd/locale/fa-IR.js +1 -1
  78. package/lib/umd/locale/fr-FR.js +1 -1
  79. package/lib/umd/locale/id-ID.js +1 -1
  80. package/lib/umd/locale/it-IT.js +1 -1
  81. package/lib/umd/locale/ja-JP.js +1 -1
  82. package/lib/umd/locale/ko-KR.js +1 -1
  83. package/lib/umd/locale/pl-PL.js +1 -1
  84. package/lib/umd/locale/pt-BR.js +1 -1
  85. package/lib/umd/locale/ru-RU.js +1 -1
  86. package/lib/umd/locale/sk-SK.js +1 -1
  87. package/lib/umd/locale/vi-VN.js +1 -1
  88. package/lib/umd/locale/zh-CN.js +1 -1
  89. package/lib/umd/locale/zh-HK.js +1 -1
  90. package/lib/umd/locale/zh-TW.js +1 -1
  91. package/package.json +9 -9
@@ -10290,23 +10290,32 @@ const locale$1 = {
10290
10290
 
10291
10291
  //#endregion
10292
10292
  //#region src/locale/zh-TW.ts
10293
- const locale = { "sheets-formula": { functionList: {
10294
- ...locale$15,
10295
- ...locale$14,
10296
- ...locale$13,
10297
- ...locale$12,
10298
- ...locale$11,
10299
- ...locale$10,
10300
- ...locale$9,
10301
- ...locale$8,
10302
- ...locale$7,
10303
- ...locale$6,
10304
- ...locale$5,
10305
- ...locale$4,
10306
- ...locale$3,
10307
- ...locale$2,
10308
- ...locale$1
10309
- } } };
10293
+ const locale = { "sheets-formula": {
10294
+ progress: {
10295
+ analyzing: "正在分析公式...",
10296
+ calculating: "正在計算公式...",
10297
+ "array-analysis": "正在分析陣列公式...",
10298
+ "array-calculation": "正在計算陣列公式...",
10299
+ done: "完成"
10300
+ },
10301
+ functionList: {
10302
+ ...locale$15,
10303
+ ...locale$14,
10304
+ ...locale$13,
10305
+ ...locale$12,
10306
+ ...locale$11,
10307
+ ...locale$10,
10308
+ ...locale$9,
10309
+ ...locale$8,
10310
+ ...locale$7,
10311
+ ...locale$6,
10312
+ ...locale$5,
10313
+ ...locale$4,
10314
+ ...locale$3,
10315
+ ...locale$2,
10316
+ ...locale$1
10317
+ }
10318
+ } };
10310
10319
 
10311
10320
  //#endregion
10312
10321
  export { locale as default };
@@ -13,22 +13,24 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { Disposable, ICommandService, IConfigService } from '@univerjs/core';
16
+ import { Disposable, ICommandService, IConfigService, IUniverInstanceService } from '@univerjs/core';
17
17
  import { FormulaDataModel, IDefinedNamesService, IFunctionService, LexerTreeBuilder } from '@univerjs/engine-formula';
18
18
  import { SheetInterceptorService } from '@univerjs/sheets';
19
19
  export declare class ArrayFormulaCellInterceptorController extends Disposable {
20
20
  private readonly _commandService;
21
21
  private readonly _configService;
22
+ private readonly _univerInstanceService;
22
23
  private _sheetInterceptorService;
23
24
  private readonly _formulaDataModel;
24
25
  private readonly _lexerTreeBuilder;
25
26
  private readonly _functionService;
26
27
  private readonly _definedNamesService;
27
- constructor(_commandService: ICommandService, _configService: IConfigService, _sheetInterceptorService: SheetInterceptorService, _formulaDataModel: FormulaDataModel, _lexerTreeBuilder: LexerTreeBuilder, _functionService: IFunctionService, _definedNamesService: IDefinedNamesService);
28
+ constructor(_commandService: ICommandService, _configService: IConfigService, _univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService, _formulaDataModel: FormulaDataModel, _lexerTreeBuilder: LexerTreeBuilder, _functionService: IFunctionService, _definedNamesService: IDefinedNamesService);
28
29
  private _initialize;
29
30
  private _commandExecutedListener;
30
31
  private _addPrefixToDefinedNamesFunctionSnapshot;
31
32
  private _addPrefixToFunctionSnapshot;
33
+ private _forEachSheetSnapshotData;
32
34
  private _writeArrayFormulaToSnapshot;
33
35
  private _initInterceptorCellContent;
34
36
  }
@@ -13,7 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export { type IInsertFunction, type IInsertFunctionCommandParams, InsertFunctionCommand } from './commands/commands/insert-function.command';
16
+ export { InsertFunctionCommand } from './commands/commands/insert-function.command';
17
+ export type { IInsertFunction, IInsertFunctionCommandParams } from './commands/commands/insert-function.command';
17
18
  export { QuickSumCommand } from './commands/commands/quick-sum.command';
18
19
  export { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from './config/config';
19
20
  export type { IUniverSheetsFormulaBaseConfig, IUniverSheetsFormulaRemoteConfig } from './config/config';
@@ -29,9 +30,9 @@ export type { ISearchItem, ISearchItemWithType } from './services/description.se
29
30
  export { FormulaCalculationSessionService } from './services/formula-calculation-session.service';
30
31
  export type { IFormulaCalculationSessionState } from './services/formula-calculation-session.service';
31
32
  export { FormulaRefRangeService } from './services/formula-ref-range.service';
32
- export type { IRegisterAsyncFunction, IRegisterFunction, ISingleFunctionRegisterParams } from './services/register-function.service';
33
+ export type { IRegisterAsyncFunction, IRegisterFunction, ISingleFunctionRegisterParams, } from './services/register-function.service';
33
34
  export type { IRegisterFunctionParams, IUnregisterFunctionParams } from './services/register-function.service';
34
35
  export { RegisterFunctionService } from './services/register-function.service';
35
36
  export { IRegisterFunctionService } from './services/register-function.service';
36
- export { IRemoteRegisterFunctionService, RemoteRegisterFunctionService } from './services/remote/remote-register-function.service';
37
+ export { IRemoteRegisterFunctionService, RemoteRegisterFunctionService, } from './services/remote/remote-register-function.service';
37
38
  export { calculateFormula } from './util/calculate';
@@ -15,6 +15,13 @@
15
15
  */
16
16
  declare const locale: {
17
17
  'sheets-formula': {
18
+ progress: {
19
+ analyzing: string;
20
+ calculating: string;
21
+ 'array-analysis': string;
22
+ 'array-calculation': string;
23
+ done: string;
24
+ };
18
25
  functionList: {
19
26
  ENCODEURL: {
20
27
  description: string;
@@ -0,0 +1,18 @@
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
+ import type { LocaleLeafKeys } from '@univerjs/core';
17
+ import type enUS from './en-US';
18
+ export type LocaleKey = LocaleLeafKeys<typeof enUS>;