Skip to content

Commit 703d4c3

Browse files
V7.0.1 (#6)
1 parent 7e5da30 commit 703d4c3

22 files changed

+734
-877
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## Version 7.0.1 (2025-03-13)
4+
5+
### Bug Fixes
6+
7+
- Related to formating. (more info-PR)[https://github.com/mohammadrezaeicode/mr-excel-repo/pull/5/] (by [Sergio Fernández](https://github.com/xergiodf))
8+
- Data range error.
9+
310
## Version 7.0.0 (2025-02-16)
411

512
### New Features

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -7289,6 +7289,13 @@ To migrate from Version 2 to Version 3, you need to follow the steps below:
72897289

72907290
## Release Notes [⬆️](#table-of-contents)
72917291

7292+
### Version 7.0.1 (2025-03-13)
7293+
7294+
#### Bug Fixes
7295+
7296+
- Related to formating. (more info-PR)[https://github.com/mohammadrezaeicode/mr-excel-repo/pull/5/] (by [Sergio Fernández](https://github.com/xergiodf))
7297+
- Data range error.
7298+
72927299
### Version 7.0.0 (2025-02-16)
72937300

72947301
#### New Features

change-log

+3-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
## Version 7.0.0 (2025-02-16)
2-
3-
### New Features
4-
5-
- A drop-down option (multi-select option) provides the ability to create a cell that contains multiple selectable values.`sheet`->`[n]`->`dropDowns`
6-
- The `replaceInExcel` functionality in Excel allows you to replace data in an existing file using flags provided within the spreadsheet.
1+
## Version 7.0.1 (2025-03-13)
72

83
### Bug Fixes
94

10-
- `generateExcel` supports empty objects and will generate an empty Excel file.
11-
12-
> [!NOTE]
13-
> The related interface has not changed, so the sheet needs to be provided in TypeScript.
14-
15-
### Improvements
16-
17-
- Begin adding JSDoc comments to the main functions and interfaces.
18-
5+
- Related to formating. (more info-PR)[https://github.com/mohammadrezaeicode/mr-excel-repo/pull/5/] (by [Sergio Fernández](https://github.com/xergiodf))
6+
- Data range error.
197

dist/excel-table.amd.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/excel-table.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CzrjgJVS.cjs");exports.Validator=e.validateExcelTable;exports.addGlobalOptionFromExcelTable=e.addGlobalOptionFromExcelTable;exports.addGlobalOptions=e.addGlobalOptions;exports.convertTableToExcel=e.convertTableToExcel;exports.excelToJson=e.excelToJson;exports.excelToNode=e.excelToNode;exports.extractExcelData=e.extractExcelData;exports.generateCSV=e.generateCSV;exports.generateExcel=e.generateExcel;exports.generateText=e.generateText;exports.replaceInExcel=e.replaceInExcel;exports.sideBySideLineByLine=e.sideBySideLineByLine;exports.themeBaseGenerate=e.themeBaseGenerate;
1+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CNq3yjRY.cjs");exports.Validator=e.validateExcelTable;exports.addGlobalOptionFromExcelTable=e.addGlobalOptionFromExcelTable;exports.addGlobalOptions=e.addGlobalOptions;exports.convertTableToExcel=e.convertTableToExcel;exports.excelToJson=e.excelToJson;exports.excelToNode=e.excelToNode;exports.extractExcelData=e.extractExcelData;exports.generateCSV=e.generateCSV;exports.generateExcel=e.generateExcel;exports.generateText=e.generateText;exports.replaceInExcel=e.replaceInExcel;exports.sideBySideLineByLine=e.sideBySideLineByLine;exports.themeBaseGenerate=e.themeBaseGenerate;

dist/excel-table.d.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ declare type ConditionalFormattingTopOperation = "belowAverage" | "aboveAverage"
215215
* @param {boolean} [config.keepStyle] - Whether to keep the style.
216216
* @param {RowHeightScaleFunction} [config.rowHeightScaleFunction] - The function to scale row height.
217217
* @param {ColWidthScaleFunction} [config.colWidthScaleFunction] - The function to scale column width.
218-
* @returns {Promise<ExcelTable>} The generated Excel table.
218+
* @returns {Promise<string | number[] | Blob | DataModel.Buffer | undefined>} The generated Excel table.
219219
*/
220220
export declare function convertTableToExcel(queryForTable?: string, table?: HTMLTableElement, config?: {
221221
keepStyle?: boolean;
@@ -396,8 +396,8 @@ export declare function excelToJson(uri: string, fetchFunc?: Function, withHeade
396396
* @param {string} uri - The URI of the Excel file.
397397
* @param {string | null} [queryForTable] - The query selector for the table.
398398
* @param {HTMLDivElement | null} [containerElement] - The container element.
399-
* @param {ExcelToNodeConfig} [config={}] - The configuration options.
400-
* @returns {Promise<void>} The result of the conversion.
399+
* @param {ExcelToNodeConfig} [config=defaultConfig] - The configuration options.
400+
* @returns {Promise<HTMLTableElement[] | "Done">} The result of the conversion.
401401
*/
402402
export declare function excelToNode(uri: string, queryForTable?: string | null, containerElement?: HTMLDivElement | null, config?: ExcelToNodeConfig): Promise<HTMLTableElement[] | "Done">;
403403

@@ -436,7 +436,7 @@ declare type ExtractedData = (string | null | undefined)[][];
436436
* @param {string} uri - The URI of the Excel file.
437437
* @param {boolean} [isBackend=false] - Whether the extraction is done on the backend.
438438
* @param {Function} [fetchFunc] - The function to fetch data.
439-
* @returns {Promise<ExtractResult>} The extracted data.
439+
* @returns {Promise<DataModel.ReadResult>} The extracted data.
440440
*/
441441
export declare function extractExcelData(uri: string, isBackend?: boolean, fetchFunc?: Function): Promise<DataModel.ReadResult>;
442442

@@ -487,20 +487,20 @@ declare type FormulaType = "AVERAGE" | "SUM" | "COUNT" | "MAX" | "MIN";
487487
declare function generalValidationCheck(value: never, validateProperty: ValidationObject, property: string, strict: boolean, warn: boolean): boolean;
488488

489489
/**
490-
* Generates a CSV file from an Excel table.
490+
* Generates a CSV file from an Excel table Object.
491491
* @param {ExcelTable} excelTable - The Excel table.
492492
* @param {boolean} [asZip=false] - Whether to generate the CSV as a ZIP file.
493-
* @returns {Promise<Blob>} The generated CSV file.
493+
* @returns {Promise<string[] | "done" | undefined>} The generated CSV file.
494494
*/
495495
export declare function generateCSV(excelTable: ExcelTable, asZip?: boolean): Promise<string[] | "done" | undefined>;
496496

497497
export declare function generateExcel(data: ExcelTable, styleKey?: string): Promise<string | number[] | Blob | Buffer_2 | undefined>;
498498

499499
/**
500-
* Generates a text file from an Excel table.
500+
* Generates a text file from an Excel table Object.
501501
* @param {ExcelTable} excelTable - The Excel table.
502502
* @param {boolean} [asZip=false] - Whether to generate the text file as a ZIP file.
503-
* @returns {Promise<Blob>} The generated text file.
503+
* @returns {Promise<string[] | "done" | undefined>} The generated text file.
504504
*/
505505
export declare function generateText(excelTable: ExcelTable, asZip?: boolean): Promise<string[] | "done" | undefined>;
506506

@@ -891,7 +891,7 @@ declare interface SideBySide {
891891
/**
892892
* Generates an Excel file with side-by-side data.
893893
* @param {SideBySide[][]} data - The side-by-side data.
894-
* @returns {Promise<ExcelTable>} The generated Excel table.
894+
* @returns {Promise<string | number[] | Blob | DataModel.Buffer | undefined>} The generated Excel table.
895895
*/
896896
export declare function sideBySideLineByLine(data: SideBySide[][]): Promise<string | number[] | DataModel.Buffer | Blob | undefined>;
897897

@@ -1021,7 +1021,7 @@ declare type StyleType = "conditionalFormatting" | "CF" | "headerFooter" | "HF";
10211021
* Generates an Excel file with a theme.
10221022
* @param {ExcelTable | Data[] | Data[][]} data - The data for the Excel file.
10231023
* @param {ThemeOption} [option] - The theme options.
1024-
* @returns {Promise<ExcelTable>} The generated Excel table.
1024+
* @returns {Promise<string | number[] | Blob | DataModel.Buffer | undefined>} The generated Excel table.
10251025
*/
10261026
export declare function themeBaseGenerate(data: ExcelTable | Data[] | Data[][], option?: ThemeOption): Promise<string | number[] | DataModel.Buffer | Blob | undefined>;
10271027

0 commit comments

Comments
 (0)