@univerjs/sheets-ui 0.6.1 → 0.6.2-nightly.202503031606
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/facade.js +1 -1
- package/lib/cjs/index.js +65 -46
- 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 +580 -574
- package/lib/es/index.js +13667 -13513
- package/lib/es/locale/en-US.js +8 -156
- package/lib/es/locale/fa-IR.js +8 -156
- package/lib/es/locale/fr-FR.js +8 -156
- package/lib/es/locale/ru-RU.js +8 -156
- package/lib/es/locale/vi-VN.js +8 -156
- package/lib/es/locale/zh-CN.js +8 -156
- package/lib/es/locale/zh-TW.js +8 -156
- package/lib/index.css +1 -1
- package/lib/types/basics/editor/range.d.ts +18 -0
- package/lib/types/controllers/auto-height.controller.d.ts +4 -2
- package/lib/types/controllers/checkbox.controller.d.ts +3 -2
- package/lib/types/controllers/clipboard/clipboard.controller.d.ts +2 -2
- package/lib/types/controllers/config.schema.d.ts +6 -0
- package/lib/types/controllers/menu/insert.menu.d.ts +40 -0
- package/lib/types/controllers/render-controllers/header-menu.render-controller.d.ts +2 -2
- package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +1 -1
- package/lib/types/controllers/shortcuts/value.shortcut.d.ts +1 -0
- package/lib/types/controllers/utils/range-tools.d.ts +1 -2
- package/lib/types/facade/f-event.d.ts +177 -74
- package/lib/types/facade/f-permission.d.ts +4 -2
- package/lib/types/facade/f-range.d.ts +106 -61
- package/lib/types/facade/f-sheet-hooks.d.ts +6 -0
- package/lib/types/facade/f-workbook.d.ts +97 -25
- package/lib/types/facade/f-worksheet.d.ts +103 -22
- package/lib/types/index.d.ts +1 -1
- package/lib/types/locale/zh-CN.d.ts +8 -176
- package/lib/types/services/clipboard/clipboard.service.d.ts +1 -1
- package/lib/types/services/selection/base-selection-render.service.d.ts +1 -1
- package/lib/types/services/selection/selection-render-model.d.ts +0 -4
- package/lib/types/views/{operate-container → auto-fill-popup-menu}/AutoFillPopupMenu.d.ts +1 -1
- package/lib/types/views/permission/panel-detail/PermissionDetailMainPart.d.ts +0 -4
- package/lib/types/views/sheet-bar/sheet-bar-menu/SheetBarMenu.d.ts +1 -5
- package/lib/types/views/sheet-container/SheetContainer.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +58 -39
- 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 +15 -16
- package/LICENSE +0 -176
- package/lib/types/views/operate-container/OperateContainer.d.ts +0 -2
- package/lib/types/views/operate-container/index.d.ts +0 -16
|
@@ -8,25 +8,34 @@ import { FWorksheet } from '@univerjs/sheets/facade';
|
|
|
8
8
|
export interface IFWorksheetSkeletonMixin {
|
|
9
9
|
/**
|
|
10
10
|
* Refresh the canvas.
|
|
11
|
+
* @returns {FWorksheet} The FWorksheet instance for chaining.
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
15
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
16
|
+
* fWorksheet.refreshCanvas();
|
|
17
|
+
* ```
|
|
11
18
|
*/
|
|
12
19
|
refreshCanvas(): FWorksheet;
|
|
13
20
|
/**
|
|
14
21
|
* Set zoom ratio of the worksheet.
|
|
15
|
-
* @param {number} zoomRatio The zoom ratio to set.It should be in the range of
|
|
16
|
-
* @returns
|
|
22
|
+
* @param {number} zoomRatio The zoom ratio to set.It should be in the range of 0.1 to 4.0.
|
|
23
|
+
* @returns {FWorksheet} The FWorksheet instance for chaining.
|
|
17
24
|
* @example
|
|
18
25
|
* ```ts
|
|
19
26
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
20
27
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
21
|
-
*
|
|
28
|
+
*
|
|
29
|
+
* // Set zoom ratio to 200%
|
|
30
|
+
* fWorksheet.zoom(2);
|
|
22
31
|
* const zoomRatio = fWorksheet.getZoom();
|
|
23
|
-
* console.log(zoomRatio); //
|
|
32
|
+
* console.log(zoomRatio); // 2
|
|
24
33
|
* ```
|
|
25
34
|
*/
|
|
26
35
|
zoom(zoomRatio: number): FWorksheet;
|
|
27
36
|
/**
|
|
28
37
|
* Get the zoom ratio of the worksheet.
|
|
29
|
-
* @returns The zoom ratio of the worksheet.
|
|
38
|
+
* @returns {number} The zoom ratio of the worksheet.
|
|
30
39
|
* @example
|
|
31
40
|
* ```ts
|
|
32
41
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -40,10 +49,12 @@ export interface IFWorksheetSkeletonMixin {
|
|
|
40
49
|
* Return visible range, sum view range of 4 viewports.
|
|
41
50
|
* @returns {IRange} - visible range
|
|
42
51
|
* @example
|
|
43
|
-
* ```
|
|
52
|
+
* ```ts
|
|
44
53
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
45
54
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
46
55
|
* const visibleRange = fWorksheet.getVisibleRange();
|
|
56
|
+
* console.log(visibleRange);
|
|
57
|
+
* console.log(fWorksheet.getRange(visibleRange).getA1Notation());
|
|
47
58
|
* ```
|
|
48
59
|
*/
|
|
49
60
|
getVisibleRange(): IRange;
|
|
@@ -52,10 +63,17 @@ export interface IFWorksheetSkeletonMixin {
|
|
|
52
63
|
* Based on the limitations of viewport and the number of rows and columns, you can only scroll to the maximum scrollable range.
|
|
53
64
|
* @param {number} row - Cell row index
|
|
54
65
|
* @param {number} column - Cell column index
|
|
55
|
-
* @returns {FWorksheet} -
|
|
66
|
+
* @returns {FWorksheet} - The FWorksheet instance for chaining.
|
|
56
67
|
* @example
|
|
57
|
-
* ```
|
|
58
|
-
* univerAPI.getActiveWorkbook()
|
|
68
|
+
* ```ts
|
|
69
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
70
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
71
|
+
*
|
|
72
|
+
* // Scroll to cell D10
|
|
73
|
+
* const fRange = fWorksheet.getRange('D10');
|
|
74
|
+
* const row = fRange.getRow();
|
|
75
|
+
* const column = fRange.getColumn();
|
|
76
|
+
* fWorksheet.scrollToCell(row, column);
|
|
59
77
|
* ```
|
|
60
78
|
*/
|
|
61
79
|
scrollToCell(row: number, column: number): FWorksheet;
|
|
@@ -63,8 +81,20 @@ export interface IFWorksheetSkeletonMixin {
|
|
|
63
81
|
* Get scroll state of current sheet.
|
|
64
82
|
* @returns {IScrollState} curr scroll state
|
|
65
83
|
* @example
|
|
66
|
-
* ```
|
|
67
|
-
* univerAPI.getActiveWorkbook()
|
|
84
|
+
* ```ts
|
|
85
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
86
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
87
|
+
*
|
|
88
|
+
* // Scroll to cell D10
|
|
89
|
+
* const fRange = fWorksheet.getRange('D10');
|
|
90
|
+
* const row = fRange.getRow();
|
|
91
|
+
* const column = fRange.getColumn();
|
|
92
|
+
* fWorksheet.scrollToCell(row, column);
|
|
93
|
+
*
|
|
94
|
+
* // Get scroll state
|
|
95
|
+
* const scrollState = fWorksheet.getScrollState();
|
|
96
|
+
* const { offsetX, offsetY, sheetViewStartColumn, sheetViewStartRow } = scrollState;
|
|
97
|
+
* console.log(scrollState); // sheetViewStartRow: 9, sheetViewStartColumn: 3, offsetX: 0, offsetY: 0
|
|
68
98
|
* ```
|
|
69
99
|
*/
|
|
70
100
|
getScrollState(): IScrollState;
|
|
@@ -81,17 +111,61 @@ export interface IFWorksheetSkeletonMixin {
|
|
|
81
111
|
*/
|
|
82
112
|
getSkeleton(): Nullable<SpreadsheetSkeleton>;
|
|
83
113
|
/**
|
|
84
|
-
*
|
|
85
|
-
* @param {number} columnPosition -
|
|
86
|
-
* @
|
|
114
|
+
* Sets the width of the given column to fit its contents.
|
|
115
|
+
* @param {number} columnPosition - The position of the given column to resize. index starts at 0.
|
|
116
|
+
* @returns {FWorksheet} - The FWorksheet instance for chaining.
|
|
117
|
+
* @example
|
|
118
|
+
* ```ts
|
|
119
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
120
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
121
|
+
*
|
|
122
|
+
* // Set the long text value in cell A1
|
|
123
|
+
* const fRange = fWorksheet.getRange('A1');
|
|
124
|
+
* fRange.setValue('Whenever it is a damp, drizzly November in my soul...');
|
|
125
|
+
*
|
|
126
|
+
* // Set the column A to a width which fits the text
|
|
127
|
+
* fWorksheet.autoResizeColumn(0);
|
|
128
|
+
* ```
|
|
129
|
+
*/
|
|
130
|
+
autoResizeColumn(columnPosition: number): FWorksheet;
|
|
131
|
+
/**
|
|
132
|
+
* Sets the width of all columns starting at the given column position to fit their contents.
|
|
133
|
+
* @param {number} startColumn - The position of the first column to resize. index starts at 0.
|
|
134
|
+
* @param {number} numColumns - The number of columns to auto-resize.
|
|
135
|
+
* @returns {FWorksheet} - The FWorksheet instance for chaining.
|
|
87
136
|
* @example
|
|
88
137
|
* ```ts
|
|
89
138
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
90
139
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
91
|
-
*
|
|
140
|
+
*
|
|
141
|
+
* // Set the A:C columns to a width that fits their text.
|
|
142
|
+
* fWorksheet.autoResizeColumns(0, 3);
|
|
92
143
|
* ```
|
|
93
144
|
*/
|
|
145
|
+
autoResizeColumns(startColumn: number, numColumns: number): FWorksheet;
|
|
146
|
+
/**
|
|
147
|
+
* Sets the width of all columns starting at the given column position to fit their contents.
|
|
148
|
+
* @deprecated use `autoResizeColumns` instead
|
|
149
|
+
* @param {number} columnPosition - The position of the first column to resize. index starts at 0.
|
|
150
|
+
* @param {number} numColumn - The number of columns to auto-resize.
|
|
151
|
+
* @returns {FWorksheet} - The FWorksheet instance for chaining.
|
|
152
|
+
*/
|
|
94
153
|
setColumnAutoWidth(columnPosition: number, numColumn: number): FWorksheet;
|
|
154
|
+
/**
|
|
155
|
+
* Sets the height of all rows starting at the given row position to fit their contents.
|
|
156
|
+
* @param {number} startRow - The position of the first row to resize. index starts at 0.
|
|
157
|
+
* @param {number} numRows - The number of rows to auto-resize.
|
|
158
|
+
* @returns {FWorksheet} - The FWorksheet instance for chaining.
|
|
159
|
+
* @example
|
|
160
|
+
* ```ts
|
|
161
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
162
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
163
|
+
*
|
|
164
|
+
* // Set the first 3 rows to a height that fits their text.
|
|
165
|
+
* fWorksheet.autoResizeRows(0, 3);
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
168
|
+
autoResizeRows(startRow: number, numRows: number): FWorksheet;
|
|
95
169
|
/**
|
|
96
170
|
* Customize the column header of the spreadsheet.
|
|
97
171
|
* @param {IColumnsHeaderCfgParam} cfg The configuration of the column header.
|
|
@@ -144,26 +218,30 @@ export interface IFWorksheetSkeletonMixin {
|
|
|
144
218
|
customizeRowHeader(cfg: IRowsHeaderCfgParam): void;
|
|
145
219
|
/**
|
|
146
220
|
* Set column height for column header.
|
|
147
|
-
* @param height
|
|
221
|
+
* @param {number} height - The height to set.
|
|
222
|
+
* @returns {FWorksheet} - The FWorksheet instance for chaining.
|
|
148
223
|
* @example
|
|
149
224
|
* ```ts
|
|
150
|
-
|
|
151
|
-
|
|
225
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
226
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
227
|
+
* fWorksheet.setColumnHeaderHeight(100);
|
|
152
228
|
* ```
|
|
153
229
|
*/
|
|
154
230
|
setColumnHeaderHeight(height: number): FWorksheet;
|
|
155
231
|
/**
|
|
156
232
|
* Set column height for column header.
|
|
157
|
-
* @param width
|
|
233
|
+
* @param {number} width - The width to set.
|
|
234
|
+
* @returns {FWorksheet} - The FWorksheet instance for chaining.
|
|
158
235
|
* @example
|
|
159
236
|
* ```ts
|
|
160
|
-
|
|
161
|
-
|
|
237
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
238
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
239
|
+
* fWorksheet.setRowHeaderWidth(100);
|
|
162
240
|
* ```
|
|
163
241
|
*/
|
|
164
242
|
setRowHeaderWidth(width: number): FWorksheet;
|
|
165
243
|
/**
|
|
166
|
-
* @deprecated use `univerAPI.addEvent(univerAPI.Event.Scroll, () => {})` instead
|
|
244
|
+
* @deprecated use `univerAPI.addEvent(univerAPI.Event.Scroll, (params) => {})` instead
|
|
167
245
|
*/
|
|
168
246
|
onScroll(callback: (params: Nullable<IViewportScrollState>) => void): IDisposable;
|
|
169
247
|
}
|
|
@@ -176,7 +254,10 @@ export declare class FWorksheetSkeletonMixin extends FWorksheet implements IFWor
|
|
|
176
254
|
getScrollState(): IScrollState;
|
|
177
255
|
onScroll(callback: (params: Nullable<IViewportScrollState>) => void): IDisposable;
|
|
178
256
|
getSkeleton(): Nullable<SpreadsheetSkeleton>;
|
|
257
|
+
autoResizeColumn(columnPosition: number): FWorksheet;
|
|
258
|
+
autoResizeColumns(startColumn: number, numColumns: number): FWorksheet;
|
|
179
259
|
setColumnAutoWidth(columnPosition: number, numColumn: number): FWorksheet;
|
|
260
|
+
autoResizeRows(startRow: number, numRows: number): FWorksheet;
|
|
180
261
|
customizeColumnHeader(cfg: IColumnsHeaderCfgParam): void;
|
|
181
262
|
customizeRowHeader(cfg: IRowsHeaderCfgParam): void;
|
|
182
263
|
setColumnHeaderHeight(height: number): FWorksheet;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export { HoverRenderController } from './controllers/hover-render.controller';
|
|
|
57
57
|
export { DragRenderController } from './controllers/drag-render.controller';
|
|
58
58
|
export { EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY, RANGE_SELECTOR_COMPONENT_KEY, SHEET_VIEW_KEY } from './common/keys';
|
|
59
59
|
export type { IDiscreteRange } from './controllers/utils/range-tools';
|
|
60
|
-
export { discreteRangeToRange,
|
|
60
|
+
export { discreteRangeToRange, virtualizeDiscreteRanges } from './controllers/utils/range-tools';
|
|
61
61
|
export { AFFECT_LAYOUT_STYLES, AutoHeightController } from './controllers/auto-height.controller';
|
|
62
62
|
export { AutoWidthController } from './controllers/auto-width.controller';
|
|
63
63
|
export { FormulaEditorController } from './controllers/editor/formula-editor.controller';
|
|
@@ -20,11 +20,6 @@ declare const locale: {
|
|
|
20
20
|
undo: string;
|
|
21
21
|
redo: string;
|
|
22
22
|
formatPainter: string;
|
|
23
|
-
currencyFormat: string;
|
|
24
|
-
percentageFormat: string;
|
|
25
|
-
numberDecrease: string;
|
|
26
|
-
numberIncrease: string;
|
|
27
|
-
moreFormats: string;
|
|
28
23
|
font: string;
|
|
29
24
|
fontSize: string;
|
|
30
25
|
bold: string;
|
|
@@ -38,11 +33,6 @@ declare const locale: {
|
|
|
38
33
|
right: string;
|
|
39
34
|
};
|
|
40
35
|
resetColor: string;
|
|
41
|
-
customColor: string;
|
|
42
|
-
alternatingColors: string;
|
|
43
|
-
confirmColor: string;
|
|
44
|
-
cancelColor: string;
|
|
45
|
-
collapse: string;
|
|
46
36
|
fillColor: {
|
|
47
37
|
main: string;
|
|
48
38
|
right: string;
|
|
@@ -71,137 +61,9 @@ declare const locale: {
|
|
|
71
61
|
main: string;
|
|
72
62
|
right: string;
|
|
73
63
|
};
|
|
74
|
-
freezeTopRow: string;
|
|
75
|
-
sortAndFilter: string;
|
|
76
|
-
findAndReplace: string;
|
|
77
|
-
sum: string;
|
|
78
|
-
autoSum: string;
|
|
79
|
-
moreFunction: string;
|
|
80
|
-
conditionalFormatting: string;
|
|
81
|
-
comment: string;
|
|
82
|
-
pivotTable: string;
|
|
83
|
-
chart: string;
|
|
84
|
-
screenshot: string;
|
|
85
|
-
splitColumn: string;
|
|
86
|
-
insertImage: string;
|
|
87
|
-
insertLink: string;
|
|
88
|
-
dataValidation: string;
|
|
89
|
-
protection: string;
|
|
90
|
-
clearText: string;
|
|
91
|
-
noColorSelectedText: string;
|
|
92
|
-
toolMore: string;
|
|
93
|
-
toolLess: string;
|
|
94
|
-
toolClose: string;
|
|
95
|
-
toolMoreTip: string;
|
|
96
|
-
moreOptions: string;
|
|
97
|
-
cellFormat: string;
|
|
98
|
-
print: string;
|
|
99
|
-
borderMethod: {
|
|
100
|
-
top: string;
|
|
101
|
-
bottom: string;
|
|
102
|
-
left: string;
|
|
103
|
-
right: string;
|
|
104
|
-
};
|
|
105
64
|
more: string;
|
|
106
|
-
hideGridlines: string;
|
|
107
|
-
showGridlines: string;
|
|
108
65
|
toggleGridlines: string;
|
|
109
66
|
};
|
|
110
|
-
defaultFmt: {
|
|
111
|
-
Automatic: {
|
|
112
|
-
text: string;
|
|
113
|
-
value: string;
|
|
114
|
-
example: string;
|
|
115
|
-
};
|
|
116
|
-
Number: {
|
|
117
|
-
text: string;
|
|
118
|
-
value: string;
|
|
119
|
-
example: string;
|
|
120
|
-
};
|
|
121
|
-
Percent: {
|
|
122
|
-
text: string;
|
|
123
|
-
value: string;
|
|
124
|
-
example: string;
|
|
125
|
-
};
|
|
126
|
-
PlainText: {
|
|
127
|
-
text: string;
|
|
128
|
-
value: string;
|
|
129
|
-
example: string;
|
|
130
|
-
};
|
|
131
|
-
Scientific: {
|
|
132
|
-
text: string;
|
|
133
|
-
value: string;
|
|
134
|
-
example: string;
|
|
135
|
-
};
|
|
136
|
-
Accounting: {
|
|
137
|
-
text: string;
|
|
138
|
-
value: string;
|
|
139
|
-
example: string;
|
|
140
|
-
};
|
|
141
|
-
Thousand: {
|
|
142
|
-
text: string;
|
|
143
|
-
value: string;
|
|
144
|
-
example: string;
|
|
145
|
-
};
|
|
146
|
-
Currency: {
|
|
147
|
-
text: string;
|
|
148
|
-
value: string;
|
|
149
|
-
example: string;
|
|
150
|
-
};
|
|
151
|
-
Digit: {
|
|
152
|
-
text: string;
|
|
153
|
-
value: string;
|
|
154
|
-
example: string;
|
|
155
|
-
};
|
|
156
|
-
Date: {
|
|
157
|
-
text: string;
|
|
158
|
-
value: string;
|
|
159
|
-
example: string;
|
|
160
|
-
};
|
|
161
|
-
Time: {
|
|
162
|
-
text: string;
|
|
163
|
-
value: string;
|
|
164
|
-
example: string;
|
|
165
|
-
};
|
|
166
|
-
Time24H: {
|
|
167
|
-
text: string;
|
|
168
|
-
value: string;
|
|
169
|
-
example: string;
|
|
170
|
-
};
|
|
171
|
-
DateTime: {
|
|
172
|
-
text: string;
|
|
173
|
-
value: string;
|
|
174
|
-
example: string;
|
|
175
|
-
};
|
|
176
|
-
DateTime24H: {
|
|
177
|
-
text: string;
|
|
178
|
-
value: string;
|
|
179
|
-
example: string;
|
|
180
|
-
};
|
|
181
|
-
CustomFormats: {
|
|
182
|
-
text: string;
|
|
183
|
-
value: string;
|
|
184
|
-
example: string;
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
|
-
format: {
|
|
188
|
-
moreCurrency: string;
|
|
189
|
-
moreDateTime: string;
|
|
190
|
-
moreNumber: string;
|
|
191
|
-
titleCurrency: string;
|
|
192
|
-
decimalPlaces: string;
|
|
193
|
-
titleDateTime: string;
|
|
194
|
-
titleNumber: string;
|
|
195
|
-
};
|
|
196
|
-
print: {
|
|
197
|
-
normalBtn: string;
|
|
198
|
-
layoutBtn: string;
|
|
199
|
-
pageBtn: string;
|
|
200
|
-
menuItemPrint: string;
|
|
201
|
-
menuItemAreas: string;
|
|
202
|
-
menuItemRows: string;
|
|
203
|
-
menuItemColumns: string;
|
|
204
|
-
};
|
|
205
67
|
align: {
|
|
206
68
|
left: string;
|
|
207
69
|
center: string;
|
|
@@ -314,7 +176,6 @@ declare const locale: {
|
|
|
314
176
|
};
|
|
315
177
|
rightClick: {
|
|
316
178
|
copy: string;
|
|
317
|
-
copyAs: string;
|
|
318
179
|
cut: string;
|
|
319
180
|
paste: string;
|
|
320
181
|
pasteSpecial: string;
|
|
@@ -326,8 +187,16 @@ declare const locale: {
|
|
|
326
187
|
delete: string;
|
|
327
188
|
insertRow: string;
|
|
328
189
|
insertRowBefore: string;
|
|
190
|
+
insertRowsAbove: string;
|
|
191
|
+
insertRowsAfter: string;
|
|
192
|
+
insertRowsAfterSuffix: string;
|
|
193
|
+
insertRowsAboveSuffix: string;
|
|
329
194
|
insertColumn: string;
|
|
330
195
|
insertColumnBefore: string;
|
|
196
|
+
insertColsLeft: string;
|
|
197
|
+
insertColsRight: string;
|
|
198
|
+
insertColsLeftSuffix: string;
|
|
199
|
+
insertColsRightSuffix: string;
|
|
331
200
|
deleteCell: string;
|
|
332
201
|
insertCell: string;
|
|
333
202
|
deleteSelected: string;
|
|
@@ -346,11 +215,6 @@ declare const locale: {
|
|
|
346
215
|
hideSelectedColumn: string;
|
|
347
216
|
showHideColumn: string;
|
|
348
217
|
columnWidth: string;
|
|
349
|
-
to: string;
|
|
350
|
-
left: string;
|
|
351
|
-
right: string;
|
|
352
|
-
top: string;
|
|
353
|
-
bottom: string;
|
|
354
218
|
moveLeft: string;
|
|
355
219
|
moveUp: string;
|
|
356
220
|
moveRight: string;
|
|
@@ -358,42 +222,11 @@ declare const locale: {
|
|
|
358
222
|
add: string;
|
|
359
223
|
row: string;
|
|
360
224
|
column: string;
|
|
361
|
-
width: string;
|
|
362
|
-
height: string;
|
|
363
|
-
number: string;
|
|
364
225
|
confirm: string;
|
|
365
|
-
orderAZ: string;
|
|
366
|
-
orderZA: string;
|
|
367
226
|
clearSelection: string;
|
|
368
227
|
clearContent: string;
|
|
369
228
|
clearFormat: string;
|
|
370
229
|
clearAll: string;
|
|
371
|
-
matrix: string;
|
|
372
|
-
sortSelection: string;
|
|
373
|
-
filterSelection: string;
|
|
374
|
-
chartGeneration: string;
|
|
375
|
-
firstLineTitle: string;
|
|
376
|
-
untitled: string;
|
|
377
|
-
array1: string;
|
|
378
|
-
array2: string;
|
|
379
|
-
array3: string;
|
|
380
|
-
diagonal: string;
|
|
381
|
-
antiDiagonal: string;
|
|
382
|
-
diagonalOffset: string;
|
|
383
|
-
offset: string;
|
|
384
|
-
boolean: string;
|
|
385
|
-
flip: string;
|
|
386
|
-
upAndDown: string;
|
|
387
|
-
leftAndRight: string;
|
|
388
|
-
clockwise: string;
|
|
389
|
-
counterclockwise: string;
|
|
390
|
-
transpose: string;
|
|
391
|
-
matrixCalculation: string;
|
|
392
|
-
plus: string;
|
|
393
|
-
minus: string;
|
|
394
|
-
multiply: string;
|
|
395
|
-
divided: string;
|
|
396
|
-
power: string;
|
|
397
230
|
root: string;
|
|
398
231
|
log: string;
|
|
399
232
|
delete0: string;
|
|
@@ -406,7 +239,6 @@ declare const locale: {
|
|
|
406
239
|
freezeCol: string;
|
|
407
240
|
freezeRow: string;
|
|
408
241
|
cancelFreeze: string;
|
|
409
|
-
zenEditor: string;
|
|
410
242
|
deleteAllRowsAlert: string;
|
|
411
243
|
deleteAllColumnsAlert: string;
|
|
412
244
|
hideAllRowsAlert: string;
|
|
@@ -74,7 +74,7 @@ export declare class SheetClipboardService extends Disposable implements ISheetC
|
|
|
74
74
|
getPasteMenuVisible(): boolean;
|
|
75
75
|
getPasteOptionsCache(): IPasteOptionCache | null;
|
|
76
76
|
copyContentCache(): CopyContentCache;
|
|
77
|
-
generateCopyContent(workbookId: string, worksheetId: string, range: IRange): Nullable<ICopyContent>;
|
|
77
|
+
generateCopyContent(workbookId: string, worksheetId: string, range: IRange, copyType?: COPY_TYPE): Nullable<ICopyContent>;
|
|
78
78
|
copy(copyType?: COPY_TYPE): Promise<boolean>;
|
|
79
79
|
cut(): Promise<boolean>;
|
|
80
80
|
paste(item: ClipboardItem, pasteType?: "default-paste"): Promise<boolean>;
|
|
@@ -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;
|
|
@@ -33,10 +33,6 @@ export declare class SelectionRenderModel implements IRangeWithCoord {
|
|
|
33
33
|
* @deprecated, Duplicate with `Rectangle`
|
|
34
34
|
*/
|
|
35
35
|
isEqual(rangeWithCoord: IRangeWithCoord): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated, Duplicate with `Rectangle`
|
|
38
|
-
*/
|
|
39
|
-
isInclude(rangeWithCoord: IRangeWithCoord): boolean;
|
|
40
36
|
highlightToSelection(): Nullable<IRangeWithCoord>;
|
|
41
37
|
getRange(): IRangeWithCoord;
|
|
42
38
|
getCell(): Nullable<ICellWithCoord>;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { IRange } from '@univerjs/core';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
interface IPermissionDetailMainPartProps {
|
|
4
3
|
permissionId: string;
|
|
5
4
|
ranges: IRange[];
|
|
6
5
|
onRangesChange: (ranges: IRange[], err?: string) => void;
|
|
7
|
-
isFocusRangeSelector: boolean;
|
|
8
6
|
rangesErrMsg?: string;
|
|
9
7
|
desc?: string;
|
|
10
8
|
onDescChange: (desc: string) => void;
|
|
11
|
-
rangeSelectorRef: React.MutableRefObject<any>;
|
|
12
|
-
onFocus: () => void;
|
|
13
9
|
}
|
|
14
10
|
export declare const PermissionDetailMainPart: (props: IPermissionDetailMainPartProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
11
|
export {};
|
|
@@ -6,8 +6,4 @@ export interface ISheetBarMenuItem {
|
|
|
6
6
|
index?: string;
|
|
7
7
|
sheetId?: string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
onClick?: (e?: MouseEvent) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare function SheetBarMenu(props: ISheetBarMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function SheetBarMenu(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
export declare const SHEET_FOOTER_BAR_HEIGHT = 36;
|
|
16
17
|
export declare function RenderSheetFooter(): import("react/jsx-runtime").JSX.Element | null;
|
|
17
18
|
export declare function RenderSheetHeader(): import("react/jsx-runtime").JSX.Element | null;
|
|
18
19
|
/**
|