Skip to content

V7.0.1 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## Version 7.0.1 (2025-03-13)

### Bug Fixes

- Related to formating. (more info-PR)[https://github.com/mohammadrezaeicode/mr-excel-repo/pull/5/] (by [Sergio Fernández](https://github.com/xergiodf))
- Data range error.

## Version 7.0.0 (2025-02-16)

### New Features
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7289,6 +7289,13 @@ To migrate from Version 2 to Version 3, you need to follow the steps below:

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

### Version 7.0.1 (2025-03-13)

#### Bug Fixes

- Related to formating. (more info-PR)[https://github.com/mohammadrezaeicode/mr-excel-repo/pull/5/] (by [Sergio Fernández](https://github.com/xergiodf))
- Data range error.

### Version 7.0.0 (2025-02-16)

#### New Features
Expand Down
18 changes: 3 additions & 15 deletions change-log
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
## Version 7.0.0 (2025-02-16)

### New Features

- A drop-down option (multi-select option) provides the ability to create a cell that contains multiple selectable values.`sheet`->`[n]`->`dropDowns`
- The `replaceInExcel` functionality in Excel allows you to replace data in an existing file using flags provided within the spreadsheet.
## Version 7.0.1 (2025-03-13)

### Bug Fixes

- `generateExcel` supports empty objects and will generate an empty Excel file.

> [!NOTE]
> The related interface has not changed, so the sheet needs to be provided in TypeScript.

### Improvements

- Begin adding JSDoc comments to the main functions and interfaces.

- Related to formating. (more info-PR)[https://github.com/mohammadrezaeicode/mr-excel-repo/pull/5/] (by [Sergio Fernández](https://github.com/xergiodf))
- Data range error.

2 changes: 1 addition & 1 deletion dist/excel-table.amd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/excel-table.cjs
Original file line number Diff line number Diff line change
@@ -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;
"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;
20 changes: 10 additions & 10 deletions dist/excel-table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ declare type ConditionalFormattingTopOperation = "belowAverage" | "aboveAverage"
* @param {boolean} [config.keepStyle] - Whether to keep the style.
* @param {RowHeightScaleFunction} [config.rowHeightScaleFunction] - The function to scale row height.
* @param {ColWidthScaleFunction} [config.colWidthScaleFunction] - The function to scale column width.
* @returns {Promise<ExcelTable>} The generated Excel table.
* @returns {Promise<string | number[] | Blob | DataModel.Buffer | undefined>} The generated Excel table.
*/
export declare function convertTableToExcel(queryForTable?: string, table?: HTMLTableElement, config?: {
keepStyle?: boolean;
Expand Down Expand Up @@ -396,8 +396,8 @@ export declare function excelToJson(uri: string, fetchFunc?: Function, withHeade
* @param {string} uri - The URI of the Excel file.
* @param {string | null} [queryForTable] - The query selector for the table.
* @param {HTMLDivElement | null} [containerElement] - The container element.
* @param {ExcelToNodeConfig} [config={}] - The configuration options.
* @returns {Promise<void>} The result of the conversion.
* @param {ExcelToNodeConfig} [config=defaultConfig] - The configuration options.
* @returns {Promise<HTMLTableElement[] | "Done">} The result of the conversion.
*/
export declare function excelToNode(uri: string, queryForTable?: string | null, containerElement?: HTMLDivElement | null, config?: ExcelToNodeConfig): Promise<HTMLTableElement[] | "Done">;

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

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

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

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

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

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

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

Expand Down
Loading