@univerjs/sheets-ui 0.5.5-nightly.202501220324 → 0.5.5
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/LICENSE +176 -0
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +48 -44
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +576 -596
- package/lib/es/index.js +16692 -17083
- package/lib/es/locale/en-US.js +2 -2
- package/lib/es/locale/fa-IR.js +2 -2
- package/lib/es/locale/fr-FR.js +2 -2
- package/lib/es/locale/ru-RU.js +2 -2
- package/lib/es/locale/vi-VN.js +2 -2
- package/lib/es/locale/zh-CN.js +2 -2
- package/lib/es/locale/zh-TW.js +2 -2
- package/lib/index.css +1 -1
- package/lib/types/commands/commands/clipboard.command.d.ts +0 -1
- package/lib/types/components/border-panel/BorderPanel.d.ts +2 -1
- package/lib/types/components/border-panel/border-line/BorderLine.d.ts +2 -1
- package/lib/types/components/border-panel/border-line/icons/BorderDashDot.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderDashDotDot.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderDashed.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderDotted.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderHair.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderMedium.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDot.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDotDot.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashed.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderThick.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderThin.d.ts +2 -16
- package/lib/types/components/menu-item-input/MenuItemInput.d.ts +2 -1
- package/lib/types/controllers/clipboard/clipboard.controller.d.ts +0 -1
- package/lib/types/facade/f-event.d.ts +5 -20
- package/lib/types/facade/f-univer.d.ts +1 -4
- package/lib/types/services/clipboard/clipboard.service.d.ts +2 -5
- package/lib/types/services/clipboard/type.d.ts +1 -9
- package/lib/types/services/selection/base-selection-render.service.d.ts +0 -1
- package/lib/types/services/selection/selection-control.d.ts +2 -2
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +1 -2
- package/lib/types/views/cell-alert/CellAlertPopup.d.ts +2 -1
- package/lib/types/views/clipboard/ClipboardPopupMenu.d.ts +2 -16
- package/lib/types/views/count-bar/CountBar.d.ts +2 -16
- package/lib/types/views/count-bar/ZoomSlider.d.ts +2 -16
- package/lib/types/views/defined-name/DefinedName.d.ts +2 -16
- package/lib/types/views/defined-name/DefinedNameContainer.d.ts +2 -16
- package/lib/types/views/defined-name/DefinedNameInput.d.ts +2 -1
- package/lib/types/views/defined-name/DefinedNameOverlay.d.ts +2 -16
- package/lib/types/views/formula-bar/FormulaBar.d.ts +2 -16
- package/lib/types/views/mobile/sheet-bar/MobileSheetBar.d.ts +2 -16
- package/lib/types/views/permission/error-msg-dialog/index.d.ts +2 -16
- package/lib/types/views/permission/panel/index.d.ts +2 -1
- package/lib/types/views/permission/panel-detail/PermissionDetailFooterPart.d.ts +2 -1
- package/lib/types/views/permission/panel-detail/PermissionDetailMainPart.d.ts +1 -1
- package/lib/types/views/permission/panel-detail/PermissionDetailPanel.d.ts +2 -1
- package/lib/types/views/permission/panel-detail/PermissionDetailUserPart.d.ts +2 -1
- package/lib/types/views/permission/panel-list/index.d.ts +2 -16
- package/lib/types/views/permission/permission-dialog/index.d.ts +2 -16
- package/lib/types/views/permission/spin/index.d.ts +1 -1
- package/lib/types/views/permission/user-dialog/index.d.ts +2 -16
- package/lib/types/views/sheet-bar/SheetBar.d.ts +2 -16
- package/lib/types/views/sheet-bar/sheet-bar-button/SheetBarButton.d.ts +1 -1
- package/lib/types/views/sheet-bar/sheet-bar-menu/SheetBarMenu.d.ts +1 -1
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +1 -1
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.d.ts +2 -16
- package/lib/types/views/sheet-container/SheetContainer.d.ts +4 -18
- package/lib/types/views/status-bar/StatusBar.d.ts +2 -16
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +48 -44
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -12
|
@@ -236,10 +236,9 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
236
236
|
readonly SheetEditEnded: 'SheetEditEnded';
|
|
237
237
|
/**
|
|
238
238
|
* Event fired when a cell is clicked
|
|
239
|
-
* @see {@link ICellEventParam}
|
|
240
239
|
* @example
|
|
241
240
|
* ```ts
|
|
242
|
-
* univerAPI.addEvent(univerAPI.Event.CellClicked, (params)=> {
|
|
241
|
+
* univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.CellClicked, (params)=> {
|
|
243
242
|
* const { worksheet, workbook, row, column, value, isZenEditor } = params;
|
|
244
243
|
* });
|
|
245
244
|
* ```
|
|
@@ -247,10 +246,9 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
247
246
|
readonly CellClicked: 'CellClicked';
|
|
248
247
|
/**
|
|
249
248
|
* Event fired when a cell is pointer down
|
|
250
|
-
* @see {@link ICellEventParam}
|
|
251
249
|
* @example
|
|
252
250
|
* ```ts
|
|
253
|
-
* univerAPI.addEvent(univerAPI.Event.CellPointerDown, (params)=> {
|
|
251
|
+
* univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.CellPointerDown, (params)=> {
|
|
254
252
|
* const { worksheet, workbook, row, column } = params;
|
|
255
253
|
* });
|
|
256
254
|
* ```
|
|
@@ -258,10 +256,9 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
258
256
|
readonly CellPointerDown: 'CellPointerDown';
|
|
259
257
|
/**
|
|
260
258
|
* Event fired when a cell is pointer up
|
|
261
|
-
* @see {@link ICellEventParam}
|
|
262
259
|
* @example
|
|
263
260
|
* ```ts
|
|
264
|
-
* univerAPI.addEvent(univerAPI.Event.CellPointerUp, (params)=> {
|
|
261
|
+
* univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.CellPointerUp, (params)=> {
|
|
265
262
|
* const { worksheet, workbook, row, column } = params;
|
|
266
263
|
* });
|
|
267
264
|
* ```
|
|
@@ -269,10 +266,9 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
269
266
|
readonly CellPointerUp: 'CellPointerUp';
|
|
270
267
|
/**
|
|
271
268
|
* Event fired when a cell is hovered
|
|
272
|
-
* @see {@link ICellEventParam}
|
|
273
269
|
* @example
|
|
274
270
|
* ```ts
|
|
275
|
-
* univerAPI.addEvent(univerAPI.Event.CellHover, (params)=> {
|
|
271
|
+
* univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.CellHover, (params)=> {
|
|
276
272
|
* const { worksheet, workbook, row, column } = params;
|
|
277
273
|
* });
|
|
278
274
|
* ```
|
|
@@ -280,10 +276,9 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
280
276
|
readonly CellHover: 'CellHover';
|
|
281
277
|
/**
|
|
282
278
|
* Event fired when move on spreadsheet cells
|
|
283
|
-
* @see {@link ICellEventParam}
|
|
284
279
|
* @example
|
|
285
280
|
* ```ts
|
|
286
|
-
* univerAPI.addEvent(univerAPI.Event.CellPointerMove, (params)=> {
|
|
281
|
+
* univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.CellPointerMove, (params)=> {
|
|
287
282
|
* const { worksheet, workbook, row, column } = params;
|
|
288
283
|
* });
|
|
289
284
|
* ```
|
|
@@ -379,7 +374,6 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
379
374
|
readonly ColumnHeaderHover: 'ColumnHeaderHover';
|
|
380
375
|
/**
|
|
381
376
|
* Event fired when drag over spreadsheet cells
|
|
382
|
-
* @see {@link ICellEventParam}
|
|
383
377
|
* @example
|
|
384
378
|
* ```ts
|
|
385
379
|
* univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.DragOver, (params)=> {
|
|
@@ -390,7 +384,6 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
390
384
|
readonly DragOver: 'DragOver';
|
|
391
385
|
/**
|
|
392
386
|
* Event fired when drop on spreadsheet cells
|
|
393
|
-
* @see {@link ICellEventParam}
|
|
394
387
|
* @example
|
|
395
388
|
* ```ts
|
|
396
389
|
* univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.Drop, (params)=> {
|
|
@@ -401,7 +394,6 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
401
394
|
readonly Drop: 'Drop';
|
|
402
395
|
/**
|
|
403
396
|
* Event fired when scroll spreadsheet.
|
|
404
|
-
* @see {@link IScrollEventParam}
|
|
405
397
|
* @example
|
|
406
398
|
* ```ts
|
|
407
399
|
* univerAPI.addEvent(univerAPI.Event.Scroll, (params)=> {
|
|
@@ -412,7 +404,6 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
412
404
|
readonly Scroll: 'Scroll';
|
|
413
405
|
/**
|
|
414
406
|
* Event fired when selection changed.
|
|
415
|
-
* @see {@link ISelectionEventParam}
|
|
416
407
|
* @example
|
|
417
408
|
* ```ts
|
|
418
409
|
* univerAPI.addEvent(univerAPI.Event.SelectionChanged, (p)=> {
|
|
@@ -423,7 +414,6 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
423
414
|
readonly SelectionChanged: 'SelectionChanged';
|
|
424
415
|
/**
|
|
425
416
|
* Event fired when selection move start
|
|
426
|
-
* @see {@link ISelectionEventParam}
|
|
427
417
|
* @example
|
|
428
418
|
* ```ts
|
|
429
419
|
* univerAPI.addEvent(univerAPI.Event.SelectionMoveStart, (p)=> {
|
|
@@ -434,7 +424,6 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
434
424
|
readonly SelectionMoveStart: 'SelectionMoveStart';
|
|
435
425
|
/**
|
|
436
426
|
* Event fired when selection move end
|
|
437
|
-
* @see {@link ISelectionEventParam}
|
|
438
427
|
* @example
|
|
439
428
|
* ```ts
|
|
440
429
|
* univerAPI.addEvent(univerAPI.Event.SelectionMoving, (p)=> {
|
|
@@ -445,7 +434,6 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
445
434
|
readonly SelectionMoving: 'SelectionMoving';
|
|
446
435
|
/**
|
|
447
436
|
* Event fired when selection move end
|
|
448
|
-
* @see {@link ISelectionEventParam}
|
|
449
437
|
* @example
|
|
450
438
|
* ```ts
|
|
451
439
|
* univerAPI.addEvent(univerAPI.Event.SelectionMoveEnd, (p)=> {
|
|
@@ -456,7 +444,6 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
456
444
|
readonly SelectionMoveEnd: 'SelectionMoveEnd';
|
|
457
445
|
/**
|
|
458
446
|
* Event fired when zoom changed
|
|
459
|
-
* @see {@link ISheetZoomEvent}
|
|
460
447
|
* @example
|
|
461
448
|
* ```ts
|
|
462
449
|
* univerAPI.addEvent(univerAPI.Event.SheetZoomChanged, (p)=> {
|
|
@@ -467,7 +454,6 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
467
454
|
readonly SheetZoomChanged: 'SheetZoomChanged';
|
|
468
455
|
/**
|
|
469
456
|
* Event fired before zoom changed
|
|
470
|
-
* @see {@link ISheetZoomEvent}
|
|
471
457
|
* @example
|
|
472
458
|
* ```ts
|
|
473
459
|
* univerAPI.addEvent(univerAPI.Event.BeforeSheetZoomChange, (p)=> {
|
|
@@ -478,7 +464,6 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
478
464
|
readonly BeforeSheetZoomChange: 'BeforeSheetZoomChange';
|
|
479
465
|
/**
|
|
480
466
|
* Event fired when sheet skeleton changed
|
|
481
|
-
* @see {@link ISheetSkeletonChangedEvent}
|
|
482
467
|
* @example
|
|
483
468
|
* ```ts
|
|
484
469
|
* univerAPI.addEvent(univerAPI.Event.SheetSkeletonChanged, (p)=> {
|
|
@@ -7,7 +7,7 @@ export interface IFUniverSheetsUIMixin {
|
|
|
7
7
|
* @param {IColumnsHeaderCfgParam} cfg The configuration of the column header.
|
|
8
8
|
* @example
|
|
9
9
|
* ```typescript
|
|
10
|
-
* univerAPI.customizeColumnHeader({ headerStyle: {
|
|
10
|
+
* univerAPI.customizeColumnHeader({ headerStyle: { backgroundColor: 'pink', fontSize: 9 }, columnsCfg: ['MokaII', undefined, null, { text: 'Size', textAlign: 'left' }] });
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
13
|
customizeColumnHeader(cfg: IColumnsHeaderCfgParam): void;
|
|
@@ -49,9 +49,6 @@ export interface IFUniverSheetsUIMixin {
|
|
|
49
49
|
export declare class FUniverSheetsUIMixin extends FUniver implements IFUniverSheetsUIMixin {
|
|
50
50
|
private _initSheetUIEvent;
|
|
51
51
|
_initObserverListener(injector: Injector): void;
|
|
52
|
-
/**
|
|
53
|
-
* @ignore
|
|
54
|
-
*/
|
|
55
52
|
_initialize(injector: Injector): void;
|
|
56
53
|
private _generateClipboardCopyParam;
|
|
57
54
|
private _beforeClipboardChange;
|
|
@@ -31,7 +31,7 @@ export interface ISheetClipboardService {
|
|
|
31
31
|
copy(): Promise<boolean>;
|
|
32
32
|
cut(): Promise<boolean>;
|
|
33
33
|
paste(item: ClipboardItem, pasteType?: string): Promise<boolean>;
|
|
34
|
-
legacyPaste(html?: string, text?: string
|
|
34
|
+
legacyPaste(html?: string, text?: string): Promise<boolean>;
|
|
35
35
|
rePasteWithPasteType(type: IPasteHookKeyType): boolean;
|
|
36
36
|
disposePasteOptionsCache(): void;
|
|
37
37
|
generateCopyContent(workbookId: string, worksheetId: string, range: IRange): Nullable<ICopyContent>;
|
|
@@ -74,17 +74,14 @@ export declare class SheetClipboardService extends Disposable implements ISheetC
|
|
|
74
74
|
copy(copyType?: COPY_TYPE): Promise<boolean>;
|
|
75
75
|
cut(): Promise<boolean>;
|
|
76
76
|
paste(item: ClipboardItem, pasteType?: "default-paste"): Promise<boolean>;
|
|
77
|
-
legacyPaste(html?: string, text?: string
|
|
77
|
+
legacyPaste(html?: string, text?: string): Promise<boolean>;
|
|
78
78
|
rePasteWithPasteType(type: IPasteHookKeyType): boolean;
|
|
79
79
|
updatePasteOptionsCache(cache: IPasteOptionCache | null): void;
|
|
80
80
|
addClipboardHook(hook: ISheetClipboardHook): IDisposable;
|
|
81
81
|
getClipboardHooks(): ISheetClipboardHook[];
|
|
82
82
|
private _generateCopyContent;
|
|
83
83
|
private _notifyClipboardHook;
|
|
84
|
-
private _executePaste;
|
|
85
|
-
private _pasteFiles;
|
|
86
84
|
private _pastePlainText;
|
|
87
|
-
private _pasteUnrecognized;
|
|
88
85
|
private _pasteHTML;
|
|
89
86
|
private _pasteExternal;
|
|
90
87
|
private _pasteInternal;
|
|
@@ -83,7 +83,7 @@ export interface ISheetClipboardHook {
|
|
|
83
83
|
* @param subUnitId
|
|
84
84
|
* @param range
|
|
85
85
|
*/
|
|
86
|
-
onBeforeCopy?(unitId: string, subUnitId: string, range: IRange
|
|
86
|
+
onBeforeCopy?(unitId: string, subUnitId: string, range: IRange): void;
|
|
87
87
|
/**
|
|
88
88
|
* Properties that would be appended to the td element.
|
|
89
89
|
*
|
|
@@ -177,14 +177,6 @@ export interface ISheetClipboardHook {
|
|
|
177
177
|
undos: IMutationInfo[];
|
|
178
178
|
redos: IMutationInfo[];
|
|
179
179
|
};
|
|
180
|
-
onPasteFiles?(pasteTo: ISheetDiscreteRangeLocation, files: File[], payload: ICopyPastePayload): {
|
|
181
|
-
undos: IMutationInfo[];
|
|
182
|
-
redos: IMutationInfo[];
|
|
183
|
-
};
|
|
184
|
-
onPasteUnrecognized?(pasteTo: ISheetDiscreteRangeLocation): {
|
|
185
|
-
undos: IMutationInfo[];
|
|
186
|
-
redos: IMutationInfo[];
|
|
187
|
-
};
|
|
188
180
|
/**
|
|
189
181
|
* Would be called after paste content has been written into Univer.
|
|
190
182
|
* Features could do some cleaning up jobs here.
|
|
@@ -39,7 +39,6 @@ export interface ISheetSelectionRenderService {
|
|
|
39
39
|
getCellWithCoordByOffset(x: number, y: number, skeleton?: SpreadsheetSkeleton): Nullable<ICellWithCoord>;
|
|
40
40
|
setSingleSelectionEnabled(enabled: boolean): void;
|
|
41
41
|
refreshSelectionMoveEnd(): void;
|
|
42
|
-
resetSelectionsByModelData(selectionsWithStyleList: readonly ISelectionWithStyle[]): void;
|
|
43
42
|
}
|
|
44
43
|
export declare const ISheetSelectionRenderService: import('@wendellhu/redi').IdentifierDecorator<ISheetSelectionRenderService>;
|
|
45
44
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ICellWithCoord, IRangeWithCoord, Nullable, ThemeService, Disposable, RANGE_TYPE } from '@univerjs/core';
|
|
2
|
-
import { Scene,
|
|
2
|
+
import { Scene, Group, Rect } from '@univerjs/engine-render';
|
|
3
3
|
import { ISelectionStyle, ISelectionWidgetConfig, ISelectionWithCoord } from '@univerjs/sheets';
|
|
4
4
|
import { ISelectionShapeExtensionOption, SelectionShapeExtension } from './selection-shape-extension';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
@@ -175,7 +175,7 @@ export declare class SelectionControl extends Disposable {
|
|
|
175
175
|
* Update range and primary range and style.
|
|
176
176
|
* @param selectionWthCoord
|
|
177
177
|
*/
|
|
178
|
-
updateRangeBySelectionWithCoord(selectionWthCoord: ISelectionWithCoord
|
|
178
|
+
updateRangeBySelectionWithCoord(selectionWthCoord: ISelectionWithCoord): void;
|
|
179
179
|
/**
|
|
180
180
|
* Update selection model with new range & primary cell(aka: highlight/current), also update row/col selection size & style.
|
|
181
181
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IRange, IRangeWithCoord, Nullable, Workbook, Disposable, Injector } from '@univerjs/core';
|
|
2
|
-
import {
|
|
2
|
+
import { IRenderContext, IRenderModule, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
3
3
|
export interface ISheetSkeletonManagerParam {
|
|
4
4
|
unitId: string;
|
|
5
5
|
sheetId: string;
|
|
@@ -58,5 +58,4 @@ export declare class SheetSkeletonManagerService extends Disposable implements I
|
|
|
58
58
|
attachRangeWithCoord(range: IRange): Nullable<IRangeWithCoord>;
|
|
59
59
|
private _getSkeleton;
|
|
60
60
|
private _buildSkeleton;
|
|
61
|
-
setColumnHeaderSize(sheetId: string, render: IRender, size: number): void;
|
|
62
61
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ICanvasPopup } from '../../services/canvas-pop-manager.service';
|
|
2
|
+
import { default as React } from 'react';
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* @param root0
|
|
@@ -6,4 +7,4 @@ import { ICanvasPopup } from '../../services/canvas-pop-manager.service';
|
|
|
6
7
|
*/
|
|
7
8
|
export declare function CellAlert({ popup }: {
|
|
8
9
|
popup: ICanvasPopup;
|
|
9
|
-
}):
|
|
10
|
+
}): React.JSX.Element | null;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
export declare const ClipboardPopupMenu: () => import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const ClipboardPopupMenu: () => React.JSX.Element | null;
|
|
@@ -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
|
-
*/
|
|
1
|
+
import { default as React } from 'react';
|
|
16
2
|
interface ICountBarProps {
|
|
17
3
|
changeRatio?: (ratio: string) => void;
|
|
18
4
|
onChange?: (value: string) => void;
|
|
19
5
|
}
|
|
20
|
-
export declare function CountBar(props: ICountBarProps):
|
|
6
|
+
export declare function CountBar(props: ICountBarProps): React.JSX.Element;
|
|
21
7
|
export {};
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
export declare function ZoomSlider(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare function ZoomSlider(): React.JSX.Element;
|
|
@@ -1,18 +1,4 @@
|
|
|
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
|
-
*/
|
|
1
|
+
import { default as React } from 'react';
|
|
16
2
|
export declare function DefinedName({ disable }: {
|
|
17
3
|
disable: boolean;
|
|
18
|
-
}):
|
|
4
|
+
}): React.JSX.Element;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
export declare const DefinedNameContainer: () => import("react/jsx-runtime").JSX.Element | undefined;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const DefinedNameContainer: () => React.JSX.Element | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IDefinedNamesServiceParam } from '@univerjs/engine-formula';
|
|
2
|
+
import { default as React } from 'react';
|
|
2
3
|
export interface IDefinedNameInputProps extends Omit<IDefinedNamesServiceParam, 'id'> {
|
|
3
4
|
inputId: string;
|
|
4
5
|
type?: string;
|
|
@@ -7,4 +8,4 @@ export interface IDefinedNameInputProps extends Omit<IDefinedNamesServiceParam,
|
|
|
7
8
|
cancel?: () => void;
|
|
8
9
|
id?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare const DefinedNameInput: (props: IDefinedNameInputProps) =>
|
|
11
|
+
export declare const DefinedNameInput: (props: IDefinedNameInputProps) => React.JSX.Element | undefined;
|
|
@@ -1,18 +1,4 @@
|
|
|
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
|
-
*/
|
|
1
|
+
import { default as React } from 'react';
|
|
16
2
|
export interface IDefinedNameOverlayProps {
|
|
17
3
|
}
|
|
18
|
-
export declare function DefinedNameOverlay(props: IDefinedNameOverlayProps):
|
|
4
|
+
export declare function DefinedNameOverlay(props: IDefinedNameOverlayProps): React.JSX.Element;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
export declare function FormulaBar(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare function FormulaBar(): React.JSX.Element;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
export declare function MobileSheetBar(): import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare function MobileSheetBar(): React.JSX.Element | null;
|
|
@@ -1,18 +1,4 @@
|
|
|
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
|
-
*/
|
|
1
|
+
import { default as React } from 'react';
|
|
16
2
|
export declare const AlertDialog: ({ errorMsg }: {
|
|
17
3
|
errorMsg: string;
|
|
18
|
-
}) =>
|
|
4
|
+
}) => React.JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { IPermissionPanelRule } from '../../../services/permission/sheet-permission-panel.model';
|
|
2
|
+
import { default as React } from 'react';
|
|
2
3
|
interface ISheetPermissionPanelProps {
|
|
3
4
|
showDetail: boolean;
|
|
4
5
|
fromSheetBar: boolean;
|
|
5
6
|
rule?: IPermissionPanelRule;
|
|
6
7
|
oldRule?: IPermissionPanelRule;
|
|
7
8
|
}
|
|
8
|
-
export declare const SheetPermissionPanel: ({ showDetail, fromSheetBar, rule, oldRule }: ISheetPermissionPanelProps) =>
|
|
9
|
+
export declare const SheetPermissionPanel: ({ showDetail, fromSheetBar, rule, oldRule }: ISheetPermissionPanelProps) => React.JSX.Element | null;
|
|
9
10
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IRange } from '@univerjs/core';
|
|
2
2
|
import { IPermissionPanelRule } from '../../../services/permission/sheet-permission-panel.model';
|
|
3
3
|
import { EditStateEnum, ViewStateEnum } from '@univerjs/sheets';
|
|
4
|
+
import { default as React } from 'react';
|
|
4
5
|
interface IPermissionDetailFooterPartProps {
|
|
5
6
|
permissionId: string;
|
|
6
7
|
id: string;
|
|
@@ -11,5 +12,5 @@ interface IPermissionDetailFooterPartProps {
|
|
|
11
12
|
viewState: ViewStateEnum;
|
|
12
13
|
oldRule?: IPermissionPanelRule;
|
|
13
14
|
}
|
|
14
|
-
export declare const PermissionDetailFooterPart: (props: IPermissionDetailFooterPartProps) =>
|
|
15
|
+
export declare const PermissionDetailFooterPart: (props: IPermissionDetailFooterPartProps) => React.JSX.Element | null;
|
|
15
16
|
export {};
|
|
@@ -11,5 +11,5 @@ interface IPermissionDetailMainPartProps {
|
|
|
11
11
|
rangeSelectorRef: React.MutableRefObject<any>;
|
|
12
12
|
onFocus: () => void;
|
|
13
13
|
}
|
|
14
|
-
export declare const PermissionDetailMainPart: (props: IPermissionDetailMainPartProps) =>
|
|
14
|
+
export declare const PermissionDetailMainPart: (props: IPermissionDetailMainPartProps) => React.JSX.Element | null;
|
|
15
15
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IPermissionPanelRule } from '../../../services/permission/sheet-permission-panel.model';
|
|
2
|
+
import { default as React } from 'react';
|
|
2
3
|
interface ISheetPermissionPanelDetailProps {
|
|
3
4
|
fromSheetBar: boolean;
|
|
4
5
|
rule?: IPermissionPanelRule;
|
|
5
6
|
oldRule?: IPermissionPanelRule;
|
|
6
7
|
}
|
|
7
|
-
export declare const SheetPermissionPanelDetail: (props: ISheetPermissionPanelDetailProps) =>
|
|
8
|
+
export declare const SheetPermissionPanelDetail: (props: ISheetPermissionPanelDetailProps) => React.JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EditStateEnum, ViewStateEnum } from '@univerjs/sheets';
|
|
2
|
+
import { default as React } from 'react';
|
|
2
3
|
interface IPermissionDetailUserPartProps {
|
|
3
4
|
editState: EditStateEnum;
|
|
4
5
|
onEditStateChange: (v: EditStateEnum) => void;
|
|
@@ -6,5 +7,5 @@ interface IPermissionDetailUserPartProps {
|
|
|
6
7
|
onViewStateChange: (v: ViewStateEnum) => void;
|
|
7
8
|
permissionId: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const PermissionDetailUserPart: (props: IPermissionDetailUserPartProps) =>
|
|
10
|
+
export declare const PermissionDetailUserPart: (props: IPermissionDetailUserPartProps) => React.JSX.Element | null;
|
|
10
11
|
export {};
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
export declare const SheetPermissionPanelList: () => import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const SheetPermissionPanelList: () => React.JSX.Element | null;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
export declare const SheetPermissionDialog: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const SheetPermissionDialog: () => React.JSX.Element;
|
|
@@ -3,5 +3,5 @@ interface ISpinProps {
|
|
|
3
3
|
loading: boolean;
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
declare const Spin: ({ loading, children }: ISpinProps) =>
|
|
6
|
+
declare const Spin: ({ loading, children }: ISpinProps) => React.JSX.Element;
|
|
7
7
|
export default Spin;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
export declare const SheetPermissionUserDialog: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const SheetPermissionUserDialog: () => React.JSX.Element;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
export declare const SheetBar: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const SheetBar: () => React.JSX.Element;
|
|
@@ -16,4 +16,4 @@ export interface IBaseSheetBarButtonProps {
|
|
|
16
16
|
/**
|
|
17
17
|
* Button Component
|
|
18
18
|
*/
|
|
19
|
-
export declare function SheetBarButton(props: IBaseSheetBarButtonProps):
|
|
19
|
+
export declare function SheetBarButton(props: IBaseSheetBarButtonProps): React.JSX.Element;
|
|
@@ -10,4 +10,4 @@ export interface ISheetBarMenuProps {
|
|
|
10
10
|
style?: React.CSSProperties;
|
|
11
11
|
onClick?: (e?: MouseEvent) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare function SheetBarMenu(props: ISheetBarMenuProps):
|
|
13
|
+
export declare function SheetBarMenu(props: ISheetBarMenuProps): React.JSX.Element;
|
|
@@ -10,4 +10,4 @@ export interface IBaseSheetBarProps {
|
|
|
10
10
|
hidden?: BooleanNumber;
|
|
11
11
|
selected?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare function SheetBarItem(props: IBaseSheetBarProps):
|
|
13
|
+
export declare function SheetBarItem(props: IBaseSheetBarProps): React.JSX.Element;
|