@univerjs/sheets-conditional-formatting 0.2.4 → 0.2.6
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/index.js +1 -1
- package/lib/es/index.js +1207 -1199
- package/lib/types/base/const.d.ts +1 -1
- package/lib/types/commands/mutations/add-conditional-rule.mutation.d.ts +1 -2
- package/lib/types/commands/mutations/delete-conditional-rule.mutation.d.ts +1 -2
- package/lib/types/commands/mutations/set-conditional-rule.mutation.d.ts +1 -2
- package/lib/types/models/conditional-formatting-rule-model.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -2
- package/lib/types/services/__test__/test.util.d.ts +7 -8
- package/lib/types/services/calculate-unit/type.d.ts +1 -2
- package/lib/types/services/conditional-formatting-formula.service.d.ts +1 -2
- package/lib/types/services/conditional-formatting.service.d.ts +1 -2
- package/lib/umd/index.js +1 -1
- package/package.json +15 -17
|
@@ -62,5 +62,5 @@ export declare enum CFValueType {
|
|
|
62
62
|
export declare const DEFAULT_BG_COLOR = "#fff";
|
|
63
63
|
export declare const DEFAULT_FONT_COLOR = "#000000";
|
|
64
64
|
export declare const createDefaultRule: () => IConditionFormattingRule<import('../models/type').IConditionalFormattingRuleConfig>;
|
|
65
|
-
export declare const createDefaultValue: (subType: CFSubRuleType, operator: CFTextOperator | CFNumberOperator | CFTimePeriodOperator) =>
|
|
65
|
+
export declare const createDefaultValue: (subType: CFSubRuleType, operator: CFTextOperator | CFNumberOperator | CFTimePeriodOperator) => 10 | "" | [number, number];
|
|
66
66
|
export declare const createDefaultValueByValueType: (type: CFValueType, defaultValue?: number) => number | "" | "=";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IMutation } from '@univerjs/core';
|
|
2
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor, IMutation } from '@univerjs/core';
|
|
3
2
|
import { IConditionFormattingRule } from '../../models/type';
|
|
4
3
|
import { IDeleteConditionalRuleMutationParams } from './delete-conditional-rule.mutation';
|
|
5
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Injector } from '@
|
|
1
|
+
import { Injector } from '@univerjs/core';
|
|
2
2
|
import { IAnchor } from '../utils/anchor';
|
|
3
3
|
import { IConditionFormattingRule } from './type';
|
|
4
4
|
import { ConditionalFormattingViewModel } from './conditional-formatting-view-model';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ICommandService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
-
import { Injector } from '@wendellhu/redi';
|
|
1
|
+
import { ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
2
|
|
|
4
3
|
export declare class UniverSheetsConditionalFormattingPlugin extends Plugin {
|
|
5
4
|
readonly _injector: Injector;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ICommandService, Univer } from '@univerjs/core';
|
|
2
|
-
import { Dependency } from '@wendellhu/redi';
|
|
1
|
+
import { Dependency, ICommandService, Univer } from '@univerjs/core';
|
|
3
2
|
import { ConditionalFormattingService } from '../conditional-formatting.service';
|
|
4
3
|
import { ConditionalFormattingRuleModel } from '../../models/conditional-formatting-rule-model';
|
|
5
4
|
import { ConditionalFormattingViewModel } from '../../models/conditional-formatting-view-model';
|
|
@@ -7,12 +6,12 @@ import { ConditionalFormattingViewModel } from '../../models/conditional-formatt
|
|
|
7
6
|
export declare const createTestBed: (dependencies?: Dependency[]) => {
|
|
8
7
|
univer: Univer;
|
|
9
8
|
get: {
|
|
10
|
-
<T>(id: import('@
|
|
11
|
-
<T>(id: import('@
|
|
12
|
-
<T>(id: import('@
|
|
13
|
-
<T>(id: import('@
|
|
14
|
-
<T>(id: import('@
|
|
15
|
-
<T>(id: import('@
|
|
9
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, lookUp?: import('@univerjs/core').LookUp): T;
|
|
10
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.MANY, lookUp?: import('@univerjs/core').LookUp): T[];
|
|
11
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.OPTIONAL, lookUp?: import('@univerjs/core').LookUp): T | null;
|
|
12
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.REQUIRED, lookUp?: import('@univerjs/core').LookUp): T;
|
|
13
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity?: import('@univerjs/core').Quantity, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
14
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantityOrLookup?: import('@univerjs/core').Quantity | import('@univerjs/core').LookUp, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
16
15
|
};
|
|
17
16
|
workbook: import('@univerjs/core').Workbook;
|
|
18
17
|
unitId: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IAccessor } from '@
|
|
2
|
-
import { ObjectMatrix, Workbook, Worksheet } from '@univerjs/core';
|
|
1
|
+
import { IAccessor, ObjectMatrix, Workbook, Worksheet } from '@univerjs/core';
|
|
3
2
|
import { CFRuleType } from '../../base/const';
|
|
4
3
|
import { IConditionFormattingRule } from '../../models/type';
|
|
5
4
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ObjectMatrix, Disposable, ICommandService, RefAlias } from '@univerjs/core';
|
|
2
|
-
import { Injector } from '@wendellhu/redi';
|
|
1
|
+
import { ObjectMatrix, Disposable, ICommandService, Injector, RefAlias } from '@univerjs/core';
|
|
3
2
|
import { IActiveDirtyManagerService } from '@univerjs/engine-formula';
|
|
4
3
|
import { ConditionalFormattingViewModel } from '../models/conditional-formatting-view-model';
|
|
5
4
|
import { ConditionalFormattingRuleModel } from '../models/conditional-formatting-rule-model';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Disposable, ICommandService, InterceptorManager, IResourceManagerService, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
|
|
1
|
+
import { Disposable, ICommandService, Injector, InterceptorManager, IResourceManagerService, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
|
|
2
2
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
import { ConditionalFormattingRuleModel } from '../models/conditional-formatting-rule-model';
|
|
5
4
|
import { ConditionalFormattingViewModel } from '../models/conditional-formatting-view-model';
|
|
6
5
|
import { IHighlightCell } from '../models/type';
|