@univerjs/sheets-conditional-formatting 0.25.0 → 1.0.0-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 (111) hide show
  1. package/lib/cjs/facade.js +4 -4
  2. package/lib/cjs/index.js +263 -166
  3. package/lib/cjs/locale/ar-SA.js +11 -0
  4. package/lib/cjs/locale/ca-ES.js +11 -0
  5. package/lib/cjs/locale/de-DE.js +11 -0
  6. package/lib/cjs/locale/en-US.js +26 -0
  7. package/lib/cjs/locale/es-ES.js +11 -0
  8. package/lib/cjs/locale/fa-IR.js +11 -0
  9. package/lib/cjs/locale/fr-FR.js +11 -0
  10. package/lib/cjs/locale/id-ID.js +11 -0
  11. package/lib/cjs/locale/it-IT.js +11 -0
  12. package/lib/cjs/locale/ja-JP.js +11 -0
  13. package/lib/cjs/locale/ko-KR.js +11 -0
  14. package/lib/cjs/locale/pl-PL.js +11 -0
  15. package/lib/cjs/locale/pt-BR.js +11 -0
  16. package/lib/cjs/locale/ru-RU.js +11 -0
  17. package/lib/cjs/locale/sk-SK.js +11 -0
  18. package/lib/cjs/locale/vi-VN.js +11 -0
  19. package/lib/cjs/locale/zh-CN.js +11 -0
  20. package/lib/cjs/locale/zh-HK.js +11 -0
  21. package/lib/cjs/locale/zh-TW.js +11 -0
  22. package/lib/es/facade.js +4 -4
  23. package/lib/es/index.js +252 -168
  24. package/lib/es/locale/ar-SA.js +10 -0
  25. package/lib/es/locale/ca-ES.js +10 -0
  26. package/lib/es/locale/de-DE.js +10 -0
  27. package/lib/es/locale/en-US.js +25 -0
  28. package/lib/es/locale/es-ES.js +10 -0
  29. package/lib/es/locale/fa-IR.js +10 -0
  30. package/lib/es/locale/fr-FR.js +10 -0
  31. package/lib/es/locale/id-ID.js +10 -0
  32. package/lib/es/locale/it-IT.js +10 -0
  33. package/lib/es/locale/ja-JP.js +10 -0
  34. package/lib/es/locale/ko-KR.js +10 -0
  35. package/lib/es/locale/pl-PL.js +10 -0
  36. package/lib/es/locale/pt-BR.js +10 -0
  37. package/lib/es/locale/ru-RU.js +10 -0
  38. package/lib/es/locale/sk-SK.js +10 -0
  39. package/lib/es/locale/vi-VN.js +10 -0
  40. package/lib/es/locale/zh-CN.js +10 -0
  41. package/lib/es/locale/zh-HK.js +10 -0
  42. package/lib/es/locale/zh-TW.js +10 -0
  43. package/lib/facade.js +4 -4
  44. package/lib/index.js +252 -168
  45. package/lib/locale/ar-SA.js +10 -0
  46. package/lib/locale/ca-ES.js +10 -0
  47. package/lib/locale/de-DE.js +10 -0
  48. package/lib/locale/en-US.js +25 -0
  49. package/lib/locale/es-ES.js +10 -0
  50. package/lib/locale/fa-IR.js +10 -0
  51. package/lib/locale/fr-FR.js +10 -0
  52. package/lib/locale/id-ID.js +10 -0
  53. package/lib/locale/it-IT.js +10 -0
  54. package/lib/locale/ja-JP.js +10 -0
  55. package/lib/locale/ko-KR.js +10 -0
  56. package/lib/locale/pl-PL.js +10 -0
  57. package/lib/locale/pt-BR.js +10 -0
  58. package/lib/locale/ru-RU.js +10 -0
  59. package/lib/locale/sk-SK.js +10 -0
  60. package/lib/locale/vi-VN.js +10 -0
  61. package/lib/locale/zh-CN.js +10 -0
  62. package/lib/locale/zh-HK.js +10 -0
  63. package/lib/locale/zh-TW.js +10 -0
  64. package/lib/types/index.d.ts +23 -11
  65. package/lib/types/{utils/is-ranges-equal.d.ts → locale/ar-SA.d.ts} +3 -1
  66. package/lib/types/locale/ca-ES.d.ts +18 -0
  67. package/lib/types/locale/de-DE.d.ts +18 -0
  68. package/lib/types/locale/en-US.d.ts +26 -0
  69. package/lib/types/locale/es-ES.d.ts +18 -0
  70. package/lib/types/locale/fa-IR.d.ts +18 -0
  71. package/lib/types/locale/fr-FR.d.ts +18 -0
  72. package/lib/types/locale/id-ID.d.ts +18 -0
  73. package/lib/types/locale/it-IT.d.ts +18 -0
  74. package/lib/types/locale/ja-JP.d.ts +18 -0
  75. package/lib/types/locale/ko-KR.d.ts +18 -0
  76. package/lib/types/locale/pl-PL.d.ts +18 -0
  77. package/lib/types/locale/pt-BR.d.ts +18 -0
  78. package/lib/types/locale/ru-RU.d.ts +18 -0
  79. package/lib/types/locale/sk-SK.d.ts +18 -0
  80. package/lib/types/locale/types.d.ts +18 -0
  81. package/lib/types/locale/vi-VN.d.ts +18 -0
  82. package/lib/types/locale/zh-CN.d.ts +18 -0
  83. package/lib/types/locale/zh-HK.d.ts +18 -0
  84. package/lib/types/locale/zh-TW.d.ts +18 -0
  85. package/lib/types/models/conditional-formatting-range-index-model.d.ts +32 -0
  86. package/lib/types/models/conditional-formatting-view-model.d.ts +3 -2
  87. package/lib/types/services/conditional-formatting-range-transform.service.d.ts +27 -0
  88. package/lib/types/services/conditional-formatting-style-composer.service.d.ts +31 -0
  89. package/lib/types/services/conditional-formatting.service.d.ts +7 -7
  90. package/lib/umd/index.js +1 -1
  91. package/lib/umd/locale/ar-SA.js +1 -0
  92. package/lib/umd/locale/ca-ES.js +1 -0
  93. package/lib/umd/locale/de-DE.js +1 -0
  94. package/lib/umd/locale/en-US.js +1 -0
  95. package/lib/umd/locale/es-ES.js +1 -0
  96. package/lib/umd/locale/fa-IR.js +1 -0
  97. package/lib/umd/locale/fr-FR.js +1 -0
  98. package/lib/umd/locale/id-ID.js +1 -0
  99. package/lib/umd/locale/it-IT.js +1 -0
  100. package/lib/umd/locale/ja-JP.js +1 -0
  101. package/lib/umd/locale/ko-KR.js +1 -0
  102. package/lib/umd/locale/pl-PL.js +1 -0
  103. package/lib/umd/locale/pt-BR.js +1 -0
  104. package/lib/umd/locale/ru-RU.js +1 -0
  105. package/lib/umd/locale/sk-SK.js +1 -0
  106. package/lib/umd/locale/vi-VN.js +1 -0
  107. package/lib/umd/locale/zh-CN.js +1 -0
  108. package/lib/umd/locale/zh-HK.js +1 -0
  109. package/lib/umd/locale/zh-TW.js +1 -0
  110. package/package.json +14 -9
  111. package/lib/types/models/calculate-unit-v2/__test__/test.util.d.ts +0 -38
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-conditional-formatting",
3
- "version": "0.25.0",
3
+ "version": "1.0.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "Conditional formatting model, commands, and calculation support for Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -35,6 +35,11 @@
35
35
  "require": "./lib/cjs/*",
36
36
  "types": "./lib/types/index.d.ts"
37
37
  },
38
+ "./locale/*": {
39
+ "import": "./lib/es/locale/*.js",
40
+ "require": "./lib/cjs/locale/*.js",
41
+ "types": "./lib/types/locale/*.d.ts"
42
+ },
38
43
  "./facade": {
39
44
  "import": "./lib/es/facade.js",
40
45
  "require": "./lib/cjs/facade.js",
@@ -62,18 +67,18 @@
62
67
  "rxjs": ">=7.0.0"
63
68
  },
64
69
  "dependencies": {
65
- "@univerjs/core": "0.25.0",
66
- "@univerjs/engine-formula": "0.25.0",
67
- "@univerjs/engine-render": "0.25.0",
68
- "@univerjs/sheets": "0.25.0"
70
+ "@univerjs/core": "1.0.0-alpha.0",
71
+ "@univerjs/engine-formula": "1.0.0-alpha.0",
72
+ "@univerjs/sheets": "1.0.0-alpha.0",
73
+ "@univerjs/engine-render": "1.0.0-alpha.0"
69
74
  },
70
75
  "devDependencies": {
71
- "@univerjs/icons-svg": "^1.4.0",
76
+ "@univerjs/icons-svg": "^1.12.0",
72
77
  "rxjs": "^7.8.2",
73
78
  "typescript": "^6.0.3",
74
- "vitest": "^4.1.7",
75
- "@univerjs-infra/shared": "0.25.0",
76
- "@univerjs/sheets-formula": "0.25.0"
79
+ "vitest": "^4.1.9",
80
+ "@univerjs-infra/shared": "1.0.0-alpha.0",
81
+ "@univerjs/sheets-formula": "1.0.0-alpha.0"
77
82
  },
78
83
  "scripts": {
79
84
  "test": "vitest run",
@@ -1,38 +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
- import type { Dependency } from '@univerjs/core';
17
- import { ICommandService, Univer, UniverInstanceType } from '@univerjs/core';
18
- import { ConditionalFormattingService } from '../../../services/conditional-formatting.service';
19
- import { ConditionalFormattingRuleModel } from '../../conditional-formatting-rule-model';
20
- import { ConditionalFormattingViewModel } from '../../conditional-formatting-view-model';
21
- export declare const createTestBed: (dependencies?: Dependency[]) => {
22
- univer: Univer;
23
- get: {
24
- <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, lookUp?: import("@wendellhu/redi").LookUp): T;
25
- <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import("@wendellhu/redi").LookUp): T[];
26
- <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import("@wendellhu/redi").LookUp): T | null;
27
- <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import("@wendellhu/redi").LookUp): T;
28
- <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, quantity?: import("@wendellhu/redi").Quantity, lookUp?: import("@wendellhu/redi").LookUp): T[] | T | null;
29
- <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, quantityOrLookup?: import("@wendellhu/redi").Quantity | import("@wendellhu/redi").LookUp, lookUp?: import("@wendellhu/redi").LookUp): T[] | T | null;
30
- };
31
- workbook: import("@univerjs/core").UnitModel<object, UniverInstanceType>;
32
- unitId: string;
33
- subUnitId: string;
34
- commandService: ICommandService;
35
- getConditionalFormattingRuleModel: () => ConditionalFormattingRuleModel;
36
- getConditionalFormattingViewModel: () => ConditionalFormattingViewModel;
37
- getConditionalFormattingService: () => ConditionalFormattingService;
38
- };