Skip to content

Commit 48d4124

Browse files
author
m.r
committed
V 5.0.0
1 parent 7d4460e commit 48d4124

File tree

227 files changed

+93690
-60830
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+93690
-60830
lines changed

.github/workflows/publish.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish Package to npmjs
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
publish:
7+
name: Publish to NPM
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout to code
11+
uses: actions/checkout@v4
12+
- name: install Node js Version 20.x
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: '20.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
- run: npm ci
18+
- name: publish to npm
19+
run: npm publish
20+
env:
21+
NODE_AUTH_TOCKEN: ${{secrets.NPM_TOKEN}}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
node_modules
2-
coverage
2+
coverage
3+
build/*
4+
compile/*
5+
TODO.md

.npmignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
example
2-
_test_
2+
_test_
3+
coverage
4+
.github
5+
*.backup

CHANGELOG.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
11
# Changelog
22

3-
## Version 4.0.0 (2023-1-6)
3+
## Version 5.0.0 (2024-01-28)
4+
5+
### New Features
6+
7+
- **`New Function`**
8+
- `addGlobalOptions`: This function stores options, and by passing a defined key to `generateExcel`, the options will be applied.
9+
- `Validator Functions`: This function is experimental and not yet complete. It is intended for validating the `ExcelData` object.
10+
- **`New Property`**
11+
- The `backgroundImage` property allows adding an image to the background.(Sheet propperty)
12+
- `pageOption`: This property has the following capabilities:
13+
- Define page margins.
14+
- Add a header.
15+
- Add a footer.
16+
- Change from portrait to landscape orientation.
17+
- `viewOption`: With this property, it is possible to:
18+
- Change the workbook view.
19+
- Hide the grid.
20+
- Hide headlines.
21+
- Hide the ruler.
22+
- Enable frozen ability.
23+
- Enable split ability.
24+
- `rtl`: This will change the sheet direction to right-to-left.
25+
- `pageBreak`: These properties help customize the page break line.
26+
- `asTable`: The result will be generated as a table.
27+
28+
### Improvements
29+
30+
- Reduced the size of the main bundle from 431KB to 181KB.
31+
- Reduced the overall package size.
32+
33+
## Version 4.0.0 (2024-1-6)
434

535
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.
636

Example.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,39 @@
3434
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex15.PNG?raw=true)
3535

3636
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex16.PNG?raw=true)
37+
38+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex35.PNG?raw=true)
39+
40+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex34.PNG?raw=true)
41+
42+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex33.PNG?raw=true)
43+
44+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex32.PNG?raw=true)
45+
46+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex31.PNG?raw=true)
47+
48+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex30.PNG?raw=true)
49+
50+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex29.PNG?raw=true)
51+
52+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex28.PNG?raw=true)
53+
54+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex27.PNG?raw=true)
55+
56+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex26.PNG?raw=true)
57+
58+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex25.PNG?raw=true)
59+
60+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex24.PNG?raw=true)
61+
62+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex22.PNG?raw=true)
63+
64+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex21.PNG?raw=true)
65+
66+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex20.PNG?raw=true)
67+
68+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex19.PNG?raw=true)
69+
70+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex18.PNG?raw=true)
71+
72+
![ex](https://github.com/mohammadrezaeicode/mr-excel-page-repo/blob/main/public/img/ex17.PNG?raw=true)

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Mohammad Rezaei
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)