sheetra 1.0.3 → 1.0.4
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/index.esm.js +30 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +30 -7
- package/dist/index.js.map +1 -1
- package/dist/types/builders/export-builder.d.ts +7 -1
- package/dist/types/index.d.ts +7 -1
- package/package.json +1 -1
|
@@ -5,7 +5,13 @@ export declare class ExportBuilder {
|
|
|
5
5
|
private currentSheet;
|
|
6
6
|
constructor(sheetName?: string);
|
|
7
7
|
addHeaderRow(headers: string[], style?: any): this;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Add multiple data rows to the sheet
|
|
10
|
+
* @param data Array of row data
|
|
11
|
+
* @param fields Optional array of field names (for object data)
|
|
12
|
+
* @param styles Optional array of styles per row or per cell
|
|
13
|
+
*/
|
|
14
|
+
addDataRows(data: any[], fields?: string[], styles?: (import('../types').CellStyle | import('../types').CellStyle[] | undefined)[]): this;
|
|
9
15
|
addSection(config: SectionConfig): this;
|
|
10
16
|
addSections(sections: SectionConfig[]): this;
|
|
11
17
|
setColumnWidths(widths: number[]): this;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1222,7 +1222,13 @@ declare class ExportBuilder {
|
|
|
1222
1222
|
private currentSheet;
|
|
1223
1223
|
constructor(sheetName?: string);
|
|
1224
1224
|
addHeaderRow(headers: string[], style?: any): this;
|
|
1225
|
-
|
|
1225
|
+
/**
|
|
1226
|
+
* Add multiple data rows to the sheet
|
|
1227
|
+
* @param data Array of row data
|
|
1228
|
+
* @param fields Optional array of field names (for object data)
|
|
1229
|
+
* @param styles Optional array of styles per row or per cell
|
|
1230
|
+
*/
|
|
1231
|
+
addDataRows(data: any[], fields?: string[], styles?: (CellStyle | CellStyle[] | undefined)[]): this;
|
|
1226
1232
|
addSection(config: SectionConfig): this;
|
|
1227
1233
|
addSections(sections: SectionConfig[]): this;
|
|
1228
1234
|
setColumnWidths(widths: number[]): this;
|