@univerjs/sheets-formula 0.2.2 → 0.2.4-alpha.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 (72) hide show
  1. package/README.md +13 -7
  2. package/lib/cjs/index.js +4 -4
  3. package/lib/es/index.js +4321 -4196
  4. package/lib/locale/en-US.json +103 -119
  5. package/lib/locale/ru-RU.json +103 -119
  6. package/lib/locale/vi-VN.json +7425 -0
  7. package/lib/locale/zh-CN.json +107 -123
  8. package/lib/locale/zh-TW.json +10292 -0
  9. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +7 -8
  10. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +1 -2
  11. package/lib/types/controllers/formula-clipboard.controller.d.ts +1 -2
  12. package/lib/types/controllers/formula-editor-show.controller.d.ts +7 -3
  13. package/lib/types/controllers/formula-ui.controller.d.ts +2 -2
  14. package/lib/types/controllers/menu.d.ts +1 -1
  15. package/lib/types/controllers/prompt.controller.d.ts +27 -25
  16. package/lib/types/controllers/trigger-calculation.controller.d.ts +4 -0
  17. package/lib/types/controllers/update-formula.controller.d.ts +3 -4
  18. package/lib/types/controllers/utils/ref-range-formula.d.ts +0 -17
  19. package/lib/types/formula-ui-plugin.d.ts +9 -4
  20. package/lib/types/index.d.ts +2 -2
  21. package/lib/types/locale/en-US.d.ts +53 -69
  22. package/lib/types/locale/function-list/array/vi-VN.d.ts +17 -0
  23. package/lib/types/locale/function-list/array/zh-TW.d.ts +17 -0
  24. package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +702 -0
  25. package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +702 -0
  26. package/lib/types/locale/function-list/cube/vi-VN.d.ts +144 -0
  27. package/lib/types/locale/function-list/cube/zh-TW.d.ts +144 -0
  28. package/lib/types/locale/function-list/database/vi-VN.d.ts +234 -0
  29. package/lib/types/locale/function-list/database/zh-TW.d.ts +234 -0
  30. package/lib/types/locale/function-list/date/en-US.d.ts +37 -25
  31. package/lib/types/locale/function-list/date/ja-JP.d.ts +37 -25
  32. package/lib/types/locale/function-list/date/vi-VN.d.ts +379 -0
  33. package/lib/types/locale/function-list/date/zh-CN.d.ts +37 -25
  34. package/lib/types/locale/function-list/date/zh-TW.d.ts +426 -0
  35. package/lib/types/locale/function-list/engineering/vi-VN.d.ts +990 -0
  36. package/lib/types/locale/function-list/engineering/zh-TW.d.ts +990 -0
  37. package/lib/types/locale/function-list/financial/vi-VN.d.ts +954 -0
  38. package/lib/types/locale/function-list/financial/zh-TW.d.ts +1008 -0
  39. package/lib/types/locale/function-list/information/vi-VN.d.ts +3 -0
  40. package/lib/types/locale/function-list/information/zh-TW.d.ts +352 -0
  41. package/lib/types/locale/function-list/logical/vi-VN.d.ts +368 -0
  42. package/lib/types/locale/function-list/logical/zh-TW.d.ts +368 -0
  43. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +188 -0
  44. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +752 -0
  45. package/lib/types/locale/function-list/math/en-US.d.ts +16 -44
  46. package/lib/types/locale/function-list/math/ja-JP.d.ts +16 -44
  47. package/lib/types/locale/function-list/math/vi-VN.d.ts +3 -0
  48. package/lib/types/locale/function-list/math/zh-CN.d.ts +16 -44
  49. package/lib/types/locale/function-list/math/zh-TW.d.ts +1498 -0
  50. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +394 -0
  51. package/lib/types/locale/function-list/statistical/zh-TW.d.ts +2060 -0
  52. package/lib/types/locale/function-list/text/vi-VN.d.ts +650 -0
  53. package/lib/types/locale/function-list/text/zh-TW.d.ts +852 -0
  54. package/lib/types/locale/function-list/univer/vi-VN.d.ts +17 -0
  55. package/lib/types/locale/function-list/univer/zh-TW.d.ts +17 -0
  56. package/lib/types/locale/function-list/web/vi-VN.d.ts +3 -0
  57. package/lib/types/locale/function-list/web/zh-TW.d.ts +72 -0
  58. package/lib/types/locale/ru-RU.d.ts +53 -69
  59. package/lib/types/locale/vi-VN.d.ts +6699 -0
  60. package/lib/types/locale/zh-CN.d.ts +53 -69
  61. package/lib/types/locale/zh-TW.d.ts +9288 -0
  62. package/lib/types/services/description.service.d.ts +2 -3
  63. package/lib/types/services/formula-ref-range.service.d.ts +1 -2
  64. package/lib/types/services/prompt.service.d.ts +2 -11
  65. package/lib/types/services/register-function.service.d.ts +21 -8
  66. package/lib/types/services/register-other-formula.service.d.ts +1 -0
  67. package/lib/types/services/remote/remote-register-function.service.d.ts +17 -0
  68. package/lib/types/services/render-services/ref-selections.render-service.d.ts +36 -0
  69. package/lib/types/views/prompt/resize-scroll-observer.d.ts +18 -0
  70. package/lib/umd/index.js +4 -4
  71. package/package.json +24 -24
  72. package/lib/types/services/formula-custom-function.service.d.ts +0 -19
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
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
+ declare const _default: {};
17
+ export default _default;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
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
+ declare const _default: {};
17
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as enUS } from './en-US';
2
+
3
+ export default enUS;
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
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
+ declare const _default: {
17
+ ENCODEURL: {
18
+ description: string;
19
+ abstract: string;
20
+ links: {
21
+ title: string;
22
+ url: string;
23
+ }[];
24
+ functionParameter: {
25
+ number1: {
26
+ name: string;
27
+ detail: string;
28
+ };
29
+ number2: {
30
+ name: string;
31
+ detail: string;
32
+ };
33
+ };
34
+ };
35
+ FILTERXML: {
36
+ description: string;
37
+ abstract: string;
38
+ links: {
39
+ title: string;
40
+ url: string;
41
+ }[];
42
+ functionParameter: {
43
+ number1: {
44
+ name: string;
45
+ detail: string;
46
+ };
47
+ number2: {
48
+ name: string;
49
+ detail: string;
50
+ };
51
+ };
52
+ };
53
+ WEBSERVICE: {
54
+ description: string;
55
+ abstract: string;
56
+ links: {
57
+ title: string;
58
+ url: string;
59
+ }[];
60
+ functionParameter: {
61
+ number1: {
62
+ name: string;
63
+ detail: string;
64
+ };
65
+ number2: {
66
+ name: string;
67
+ detail: string;
68
+ };
69
+ };
70
+ };
71
+ };
72
+ export default _default;
@@ -6435,11 +6435,7 @@ declare const _default: {
6435
6435
  url: string;
6436
6436
  }[];
6437
6437
  functionParameter: {
6438
- number1: {
6439
- name: string;
6440
- detail: string;
6441
- };
6442
- number2: {
6438
+ number: {
6443
6439
  name: string;
6444
6440
  detail: string;
6445
6441
  };
@@ -6563,11 +6559,15 @@ declare const _default: {
6563
6559
  url: string;
6564
6560
  }[];
6565
6561
  functionParameter: {
6566
- number1: {
6562
+ number: {
6567
6563
  name: string;
6568
6564
  detail: string;
6569
6565
  };
6570
- number2: {
6566
+ radix: {
6567
+ name: string;
6568
+ detail: string;
6569
+ };
6570
+ minLength: {
6571
6571
  name: string;
6572
6572
  detail: string;
6573
6573
  };
@@ -6685,11 +6685,7 @@ declare const _default: {
6685
6685
  url: string;
6686
6686
  }[];
6687
6687
  functionParameter: {
6688
- number1: {
6689
- name: string;
6690
- detail: string;
6691
- };
6692
- number2: {
6688
+ number: {
6693
6689
  name: string;
6694
6690
  detail: string;
6695
6691
  };
@@ -6703,11 +6699,7 @@ declare const _default: {
6703
6699
  url: string;
6704
6700
  }[];
6705
6701
  functionParameter: {
6706
- number1: {
6707
- name: string;
6708
- detail: string;
6709
- };
6710
- number2: {
6702
+ number: {
6711
6703
  name: string;
6712
6704
  detail: string;
6713
6705
  };
@@ -6721,11 +6713,7 @@ declare const _default: {
6721
6713
  url: string;
6722
6714
  }[];
6723
6715
  functionParameter: {
6724
- number1: {
6725
- name: string;
6726
- detail: string;
6727
- };
6728
- number2: {
6716
+ number: {
6729
6717
  name: string;
6730
6718
  detail: string;
6731
6719
  };
@@ -6739,11 +6727,7 @@ declare const _default: {
6739
6727
  url: string;
6740
6728
  }[];
6741
6729
  functionParameter: {
6742
- number1: {
6743
- name: string;
6744
- detail: string;
6745
- };
6746
- number2: {
6730
+ number: {
6747
6731
  name: string;
6748
6732
  detail: string;
6749
6733
  };
@@ -6757,11 +6741,7 @@ declare const _default: {
6757
6741
  url: string;
6758
6742
  }[];
6759
6743
  functionParameter: {
6760
- number1: {
6761
- name: string;
6762
- detail: string;
6763
- };
6764
- number2: {
6744
+ number: {
6765
6745
  name: string;
6766
6746
  detail: string;
6767
6747
  };
@@ -7513,11 +7493,7 @@ declare const _default: {
7513
7493
  url: string;
7514
7494
  }[];
7515
7495
  functionParameter: {
7516
- number1: {
7517
- name: string;
7518
- detail: string;
7519
- };
7520
- number2: {
7496
+ number: {
7521
7497
  name: string;
7522
7498
  detail: string;
7523
7499
  };
@@ -7531,11 +7507,7 @@ declare const _default: {
7531
7507
  url: string;
7532
7508
  }[];
7533
7509
  functionParameter: {
7534
- number1: {
7535
- name: string;
7536
- detail: string;
7537
- };
7538
- number2: {
7510
+ number: {
7539
7511
  name: string;
7540
7512
  detail: string;
7541
7513
  };
@@ -7677,11 +7649,11 @@ declare const _default: {
7677
7649
  url: string;
7678
7650
  }[];
7679
7651
  functionParameter: {
7680
- number1: {
7652
+ array1: {
7681
7653
  name: string;
7682
7654
  detail: string;
7683
7655
  };
7684
- number2: {
7656
+ array2: {
7685
7657
  name: string;
7686
7658
  detail: string;
7687
7659
  };
@@ -7953,11 +7925,7 @@ declare const _default: {
7953
7925
  url: string;
7954
7926
  }[];
7955
7927
  functionParameter: {
7956
- number1: {
7957
- name: string;
7958
- detail: string;
7959
- };
7960
- number2: {
7928
+ serialNumber: {
7961
7929
  name: string;
7962
7930
  detail: string;
7963
7931
  };
@@ -7989,11 +7957,7 @@ declare const _default: {
7989
7957
  url: string;
7990
7958
  }[];
7991
7959
  functionParameter: {
7992
- number1: {
7993
- name: string;
7994
- detail: string;
7995
- };
7996
- number2: {
7960
+ serialNumber: {
7997
7961
  name: string;
7998
7962
  detail: string;
7999
7963
  };
@@ -8021,11 +7985,15 @@ declare const _default: {
8021
7985
  url: string;
8022
7986
  }[];
8023
7987
  functionParameter: {
8024
- number1: {
7988
+ startDate: {
8025
7989
  name: string;
8026
7990
  detail: string;
8027
7991
  };
8028
- number2: {
7992
+ endDate: {
7993
+ name: string;
7994
+ detail: string;
7995
+ };
7996
+ holidays: {
8029
7997
  name: string;
8030
7998
  detail: string;
8031
7999
  };
@@ -8039,11 +8007,19 @@ declare const _default: {
8039
8007
  url: string;
8040
8008
  }[];
8041
8009
  functionParameter: {
8042
- number1: {
8010
+ startDate: {
8043
8011
  name: string;
8044
8012
  detail: string;
8045
8013
  };
8046
- number2: {
8014
+ endDate: {
8015
+ name: string;
8016
+ detail: string;
8017
+ };
8018
+ weekend: {
8019
+ name: string;
8020
+ detail: string;
8021
+ };
8022
+ holidays: {
8047
8023
  name: string;
8048
8024
  detail: string;
8049
8025
  };
@@ -8066,11 +8042,7 @@ declare const _default: {
8066
8042
  url: string;
8067
8043
  }[];
8068
8044
  functionParameter: {
8069
- number1: {
8070
- name: string;
8071
- detail: string;
8072
- };
8073
- number2: {
8045
+ serialNumber: {
8074
8046
  name: string;
8075
8047
  detail: string;
8076
8048
  };
@@ -8129,11 +8101,11 @@ declare const _default: {
8129
8101
  url: string;
8130
8102
  }[];
8131
8103
  functionParameter: {
8132
- number1: {
8104
+ serialNumber: {
8133
8105
  name: string;
8134
8106
  detail: string;
8135
8107
  };
8136
- number2: {
8108
+ returnType: {
8137
8109
  name: string;
8138
8110
  detail: string;
8139
8111
  };
@@ -8165,11 +8137,15 @@ declare const _default: {
8165
8137
  url: string;
8166
8138
  }[];
8167
8139
  functionParameter: {
8168
- number1: {
8140
+ startDate: {
8169
8141
  name: string;
8170
8142
  detail: string;
8171
8143
  };
8172
- number2: {
8144
+ days: {
8145
+ name: string;
8146
+ detail: string;
8147
+ };
8148
+ holidays: {
8173
8149
  name: string;
8174
8150
  detail: string;
8175
8151
  };
@@ -8183,11 +8159,19 @@ declare const _default: {
8183
8159
  url: string;
8184
8160
  }[];
8185
8161
  functionParameter: {
8186
- number1: {
8162
+ startDate: {
8187
8163
  name: string;
8188
8164
  detail: string;
8189
8165
  };
8190
- number2: {
8166
+ days: {
8167
+ name: string;
8168
+ detail: string;
8169
+ };
8170
+ weekend: {
8171
+ name: string;
8172
+ detail: string;
8173
+ };
8174
+ holidays: {
8191
8175
  name: string;
8192
8176
  detail: string;
8193
8177
  };