@univerjs/sheets 0.1.4 → 0.1.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.
Files changed (109) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/es/index.js +2660 -2347
  3. package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts +2 -16
  4. package/lib/types/basics/interfaces/i-ruler-manager.d.ts +2 -16
  5. package/lib/types/basics/interfaces/mutation-interface.d.ts +2 -16
  6. package/lib/types/basics/interfaces/selection-config.d.ts +2 -16
  7. package/lib/types/basics/interfaces/spreadsheet-config.d.ts +2 -16
  8. package/lib/types/basics/rangeMerge.d.ts +2 -17
  9. package/lib/types/basics/selection.d.ts +2 -16
  10. package/lib/types/basics/sheet-header.d.ts +2 -16
  11. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +3 -19
  12. package/lib/types/commands/commands/__tests__/remove-rows-cols.command.spec.d.ts +16 -0
  13. package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +2 -17
  14. package/lib/types/commands/commands/clear-selection-all.command.d.ts +2 -16
  15. package/lib/types/commands/commands/clear-selection-content.command.d.ts +2 -16
  16. package/lib/types/commands/commands/clear-selection-format.command.d.ts +2 -16
  17. package/lib/types/commands/commands/copy-to-worksheet.command.d.ts +2 -16
  18. package/lib/types/commands/commands/copy-worksheet.command.d.ts +2 -16
  19. package/lib/types/commands/commands/delete-range-move-left.command.d.ts +2 -16
  20. package/lib/types/commands/commands/delete-range-move-up.command.d.ts +2 -16
  21. package/lib/types/commands/commands/insert-defined-name.command.d.ts +6 -0
  22. package/lib/types/commands/commands/insert-range-move-down.command.d.ts +2 -16
  23. package/lib/types/commands/commands/insert-range-move-right.command.d.ts +2 -16
  24. package/lib/types/commands/commands/insert-row-col.command.d.ts +2 -17
  25. package/lib/types/commands/commands/insert-sheet.command.d.ts +2 -16
  26. package/lib/types/commands/commands/move-range.command.d.ts +3 -17
  27. package/lib/types/commands/commands/move-rows-cols.command.d.ts +2 -16
  28. package/lib/types/commands/commands/remove-defined-name.command.d.ts +6 -0
  29. package/lib/types/commands/commands/remove-row-col.command.d.ts +2 -16
  30. package/lib/types/commands/commands/remove-sheet.command.d.ts +2 -16
  31. package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts +2 -16
  32. package/lib/types/commands/commands/set-border-command.d.ts +3 -18
  33. package/lib/types/commands/commands/set-col-visible.command.d.ts +2 -16
  34. package/lib/types/commands/commands/set-defined-name.command.d.ts +12 -0
  35. package/lib/types/commands/commands/set-frozen-cancel.command.d.ts +2 -16
  36. package/lib/types/commands/commands/set-frozen.command.d.ts +2 -16
  37. package/lib/types/commands/commands/set-hide-gridlines.command.d.ts +2 -17
  38. package/lib/types/commands/commands/set-range-values.command.d.ts +3 -17
  39. package/lib/types/commands/commands/set-row-visible.command.d.ts +2 -16
  40. package/lib/types/commands/commands/set-style.command.d.ts +4 -18
  41. package/lib/types/commands/commands/set-tab-color.command.d.ts +2 -16
  42. package/lib/types/commands/commands/set-worksheet-activate.command.d.ts +2 -16
  43. package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts +2 -16
  44. package/lib/types/commands/commands/set-worksheet-hide.command.d.ts +2 -16
  45. package/lib/types/commands/commands/set-worksheet-name.command.d.ts +2 -16
  46. package/lib/types/commands/commands/set-worksheet-order.command.d.ts +2 -16
  47. package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts +2 -17
  48. package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts +2 -16
  49. package/lib/types/commands/commands/set-worksheet-show.command.d.ts +2 -16
  50. package/lib/types/commands/commands/utils/merged-cell-util.d.ts +2 -16
  51. package/lib/types/commands/commands/utils/selection-utils.d.ts +4 -17
  52. package/lib/types/commands/mutations/__tests__/create-command-test-bed.d.ts +3 -19
  53. package/lib/types/commands/mutations/__tests__/set-range-values.mutation.spec.d.ts +16 -0
  54. package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +4 -18
  55. package/lib/types/commands/mutations/empty.mutation.d.ts +2 -16
  56. package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +4 -18
  57. package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +4 -18
  58. package/lib/types/commands/mutations/move-range.mutation.d.ts +2 -16
  59. package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +3 -17
  60. package/lib/types/commands/mutations/numfmt-mutation.d.ts +4 -18
  61. package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +4 -18
  62. package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +4 -18
  63. package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +4 -18
  64. package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +3 -17
  65. package/lib/types/commands/mutations/set-frozen.mutation.d.ts +3 -17
  66. package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +3 -17
  67. package/lib/types/commands/mutations/set-range-values.mutation.d.ts +18 -17
  68. package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +3 -17
  69. package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +3 -17
  70. package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +3 -17
  71. package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts +3 -17
  72. package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +3 -17
  73. package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +3 -17
  74. package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +5 -18
  75. package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +3 -17
  76. package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +4 -18
  77. package/lib/types/commands/operations/scroll-to-cell.operation.d.ts +3 -0
  78. package/lib/types/commands/operations/selection.operation.d.ts +4 -18
  79. package/lib/types/commands/operations/set-worksheet-active.operation.d.ts +2 -16
  80. package/lib/types/commands/utils/get-target.d.ts +2 -16
  81. package/lib/types/commands/utils/handle-merge-operation.d.ts +5 -19
  82. package/lib/types/commands/utils/handle-range-mutation.d.ts +4 -19
  83. package/lib/types/controllers/__tests__/util.d.ts +10 -25
  84. package/lib/types/controllers/basic-worksheet.controller.d.ts +3 -18
  85. package/lib/types/controllers/calculate-result-apply.controller.d.ts +1 -15
  86. package/lib/types/controllers/defined-name-data.controller.d.ts +12 -0
  87. package/lib/types/controllers/feature-calculation.controller.d.ts +2 -16
  88. package/lib/types/controllers/merge-cell.controller.d.ts +20 -20
  89. package/lib/types/index.d.ts +6 -2
  90. package/lib/types/locale/en-US.d.ts +2 -16
  91. package/lib/types/services/__tests__/util.d.ts +10 -25
  92. package/lib/types/services/border-style-manager.service.d.ts +3 -17
  93. package/lib/types/services/numfmt/numfmt.service.d.ts +5 -19
  94. package/lib/types/services/numfmt/type.d.ts +5 -18
  95. package/lib/types/services/permission/permission-point.d.ts +1 -15
  96. package/lib/types/services/permission/sheet-permission.service.d.ts +3 -18
  97. package/lib/types/services/permission/tool.d.ts +2 -16
  98. package/lib/types/services/ref-range/__tests__/util.d.ts +10 -25
  99. package/lib/types/services/ref-range/ref-range.service.d.ts +9 -22
  100. package/lib/types/services/ref-range/type.d.ts +10 -32
  101. package/lib/types/services/ref-range/util.d.ts +10 -22
  102. package/lib/types/services/selection-manager.service.d.ts +7 -21
  103. package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +10 -25
  104. package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +5 -19
  105. package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +6 -21
  106. package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts +2 -16
  107. package/lib/types/sheets-plugin.d.ts +2 -16
  108. package/lib/umd/index.js +2 -2
  109. package/package.json +10 -11
@@ -1,27 +1,12 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { ICommandInfo, IRange } from '@univerjs/core';
17
- import { RANGE_TYPE } from '@univerjs/core';
18
- import type { IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand } from './type';
1
+ import { IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand } from './type';
2
+ import { ICommandInfo, IRange, RANGE_TYPE } from '@univerjs/core';
3
+
19
4
  export declare const handleRangeTypeInput: (range: IRange) => {
20
5
  startColumn: number;
21
6
  endColumn: number;
22
7
  rangeType?: RANGE_TYPE | undefined;
23
- startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
24
- endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
8
+ startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined;
9
+ endAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined;
25
10
  startRow: number;
26
11
  endRow: number;
27
12
  };
@@ -29,8 +14,8 @@ export declare const handleRangeTypeOutput: (range: IRange, maxRow: number, maxC
29
14
  startColumn: number;
30
15
  endColumn: number;
31
16
  rangeType?: RANGE_TYPE | undefined;
32
- startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
33
- endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
17
+ startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined;
18
+ endAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined;
34
19
  startRow: number;
35
20
  endRow: number;
36
21
  };
@@ -47,7 +32,9 @@ export declare const handleBaseMoveRowsCols: (fromRange: ILine, toRange: ILine,
47
32
  step: number;
48
33
  };
49
34
  export declare const handleMoveRows: (params: IMoveRowsCommand, targetRange: IRange) => IOperator[];
35
+ export declare const handleMoveRowsOther: (params: IMoveRowsCommand, targetRange: IRange) => IRange[] | null;
50
36
  export declare const handleMoveCols: (params: IMoveColsCommand, targetRange: IRange) => IOperator[];
37
+ export declare const handleMoveColsOther: (params: IMoveColsCommand, targetRange: IRange) => IRange[] | null;
51
38
  export declare const handleMoveRange: (param: IMoveRangeCommand, targetRange: IRange) => IOperator[];
52
39
  export declare const handleBaseRemoveRange: (_removeRange: IRange, _targetRange: IRange) => {
53
40
  step: number;
@@ -67,4 +54,5 @@ export declare const handleDeleteRangeMoveLeft: (param: IDeleteRangeMoveLeftComm
67
54
  export declare const handleDeleteRangeMoveUp: (param: IDeleteRangeMoveUpCommand, targetRange: IRange) => IOperator[];
68
55
  export declare const runRefRangeMutations: (operators: IOperator[], range: IRange) => IRange | null;
69
56
  export declare const handleDefaultRangeChangeWithEffectRefCommands: (range: IRange, commandInfo: ICommandInfo) => IRange | null;
57
+ export declare const handleOtherDefaultRangeChangeWithEffectRefCommands: (range: IRange, commandInfo: ICommandInfo) => IRange | IRange[] | null;
70
58
  export {};
@@ -1,21 +1,7 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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, type ISelectionCell, type Nullable, ThemeService } from '@univerjs/core';
17
- import { type IDisposable } from '@wendellhu/redi';
18
- import type { ISelectionStyle, ISelectionWithStyle } from '../basics/selection';
1
+ import { ISelectionStyle, ISelectionWithStyle } from '../basics/selection';
2
+ import { IDisposable } from '@wendellhu/redi';
3
+ import { IRange, ISelectionCell, Nullable, ThemeService } from '@univerjs/core';
4
+
19
5
  export declare const NORMAL_SELECTION_PLUGIN_NAME = "normalSelectionPluginName";
20
6
  export interface ISelectionManagerSearchParam {
21
7
  pluginName: string;
@@ -53,11 +39,11 @@ export declare class SelectionManagerService implements IDisposable {
53
39
  private readonly _selectionInfo;
54
40
  private _currentSelection;
55
41
  private readonly _selectionMoveStart$;
56
- readonly selectionMoveStart$: import("rxjs").Observable<Nullable<ISelectionWithStyle[]>>;
42
+ readonly selectionMoveStart$: import('rxjs').Observable<Nullable<ISelectionWithStyle[]>>;
57
43
  private readonly _selectionMoving$;
58
- readonly selectionMoving$: import("rxjs").Observable<Nullable<ISelectionWithStyle[]>>;
44
+ readonly selectionMoving$: import('rxjs').Observable<Nullable<ISelectionWithStyle[]>>;
59
45
  private readonly _selectionMoveEnd$;
60
- readonly selectionMoveEnd$: import("rxjs").Observable<Nullable<ISelectionWithStyle[]>>;
46
+ readonly selectionMoveEnd$: import('rxjs').Observable<Nullable<ISelectionWithStyle[]>>;
61
47
  private _dirty;
62
48
  constructor(_themeService: ThemeService);
63
49
  getCurrent(): Nullable<ISelectionManagerSearchParam>;
@@ -1,30 +1,15 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { IWorkbookData } from '@univerjs/core';
17
- import { Univer } from '@univerjs/core';
18
- import type { Dependency } from '@wendellhu/redi';
1
+ import { Dependency } from '@wendellhu/redi';
2
+ import { IWorkbookData, Univer } from '@univerjs/core';
3
+
19
4
  export declare function createCoreTestBed(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): {
20
5
  univer: Univer;
21
6
  get: {
22
- <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, lookUp?: import("@wendellhu/redi").LookUp | undefined): T;
23
- <T_1>(id: import("@wendellhu/redi").DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_1[];
24
- <T_2>(id: import("@wendellhu/redi").DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_2 | null;
25
- <T_3>(id: import("@wendellhu/redi").DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_3;
26
- <T_4>(id: import("@wendellhu/redi").DependencyIdentifier<T_4>, quantity?: import("@wendellhu/redi").Quantity | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_4 | T_4[] | null;
27
- <T_5>(id: import("@wendellhu/redi").DependencyIdentifier<T_5>, quantityOrLookup?: import("@wendellhu/redi").Quantity | import("@wendellhu/redi").LookUp | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_5 | T_5[] | null;
7
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
8
+ <T_1>(id: import('@wendellhu/redi').DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_1[];
9
+ <T_2>(id: import('@wendellhu/redi').DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_2 | null;
10
+ <T_3>(id: import('@wendellhu/redi').DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_3;
11
+ <T_4>(id: import('@wendellhu/redi').DependencyIdentifier<T_4>, quantity?: import('@wendellhu/redi').Quantity | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_4 | T_4[] | null;
12
+ <T_5>(id: import('@wendellhu/redi').DependencyIdentifier<T_5>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_5 | T_5[] | null;
28
13
  };
29
- sheet: import("@univerjs/core").Workbook;
14
+ sheet: import('@univerjs/core').Workbook;
30
15
  };
@@ -1,21 +1,7 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { ICellDataForSheetInterceptor, ICommandInfo } from '@univerjs/core';
17
- import type { ISheetLocation } from './utils/interceptor';
1
+ import { ISheetLocation } from './utils/interceptor';
2
+ import { ICellDataForSheetInterceptor, ICommandInfo } from '@univerjs/core';
3
+
18
4
  export declare const INTERCEPTOR_POINT: {
19
- CELL_CONTENT: import("@univerjs/core").IInterceptor<ICellDataForSheetInterceptor, ISheetLocation>;
20
- PERMISSION: import("@univerjs/core").IInterceptor<boolean, ICommandInfo<object>>;
5
+ CELL_CONTENT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocation>;
6
+ PERMISSION: import('@univerjs/core').IInterceptor<boolean, ICommandInfo<object>>;
21
7
  };
@@ -1,24 +1,9 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { ICommandInfo, IInterceptor, IUndoRedoCommandInfos } from '@univerjs/core';
17
- import { Disposable, IUniverInstanceService } from '@univerjs/core';
18
- import type { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@wendellhu/redi';
2
+ import { ICommandInfo, IInterceptor, IUndoRedoCommandInfosByInterceptor, Disposable, IUniverInstanceService } from '@univerjs/core';
3
+
19
4
  export interface ICommandInterceptor {
20
5
  priority?: number;
21
- getMutations(command: ICommandInfo): IUndoRedoCommandInfos;
6
+ getMutations(command: ICommandInfo): IUndoRedoCommandInfosByInterceptor;
22
7
  }
23
8
  /**
24
9
  * This class expose methods for sheet features to inject code to sheet underlying logic.
@@ -39,9 +24,9 @@ export declare class SheetInterceptorService extends Disposable {
39
24
  * @param command
40
25
  * @returns
41
26
  */
42
- onCommandExecute(command: ICommandInfo): IUndoRedoCommandInfos;
27
+ onCommandExecute(command: ICommandInfo): IUndoRedoCommandInfosByInterceptor;
43
28
  intercept<T extends IInterceptor<any, any>>(name: T, interceptor: T): IDisposable;
44
- fetchThroughInterceptors<T, C>(name: IInterceptor<T, C>): (initValue: import("@univerjs/core/common/type-utils.js").Nullable<T>, initContext: C) => import("@univerjs/core/common/type-utils.js").Nullable<T>;
29
+ fetchThroughInterceptors<T, C>(name: IInterceptor<T, C>): (initValue: import('@univerjs/core/common/type-utils.js').Nullable<T>, initContext: C) => import('@univerjs/core/common/type-utils.js').Nullable<T>;
45
30
  private _interceptWorkbook;
46
31
  private _disposeWorkbookInterceptor;
47
32
  private _disposeSheetInterceptor;
@@ -1,19 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { Workbook, Worksheet } from '@univerjs/core';
1
+ import { Workbook, Worksheet } from '@univerjs/core';
2
+
17
3
  export interface ISheetLocation {
18
4
  workbook: Workbook;
19
5
  worksheet: Worksheet;
@@ -1,20 +1,6 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { ICommandService, LocaleService, Plugin, PluginType } from '@univerjs/core';
17
1
  import { Injector } from '@wendellhu/redi';
2
+ import { ICommandService, LocaleService, Plugin, PluginType } from '@univerjs/core';
3
+
18
4
  export interface IUniverSheetsConfig {
19
5
  notExecuteFormula?: boolean;
20
6
  }