Skip to content

Commit

Permalink
V 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
m.r committed Jan 29, 2024
1 parent 7d4460e commit 48d4124
Show file tree
Hide file tree
Showing 227 changed files with 93,690 additions and 60,830 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
publish:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- name: Checkout to code
uses: actions/checkout@v4
- name: install Node js Version 20.x
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- name: publish to npm
run: npm publish
env:
NODE_AUTH_TOCKEN: ${{secrets.NPM_TOKEN}}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules
coverage
coverage
build/*
compile/*
TODO.md
5 changes: 4 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
example
_test_
_test_
coverage
.github
*.backup
32 changes: 31 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
# Changelog

## Version 4.0.0 (2023-1-6)
## Version 5.0.0 (2024-01-28)

### New Features

- **`New Function`**
- `addGlobalOptions`: This function stores options, and by passing a defined key to `generateExcel`, the options will be applied.
- `Validator Functions`: This function is experimental and not yet complete. It is intended for validating the `ExcelData` object.
- **`New Property`**
- The `backgroundImage` property allows adding an image to the background.(Sheet propperty)
- `pageOption`: This property has the following capabilities:
- Define page margins.
- Add a header.
- Add a footer.
- Change from portrait to landscape orientation.
- `viewOption`: With this property, it is possible to:
- Change the workbook view.
- Hide the grid.
- Hide headlines.
- Hide the ruler.
- Enable frozen ability.
- Enable split ability.
- `rtl`: This will change the sheet direction to right-to-left.
- `pageBreak`: These properties help customize the page break line.
- `asTable`: The result will be generated as a table.

### Improvements

- Reduced the size of the main bundle from 431KB to 181KB.
- Reduced the overall package size.

## Version 4.0.0 (2024-1-6)

we have added the test and release packages. Additionally, we have addressed various issues, such as misspelling in the interface, problems with the extractExcelData function, shift top sheet problem (unit problem), and more.

Expand Down
36 changes: 36 additions & 0 deletions Example.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,39 @@
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex15.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex16.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex35.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex34.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex33.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex32.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex31.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex30.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex29.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex28.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex27.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex26.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex25.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex24.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex22.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex21.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex20.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex19.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex18.PNG?raw=true)

![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex17.PNG?raw=true)
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Mohammad Rezaei

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 48d4124

Please sign in to comment.