@univerjs/sheets-conditional-formatting 0.17.0 → 0.18.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 (48) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/es/facade.js +1 -1909
  4. package/lib/es/index.js +1 -1999
  5. package/lib/facade.js +1 -1909
  6. package/lib/index.js +1 -1999
  7. package/lib/types/assets/icon-map.d.ts +79 -0
  8. package/lib/types/base/const.d.ts +16 -1
  9. package/lib/types/commands/commands/add-cf.command.d.ts +18 -3
  10. package/lib/types/commands/commands/clear-range-cf.command.d.ts +16 -1
  11. package/lib/types/commands/commands/clear-worksheet-cf.command.d.ts +16 -1
  12. package/lib/types/commands/commands/delete-cf.command.d.ts +16 -1
  13. package/lib/types/commands/commands/move-cf.command.d.ts +17 -2
  14. package/lib/types/commands/commands/set-cf.command.d.ts +17 -2
  15. package/lib/types/commands/mutations/add-conditional-rule.mutation.d.ts +18 -3
  16. package/lib/types/commands/mutations/delete-conditional-rule.mutation.d.ts +16 -1
  17. package/lib/types/commands/mutations/formula-mark-dirty.mutation.d.ts +16 -1
  18. package/lib/types/commands/mutations/move-conditional-rule.mutation.d.ts +17 -2
  19. package/lib/types/commands/mutations/set-conditional-rule.mutation.d.ts +17 -2
  20. package/lib/types/facade/f-conditional-formatting-builder.d.ts +18 -2
  21. package/lib/types/facade/f-enum.d.ts +15 -0
  22. package/lib/types/facade/f-range.d.ts +16 -1
  23. package/lib/types/facade/f-worksheet.d.ts +16 -1
  24. package/lib/types/models/calculate-unit-v2/__test__/test.util.d.ts +24 -8
  25. package/lib/types/models/calculate-unit-v2/base-calculate-unit.d.ts +18 -3
  26. package/lib/types/models/calculate-unit-v2/color-scale-calculate-unit.d.ts +17 -1
  27. package/lib/types/models/calculate-unit-v2/data-bar-calculate-unit.d.ts +17 -1
  28. package/lib/types/models/calculate-unit-v2/highlight-cell-calculate-unit.d.ts +19 -3
  29. package/lib/types/models/calculate-unit-v2/icon-set-calculate-unit.d.ts +19 -3
  30. package/lib/types/models/calculate-unit-v2/utils.d.ts +19 -3
  31. package/lib/types/models/conditional-formatting-rule-model.d.ts +21 -6
  32. package/lib/types/models/conditional-formatting-view-model.d.ts +16 -1
  33. package/lib/types/models/type.d.ts +18 -3
  34. package/lib/types/plugin.d.ts +16 -1
  35. package/lib/types/render/data-bar.render.d.ts +18 -2
  36. package/lib/types/render/icon.render.d.ts +18 -2
  37. package/lib/types/render/type.d.ts +17 -2
  38. package/lib/types/services/conditional-formatting-formula.service.d.ts +18 -2
  39. package/lib/types/services/conditional-formatting.service.d.ts +17 -2
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/package.json +10 -9
  43. package/lib/types/assets/icon-map.json.d.ts +0 -82
  44. package/lib/types/models/calculate-unit-v2/__test__/base-calculate.spec.d.ts +0 -16
  45. package/lib/types/models/calculate-unit-v2/__test__/calculate.color.spec.d.ts +0 -16
  46. package/lib/types/models/calculate-unit-v2/__test__/calculate.databar.spec.d.ts +0 -16
  47. package/lib/types/models/calculate-unit-v2/__test__/calculate.highlight.spec.d.ts +0 -16
  48. package/lib/types/utils/__test__/anchor.spec.d.ts +0 -16
@@ -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
+ };
@@ -1,4 +1,19 @@
1
- import { IConditionFormattingRule } from '../models/type';
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';
2
17
  export declare const SHEET_CONDITIONAL_FORMATTING_PLUGIN = "SHEET_CONDITIONAL_FORMATTING_PLUGIN";
3
18
  export declare enum CFTextOperator {
4
19
  beginsWith = "beginsWith",
@@ -1,6 +1,21 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IConditionFormattingRule } from '../../models/type';
3
- import { MakePropertyOptional } from '../../utils/type';
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 '@univerjs/core';
17
+ import type { IConditionFormattingRule } from '../../models/type';
18
+ import type { MakePropertyOptional } from '../../utils/type';
4
19
  export interface IAddCfCommandParams {
5
20
  unitId?: string;
6
21
  subUnitId?: string;
@@ -1,4 +1,19 @@
1
- import { ICommand, IRange } from '@univerjs/core';
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 '@univerjs/core';
2
17
  export interface IClearRangeCfParams {
3
18
  ranges?: IRange[];
4
19
  unitId?: string;
@@ -1,4 +1,19 @@
1
- import { ICommand } from '@univerjs/core';
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 '@univerjs/core';
2
17
  export interface IClearWorksheetCfParams {
3
18
  unitId?: string;
4
19
  subUnitId?: string;
@@ -1,4 +1,19 @@
1
- import { ICommand } from '@univerjs/core';
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 '@univerjs/core';
2
17
  export interface IDeleteCfCommandParams {
3
18
  unitId?: string;
4
19
  subUnitId?: string;
@@ -1,5 +1,20 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IAnchor } from '../../utils/anchor';
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 '@univerjs/core';
17
+ import type { IAnchor } from '../../utils/anchor';
3
18
  export interface IMoveCfCommandParams {
4
19
  unitId?: string;
5
20
  subUnitId?: string;
@@ -1,5 +1,20 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IConditionFormattingRule } from '../../models/type';
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 '@univerjs/core';
17
+ import type { IConditionFormattingRule } from '../../models/type';
3
18
  export interface ISetCfCommandParams {
4
19
  unitId?: string;
5
20
  subUnitId?: string;
@@ -1,6 +1,21 @@
1
- import { IAccessor, IMutation } from '@univerjs/core';
2
- import { IConditionFormattingRule } from '../../models/type';
3
- import { IDeleteConditionalRuleMutationParams } from './delete-conditional-rule.mutation';
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 '@univerjs/core';
17
+ import type { IConditionFormattingRule } from '../../models/type';
18
+ import type { IDeleteConditionalRuleMutationParams } from './delete-conditional-rule.mutation';
4
19
  export interface IAddConditionalRuleMutationParams {
5
20
  unitId: string;
6
21
  subUnitId: string;
@@ -1,4 +1,19 @@
1
- import { IAccessor, IMutation, IMutationInfo } from '@univerjs/core';
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 '@univerjs/core';
2
17
  export interface IDeleteConditionalRuleMutationParams {
3
18
  unitId: string;
4
19
  subUnitId: string;
@@ -1,4 +1,19 @@
1
- import { IMutation } from '@univerjs/core';
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 '@univerjs/core';
2
17
  export interface IConditionalFormattingFormulaMarkDirtyParams {
3
18
  [unitId: string]: {
4
19
  [sunUnitId: string]: {
@@ -1,5 +1,20 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IAnchor } from '../../utils/anchor';
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 '@univerjs/core';
17
+ import type { IAnchor } from '../../utils/anchor';
3
18
  export interface IMoveConditionalRuleMutationParams {
4
19
  unitId: string;
5
20
  subUnitId: string;
@@ -1,5 +1,20 @@
1
- import { IAccessor, IMutation } from '@univerjs/core';
2
- import { IConditionFormattingRule } from '../../models/type';
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 '@univerjs/core';
17
+ import type { IConditionFormattingRule } from '../../models/type';
3
18
  export interface ISetConditionalRuleMutationParams {
4
19
  unitId: string;
5
20
  subUnitId: string;
@@ -1,5 +1,21 @@
1
- import { IRange } from '@univerjs/core';
2
- import { CFTimePeriodOperator, IAverageHighlightCell, IColorScale, IConditionalFormattingRuleConfig, IConditionFormattingRule, IIconSet, IValueConfig, CFRuleType } from '@univerjs/sheets-conditional-formatting';
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 { IRange } from '@univerjs/core';
17
+ import type { CFTimePeriodOperator, IAverageHighlightCell, IColorScale, IConditionalFormattingRuleConfig, IConditionFormattingRule, IIconSet, IValueConfig } from '@univerjs/sheets-conditional-formatting';
18
+ import { CFRuleType } from '@univerjs/sheets-conditional-formatting';
3
19
  /**
4
20
  * @ignore
5
21
  * @hideconstructor
@@ -1,3 +1,18 @@
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
+ */
1
16
  import { CFNumberOperator, CFTimePeriodOperator } from '@univerjs/sheets-conditional-formatting';
2
17
  /**
3
18
  * @ignore
@@ -1,4 +1,19 @@
1
- import { IAnchor, IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
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 { IAnchor, IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
2
17
  import { FRange } from '@univerjs/sheets/facade';
3
18
  import { FConditionalFormattingBuilder } from './f-conditional-formatting-builder';
4
19
  /**
@@ -1,4 +1,19 @@
1
- import { IAnchor, IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
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 { IAnchor, IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
2
17
  import { FWorksheet } from '@univerjs/sheets/facade';
3
18
  import { FConditionalFormattingBuilder } from './f-conditional-formatting-builder';
4
19
  /**
@@ -1,18 +1,34 @@
1
- import { Dependency, ICommandService, Univer } from '@univerjs/core';
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 } from '@univerjs/core';
2
18
  import { ConditionalFormattingService } from '../../../services/conditional-formatting.service';
3
19
  import { ConditionalFormattingRuleModel } from '../../conditional-formatting-rule-model';
4
20
  import { ConditionalFormattingViewModel } from '../../conditional-formatting-view-model';
5
21
  export declare const createTestBed: (dependencies?: Dependency[]) => {
6
22
  univer: Univer;
7
23
  get: {
8
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
9
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
10
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
11
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
12
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
13
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
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;
14
30
  };
15
- workbook: import('@univerjs/core').UnitModel<object, number>;
31
+ workbook: import("@univerjs/core").UnitModel<object, number>;
16
32
  unitId: string;
17
33
  subUnitId: string;
18
34
  commandService: ICommandService;
@@ -1,5 +1,20 @@
1
- import { IAccessor, ICellData, Nullable, Workbook, Worksheet } from '@univerjs/core';
2
- import { IConditionFormattingRule } from '../type';
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, ICellData, Nullable, Workbook, Worksheet } from '@univerjs/core';
17
+ import type { IConditionFormattingRule } from '../type';
3
18
  import { BehaviorSubject } from 'rxjs';
4
19
  export declare enum CalculateEmitStatus {
5
20
  preComputingStart = "preComputingStart",
@@ -27,7 +42,7 @@ export declare abstract class BaseCalculateUnit<C = any, S = any> {
27
42
  */
28
43
  private _cache;
29
44
  protected _preComputingStatus$: BehaviorSubject<CalculateEmitStatus>;
30
- preComputingStatus$: import('rxjs').Observable<CalculateEmitStatus>;
45
+ preComputingStatus$: import("rxjs").Observable<CalculateEmitStatus>;
31
46
  /**
32
47
  * 2nd-level cache
33
48
  */
@@ -1,5 +1,21 @@
1
- import { IContext, BaseCalculateUnit } from './base-calculate-unit';
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 { IContext } from './base-calculate-unit';
2
17
  import { ColorKit } from '@univerjs/core';
18
+ import { BaseCalculateUnit } from './base-calculate-unit';
3
19
  interface IConfigItem {
4
20
  value: number;
5
21
  color: ColorKit;
@@ -1,4 +1,20 @@
1
- import { IContext, BaseCalculateUnit } from './base-calculate-unit';
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 { IContext } from './base-calculate-unit';
17
+ import { BaseCalculateUnit } from './base-calculate-unit';
2
18
  interface IConfig {
3
19
  min: number;
4
20
  max: number;
@@ -1,12 +1,28 @@
1
- import { IStyleData, Nullable } from '@univerjs/core';
2
- import { IContext, BaseCalculateUnit } from './base-calculate-unit';
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 { IStyleData, Nullable } from '@univerjs/core';
17
+ import type { IContext } from './base-calculate-unit';
3
18
  import { CFSubRuleType } from '../../base/const';
19
+ import { BaseCalculateUnit } from './base-calculate-unit';
4
20
  interface IConfig {
5
21
  value: any;
6
22
  type: CFSubRuleType;
7
23
  }
8
24
  export declare class HighlightCellCalculateUnit extends BaseCalculateUnit<Nullable<IConfig>, Nullable<IStyleData>> {
9
25
  preComputing(row: number, col: number, context: IContext): void;
10
- protected getCellResult(row: number, col: number, preComputingResult: Nullable<IConfig>, context: IContext): import('@univerjs/core').IStyleBase;
26
+ protected getCellResult(row: number, col: number, preComputingResult: Nullable<IConfig>, context: IContext): import("@univerjs/core").IStyleBase;
11
27
  }
12
28
  export {};
@@ -1,6 +1,22 @@
1
- import { Nullable } from '@univerjs/core';
2
- import { CFNumberOperator } from '../../base/const';
3
- import { IContext, BaseCalculateUnit } from './base-calculate-unit';
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 { Nullable } from '@univerjs/core';
17
+ import type { CFNumberOperator } from '../../base/const';
18
+ import type { IContext } from './base-calculate-unit';
19
+ import { BaseCalculateUnit } from './base-calculate-unit';
4
20
  interface IConfigItem {
5
21
  operator: CFNumberOperator;
6
22
  value: number;