@univerjs/sheets-conditional-formatting 0.2.2 → 0.2.4-alpha.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/README.md +11 -4
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +87 -85
- 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 +2 -2
- package/lib/types/services/conditional-formatting.service.d.ts +1 -2
- package/lib/umd/index.js +1 -1
- package/package.json +13 -15
|
@@ -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';
|
|
@@ -35,6 +34,7 @@ export declare class ConditionalFormattingFormulaService extends Disposable {
|
|
|
35
34
|
formulaId: string;
|
|
36
35
|
}>;
|
|
37
36
|
constructor(_commandService: ICommandService, _injector: Injector, _activeDirtyManagerService: IActiveDirtyManagerService, _conditionalFormattingViewModel: ConditionalFormattingViewModel, _conditionalFormattingRuleModel: ConditionalFormattingRuleModel);
|
|
37
|
+
dispose(): void;
|
|
38
38
|
private _initCache;
|
|
39
39
|
private _initRuleChange;
|
|
40
40
|
private _initFormulaCalculationResultChange;
|
|
@@ -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';
|