Skip to content

Commit

Permalink
V 5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
m.r committed Jun 21, 2024
1 parent 74ddfbf commit 891b6cc
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 24 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Version 5.3.0 (2024-06-21)

### New Feature

- feat: add new dollar format (by [Sergio Fernández](https://github.com/xergiodf))

## Version 5.2.0 (2024-02-08)

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

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

## Version 5.3.0 (2024-06-21)

### New Feature

- feat: add new dollar format (by [Sergio Fernández](https://github.com/xergiodf))

## Version 5.2.0 (2024-02-08)

### New Features
Expand Down
8 changes: 5 additions & 3 deletions change-log
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Version 5.2.0 (2024-02-08)
# Changelog

### New Features
## Version 5.3.0 (2024-06-21)

- `generateCSV` & `generateText` functions create files in different formats, namely .csv and .txt
### New Feature

- feat: add new dollar format (by [Sergio Fernández](https://github.com/xergiodf))
4 changes: 4 additions & 0 deletions dist/excel-table.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,10 @@ const Pt = {
key: 182,
value: '<numFmt numFmtId="182" formatCode="0.0000" />'
},
dollar_rounded: {
key: 183,
value: '<numFmt numFmtId="183" formatCode="&quot;$&quot;#,##0" />'
},
dollar_2: {
key: 183,
value: '<numFmt numFmtId="183" formatCode="&quot;$&quot;#,##0.00" />'
Expand Down
2 changes: 1 addition & 1 deletion dist/excel-table.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/CDN/generateExcel/ex5.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
},
'Long Number Column 1': {
...rowStyle,
format: 'dollar_2',
format: 'dollar_rounded',
alignment: {
indent: 3,
rtl: true,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mr-excel",
"version": "5.2.0",
"version": "5.3.0",
"main": "dist/excel-table.mjs",
"types": "dist/excel-table.d.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { themeGenerator } from "./themes/theme";
import { themeGenerator } from "./Themes/theme";
import type {
Data,
ExcelTable,
Expand Down
28 changes: 13 additions & 15 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"include": [
"./src/**/*.ts"
],
"include": ["./src/**/*.ts"],
"compilerOptions": {
/* Visit https://aka.ms/tsconfig to read more about this file */

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

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

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

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

/* Emit */
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
"declarationMap": true, /* Create sourcemaps for d.ts files. */
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
"declarationMap": true /* Create sourcemaps for d.ts files. */,
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
"sourceMap": true /* Create source map files for emitted JavaScript files. */,
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
// "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. */
"outDir": "./build", /* Specify an output folder for all emitted files. */
"outDir": "./build" /* Specify an output folder for all emitted files. */,
// "removeComments": true, /* Disable emitting comments. */
// "noEmit": true, /* Disable emitting files from a compilation. */
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
Expand All @@ -80,12 +78,12 @@
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
// "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. */
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,

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

/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
}
}

0 comments on commit 891b6cc

Please sign in to comment.