@univerjs/sheets-ui 0.21.0 → 0.21.1

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.
@@ -164,5 +164,6 @@ export declare class SheetScrollManagerService implements IRenderModule {
164
164
  private _setScrollState;
165
165
  private _clearByParamAndNotify;
166
166
  private _getCurrentScroll;
167
+ private _getDefaultScrollState;
167
168
  private _emitRawScroll;
168
169
  }
@@ -37,6 +37,7 @@ export declare class SheetSkeletonManagerService extends Disposable implements I
37
37
  private readonly _currentSkeletonBefore$;
38
38
  readonly currentSkeletonBefore$: import("rxjs").Observable<Nullable<ISheetSkeletonManagerParam>>;
39
39
  constructor(_context: IRenderContext<Workbook>, _sheetSkeletonService: SheetSkeletonService);
40
+ private _initSkeletonsRegisterGetCellHeight;
40
41
  dispose(): void;
41
42
  getCurrentSkeleton(): Nullable<SpreadsheetSkeleton>;
42
43
  /**
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { IUniverInstanceService, Workbook } from '@univerjs/core';
17
+ import type { IDefinedNamesService, IDefinedNamesServiceParam, IFunctionService, ISuperTableService, LexerTreeBuilder } from '@univerjs/engine-formula';
18
+ import type { ISelectionWithStyle } from '@univerjs/sheets';
19
+ export declare enum DefinedNameBoxActionType {
20
+ Noop = "noop",
21
+ FocusDefinedName = "focusDefinedName",
22
+ FocusSelection = "focusSelection",
23
+ CreateDefinedName = "createDefinedName",
24
+ Reset = "reset"
25
+ }
26
+ interface IResolveDefinedNameBoxActionParams {
27
+ inputValue: string;
28
+ rangeString: string;
29
+ unitId: string;
30
+ formulaOrRefString: string;
31
+ univerInstanceService: IUniverInstanceService;
32
+ definedNamesService: IDefinedNamesService;
33
+ superTableService: ISuperTableService;
34
+ functionService: IFunctionService;
35
+ }
36
+ type DefinedNameBoxAction = {
37
+ type: DefinedNameBoxActionType.Noop;
38
+ } | {
39
+ type: DefinedNameBoxActionType.FocusDefinedName;
40
+ definedName: IDefinedNamesServiceParam;
41
+ } | {
42
+ type: DefinedNameBoxActionType.FocusSelection;
43
+ refString: string;
44
+ } | {
45
+ type: DefinedNameBoxActionType.CreateDefinedName;
46
+ name: string;
47
+ } | {
48
+ type: DefinedNameBoxActionType.Reset;
49
+ };
50
+ export declare function resolveDefinedNameBoxAction(params: IResolveDefinedNameBoxActionParams): DefinedNameBoxAction;
51
+ export declare function getAbsoluteRefStringFromSelection(workbook: Workbook, selections: readonly ISelectionWithStyle[] | undefined, lexerTreeBuilder: LexerTreeBuilder): string;
52
+ export {};