@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.
@@ -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,5 +1,4 @@
1
- import { IMutation, IMutationInfo } from '@univerjs/core';
2
- import { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor, IMutation, IMutationInfo } from '@univerjs/core';
3
2
 
4
3
  export interface IDeleteConditionalRuleMutationParams {
5
4
  unitId: string;
@@ -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
 
5
4
  export interface ISetConditionalRuleMutationParams {
@@ -1,4 +1,4 @@
1
- import { Injector } from '@wendellhu/redi';
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';
@@ -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('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
11
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
12
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
13
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
14
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
15
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
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 '@wendellhu/redi';
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';