@univerjs/sheets-conditional-formatting 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.
- package/lib/cjs/facade.js +4 -4
- package/lib/cjs/index.js +263 -181
- package/lib/cjs/locale/ar-SA.js +11 -0
- package/lib/cjs/locale/ca-ES.js +11 -0
- package/lib/cjs/locale/de-DE.js +11 -0
- package/lib/cjs/locale/en-US.js +26 -0
- package/lib/cjs/locale/es-ES.js +11 -0
- package/lib/cjs/locale/fa-IR.js +11 -0
- package/lib/cjs/locale/fr-FR.js +11 -0
- package/lib/cjs/locale/id-ID.js +11 -0
- package/lib/cjs/locale/it-IT.js +11 -0
- package/lib/cjs/locale/ja-JP.js +11 -0
- package/lib/cjs/locale/ko-KR.js +11 -0
- package/lib/cjs/locale/pl-PL.js +11 -0
- package/lib/cjs/locale/pt-BR.js +11 -0
- package/lib/cjs/locale/ru-RU.js +11 -0
- package/lib/cjs/locale/sk-SK.js +11 -0
- package/lib/cjs/locale/vi-VN.js +11 -0
- package/lib/cjs/locale/zh-CN.js +11 -0
- package/lib/cjs/locale/zh-HK.js +11 -0
- package/lib/cjs/locale/zh-TW.js +11 -0
- package/lib/es/facade.js +4 -4
- package/lib/es/index.js +252 -183
- package/lib/es/locale/ar-SA.js +10 -0
- package/lib/es/locale/ca-ES.js +10 -0
- package/lib/es/locale/de-DE.js +10 -0
- package/lib/es/locale/en-US.js +25 -0
- package/lib/es/locale/es-ES.js +10 -0
- package/lib/es/locale/fa-IR.js +10 -0
- package/lib/es/locale/fr-FR.js +10 -0
- package/lib/es/locale/id-ID.js +10 -0
- package/lib/es/locale/it-IT.js +10 -0
- package/lib/es/locale/ja-JP.js +10 -0
- package/lib/es/locale/ko-KR.js +10 -0
- package/lib/es/locale/pl-PL.js +10 -0
- package/lib/es/locale/pt-BR.js +10 -0
- package/lib/es/locale/ru-RU.js +10 -0
- package/lib/es/locale/sk-SK.js +10 -0
- package/lib/es/locale/vi-VN.js +10 -0
- package/lib/es/locale/zh-CN.js +10 -0
- package/lib/es/locale/zh-HK.js +10 -0
- package/lib/es/locale/zh-TW.js +10 -0
- package/lib/facade.js +4 -4
- package/lib/index.js +252 -183
- package/lib/locale/ar-SA.js +10 -0
- package/lib/locale/ca-ES.js +10 -0
- package/lib/locale/de-DE.js +10 -0
- package/lib/locale/en-US.js +25 -0
- package/lib/locale/es-ES.js +10 -0
- package/lib/locale/fa-IR.js +10 -0
- package/lib/locale/fr-FR.js +10 -0
- package/lib/locale/id-ID.js +10 -0
- package/lib/locale/it-IT.js +10 -0
- package/lib/locale/ja-JP.js +10 -0
- package/lib/locale/ko-KR.js +10 -0
- package/lib/locale/pl-PL.js +10 -0
- package/lib/locale/pt-BR.js +10 -0
- package/lib/locale/ru-RU.js +10 -0
- package/lib/locale/sk-SK.js +10 -0
- package/lib/locale/vi-VN.js +10 -0
- package/lib/locale/zh-CN.js +10 -0
- package/lib/locale/zh-HK.js +10 -0
- package/lib/locale/zh-TW.js +10 -0
- package/lib/types/index.d.ts +23 -11
- package/lib/types/{utils/is-ranges-equal.d.ts → locale/ar-SA.d.ts} +3 -1
- package/lib/types/locale/ca-ES.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +26 -0
- package/lib/types/locale/es-ES.d.ts +18 -0
- package/lib/types/locale/fa-IR.d.ts +18 -0
- package/lib/types/locale/fr-FR.d.ts +18 -0
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/ja-JP.d.ts +18 -0
- package/lib/types/locale/ko-KR.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/ru-RU.d.ts +18 -0
- package/lib/types/locale/sk-SK.d.ts +18 -0
- package/lib/types/locale/types.d.ts +18 -0
- package/lib/types/locale/vi-VN.d.ts +18 -0
- package/lib/types/locale/zh-CN.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/types/locale/zh-TW.d.ts +18 -0
- package/lib/types/models/conditional-formatting-range-index-model.d.ts +32 -0
- package/lib/types/models/conditional-formatting-view-model.d.ts +3 -2
- package/lib/types/models/icon-map.d.ts +2 -1
- package/lib/types/services/conditional-formatting-range-transform.service.d.ts +27 -0
- package/lib/types/services/conditional-formatting-style-composer.service.d.ts +31 -0
- package/lib/types/services/conditional-formatting.service.d.ts +7 -7
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/es-ES.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/fr-FR.js +1 -0
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -0
- package/lib/umd/locale/ko-KR.js +1 -0
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/sk-SK.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +14 -9
- 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.
|
|
3
|
+
"version": "1.0.0-alpha.1",
|
|
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.
|
|
66
|
-
"@univerjs/engine-
|
|
67
|
-
"@univerjs/
|
|
68
|
-
"@univerjs/
|
|
70
|
+
"@univerjs/core": "1.0.0-alpha.1",
|
|
71
|
+
"@univerjs/engine-render": "1.0.0-alpha.1",
|
|
72
|
+
"@univerjs/sheets": "1.0.0-alpha.1",
|
|
73
|
+
"@univerjs/engine-formula": "1.0.0-alpha.1"
|
|
69
74
|
},
|
|
70
75
|
"devDependencies": {
|
|
71
|
-
"@univerjs/icons-svg": "^1.
|
|
76
|
+
"@univerjs/icons-svg": "^1.14.0",
|
|
72
77
|
"rxjs": "^7.8.2",
|
|
73
78
|
"typescript": "^6.0.3",
|
|
74
|
-
"vitest": "^4.1.
|
|
75
|
-
"@univerjs/
|
|
76
|
-
"@univerjs-
|
|
79
|
+
"vitest": "^4.1.9",
|
|
80
|
+
"@univerjs-infra/shared": "1.0.0-alpha.1",
|
|
81
|
+
"@univerjs/sheets-formula": "1.0.0-alpha.1"
|
|
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
|
-
};
|