diff --git a/CHANGELOG.md b/CHANGELOG.md
index fe5f14a4..8d8ff144 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
### [@coreui/angular](https://coreui.io/angular/) changelog
+
+---
+
+#### `5.0.3`
+
+- chore(dependencies): update
+- test: add missing tests, refactor
+
---
#### `5.0.2`
diff --git a/package-lock.json b/package-lock.json
index b41ab28d..6a2ccc8b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,24 +1,24 @@
{
"name": "coreui-angular-dev",
- "version": "5.0.2",
+ "version": "5.0.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coreui-angular-dev",
- "version": "5.0.2",
+ "version": "5.0.3",
"license": "MIT",
"dependencies": {
- "@angular/animations": "^17.3.4",
- "@angular/cdk": "^17.3.4",
- "@angular/common": "^17.3.4",
- "@angular/compiler": "^17.3.4",
- "@angular/core": "^17.3.4",
- "@angular/forms": "^17.3.4",
- "@angular/localize": "^17.3.4",
- "@angular/platform-browser": "^17.3.4",
- "@angular/platform-browser-dynamic": "^17.3.4",
- "@angular/router": "^17.3.4",
+ "@angular/animations": "^17.3.5",
+ "@angular/cdk": "^17.3.5",
+ "@angular/common": "^17.3.5",
+ "@angular/compiler": "^17.3.5",
+ "@angular/core": "^17.3.5",
+ "@angular/forms": "^17.3.5",
+ "@angular/localize": "^17.3.5",
+ "@angular/platform-browser": "^17.3.5",
+ "@angular/platform-browser-dynamic": "^17.3.5",
+ "@angular/router": "^17.3.5",
"@coreui/chartjs": "^4.0.0",
"@coreui/icons": "^3.0.1",
"@popperjs/core": "~2.11.8",
@@ -29,20 +29,20 @@
"zone.js": "~0.14.4"
},
"devDependencies": {
- "@angular-devkit/build-angular": "^17.3.4",
+ "@angular-devkit/build-angular": "^17.3.5",
"@angular-eslint/builder": "^17.3.0",
"@angular-eslint/eslint-plugin": "^17.3.0",
"@angular-eslint/eslint-plugin-template": "^17.3.0",
"@angular-eslint/schematics": "^17.3.0",
"@angular-eslint/template-parser": "^17.3.0",
- "@angular/cli": "^17.3.4",
- "@angular/compiler-cli": "^17.3.4",
- "@angular/language-service": "^17.3.4",
+ "@angular/cli": "^17.3.5",
+ "@angular/compiler-cli": "^17.3.5",
+ "@angular/language-service": "^17.3.5",
"@types/jasmine": "^5.1.4",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.12.7",
- "@typescript-eslint/eslint-plugin": "^7.6.0",
- "@typescript-eslint/parser": "^7.6.0",
+ "@typescript-eslint/eslint-plugin": "^7.7.0",
+ "@typescript-eslint/parser": "^7.7.0",
"eslint": "^8.57.0",
"jasmine-core": "^5.1.2",
"karma": "^6.4.3",
@@ -52,7 +52,7 @@
"karma-jasmine-html-reporter": "^2.1.0",
"ng-packagr": "^17.3.0",
"prettier": "^3.2.5",
- "typescript": "~5.3.3"
+ "typescript": "~5.4.2"
},
"engines": {
"node": "^18.13.0 || ^20.9.0",
@@ -81,12 +81,12 @@
}
},
"node_modules/@angular-devkit/architect": {
- "version": "0.1703.4",
- "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1703.4.tgz",
- "integrity": "sha512-o+XCMOiMh8tmQGEwcxjAj2/lmUVT7CGSUAM31ydDomVOFFw4CnBvsoyKqQNRC+/AUXvovb2dCegQl/lTAnrwOg==",
+ "version": "0.1703.5",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1703.5.tgz",
+ "integrity": "sha512-j3+9QeXIafuRMtk7N5Cmm/IiMSS/TOaybzfCv/LK+DP3hjEd8f8Az7hPmevUuOArvWNzUvoUeu30GmR3wABydA==",
"dev": true,
"dependencies": {
- "@angular-devkit/core": "17.3.4",
+ "@angular-devkit/core": "17.3.5",
"rxjs": "7.8.1"
},
"engines": {
@@ -96,15 +96,15 @@
}
},
"node_modules/@angular-devkit/build-angular": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-17.3.4.tgz",
- "integrity": "sha512-8KieoPrsJcFPoza0gLQ6yebtIb3WdH3j/V1TnAihk4tVpgtdch8tOBE3FP1TnSW3RF+iCsA0I5NO9/4YbEsWtw==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-17.3.5.tgz",
+ "integrity": "sha512-Ju2MkMidJglJq/iWgM9CNbhK7A/2n0LNYPZx+ucb+aOFWvurCQrU4Mt/es6xCsxOEs5OPhjqdva8mxE5FHwzTQ==",
"dev": true,
"dependencies": {
"@ampproject/remapping": "2.3.0",
- "@angular-devkit/architect": "0.1703.4",
- "@angular-devkit/build-webpack": "0.1703.4",
- "@angular-devkit/core": "17.3.4",
+ "@angular-devkit/architect": "0.1703.5",
+ "@angular-devkit/build-webpack": "0.1703.5",
+ "@angular-devkit/core": "17.3.5",
"@babel/core": "7.24.0",
"@babel/generator": "7.23.6",
"@babel/helper-annotate-as-pure": "7.22.5",
@@ -115,7 +115,7 @@
"@babel/preset-env": "7.24.0",
"@babel/runtime": "7.24.0",
"@discoveryjs/json-ext": "0.5.7",
- "@ngtools/webpack": "17.3.4",
+ "@ngtools/webpack": "17.3.5",
"@vitejs/plugin-basic-ssl": "1.1.0",
"ansi-colors": "4.1.3",
"autoprefixer": "10.4.18",
@@ -225,12 +225,12 @@
}
},
"node_modules/@angular-devkit/build-webpack": {
- "version": "0.1703.4",
- "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1703.4.tgz",
- "integrity": "sha512-9Vsl6rfIH8kF02W7i3tW/aMOT2Ld1zpcok7n7JdL3Pb7oW0SOjt73FN6Ykm/hVig12gsOGJtEsDfQRsnCddmfQ==",
+ "version": "0.1703.5",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1703.5.tgz",
+ "integrity": "sha512-KcoKlWhDP6+2q3laQ6elXLt2QrVxWJFdCPUC9dIm0Tnc997Tal/UVhlDKaZgITYDgDvRFqG+tzNm2uFd8l7h+A==",
"dev": true,
"dependencies": {
- "@angular-devkit/architect": "0.1703.4",
+ "@angular-devkit/architect": "0.1703.5",
"rxjs": "7.8.1"
},
"engines": {
@@ -244,9 +244,9 @@
}
},
"node_modules/@angular-devkit/core": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-17.3.4.tgz",
- "integrity": "sha512-vE69/Db555NTRPh+LUFO3rAQBbv7QGrK59F7chRggDZKamtCq/FfhEg2O+0BXQnUitOQN6WgQ79+payFYWyCCg==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-17.3.5.tgz",
+ "integrity": "sha512-iqGv45HVI+yRROoTqQTY0QChYlRCZkFUfIjdfJLegjc6xq9sLtxDr03CWM45BKGG5lSxDOy+qu/pdRvtL3V2eg==",
"dev": true,
"dependencies": {
"ajv": "8.12.0",
@@ -271,12 +271,12 @@
}
},
"node_modules/@angular-devkit/schematics": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-17.3.4.tgz",
- "integrity": "sha512-Z6801QhIwrMTcKPzdo9si+ZtJkPz8fys0ftOTfTM66+tDECasU7pvk8Dr54WkDY29mdSHzPxpSxAsooEwfxvQQ==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-17.3.5.tgz",
+ "integrity": "sha512-oh/mvpMKxGfk5v9QIB7LfGsDC/iVpmsIAvbb4+1ddCx86EJXdz3xWnVDbUehOd6n7HJXnQrNirWjWvWquM2GhQ==",
"dev": true,
"dependencies": {
- "@angular-devkit/core": "17.3.4",
+ "@angular-devkit/core": "17.3.5",
"jsonc-parser": "3.2.1",
"magic-string": "0.30.8",
"ora": "5.4.1",
@@ -387,9 +387,9 @@
}
},
"node_modules/@angular/animations": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-17.3.4.tgz",
- "integrity": "sha512-2nBgXRdTSVPZMueV6ZJjajDRucwJBLxwiVhGafk/nI5MJF0Yss/Jfp2Kfzk5Xw2AqGhz0rd00IyNNUQIzO2mlw==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-17.3.5.tgz",
+ "integrity": "sha512-hbfCnBxwhYQMKB+9tDcmfvckUtB8LdY1gPST6TZ7CzrWCSPddsnXxqxBZSBjBI6zXvE4FOV3kUzaUXM/Bq5sRw==",
"dependencies": {
"tslib": "^2.3.0"
},
@@ -397,13 +397,13 @@
"node": "^18.13.0 || >=20.9.0"
},
"peerDependencies": {
- "@angular/core": "17.3.4"
+ "@angular/core": "17.3.5"
}
},
"node_modules/@angular/cdk": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-17.3.4.tgz",
- "integrity": "sha512-/wbKUbc0YC3HGE2TCgW7D07Q99PZ/5uoRvMyWw0/wHa8VLNavXZPecbvtyLs//3HnqoCMSUFE7E2Mrd7jAWfcA==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-17.3.5.tgz",
+ "integrity": "sha512-6y8+yIPWG0wTdPwHIPxKrEFCX1JxxBh4aXcmQnrNTDIvtoEPGaea9SU9XKaU8ahiZMlcpUXqKLG0BVbEhA1Oow==",
"dependencies": {
"tslib": "^2.3.0"
},
@@ -417,15 +417,15 @@
}
},
"node_modules/@angular/cli": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-17.3.4.tgz",
- "integrity": "sha512-o4oIA2stUwXOur/T/kP3Zr8ZUCB4VYmvjACbsQ3tpzVCFYPeaW9psQagBNJfaBVVDSYL+EacVYBYJR9ZImvcGw==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-17.3.5.tgz",
+ "integrity": "sha512-6MHJzPKy4uB9qlJO1eKs4rtDlRuCe0lOiz1f3kHFZ/GQQm5xA1xsmZJMN4ASsnu4yU3oZs6vJ/vt8i2/jvdPbA==",
"dev": true,
"dependencies": {
- "@angular-devkit/architect": "0.1703.4",
- "@angular-devkit/core": "17.3.4",
- "@angular-devkit/schematics": "17.3.4",
- "@schematics/angular": "17.3.4",
+ "@angular-devkit/architect": "0.1703.5",
+ "@angular-devkit/core": "17.3.5",
+ "@angular-devkit/schematics": "17.3.5",
+ "@schematics/angular": "17.3.5",
"@yarnpkg/lockfile": "1.1.0",
"ansi-colors": "4.1.3",
"ini": "4.1.2",
@@ -451,9 +451,9 @@
}
},
"node_modules/@angular/common": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/common/-/common-17.3.4.tgz",
- "integrity": "sha512-rEsmtwUMJaNvaimh9hwaHdDLXaOIrjEnYdhmJUvDaKPQaFfSbH3CGGVz9brUyzVJyiWJYkYM0ssxavczeiEe8g==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/common/-/common-17.3.5.tgz",
+ "integrity": "sha512-Ox91WxSnOSrQ6I21cHi69EfT2Pxtd5Knb5AsdwpxqE57V2E7EnWMhb+LP+holCtFUhK529EGXCk788M+Elyw6g==",
"dependencies": {
"tslib": "^2.3.0"
},
@@ -461,14 +461,14 @@
"node": "^18.13.0 || >=20.9.0"
},
"peerDependencies": {
- "@angular/core": "17.3.4",
+ "@angular/core": "17.3.5",
"rxjs": "^6.5.3 || ^7.4.0"
}
},
"node_modules/@angular/compiler": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-17.3.4.tgz",
- "integrity": "sha512-YrDClIzgj6nQwiYHrfV6AkT1C5LCDgJh+LICus/2EY1w80j1Qf48Zh4asictReePdVE2Tarq6dnpDh4RW6LenQ==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-17.3.5.tgz",
+ "integrity": "sha512-lTubBFNlpH9zK46+yeVI7VJQNUELLAB8W1ucndYLCA9Rr9Jop+rYIXijmr42AGokOYr7yLc8HRiSQ5e+X2pUQg==",
"dependencies": {
"tslib": "^2.3.0"
},
@@ -476,7 +476,7 @@
"node": "^18.13.0 || >=20.9.0"
},
"peerDependencies": {
- "@angular/core": "17.3.4"
+ "@angular/core": "17.3.5"
},
"peerDependenciesMeta": {
"@angular/core": {
@@ -485,9 +485,9 @@
}
},
"node_modules/@angular/compiler-cli": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-17.3.4.tgz",
- "integrity": "sha512-TVWjpZSI/GIXTYsmVgEKYjBckcW8Aj62DcxLNehRFR+c7UB95OY3ZFjU8U4jL0XvWPgTkkVWQVq+P6N4KCBsyw==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-17.3.5.tgz",
+ "integrity": "sha512-R53JNbbVDHWSGdL0e2vGQ5iJCrILOWZ1oemKjekOFB93fUBlEyi+nZmm4uTO7RU8PgjB0UpxI6ok5ZE3Amkt6A==",
"dependencies": {
"@babel/core": "7.23.9",
"@jridgewell/sourcemap-codec": "^1.4.14",
@@ -507,7 +507,7 @@
"node": "^18.13.0 || >=20.9.0"
},
"peerDependencies": {
- "@angular/compiler": "17.3.4",
+ "@angular/compiler": "17.3.5",
"typescript": ">=5.2 <5.5"
}
},
@@ -554,9 +554,9 @@
}
},
"node_modules/@angular/core": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/core/-/core-17.3.4.tgz",
- "integrity": "sha512-fvhBkfa/DDBzp1UcNzSxHj+Z9DebSS/o9pZpZlbu/0uEiu9hScmScnhaty5E0EbutzHB0SVUCz7zZuDeAywvWg==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/core/-/core-17.3.5.tgz",
+ "integrity": "sha512-y6P27lcrKy3yMx/rtMuGsAnDyVEsS3BdyArTXcD0TOImVGHhVIaB0L95DUCam3ajTe2f2x39eozJZDh7QSpJaw==",
"dependencies": {
"tslib": "^2.3.0"
},
@@ -569,9 +569,9 @@
}
},
"node_modules/@angular/forms": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-17.3.4.tgz",
- "integrity": "sha512-XWA/FAs0r7VRdztMIfGU9EE0Chj+1U/sDnzJK3ZPO0n8F8oDAEWGJyiw8GIyWTLs+mz43thVIED3DhbRNsXbWw==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-17.3.5.tgz",
+ "integrity": "sha512-Rf/8XWHdFYZQaOVTJ0QVwxQm9fDqQqIJc0yfPcH/DYL5pT7R0U2z98I5McZawzUBJUo1Zt1gijzDlzNUGf6jiA==",
"dependencies": {
"tslib": "^2.3.0"
},
@@ -579,25 +579,25 @@
"node": "^18.13.0 || >=20.9.0"
},
"peerDependencies": {
- "@angular/common": "17.3.4",
- "@angular/core": "17.3.4",
- "@angular/platform-browser": "17.3.4",
+ "@angular/common": "17.3.5",
+ "@angular/core": "17.3.5",
+ "@angular/platform-browser": "17.3.5",
"rxjs": "^6.5.3 || ^7.4.0"
}
},
"node_modules/@angular/language-service": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-17.3.4.tgz",
- "integrity": "sha512-CgLg/7P0+NEeGU+vqvoG0rh2ns5iyfi/UO4JTxN1iMjuFBAUhGHxjiItPy8cN2XK/dWgOhXAFe4oqxA4dMBp/Q==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-17.3.5.tgz",
+ "integrity": "sha512-s3W5o+pRPU3jNWeeyO4XEdc28+s4MPhew+k0meQfZ11VMdmShzwFu5nPgOMmLB3fBhQqlSBrHUh1P9SB7Hu3FQ==",
"dev": true,
"engines": {
"node": "^18.13.0 || >=20.9.0"
}
},
"node_modules/@angular/localize": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/localize/-/localize-17.3.4.tgz",
- "integrity": "sha512-sNViKDiu/sdeaeyOYSdaifigdj1hjwcivxEoqw2k/GI4hlVtEtOZrqZUfgT4PycGpE4mizdwgRYX+NvKY0D5uQ==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/localize/-/localize-17.3.5.tgz",
+ "integrity": "sha512-/5iKRvnleA2vsf8zqNZaXeOBjFFq3FLrbot+ygfmk3uYqz949X0nXrXBKk9kpakw/WC6kgzK+tmiEHKQY6cLiQ==",
"dependencies": {
"@babel/core": "7.23.9",
"@types/babel__core": "7.20.5",
@@ -613,8 +613,8 @@
"node": "^18.13.0 || >=20.9.0"
},
"peerDependencies": {
- "@angular/compiler": "17.3.4",
- "@angular/compiler-cli": "17.3.4"
+ "@angular/compiler": "17.3.5",
+ "@angular/compiler-cli": "17.3.5"
}
},
"node_modules/@angular/localize/node_modules/@babel/core": {
@@ -660,9 +660,9 @@
}
},
"node_modules/@angular/platform-browser": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-17.3.4.tgz",
- "integrity": "sha512-W2nH9WSQJfdNG4HH9B1Cvj5CTmy9gF3321I+65Tnb8jFmpeljYDBC/VVUhTZUCRpg8udMWeMHEQHuSb8CbozmQ==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-17.3.5.tgz",
+ "integrity": "sha512-ITlu/GTD64Sr0FMaFCJiHoTJrEZw8qRFXjPjv3BKhAp5dQKcwnCm02o1NOaj5d8oIItIh5fbI2zP0CSU2qNZkQ==",
"dependencies": {
"tslib": "^2.3.0"
},
@@ -670,9 +670,9 @@
"node": "^18.13.0 || >=20.9.0"
},
"peerDependencies": {
- "@angular/animations": "17.3.4",
- "@angular/common": "17.3.4",
- "@angular/core": "17.3.4"
+ "@angular/animations": "17.3.5",
+ "@angular/common": "17.3.5",
+ "@angular/core": "17.3.5"
},
"peerDependenciesMeta": {
"@angular/animations": {
@@ -681,9 +681,9 @@
}
},
"node_modules/@angular/platform-browser-dynamic": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-17.3.4.tgz",
- "integrity": "sha512-S53jPyQtInVYkjdGEFt4dxM1NrHNkWCvXGRsCO7Uh+laDf1OpIDp9YHf49OZohYLajJradN6y4QfdZL6IUwXKA==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-17.3.5.tgz",
+ "integrity": "sha512-KuS4j3Gh1h/CEj+bIOc/IcZIdiCB/DNbtUvz1eNp1o23aM8QutqelI3A4WBnQuR4yq8Z/8M3FH9F1OVwwhn2QQ==",
"dependencies": {
"tslib": "^2.3.0"
},
@@ -691,16 +691,16 @@
"node": "^18.13.0 || >=20.9.0"
},
"peerDependencies": {
- "@angular/common": "17.3.4",
- "@angular/compiler": "17.3.4",
- "@angular/core": "17.3.4",
- "@angular/platform-browser": "17.3.4"
+ "@angular/common": "17.3.5",
+ "@angular/compiler": "17.3.5",
+ "@angular/core": "17.3.5",
+ "@angular/platform-browser": "17.3.5"
}
},
"node_modules/@angular/router": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@angular/router/-/router-17.3.4.tgz",
- "integrity": "sha512-B1zjUYyhN66dp47zdF96NRwo0dEdM5In4Ob8HN64PAbnaK3y1EPp31aN6EGernPvKum1ibgwSZw+Uwnbkuv7Ww==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@angular/router/-/router-17.3.5.tgz",
+ "integrity": "sha512-KsIIs3t9IpxsdMSrJDZzO5WgIWkVE6Ep5WWiSyPIgEfA+ndGpJLmyv0d/r1yKKlYUJxz7Hde55o4thgT2n2x/A==",
"dependencies": {
"tslib": "^2.3.0"
},
@@ -708,9 +708,9 @@
"node": "^18.13.0 || >=20.9.0"
},
"peerDependencies": {
- "@angular/common": "17.3.4",
- "@angular/core": "17.3.4",
- "@angular/platform-browser": "17.3.4",
+ "@angular/common": "17.3.5",
+ "@angular/core": "17.3.5",
+ "@angular/platform-browser": "17.3.5",
"rxjs": "^6.5.3 || ^7.4.0"
}
},
@@ -3262,9 +3262,9 @@
}
},
"node_modules/@ngtools/webpack": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-17.3.4.tgz",
- "integrity": "sha512-3uNX4tRTKPm91mSQcnmQtqDMMKLGDevJERSPJU7hlOXZZ05QrT4et1mwvXNYYMpXqi2OkC7D4ryIS2YxAiItBA==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-17.3.5.tgz",
+ "integrity": "sha512-0heI0yHUckdGI8uywu/wkp24KR/tdYMKYJOaYIU+9JydyN1zJRpbR7x0thddl7+k/zu2ZGbfFdv1779Ecw/xdA==",
"dev": true,
"engines": {
"node": "^18.13.0 || >=20.9.0",
@@ -3384,9 +3384,9 @@
}
},
"node_modules/@npmcli/git/node_modules/proc-log": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-4.0.0.tgz",
- "integrity": "sha512-v1lzmYxGDs2+OZnmYtYZK3DG8zogt+CbQ+o/iqqtTfpyCmGWulCTEQu5GIbivf7OjgIkH2Nr8SH8UxAGugZNbg==",
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-4.2.0.tgz",
+ "integrity": "sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA==",
"dev": true,
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@@ -3473,9 +3473,9 @@
}
},
"node_modules/@npmcli/package-json/node_modules/proc-log": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-4.0.0.tgz",
- "integrity": "sha512-v1lzmYxGDs2+OZnmYtYZK3DG8zogt+CbQ+o/iqqtTfpyCmGWulCTEQu5GIbivf7OjgIkH2Nr8SH8UxAGugZNbg==",
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-4.2.0.tgz",
+ "integrity": "sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA==",
"dev": true,
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@@ -3567,21 +3567,21 @@
}
},
"node_modules/@nrwl/devkit": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-18.2.4.tgz",
- "integrity": "sha512-dLK8MMb3eEFWlhtI1kNDNbWIT1Xbrgg3eAQ+Ix/N5JDbxJkJhE28WsIJgQb1NTwe/N87O5JtOpxz4/TsSLJCsQ==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-18.3.1.tgz",
+ "integrity": "sha512-GanGBjkJbe2J63Ntzi7L66Z1O0Ck9UI07pep9HM5d7lrscbJi80Sr8EoLKbOz2gBXXpRoxARA0ZehmCgyrSxdA==",
"dev": true,
"dependencies": {
- "@nx/devkit": "18.2.4"
+ "@nx/devkit": "18.3.1"
}
},
"node_modules/@nrwl/tao": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-18.2.4.tgz",
- "integrity": "sha512-kgJwZ26F+AzvFXaW5eh1g4HLntPcJ6+EE7JyEvrdRzpw7KxTqWy6Ql7dYys6zGlpP4c3PbsXwdc7tGM3Df2PNg==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-18.3.1.tgz",
+ "integrity": "sha512-mDKuTooqeyA3i5Cmr6u2sFL/KQ1jS6ibVoOhAEAN0DACA4UtPor1ABTRMCiU4ZObRI49E5Gp2W18RacHjR4puQ==",
"dev": true,
"dependencies": {
- "nx": "18.2.4",
+ "nx": "18.3.1",
"tslib": "^2.3.0"
},
"bin": {
@@ -3589,12 +3589,12 @@
}
},
"node_modules/@nx/devkit": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-18.2.4.tgz",
- "integrity": "sha512-Ws3BcA/aeXuwsCQ5e7PYy2H7DswareTOEfgs7izxNyGugpydktVH9DZZTOFNDsc06yzgvyTucDbDQ+JsrJ9PcQ==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-18.3.1.tgz",
+ "integrity": "sha512-BVhDF+euSzXBeNkBu6kRQL1mc7/48x+8w3TpB+JHMh6chJKRL6axKySwnnSYbApqwsgAZBT8ZTWwptkk6Riykw==",
"dev": true,
"dependencies": {
- "@nrwl/devkit": "18.2.4",
+ "@nrwl/devkit": "18.3.1",
"ejs": "^3.1.7",
"enquirer": "~2.3.6",
"ignore": "^5.0.4",
@@ -3604,13 +3604,13 @@
"yargs-parser": "21.1.1"
},
"peerDependencies": {
- "nx": ">= 16 <= 18"
+ "nx": ">= 16 <= 19"
}
},
"node_modules/@nx/nx-darwin-arm64": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-18.2.4.tgz",
- "integrity": "sha512-RYhMImghdyHmwnbNoR2CkLz4Opj9EmuHY3lMfsorg+T4wIOql/iXACrqjnreN7Hy9myJDo1EIbYZ4x8VSxFWtA==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-18.3.1.tgz",
+ "integrity": "sha512-nUIySQHyK/6NX1v10DZJR4ftNi3GLwdb6IhaBRJfS4oXvVG7prfamisSKPED4lNB316Fe6hF/1C8FNaQ4M9j6w==",
"cpu": [
"arm64"
],
@@ -3624,9 +3624,9 @@
}
},
"node_modules/@nx/nx-darwin-x64": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-18.2.4.tgz",
- "integrity": "sha512-2mXMslSRD/ZoI/oaX+0Mh9J/hucXtNgdwC4YFbp1u8UKquAaQ6hf4uo0s4i+AfLX0F7roMtkFPaG/+MQUJE1Rw==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-18.3.1.tgz",
+ "integrity": "sha512-b/USfu7M3ePasidY0fgNlcyi18uxPQ0SKXRSUJ/veVBc+I5wfmYmcoXIQhFRnfnbRoYA7CqsNONZ3+rO/GCIgw==",
"cpu": [
"x64"
],
@@ -3640,9 +3640,9 @@
}
},
"node_modules/@nx/nx-freebsd-x64": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-18.2.4.tgz",
- "integrity": "sha512-QUiYLvyUT0PS7D8erf49xa1Jyw4Gfev5gtYfME34Twmn/JPx/99ZkBG4wHbzLqRGwlO5K6m6P4qs30Pzfwtw7A==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-18.3.1.tgz",
+ "integrity": "sha512-4/5GKlAiBvLa3Jx4LpjlAOGsMQQU+bbTnocbLmYevYnuszTCdq/o7DP85lPEwLi+GjapH7kgeH08OgVRxwwvlw==",
"cpu": [
"x64"
],
@@ -3656,9 +3656,9 @@
}
},
"node_modules/@nx/nx-linux-arm-gnueabihf": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-18.2.4.tgz",
- "integrity": "sha512-+fjFciSUhvDV8dPa97Brwb83k3Xa4gHPI2Un8wlpp28Cv4horeGruRZrrifR1VmD2wp2UBIMl5n7YsDP8KvYhQ==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-18.3.1.tgz",
+ "integrity": "sha512-+9fryIMdQ4Jm+nJVjPehitqo9NisMxAfkeCr+3F2GRYTrzR83QXRlxCPsg5LvujmmRBj/AeiWo3WprYIdXIsvQ==",
"cpu": [
"arm"
],
@@ -3672,9 +3672,9 @@
}
},
"node_modules/@nx/nx-linux-arm64-gnu": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-18.2.4.tgz",
- "integrity": "sha512-lfaTc+AvV56Uv5mXROiRwh2REiI/7IsqeRDfL+prcuuvJ5Oxi2wYVgnmqcHL+ryQnk0Qn7/d+j/BmYHX5Ve5jQ==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-18.3.1.tgz",
+ "integrity": "sha512-Gzlumv5xdm9pNc73VzaMpoRkV+1UMz2WwzuDWXQ5sLVUVe92aCUdw/cMMKs48zC71Xc+gX7DvOfdwvqyNyhNZA==",
"cpu": [
"arm64"
],
@@ -3688,9 +3688,9 @@
}
},
"node_modules/@nx/nx-linux-arm64-musl": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-18.2.4.tgz",
- "integrity": "sha512-U6eoLTQmbxUWU9kZxx6hsYN4zmmOrsDDeW+i3aj5aeahfYlmyz6TsT0V3FSB70WGJC5aMVgEi4RkntQMKkm5vQ==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-18.3.1.tgz",
+ "integrity": "sha512-zm2cf6rxlWJPxFOBTntstl9dCDtdheJQ9Vo/sv3icV1kIZTC/2jkhLUqNxslRc0v0q9qQgK2oP0dji1TMC+88g==",
"cpu": [
"arm64"
],
@@ -3704,9 +3704,9 @@
}
},
"node_modules/@nx/nx-linux-x64-gnu": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-18.2.4.tgz",
- "integrity": "sha512-q8WcJhmcRNORkKjax6WcUwMJe/1mQs+RYlUkGqmi7tD7lfcLSqdLPJVjqVmQAwmy1Wh/MHPsbqRwSerUnCxB1A==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-18.3.1.tgz",
+ "integrity": "sha512-9W/lPEWuiGDkZyGix2xikFjyAO25+J/tQ1PBIeSJ3HOufwcru52cYS726/0KpxxIVt54noLED6zP9fN/zXZjag==",
"cpu": [
"x64"
],
@@ -3720,9 +3720,9 @@
}
},
"node_modules/@nx/nx-linux-x64-musl": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-18.2.4.tgz",
- "integrity": "sha512-0MDuoPgHa6kkBrjg7hwZ2qQivhJbh3lk7r3q4osDrqZcGxq5XVJqeAmYFyChQy4dbQfUm4hhYkEfzpU8M2lnvQ==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-18.3.1.tgz",
+ "integrity": "sha512-RD+Ku/7exvw/kmTGqeD71S6H3Rvv4hZT6Ki67pbWlAk2GFc8W9nyy4zek77MeSrkoI0fXk/WFFos89V3n0Dwiw==",
"cpu": [
"x64"
],
@@ -3736,9 +3736,9 @@
}
},
"node_modules/@nx/nx-win32-arm64-msvc": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-18.2.4.tgz",
- "integrity": "sha512-uLhSRtfnXzN000Qf27GOjEPXzd4/jBWqv2x419IMh+AEtKHuCEpQNBUAyLvBbQ79SMr+FmCXHB8AeeJ7bEUiRw==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-18.3.1.tgz",
+ "integrity": "sha512-RbD5CuOnPpVzgasFlEMvIvDffuHh0JvJlNRWuZ2O7xw/8FoqKGqlnkGpNStqd95qQs7dvxTaYIHigdlp3A5WIQ==",
"cpu": [
"arm64"
],
@@ -3752,9 +3752,9 @@
}
},
"node_modules/@nx/nx-win32-x64-msvc": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-18.2.4.tgz",
- "integrity": "sha512-Y52Afz02Ub1kRZXd6NUTwPMjKQqBKZ35e5dUEpl14na2fWvdgdMz4bYOBPUcmQrovlxBGhmFXtFzxkdW3zyRbQ==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-18.3.1.tgz",
+ "integrity": "sha512-M9IQMXdTljLM1L1+WHHGXPSLP5Z+HJbIhuUqrt7iPEYJjQ75bWkRfxMERDTclttMXOTbY847fZWnu6lS99g8Bw==",
"cpu": [
"x64"
],
@@ -4093,13 +4093,13 @@
}
},
"node_modules/@schematics/angular": {
- "version": "17.3.4",
- "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-17.3.4.tgz",
- "integrity": "sha512-Rqhp5l76Ej6BOZCHPrvHlA2SBkjv1aHFWAfW9gREke826j46D+fuA0eDAdgeVTz0Fx9e7XM3LdtWsz7CBlV4Ug==",
+ "version": "17.3.5",
+ "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-17.3.5.tgz",
+ "integrity": "sha512-SWCK16Eob0K86hpZ3NHmrTS6LSzTlhvnIdf3BXC6nzoiyDhcAS0oJ2Tjdq1opW/PaL1hB7MulcbIhxYln5du0w==",
"dev": true,
"dependencies": {
- "@angular-devkit/core": "17.3.4",
- "@angular-devkit/schematics": "17.3.4",
+ "@angular-devkit/core": "17.3.5",
+ "@angular-devkit/schematics": "17.3.5",
"jsonc-parser": "3.2.1"
},
"engines": {
@@ -4421,9 +4421,9 @@
}
},
"node_modules/@types/qs": {
- "version": "6.9.14",
- "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.14.tgz",
- "integrity": "sha512-5khscbd3SwWMhFqylJBLQ0zIu7c1K6Vz0uBIt915BI3zV0q1nfjRQD3RqSBcPaO6PHEF4ov/t9y89fSiyThlPA==",
+ "version": "6.9.15",
+ "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.15.tgz",
+ "integrity": "sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg==",
"dev": true
},
"node_modules/@types/range-parser": {
@@ -4499,16 +4499,16 @@
}
},
"node_modules/@typescript-eslint/eslint-plugin": {
- "version": "7.6.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.6.0.tgz",
- "integrity": "sha512-gKmTNwZnblUdnTIJu3e9kmeRRzV2j1a/LUO27KNNAnIC5zjy1aSvXSRp4rVNlmAoHlQ7HzX42NbKpcSr4jF80A==",
+ "version": "7.7.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.7.0.tgz",
+ "integrity": "sha512-GJWR0YnfrKnsRoluVO3PRb9r5aMZriiMMM/RHj5nnTrBy1/wIgk76XCtCKcnXGjpZQJQRFtGV9/0JJ6n30uwpQ==",
"dev": true,
"dependencies": {
"@eslint-community/regexpp": "^4.10.0",
- "@typescript-eslint/scope-manager": "7.6.0",
- "@typescript-eslint/type-utils": "7.6.0",
- "@typescript-eslint/utils": "7.6.0",
- "@typescript-eslint/visitor-keys": "7.6.0",
+ "@typescript-eslint/scope-manager": "7.7.0",
+ "@typescript-eslint/type-utils": "7.7.0",
+ "@typescript-eslint/utils": "7.7.0",
+ "@typescript-eslint/visitor-keys": "7.7.0",
"debug": "^4.3.4",
"graphemer": "^1.4.0",
"ignore": "^5.3.1",
@@ -4534,13 +4534,13 @@
}
},
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/type-utils": {
- "version": "7.6.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.6.0.tgz",
- "integrity": "sha512-NxAfqAPNLG6LTmy7uZgpK8KcuiS2NZD/HlThPXQRGwz6u7MDBWRVliEEl1Gj6U7++kVJTpehkhZzCJLMK66Scw==",
+ "version": "7.7.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.7.0.tgz",
+ "integrity": "sha512-bOp3ejoRYrhAlnT/bozNQi3nio9tIgv3U5C0mVDdZC7cpcQEDZXvq8inrHYghLVwuNABRqrMW5tzAv88Vy77Sg==",
"dev": true,
"dependencies": {
- "@typescript-eslint/typescript-estree": "7.6.0",
- "@typescript-eslint/utils": "7.6.0",
+ "@typescript-eslint/typescript-estree": "7.7.0",
+ "@typescript-eslint/utils": "7.7.0",
"debug": "^4.3.4",
"ts-api-utils": "^1.3.0"
},
@@ -4561,17 +4561,17 @@
}
},
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": {
- "version": "7.6.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.6.0.tgz",
- "integrity": "sha512-x54gaSsRRI+Nwz59TXpCsr6harB98qjXYzsRxGqvA5Ue3kQH+FxS7FYU81g/omn22ML2pZJkisy6Q+ElK8pBCA==",
+ "version": "7.7.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.7.0.tgz",
+ "integrity": "sha512-LKGAXMPQs8U/zMRFXDZOzmMKgFv3COlxUQ+2NMPhbqgVm6R1w+nU1i4836Pmxu9jZAuIeyySNrN/6Rc657ggig==",
"dev": true,
"dependencies": {
"@eslint-community/eslint-utils": "^4.4.0",
"@types/json-schema": "^7.0.15",
"@types/semver": "^7.5.8",
- "@typescript-eslint/scope-manager": "7.6.0",
- "@typescript-eslint/types": "7.6.0",
- "@typescript-eslint/typescript-estree": "7.6.0",
+ "@typescript-eslint/scope-manager": "7.7.0",
+ "@typescript-eslint/types": "7.7.0",
+ "@typescript-eslint/typescript-estree": "7.7.0",
"semver": "^7.6.0"
},
"engines": {
@@ -4586,15 +4586,15 @@
}
},
"node_modules/@typescript-eslint/parser": {
- "version": "7.6.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.6.0.tgz",
- "integrity": "sha512-usPMPHcwX3ZoPWnBnhhorc14NJw9J4HpSXQX4urF2TPKG0au0XhJoZyX62fmvdHONUkmyUe74Hzm1//XA+BoYg==",
+ "version": "7.7.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.7.0.tgz",
+ "integrity": "sha512-fNcDm3wSwVM8QYL4HKVBggdIPAy9Q41vcvC/GtDobw3c4ndVT3K6cqudUmjHPw8EAp4ufax0o58/xvWaP2FmTg==",
"dev": true,
"dependencies": {
- "@typescript-eslint/scope-manager": "7.6.0",
- "@typescript-eslint/types": "7.6.0",
- "@typescript-eslint/typescript-estree": "7.6.0",
- "@typescript-eslint/visitor-keys": "7.6.0",
+ "@typescript-eslint/scope-manager": "7.7.0",
+ "@typescript-eslint/types": "7.7.0",
+ "@typescript-eslint/typescript-estree": "7.7.0",
+ "@typescript-eslint/visitor-keys": "7.7.0",
"debug": "^4.3.4"
},
"engines": {
@@ -4614,13 +4614,13 @@
}
},
"node_modules/@typescript-eslint/scope-manager": {
- "version": "7.6.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.6.0.tgz",
- "integrity": "sha512-ngttyfExA5PsHSx0rdFgnADMYQi+Zkeiv4/ZxGYUWd0nLs63Ha0ksmp8VMxAIC0wtCFxMos7Lt3PszJssG/E6w==",
+ "version": "7.7.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.7.0.tgz",
+ "integrity": "sha512-/8INDn0YLInbe9Wt7dK4cXLDYp0fNHP5xKLHvZl3mOT5X17rK/YShXaiNmorl+/U4VKCVIjJnx4Ri5b0y+HClw==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "7.6.0",
- "@typescript-eslint/visitor-keys": "7.6.0"
+ "@typescript-eslint/types": "7.7.0",
+ "@typescript-eslint/visitor-keys": "7.7.0"
},
"engines": {
"node": "^18.18.0 || >=20.0.0"
@@ -4731,9 +4731,9 @@
}
},
"node_modules/@typescript-eslint/types": {
- "version": "7.6.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.6.0.tgz",
- "integrity": "sha512-h02rYQn8J+MureCvHVVzhl69/GAfQGPQZmOMjG1KfCl7o3HtMSlPaPUAPu6lLctXI5ySRGIYk94clD/AUMCUgQ==",
+ "version": "7.7.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.7.0.tgz",
+ "integrity": "sha512-G01YPZ1Bd2hn+KPpIbrAhEWOn5lQBrjxkzHkWvP6NucMXFtfXoevK82hzQdpfuQYuhkvFDeQYbzXCjR1z9Z03w==",
"dev": true,
"engines": {
"node": "^18.18.0 || >=20.0.0"
@@ -4744,13 +4744,13 @@
}
},
"node_modules/@typescript-eslint/typescript-estree": {
- "version": "7.6.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.6.0.tgz",
- "integrity": "sha512-+7Y/GP9VuYibecrCQWSKgl3GvUM5cILRttpWtnAu8GNL9j11e4tbuGZmZjJ8ejnKYyBRb2ddGQ3rEFCq3QjMJw==",
+ "version": "7.7.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.7.0.tgz",
+ "integrity": "sha512-8p71HQPE6CbxIBy2kWHqM1KGrC07pk6RJn40n0DSc6bMOBBREZxSDJ+BmRzc8B5OdaMh1ty3mkuWRg4sCFiDQQ==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "7.6.0",
- "@typescript-eslint/visitor-keys": "7.6.0",
+ "@typescript-eslint/types": "7.7.0",
+ "@typescript-eslint/visitor-keys": "7.7.0",
"debug": "^4.3.4",
"globby": "^11.1.0",
"is-glob": "^4.0.3",
@@ -4887,12 +4887,12 @@
}
},
"node_modules/@typescript-eslint/visitor-keys": {
- "version": "7.6.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.6.0.tgz",
- "integrity": "sha512-4eLB7t+LlNUmXzfOu1VAIAdkjbu5xNSerURS9X/S5TUKWFRpXRQZbmtPqgKmYx8bj3J0irtQXSiWAOY82v+cgw==",
+ "version": "7.7.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.7.0.tgz",
+ "integrity": "sha512-h0WHOj8MhdhY8YWkzIF30R379y0NqyOHExI9N9KCzvmu05EgG4FumeYa3ccfKUSphyWkWQE1ybVrgz/Pbam6YA==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "7.6.0",
+ "@typescript-eslint/types": "7.7.0",
"eslint-visitor-keys": "^3.4.3"
},
"engines": {
@@ -5888,9 +5888,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001610",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001610.tgz",
- "integrity": "sha512-QFutAY4NgaelojVMjY63o6XlZyORPaLfyMnsl3HgnWdJUcX6K0oaJymHjH8PT5Gk7sTm8rvC/c5COUQKXqmOMA==",
+ "version": "1.0.30001611",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001611.tgz",
+ "integrity": "sha512-19NuN1/3PjA3QI8Eki55N8my4LzfkMCRLgCVfrl/slbSAchQfV0+GwjPrK3rq37As4UCLlM/DHajbKkAqbv92Q==",
"funding": [
{
"type": "opencollective",
@@ -6379,9 +6379,9 @@
}
},
"node_modules/core-js-compat": {
- "version": "3.36.1",
- "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.36.1.tgz",
- "integrity": "sha512-Dk997v9ZCt3X/npqzyGdTlq6t7lDBhZwGvV94PKzDArjp7BTRm7WlDAXYd/OWdeFHO8OChQYRJNJvUCqCbrtKA==",
+ "version": "3.37.0",
+ "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.37.0.tgz",
+ "integrity": "sha512-vYq4L+T8aS5UuFg4UwDhc7YNRWVeVZwltad9C/jV3R2LgVOpS9BDr7l/WL6BN0dbV3k1XejPTHqqEzJgsa0frA==",
"dev": true,
"dependencies": {
"browserslist": "^4.23.0"
@@ -6949,9 +6949,9 @@
}
},
"node_modules/electron-to-chromium": {
- "version": "1.4.736",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.736.tgz",
- "integrity": "sha512-Rer6wc3ynLelKNM4lOCg7/zPQj8tPOCB2hzD32PX9wd3hgRRi9MxEbmkFCokzcEhRVMiOVLjnL9ig9cefJ+6+Q=="
+ "version": "1.4.740",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.740.tgz",
+ "integrity": "sha512-Yvg5i+iyv7Xm18BRdVPVm8lc7kgxM3r6iwqCH2zB7QZy1kZRNmd0Zqm0zcD9XoFREE5/5rwIuIAOT+/mzGcnZg=="
},
"node_modules/emoji-regex": {
"version": "8.0.0",
@@ -11054,9 +11054,9 @@
}
},
"node_modules/npm-registry-fetch/node_modules/proc-log": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-4.0.0.tgz",
- "integrity": "sha512-v1lzmYxGDs2+OZnmYtYZK3DG8zogt+CbQ+o/iqqtTfpyCmGWulCTEQu5GIbivf7OjgIkH2Nr8SH8UxAGugZNbg==",
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-4.2.0.tgz",
+ "integrity": "sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA==",
"dev": true,
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@@ -11087,13 +11087,13 @@
}
},
"node_modules/nx": {
- "version": "18.2.4",
- "resolved": "https://registry.npmjs.org/nx/-/nx-18.2.4.tgz",
- "integrity": "sha512-GxqJcDOhfLa9jsPmip0jG73CZKA96wCryss2DhixCiCU66I3GLYF4+585ObO8Tx7Z1GqhT92RaNGjCxjMIwaPg==",
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/nx/-/nx-18.3.1.tgz",
+ "integrity": "sha512-2fnGMkhroul7GVrMLNeAsBzzwjdvKTzZ8X/Fr6VuvpNqgtsnre1Kz1f1WKvblOMWNh7c7aaTQFNeA02GgYUPKg==",
"dev": true,
"hasInstallScript": true,
"dependencies": {
- "@nrwl/tao": "18.2.4",
+ "@nrwl/tao": "18.3.1",
"@yarnpkg/lockfile": "^1.1.0",
"@yarnpkg/parsers": "3.0.0-rc.46",
"@zkochan/js-yaml": "0.0.6",
@@ -11133,16 +11133,16 @@
"nx-cloud": "bin/nx-cloud.js"
},
"optionalDependencies": {
- "@nx/nx-darwin-arm64": "18.2.4",
- "@nx/nx-darwin-x64": "18.2.4",
- "@nx/nx-freebsd-x64": "18.2.4",
- "@nx/nx-linux-arm-gnueabihf": "18.2.4",
- "@nx/nx-linux-arm64-gnu": "18.2.4",
- "@nx/nx-linux-arm64-musl": "18.2.4",
- "@nx/nx-linux-x64-gnu": "18.2.4",
- "@nx/nx-linux-x64-musl": "18.2.4",
- "@nx/nx-win32-arm64-msvc": "18.2.4",
- "@nx/nx-win32-x64-msvc": "18.2.4"
+ "@nx/nx-darwin-arm64": "18.3.1",
+ "@nx/nx-darwin-x64": "18.3.1",
+ "@nx/nx-freebsd-x64": "18.3.1",
+ "@nx/nx-linux-arm-gnueabihf": "18.3.1",
+ "@nx/nx-linux-arm64-gnu": "18.3.1",
+ "@nx/nx-linux-arm64-musl": "18.3.1",
+ "@nx/nx-linux-x64-gnu": "18.3.1",
+ "@nx/nx-linux-x64-musl": "18.3.1",
+ "@nx/nx-win32-arm64-msvc": "18.3.1",
+ "@nx/nx-win32-x64-msvc": "18.3.1"
},
"peerDependencies": {
"@swc-node/register": "^1.8.0",
@@ -13892,9 +13892,9 @@
"dev": true
},
"node_modules/typescript": {
- "version": "5.3.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
- "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==",
+ "version": "5.4.5",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
+ "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
diff --git a/package.json b/package.json
index e8d66cbd..ad77f3f1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "coreui-angular-dev",
- "version": "5.0.2",
+ "version": "5.0.3",
"description": "CoreUI Components Library for Angular",
"copyright": "Copyright 2024 creativeLabs Łukasz Holeczek",
"license": "MIT",
@@ -36,16 +36,16 @@
},
"private": true,
"dependencies": {
- "@angular/animations": "^17.3.4",
- "@angular/cdk": "^17.3.4",
- "@angular/common": "^17.3.4",
- "@angular/compiler": "^17.3.4",
- "@angular/core": "^17.3.4",
- "@angular/forms": "^17.3.4",
- "@angular/localize": "^17.3.4",
- "@angular/platform-browser": "^17.3.4",
- "@angular/platform-browser-dynamic": "^17.3.4",
- "@angular/router": "^17.3.4",
+ "@angular/animations": "^17.3.5",
+ "@angular/cdk": "^17.3.5",
+ "@angular/common": "^17.3.5",
+ "@angular/compiler": "^17.3.5",
+ "@angular/core": "^17.3.5",
+ "@angular/forms": "^17.3.5",
+ "@angular/localize": "^17.3.5",
+ "@angular/platform-browser": "^17.3.5",
+ "@angular/platform-browser-dynamic": "^17.3.5",
+ "@angular/router": "^17.3.5",
"@coreui/chartjs": "^4.0.0",
"@coreui/icons": "^3.0.1",
"@popperjs/core": "~2.11.8",
@@ -56,20 +56,20 @@
"zone.js": "~0.14.4"
},
"devDependencies": {
- "@angular-devkit/build-angular": "^17.3.4",
+ "@angular-devkit/build-angular": "^17.3.5",
"@angular-eslint/builder": "^17.3.0",
"@angular-eslint/eslint-plugin": "^17.3.0",
"@angular-eslint/eslint-plugin-template": "^17.3.0",
"@angular-eslint/schematics": "^17.3.0",
"@angular-eslint/template-parser": "^17.3.0",
- "@angular/cli": "^17.3.4",
- "@angular/compiler-cli": "^17.3.4",
- "@angular/language-service": "^17.3.4",
+ "@angular/cli": "^17.3.5",
+ "@angular/compiler-cli": "^17.3.5",
+ "@angular/language-service": "^17.3.5",
"@types/jasmine": "^5.1.4",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.12.7",
- "@typescript-eslint/eslint-plugin": "^7.6.0",
- "@typescript-eslint/parser": "^7.6.0",
+ "@typescript-eslint/eslint-plugin": "^7.7.0",
+ "@typescript-eslint/parser": "^7.7.0",
"eslint": "^8.57.0",
"jasmine-core": "^5.1.2",
"karma": "^6.4.3",
@@ -79,7 +79,7 @@
"karma-jasmine-html-reporter": "^2.1.0",
"ng-packagr": "^17.3.0",
"prettier": "^3.2.5",
- "typescript": "~5.3.3"
+ "typescript": "~5.4.2"
},
"keywords": [
"angular",
diff --git a/projects/coreui-angular-chartjs/package.json b/projects/coreui-angular-chartjs/package.json
index df7256ab..4da6f051 100644
--- a/projects/coreui-angular-chartjs/package.json
+++ b/projects/coreui-angular-chartjs/package.json
@@ -1,6 +1,6 @@
{
"name": "@coreui/angular-chartjs",
- "version": "5.0.2",
+ "version": "5.0.3",
"description": "Angular wrapper component for Chart.js",
"copyright": "Copyright 2024 creativeLabs Łukasz Holeczek",
"license": "MIT",
@@ -26,7 +26,7 @@
},
"peerDependencies": {
"@angular/core": "^17.3.0",
- "@coreui/chartjs": "^4.0.0-0 || ^4.0.0",
+ "@coreui/chartjs": "^4.0.0",
"chart.js": "^4.4.2"
},
"dependencies": {
diff --git a/projects/coreui-angular-chartjs/src/lib/chartjs.component.spec.ts b/projects/coreui-angular-chartjs/src/lib/chartjs.component.spec.ts
index 2c94c915..e14365dd 100644
--- a/projects/coreui-angular-chartjs/src/lib/chartjs.component.spec.ts
+++ b/projects/coreui-angular-chartjs/src/lib/chartjs.component.spec.ts
@@ -40,6 +40,7 @@ describe('ChartjsComponent', () => {
component = fixture.componentInstance;
component.data = undefined;
component.type = 'line';
+ component.wrapper = true;
});
it('chart should create', fakeAsync(() => {
@@ -83,4 +84,9 @@ describe('ChartjsComponent', () => {
expect(component.chart?.config?.data.labels?.length).toBe(5);
expect(component.chart?.config?.data.datasets[1]?.data.length).toBe(5);
}));
+
+ it('should have css classes', () => {
+ fixture.detectChanges();
+ expect(fixture.nativeElement).toHaveClass('chart-wrapper');
+ });
});
diff --git a/projects/coreui-angular/package.json b/projects/coreui-angular/package.json
index 90b3b9b8..fc310875 100644
--- a/projects/coreui-angular/package.json
+++ b/projects/coreui-angular/package.json
@@ -1,6 +1,6 @@
{
"name": "@coreui/angular",
- "version": "5.0.2",
+ "version": "5.0.3",
"description": "CoreUI Components Library for Angular",
"copyright": "Copyright 2024 creativeLabs Łukasz Holeczek",
"license": "MIT",
diff --git a/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.spec.ts b/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.spec.ts
index 7f07809c..be5f0e04 100644
--- a/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.spec.ts
+++ b/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.spec.ts
@@ -25,4 +25,8 @@ describe('AccordionItemComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('accordion-item');
+ });
});
diff --git a/projects/coreui-angular/src/lib/accordion/accordion/accordion.component.spec.ts b/projects/coreui-angular/src/lib/accordion/accordion/accordion.component.spec.ts
index 1f22dd17..2e2f494b 100644
--- a/projects/coreui-angular/src/lib/accordion/accordion/accordion.component.spec.ts
+++ b/projects/coreui-angular/src/lib/accordion/accordion/accordion.component.spec.ts
@@ -22,4 +22,8 @@ describe('AccordionComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('accordion');
+ });
});
diff --git a/projects/coreui-angular/src/lib/alert/alert.component.spec.ts b/projects/coreui-angular/src/lib/alert/alert.component.spec.ts
index 4101482a..82110a96 100644
--- a/projects/coreui-angular/src/lib/alert/alert.component.spec.ts
+++ b/projects/coreui-angular/src/lib/alert/alert.component.spec.ts
@@ -23,4 +23,8 @@ describe('AlertComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('alert');
+ });
});
diff --git a/projects/coreui-angular/src/lib/avatar/avatar.component.spec.ts b/projects/coreui-angular/src/lib/avatar/avatar.component.spec.ts
index 3bd06052..35566e8f 100644
--- a/projects/coreui-angular/src/lib/avatar/avatar.component.spec.ts
+++ b/projects/coreui-angular/src/lib/avatar/avatar.component.spec.ts
@@ -22,4 +22,8 @@ describe('AvatarComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('avatar');
+ });
});
diff --git a/projects/coreui-angular/src/lib/badge/badge.component.spec.ts b/projects/coreui-angular/src/lib/badge/badge.component.spec.ts
index 329138d6..ae6b84f3 100644
--- a/projects/coreui-angular/src/lib/badge/badge.component.spec.ts
+++ b/projects/coreui-angular/src/lib/badge/badge.component.spec.ts
@@ -8,9 +8,9 @@ describe('BadgeComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
- imports: [ BadgeComponent ]
+ imports: [BadgeComponent]
})
- .compileComponents();
+ .compileComponents();
});
beforeEach(() => {
@@ -22,4 +22,8 @@ describe('BadgeComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('badge');
+ });
});
diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.spec.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.spec.ts
index 78a36a10..a47e3c8b 100644
--- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.spec.ts
+++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.spec.ts
@@ -22,4 +22,8 @@ describe('BreadcrumbItemComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('breadcrumb-item');
+ });
});
diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.spec.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.spec.ts
index dbf844f6..cc0a3ccb 100644
--- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.spec.ts
+++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.spec.ts
@@ -1,6 +1,5 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
-import { RouterTestingModule } from '@angular/router/testing';
-import { Router } from '@angular/router';
+import { provideRouter, Router } from '@angular/router';
import { BreadcrumbRouterComponent } from './breadcrumb-router.component';
import { BreadcrumbRouterService } from './breadcrumb-router.service';
@@ -13,10 +12,9 @@ describe('BreadcrumbComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
- RouterTestingModule.withRoutes([]),
BreadcrumbRouterComponent
],
- providers: [BreadcrumbRouterService]
+ providers: [BreadcrumbRouterService, provideRouter([])]
}).compileComponents();
}));
diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.spec.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.spec.ts
index 5fd81b71..ac32fab6 100644
--- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.spec.ts
+++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.spec.ts
@@ -1,14 +1,14 @@
import { TestBed } from '@angular/core/testing';
-import { RouterTestingModule } from '@angular/router/testing';
import { BreadcrumbRouterService } from './breadcrumb-router.service';
+import { provideRouter } from '@angular/router';
describe('AppBreadcrumbService', () => {
let service: BreadcrumbRouterService;
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [RouterTestingModule.withRoutes([])]
+ providers: [provideRouter([])]
});
service = TestBed.inject(BreadcrumbRouterService);
});
diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb/breadcrumb.component.spec.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb/breadcrumb.component.spec.ts
index 963cb1c6..1a408b98 100644
--- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb/breadcrumb.component.spec.ts
+++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb/breadcrumb.component.spec.ts
@@ -22,4 +22,8 @@ describe('BreadcrumbComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('breadcrumb');
+ });
});
diff --git a/projects/coreui-angular/src/lib/button-group/button-group/button-group.component.spec.ts b/projects/coreui-angular/src/lib/button-group/button-group/button-group.component.spec.ts
index 6b82c162..c57b9233 100644
--- a/projects/coreui-angular/src/lib/button-group/button-group/button-group.component.spec.ts
+++ b/projects/coreui-angular/src/lib/button-group/button-group/button-group.component.spec.ts
@@ -22,4 +22,8 @@ describe('ButtonGroupComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('btn-group');
+ });
});
diff --git a/projects/coreui-angular/src/lib/button-group/button-toolbar/button-toolbar.component.spec.ts b/projects/coreui-angular/src/lib/button-group/button-toolbar/button-toolbar.component.spec.ts
index 946cdfb7..09283fc0 100644
--- a/projects/coreui-angular/src/lib/button-group/button-toolbar/button-toolbar.component.spec.ts
+++ b/projects/coreui-angular/src/lib/button-group/button-toolbar/button-toolbar.component.spec.ts
@@ -22,4 +22,8 @@ describe('ButtonToolbarComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('btn-toolbar');
+ });
});
diff --git a/projects/coreui-angular/src/lib/button/button-close.directive.spec.ts b/projects/coreui-angular/src/lib/button/button-close.directive.spec.ts
index 8ec69af5..e7ef9407 100644
--- a/projects/coreui-angular/src/lib/button/button-close.directive.spec.ts
+++ b/projects/coreui-angular/src/lib/button/button-close.directive.spec.ts
@@ -6,7 +6,9 @@ import { By } from '@angular/platform-browser';
class MockElementRef extends ElementRef {}
@Component({
- template: ''
+ template: '',
+ standalone: true,
+ imports: [ButtonCloseDirective]
})
class TestComponent {}
@@ -14,18 +16,17 @@ describe('ButtonCloseDirective', () => {
let component: TestComponent;
let fixture: ComponentFixture;
- let buttonEl: DebugElement;
+ let elementRef: DebugElement;
beforeEach(() => {
TestBed.configureTestingModule({
- declarations: [TestComponent],
- imports: [ButtonCloseDirective],
+ imports: [TestComponent, ButtonCloseDirective],
providers: [{ provide: ElementRef, useClass: MockElementRef }]
});
fixture = TestBed.createComponent(TestComponent);
component = fixture.componentInstance;
- buttonEl = fixture.debugElement.query(By.css('button'));
+ elementRef = fixture.debugElement.query(By.directive(ButtonCloseDirective));
fixture.detectChanges(); // initial binding
});
@@ -34,4 +35,9 @@ describe('ButtonCloseDirective', () => {
const directive = new ButtonCloseDirective();
expect(directive).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(elementRef.nativeElement).toHaveClass('btn');
+ expect(elementRef.nativeElement).toHaveClass('btn-close');
+ });
});
diff --git a/projects/coreui-angular/src/lib/button/button.directive.spec.ts b/projects/coreui-angular/src/lib/button/button.directive.spec.ts
index fada6f93..e41675e1 100644
--- a/projects/coreui-angular/src/lib/button/button.directive.spec.ts
+++ b/projects/coreui-angular/src/lib/button/button.directive.spec.ts
@@ -1,14 +1,14 @@
import { ButtonDirective } from './button.directive';
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { ButtonCloseDirective } from './button-close.directive';
import { Component, DebugElement, ElementRef } from '@angular/core';
import { By } from '@angular/platform-browser';
class MockElementRef extends ElementRef {}
@Component({
- template: `
- `
+ template: '',
+ standalone: true,
+ imports: [ButtonDirective]
})
class TestComponent {}
@@ -16,18 +16,17 @@ describe('ButtonDirective', () => {
let component: TestComponent;
let fixture: ComponentFixture;
- let buttonEl: DebugElement;
+ let elementRef: DebugElement;
beforeEach(() => {
TestBed.configureTestingModule({
- declarations: [TestComponent],
- imports: [ButtonCloseDirective],
+ imports: [TestComponent, ButtonDirective],
providers: [{ provide: ElementRef, useClass: MockElementRef }]
});
fixture = TestBed.createComponent(TestComponent);
component = fixture.componentInstance;
- buttonEl = fixture.debugElement.query(By.css('button'));
+ elementRef = fixture.debugElement.query(By.directive(ButtonDirective));
fixture.detectChanges(); // initial binding
});
@@ -36,4 +35,11 @@ describe('ButtonDirective', () => {
const directive = new ButtonDirective();
expect(directive).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(elementRef.nativeElement).toHaveClass('btn');
+ expect(elementRef.nativeElement).toHaveClass('btn-lg');
+ expect(elementRef.nativeElement).toHaveClass('btn-info');
+ });
+
});
diff --git a/projects/coreui-angular/src/lib/callout/callout.component.spec.ts b/projects/coreui-angular/src/lib/callout/callout.component.spec.ts
index b48cf5bc..878c82e9 100644
--- a/projects/coreui-angular/src/lib/callout/callout.component.spec.ts
+++ b/projects/coreui-angular/src/lib/callout/callout.component.spec.ts
@@ -22,4 +22,8 @@ describe('CalloutComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('callout');
+ });
});
diff --git a/projects/coreui-angular/src/lib/card/card-body.component.spec.ts b/projects/coreui-angular/src/lib/card/card-body.component.spec.ts
index 967ccf8d..860fb6e0 100644
--- a/projects/coreui-angular/src/lib/card/card-body.component.spec.ts
+++ b/projects/coreui-angular/src/lib/card/card-body.component.spec.ts
@@ -8,9 +8,9 @@ describe('CardBodyComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
- imports: [ CardBodyComponent ]
+ imports: [CardBodyComponent]
})
- .compileComponents();
+ .compileComponents();
}));
beforeEach(() => {
@@ -22,4 +22,8 @@ describe('CardBodyComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('card-body');
+ });
});
diff --git a/projects/coreui-angular/src/lib/card/card-footer.component.spec.ts b/projects/coreui-angular/src/lib/card/card-footer.component.spec.ts
index 26a6ce85..4e3c3123 100644
--- a/projects/coreui-angular/src/lib/card/card-footer.component.spec.ts
+++ b/projects/coreui-angular/src/lib/card/card-footer.component.spec.ts
@@ -22,4 +22,8 @@ describe('CardFooterComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('card-footer');
+ });
});
diff --git a/projects/coreui-angular/src/lib/card/card-group.component.spec.ts b/projects/coreui-angular/src/lib/card/card-group.component.spec.ts
index 5b2fdfd7..7cbdcf87 100644
--- a/projects/coreui-angular/src/lib/card/card-group.component.spec.ts
+++ b/projects/coreui-angular/src/lib/card/card-group.component.spec.ts
@@ -22,4 +22,8 @@ describe('CardGroupComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('card-group');
+ });
});
diff --git a/projects/coreui-angular/src/lib/card/card-header-actions.component.spec.ts b/projects/coreui-angular/src/lib/card/card-header-actions.component.spec.ts
index 3cd1dcd6..089e74d4 100644
--- a/projects/coreui-angular/src/lib/card/card-header-actions.component.spec.ts
+++ b/projects/coreui-angular/src/lib/card/card-header-actions.component.spec.ts
@@ -22,4 +22,8 @@ describe('CardHeaderActionsComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('card-header-actions');
+ });
});
diff --git a/projects/coreui-angular/src/lib/card/card-header.component.spec.ts b/projects/coreui-angular/src/lib/card/card-header.component.spec.ts
index 5e9c3bd8..f9542b5a 100644
--- a/projects/coreui-angular/src/lib/card/card-header.component.spec.ts
+++ b/projects/coreui-angular/src/lib/card/card-header.component.spec.ts
@@ -22,4 +22,8 @@ describe('CardHeaderComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('card-header');
+ });
});
diff --git a/projects/coreui-angular/src/lib/card/card-img-overlay/card-img-overlay.component.spec.ts b/projects/coreui-angular/src/lib/card/card-img-overlay/card-img-overlay.component.spec.ts
index 2917e7d9..d68506bf 100644
--- a/projects/coreui-angular/src/lib/card/card-img-overlay/card-img-overlay.component.spec.ts
+++ b/projects/coreui-angular/src/lib/card/card-img-overlay/card-img-overlay.component.spec.ts
@@ -22,4 +22,8 @@ describe('CardImgOverlayComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('card-img-overlay');
+ });
});
diff --git a/projects/coreui-angular/src/lib/card/card.component.spec.ts b/projects/coreui-angular/src/lib/card/card.component.spec.ts
index 8dd9b517..222c147f 100644
--- a/projects/coreui-angular/src/lib/card/card.component.spec.ts
+++ b/projects/coreui-angular/src/lib/card/card.component.spec.ts
@@ -22,4 +22,8 @@ describe('CardComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('card');
+ });
});
diff --git a/projects/coreui-angular/src/lib/carousel/carousel-caption/carousel-caption.component.spec.ts b/projects/coreui-angular/src/lib/carousel/carousel-caption/carousel-caption.component.spec.ts
index fd409a5f..4632637f 100644
--- a/projects/coreui-angular/src/lib/carousel/carousel-caption/carousel-caption.component.spec.ts
+++ b/projects/coreui-angular/src/lib/carousel/carousel-caption/carousel-caption.component.spec.ts
@@ -22,4 +22,8 @@ describe('CarouselCaptionComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css class"', () => {
+ expect(fixture.nativeElement).toHaveClass('carousel-caption');
+ });
});
diff --git a/projects/coreui-angular/src/lib/carousel/carousel-control/carousel-control.component.spec.ts b/projects/coreui-angular/src/lib/carousel/carousel-control/carousel-control.component.spec.ts
index 90164680..a74c0855 100644
--- a/projects/coreui-angular/src/lib/carousel/carousel-control/carousel-control.component.spec.ts
+++ b/projects/coreui-angular/src/lib/carousel/carousel-control/carousel-control.component.spec.ts
@@ -29,4 +29,8 @@ describe('CarouselControlComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css class="carousel-control-next"', () => {
+ expect(fixture.nativeElement).toHaveClass('carousel-control-next');
+ });
});
diff --git a/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.spec.ts b/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.spec.ts
index 67b60a1f..4b624e5d 100644
--- a/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.spec.ts
+++ b/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.spec.ts
@@ -30,4 +30,8 @@ describe('CarouselInnerComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('carousel-inner');
+ });
});
diff --git a/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.spec.ts b/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.spec.ts
index 295e74f4..6b3e8faa 100644
--- a/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.spec.ts
+++ b/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.spec.ts
@@ -26,4 +26,8 @@ describe('CarouselItemComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('carousel-item');
+ });
});
diff --git a/projects/coreui-angular/src/lib/carousel/carousel/carousel.component.spec.ts b/projects/coreui-angular/src/lib/carousel/carousel/carousel.component.spec.ts
index ac9b52a6..18c1fc68 100644
--- a/projects/coreui-angular/src/lib/carousel/carousel/carousel.component.spec.ts
+++ b/projects/coreui-angular/src/lib/carousel/carousel/carousel.component.spec.ts
@@ -22,4 +22,9 @@ describe('CarouselComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('carousel');
+ expect(fixture.nativeElement).toHaveClass('slide');
+ });
});
diff --git a/projects/coreui-angular/src/lib/collapse/collapse.directive.spec.ts b/projects/coreui-angular/src/lib/collapse/collapse.directive.spec.ts
index 6ade22ce..97287732 100644
--- a/projects/coreui-angular/src/lib/collapse/collapse.directive.spec.ts
+++ b/projects/coreui-angular/src/lib/collapse/collapse.directive.spec.ts
@@ -8,7 +8,9 @@ import { NoopAnimationsModule } from '@angular/platform-browser/animations';
class MockElementRef extends ElementRef {}
@Component({
- template: ''
+ template: '',
+ standalone: true,
+ imports: [CollapseDirective]
})
class TestComponent {}
@@ -22,8 +24,7 @@ describe('CollapseDirective', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- declarations: [TestComponent],
- imports: [CollapseDirective, NoopAnimationsModule],
+ imports: [TestComponent, CollapseDirective, NoopAnimationsModule],
providers: [
{ provide: ElementRef, useClass: MockElementRef },
{ provide: AnimationBuilder },
@@ -43,4 +44,9 @@ describe('CollapseDirective', () => {
const directive = new CollapseDirective(elementRef, renderer, animationBuilder);
expect(directive).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(elementRef.nativeElement).toHaveClass('collapse-horizontal');
+ });
+
});
diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.spec.ts b/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.spec.ts
index 9edb1ff1..0f09fafc 100644
--- a/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.spec.ts
+++ b/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.spec.ts
@@ -1,6 +1,9 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { DropdownComponent } from './dropdown.component';
+import { DropdownComponent, DropdownToggleDirective } from './dropdown.component';
+import { Component, DebugElement, ElementRef } from '@angular/core';
+import { DropdownService } from '../dropdown.service';
+import { By } from '@angular/platform-browser';
describe('DropdownComponent', () => {
let component: DropdownComponent;
@@ -22,4 +25,48 @@ describe('DropdownComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('dropdown');
+ });
+});
+
+class MockElementRef extends ElementRef {}
+
+@Component({
+ template: '',
+ standalone: true,
+ imports: [DropdownToggleDirective]
+})
+class TestComponent {}
+
+describe('DropdownToggleDirective', () => {
+
+ let component: TestComponent;
+ let fixture: ComponentFixture;
+ let elementRef: DebugElement;
+ let service: DropdownService;
+
+ beforeEach(() => {
+ TestBed.configureTestingModule({
+ imports: [TestComponent, DropdownToggleDirective],
+ providers: [
+ { provide: ElementRef, useClass: MockElementRef },
+ DropdownService,
+ DropdownComponent
+ ]
+ });
+
+ fixture = TestBed.createComponent(TestComponent);
+ component = fixture.componentInstance;
+ elementRef = fixture.debugElement.query(By.directive(DropdownToggleDirective));
+ service = new DropdownService();
+
+ fixture.detectChanges(); // initial binding
+ });
+
+ it('should create an instance', () => {
+ const directive = new DropdownToggleDirective(elementRef, service);
+ expect(directive).toBeTruthy();
+ });
});
diff --git a/projects/coreui-angular/src/lib/footer/footer.component.spec.ts b/projects/coreui-angular/src/lib/footer/footer.component.spec.ts
index d9a53fa4..eeb33507 100644
--- a/projects/coreui-angular/src/lib/footer/footer.component.spec.ts
+++ b/projects/coreui-angular/src/lib/footer/footer.component.spec.ts
@@ -22,4 +22,8 @@ describe('FooterComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('footer');
+ });
});
diff --git a/projects/coreui-angular/src/lib/form/form-check/form-check.component.spec.ts b/projects/coreui-angular/src/lib/form/form-check/form-check.component.spec.ts
index db429ec6..32a027b0 100644
--- a/projects/coreui-angular/src/lib/form/form-check/form-check.component.spec.ts
+++ b/projects/coreui-angular/src/lib/form/form-check/form-check.component.spec.ts
@@ -20,10 +20,16 @@ describe('FormCheckComponent', () => {
fixture = TestBed.createComponent(FormCheckComponent);
renderer = fixture.debugElement.injector.get(Renderer2);
component = fixture.componentInstance;
+ component.switch = true;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('form-switch');
+ });
+
});
diff --git a/projects/coreui-angular/src/lib/form/form-feedback/form-feedback.component.spec.ts b/projects/coreui-angular/src/lib/form/form-feedback/form-feedback.component.spec.ts
index a557440c..147d3c6e 100644
--- a/projects/coreui-angular/src/lib/form/form-feedback/form-feedback.component.spec.ts
+++ b/projects/coreui-angular/src/lib/form/form-feedback/form-feedback.component.spec.ts
@@ -22,4 +22,13 @@ describe('FormFeedbackComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ component.valid = true;
+ fixture.detectChanges();
+ expect(fixture.nativeElement).toHaveClass('valid-feedback');
+ component.valid = false;
+ fixture.detectChanges();
+ expect(fixture.nativeElement).toHaveClass('invalid-feedback');
+ });
});
diff --git a/projects/coreui-angular/src/lib/form/input-group/input-group.component.spec.ts b/projects/coreui-angular/src/lib/form/input-group/input-group.component.spec.ts
index f9a59110..ad3d2c80 100644
--- a/projects/coreui-angular/src/lib/form/input-group/input-group.component.spec.ts
+++ b/projects/coreui-angular/src/lib/form/input-group/input-group.component.spec.ts
@@ -22,4 +22,8 @@ describe('InputGroupComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('input-group');
+ });
});
diff --git a/projects/coreui-angular/src/lib/grid/col.component.spec.ts b/projects/coreui-angular/src/lib/grid/col.component.spec.ts
index 8b58fdcc..2f9dab86 100644
--- a/projects/coreui-angular/src/lib/grid/col.component.spec.ts
+++ b/projects/coreui-angular/src/lib/grid/col.component.spec.ts
@@ -22,4 +22,8 @@ describe('ColComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('col');
+ });
});
diff --git a/projects/coreui-angular/src/lib/grid/container.component.spec.ts b/projects/coreui-angular/src/lib/grid/container.component.spec.ts
index 961542aa..f2a75b1a 100644
--- a/projects/coreui-angular/src/lib/grid/container.component.spec.ts
+++ b/projects/coreui-angular/src/lib/grid/container.component.spec.ts
@@ -22,4 +22,8 @@ describe('ContainerComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('container');
+ });
});
diff --git a/projects/coreui-angular/src/lib/grid/row.component.spec.ts b/projects/coreui-angular/src/lib/grid/row.component.spec.ts
index e5f6277a..93e7cce8 100644
--- a/projects/coreui-angular/src/lib/grid/row.component.spec.ts
+++ b/projects/coreui-angular/src/lib/grid/row.component.spec.ts
@@ -22,4 +22,8 @@ describe('RowComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('row');
+ });
});
diff --git a/projects/coreui-angular/src/lib/header/header-brand/header-brand.component.spec.ts b/projects/coreui-angular/src/lib/header/header-brand/header-brand.component.spec.ts
index 2e020115..04978a05 100644
--- a/projects/coreui-angular/src/lib/header/header-brand/header-brand.component.spec.ts
+++ b/projects/coreui-angular/src/lib/header/header-brand/header-brand.component.spec.ts
@@ -25,4 +25,8 @@ describe('HeaderBrandComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('header-brand');
+ });
});
diff --git a/projects/coreui-angular/src/lib/header/header-divider/header-divider.component.spec.ts b/projects/coreui-angular/src/lib/header/header-divider/header-divider.component.spec.ts
index ddaadfa1..cbf3019e 100644
--- a/projects/coreui-angular/src/lib/header/header-divider/header-divider.component.spec.ts
+++ b/projects/coreui-angular/src/lib/header/header-divider/header-divider.component.spec.ts
@@ -22,4 +22,8 @@ describe('HeaderDividerComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('header-divider');
+ });
});
diff --git a/projects/coreui-angular/src/lib/header/header-nav/header-nav.component.spec.ts b/projects/coreui-angular/src/lib/header/header-nav/header-nav.component.spec.ts
index 4753ac75..b7940aaa 100644
--- a/projects/coreui-angular/src/lib/header/header-nav/header-nav.component.spec.ts
+++ b/projects/coreui-angular/src/lib/header/header-nav/header-nav.component.spec.ts
@@ -22,4 +22,8 @@ describe('HeaderNavComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('header-nav');
+ });
});
diff --git a/projects/coreui-angular/src/lib/header/header-text/header-text.component.spec.ts b/projects/coreui-angular/src/lib/header/header-text/header-text.component.spec.ts
index d20be299..87fb1b8d 100644
--- a/projects/coreui-angular/src/lib/header/header-text/header-text.component.spec.ts
+++ b/projects/coreui-angular/src/lib/header/header-text/header-text.component.spec.ts
@@ -22,4 +22,8 @@ describe('HeaderTextComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('header-text');
+ });
});
diff --git a/projects/coreui-angular/src/lib/header/header/header.component.spec.ts b/projects/coreui-angular/src/lib/header/header/header.component.spec.ts
index b6503aee..b8713b3b 100644
--- a/projects/coreui-angular/src/lib/header/header/header.component.spec.ts
+++ b/projects/coreui-angular/src/lib/header/header/header.component.spec.ts
@@ -28,4 +28,8 @@ describe('HeaderComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('header');
+ });
});
diff --git a/projects/coreui-angular/src/lib/modal/modal-body/modal-body.component.spec.ts b/projects/coreui-angular/src/lib/modal/modal-body/modal-body.component.spec.ts
index 95292a84..b52f4237 100644
--- a/projects/coreui-angular/src/lib/modal/modal-body/modal-body.component.spec.ts
+++ b/projects/coreui-angular/src/lib/modal/modal-body/modal-body.component.spec.ts
@@ -22,4 +22,8 @@ describe('ModalBodyComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('modal-body');
+ });
});
diff --git a/projects/coreui-angular/src/lib/modal/modal-content/modal-content.component.spec.ts b/projects/coreui-angular/src/lib/modal/modal-content/modal-content.component.spec.ts
index be7ec86d..ac6dad05 100644
--- a/projects/coreui-angular/src/lib/modal/modal-content/modal-content.component.spec.ts
+++ b/projects/coreui-angular/src/lib/modal/modal-content/modal-content.component.spec.ts
@@ -22,4 +22,8 @@ describe('ModalContentComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('modal-content');
+ });
});
diff --git a/projects/coreui-angular/src/lib/modal/modal-dialog/modal-dialog.component.spec.ts b/projects/coreui-angular/src/lib/modal/modal-dialog/modal-dialog.component.spec.ts
index d845369c..8a064e29 100644
--- a/projects/coreui-angular/src/lib/modal/modal-dialog/modal-dialog.component.spec.ts
+++ b/projects/coreui-angular/src/lib/modal/modal-dialog/modal-dialog.component.spec.ts
@@ -22,4 +22,8 @@ describe('ModalDialogComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('modal-dialog');
+ });
});
diff --git a/projects/coreui-angular/src/lib/modal/modal-footer/modal-footer.component.spec.ts b/projects/coreui-angular/src/lib/modal/modal-footer/modal-footer.component.spec.ts
index 8a8202d6..9c4d0279 100644
--- a/projects/coreui-angular/src/lib/modal/modal-footer/modal-footer.component.spec.ts
+++ b/projects/coreui-angular/src/lib/modal/modal-footer/modal-footer.component.spec.ts
@@ -22,4 +22,8 @@ describe('ModalFooterComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('modal-footer');
+ });
});
diff --git a/projects/coreui-angular/src/lib/modal/modal-header/modal-header.component.spec.ts b/projects/coreui-angular/src/lib/modal/modal-header/modal-header.component.spec.ts
index b6f7b0a5..4c259a4b 100644
--- a/projects/coreui-angular/src/lib/modal/modal-header/modal-header.component.spec.ts
+++ b/projects/coreui-angular/src/lib/modal/modal-header/modal-header.component.spec.ts
@@ -22,4 +22,8 @@ describe('ModalHeaderComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('modal-header');
+ });
});
diff --git a/projects/coreui-angular/src/lib/modal/modal/modal.component.spec.ts b/projects/coreui-angular/src/lib/modal/modal/modal.component.spec.ts
index a98d893b..35f0b0f4 100644
--- a/projects/coreui-angular/src/lib/modal/modal/modal.component.spec.ts
+++ b/projects/coreui-angular/src/lib/modal/modal/modal.component.spec.ts
@@ -22,4 +22,9 @@ describe('ModalComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('modal');
+ expect(fixture.nativeElement).toHaveClass('fade');
+ });
});
diff --git a/projects/coreui-angular/src/lib/nav/nav-item.component.spec.ts b/projects/coreui-angular/src/lib/nav/nav-item.component.spec.ts
index 00adf0aa..47d74216 100644
--- a/projects/coreui-angular/src/lib/nav/nav-item.component.spec.ts
+++ b/projects/coreui-angular/src/lib/nav/nav-item.component.spec.ts
@@ -22,4 +22,8 @@ describe('NavItemComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('nav-item');
+ });
});
diff --git a/projects/coreui-angular/src/lib/nav/nav.component.spec.ts b/projects/coreui-angular/src/lib/nav/nav.component.spec.ts
index e6366fca..f5bf5388 100644
--- a/projects/coreui-angular/src/lib/nav/nav.component.spec.ts
+++ b/projects/coreui-angular/src/lib/nav/nav.component.spec.ts
@@ -22,4 +22,8 @@ describe('NavComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('nav');
+ });
});
diff --git a/projects/coreui-angular/src/lib/navbar/navbar-nav/navbar-nav.component.spec.ts b/projects/coreui-angular/src/lib/navbar/navbar-nav/navbar-nav.component.spec.ts
index 63465318..e0f104b8 100644
--- a/projects/coreui-angular/src/lib/navbar/navbar-nav/navbar-nav.component.spec.ts
+++ b/projects/coreui-angular/src/lib/navbar/navbar-nav/navbar-nav.component.spec.ts
@@ -22,4 +22,8 @@ describe('NavbarNavComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('navbar-nav');
+ });
});
diff --git a/projects/coreui-angular/src/lib/navbar/navbar-text/navbar-text.component.spec.ts b/projects/coreui-angular/src/lib/navbar/navbar-text/navbar-text.component.spec.ts
index aa3ed7e1..97577f18 100644
--- a/projects/coreui-angular/src/lib/navbar/navbar-text/navbar-text.component.spec.ts
+++ b/projects/coreui-angular/src/lib/navbar/navbar-text/navbar-text.component.spec.ts
@@ -22,4 +22,8 @@ describe('NavbarTextComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('navbar-text');
+ });
});
diff --git a/projects/coreui-angular/src/lib/navbar/navbar.component.spec.ts b/projects/coreui-angular/src/lib/navbar/navbar.component.spec.ts
index 259b5e07..1a84402c 100644
--- a/projects/coreui-angular/src/lib/navbar/navbar.component.spec.ts
+++ b/projects/coreui-angular/src/lib/navbar/navbar.component.spec.ts
@@ -22,4 +22,8 @@ describe('NavbarComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('navbar');
+ });
});
diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas-body/offcanvas-body.component.spec.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas-body/offcanvas-body.component.spec.ts
index 7a0669c2..c1ecfb7a 100644
--- a/projects/coreui-angular/src/lib/offcanvas/offcanvas-body/offcanvas-body.component.spec.ts
+++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas-body/offcanvas-body.component.spec.ts
@@ -22,4 +22,8 @@ describe('OffcanvasBodyComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('offcanvas-body');
+ });
});
diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas-header/offcanvas-header.component.spec.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas-header/offcanvas-header.component.spec.ts
index 182efed0..5f97acee 100644
--- a/projects/coreui-angular/src/lib/offcanvas/offcanvas-header/offcanvas-header.component.spec.ts
+++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas-header/offcanvas-header.component.spec.ts
@@ -22,4 +22,8 @@ describe('OffcanvasHeaderComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('offcanvas-header');
+ });
});
diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.spec.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.spec.ts
index f0762e09..f1de0be9 100644
--- a/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.spec.ts
+++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.spec.ts
@@ -23,4 +23,8 @@ describe('OffcanvasComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('offcanvas');
+ });
});
diff --git a/projects/coreui-angular/src/lib/pagination/page-item/page-item.component.spec.ts b/projects/coreui-angular/src/lib/pagination/page-item/page-item.component.spec.ts
index fba9ae0d..e123a213 100644
--- a/projects/coreui-angular/src/lib/pagination/page-item/page-item.component.spec.ts
+++ b/projects/coreui-angular/src/lib/pagination/page-item/page-item.component.spec.ts
@@ -22,4 +22,8 @@ describe('PaginationItemComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('page-item');
+ });
});
diff --git a/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.spec.ts b/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.spec.ts
index 110cfa4b..9bdf3665 100644
--- a/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.spec.ts
+++ b/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.spec.ts
@@ -1,10 +1,13 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PaginationComponent } from './pagination.component';
+import { ElementRef } from '@angular/core';
+import { By } from '@angular/platform-browser';
describe('PaginationComponent', () => {
let component: PaginationComponent;
let fixture: ComponentFixture;
+ let elementRef: ElementRef;
beforeEach(async () => {
await TestBed.configureTestingModule({
@@ -16,10 +19,15 @@ describe('PaginationComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(PaginationComponent);
component = fixture.componentInstance;
+ elementRef = fixture.debugElement.query(By.css('ul'));
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(elementRef.nativeElement).toHaveClass('pagination');
+ });
});
diff --git a/projects/coreui-angular/src/lib/popover/popover/popover.component.spec.ts b/projects/coreui-angular/src/lib/popover/popover/popover.component.spec.ts
index 4a2220f1..53ba179b 100644
--- a/projects/coreui-angular/src/lib/popover/popover/popover.component.spec.ts
+++ b/projects/coreui-angular/src/lib/popover/popover/popover.component.spec.ts
@@ -22,4 +22,10 @@ describe('PopoverComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('popover');
+ expect(fixture.nativeElement).toHaveClass('fade');
+ expect(fixture.nativeElement).toHaveClass('bs-popover-auto');
+ });
});
diff --git a/projects/coreui-angular/src/lib/progress/progress-bar.component.spec.ts b/projects/coreui-angular/src/lib/progress/progress-bar.component.spec.ts
index 3f7de97d..16831403 100644
--- a/projects/coreui-angular/src/lib/progress/progress-bar.component.spec.ts
+++ b/projects/coreui-angular/src/lib/progress/progress-bar.component.spec.ts
@@ -26,11 +26,11 @@ describe('ProgressBarComponent', () => {
expect(component).toBeDefined();
});
- it('should have css class="progress-bar"', () => {
- expect(fixture.nativeElement.classList.contains('progress-bar')).toBeTruthy();
- expect(fixture.nativeElement.classList.contains('bg-success')).toBeTruthy();
- expect(fixture.nativeElement.classList.contains('progress-bar-striped')).toBeTruthy();
- expect(fixture.nativeElement.classList.contains('progress-bar-animated')).toBeTruthy();
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('progress-bar');
+ expect(fixture.nativeElement).toHaveClass('bg-success');
+ expect(fixture.nativeElement).toHaveClass('progress-bar-striped');
+ expect(fixture.nativeElement).toHaveClass('progress-bar-animated');
});
it('should have style width %', () => {
diff --git a/projects/coreui-angular/src/lib/progress/progress-stacked.component.spec.ts b/projects/coreui-angular/src/lib/progress/progress-stacked.component.spec.ts
index 6fb1ee7e..0c3508de 100644
--- a/projects/coreui-angular/src/lib/progress/progress-stacked.component.spec.ts
+++ b/projects/coreui-angular/src/lib/progress/progress-stacked.component.spec.ts
@@ -21,4 +21,8 @@ describe('ProgressStackedComponent', () => {
expect(component).toBeDefined();
expect(component.stacked).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('progress-stacked');
+ });
});
diff --git a/projects/coreui-angular/src/lib/progress/progress.component.spec.ts b/projects/coreui-angular/src/lib/progress/progress.component.spec.ts
index cd584c9a..6da09611 100644
--- a/projects/coreui-angular/src/lib/progress/progress.component.spec.ts
+++ b/projects/coreui-angular/src/lib/progress/progress.component.spec.ts
@@ -41,8 +41,8 @@ describe('ProgressComponent', () => {
expect(progress).toBeDefined();
});
- it('should have css class="progress"', () => {
- expect(progress?.nativeNode.classList.contains('progress')).toBeTruthy();
+ it('should have css classes', () => {
+ expect(progress?.nativeNode).toHaveClass('progress');
});
it('should have style width %', () => {
diff --git a/projects/coreui-angular/src/lib/shared/html-attr.directive.spec.ts b/projects/coreui-angular/src/lib/shared/html-attr.directive.spec.ts
index c4757409..e0e566c2 100644
--- a/projects/coreui-angular/src/lib/shared/html-attr.directive.spec.ts
+++ b/projects/coreui-angular/src/lib/shared/html-attr.directive.spec.ts
@@ -11,7 +11,6 @@ class TestComponent {}
describe('HtmlAttributesDirective', () => {
- let component: TestComponent;
let fixture: ComponentFixture;
let inputEl: DebugElement;
let renderer: Renderer2;
@@ -22,7 +21,6 @@ describe('HtmlAttributesDirective', () => {
imports: [HtmlAttributesDirective]
});
fixture = TestBed.createComponent(TestComponent);
- component = fixture.componentInstance;
inputEl = fixture.debugElement.query(By.css('div'));
renderer = fixture.componentRef.injector.get(Renderer2 as Type);
});
@@ -34,19 +32,16 @@ describe('HtmlAttributesDirective', () => {
it('should render a class attr', () => {
fixture.detectChanges();
- // console.log(inputEl.nativeElement.classList);
- expect(inputEl.nativeElement.classList.contains('test')).toBeTruthy();
+ expect(inputEl.nativeElement).toHaveClass('test');
});
it('should render a style attr', () => {
fixture.detectChanges();
- // console.log(inputEl.nativeElement.style.backgroundColor);
expect(inputEl.nativeElement.style.backgroundColor).toBe('red');
});
it('should render an id attr', () => {
fixture.detectChanges();
- // console.log(inputEl.nativeElement.attributes);
expect(inputEl.nativeElement.getAttribute('id')).toBe('id-1');
});
});
diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.spec.ts
index 4457a738..005845ae 100644
--- a/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.spec.ts
+++ b/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.spec.ts
@@ -1,6 +1,5 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
-import { RouterTestingModule } from '@angular/router/testing';
-import { Router } from '@angular/router';
+import { provideRouter, Router } from '@angular/router';
import { SidebarBrandComponent } from './sidebar-brand.component';
import { HtmlAttributesDirective } from '../../shared';
@@ -13,10 +12,10 @@ describe('SidebarBrandComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
- RouterTestingModule.withRoutes([]),
HtmlAttributesDirective,
SidebarBrandComponent
- ]
+ ],
+ providers: [provideRouter([])]
})
.compileComponents();
}));
@@ -31,4 +30,8 @@ describe('SidebarBrandComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('sidebar-brand');
+ });
});
diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-footer/sidebar-footer.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-footer/sidebar-footer.component.spec.ts
index 17c508ec..5567e8f9 100644
--- a/projects/coreui-angular/src/lib/sidebar/sidebar-footer/sidebar-footer.component.spec.ts
+++ b/projects/coreui-angular/src/lib/sidebar/sidebar-footer/sidebar-footer.component.spec.ts
@@ -22,4 +22,8 @@ describe('SidebarFooterComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('sidebar-footer');
+ });
});
diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-header/sidebar-header.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-header/sidebar-header.component.spec.ts
index 45953ca1..cf4aacc6 100644
--- a/projects/coreui-angular/src/lib/sidebar/sidebar-header/sidebar-header.component.spec.ts
+++ b/projects/coreui-angular/src/lib/sidebar/sidebar-header/sidebar-header.component.spec.ts
@@ -22,4 +22,8 @@ describe('SidebarHeaderComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('sidebar-header');
+ });
});
diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.component.spec.ts
index b82d608b..b6be615f 100644
--- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.component.spec.ts
+++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.component.spec.ts
@@ -1,9 +1,7 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
-import { RouterTestingModule } from '@angular/router/testing';
-import { Router } from '@angular/router';
+import { provideRouter, Router } from '@angular/router';
import { SidebarNavGroupComponent } from './sidebar-nav.component';
-import { SidebarModule } from '../sidebar.module';
describe('SidebarNavGroupComponent', () => {
let component: SidebarNavGroupComponent;
@@ -14,11 +12,10 @@ describe('SidebarNavGroupComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
- RouterTestingModule.withRoutes([]),
NoopAnimationsModule,
SidebarNavGroupComponent
],
- declarations: []
+ providers: [provideRouter([])]
})
.compileComponents();
}));
@@ -57,4 +54,8 @@ describe('SidebarNavGroupComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('nav-group');
+ });
});
diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.spec.ts
index a56acb24..c7ea1148 100644
--- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.spec.ts
+++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.spec.ts
@@ -50,4 +50,8 @@ describe('SidebarNavComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('sidebar-nav');
+ });
});
diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar/sidebar.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar/sidebar.component.spec.ts
index 891f26db..63281cee 100644
--- a/projects/coreui-angular/src/lib/sidebar/sidebar/sidebar.component.spec.ts
+++ b/projects/coreui-angular/src/lib/sidebar/sidebar/sidebar.component.spec.ts
@@ -22,4 +22,8 @@ describe('SidebarComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('sidebar-fixed');
+ });
});
diff --git a/projects/coreui-angular/src/lib/spinner/spinner.component.spec.ts b/projects/coreui-angular/src/lib/spinner/spinner.component.spec.ts
index 77febd41..43d9fff9 100644
--- a/projects/coreui-angular/src/lib/spinner/spinner.component.spec.ts
+++ b/projects/coreui-angular/src/lib/spinner/spinner.component.spec.ts
@@ -22,4 +22,8 @@ describe('SpinnerComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('spinner-border');
+ });
});
diff --git a/projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.spec.ts b/projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.spec.ts
index 1fdfe45d..1352a201 100644
--- a/projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.spec.ts
+++ b/projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.spec.ts
@@ -22,4 +22,8 @@ describe('TabContentComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('tab-content');
+ });
});
diff --git a/projects/coreui-angular/src/lib/tabs/tab-pane/tab-pane.component.spec.ts b/projects/coreui-angular/src/lib/tabs/tab-pane/tab-pane.component.spec.ts
index 29ba83b6..51b92fb2 100644
--- a/projects/coreui-angular/src/lib/tabs/tab-pane/tab-pane.component.spec.ts
+++ b/projects/coreui-angular/src/lib/tabs/tab-pane/tab-pane.component.spec.ts
@@ -22,4 +22,9 @@ describe('TabPaneComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('tab-pane');
+ expect(fixture.nativeElement).toHaveClass('fade');
+ });
});
diff --git a/projects/coreui-angular/src/lib/toast/toast-body/toast-body.component.spec.ts b/projects/coreui-angular/src/lib/toast/toast-body/toast-body.component.spec.ts
index ee5ca819..c04a65ee 100644
--- a/projects/coreui-angular/src/lib/toast/toast-body/toast-body.component.spec.ts
+++ b/projects/coreui-angular/src/lib/toast/toast-body/toast-body.component.spec.ts
@@ -22,4 +22,8 @@ describe('ToastBodyComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('toast-body');
+ });
});
diff --git a/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.spec.ts b/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.spec.ts
index 580c5875..cc1ae0a2 100644
--- a/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.spec.ts
+++ b/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.spec.ts
@@ -23,4 +23,8 @@ describe('ToastHeaderComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('toast-header');
+ });
});
diff --git a/projects/coreui-angular/src/lib/toast/toast/toast.component.spec.ts b/projects/coreui-angular/src/lib/toast/toast/toast.component.spec.ts
index d9924a4b..693727f7 100644
--- a/projects/coreui-angular/src/lib/toast/toast/toast.component.spec.ts
+++ b/projects/coreui-angular/src/lib/toast/toast/toast.component.spec.ts
@@ -24,4 +24,9 @@ describe('ToastComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('toast');
+ expect(fixture.nativeElement).toHaveClass('show');
+ });
});
diff --git a/projects/coreui-angular/src/lib/toast/toaster/toaster.component.spec.ts b/projects/coreui-angular/src/lib/toast/toaster/toaster.component.spec.ts
index fab7534c..76a044cc 100644
--- a/projects/coreui-angular/src/lib/toast/toaster/toaster.component.spec.ts
+++ b/projects/coreui-angular/src/lib/toast/toaster/toaster.component.spec.ts
@@ -23,4 +23,9 @@ describe('ToasterComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('toaster');
+ expect(fixture.nativeElement).toHaveClass('toast-container');
+ });
});
diff --git a/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.spec.ts b/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.spec.ts
index fb30ecc8..8d667069 100644
--- a/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.spec.ts
+++ b/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.spec.ts
@@ -22,4 +22,9 @@ describe('TooltipComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should have css classes', () => {
+ expect(fixture.nativeElement).toHaveClass('tooltip');
+ expect(fixture.nativeElement).toHaveClass('fade');
+ });
});
diff --git a/projects/coreui-icons-angular/package.json b/projects/coreui-icons-angular/package.json
index bef099ca..9f9dc2f3 100644
--- a/projects/coreui-icons-angular/package.json
+++ b/projects/coreui-icons-angular/package.json
@@ -1,6 +1,6 @@
{
"name": "@coreui/icons-angular",
- "version": "5.0.2",
+ "version": "5.0.3",
"description": "CoreUI Icons Angular component and service",
"copyright": "Copyright 2024 creativeLabs Łukasz Holeczek",
"license": "MIT",
diff --git a/projects/coreui-icons-angular/src/lib/shared/html-attr.directive.spec.ts b/projects/coreui-icons-angular/src/lib/shared/html-attr.directive.spec.ts
index 8e6fcd8a..c49f2432 100644
--- a/projects/coreui-icons-angular/src/lib/shared/html-attr.directive.spec.ts
+++ b/projects/coreui-icons-angular/src/lib/shared/html-attr.directive.spec.ts
@@ -5,8 +5,7 @@ import { By } from '@angular/platform-browser';
import { HtmlAttributesDirective } from './html-attr.directive';
@Component({
- template: `
- `
+ template: ``
})
class TestComponent {}
@@ -33,8 +32,7 @@ describe('HtmlAttributesDirective', () => {
it('should render a class attr', () => {
fixture.detectChanges();
- // console.log(inputEl.nativeElement.classList);
- expect(inputEl.nativeElement.classList.contains('test')).toBeTruthy();
+ expect(inputEl.nativeElement).toHaveClass('test');
});
it('should render a style attr', () => {
@@ -45,7 +43,6 @@ describe('HtmlAttributesDirective', () => {
it('should render an id attr', () => {
fixture.detectChanges();
- // console.log(inputEl.nativeElement.attributes);
expect(inputEl.nativeElement.getAttribute('id')).toBe('id-1');
});
});