@univerjs/sheets-conditional-formatting 1.3.0 → 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.
Files changed (69) hide show
  1. package/lib/cjs/facade.js +8 -16
  2. package/lib/cjs/index.js +54 -95
  3. package/lib/cjs/locale/ar-SA.js +1 -2
  4. package/lib/cjs/locale/ca-ES.js +1 -2
  5. package/lib/cjs/locale/de-DE.js +1 -2
  6. package/lib/cjs/locale/en-US.js +1 -2
  7. package/lib/cjs/locale/es-ES.js +1 -2
  8. package/lib/cjs/locale/fa-IR.js +1 -2
  9. package/lib/cjs/locale/fr-FR.js +1 -2
  10. package/lib/cjs/locale/id-ID.js +1 -2
  11. package/lib/cjs/locale/it-IT.js +1 -2
  12. package/lib/cjs/locale/ja-JP.js +1 -2
  13. package/lib/cjs/locale/ko-KR.js +1 -2
  14. package/lib/cjs/locale/pl-PL.js +1 -2
  15. package/lib/cjs/locale/pt-BR.js +1 -2
  16. package/lib/cjs/locale/ru-RU.js +1 -2
  17. package/lib/cjs/locale/sk-SK.js +1 -2
  18. package/lib/cjs/locale/vi-VN.js +1 -2
  19. package/lib/cjs/locale/zh-CN.js +1 -2
  20. package/lib/cjs/locale/zh-HK.js +1 -2
  21. package/lib/cjs/locale/zh-TW.js +1 -2
  22. package/lib/es/facade.js +8 -16
  23. package/lib/es/index.js +54 -95
  24. package/lib/es/locale/ar-SA.js +1 -2
  25. package/lib/es/locale/ca-ES.js +1 -2
  26. package/lib/es/locale/de-DE.js +1 -2
  27. package/lib/es/locale/en-US.js +1 -2
  28. package/lib/es/locale/es-ES.js +1 -2
  29. package/lib/es/locale/fa-IR.js +1 -2
  30. package/lib/es/locale/fr-FR.js +1 -2
  31. package/lib/es/locale/id-ID.js +1 -2
  32. package/lib/es/locale/it-IT.js +1 -2
  33. package/lib/es/locale/ja-JP.js +1 -2
  34. package/lib/es/locale/ko-KR.js +1 -2
  35. package/lib/es/locale/pl-PL.js +1 -2
  36. package/lib/es/locale/pt-BR.js +1 -2
  37. package/lib/es/locale/ru-RU.js +1 -2
  38. package/lib/es/locale/sk-SK.js +1 -2
  39. package/lib/es/locale/vi-VN.js +1 -2
  40. package/lib/es/locale/zh-CN.js +1 -2
  41. package/lib/es/locale/zh-HK.js +1 -2
  42. package/lib/es/locale/zh-TW.js +1 -2
  43. package/lib/facade.js +8 -16
  44. package/lib/index.js +54 -95
  45. package/lib/locale/ar-SA.js +1 -2
  46. package/lib/locale/ca-ES.js +1 -2
  47. package/lib/locale/de-DE.js +1 -2
  48. package/lib/locale/en-US.js +1 -2
  49. package/lib/locale/es-ES.js +1 -2
  50. package/lib/locale/fa-IR.js +1 -2
  51. package/lib/locale/fr-FR.js +1 -2
  52. package/lib/locale/id-ID.js +1 -2
  53. package/lib/locale/it-IT.js +1 -2
  54. package/lib/locale/ja-JP.js +1 -2
  55. package/lib/locale/ko-KR.js +1 -2
  56. package/lib/locale/pl-PL.js +1 -2
  57. package/lib/locale/pt-BR.js +1 -2
  58. package/lib/locale/ru-RU.js +1 -2
  59. package/lib/locale/sk-SK.js +1 -2
  60. package/lib/locale/vi-VN.js +1 -2
  61. package/lib/locale/zh-CN.js +1 -2
  62. package/lib/locale/zh-HK.js +1 -2
  63. package/lib/locale/zh-TW.js +1 -2
  64. package/lib/types/base/const.d.ts +1 -1
  65. package/lib/types/models/calculate-unit-v2/utils.d.ts +1 -1
  66. package/lib/types/services/conditional-formatting-formula.service.d.ts +3 -3
  67. package/lib/types/services/conditional-formatting.service.d.ts +1 -1
  68. package/lib/umd/index.js +1 -1
  69. package/package.json +12 -12
@@ -1,4 +1,4 @@
1
- //#region src/locale/pl-PL.ts
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 };
@@ -1,4 +1,4 @@
1
- //#region src/locale/pt-BR.ts
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 };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ru-RU.ts
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 };
@@ -1,4 +1,4 @@
1
- //#region src/locale/sk-SK.ts
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 };
@@ -1,4 +1,4 @@
1
- //#region src/locale/vi-VN.ts
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 };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-CN.ts
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 };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-HK.ts
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 };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-TW.ts
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) => 10 | "" | [number, number];
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 | void | null | undefined;
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, "id" | "formulaId"> | undefined;
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 | void | null | undefined;
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 | void | null | undefined>;
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["style"];
34
+ style?: import("..").IHighlightCell['style'];
35
35
  } & import("..").IDataBarCellData & import("..").IIconSetCellData & {
36
36
  isShowValue: boolean;
37
37
  }) | null;