Skip to content

Commit 891b6cc

Browse files
author
m.r
committed
V 5.3.0
1 parent 74ddfbf commit 891b6cc

File tree

10 files changed

+40
-24
lines changed

10 files changed

+40
-24
lines changed

CHANGELOG.md

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

3+
## Version 5.3.0 (2024-06-21)
4+
5+
### New Feature
6+
7+
- feat: add new dollar format (by [Sergio Fernández](https://github.com/xergiodf))
8+
39
## Version 5.2.0 (2024-02-08)
410

511
### New Features

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -8468,6 +8468,12 @@ To migrate from Version 2 to Version 3, you need to follow the steps below:
84688468

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

8471+
## Version 5.3.0 (2024-06-21)
8472+
8473+
### New Feature
8474+
8475+
- feat: add new dollar format (by [Sergio Fernández](https://github.com/xergiodf))
8476+
84718477
## Version 5.2.0 (2024-02-08)
84728478

84738479
### New Features

change-log

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
## Version 5.2.0 (2024-02-08)
1+
# Changelog
22

3-
### New Features
3+
## Version 5.3.0 (2024-06-21)
44

5-
- `generateCSV` & `generateText` functions create files in different formats, namely .csv and .txt
5+
### New Feature
6+
7+
- feat: add new dollar format (by [Sergio Fernández](https://github.com/xergiodf))

dist/excel-table.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,10 @@ const Pt = {
564564
key: 182,
565565
value: '<numFmt numFmtId="182" formatCode="0.0000" />'
566566
},
567+
dollar_rounded: {
568+
key: 183,
569+
value: '<numFmt numFmtId="183" formatCode="&quot;$&quot;#,##0" />'
570+
},
567571
dollar_2: {
568572
key: 183,
569573
value: '<numFmt numFmtId="183" formatCode="&quot;$&quot;#,##0.00" />'

dist/excel-table.umd.js

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

example/CDN/generateExcel/ex5.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
},
9292
'Long Number Column 1': {
9393
...rowStyle,
94-
format: 'dollar_2',
94+
format: 'dollar_rounded',
9595
alignment: {
9696
indent: 3,
9797
rtl: true,

package-lock.json

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

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mr-excel",
3-
"version": "5.2.0",
3+
"version": "5.3.0",
44
"main": "dist/excel-table.mjs",
55
"types": "dist/excel-table.d.ts",
66
"scripts": {

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { themeGenerator } from "./themes/theme";
1+
import { themeGenerator } from "./Themes/theme";
22
import type {
33
Data,
44
ExcelTable,

tsconfig.json

+13-15
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"include": [
3-
"./src/**/*.ts"
4-
],
2+
"include": ["./src/**/*.ts"],
53
"compilerOptions": {
64
/* Visit https://aka.ms/tsconfig to read more about this file */
75

@@ -14,7 +12,7 @@
1412
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1513

1614
/* Language and Environment */
17-
"target": "ES6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15+
"target": "ES6" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
1816
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1917
// "jsx": "preserve", /* Specify what JSX code is generated. */
2018
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
@@ -28,8 +26,8 @@
2826
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
2927

3028
/* Modules */
31-
"module": "commonjs", /* Specify what module code is generated. */
32-
"rootDir": "./", /* Specify the root folder within your source files. */
29+
"module": "commonjs" /* Specify what module code is generated. */,
30+
"rootDir": "./" /* Specify the root folder within your source files. */,
3331
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
3432
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3533
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
@@ -42,7 +40,7 @@
4240
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4341
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4442
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
45-
"resolveJsonModule": true, /* Enable importing .json files. */
43+
"resolveJsonModule": true /* Enable importing .json files. */,
4644
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
4745
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
4846

@@ -52,13 +50,13 @@
5250
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
5351

5452
/* Emit */
55-
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
56-
"declarationMap": true, /* Create sourcemaps for d.ts files. */
53+
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
54+
"declarationMap": true /* Create sourcemaps for d.ts files. */,
5755
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
58-
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
56+
"sourceMap": true /* Create source map files for emitted JavaScript files. */,
5957
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
6058
// "outFile": "./build", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
61-
"outDir": "./build", /* Specify an output folder for all emitted files. */
59+
"outDir": "./build" /* Specify an output folder for all emitted files. */,
6260
// "removeComments": true, /* Disable emitting comments. */
6361
// "noEmit": true, /* Disable emitting files from a compilation. */
6462
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
@@ -80,12 +78,12 @@
8078
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
8179
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
8280
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
83-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
81+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
8482
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
85-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
83+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
8684

8785
/* Type Checking */
88-
"strict": true, /* Enable all strict type-checking options. */
86+
"strict": true /* Enable all strict type-checking options. */,
8987
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
9088
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
9189
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
@@ -107,6 +105,6 @@
107105

108106
/* Completeness */
109107
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
110-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
108+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
111109
}
112110
}

0 commit comments

Comments
 (0)