@univerjs/sheets-ui 1.0.0-alpha.6 → 1.0.0-alpha.7

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.
@@ -13,27 +13,39 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import type { IRange, Workbook, Worksheet } from '@univerjs/core';
17
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
16
18
  import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
- import { IRenderManagerService } from '@univerjs/engine-render';
18
- import { AutoFillController, IAutoFillService } from '@univerjs/sheets';
19
+ import { AutoFillController, IAutoFillService, SheetsSelectionsService } from '@univerjs/sheets';
19
20
  import { IEditorBridgeService } from '../services/editor-bridge.service';
21
+ import { ISheetSelectionRenderService } from '../services/selection/base-selection-render.service';
20
22
  import { SheetsRenderService } from '../services/sheets-render.service';
21
23
  export declare class AutoFillUIController extends Disposable {
22
24
  private readonly _univerInstanceService;
23
25
  private readonly _commandService;
24
26
  private readonly _autoFillService;
25
27
  private _autoFillController;
26
- private readonly _editorBridgeService;
27
- private readonly _renderManagerService;
28
28
  private _sheetsRenderService;
29
29
  private _currentLocation;
30
- constructor(_univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _autoFillService: IAutoFillService, _autoFillController: AutoFillController, _editorBridgeService: IEditorBridgeService, _renderManagerService: IRenderManagerService, _sheetsRenderService: SheetsRenderService);
30
+ constructor(_univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _autoFillService: IAutoFillService, _autoFillController: AutoFillController, _sheetsRenderService: SheetsRenderService);
31
31
  private _init;
32
32
  private _initSkeletonChange;
33
33
  private _initDefaultHook;
34
34
  private _initQuitListener;
35
35
  private _quit;
36
+ }
37
+ export declare class AutoFillRenderController extends Disposable implements IRenderModule {
38
+ private readonly _context;
39
+ private readonly _selectionRenderService;
40
+ private readonly _selectionManagerService;
41
+ private readonly _commandService;
42
+ private readonly _editorBridgeService;
43
+ private readonly _selectionControlDisposables;
44
+ constructor(_context: IRenderContext<Workbook>, _selectionRenderService: ISheetSelectionRenderService, _selectionManagerService: SheetsSelectionsService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService);
45
+ dispose(): void;
36
46
  private _initSelectionControlFillChanged;
47
+ private _updateSelectionControlListeners;
48
+ private _executeAutoFill;
37
49
  private _handleDbClickFill;
38
- private _detectFillRange;
39
50
  }
51
+ export declare function detectAutoFillRange(source: IRange, worksheet: Worksheet): IRange;
@@ -13,12 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { Disposable, DisposableCollection, ICommandService, IContextService, IPermissionService, IUniverInstanceService, LocaleService } from '@univerjs/core';
16
+ import { Disposable, DisposableCollection, ICommandService, IContextService, IPermissionService, LocaleService } from '@univerjs/core';
17
17
  import { RangeProtectionRuleModel, SheetPermissionCheckController } from '@univerjs/sheets';
18
18
  import { IDialogService } from '@univerjs/ui';
19
19
  export declare class SheetPermissionCheckUIController extends Disposable {
20
20
  private readonly _commandService;
21
- private readonly _univerInstanceService;
22
21
  private readonly _permissionService;
23
22
  private readonly _dialogService;
24
23
  private _rangeProtectionRuleModel;
@@ -26,11 +25,10 @@ export declare class SheetPermissionCheckUIController extends Disposable {
26
25
  private readonly _contextService;
27
26
  private readonly _sheetPermissionCheckController;
28
27
  disposableCollection: DisposableCollection;
29
- constructor(_commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _permissionService: IPermissionService, _dialogService: IDialogService, _rangeProtectionRuleModel: RangeProtectionRuleModel, _localeService: LocaleService, _contextService: IContextService, _sheetPermissionCheckController: SheetPermissionCheckController);
28
+ constructor(_commandService: ICommandService, _permissionService: IPermissionService, _dialogService: IDialogService, _rangeProtectionRuleModel: RangeProtectionRuleModel, _localeService: LocaleService, _contextService: IContextService, _sheetPermissionCheckController: SheetPermissionCheckController);
30
29
  private _initUIEvent;
31
30
  private _haveNotPermissionHandle;
32
31
  private _getPermissionCheck;
33
32
  private _initialize;
34
33
  private _commandExecutedListener;
35
- private _permissionCheckByPaste;
36
34
  }
@@ -37,6 +37,7 @@ export declare class EditorBridgeRenderController extends RxDisposable implement
37
37
  private _disposeCurrent;
38
38
  private _initSelectionChangeListener;
39
39
  private _updateEditorPosition;
40
+ private _updateInputPosition;
40
41
  refreshEditorPosition(): void;
41
42
  private _initEventListener;
42
43
  /**
@@ -15,4 +15,4 @@
15
15
  */
16
16
  import type { IZoomInputProps } from '@univerjs/ui';
17
17
  export declare const SHEET_ZOOM_INPUT_COMPONENT = "SHEET_ZOOM_INPUT_COMPONENT";
18
- export declare function SheetZoomInput(props: Omit<IZoomInputProps, 'className' | 'onChange'>): import("react").JSX.Element;
18
+ export declare function SheetZoomInput({ className, ...props }: Omit<IZoomInputProps, 'onChange'>): import("react").JSX.Element;