@univerjs/sheets 0.7.0-beta.0 → 0.7.0-beta.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.
|
@@ -6,13 +6,6 @@ import { ICellData, Nullable, CellValueType } from '@univerjs/core';
|
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
8
|
export declare function getCellValue(type: Nullable<CellValueType>, cell: ICellData): Nullable<import('@univerjs/core').CellValue>;
|
|
9
|
-
/**
|
|
10
|
-
* Check if the value can be casted to a boolean.
|
|
11
|
-
* @internal
|
|
12
|
-
* @param value
|
|
13
|
-
* @returns It would return null if the value cannot be casted to a boolean, and would return the boolean value if it can be casted.
|
|
14
|
-
*/
|
|
15
|
-
export declare function extractBooleanValue(value: Nullable<string | number | boolean>): Nullable<boolean>;
|
|
16
9
|
/**
|
|
17
10
|
* Supplement the data of the cell, set the other value to NULL, Used to reset properties when undoing
|
|
18
11
|
* @param value
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellData,
|
|
1
|
+
import { ICellData, IObjectMatrixPrimitiveType } from '@univerjs/core';
|
|
2
2
|
export interface IAppendRowCommandParams {
|
|
3
3
|
unitId: string;
|
|
4
4
|
subUnitId: string;
|
|
@@ -9,9 +9,3 @@ export interface IAppendRowCommandParams {
|
|
|
9
9
|
maxColumns?: number;
|
|
10
10
|
}
|
|
11
11
|
export declare const AppendRowCommandId = "sheet.command.append-row";
|
|
12
|
-
/**
|
|
13
|
-
* this command and its interface should not be exported from index.ts
|
|
14
|
-
*
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export declare const AppendRowCommand: ICommand<IAppendRowCommandParams>;
|
|
@@ -15,12 +15,6 @@ export interface IInsertRowCommandParams {
|
|
|
15
15
|
cellValue?: IObjectMatrixPrimitiveType<ICellData>;
|
|
16
16
|
}
|
|
17
17
|
export declare const InsertRowCommandId = "sheet.command.insert-row";
|
|
18
|
-
/**
|
|
19
|
-
* this command and its interface should not be exported from index.ts
|
|
20
|
-
*
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
|
-
export declare const InsertRowCommand: ICommand;
|
|
24
18
|
export declare const InsertRowByRangeCommand: ICommand;
|
|
25
19
|
export declare const InsertRowBeforeCommand: ICommand;
|
|
26
20
|
export declare const InsertRowAfterCommand: ICommand;
|
|
@@ -482,48 +482,6 @@ export declare class FRange extends FBaseInitialable {
|
|
|
482
482
|
* ```
|
|
483
483
|
*/
|
|
484
484
|
getCellDataGrid(): Nullable<ICellData>[][];
|
|
485
|
-
/**
|
|
486
|
-
* Returns the rich text value for the cell at the start of this range.
|
|
487
|
-
* @returns {Nullable<RichTextValue>} The rich text value
|
|
488
|
-
* @internal
|
|
489
|
-
* @beta
|
|
490
|
-
* @example
|
|
491
|
-
* ```ts
|
|
492
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
493
|
-
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
494
|
-
* const fRange = fWorksheet.getRange('A1:B2');
|
|
495
|
-
* console.log(fRange.getRichTextValue());
|
|
496
|
-
* ```
|
|
497
|
-
*/
|
|
498
|
-
private getRichTextValue;
|
|
499
|
-
/**
|
|
500
|
-
* Returns the rich text value for the cells in the range.
|
|
501
|
-
* @returns {Nullable<RichTextValue>[][]} A two-dimensional array of RichTextValue objects.
|
|
502
|
-
* @internal
|
|
503
|
-
* @beta
|
|
504
|
-
* @example
|
|
505
|
-
* ```ts
|
|
506
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
507
|
-
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
508
|
-
* const fRange = fWorksheet.getRange('A1:B2');
|
|
509
|
-
* console.log(fRange.getRichTextValues());
|
|
510
|
-
* ```
|
|
511
|
-
*/
|
|
512
|
-
private getRichTextValues;
|
|
513
|
-
/**
|
|
514
|
-
* Returns the value and rich text value for the cell at the start of this range.
|
|
515
|
-
* @returns {Nullable<CellValue | RichTextValue>} The value and rich text value
|
|
516
|
-
* @internal
|
|
517
|
-
* @beta
|
|
518
|
-
* @example
|
|
519
|
-
* ```ts
|
|
520
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
521
|
-
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
522
|
-
* const fRange = fWorksheet.getRange('A1:B2');
|
|
523
|
-
* console.log(fRange.getValueAndRichTextValue());
|
|
524
|
-
* ```
|
|
525
|
-
*/
|
|
526
|
-
private getValueAndRichTextValue;
|
|
527
485
|
/**
|
|
528
486
|
* Returns the value and rich text value for the cells in the range.
|
|
529
487
|
* @returns {Nullable<CellValue | RichTextValue>[][]} A two-dimensional array of value and rich text value
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/sheets",
|
|
3
|
-
"version": "0.7.0-beta.
|
|
3
|
+
"version": "0.7.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal base-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -64,19 +64,19 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@univerjs/protocol": "0.1.45",
|
|
67
|
-
"@univerjs/core": "0.7.0-beta.
|
|
68
|
-
"@univerjs/engine-
|
|
69
|
-
"@univerjs/
|
|
70
|
-
"@univerjs/
|
|
67
|
+
"@univerjs/core": "0.7.0-beta.1",
|
|
68
|
+
"@univerjs/engine-numfmt": "0.7.0-beta.1",
|
|
69
|
+
"@univerjs/rpc": "0.7.0-beta.1",
|
|
70
|
+
"@univerjs/engine-formula": "0.7.0-beta.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"rxjs": "^7.8.1",
|
|
74
74
|
"typescript": "^5.8.3",
|
|
75
|
-
"vite": "^6.3.
|
|
76
|
-
"vitest": "^3.1.
|
|
77
|
-
"@univerjs-infra/shared": "0.7.0-beta.
|
|
78
|
-
"@univerjs/engine-render": "0.7.0-beta.
|
|
79
|
-
"@univerjs/network": "0.7.0-beta.
|
|
75
|
+
"vite": "^6.3.5",
|
|
76
|
+
"vitest": "^3.1.3",
|
|
77
|
+
"@univerjs-infra/shared": "0.7.0-beta.1",
|
|
78
|
+
"@univerjs/engine-render": "0.7.0-beta.1",
|
|
79
|
+
"@univerjs/network": "0.7.0-beta.1"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"test": "vitest run",
|