@univerjs/sheets-conditional-formatting 1.3.1 → 1.4.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.
- package/lib/cjs/facade.js +8 -16
- package/lib/cjs/index.js +54 -95
- package/lib/cjs/locale/ar-SA.js +1 -2
- package/lib/cjs/locale/ca-ES.js +1 -2
- package/lib/cjs/locale/de-DE.js +1 -2
- package/lib/cjs/locale/en-US.js +1 -2
- package/lib/cjs/locale/es-ES.js +1 -2
- package/lib/cjs/locale/fa-IR.js +1 -2
- package/lib/cjs/locale/fr-FR.js +1 -2
- package/lib/cjs/locale/id-ID.js +1 -2
- package/lib/cjs/locale/it-IT.js +1 -2
- package/lib/cjs/locale/ja-JP.js +1 -2
- package/lib/cjs/locale/ko-KR.js +1 -2
- package/lib/cjs/locale/pl-PL.js +1 -2
- package/lib/cjs/locale/pt-BR.js +1 -2
- package/lib/cjs/locale/ru-RU.js +1 -2
- package/lib/cjs/locale/sk-SK.js +1 -2
- package/lib/cjs/locale/vi-VN.js +1 -2
- package/lib/cjs/locale/zh-CN.js +1 -2
- package/lib/cjs/locale/zh-HK.js +1 -2
- package/lib/cjs/locale/zh-TW.js +1 -2
- package/lib/es/facade.js +8 -16
- package/lib/es/index.js +54 -95
- package/lib/es/locale/ar-SA.js +1 -2
- package/lib/es/locale/ca-ES.js +1 -2
- package/lib/es/locale/de-DE.js +1 -2
- package/lib/es/locale/en-US.js +1 -2
- package/lib/es/locale/es-ES.js +1 -2
- package/lib/es/locale/fa-IR.js +1 -2
- package/lib/es/locale/fr-FR.js +1 -2
- package/lib/es/locale/id-ID.js +1 -2
- package/lib/es/locale/it-IT.js +1 -2
- package/lib/es/locale/ja-JP.js +1 -2
- package/lib/es/locale/ko-KR.js +1 -2
- package/lib/es/locale/pl-PL.js +1 -2
- package/lib/es/locale/pt-BR.js +1 -2
- package/lib/es/locale/ru-RU.js +1 -2
- package/lib/es/locale/sk-SK.js +1 -2
- package/lib/es/locale/vi-VN.js +1 -2
- package/lib/es/locale/zh-CN.js +1 -2
- package/lib/es/locale/zh-HK.js +1 -2
- package/lib/es/locale/zh-TW.js +1 -2
- package/lib/facade.js +8 -16
- package/lib/index.js +54 -95
- package/lib/locale/ar-SA.js +1 -2
- package/lib/locale/ca-ES.js +1 -2
- package/lib/locale/de-DE.js +1 -2
- package/lib/locale/en-US.js +1 -2
- package/lib/locale/es-ES.js +1 -2
- package/lib/locale/fa-IR.js +1 -2
- package/lib/locale/fr-FR.js +1 -2
- package/lib/locale/id-ID.js +1 -2
- package/lib/locale/it-IT.js +1 -2
- package/lib/locale/ja-JP.js +1 -2
- package/lib/locale/ko-KR.js +1 -2
- package/lib/locale/pl-PL.js +1 -2
- package/lib/locale/pt-BR.js +1 -2
- package/lib/locale/ru-RU.js +1 -2
- package/lib/locale/sk-SK.js +1 -2
- package/lib/locale/vi-VN.js +1 -2
- package/lib/locale/zh-CN.js +1 -2
- package/lib/locale/zh-HK.js +1 -2
- package/lib/locale/zh-TW.js +1 -2
- package/lib/types/base/const.d.ts +1 -1
- package/lib/types/models/calculate-unit-v2/utils.d.ts +1 -1
- package/lib/types/services/conditional-formatting-formula.service.d.ts +3 -3
- package/lib/types/services/conditional-formatting.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
package/lib/locale/pl-PL.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/pl-PL.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "Kierunek",
|
|
4
4
|
shape: "Kształt",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "Ranga"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/pt-BR.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "Direção",
|
|
4
4
|
shape: "Forma",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "Classificação"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ru-RU.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "Направление",
|
|
4
4
|
shape: "Форма",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "Ранг"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/sk-SK.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "Smer",
|
|
4
4
|
shape: "Tvar",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "Poradie"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/vi-VN.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "Hướng",
|
|
4
4
|
shape: "Hình dạng",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "Hạng"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-CN.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "方向",
|
|
4
4
|
shape: "形状",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "等级"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-HK.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "方向",
|
|
4
4
|
shape: "形狀",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "等級"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-TW.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "方向",
|
|
4
4
|
shape: "形狀",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "等級"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
|
@@ -76,5 +76,5 @@ export declare enum CFValueType {
|
|
|
76
76
|
export declare const DEFAULT_BG_COLOR = "#fff";
|
|
77
77
|
export declare const DEFAULT_FONT_COLOR = "#000000";
|
|
78
78
|
export declare const createDefaultRule: () => IConditionFormattingRule;
|
|
79
|
-
export declare const createDefaultValue: (subType: CFSubRuleType, operator: CFTextOperator | CFNumberOperator | CFTimePeriodOperator) =>
|
|
79
|
+
export declare const createDefaultValue: (subType: CFSubRuleType, operator: CFTextOperator | CFNumberOperator | CFTimePeriodOperator) => "" | 10 | [number, number];
|
|
80
80
|
export declare const createDefaultValueByValueType: (type: CFValueType, defaultValue?: number) => number | "" | "=";
|
|
@@ -29,7 +29,7 @@ export declare const getValueByType: (value: IValueConfig, matrix: ObjectMatrix<
|
|
|
29
29
|
status: FormulaResultStatus;
|
|
30
30
|
result?: undefined;
|
|
31
31
|
} | {
|
|
32
|
-
result: string | number | boolean |
|
|
32
|
+
result: void | string | number | boolean | null | undefined;
|
|
33
33
|
status: FormulaResultStatus;
|
|
34
34
|
};
|
|
35
35
|
export declare const getCacheStyleMatrix: <S = any>(unitId: string, subUnitId: string, rule: IConditionFormattingRule, context: IContext) => ObjectMatrix<S>;
|
|
@@ -42,21 +42,21 @@ export declare class ConditionalFormattingFormulaService extends Disposable {
|
|
|
42
42
|
private _registerRuleFormulas;
|
|
43
43
|
private _initFormulaResultChange;
|
|
44
44
|
private _ensureSubunitFormulaMap;
|
|
45
|
-
getSubUnitFormulaMap(unitId: string, subUnitId: string): RefAlias<IFormulaItem, "
|
|
45
|
+
getSubUnitFormulaMap(unitId: string, subUnitId: string): RefAlias<IFormulaItem, "formulaId" | "id"> | undefined;
|
|
46
46
|
registerFormulaWithRange(unitId: string, subUnitId: string, cfId: string, formulaText: string, ranges?: IRange[]): void;
|
|
47
47
|
private _removeFormulaByCfId;
|
|
48
48
|
getFormulaResultWithCoords(unitId: string, subUnitId: string, cfId: string, formulaText: string, row?: number, col?: number): {
|
|
49
49
|
status: FormulaResultStatus;
|
|
50
50
|
result?: undefined;
|
|
51
51
|
} | {
|
|
52
|
-
result: string | number | boolean |
|
|
52
|
+
result: void | string | number | boolean | null | undefined;
|
|
53
53
|
status: FormulaResultStatus;
|
|
54
54
|
};
|
|
55
55
|
getFormulaMatrix(unitId: string, subUnitId: string, cfId: string, formulaText: string): {
|
|
56
56
|
status: FormulaResultStatus;
|
|
57
57
|
result?: undefined;
|
|
58
58
|
} | {
|
|
59
|
-
result: ObjectMatrix<string | number | boolean |
|
|
59
|
+
result: ObjectMatrix<void | string | number | boolean | null | undefined>;
|
|
60
60
|
status: FormulaResultStatus;
|
|
61
61
|
};
|
|
62
62
|
private _getCellValue;
|
|
@@ -31,7 +31,7 @@ export declare class ConditionalFormattingService extends Disposable {
|
|
|
31
31
|
get _conditionalFormattingViewModelV2(): ConditionalFormattingViewModel;
|
|
32
32
|
constructor(_conditionalFormattingRuleModel: ConditionalFormattingRuleModel, _conditionalFormattingRangeIndexModel: ConditionalFormattingRangeIndexModel, _conditionalFormattingStyleComposer: ConditionalFormattingStyleComposer, _injector: Injector, _univerInstanceService: IUniverInstanceService, _resourceManagerService: IResourceManagerService, _sheetInterceptorService: SheetInterceptorService, _commandService: ICommandService);
|
|
33
33
|
composeStyle(unitId: string, subUnitId: string, row: number, col: number): ({
|
|
34
|
-
style?: import("..").IHighlightCell[
|
|
34
|
+
style?: import("..").IHighlightCell['style'];
|
|
35
35
|
} & import("..").IDataBarCellData & import("..").IIconSetCellData & {
|
|
36
36
|
isShowValue: boolean;
|
|
37
37
|
}) | null;
|