From 2b707977ac332b86d972336b7e8f4d89ed752502 Mon Sep 17 00:00:00 2001 From: "aditya.chandel" <> Date: Sun, 29 Dec 2024 15:22:33 -0700 Subject: [PATCH] Checkpoint --- booklore-ui/package-lock.json | 85 ++- booklore-ui/package.json | 4 +- booklore-ui/src/app/app-routing.module.ts | 2 +- booklore-ui/src/app/app.module.ts | 11 +- .../books-browser.component.html | 4 +- .../books-browser.component.scss | 5 + .../layout/app.layout.component.html | 1 - .../component/layout/app.layout.component.ts | 2 - .../component/layout/app.layout.module.ts | 7 +- .../layout/app.topbar.component.html | 8 +- .../component/layout/app.topbar.component.ts | 6 +- .../layout/config/app.config.component.html | 242 --------- .../layout/config/app.config.component.ts | 115 ---- .../component/layout/config/config.module.ts | 27 - .../library-creator.component.html | 8 +- .../shelf-assigner.component.html | 2 +- .../app/book/model/state/app-state.model.ts | 9 + .../app/book/service/app-config.service.ts | 97 ++++ .../configurator/configurator.component.html | 1 + .../configurator/configurator.component.scss | 0 .../configurator/configurator.component.ts | 505 ++++++++++++++++++ .../assets/layout/images/themes/arya-blue.png | Bin 2987 -> 0 bytes .../layout/images/themes/arya-green.png | Bin 2965 -> 0 bytes .../layout/images/themes/arya-orange.png | Bin 2933 -> 0 bytes .../layout/images/themes/arya-purple.png | Bin 2912 -> 0 bytes .../images/themes/bootstrap4-dark-blue.svg | 4 - .../images/themes/bootstrap4-dark-purple.svg | 4 - .../images/themes/bootstrap4-light-blue.svg | 4 - .../images/themes/bootstrap4-light-purple.svg | 4 - .../layout/images/themes/fluent-light.png | Bin 19817 -> 0 bytes .../layout/images/themes/lara-dark-blue.png | Bin 2267 -> 0 bytes .../layout/images/themes/lara-dark-indigo.png | Bin 2321 -> 0 bytes .../layout/images/themes/lara-dark-purple.png | Bin 2287 -> 0 bytes .../layout/images/themes/lara-dark-teal.png | Bin 2334 -> 0 bytes .../layout/images/themes/lara-light-blue.png | Bin 1697 -> 0 bytes .../images/themes/lara-light-indigo.png | Bin 1746 -> 0 bytes .../images/themes/lara-light-purple.png | Bin 1671 -> 0 bytes .../layout/images/themes/lara-light-teal.png | Bin 1862 -> 0 bytes .../layout/images/themes/luna-amber.png | Bin 9788 -> 0 bytes .../assets/layout/images/themes/luna-blue.png | Bin 9751 -> 0 bytes .../layout/images/themes/luna-green.png | Bin 10066 -> 0 bytes .../assets/layout/images/themes/luna-pink.png | Bin 9694 -> 0 bytes .../images/themes/md-dark-deeppurple.svg | 9 - .../layout/images/themes/md-dark-indigo.svg | 9 - .../images/themes/md-light-deeppurple.svg | 9 - .../layout/images/themes/md-light-indigo.svg | 9 - .../assets/layout/images/themes/saga-blue.png | Bin 970 -> 0 bytes .../layout/images/themes/saga-green.png | Bin 991 -> 0 bytes .../layout/images/themes/saga-orange.png | Bin 943 -> 0 bytes .../layout/images/themes/saga-purple.png | Bin 1059 -> 0 bytes .../layout/images/themes/tailwind-light.png | Bin 3602 -> 0 bytes .../assets/layout/images/themes/vela-blue.png | Bin 1389 -> 0 bytes .../layout/images/themes/vela-green.png | Bin 1296 -> 0 bytes .../layout/images/themes/vela-orange.png | Bin 1520 -> 0 bytes .../layout/images/themes/vela-purple.png | Bin 1296 -> 0 bytes .../arya-blue/fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../arya-blue/fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../arya-green/fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../arya-green/fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../arya-orange/fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../arya-orange/fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../arya-purple/fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../arya-purple/fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/Inter-italic.var.woff2 | Bin 443547 -> 0 bytes .../fonts/Inter-roman.var.woff2 | Bin 410665 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-500.woff | Bin 52273 -> 0 bytes .../roboto-v20-latin-ext_latin-500.woff2 | Bin 41311 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-700.woff | Bin 52400 -> 0 bytes .../roboto-v20-latin-ext_latin-700.woff2 | Bin 41196 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff | Bin 52455 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff2 | Bin 41363 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-500.woff | Bin 52273 -> 0 bytes .../roboto-v20-latin-ext_latin-500.woff2 | Bin 41311 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-700.woff | Bin 52400 -> 0 bytes .../roboto-v20-latin-ext_latin-700.woff2 | Bin 41196 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff | Bin 52455 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff2 | Bin 41363 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-500.woff | Bin 52273 -> 0 bytes .../roboto-v20-latin-ext_latin-500.woff2 | Bin 41311 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-700.woff | Bin 52400 -> 0 bytes .../roboto-v20-latin-ext_latin-700.woff2 | Bin 41196 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff | Bin 52455 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff2 | Bin 41363 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-500.woff | Bin 52273 -> 0 bytes .../roboto-v20-latin-ext_latin-500.woff2 | Bin 41311 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-700.woff | Bin 52400 -> 0 bytes .../roboto-v20-latin-ext_latin-700.woff2 | Bin 41196 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff | Bin 52455 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff2 | Bin 41363 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-500.woff | Bin 52273 -> 0 bytes .../roboto-v20-latin-ext_latin-500.woff2 | Bin 41311 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-700.woff | Bin 52400 -> 0 bytes .../roboto-v20-latin-ext_latin-700.woff2 | Bin 41196 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff | Bin 52455 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff2 | Bin 41363 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-500.woff | Bin 52273 -> 0 bytes .../roboto-v20-latin-ext_latin-500.woff2 | Bin 41311 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-700.woff | Bin 52400 -> 0 bytes .../roboto-v20-latin-ext_latin-700.woff2 | Bin 41196 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff | Bin 52455 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff2 | Bin 41363 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-500.woff | Bin 52273 -> 0 bytes .../roboto-v20-latin-ext_latin-500.woff2 | Bin 41311 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-700.woff | Bin 52400 -> 0 bytes .../roboto-v20-latin-ext_latin-700.woff2 | Bin 41196 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff | Bin 52455 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff2 | Bin 41363 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-500.woff | Bin 52273 -> 0 bytes .../roboto-v20-latin-ext_latin-500.woff2 | Bin 41311 -> 0 bytes .../fonts/roboto-v20-latin-ext_latin-700.woff | Bin 52400 -> 0 bytes .../roboto-v20-latin-ext_latin-700.woff2 | Bin 41196 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff | Bin 52455 -> 0 bytes .../roboto-v20-latin-ext_latin-regular.woff2 | Bin 41363 -> 0 bytes .../styles/theme/mira/fonts/Inter-Bold.woff | Bin 273370 -> 0 bytes .../styles/theme/mira/fonts/Inter-Bold.woff2 | Bin 181518 -> 0 bytes .../styles/theme/mira/fonts/Inter-Medium.woff | Bin 270868 -> 0 bytes .../theme/mira/fonts/Inter-Medium.woff2 | Bin 179330 -> 0 bytes .../theme/mira/fonts/Inter-Regular.woff | Bin 327033 -> 0 bytes .../theme/mira/fonts/Inter-Regular.woff2 | Bin 196414 -> 0 bytes .../theme/mira/fonts/Inter-SemiBold.woff | Bin 342647 -> 0 bytes .../theme/mira/fonts/Inter-SemiBold.woff2 | Bin 206846 -> 0 bytes .../fonts/lato-v17-latin-ext_latin-300.woff | Bin 58000 -> 0 bytes .../fonts/lato-v17-latin-ext_latin-300.woff2 | Bin 44900 -> 0 bytes .../fonts/lato-v17-latin-ext_latin-700.woff | Bin 54515 -> 0 bytes .../fonts/lato-v17-latin-ext_latin-700.woff2 | Bin 44736 -> 0 bytes .../lato-v17-latin-ext_latin-regular.woff | Bin 55670 -> 0 bytes .../lato-v17-latin-ext_latin-regular.woff2 | Bin 45748 -> 0 bytes .../fonts/lato-v17-latin-ext_latin-300.woff | Bin 58000 -> 0 bytes .../fonts/lato-v17-latin-ext_latin-300.woff2 | Bin 44900 -> 0 bytes .../fonts/lato-v17-latin-ext_latin-700.woff | Bin 54515 -> 0 bytes .../fonts/lato-v17-latin-ext_latin-700.woff2 | Bin 44736 -> 0 bytes .../lato-v17-latin-ext_latin-regular.woff | Bin 55670 -> 0 bytes .../lato-v17-latin-ext_latin-regular.woff2 | Bin 45748 -> 0 bytes .../tailwind-light/fonts/Inter-Bold.woff | Bin 262559 -> 0 bytes .../tailwind-light/fonts/Inter-Bold.woff2 | Bin 192693 -> 0 bytes .../tailwind-light/fonts/Inter-Light.woff | Bin 257836 -> 0 bytes .../tailwind-light/fonts/Inter-Light.woff2 | Bin 188751 -> 0 bytes .../tailwind-light/fonts/Inter-Medium.woff | Bin 260969 -> 0 bytes .../tailwind-light/fonts/Inter-Medium.woff2 | Bin 191850 -> 0 bytes .../tailwind-light/fonts/Inter-Regular.woff | Bin 245644 -> 0 bytes .../tailwind-light/fonts/Inter-Regular.woff2 | Bin 178026 -> 0 bytes .../tailwind-light/fonts/Inter-SemiBold.woff | Bin 261958 -> 0 bytes .../tailwind-light/fonts/Inter-SemiBold.woff2 | Bin 191778 -> 0 bytes .../poppins-v15-latin-ext_latin-300.woff | Bin 25968 -> 0 bytes .../poppins-v15-latin-ext_latin-300.woff2 | Bin 19351 -> 0 bytes .../poppins-v15-latin-ext_latin-600.woff | Bin 26202 -> 0 bytes .../poppins-v15-latin-ext_latin-600.woff2 | Bin 19820 -> 0 bytes .../poppins-v15-latin-ext_latin-700.woff | Bin 25902 -> 0 bytes .../poppins-v15-latin-ext_latin-700.woff2 | Bin 19376 -> 0 bytes .../poppins-v15-latin-ext_latin-regular.woff | Bin 26066 -> 0 bytes .../poppins-v15-latin-ext_latin-regular.woff2 | Bin 19664 -> 0 bytes .../poppins-v15-latin-ext_latin-300.woff | Bin 25968 -> 0 bytes .../poppins-v15-latin-ext_latin-300.woff2 | Bin 19351 -> 0 bytes .../poppins-v15-latin-ext_latin-600.woff | Bin 26202 -> 0 bytes .../poppins-v15-latin-ext_latin-600.woff2 | Bin 19820 -> 0 bytes .../poppins-v15-latin-ext_latin-700.woff | Bin 25902 -> 0 bytes .../poppins-v15-latin-ext_latin-700.woff2 | Bin 19376 -> 0 bytes .../poppins-v15-latin-ext_latin-regular.woff | Bin 26066 -> 0 bytes .../poppins-v15-latin-ext_latin-regular.woff2 | Bin 19664 -> 0 bytes booklore-ui/src/assets/themes/themes.json | 41 -- booklore-ui/src/styles.scss | 7 - 231 files changed, 714 insertions(+), 527 deletions(-) delete mode 100644 booklore-ui/src/app/book/component/layout/config/app.config.component.html delete mode 100644 booklore-ui/src/app/book/component/layout/config/app.config.component.ts delete mode 100644 booklore-ui/src/app/book/component/layout/config/config.module.ts create mode 100644 booklore-ui/src/app/book/model/state/app-state.model.ts create mode 100644 booklore-ui/src/app/book/service/app-config.service.ts create mode 100644 booklore-ui/src/app/configurator/configurator.component.html create mode 100644 booklore-ui/src/app/configurator/configurator.component.scss create mode 100644 booklore-ui/src/app/configurator/configurator.component.ts delete mode 100644 booklore-ui/src/assets/layout/images/themes/arya-blue.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/arya-green.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/arya-orange.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/arya-purple.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/bootstrap4-dark-blue.svg delete mode 100644 booklore-ui/src/assets/layout/images/themes/bootstrap4-dark-purple.svg delete mode 100644 booklore-ui/src/assets/layout/images/themes/bootstrap4-light-blue.svg delete mode 100644 booklore-ui/src/assets/layout/images/themes/bootstrap4-light-purple.svg delete mode 100644 booklore-ui/src/assets/layout/images/themes/fluent-light.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/lara-dark-blue.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/lara-dark-indigo.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/lara-dark-purple.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/lara-dark-teal.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/lara-light-blue.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/lara-light-indigo.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/lara-light-purple.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/lara-light-teal.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/luna-amber.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/luna-blue.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/luna-green.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/luna-pink.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/md-dark-deeppurple.svg delete mode 100644 booklore-ui/src/assets/layout/images/themes/md-dark-indigo.svg delete mode 100644 booklore-ui/src/assets/layout/images/themes/md-light-deeppurple.svg delete mode 100644 booklore-ui/src/assets/layout/images/themes/md-light-indigo.svg delete mode 100644 booklore-ui/src/assets/layout/images/themes/saga-blue.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/saga-green.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/saga-orange.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/saga-purple.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/tailwind-light.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/vela-blue.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/vela-green.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/vela-orange.png delete mode 100644 booklore-ui/src/assets/layout/images/themes/vela-purple.png delete mode 100644 booklore-ui/src/assets/themes/themes.json diff --git a/booklore-ui/package-lock.json b/booklore-ui/package-lock.json index ec57557b7..8ab0f4904 100644 --- a/booklore-ui/package-lock.json +++ b/booklore-ui/package-lock.json @@ -17,14 +17,14 @@ "@angular/platform-browser-dynamic": "^19.0.0", "@angular/router": "^19.0.0", "@iharbeck/ngx-virtual-scroller": "^19.0.1", + "@primeng/themes": "19.0.2", "@stomp/rx-stomp": "^2.0.0", "@stomp/stompjs": "^7.0.0", "ng-lazyload-image": "^9.1.3", "ngx-extended-pdf-viewer": "^22.0.0", "ngx-infinite-scroll": "^19.0.0", - "primeflex": "^3.3.1", "primeicons": "^7.0.0", - "primeng": "^17.18.12", + "primeng": "19.0.2", "rxjs": "~7.8.0", "tslib": "^2.3.0", "ws": "^8.18.0", @@ -359,6 +359,24 @@ } } }, + "node_modules/@angular/cdk": { + "version": "19.0.4", + "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-19.0.4.tgz", + "integrity": "sha512-P8V1n6AFFjBUJG3YRgw8DiiNDWPZVrwQ42wbwgZxd4s2TQAuNFg3YY8h/DSMVxt2sXpavrshZsoLtP9yLKZjHA==", + "license": "MIT", + "peer": true, + "dependencies": { + "tslib": "^2.3.0" + }, + "optionalDependencies": { + "parse5": "^7.1.2" + }, + "peerDependencies": { + "@angular/common": "^19.0.0 || ^20.0.0", + "@angular/core": "^19.0.0 || ^20.0.0", + "rxjs": "^6.5.3 || ^7.4.0" + } + }, "node_modules/@angular/cli": { "version": "19.0.2", "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-19.0.2.tgz", @@ -4310,6 +4328,36 @@ "node": ">=14" } }, + "node_modules/@primeng/themes": { + "version": "19.0.2", + "resolved": "https://registry.npmjs.org/@primeng/themes/-/themes-19.0.2.tgz", + "integrity": "sha512-rPLSUkoW6M36Jjd27XD0biiT6C0VdRx024he6ZRgGpFH5WrnKDJPbbzCdLNFF7JCvEgmBHWEDwnmpHgywjrn2g==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@primeuix/styled": "^0.3.2" + } + }, + "node_modules/@primeuix/styled": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@primeuix/styled/-/styled-0.3.2.tgz", + "integrity": "sha512-ColZes0+/WKqH4ob2x8DyNYf1NENpe5ZguOvx5yCLxaP8EIMVhLjWLO/3umJiDnQU4XXMLkn2mMHHw+fhTX/mw==", + "license": "MIT", + "dependencies": { + "@primeuix/utils": "^0.3.2" + }, + "engines": { + "node": ">=12.11.0" + } + }, + "node_modules/@primeuix/utils": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@primeuix/utils/-/utils-0.3.2.tgz", + "integrity": "sha512-B+nphqTQeq+i6JuICLdVWnDMjONome2sNz0xI65qIOyeB4EF12CoKRiCsxuZ5uKAkHi/0d1LqlQ9mIWRSdkavw==", + "license": "MIT", + "engines": { + "node": ">=12.11.0" + } + }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.26.0", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.26.0.tgz", @@ -7233,7 +7281,7 @@ "version": "4.5.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "dev": true, + "devOptional": true, "license": "BSD-2-Clause", "engines": { "node": ">=0.12" @@ -11477,7 +11525,7 @@ "version": "7.2.1", "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.2.1.tgz", "integrity": "sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "entities": "^4.5.0" @@ -11814,12 +11862,6 @@ "dev": true, "license": "MIT" }, - "node_modules/primeflex": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/primeflex/-/primeflex-3.3.1.tgz", - "integrity": "sha512-zaOq3YvcOYytbAmKv3zYc+0VNS9Wg5d37dfxZnveKBFPr7vEIwfV5ydrpiouTft8MVW6qNjfkaQphHSnvgQbpQ==", - "license": "MIT" - }, "node_modules/primeicons": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/primeicons/-/primeicons-7.0.0.tgz", @@ -11827,19 +11869,24 @@ "license": "MIT" }, "node_modules/primeng": { - "version": "17.18.12", - "resolved": "https://registry.npmjs.org/primeng/-/primeng-17.18.12.tgz", - "integrity": "sha512-zElkv9c3209e1j2yNXalfv71gGJeo8c7bUuW3nsvtQZcYsXjdsJvBEhTThVghBdpCUoFYD3cNmTzg3t807cL6A==", - "license": "MIT", + "version": "19.0.2", + "resolved": "https://registry.npmjs.org/primeng/-/primeng-19.0.2.tgz", + "integrity": "sha512-7vizB1ynvvADjZBE9/Ks/YFwbY/d2tKYo+8Uq3OsBq9+rf9pIwKQIhd9GKkpe1gXx5Ig2SOFVeTp1Ru4H/vlVA==", + "license": "SEE LICENSE IN LICENSE.md", "dependencies": { + "@primeuix/styled": "^0.3.2", + "@primeuix/utils": "^0.3.2", "tslib": "^2.3.0" }, "peerDependencies": { - "@angular/common": "^17.0.0 || ^18.0.0", - "@angular/core": "^17.0.0 || ^18.0.0", - "@angular/forms": "^17.0.0 || ^18.0.0", - "rxjs": "^6.0.0 || ^7.8.1", - "zone.js": "~0.14.0" + "@angular/animations": "^19.0.0", + "@angular/cdk": "^19.0.0", + "@angular/common": "^19.0.0", + "@angular/core": "^19.0.0", + "@angular/forms": "^19.0.0", + "@angular/platform-browser": "^19.0.0", + "@angular/router": "^19.0.0", + "rxjs": "^6.0.0 || ^7.8.1" } }, "node_modules/proc-log": { diff --git a/booklore-ui/package.json b/booklore-ui/package.json index a7e5e0702..04f8bdf38 100644 --- a/booklore-ui/package.json +++ b/booklore-ui/package.json @@ -24,9 +24,9 @@ "ng-lazyload-image": "^9.1.3", "ngx-extended-pdf-viewer": "^22.0.0", "ngx-infinite-scroll": "^19.0.0", - "primeflex": "^3.3.1", "primeicons": "^7.0.0", - "primeng": "^17.18.12", + "@primeng/themes": "19.0.2", + "primeng": "19.0.2", "rxjs": "~7.8.0", "tslib": "^2.3.0", "ws": "^8.18.0", diff --git a/booklore-ui/src/app/app-routing.module.ts b/booklore-ui/src/app/app-routing.module.ts index 3478b4a3b..cb201c5f1 100644 --- a/booklore-ui/src/app/app-routing.module.ts +++ b/booklore-ui/src/app/app-routing.module.ts @@ -1,10 +1,10 @@ import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; -import {AppLayoutComponent} from './book/component/layout/app.layout.component'; import {PdfViewerComponent} from './book/component/pdf-viewer/pdf-viewer.component'; import {DashboardComponent} from './book/component/dashboard/dashboard.component'; import {BookMetadataComponent} from './book/component/book-metadata/book-metadata.component'; import {BooksBrowserComponent} from './book/component/books-browser/books-browser.component'; +import {AppLayoutComponent} from './book/component/layout/app.layout.component'; const routes: Routes = [ { diff --git a/booklore-ui/src/app/app.module.ts b/booklore-ui/src/app/app.module.ts index 039a01260..22b75827b 100644 --- a/booklore-ui/src/app/app.module.ts +++ b/booklore-ui/src/app/app.module.ts @@ -38,6 +38,9 @@ import {CustomReuseStrategy} from './custom-reuse-strategy'; import {MenuModule} from 'primeng/menu'; import {IconPickerComponent} from './book/component/icon-picker/icon-picker.component'; import {ProgressSpinnerModule} from 'primeng/progressspinner'; +import {provideAnimationsAsync} from '@angular/platform-browser/animations/async'; +import {providePrimeNG} from 'primeng/config'; +import Aura from '@primeng/themes/aura'; @NgModule({ declarations: [ @@ -87,7 +90,13 @@ import {ProgressSpinnerModule} from 'primeng/progressspinner'; { provide: RouteReuseStrategy, useClass: CustomReuseStrategy - } + }, + provideAnimationsAsync(), + providePrimeNG({ + theme: { + preset: Aura + } + }) ], bootstrap: [AppComponent] }) diff --git a/booklore-ui/src/app/book/component/books-browser/books-browser.component.html b/booklore-ui/src/app/book/component/books-browser/books-browser.component.html index 1ecab8a26..fff392212 100644 --- a/booklore-ui/src/app/book/component/books-browser/books-browser.component.html +++ b/booklore-ui/src/app/book/component/books-browser/books-browser.component.html @@ -1,6 +1,6 @@
configurator works!
diff --git a/booklore-ui/src/app/configurator/configurator.component.scss b/booklore-ui/src/app/configurator/configurator.component.scss new file mode 100644 index 000000000..e69de29bb diff --git a/booklore-ui/src/app/configurator/configurator.component.ts b/booklore-ui/src/app/configurator/configurator.component.ts new file mode 100644 index 000000000..ebaadfa15 --- /dev/null +++ b/booklore-ui/src/app/configurator/configurator.component.ts @@ -0,0 +1,505 @@ +import {CommonModule, isPlatformBrowser} from '@angular/common'; +import {Component, computed, inject, PLATFORM_ID} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {$t, updatePreset, updateSurfacePalette} from '@primeng/themes'; +import Aura from '@primeng/themes/aura'; +import Lara from '@primeng/themes/lara'; +import Material from '@primeng/themes/material'; +import Nora from '@primeng/themes/nora'; +import {ButtonModule} from 'primeng/button'; +import {PrimeNG} from 'primeng/config'; +import {InputSwitchModule} from 'primeng/inputswitch'; +import {RadioButtonModule} from 'primeng/radiobutton'; +import {SelectButton} from 'primeng/selectbutton'; +import {ToggleSwitchModule} from 'primeng/toggleswitch'; +import {AppConfigService} from '../book/service/app-config.service'; + +interface ColorPalette { + [key: string]: string; // Allows dynamic string keys like '500', '400', etc. +} + +// Define interface for Palette +interface Palette { + name: string; + palette: ColorPalette; +} + +const presets = { + Aura, + Material, + Lara, + Nora +}; + +@Component({ + selector: 'app-configurator', + standalone: true, + template: ` +@b~kofHeEwo6c>Qry;nqp6AH2~0CZ
zaCnW>(0`x6`G`Y*$EBHIvmF^{amy^74p&Tol!l?K4$e %;Nu$lM!PLIMNu#QvrIfX2R9Z+5qsVaUm{f9fM9F{fXb{c-5m*BA)V49{G^*pT
zW9rihgl>_;9F<9dkf77Vfv7yn$XmXj?7U;9Z*Du|Z1S;&Z)#|Pe5TE&!w!2a!vor%
z6l$o~LZ;{D-P-mc;IPuz33}t#aKr7 f2TK8;40s*sVIF-b#BIGfvEe&32D052JFV5oaTumpXIAG%8{6v23+wu(+F;bLBYy
zOMh) lF(`$)E}k>{e!GjZpl=}QUQ@t;0JpM!;2V?1hZL}qQno%H0uB2M?ZX(hEdsb
zi*DfOGS-#X-qZ!kXSYHu{hC-74hl(8;yNDv{t+hQ261xvIfnuCT+VuIEDQSGeF!<#
z+Z#oRem-&{y(5-|!SePHrNHwmcoZ=jjJeWgVt^PRCI*NB^7xMdVq$<8ASMQg0b*i+
r7$7DFhyhZ@q$nx7z?y+lnDqV+xv`2JIm5|P00000NkvXXu0mjfuM$Yr
diff --git a/booklore-ui/src/assets/layout/images/themes/lara-dark-purple.png b/booklore-ui/src/assets/layout/images/themes/lara-dark-purple.png
deleted file mode 100644
index e0d5bf41d782c042550e7aaf4bb9234f83e4402d..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 2287
zcmV QnA
Rq#OVM002ovPDHLkV1iHO6*d3>
diff --git a/booklore-ui/src/assets/layout/images/themes/lara-light-teal.png b/booklore-ui/src/assets/layout/images/themes/lara-light-teal.png
deleted file mode 100644
index f8fb07fe9eb474931b742c197dc58ecc480ae76f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 1862
zcmV-M2f6r(P) ~$(TDhW>OWT+Xm_Fux!GSHi~smR
zRsd!13dJLQlnYIN3=Z}F?s=X`(g>z1T?z9Wp#>o=VOUdEj9DbD%66CwSWM`+subHGyWrAv7vM7io?kyjE^s@QWTXNhU
z+IlS)f*u_)X~ZkLgn$>MM9G||wUszDcqvsja=vdi$T!#x%FnhC%v(+TeOt60?;_+#
z?~S*BuFuEVR+51@cT^Vp{~r2QUp)@xjOfDZneXBGRkOI+DL+G6u1&jL;lCdn2JBNU
zp+S9Ev{&cFk+VofML;4(Y~AU2l}G!!?Pt0c@bawpl*W2sDaV^<+v|sNFEnZb=Ayt+
z(n1q>Qjq7+06O%p-RBxkZmb}iD@6Onlb)eHapT9$9s63kX
z-7Q^-mO|I
Z1vRW(y3nAsBr2Sp$5X_0megXIb^5^HmArNaJvBy*vn#GhJh#~
zdh_^S&Ks1I#i{Db8zQ`fMsUXigI>&K0+a7V`u_+K{{WMskq=L=9!`&+_R!r+Sd
z{x{}0n|YPd-JSaI9ufN7gQ)hvAfOm1oE%yF@LOj%KeHH)yvpbv5a+-k(p2*bv|1Bd
z5^neoCl){d!TEI<&Z~^h0?`WGSpDgD3;g-_OAxgONE9gsv04&F*E}WfE)Xa{Dd248
zU>$$IRYz7Fu>rOL21mW?J>waG5|TD#t|5`v?-BtbKqLZ0fJg+00Fej~0U{9~5&`w~8K8VIBY5+)80-tx)>bWq87V6_%z8AGl-8dpPFPK3f7Eo5KRmB
zfg8Q^DByAzw-{(2rgYP^ADQ1kG7ZD(^rU00Llq%r-%df|fF{S9HK)}MZGauDVFXYZ
zDUhe?Xp&_8*Nn`$2G%$Rx`r~W>&Ldy!>H&x0p+lYP6s+ud>P#`x3sdmt!(3hx#u@e
ze|G4NPhZIU#?73cJ$miePhb7ZJ750&^H+ZH__goc&i>NXTuyPp`AyR{&Y#`YQo@Z!
zP?Rk(za~g*RLB7bQ$Rx*)>O(U8jqHE5jzeJS=@l}AfXB*s4LKH{n*yF<;O5+gj_qk
z5$~oY2R8=7NZ>Z^WSCCE>4;k%-g!JRr?h>K{^?86Q8F|GVc2pqa%x5-m4=;(R_2
z8SE;VRTL9S11&&$H~SvIOO-O#jBn7|(nIbHTo9`i!7&&WRgL-{)QxPxpwTkl0|}YY
zYFe-dnM>WU=CKjS83QdMFd@<@-Je^$sH@_my~TI;OhvFRxKMDNc!f~@vxl$U**#^f
zw|HhzEU^603xFOs0HRzN%IH)@Gzlny%Sdom3qpvifa6Bg&GjM+X!;4N4k$AKD)<`a
z?V={}f%cTlPI$EJiSk(V@S0iQzMUOjwiyZB;#;?}kF1#;t#rp*pBi4!1f_JXN?8jH
zsL7g{_oQ*v)cAuIhbSF^GxcE?h?i1C{sUz~-Yw$}wvI48e%$`Ok$6?~>h@_E?&QI>
zFs1Y7_@h