@cj-tech-master/excelts 5.1.7 → 5.1.8
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/dist/browser/modules/excel/cell.d.ts +6 -5
- package/dist/browser/modules/excel/worksheet.d.ts +5 -5
- package/dist/iife/excelts.iife.js +1 -1
- package/dist/iife/excelts.iife.js.map +1 -1
- package/dist/iife/excelts.iife.min.js +1 -1
- package/dist/types/modules/excel/cell.d.ts +6 -5
- package/dist/types/modules/excel/worksheet.d.ts +5 -5
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ValueType, FormulaType } from "@excel/enums";
|
|
1
2
|
import { Note } from "@excel/note";
|
|
2
3
|
import type { Row } from "@excel/row";
|
|
3
4
|
import type { Column } from "@excel/column";
|
|
@@ -47,7 +48,7 @@ export interface NoteModel {
|
|
|
47
48
|
}
|
|
48
49
|
export interface CellModel {
|
|
49
50
|
address: string;
|
|
50
|
-
type:
|
|
51
|
+
type: ValueType;
|
|
51
52
|
value?: number | string | boolean | Date | CellRichTextValue | CellErrorValue | CellHyperlinkValue;
|
|
52
53
|
style?: Partial<Style>;
|
|
53
54
|
comment?: NoteModel;
|
|
@@ -67,7 +68,7 @@ export interface CellModel {
|
|
|
67
68
|
}
|
|
68
69
|
export type CellValueType = CellValue;
|
|
69
70
|
declare class Cell {
|
|
70
|
-
static Types: typeof
|
|
71
|
+
static Types: typeof ValueType;
|
|
71
72
|
private _row;
|
|
72
73
|
private _column;
|
|
73
74
|
private _address;
|
|
@@ -96,8 +97,8 @@ declare class Cell {
|
|
|
96
97
|
get row(): number;
|
|
97
98
|
get col(): number;
|
|
98
99
|
get $col$row(): string;
|
|
99
|
-
get type():
|
|
100
|
-
get effectiveType():
|
|
100
|
+
get type(): ValueType;
|
|
101
|
+
get effectiveType(): ValueType;
|
|
101
102
|
toCsvString(): string;
|
|
102
103
|
addMergeRef(): void;
|
|
103
104
|
releaseMergeRef(): void;
|
|
@@ -119,7 +120,7 @@ declare class Cell {
|
|
|
119
120
|
toString(): string;
|
|
120
121
|
get formula(): string | undefined;
|
|
121
122
|
get result(): FormulaResult | undefined;
|
|
122
|
-
get formulaType():
|
|
123
|
+
get formulaType(): FormulaType;
|
|
123
124
|
get fullAddress(): FullAddress;
|
|
124
125
|
get name(): string;
|
|
125
126
|
set name(value: string);
|
|
@@ -228,11 +228,11 @@ declare class Worksheet {
|
|
|
228
228
|
* A count of the number of rows that have values. If a mid-document row is empty, it will not be included in the count.
|
|
229
229
|
*/
|
|
230
230
|
get actualRowCount(): number;
|
|
231
|
-
getRow(r: number):
|
|
232
|
-
getRows(start: number, length: number):
|
|
233
|
-
addRow(value: any, style?: string):
|
|
234
|
-
addRows(value: any[], style?: string):
|
|
235
|
-
insertRow(pos: number, value: any, style?: string):
|
|
231
|
+
getRow(r: number): Row;
|
|
232
|
+
getRows(start: number, length: number): Row[] | undefined;
|
|
233
|
+
addRow(value: any, style?: string): Row;
|
|
234
|
+
addRows(value: any[], style?: string): Row[];
|
|
235
|
+
insertRow(pos: number, value: any, style?: string): Row;
|
|
236
236
|
insertRows(pos: number, values: any[], style?: string): Row[] | undefined;
|
|
237
237
|
private _setStyleOption;
|
|
238
238
|
private _copyStyle;
|