@univerjs/sheets-ui 0.6.0 → 0.6.1-nightly.202502221605
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.
- package/lib/cjs/index.js +27 -27
- package/lib/es/index.js +6421 -6292
- package/lib/types/controllers/auto-height.controller.d.ts +4 -2
- package/lib/types/controllers/config.schema.d.ts +7 -0
- package/lib/types/controllers/permission/sheet-permission-init-ui.controller.d.ts +7 -0
- package/lib/types/index.d.ts +7 -3
- package/lib/types/services/clipboard/utils.d.ts +1 -0
- package/lib/types/services/selection/base-selection-render.service.d.ts +1 -1
- package/lib/types/views/formula-bar/FormulaBar.d.ts +5 -1
- package/lib/umd/index.js +23 -23
- package/package.json +16 -16
- package/LICENSE +0 -176
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRange, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
1
|
+
import { IRange, Disposable, IConfigService, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { RenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
import { ISetWorksheetRowAutoHeightMutationParams, SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
4
|
export declare const AFFECT_LAYOUT_STYLES: string[];
|
|
@@ -7,7 +7,9 @@ export declare class AutoHeightController extends Disposable {
|
|
|
7
7
|
private readonly _sheetInterceptorService;
|
|
8
8
|
private readonly _selectionManagerService;
|
|
9
9
|
private readonly _univerInstanceService;
|
|
10
|
-
|
|
10
|
+
private readonly _configService;
|
|
11
|
+
constructor(_renderManagerService: RenderManagerService, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService);
|
|
12
|
+
private _getRangesScope;
|
|
11
13
|
getUndoRedoParamsOfAutoHeight(ranges: IRange[]): {
|
|
12
14
|
undos: {
|
|
13
15
|
id: string;
|
|
@@ -2,11 +2,17 @@ import { DependencyOverride } from '@univerjs/core';
|
|
|
2
2
|
import { MenuConfig } from '@univerjs/ui';
|
|
3
3
|
export declare const SHEETS_UI_PLUGIN_CONFIG_KEY = "sheets-ui.config";
|
|
4
4
|
export declare const configSymbol: unique symbol;
|
|
5
|
+
export declare const HIDE_STATUS_BAR_STATISTIC: unique symbol;
|
|
5
6
|
export interface IUniverSheetsUIConfig {
|
|
6
7
|
menu?: MenuConfig;
|
|
7
8
|
disableAutoFocus?: true;
|
|
8
9
|
override?: DependencyOverride;
|
|
9
10
|
customComponents?: Set<string>;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum count of rows triggering auto height. This is used to avoid performance issue.
|
|
13
|
+
* @default 1000
|
|
14
|
+
*/
|
|
15
|
+
maxAutoHeightCount?: number;
|
|
10
16
|
/**
|
|
11
17
|
* Whether to show the formula bar.
|
|
12
18
|
*/
|
|
@@ -14,5 +20,6 @@ export interface IUniverSheetsUIConfig {
|
|
|
14
20
|
clipboardConfig?: {
|
|
15
21
|
hidePasteOptions?: boolean;
|
|
16
22
|
};
|
|
23
|
+
hideStatusBarStatistic?: boolean;
|
|
17
24
|
}
|
|
18
25
|
export declare const defaultPluginConfig: IUniverSheetsUIConfig;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { SheetPermissionInitController } from '@univerjs/sheets';
|
|
3
|
+
export declare class SheetPermissionInitUIController extends Disposable {
|
|
4
|
+
private readonly _sheetPermissionInitController;
|
|
5
|
+
constructor(_sheetPermissionInitController: SheetPermissionInitController);
|
|
6
|
+
private _initPermission;
|
|
7
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export { SheetsScrollRenderController } from './controllers/render-controllers/s
|
|
|
30
30
|
export { SheetRenderController } from './controllers/render-controllers/sheet.render-controller';
|
|
31
31
|
export { SheetUIController } from './controllers/sheet-ui.controller';
|
|
32
32
|
export { whenFormulaEditorActivated, whenSheetEditorFocused } from './controllers/shortcuts/utils';
|
|
33
|
-
export { getCoordByCell, getCoordByOffset, getSheetObject, getTransformCoord
|
|
33
|
+
export { getCoordByCell, getCoordByOffset, getSheetObject, getTransformCoord } from './controllers/utils/component-tools';
|
|
34
34
|
export { matchedSelectionByRowColIndex as checkInHeaderRanges } from './controllers/utils/selections-tools';
|
|
35
35
|
export { useHighlightRange } from './hooks/use-highlight-range';
|
|
36
36
|
export { UniverSheetsMobileUIPlugin } from './mobile-plugin';
|
|
@@ -41,12 +41,12 @@ export { APPLY_TYPE, DATA_TYPE, type IAutoFillRule, type ICopyDataInTypeIndexInf
|
|
|
41
41
|
export type { IAutoFillLocation, ICopyDataPiece, ISheetAutoFillHook } from './services/auto-fill/type';
|
|
42
42
|
export { type ICanvasPopup, SheetCanvasPopManagerService } from './services/canvas-pop-manager.service';
|
|
43
43
|
export { CellAlertManagerService, CellAlertType, type ICellAlert } from './services/cell-alert-manager.service';
|
|
44
|
-
export { getMatrixPlainText, ISheetClipboardService, PREDEFINED_HOOK_NAME, SheetClipboardService
|
|
44
|
+
export { getMatrixPlainText, ISheetClipboardService, PREDEFINED_HOOK_NAME, SheetClipboardService } from './services/clipboard/clipboard.service';
|
|
45
45
|
export { COPY_TYPE } from './services/clipboard/type';
|
|
46
46
|
export type { ICellDataWithSpanInfo, ICopyPastePayload, IPasteHookValueType, ISheetClipboardHook, ISheetDiscreteRangeLocation } from './services/clipboard/type';
|
|
47
47
|
export { getRepeatRange, mergeSetRangeValues } from './services/clipboard/utils';
|
|
48
48
|
export { DragManagerService, type IDragCellPosition } from './services/drag-manager.service';
|
|
49
|
-
export { EditorBridgeService, IEditorBridgeService, type IEditorBridgeServiceVisibleParam
|
|
49
|
+
export { EditorBridgeService, IEditorBridgeService, type IEditorBridgeServiceVisibleParam } from './services/editor-bridge.service';
|
|
50
50
|
export type { IEditorBridgeServiceParam } from './services/editor-bridge.service';
|
|
51
51
|
export { CellEditorManagerService, ICellEditorManagerService } from './services/editor/cell-editor-manager.service';
|
|
52
52
|
export { IFormulaEditorManagerService } from './services/editor/formula-editor-manager.service';
|
|
@@ -92,6 +92,7 @@ export { FormatPainterStatus, IFormatPainterService } from './services/format-pa
|
|
|
92
92
|
export type { IFormatPainterBeforeApplyHookParams, IFormatPainterHook } from './services/format-painter/format-painter.service';
|
|
93
93
|
export { SELECTION_SHAPE_DEPTH } from './services/selection/const';
|
|
94
94
|
export { type IBaseSheetBarProps } from './views/sheet-bar/sheet-bar-tabs/SheetBarItem';
|
|
95
|
+
export { FormulaBar } from './views/formula-bar/FormulaBar';
|
|
95
96
|
export { SetWorksheetColAutoWidthCommand } from './commands/commands/set-worksheet-auto-col-width.command';
|
|
96
97
|
export { AutoClearContentCommand, AutoFillCommand } from './commands/commands/auto-fill.command';
|
|
97
98
|
export { type ISheetPasteByShortKeyParams, type ISheetPasteParams, SheetCopyCommand, SheetCutCommand, SheetPasteBesidesBorderCommand, SheetPasteColWidthCommand, SheetPasteCommand, SheetPasteFormatCommand, SheetPasteShortKeyCommand, SheetPasteValueCommand, } from './commands/commands/clipboard.command';
|
|
@@ -126,3 +127,6 @@ export { SidebarDefinedNameOperation } from './commands/operations/sidebar-defin
|
|
|
126
127
|
export { UNIVER_SHEET_PERMISSION_BACKGROUND, UNIVER_SHEET_PERMISSION_USER_PART } from './consts/permission';
|
|
127
128
|
export { convertPositionCellToSheetOverGrid, convertPositionSheetOverGridToAbsolute } from './services/utils/drawing-position-util';
|
|
128
129
|
export type { IScrollState, IViewportScrollState } from './services/scroll-manager.service';
|
|
130
|
+
export { IStatusBarService, StatusBarService } from './services/status-bar.service';
|
|
131
|
+
export { type IStatisticItem } from './views/status-bar/CopyableStatisticItem';
|
|
132
|
+
export { functionDisplayNames } from './views/status-bar/CopyableStatisticItem';
|
|
@@ -14,6 +14,7 @@ export declare const getRepeatRange: (sourceRange: IRange, targetRange: IRange,
|
|
|
14
14
|
repeatRelativeRange: IRange;
|
|
15
15
|
}[];
|
|
16
16
|
export declare function htmlIsFromExcel(html: string): boolean;
|
|
17
|
+
export declare function htmlContainsImage(html: string): boolean;
|
|
17
18
|
export declare function mergeCellValues(...cellValues: IObjectMatrixPrimitiveType<Nullable<ICellData>>[]): IObjectMatrixPrimitiveType<Nullable<ICellData>> | IObjectMatrixPrimitiveType<IObjectMatrixPrimitiveType<Nullable<ICellData>>>;
|
|
18
19
|
export declare function getRangeValuesMergeable(m1: IMutationInfo<ISetRangeValuesMutationParams>, m2: IMutationInfo<ISetRangeValuesMutationParams>): boolean;
|
|
19
20
|
export declare function mergeSetRangeValues(mutations: IMutationInfo[]): IMutationInfo<object>[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ICellInfo, ICellWithCoord, IContextService, IDisposable, IFreeze, IInterceptor, Injector, IRange, IRangeWithCoord, IStyleSheet, Nullable, Disposable, InterceptorManager, RANGE_TYPE, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { IMouseEvent, IPointerEvent, IRenderModule, Scene, SpreadsheetSkeleton, Viewport, ScrollTimer, ScrollTimerType } from '@univerjs/engine-render';
|
|
3
|
+
import { ISelectionStyle, ISelectionWithCoord, ISelectionWithStyle } from '@univerjs/sheets';
|
|
3
4
|
import { IShortcutService } from '@univerjs/ui';
|
|
4
5
|
import { Observable, Subscription, BehaviorSubject, Subject } from 'rxjs';
|
|
5
6
|
import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
6
|
-
import { ISelectionStyle, ISelectionWithCoord, ISelectionWithStyle } from '@univerjs/sheets';
|
|
7
7
|
import { SelectionControl } from './selection-control';
|
|
8
8
|
export interface IControlFillConfig {
|
|
9
9
|
oldRange: IRange;
|
|
@@ -13,4 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
interface IProps {
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function FormulaBar(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|