diff --git a/package-lock.json b/package-lock.json index fc7eef0dc8..0115287dea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,11 +9,11 @@ "version": "6.0.0", "license": "LGPL-3.0", "dependencies": { - "@alfresco/adf-content-services": "7.0.0-alpha.4-11480441882", - "@alfresco/adf-core": "7.0.0-alpha.4-11480441882", - "@alfresco/adf-extensions": "7.0.0-alpha.4-11480441882", - "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.4-11480441882", - "@alfresco/js-api": ">=8.0.0-alpha.4-11480441882", + "@alfresco/adf-content-services": "7.0.0-alpha.5-11519897356", + "@alfresco/adf-core": "7.0.0-alpha.5-11519897356", + "@alfresco/adf-extensions": "7.0.0-alpha.5-11519897356", + "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.5-11519897356", + "@alfresco/js-api": ">=8.0.0-alpha.4-11519897356", "@angular/animations": "16.2.9", "@angular/cdk": "16.2.9", "@angular/common": "16.2.9", @@ -41,7 +41,7 @@ "zone.js": "0.13.3" }, "devDependencies": { - "@alfresco/adf-cli": "7.0.0-alpha.4-11480441882", + "@alfresco/adf-cli": "7.0.0-alpha.5-11519897356", "@angular-devkit/build-angular": "16.2.9", "@angular-devkit/core": "16.2.9", "@angular-devkit/schematics": "16.2.9", @@ -106,12 +106,12 @@ "dev": true }, "node_modules/@alfresco/adf-cli": { - "version": "7.0.0-alpha.4-11480441882", - "resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-7.0.0-alpha.4-11480441882.tgz", - "integrity": "sha512-3y9SjXojgewmYYCJA+v+DnUYf6Dv/3EfvF7l5OYdiqkWb7isOlfayXFzdLFoZky8OzQTjGvNdNml7dZKuATiCg==", + "version": "7.0.0-alpha.5-11519897356", + "resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-7.0.0-alpha.5-11519897356.tgz", + "integrity": "sha512-n0ZDG3e4WaDhew7zrpz1GqIDa1ua1Vkzv2T0wJRHFaGuz9+KOEoN7IOTzceDhZSmiuO+veCtYPywFTzKrJ7w0Q==", "dev": true, "dependencies": { - "@alfresco/js-api": ">=8.0.0-alpha.4-11480441882", + "@alfresco/js-api": ">=8.0.0-alpha.5-11519897356", "commander": "^6.2.1", "ejs": "^3.1.9", "license-checker": "^25.0.1", @@ -144,15 +144,15 @@ "dev": true }, "node_modules/@alfresco/adf-content-services": { - "version": "7.0.0-alpha.4-11480441882", - "resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-7.0.0-alpha.4-11480441882.tgz", - "integrity": "sha512-xXs2mVdjk2wN4xQKTfoRd59m2iY2oY0QYFkXEyx5Yh69/qDx/orslhjPzcBACHOJ6UuNJc9Vp67+y7LcVm2ckg==", + "version": "7.0.0-alpha.5-11519897356", + "resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-7.0.0-alpha.5-11519897356.tgz", + "integrity": "sha512-8/Lh95vMw5VfxWKHpTfIMv8V8H6/F9TH4lvvfdHj+EplyBH8NZcmkT6uR0mWo8S+SYsvj8IVLK5xWRpHerMGJA==", "dependencies": { "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/adf-core": ">=7.0.0-alpha.4-11480441882", - "@alfresco/js-api": ">=8.0.0-alpha.4-11480441882", + "@alfresco/adf-core": ">=7.0.0-alpha.5-11519897356", + "@alfresco/js-api": ">=8.0.0-alpha.5-11519897356", "@angular/animations": ">=14.1.3", "@angular/cdk": ">=14.1.2", "@angular/common": ">=14.1.3", @@ -167,9 +167,9 @@ } }, "node_modules/@alfresco/adf-core": { - "version": "7.0.0-alpha.4-11480441882", - "resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-7.0.0-alpha.4-11480441882.tgz", - "integrity": "sha512-wWMKLUsMJBs+usNrQRZgrpLfY3qfrqKWs+dZHj1wR1ykSXhyc/xaj7gq6rK1KEl5SPVukeW7ifiZHMGijyoppw==", + "version": "7.0.0-alpha.5-11519897356", + "resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-7.0.0-alpha.5-11519897356.tgz", + "integrity": "sha512-hGRUYNxF2tEsNDUUejL+GRtGO4tVnvvFiSNUBOgNeD2+oJc/bBZ4/0zpA5OU8WKk2MB1Kfv23j7T2WT3LVJDeg==", "dependencies": { "angular-oauth2-oidc": "^15.0.1", "angular-oauth2-oidc-jwks": "^17.0.2", @@ -177,8 +177,8 @@ "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/adf-extensions": ">=7.0.0-alpha.4-11480441882", - "@alfresco/js-api": ">=8.0.0-alpha.4-11480441882", + "@alfresco/adf-extensions": ">=7.0.0-alpha.5-11519897356", + "@alfresco/js-api": ">=8.0.0-alpha.5-11519897356", "@angular/animations": ">=14.1.3", "@angular/cdk": ">=14.1.2", "@angular/common": ">=14.1.3", @@ -194,42 +194,37 @@ } }, "node_modules/@alfresco/adf-extensions": { - "version": "7.0.0-alpha.4-11480441882", - "resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-7.0.0-alpha.4-11480441882.tgz", - "integrity": "sha512-2vobHj066NzfTDGP4umWGTnKtSHPxvSFRsbbhF/fT94bmarQSdFxHLxjSIRnidt3hgj13ogOymEU79e8NVuB1g==", + "version": "7.0.0-alpha.5-11519897356", + "resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-7.0.0-alpha.5-11519897356.tgz", + "integrity": "sha512-yNDHgP1yRMQ5v5jsXdxmOLTkLT2U+horjW0aHbkeQOQJ/YlniLgGvtmApMNFjb2FM9beyEC0eH6BN01GgCIYIA==", "dependencies": { "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/js-api": ">=8.0.0-alpha.4-11480441882", + "@alfresco/js-api": ">=8.0.0-alpha.5-11519897356", "@angular/common": ">=14.1.3", "@angular/core": ">=14.1.3" } }, "node_modules/@alfresco/eslint-plugin-eslint-angular": { - "version": "7.0.0-alpha.4-11480441882", - "resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-7.0.0-alpha.4-11480441882.tgz", - "integrity": "sha512-qMmMSuN/U9iQF8nhF/QQur8W31+qhzp6adL8QeN9qRzIM8RmYEuIgd9KI4hGfVTRqNIJgOIk6QMMKcGaEa/mHw==", + "version": "7.0.0-alpha.5-11519897356", + "resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-7.0.0-alpha.5-11519897356.tgz", + "integrity": "sha512-+zRdkgXaJTVYiEcXqoLnqgK279CFRzhYIPewFxCbLkyfHjnsngredGqCQ8CNOjXmn1lwQh79qx0L5K+f3UcNCQ==", "dependencies": { - "@angular-eslint/utils": "15.2.1", - "@typescript-eslint/utils": "5.48.2" + "@angular-eslint/utils": "16.0.3", + "@typescript-eslint/utils": "5.59.7" } }, "node_modules/@alfresco/js-api": { - "version": "8.0.0-alpha.4-11480441882", - "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-8.0.0-alpha.4-11480441882.tgz", - "integrity": "sha512-c90FTuAhLc2pnQrauxdWv9FsKAbbAtS+uxyqW5jiLIP5BuiuWoQT7it5JmTaXmFfXV+e8DJ3hl6UI5YdZyL35w==", + "version": "8.0.0-alpha.5-11519897356", + "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-8.0.0-alpha.5-11519897356.tgz", + "integrity": "sha512-worLbEfQNMoZTaCTUBtGR6RnrI6YfJ9cdso5EJO5sFegdO6JnutIHfSB2cEQ5PNqkI5EFzSsGISejSHmtJ3vag==", "dependencies": { - "event-emitter": "0.3.5", - "superagent": "9.0.2", - "tslib": "2.6.3" + "event-emitter": "^0.3.5", + "superagent": "^9.0.1", + "tslib": "^2.6.1" } }, - "node_modules/@alfresco/js-api/node_modules/tslib": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", - "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" - }, "node_modules/@ampproject/remapping": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", @@ -1342,12 +1337,12 @@ } }, "node_modules/@angular-eslint/utils": { - "version": "15.2.1", - "resolved": "https://registry.npmjs.org/@angular-eslint/utils/-/utils-15.2.1.tgz", - "integrity": "sha512-++FneAJHxJqcSu0igVN6uOkSoHxlzgLoMBswuovYJy3UKwm33/T6WFku8++753Ca/JucIoR1gdUfO7SoSspMDg==", + "version": "16.0.3", + "resolved": "https://registry.npmjs.org/@angular-eslint/utils/-/utils-16.0.3.tgz", + "integrity": "sha512-QsbUVHJLk+fE08/D4y3wOyGk1iX2LVSygw+uzilbaAXfjD5/c0Ei5FbVx2mMYPk+aOl4yrvGQW3dmetMiAR0MQ==", "dependencies": { - "@angular-eslint/bundled-angular-compiler": "15.2.1", - "@typescript-eslint/utils": "5.48.2" + "@angular-eslint/bundled-angular-compiler": "16.0.3", + "@typescript-eslint/utils": "5.59.7" }, "peerDependencies": { "eslint": "^7.20.0 || ^8.0.0", @@ -1355,9 +1350,9 @@ } }, "node_modules/@angular-eslint/utils/node_modules/@angular-eslint/bundled-angular-compiler": { - "version": "15.2.1", - "resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-15.2.1.tgz", - "integrity": "sha512-LO7Am8eVCr7oh6a0VmKSL7K03CnQEQhFO7Wt/YtbfYOxVjrbwmYLwJn+wZPOT7A02t/BttOD/WXuDrOWtSMQ/Q==" + "version": "16.0.3", + "resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-16.0.3.tgz", + "integrity": "sha512-8zwY6ustiPXBEF3+jELKVwGk6j2HJn7GHbqAhDFR02YiE27iRMSGTHIAWGs6ZI7F1JgfrIsOHrUgzC1x95K6rg==" }, "node_modules/@angular/animations": { "version": "16.2.9", @@ -9859,17 +9854,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.48.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.48.2.tgz", - "integrity": "sha512-2h18c0d7jgkw6tdKTlNaM7wyopbLRBiit8oAxoP89YnuBOzCZ8g8aBCaCqq7h208qUTroL7Whgzam7UY3HVLow==", + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.7.tgz", + "integrity": "sha512-yCX9WpdQKaLufz5luG4aJbOpdXf/fjwGMcLFXZVPUz3QqLirG5QcwwnIHNf8cjLjxK4qtzTO8udUtMQSAToQnQ==", "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.48.2", - "@typescript-eslint/types": "5.48.2", - "@typescript-eslint/typescript-estree": "5.48.2", + "@typescript-eslint/scope-manager": "5.59.7", + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/typescript-estree": "5.59.7", "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0", "semver": "^7.3.7" }, "engines": { @@ -9884,12 +9879,12 @@ } }, "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { - "version": "5.48.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.48.2.tgz", - "integrity": "sha512-zEUFfonQid5KRDKoI3O+uP1GnrFd4tIHlvs+sTJXiWuypUWMuDaottkJuR612wQfOkjYbsaskSIURV9xo4f+Fw==", + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.7.tgz", + "integrity": "sha512-FL6hkYWK9zBGdxT2wWEd2W8ocXMu3K94i3gvMrjXpx+koFYdYV7KprKfirpgY34vTGzEPPuKoERpP8kD5h7vZQ==", "dependencies": { - "@typescript-eslint/types": "5.48.2", - "@typescript-eslint/visitor-keys": "5.48.2" + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/visitor-keys": "5.59.7" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -9900,9 +9895,9 @@ } }, "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": { - "version": "5.48.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.48.2.tgz", - "integrity": "sha512-hE7dA77xxu7ByBc6KCzikgfRyBCTst6dZQpwaTy25iMYOnbNljDT4hjhrGEJJ0QoMjrfqrx+j1l1B9/LtKeuqA==", + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.7.tgz", + "integrity": "sha512-UnVS2MRRg6p7xOSATscWkKjlf/NDKuqo5TdbWck6rIRZbmKpVNTLALzNvcjIfHBE7736kZOFc/4Z3VcZwuOM/A==", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, @@ -9912,12 +9907,12 @@ } }, "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { - "version": "5.48.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.48.2.tgz", - "integrity": "sha512-bibvD3z6ilnoVxUBFEgkO0k0aFvUc4Cttt0dAreEr+nrAHhWzkO83PEVVuieK3DqcgL6VAK5dkzK8XUVja5Zcg==", + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.7.tgz", + "integrity": "sha512-4A1NtZ1I3wMN2UGDkU9HMBL+TIQfbrh4uS0WDMMpf3xMRursDbqEf1ahh6vAAe3mObt8k3ZATnezwG4pdtWuUQ==", "dependencies": { - "@typescript-eslint/types": "5.48.2", - "@typescript-eslint/visitor-keys": "5.48.2", + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/visitor-keys": "5.59.7", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -9938,11 +9933,11 @@ } }, "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { - "version": "5.48.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.48.2.tgz", - "integrity": "sha512-z9njZLSkwmjFWUelGEwEbdf4NwKvfHxvGC0OcGN1Hp/XNDIcJ7D5DpPNPv6x6/mFvc1tQHsaWmpD/a4gOvvCJQ==", + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.7.tgz", + "integrity": "sha512-tyN+X2jvMslUszIiYbF0ZleP+RqQsFVpGrKI6e0Eet1w8WmhsAtmzaqm8oM8WJQ1ysLwhnsK/4hYHJjOgJVfQQ==", "dependencies": { - "@typescript-eslint/types": "5.48.2", + "@typescript-eslint/types": "5.59.7", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -14844,31 +14839,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dependencies": { - "eslint-visitor-keys": "^2.0.0" - }, - "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "engines": { - "node": ">=10" - } - }, "node_modules/eslint-visitor-keys": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", diff --git a/package.json b/package.json index a8c323ecf2..f0d36ccf12 100644 --- a/package.json +++ b/package.json @@ -30,11 +30,11 @@ }, "private": true, "dependencies": { - "@alfresco/adf-content-services": "7.0.0-alpha.4-11480441882", - "@alfresco/adf-core": "7.0.0-alpha.4-11480441882", - "@alfresco/adf-extensions": "7.0.0-alpha.4-11480441882", - "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.4-11480441882", - "@alfresco/js-api": ">=8.0.0-alpha.4-11480441882", + "@alfresco/adf-content-services": "7.0.0-alpha.5-11519897356", + "@alfresco/adf-core": "7.0.0-alpha.5-11519897356", + "@alfresco/adf-extensions": "7.0.0-alpha.5-11519897356", + "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.5-11519897356", + "@alfresco/js-api": ">=8.0.0-alpha.4-11519897356", "@angular/animations": "16.2.9", "@angular/cdk": "16.2.9", "@angular/common": "16.2.9", @@ -62,7 +62,7 @@ "zone.js": "0.13.3" }, "devDependencies": { - "@alfresco/adf-cli": "7.0.0-alpha.4-11480441882", + "@alfresco/adf-cli": "7.0.0-alpha.5-11519897356", "@angular-devkit/build-angular": "16.2.9", "@angular-devkit/core": "16.2.9", "@angular-devkit/schematics": "16.2.9", diff --git a/projects/aca-content/package.json b/projects/aca-content/package.json index 13a75d6d6e..9bd901d408 100644 --- a/projects/aca-content/package.json +++ b/projects/aca-content/package.json @@ -5,10 +5,10 @@ "peerDependencies": { "@angular/common": ">=15.2", "@angular/core": ">=15.2", - "@alfresco/adf-core": ">=7.0.0-alpha.4-0", - "@alfresco/adf-content-services": ">=7.0.0-alpha.4-0", - "@alfresco/adf-extensions": ">=7.0.0-alpha.4-0", - "@alfresco/js-api": ">=8.0.0-alpha.4-0", + "@alfresco/adf-core": ">=7.0.0-alpha.5-0", + "@alfresco/adf-content-services": ">=7.0.0-alpha.5-0", + "@alfresco/adf-extensions": ">=7.0.0-alpha.5-0", + "@alfresco/js-api": ">=8.0.0-alpha.5-0", "@angular/animations": ">=15.2", "@angular/cdk": ">=15.2", "@angular/forms": ">=15.2", diff --git a/projects/aca-content/src/lib/components/search/search-save/dialog/save-search-dialog.component.spec.ts b/projects/aca-content/src/lib/components/search/search-save/dialog/save-search-dialog.component.spec.ts index 467d6ade25..295260e87e 100644 --- a/projects/aca-content/src/lib/components/search/search-save/dialog/save-search-dialog.component.spec.ts +++ b/projects/aca-content/src/lib/components/search/search-save/dialog/save-search-dialog.component.spec.ts @@ -69,6 +69,8 @@ describe('SaveSearchDialogComponent', () => { it('should disable submit button if form is invalid', () => { spyOn(savedSearchesService, 'saveSearch').and.callThrough(); submitButton.click(); + fixture.detectChanges(); + expect(component.form.valid).toBeFalse(); expect(submitButton.disabled).toBeTrue(); expect(savedSearchesService.saveSearch).not.toHaveBeenCalled(); }); diff --git a/projects/aca-content/src/lib/components/search/search-save/list/smart-list/saved-searches-smart-list.component.spec.ts b/projects/aca-content/src/lib/components/search/search-save/list/smart-list/saved-searches-smart-list.component.spec.ts index 5bbf152e5e..54b5e0040e 100644 --- a/projects/aca-content/src/lib/components/search/search-save/list/smart-list/saved-searches-smart-list.component.spec.ts +++ b/projects/aca-content/src/lib/components/search/search-save/list/smart-list/saved-searches-smart-list.component.spec.ts @@ -26,10 +26,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { CORE_PIPES, CoreTestingModule } from '@alfresco/adf-core'; import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs'; import { By } from '@angular/platform-browser'; -import { SavedSearchesService } from '@alfresco/adf-content-services'; +import { SavedSearchesService, SavedSearch } from '@alfresco/adf-content-services'; import { SavedSearchesSmartListComponent } from './saved-searches-smart-list.component'; -import { SavedSearch } from '@alfresco/adf-content-services/lib/common/interfaces/saved-search.interface'; import { AppService, DocumentBasePageService, DocumentBasePageServiceMock } from '@alfresco/aca-shared'; +import { AppState } from '@alfresco/aca-shared/store'; import { provideMockStore } from '@ngrx/store/testing'; const appServiceMock = { @@ -41,13 +41,26 @@ const appServiceMock = { describe('SavedSearchesSmartListComponent', () => { let fixture: ComponentFixture; let fakeSavedSearches$: ReplaySubject; + let appState: Partial = {}; beforeEach(() => { fakeSavedSearches$ = new ReplaySubject(1); + appState = { + selection: { + count: 0, + isEmpty: false, + libraries: [], + nodes: [] + }, + navigation: {}, + infoDrawerOpened: false + }; TestBed.configureTestingModule({ imports: [CoreTestingModule, SavedSearchesSmartListComponent], providers: [ - provideMockStore(), + provideMockStore({ + initialState: { app: appState } + }), ...CORE_PIPES, { provide: DocumentBasePageService, useClass: DocumentBasePageServiceMock }, { provide: SavedSearchesService, useValue: { savedSearches$: fakeSavedSearches$ } }, diff --git a/projects/aca-content/src/lib/components/sidenav/sidenav.component.spec.ts b/projects/aca-content/src/lib/components/sidenav/sidenav.component.spec.ts index 0ee8a9d0a0..a7a7827ae4 100644 --- a/projects/aca-content/src/lib/components/sidenav/sidenav.component.spec.ts +++ b/projects/aca-content/src/lib/components/sidenav/sidenav.component.spec.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { NO_ERRORS_SCHEMA } from '@angular/core'; +import { ChangeDetectorRef, NO_ERRORS_SCHEMA } from '@angular/core'; import { TestBed, ComponentFixture } from '@angular/core/testing'; import { SidenavComponent } from './sidenav.component'; import { AppTestingModule } from '../../testing/app-testing.module'; @@ -54,7 +54,8 @@ describe('SidenavComponent', () => { } }, { provide: NavigationHistoryService, useValue: navigationHistoryServiceSpy }, - SidenavLayoutComponent + SidenavLayoutComponent, + ChangeDetectorRef ], schemas: [NO_ERRORS_SCHEMA] }); diff --git a/projects/aca-shared/package.json b/projects/aca-shared/package.json index 21818394f7..5996768913 100644 --- a/projects/aca-shared/package.json +++ b/projects/aca-shared/package.json @@ -5,10 +5,10 @@ "license": "LGPL-3.0", "scripts": {}, "peerDependencies": { - "@alfresco/adf-content-services": ">=7.0.0-alpha.4-0", - "@alfresco/adf-core": ">=7.0.0-alpha.4-0", - "@alfresco/adf-extensions": ">=7.0.0-alpha.4-0", - "@alfresco/js-api": ">=8.0.0-alpha.4-0", + "@alfresco/adf-content-services": ">=7.0.0-alpha.5-0", + "@alfresco/adf-core": ">=7.0.0-alpha.5-0", + "@alfresco/adf-extensions": ">=7.0.0-alpha.5-0", + "@alfresco/js-api": ">=8.0.0-alpha.5-0", "@angular/animations": ">=15.2", "@angular/common": ">=15.2", "@angular/compiler": ">=15.2",