From 13eb957c46271eada1976a10b75eb50070420fd6 Mon Sep 17 00:00:00 2001
From: MiguelPelegrina <95084406+MiguelPelegrina@users.noreply.github.com>
Date: Mon, 22 Apr 2024 14:44:16 +0200
Subject: [PATCH] implemented generating an pdf from an existing order
---
package-lock.json | 29 ++++++++++--
package.json | 3 ++
.../list-order/list-order.component.html | 9 +++-
.../order/list-order/list-order.component.ts | 18 +++++++
src/app/services/order/order.service.ts | 47 ++++++++++++++++++-
5 files changed, 100 insertions(+), 6 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index ba485ee..2662266 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,6 +19,7 @@
"@angular/platform-browser-dynamic": "^16.0.0",
"@angular/router": "^16.0.0",
"bootstrap": "^5.3.2",
+ "chart.js": "^4.4.2",
"flatted": "^3.2.9",
"jwt-decode": "^4.0.0",
"moment": "^2.30.1",
@@ -27,6 +28,7 @@
"rxjs": "~7.8.0",
"sweetalert2": "^11.10.7",
"tslib": "^2.3.0",
+ "uuid": "^9.0.1",
"xlsx": "^0.18.5",
"zone.js": "~0.13.0"
},
@@ -35,6 +37,7 @@
"@angular/cli": "~16.0.1",
"@angular/compiler-cli": "^16.0.0",
"@types/jasmine": "~4.3.0",
+ "@types/uuid": "^9.0.8",
"jasmine-core": "~4.6.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
@@ -4553,6 +4556,12 @@
"@types/node": "*"
}
},
+ "node_modules/@types/uuid": {
+ "version": "9.0.8",
+ "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz",
+ "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==",
+ "dev": true
+ },
"node_modules/@types/ws": {
"version": "8.5.10",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.10.tgz",
@@ -12288,6 +12297,15 @@
"websocket-driver": "^0.7.4"
}
},
+ "node_modules/sockjs/node_modules/uuid": {
+ "version": "8.3.2",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
+ "dev": true,
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
"node_modules/socks": {
"version": "2.7.1",
"resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz",
@@ -13240,10 +13258,13 @@
}
},
"node_modules/uuid": {
- "version": "8.3.2",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
- "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
- "dev": true,
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
+ "funding": [
+ "https://github.com/sponsors/broofa",
+ "https://github.com/sponsors/ctavan"
+ ],
"bin": {
"uuid": "dist/bin/uuid"
}
diff --git a/package.json b/package.json
index 696487a..d265f1c 100644
--- a/package.json
+++ b/package.json
@@ -21,6 +21,7 @@
"@angular/platform-browser-dynamic": "^16.0.0",
"@angular/router": "^16.0.0",
"bootstrap": "^5.3.2",
+ "chart.js": "^4.4.2",
"flatted": "^3.2.9",
"jwt-decode": "^4.0.0",
"moment": "^2.30.1",
@@ -29,6 +30,7 @@
"rxjs": "~7.8.0",
"sweetalert2": "^11.10.7",
"tslib": "^2.3.0",
+ "uuid": "^9.0.1",
"xlsx": "^0.18.5",
"zone.js": "~0.13.0"
},
@@ -37,6 +39,7 @@
"@angular/cli": "~16.0.1",
"@angular/compiler-cli": "^16.0.0",
"@types/jasmine": "~4.3.0",
+ "@types/uuid": "^9.0.8",
"jasmine-core": "~4.6.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
diff --git a/src/app/components/order/list-order/list-order.component.html b/src/app/components/order/list-order/list-order.component.html
index 5f15129..4dc4206 100644
--- a/src/app/components/order/list-order/list-order.component.html
+++ b/src/app/components/order/list-order/list-order.component.html
@@ -105,10 +105,17 @@
List of orders
Actions |
+
+
- |