├── .browserslistrc
├── .editorconfig
├── .eslintrc.json
├── .github
├── dependabot.yml
└── workflows
│ └── codeql-analysis.yml
├── .gitignore
├── LICENSE
├── README.md
├── SECURITY.md
├── angular.json
├── e2e
├── protractor.conf.js
├── src
│ └── app.po.ts
└── tsconfig.e2e.json
├── package-lock.json
├── package.json
├── src
├── app
│ ├── app-routing.module.ts
│ ├── app.component.html
│ ├── app.component.scss
│ ├── app.component.spec.ts
│ ├── app.component.ts
│ ├── app.module.ts
│ ├── model
│ │ ├── column.ts
│ │ └── matrix.ts
│ └── pivot
│ │ ├── change-notification.service.spec.ts
│ │ ├── change-notification.service.ts
│ │ ├── pivot-table
│ │ ├── pivot-table.component.html
│ │ ├── pivot-table.component.scss
│ │ ├── pivot-table.component.spec.ts
│ │ └── pivot-table.component.ts
│ │ ├── pivot.component.html
│ │ ├── pivot.component.scss
│ │ ├── pivot.component.spec.ts
│ │ └── pivot.component.ts
├── assets
│ └── .gitkeep
├── environments
│ ├── environment.prod.ts
│ └── environment.ts
├── favicon.ico
├── index.html
├── karma.conf.js
├── main.ts
├── polyfills.ts
├── styles.scss
├── test.ts
├── tsconfig.app.json
└── tsconfig.spec.json
└── tsconfig.json
/.browserslistrc:
--------------------------------------------------------------------------------
1 | # This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
2 | # For additional information regarding the format and rule options, please see:
3 | # https://github.com/browserslist/browserslist#queries
4 | #
5 | # For IE 9-11 support, please remove 'not' from the last line of the file and adjust as needed
6 |
7 | > 0.5%
8 | last 2 versions
9 | Firefox ESR
10 | not dead
11 | not IE 9-11
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # Editor configuration, see http://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | indent_style = space
7 | indent_size = 2
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | max_line_length = off
13 | trim_trailing_whitespace = false
14 |
--------------------------------------------------------------------------------
/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 | "ignorePatterns": [
4 | "projects/**/*"
5 | ],
6 | "overrides": [
7 | {
8 | "files": [
9 | "*.ts"
10 | ],
11 | "parserOptions": {
12 | "project": [
13 | "tsconfig.json"
14 | ],
15 | "createDefaultProgram": true
16 | },
17 | "extends": [
18 | "plugin:@angular-eslint/recommended",
19 | "plugin:@angular-eslint/template/process-inline-templates"
20 | ],
21 | "rules": {
22 | "@angular-eslint/directive-selector": [
23 | "error",
24 | {
25 | "type": "attribute",
26 | "prefix": "app",
27 | "style": "camelCase"
28 | }
29 | ],
30 | "@angular-eslint/component-selector": [
31 | "error",
32 | {
33 | "type": "element",
34 | "prefix": "app",
35 | "style": "kebab-case"
36 | }
37 | ]
38 | }
39 | },
40 | {
41 | "files": [
42 | "*.html"
43 | ],
44 | "extends": [
45 | "plugin:@angular-eslint/template/recommended"
46 | ],
47 | "rules": {}
48 | }
49 | ]
50 | }
51 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 | updates:
3 | - package-ecosystem: "github-actions"
4 | directory: "/"
5 | schedule:
6 | interval: "daily"
7 |
8 | - package-ecosystem: "npm"
9 | directory: "/"
10 | schedule:
11 | interval: "daily"
12 |
--------------------------------------------------------------------------------
/.github/workflows/codeql-analysis.yml:
--------------------------------------------------------------------------------
1 | # For most projects, this workflow file will not need changing; you simply need
2 | # to commit it to your repository.
3 | #
4 | # You may wish to alter this file to override the set of languages analyzed,
5 | # or to provide custom queries or build logic.
6 | #
7 | # ******** NOTE ********
8 | # We have attempted to detect the languages in your repository. Please check
9 | # the `language` matrix defined below to confirm you have the correct set of
10 | # supported CodeQL languages.
11 | #
12 | name: "CodeQL"
13 |
14 | on:
15 | push:
16 | branches: [ main ]
17 | pull_request:
18 | # The branches below must be a subset of the branches above
19 | branches: [ main ]
20 | schedule:
21 | - cron: '40 17 * * 3'
22 |
23 | jobs:
24 | analyze:
25 | name: Analyze
26 | runs-on: ubuntu-latest
27 |
28 | strategy:
29 | fail-fast: false
30 | matrix:
31 | language: [ 'javascript' ]
32 | # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33 | # Learn more:
34 | # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35 |
36 | steps:
37 | - name: Checkout repository
38 | uses: actions/checkout@v4
39 |
40 | # Initializes the CodeQL tools for scanning.
41 | - name: Initialize CodeQL
42 | uses: github/codeql-action/init@v3
43 | with:
44 | languages: ${{ matrix.language }}
45 | # If you wish to specify custom queries, you can do so here or in a config file.
46 | # By default, queries listed here will override any specified in a config file.
47 | # Prefix the list here with "+" to use these queries and those in the config file.
48 | # queries: ./path/to/local/query, your-org/your-repo/queries@main
49 |
50 | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51 | # If this step fails, then you should remove it and run the build manually (see below)
52 | - name: Autobuild
53 | uses: github/codeql-action/autobuild@v3
54 |
55 | # ℹ️ Command-line programs to run using the OS shell.
56 | # 📚 https://git.io/JvXDl
57 |
58 | # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59 | # and modify them (or add more) to build your code if your project
60 | # uses a compiled language
61 |
62 | #- run: |
63 | # make bootstrap
64 | # make release
65 |
66 | - name: Perform CodeQL Analysis
67 | uses: github/codeql-action/analyze@v3
68 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # compiled output
4 | /dist
5 | /tmp
6 | /out-tsc
7 |
8 | # dependencies
9 | /node_modules
10 |
11 | # IDEs and editors
12 | /.idea
13 | .project
14 | .classpath
15 | .c9/
16 | *.launch
17 | .settings/
18 | *.sublime-workspace
19 | *.iml
20 |
21 | # IDE - VSCode
22 | .vscode/*
23 | !.vscode/settings.json
24 | !.vscode/tasks.json
25 | !.vscode/launch.json
26 | !.vscode/extensions.json
27 |
28 | # misc
29 | /.angular/cache
30 | /.sass-cache
31 | /connect.lock
32 | /coverage
33 | /libpeerconnection.log
34 | npm-debug.log
35 | yarn-error.log
36 | testem.log
37 | /typings
38 |
39 | # System Files
40 | .DS_Store
41 | Thumbs.db
42 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PivotHelper
2 |
3 | [](https://opensource.org/licenses/Apache-2.0)
4 | 
5 |
6 | **PivotHelper** is a utility web app that generates Pivot tables and charts from CSV files and [Microsoft Excel](https://products.office.com/en/excel) spreadsheets.
7 |
8 | ## Usage
9 |
10 | Go to https://bjoernkw.github.io/PivotHelper/ .
11 |
12 | ## Development
13 |
14 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.0.2.
15 |
16 | ### Development server
17 |
18 | Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
19 |
20 | ### Build
21 |
22 | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
23 |
24 | ### Running unit tests
25 |
26 | Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
27 |
28 | ## Built With
29 |
30 | * [Angular](https://angular.io/)
31 | * [Bootstrap](https://getbootstrap.com)
32 | * [C3.js](https://c3js.org/)
33 | * JavaScript
34 | * [PivotTable.js](https://pivottable.js.org/examples/)
35 | * [PrimeNG](https://www.primefaces.org/primeng/#/)
36 | * [SheetJS](https://sheetjs.com/)
37 |
38 | ## License
39 |
40 | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)
41 |
42 | ## Authors
43 |
44 | * **[Björn Wilmsmann](https://bjoernkw.com)**
45 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | Currently, only the latest version will receive security updates.
6 |
7 | ## Reporting a Vulnerability
8 |
9 | You can get in touch by writing an email to bjoern@bjoernkw.com
10 |
--------------------------------------------------------------------------------
/angular.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3 | "version": 1,
4 | "newProjectRoot": "projects",
5 | "projects": {
6 | "PivotHelper": {
7 | "root": "",
8 | "sourceRoot": "src",
9 | "projectType": "application",
10 | "prefix": "app",
11 | "schematics": {
12 | "@schematics/angular:component": {
13 | "style": "scss"
14 | }
15 | },
16 | "architect": {
17 | "build": {
18 | "builder": "@angular-devkit/build-angular:browser",
19 | "options": {
20 | "outputPath": "dist/PivotHelper",
21 | "index": "src/index.html",
22 | "main": "src/main.ts",
23 | "polyfills": "src/polyfills.ts",
24 | "tsConfig": "src/tsconfig.app.json",
25 | "assets": [
26 | "src/favicon.ico",
27 | "src/assets"
28 | ],
29 | "styles": [
30 | "node_modules/bootstrap/dist/css/bootstrap.min.css",
31 | "node_modules/primeicons/primeicons.css",
32 | "node_modules/primeng/resources/themes/saga-blue/theme.css",
33 | "node_modules/primeng/resources/primeng.min.css",
34 | "node_modules/c3/c3.min.css",
35 | "node_modules/pivottable/dist/pivot.css",
36 | "src/styles.scss"
37 | ],
38 | "scripts": [
39 | "node_modules/d3/dist/d3.min.js",
40 | "node_modules/c3/c3.min.js",
41 | "node_modules/jquery/dist/jquery.min.js",
42 | "node_modules/jquery-ui-dist/jquery-ui.min.js",
43 | "node_modules/pivottable/dist/pivot.min.js",
44 | "node_modules/pivottable/dist/c3_renderers.min.js",
45 | "node_modules/save-svg-as-png/lib/saveSvgAsPng.js"
46 | ],
47 | "allowedCommonJsDependencies": [
48 | "xlsx",
49 | "chart.js"
50 | ],
51 | "vendorChunk": true,
52 | "extractLicenses": false,
53 | "buildOptimizer": false,
54 | "sourceMap": true,
55 | "optimization": false,
56 | "namedChunks": true
57 | },
58 | "configurations": {
59 | "production": {
60 | "fileReplacements": [
61 | {
62 | "replace": "src/environments/environment.ts",
63 | "with": "src/environments/environment.prod.ts"
64 | }
65 | ],
66 | "optimization": true,
67 | "outputHashing": "all",
68 | "sourceMap": false,
69 | "namedChunks": false,
70 | "extractLicenses": true,
71 | "vendorChunk": false,
72 | "buildOptimizer": true,
73 | "aot": true,
74 | "budgets": [
75 | {
76 | "type": "initial",
77 | "maximumWarning": "2mb",
78 | "maximumError": "5mb"
79 | },
80 | {
81 | "type": "anyComponentStyle",
82 | "maximumWarning": "6kb"
83 | }
84 | ]
85 | }
86 | }
87 | },
88 | "serve": {
89 | "builder": "@angular-devkit/build-angular:dev-server",
90 | "options": {
91 | "browserTarget": "PivotHelper:build"
92 | },
93 | "configurations": {
94 | "production": {
95 | "browserTarget": "PivotHelper:build:production"
96 | }
97 | }
98 | },
99 | "extract-i18n": {
100 | "builder": "@angular-devkit/build-angular:extract-i18n",
101 | "options": {
102 | "browserTarget": "PivotHelper:build"
103 | }
104 | },
105 | "test": {
106 | "builder": "@angular-devkit/build-angular:karma",
107 | "options": {
108 | "main": "src/test.ts",
109 | "polyfills": "src/polyfills.ts",
110 | "tsConfig": "src/tsconfig.spec.json",
111 | "karmaConfig": "src/karma.conf.js",
112 | "styles": [
113 | "src/styles.scss"
114 | ],
115 | "scripts": [
116 | "node_modules/d3/dist/d3.min.js",
117 | "node_modules/c3/c3.min.js",
118 | "node_modules/jquery/dist/jquery.min.js",
119 | "node_modules/jquery-ui-dist/jquery-ui.min.js",
120 | "node_modules/pivottable/dist/pivot.min.js",
121 | "node_modules/pivottable/dist/c3_renderers.min.js"
122 | ],
123 | "assets": [
124 | "src/favicon.ico",
125 | "src/assets"
126 | ]
127 | }
128 | },
129 | "lint": {
130 | "builder": "@angular-eslint/builder:lint",
131 | "options": {
132 | "lintFilePatterns": [
133 | "src/**/*.ts",
134 | "src/**/*.html"
135 | ]
136 | }
137 | }
138 | }
139 | }
140 | },
141 | "cli": {
142 | "schematicCollections": [
143 | "@angular-eslint/schematics"
144 | ]
145 | },
146 | "schematics": {
147 | "@angular-eslint/schematics:application": {
148 | "setParserOptionsProject": true
149 | },
150 | "@angular-eslint/schematics:library": {
151 | "setParserOptionsProject": true
152 | }
153 | }
154 | }
155 |
--------------------------------------------------------------------------------
/e2e/protractor.conf.js:
--------------------------------------------------------------------------------
1 | // Protractor configuration file, see link for more information
2 | // https://github.com/angular/protractor/blob/master/lib/config.ts
3 |
4 | const { SpecReporter } = require('jasmine-spec-reporter');
5 |
6 | exports.config = {
7 | allScriptsTimeout: 11000,
8 | specs: [
9 | './src/**/*.e2e-spec.ts'
10 | ],
11 | capabilities: {
12 | 'browserName': 'chrome'
13 | },
14 | directConnect: true,
15 | baseUrl: 'http://localhost:4200/',
16 | framework: 'jasmine',
17 | jasmineNodeOpts: {
18 | showColors: true,
19 | defaultTimeoutInterval: 30000,
20 | print: function() {}
21 | },
22 | onPrepare() {
23 | require('ts-node').register({
24 | project: require('path').join(__dirname, './tsconfig.e2e.json')
25 | });
26 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
27 | }
28 | };
--------------------------------------------------------------------------------
/e2e/src/app.po.ts:
--------------------------------------------------------------------------------
1 | import { browser, by, element } from 'protractor';
2 |
3 | export class AppPage {
4 | navigateTo() {
5 | return browser.get('/');
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/e2e/tsconfig.e2e.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../out-tsc/app",
5 | "module": "commonjs",
6 | "target": "es5",
7 | "types": [
8 | "jasmine",
9 | "jasminewd2",
10 | "node"
11 | ]
12 | }
13 | }
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pivot-helper",
3 | "version": "0.1.0",
4 | "scripts": {
5 | "ng": "ng",
6 | "start": "ng serve",
7 | "build": "ng build",
8 | "test": "ng test",
9 | "lint": "ng lint",
10 | "e2e": "ng e2e",
11 | "preinstall": "npx npm-force-resolutions"
12 | },
13 | "private": true,
14 | "resolutions": {
15 | "json-schema": "0.4.0",
16 | "jszip": "3.7.1",
17 | "quill": "2.0.3",
18 | "ini": "2.0.0"
19 | },
20 | "dependencies": {
21 | "@angular/animations": "^19.1.5",
22 | "@angular/cdk": "^19.1.3",
23 | "@angular/common": "^19.1.5",
24 | "@angular/compiler": "^19.1.5",
25 | "@angular/core": "^19.1.5",
26 | "@angular/forms": "^19.1.5",
27 | "@angular/platform-browser": "^19.1.5",
28 | "@angular/platform-browser-dynamic": "^19.1.5",
29 | "@angular/router": "^19.1.5",
30 | "@fullcalendar/core": "^6.1.15",
31 | "bootstrap": "^5.3.3",
32 | "c3": "^0.7.20",
33 | "chart.js": "^4.4.7",
34 | "core-js": "^3.40.0",
35 | "jquery": "^3.7.1",
36 | "jquery-ui-dist": "^1.13.3",
37 | "pivottable": "^2.23.0",
38 | "popper.js": "^1.16.1",
39 | "primeicons": "^7.0.0",
40 | "primeng": "^19.0.6",
41 | "quill": "^2.0.3",
42 | "rxjs": "~7.8.1",
43 | "save-svg-as-png": "^1.4.17",
44 | "tslib": "^2.8.1",
45 | "xlsx": "^0.18.5",
46 | "zone.js": "~0.15.0"
47 | },
48 | "devDependencies": {
49 | "@angular-devkit/build-angular": "^19.1.6",
50 | "@angular-eslint/builder": "19.0.2",
51 | "@angular-eslint/eslint-plugin": "19.0.2",
52 | "@angular-eslint/eslint-plugin-template": "19.0.2",
53 | "@angular-eslint/schematics": "19.0.2",
54 | "@angular-eslint/template-parser": "19.0.2",
55 | "@angular/cli": "^19.1.6",
56 | "@angular/compiler-cli": "^19.1.5",
57 | "@angular/language-service": "^19.1.5",
58 | "@types/jasmine": "~5.1.5",
59 | "@types/jasminewd2": "~2.0.13",
60 | "@types/node": "^22.13.1",
61 | "@typescript-eslint/eslint-plugin": "^8.23.0",
62 | "@typescript-eslint/parser": "^8.23.0",
63 | "ajv-keywords": "^5.1.0",
64 | "angular-cli-ghpages": "^2.0.3",
65 | "codelyzer": "^6.0.2",
66 | "eslint": "^9.20.0",
67 | "jasmine-core": "~5.6.0",
68 | "jasmine-spec-reporter": "~7.0.0",
69 | "karma": "~6.4.4",
70 | "karma-chrome-launcher": "~3.2.0",
71 | "karma-coverage-istanbul-reporter": "~3.0.3",
72 | "karma-jasmine": "~5.1.0",
73 | "karma-jasmine-html-reporter": "^2.1.0",
74 | "npm-check-updates": "^17.1.14",
75 | "npm-force-resolutions": "^0.0.10",
76 | "protractor": "~7.0.0",
77 | "ts-node": "~10.9.2",
78 | "typescript": "~5.7.3"
79 | }
80 | }
--------------------------------------------------------------------------------
/src/app/app-routing.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from '@angular/core';
2 | import { Routes, RouterModule, PreloadAllModules } from '@angular/router';
3 | import { PivotComponent } from './pivot/pivot.component';
4 |
5 | const routes: Routes = [
6 | {
7 | path: '',
8 | component: PivotComponent
9 | }
10 | ];
11 |
12 | @NgModule({
13 | imports: [RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })],
14 | exports: [RouterModule]
15 | })
16 | export class AppRoutingModule { }
17 |
--------------------------------------------------------------------------------
/src/app/app.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
PivotHelper
7 |
8 | PivotHelper is a utility web app that generates Pivot tables and charts from CSV files and
9 | Microsoft Excel spreadsheets.
10 |