@univerjs/sheets 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.
Files changed (65) hide show
  1. package/README.md +11 -3
  2. package/lib/cjs/index.js +3 -3
  3. package/lib/es/index.js +2843 -2819
  4. package/lib/locale/vi-VN.json +14 -0
  5. package/lib/locale/zh-TW.json +14 -0
  6. package/lib/types/basics/__tests__/cell-value.spec.d.ts +16 -0
  7. package/lib/types/basics/cell-style.d.ts +8 -0
  8. package/lib/types/basics/cell-type.d.ts +19 -0
  9. package/lib/types/basics/cell-value.d.ts +22 -0
  10. package/lib/types/basics/utils.d.ts +2 -1
  11. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +1 -2
  12. package/lib/types/commands/commands/move-range.command.d.ts +1 -2
  13. package/lib/types/commands/mutations/__tests__/create-command-test-bed.d.ts +1 -2
  14. package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +1 -2
  15. package/lib/types/commands/mutations/delete-range-protection.mutation.d.ts +1 -2
  16. package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +1 -2
  17. package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +1 -2
  18. package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +1 -2
  19. package/lib/types/commands/mutations/numfmt-mutation.d.ts +1 -2
  20. package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +1 -2
  21. package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +1 -2
  22. package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +1 -2
  23. package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +1 -2
  24. package/lib/types/commands/mutations/set-frozen.mutation.d.ts +1 -2
  25. package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +1 -2
  26. package/lib/types/commands/mutations/set-range-protection.mutation.d.ts +1 -2
  27. package/lib/types/commands/mutations/set-range-values.mutation.d.ts +1 -48
  28. package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +1 -2
  29. package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +1 -2
  30. package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +1 -2
  31. package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +1 -2
  32. package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +1 -2
  33. package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +1 -2
  34. package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +1 -2
  35. package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +1 -2
  36. package/lib/types/commands/operations/selection.operation.d.ts +1 -2
  37. package/lib/types/commands/utils/handle-merge-operation.d.ts +1 -2
  38. package/lib/types/commands/utils/handle-range-mutation.d.ts +1 -2
  39. package/lib/types/commands/utils/selection-command-util.d.ts +4 -0
  40. package/lib/types/controllers/__tests__/util.d.ts +7 -8
  41. package/lib/types/controllers/basic-worksheet.controller.d.ts +1 -2
  42. package/lib/types/controllers/merge-cell.controller.d.ts +3 -4
  43. package/lib/types/index.d.ts +4 -2
  44. package/lib/types/locale/vi-VN.d.ts +4 -0
  45. package/lib/types/locale/zh-TW.d.ts +4 -0
  46. package/lib/types/services/__tests__/util.d.ts +7 -8
  47. package/lib/types/services/border-style-manager.service.d.ts +1 -2
  48. package/lib/types/services/numfmt/type.d.ts +1 -1
  49. package/lib/types/services/permission/permission-point/index.d.ts +2 -0
  50. package/lib/types/services/permission/permission-point/workbook/recover-history.d.ts +12 -0
  51. package/lib/types/services/permission/permission-point/workbook/view-history.d.ts +12 -0
  52. package/lib/types/services/permission/worksheet-permission/worksheet-permission.service.d.ts +1 -2
  53. package/lib/types/services/ref-range/__tests__/__testing__.d.ts +7 -8
  54. package/lib/types/services/ref-range/__tests__/ref-range.service.spec.d.ts +6 -6
  55. package/lib/types/services/ref-range/ref-range.service.d.ts +3 -4
  56. package/lib/types/services/ref-range/util.d.ts +11 -7
  57. package/lib/types/services/selections/ref-selections.service.d.ts +19 -0
  58. package/lib/types/services/selections/selection-manager.service.d.ts +75 -0
  59. package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +7 -8
  60. package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +1 -2
  61. package/lib/types/sheets-plugin.d.ts +1 -2
  62. package/lib/umd/index.js +3 -3
  63. package/package.json +13 -14
  64. package/lib/types/services/selection-manager.service.d.ts +0 -93
  65. /package/lib/types/{commands/mutations/__tests__/set-range-values.mutation.spec.d.ts → basics/__tests__/cell-type.spec.d.ts} +0 -0
@@ -1,16 +1,15 @@
1
- import { IWorkbookData, Univer } from '@univerjs/core';
2
- import { Dependency } from '@wendellhu/redi';
1
+ import { Dependency, IWorkbookData, Univer } from '@univerjs/core';
3
2
 
4
3
  export declare const TEST_WORKBOOK_DATA_DEMO: IWorkbookData;
5
4
  export declare function createTestBase(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
6
5
  univer: Univer;
7
6
  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;
7
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, lookUp?: import('@univerjs/core').LookUp): T;
8
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.MANY, lookUp?: import('@univerjs/core').LookUp): T[];
9
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.OPTIONAL, lookUp?: import('@univerjs/core').LookUp): T | null;
10
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.REQUIRED, lookUp?: import('@univerjs/core').LookUp): T;
11
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity?: import('@univerjs/core').Quantity, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
12
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantityOrLookup?: import('@univerjs/core').Quantity | import('@univerjs/core').LookUp, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
14
13
  };
15
14
  sheet: import('@univerjs/core').Workbook;
16
15
  };
@@ -3,12 +3,12 @@ import { Univer } from '@univerjs/core';
3
3
  export declare function createRefRangeTestBed(): {
4
4
  univer: Univer;
5
5
  get: {
6
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
7
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
8
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
9
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
10
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
11
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
6
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, lookUp?: import('@univerjs/core').LookUp): T;
7
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.MANY, lookUp?: import('@univerjs/core').LookUp): T[];
8
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.OPTIONAL, lookUp?: import('@univerjs/core').LookUp): T | null;
9
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.REQUIRED, lookUp?: import('@univerjs/core').LookUp): T;
10
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity?: import('@univerjs/core').Quantity, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
11
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantityOrLookup?: import('@univerjs/core').Quantity | import('@univerjs/core').LookUp, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
12
12
  };
13
13
  sheet: import('@univerjs/core').Workbook;
14
14
  };
@@ -1,6 +1,5 @@
1
- import { IMutationInfo, IRange, Nullable, Disposable, ICommandService, InterceptorManager, IUniverInstanceService } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
3
- import { SelectionManagerService } from '../selection-manager.service';
1
+ import { IDisposable, IMutationInfo, IRange, Nullable, Disposable, ICommandService, InterceptorManager, IUniverInstanceService } from '@univerjs/core';
2
+ import { SheetsSelectionsService } from '../selections/selection-manager.service';
4
3
  import { SheetInterceptorService } from '../sheet-interceptor/sheet-interceptor.service';
5
4
  import { EffectRefRangeParams } from './type';
6
5
 
@@ -24,7 +23,7 @@ export declare class RefRangeService extends Disposable {
24
23
  MERGE_UNDO: import('@univerjs/core').IInterceptor<IMutationInfo<object>[], null>;
25
24
  }>;
26
25
  private _watchRanges;
27
- constructor(_commandService: ICommandService, _sheetInterceptorService: SheetInterceptorService, _univerInstanceService: IUniverInstanceService, _selectionManagerService: SelectionManagerService);
26
+ constructor(_commandService: ICommandService, _sheetInterceptorService: SheetInterceptorService, _univerInstanceService: IUniverInstanceService, _selectionManagerService: SheetsSelectionsService);
28
27
  watchRange(unitId: string, subUnitId: string, range: IRange, callback: WatchRangeCallback, skipIntersects?: boolean): IDisposable;
29
28
  private _refRangeManagerMap;
30
29
  private _serializer;
@@ -3,26 +3,30 @@ import { IMoveColumnsMutationParams, IMoveRowsMutationParams } from '../../comma
3
3
  import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams, IRemoveSheetMutationParams } from '../../basics';
4
4
  import { IMoveRangeMutationParams } from '../../commands/mutations/move-range.mutation';
5
5
  import { ISheetCommandSharedParams } from '../../commands/utils/interface';
6
- import { SelectionManagerService } from '../selection-manager.service';
6
+ import { SheetsSelectionsService } from '../selections/selection-manager.service';
7
7
  import { EffectRefRangeParams, IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand, IReorderRangeCommand } from './type';
8
8
 
9
9
  export declare const handleRangeTypeInput: (range: IRange) => {
10
- startColumn: number;
11
- endColumn: number;
12
10
  rangeType?: RANGE_TYPE;
13
11
  startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType;
14
12
  endAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType;
15
13
  startRow: number;
16
14
  endRow: number;
17
- };
18
- export declare const handleRangeTypeOutput: (range: IRange, maxRow: number, maxCol: number) => {
15
+ unitId?: string;
16
+ sheetId?: string;
19
17
  startColumn: number;
20
18
  endColumn: number;
19
+ };
20
+ export declare const handleRangeTypeOutput: (range: IRange, maxRow: number, maxCol: number) => {
21
21
  rangeType?: RANGE_TYPE;
22
22
  startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType;
23
23
  endAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType;
24
24
  startRow: number;
25
25
  endRow: number;
26
+ unitId?: string;
27
+ sheetId?: string;
28
+ startColumn: number;
29
+ endColumn: number;
26
30
  };
27
31
  export declare const rotateRange: (range: IRange) => IRange;
28
32
  interface ILine {
@@ -67,7 +71,7 @@ export declare const handleDeleteRangeMoveUpCommon: (param: IDeleteRangeMoveUpCo
67
71
  export declare const runRefRangeMutations: (operators: IOperator[], range: IRange) => IRange | null;
68
72
  export declare const handleDefaultRangeChangeWithEffectRefCommands: (range: IRange, commandInfo: ICommandInfo) => IRange | null;
69
73
  export declare const handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests: (range: IRange, commandInfo: ICommandInfo, deps: {
70
- selectionManagerService: SelectionManagerService;
74
+ selectionManagerService: SheetsSelectionsService;
71
75
  }) => IRange | null;
72
76
  type MutationsAffectRange = ISheetCommandSharedParams | IRemoveSheetMutationParams | IMoveRowsMutationParams | IMoveColumnsMutationParams | IRemoveRowsMutationParams | IRemoveColMutationParams | IInsertColMutationParams | IInsertRowMutationParams | IMoveRangeMutationParams;
73
77
  export declare const handleCommonDefaultRangeChangeWithEffectRefCommands: (range: IRange, commandInfo: ICommandInfo) => IRange | IRange[] | null;
@@ -81,7 +85,7 @@ export declare const handleCommonDefaultRangeChangeWithEffectRefCommands: (range
81
85
  */
82
86
  export declare function adjustRangeOnMutation(range: Readonly<IRange>, mutation: IMutationInfo<MutationsAffectRange>): Nullable<IRange>;
83
87
  export declare function getEffectedRangesOnCommand(command: EffectRefRangeParams, deps: {
84
- selectionManagerService: SelectionManagerService;
88
+ selectionManagerService: SheetsSelectionsService;
85
89
  }): IRange[];
86
90
  export declare function getEffectedRangesOnMutation(mutation: IMutationInfo<MutationsAffectRange>): IRange[] | undefined;
87
91
  export {};
@@ -0,0 +1,19 @@
1
+ import { IUniverInstanceService } from '@univerjs/core';
2
+ import { SheetsSelectionsService } from './selection-manager.service';
3
+
4
+ /**
5
+ * Ref selections service reuses code of `SelectionManagerService`. And it only contains ref selections
6
+ * when user is editing formula.
7
+ *
8
+ * Its data should be cleared by the caller quit editing formula and reconstructed when user starts editing.
9
+ */
10
+ export declare const IRefSelectionsService: import('@univerjs/core').IdentifierDecorator<SheetsSelectionsService>;
11
+ /**
12
+ * RefSelectionsService treats `selectionMoveStart$` `selectionMoving$` and `selectionMoveEnd$` differently
13
+ * than `SheetsSelectionsService`. Because ref selections can be in different workbooks.
14
+ */
15
+ export declare class RefSelectionsService extends SheetsSelectionsService {
16
+ constructor(_instanceSrv: IUniverInstanceService);
17
+ protected _init(): void;
18
+ private _getAliveWorkbooks$;
19
+ }
@@ -0,0 +1,75 @@
1
+ import { ISelectionCell, Nullable, Workbook, Disposable, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
+ import { Observable } from 'rxjs';
3
+ import { ISelectionWithStyle } from '../../basics/selection';
4
+
5
+ export interface ISelectionManagerSearchParam {
6
+ unitId: string;
7
+ sheetId: string;
8
+ }
9
+ export declare enum SelectionMoveType {
10
+ MOVE_START = 0,
11
+ MOVING = 1,
12
+ MOVE_END = 2
13
+ }
14
+ export declare class SheetsSelectionsService extends RxDisposable {
15
+ protected readonly _instanceSrv: IUniverInstanceService;
16
+ private get _currentSelectionPos();
17
+ selectionMoveStart$: Observable<Nullable<ISelectionWithStyle[]>>;
18
+ selectionMoving$: Observable<Nullable<ISelectionWithStyle[]>>;
19
+ selectionMoveEnd$: Observable<ISelectionWithStyle[]>;
20
+ constructor(_instanceSrv: IUniverInstanceService);
21
+ protected _init(): void;
22
+ /** Clear all selections in all workbooks. */
23
+ clear(): void;
24
+ getCurrentSelections(): Readonly<ISelectionWithStyle[]>;
25
+ getCurrentLastSelection(): Readonly<Nullable<ISelectionWithStyle & {
26
+ primary: ISelectionCell;
27
+ }>>;
28
+ addSelections(selectionsData: ISelectionWithStyle[]): void;
29
+ addSelections(unitId: string, worksheetId: string, selectionDatas: ISelectionWithStyle[]): void;
30
+ setSelections(selectionDatas: ISelectionWithStyle[], type?: SelectionMoveType): void;
31
+ setSelections(unitId: string, worksheetId: string, selectionDatas: ISelectionWithStyle[], type?: SelectionMoveType): void;
32
+ clearCurrentSelections(): void;
33
+ /**
34
+ * Determine whether multiple current selections overlap
35
+ *
36
+ * @deprecated this should be extracted to an pure function
37
+ */
38
+ isOverlapping(): boolean;
39
+ protected _getCurrentSelections(): ISelectionWithStyle[];
40
+ getWorkbookSelections(unitId: string): WorkbookSelections;
41
+ protected _workbookSelections: Map<string, WorkbookSelections>;
42
+ protected _ensureWorkbookSelection(unitId: string): WorkbookSelections;
43
+ protected _removeWorkbookSelection(unitId: string): void;
44
+ }
45
+ /**
46
+ * This class manages selections in a single workbook.
47
+ */
48
+ export declare class WorkbookSelections extends Disposable {
49
+ private readonly _workbook;
50
+ private readonly _selectionMoveStart$;
51
+ readonly selectionMoveStart$: Observable<Nullable<ISelectionWithStyle[]>>;
52
+ private readonly _selectionMoving$;
53
+ readonly selectionMoving$: Observable<Nullable<ISelectionWithStyle[]>>;
54
+ private readonly _selectionMoveEnd$;
55
+ readonly selectionMoveEnd$: Observable<ISelectionWithStyle[]>;
56
+ private readonly _beforeSelectionMoveEnd$;
57
+ readonly beforeSelectionMoveEnd$: Observable<ISelectionWithStyle[]>;
58
+ constructor(_workbook: Workbook);
59
+ dispose(): void;
60
+ /** Clear all selections in this workbook. */
61
+ clear(): void;
62
+ addSelections(sheetId: string, selectionDatas: ISelectionWithStyle[]): void;
63
+ setSelections(sheetId: string, selectionDatas: ISelectionWithStyle[], type?: SelectionMoveType): void;
64
+ getCurrentSelections(): Readonly<ISelectionWithStyle[]>;
65
+ getSelectionOfWorksheet(sheetId: string): ISelectionWithStyle[];
66
+ private _getCurrentSelections;
67
+ getCurrentLastSelection(): Readonly<Nullable<ISelectionWithStyle & {
68
+ primary: ISelectionCell;
69
+ }>>;
70
+ private _worksheetSelections;
71
+ private _ensureSheetSelection;
72
+ private _emitOnEnd;
73
+ }
74
+ /** An context key to disable normal selections if its value is set to `true`. */
75
+ export declare const DISABLE_NORMAL_SELECTIONS = "DISABLE_NORMAL_SELECTIONS";
@@ -1,15 +1,14 @@
1
- import { IWorkbookData, Univer } from '@univerjs/core';
2
- import { Dependency } from '@wendellhu/redi';
1
+ import { Dependency, IWorkbookData, Univer } from '@univerjs/core';
3
2
 
4
3
  export declare function createCoreTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
5
4
  univer: Univer;
6
5
  get: {
7
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
8
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
9
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
10
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
11
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
12
- <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
6
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, lookUp?: import('@univerjs/core').LookUp): T;
7
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.MANY, lookUp?: import('@univerjs/core').LookUp): T[];
8
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.OPTIONAL, lookUp?: import('@univerjs/core').LookUp): T | null;
9
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.REQUIRED, lookUp?: import('@univerjs/core').LookUp): T;
10
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity?: import('@univerjs/core').Quantity, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
11
+ <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantityOrLookup?: import('@univerjs/core').Quantity | import('@univerjs/core').LookUp, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
13
12
  };
14
13
  sheet: import('@univerjs/core').Workbook;
15
14
  };
@@ -1,5 +1,4 @@
1
- import { ICommandInfo, IInterceptor, IUndoRedoCommandInfosByInterceptor, Disposable, IUniverInstanceService } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { ICommandInfo, IDisposable, IInterceptor, IUndoRedoCommandInfosByInterceptor, Disposable, IUniverInstanceService } from '@univerjs/core';
3
2
 
4
3
  export interface ICommandInterceptor {
5
4
  priority?: number;
@@ -1,5 +1,4 @@
1
- import { DependencyOverride, ICommandService, IConfigService, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { DependencyOverride, ICommandService, IConfigService, Injector, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
3
2
 
4
3
  export interface IUniverSheetsConfig {
5
4
  notExecuteFormula?: boolean;