@cool-office/sheets-conditional-formatting 0.0.0-stage → 1.2.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 (151) hide show
  1. package/LICENSE +176 -0
  2. package/README.md +49 -2
  3. package/lib/cjs/facade.js +2237 -0
  4. package/lib/cjs/index.js +3211 -0
  5. package/lib/cjs/locale/ar-SA.js +10 -0
  6. package/lib/cjs/locale/ca-ES.js +10 -0
  7. package/lib/cjs/locale/de-DE.js +10 -0
  8. package/lib/cjs/locale/en-US.js +25 -0
  9. package/lib/cjs/locale/es-ES.js +10 -0
  10. package/lib/cjs/locale/fa-IR.js +10 -0
  11. package/lib/cjs/locale/fr-FR.js +10 -0
  12. package/lib/cjs/locale/id-ID.js +10 -0
  13. package/lib/cjs/locale/it-IT.js +10 -0
  14. package/lib/cjs/locale/ja-JP.js +10 -0
  15. package/lib/cjs/locale/ko-KR.js +10 -0
  16. package/lib/cjs/locale/pl-PL.js +10 -0
  17. package/lib/cjs/locale/pt-BR.js +10 -0
  18. package/lib/cjs/locale/ru-RU.js +10 -0
  19. package/lib/cjs/locale/sk-SK.js +10 -0
  20. package/lib/cjs/locale/vi-VN.js +10 -0
  21. package/lib/cjs/locale/zh-CN.js +10 -0
  22. package/lib/cjs/locale/zh-HK.js +10 -0
  23. package/lib/cjs/locale/zh-TW.js +10 -0
  24. package/lib/es/facade.js +2236 -0
  25. package/lib/es/index.js +3116 -0
  26. package/lib/es/locale/ar-SA.js +10 -0
  27. package/lib/es/locale/ca-ES.js +10 -0
  28. package/lib/es/locale/de-DE.js +10 -0
  29. package/lib/es/locale/en-US.js +25 -0
  30. package/lib/es/locale/es-ES.js +10 -0
  31. package/lib/es/locale/fa-IR.js +10 -0
  32. package/lib/es/locale/fr-FR.js +10 -0
  33. package/lib/es/locale/id-ID.js +10 -0
  34. package/lib/es/locale/it-IT.js +10 -0
  35. package/lib/es/locale/ja-JP.js +10 -0
  36. package/lib/es/locale/ko-KR.js +10 -0
  37. package/lib/es/locale/pl-PL.js +10 -0
  38. package/lib/es/locale/pt-BR.js +10 -0
  39. package/lib/es/locale/ru-RU.js +10 -0
  40. package/lib/es/locale/sk-SK.js +10 -0
  41. package/lib/es/locale/vi-VN.js +10 -0
  42. package/lib/es/locale/zh-CN.js +10 -0
  43. package/lib/es/locale/zh-HK.js +10 -0
  44. package/lib/es/locale/zh-TW.js +10 -0
  45. package/lib/facade.js +2236 -0
  46. package/lib/index.js +3116 -0
  47. package/lib/locale/ar-SA.js +10 -0
  48. package/lib/locale/ca-ES.js +10 -0
  49. package/lib/locale/de-DE.js +10 -0
  50. package/lib/locale/en-US.js +25 -0
  51. package/lib/locale/es-ES.js +10 -0
  52. package/lib/locale/fa-IR.js +10 -0
  53. package/lib/locale/fr-FR.js +10 -0
  54. package/lib/locale/id-ID.js +10 -0
  55. package/lib/locale/it-IT.js +10 -0
  56. package/lib/locale/ja-JP.js +10 -0
  57. package/lib/locale/ko-KR.js +10 -0
  58. package/lib/locale/pl-PL.js +10 -0
  59. package/lib/locale/pt-BR.js +10 -0
  60. package/lib/locale/ru-RU.js +10 -0
  61. package/lib/locale/sk-SK.js +10 -0
  62. package/lib/locale/vi-VN.js +10 -0
  63. package/lib/locale/zh-CN.js +10 -0
  64. package/lib/locale/zh-HK.js +10 -0
  65. package/lib/locale/zh-TW.js +10 -0
  66. package/lib/types/assets/icon-map.d.ts +79 -0
  67. package/lib/types/base/const.d.ts +80 -0
  68. package/lib/types/commands/commands/add-cf.command.d.ts +24 -0
  69. package/lib/types/commands/commands/clear-range-cf.command.d.ts +24 -0
  70. package/lib/types/commands/commands/clear-worksheet-cf.command.d.ts +21 -0
  71. package/lib/types/commands/commands/delete-cf.command.d.ts +22 -0
  72. package/lib/types/commands/commands/move-cf.command.d.ts +24 -0
  73. package/lib/types/commands/commands/set-cf.command.d.ts +24 -0
  74. package/lib/types/commands/mutations/add-conditional-rule.mutation.d.ts +28 -0
  75. package/lib/types/commands/mutations/delete-conditional-rule.mutation.d.ts +23 -0
  76. package/lib/types/commands/mutations/formula-mark-dirty.mutation.d.ts +24 -0
  77. package/lib/types/commands/mutations/move-conditional-rule.mutation.d.ts +28 -0
  78. package/lib/types/commands/mutations/set-conditional-rule.mutation.d.ts +28 -0
  79. package/lib/types/config/config.d.ts +20 -0
  80. package/lib/types/facade/f-conditional-formatting-builder.d.ts +1709 -0
  81. package/lib/types/facade/f-enum.d.ts +48 -0
  82. package/lib/types/facade/f-range.d.ts +99 -0
  83. package/lib/types/facade/f-worksheet.d.ts +180 -0
  84. package/lib/types/facade/index.d.ts +21 -0
  85. package/lib/types/index.d.ts +55 -0
  86. package/lib/types/locale/ar-SA.d.ts +18 -0
  87. package/lib/types/locale/ca-ES.d.ts +18 -0
  88. package/lib/types/locale/de-DE.d.ts +18 -0
  89. package/lib/types/locale/en-US.d.ts +26 -0
  90. package/lib/types/locale/es-ES.d.ts +18 -0
  91. package/lib/types/locale/fa-IR.d.ts +18 -0
  92. package/lib/types/locale/fr-FR.d.ts +18 -0
  93. package/lib/types/locale/id-ID.d.ts +18 -0
  94. package/lib/types/locale/it-IT.d.ts +18 -0
  95. package/lib/types/locale/ja-JP.d.ts +18 -0
  96. package/lib/types/locale/ko-KR.d.ts +18 -0
  97. package/lib/types/locale/pl-PL.d.ts +18 -0
  98. package/lib/types/locale/pt-BR.d.ts +18 -0
  99. package/lib/types/locale/ru-RU.d.ts +18 -0
  100. package/lib/types/locale/sk-SK.d.ts +18 -0
  101. package/lib/types/locale/types.d.ts +18 -0
  102. package/lib/types/locale/vi-VN.d.ts +18 -0
  103. package/lib/types/locale/zh-CN.d.ts +18 -0
  104. package/lib/types/locale/zh-HK.d.ts +18 -0
  105. package/lib/types/locale/zh-TW.d.ts +18 -0
  106. package/lib/types/models/calculate-unit-v2/base-calculate-unit.d.ts +68 -0
  107. package/lib/types/models/calculate-unit-v2/color-scale-calculate-unit.d.ts +27 -0
  108. package/lib/types/models/calculate-unit-v2/data-bar-calculate-unit.d.ts +33 -0
  109. package/lib/types/models/calculate-unit-v2/highlight-cell-calculate-unit.d.ts +28 -0
  110. package/lib/types/models/calculate-unit-v2/icon-set-calculate-unit.d.ts +34 -0
  111. package/lib/types/models/calculate-unit-v2/utils.d.ts +46 -0
  112. package/lib/types/models/conditional-formatting-range-index-model.d.ts +32 -0
  113. package/lib/types/models/conditional-formatting-rule-model.d.ts +45 -0
  114. package/lib/types/models/conditional-formatting-view-model.d.ts +78 -0
  115. package/lib/types/models/icon-map.d.ts +48 -0
  116. package/lib/types/models/type.d.ts +106 -0
  117. package/lib/types/plugin.d.ts +29 -0
  118. package/lib/types/render/data-bar.render.d.ts +35 -0
  119. package/lib/types/render/icon.render.d.ts +37 -0
  120. package/lib/types/render/type.d.ts +38 -0
  121. package/lib/types/services/conditional-formatting-formula.service.d.ts +73 -0
  122. package/lib/types/services/conditional-formatting-range-transform.service.d.ts +27 -0
  123. package/lib/types/services/conditional-formatting-style-composer.service.d.ts +35 -0
  124. package/lib/types/services/conditional-formatting.service.d.ts +41 -0
  125. package/lib/types/utils/anchor.d.ts +34 -0
  126. package/lib/types/utils/create-cf-id.d.ts +16 -0
  127. package/lib/types/utils/range.d.ts +18 -0
  128. package/lib/types/utils/remove-undefined-attr.d.ts +16 -0
  129. package/lib/types/utils/type.d.ts +18 -0
  130. package/lib/umd/facade.js +1 -0
  131. package/lib/umd/index.js +1 -0
  132. package/lib/umd/locale/ar-SA.js +1 -0
  133. package/lib/umd/locale/ca-ES.js +1 -0
  134. package/lib/umd/locale/de-DE.js +1 -0
  135. package/lib/umd/locale/en-US.js +1 -0
  136. package/lib/umd/locale/es-ES.js +1 -0
  137. package/lib/umd/locale/fa-IR.js +1 -0
  138. package/lib/umd/locale/fr-FR.js +1 -0
  139. package/lib/umd/locale/id-ID.js +1 -0
  140. package/lib/umd/locale/it-IT.js +1 -0
  141. package/lib/umd/locale/ja-JP.js +1 -0
  142. package/lib/umd/locale/ko-KR.js +1 -0
  143. package/lib/umd/locale/pl-PL.js +1 -0
  144. package/lib/umd/locale/pt-BR.js +1 -0
  145. package/lib/umd/locale/ru-RU.js +1 -0
  146. package/lib/umd/locale/sk-SK.js +1 -0
  147. package/lib/umd/locale/vi-VN.js +1 -0
  148. package/lib/umd/locale/zh-CN.js +1 -0
  149. package/lib/umd/locale/zh-HK.js +1 -0
  150. package/lib/umd/locale/zh-TW.js +1 -0
  151. package/package.json +90 -3
@@ -0,0 +1,10 @@
1
+ //#region src/locale/ar-SA.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "الاتجاه",
4
+ shape: "الشكل",
5
+ mark: "العلامة",
6
+ rank: "الترتيب"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/ca-ES.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "Direcció",
4
+ shape: "Forma",
5
+ mark: "Marca",
6
+ rank: "Rang"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/de-DE.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "Richtung",
4
+ shape: "Form",
5
+ mark: "Zeichen",
6
+ rank: "Rang"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,25 @@
1
+ //#region src/locale/en-US.ts
2
+ /**
3
+ * Copyright 2023-present DreamNum Co., Ltd.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ const locale = { "sheets-conditional-formatting": { iconSet: {
18
+ direction: "Direction",
19
+ shape: "Shape",
20
+ mark: "Mark",
21
+ rank: "Rank"
22
+ } } };
23
+
24
+ //#endregion
25
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/es-ES.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "Dirección",
4
+ shape: "Forma",
5
+ mark: "Marca",
6
+ rank: "Rango"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/fa-IR.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "جهت",
4
+ shape: "شکل",
5
+ mark: "علامت",
6
+ rank: "رتبه"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/fr-FR.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "Direction",
4
+ shape: "Forme",
5
+ mark: "Marque",
6
+ rank: "Rang"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/id-ID.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "Arah",
4
+ shape: "Bentuk",
5
+ mark: "Tanda",
6
+ rank: "Peringkat"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/it-IT.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "Direzione",
4
+ shape: "Forma",
5
+ mark: "Marca",
6
+ rank: "Grado"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/ja-JP.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "方向",
4
+ shape: "図形",
5
+ mark: "インジケーター",
6
+ rank: "評価"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/ko-KR.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "방향",
4
+ shape: "모양",
5
+ mark: "표식",
6
+ rank: "순위"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/pl-PL.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "Kierunek",
4
+ shape: "Kształt",
5
+ mark: "Znak",
6
+ rank: "Ranga"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/pt-BR.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "Direção",
4
+ shape: "Forma",
5
+ mark: "Marca",
6
+ rank: "Classificação"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/ru-RU.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "Направление",
4
+ shape: "Форма",
5
+ mark: "Знак",
6
+ rank: "Ранг"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/sk-SK.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "Smer",
4
+ shape: "Tvar",
5
+ mark: "Značka",
6
+ rank: "Poradie"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/vi-VN.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "Hướng",
4
+ shape: "Hình dạng",
5
+ mark: "Dấu",
6
+ rank: "Hạng"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/zh-CN.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "方向",
4
+ shape: "形状",
5
+ mark: "标记",
6
+ rank: "等级"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/zh-HK.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "方向",
4
+ shape: "形狀",
5
+ mark: "標記",
6
+ rank: "等級"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,10 @@
1
+ //#region src/locale/zh-TW.ts
2
+ const locale = { "sheets-conditional-formatting": { iconSet: {
3
+ direction: "方向",
4
+ shape: "形狀",
5
+ mark: "標記",
6
+ rank: "等級"
7
+ } } };
8
+
9
+ //#endregion
10
+ export { locale as default };
@@ -0,0 +1,79 @@
1
+ export declare const ICON_MAP: {
2
+ feedback: {
3
+ mistake: string;
4
+ warn: string;
5
+ correct: string;
6
+ };
7
+ star: {
8
+ starEmpty: string;
9
+ starIncomplete: string;
10
+ starFull: string;
11
+ };
12
+ progress: {
13
+ progress0: string;
14
+ progress25: string;
15
+ progress50: string;
16
+ progress75: string;
17
+ progress100: string;
18
+ };
19
+ signal: {
20
+ signal0: string;
21
+ signal25: string;
22
+ signal50: string;
23
+ signal75: string;
24
+ signal100: string;
25
+ };
26
+ feeling: {
27
+ guffaw: string;
28
+ smile: string;
29
+ noninductive: string;
30
+ dissatisfied: string;
31
+ impatient: string;
32
+ };
33
+ arrow: {
34
+ "down-red": string;
35
+ "right-gold": string;
36
+ "up-green": string;
37
+ "rightAndDown-gold": string;
38
+ "rightAndUp-gold": string;
39
+ "down-gray": string;
40
+ "right-gray": string;
41
+ "up-gray": string;
42
+ "rightAndDown-gray": string;
43
+ "rightAndUp-gray": string;
44
+ };
45
+ shape: {
46
+ cross: string;
47
+ up: string;
48
+ down: string;
49
+ "rhomboid-red": string;
50
+ "rhomboid-gold": string;
51
+ "roundness-greed": string;
52
+ "roundness-gold": string;
53
+ "roundness-red": string;
54
+ "roundness-pink": string;
55
+ "roundness-gray": string;
56
+ "roundness-black": string;
57
+ "triangle-gold": string;
58
+ "indicate-greed": string;
59
+ "indicate-gold": string;
60
+ "indicate-red": string;
61
+ };
62
+ feedback2: {
63
+ mistake2: string;
64
+ warn2: string;
65
+ correct2: string;
66
+ };
67
+ flag: {
68
+ "flag-green": string;
69
+ "flag-gold": string;
70
+ "flag-red": string;
71
+ };
72
+ cell: {
73
+ "cell-0": string;
74
+ "cell-25": string;
75
+ "cell-50": string;
76
+ "cell-75": string;
77
+ "cell-100": string;
78
+ };
79
+ };
@@ -0,0 +1,80 @@
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 { IConditionFormattingRule } from '../models/type';
17
+ export declare const SHEET_CONDITIONAL_FORMATTING_PLUGIN = "SHEET_CONDITIONAL_FORMATTING_PLUGIN";
18
+ export declare enum CFTextOperator {
19
+ beginsWith = "beginsWith",
20
+ endsWith = "endsWith",
21
+ containsText = "containsText",
22
+ notContainsText = "notContainsText",
23
+ equal = "equal",
24
+ notEqual = "notEqual",
25
+ containsBlanks = "containsBlanks",
26
+ notContainsBlanks = "notContainsBlanks",
27
+ containsErrors = "containsErrors",
28
+ notContainsErrors = "notContainsErrors"
29
+ }
30
+ export declare enum CFTimePeriodOperator {
31
+ today = "today",
32
+ yesterday = "yesterday",
33
+ tomorrow = "tomorrow",
34
+ last7Days = "last7Days",
35
+ thisMonth = "thisMonth",
36
+ lastMonth = "lastMonth",
37
+ nextMonth = "nextMonth",
38
+ thisWeek = "thisWeek",
39
+ lastWeek = "lastWeek",
40
+ nextWeek = "nextWeek"
41
+ }
42
+ export declare enum CFNumberOperator {
43
+ greaterThan = "greaterThan",
44
+ greaterThanOrEqual = "greaterThanOrEqual",
45
+ lessThan = "lessThan",
46
+ lessThanOrEqual = "lessThanOrEqual",
47
+ notBetween = "notBetween",
48
+ between = "between",
49
+ equal = "equal",
50
+ notEqual = "notEqual"
51
+ }
52
+ export declare enum CFRuleType {
53
+ highlightCell = "highlightCell",
54
+ dataBar = "dataBar",
55
+ colorScale = "colorScale",
56
+ iconSet = "iconSet"
57
+ }
58
+ export declare enum CFSubRuleType {
59
+ uniqueValues = "uniqueValues",
60
+ duplicateValues = "duplicateValues",
61
+ rank = "rank",
62
+ text = "text",
63
+ timePeriod = "timePeriod",
64
+ number = "number",
65
+ average = "average",
66
+ formula = "formula"
67
+ }
68
+ export declare enum CFValueType {
69
+ num = "num",
70
+ min = "min",
71
+ max = "max",
72
+ percent = "percent",
73
+ percentile = "percentile",
74
+ formula = "formula"
75
+ }
76
+ export declare const DEFAULT_BG_COLOR = "#fff";
77
+ export declare const DEFAULT_FONT_COLOR = "#000000";
78
+ export declare const createDefaultRule: () => IConditionFormattingRule;
79
+ export declare const createDefaultValue: (subType: CFSubRuleType, operator: CFTextOperator | CFNumberOperator | CFTimePeriodOperator) => 10 | "" | [number, number];
80
+ export declare const createDefaultValueByValueType: (type: CFValueType, defaultValue?: number) => number | "" | "=";
@@ -0,0 +1,24 @@
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 { ICommand } from '@cool-office/core';
17
+ import type { IConditionFormattingRule } from '../../models/type';
18
+ import type { MakePropertyOptional } from '../../utils/type';
19
+ export interface IAddCfCommandParams {
20
+ unitId?: string;
21
+ subUnitId?: string;
22
+ rule: MakePropertyOptional<IConditionFormattingRule, 'cfId'>;
23
+ }
24
+ export declare const AddCfCommand: ICommand<IAddCfCommandParams>;
@@ -0,0 +1,24 @@
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 { ICommand, IRange } from '@cool-office/core';
17
+ import type { CFRuleType } from '../../base/const';
18
+ export interface IClearRangeCfParams {
19
+ ranges?: IRange[];
20
+ unitId?: string;
21
+ subUnitId?: string;
22
+ types?: CFRuleType[];
23
+ }
24
+ export declare const ClearRangeCfCommand: ICommand<IClearRangeCfParams>;
@@ -0,0 +1,21 @@
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 { ICommand } from '@cool-office/core';
17
+ export interface IClearWorksheetCfParams {
18
+ unitId?: string;
19
+ subUnitId?: string;
20
+ }
21
+ export declare const ClearWorksheetCfCommand: ICommand<IClearWorksheetCfParams>;
@@ -0,0 +1,22 @@
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 { ICommand } from '@cool-office/core';
17
+ export interface IDeleteCfCommandParams {
18
+ unitId?: string;
19
+ subUnitId?: string;
20
+ cfId: string;
21
+ }
22
+ export declare const DeleteCfCommand: ICommand<IDeleteCfCommandParams>;
@@ -0,0 +1,24 @@
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 { ICommand } from '@cool-office/core';
17
+ import type { IAnchor } from '../../utils/anchor';
18
+ export interface IMoveCfCommandParams {
19
+ unitId?: string;
20
+ subUnitId?: string;
21
+ start: IAnchor;
22
+ end: IAnchor;
23
+ }
24
+ export declare const MoveCfCommand: ICommand<IMoveCfCommandParams>;
@@ -0,0 +1,24 @@
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 { ICommand } from '@cool-office/core';
17
+ import type { IConditionFormattingRule } from '../../models/type';
18
+ export interface ISetCfCommandParams {
19
+ unitId?: string;
20
+ subUnitId?: string;
21
+ cfId?: string;
22
+ rule: IConditionFormattingRule;
23
+ }
24
+ export declare const SetCfCommand: ICommand<ISetCfCommandParams>;
@@ -0,0 +1,28 @@
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 { IAccessor, IMutation } from '@cool-office/core';
17
+ import type { IConditionFormattingRule } from '../../models/type';
18
+ import type { IDeleteConditionalRuleMutationParams } from './delete-conditional-rule.mutation';
19
+ export interface IAddConditionalRuleMutationParams {
20
+ unitId: string;
21
+ subUnitId: string;
22
+ rule: IConditionFormattingRule;
23
+ }
24
+ export declare const AddConditionalRuleMutationUndoFactory: (accessor: IAccessor, param: IAddConditionalRuleMutationParams) => {
25
+ id: string;
26
+ params: IDeleteConditionalRuleMutationParams;
27
+ };
28
+ export declare const AddConditionalRuleMutation: IMutation<IAddConditionalRuleMutationParams>;
@@ -0,0 +1,23 @@
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 { IAccessor, IMutation, IMutationInfo } from '@cool-office/core';
17
+ export interface IDeleteConditionalRuleMutationParams {
18
+ unitId: string;
19
+ subUnitId: string;
20
+ cfId: string;
21
+ }
22
+ export declare const DeleteConditionalRuleMutationUndoFactory: (accessor: IAccessor, param: IDeleteConditionalRuleMutationParams) => IMutationInfo<object>[];
23
+ export declare const DeleteConditionalRuleMutation: IMutation<IDeleteConditionalRuleMutationParams>;
@@ -0,0 +1,24 @@
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 { IMutation } from '@cool-office/core';
17
+ export interface IConditionalFormattingFormulaMarkDirtyParams {
18
+ [unitId: string]: {
19
+ [sunUnitId: string]: {
20
+ [formulaId: string]: boolean;
21
+ };
22
+ };
23
+ }
24
+ export declare const ConditionalFormattingFormulaMarkDirty: IMutation<IConditionalFormattingFormulaMarkDirtyParams>;
@@ -0,0 +1,28 @@
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 { IMutation } from '@cool-office/core';
17
+ import type { IAnchor } from '../../utils/anchor';
18
+ export interface IMoveConditionalRuleMutationParams {
19
+ unitId: string;
20
+ subUnitId: string;
21
+ start: IAnchor;
22
+ end: IAnchor;
23
+ }
24
+ export declare const MoveConditionalRuleMutation: IMutation<IMoveConditionalRuleMutationParams>;
25
+ export declare const MoveConditionalRuleMutationUndoFactory: (param: IMoveConditionalRuleMutationParams) => {
26
+ id: string;
27
+ params: IMoveConditionalRuleMutationParams;
28
+ }[];