From 1df8cbad5f05d94da476e6952ffa330c164f8c47 Mon Sep 17 00:00:00 2001 From: Christian Badura <93912698+cbadura@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:23:44 +0200 Subject: [PATCH] Mark svcs in all constructors as readonly, bump deps (#247) * fix: mark svcs in all constructors as readonly, bump deps * fix: bump libs --------- Co-authored-by: Christian Badura --- package-lock.json | 281 +++++++++++++----- package.json | 30 +- src/app/onecx-product-store-remote.module.ts | 2 +- .../app-delete/app-delete.component.ts | 8 +- .../app-detail/app-detail.component.ts | 15 +- .../app-intern/app-intern.component.ts | 2 +- .../app-search/app-search.component.ts | 12 +- .../product-apps/product-apps.component.ts | 6 +- .../product-detail.component.ts | 16 +- .../product-intern.component.ts | 2 +- .../product-props/product-props.component.ts | 10 +- .../product-search.component.ts | 10 +- .../slot-delete/slot-delete.component.ts | 6 +- .../slot-search/slot-search.component.ts | 10 +- src/app/shared/utils.ts | 2 +- 15 files changed, 271 insertions(+), 141 deletions(-) diff --git a/package-lock.json b/package-lock.json index bb8254d..d5af838 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,22 +26,22 @@ "@ngrx/router-store": "^18.0.1", "@ngx-translate/core": "^15.0.0", "@ngx-translate/http-loader": "^8.0.0", - "@onecx/accelerator": "^5.12.2", - "@onecx/angular-accelerator": "^5.12.2", - "@onecx/angular-auth": "^5.12.2", - "@onecx/angular-integration-interface": "^5.12.2", - "@onecx/angular-remote-components": "^5.12.2", - "@onecx/angular-testing": "^5.12.2", - "@onecx/angular-webcomponents": "^5.12.2", - "@onecx/integration-interface": "^5.12.2", - "@onecx/keycloak-auth": "^5.12.2", - "@onecx/portal-integration-angular": "^5.12.2", - "@onecx/portal-layout-styles": "^5.12.2", + "@onecx/accelerator": "^5.13.0", + "@onecx/angular-accelerator": "^5.13.0", + "@onecx/angular-auth": "^5.13.0", + "@onecx/angular-integration-interface": "^5.13.0", + "@onecx/angular-remote-components": "^5.13.0", + "@onecx/angular-testing": "^5.13.0", + "@onecx/angular-webcomponents": "^5.13.0", + "@onecx/integration-interface": "^5.13.0", + "@onecx/keycloak-auth": "^5.13.0", + "@onecx/portal-integration-angular": "^5.13.0", + "@onecx/portal-layout-styles": "^5.13.0", "@webcomponents/webcomponentsjs": "^2.8.0", "keycloak-angular": "^16.0.1", "primeflex": "^3.3.1", "primeicons": "^7.0.0", - "primeng": "^17.18.9", + "primeng": "^17.18.10", "rxjs": "7.8.1", "tslib": "^2.7.0" }, @@ -62,11 +62,11 @@ "@openapitools/openapi-generator-cli": "^2.13.9", "@schematics/angular": "18.2.1", "@types/jasmine": "~5.1.4", - "@types/node": "~22.7.2", + "@types/node": "~22.7.3", "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "css-loader": "^7.1.2", - "eslint": "^8.57.0", + "eslint": "^8.57.1", "eslint-config-prettier": "9.1.0", "eslint-plugin-import": "2.30.0", "eslint-plugin-prettier": "^5.2.1", @@ -92,7 +92,7 @@ "ts-node": "10.9.2", "typescript": "5.5", "url-loader": "^4.1.1", - "webpack": "^5.93.0", + "webpack": "^5.95.0", "webpack-merge": "^6.0.1" } }, @@ -362,6 +362,71 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@angular-devkit/build-angular/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@angular-devkit/build-angular/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, "node_modules/@angular-devkit/build-angular/node_modules/postcss": { "version": "8.4.41", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.41.tgz", @@ -391,12 +456,78 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/@angular-devkit/build-angular/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, "node_modules/@angular-devkit/build-angular/node_modules/tslib": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==", "dev": true }, + "node_modules/@angular-devkit/build-angular/node_modules/webpack": { + "version": "5.94.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.94.0.tgz", + "integrity": "sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.5", + "@webassemblyjs/ast": "^1.12.1", + "@webassemblyjs/wasm-edit": "^1.12.1", + "@webassemblyjs/wasm-parser": "^1.12.1", + "acorn": "^8.7.1", + "acorn-import-attributes": "^1.9.5", + "browserslist": "^4.21.10", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.17.1", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.11", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.10", + "watchpack": "^2.4.1", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, "node_modules/@angular-devkit/build-webpack": { "version": "0.1802.2", "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1802.2.tgz", @@ -4172,9 +4303,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", "dev": true, "license": "MIT", "engines": { @@ -4182,14 +4313,14 @@ } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", "deprecated": "Use @eslint/config-array instead", "dev": true, "license": "Apache-2.0", "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", + "@humanwhocodes/object-schema": "^2.0.3", "debug": "^4.3.1", "minimatch": "^3.0.5" }, @@ -5394,19 +5525,19 @@ } }, "node_modules/@onecx/accelerator": { - "version": "5.12.2", - "resolved": "https://registry.npmjs.org/@onecx/accelerator/-/accelerator-5.12.2.tgz", - "integrity": "sha512-J8LKGERzRHLJa7nm0CRGlgz4xt8VyNygJ3qhX1OeCgXvschCoXNHddQd5D6IOXiXthUrjR4vwu31LY95cSOJpQ==", + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@onecx/accelerator/-/accelerator-5.13.0.tgz", + "integrity": "sha512-pvO/+Az2+D0I1u1BauLE8DWlkmRXOU6dASomVn/8SSD0zaL2WEaSevPHK13N3WTlBRYGPJ+gHt1CyfHN+mfdOw==", "license": "Apache-2.0", "peerDependencies": { - "rxjs": "7.8.1", + "rxjs": "^7.8.1", "tslib": "^2.6.3" } }, "node_modules/@onecx/angular-accelerator": { - "version": "5.12.2", - "resolved": "https://registry.npmjs.org/@onecx/angular-accelerator/-/angular-accelerator-5.12.2.tgz", - "integrity": "sha512-rm6l+GT6epjlFlS0UBUov+18WmIHCKW9nvIX5YMycoQQtJum1yyOf9U4aq+DLn4q9TLvY49q8Pc5vmNvcqMAXQ==", + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@onecx/angular-accelerator/-/angular-accelerator-5.13.0.tgz", + "integrity": "sha512-qfKHQLzs2QEIjb2KMLokYBeUAFOOV4TW/Idl80y/mi+8adIZwwjCqCxHCtBQ6NhBL7mnCgV3cZaPf5D4qO2Itg==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.3.0" @@ -5429,15 +5560,15 @@ } }, "node_modules/@onecx/angular-auth": { - "version": "5.12.2", - "resolved": "https://registry.npmjs.org/@onecx/angular-auth/-/angular-auth-5.12.2.tgz", - "integrity": "sha512-X01ds/+jam3D9QHkjb9xXd6vDWxgvdZmijTVOlEk5qRrIt6k3bU1+koN46PPpdNbRtigWxXszYqPo9FHk1D6fQ==", + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@onecx/angular-auth/-/angular-auth-5.13.0.tgz", + "integrity": "sha512-fhXu38kx4lNHx8FwCPoz3ts3bepbYCta6b+45N1sL9lrVZubpxbwxHazX1v+2DAlUIPlTiqDiFYPP04m/XrtHg==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.3.0" }, "peerDependencies": { - "@angular-architects/module-federation": "18.0.4", + "@angular-architects/module-federation": "^18.0.4", "@angular/common": "^18.0.5", "@angular/core": "^18.0.5", "@onecx/angular-integration-interface": "^5", @@ -5448,9 +5579,9 @@ } }, "node_modules/@onecx/angular-integration-interface": { - "version": "5.12.2", - "resolved": "https://registry.npmjs.org/@onecx/angular-integration-interface/-/angular-integration-interface-5.12.2.tgz", - "integrity": "sha512-5XbuUgVUqnqYSapWr3fiMUd4EBpIJAqAZvVs12KepHmhF0faWQYuIy0lvXjnvfwOkweMkK9MFOX09WAuBsNvfw==", + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@onecx/angular-integration-interface/-/angular-integration-interface-5.13.0.tgz", + "integrity": "sha512-FhMnlh3r1GUMysxyAkJYHBjroiL9kDUb40MMtTqu/0eTXVNQNHCkrDhhj+MzYs0s19WjgdLFuJjrGq3L6h15wA==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.3.0" @@ -5462,27 +5593,27 @@ } }, "node_modules/@onecx/angular-remote-components": { - "version": "5.12.2", - "resolved": "https://registry.npmjs.org/@onecx/angular-remote-components/-/angular-remote-components-5.12.2.tgz", - "integrity": "sha512-ZXd7N2gd2TC74gfVrViyq5joJxyoE8uuzI+zowSqTbPtqLRcxgOhDv6LUVRZQTrwG5ImDJUgAWNSR0sQNHsjVw==", + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@onecx/angular-remote-components/-/angular-remote-components-5.13.0.tgz", + "integrity": "sha512-HMnN/Iy75W1by9GjjwQpxV7+mZWRkQgXxdC+kuyLqHYrHZSKMfJGQJd2qjZjf9y4mYfZRxZs2Xtacg42TN+ptA==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.3.0" }, "peerDependencies": { - "@angular-architects/module-federation": "18.0.4", + "@angular-architects/module-federation": "^18.0.4", "@angular/common": "^18.0.5", "@angular/core": "^18.0.5", "@ngx-translate/core": "^15.0.0", "@onecx/angular-accelerator": "^5", "@onecx/integration-interface": "^5", - "rxjs": "7.8.1" + "rxjs": "^7.8.1" } }, "node_modules/@onecx/angular-testing": { - "version": "5.12.2", - "resolved": "https://registry.npmjs.org/@onecx/angular-testing/-/angular-testing-5.12.2.tgz", - "integrity": "sha512-SCqNeTf9jhNG+8ADlGpjyfznXsaVmjCCLe/MIOkITa5SrUZlmdggrhDCWTZ1r64vQ3zUjuTTrJWpUo0ojE0Ecg==", + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@onecx/angular-testing/-/angular-testing-5.13.0.tgz", + "integrity": "sha512-bm0ea9pggyTM9l5dOuQ4p/VYOCjXU2/s+j8edND/U/WMGdrgMttsUEwuoreXLrC4BTQYCA+E6iWbZDAgLI7z6Q==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.3.0" @@ -5493,9 +5624,9 @@ } }, "node_modules/@onecx/angular-webcomponents": { - "version": "5.12.2", - "resolved": "https://registry.npmjs.org/@onecx/angular-webcomponents/-/angular-webcomponents-5.12.2.tgz", - "integrity": "sha512-lWyPOLYO4d3jnRohkieSZTiUx6bE8GNfQjqorlbQ8TGurRdmqEkhLyuwX1EkPUzN/LmwZWrAfwO5wM75bEmpWA==", + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@onecx/angular-webcomponents/-/angular-webcomponents-5.13.0.tgz", + "integrity": "sha512-n7icbAK5plHnH0RWTSPvSaeKLqz6k/7blQLdSdWrcVsC5JPNxvLfr58FIRQIdl9qEgiX+lHkTLOHrA8SkKqirQ==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.3.0" @@ -5511,20 +5642,20 @@ } }, "node_modules/@onecx/integration-interface": { - "version": "5.12.2", - "resolved": "https://registry.npmjs.org/@onecx/integration-interface/-/integration-interface-5.12.2.tgz", - "integrity": "sha512-7VsZSLiulVqGHTPPY5ksnMyLWiyv1K1LDQxMzUQNAk/QpCBgO9JitWBWNcm6dbfC50p8/D5t74XYokrHbZbTpg==", + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@onecx/integration-interface/-/integration-interface-5.13.0.tgz", + "integrity": "sha512-hIT7Zq4GHps/IhwtWRtuFwiqpKCqEHVVh6HdFqAm3xE//ee6Npq92ArJTsZMoCp5huVhXvAdfs4YGdPglEupfg==", "license": "Apache-2.0", "peerDependencies": { "@onecx/accelerator": "^5", - "rxjs": "7.8.1", + "rxjs": "^7.8.1", "tslib": "^2.6.3" } }, "node_modules/@onecx/keycloak-auth": { - "version": "5.12.2", - "resolved": "https://registry.npmjs.org/@onecx/keycloak-auth/-/keycloak-auth-5.12.2.tgz", - "integrity": "sha512-G6oy+iRuOcHGX7Yn5AgMVw8k9k467rCxxeQGc67plf4lKwtKIsvtTVbAs5NQgylNrd1pm92v6Lm74MkVQbd0XQ==", + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@onecx/keycloak-auth/-/keycloak-auth-5.13.0.tgz", + "integrity": "sha512-arLY0yI0PFj+Zm8kNPCMuVv6wHz8rGt7vs7YFtTTM8eS0B4tYcnBseGzjJJQJeQ4TNa2LSt7Aoqn0OvhX+7rjA==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.3.0" @@ -5536,13 +5667,13 @@ "@onecx/integration-interface": "^5", "keycloak-angular": "^16.0.1", "keycloak-js": "^25.0.1", - "rxjs": "7.8.1" + "rxjs": "^7.8.1" } }, "node_modules/@onecx/portal-integration-angular": { - "version": "5.12.2", - "resolved": "https://registry.npmjs.org/@onecx/portal-integration-angular/-/portal-integration-angular-5.12.2.tgz", - "integrity": "sha512-XeMUiKfUromgt8cXXfmWUNbNmeojw+cMQfxRGMTWLDQOoxiyd3nV8B/35k9IC4FmfWeX2oVhRu+3Cyz0kGeXxQ==", + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@onecx/portal-integration-angular/-/portal-integration-angular-5.13.0.tgz", + "integrity": "sha512-H7BjGx2W0HMGFxyxzi/2FvY+StDgPXG+6PHfdWt+BiwwHDxjdhqRmKm4nor01X9GE/6i0zp+PzIYzqXEmuMszA==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.3.0" @@ -5575,9 +5706,9 @@ } }, "node_modules/@onecx/portal-layout-styles": { - "version": "5.12.2", - "resolved": "https://registry.npmjs.org/@onecx/portal-layout-styles/-/portal-layout-styles-5.12.2.tgz", - "integrity": "sha512-aMrcJQ2PG+XmTnrBWZNA1ceTWwfXJGXyvlbvwfwCdXczZcZOoJEps3YXkVmOb57jM+Jv6+rrV/06UnYMdcrQiQ==", + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@onecx/portal-layout-styles/-/portal-layout-styles-5.13.0.tgz", + "integrity": "sha512-N0sl2BJVHo56lnb+kWWZrksrM1GGGS7AoRgMc1p5SCOL0ilBwQVQHg1MfvjIntUTzo8lY7Dgu5Ea4Mc8viKOsQ==", "license": "Apache-2.0", "peerDependencies": { "tslib": "^2.6.3" @@ -6286,9 +6417,9 @@ } }, "node_modules/@types/node": { - "version": "22.7.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.2.tgz", - "integrity": "sha512-866lXSrpGpgyHBZUa2m9YNWqHDjjM0aBTJlNtYaGEw4rqY/dcD7deRVTbBBAJelfA7oaGDbNftXF/TL/A6RgoA==", + "version": "22.7.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.4.tgz", + "integrity": "sha512-y+NPi1rFzDs1NdQHHToqeiX2TIS79SWEAw9GYhkkx8bD0ChpfqC+n2j5OXOCpzfojBEBt6DnEnnG9MY0zk1XLg==", "license": "MIT", "dependencies": { "undici-types": "~6.19.2" @@ -10170,17 +10301,17 @@ } }, "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", "@ungap/structured-clone": "^1.2.0", @@ -17277,9 +17408,9 @@ "license": "MIT" }, "node_modules/primeng": { - "version": "17.18.9", - "resolved": "https://registry.npmjs.org/primeng/-/primeng-17.18.9.tgz", - "integrity": "sha512-1FT0B8wtgvs/joduB1DDOLe2IsP1pegOiEfSPAHSbc6otgNx/6iLR0k2M/xr2c9Ur1aC7tAikkVfH3FGpWof3w==", + "version": "17.18.11", + "resolved": "https://registry.npmjs.org/primeng/-/primeng-17.18.11.tgz", + "integrity": "sha512-LzV0fFZmb3GdnaRqi1+GP+RPtW0a+jztL5pH1zRWY7+7pyQ0n1YNyTXzmqVcdks/CmoyjNhutWEmexwi6vFVeA==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -20312,9 +20443,9 @@ "license": "BSD-2-Clause" }, "node_modules/webpack": { - "version": "5.94.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.94.0.tgz", - "integrity": "sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg==", + "version": "5.95.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.95.0.tgz", + "integrity": "sha512-2t3XstrKULz41MNMBF+cJ97TyHdyQ8HCt//pqErqDvNjU9YQBnZxIHa11VXsi7F3mb5/aO2tuDxdeTPdU7xu9Q==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index fd82aa4..a038d9f 100644 --- a/package.json +++ b/package.json @@ -52,22 +52,22 @@ "@ngrx/router-store": "^18.0.1", "@ngx-translate/core": "^15.0.0", "@ngx-translate/http-loader": "^8.0.0", - "@onecx/accelerator": "^5.12.2", - "@onecx/angular-accelerator": "^5.12.2", - "@onecx/angular-auth": "^5.12.2", - "@onecx/angular-integration-interface": "^5.12.2", - "@onecx/angular-remote-components": "^5.12.2", - "@onecx/angular-testing": "^5.12.2", - "@onecx/angular-webcomponents": "^5.12.2", - "@onecx/integration-interface": "^5.12.2", - "@onecx/keycloak-auth": "^5.12.2", - "@onecx/portal-integration-angular": "^5.12.2", - "@onecx/portal-layout-styles": "^5.12.2", + "@onecx/accelerator": "^5.13.0", + "@onecx/angular-accelerator": "^5.13.0", + "@onecx/angular-auth": "^5.13.0", + "@onecx/angular-integration-interface": "^5.13.0", + "@onecx/angular-remote-components": "^5.13.0", + "@onecx/angular-testing": "^5.13.0", + "@onecx/angular-webcomponents": "^5.13.0", + "@onecx/integration-interface": "^5.13.0", + "@onecx/keycloak-auth": "^5.13.0", + "@onecx/portal-integration-angular": "^5.13.0", + "@onecx/portal-layout-styles": "^5.13.0", "@webcomponents/webcomponentsjs": "^2.8.0", "keycloak-angular": "^16.0.1", "primeflex": "^3.3.1", "primeicons": "^7.0.0", - "primeng": "^17.18.9", + "primeng": "^17.18.10", "rxjs": "7.8.1", "tslib": "^2.7.0" }, @@ -88,11 +88,11 @@ "@openapitools/openapi-generator-cli": "^2.13.9", "@schematics/angular": "18.2.1", "@types/jasmine": "~5.1.4", - "@types/node": "~22.7.2", + "@types/node": "~22.7.3", "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "css-loader": "^7.1.2", - "eslint": "^8.57.0", + "eslint": "^8.57.1", "eslint-config-prettier": "9.1.0", "eslint-plugin-import": "2.30.0", "eslint-plugin-prettier": "^5.2.1", @@ -118,7 +118,7 @@ "ts-node": "10.9.2", "typescript": "5.5", "url-loader": "^4.1.1", - "webpack": "^5.93.0", + "webpack": "^5.95.0", "webpack-merge": "^6.0.1" } } diff --git a/src/app/onecx-product-store-remote.module.ts b/src/app/onecx-product-store-remote.module.ts index 3d5fcca..f78fa93 100644 --- a/src/app/onecx-product-store-remote.module.ts +++ b/src/app/onecx-product-store-remote.module.ts @@ -63,7 +63,7 @@ const routes: Routes = [ schemas: [] }) export class OneCXProductStoreModule implements DoBootstrap { - constructor(private injector: Injector) { + constructor(private readonly injector: Injector) { console.info('OneCX Product Store Module constructor') } diff --git a/src/app/product-store/app-delete/app-delete.component.ts b/src/app/product-store/app-delete/app-delete.component.ts index bc74c29..e68cc29 100644 --- a/src/app/product-store/app-delete/app-delete.component.ts +++ b/src/app/product-store/app-delete/app-delete.component.ts @@ -15,10 +15,10 @@ export class AppDeleteComponent { @Output() appDeleted = new EventEmitter() constructor( - private msApi: MicroservicesAPIService, - private mfeApi: MicrofrontendsAPIService, - private msgService: PortalMessageService, - private translate: TranslateService + private readonly msApi: MicroservicesAPIService, + private readonly mfeApi: MicrofrontendsAPIService, + private readonly msgService: PortalMessageService, + private readonly translate: TranslateService ) {} public onDialogHide(): void { diff --git a/src/app/product-store/app-detail/app-detail.component.ts b/src/app/product-store/app-detail/app-detail.component.ts index 029b9d5..b6d6d01 100644 --- a/src/app/product-store/app-detail/app-detail.component.ts +++ b/src/app/product-store/app-detail/app-detail.component.ts @@ -1,4 +1,4 @@ -import { Component, EventEmitter, Input, OnChanges, OnInit, Output, Renderer2, ViewChild } from '@angular/core' +import { Component, EventEmitter, Input, OnChanges, OnInit, Output, ViewChild } from '@angular/core' import { FormControl, FormGroup, Validators } from '@angular/forms' import { TranslateService } from '@ngx-translate/core' import { finalize } from 'rxjs' @@ -87,13 +87,12 @@ export class AppDetailComponent implements OnInit, OnChanges { public convertToUniqueStringArray = convertToUniqueStringArray constructor( - private user: UserService, - private icon: IconService, - private msApi: MicroservicesAPIService, - private mfeApi: MicrofrontendsAPIService, - private msgService: PortalMessageService, - private translate: TranslateService, - private renderer: Renderer2 + private readonly user: UserService, + private readonly icon: IconService, + private readonly msApi: MicroservicesAPIService, + private readonly mfeApi: MicrofrontendsAPIService, + private readonly msgService: PortalMessageService, + private readonly translate: TranslateService ) { this.hasCreatePermission = this.user.hasPermission('APP#CREATE') this.hasEditPermission = this.user.hasPermission('APP#EDIT') diff --git a/src/app/product-store/app-detail/app-intern/app-intern.component.ts b/src/app/product-store/app-detail/app-intern/app-intern.component.ts index 057c91d..ac4e844 100644 --- a/src/app/product-store/app-detail/app-intern/app-intern.component.ts +++ b/src/app/product-store/app-detail/app-intern/app-intern.component.ts @@ -16,7 +16,7 @@ export class AppInternComponent implements OnChanges { public operator = false public deprecated = false - constructor(private translate: TranslateService) {} + constructor(private readonly translate: TranslateService) {} public ngOnChanges(): void { this.undeployed = this.app?.undeployed ?? false diff --git a/src/app/product-store/app-search/app-search.component.ts b/src/app/product-store/app-search/app-search.component.ts index 1283245..8970507 100644 --- a/src/app/product-store/app-search/app-search.component.ts +++ b/src/app/product-store/app-search/app-search.component.ts @@ -67,12 +67,12 @@ export class AppSearchComponent implements OnInit, OnDestroy { @ViewChild(DataView) dv: DataView | undefined constructor( - private route: ActivatedRoute, - private router: Router, - private user: UserService, - private mfeApi: MicrofrontendsAPIService, - private msApi: MicroservicesAPIService, - private translate: TranslateService + private readonly route: ActivatedRoute, + private readonly router: Router, + private readonly user: UserService, + private readonly mfeApi: MicrofrontendsAPIService, + private readonly msApi: MicroservicesAPIService, + private readonly translate: TranslateService ) { this.hasCreatePermission = this.user.hasPermission('APP#CREATE') this.hasDeletePermission = this.user.hasPermission('APP#DELETE') diff --git a/src/app/product-store/product-detail/product-apps/product-apps.component.ts b/src/app/product-store/product-detail/product-apps/product-apps.component.ts index 4a38fd9..025408a 100644 --- a/src/app/product-store/product-detail/product-apps/product-apps.component.ts +++ b/src/app/product-store/product-detail/product-apps/product-apps.component.ts @@ -48,9 +48,9 @@ export class ProductAppsComponent implements OnChanges, OnDestroy { public hasDeletePermission = false constructor( - private icon: IconService, - private user: UserService, - private productApi: ProductsAPIService + private readonly icon: IconService, + private readonly user: UserService, + private readonly productApi: ProductsAPIService ) { this.hasCreatePermission = this.user.hasPermission('APP#CREATE') this.hasDeletePermission = this.user.hasPermission('APP#DELETE') diff --git a/src/app/product-store/product-detail/product-detail.component.ts b/src/app/product-store/product-detail/product-detail.component.ts index dcc72f5..e769d16 100644 --- a/src/app/product-store/product-detail/product-detail.component.ts +++ b/src/app/product-store/product-detail/product-detail.component.ts @@ -38,14 +38,14 @@ export class ProductDetailComponent implements OnInit { @ViewChild(ProductPropertyComponent, { static: false }) productPropsComponent!: ProductPropertyComponent constructor( - private router: Router, - private route: ActivatedRoute, - private user: UserService, - private location: Location, - private productApi: ProductsAPIService, - private imageApi: ImagesInternalAPIService, - private msgService: PortalMessageService, - private translate: TranslateService + private readonly router: Router, + private readonly route: ActivatedRoute, + private readonly user: UserService, + private readonly location: Location, + private readonly productApi: ProductsAPIService, + private readonly imageApi: ImagesInternalAPIService, + private readonly msgService: PortalMessageService, + private readonly translate: TranslateService ) { this.dateFormat = this.user.lang$.getValue() === 'de' ? 'dd.MM.yyyy HH:mm:ss' : 'medium' this.productName = this.route.snapshot.paramMap.get('name') || '' diff --git a/src/app/product-store/product-detail/product-intern/product-intern.component.ts b/src/app/product-store/product-detail/product-intern/product-intern.component.ts index c0df789..7dcb5ce 100644 --- a/src/app/product-store/product-detail/product-intern/product-intern.component.ts +++ b/src/app/product-store/product-detail/product-intern/product-intern.component.ts @@ -16,7 +16,7 @@ export class ProductInternComponent implements OnChanges { public operator = false public undeployed = false - constructor(private translate: TranslateService) {} + constructor(private readonly translate: TranslateService) {} public ngOnChanges(): void { if (this.product) { diff --git a/src/app/product-store/product-detail/product-props/product-props.component.ts b/src/app/product-store/product-detail/product-props/product-props.component.ts index bb2240a..be654b4 100644 --- a/src/app/product-store/product-detail/product-props/product-props.component.ts +++ b/src/app/product-store/product-detail/product-props/product-props.component.ts @@ -59,11 +59,11 @@ export class ProductPropertyComponent implements OnChanges, OnInit { public convertToUniqueStringArray = convertToUniqueStringArray constructor( - private icon: IconService, - private elements: ElementRef, - private productApi: ProductsAPIService, - private imageApi: ImagesInternalAPIService, - private msgService: PortalMessageService + private readonly icon: IconService, + private readonly elements: ElementRef, + private readonly productApi: ProductsAPIService, + private readonly imageApi: ImagesInternalAPIService, + private readonly msgService: PortalMessageService ) { this.formGroup = new FormGroup({ id: new FormControl(null), diff --git a/src/app/product-store/product-search/product-search.component.ts b/src/app/product-store/product-search/product-search.component.ts index be30299..9c5a1d1 100644 --- a/src/app/product-store/product-search/product-search.component.ts +++ b/src/app/product-store/product-search/product-search.component.ts @@ -40,11 +40,11 @@ export class ProductSearchComponent implements OnInit { @ViewChild(DataView) dv: DataView | undefined constructor( - private route: ActivatedRoute, - private router: Router, - private productApi: ProductsAPIService, - private translate: TranslateService, - private imageApi: ImagesInternalAPIService + private readonly route: ActivatedRoute, + private readonly router: Router, + private readonly productApi: ProductsAPIService, + private readonly translate: TranslateService, + private readonly imageApi: ImagesInternalAPIService ) { this.productSearchCriteriaGroup = new FormGroup({ displayName: new FormControl(null), diff --git a/src/app/product-store/slot-delete/slot-delete.component.ts b/src/app/product-store/slot-delete/slot-delete.component.ts index 9bd7fbb..f1ba7bc 100644 --- a/src/app/product-store/slot-delete/slot-delete.component.ts +++ b/src/app/product-store/slot-delete/slot-delete.component.ts @@ -15,9 +15,9 @@ export class SlotDeleteComponent { @Output() slotDeleted = new EventEmitter() constructor( - private slotApi: SlotsAPIService, - private msgService: PortalMessageService, - private translate: TranslateService + private readonly slotApi: SlotsAPIService, + private readonly msgService: PortalMessageService, + private readonly translate: TranslateService ) {} public onDialogHide(): void { diff --git a/src/app/product-store/slot-search/slot-search.component.ts b/src/app/product-store/slot-search/slot-search.component.ts index ad1c2f9..c16a73b 100644 --- a/src/app/product-store/slot-search/slot-search.component.ts +++ b/src/app/product-store/slot-search/slot-search.component.ts @@ -37,11 +37,11 @@ export class SlotSearchComponent implements OnInit { @ViewChild(DataView) dv: DataView | undefined constructor( - private route: ActivatedRoute, - private router: Router, - private user: UserService, - private slotApi: SlotsAPIService, - private translate: TranslateService + private readonly route: ActivatedRoute, + private readonly router: Router, + private readonly user: UserService, + private readonly slotApi: SlotsAPIService, + private readonly translate: TranslateService ) { this.hasDeletePermission = this.user.hasPermission('SLOT#DELETE') this.slotSearchCriteriaGroup = new FormGroup({ diff --git a/src/app/shared/utils.ts b/src/app/shared/utils.ts index a6ab244..d553f68 100644 --- a/src/app/shared/utils.ts +++ b/src/app/shared/utils.ts @@ -32,7 +32,7 @@ export function convertToUniqueStringArray(unsorted: string | undefined | null): unsorted .toString() .split(',') - .map((a) => ar?.push(a.trim())) + .forEach((a) => ar?.push(a.trim())) return ar.sort(sortByLocale) }