@univerjs/sheets-ui 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 (90) hide show
  1. package/README.md +11 -4
  2. package/lib/cjs/index.js +15 -15
  3. package/lib/es/index.js +11191 -12072
  4. package/lib/locale/vi-VN.json +613 -0
  5. package/lib/locale/zh-TW.json +613 -0
  6. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +2 -3
  7. package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts +12 -12
  8. package/lib/types/commands/operations/cell-edit.operation.d.ts +2 -0
  9. package/lib/types/common/utils.d.ts +1 -2
  10. package/lib/types/controllers/auto-fill.controller.d.ts +4 -7
  11. package/lib/types/controllers/auto-height.controller.d.ts +3 -4
  12. package/lib/types/controllers/clipboard/clipboard.controller.d.ts +1 -2
  13. package/lib/types/controllers/clipboard/utils.d.ts +1 -2
  14. package/lib/types/controllers/defined-name/defined-name.controller.d.ts +15 -0
  15. package/lib/types/controllers/editor/__tests__/create-test-bed.d.ts +1 -2
  16. package/lib/types/controllers/editor/editing.render-controller.d.ts +25 -10
  17. package/lib/types/controllers/format-painter/format-painter.controller.d.ts +5 -6
  18. package/lib/types/controllers/hover-render.controller.d.ts +2 -2
  19. package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts +6 -6
  20. package/lib/types/controllers/menu/border.menu.d.ts +1 -1
  21. package/lib/types/controllers/menu/clear.menu.d.ts +1 -1
  22. package/lib/types/controllers/menu/delete.menu.d.ts +1 -1
  23. package/lib/types/controllers/menu/insert.menu.d.ts +1 -1
  24. package/lib/types/controllers/menu/menu-util.d.ts +1 -2
  25. package/lib/types/controllers/menu/menu.d.ts +1 -2
  26. package/lib/types/controllers/menu/merge.menu.d.ts +1 -1
  27. package/lib/types/controllers/menu/permission-menu-util.d.ts +1 -1
  28. package/lib/types/controllers/menu/permission.menu.d.ts +1 -1
  29. package/lib/types/controllers/menu/sheet.menu.d.ts +1 -1
  30. package/lib/types/controllers/mobile/mobile-sheet-ui.controller.d.ts +1 -2
  31. package/lib/types/controllers/move-range.controller.d.ts +7 -5
  32. package/lib/types/controllers/permission/sheet-permission-init.controller.d.ts +1 -1
  33. package/lib/types/controllers/permission/sheet-permission-interceptor-base.controller.d.ts +4 -2
  34. package/lib/types/controllers/permission/sheet-permission-interceptor-canvas-render.controller.d.ts +3 -3
  35. package/lib/types/controllers/permission/sheet-permission-interceptor-clipboard.controller.d.ts +2 -2
  36. package/lib/types/controllers/permission/sheet-permission-interceptor-formula-render.controller.d.ts +1 -2
  37. package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +1 -2
  38. package/lib/types/controllers/render-controllers/contextmenu.render-controller.d.ts +3 -3
  39. package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +8 -6
  40. package/lib/types/controllers/render-controllers/freeze.render-controller.d.ts +4 -5
  41. package/lib/types/controllers/render-controllers/header-menu.render-controller.d.ts +2 -2
  42. package/lib/types/controllers/render-controllers/header-move.render-controller.d.ts +5 -8
  43. package/lib/types/controllers/render-controllers/mobile/mobile-contextmenu.render-controller.d.ts +3 -3
  44. package/lib/types/controllers/render-controllers/mobile/mobile-scroll.render-controller.d.ts +3 -3
  45. package/lib/types/controllers/render-controllers/scroll.render-controller.d.ts +5 -6
  46. package/lib/types/controllers/sheet-ui.controller.d.ts +1 -2
  47. package/lib/types/controllers/status-bar.controller.d.ts +2 -2
  48. package/lib/types/controllers/utils/component-tools.d.ts +1 -5
  49. package/lib/types/controllers/utils/range-tools.d.ts +1 -2
  50. package/lib/types/controllers/utils/selections-tools.d.ts +3 -1
  51. package/lib/types/index.d.ts +6 -3
  52. package/lib/types/locale/vi-VN.d.ts +4 -0
  53. package/lib/types/locale/zh-TW.d.ts +4 -0
  54. package/lib/types/mobile-sheets-ui-plugin.d.ts +1 -2
  55. package/lib/types/services/auto-fill/auto-fill.service.d.ts +4 -5
  56. package/lib/types/services/auto-fill/type.d.ts +1 -2
  57. package/lib/types/services/canvas-pop-manager.service.d.ts +1 -2
  58. package/lib/types/services/cell-alert-manager.service.d.ts +1 -1
  59. package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +7 -8
  60. package/lib/types/services/clipboard/clipboard.service.d.ts +5 -5
  61. package/lib/types/services/drag-manager.service.d.ts +1 -3
  62. package/lib/types/services/editor/cell-editor-manager.service.d.ts +2 -3
  63. package/lib/types/services/editor/formula-editor-manager.service.d.ts +2 -3
  64. package/lib/types/services/editor-bridge.service.d.ts +7 -7
  65. package/lib/types/services/format-painter/format-painter.service.d.ts +5 -5
  66. package/lib/types/services/hover-manager.service.d.ts +1 -3
  67. package/lib/types/services/mark-selection/mark-selection.service.d.ts +2 -4
  68. package/lib/types/services/permission/worksheet-permission-render.service.d.ts +1 -1
  69. package/lib/types/services/scroll-manager.service.d.ts +7 -6
  70. package/lib/types/services/selection/base-selection-render.service.d.ts +173 -0
  71. package/lib/types/services/selection/const.d.ts +9 -0
  72. package/lib/types/services/selection/mobile-selection-render.service.d.ts +44 -151
  73. package/lib/types/services/selection/selection-render-model.d.ts +9 -31
  74. package/lib/types/services/selection/selection-render.service.d.ts +27 -211
  75. package/lib/types/services/selection/selection-shape-extension.d.ts +5 -3
  76. package/lib/types/services/selection/selection-shape.d.ts +3 -5
  77. package/lib/types/services/selection/util.d.ts +6 -0
  78. package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +2 -3
  79. package/lib/types/services/sheet-skeleton-manager.service.d.ts +6 -4
  80. package/lib/types/services/sheets-render.service.d.ts +1 -2
  81. package/lib/types/services/shortcut-experience.service.d.ts +3 -2
  82. package/lib/types/services/status-bar.service.d.ts +2 -3
  83. package/lib/types/services/utils/selection-util.d.ts +4 -0
  84. package/lib/types/sheets-ui-plugin.d.ts +1 -2
  85. package/lib/umd/index.js +15 -15
  86. package/package.json +23 -25
  87. package/lib/types/controllers/render-controllers/mobile/mobile-selection.render-controller.d.ts +0 -40
  88. package/lib/types/controllers/render-controllers/selection.render-controller.d.ts +0 -37
  89. package/lib/types/services/selection/__test__/create-service-test-bed.d.ts +0 -9
  90. package/lib/types/services/selection/__test__/selection-render.test.d.ts +0 -16
@@ -1,216 +1,32 @@
1
- import { IInterceptor, IRange, IRangeWithCoord, ISelection, ISelectionCell, ISelectionCellWithMergeInfo, Nullable, InterceptorManager, RANGE_TYPE, ThemeService } from '@univerjs/core';
2
- import { IMouseEvent, IPointerEvent, Scene, SpreadsheetSkeleton, Viewport, IRenderManagerService, ScrollTimerType } from '@univerjs/engine-render';
3
- import { ISelectionStyle, ISelectionWithCoordAndStyle, ISelectionWithStyle } from '@univerjs/sheets';
1
+ import { Workbook, ICommandService, IContextService, ILogService, Injector, ThemeService } from '@univerjs/core';
2
+ import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
3
+ import { SheetsSelectionsService } from '@univerjs/sheets';
4
4
  import { IShortcutService } from '@univerjs/ui';
5
- import { Injector } from '@wendellhu/redi';
6
- import { Observable } from 'rxjs';
7
- import { SelectionControl as SelectionShape } from './selection-shape';
5
+ import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
6
+ import { BaseSelectionRenderService } from './base-selection-render.service';
8
7
 
9
- export interface IControlFillConfig {
10
- oldRange: IRange;
11
- newRange: IRange;
12
- }
13
- export interface ISelectionRenderService {
14
- readonly selectionMoveEnd$: Observable<ISelectionWithCoordAndStyle[]>;
15
- readonly controlFillConfig$: Observable<IControlFillConfig | null>;
16
- readonly selectionMoving$: Observable<ISelectionWithCoordAndStyle[]>;
17
- readonly selectionMoveStart$: Observable<ISelectionWithCoordAndStyle[]>;
18
- readonly usable$: Observable<boolean>;
19
- interceptor: InterceptorManager<{
20
- RANGE_MOVE_PERMISSION_CHECK: IInterceptor<boolean, null>;
21
- RANGE_FILL_PERMISSION_CHECK: IInterceptor<boolean, {
22
- x: number;
23
- y: number;
24
- skeleton: SpreadsheetSkeleton;
25
- scene: Scene;
26
- }>;
27
- }>;
28
- enableHeaderHighlight(): void;
29
- disableHeaderHighlight(): void;
30
- enableDetectMergedCell(): void;
31
- disableDetectMergedCell(): void;
32
- setStyle(style: ISelectionStyle): void;
33
- resetStyle(): void;
34
- enableSelection(): void;
35
- disableSelection(): void;
36
- enableShowPrevious(): void;
37
- disableShowPrevious(): void;
38
- enableRemainLast(): void;
39
- disableRemainLast(): void;
40
- enableSkipRemainLast(): void;
41
- disableSkipRemainLast(): void;
42
- addSelectionControlBySelectionData(data: ISelectionWithCoordAndStyle): void;
43
- updateControlForCurrentByRangeData(selections: ISelectionWithCoordAndStyle[]): void;
44
- changeRuntime(skeleton: Nullable<SpreadsheetSkeleton>, scene: Nullable<Scene>, viewport?: Viewport): void;
45
- /** @deprecated This should not be provided by the selection render service. */
46
- getViewPort(): Viewport;
47
- getSelectionControls(): SelectionShape[];
48
- getActiveSelections(): Nullable<ISelection[]>;
49
- getActiveRange(): Nullable<IRange>;
50
- getActiveSelectionControl(): Nullable<SelectionShape>;
51
- getSelectionDataWithStyle(): ISelectionWithCoordAndStyle[];
52
- attachSelectionWithCoord(selectionWithStyle: ISelectionWithStyle): ISelectionWithCoordAndStyle;
53
- attachRangeWithCoord(range: IRange): Nullable<IRangeWithCoord>;
54
- attachPrimaryWithCoord(primary: Nullable<ISelectionCell>): Nullable<ISelectionCellWithMergeInfo>;
55
- getSelectionCellByPosition(x: number, y: number): Nullable<ISelectionCellWithMergeInfo>;
56
- eventTrigger(evt: IPointerEvent | IMouseEvent, zIndex: number, rangeType: RANGE_TYPE, viewport?: Viewport, scrollTimerType?: ScrollTimerType): void;
57
- reset(): void;
58
- refreshSelectionMoveStart(): void;
59
- enableSingleSelection(): void;
60
- disableSingleSelection(): void;
61
- }
62
8
  /**
63
- * TODO 注册 selection 拦截,可能在有公式 ArrayObject 时,fx 公式栏显示不同
64
- *
65
- * SelectionRenderService 维护 viewModel 数据 list,action 也是修改这一层数据,obs 监听到数据变动后,自动刷新(control 仍然可以持有数据)
66
- *
67
- * This service is related to the drawing of the selection.
68
- * By modifying the properties of the service,
69
- * you can adjust the style and performance of each selection area.
70
- * This service is used in conjunction with the SelectionManagerService
71
- * to implement functions related to the selection area in univer.
72
- *
73
- * @todo Refactor it to RenderController.
9
+ * This services controls rendering of normal selections in a render unit.
10
+ * The normal selections would also be used by Auto Fill and Copy features.
74
11
  */
75
- export declare const RANGE_MOVE_PERMISSION_CHECK: IInterceptor<boolean, null>;
76
- export declare const RANGE_FILL_PERMISSION_CHECK: IInterceptor<boolean, {
77
- x: number;
78
- y: number;
79
- skeleton: SpreadsheetSkeleton;
80
- scene: Scene;
81
- }>;
82
- export declare class SelectionRenderService implements ISelectionRenderService {
83
- private readonly _themeService;
84
- private readonly _shortcutService;
85
- private readonly _renderManagerService;
86
- private readonly _injector;
87
- hasSelection: boolean;
88
- private _pointerdownSub;
89
- private _mainScenePointerUpSub;
90
- private _scenePointerMoveSub;
91
- private _scenePointerUpSub;
92
- private _controlFillConfig$;
93
- readonly controlFillConfig$: Observable<IControlFillConfig | null>;
94
- private _selectionControls;
95
- private _startSelectionRange;
96
- private _startOffsetX;
97
- private _startOffsetY;
98
- private _scrollTimer;
99
- private _skeleton;
100
- private _scene;
101
- private _isHeaderHighlight;
102
- private _isDetectMergedCell;
103
- private _selectionStyle;
104
- private _isSelectionEnabled;
105
- private _isShowPreviousEnable;
106
- private _isRemainLastEnable;
107
- private _isSkipRemainLastEnable;
108
- private _isSingleSelection;
109
- private readonly _selectionMoveEnd$;
110
- readonly selectionMoveEnd$: Observable<ISelectionWithCoordAndStyle[]>;
111
- private readonly _selectionMoving$;
112
- /**
113
- * Triggered during the drawing of the selection area.
114
- */
115
- readonly selectionMoving$: Observable<ISelectionWithCoordAndStyle[]>;
116
- private readonly _selectionMoveStart$;
117
- /**
118
- * Triggered during the start draw the selection area.
119
- */
120
- readonly selectionMoveStart$: Observable<ISelectionWithCoordAndStyle[]>;
121
- private _activeViewport;
122
- /**
123
- * This service relies on the scene and skeleton to work
124
- * Use usable$ to check if this service works
125
- */
126
- private readonly _usable$;
127
- readonly usable$: Observable<boolean>;
128
- interceptor: InterceptorManager<{
129
- RANGE_MOVE_PERMISSION_CHECK: IInterceptor<boolean, null>;
130
- RANGE_FILL_PERMISSION_CHECK: IInterceptor<boolean, {
131
- x: number;
132
- y: number;
133
- skeleton: SpreadsheetSkeleton;
134
- scene: Scene;
135
- }>;
136
- }>;
137
- constructor(_themeService: ThemeService, _shortcutService: IShortcutService, _renderManagerService: IRenderManagerService, _injector: Injector);
138
- enableHeaderHighlight(): void;
139
- disableHeaderHighlight(): void;
140
- enableDetectMergedCell(): void;
141
- disableDetectMergedCell(): void;
142
- setStyle(style: ISelectionStyle): void;
143
- resetStyle(): void;
144
- enableSelection(): void;
145
- disableSelection(): void;
146
- enableShowPrevious(): void;
147
- disableShowPrevious(): void;
148
- enableRemainLast(): void;
149
- disableRemainLast(): void;
150
- enableSkipRemainLast(): void;
151
- disableSkipRemainLast(): void;
152
- enableSingleSelection(): void;
153
- disableSingleSelection(): void;
154
- getViewPort(): Viewport;
155
- /**
156
- * add a selection
157
- * @param data
158
- */
159
- addSelectionControlBySelectionData(data: ISelectionWithCoordAndStyle): void;
160
- updateControlForCurrentByRangeData(selections: ISelectionWithCoordAndStyle[]): void;
161
- refreshSelectionMoveStart(): void;
162
- changeRuntime(skeleton: Nullable<SpreadsheetSkeleton>, scene: Nullable<Scene>, viewport?: Viewport): void;
163
- getSelectionDataWithStyle(): ISelectionWithCoordAndStyle[];
164
- getSelectionControls(): SelectionShape[];
165
- private _clearSelectionControls;
166
- private _getFreeze;
167
- private _getViewportByCell;
168
- /**
169
- * Returns the list of active ranges in the active sheet or null if there are no active ranges.
170
- * If there is a single range selected, this behaves as a getActiveRange() call.
171
- *
172
- * @returns
173
- */
174
- getActiveSelections(): Nullable<ISelection[]>;
175
- /**
176
- * Returns the selected range in the active sheet, or null if there is no active range. If multiple ranges are selected this method returns only the last selected range.
177
- * TODO: 默认最后一个选区为当前激活选区,或者当前激活单元格所在选区为激活选区
178
- * @returns
179
- */
180
- getActiveRange(): Nullable<IRange>;
181
- /**
182
- * get active selection control
183
- * @returns
184
- */
185
- getActiveSelectionControl(): Nullable<SelectionShape>;
186
- endSelection(): void;
187
- /**
188
- * first, clear All selection controls
189
- * then unsubscribe all events
190
- */
191
- reset(): void;
192
- resetAndEndSelection(): void;
193
- /**
194
- *
195
- * @param evt component point event
196
- * @param style selection style, Styles for user-customized selectors
197
- * @param zIndex Stacking order of the selection object
198
- * @param rangeType Determines whether the selection is made normally according to the range or by rows and columns
199
- */
200
- eventTrigger(evt: IPointerEvent | IMouseEvent, zIndex?: number, rangeType?: RANGE_TYPE, viewport?: Viewport, scrollTimerType?: ScrollTimerType): false | undefined;
201
- attachSelectionWithCoord(selectionWithStyle: ISelectionWithStyle): ISelectionWithCoordAndStyle;
202
- attachRangeWithCoord(range: IRange): Nullable<IRangeWithCoord>;
203
- attachPrimaryWithCoord(primary: Nullable<ISelectionCell>): Nullable<ISelectionCellWithMergeInfo>;
204
- getSelectionCellByPosition(x: number, y: number): Nullable<ISelectionCellWithMergeInfo>;
205
- /**
206
- * When mousedown and mouseup need to go to the coordination and undo stack, when mousemove does not need to go to the coordination and undo stack
207
- */
208
- private _moving;
209
- private _endSelection;
210
- private _addCancelObserver;
211
- private _getSelectedRangeWithMerge;
12
+ export declare class SheetSelectionRenderService extends BaseSelectionRenderService implements IRenderModule {
13
+ private readonly _context;
14
+ private readonly _logService;
15
+ private readonly _commandService;
16
+ private readonly _contextService;
17
+ private readonly _sheetSkeletonManagerService;
18
+ private readonly _workbookSelections;
19
+ private _renderDisposable;
20
+ constructor(_context: IRenderContext<Workbook>, injector: Injector, themeService: ThemeService, shortcutService: IShortcutService, renderManagerService: IRenderManagerService, selectionManagerService: SheetsSelectionsService, _logService: ILogService, _commandService: ICommandService, _contextService: IContextService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
21
+ private _init;
22
+ private _initEventListeners;
23
+ private _initThemeChangeListener;
24
+ private _refreshSelection;
25
+ private _normalSelectionDisabled;
26
+ private _initSelectionChangeListener;
27
+ private _initUserActionSyncListener;
28
+ private _updateSelections;
29
+ private _initSkeletonChangeListener;
30
+ private _getActiveViewport;
31
+ private _getSheetObject;
212
32
  }
213
- /**
214
- * @deprecated Should be refactored to RenderUnit.
215
- */
216
- export declare const ISelectionRenderService: import('@wendellhu/redi').IdentifierDecorator<SelectionRenderService>;
@@ -1,6 +1,5 @@
1
- import { IRangeWithCoord, ThemeService } from '@univerjs/core';
1
+ import { Injector, IRangeWithCoord, ThemeService } from '@univerjs/core';
2
2
  import { Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
3
- import { Injector } from '@wendellhu/redi';
4
3
  import { SelectionControl } from './selection-shape';
5
4
 
6
5
  export interface ISelectionShapeTargetSelection {
@@ -16,6 +15,7 @@ export declare class SelectionShapeExtension {
16
15
  private _skeleton;
17
16
  private _scene;
18
17
  private readonly _themeService;
18
+ /** @deprecated injection in extensions should be strictly limited. */
19
19
  private readonly _injector;
20
20
  private _startOffsetX;
21
21
  private _startOffsetY;
@@ -31,7 +31,9 @@ export declare class SelectionShapeExtension {
31
31
  private _targetSelection;
32
32
  private _isInMergeState;
33
33
  private _fillControlColors;
34
- constructor(_control: SelectionControl, _skeleton: SpreadsheetSkeleton, _scene: Scene, _themeService: ThemeService, _injector: Injector);
34
+ constructor(_control: SelectionControl, _skeleton: SpreadsheetSkeleton, _scene: Scene, _themeService: ThemeService,
35
+ /** @deprecated injection in extensions should be strictly limited. */
36
+ _injector: Injector);
35
37
  get isHelperSelection(): boolean;
36
38
  dispose(): void;
37
39
  private _getFreeze;
@@ -80,9 +80,9 @@ export declare class SelectionControl extends Disposable {
80
80
  protected _widgetRects: Rect[];
81
81
  private _dispose$;
82
82
  readonly dispose$: import('rxjs').Observable<SelectionControl>;
83
- readonly selectionMoving$: Subject<Nullable<IRangeWithCoord>>;
84
- readonly selectionMoved$: Subject<Nullable<IRangeWithCoord>>;
85
- readonly selectionScaling$: Subject<Nullable<IRangeWithCoord>>;
83
+ readonly selectionMoving$: Subject<IRangeWithCoord>;
84
+ readonly selectionMoved$: Subject<IRangeWithCoord>;
85
+ readonly selectionScaling$: Subject<IRangeWithCoord>;
86
86
  readonly selectionScaled$: Subject<Nullable<IRangeWithCoord>>;
87
87
  readonly selectionFilling$: Subject<Nullable<IRangeWithCoord>>;
88
88
  private readonly _selectionFilled$;
@@ -130,8 +130,6 @@ export declare class SelectionControl extends Disposable {
130
130
  get columnHeaderHeight(): number;
131
131
  set columnHeaderHeight(height: number);
132
132
  setEvent(state: boolean): void;
133
- enableHeaderHighlight(): void;
134
- disableHeaderHighlight(): void;
135
133
  refreshSelectionFilled(val: IRangeWithCoord): void;
136
134
  updateStyle(style: ISelectionStyle): void;
137
135
  updateRange(range: IRangeWithCoord): void;
@@ -0,0 +1,6 @@
1
+ import { ISelectionCell, ISelectionCellWithMergeInfo } from '@univerjs/core';
2
+ import { SpreadsheetSkeleton } from '@univerjs/engine-render';
3
+ import { ISelectionWithCoordAndStyle, ISelectionWithStyle } from '@univerjs/sheets';
4
+
5
+ export declare function attachSelectionWithCoord(selection: ISelectionWithStyle, skeleton: SpreadsheetSkeleton): ISelectionWithCoordAndStyle;
6
+ export declare function attachPrimaryWithCoord(primary: ISelectionCell, skeleton: SpreadsheetSkeleton): ISelectionCellWithMergeInfo;
@@ -1,5 +1,4 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { Disposable, IDisposable } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
  import { IScrollState } from '../../views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar';
5
4
 
@@ -20,7 +19,7 @@ export interface ISheetBarService {
20
19
  triggerSheetBarMenu(): void;
21
20
  registerSheetBarMenuHandler(handler: ISheetBarMenuHandler): IDisposable;
22
21
  }
23
- export declare const ISheetBarService: import('@wendellhu/redi').IdentifierDecorator<ISheetBarService>;
22
+ export declare const ISheetBarService: import('@univerjs/core').IdentifierDecorator<ISheetBarService>;
24
23
  export declare class SheetBarService extends Disposable implements ISheetBarService {
25
24
  readonly renameId$: Observable<string>;
26
25
  readonly removeId$: Observable<string>;
@@ -1,6 +1,5 @@
1
- import { Disposable, Nullable, Workbook } from '@univerjs/core';
1
+ import { IRange, IRangeWithCoord, Nullable, Workbook, Disposable, Injector } from '@univerjs/core';
2
2
  import { IRenderContext, IRenderModule, SpreadsheetSkeleton } from '@univerjs/engine-render';
3
- import { Injector } from '@wendellhu/redi';
4
3
 
5
4
  export interface ISheetSkeletonManagerParam {
6
5
  unitId?: string;
@@ -37,9 +36,9 @@ export declare class SheetSkeletonManagerService extends Disposable implements I
37
36
  readonly currentSkeletonBefore$: import('rxjs').Observable<Nullable<ISheetSkeletonManagerParam>>;
38
37
  constructor(_context: IRenderContext<Workbook>, _injector: Injector);
39
38
  private _initRemoveSheet;
40
- getCurrentSkeleton(): SpreadsheetSkeleton;
41
- /** @deprecated */
39
+ getCurrentSkeleton(): Nullable<SpreadsheetSkeleton>;
42
40
  getCurrent(): Nullable<ISheetSkeletonManagerParam>;
41
+ getWorksheetSkeleton(sheetId: string): Nullable<ISheetSkeletonManagerParam>;
43
42
  /**
44
43
  * unitId is never read?
45
44
  */
@@ -51,6 +50,9 @@ export declare class SheetSkeletonManagerService extends Disposable implements I
51
50
  makeDirty(searchParm: ISheetSkeletonManagerSearch, state?: boolean): void;
52
51
  getOrCreateSkeleton(searchParam: ISheetSkeletonManagerSearch): SpreadsheetSkeleton | undefined;
53
52
  disposeSkeleton(searchParm: ISheetSkeletonManagerSearch): void;
53
+ /** @deprecated Use function `attachRangeWithCoord` instead. */
54
+ attachRangeWithCoord(range: IRange): Nullable<IRangeWithCoord>;
54
55
  private _getSkeleton;
55
56
  private _buildSkeleton;
56
57
  }
58
+ export declare function attachRangeWithCoord(skeleton: SpreadsheetSkeleton, range: IRange): IRangeWithCoord;
@@ -1,6 +1,5 @@
1
- import { IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
1
+ import { IDisposable, IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
- import { IDisposable } from '@wendellhu/redi';
4
3
 
5
4
  /**
6
5
  * This controller is responsible for managing units of a specific kind to be rendered on the canvas.
@@ -1,6 +1,5 @@
1
- import { ISelection, ITextRangeParam, Nullable, IUniverInstanceService, LocaleService } from '@univerjs/core';
1
+ import { IDisposable, ISelection, ITextRangeParam, Nullable, IUniverInstanceService, LocaleService } from '@univerjs/core';
2
2
  import { KeyCode } from '@univerjs/ui';
3
- import { IDisposable } from '@wendellhu/redi';
4
3
 
5
4
  export interface IShortcutExperienceSearch {
6
5
  unitId: string;
@@ -14,6 +13,8 @@ export interface IShortcutExperienceParam extends IShortcutExperienceSearch {
14
13
  /**
15
14
  * This service is prepared for shortcut experience optimization,
16
15
  * including the combined use of enter and tab, the highlighting experience of formulas in the editor, and so on.
16
+ *
17
+ * @deprecated this class looks weired
17
18
  */
18
19
  export declare class ShortcutExperienceService implements IDisposable {
19
20
  private readonly _univerInstanceService;
@@ -1,6 +1,5 @@
1
- import { Nullable } from '@univerjs/core';
1
+ import { IDisposable, Nullable } from '@univerjs/core';
2
2
  import { IFunctionNames } from '@univerjs/engine-formula';
3
- import { IDisposable } from '@wendellhu/redi';
4
3
  import { Observable } from 'rxjs';
5
4
 
6
5
  export interface IStatusBarService {
@@ -31,4 +30,4 @@ export declare class StatusBarService implements IStatusBarService, IDisposable
31
30
  getFunctions(): Readonly<IStatusBarFunction[]>;
32
31
  addFunctions(functions: IStatusBarFunction[]): void;
33
32
  }
34
- export declare const IStatusBarService: import('@wendellhu/redi').IdentifierDecorator<StatusBarService>;
33
+ export declare const IStatusBarService: import('@univerjs/core').IdentifierDecorator<StatusBarService>;
@@ -0,0 +1,4 @@
1
+ import { ThemeService } from '@univerjs/core';
2
+ import { ISelectionStyle } from '@univerjs/sheets';
3
+
4
+ export declare function createCopyPasteSelectionStyle(themeService: ThemeService): ISelectionStyle;
@@ -1,5 +1,4 @@
1
- import { IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { Injector, IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
3
2
  import { IRenderManagerService } from '@univerjs/engine-render';
4
3
  import { IUniverSheetsUIConfig } from './controllers/sheet-ui.controller';
5
4